@sjawhar/pi-legion-envoy 0.8.5 → 0.9.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/dist/envoy.js CHANGED
@@ -29979,7 +29979,7 @@ var DISPATCH_URGENCIES = ["low", "med", "high", "blocking"];
29979
29979
  var DISPATCH_TOOL_DESCRIPTION = "Raise a durable question to the human as a Dispatch thread (a GitHub issue shown on the dashboard), or continue an existing thread with a follow-up question. The reader has NOT seen your transcript. Open a thread with `subject`; continue one with `thread`. The reply arrives in this session as a steer.";
29980
29980
  var DISPATCH_ARGUMENTS = {
29981
29981
  subject: "Open a new thread: one line naming the decision needed (the issue title). Omit when continuing a thread with `thread`.",
29982
- thread: `Continue an existing thread: "<n>" (an issue in the working directory's repo) or "owner/name#<n>". When set, omit subject, urgency, repo, and parent.`,
29982
+ thread: 'Continue an existing thread: "<n>" (an open issue in the repo; a plain work issue is adopted as a thread) or "owner/name#<n>". When set, omit subject, urgency, repo, and parent.',
29983
29983
  context: `What you are doing, what you found, why you are stuck \u2014 at most ${DISPATCH_CONTEXT_MAX} characters, at most three short paragraphs or a bullet list. The reader has NOT seen your transcript: no nouns you coined this session, no internal identifiers unless the question is about them. GitHub references (#N, owner/repo#N, URLs) may be bare; the dashboard unfurls them.`,
29984
29984
  question: `The ask, at most ${DISPATCH_QUESTION_MAX} characters, as a list: current state \u2192 desired state \u2192 your recommendation and why; options go in \`ask\`.`,
29985
29985
  ask: "Structured questions rendered as buttons on the dashboard. Each: { question, header?, options: [{ label, description? }], multiple?, custom? }. Use this whenever the answer is one of N choices.",
@@ -154,7 +154,8 @@ dispatch({
154
154
  ```
155
155
 
156
156
  - `thread` replaces `subject`; `urgency`, `repo`, and `parent` are not accepted with it.
157
- The thread must be open and be a dispatch thread; otherwise the tool says so
157
+ `thread` names an open issue in the repo; a plain work issue is adopted as a thread on
158
+ first use. The issue must be open and not a pull request, or the tool says so
158
159
  (`#N is not a dispatch thread`, `#N is closed; open a new thread`).
159
160
  - Same decision → same thread. A genuinely new decision → a new thread, even if it came
160
161
  up in the reply.
@@ -50,6 +50,7 @@ into a state holder: daemon state and GitHub artifacts remain authoritative.
50
50
  | Resync report | artifact-driven anomaly list (zero-owner trees, erroring issues) | Verify against fresh state, then dispatch/heal |
51
51
  | Mention | Slack/GitHub @mention text | Answer, or route to the owning issue's architect role |
52
52
  | Approval interpretation | ambiguous human comment on a gated issue | Decide whether it's an approval; if so, apply `human-approved` via the daemon |
53
+ | Closed-tree activity (comment, review, CI on a closed tree) | issue, root, event summary | Read the artifact; if work should resume, `legion admit <root>`; otherwise no action — the event is not held or redelivered |
53
54
  | Direct user message | — | Always first |
54
55
 
55
56
  ## New issue triage
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/pi-legion-envoy",
3
- "version": "0.8.5",
3
+ "version": "0.9.0",
4
4
  "type": "module",
5
5
  "omp": {
6
6
  "extensions": [