Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ This works in Kitty and Ghostty. Other terminals show the text content normally
### Watching for changes over Action Cable

`hey watch` is told when a box changed instead of polling for it.
`internal/cable` dials HEY's cable server with [actioncable-go](github.com/basecamp/actioncable-go),
`internal/cable` dials HEY's cable server with [actioncable-client](https://github.com/basecamp/actioncable-client/tree/main/go)'s Go module,
authorizing the upgrade request with the same credentials the SDK sends on an API request
(`HEY_CABLE_URL` overrides the endpoint). `internal/cmd/watch.go` subscribes to
haystack's `Postings::ChangesChannel`, which broadcasts only `{change, account_id, box_id,
Expand Down
4 changes: 2 additions & 2 deletions API-COVERAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ which is what `Entries().ListDraftsPage` and `hey draft list --page` exist for.
| `/calendar/todos/{id}/completions.json` | DELETE | SDK `CalendarTodos().Uncomplete` | `hey todo uncomplete <id>` | covered |
| `/calendar/todos/{id}.json` | DELETE | SDK `CalendarTodos().Delete` | `hey todo delete <id>` | covered |
| `/boxes/{id}/postings/changes.json` | GET | SDK `Postings().AllChanges` | `hey watch` | covered |
| `/cable` (`Postings::ChangesChannel`) | WS | `internal/cable` + actioncable-go | `hey watch`, TUI mail list | covered |
| `/cable` (`Turbo::StreamsChannel`) | WS | `internal/cable` + actioncable-go | TUI Screener (stream name from `/clearances.json`) | covered |
| `/cable` (`Postings::ChangesChannel`) | WS | `internal/cable` + actioncable-client | `hey watch`, TUI mail list | covered |
| `/cable` (`Turbo::StreamsChannel`) | WS | `internal/cable` + actioncable-client | TUI Screener (stream name from `/clearances.json`) | covered |
| `/identity.json` | GET | SDK `Identity().GetIdentity` | `hey account list`, `--account` validation | covered |
| `/oauth/authorizations/new` | GET | `internal/auth` (PKCE S256) | `hey auth login` | covered |
| `/oauth/tokens` | POST | `internal/auth` | `hey auth login`, `hey auth refresh`, automatic refresh | covered |
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
charm.land/bubbletea/v2 v2.0.9
charm.land/glamour/v2 v2.0.1
charm.land/lipgloss/v2 v2.0.6
github.com/basecamp/actioncable-go v1.1.0
github.com/basecamp/actioncable-client/go/v2 v2.0.2
Comment thread
jeremy marked this conversation as resolved.
github.com/basecamp/hey-sdk/go v0.31.1
github.com/basecamp/mcp v0.0.0-20260828100356-2d6f44b51e9d
github.com/charmbracelet/x/ansi v0.11.8
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ github.com/aymanbagabas/go-udiff v0.4.1 h1:OEIrQ8maEeDBXQDoGCbbTTXYJMYRCRO1fnodZ
github.com/aymanbagabas/go-udiff v0.4.1/go.mod h1:0L9PGwj20lrtmEMeyw4WKJ/TMyDtvAoK9bf2u/mNo3w=
github.com/aymerick/douceur v0.2.0 h1:Mv+mAeH1Q+n9Fr+oyamOlAkUNPWPlA8PPGR0QAaYuPk=
github.com/aymerick/douceur v0.2.0/go.mod h1:wlT5vV2O3h55X9m7iVYN0TBM0NH/MmbLnd30/FjWUq4=
github.com/basecamp/actioncable-go v1.1.0 h1:AizmCxoKvmUMdqwMQCCLQrFaVbjp8RhkneWidxygc7E=
github.com/basecamp/actioncable-go v1.1.0/go.mod h1:ezaV5z1GXQAsqyejqTs6wCFl2D8Wj+COLQkHc/kwoRs=
github.com/basecamp/actioncable-client/go/v2 v2.0.2 h1:h2Sl15gj2lI/EX5E0EUxjyYgf0LF9Gn1zqEUInSrUpc=
github.com/basecamp/actioncable-client/go/v2 v2.0.2/go.mod h1:3Y0N9V5LXclT5nQWcPhq/+6rj4eKXgKAX8dx15X8yB8=
github.com/basecamp/hey-sdk/go v0.31.1 h1:dFlCe4LMmLAHgRB05QRHaE26XPPkZVIMp0qCGEanVQU=
github.com/basecamp/hey-sdk/go v0.31.1/go.mod h1:eCJOhTLOpi2FCQUXireHZQ7DzRs2TUqvYhRDTfVLoDY=
github.com/basecamp/mcp v0.0.0-20260828100356-2d6f44b51e9d h1:zEQVGq1x1nhKMZ2TudFAcSJ32CHT8richI1vQakIKz4=
Expand Down
2 changes: 1 addition & 1 deletion internal/cable/cable.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"strings"
"time"

"github.com/basecamp/actioncable-go"
actioncable "github.com/basecamp/actioncable-client/go/v2"

"github.com/basecamp/hey-cli/internal/apierr"
"github.com/basecamp/hey-cli/internal/auth"
Expand Down
2 changes: 1 addition & 1 deletion internal/cable/cable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"testing"
"time"

actioncable "github.com/basecamp/actioncable-go"
actioncable "github.com/basecamp/actioncable-client/go/v2"

"github.com/basecamp/hey-cli/internal/apierr"
"github.com/basecamp/hey-cli/internal/auth"
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/tui_watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sync"
"time"

actioncable "github.com/basecamp/actioncable-go"
actioncable "github.com/basecamp/actioncable-client/go/v2"

hey "github.com/basecamp/hey-sdk/go/pkg/hey"

Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/tui_watch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"
"time"

actioncable "github.com/basecamp/actioncable-go"
actioncable "github.com/basecamp/actioncable-client/go/v2"

hey "github.com/basecamp/hey-sdk/go/pkg/hey"

Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"syscall"
"time"

actioncable "github.com/basecamp/actioncable-go"
actioncable "github.com/basecamp/actioncable-client/go/v2"
"github.com/spf13/cobra"

"github.com/basecamp/hey-sdk/go/pkg/generated"
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/watch_calendar.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"sync"
"time"

actioncable "github.com/basecamp/actioncable-go"
actioncable "github.com/basecamp/actioncable-client/go/v2"

"github.com/basecamp/hey-sdk/go/pkg/generated"
hey "github.com/basecamp/hey-sdk/go/pkg/hey"
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/watch_new_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"
"time"

actioncable "github.com/basecamp/actioncable-go"
actioncable "github.com/basecamp/actioncable-client/go/v2"

"github.com/basecamp/hey-sdk/go/pkg/generated"
hey "github.com/basecamp/hey-sdk/go/pkg/hey"
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/watch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"testing"
"time"

actioncable "github.com/basecamp/actioncable-go"
actioncable "github.com/basecamp/actioncable-client/go/v2"

"github.com/basecamp/hey-sdk/go/pkg/generated"
hey "github.com/basecamp/hey-sdk/go/pkg/hey"
Expand Down
2 changes: 1 addition & 1 deletion nix/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ buildGoModule.override { inherit go; } (finalAttrs: {

# To update: run `make update-nix-hash` (Docker). It rewrites this quoted
# value in place, so keep it a string literal rather than lib.fakeHash.
vendorHash = "sha256-ZfLot6LMYS4yL+5A4Jb9qzNVRobgUuVqXkuWfnX751k=";
vendorHash = "sha256-jNT2p5zntEEnnZZXFWC+QAR/rVCITrUl2tq1GheiHeM=";

subPackages = [ "cmd/hey" ];

Expand Down
Loading