-
Notifications
You must be signed in to change notification settings - Fork 1
feat(onboarding): Linear wake-on-assignment choice #120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
0141dc5
docs: document node-claim guard and provider subscriptions
aa9bc74
docs: tighten node-claim and provider-subscription prose
72217b3
feat(onboarding): let Linear sources wake on assignment, not just cre…
khaliqgant b7205f1
Name the picker's default wake mode in source summaries
khaliqgant File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| --- | ||
| title: 'Provider Subscriptions' | ||
| description: 'Bind a provider resource — a repo, a team, a channel — to an agent so provider events wake it.' | ||
| --- | ||
|
|
||
| Provider subscriptions bind an external resource to a Relay recipient. When an event fires — an issue opened, a comment posted — Relayfile writes it to the mounted tree and Relay delivers it as a message that wakes the recipient. | ||
|
|
||
| ```bash | ||
| agent-relay integration subscribe github \ | ||
| --to @watcher \ | ||
| --resource AgentWorkforce/software-garden \ | ||
| --events issues,issue_comment | ||
| ``` | ||
|
|
||
| The recipient is an agent (`@watcher`) or a channel (`#triage`). The agent does not need to exist yet; `--spawn` creates it. | ||
|
|
||
| ## What the agent sees | ||
|
|
||
| Each event is a message from the provider identity (`github`) with the event type and the Relayfile path holding the payload: | ||
|
|
||
| ``` | ||
| Relay message from github: Github issue_comment.created | ||
| Relayfile path: /github/repos/AgentWorkforce/software-garden/issues/531/comments/5744794683/meta.json | ||
| ``` | ||
|
|
||
| The mounted file holds the full payload — the same tree as [Relayfile integrations](/docs/file/integrations). An in-channel reply posts back to the issue or thread when the provider supports writeback. | ||
|
|
||
| Events that arrive while the node is disconnected queue durably and replay on reconnect, so a subscription survives broker restarts. See [Delivery](/docs/delivery). | ||
|
|
||
| ## Spawning a recipient | ||
|
|
||
| `--spawn <cli>` launches a new agent and confirms it is live before subscribing: | ||
|
|
||
| ```bash | ||
| agent-relay integration subscribe github \ | ||
| --resource AgentWorkforce/software-garden \ | ||
| --events issues,issue_comment \ | ||
| --spawn claude --task "Triage new issue comments and reply with a summary." | ||
| ``` | ||
|
|
||
| ## Managing subscriptions | ||
|
|
||
| ```bash | ||
| agent-relay integration subscribe --list # active bindings | ||
| agent-relay integration unsubscribe github --resource AgentWorkforce/software-garden | ||
| ``` | ||
|
|
||
| Unsubscribing removes the binding and its inbound webhook; agents and channels are untouched. | ||
|
|
||
| <CardGroup cols={2}> | ||
| <Card title="Events" href="/docs/events"> | ||
| The event vocabulary subscriptions and listeners share. | ||
| </Card> | ||
| <Card title="Relayfile integrations" href="/docs/file/integrations"> | ||
| How provider resources become files an agent can read and watch. | ||
| </Card> | ||
| <Card title="Delivery" href="/docs/delivery"> | ||
| Sequencing, acks, and reconnect replay for node-delivered events. | ||
| </Card> | ||
| <Card title="CLI reference" href="/docs/reference-cli"> | ||
| The full `integration` command surface. | ||
| </Card> | ||
| </CardGroup> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When a user selects Linear and leaves Wake on untouched, this fallback displays “New issues” without writing
issuestosourceSettings. The later workflow preview and final review pass the empty settings tosourceSummary, which consequently says “All incoming items from this connection”; that now incorrectly suggests assigned issues can also trigger the flow even though the effective default only handles new issues. Persist the displayed default or make the summary resolve the choice field's default.Useful? React with 👍 / 👎.