@hearsay-tools/squawk 0.18.0-pr4287.8317 → 0.18.0-pr4289.8319

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 (74) hide show
  1. package/dist/automations/tools.d.ts +8 -8
  2. package/dist/core/session-process.d.ts +0 -10
  3. package/dist/core/session-process.js +22 -109
  4. package/dist/core/session-process.js.map +1 -1
  5. package/dist/delegation/routes.d.ts +10 -10
  6. package/dist/delegation/transport.d.ts +79 -79
  7. package/dist/jobs/cli.js +2 -6
  8. package/dist/jobs/cli.js.map +1 -1
  9. package/dist/jobs/job.d.ts +0 -6
  10. package/dist/jobs/job.js +2 -80
  11. package/dist/jobs/job.js.map +1 -1
  12. package/dist/plugin/runtime.d.ts +1 -1
  13. package/dist/plugin/runtime.js +1 -1
  14. package/dist/plugin/runtime.js.map +1 -1
  15. package/dist/runners/opencode/opencode-http.d.ts +0 -1
  16. package/dist/runners/opencode/opencode-http.js +0 -7
  17. package/dist/runners/opencode/opencode-http.js.map +1 -1
  18. package/dist/runners/opencode/opencode-server-runner.js +9 -3
  19. package/dist/runners/opencode/opencode-server-runner.js.map +1 -1
  20. package/dist/runs/run-decode.d.ts +72 -72
  21. package/dist/server/automations-routes.d.ts +1435 -0
  22. package/dist/server/automations-routes.js +192 -0
  23. package/dist/server/automations-routes.js.map +1 -0
  24. package/dist/server/github-routes.d.ts +733 -0
  25. package/dist/server/github-routes.js +140 -0
  26. package/dist/server/github-routes.js.map +1 -0
  27. package/dist/server/project-settings-routes.d.ts +999 -0
  28. package/dist/server/project-settings-routes.js +347 -0
  29. package/dist/server/project-settings-routes.js.map +1 -0
  30. package/dist/server/projects-routes.d.ts +833 -0
  31. package/dist/server/projects-routes.js +423 -0
  32. package/dist/server/projects-routes.js.map +1 -0
  33. package/dist/server/providers-routes.d.ts +683 -0
  34. package/dist/server/providers-routes.js +359 -0
  35. package/dist/server/providers-routes.js.map +1 -0
  36. package/dist/server/repo-routes.d.ts +509 -0
  37. package/dist/server/repo-routes.js +243 -0
  38. package/dist/server/repo-routes.js.map +1 -0
  39. package/dist/server/reports-api.d.ts +2 -2
  40. package/dist/server/runner-install-routes.d.ts +10 -10
  41. package/dist/server/runners-routes.d.ts +10 -10
  42. package/dist/server/server-types.d.ts +40 -0
  43. package/dist/server/server-types.js +31 -0
  44. package/dist/server/server-types.js.map +1 -0
  45. package/dist/server/server.d.ts +1706 -1732
  46. package/dist/server/server.js +108 -2500
  47. package/dist/server/server.js.map +1 -1
  48. package/dist/server/workspace-live-routes.d.ts +6 -6
  49. package/dist/server/workspace-routes.d.ts +713 -0
  50. package/dist/server/workspace-routes.js +262 -0
  51. package/dist/server/workspace-routes.js.map +1 -0
  52. package/dist/worker-scope/cgroup.d.ts +36 -2
  53. package/dist/worker-scope/cgroup.js +161 -5
  54. package/dist/worker-scope/cgroup.js.map +1 -1
  55. package/dist/worker-scope/job.d.ts +22 -1
  56. package/dist/worker-scope/job.js +56 -1
  57. package/dist/worker-scope/job.js.map +1 -1
  58. package/dist/worker-scope/scope.d.ts +1 -5
  59. package/dist/worker-scope/worker-scopes.js +18 -36
  60. package/dist/worker-scope/worker-scopes.js.map +1 -1
  61. package/dist/workflows/input-acknowledgement.d.ts +24 -24
  62. package/dist/workflows/run/wait-engine.d.ts +72 -72
  63. package/package.json +4 -4
  64. package/scripts/windows-worker-job.cs +32 -67
  65. package/scripts/windows-worker-job.ps1 +4 -11
  66. package/dist/core/os-cgroup.d.ts +0 -43
  67. package/dist/core/os-cgroup.js +0 -220
  68. package/dist/core/os-cgroup.js.map +0 -1
  69. package/dist/core/os-win-job.d.ts +0 -30
  70. package/dist/core/os-win-job.js +0 -80
  71. package/dist/core/os-win-job.js.map +0 -1
  72. package/dist/core/session-containment.d.ts +0 -78
  73. package/dist/core/session-containment.js +0 -247
  74. package/dist/core/session-containment.js.map +0 -1
@@ -0,0 +1,683 @@
1
+ import type { ProviderAuthService } from '../core/provider-auth.ts';
2
+ import type { RunnerModelCatalog } from '../core/runner-model-catalog.ts';
3
+ import type { Home } from '../home/home.ts';
4
+ import { type ProjectApiEnv, type ProviderStatusBundle, type ResolvedServerDeps, type ResolveWorkspaceProfileFn, type ServerCapabilitiesFn, type WorkspaceEventBus } from './server-types.ts';
5
+ import type { WorkspaceProjects } from './workspace-projects.ts';
6
+ export interface ProvidersRouteDeps {
7
+ bootRoot: string;
8
+ capabilities: ServerCapabilitiesFn;
9
+ modelCatalog: RunnerModelCatalog;
10
+ providerAuth: ProviderAuthService;
11
+ providerStatus: ProviderStatusBundle['providerStatus'];
12
+ invalidateHostModels: ProviderStatusBundle['invalidateHostModels'];
13
+ workspaceConfig: ResolvedServerDeps['workspaceConfig'];
14
+ workspaceEvents: WorkspaceEventBus;
15
+ openTerminal: ResolvedServerDeps['openTerminal'];
16
+ resolveWorkspaceProfile: ResolveWorkspaceProfileFn;
17
+ }
18
+ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import("hono/hono-base").HonoBase<ProjectApiEnv, {
19
+ "/providers/status": {
20
+ $get: {
21
+ output: {
22
+ error: string;
23
+ code?: "invalid_input" | undefined;
24
+ };
25
+ outputFormat: "json";
26
+ status: 400;
27
+ input: {
28
+ query: {
29
+ refresh?: "1" | undefined;
30
+ };
31
+ };
32
+ } | {
33
+ output: {
34
+ providers: {
35
+ requiresAccountHome?: boolean | undefined;
36
+ provider: string;
37
+ status: "connected" | "disconnected" | "not-installed" | "unknown";
38
+ enabled?: boolean | undefined;
39
+ hint?: string | undefined;
40
+ authFailureId?: string | undefined;
41
+ profileId?: string | undefined;
42
+ }[];
43
+ };
44
+ outputFormat: "json";
45
+ status: import("hono/utils/http-status").ContentfulStatusCode;
46
+ input: {
47
+ query: {
48
+ refresh?: "1" | undefined;
49
+ };
50
+ };
51
+ };
52
+ };
53
+ } & {
54
+ "/providers/:provider/enabled": {
55
+ $put: {
56
+ output: {
57
+ error: string;
58
+ code?: "invalid_input" | undefined;
59
+ };
60
+ outputFormat: "json";
61
+ status: 400;
62
+ input: {
63
+ param: {
64
+ provider: string;
65
+ };
66
+ } & {
67
+ json: {
68
+ enabled: boolean;
69
+ };
70
+ };
71
+ } | {
72
+ output: {
73
+ providers: {
74
+ requiresAccountHome?: boolean | undefined;
75
+ provider: string;
76
+ status: "connected" | "disconnected" | "not-installed" | "unknown";
77
+ enabled?: boolean | undefined;
78
+ hint?: string | undefined;
79
+ authFailureId?: string | undefined;
80
+ profileId?: string | undefined;
81
+ }[];
82
+ };
83
+ outputFormat: "json";
84
+ status: import("hono/utils/http-status").ContentfulStatusCode;
85
+ input: {
86
+ param: {
87
+ provider: string;
88
+ };
89
+ } & {
90
+ json: {
91
+ enabled: boolean;
92
+ };
93
+ };
94
+ } | {
95
+ output: {
96
+ error: string;
97
+ };
98
+ outputFormat: "json";
99
+ status: 500;
100
+ input: {
101
+ param: {
102
+ provider: string;
103
+ };
104
+ } & {
105
+ json: {
106
+ enabled: boolean;
107
+ };
108
+ };
109
+ };
110
+ };
111
+ } & {
112
+ "/providers/:provider/retry": {
113
+ $post: {
114
+ output: {
115
+ error: string;
116
+ code?: "invalid_input" | undefined;
117
+ };
118
+ outputFormat: "json";
119
+ status: 400;
120
+ input: {
121
+ param: {
122
+ provider: string;
123
+ };
124
+ } & {
125
+ json: {
126
+ authFailureId: string;
127
+ };
128
+ };
129
+ } | {
130
+ output: {
131
+ providers: {
132
+ requiresAccountHome?: boolean | undefined;
133
+ provider: string;
134
+ status: "connected" | "disconnected" | "not-installed" | "unknown";
135
+ enabled?: boolean | undefined;
136
+ hint?: string | undefined;
137
+ authFailureId?: string | undefined;
138
+ profileId?: string | undefined;
139
+ }[];
140
+ };
141
+ outputFormat: "json";
142
+ status: import("hono/utils/http-status").ContentfulStatusCode;
143
+ input: {
144
+ param: {
145
+ provider: string;
146
+ };
147
+ } & {
148
+ json: {
149
+ authFailureId: string;
150
+ };
151
+ };
152
+ } | {
153
+ output: {
154
+ error: string;
155
+ };
156
+ outputFormat: "json";
157
+ status: 409;
158
+ input: {
159
+ param: {
160
+ provider: string;
161
+ };
162
+ } & {
163
+ json: {
164
+ authFailureId: string;
165
+ };
166
+ };
167
+ };
168
+ };
169
+ } & {
170
+ "/providers/connect": {
171
+ $post: {
172
+ output: {
173
+ error: string;
174
+ };
175
+ outputFormat: "json";
176
+ status: 409;
177
+ input: {
178
+ json: {
179
+ provider: string;
180
+ profileId?: string | undefined;
181
+ };
182
+ };
183
+ } | {
184
+ output: {
185
+ error: string;
186
+ };
187
+ outputFormat: "json";
188
+ status: 400;
189
+ input: {
190
+ json: {
191
+ provider: string;
192
+ profileId?: string | undefined;
193
+ };
194
+ };
195
+ } | {
196
+ output: {
197
+ error: string;
198
+ };
199
+ outputFormat: "json";
200
+ status: 500;
201
+ input: {
202
+ json: {
203
+ provider: string;
204
+ profileId?: string | undefined;
205
+ };
206
+ };
207
+ } | {
208
+ output: {
209
+ opened: false;
210
+ connected: true;
211
+ command: string;
212
+ };
213
+ outputFormat: "json";
214
+ status: import("hono/utils/http-status").ContentfulStatusCode;
215
+ input: {
216
+ json: {
217
+ provider: string;
218
+ profileId?: string | undefined;
219
+ };
220
+ };
221
+ } | {
222
+ output: {
223
+ opened: true;
224
+ command: string;
225
+ };
226
+ outputFormat: "json";
227
+ status: import("hono/utils/http-status").ContentfulStatusCode;
228
+ input: {
229
+ json: {
230
+ provider: string;
231
+ profileId?: string | undefined;
232
+ };
233
+ };
234
+ };
235
+ };
236
+ }, "/", "/providers/connect">;
237
+ export interface AgentProfilesRouteDeps {
238
+ home: Home;
239
+ capabilities: ServerCapabilitiesFn;
240
+ providerAuth: ProviderAuthService;
241
+ providerStatus: ProviderStatusBundle['providerStatus'];
242
+ invalidateHostModels: ProviderStatusBundle['invalidateHostModels'];
243
+ workspaceProjects: WorkspaceProjects;
244
+ resolveWorkspaceProfile: ResolveWorkspaceProfileFn;
245
+ projectRootFor: (projectId: string) => Promise<string | null>;
246
+ }
247
+ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps): import("hono/hono-base").HonoBase<ProjectApiEnv, {
248
+ "/workspace/agent-profiles": {
249
+ $get: {
250
+ output: {
251
+ editable: boolean;
252
+ profiles: {
253
+ id: string;
254
+ provider: string;
255
+ label: string;
256
+ configDir: string;
257
+ path: string;
258
+ exists: boolean;
259
+ looksValid: boolean;
260
+ isDefault: boolean;
261
+ status?: {
262
+ requiresAccountHome?: boolean | undefined;
263
+ provider: string;
264
+ status: "connected" | "disconnected" | "not-installed" | "unknown";
265
+ enabled?: boolean | undefined;
266
+ hint?: string | undefined;
267
+ authFailureId?: string | undefined;
268
+ profileId?: string | undefined;
269
+ } | undefined;
270
+ }[];
271
+ profileCapableProviders: string[];
272
+ selections: {
273
+ [x: string]: {
274
+ [x: string]: string | undefined;
275
+ };
276
+ };
277
+ };
278
+ outputFormat: "json";
279
+ status: import("hono/utils/http-status").ContentfulStatusCode;
280
+ input: {};
281
+ };
282
+ };
283
+ } & {
284
+ "/workspace/agent-profiles": {
285
+ $post: {
286
+ output: {
287
+ error: string;
288
+ };
289
+ outputFormat: "json";
290
+ status: 409;
291
+ input: {
292
+ json: {
293
+ provider: string;
294
+ label?: string | undefined;
295
+ configDir: string;
296
+ };
297
+ };
298
+ } | {
299
+ output: {
300
+ error: string;
301
+ };
302
+ outputFormat: "json";
303
+ status: 400;
304
+ input: {
305
+ json: {
306
+ provider: string;
307
+ label?: string | undefined;
308
+ configDir: string;
309
+ };
310
+ };
311
+ } | {
312
+ output: {
313
+ error: string;
314
+ };
315
+ outputFormat: "json";
316
+ status: 500;
317
+ input: {
318
+ json: {
319
+ provider: string;
320
+ label?: string | undefined;
321
+ configDir: string;
322
+ };
323
+ };
324
+ } | {
325
+ output: {
326
+ profile: {
327
+ id: string;
328
+ provider: string;
329
+ label: string;
330
+ configDir: string;
331
+ path: string;
332
+ exists: boolean;
333
+ looksValid: boolean;
334
+ isDefault: boolean;
335
+ status?: {
336
+ requiresAccountHome?: boolean | undefined;
337
+ provider: string;
338
+ status: "connected" | "disconnected" | "not-installed" | "unknown";
339
+ enabled?: boolean | undefined;
340
+ hint?: string | undefined;
341
+ authFailureId?: string | undefined;
342
+ profileId?: string | undefined;
343
+ } | undefined;
344
+ };
345
+ };
346
+ outputFormat: "json";
347
+ status: 201;
348
+ input: {
349
+ json: {
350
+ provider: string;
351
+ label?: string | undefined;
352
+ configDir: string;
353
+ };
354
+ };
355
+ };
356
+ };
357
+ } & {
358
+ "/workspace/agent-profiles/:id": {
359
+ $patch: {
360
+ output: {
361
+ error: string;
362
+ code?: "invalid_input" | undefined;
363
+ };
364
+ outputFormat: "json";
365
+ status: 400;
366
+ input: {
367
+ param: {
368
+ id: string;
369
+ };
370
+ } & {
371
+ json: {
372
+ label?: string | undefined;
373
+ configDir?: string | undefined;
374
+ };
375
+ };
376
+ } | {
377
+ output: {
378
+ error: string;
379
+ };
380
+ outputFormat: "json";
381
+ status: 409;
382
+ input: {
383
+ param: {
384
+ id: string;
385
+ };
386
+ } & {
387
+ json: {
388
+ label?: string | undefined;
389
+ configDir?: string | undefined;
390
+ };
391
+ };
392
+ } | {
393
+ output: {
394
+ error: string;
395
+ };
396
+ outputFormat: "json";
397
+ status: 400;
398
+ input: {
399
+ param: {
400
+ id: string;
401
+ };
402
+ } & {
403
+ json: {
404
+ label?: string | undefined;
405
+ configDir?: string | undefined;
406
+ };
407
+ };
408
+ } | {
409
+ output: {
410
+ error: string;
411
+ };
412
+ outputFormat: "json";
413
+ status: 404;
414
+ input: {
415
+ param: {
416
+ id: string;
417
+ };
418
+ } & {
419
+ json: {
420
+ label?: string | undefined;
421
+ configDir?: string | undefined;
422
+ };
423
+ };
424
+ } | {
425
+ output: {
426
+ error: string;
427
+ };
428
+ outputFormat: "json";
429
+ status: 500;
430
+ input: {
431
+ param: {
432
+ id: string;
433
+ };
434
+ } & {
435
+ json: {
436
+ label?: string | undefined;
437
+ configDir?: string | undefined;
438
+ };
439
+ };
440
+ } | {
441
+ output: {
442
+ profile: {
443
+ id: string;
444
+ provider: string;
445
+ label: string;
446
+ configDir: string;
447
+ path: string;
448
+ exists: boolean;
449
+ looksValid: boolean;
450
+ isDefault: boolean;
451
+ status?: {
452
+ requiresAccountHome?: boolean | undefined;
453
+ provider: string;
454
+ status: "connected" | "disconnected" | "not-installed" | "unknown";
455
+ enabled?: boolean | undefined;
456
+ hint?: string | undefined;
457
+ authFailureId?: string | undefined;
458
+ profileId?: string | undefined;
459
+ } | undefined;
460
+ };
461
+ };
462
+ outputFormat: "json";
463
+ status: import("hono/utils/http-status").ContentfulStatusCode;
464
+ input: {
465
+ param: {
466
+ id: string;
467
+ };
468
+ } & {
469
+ json: {
470
+ label?: string | undefined;
471
+ configDir?: string | undefined;
472
+ };
473
+ };
474
+ };
475
+ };
476
+ } & {
477
+ "/workspace/agent-profiles/:id/status": {
478
+ $get: {
479
+ output: {
480
+ error: string;
481
+ code?: "invalid_input" | undefined;
482
+ };
483
+ outputFormat: "json";
484
+ status: 400;
485
+ input: {
486
+ param: {
487
+ id: string;
488
+ };
489
+ } & {
490
+ query: {
491
+ refresh?: "1" | undefined;
492
+ };
493
+ };
494
+ } | {
495
+ output: {
496
+ error: string;
497
+ };
498
+ outputFormat: "json";
499
+ status: 409;
500
+ input: {
501
+ param: {
502
+ id: string;
503
+ };
504
+ } & {
505
+ query: {
506
+ refresh?: "1" | undefined;
507
+ };
508
+ };
509
+ } | {
510
+ output: {
511
+ error: string;
512
+ };
513
+ outputFormat: "json";
514
+ status: 404;
515
+ input: {
516
+ param: {
517
+ id: string;
518
+ };
519
+ } & {
520
+ query: {
521
+ refresh?: "1" | undefined;
522
+ };
523
+ };
524
+ } | {
525
+ output: {
526
+ status: {
527
+ requiresAccountHome?: boolean | undefined;
528
+ provider: string;
529
+ status: "connected" | "disconnected" | "not-installed" | "unknown";
530
+ enabled?: boolean | undefined;
531
+ hint?: string | undefined;
532
+ authFailureId?: string | undefined;
533
+ profileId?: string | undefined;
534
+ };
535
+ };
536
+ outputFormat: "json";
537
+ status: import("hono/utils/http-status").ContentfulStatusCode;
538
+ input: {
539
+ param: {
540
+ id: string;
541
+ };
542
+ } & {
543
+ query: {
544
+ refresh?: "1" | undefined;
545
+ };
546
+ };
547
+ };
548
+ };
549
+ } & {
550
+ "/workspace/agent-profiles/selection": {
551
+ $put: {
552
+ output: {
553
+ error: string;
554
+ };
555
+ outputFormat: "json";
556
+ status: 409;
557
+ input: {
558
+ json: {
559
+ projectId: string;
560
+ provider: string;
561
+ profileId: string | null;
562
+ };
563
+ };
564
+ } | {
565
+ output: {
566
+ error: string;
567
+ };
568
+ outputFormat: "json";
569
+ status: 404;
570
+ input: {
571
+ json: {
572
+ projectId: string;
573
+ provider: string;
574
+ profileId: string | null;
575
+ };
576
+ };
577
+ } | {
578
+ output: {
579
+ error: string;
580
+ };
581
+ outputFormat: "json";
582
+ status: 400;
583
+ input: {
584
+ json: {
585
+ projectId: string;
586
+ provider: string;
587
+ profileId: string | null;
588
+ };
589
+ };
590
+ } | {
591
+ output: {
592
+ error: string;
593
+ };
594
+ outputFormat: "json";
595
+ status: 500;
596
+ input: {
597
+ json: {
598
+ projectId: string;
599
+ provider: string;
600
+ profileId: string | null;
601
+ };
602
+ };
603
+ } | {
604
+ output: {
605
+ selections: {
606
+ [x: string]: {
607
+ [x: string]: string | undefined;
608
+ };
609
+ };
610
+ };
611
+ outputFormat: "json";
612
+ status: import("hono/utils/http-status").ContentfulStatusCode;
613
+ input: {
614
+ json: {
615
+ projectId: string;
616
+ provider: string;
617
+ profileId: string | null;
618
+ };
619
+ };
620
+ };
621
+ };
622
+ } & {
623
+ "/workspace/agent-profiles/:id": {
624
+ $delete: {
625
+ output: {
626
+ error: string;
627
+ code?: "invalid_input" | undefined;
628
+ };
629
+ outputFormat: "json";
630
+ status: 400;
631
+ input: {
632
+ param: {
633
+ id: string;
634
+ };
635
+ };
636
+ } | {
637
+ output: {
638
+ error: string;
639
+ };
640
+ outputFormat: "json";
641
+ status: 409;
642
+ input: {
643
+ param: {
644
+ id: string;
645
+ };
646
+ };
647
+ } | {
648
+ output: {
649
+ error: string;
650
+ };
651
+ outputFormat: "json";
652
+ status: 500;
653
+ input: {
654
+ param: {
655
+ id: string;
656
+ };
657
+ };
658
+ } | {
659
+ output: {
660
+ error: string;
661
+ };
662
+ outputFormat: "json";
663
+ status: 404;
664
+ input: {
665
+ param: {
666
+ id: string;
667
+ };
668
+ };
669
+ } | {
670
+ output: {
671
+ removed: true;
672
+ id: string;
673
+ };
674
+ outputFormat: "json";
675
+ status: import("hono/utils/http-status").ContentfulStatusCode;
676
+ input: {
677
+ param: {
678
+ id: string;
679
+ };
680
+ };
681
+ };
682
+ };
683
+ }, "/", "/workspace/agent-profiles/:id">;