@sjawhar/pi-legion-envoy 5.3.4 → 5.3.6
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 +1 -1
- package/dist/legion.js +1 -1
- package/dist/skills/envoy/SKILL.md +8 -1
- package/dist/skills/legion-worker/SKILL.md +10 -4
- package/package.json +1 -1
package/dist/envoy.js
CHANGED
|
@@ -34402,7 +34402,7 @@ function subscriptionRemovedTopics(raw, sessionID) {
|
|
|
34402
34402
|
|
|
34403
34403
|
// ../envoy-client/src/tool-contract.ts
|
|
34404
34404
|
var DELIVERY_CONTRACT = "Delivery is at-least-once, possibly out of order across topics; use id for dedupe and at for freshness.";
|
|
34405
|
-
var TOPIC_GUIDE = "Topic guide (all are under notifications.): agent.<session_id> (subscribe: own inbox); role.<role> " + "(publish-to; holders claim via envoy_role_set). > matches one or more trailing tokens and does not " + "match the base subject. Envoy registers the concrete base when you subscribe to <subject>.>, so " + "the recommended default remains github.<owner>.<repo>.pr.<n>.>. Default PR subscription: " + "github.<owner>.<repo>.pr.<n>.> (it receives the quiet PR family): pr.<n> (lifecycle: " + "opened/synchronize/closed; closed carries merged, merge_commit_sha, merged_by, head_sha), " + "pr.<n>.comment, pr.<n>.review, pr.<n>.mention, pr.<n>.checks (one head-checks settlement event: " + 'passed/failed/cancelled/skipped with failing names and URLs; re-fires with superseded_settlement: "true" ' + "when new runs appear for the same head). Other GitHub: issue.<n>, issue.<n>.comment, " + "issue.<n>.mention, mention, push.branch.<name>, push.tag.<name>, workflow.<file>.<action> (only " + "runs without an associated PR); slack.<team>.<channel>.message|mention and " + "slack.<team>.<channel>.thread.<ts>.message|mention; ghostwispr.<session>.<kind>; " + "whatsapp.<phone>.<jid>.<kind>; envoy.exceptions.<original-topic>.";
|
|
34405
|
+
var TOPIC_GUIDE = "Topic guide (all are under notifications.): agent.<session_id> (subscribe: own inbox); role.<role> " + "(publish-to; holders claim via envoy_role_set). > matches one or more trailing tokens and does not " + "match the base subject. Envoy registers the concrete base when you subscribe to <subject>.>, so " + "the recommended default remains github.<owner>.<repo>.pr.<n>.>. <owner> and <repo> are one token " + "each, with every dot in the name written _ (sjawhar/.github is github.sjawhar._github; " + "acme/site.io is github.acme.site_io), and a topic spelled with the dot receives nothing. " + "Default PR subscription: " + "github.<owner>.<repo>.pr.<n>.> (it receives the quiet PR family): pr.<n> (lifecycle: " + "opened/synchronize/closed; closed carries merged, merge_commit_sha, merged_by, head_sha), " + "pr.<n>.comment, pr.<n>.review, pr.<n>.mention, pr.<n>.checks (one head-checks settlement event: " + 'passed/failed/cancelled/skipped with failing names and URLs; re-fires with superseded_settlement: "true" ' + "when new runs appear for the same head). Other GitHub: issue.<n>, issue.<n>.comment, " + "issue.<n>.mention, mention, push.branch.<name>, push.tag.<name>, workflow.<file>.<action> (only " + "runs without an associated PR); slack.<team>.<channel>.message|mention and " + "slack.<team>.<channel>.thread.<ts>.message|mention; ghostwispr.<session>.<kind>; " + "whatsapp.<phone>.<jid>.<kind>; envoy.exceptions.<original-topic>.";
|
|
34406
34406
|
var URGENCY_VALUES = EnvelopeSchema.shape.urgency.unwrap().options;
|
|
34407
34407
|
var EXPECTS_REPLY_VALUES = EnvelopeSchema.shape.expects_reply.unwrap().options;
|
|
34408
34408
|
function messageMetadataShape(schema) {
|
package/dist/legion.js
CHANGED
|
@@ -16142,7 +16142,7 @@ import { logger } from "@oh-my-pi/pi-utils";
|
|
|
16142
16142
|
// package.json
|
|
16143
16143
|
var package_default = {
|
|
16144
16144
|
name: "@sjawhar/pi-legion-envoy",
|
|
16145
|
-
version: "5.3.
|
|
16145
|
+
version: "5.3.6",
|
|
16146
16146
|
type: "module",
|
|
16147
16147
|
omp: {
|
|
16148
16148
|
extensions: [
|
|
@@ -18,6 +18,10 @@ envoy_subscribe([
|
|
|
18
18
|
])
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
+
The owner and the repository are one token each, with every dot in the name written `_`:
|
|
22
|
+
`acme/site.io`'s PR family is `notifications.github.acme.site_io.pr.42.>`, and a topic spelled
|
|
23
|
+
`acme.site.io` receives nothing.
|
|
24
|
+
|
|
21
25
|
NATS `>` matches **one or more** trailing tokens, so it does not match the lifecycle base
|
|
22
26
|
`pr.42` itself. Envoy registers that concrete base automatically when you subscribe to
|
|
23
27
|
`<subject>.>`, making `pr.<n>.>` the recommended default: one call receives both the lifecycle
|
|
@@ -137,7 +141,10 @@ envoy_subscribe([
|
|
|
137
141
|
|
|
138
142
|
A warning says no GitHub event for that repository occurred within the stream's 72-hour retention
|
|
139
143
|
window; it does not mean the repository was never seen. Verify the GitHub App is installed before
|
|
140
|
-
relying on a wakeup.
|
|
144
|
+
relying on a wakeup. A topic that spells a repository name with its dot, followed by a kind, draws
|
|
145
|
+
a warning naming the spelling Envoy publishes (`acme.site_io` for `acme/site.io`); subscribe to
|
|
146
|
+
that one instead. A token after the repository that is not a GitHub topic kind (`checks` in
|
|
147
|
+
`acme.widgets.checks.>`) draws a warning naming the kinds.
|
|
141
148
|
|
|
142
149
|
## Roles
|
|
143
150
|
|
|
@@ -611,16 +611,22 @@ do:
|
|
|
611
611
|
reported. The issue has moved to a newer run since your task was given, so the work you just
|
|
612
612
|
reported belongs to a run that is over. Nothing you can repeat changes that: stop, push nothing
|
|
613
613
|
further, and tell the architect what you completed and that its run has been superseded. A task
|
|
614
|
-
for the current run arrives in this same session if the phase still needs you.
|
|
614
|
+
for the current run arrives in this same session if the phase still needs you. The same answer
|
|
615
|
+
comes when your turn started before the daemon recorded the current run's task as yours, so it
|
|
616
|
+
still holds you to the earlier run: that task is sent again. When a task arrives, do what it
|
|
617
|
+
asks; if the work it asks for is already committed, call `handoff_complete` again, and never redo
|
|
618
|
+
the work or write a second handoff.
|
|
615
619
|
- `HANDOFF_NOT_CURRENT_PHASE` — names your role, the issue, and the phase it is in now. The issue
|
|
616
620
|
has left your phase; report to the architect rather than completing again.
|
|
617
621
|
- `HANDOFF_NO_RUN` — names neither: it says this claim has taken no task, so the daemon cannot
|
|
618
622
|
tell which run you are reporting. Your pane is completing outside any assignment. Say so to the
|
|
619
623
|
architect; do not re-run the phase.
|
|
620
624
|
- `HANDOFF_ALREADY_RECORDED` — names your role, the phase, the review round and the commit. This
|
|
621
|
-
exact call was received before, and its first answer stands
|
|
622
|
-
|
|
623
|
-
|
|
625
|
+
exact call was received before, and its first answer stands: accepted, or a refusal the daemon
|
|
626
|
+
records with the call — `HANDOFF_STALE_GENERATION`, `HANDOFF_NOT_CURRENT_PHASE`,
|
|
627
|
+
`READY_REQUIRED` or `HANDOFF_NOT_NEW`. `HANDOFF_NO_RUN` is never that first answer, since it is
|
|
628
|
+
given before anything is recorded. Sending it again changes nothing; if you did not see that
|
|
629
|
+
first answer, tell the architect so and quote this one.
|
|
624
630
|
|
|
625
631
|
Quote the answer verbatim in what you tell the architect: with the run and phase it names, the
|
|
626
632
|
difference between "my work is lost" and "my work belongs to the previous run" is visible.
|