@hearsay-tools/squawk 0.18.0-dev.8050 → 0.18.0-dev.8057
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 +79 -79
- 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/reports-api.d.ts +2 -2
- package/dist/server/runner-install-routes.d.ts +10 -10
- package/dist/server/server.d.ts +64 -64
- 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
|
@@ -51,11 +51,15 @@ export declare function createRunnerInstallRoutes(options: {
|
|
|
51
51
|
"/runner-install/:runner": {
|
|
52
52
|
$post: {
|
|
53
53
|
output: {
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
supported: boolean;
|
|
55
|
+
installedVersion: string | null;
|
|
56
|
+
latestVersion: string | null;
|
|
57
|
+
updateAvailable: boolean;
|
|
58
|
+
phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
|
|
59
|
+
error: string | null;
|
|
56
60
|
};
|
|
57
61
|
outputFormat: "json";
|
|
58
|
-
status:
|
|
62
|
+
status: 202;
|
|
59
63
|
input: {
|
|
60
64
|
param: {
|
|
61
65
|
runner: string;
|
|
@@ -67,15 +71,11 @@ export declare function createRunnerInstallRoutes(options: {
|
|
|
67
71
|
};
|
|
68
72
|
} | {
|
|
69
73
|
output: {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
latestVersion: string | null;
|
|
73
|
-
updateAvailable: boolean;
|
|
74
|
-
phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
|
|
75
|
-
error: string | null;
|
|
74
|
+
error: string;
|
|
75
|
+
code?: "invalid_input" | undefined;
|
|
76
76
|
};
|
|
77
77
|
outputFormat: "json";
|
|
78
|
-
status:
|
|
78
|
+
status: 400;
|
|
79
79
|
input: {
|
|
80
80
|
param: {
|
|
81
81
|
runner: string;
|
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";
|
|
@@ -4665,6 +4665,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
4665
4665
|
} & {
|
|
4666
4666
|
"/repo/commit/:sha": {
|
|
4667
4667
|
$get: {
|
|
4668
|
+
output: string;
|
|
4669
|
+
outputFormat: "text";
|
|
4670
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4671
|
+
input: {
|
|
4672
|
+
query: {
|
|
4673
|
+
structured?: string | undefined;
|
|
4674
|
+
};
|
|
4675
|
+
} & {
|
|
4676
|
+
param: {
|
|
4677
|
+
sha: string;
|
|
4678
|
+
};
|
|
4679
|
+
};
|
|
4680
|
+
} | {
|
|
4668
4681
|
output: {
|
|
4669
4682
|
error: string;
|
|
4670
4683
|
code?: "invalid_input" | undefined;
|
|
@@ -4728,19 +4741,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
4728
4741
|
sha: string;
|
|
4729
4742
|
};
|
|
4730
4743
|
};
|
|
4731
|
-
} | {
|
|
4732
|
-
output: string;
|
|
4733
|
-
outputFormat: "text";
|
|
4734
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4735
|
-
input: {
|
|
4736
|
-
query: {
|
|
4737
|
-
structured?: string | undefined;
|
|
4738
|
-
};
|
|
4739
|
-
} & {
|
|
4740
|
-
param: {
|
|
4741
|
-
sha: string;
|
|
4742
|
-
};
|
|
4743
|
-
};
|
|
4744
4744
|
};
|
|
4745
4745
|
};
|
|
4746
4746
|
} & {
|
|
@@ -19201,20 +19201,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
19201
19201
|
} & {
|
|
19202
19202
|
"/runs/:id/handoff": {
|
|
19203
19203
|
$get: {
|
|
19204
|
-
output:
|
|
19205
|
-
|
|
19206
|
-
|
|
19207
|
-
outputFormat: "json";
|
|
19208
|
-
status: 404;
|
|
19204
|
+
output: string;
|
|
19205
|
+
outputFormat: "text";
|
|
19206
|
+
status: 200;
|
|
19209
19207
|
input: {
|
|
19210
19208
|
param: {
|
|
19211
19209
|
id: string;
|
|
19212
19210
|
};
|
|
19213
19211
|
};
|
|
19214
19212
|
} | {
|
|
19215
|
-
output:
|
|
19216
|
-
|
|
19217
|
-
|
|
19213
|
+
output: {
|
|
19214
|
+
error: string;
|
|
19215
|
+
};
|
|
19216
|
+
outputFormat: "json";
|
|
19217
|
+
status: 404;
|
|
19218
19218
|
input: {
|
|
19219
19219
|
param: {
|
|
19220
19220
|
id: string;
|
|
@@ -19252,20 +19252,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
19252
19252
|
} & {
|
|
19253
19253
|
"/runs/:id/diff": {
|
|
19254
19254
|
$get: {
|
|
19255
|
-
output:
|
|
19256
|
-
|
|
19257
|
-
|
|
19258
|
-
outputFormat: "json";
|
|
19259
|
-
status: 404 | 409;
|
|
19255
|
+
output: string;
|
|
19256
|
+
outputFormat: "text";
|
|
19257
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
19260
19258
|
input: {
|
|
19261
19259
|
param: {
|
|
19262
19260
|
id: string;
|
|
19263
19261
|
};
|
|
19264
19262
|
};
|
|
19265
19263
|
} | {
|
|
19266
|
-
output:
|
|
19267
|
-
|
|
19268
|
-
|
|
19264
|
+
output: {
|
|
19265
|
+
error: string;
|
|
19266
|
+
};
|
|
19267
|
+
outputFormat: "json";
|
|
19268
|
+
status: 404 | 409;
|
|
19269
19269
|
input: {
|
|
19270
19270
|
param: {
|
|
19271
19271
|
id: string;
|
|
@@ -21312,6 +21312,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
21312
21312
|
} & {
|
|
21313
21313
|
"/repo/commit/:sha": {
|
|
21314
21314
|
$get: {
|
|
21315
|
+
output: string;
|
|
21316
|
+
outputFormat: "text";
|
|
21317
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
21318
|
+
input: {
|
|
21319
|
+
query: {
|
|
21320
|
+
structured?: string | undefined;
|
|
21321
|
+
};
|
|
21322
|
+
} & {
|
|
21323
|
+
param: {
|
|
21324
|
+
sha: string;
|
|
21325
|
+
};
|
|
21326
|
+
};
|
|
21327
|
+
} | {
|
|
21315
21328
|
output: {
|
|
21316
21329
|
error: string;
|
|
21317
21330
|
code?: "invalid_input" | undefined;
|
|
@@ -21375,19 +21388,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
21375
21388
|
sha: string;
|
|
21376
21389
|
};
|
|
21377
21390
|
};
|
|
21378
|
-
} | {
|
|
21379
|
-
output: string;
|
|
21380
|
-
outputFormat: "text";
|
|
21381
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
21382
|
-
input: {
|
|
21383
|
-
query: {
|
|
21384
|
-
structured?: string | undefined;
|
|
21385
|
-
};
|
|
21386
|
-
} & {
|
|
21387
|
-
param: {
|
|
21388
|
-
sha: string;
|
|
21389
|
-
};
|
|
21390
|
-
};
|
|
21391
21391
|
};
|
|
21392
21392
|
};
|
|
21393
21393
|
} & {
|
|
@@ -35848,20 +35848,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
35848
35848
|
} & {
|
|
35849
35849
|
"/runs/:id/handoff": {
|
|
35850
35850
|
$get: {
|
|
35851
|
-
output:
|
|
35852
|
-
|
|
35853
|
-
|
|
35854
|
-
outputFormat: "json";
|
|
35855
|
-
status: 404;
|
|
35851
|
+
output: string;
|
|
35852
|
+
outputFormat: "text";
|
|
35853
|
+
status: 200;
|
|
35856
35854
|
input: {
|
|
35857
35855
|
param: {
|
|
35858
35856
|
id: string;
|
|
35859
35857
|
};
|
|
35860
35858
|
};
|
|
35861
35859
|
} | {
|
|
35862
|
-
output:
|
|
35863
|
-
|
|
35864
|
-
|
|
35860
|
+
output: {
|
|
35861
|
+
error: string;
|
|
35862
|
+
};
|
|
35863
|
+
outputFormat: "json";
|
|
35864
|
+
status: 404;
|
|
35865
35865
|
input: {
|
|
35866
35866
|
param: {
|
|
35867
35867
|
id: string;
|
|
@@ -35899,20 +35899,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
35899
35899
|
} & {
|
|
35900
35900
|
"/runs/:id/diff": {
|
|
35901
35901
|
$get: {
|
|
35902
|
-
output:
|
|
35903
|
-
|
|
35904
|
-
|
|
35905
|
-
outputFormat: "json";
|
|
35906
|
-
status: 404 | 409;
|
|
35902
|
+
output: string;
|
|
35903
|
+
outputFormat: "text";
|
|
35904
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
35907
35905
|
input: {
|
|
35908
35906
|
param: {
|
|
35909
35907
|
id: string;
|
|
35910
35908
|
};
|
|
35911
35909
|
};
|
|
35912
35910
|
} | {
|
|
35913
|
-
output:
|
|
35914
|
-
|
|
35915
|
-
|
|
35911
|
+
output: {
|
|
35912
|
+
error: string;
|
|
35913
|
+
};
|
|
35914
|
+
outputFormat: "json";
|
|
35915
|
+
status: 404 | 409;
|
|
35916
35916
|
input: {
|
|
35917
35917
|
param: {
|
|
35918
35918
|
id: string;
|
|
@@ -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":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAGpD,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,IAAwB,EAAE,IAAI,GAAqC,GAAG,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC;IACjJ,MAAM,OAAO,GAAG,UAAU,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;IACvC,OAAO,OAAO,EAAE,SAAS,KAAK,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAC9E,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,IAAc,EAAE,GAAsB,EAAE,IAAI,GAAG,GAAG,EAAE,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC;IAC3H,MAAM,OAAO,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC1C,IAAI,OAAO,EAAE,SAAS,KAAK,YAAY;QAAE,OAAO,SAAS,CAAC;IAC1D,MAAM,qBAAqB,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,KAA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AI,UAAU,CAAC,WAAW,KAAK,MAAM,IAAI,CAAC,OAAO,UAAU,CAAC,WAAW,KAAK,UAAU,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAAE,OAAO;IAChJ,MAAM,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,CAAC;IAC7F,sBAAsB,EAAE,CAAC;IACzB,kBAAkB,EAAE,CAAC;IACrB,MAAM,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,GAAG,MAAM,MAAM,CAAC,yBAAyB,CAAC,CAAC;IACjG,uBAAuB,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; },
|