@sjawhar/opencode-legion-envoy 0.32.0 → 0.33.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/opencode-legion-envoy",
3
- "version": "0.32.0",
3
+ "version": "0.33.0",
4
4
  "type": "module",
5
5
  "main": "dist/src/server.js",
6
6
  "exports": {
@@ -76,8 +76,10 @@ dispatch_ask({
76
76
  It returns `details` `{ issue, topic, ask }`. Options are buttons: never enumerate choices in
77
77
  prose. Put the recommendation in `question`, and put each selectable choice in `options`.
78
78
  Anchor a document question with `anchor: { artifact, quote, occurrence? }`; `occurrence` is
79
- zero-based and selects a repeated quote. An anchor whose quote disappears becomes orphaned but
80
- remains readable against its original document version.
79
+ zero-based and selects a repeated quote. The server writes the resulting mark. The HTTP API also
80
+ accepts `{ artifact, mark_id }` from a browser that has already written its mark; Dispatch tools
81
+ use the quote form. An anchor whose quote disappears becomes orphaned but remains readable against
82
+ its original document version.
81
83
 
82
84
  An ask stays open until a human answers, unless its question no longer needs that answer. Retract a
83
85
  moot or superseded question, or self-resolve one after finding the answer:
@@ -141,7 +143,8 @@ dispatch_comment({ issue, artifact?, quote?, occurrence?, body, reply_to?, reply
141
143
  ```
142
144
 
143
145
  It returns `details` `{ issue, topic, comment }`. `quote` requires `artifact`; omit both for a
144
- floating issue comment. Use `reply_to` to continue a comment thread; use `reply_to_ask` to reply
146
+ floating issue comment. A reply (`reply_to`/`reply_to_ask`) takes no `quote`; it belongs to its
147
+ parent's anchor. Use `reply_to` to continue a comment thread; use `reply_to_ask` to reply
145
148
  directly under a question asked with `dispatch_ask`. The two are mutually exclusive.
146
149
 
147
150
  Propose an exact replacement instead of describing it:
@@ -152,8 +155,12 @@ dispatch_suggest({ issue, artifact, quote, replace_with, body?, occurrence? })
152
155
 
153
156
  It returns `details` `{ issue, topic, comment }`. A human accepts or rejects a suggestion. On
154
157
  `TARGET_AMBIGUOUS`, add zero-based `occurrence`. On `TARGET_NOT_FOUND`, re-read the document
155
- before retrying. `INVALID_OP` names a malformed edit; `CAP_EXCEEDED` never truncates;
156
- `ISSUE_CLOSED` rejects a write. `ACTOR_KIND` and `ROUTE_INVALID` reject an invalid actor or route.
158
+ before retrying. `INVALID_ANCHOR` requires exactly one nonempty anchor `quote` or `mark_id`;
159
+ `ANCHOR_MISSING` means a browser mark was not observed in the live tree, and
160
+ `ANCHOR_ORPHANED` means its marked text no longer exists. `INVALID_MARKDOWN` and `DOC_SCHEMA`
161
+ reject Markdown or a live tree outside the Proof schema. `INVALID_OP` names a malformed edit;
162
+ `CAP_EXCEEDED` never truncates; `ISSUE_CLOSED` rejects a write. `ACTOR_KIND` and `ROUTE_INVALID`
163
+ reject an invalid actor or route.
157
164
 
158
165
  ## Artifacts
159
166