@sjawhar/pi-legion-envoy 0.22.0 → 0.23.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 +0 -29
- package/dist/legion.js +0 -29
- package/dist/skills/legion-architect/SKILL.md +1 -1
- package/package.json +1 -1
package/dist/envoy.js
CHANGED
|
@@ -30065,25 +30065,10 @@ var LegionDaemonApi = {
|
|
|
30065
30065
|
request: architectCapability.extend({ issue: nonEmptyString, comment: string2().optional() }),
|
|
30066
30066
|
response: object({})
|
|
30067
30067
|
},
|
|
30068
|
-
SpawnToken: {
|
|
30069
|
-
request: architectCapability.extend({ issue: nonEmptyString, role: legionRole }),
|
|
30070
|
-
response: object({ spawnToken: nonEmptyString })
|
|
30071
|
-
},
|
|
30072
30068
|
ProvisioningCredential: {
|
|
30073
30069
|
request: architectCapability.extend({ issue: nonEmptyString }),
|
|
30074
30070
|
response: object({ token: nonEmptyString })
|
|
30075
30071
|
},
|
|
30076
|
-
RoleBacking: {
|
|
30077
|
-
request: strictObject({
|
|
30078
|
-
tree: nonEmptyString,
|
|
30079
|
-
issue: nonEmptyString,
|
|
30080
|
-
role: legionRole,
|
|
30081
|
-
sessionId: nonEmptyString,
|
|
30082
|
-
agentId: nonEmptyString,
|
|
30083
|
-
spawnToken: nonEmptyString
|
|
30084
|
-
}),
|
|
30085
|
-
response: object({})
|
|
30086
|
-
},
|
|
30087
30072
|
WorkerStarted: {
|
|
30088
30073
|
request: strictObject({
|
|
30089
30074
|
tree: nonEmptyString,
|
|
@@ -30130,20 +30115,6 @@ var LegionDaemonApi = {
|
|
|
30130
30115
|
roleToken: nonEmptyString
|
|
30131
30116
|
})
|
|
30132
30117
|
},
|
|
30133
|
-
Phase: {
|
|
30134
|
-
request: strictObject({
|
|
30135
|
-
tree: nonEmptyString,
|
|
30136
|
-
issue: nonEmptyString,
|
|
30137
|
-
phase: nonEmptyString,
|
|
30138
|
-
sessionId: nonEmptyString,
|
|
30139
|
-
spawnToken: nonEmptyString
|
|
30140
|
-
}),
|
|
30141
|
-
response: object({
|
|
30142
|
-
secret: nonEmptyString,
|
|
30143
|
-
gitName: nonEmptyString,
|
|
30144
|
-
gitEmail: nonEmptyString
|
|
30145
|
-
})
|
|
30146
|
-
},
|
|
30147
30118
|
WorkerSession: {
|
|
30148
30119
|
request: strictObject({
|
|
30149
30120
|
sessionId: nonEmptyString,
|
package/dist/legion.js
CHANGED
|
@@ -30063,25 +30063,10 @@ var LegionDaemonApi = {
|
|
|
30063
30063
|
request: architectCapability.extend({ issue: nonEmptyString, comment: string2().optional() }),
|
|
30064
30064
|
response: object({})
|
|
30065
30065
|
},
|
|
30066
|
-
SpawnToken: {
|
|
30067
|
-
request: architectCapability.extend({ issue: nonEmptyString, role: legionRole }),
|
|
30068
|
-
response: object({ spawnToken: nonEmptyString })
|
|
30069
|
-
},
|
|
30070
30066
|
ProvisioningCredential: {
|
|
30071
30067
|
request: architectCapability.extend({ issue: nonEmptyString }),
|
|
30072
30068
|
response: object({ token: nonEmptyString })
|
|
30073
30069
|
},
|
|
30074
|
-
RoleBacking: {
|
|
30075
|
-
request: strictObject({
|
|
30076
|
-
tree: nonEmptyString,
|
|
30077
|
-
issue: nonEmptyString,
|
|
30078
|
-
role: legionRole,
|
|
30079
|
-
sessionId: nonEmptyString,
|
|
30080
|
-
agentId: nonEmptyString,
|
|
30081
|
-
spawnToken: nonEmptyString
|
|
30082
|
-
}),
|
|
30083
|
-
response: object({})
|
|
30084
|
-
},
|
|
30085
30070
|
WorkerStarted: {
|
|
30086
30071
|
request: strictObject({
|
|
30087
30072
|
tree: nonEmptyString,
|
|
@@ -30128,20 +30113,6 @@ var LegionDaemonApi = {
|
|
|
30128
30113
|
roleToken: nonEmptyString
|
|
30129
30114
|
})
|
|
30130
30115
|
},
|
|
30131
|
-
Phase: {
|
|
30132
|
-
request: strictObject({
|
|
30133
|
-
tree: nonEmptyString,
|
|
30134
|
-
issue: nonEmptyString,
|
|
30135
|
-
phase: nonEmptyString,
|
|
30136
|
-
sessionId: nonEmptyString,
|
|
30137
|
-
spawnToken: nonEmptyString
|
|
30138
|
-
}),
|
|
30139
|
-
response: object({
|
|
30140
|
-
secret: nonEmptyString,
|
|
30141
|
-
gitName: nonEmptyString,
|
|
30142
|
-
gitEmail: nonEmptyString
|
|
30143
|
-
})
|
|
30144
|
-
},
|
|
30145
30116
|
WorkerSession: {
|
|
30146
30117
|
request: strictObject({
|
|
30147
30118
|
sessionId: nonEmptyString,
|
|
@@ -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
|
-
| `
|
|
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
|