@hearsay-tools/squawk 0.18.0-dev.8591 → 0.18.0-dev.8610

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 (41) hide show
  1. package/dist/automations/tools.d.ts +8 -8
  2. package/dist/delegation/routes.d.ts +65 -65
  3. package/dist/features/mcp/cli.d.ts +14 -0
  4. package/dist/features/mcp/cli.js +87 -0
  5. package/dist/features/mcp/cli.js.map +1 -0
  6. package/dist/features/mcp/index.d.ts +9 -0
  7. package/dist/features/mcp/index.js +13 -0
  8. package/dist/features/mcp/index.js.map +1 -0
  9. package/dist/features/mcp/stdio.d.ts +10 -0
  10. package/dist/features/mcp/stdio.js +41 -0
  11. package/dist/features/mcp/stdio.js.map +1 -0
  12. package/dist/features/mcp/tools.d.ts +19 -0
  13. package/dist/features/mcp/tools.js +476 -0
  14. package/dist/features/mcp/tools.js.map +1 -0
  15. package/dist/server/activity-routes.d.ts +23 -23
  16. package/dist/server/live-routes.d.ts +6 -6
  17. package/dist/server/models-routes.d.ts +12 -12
  18. package/dist/server/projects-routes.d.ts +45 -45
  19. package/dist/server/providers-routes.d.ts +57 -57
  20. package/dist/server/repo-routes.d.ts +34 -34
  21. package/dist/server/reports-api.d.ts +2 -2
  22. package/dist/server/runners-routes.d.ts +10 -10
  23. package/dist/server/runs-routes.d.ts +47 -47
  24. package/dist/server/server.d.ts +1596 -1596
  25. package/dist/server/workspace-live-routes.d.ts +6 -6
  26. package/dist/server/workspace-routes.d.ts +84 -84
  27. package/dist/task-cli/cli.js +54 -221
  28. package/dist/task-cli/cli.js.map +1 -1
  29. package/dist/task-cli/discovery.d.ts +22 -1
  30. package/dist/task-cli/discovery.js +69 -17
  31. package/dist/task-cli/discovery.js.map +1 -1
  32. package/dist/task-cli/http.d.ts +15 -13
  33. package/dist/task-cli/http.js +16 -6
  34. package/dist/task-cli/http.js.map +1 -1
  35. package/dist/task-cli/operations.d.ts +156 -0
  36. package/dist/task-cli/operations.js +388 -0
  37. package/dist/task-cli/operations.js.map +1 -0
  38. package/dist/task-cli/watch.d.ts +31 -8
  39. package/dist/task-cli/watch.js +159 -91
  40. package/dist/task-cli/watch.js.map +1 -1
  41. package/package.json +4 -4
@@ -63,6 +63,17 @@ 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
+ } | {
66
77
  output: {
67
78
  project: {
68
79
  id: string;
@@ -93,10 +104,10 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
93
104
  agent: boolean;
94
105
  }[] | undefined;
95
106
  };
96
- error?: string | undefined;
107
+ error: string;
97
108
  };
98
109
  outputFormat: "json";
99
- status: 200;
110
+ status: 409;
100
111
  input: {
101
112
  json: {
102
113
  root: string;
@@ -133,21 +144,10 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
133
144
  agent: boolean;
134
145
  }[] | undefined;
135
146
  };
136
- error: string;
137
- };
138
- outputFormat: "json";
139
- status: 409;
140
- input: {
141
- json: {
142
- root: string;
143
- };
144
- };
145
- } | {
146
- output: {
147
- error: string;
147
+ error?: string | undefined;
148
148
  };
149
149
  outputFormat: "json";
150
- status: 400 | 500;
150
+ status: 200;
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: 400;
309
+ status: 404;
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: 404;
320
+ status: 400;
321
321
  input: {
322
322
  param: {
323
323
  projectId: string;
@@ -342,6 +342,27 @@ 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
+ } | {
345
366
  output: {
346
367
  project: {
347
368
  id: string;
@@ -400,27 +421,6 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
400
421
  projectId: string;
401
422
  };
402
423
  };
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,10 +618,13 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
618
618
  };
619
619
  } | {
620
620
  output: {
621
- error: string;
621
+ ok: boolean;
622
+ status?: number | undefined;
623
+ error?: string | undefined;
624
+ dryRun?: boolean | undefined;
622
625
  };
623
626
  outputFormat: "json";
624
- status: 404;
627
+ status: import("hono/utils/http-status").ContentfulStatusCode;
625
628
  input: {
626
629
  param: {
627
630
  projectId: string;
@@ -630,13 +633,10 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
630
633
  };
631
634
  } | {
632
635
  output: {
633
- ok: boolean;
634
- status?: number | undefined;
635
- error?: string | undefined;
636
- dryRun?: boolean | undefined;
636
+ error: string;
637
637
  };
638
638
  outputFormat: "json";
639
- status: import("hono/utils/http-status").ContentfulStatusCode;
639
+ status: 404;
640
640
  input: {
641
641
  param: {
642
642
  projectId: string;
@@ -70,10 +70,18 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
70
70
  };
71
71
  } | {
72
72
  output: {
73
- error: string;
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
+ }[];
74
82
  };
75
83
  outputFormat: "json";
76
- status: 500;
84
+ status: import("hono/utils/http-status").ContentfulStatusCode;
77
85
  input: {
78
86
  param: {
79
87
  provider: string;
@@ -85,18 +93,10 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
85
93
  };
86
94
  } | {
87
95
  output: {
88
- providers: {
89
- requiresAccountHome?: boolean | undefined;
90
- provider: string;
91
- status: "connected" | "disconnected" | "not-installed" | "unknown";
92
- enabled?: boolean | undefined;
93
- hint?: string | undefined;
94
- authFailureId?: string | undefined;
95
- profileId?: string | undefined;
96
- }[];
96
+ error: string;
97
97
  };
98
98
  outputFormat: "json";
99
- status: import("hono/utils/http-status").ContentfulStatusCode;
99
+ status: 500;
100
100
  input: {
101
101
  param: {
102
102
  provider: string;
@@ -128,10 +128,18 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
128
128
  };
129
129
  } | {
130
130
  output: {
131
- error: string;
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
+ }[];
132
140
  };
133
141
  outputFormat: "json";
134
- status: 409;
142
+ status: import("hono/utils/http-status").ContentfulStatusCode;
135
143
  input: {
136
144
  param: {
137
145
  provider: string;
@@ -143,18 +151,10 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
143
151
  };
144
152
  } | {
145
153
  output: {
146
- providers: {
147
- requiresAccountHome?: boolean | undefined;
148
- provider: string;
149
- status: "connected" | "disconnected" | "not-installed" | "unknown";
150
- enabled?: boolean | undefined;
151
- hint?: string | undefined;
152
- authFailureId?: string | undefined;
153
- profileId?: string | undefined;
154
- }[];
154
+ error: string;
155
155
  };
156
156
  outputFormat: "json";
157
- status: import("hono/utils/http-status").ContentfulStatusCode;
157
+ status: 409;
158
158
  input: {
159
159
  param: {
160
160
  provider: string;
@@ -173,7 +173,7 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
173
173
  error: string;
174
174
  };
175
175
  outputFormat: "json";
176
- status: 400;
176
+ status: 409;
177
177
  input: {
178
178
  json: {
179
179
  provider: string;
@@ -185,7 +185,7 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
185
185
  error: string;
186
186
  };
187
187
  outputFormat: "json";
188
- status: 409;
188
+ status: 400;
189
189
  input: {
190
190
  json: {
191
191
  provider: string;
@@ -290,28 +290,10 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
290
290
  "/workspace/agent-profiles": {
291
291
  $post: {
292
292
  output: {
293
- profile: {
294
- id: string;
295
- provider: string;
296
- label: string;
297
- configDir?: string | undefined;
298
- path?: string | undefined;
299
- exists: boolean;
300
- looksValid: boolean;
301
- isDefault: boolean;
302
- status?: {
303
- requiresAccountHome?: boolean | undefined;
304
- provider: string;
305
- status: "connected" | "disconnected" | "not-installed" | "unknown";
306
- enabled?: boolean | undefined;
307
- hint?: string | undefined;
308
- authFailureId?: string | undefined;
309
- profileId?: string | undefined;
310
- } | undefined;
311
- };
293
+ error: string;
312
294
  };
313
295
  outputFormat: "json";
314
- status: 201;
296
+ status: 409;
315
297
  input: {
316
298
  json: {
317
299
  provider: string;
@@ -337,7 +319,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
337
319
  error: string;
338
320
  };
339
321
  outputFormat: "json";
340
- status: 409;
322
+ status: 500;
341
323
  input: {
342
324
  json: {
343
325
  provider: string;
@@ -347,10 +329,28 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
347
329
  };
348
330
  } | {
349
331
  output: {
350
- error: string;
332
+ profile: {
333
+ id: string;
334
+ provider: string;
335
+ label: string;
336
+ configDir?: string | undefined;
337
+ path?: string | undefined;
338
+ exists: boolean;
339
+ looksValid: boolean;
340
+ isDefault: boolean;
341
+ status?: {
342
+ requiresAccountHome?: boolean | undefined;
343
+ provider: string;
344
+ status: "connected" | "disconnected" | "not-installed" | "unknown";
345
+ enabled?: boolean | undefined;
346
+ hint?: string | undefined;
347
+ authFailureId?: string | undefined;
348
+ profileId?: string | undefined;
349
+ } | undefined;
350
+ };
351
351
  };
352
352
  outputFormat: "json";
353
- status: 500;
353
+ status: 201;
354
354
  input: {
355
355
  json: {
356
356
  provider: string;
@@ -384,7 +384,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
384
384
  error: string;
385
385
  };
386
386
  outputFormat: "json";
387
- status: 400;
387
+ status: 409;
388
388
  input: {
389
389
  param: {
390
390
  id: string;
@@ -400,7 +400,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
400
400
  error: string;
401
401
  };
402
402
  outputFormat: "json";
403
- status: 404;
403
+ status: 400;
404
404
  input: {
405
405
  param: {
406
406
  id: string;
@@ -416,7 +416,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
416
416
  error: string;
417
417
  };
418
418
  outputFormat: "json";
419
- status: 409;
419
+ status: 404;
420
420
  input: {
421
421
  param: {
422
422
  id: string;
@@ -544,7 +544,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
544
544
  error: string;
545
545
  };
546
546
  outputFormat: "json";
547
- status: 400;
547
+ status: 404;
548
548
  input: {
549
549
  json: {
550
550
  projectId: string;
@@ -557,7 +557,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
557
557
  error: string;
558
558
  };
559
559
  outputFormat: "json";
560
- status: 404;
560
+ status: 400;
561
561
  input: {
562
562
  json: {
563
563
  projectId: string;
@@ -621,7 +621,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
621
621
  error: string;
622
622
  };
623
623
  outputFormat: "json";
624
- status: 404;
624
+ status: 409;
625
625
  input: {
626
626
  param: {
627
627
  id: string;
@@ -632,7 +632,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
632
632
  error: string;
633
633
  };
634
634
  outputFormat: "json";
635
- status: 409;
635
+ status: 500;
636
636
  input: {
637
637
  param: {
638
638
  id: string;
@@ -643,7 +643,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
643
643
  error: string;
644
644
  };
645
645
  outputFormat: "json";
646
- status: 500;
646
+ status: 404;
647
647
  input: {
648
648
  param: {
649
649
  id: string;
@@ -31,7 +31,7 @@ export declare function createOpenTargetsRoutes(deps: OpenTargetsRouteDeps): imp
31
31
  error: string;
32
32
  };
33
33
  outputFormat: "json";
34
- status: 400;
34
+ status: 409;
35
35
  input: {
36
36
  json: {
37
37
  target: string;
@@ -42,7 +42,7 @@ export declare function createOpenTargetsRoutes(deps: OpenTargetsRouteDeps): imp
42
42
  error: string;
43
43
  };
44
44
  outputFormat: "json";
45
- status: 409;
45
+ status: 400;
46
46
  input: {
47
47
  json: {
48
48
  target: string;
@@ -120,11 +120,10 @@ export declare function createWorktreesRoutes(deps: WorktreesRouteDeps): import(
120
120
  };
121
121
  } | {
122
122
  output: {
123
- runId: string;
124
- worktreeReclaimedAt: string;
123
+ error: string;
125
124
  };
126
125
  outputFormat: "json";
127
- status: import("hono/utils/http-status").ContentfulStatusCode;
126
+ status: 404 | 409;
128
127
  input: {
129
128
  param: {
130
129
  runId: string;
@@ -132,10 +131,11 @@ export declare function createWorktreesRoutes(deps: WorktreesRouteDeps): import(
132
131
  };
133
132
  } | {
134
133
  output: {
135
- error: string;
134
+ runId: string;
135
+ worktreeReclaimedAt: string;
136
136
  };
137
137
  outputFormat: "json";
138
- status: 404 | 409;
138
+ status: import("hono/utils/http-status").ContentfulStatusCode;
139
139
  input: {
140
140
  param: {
141
141
  runId: string;
@@ -267,18 +267,14 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
267
267
  "/repo/branches/delete": {
268
268
  $post: {
269
269
  output: {
270
- deleted: string[];
270
+ error: string;
271
271
  refused: {
272
272
  name: string;
273
273
  reason: string;
274
274
  }[];
275
- dropped?: {
276
- sha: string;
277
- subject: string;
278
- }[] | undefined;
279
275
  };
280
276
  outputFormat: "json";
281
- status: 200;
277
+ status: 409;
282
278
  input: {
283
279
  json: {
284
280
  names: string[];
@@ -287,14 +283,18 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
287
283
  };
288
284
  } | {
289
285
  output: {
290
- error: string;
286
+ deleted: string[];
291
287
  refused: {
292
288
  name: string;
293
289
  reason: string;
294
290
  }[];
291
+ dropped?: {
292
+ sha: string;
293
+ subject: string;
294
+ }[] | undefined;
295
295
  };
296
296
  outputFormat: "json";
297
- status: 409;
297
+ status: 200;
298
298
  input: {
299
299
  json: {
300
300
  names: string[];
@@ -315,6 +315,19 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
315
315
  } & {
316
316
  "/repo/commit/:sha": {
317
317
  $get: {
318
+ output: string;
319
+ outputFormat: "text";
320
+ status: import("hono/utils/http-status").ContentfulStatusCode;
321
+ input: {
322
+ query: {
323
+ structured?: string | undefined;
324
+ };
325
+ } & {
326
+ param: {
327
+ sha: string;
328
+ };
329
+ };
330
+ } | {
318
331
  output: {
319
332
  error: string;
320
333
  code?: "invalid_input" | undefined;
@@ -378,19 +391,6 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
378
391
  sha: string;
379
392
  };
380
393
  };
381
- } | {
382
- output: string;
383
- outputFormat: "text";
384
- status: import("hono/utils/http-status").ContentfulStatusCode;
385
- input: {
386
- query: {
387
- structured?: string | undefined;
388
- };
389
- } & {
390
- param: {
391
- sha: string;
392
- };
393
- };
394
394
  };
395
395
  };
396
396
  } & {
@@ -451,12 +451,10 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
451
451
  "/repo/pull": {
452
452
  $post: {
453
453
  output: {
454
- branch: string;
455
- pulled: true;
456
- summary: string;
454
+ error: string;
457
455
  };
458
456
  outputFormat: "json";
459
- status: 200;
457
+ status: 409;
460
458
  input: {
461
459
  json: {
462
460
  branch?: string | undefined;
@@ -465,10 +463,12 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
465
463
  };
466
464
  } | {
467
465
  output: {
468
- error: string;
466
+ branch: string;
467
+ pulled: true;
468
+ summary: string;
469
469
  };
470
470
  outputFormat: "json";
471
- status: 409;
471
+ status: 200;
472
472
  input: {
473
473
  json: {
474
474
  branch?: string | undefined;
@@ -40,7 +40,7 @@ export declare const reportsRoutes: import("hono/hono-base").HonoBase<ProjectApi
40
40
  error: string;
41
41
  };
42
42
  outputFormat: "json";
43
- status: 400;
43
+ status: 409;
44
44
  input: {
45
45
  query: {
46
46
  q?: string | undefined;
@@ -53,7 +53,7 @@ export declare const reportsRoutes: import("hono/hono-base").HonoBase<ProjectApi
53
53
  error: string;
54
54
  };
55
55
  outputFormat: "json";
56
- status: 409;
56
+ status: 400;
57
57
  input: {
58
58
  query: {
59
59
  q?: string | undefined;
@@ -58,15 +58,11 @@ export declare function createRunnersRoutes(options: {
58
58
  "/runner-install/:runner": {
59
59
  $post: {
60
60
  output: {
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;
61
+ error: string;
62
+ code?: "invalid_input" | undefined;
67
63
  };
68
64
  outputFormat: "json";
69
- status: 202;
65
+ status: 400;
70
66
  input: {
71
67
  param: {
72
68
  runner: string;
@@ -78,11 +74,15 @@ export declare function createRunnersRoutes(options: {
78
74
  };
79
75
  } | {
80
76
  output: {
81
- error: string;
82
- code?: "invalid_input" | undefined;
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;
83
83
  };
84
84
  outputFormat: "json";
85
- status: 400;
85
+ status: 202;
86
86
  input: {
87
87
  param: {
88
88
  runner: string;