@sjawhar/opencode-legion-envoy 0.24.0 → 0.25.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.
@@ -13948,25 +13948,10 @@ var LegionDaemonApi = {
13948
13948
  request: architectCapability.extend({ issue: nonEmptyString, comment: string2().optional() }),
13949
13949
  response: object({})
13950
13950
  },
13951
- SpawnToken: {
13952
- request: architectCapability.extend({ issue: nonEmptyString, role: legionRole }),
13953
- response: object({ spawnToken: nonEmptyString })
13954
- },
13955
13951
  ProvisioningCredential: {
13956
13952
  request: architectCapability.extend({ issue: nonEmptyString }),
13957
13953
  response: object({ token: nonEmptyString })
13958
13954
  },
13959
- RoleBacking: {
13960
- request: strictObject({
13961
- tree: nonEmptyString,
13962
- issue: nonEmptyString,
13963
- role: legionRole,
13964
- sessionId: nonEmptyString,
13965
- agentId: nonEmptyString,
13966
- spawnToken: nonEmptyString
13967
- }),
13968
- response: object({})
13969
- },
13970
13955
  WorkerStarted: {
13971
13956
  request: strictObject({
13972
13957
  tree: nonEmptyString,
@@ -14013,20 +13998,6 @@ var LegionDaemonApi = {
14013
13998
  roleToken: nonEmptyString
14014
13999
  })
14015
14000
  },
14016
- Phase: {
14017
- request: strictObject({
14018
- tree: nonEmptyString,
14019
- issue: nonEmptyString,
14020
- phase: nonEmptyString,
14021
- sessionId: nonEmptyString,
14022
- spawnToken: nonEmptyString
14023
- }),
14024
- response: object({
14025
- secret: nonEmptyString,
14026
- gitName: nonEmptyString,
14027
- gitEmail: nonEmptyString
14028
- })
14029
- },
14030
14001
  WorkerSession: {
14031
14002
  request: strictObject({
14032
14003
  sessionId: nonEmptyString,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/opencode-legion-envoy",
3
- "version": "0.24.0",
3
+ "version": "0.25.0",
4
4
  "type": "module",
5
5
  "main": "dist/src/server.js",
6
6
  "exports": {
@@ -213,7 +213,7 @@ corresponding lifecycle procedure.
213
213
  | `pr-closed-unmerged` | Decide from current scope whether to reopen the work, send a fresh implementer, or cancel it with a reason. Delegate the repository action to the responsible phase worker and keep ownership. |
214
214
  | `issue-comment` | Interpret the comment in the issue's design context. Answer it, adjust the plan, or relay it via `envoy_publish` to the responsible worker's role token; scope and product decisions remain with you. |
215
215
  | `catchup-overseer` | Verify its gates, child counts, and PR verdicts against current artifacts, then resume the applicable numbered lifecycle step. It is a current-state snapshot, not a raw-event replay. For each entry in its `phaseCompletions` (`{issue, role, summary, at}`, phases that completed while you were not live), handle it exactly as a `phase-complete` wake. |
216
- | `revive-worker` | The extension has revived the backed worker. Do not create a duplicate; message the restored worker via `envoy_publish` to its role token if action is needed and rely on its committed handoff over recollection. |
216
+ | `worker-died` | Payload `{type:"worker-died", issue, role}`. The daemon probed and retried this role's worker through `MAX_LAUNCH_FAILURES` attempts and could not confirm a boot never a raw-event replay or a silent revive. Reassess the work and `spawn_worker` again for the role (it resumes the same agent via `--resume` if a session file survived) or reassign it if the failure looks environmental, not agent-specific. |
217
217
  | `reopened` | Reopen the root lifecycle: inspect the reason and current artifacts, reassess scope and children, and resume at the first applicable numbered step. |
218
218
 
219
219
  ## Escalation judgment