@the-vibe-company/armada 0.1.16 → 0.1.17
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/README.md +6 -4
- package/dist/armada.js +76 -21
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -97,21 +97,23 @@ armada release --reason "wrong ticket"
|
|
|
97
97
|
- `report` and `release` find the ticket from `--ticket`, then `ARMADA_TICKET`, then the current git branch (`feature/abc-12-…`).
|
|
98
98
|
- Turso is optional. When it is not configured or not reachable, the commands still write Linear and print a warning.
|
|
99
99
|
|
|
100
|
-
##
|
|
100
|
+
## Plans, questions and answers
|
|
101
101
|
|
|
102
102
|
```sh
|
|
103
103
|
armada ask "Which store keeps the sessions? I recommend SQLite." --options "SQLite | Redis" # worker
|
|
104
104
|
armada inbox # coordinator: what waits, oldest first
|
|
105
105
|
armada inbox --wait # returns when a new item arrives, or after --timeout (default 300 s)
|
|
106
106
|
armada answer 12 "SQLite, for the first slice." # after delivering it in the worker's session
|
|
107
|
+
armada answer 13 "approved" # a plan, after delivering approval
|
|
107
108
|
armada answer --note ABC-12 "main moved: rebase before you ship" # an unsolicited message, same path
|
|
108
109
|
```
|
|
109
110
|
|
|
110
111
|
- `ask` reports the `blocked` phase with `Agent status: blocked — question: <first line>` (the rest and the numbered options below it) and adds a `question` item to the coordinator's inbox in Turso. The worker then stops and waits for the answer in its session, and reports the phase it resumes. It finds the ticket like `report`.
|
|
111
|
-
- `
|
|
112
|
+
- `report awaiting-approval` adds a `plan` item with the full message and worker handle to the coordinator's inbox. Same-phase heartbeats neither duplicate nor reopen it. Answering it, recording a note, leaving the phase or releasing the ticket closes the plan and any pending approval request. For a pre-approved plan, post the plan with `report implementing` instead: no approval item is needed.
|
|
113
|
+
- `inbox` lists the coordinator's open items (questions, plans, requests, hand-backs) and silent workers, oldest first. A worker is silent when it holds a ticket, its newest Turso event is older than `policy.silence_minutes`, and its phase does not wait on someone else. It reads Turso only (no Linear key) and records that the coordinator is at work, for the dashboard. `--wait` polls every 5 s and marks the items that were not there before with `*`; loop on it.
|
|
112
114
|
- A coordinator's own claim is never listed as silent in its inbox: only an exact, nonempty handle match is excluded, not its questions, requests or hand-backs. `inbox` takes the reading coordinator's handle from `ARMADA_COORDINATOR_HANDLE` first, otherwise from both `CONDUCTOR_WORKSPACE_ID` and `CONDUCTOR_SESSION_ID` joined as `workspace/session`. Blank values are ignored; with no complete identity, silence detection is unchanged. Local coordinators should set `ARMADA_COORDINATOR_HANDLE` to the handle used for their claim. The same identity is used for every `--wait` poll and the dashboard presence record; the fleet-wide `status` and dashboard silence rules are unchanged.
|
|
113
|
-
- `answer` never calls a runtime: deliver the answer first with the runtime guide's message section. It posts `Agent status: <current phase> — answer: …` on the ticket and resolves the item. An item id needs Turso; a ticket id answers that ticket's open questions and also works without Turso. `--note` records a
|
|
114
|
-
- The dashboard adds two kinds of request, signed by the person who made them.
|
|
115
|
+
- `answer` never calls a runtime: deliver the answer first with the runtime guide's message section. It posts `Agent status: <current phase> — answer: …` on the ticket and resolves the item. An item id needs Turso; a ticket id answers that ticket's open questions and plans and also works without Turso. `--note` records a delivered note as `Agent status: <phase> — note: …`; it accepts a ticket or plan item id and resolves open plans, not questions. These two are the coordinator's records: Armada never reads them as the worker's phase, hand-back or sign of life. Questions, plans and requests can be answered; `merge` resolves hand-backs, and `release` and `merge` resolve the ticket's open questions. A worker that does not report within `policy.silence_minutes` of an answer shows as silent.
|
|
116
|
+
- The dashboard adds two kinds of request, signed by the person who made them. In "Waiting for you", **Approve** opens an editable approval (`approved` by default); sending it creates an `answer-request`, just like answering a question. Deliver its text, then `armada answer <request id> "<answer>"`, which resolves the request and its question or plan and names the requester on the ticket (answering the item itself also closes a waiting request). A `launch-request` asks to launch a ready ticket on a profile: launch it as usual; the worker's `armada claim` resolves it and posts who asked. To decline one, `armada answer <request id> "<why>"`: it is closed with the reason and nothing is posted on the ticket.
|
|
115
117
|
|
|
116
118
|
## Merge a finished pull request (coordinator)
|
|
117
119
|
|
package/dist/armada.js
CHANGED
|
@@ -2492,6 +2492,15 @@ async function addInboxItem(db, item) {
|
|
|
2492
2492
|
});
|
|
2493
2493
|
return Number(rs.lastInsertRowid);
|
|
2494
2494
|
}
|
|
2495
|
+
async function putPlan(db, item) {
|
|
2496
|
+
await db.execute({
|
|
2497
|
+
sql: `INSERT INTO inbox_items (project, ticket, kind, recipient, author, body, created_at)
|
|
2498
|
+
SELECT ?, ?, 'plan', 'coordinator', ?, ?, ?
|
|
2499
|
+
WHERE NOT EXISTS (SELECT 1 FROM inbox_items
|
|
2500
|
+
WHERE project = ? AND ticket = ? AND kind = 'plan' AND resolved_at IS NULL)`,
|
|
2501
|
+
args: [item.project, item.ticket, item.author, item.body, item.at.toISOString(), item.project, item.ticket]
|
|
2502
|
+
});
|
|
2503
|
+
}
|
|
2495
2504
|
async function putHandBack(db, item) {
|
|
2496
2505
|
const updated = await db.execute({
|
|
2497
2506
|
sql: `UPDATE inbox_items SET body = ?, author = ?, created_at = ?
|
|
@@ -2552,7 +2561,7 @@ async function resolveInboxItem(db, q) {
|
|
|
2552
2561
|
async function lastAnsweredAt(db, project) {
|
|
2553
2562
|
const rs = await db.execute({
|
|
2554
2563
|
sql: `SELECT ticket, max(resolved_at) AS at FROM inbox_items
|
|
2555
|
-
WHERE project = ? AND kind
|
|
2564
|
+
WHERE project = ? AND kind IN ('question', 'plan') AND ticket IS NOT NULL AND resolved_at IS NOT NULL
|
|
2556
2565
|
GROUP BY ticket`,
|
|
2557
2566
|
args: [project]
|
|
2558
2567
|
});
|
|
@@ -2575,6 +2584,24 @@ async function resolveAnswerRequests(db, q) {
|
|
|
2575
2584
|
});
|
|
2576
2585
|
return rs.rowsAffected;
|
|
2577
2586
|
}
|
|
2587
|
+
async function resolvePlans(db, input) {
|
|
2588
|
+
const args = [input.at.toISOString(), input.resolution, input.project, input.ticket];
|
|
2589
|
+
const [, resolved] = await db.batch([
|
|
2590
|
+
{
|
|
2591
|
+
sql: `UPDATE inbox_items SET resolved_at = ?, resolution = ?
|
|
2592
|
+
WHERE project = ? AND kind = 'answer-request' AND resolved_at IS NULL
|
|
2593
|
+
AND id IN (SELECT q.item FROM inbox_requests q JOIN inbox_items i ON i.id = q.question
|
|
2594
|
+
WHERE i.project = ? AND i.ticket = ? AND i.kind = 'plan' AND i.resolved_at IS NULL)`,
|
|
2595
|
+
args: [input.at.toISOString(), input.resolution, input.project, input.project, input.ticket]
|
|
2596
|
+
},
|
|
2597
|
+
{
|
|
2598
|
+
sql: `UPDATE inbox_items SET resolved_at = ?, resolution = ?
|
|
2599
|
+
WHERE project = ? AND ticket = ? AND kind = 'plan' AND resolved_at IS NULL`,
|
|
2600
|
+
args
|
|
2601
|
+
}
|
|
2602
|
+
], "write");
|
|
2603
|
+
return resolved?.rowsAffected ?? 0;
|
|
2604
|
+
}
|
|
2578
2605
|
async function acquireLease(db, l) {
|
|
2579
2606
|
const at = l.at.toISOString();
|
|
2580
2607
|
const expires = new Date(l.at.getTime() + l.ttlMs).toISOString();
|
|
@@ -2933,6 +2960,23 @@ ${body}` : statusLine);
|
|
|
2933
2960
|
headSha: sha,
|
|
2934
2961
|
at
|
|
2935
2962
|
});
|
|
2963
|
+
if (input.phase === "awaiting-approval" && ticket.agentPhase !== input.phase) {
|
|
2964
|
+
const handle = await getRuntimeHandle(db, config.project.slug, ticket.id);
|
|
2965
|
+
await putPlan(db, {
|
|
2966
|
+
project: config.project.slug,
|
|
2967
|
+
ticket: ticket.id,
|
|
2968
|
+
author: handle && !handle.releasedAt ? handle.handle : null,
|
|
2969
|
+
body: message,
|
|
2970
|
+
at
|
|
2971
|
+
});
|
|
2972
|
+
} else if (input.phase !== "awaiting-approval") {
|
|
2973
|
+
await resolvePlans(db, {
|
|
2974
|
+
project: config.project.slug,
|
|
2975
|
+
ticket: ticket.id,
|
|
2976
|
+
resolution: `worker reported ${input.phase}`,
|
|
2977
|
+
at
|
|
2978
|
+
});
|
|
2979
|
+
}
|
|
2936
2980
|
if (input.phase === "ready-to-merge")
|
|
2937
2981
|
await putHandBack(db, {
|
|
2938
2982
|
project: config.project.slug,
|
|
@@ -2964,6 +3008,12 @@ async function releaseTicket(ctx, input) {
|
|
|
2964
3008
|
await live(ctx, warnings, "record the release", async (db) => {
|
|
2965
3009
|
await ensureProject(db, projectOf(config), at);
|
|
2966
3010
|
await releaseRuntimeHandle(db, config.project.slug, ticket.id, at);
|
|
3011
|
+
await resolvePlans(db, {
|
|
3012
|
+
project: config.project.slug,
|
|
3013
|
+
ticket: ticket.id,
|
|
3014
|
+
resolution: `ticket released: ${input.reason.trim()}`,
|
|
3015
|
+
at
|
|
3016
|
+
});
|
|
2967
3017
|
await resolveInboxItems(db, {
|
|
2968
3018
|
project: config.project.slug,
|
|
2969
3019
|
ticket: ticket.id,
|
|
@@ -3842,7 +3892,7 @@ function statusComment(phase, word, text, ref) {
|
|
|
3842
3892
|
|
|
3843
3893
|
${detail}` : line;
|
|
3844
3894
|
}
|
|
3845
|
-
var ANSWERABLE = ["question", "request", "answer-request", "launch-request"];
|
|
3895
|
+
var ANSWERABLE = ["question", "plan", "request", "answer-request", "launch-request"];
|
|
3846
3896
|
async function answerItem(ctx, input) {
|
|
3847
3897
|
const { config, linear } = ctx;
|
|
3848
3898
|
const project = config.project.slug;
|
|
@@ -3850,8 +3900,6 @@ async function answerItem(ctx, input) {
|
|
|
3850
3900
|
if (!text)
|
|
3851
3901
|
throw new Refusal(`the ${input.note ? "note" : "answer"} is empty`, input.note ? `armada answer --note ${input.target.trim()} "<message>"` : `armada answer ${input.target.trim()} "<answer>"`);
|
|
3852
3902
|
const idMatch = input.target.trim().match(ITEM_ID);
|
|
3853
|
-
if (input.note && idMatch)
|
|
3854
|
-
throw new Refusal("a note goes to a ticket, not to an inbox item", 'armada answer --note <ticket> "<message>"');
|
|
3855
3903
|
const warnings = [];
|
|
3856
3904
|
const lines = [];
|
|
3857
3905
|
let item = null;
|
|
@@ -3860,6 +3908,8 @@ async function answerItem(ctx, input) {
|
|
|
3860
3908
|
if (idMatch) {
|
|
3861
3909
|
itemId = Number(idMatch[1]);
|
|
3862
3910
|
item = await live(ctx, warnings, `read inbox item #${itemId}`, (db) => getInboxItem(db, project, itemId ?? 0));
|
|
3911
|
+
if (input.note && item?.kind !== "plan")
|
|
3912
|
+
throw new Refusal("a note goes to a ticket or a plan, not to another inbox item", 'armada answer --note <ticket> "<message>"');
|
|
3863
3913
|
if (!item)
|
|
3864
3914
|
throw new Refusal(warnings.length ? `inbox item #${itemId} cannot be read (${warnings.join("; ")})` : `inbox item #${itemId} does not exist in project ${project}`, warnings.length ? 'armada answer <ticket> "<answer>", to answer by ticket instead' : "armada inbox");
|
|
3865
3915
|
if (item.resolvedAt)
|
|
@@ -3873,13 +3923,15 @@ async function answerItem(ctx, input) {
|
|
|
3873
3923
|
ticketId = input.target.trim().toUpperCase();
|
|
3874
3924
|
if (!input.note) {
|
|
3875
3925
|
const open = await live(ctx, warnings, `read the open questions of ${ticketId}`, (db) => openInboxItems(db, { project, recipient: "coordinator", ticket: ticketId ?? "" }));
|
|
3876
|
-
if (open && !open.some((i) => i.kind === "question"))
|
|
3877
|
-
throw new Refusal(`${ticketId} has no open question in the inbox`, `armada answer --note ${ticketId} "<message>", for an unsolicited message`);
|
|
3926
|
+
if (open && !open.some((i) => i.kind === "question" || i.kind === "plan"))
|
|
3927
|
+
throw new Refusal(`${ticketId} has no open question or plan in the inbox`, `armada answer --note ${ticketId} "<message>", for an unsolicited message`);
|
|
3878
3928
|
}
|
|
3879
3929
|
}
|
|
3880
3930
|
if (item?.kind === "launch-request")
|
|
3881
3931
|
return declineLaunch(ctx, item, text, warnings);
|
|
3882
3932
|
const question = item?.kind === "answer-request" ? item.request?.question ?? null : null;
|
|
3933
|
+
const answered = question === null ? item : await live(ctx, warnings, `read the item answered by #${item?.id}`, (db) => getInboxItem(db, project, question));
|
|
3934
|
+
const answerKind = answered?.kind === "plan" ? "plan" : "question";
|
|
3883
3935
|
let url = "";
|
|
3884
3936
|
if (ticketId) {
|
|
3885
3937
|
const ticket = await linear.readTicket(ticketId);
|
|
@@ -3892,7 +3944,7 @@ async function answerItem(ctx, input) {
|
|
|
3892
3944
|
throw new Refusal(`${ticket.id} has no agent phase: no worker holds it, so there is no one to tell`, "armada status, to see which tickets are in flight");
|
|
3893
3945
|
warnings.push(`${ticket.id} has no agent phase (no worker holds it); the answer was not posted on the ticket`);
|
|
3894
3946
|
} else {
|
|
3895
|
-
const ref = item?.kind === "answer-request" ? `Answers ${question === null ? "the open question" :
|
|
3947
|
+
const ref = item?.kind === "answer-request" ? `Answers ${question === null ? "the open question or plan" : `${answerKind} #${question}`}, as ${item.author ?? "the owner"} asked from the dashboard (request #${item.id}).` : itemId === null ? null : `Answers ${answerKind} #${itemId}.`;
|
|
3896
3948
|
await linear.comment(ticket.uuid, statusComment(ticket.agentPhase, input.note ? "note" : "answer", text, ref));
|
|
3897
3949
|
lines.push(`${input.note ? "Note" : "Answer"} posted on ${ticket.id} (${ticket.agentPhase}).`);
|
|
3898
3950
|
}
|
|
@@ -3901,6 +3953,8 @@ async function answerItem(ctx, input) {
|
|
|
3901
3953
|
const recorded = await live(ctx, warnings, `record the ${input.note ? "note" : "answer"}`, async (db) => {
|
|
3902
3954
|
await ensureProject(db, projectOf(config), at);
|
|
3903
3955
|
if (input.note) {
|
|
3956
|
+
if (ticketId)
|
|
3957
|
+
await resolvePlans(db, { project, ticket: ticketId, resolution: text, at });
|
|
3904
3958
|
const id = await addInboxItem(db, {
|
|
3905
3959
|
project,
|
|
3906
3960
|
ticket: ticketId,
|
|
@@ -3916,17 +3970,18 @@ async function answerItem(ctx, input) {
|
|
|
3916
3970
|
if (item?.kind === "answer-request") {
|
|
3917
3971
|
await resolveInboxItem(db, { project, id: item.id, resolution: text, at });
|
|
3918
3972
|
const closed = question !== null && await resolveInboxItem(db, { project, id: question, resolution: text, at });
|
|
3919
|
-
return `Dashboard request #${item.id} delivered${closed ? `;
|
|
3973
|
+
return `Dashboard request #${item.id} delivered${closed ? `; ${answerKind} #${question} resolved` : ""}.`;
|
|
3920
3974
|
}
|
|
3921
3975
|
if (itemId !== null) {
|
|
3922
3976
|
const done = await resolveInboxItem(db, { project, id: itemId, resolution: text, at });
|
|
3923
|
-
if (item?.kind === "question")
|
|
3977
|
+
if (item?.kind === "question" || item?.kind === "plan")
|
|
3924
3978
|
await resolveAnswerRequests(db, { project, question: itemId, resolution: text, at });
|
|
3925
3979
|
return done ? `Inbox item #${itemId} resolved.` : `Inbox item #${itemId} was already resolved.`;
|
|
3926
3980
|
}
|
|
3927
3981
|
const n = await resolveInboxItems(db, { project, ticket: ticketId ?? "", kind: "question", resolution: text, at });
|
|
3982
|
+
const plans = await resolvePlans(db, { project, ticket: ticketId ?? "", resolution: text, at });
|
|
3928
3983
|
await resolveInboxItems(db, { project, ticket: ticketId ?? "", kind: "answer-request", resolution: text, at });
|
|
3929
|
-
return `${n} open question${n === 1 ? "" : "s"} of ${ticketId} resolved.`;
|
|
3984
|
+
return `${n} open question${n === 1 ? "" : "s"}${plans ? ` and ${plans} plan${plans === 1 ? "" : "s"}` : ""} of ${ticketId} resolved.`;
|
|
3930
3985
|
});
|
|
3931
3986
|
if (recorded)
|
|
3932
3987
|
lines.push(recorded);
|
|
@@ -4838,10 +4893,10 @@ A coordinator may start cold, on a laptop or in a fresh cloud session, with noth
|
|
|
4838
4893
|
|
|
4839
4894
|
## Loop
|
|
4840
4895
|
|
|
4841
|
-
1. **Read the fleet** with \`armada status\` and \`armada inbox\`, never from memory. Done when you can name every ticket in flight and its phase, every ready ticket, every pull request waiting, every silent worker and every pending question or request.
|
|
4842
|
-
2. **Answer what waits for you first.** For each question in \`armada inbox\`: decide it, or escalate it to the owner when it is a product decision and wait for theirs. Deliver the
|
|
4896
|
+
1. **Read the fleet** with \`armada status\` and \`armada inbox\`, never from memory. Done when you can name every ticket in flight and its phase, every ready ticket, every pull request waiting, every silent worker and every pending question, plan or request.
|
|
4897
|
+
2. **Answer what waits for you first.** For each question in \`armada inbox\`: decide it, or escalate it to the owner when it is a product decision and wait for theirs. For each \`plan\` item: read the full plan, approve it or give concrete amendments. Deliver the decision in the worker's session with the runtime guide's *message* section, then record it with \`armada answer <item> "approved"\` or \`armada answer <item> "<amendments and reason>"\`. The worker resumes with \`implementing\` on approval, or returns to \`planning\` and submits a revised plan. \`armada answer\` only records; it never reaches the worker. Decide reversible choices yourself and prefer the option that keeps behaviour observable. When two workers need the same shared resource (a migration slot, a generated file, a version number), set the rule once and tell both. A message the worker did not ask for (main moved, rebase needed) takes the same path: deliver it with the runtime guide, then \`armada answer --note <ticket> "<message>"\`. Done when the inbox shows no open question or plan.
|
|
4843
4898
|
3. **Carry out the owner's dashboard requests.** They are the owner's word, signed with their name; they never reached a worker.
|
|
4844
|
-
- \`answer-request\` (it names the question it answers, \`answers #<id>\`): deliver its text in the worker's session with the runtime guide's *message* section, as the owner's answer, then \`armada answer <request id> "<the text you delivered>"\`. That resolves the request and its question, and the ticket names who answered. If the
|
|
4899
|
+
- \`answer-request\` (it names the question or plan it answers, \`answers #<id>\`): deliver its text in the worker's session with the runtime guide's *message* section, as the owner's answer or plan approval, then \`armada answer <request id> "<the text you delivered>"\`. That resolves the request and its question or plan, and the ticket names who answered. If the item is gone (the worker was released or changed phase), \`armada answer <request id> "<why>"\` closes it.
|
|
4845
4900
|
- \`launch-request\` (it names the profile the owner chose): launch the ticket as in step 5, with that profile. When it differs from the routed one, the request's body gives the \`--profile\` and \`--reason\` to pass to \`armada brief\` and to the worker's claim. The worker's \`armada claim\` resolves the request and posts who asked. If the ticket must not start (it collides with work in flight, or its plan changed), decline it: \`armada answer <request id> "<why>"\`, and tell the owner in your report.
|
|
4846
4901
|
Done when the inbox shows no open request.
|
|
4847
4902
|
4. **Check silent workers** with the runtime guide's *status* section. A worker that is still working gets a nudge to report; a worker that died is relaunched or its ticket released.
|
|
@@ -4889,7 +4944,7 @@ You are a worker. You own exactly one ticket, named in your launch brief. You tu
|
|
|
4889
4944
|
|
|
4890
4945
|
1. **Claim** with the exact command your brief starts with, for example \`armada claim <ticket> --runtime conductor --handle "$CONDUCTOR_WORKSPACE_ID/$CONDUCTOR_SESSION_ID"\`. Install the Armada version the brief names first; if it gives a fallback command, use it wherever this skill says \`armada\`. It assigns the ticket, moves it to In Progress, sets \`Agent phase = planning\` and your \`Agent runtime\`, and posts the \`Agent claim\` comment. If it refuses because another claim exists, stop: the older claim wins.
|
|
4891
4946
|
2. **Branch.** Use the branch named after the ticket (the tracker suggests one, for example \`feature/abc-12-short-title\`), created from the latest default branch.
|
|
4892
|
-
3. **Plan.** Write the plan: what changes, how it is tested, and the checks a person could observe when it is done. If your brief says plans are pre-approved, post
|
|
4947
|
+
3. **Plan.** Write the plan: what changes, how it is tested, and the checks a person could observe when it is done. If the ticket's plan policy or your brief says plans are pre-approved, post the full plan with \`armada report implementing --message "<plan>"\` and go on; do not enter \`awaiting-approval\`. Otherwise post the full plan with \`armada report awaiting-approval --message "<plan>"\`: it creates a \`plan\` item in the coordinator's inbox. Push your branch and wait for the coordinator's decision in your session. On approval, report \`implementing\`; on amendments, report \`planning\`, revise the plan and submit it for approval again.
|
|
4893
4948
|
4. **Implement** test-first. A material change to the approved plan needs a new approval.
|
|
4894
4949
|
5. **Ship.** \`armada report shipping --pr <number>\`. Use the \`ship-pr-dev\` skill when the repository has it; otherwise run the repository's local checks, open the pull request with a Commitizen title (\`feat(scope): …\`), link it on the ticket, and fix CI until every required check is green.
|
|
4895
4950
|
6. **Rebase** on the latest default branch right before hand-back, and get CI green on that final head.
|
|
@@ -5270,7 +5325,7 @@ async function loadStatus(config, opts) {
|
|
|
5270
5325
|
});
|
|
5271
5326
|
}
|
|
5272
5327
|
// package.json
|
|
5273
|
-
var version = "0.1.
|
|
5328
|
+
var version = "0.1.17";
|
|
5274
5329
|
|
|
5275
5330
|
// src/io.ts
|
|
5276
5331
|
class UsageError extends Error {
|
|
@@ -6032,7 +6087,7 @@ function renderInbox(r) {
|
|
|
6032
6087
|
out.push(`${e.new ? "* " : " "}${head}`, ...e.body.split(`
|
|
6033
6088
|
`).map((l) => l ? ` ${l}` : ""));
|
|
6034
6089
|
}
|
|
6035
|
-
if (r.items.some((e) => e.kind === "question"))
|
|
6090
|
+
if (r.items.some((e) => e.kind === "question" || e.kind === "plan"))
|
|
6036
6091
|
out.push(`Deliver each answer in the worker's session with the runtime guide, then record it: armada answer <id> "<answer>".`);
|
|
6037
6092
|
if (r.items.some((e) => e.kind === "answer-request" || e.kind === "launch-request"))
|
|
6038
6093
|
out.push('Dashboard requests: deliver an answer-request, then armada answer <id> "<answer>"; launch a launch-request (its claim resolves it), or decline it with armada answer <id> "<why>".');
|
|
@@ -6811,16 +6866,16 @@ var COMMAND_HELP = {
|
|
|
6811
6866
|
for the answer in your session, and report the phase you resume
|
|
6812
6867
|
`,
|
|
6813
6868
|
inbox: ` inbox [--wait [--timeout <seconds>]]
|
|
6814
|
-
Coordinator: open questions, requests, hand-backs and silent workers,
|
|
6869
|
+
Coordinator: open questions, plans, requests, hand-backs and silent workers,
|
|
6815
6870
|
oldest first; records that the coordinator is at work. --wait returns
|
|
6816
6871
|
when a new item arrives or after --timeout (default 300 s). Needs Turso
|
|
6817
6872
|
`,
|
|
6818
6873
|
answer: ` answer <item|ticket> "<answer>"
|
|
6819
6874
|
Coordinator: record an answer already delivered in the worker's
|
|
6820
|
-
session (runtime guide): resolves the question and posts it on
|
|
6821
|
-
ticket. A ticket id answers its open questions. Never calls a runtime
|
|
6822
|
-
answer --note <ticket> "<message>"
|
|
6823
|
-
Coordinator: record
|
|
6875
|
+
session (runtime guide): resolves the question or plan and posts it on
|
|
6876
|
+
the ticket. A ticket id answers its open questions and plans. Never calls a runtime
|
|
6877
|
+
answer --note <ticket|plan item> "<message>"
|
|
6878
|
+
Coordinator: record a delivered note; an open plan is resolved
|
|
6824
6879
|
`,
|
|
6825
6880
|
merge: ` merge <pr> [--ticket <id>] [--dry-run] [--no-lock]
|
|
6826
6881
|
Coordinator: check a handed-back pull request (hand-back SHA = head,
|