@sjawhar/opencode-legion-envoy 0.43.0 → 0.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13628,6 +13628,11 @@ var ChildStatusEventPayloadSchema = object({
13628
13628
  from: string2().optional(),
13629
13629
  to: string2().optional()
13630
13630
  });
13631
+ var SubscriptionRemovedEventPayloadSchema = object({
13632
+ session_id: string2().optional(),
13633
+ by: object({ kind: string2(), id: string2().optional() }).passthrough().optional(),
13634
+ topics: array(string2()).optional()
13635
+ });
13631
13636
  // ../contracts/src/dispatch-snippet.ts
13632
13637
  var HTML_ENTITIES = [
13633
13638
  ["&lt;", "<"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/opencode-legion-envoy",
3
- "version": "0.43.0",
3
+ "version": "0.44.0",
4
4
  "type": "module",
5
5
  "main": "dist/src/server.js",
6
6
  "exports": {
@@ -226,9 +226,11 @@ It returns `details` `{ issue, topic, message }`. `body` is capped at 2,000 char
226
226
 
227
227
  ## What comes back
228
228
 
229
- A write result's `details.topic` subscribes the host to its owner. Issue writes use `notifications.dispatch.issue.<KEY>.>`;
229
+ A write result's `details.topic` subscribes the host to its owner, and the first such subscription on an issue or document also tells
230
+ you so (an already-subscribed write stays quiet — no repeat notice). Issue writes use `notifications.dispatch.issue.<KEY>.>`;
230
231
  project-document writes use `notifications.dispatch.document.<PROJECT>.<SLUG>.>`. The owner topic carries every Dispatch event; `notify`
231
- only controls agent wake and routed delivery. After a restart, catch up with:
232
+ only controls agent wake and routed delivery. A human may unsubscribe you from the issue or document header; you are told with a
233
+ `subscription.removed` notice when that happens. After a restart, catch up with:
232
234
 
233
235
  ```ts
234
236
  dispatch_read({ issue?, project?, artifact?, ref? })