@hearsay-tools/squawk 0.18.0-dev.8335 → 0.18.0-dev.8338

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.
Files changed (49) hide show
  1. package/dist/automations/tools.d.ts +8 -8
  2. package/dist/core/os-cgroup.d.ts +43 -0
  3. package/dist/core/os-cgroup.js +220 -0
  4. package/dist/core/os-cgroup.js.map +1 -0
  5. package/dist/core/os-win-job.d.ts +30 -0
  6. package/dist/core/os-win-job.js +80 -0
  7. package/dist/core/os-win-job.js.map +1 -0
  8. package/dist/core/runner-definition.d.ts +2 -2
  9. package/dist/core/session-containment.d.ts +78 -0
  10. package/dist/core/session-containment.js +247 -0
  11. package/dist/core/session-containment.js.map +1 -0
  12. package/dist/core/session-process.d.ts +10 -0
  13. package/dist/core/session-process.js +109 -22
  14. package/dist/core/session-process.js.map +1 -1
  15. package/dist/delegation/routes.d.ts +10 -10
  16. package/dist/delegation/transport.d.ts +14 -14
  17. package/dist/jobs/cli.js +6 -2
  18. package/dist/jobs/cli.js.map +1 -1
  19. package/dist/jobs/job.d.ts +6 -0
  20. package/dist/jobs/job.js +80 -2
  21. package/dist/jobs/job.js.map +1 -1
  22. package/dist/plugin/runtime.d.ts +1 -1
  23. package/dist/plugin/runtime.js +1 -1
  24. package/dist/plugin/runtime.js.map +1 -1
  25. package/dist/runners/opencode/opencode-http.d.ts +1 -0
  26. package/dist/runners/opencode/opencode-http.js +7 -0
  27. package/dist/runners/opencode/opencode-http.js.map +1 -1
  28. package/dist/runners/opencode/opencode-server-runner.js +3 -9
  29. package/dist/runners/opencode/opencode-server-runner.js.map +1 -1
  30. package/dist/runs/run-decode.d.ts +72 -72
  31. package/dist/server/live-routes.d.ts +6 -6
  32. package/dist/server/projects-routes.d.ts +45 -45
  33. package/dist/server/runners-routes.d.ts +10 -10
  34. package/dist/server/server.d.ts +3050 -3050
  35. package/dist/server/workspace-live-routes.d.ts +6 -6
  36. package/dist/worker-scope/cgroup.d.ts +2 -36
  37. package/dist/worker-scope/cgroup.js +5 -161
  38. package/dist/worker-scope/cgroup.js.map +1 -1
  39. package/dist/worker-scope/job.d.ts +1 -22
  40. package/dist/worker-scope/job.js +1 -56
  41. package/dist/worker-scope/job.js.map +1 -1
  42. package/dist/worker-scope/scope.d.ts +5 -1
  43. package/dist/worker-scope/worker-scopes.js +36 -18
  44. package/dist/worker-scope/worker-scopes.js.map +1 -1
  45. package/dist/workflows/input-acknowledgement.d.ts +24 -24
  46. package/dist/workflows/run/wait-engine.d.ts +72 -72
  47. package/package.json +4 -4
  48. package/scripts/windows-worker-job.cs +67 -32
  49. package/scripts/windows-worker-job.ps1 +11 -4
@@ -2227,30 +2227,6 @@ export declare function parseRunRecords(raw: unknown): z.ZodSafeParseResult<{
2227
2227
  deadline: string;
2228
2228
  seconds: number;
2229
2229
  note?: string | undefined;
2230
- } | {
2231
- id: string;
2232
- source: "agent" | "cezar";
2233
- 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";
2234
- registeredAt: string;
2235
- phase: "cancelled" | "delivered" | "open" | "resolved";
2236
- resolvedAt?: string | undefined;
2237
- deliveredAt?: string | undefined;
2238
- cancelledAt?: string | undefined;
2239
- turnId: string;
2240
- kind: "process";
2241
- deadline: string;
2242
- timeoutSeconds: number;
2243
- pid: number;
2244
- startToken?: string | undefined;
2245
- exitFile?: string | undefined;
2246
- note?: string | undefined;
2247
- result?: {
2248
- outcome: "deadline" | "error" | "exit_file" | "exited";
2249
- observedAt: string;
2250
- exitCode?: number | undefined;
2251
- exitFileNote?: "not-an-exit-code" | undefined;
2252
- diagnostic?: string | undefined;
2253
- } | undefined;
2254
2230
  } | {
2255
2231
  id: string;
2256
2232
  source: "agent" | "cezar";
@@ -2312,6 +2288,30 @@ export declare function parseRunRecords(raw: unknown): z.ZodSafeParseResult<{
2312
2288
  reason: "outcome" | "timeout";
2313
2289
  } | undefined;
2314
2290
  wakeInputId?: string | undefined;
2291
+ } | {
2292
+ id: string;
2293
+ source: "agent" | "cezar";
2294
+ 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";
2295
+ registeredAt: string;
2296
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2297
+ resolvedAt?: string | undefined;
2298
+ deliveredAt?: string | undefined;
2299
+ cancelledAt?: string | undefined;
2300
+ turnId: string;
2301
+ kind: "process";
2302
+ deadline: string;
2303
+ timeoutSeconds: number;
2304
+ pid: number;
2305
+ startToken?: string | undefined;
2306
+ exitFile?: string | undefined;
2307
+ note?: string | undefined;
2308
+ result?: {
2309
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2310
+ observedAt: string;
2311
+ exitCode?: number | undefined;
2312
+ exitFileNote?: "not-an-exit-code" | undefined;
2313
+ diagnostic?: string | undefined;
2314
+ } | undefined;
2315
2315
  } | {
2316
2316
  id: string;
2317
2317
  source: "agent" | "cezar";
@@ -2439,30 +2439,6 @@ export declare function parseRunRecords(raw: unknown): z.ZodSafeParseResult<{
2439
2439
  deadline: string;
2440
2440
  seconds: number;
2441
2441
  note?: string | undefined;
2442
- } | {
2443
- id: string;
2444
- source: "agent" | "cezar";
2445
- 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";
2446
- registeredAt: string;
2447
- phase: "cancelled" | "delivered" | "open" | "resolved";
2448
- resolvedAt?: string | undefined;
2449
- deliveredAt?: string | undefined;
2450
- cancelledAt?: string | undefined;
2451
- turnId: string;
2452
- kind: "process";
2453
- deadline: string;
2454
- timeoutSeconds: number;
2455
- pid: number;
2456
- startToken?: string | undefined;
2457
- exitFile?: string | undefined;
2458
- note?: string | undefined;
2459
- result?: {
2460
- outcome: "deadline" | "error" | "exit_file" | "exited";
2461
- observedAt: string;
2462
- exitCode?: number | undefined;
2463
- exitFileNote?: "not-an-exit-code" | undefined;
2464
- diagnostic?: string | undefined;
2465
- } | undefined;
2466
2442
  } | {
2467
2443
  id: string;
2468
2444
  source: "agent" | "cezar";
@@ -2524,6 +2500,30 @@ export declare function parseRunRecords(raw: unknown): z.ZodSafeParseResult<{
2524
2500
  reason: "outcome" | "timeout";
2525
2501
  } | undefined;
2526
2502
  wakeInputId?: string | undefined;
2503
+ } | {
2504
+ id: string;
2505
+ source: "agent" | "cezar";
2506
+ 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";
2507
+ registeredAt: string;
2508
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2509
+ resolvedAt?: string | undefined;
2510
+ deliveredAt?: string | undefined;
2511
+ cancelledAt?: string | undefined;
2512
+ turnId: string;
2513
+ kind: "process";
2514
+ deadline: string;
2515
+ timeoutSeconds: number;
2516
+ pid: number;
2517
+ startToken?: string | undefined;
2518
+ exitFile?: string | undefined;
2519
+ note?: string | undefined;
2520
+ result?: {
2521
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2522
+ observedAt: string;
2523
+ exitCode?: number | undefined;
2524
+ exitFileNote?: "not-an-exit-code" | undefined;
2525
+ diagnostic?: string | undefined;
2526
+ } | undefined;
2527
2527
  } | {
2528
2528
  id: string;
2529
2529
  source: "agent" | "cezar";
@@ -2650,30 +2650,6 @@ export declare function parseRunRecords(raw: unknown): z.ZodSafeParseResult<{
2650
2650
  deadline: string;
2651
2651
  seconds: number;
2652
2652
  note?: string | undefined;
2653
- } | {
2654
- id: string;
2655
- source: "agent" | "cezar";
2656
- 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";
2657
- registeredAt: string;
2658
- phase: "cancelled" | "delivered" | "open" | "resolved";
2659
- resolvedAt?: string | undefined;
2660
- deliveredAt?: string | undefined;
2661
- cancelledAt?: string | undefined;
2662
- turnId: string;
2663
- kind: "process";
2664
- deadline: string;
2665
- timeoutSeconds: number;
2666
- pid: number;
2667
- startToken?: string | undefined;
2668
- exitFile?: string | undefined;
2669
- note?: string | undefined;
2670
- result?: {
2671
- outcome: "deadline" | "error" | "exit_file" | "exited";
2672
- observedAt: string;
2673
- exitCode?: number | undefined;
2674
- exitFileNote?: "not-an-exit-code" | undefined;
2675
- diagnostic?: string | undefined;
2676
- } | undefined;
2677
2653
  } | {
2678
2654
  id: string;
2679
2655
  source: "agent" | "cezar";
@@ -2735,6 +2711,30 @@ export declare function parseRunRecords(raw: unknown): z.ZodSafeParseResult<{
2735
2711
  reason: "outcome" | "timeout";
2736
2712
  } | undefined;
2737
2713
  wakeInputId?: string | undefined;
2714
+ } | {
2715
+ id: string;
2716
+ source: "agent" | "cezar";
2717
+ 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";
2718
+ registeredAt: string;
2719
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2720
+ resolvedAt?: string | undefined;
2721
+ deliveredAt?: string | undefined;
2722
+ cancelledAt?: string | undefined;
2723
+ turnId: string;
2724
+ kind: "process";
2725
+ deadline: string;
2726
+ timeoutSeconds: number;
2727
+ pid: number;
2728
+ startToken?: string | undefined;
2729
+ exitFile?: string | undefined;
2730
+ note?: string | undefined;
2731
+ result?: {
2732
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2733
+ observedAt: string;
2734
+ exitCode?: number | undefined;
2735
+ exitFileNote?: "not-an-exit-code" | undefined;
2736
+ diagnostic?: string | undefined;
2737
+ } | undefined;
2738
2738
  } | {
2739
2739
  id: string;
2740
2740
  source: "agent" | "cezar";
@@ -16,12 +16,6 @@ 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
- } | {
25
19
  projectId: string;
26
20
  runId: string;
27
21
  type: "batch";
@@ -35,6 +29,12 @@ export declare function createLiveRoutes({ resolveProject, serverGeneration, res
35
29
  cursor: string;
36
30
  afterSeq: number;
37
31
  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";
@@ -63,17 +63,6 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
63
63
  } & {
64
64
  "/projects": {
65
65
  $post: {
66
- output: {
67
- error: string;
68
- };
69
- outputFormat: "json";
70
- status: 400 | 500;
71
- input: {
72
- json: {
73
- root: string;
74
- };
75
- };
76
- } | {
77
66
  output: {
78
67
  project: {
79
68
  id: string;
@@ -104,10 +93,10 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
104
93
  agent: boolean;
105
94
  }[] | undefined;
106
95
  };
107
- error: string;
96
+ error?: string | undefined;
108
97
  };
109
98
  outputFormat: "json";
110
- status: 409;
99
+ status: 200;
111
100
  input: {
112
101
  json: {
113
102
  root: string;
@@ -144,10 +133,21 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
144
133
  agent: boolean;
145
134
  }[] | undefined;
146
135
  };
147
- error?: string | undefined;
136
+ error: string;
148
137
  };
149
138
  outputFormat: "json";
150
- status: 200;
139
+ status: 409;
140
+ input: {
141
+ json: {
142
+ root: string;
143
+ };
144
+ };
145
+ } | {
146
+ output: {
147
+ error: string;
148
+ };
149
+ outputFormat: "json";
150
+ status: 400 | 500;
151
151
  input: {
152
152
  json: {
153
153
  root: string;
@@ -306,7 +306,7 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
306
306
  error: string;
307
307
  };
308
308
  outputFormat: "json";
309
- status: 404;
309
+ status: 400;
310
310
  input: {
311
311
  param: {
312
312
  projectId: string;
@@ -317,7 +317,7 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
317
317
  error: string;
318
318
  };
319
319
  outputFormat: "json";
320
- status: 400;
320
+ status: 404;
321
321
  input: {
322
322
  param: {
323
323
  projectId: string;
@@ -342,27 +342,6 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
342
342
  } & {
343
343
  "/projects/:projectId/webhooks": {
344
344
  $post: {
345
- output: {
346
- error: string;
347
- };
348
- outputFormat: "json";
349
- status: 400 | 404 | 409 | 500;
350
- input: {
351
- json: {
352
- name: string;
353
- description?: string | undefined;
354
- url: string;
355
- token?: string | undefined;
356
- tasks?: boolean | undefined;
357
- triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
358
- agent?: boolean | undefined;
359
- };
360
- } & {
361
- param: {
362
- projectId: string;
363
- };
364
- };
365
- } | {
366
345
  output: {
367
346
  project: {
368
347
  id: string;
@@ -421,6 +400,27 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
421
400
  projectId: string;
422
401
  };
423
402
  };
403
+ } | {
404
+ output: {
405
+ error: string;
406
+ };
407
+ outputFormat: "json";
408
+ status: 400 | 404 | 409 | 500;
409
+ input: {
410
+ json: {
411
+ name: string;
412
+ description?: string | undefined;
413
+ url: string;
414
+ token?: string | undefined;
415
+ tasks?: boolean | undefined;
416
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
417
+ agent?: boolean | undefined;
418
+ };
419
+ } & {
420
+ param: {
421
+ projectId: string;
422
+ };
423
+ };
424
424
  };
425
425
  };
426
426
  } & {
@@ -618,13 +618,10 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
618
618
  };
619
619
  } | {
620
620
  output: {
621
- ok: boolean;
622
- status?: number | undefined;
623
- error?: string | undefined;
624
- dryRun?: boolean | undefined;
621
+ error: string;
625
622
  };
626
623
  outputFormat: "json";
627
- status: import("hono/utils/http-status").ContentfulStatusCode;
624
+ status: 404;
628
625
  input: {
629
626
  param: {
630
627
  projectId: string;
@@ -633,10 +630,13 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
633
630
  };
634
631
  } | {
635
632
  output: {
636
- error: string;
633
+ ok: boolean;
634
+ status?: number | undefined;
635
+ error?: string | undefined;
636
+ dryRun?: boolean | undefined;
637
637
  };
638
638
  outputFormat: "json";
639
- status: 404;
639
+ status: import("hono/utils/http-status").ContentfulStatusCode;
640
640
  input: {
641
641
  param: {
642
642
  projectId: string;
@@ -58,11 +58,15 @@ export declare function createRunnersRoutes(options: {
58
58
  "/runner-install/:runner": {
59
59
  $post: {
60
60
  output: {
61
- error: string;
62
- code?: "invalid_input" | undefined;
61
+ supported: boolean;
62
+ installedVersion: string | null;
63
+ latestVersion: string | null;
64
+ updateAvailable: boolean;
65
+ phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
66
+ error: string | null;
63
67
  };
64
68
  outputFormat: "json";
65
- status: 400;
69
+ status: 202;
66
70
  input: {
67
71
  param: {
68
72
  runner: string;
@@ -74,15 +78,11 @@ export declare function createRunnersRoutes(options: {
74
78
  };
75
79
  } | {
76
80
  output: {
77
- supported: boolean;
78
- installedVersion: string | null;
79
- latestVersion: string | null;
80
- updateAvailable: boolean;
81
- phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
82
- error: string | null;
81
+ error: string;
82
+ code?: "invalid_input" | undefined;
83
83
  };
84
84
  outputFormat: "json";
85
- status: 202;
85
+ status: 400;
86
86
  input: {
87
87
  param: {
88
88
  runner: string;