wicked-crew 0.16.9 → 0.16.11
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/api/auth.d.ts.map +1 -1
- package/dist/api/auth.js +13 -2
- package/dist/api/auth.js.map +1 -1
- package/dist/api/mcp.d.ts +2 -2
- package/dist/api/routes.d.ts +179 -160
- package/dist/api/routes.d.ts.map +1 -1
- package/dist/api/routes.js +239 -3
- package/dist/api/routes.js.map +1 -1
- package/dist/api/server.d.ts.map +1 -1
- package/dist/api/server.js +42 -0
- package/dist/api/server.js.map +1 -1
- package/dist/api/system-snapshot.d.ts.map +1 -1
- package/dist/api/system-snapshot.js +15 -0
- package/dist/api/system-snapshot.js.map +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +5 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/core/adapter.d.ts +14 -0
- package/dist/core/adapter.d.ts.map +1 -1
- package/dist/core/adapter.js +42 -0
- package/dist/core/adapter.js.map +1 -1
- package/dist/core/deliver-text.d.ts +31 -0
- package/dist/core/deliver-text.d.ts.map +1 -1
- package/dist/core/deliver-text.js +65 -1
- package/dist/core/deliver-text.js.map +1 -1
- package/dist/core/types.d.ts +7 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js +3 -0
- package/dist/core/types.js.map +1 -1
- package/dist/insights/analyze.d.ts +1 -1
- package/dist/insights/analyze.d.ts.map +1 -1
- package/dist/insights/analyze.js +5 -0
- package/dist/insights/analyze.js.map +1 -1
- package/dist/insights/run-facts.d.ts +16 -0
- package/dist/insights/run-facts.d.ts.map +1 -1
- package/dist/insights/run-facts.js +30 -0
- package/dist/insights/run-facts.js.map +1 -1
- package/dist/interactive/chat-events.d.ts +7 -0
- package/dist/interactive/chat-events.d.ts.map +1 -1
- package/dist/interactive/chat-events.js +19 -1
- package/dist/interactive/chat-events.js.map +1 -1
- package/dist/interactive/doc-delete-routes.d.ts.map +1 -1
- package/dist/interactive/doc-delete-routes.js +5 -0
- package/dist/interactive/doc-delete-routes.js.map +1 -1
- package/dist/interactive/edit-events.d.ts.map +1 -1
- package/dist/interactive/edit-events.js +12 -1
- package/dist/interactive/edit-events.js.map +1 -1
- package/dist/interactive/proxy-routes.d.ts +7 -0
- package/dist/interactive/proxy-routes.d.ts.map +1 -1
- package/dist/interactive/proxy-routes.js +45 -2
- package/dist/interactive/proxy-routes.js.map +1 -1
- package/dist/interactive/review-events.d.ts +2 -0
- package/dist/interactive/review-events.d.ts.map +1 -1
- package/dist/interactive/review-events.js +7 -0
- package/dist/interactive/review-events.js.map +1 -1
- package/dist/interactive/theme-events.d.ts +2 -0
- package/dist/interactive/theme-events.d.ts.map +1 -1
- package/dist/interactive/theme-events.js +7 -0
- package/dist/interactive/theme-events.js.map +1 -1
- package/dist/standing-orders/routes.d.ts +19 -19
- package/dist/standing-orders/store.d.ts +9 -9
- package/dist/working-doc/bridge-backend.d.ts +11 -0
- package/dist/working-doc/bridge-backend.d.ts.map +1 -0
- package/dist/working-doc/bridge-backend.js +140 -0
- package/dist/working-doc/bridge-backend.js.map +1 -0
- package/dist/working-doc/routes.d.ts +21 -0
- package/dist/working-doc/routes.d.ts.map +1 -0
- package/dist/working-doc/routes.js +85 -0
- package/dist/working-doc/routes.js.map +1 -0
- package/dist/working-doc/sections.d.ts +36 -0
- package/dist/working-doc/sections.d.ts.map +1 -0
- package/dist/working-doc/sections.js +85 -0
- package/dist/working-doc/sections.js.map +1 -0
- package/dist/working-doc/service.d.ts +183 -0
- package/dist/working-doc/service.d.ts.map +1 -0
- package/dist/working-doc/service.js +366 -0
- package/dist/working-doc/service.js.map +1 -0
- package/dist/working-doc/store.d.ts +105 -0
- package/dist/working-doc/store.d.ts.map +1 -0
- package/dist/working-doc/store.js +71 -0
- package/dist/working-doc/store.js.map +1 -0
- package/endpoint-manifest.json +73 -1
- package/package.json +2 -2
package/dist/api/routes.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
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;sEACkE;IAClE,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC;;;;mGAI+F;IAC/F,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B;;wDAEoD;IACpD,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;mCAE+B;IAC/B,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB;kFAC8E;IAC9E,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtD;;wDAEoD;IACpD,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;CACnD;AAED;;;GAGG;AACH;;;GAGG;AACH,eAAO,MAAM,cAAc;;;IAGzB,kFAAkF;;IAElF,6DAA6D;;IAE7D;0EACsE;;IAEtE;qGACiG;;IAEjG,uGAAuG;;IAEvG,mGAAmG;;;;;;;;;;;IAEnG;sDACkD;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEzC,CAAC;AAgGZ,wBAAgB,cAAc,CAC5B,GAAG,EAAE,eAAe,EACpB,OAAO,EAAE,WAAW,EACpB,SAAS,EAAE,SAAS,EACpB,gBAAgB,EAAE,gBAAgB,EAGlC,QAAQ,GAAE,iBAAqF,EAK/F,QAAQ,GAAE,YAA0D,EAGpE,OAAO,GAAE,WAAgB,GACxB,gBAAgB,CAu0OlB"}
|
package/dist/api/routes.js
CHANGED
|
@@ -493,6 +493,9 @@ export const LaunchSchema = z.object({
|
|
|
493
493
|
* "full assurance", the same as omitting it: the launcher never chooses for the caller, and a
|
|
494
494
|
* full-assurance launch on a one-CLI roster is answered with `assuranceNotice` (`core/assurance.ts`). */
|
|
495
495
|
reducedAssurance: z.boolean().optional(),
|
|
496
|
+
/** (api-types 0.149.0, program DES-POWER-MODE) Power mode for this launch. Omitted: the daemon's
|
|
497
|
+
* `powerModeDefault` setting (on when unset). Applies to a repo-scoped plan or preset launch only. */
|
|
498
|
+
power: z.boolean().optional(),
|
|
496
499
|
/** QE-IN-APP-WORKFLOWS (api-types 0.106.0) — the operator's EXPLICIT skip of a required QE
|
|
497
500
|
* acceptance, with a reason (labelled on the run, every gate and the delivery), or its explicit
|
|
498
501
|
* force (no score waiver). Forwarded only when sent; crew never decides either for the caller,
|
|
@@ -613,6 +616,9 @@ const InjectSchema = z.object({
|
|
|
613
616
|
// same shape the automatic stall-watchdog escalation uses for an unknown failover target.
|
|
614
617
|
const ReassignSchema = z.object({
|
|
615
618
|
cli: z.string().min(1).optional(),
|
|
619
|
+
/** crew#1153: an operator note that rides a GATED reassign as the approve's amendment. Trimmed in
|
|
620
|
+
* the route; blank counts as absent. The byte cap (on the raw note) is checked there too so the 400 names the limit. */
|
|
621
|
+
note: z.string().optional(),
|
|
616
622
|
}).strict();
|
|
617
623
|
export const OpenTerminalSchema = z.object({
|
|
618
624
|
cwd: z.string().min(1),
|
|
@@ -1315,6 +1321,10 @@ runtime = {}) {
|
|
|
1315
1321
|
defaultEvals: app.hasRoute({ method: 'GET', url: `${V}/testing/default-evals/suites` }),
|
|
1316
1322
|
insights: app.hasRoute({ method: 'GET', url: `${V}/insights` }),
|
|
1317
1323
|
schedules: app.hasRoute({ method: 'GET', url: `${V}/schedules` }),
|
|
1324
|
+
// api-types 0.148.0 (power mode spike 3): a run's working document and steering from it.
|
|
1325
|
+
workingDoc: app.hasRoute({ method: 'GET', url: `${V}/runs/:id/working-doc` }),
|
|
1326
|
+
// (api-types 0.149.0) Power mode: the routes are served AND the engine runs it.
|
|
1327
|
+
powerMode: powerSupported(),
|
|
1318
1328
|
};
|
|
1319
1329
|
// wicked-core#411 / crew#497: the state-home blocker rides the health probe as a WARNING. The
|
|
1320
1330
|
// daemon still SERVES (status stays ok — studio must load and show the blocker) but refuses to
|
|
@@ -2165,6 +2175,31 @@ runtime = {}) {
|
|
|
2165
2175
|
// assurance on anyone's behalf (a one-CLI launch that did not is TOLD so in its answer, below).
|
|
2166
2176
|
if (b.reducedAssurance === true)
|
|
2167
2177
|
input.reducedAssurance = true;
|
|
2178
|
+
// (program DES-POWER-MODE, operator ruling 2026-10-29) POWER MODE is the default way a job runs:
|
|
2179
|
+
// the launch's own word, else the `powerModeDefault` setting (on when unset). Only a repo-scoped
|
|
2180
|
+
// plan or preset launch can run as one orchestrator session, and only on an engine that carries it
|
|
2181
|
+
// (any other launch is phased, said in the answer). A power launch has no plan-approval gate:
|
|
2182
|
+
// the only human gate is deliver, plus what policy requires (a high-risk plan still holds).
|
|
2183
|
+
let powerNotice = null;
|
|
2184
|
+
// The caller's word, else the setting (read only when the launch did not say).
|
|
2185
|
+
const powerWanted = b.power ?? (b.repoRef !== undefined && (b.workflow !== undefined || b.plan !== undefined)
|
|
2186
|
+
? ((await adapter.getSettings()).powerModeDefault ?? true)
|
|
2187
|
+
: false);
|
|
2188
|
+
if (powerWanted) {
|
|
2189
|
+
// A plan, or a workflow the engine resolves to a PRESET (a registered def is planned the legacy way
|
|
2190
|
+
// and has no orchestrator build): only those run in power mode, so only those lose run-level gates.
|
|
2191
|
+
const isPreset = b.plan !== undefined || (b.workflow !== undefined && await namesPreset(b.workflow, b.projectId));
|
|
2192
|
+
if (b.repoRef === undefined || !isPreset) {
|
|
2193
|
+
powerNotice = 'power mode runs a repo-scoped plan or preset launch; this launch runs phased';
|
|
2194
|
+
}
|
|
2195
|
+
else if (!powerSupported()) {
|
|
2196
|
+
powerNotice = 'this engine has no power mode; the launch runs phased';
|
|
2197
|
+
}
|
|
2198
|
+
else {
|
|
2199
|
+
input.power = true;
|
|
2200
|
+
input.humanConfirm = 'none';
|
|
2201
|
+
}
|
|
2202
|
+
}
|
|
2168
2203
|
// QE-IN-APP-WORKFLOWS: the operator's explicit skip (with its reason) or force — forwarded only
|
|
2169
2204
|
// when sent, never inferred.
|
|
2170
2205
|
if (b.skipQeAcceptance !== undefined)
|
|
@@ -2317,6 +2352,8 @@ runtime = {}) {
|
|
|
2317
2352
|
// trail says what the run will actually do, and whether the daemon decided it.
|
|
2318
2353
|
deliver,
|
|
2319
2354
|
...(deliverDefaulted ? { deliverDefaulted: true } : {}),
|
|
2355
|
+
// program DES-POWER-MODE: the run's resolved switch, and whether the setting decided it.
|
|
2356
|
+
...(input.power === true ? { power: true, ...(b.power === undefined ? { powerDefaulted: true } : {}) } : {}),
|
|
2320
2357
|
// wicked-core#850: the caller's explicit assurance choice (the engine persists the contract
|
|
2321
2358
|
// on the session; this records WHO waived it).
|
|
2322
2359
|
...(b.reducedAssurance !== undefined ? { reducedAssurance: b.reducedAssurance } : {}),
|
|
@@ -2383,7 +2420,9 @@ runtime = {}) {
|
|
|
2383
2420
|
// can evaluate or judge it; the answer names the explicit opt-in to relaunch with.
|
|
2384
2421
|
const notice = launchAssuranceNotice({ runId, reducedAssurance: b.reducedAssurance, engineClisJson: engineRosterJson(input.clisJson) });
|
|
2385
2422
|
const assuranceNotice = notice === null ? {} : { assuranceNotice: notice };
|
|
2386
|
-
|
|
2423
|
+
// (program DES-POWER-MODE) Whether the run is in power mode, and why not when it was wanted.
|
|
2424
|
+
const power = { ...(input.power === true ? { power: true } : {}), ...(powerNotice !== null ? { powerNotice } : {}) };
|
|
2425
|
+
return reply.code(201).send({ runId, ...(linkedIssues !== undefined ? { linkedIssues } : {}), ...freeText, ...skillsWarning, ...assuranceNotice, ...power });
|
|
2387
2426
|
}
|
|
2388
2427
|
catch (err) {
|
|
2389
2428
|
const msg = message(err);
|
|
@@ -4801,6 +4840,176 @@ runtime = {}) {
|
|
|
4801
4840
|
return reply.code(409).send({ error: message(err) });
|
|
4802
4841
|
}
|
|
4803
4842
|
});
|
|
4843
|
+
/** Whether `workflow` names a preset the engine resolves first (built-in or the project's). An engine
|
|
4844
|
+
* without presets, or a read that fails, answers `false`: the launch then keeps its gates. Hoisted. */
|
|
4845
|
+
async function namesPreset(workflow, projectId) {
|
|
4846
|
+
if (typeof adapter.listPresets !== 'function')
|
|
4847
|
+
return false;
|
|
4848
|
+
try {
|
|
4849
|
+
return (await adapter.listPresets(projectId)).some((p) => p.name === workflow);
|
|
4850
|
+
}
|
|
4851
|
+
catch {
|
|
4852
|
+
return false;
|
|
4853
|
+
}
|
|
4854
|
+
}
|
|
4855
|
+
/** The linked engine runs power mode (an adapter double without the method does not). Hoisted. */
|
|
4856
|
+
function powerSupported() {
|
|
4857
|
+
return typeof adapter.supportsPowerMode === 'function' && adapter.supportsPowerMode();
|
|
4858
|
+
}
|
|
4859
|
+
// ── Power mode (program DES-POWER-MODE; api-types 0.149.0) ─────────────────────────────────────
|
|
4860
|
+
// The engine computes every rigor value; these routes only carry a person's switch, raise or pause
|
|
4861
|
+
// answer to it (human actors only: a worker or plugin bearer gets 403) and read its record back.
|
|
4862
|
+
const RIGORS = ['light', 'standard', 'high', 'highest'];
|
|
4863
|
+
/** A trimmed free-text field: empty is absent (`null`), never `""`. */
|
|
4864
|
+
const textOrNull = (v) => (v === undefined || v === null || v.trim() === '' ? null : v.trim());
|
|
4865
|
+
const PowerToggleSchema = z.object({ on: z.boolean(), reason: z.string().trim().max(2000).nullish() }).strict();
|
|
4866
|
+
const RigorRaiseSchema = z.object({ atLeast: z.enum(RIGORS), reason: z.string().trim().min(1).max(2000) }).strict();
|
|
4867
|
+
const PowerPauseSchema = z
|
|
4868
|
+
.object({ decision: z.enum(['continue_high', 'continue', 'switch_phased', 'stop']), note: z.string().trim().max(8000).nullish() })
|
|
4869
|
+
.strict();
|
|
4870
|
+
/** An engine refusal as HTTP: `not_found:` 404, `conflict:` 409, `refused:` / `bad_request:` 409 / 400. */
|
|
4871
|
+
const powerError = (reply, err) => {
|
|
4872
|
+
const msg = message(err);
|
|
4873
|
+
const reason = msg.replace(/^(?:Error: )?(?:not_found|conflict|refused|bad_request): /, '');
|
|
4874
|
+
if (/\bnot_found:/.test(msg))
|
|
4875
|
+
return reply.code(404).send({ error: 'Run not found', reason });
|
|
4876
|
+
if (/\bbad_request:/.test(msg))
|
|
4877
|
+
return reply.code(400).send({ error: 'Invalid request', reason });
|
|
4878
|
+
return reply.code(409).send({ error: 'Refused', reason });
|
|
4879
|
+
};
|
|
4880
|
+
const powerView = async (id) => {
|
|
4881
|
+
const view = (await adapter.sessionsDetail()).find((v) => v.session.id === id);
|
|
4882
|
+
if (view === undefined)
|
|
4883
|
+
return null;
|
|
4884
|
+
const power = view.session.power ?? null;
|
|
4885
|
+
if (power === null) {
|
|
4886
|
+
return {
|
|
4887
|
+
runId: id, on: false, available: false, refusedReason: 'this run was launched phased', rigor: null, plan: null,
|
|
4888
|
+
history: [], toggles: [], orchestrator: { cli: null, ord: null, turns: 0, inTurn: false, sessionRestarts: 0 },
|
|
4889
|
+
turnLog: [], checkpoints: 0, handoff: null, pause: null, outcome: null, floors: [],
|
|
4890
|
+
};
|
|
4891
|
+
}
|
|
4892
|
+
return { runId: id, ...power };
|
|
4893
|
+
};
|
|
4894
|
+
app.get(`${V}/runs/:id/power`, async (req, reply) => {
|
|
4895
|
+
const { id } = req.params;
|
|
4896
|
+
const view = await powerView(id);
|
|
4897
|
+
if (view === null)
|
|
4898
|
+
return reply.code(404).send({ error: 'Run not found' });
|
|
4899
|
+
return reply.send(view);
|
|
4900
|
+
});
|
|
4901
|
+
app.post(`${V}/runs/:id/power`, async (req, reply) => {
|
|
4902
|
+
const { id } = req.params;
|
|
4903
|
+
const parsed = PowerToggleSchema.safeParse(req.body);
|
|
4904
|
+
if (!parsed.success)
|
|
4905
|
+
return reply.code(400).send(invalidBody(parsed.error, 'Invalid request body'));
|
|
4906
|
+
const actor = actorOf(req);
|
|
4907
|
+
if (!isHumanOperator(actor))
|
|
4908
|
+
return reply.code(403).send({ error: 'Only a person can flip power mode' });
|
|
4909
|
+
if (!powerSupported())
|
|
4910
|
+
return reply.code(501).send({ error: 'This engine has no power mode' });
|
|
4911
|
+
try {
|
|
4912
|
+
const reason = textOrNull(parsed.data.reason);
|
|
4913
|
+
const st = await adapter.setPowerMode(id, parsed.data.on, actor.id, reason);
|
|
4914
|
+
audit.record('run.power_mode.toggled', actor, { runId: id, detail: { on: parsed.data.on, reason } });
|
|
4915
|
+
return reply.send({ runId: id, ...st });
|
|
4916
|
+
}
|
|
4917
|
+
catch (err) {
|
|
4918
|
+
return powerError(reply, err);
|
|
4919
|
+
}
|
|
4920
|
+
});
|
|
4921
|
+
app.post(`${V}/runs/:id/rigor`, async (req, reply) => {
|
|
4922
|
+
const { id } = req.params;
|
|
4923
|
+
const parsed = RigorRaiseSchema.safeParse(req.body);
|
|
4924
|
+
if (!parsed.success)
|
|
4925
|
+
return reply.code(400).send(invalidBody(parsed.error, 'Invalid request body'));
|
|
4926
|
+
const actor = actorOf(req);
|
|
4927
|
+
if (!isHumanOperator(actor))
|
|
4928
|
+
return reply.code(403).send({ error: 'Only a person can raise rigor' });
|
|
4929
|
+
if (!powerSupported())
|
|
4930
|
+
return reply.code(501).send({ error: 'This engine has no power mode' });
|
|
4931
|
+
try {
|
|
4932
|
+
const st = await adapter.raiseRigor(id, parsed.data.atLeast, actor.id, parsed.data.reason);
|
|
4933
|
+
audit.record('run.rigor.raised', actor, { runId: id, detail: { atLeast: parsed.data.atLeast, reason: parsed.data.reason } });
|
|
4934
|
+
return reply.send({ runId: id, ...st });
|
|
4935
|
+
}
|
|
4936
|
+
catch (err) {
|
|
4937
|
+
return powerError(reply, err);
|
|
4938
|
+
}
|
|
4939
|
+
});
|
|
4940
|
+
app.post(`${V}/runs/:id/power/pause`, async (req, reply) => {
|
|
4941
|
+
const { id } = req.params;
|
|
4942
|
+
const parsed = PowerPauseSchema.safeParse(req.body);
|
|
4943
|
+
if (!parsed.success)
|
|
4944
|
+
return reply.code(400).send(invalidBody(parsed.error, 'Invalid request body'));
|
|
4945
|
+
const actor = actorOf(req);
|
|
4946
|
+
if (!isHumanOperator(actor))
|
|
4947
|
+
return reply.code(403).send({ error: 'Only a person can answer a power-mode pause' });
|
|
4948
|
+
if (!powerSupported())
|
|
4949
|
+
return reply.code(501).send({ error: 'This engine has no power mode' });
|
|
4950
|
+
try {
|
|
4951
|
+
const note = textOrNull(parsed.data.note);
|
|
4952
|
+
const st = await adapter.answerPowerPause(id, parsed.data.decision, note, actor.id);
|
|
4953
|
+
audit.record('run.power_mode.paused', actor, { runId: id, detail: { decision: parsed.data.decision } });
|
|
4954
|
+
if (decisions !== null && note !== null) {
|
|
4955
|
+
decisions.track(ingestDecision(decisions, {
|
|
4956
|
+
host: 'inject', actor, words: note, projectId: projects.index.projectOf(id) ?? null, runId: id,
|
|
4957
|
+
}));
|
|
4958
|
+
}
|
|
4959
|
+
return reply.send({ runId: id, ...st });
|
|
4960
|
+
}
|
|
4961
|
+
catch (err) {
|
|
4962
|
+
return powerError(reply, err);
|
|
4963
|
+
}
|
|
4964
|
+
});
|
|
4965
|
+
/** The run's `wicked.run.*` bus mirror after a cursor (`RunBusPage`). Read through the engine's own bus
|
|
4966
|
+
* read and filtered to this run; a page scans at most 1000 bus rows past the cursor. */
|
|
4967
|
+
app.get(`${V}/runs/:id/bus`, async (req, reply) => {
|
|
4968
|
+
const { id } = req.params;
|
|
4969
|
+
const q = req.query;
|
|
4970
|
+
const after = Math.max(0, Number.parseInt(q.after ?? '0', 10) || 0);
|
|
4971
|
+
const limit = Math.min(500, Math.max(1, Number.parseInt(q.limit ?? '200', 10) || 200));
|
|
4972
|
+
const first = adapter.readBus(after, 1000, 'wicked.run.');
|
|
4973
|
+
if (first === null)
|
|
4974
|
+
return reply.code(503).send({ error: 'This daemon has no bus' });
|
|
4975
|
+
const rows = [];
|
|
4976
|
+
// Scan until `limit` rows of THIS run, or the bus tail (bounded: at most 20 batches per request).
|
|
4977
|
+
// The cursor is the last row returned, or `after` when none matched: an empty page means "nothing
|
|
4978
|
+
// yet", never "skipped" (a later read resumes exactly where this one stopped).
|
|
4979
|
+
let scan = after;
|
|
4980
|
+
for (let batch = 0; batch < 20 && rows.length < limit; batch++) {
|
|
4981
|
+
let page;
|
|
4982
|
+
try {
|
|
4983
|
+
page = JSON.parse(await (batch === 0 ? first : adapter.readBus(scan, 1000, 'wicked.run.')));
|
|
4984
|
+
}
|
|
4985
|
+
catch (err) {
|
|
4986
|
+
if (rows.length > 0)
|
|
4987
|
+
break;
|
|
4988
|
+
return reply.code(503).send({ error: `The bus could not be read: ${message(err)}` });
|
|
4989
|
+
}
|
|
4990
|
+
const events = page.rows ?? [];
|
|
4991
|
+
if (events.length === 0)
|
|
4992
|
+
break;
|
|
4993
|
+
for (const e of events) {
|
|
4994
|
+
const eventId = Number(e['event_id'] ?? 0);
|
|
4995
|
+
scan = Math.max(scan, eventId);
|
|
4996
|
+
// The engine's read decodes payloads; a non-object payload (another producer's row) is skipped.
|
|
4997
|
+
const payload = e['payload'];
|
|
4998
|
+
if (payload === null || typeof payload !== 'object' || Array.isArray(payload))
|
|
4999
|
+
continue;
|
|
5000
|
+
const pl = payload;
|
|
5001
|
+
if (pl['runId'] !== id)
|
|
5002
|
+
continue;
|
|
5003
|
+
rows.push({ eventId, seq: Number(pl['seq'] ?? 0), type: String(e['event_type'] ?? ''), runId: id, at: Number(pl['at'] ?? 0), payload: pl });
|
|
5004
|
+
if (rows.length >= limit)
|
|
5005
|
+
break;
|
|
5006
|
+
}
|
|
5007
|
+
if (typeof page.next === 'number' && page.next <= scan && events.length < 1000)
|
|
5008
|
+
break;
|
|
5009
|
+
}
|
|
5010
|
+
const cursor = rows.length > 0 ? rows[rows.length - 1].eventId : after;
|
|
5011
|
+
return reply.send({ rows, cursor });
|
|
5012
|
+
});
|
|
4804
5013
|
/**
|
|
4805
5014
|
* crew#1058 / #1083 round 7: the runs with a reassign in flight. A second reassign of the same run
|
|
4806
5015
|
* is refused before it queues on the decision lock — queued, it would act on the state the first
|
|
@@ -4835,6 +5044,15 @@ runtime = {}) {
|
|
|
4835
5044
|
if (!parsed.success) {
|
|
4836
5045
|
return reply.code(400).send(invalidBody(parsed.error, 'Invalid request body'));
|
|
4837
5046
|
}
|
|
5047
|
+
// A blank note is absent whatever its length; the cap is on the RAW bytes of a non-blank note
|
|
5048
|
+
// as sent (padding counts), checked before the trim.
|
|
5049
|
+
const rawNote = parsed.data.note;
|
|
5050
|
+
const note = rawNote?.trim() || undefined;
|
|
5051
|
+
if (note !== undefined && Buffer.byteLength(rawNote, 'utf8') > GUIDANCE_MAX_BYTES) {
|
|
5052
|
+
return reply.code(400).send({
|
|
5053
|
+
error: `note exceeds the ${GUIDANCE_MAX_BYTES}-byte cap — a note this size belongs in the problem statement or a linked doc`,
|
|
5054
|
+
});
|
|
5055
|
+
}
|
|
4838
5056
|
// One reassign per run at a time, refused rather than queued (crew#1083 round 7), then the gate
|
|
4839
5057
|
// decision lock every confirming path shares, held from this read of the run through the re-seat
|
|
4840
5058
|
// and the confirm (crew#1083 round 5).
|
|
@@ -4880,6 +5098,11 @@ runtime = {}) {
|
|
|
4880
5098
|
error: `run ${id} is awaiting a steering-author propose gate — approve or reject it via POST /runs/${id}/gate (the approve lands the proposal); reassign is not a review of the rules`,
|
|
4881
5099
|
});
|
|
4882
5100
|
}
|
|
5101
|
+
if (!gated && note !== undefined) {
|
|
5102
|
+
return reply.code(400).send({
|
|
5103
|
+
error: `run ${id} is executing, not parked at a gate — a note rides only a gated reassign (it is the approve's amendment). Nothing was reassigned.`,
|
|
5104
|
+
});
|
|
5105
|
+
}
|
|
4883
5106
|
const requestedCli = parsed.data.cli;
|
|
4884
5107
|
if (requestedCli !== undefined) {
|
|
4885
5108
|
const pool = Array.isArray(run.session.clis) ? run.session.clis : [];
|
|
@@ -4905,12 +5128,14 @@ runtime = {}) {
|
|
|
4905
5128
|
}
|
|
4906
5129
|
const cursor = resolveCursorUnit(run);
|
|
4907
5130
|
const ord = cursor?.ord ?? run.session.unit_ix;
|
|
5131
|
+
let noteRode = false;
|
|
4908
5132
|
const approve = async () => {
|
|
4909
5133
|
if (typeof adapter.confirmGate !== 'function')
|
|
4910
5134
|
return; // refused above for a gated run
|
|
4911
5135
|
const who = actorOf(req);
|
|
4912
5136
|
adapter.recordGateActor?.(id, `${who.id} (${who.kind})`);
|
|
4913
|
-
const status = await adapter.confirmGate(id, true);
|
|
5137
|
+
const status = note !== undefined ? await adapter.confirmGate(id, true, note) : await adapter.confirmGate(id, true);
|
|
5138
|
+
noteRode = note !== undefined;
|
|
4914
5139
|
audit.record('gate.decided', actorOf(req), {
|
|
4915
5140
|
runId: id,
|
|
4916
5141
|
detail: { approve: true, via: 'reassign', status },
|
|
@@ -4919,7 +5144,7 @@ runtime = {}) {
|
|
|
4919
5144
|
const reassigned = (approved) => {
|
|
4920
5145
|
audit.record('run.reassigned', actorOf(req), {
|
|
4921
5146
|
runId: id,
|
|
4922
|
-
detail: { ord, ...(requestedCli !== undefined ? { cli: requestedCli } : {}), ...(gated ? { approved } : {}) },
|
|
5147
|
+
detail: { ord, ...(requestedCli !== undefined ? { cli: requestedCli } : {}), ...(gated ? { approved } : {}), ...(noteRode ? { note: true } : {}) },
|
|
4923
5148
|
});
|
|
4924
5149
|
};
|
|
4925
5150
|
if (gated && requestedCli !== undefined) {
|
|
@@ -6499,6 +6724,16 @@ runtime = {}) {
|
|
|
6499
6724
|
.send({ error: "deliverDefault must be 'pr' or 'none'" });
|
|
6500
6725
|
}
|
|
6501
6726
|
}
|
|
6727
|
+
// powerModeDefault (api-types 0.149.0, program DES-POWER-MODE): a boolean only. It decides how every
|
|
6728
|
+
// later New job runs, so a typo is a 400 and only a PERSON may change it (a worker's bearer gets 403).
|
|
6729
|
+
if (Object.hasOwn(patch, 'powerModeDefault')) {
|
|
6730
|
+
if (typeof patch.powerModeDefault !== 'boolean') {
|
|
6731
|
+
return reply.code(400).send({ error: 'powerModeDefault must be true or false' });
|
|
6732
|
+
}
|
|
6733
|
+
if (!isHumanOperator(actorOf(req))) {
|
|
6734
|
+
return reply.code(403).send({ error: 'Only a person can change the power mode default (powerModeDefault)' });
|
|
6735
|
+
}
|
|
6736
|
+
}
|
|
6502
6737
|
// qeAcceptance (api-types 0.120.0): 'required' | 'off' only. 'off' skips QE acceptance on every
|
|
6503
6738
|
// launch that requires it (labelled with the setting), so a typo must be a 400, never a dropped key.
|
|
6504
6739
|
// Turning it off waives an assurance instrument on every launch after it, so only a PERSON may
|
|
@@ -6598,6 +6833,7 @@ runtime = {}) {
|
|
|
6598
6833
|
'workerSilentTurnMinutes',
|
|
6599
6834
|
'deliverDefault',
|
|
6600
6835
|
'qeAcceptance',
|
|
6836
|
+
'powerModeDefault',
|
|
6601
6837
|
'onboardingAutoCapture',
|
|
6602
6838
|
'deliverIdentityLogin',
|
|
6603
6839
|
'deliverIdentityByRepo',
|