@hearsay-tools/squawk 0.18.0-dev.8318 → 0.18.0-dev.8324

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.
@@ -0,0 +1,999 @@
1
+ import type { RunnerSkillCatalog } from '../core/runner-skill-catalog.ts';
2
+ import type { Home } from '../home/home.ts';
3
+ import { type TaskWebhooks } from '../runs/webhook.ts';
4
+ import { type ProjectApiEnv, type ProviderStatusBundle, type ResolveWorkspaceProfileFn, type ServerCapabilitiesFn } from './server-types.ts';
5
+ export interface SkillsRouteDeps {
6
+ home: Home;
7
+ capabilities: ServerCapabilitiesFn;
8
+ skillCatalog: RunnerSkillCatalog;
9
+ resolveWorkspaceProfile: ResolveWorkspaceProfileFn;
10
+ }
11
+ export declare function createSkillsRoutes(deps: SkillsRouteDeps): import("hono/hono-base").HonoBase<ProjectApiEnv, {
12
+ "/runner-skills": {
13
+ $get: {
14
+ output: {
15
+ error: string;
16
+ code?: "invalid_input" | undefined;
17
+ };
18
+ outputFormat: "json";
19
+ status: 400;
20
+ input: {
21
+ query: {
22
+ runner: string | string[];
23
+ account?: string | undefined;
24
+ refresh?: "1" | undefined;
25
+ };
26
+ };
27
+ } | {
28
+ output: {
29
+ error: string;
30
+ };
31
+ outputFormat: "json";
32
+ status: 409;
33
+ input: {
34
+ query: {
35
+ runner: string | string[];
36
+ account?: string | undefined;
37
+ refresh?: "1" | undefined;
38
+ };
39
+ };
40
+ } | {
41
+ output: {
42
+ error: string;
43
+ };
44
+ outputFormat: "json";
45
+ status: 400;
46
+ input: {
47
+ query: {
48
+ runner: string | string[];
49
+ account?: string | undefined;
50
+ refresh?: "1" | undefined;
51
+ };
52
+ };
53
+ } | {
54
+ output: {
55
+ runner: string;
56
+ skills: {
57
+ id: string;
58
+ name: string;
59
+ description?: string | undefined;
60
+ scope?: "other" | "repo" | "system" | "user" | undefined;
61
+ plugin?: string | undefined;
62
+ path?: string | undefined;
63
+ }[];
64
+ problems: {
65
+ message: string;
66
+ path?: string | undefined;
67
+ }[];
68
+ source: "cache" | "live" | "unavailable";
69
+ reason?: string | undefined;
70
+ };
71
+ outputFormat: "json";
72
+ status: import("hono/utils/http-status").ContentfulStatusCode;
73
+ input: {
74
+ query: {
75
+ runner: string | string[];
76
+ account?: string | undefined;
77
+ refresh?: "1" | undefined;
78
+ };
79
+ };
80
+ };
81
+ };
82
+ }, "/", "/runner-skills">;
83
+ export declare function createUiStateRoutes(): import("hono/hono-base").HonoBase<ProjectApiEnv, {
84
+ "/ui-state": {
85
+ $get: {
86
+ output: {
87
+ [x: string]: import("hono/utils/types").JSONValue;
88
+ sidebarLimits?: {
89
+ overall?: number | null | undefined;
90
+ needsYou?: number | null | undefined;
91
+ finished?: number | null | undefined;
92
+ working?: number | null | undefined;
93
+ } | undefined;
94
+ lastTask?: {
95
+ source: "skill" | "workflow";
96
+ ref: string;
97
+ } | null | undefined;
98
+ recentSources?: {
99
+ source: "skill" | "workflow";
100
+ ref: string;
101
+ }[] | undefined;
102
+ lastWorktree?: boolean | undefined;
103
+ lastAutonomous?: boolean | undefined;
104
+ skillUsage?: {
105
+ [x: string]: number;
106
+ } | undefined;
107
+ runsView?: "list" | "table" | undefined;
108
+ githubView?: "issues" | "prs" | undefined;
109
+ appearance?: {
110
+ accent?: "cezarion" | "lime" | "violet" | undefined;
111
+ density?: "comfortable" | "compact" | "ultra" | undefined;
112
+ width?: "narrow" | "wide" | undefined;
113
+ } | undefined;
114
+ promptTemplates?: {
115
+ id: string;
116
+ label: string;
117
+ text: string;
118
+ skills?: string[] | undefined;
119
+ }[] | undefined;
120
+ };
121
+ outputFormat: "json";
122
+ status: import("hono/utils/http-status").ContentfulStatusCode;
123
+ input: {};
124
+ };
125
+ };
126
+ } & {
127
+ "/ui-state": {
128
+ $put: {
129
+ output: {
130
+ [x: string]: import("hono/utils/types").JSONValue;
131
+ sidebarLimits?: {
132
+ overall?: number | null | undefined;
133
+ needsYou?: number | null | undefined;
134
+ finished?: number | null | undefined;
135
+ working?: number | null | undefined;
136
+ } | undefined;
137
+ lastTask?: {
138
+ source: "skill" | "workflow";
139
+ ref: string;
140
+ } | null | undefined;
141
+ recentSources?: {
142
+ source: "skill" | "workflow";
143
+ ref: string;
144
+ }[] | undefined;
145
+ lastWorktree?: boolean | undefined;
146
+ lastAutonomous?: boolean | undefined;
147
+ skillUsage?: {
148
+ [x: string]: number;
149
+ } | undefined;
150
+ runsView?: "list" | "table" | undefined;
151
+ githubView?: "issues" | "prs" | undefined;
152
+ appearance?: {
153
+ accent?: "cezarion" | "lime" | "violet" | undefined;
154
+ density?: "comfortable" | "compact" | "ultra" | undefined;
155
+ width?: "narrow" | "wide" | undefined;
156
+ } | undefined;
157
+ promptTemplates?: {
158
+ id: string;
159
+ label: string;
160
+ text: string;
161
+ skills?: string[] | undefined;
162
+ }[] | undefined;
163
+ };
164
+ outputFormat: "json";
165
+ status: import("hono/utils/http-status").ContentfulStatusCode;
166
+ input: {
167
+ json: {
168
+ [x: string]: unknown;
169
+ sidebarLimits?: {
170
+ overall?: number | null | undefined;
171
+ needsYou?: number | null | undefined;
172
+ finished?: number | null | undefined;
173
+ working?: number | null | undefined;
174
+ } | undefined;
175
+ lastWorktree?: boolean | undefined;
176
+ lastAutonomous?: boolean | undefined;
177
+ runsView?: "list" | "table" | undefined;
178
+ githubView?: "issues" | "prs" | undefined;
179
+ appearance?: {
180
+ accent?: "cezarion" | "lime" | "violet" | undefined;
181
+ density?: "comfortable" | "compact" | "ultra" | undefined;
182
+ width?: "narrow" | "wide" | undefined;
183
+ } | undefined;
184
+ lastTask?: {
185
+ source: "skill" | "workflow";
186
+ ref: string;
187
+ } | null | undefined;
188
+ recentSources?: {
189
+ source: "skill" | "workflow";
190
+ ref: string;
191
+ }[] | undefined;
192
+ skillUsage?: Record<string, number> | undefined;
193
+ promptTemplates?: {
194
+ id: string;
195
+ label: string;
196
+ text: string;
197
+ skills?: string[] | undefined;
198
+ }[] | undefined;
199
+ };
200
+ };
201
+ } | {
202
+ output: {
203
+ error: string;
204
+ };
205
+ outputFormat: "json";
206
+ status: 500;
207
+ input: {
208
+ json: {
209
+ [x: string]: unknown;
210
+ sidebarLimits?: {
211
+ overall?: number | null | undefined;
212
+ needsYou?: number | null | undefined;
213
+ finished?: number | null | undefined;
214
+ working?: number | null | undefined;
215
+ } | undefined;
216
+ lastWorktree?: boolean | undefined;
217
+ lastAutonomous?: boolean | undefined;
218
+ runsView?: "list" | "table" | undefined;
219
+ githubView?: "issues" | "prs" | undefined;
220
+ appearance?: {
221
+ accent?: "cezarion" | "lime" | "violet" | undefined;
222
+ density?: "comfortable" | "compact" | "ultra" | undefined;
223
+ width?: "narrow" | "wide" | undefined;
224
+ } | undefined;
225
+ lastTask?: {
226
+ source: "skill" | "workflow";
227
+ ref: string;
228
+ } | null | undefined;
229
+ recentSources?: {
230
+ source: "skill" | "workflow";
231
+ ref: string;
232
+ }[] | undefined;
233
+ skillUsage?: Record<string, number> | undefined;
234
+ promptTemplates?: {
235
+ id: string;
236
+ label: string;
237
+ text: string;
238
+ skills?: string[] | undefined;
239
+ }[] | undefined;
240
+ };
241
+ };
242
+ };
243
+ };
244
+ }, "/", "/ui-state">;
245
+ export declare function createWorkflowsRoutes(): import("hono/hono-base").HonoBase<ProjectApiEnv, {
246
+ "/workflows": {
247
+ $get: {
248
+ output: {
249
+ workflows: {
250
+ name: string;
251
+ description?: string | undefined;
252
+ steps: {
253
+ id: string;
254
+ name?: string | undefined;
255
+ prompt?: string | undefined;
256
+ skill?: string | undefined;
257
+ model?: string | undefined;
258
+ effort?: string | undefined;
259
+ timeoutMs?: number | undefined;
260
+ runner?: string | undefined;
261
+ agentProfile?: string | undefined;
262
+ allowedTools?: string[] | undefined;
263
+ bashAllowlist?: string[] | undefined;
264
+ kind?: "plugin" | undefined;
265
+ pluginKind?: string | undefined;
266
+ config?: {
267
+ [x: string]: import("hono/utils/types").JSONValue;
268
+ } | undefined;
269
+ command?: string | undefined;
270
+ onFail?: {
271
+ retry: string;
272
+ max: number;
273
+ } | undefined;
274
+ }[];
275
+ source: "built-in" | "file";
276
+ path?: string | undefined;
277
+ }[];
278
+ issues: {
279
+ path: string;
280
+ message: string;
281
+ }[];
282
+ };
283
+ outputFormat: "json";
284
+ status: import("hono/utils/http-status").ContentfulStatusCode;
285
+ input: {};
286
+ };
287
+ };
288
+ } & {
289
+ "/workflows": {
290
+ $post: {
291
+ output: {
292
+ error: string;
293
+ };
294
+ outputFormat: "json";
295
+ status: 400;
296
+ input: {
297
+ json: {
298
+ name: string;
299
+ description?: string | undefined;
300
+ steps?: {
301
+ id: string;
302
+ name?: string | undefined;
303
+ prompt?: string | undefined;
304
+ skill?: string | undefined;
305
+ model?: string | undefined;
306
+ effort?: string | undefined;
307
+ timeoutMs?: number | undefined;
308
+ runner?: string | undefined;
309
+ agentProfile?: string | undefined;
310
+ allowedTools?: string[] | undefined;
311
+ bashAllowlist?: string[] | undefined;
312
+ kind?: "plugin" | undefined;
313
+ pluginKind?: string | undefined;
314
+ config?: Record<string, unknown> | undefined;
315
+ command?: string | undefined;
316
+ onFail?: {
317
+ retry: string;
318
+ max?: number | undefined;
319
+ } | undefined;
320
+ }[] | undefined;
321
+ skills?: string[] | undefined;
322
+ overwrite?: boolean | undefined;
323
+ };
324
+ };
325
+ } | {
326
+ output: {
327
+ error: string;
328
+ exists: true;
329
+ };
330
+ outputFormat: "json";
331
+ status: 409;
332
+ input: {
333
+ json: {
334
+ name: string;
335
+ description?: string | undefined;
336
+ steps?: {
337
+ id: string;
338
+ name?: string | undefined;
339
+ prompt?: string | undefined;
340
+ skill?: string | undefined;
341
+ model?: string | undefined;
342
+ effort?: string | undefined;
343
+ timeoutMs?: number | undefined;
344
+ runner?: string | undefined;
345
+ agentProfile?: string | undefined;
346
+ allowedTools?: string[] | undefined;
347
+ bashAllowlist?: string[] | undefined;
348
+ kind?: "plugin" | undefined;
349
+ pluginKind?: string | undefined;
350
+ config?: Record<string, unknown> | undefined;
351
+ command?: string | undefined;
352
+ onFail?: {
353
+ retry: string;
354
+ max?: number | undefined;
355
+ } | undefined;
356
+ }[] | undefined;
357
+ skills?: string[] | undefined;
358
+ overwrite?: boolean | undefined;
359
+ };
360
+ };
361
+ } | {
362
+ output: {
363
+ error: string;
364
+ };
365
+ outputFormat: "json";
366
+ status: 500;
367
+ input: {
368
+ json: {
369
+ name: string;
370
+ description?: string | undefined;
371
+ steps?: {
372
+ id: string;
373
+ name?: string | undefined;
374
+ prompt?: string | undefined;
375
+ skill?: string | undefined;
376
+ model?: string | undefined;
377
+ effort?: string | undefined;
378
+ timeoutMs?: number | undefined;
379
+ runner?: string | undefined;
380
+ agentProfile?: string | undefined;
381
+ allowedTools?: string[] | undefined;
382
+ bashAllowlist?: string[] | undefined;
383
+ kind?: "plugin" | undefined;
384
+ pluginKind?: string | undefined;
385
+ config?: Record<string, unknown> | undefined;
386
+ command?: string | undefined;
387
+ onFail?: {
388
+ retry: string;
389
+ max?: number | undefined;
390
+ } | undefined;
391
+ }[] | undefined;
392
+ skills?: string[] | undefined;
393
+ overwrite?: boolean | undefined;
394
+ };
395
+ };
396
+ } | {
397
+ output: {
398
+ path: string;
399
+ name: string;
400
+ };
401
+ outputFormat: "json";
402
+ status: 201;
403
+ input: {
404
+ json: {
405
+ name: string;
406
+ description?: string | undefined;
407
+ steps?: {
408
+ id: string;
409
+ name?: string | undefined;
410
+ prompt?: string | undefined;
411
+ skill?: string | undefined;
412
+ model?: string | undefined;
413
+ effort?: string | undefined;
414
+ timeoutMs?: number | undefined;
415
+ runner?: string | undefined;
416
+ agentProfile?: string | undefined;
417
+ allowedTools?: string[] | undefined;
418
+ bashAllowlist?: string[] | undefined;
419
+ kind?: "plugin" | undefined;
420
+ pluginKind?: string | undefined;
421
+ config?: Record<string, unknown> | undefined;
422
+ command?: string | undefined;
423
+ onFail?: {
424
+ retry: string;
425
+ max?: number | undefined;
426
+ } | undefined;
427
+ }[] | undefined;
428
+ skills?: string[] | undefined;
429
+ overwrite?: boolean | undefined;
430
+ };
431
+ };
432
+ };
433
+ };
434
+ } & {
435
+ "/workflows/:name": {
436
+ $delete: {
437
+ output: {
438
+ error: string;
439
+ };
440
+ outputFormat: "json";
441
+ status: 400 | 404 | 409 | 500;
442
+ input: {
443
+ param: {
444
+ name: string;
445
+ };
446
+ };
447
+ } | {
448
+ output: {
449
+ ok: true;
450
+ path: string;
451
+ };
452
+ outputFormat: "json";
453
+ status: import("hono/utils/http-status").ContentfulStatusCode;
454
+ input: {
455
+ param: {
456
+ name: string;
457
+ };
458
+ };
459
+ };
460
+ };
461
+ } & {
462
+ "/workflows/parse": {
463
+ $post: {
464
+ output: {
465
+ error: string;
466
+ };
467
+ outputFormat: "json";
468
+ status: 400;
469
+ input: {
470
+ json: {
471
+ yaml: string;
472
+ };
473
+ };
474
+ } | {
475
+ output: {
476
+ name: string;
477
+ description?: string;
478
+ steps: {
479
+ id: string;
480
+ name?: string | undefined;
481
+ prompt?: string | undefined;
482
+ skill?: string | undefined;
483
+ model?: string | undefined;
484
+ effort?: string | undefined;
485
+ timeoutMs?: number | undefined;
486
+ runner?: string | undefined;
487
+ agentProfile?: string | undefined;
488
+ allowedTools?: string[] | undefined;
489
+ bashAllowlist?: string[] | undefined;
490
+ kind?: "plugin" | undefined;
491
+ pluginKind?: string | undefined;
492
+ config?: {
493
+ [x: string]: import("hono/utils/types").JSONValue;
494
+ } | undefined;
495
+ command?: string | undefined;
496
+ onFail?: {
497
+ retry: string;
498
+ max: number;
499
+ } | undefined;
500
+ }[];
501
+ };
502
+ outputFormat: "json";
503
+ status: import("hono/utils/http-status").ContentfulStatusCode;
504
+ input: {
505
+ json: {
506
+ yaml: string;
507
+ };
508
+ };
509
+ };
510
+ };
511
+ }, "/", "/workflows/parse">;
512
+ export interface PlanRouteDeps {
513
+ home: Home;
514
+ skillCatalog: RunnerSkillCatalog;
515
+ providerActionError: ProviderStatusBundle['providerActionError'];
516
+ resolveWorkspaceProfile: ResolveWorkspaceProfileFn;
517
+ }
518
+ export declare function createPlanRoutes(deps: PlanRouteDeps): import("hono/hono-base").HonoBase<ProjectApiEnv, {
519
+ "/plan": {
520
+ $post: {
521
+ output: {
522
+ error: string;
523
+ };
524
+ outputFormat: "json";
525
+ status: 400 | 404 | 409;
526
+ input: {
527
+ json: {
528
+ task: string;
529
+ agentProfile?: string | undefined;
530
+ };
531
+ };
532
+ } | {
533
+ output: {
534
+ name?: string;
535
+ steps: {
536
+ id: string;
537
+ name?: string | undefined;
538
+ prompt?: string | undefined;
539
+ skill?: string | undefined;
540
+ model?: string | undefined;
541
+ effort?: string | undefined;
542
+ timeoutMs?: number | undefined;
543
+ runner?: string | undefined;
544
+ agentProfile?: string | undefined;
545
+ allowedTools?: string[] | undefined;
546
+ bashAllowlist?: string[] | undefined;
547
+ kind?: "plugin" | undefined;
548
+ pluginKind?: string | undefined;
549
+ config?: {
550
+ [x: string]: import("hono/utils/types").JSONValue;
551
+ } | undefined;
552
+ command?: string | undefined;
553
+ onFail?: {
554
+ retry: string;
555
+ max: number;
556
+ } | undefined;
557
+ }[];
558
+ rationale: string;
559
+ fallback: boolean;
560
+ };
561
+ outputFormat: "json";
562
+ status: import("hono/utils/http-status").ContentfulStatusCode;
563
+ input: {
564
+ json: {
565
+ task: string;
566
+ agentProfile?: string | undefined;
567
+ };
568
+ };
569
+ };
570
+ };
571
+ }, "/", "/plan">;
572
+ export interface ConfigRouteDeps {
573
+ home: Home;
574
+ capabilities: ServerCapabilitiesFn;
575
+ archiveOnMergeChanged?: (() => void) | undefined;
576
+ }
577
+ export declare function createConfigRoutes(deps: ConfigRouteDeps): import("hono/hono-base").HonoBase<ProjectApiEnv, {
578
+ "/config": {
579
+ $get: {
580
+ output: {
581
+ archiveOnMerge: boolean | null;
582
+ effectiveArchiveOnMerge: boolean;
583
+ archiveOnMergeSource: "default" | "environment" | "global" | "project";
584
+ baseBranch: string | null;
585
+ defaultRunner: string;
586
+ systemPrompt: string | null;
587
+ defaultModels: {
588
+ [x: string]: string | undefined;
589
+ };
590
+ modelsLocked: boolean;
591
+ maxParallel: number;
592
+ memoryLimitMb: number | null;
593
+ worktreeRetention: number;
594
+ liveTitleUpdates: boolean | null;
595
+ reviewGate: boolean | null;
596
+ worktreeSetup: {
597
+ commands: string[];
598
+ timeoutSeconds: number;
599
+ } | null;
600
+ worktreeSetupIssue: string | null;
601
+ worktreeTeardown: {
602
+ commands: string[];
603
+ timeoutSeconds: number;
604
+ } | null;
605
+ worktreeTeardownIssue: string | null;
606
+ };
607
+ outputFormat: "json";
608
+ status: import("hono/utils/http-status").ContentfulStatusCode;
609
+ input: {};
610
+ };
611
+ };
612
+ } & {
613
+ "/config": {
614
+ $put: {
615
+ output: {
616
+ archiveOnMerge: boolean | null;
617
+ effectiveArchiveOnMerge: boolean;
618
+ archiveOnMergeSource: "default" | "environment" | "global" | "project";
619
+ baseBranch: string | null;
620
+ defaultRunner: string;
621
+ systemPrompt: string | null;
622
+ defaultModels: {
623
+ [x: string]: string | undefined;
624
+ };
625
+ modelsLocked: boolean;
626
+ maxParallel: number;
627
+ memoryLimitMb: number | null;
628
+ worktreeRetention: number;
629
+ liveTitleUpdates: boolean | null;
630
+ reviewGate: boolean | null;
631
+ worktreeSetup: {
632
+ commands: string[];
633
+ timeoutSeconds: number;
634
+ } | null;
635
+ worktreeSetupIssue: string | null;
636
+ worktreeTeardown: {
637
+ commands: string[];
638
+ timeoutSeconds: number;
639
+ } | null;
640
+ worktreeTeardownIssue: string | null;
641
+ };
642
+ outputFormat: "json";
643
+ status: import("hono/utils/http-status").ContentfulStatusCode;
644
+ input: {
645
+ json: {
646
+ archiveOnMerge?: boolean | null | undefined;
647
+ baseBranch?: string | null | undefined;
648
+ defaultRunner?: string | undefined;
649
+ defaultModels?: Record<string, string | null | undefined> | undefined;
650
+ maxParallel?: number | undefined;
651
+ memoryLimitMb?: number | null | undefined;
652
+ worktreeRetention?: number | null | undefined;
653
+ liveTitleUpdates?: boolean | null | undefined;
654
+ reviewGate?: boolean | null | undefined;
655
+ worktreeSetup?: {
656
+ commands: string[];
657
+ timeoutSeconds?: number | undefined;
658
+ } | null | undefined;
659
+ worktreeTeardown?: {
660
+ commands: string[];
661
+ timeoutSeconds?: number | undefined;
662
+ } | null | undefined;
663
+ systemPrompt?: string | null | undefined;
664
+ };
665
+ };
666
+ } | {
667
+ output: {
668
+ error: string;
669
+ };
670
+ outputFormat: "json";
671
+ status: 409;
672
+ input: {
673
+ json: {
674
+ archiveOnMerge?: boolean | null | undefined;
675
+ baseBranch?: string | null | undefined;
676
+ defaultRunner?: string | undefined;
677
+ defaultModels?: Record<string, string | null | undefined> | undefined;
678
+ maxParallel?: number | undefined;
679
+ memoryLimitMb?: number | null | undefined;
680
+ worktreeRetention?: number | null | undefined;
681
+ liveTitleUpdates?: boolean | null | undefined;
682
+ reviewGate?: boolean | null | undefined;
683
+ worktreeSetup?: {
684
+ commands: string[];
685
+ timeoutSeconds?: number | undefined;
686
+ } | null | undefined;
687
+ worktreeTeardown?: {
688
+ commands: string[];
689
+ timeoutSeconds?: number | undefined;
690
+ } | null | undefined;
691
+ systemPrompt?: string | null | undefined;
692
+ };
693
+ };
694
+ } | {
695
+ output: {
696
+ error: string;
697
+ };
698
+ outputFormat: "json";
699
+ status: 500;
700
+ input: {
701
+ json: {
702
+ archiveOnMerge?: boolean | null | undefined;
703
+ baseBranch?: string | null | undefined;
704
+ defaultRunner?: string | undefined;
705
+ defaultModels?: Record<string, string | null | undefined> | undefined;
706
+ maxParallel?: number | undefined;
707
+ memoryLimitMb?: number | null | undefined;
708
+ worktreeRetention?: number | null | undefined;
709
+ liveTitleUpdates?: boolean | null | undefined;
710
+ reviewGate?: boolean | null | undefined;
711
+ worktreeSetup?: {
712
+ commands: string[];
713
+ timeoutSeconds?: number | undefined;
714
+ } | null | undefined;
715
+ worktreeTeardown?: {
716
+ commands: string[];
717
+ timeoutSeconds?: number | undefined;
718
+ } | null | undefined;
719
+ systemPrompt?: string | null | undefined;
720
+ };
721
+ };
722
+ };
723
+ };
724
+ }, "/", "/config">;
725
+ export declare function createAgentConfigRoutes(capabilities: ServerCapabilitiesFn): import("hono/hono-base").HonoBase<ProjectApiEnv, {
726
+ "/agent-config": {
727
+ $get: {
728
+ output: {
729
+ editable: boolean;
730
+ files: {
731
+ id: string;
732
+ runners: string[];
733
+ kind: import("../core/runner-config-files.ts").ConfigFileDef['kind'];
734
+ scope: import("../core/runner-config-files.ts").ConfigFileDef['scope'];
735
+ label: string;
736
+ path: string;
737
+ format: import("../core/runner-config-files.ts").ConfigFileDef['format'];
738
+ tracked: import("../core/runner-config-files.ts").ConfigFileDef['tracked'];
739
+ seeded: boolean;
740
+ holdsMcp: boolean;
741
+ precedence: string;
742
+ hotReload?: string;
743
+ docsUrl: string;
744
+ exists: boolean;
745
+ size: number;
746
+ version: string | null;
747
+ writable: boolean;
748
+ readOnlyReason?: string;
749
+ }[];
750
+ userMcp: import("../agent-config/service.ts").UserMcpListing | null;
751
+ };
752
+ outputFormat: "json";
753
+ status: import("hono/utils/http-status").ContentfulStatusCode;
754
+ input: {};
755
+ };
756
+ };
757
+ } & {
758
+ "/agent-config/:id": {
759
+ $get: {
760
+ output: {
761
+ error: string;
762
+ };
763
+ outputFormat: "json";
764
+ status: 404;
765
+ input: {
766
+ param: {
767
+ id: string;
768
+ };
769
+ };
770
+ } | {
771
+ output: {
772
+ error: string;
773
+ };
774
+ outputFormat: "json";
775
+ status: 409;
776
+ input: {
777
+ param: {
778
+ id: string;
779
+ };
780
+ };
781
+ } | {
782
+ output: {
783
+ error: string;
784
+ };
785
+ outputFormat: "json";
786
+ status: 500;
787
+ input: {
788
+ param: {
789
+ id: string;
790
+ };
791
+ };
792
+ } | {
793
+ output: {
794
+ id: string;
795
+ path: string;
796
+ exists: boolean;
797
+ content: string;
798
+ version: string | null;
799
+ };
800
+ outputFormat: "json";
801
+ status: import("hono/utils/http-status").ContentfulStatusCode;
802
+ input: {
803
+ param: {
804
+ id: string;
805
+ };
806
+ };
807
+ };
808
+ };
809
+ } & {
810
+ "/agent-config/:id": {
811
+ $put: {
812
+ output: {
813
+ id: string;
814
+ path: string;
815
+ exists: boolean;
816
+ content: string;
817
+ version: string | null;
818
+ };
819
+ outputFormat: "json";
820
+ status: import("hono/utils/http-status").ContentfulStatusCode;
821
+ input: {
822
+ json: {
823
+ content: string;
824
+ version: string | null;
825
+ };
826
+ } & {
827
+ param: {
828
+ id: string;
829
+ };
830
+ };
831
+ } | {
832
+ output: {
833
+ error: string;
834
+ };
835
+ outputFormat: "json";
836
+ status: 404;
837
+ input: {
838
+ json: {
839
+ content: string;
840
+ version: string | null;
841
+ };
842
+ } & {
843
+ param: {
844
+ id: string;
845
+ };
846
+ };
847
+ } | {
848
+ output: {
849
+ error: string;
850
+ };
851
+ outputFormat: "json";
852
+ status: 400 | 409 | 500;
853
+ input: {
854
+ json: {
855
+ content: string;
856
+ version: string | null;
857
+ };
858
+ } & {
859
+ param: {
860
+ id: string;
861
+ };
862
+ };
863
+ };
864
+ };
865
+ }, "/", "/agent-config/:id">;
866
+ export interface AgentWebhooksRouteDeps {
867
+ home: Home;
868
+ taskWebhooks: TaskWebhooks;
869
+ taskWebhookFetch?: typeof fetch | undefined;
870
+ }
871
+ export declare function createAgentWebhooksRoutes(deps: AgentWebhooksRouteDeps): import("hono/hono-base").HonoBase<ProjectApiEnv, {
872
+ "/agent-webhooks": {
873
+ $get: {
874
+ output: {
875
+ webhooks: {
876
+ id: string;
877
+ name: string;
878
+ description?: string | undefined;
879
+ }[];
880
+ };
881
+ outputFormat: "json";
882
+ status: import("hono/utils/http-status").ContentfulStatusCode;
883
+ input: {};
884
+ };
885
+ };
886
+ } & {
887
+ "/agent-webhooks/:webhook": {
888
+ $post: {
889
+ output: {
890
+ error: string;
891
+ code?: "invalid_input" | undefined;
892
+ };
893
+ outputFormat: "json";
894
+ status: 400;
895
+ input: {
896
+ param: {
897
+ webhook: string;
898
+ };
899
+ } & {
900
+ json: {
901
+ runId?: string | undefined;
902
+ title?: string | undefined;
903
+ message: string;
904
+ data?: Record<string, unknown> | undefined;
905
+ };
906
+ };
907
+ } | {
908
+ output: {
909
+ error: string;
910
+ };
911
+ outputFormat: "json";
912
+ status: 404;
913
+ input: {
914
+ param: {
915
+ webhook: string;
916
+ };
917
+ } & {
918
+ json: {
919
+ runId?: string | undefined;
920
+ title?: string | undefined;
921
+ message: string;
922
+ data?: Record<string, unknown> | undefined;
923
+ };
924
+ };
925
+ } | {
926
+ output: {
927
+ ok: boolean;
928
+ webhook: {
929
+ id: string;
930
+ name: string;
931
+ };
932
+ deliveryId: string;
933
+ attempts: number;
934
+ status?: number | undefined;
935
+ error?: string | undefined;
936
+ dryRun?: boolean | undefined;
937
+ };
938
+ outputFormat: "json";
939
+ status: import("hono/utils/http-status").ContentfulStatusCode;
940
+ input: {
941
+ param: {
942
+ webhook: string;
943
+ };
944
+ } & {
945
+ json: {
946
+ runId?: string | undefined;
947
+ title?: string | undefined;
948
+ message: string;
949
+ data?: Record<string, unknown> | undefined;
950
+ };
951
+ };
952
+ };
953
+ };
954
+ }, "/", "/agent-webhooks/:webhook">;
955
+ export declare function createSseRoutes(): import("hono/hono-base").HonoBase<ProjectApiEnv, {
956
+ "/runs/:id/events": {
957
+ $get: {
958
+ output: {};
959
+ outputFormat: string;
960
+ status: import("hono/utils/http-status").StatusCode;
961
+ input: {
962
+ param: {
963
+ id: string;
964
+ };
965
+ } & {
966
+ query: {
967
+ cursor?: string | undefined;
968
+ afterSeq?: number | undefined;
969
+ };
970
+ };
971
+ } | {
972
+ output: {
973
+ error: string;
974
+ code?: "invalid_input" | undefined;
975
+ };
976
+ outputFormat: "json";
977
+ status: 400;
978
+ input: {
979
+ param: {
980
+ id: string;
981
+ };
982
+ } & {
983
+ query: {
984
+ cursor?: string | undefined;
985
+ afterSeq?: number | undefined;
986
+ };
987
+ };
988
+ };
989
+ };
990
+ } & {
991
+ "/events": {
992
+ $get: {
993
+ output: {};
994
+ outputFormat: string;
995
+ status: import("hono/utils/http-status").StatusCode;
996
+ input: {};
997
+ };
998
+ };
999
+ }, "/", "/events">;