@hearsay-tools/squawk 0.18.0-pr4170.8048 → 0.18.0-pr4172.8055
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/automations/agent-tools.d.ts +2 -0
- package/dist/automations/agent-tools.js +24 -0
- package/dist/automations/agent-tools.js.map +1 -0
- package/dist/automations/tool-catalog.d.ts +119 -0
- package/dist/automations/tool-catalog.js +48 -0
- package/dist/automations/tool-catalog.js.map +1 -0
- package/dist/automations/tool-client.d.ts +9 -0
- package/dist/automations/tool-client.js +19 -0
- package/dist/automations/tool-client.js.map +1 -0
- package/dist/automations/tool-env.d.ts +1 -0
- package/dist/automations/tool-env.js +3 -0
- package/dist/automations/tool-env.js.map +1 -0
- package/dist/automations/tool-errors.d.ts +9 -0
- package/dist/automations/tool-errors.js +34 -0
- package/dist/automations/tool-errors.js.map +1 -0
- package/dist/automations/tool-session.d.ts +5 -0
- package/dist/automations/tool-session.js +19 -0
- package/dist/automations/tool-session.js.map +1 -0
- package/dist/automations/tools.d.ts +325 -0
- package/dist/automations/tools.js +30 -0
- package/dist/automations/tools.js.map +1 -0
- package/dist/built-in-tool-definitions.d.ts +0 -2
- package/dist/built-in-tool-definitions.js +3 -35
- package/dist/built-in-tool-definitions.js.map +1 -1
- package/dist/built-in-tools.js +4 -2
- package/dist/built-in-tools.js.map +1 -1
- package/dist/built-in-wait-kinds.d.ts +3 -0
- package/dist/built-in-wait-kinds.js +10 -0
- package/dist/built-in-wait-kinds.js.map +1 -0
- package/dist/ci-wait/client.d.ts +0 -17
- package/dist/ci-wait/client.js +0 -31
- package/dist/ci-wait/client.js.map +1 -1
- package/dist/ci-wait/controller.js +1 -2
- package/dist/ci-wait/controller.js.map +1 -1
- package/dist/ci-wait/errors.d.ts +1 -14
- package/dist/ci-wait/errors.js +0 -68
- package/dist/ci-wait/errors.js.map +1 -1
- package/dist/ci-wait/tool-catalog.d.ts +13 -313
- package/dist/ci-wait/tool-catalog.js +14 -89
- package/dist/ci-wait/tool-catalog.js.map +1 -1
- package/dist/ci-wait/tool-definition.d.ts +21 -0
- package/dist/ci-wait/tool-definition.js +9 -0
- package/dist/ci-wait/tool-definition.js.map +1 -0
- package/dist/ci-wait/tool-registry.d.ts +2 -0
- package/dist/ci-wait/tool-registry.js.map +1 -1
- package/dist/ci-wait/tools.d.ts +2 -381
- package/dist/ci-wait/tools.js +3 -46
- package/dist/ci-wait/tools.js.map +1 -1
- package/dist/delegation/park-notice.js +2 -2
- package/dist/delegation/park-notice.js.map +1 -1
- package/dist/delegation/routes.d.ts +14 -14
- package/dist/delegation/transport.d.ts +12 -12
- package/dist/preview/agent-address.js +1 -1
- package/dist/preview/agent-address.js.map +1 -1
- package/dist/preview/agent-tools.d.ts +2 -0
- package/dist/preview/agent-tools.js +18 -0
- package/dist/preview/agent-tools.js.map +1 -0
- package/dist/preview/registration.js +1 -1
- package/dist/preview/registration.js.map +1 -1
- package/dist/preview/run-tools.d.ts +1 -0
- package/dist/preview/run-tools.js +2 -1
- package/dist/preview/run-tools.js.map +1 -1
- package/dist/preview/tool-catalog.d.ts +146 -0
- package/dist/preview/tool-catalog.js +14 -0
- package/dist/preview/tool-catalog.js.map +1 -0
- package/dist/preview/tool-client.d.ts +8 -0
- package/dist/preview/tool-client.js +16 -0
- package/dist/preview/tool-client.js.map +1 -0
- package/dist/preview/tool-env.d.ts +2 -0
- package/dist/preview/tool-env.js +4 -0
- package/dist/preview/tool-env.js.map +1 -0
- package/dist/preview/tool-errors.d.ts +7 -0
- package/dist/preview/tool-errors.js +36 -0
- package/dist/preview/tool-errors.js.map +1 -0
- package/dist/preview/tool-session.d.ts +6 -0
- package/dist/preview/tool-session.js +9 -0
- package/dist/preview/tool-session.js.map +1 -0
- package/dist/preview/tools.d.ts +57 -0
- package/dist/preview/tools.js +18 -0
- package/dist/preview/tools.js.map +1 -0
- package/dist/runs/run-archive.d.ts +72 -72
- package/dist/serve-command.d.ts +1 -1
- package/dist/serve-command.js +1 -1
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/preview-cdp-socket.js +1 -1
- package/dist/server/preview-socket.js +1 -1
- package/dist/server/server.d.ts +6 -6
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/dist/subcommands.js +3 -0
- package/dist/subcommands.js.map +1 -1
- package/dist/workflows/continuation-admission.d.ts +72 -72
- package/dist/workflows/run/compose.d.ts +1 -1
- package/dist/workflows/run/compose.js +2 -2
- package/dist/workflows/run/compose.js.map +1 -1
- package/dist/workflows/run/continuation-session.js +2 -2
- package/dist/workflows/run/continuation-session.js.map +1 -1
- package/dist/workflows/run/done-accepted.js +4 -4
- package/dist/workflows/run/done-accepted.js.map +1 -1
- package/dist/workflows/run/input-batch.js +2 -2
- package/dist/workflows/run/input-batch.js.map +1 -1
- package/dist/workflows/run/input-delivery.js +2 -2
- package/dist/workflows/run/input-delivery.js.map +1 -1
- package/dist/workflows/run/squawk-tools.d.ts +7 -10
- package/dist/workflows/run/squawk-tools.js +8 -18
- package/dist/workflows/run/squawk-tools.js.map +1 -1
- package/dist/workflows/run/step-loop.js +2 -2
- package/dist/workflows/run/step-loop.js.map +1 -1
- package/dist/workflows/run/subagent-waits.js +2 -2
- package/dist/workflows/run/subagent-waits.js.map +1 -1
- package/dist/workflows/run/turn-settler.js +2 -2
- package/dist/workflows/run/turn-settler.js.map +1 -1
- package/dist/workflows/run/wait-engine.d.ts +75 -73
- package/dist/workflows/run/wait-engine.js +50 -6
- package/dist/workflows/run/wait-engine.js.map +1 -1
- package/dist/workflows/run/wait-input-descriptors.d.ts +3 -0
- package/dist/workflows/run/wait-input-descriptors.js +30 -0
- package/dist/workflows/run/wait-input-descriptors.js.map +1 -0
- package/dist/workflows/run/wait-kind-registry.d.ts +73 -0
- package/dist/workflows/run/wait-kind-registry.js +35 -0
- package/dist/workflows/run/wait-kind-registry.js.map +1 -0
- package/dist/workflows/run/wait-kinds.d.ts +1033 -4
- package/dist/workflows/run/wait-kinds.js +45 -9
- package/dist/workflows/run/wait-kinds.js.map +1 -1
- package/dist/workflows/run/wait-registration-tool.js +3 -3
- package/dist/workflows/run/wait-registration-tool.js.map +1 -1
- package/dist/workflows/run/wait-registration.js +13 -8
- package/dist/workflows/run/wait-registration.js.map +1 -1
- package/dist/workflows/run/wait-registry.d.ts +5 -1
- package/dist/workflows/run/wait-registry.js +42 -2
- package/dist/workflows/run/wait-registry.js.map +1 -1
- package/dist/workflows/run/wake-admission.js +7 -3
- package/dist/workflows/run/wake-admission.js.map +1 -1
- package/dist/workflows/run.d.ts +1 -1
- package/dist/workflows/run.js.map +1 -1
- package/dist/workflows/waits.d.ts +3 -8
- package/dist/workflows/waits.js +10 -15
- package/dist/workflows/waits.js.map +1 -1
- package/package.json +4 -4
- package/scripts/benchmark-runtime.ts +3 -0
- package/scripts/measure-transcript-facts-health.mjs +3 -0
- package/scripts/mock-wire-tools.mjs +3 -0
- package/dist/ci-wait/tool-env.d.ts +0 -4
- package/dist/ci-wait/tool-env.js +0 -11
- package/dist/ci-wait/tool-env.js.map +0 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CiToolSession } from '../ci-wait/controller.ts';
|
|
2
|
+
import type { RunStore } from '../runs/store.ts';
|
|
3
|
+
import { type PreviewHostLike } from './registration.ts';
|
|
4
|
+
export declare function decoratePreviewSession(session: CiToolSession, store: RunStore, dataDir: string, runId: string, host: PreviewHostLike | undefined, cockpitOrigin: string | undefined): CiToolSession;
|
|
5
|
+
/** Bind the trusted run identity before the tool accepts model input. */
|
|
6
|
+
export declare function previewSessionHandlers(host: Pick<import('../workflows/run/squawk-tools.ts').ToolHost, 'registerPreviewServer' | 'stopPreviewServer'>, runId: string): Pick<import('../ci-wait/controller.ts').SquawkToolHandlers, 'registerPreview' | 'stopPreview'>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { previewCdpSession, previewRunContext } from './registration.js';
|
|
2
|
+
export function decoratePreviewSession(session, store, dataDir, runId, host, cockpitOrigin) {
|
|
3
|
+
return previewCdpSession(session, { host, cockpitOrigin, runId, worktree: !!store.getRun(runId)?.worktreePath, context: () => previewRunContext(store, dataDir, runId) });
|
|
4
|
+
}
|
|
5
|
+
/** Bind the trusted run identity before the tool accepts model input. */
|
|
6
|
+
export function previewSessionHandlers(host, runId) {
|
|
7
|
+
return { registerPreview: (request, signal) => host.registerPreviewServer(runId, request, signal), stopPreview: (request, signal) => host.stopPreviewServer(runId, request, signal) };
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=tool-session.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-session.js","sourceRoot":"","sources":["../../src/preview/tool-session.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAwB,MAAM,mBAAmB,CAAC;AAE/F,MAAM,UAAU,sBAAsB,CAAC,OAAsB,EAAE,KAAe,EAAE,OAAe,EAAE,KAAa,EAAE,IAAiC,EAAE,aAAiC;IAClL,OAAO,iBAAiB,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,YAAY,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;AAC5K,CAAC;AAED,yEAAyE;AACzE,MAAM,UAAU,sBAAsB,CAAC,IAA8G,EAAE,KAAa;IAClK,OAAO,EAAE,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,qBAAqB,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,CAAC;AACxL,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { SquawkTool } from '../ci-wait/tools.ts';
|
|
2
|
+
import { callPreviewServe, callPreviewStop } from './tool-client.ts';
|
|
3
|
+
/** JSON first, then the hint as a plain sentence: the shape every Squawk tool answers in. */
|
|
4
|
+
export declare function invokePreviewTool(input: unknown): Promise<{
|
|
5
|
+
content: {
|
|
6
|
+
type: 'text';
|
|
7
|
+
text: string;
|
|
8
|
+
}[];
|
|
9
|
+
isError: boolean;
|
|
10
|
+
details: {
|
|
11
|
+
ok: boolean;
|
|
12
|
+
code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
|
|
13
|
+
message: string;
|
|
14
|
+
hint: string;
|
|
15
|
+
};
|
|
16
|
+
}>;
|
|
17
|
+
export declare function formatPreviewTool(result: Awaited<ReturnType<typeof callPreviewServe>>): {
|
|
18
|
+
content: {
|
|
19
|
+
type: 'text';
|
|
20
|
+
text: string;
|
|
21
|
+
}[];
|
|
22
|
+
isError: boolean;
|
|
23
|
+
details: {
|
|
24
|
+
ok: boolean;
|
|
25
|
+
code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
|
|
26
|
+
message: string;
|
|
27
|
+
hint: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export declare function invokePreviewStopTool(input: unknown): Promise<{
|
|
31
|
+
content: {
|
|
32
|
+
type: 'text';
|
|
33
|
+
text: string;
|
|
34
|
+
}[];
|
|
35
|
+
isError: boolean;
|
|
36
|
+
details: {
|
|
37
|
+
ok: boolean;
|
|
38
|
+
code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
|
|
39
|
+
message: string;
|
|
40
|
+
hint: string;
|
|
41
|
+
};
|
|
42
|
+
}>;
|
|
43
|
+
export declare function formatPreviewStopTool(result: Awaited<ReturnType<typeof callPreviewStop>>): {
|
|
44
|
+
content: {
|
|
45
|
+
type: 'text';
|
|
46
|
+
text: string;
|
|
47
|
+
}[];
|
|
48
|
+
isError: boolean;
|
|
49
|
+
details: {
|
|
50
|
+
ok: boolean;
|
|
51
|
+
code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
|
|
52
|
+
message: string;
|
|
53
|
+
hint: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export declare const PREVIEW_STOP_TOOL: SquawkTool;
|
|
57
|
+
export declare const PREVIEW_TOOL: SquawkTool;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { previewToolDefinition, previewStopToolDefinition } from './tool-catalog.js';
|
|
2
|
+
import { callPreviewServe, callPreviewStop } from './tool-client.js';
|
|
3
|
+
/** JSON first, then the hint as a plain sentence: the shape every Squawk tool answers in. */
|
|
4
|
+
export async function invokePreviewTool(input) {
|
|
5
|
+
return formatPreviewTool(await callPreviewServe(input));
|
|
6
|
+
}
|
|
7
|
+
export function formatPreviewTool(result) {
|
|
8
|
+
return { content: [{ type: 'text', text: `${JSON.stringify(result)}\n${result.hint}` }], isError: !result.ok, details: result };
|
|
9
|
+
}
|
|
10
|
+
export async function invokePreviewStopTool(input) {
|
|
11
|
+
return formatPreviewStopTool(await callPreviewStop(input));
|
|
12
|
+
}
|
|
13
|
+
export function formatPreviewStopTool(result) {
|
|
14
|
+
return { content: [{ type: 'text', text: `${JSON.stringify(result)}\n${result.hint}` }], isError: !result.ok, details: result };
|
|
15
|
+
}
|
|
16
|
+
export const PREVIEW_STOP_TOOL = { definition: previewStopToolDefinition, trigger: `load when your Squawk-started preview server needs stopping or restarting.`, label: 'Stop live preview', invoke: invokePreviewStopTool };
|
|
17
|
+
export const PREVIEW_TOOL = { definition: previewToolDefinition, trigger: 'load when you have started, or are about to start, a web server the user should click through.', label: 'Live preview', invoke: invokePreviewTool };
|
|
18
|
+
//# sourceMappingURL=tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/preview/tools.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AACrF,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACrE,6FAA6F;AAC7F,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,KAAc;IACpD,OAAO,iBAAiB,CAAC,MAAM,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC;AAC1D,CAAC;AACD,MAAM,UAAU,iBAAiB,CAAC,MAAoD;IACpF,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;AAC3I,CAAC;AACD,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,KAAc;IACxD,OAAO,qBAAqB,CAAC,MAAM,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;AAC7D,CAAC;AACD,MAAM,UAAU,qBAAqB,CAAC,MAAmD;IACvF,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;AAC3I,CAAC;AACD,MAAM,CAAC,MAAM,iBAAiB,GAAe,EAAE,UAAU,EAAE,yBAAyB,EAAE,OAAO,EAAE,4EAA4E,EAAE,KAAK,EAAE,mBAAmB,EAAE,MAAM,EAAE,qBAAqB,EAAE,CAAC;AAEzO,MAAM,CAAC,MAAM,YAAY,GAAe,EAAE,UAAU,EAAE,qBAAqB,EAAE,OAAO,EAAE,gGAAgG,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -228,6 +228,30 @@ export declare class RunArchiveTopic implements RunArchive, RunCompletionActions
|
|
|
228
228
|
deadline: string;
|
|
229
229
|
seconds: number;
|
|
230
230
|
note?: string | undefined;
|
|
231
|
+
} | {
|
|
232
|
+
id: string;
|
|
233
|
+
source: "agent" | "cezar";
|
|
234
|
+
via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
|
|
235
|
+
registeredAt: string;
|
|
236
|
+
phase: "cancelled" | "delivered" | "open" | "resolved";
|
|
237
|
+
resolvedAt?: string | undefined;
|
|
238
|
+
deliveredAt?: string | undefined;
|
|
239
|
+
cancelledAt?: string | undefined;
|
|
240
|
+
turnId: string;
|
|
241
|
+
kind: "process";
|
|
242
|
+
deadline: string;
|
|
243
|
+
timeoutSeconds: number;
|
|
244
|
+
pid: number;
|
|
245
|
+
startToken?: string | undefined;
|
|
246
|
+
exitFile?: string | undefined;
|
|
247
|
+
note?: string | undefined;
|
|
248
|
+
result?: {
|
|
249
|
+
outcome: "deadline" | "error" | "exit_file" | "exited";
|
|
250
|
+
observedAt: string;
|
|
251
|
+
exitCode?: number | undefined;
|
|
252
|
+
exitFileNote?: "not-an-exit-code" | undefined;
|
|
253
|
+
diagnostic?: string | undefined;
|
|
254
|
+
} | undefined;
|
|
231
255
|
} | {
|
|
232
256
|
id: string;
|
|
233
257
|
source: "agent" | "cezar";
|
|
@@ -289,30 +313,6 @@ export declare class RunArchiveTopic implements RunArchive, RunCompletionActions
|
|
|
289
313
|
reason: "outcome" | "timeout";
|
|
290
314
|
} | undefined;
|
|
291
315
|
wakeInputId?: string | undefined;
|
|
292
|
-
} | {
|
|
293
|
-
id: string;
|
|
294
|
-
source: "agent" | "cezar";
|
|
295
|
-
via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
|
|
296
|
-
registeredAt: string;
|
|
297
|
-
phase: "cancelled" | "delivered" | "open" | "resolved";
|
|
298
|
-
resolvedAt?: string | undefined;
|
|
299
|
-
deliveredAt?: string | undefined;
|
|
300
|
-
cancelledAt?: string | undefined;
|
|
301
|
-
turnId: string;
|
|
302
|
-
kind: "process";
|
|
303
|
-
deadline: string;
|
|
304
|
-
timeoutSeconds: number;
|
|
305
|
-
pid: number;
|
|
306
|
-
startToken?: string | undefined;
|
|
307
|
-
exitFile?: string | undefined;
|
|
308
|
-
note?: string | undefined;
|
|
309
|
-
result?: {
|
|
310
|
-
outcome: "deadline" | "error" | "exit_file" | "exited";
|
|
311
|
-
observedAt: string;
|
|
312
|
-
exitCode?: number | undefined;
|
|
313
|
-
exitFileNote?: "not-an-exit-code" | undefined;
|
|
314
|
-
diagnostic?: string | undefined;
|
|
315
|
-
} | undefined;
|
|
316
316
|
} | {
|
|
317
317
|
id: string;
|
|
318
318
|
source: "agent" | "cezar";
|
|
@@ -440,6 +440,30 @@ export declare class RunArchiveTopic implements RunArchive, RunCompletionActions
|
|
|
440
440
|
deadline: string;
|
|
441
441
|
seconds: number;
|
|
442
442
|
note?: string | undefined;
|
|
443
|
+
} | {
|
|
444
|
+
id: string;
|
|
445
|
+
source: "agent" | "cezar";
|
|
446
|
+
via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
|
|
447
|
+
registeredAt: string;
|
|
448
|
+
phase: "cancelled" | "delivered" | "open" | "resolved";
|
|
449
|
+
resolvedAt?: string | undefined;
|
|
450
|
+
deliveredAt?: string | undefined;
|
|
451
|
+
cancelledAt?: string | undefined;
|
|
452
|
+
turnId: string;
|
|
453
|
+
kind: "process";
|
|
454
|
+
deadline: string;
|
|
455
|
+
timeoutSeconds: number;
|
|
456
|
+
pid: number;
|
|
457
|
+
startToken?: string | undefined;
|
|
458
|
+
exitFile?: string | undefined;
|
|
459
|
+
note?: string | undefined;
|
|
460
|
+
result?: {
|
|
461
|
+
outcome: "deadline" | "error" | "exit_file" | "exited";
|
|
462
|
+
observedAt: string;
|
|
463
|
+
exitCode?: number | undefined;
|
|
464
|
+
exitFileNote?: "not-an-exit-code" | undefined;
|
|
465
|
+
diagnostic?: string | undefined;
|
|
466
|
+
} | undefined;
|
|
443
467
|
} | {
|
|
444
468
|
id: string;
|
|
445
469
|
source: "agent" | "cezar";
|
|
@@ -501,30 +525,6 @@ export declare class RunArchiveTopic implements RunArchive, RunCompletionActions
|
|
|
501
525
|
reason: "outcome" | "timeout";
|
|
502
526
|
} | undefined;
|
|
503
527
|
wakeInputId?: string | undefined;
|
|
504
|
-
} | {
|
|
505
|
-
id: string;
|
|
506
|
-
source: "agent" | "cezar";
|
|
507
|
-
via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
|
|
508
|
-
registeredAt: string;
|
|
509
|
-
phase: "cancelled" | "delivered" | "open" | "resolved";
|
|
510
|
-
resolvedAt?: string | undefined;
|
|
511
|
-
deliveredAt?: string | undefined;
|
|
512
|
-
cancelledAt?: string | undefined;
|
|
513
|
-
turnId: string;
|
|
514
|
-
kind: "process";
|
|
515
|
-
deadline: string;
|
|
516
|
-
timeoutSeconds: number;
|
|
517
|
-
pid: number;
|
|
518
|
-
startToken?: string | undefined;
|
|
519
|
-
exitFile?: string | undefined;
|
|
520
|
-
note?: string | undefined;
|
|
521
|
-
result?: {
|
|
522
|
-
outcome: "deadline" | "error" | "exit_file" | "exited";
|
|
523
|
-
observedAt: string;
|
|
524
|
-
exitCode?: number | undefined;
|
|
525
|
-
exitFileNote?: "not-an-exit-code" | undefined;
|
|
526
|
-
diagnostic?: string | undefined;
|
|
527
|
-
} | undefined;
|
|
528
528
|
} | {
|
|
529
529
|
id: string;
|
|
530
530
|
source: "agent" | "cezar";
|
|
@@ -651,6 +651,30 @@ export declare class RunArchiveTopic implements RunArchive, RunCompletionActions
|
|
|
651
651
|
deadline: string;
|
|
652
652
|
seconds: number;
|
|
653
653
|
note?: string | undefined;
|
|
654
|
+
} | {
|
|
655
|
+
id: string;
|
|
656
|
+
source: "agent" | "cezar";
|
|
657
|
+
via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
|
|
658
|
+
registeredAt: string;
|
|
659
|
+
phase: "cancelled" | "delivered" | "open" | "resolved";
|
|
660
|
+
resolvedAt?: string | undefined;
|
|
661
|
+
deliveredAt?: string | undefined;
|
|
662
|
+
cancelledAt?: string | undefined;
|
|
663
|
+
turnId: string;
|
|
664
|
+
kind: "process";
|
|
665
|
+
deadline: string;
|
|
666
|
+
timeoutSeconds: number;
|
|
667
|
+
pid: number;
|
|
668
|
+
startToken?: string | undefined;
|
|
669
|
+
exitFile?: string | undefined;
|
|
670
|
+
note?: string | undefined;
|
|
671
|
+
result?: {
|
|
672
|
+
outcome: "deadline" | "error" | "exit_file" | "exited";
|
|
673
|
+
observedAt: string;
|
|
674
|
+
exitCode?: number | undefined;
|
|
675
|
+
exitFileNote?: "not-an-exit-code" | undefined;
|
|
676
|
+
diagnostic?: string | undefined;
|
|
677
|
+
} | undefined;
|
|
654
678
|
} | {
|
|
655
679
|
id: string;
|
|
656
680
|
source: "agent" | "cezar";
|
|
@@ -712,30 +736,6 @@ export declare class RunArchiveTopic implements RunArchive, RunCompletionActions
|
|
|
712
736
|
reason: "outcome" | "timeout";
|
|
713
737
|
} | undefined;
|
|
714
738
|
wakeInputId?: string | undefined;
|
|
715
|
-
} | {
|
|
716
|
-
id: string;
|
|
717
|
-
source: "agent" | "cezar";
|
|
718
|
-
via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
|
|
719
|
-
registeredAt: string;
|
|
720
|
-
phase: "cancelled" | "delivered" | "open" | "resolved";
|
|
721
|
-
resolvedAt?: string | undefined;
|
|
722
|
-
deliveredAt?: string | undefined;
|
|
723
|
-
cancelledAt?: string | undefined;
|
|
724
|
-
turnId: string;
|
|
725
|
-
kind: "process";
|
|
726
|
-
deadline: string;
|
|
727
|
-
timeoutSeconds: number;
|
|
728
|
-
pid: number;
|
|
729
|
-
startToken?: string | undefined;
|
|
730
|
-
exitFile?: string | undefined;
|
|
731
|
-
note?: string | undefined;
|
|
732
|
-
result?: {
|
|
733
|
-
outcome: "deadline" | "error" | "exit_file" | "exited";
|
|
734
|
-
observedAt: string;
|
|
735
|
-
exitCode?: number | undefined;
|
|
736
|
-
exitFileNote?: "not-an-exit-code" | undefined;
|
|
737
|
-
diagnostic?: string | undefined;
|
|
738
|
-
} | undefined;
|
|
739
739
|
} | {
|
|
740
740
|
id: string;
|
|
741
741
|
source: "agent" | "cezar";
|
package/dist/serve-command.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { ProviderAuthService } from './core/provider-auth.ts';
|
|
|
5
5
|
import { detectEnvironment } from './core/backend-detect.ts';
|
|
6
6
|
import { getRepoInfo } from './server/git.ts';
|
|
7
7
|
import { sweepMergedBranches } from './server/repo-branch-sweep.ts';
|
|
8
|
-
import { previewToolEnabled } from './
|
|
8
|
+
import { previewToolEnabled } from './preview/tool-env.ts';
|
|
9
9
|
import { PreviewHost } from './preview/host.ts';
|
|
10
10
|
import { ToolActivityTracker } from './activity/tool-activity.ts';
|
|
11
11
|
import { TaskWebhooks } from './runs/webhook.ts';
|
package/dist/serve-command.js
CHANGED
|
@@ -9,7 +9,7 @@ import { ProviderAuthService } from './core/provider-auth.js';
|
|
|
9
9
|
import { detectEnvironment } from './core/backend-detect.js';
|
|
10
10
|
import { getRepoInfo } from './server/git.js';
|
|
11
11
|
import { SWEEP_MIN_INTERVAL_MS, sweepMergedBranches } from './server/repo-branch-sweep.js';
|
|
12
|
-
import { previewToolEnabled } from './
|
|
12
|
+
import { previewToolEnabled } from './preview/tool-env.js';
|
|
13
13
|
import { PreviewHost } from './preview/host.js';
|
|
14
14
|
import { ToolActivityTracker } from './activity/tool-activity.js';
|
|
15
15
|
import { TaskWebhooks } from './runs/webhook.js';
|
|
@@ -16,6 +16,12 @@ export declare function createLiveRoutes({ resolveProject, serverGeneration, res
|
|
|
16
16
|
output: {
|
|
17
17
|
generation: string;
|
|
18
18
|
results: ({
|
|
19
|
+
projectId: string;
|
|
20
|
+
runId: string;
|
|
21
|
+
type: "error" | "reset";
|
|
22
|
+
status: 400 | 404 | 409 | 413 | 503;
|
|
23
|
+
error: string;
|
|
24
|
+
} | {
|
|
19
25
|
projectId: string;
|
|
20
26
|
runId: string;
|
|
21
27
|
type: "batch";
|
|
@@ -29,12 +35,6 @@ export declare function createLiveRoutes({ resolveProject, serverGeneration, res
|
|
|
29
35
|
cursor: string;
|
|
30
36
|
afterSeq: number;
|
|
31
37
|
hasMore: boolean;
|
|
32
|
-
} | {
|
|
33
|
-
projectId: string;
|
|
34
|
-
runId: string;
|
|
35
|
-
type: "error" | "reset";
|
|
36
|
-
status: 400 | 404 | 409 | 413 | 503;
|
|
37
|
-
error: string;
|
|
38
38
|
})[];
|
|
39
39
|
};
|
|
40
40
|
outputFormat: "json";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WebSocketServer } from 'ws';
|
|
2
|
-
import { previewToolEnabled } from '../
|
|
2
|
+
import { previewToolEnabled } from '../preview/tool-env.js';
|
|
3
3
|
import { isLoopbackHostHeader } from './capabilities.js';
|
|
4
4
|
import { keepAlive, reject } from './preview-socket.js';
|
|
5
5
|
import { matchPath } from './upgrade-router.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { existsSync } from 'node:fs';
|
|
2
2
|
import { previewClientMessageSchema } from '../contract/index.js';
|
|
3
3
|
import { WebSocketServer } from 'ws';
|
|
4
|
-
import { previewToolEnabled } from '../
|
|
4
|
+
import { previewToolEnabled } from '../preview/tool-env.js';
|
|
5
5
|
import { PROJECT_ID_RE } from '../workspace/config.js';
|
|
6
6
|
import { matchPath } from './upgrade-router.js';
|
|
7
7
|
import { withProjectAdmission } from './cockpit-ownership.js';
|
package/dist/server/server.d.ts
CHANGED
|
@@ -3105,6 +3105,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3105
3105
|
output: {
|
|
3106
3106
|
generation: string;
|
|
3107
3107
|
results: ({
|
|
3108
|
+
projectId: string;
|
|
3109
|
+
runId: string;
|
|
3110
|
+
type: "error" | "reset";
|
|
3111
|
+
status: 400 | 404 | 409 | 413 | 503;
|
|
3112
|
+
error: string;
|
|
3113
|
+
} | {
|
|
3108
3114
|
projectId: string;
|
|
3109
3115
|
runId: string;
|
|
3110
3116
|
type: "batch";
|
|
@@ -3118,12 +3124,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3118
3124
|
cursor: string;
|
|
3119
3125
|
afterSeq: number;
|
|
3120
3126
|
hasMore: boolean;
|
|
3121
|
-
} | {
|
|
3122
|
-
projectId: string;
|
|
3123
|
-
runId: string;
|
|
3124
|
-
type: "error" | "reset";
|
|
3125
|
-
status: 400 | 404 | 409 | 413 | 503;
|
|
3126
|
-
error: string;
|
|
3127
3127
|
})[];
|
|
3128
3128
|
};
|
|
3129
3129
|
outputFormat: "json";
|
|
@@ -7,12 +7,6 @@ export declare function createWorkspaceLiveRoutes(live: Parameters<typeof create
|
|
|
7
7
|
output: {
|
|
8
8
|
generation: string;
|
|
9
9
|
results: ({
|
|
10
|
-
projectId: string;
|
|
11
|
-
runId: string;
|
|
12
|
-
type: "error" | "reset";
|
|
13
|
-
status: 400 | 404 | 409 | 413 | 503;
|
|
14
|
-
error: string;
|
|
15
|
-
} | {
|
|
16
10
|
projectId: string;
|
|
17
11
|
runId: string;
|
|
18
12
|
type: "batch";
|
|
@@ -26,6 +20,12 @@ export declare function createWorkspaceLiveRoutes(live: Parameters<typeof create
|
|
|
26
20
|
cursor: string;
|
|
27
21
|
afterSeq: number;
|
|
28
22
|
hasMore: boolean;
|
|
23
|
+
} | {
|
|
24
|
+
projectId: string;
|
|
25
|
+
runId: string;
|
|
26
|
+
type: "error" | "reset";
|
|
27
|
+
status: 400 | 404 | 409 | 413 | 503;
|
|
28
|
+
error: string;
|
|
29
29
|
})[];
|
|
30
30
|
};
|
|
31
31
|
outputFormat: "json";
|
package/dist/subcommands.js
CHANGED
|
@@ -29,5 +29,8 @@ export async function prepareCommandRuntime(command, argv = []) {
|
|
|
29
29
|
const { registerBuiltInTools, sealBuiltInTools } = await import('./built-in-tools.js');
|
|
30
30
|
registerBuiltInTools();
|
|
31
31
|
sealBuiltInTools();
|
|
32
|
+
const { registerBuiltInWaitKinds, sealBuiltInWaitKinds } = await import('./built-in-wait-kinds.js');
|
|
33
|
+
registerBuiltInWaitKinds();
|
|
34
|
+
sealBuiltInWaitKinds();
|
|
32
35
|
}
|
|
33
36
|
//# sourceMappingURL=subcommands.js.map
|
package/dist/subcommands.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subcommands.js","sourceRoot":"","sources":["../src/subcommands.ts"],"names":[],"mappings":"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AAuB,EAAE,CAAC;IAC1B,mBAAmB,EAAE,CAAC;IACtB,MAAM,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,GAAG,MAAM,MAAM,CAAC,mCAAmC,CAAC,CAAC;IAC7G,wBAAwB,EAAE,CAAC;IAC3B,oBAAoB,EAAE,CAAC;IACvB,MAAM,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,CAAC;IACvF,oBAAoB,EAAE,CAAC;IACvB,gBAAgB,EAAE,CAAC;IACnB,MAAM,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,CAAC;IACpG,wBAAwB,EAAE,CAAC;IAC3B,oBAAoB,EAAE,CAAC;AACzB,CAAC"}
|
|
@@ -296,30 +296,6 @@ export declare class ContinuationChecks {
|
|
|
296
296
|
deadline: string;
|
|
297
297
|
seconds: number;
|
|
298
298
|
note?: string | undefined;
|
|
299
|
-
} | {
|
|
300
|
-
id: string;
|
|
301
|
-
source: "agent" | "cezar";
|
|
302
|
-
via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
|
|
303
|
-
registeredAt: string;
|
|
304
|
-
phase: "cancelled" | "delivered" | "open" | "resolved";
|
|
305
|
-
resolvedAt?: string | undefined;
|
|
306
|
-
deliveredAt?: string | undefined;
|
|
307
|
-
cancelledAt?: string | undefined;
|
|
308
|
-
turnId: string;
|
|
309
|
-
kind: "process";
|
|
310
|
-
deadline: string;
|
|
311
|
-
timeoutSeconds: number;
|
|
312
|
-
pid: number;
|
|
313
|
-
startToken?: string | undefined;
|
|
314
|
-
exitFile?: string | undefined;
|
|
315
|
-
note?: string | undefined;
|
|
316
|
-
result?: {
|
|
317
|
-
outcome: "deadline" | "error" | "exit_file" | "exited";
|
|
318
|
-
observedAt: string;
|
|
319
|
-
exitCode?: number | undefined;
|
|
320
|
-
exitFileNote?: "not-an-exit-code" | undefined;
|
|
321
|
-
diagnostic?: string | undefined;
|
|
322
|
-
} | undefined;
|
|
323
299
|
} | {
|
|
324
300
|
id: string;
|
|
325
301
|
source: "agent" | "cezar";
|
|
@@ -381,6 +357,30 @@ export declare class ContinuationChecks {
|
|
|
381
357
|
reason: "outcome" | "timeout";
|
|
382
358
|
} | undefined;
|
|
383
359
|
wakeInputId?: string | undefined;
|
|
360
|
+
} | {
|
|
361
|
+
id: string;
|
|
362
|
+
source: "agent" | "cezar";
|
|
363
|
+
via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
|
|
364
|
+
registeredAt: string;
|
|
365
|
+
phase: "cancelled" | "delivered" | "open" | "resolved";
|
|
366
|
+
resolvedAt?: string | undefined;
|
|
367
|
+
deliveredAt?: string | undefined;
|
|
368
|
+
cancelledAt?: string | undefined;
|
|
369
|
+
turnId: string;
|
|
370
|
+
kind: "process";
|
|
371
|
+
deadline: string;
|
|
372
|
+
timeoutSeconds: number;
|
|
373
|
+
pid: number;
|
|
374
|
+
startToken?: string | undefined;
|
|
375
|
+
exitFile?: string | undefined;
|
|
376
|
+
note?: string | undefined;
|
|
377
|
+
result?: {
|
|
378
|
+
outcome: "deadline" | "error" | "exit_file" | "exited";
|
|
379
|
+
observedAt: string;
|
|
380
|
+
exitCode?: number | undefined;
|
|
381
|
+
exitFileNote?: "not-an-exit-code" | undefined;
|
|
382
|
+
diagnostic?: string | undefined;
|
|
383
|
+
} | undefined;
|
|
384
384
|
} | {
|
|
385
385
|
id: string;
|
|
386
386
|
source: "agent" | "cezar";
|
|
@@ -508,30 +508,6 @@ export declare class ContinuationChecks {
|
|
|
508
508
|
deadline: string;
|
|
509
509
|
seconds: number;
|
|
510
510
|
note?: string | undefined;
|
|
511
|
-
} | {
|
|
512
|
-
id: string;
|
|
513
|
-
source: "agent" | "cezar";
|
|
514
|
-
via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
|
|
515
|
-
registeredAt: string;
|
|
516
|
-
phase: "cancelled" | "delivered" | "open" | "resolved";
|
|
517
|
-
resolvedAt?: string | undefined;
|
|
518
|
-
deliveredAt?: string | undefined;
|
|
519
|
-
cancelledAt?: string | undefined;
|
|
520
|
-
turnId: string;
|
|
521
|
-
kind: "process";
|
|
522
|
-
deadline: string;
|
|
523
|
-
timeoutSeconds: number;
|
|
524
|
-
pid: number;
|
|
525
|
-
startToken?: string | undefined;
|
|
526
|
-
exitFile?: string | undefined;
|
|
527
|
-
note?: string | undefined;
|
|
528
|
-
result?: {
|
|
529
|
-
outcome: "deadline" | "error" | "exit_file" | "exited";
|
|
530
|
-
observedAt: string;
|
|
531
|
-
exitCode?: number | undefined;
|
|
532
|
-
exitFileNote?: "not-an-exit-code" | undefined;
|
|
533
|
-
diagnostic?: string | undefined;
|
|
534
|
-
} | undefined;
|
|
535
511
|
} | {
|
|
536
512
|
id: string;
|
|
537
513
|
source: "agent" | "cezar";
|
|
@@ -593,6 +569,30 @@ export declare class ContinuationChecks {
|
|
|
593
569
|
reason: "outcome" | "timeout";
|
|
594
570
|
} | undefined;
|
|
595
571
|
wakeInputId?: string | undefined;
|
|
572
|
+
} | {
|
|
573
|
+
id: string;
|
|
574
|
+
source: "agent" | "cezar";
|
|
575
|
+
via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
|
|
576
|
+
registeredAt: string;
|
|
577
|
+
phase: "cancelled" | "delivered" | "open" | "resolved";
|
|
578
|
+
resolvedAt?: string | undefined;
|
|
579
|
+
deliveredAt?: string | undefined;
|
|
580
|
+
cancelledAt?: string | undefined;
|
|
581
|
+
turnId: string;
|
|
582
|
+
kind: "process";
|
|
583
|
+
deadline: string;
|
|
584
|
+
timeoutSeconds: number;
|
|
585
|
+
pid: number;
|
|
586
|
+
startToken?: string | undefined;
|
|
587
|
+
exitFile?: string | undefined;
|
|
588
|
+
note?: string | undefined;
|
|
589
|
+
result?: {
|
|
590
|
+
outcome: "deadline" | "error" | "exit_file" | "exited";
|
|
591
|
+
observedAt: string;
|
|
592
|
+
exitCode?: number | undefined;
|
|
593
|
+
exitFileNote?: "not-an-exit-code" | undefined;
|
|
594
|
+
diagnostic?: string | undefined;
|
|
595
|
+
} | undefined;
|
|
596
596
|
} | {
|
|
597
597
|
id: string;
|
|
598
598
|
source: "agent" | "cezar";
|
|
@@ -719,30 +719,6 @@ export declare class ContinuationChecks {
|
|
|
719
719
|
deadline: string;
|
|
720
720
|
seconds: number;
|
|
721
721
|
note?: string | undefined;
|
|
722
|
-
} | {
|
|
723
|
-
id: string;
|
|
724
|
-
source: "agent" | "cezar";
|
|
725
|
-
via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
|
|
726
|
-
registeredAt: string;
|
|
727
|
-
phase: "cancelled" | "delivered" | "open" | "resolved";
|
|
728
|
-
resolvedAt?: string | undefined;
|
|
729
|
-
deliveredAt?: string | undefined;
|
|
730
|
-
cancelledAt?: string | undefined;
|
|
731
|
-
turnId: string;
|
|
732
|
-
kind: "process";
|
|
733
|
-
deadline: string;
|
|
734
|
-
timeoutSeconds: number;
|
|
735
|
-
pid: number;
|
|
736
|
-
startToken?: string | undefined;
|
|
737
|
-
exitFile?: string | undefined;
|
|
738
|
-
note?: string | undefined;
|
|
739
|
-
result?: {
|
|
740
|
-
outcome: "deadline" | "error" | "exit_file" | "exited";
|
|
741
|
-
observedAt: string;
|
|
742
|
-
exitCode?: number | undefined;
|
|
743
|
-
exitFileNote?: "not-an-exit-code" | undefined;
|
|
744
|
-
diagnostic?: string | undefined;
|
|
745
|
-
} | undefined;
|
|
746
722
|
} | {
|
|
747
723
|
id: string;
|
|
748
724
|
source: "agent" | "cezar";
|
|
@@ -804,6 +780,30 @@ export declare class ContinuationChecks {
|
|
|
804
780
|
reason: "outcome" | "timeout";
|
|
805
781
|
} | undefined;
|
|
806
782
|
wakeInputId?: string | undefined;
|
|
783
|
+
} | {
|
|
784
|
+
id: string;
|
|
785
|
+
source: "agent" | "cezar";
|
|
786
|
+
via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
|
|
787
|
+
registeredAt: string;
|
|
788
|
+
phase: "cancelled" | "delivered" | "open" | "resolved";
|
|
789
|
+
resolvedAt?: string | undefined;
|
|
790
|
+
deliveredAt?: string | undefined;
|
|
791
|
+
cancelledAt?: string | undefined;
|
|
792
|
+
turnId: string;
|
|
793
|
+
kind: "process";
|
|
794
|
+
deadline: string;
|
|
795
|
+
timeoutSeconds: number;
|
|
796
|
+
pid: number;
|
|
797
|
+
startToken?: string | undefined;
|
|
798
|
+
exitFile?: string | undefined;
|
|
799
|
+
note?: string | undefined;
|
|
800
|
+
result?: {
|
|
801
|
+
outcome: "deadline" | "error" | "exit_file" | "exited";
|
|
802
|
+
observedAt: string;
|
|
803
|
+
exitCode?: number | undefined;
|
|
804
|
+
exitFileNote?: "not-an-exit-code" | undefined;
|
|
805
|
+
diagnostic?: string | undefined;
|
|
806
|
+
} | undefined;
|
|
807
807
|
} | {
|
|
808
808
|
id: string;
|
|
809
809
|
source: "agent" | "cezar";
|
|
@@ -177,7 +177,7 @@ export interface FacadeHost {
|
|
|
177
177
|
hasUnansweredHumanAsk(runId: string): boolean;
|
|
178
178
|
cancelAutoResume(runId: string): boolean;
|
|
179
179
|
rootFinishRequested(runId: string): boolean;
|
|
180
|
-
registerWait(runId: string, request: SquawkWaitRequestInput, via: WaitVia, generation: string, capabilitySignal?: AbortSignal): Promise<PrWaitEntry | TimerWaitEntry | WorkerWaitEntry | ProcessWaitEntry | PeerWaitEntry>;
|
|
180
|
+
registerWait(runId: string, request: SquawkWaitRequestInput, via: WaitVia, generation: string, capabilitySignal?: AbortSignal): Promise<PrWaitEntry | TimerWaitEntry | WorkerWaitEntry | ProcessWaitEntry | PeerWaitEntry | import('../../contract/index.js').PluginWaitEntry>;
|
|
181
181
|
cancelWait(runId: string, waitId: string, generation: string): ReturnType<WaitRegistry['cancelWait']>;
|
|
182
182
|
acceptDone(runId: string, generation: string, request: SquawkDoneRequest, signal?: AbortSignal): SquawkDoneAnswer;
|
|
183
183
|
preview?: PreviewHostLike | undefined;
|
|
@@ -31,7 +31,7 @@ import { InboxClaims } from './inbox-claims.js';
|
|
|
31
31
|
import { WorkerExecutions } from './worker-executions.js';
|
|
32
32
|
import { TurnBookkeeper } from './turn-bookkeeping.js';
|
|
33
33
|
import { AutomationToolsSlot, provisionCiSession } from './squawk-tools.js';
|
|
34
|
-
import { registerPreviewServer, stopPreviewServer } from '../../preview/run-tools.js';
|
|
34
|
+
import { decoratePreviewSession, registerPreviewServer, stopPreviewServer } from '../../preview/run-tools.js';
|
|
35
35
|
import { AttachmentWriter } from './attachment-writer.js';
|
|
36
36
|
import { QueuedInput } from './queued-input.js';
|
|
37
37
|
import { RepoRootLease } from './repo-root-lease.js';
|
|
@@ -80,7 +80,7 @@ export function composeRunModules(context, host, memory) {
|
|
|
80
80
|
};
|
|
81
81
|
modules.ciSessionHost = {
|
|
82
82
|
active: host.active, ciResources: () => host.ciResources, squawkToolHandlers: (...args) => host.squawkToolHandlers(...args),
|
|
83
|
-
|
|
83
|
+
decorateSession: (session, runId) => decoratePreviewSession(session, context.store, context.dataDir, runId, host.preview, host.cockpit?.origin),
|
|
84
84
|
};
|
|
85
85
|
modules.launchSettingsHost = {
|
|
86
86
|
active: host.active, setCockpit: address => { host.cockpit = address; },
|