@hearsay-tools/squawk 0.18.0-dev.6774 → 0.18.0-dev.6777
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/core/claude-cli-runner.d.ts +1 -0
- package/dist/core/codex-app-server-runner.d.ts +1 -0
- package/dist/core/cursor-print-runner.d.ts +1 -0
- package/dist/core/cursor-runner.d.ts +1 -0
- package/dist/core/omp-runner.d.ts +1 -0
- package/dist/core/opencode-server-runner.d.ts +1 -0
- package/dist/core/pi-runner.d.ts +1 -0
- package/dist/core/runner-facts.d.ts +13 -0
- package/dist/core/runner-facts.js +12 -0
- package/dist/core/runner-facts.js.map +1 -1
- package/dist/delegation/transport.d.ts +62 -62
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/server.d.ts +1633 -1633
- package/dist/workflows/run/input-delivery.d.ts +4 -0
- package/dist/workflows/run/input-delivery.js +5 -4
- package/dist/workflows/run/input-delivery.js.map +1 -1
- package/package.json +4 -4
|
@@ -49,6 +49,7 @@ export declare class ClaudeCliRunner implements AgentRunner {
|
|
|
49
49
|
readonly costReport: 'cumulative';
|
|
50
50
|
readonly sessionIdSource: 'launch';
|
|
51
51
|
readonly claudeModelAliases: true;
|
|
52
|
+
readonly turnStart: 'on-write';
|
|
52
53
|
};
|
|
53
54
|
readonly inputDelivery: InputDelivery;
|
|
54
55
|
private readonly bin;
|
|
@@ -52,6 +52,7 @@ export declare class CodexAppServerRunner implements AgentRunner {
|
|
|
52
52
|
readonly costReport: 'per-turn';
|
|
53
53
|
readonly sessionIdSource: 'native';
|
|
54
54
|
readonly claudeModelAliases: false;
|
|
55
|
+
readonly turnStart: 'on-wire';
|
|
55
56
|
};
|
|
56
57
|
readonly inputDelivery: InputDelivery;
|
|
57
58
|
private readonly bin;
|
|
@@ -39,6 +39,7 @@ export declare class CursorPrintRunner implements AgentRunner {
|
|
|
39
39
|
readonly costReport: 'per-turn';
|
|
40
40
|
readonly sessionIdSource: 'native';
|
|
41
41
|
readonly claudeModelAliases: false;
|
|
42
|
+
readonly turnStart: 'on-wire';
|
|
42
43
|
};
|
|
43
44
|
readonly inputDelivery: InputDelivery;
|
|
44
45
|
private lastSession?;
|
|
@@ -41,6 +41,7 @@ export declare class CursorRunner implements AgentRunner {
|
|
|
41
41
|
readonly costReport: 'per-turn';
|
|
42
42
|
readonly sessionIdSource: 'native';
|
|
43
43
|
readonly claudeModelAliases: false;
|
|
44
|
+
readonly turnStart: 'on-wire';
|
|
44
45
|
};
|
|
45
46
|
readonly systemPromptOnResume: "in-thread";
|
|
46
47
|
readonly inputDelivery: InputDelivery;
|
|
@@ -79,6 +79,7 @@ export declare class OmpRunner implements AgentRunner {
|
|
|
79
79
|
readonly costReport: 'per-turn';
|
|
80
80
|
readonly sessionIdSource: 'native';
|
|
81
81
|
readonly claudeModelAliases: false;
|
|
82
|
+
readonly turnStart: 'on-write';
|
|
82
83
|
};
|
|
83
84
|
readonly inputDelivery: InputDelivery;
|
|
84
85
|
private readonly bin;
|
|
@@ -68,6 +68,7 @@ export declare class OpencodeServerRunner implements AgentRunner {
|
|
|
68
68
|
readonly costReport: 'per-turn';
|
|
69
69
|
readonly sessionIdSource: 'native';
|
|
70
70
|
readonly claudeModelAliases: false;
|
|
71
|
+
readonly turnStart: 'on-wire';
|
|
71
72
|
};
|
|
72
73
|
readonly inputDelivery: InputDelivery;
|
|
73
74
|
private readonly bin;
|
package/dist/core/pi-runner.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export declare class PiRunner implements AgentRunner {
|
|
|
51
51
|
readonly costReport: 'per-turn';
|
|
52
52
|
readonly sessionIdSource: 'launch';
|
|
53
53
|
readonly claudeModelAliases: false;
|
|
54
|
+
readonly turnStart: 'on-write';
|
|
54
55
|
};
|
|
55
56
|
readonly inputDelivery: InputDelivery;
|
|
56
57
|
private readonly bin;
|
|
@@ -68,6 +68,13 @@ export interface RunnerFacts {
|
|
|
68
68
|
/** The CLI takes Claude's model aliases (`sonnet`, `haiku`). The `plannerModel` and `namerModel`
|
|
69
69
|
* presets are such aliases, so only such a runner gets them; another runs on its own default. */
|
|
70
70
|
readonly claudeModelAliases: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* When the runner reports the turn that a human `sendMessage` to an idle session opens.
|
|
73
|
+
* `on-write`: `turn.started` is emitted inside `sendMessage`, before the call returns.
|
|
74
|
+
* `on-wire`: it comes later, from a wire frame or a later process. Seam row S37 checks it. Shared
|
|
75
|
+
* code must not read it; tests use it to pick runners.
|
|
76
|
+
*/
|
|
77
|
+
readonly turnStart: 'on-write' | 'on-wire';
|
|
71
78
|
}
|
|
72
79
|
export declare const RUNNER_FACTS: {
|
|
73
80
|
readonly claude: {
|
|
@@ -90,6 +97,7 @@ export declare const RUNNER_FACTS: {
|
|
|
90
97
|
readonly costReport: 'cumulative';
|
|
91
98
|
readonly sessionIdSource: 'launch';
|
|
92
99
|
readonly claudeModelAliases: true;
|
|
100
|
+
readonly turnStart: 'on-write';
|
|
93
101
|
};
|
|
94
102
|
readonly codex: {
|
|
95
103
|
readonly childWork: 'nested';
|
|
@@ -111,6 +119,7 @@ export declare const RUNNER_FACTS: {
|
|
|
111
119
|
readonly costReport: 'per-turn';
|
|
112
120
|
readonly sessionIdSource: 'native';
|
|
113
121
|
readonly claudeModelAliases: false;
|
|
122
|
+
readonly turnStart: 'on-wire';
|
|
114
123
|
};
|
|
115
124
|
readonly opencode: {
|
|
116
125
|
readonly childWork: 'nested';
|
|
@@ -132,6 +141,7 @@ export declare const RUNNER_FACTS: {
|
|
|
132
141
|
readonly costReport: 'per-turn';
|
|
133
142
|
readonly sessionIdSource: 'native';
|
|
134
143
|
readonly claudeModelAliases: false;
|
|
144
|
+
readonly turnStart: 'on-wire';
|
|
135
145
|
};
|
|
136
146
|
readonly pi: {
|
|
137
147
|
readonly childWork: 'none';
|
|
@@ -153,6 +163,7 @@ export declare const RUNNER_FACTS: {
|
|
|
153
163
|
readonly costReport: 'per-turn';
|
|
154
164
|
readonly sessionIdSource: 'launch';
|
|
155
165
|
readonly claudeModelAliases: false;
|
|
166
|
+
readonly turnStart: 'on-write';
|
|
156
167
|
};
|
|
157
168
|
readonly cursor: {
|
|
158
169
|
readonly childWork: 'none';
|
|
@@ -174,6 +185,7 @@ export declare const RUNNER_FACTS: {
|
|
|
174
185
|
readonly costReport: 'per-turn';
|
|
175
186
|
readonly sessionIdSource: 'native';
|
|
176
187
|
readonly claudeModelAliases: false;
|
|
188
|
+
readonly turnStart: 'on-wire';
|
|
177
189
|
};
|
|
178
190
|
readonly omp: {
|
|
179
191
|
readonly childWork: 'nested';
|
|
@@ -195,6 +207,7 @@ export declare const RUNNER_FACTS: {
|
|
|
195
207
|
readonly costReport: 'per-turn';
|
|
196
208
|
readonly sessionIdSource: 'native';
|
|
197
209
|
readonly claudeModelAliases: false;
|
|
210
|
+
readonly turnStart: 'on-write';
|
|
198
211
|
};
|
|
199
212
|
};
|
|
200
213
|
/** The runners whose declared facts match, in `RUNNER_IDS` order. */
|
|
@@ -17,6 +17,8 @@ export const RUNNER_FACTS = {
|
|
|
17
17
|
systemPromptOnResume: 'resent',
|
|
18
18
|
nativeAsk: 'none', nativeSubagents: 'reported', nativeTimerTool: 'ScheduleWakeup', costReport: 'cumulative', sessionIdSource: 'launch',
|
|
19
19
|
claudeModelAliases: true,
|
|
20
|
+
// A stdin user line to an idle session emits claudeTurnStarted in the same write.
|
|
21
|
+
turnStart: 'on-write',
|
|
20
22
|
},
|
|
21
23
|
codex: {
|
|
22
24
|
// childWork: a child thread's items nest under its spawnAgent item through collabParentItemId
|
|
@@ -38,6 +40,8 @@ export const RUNNER_FACTS = {
|
|
|
38
40
|
systemPromptOnResume: 'in-thread',
|
|
39
41
|
nativeAsk: 'answerable', nativeSubagents: 'reported', nativeTimerTool: null, costReport: 'per-turn', sessionIdSource: 'native',
|
|
40
42
|
claudeModelAliases: false,
|
|
43
|
+
// The turn/started notification after the turn/start or turn/steer response.
|
|
44
|
+
turnStart: 'on-wire',
|
|
41
45
|
},
|
|
42
46
|
opencode: {
|
|
43
47
|
// childWork: a subtask's child-session parts nest under the subtask part (opencode-ui-mapper.ts).
|
|
@@ -55,6 +59,8 @@ export const RUNNER_FACTS = {
|
|
|
55
59
|
systemPromptOnResume: 'in-thread',
|
|
56
60
|
nativeAsk: 'answerable', nativeSubagents: 'turn-held', nativeTimerTool: null, costReport: 'per-turn', sessionIdSource: 'native',
|
|
57
61
|
claudeModelAliases: false,
|
|
62
|
+
// A human prompt_async POST goes out after the ready promise, so after sendMessage returns.
|
|
63
|
+
turnStart: 'on-wire',
|
|
58
64
|
},
|
|
59
65
|
pi: {
|
|
60
66
|
// childWork: Pi RPC has no child session; a task tool is a plain tool call on the parent
|
|
@@ -72,6 +78,8 @@ export const RUNNER_FACTS = {
|
|
|
72
78
|
systemPromptOnResume: 'resent',
|
|
73
79
|
nativeAsk: 'none', nativeSubagents: 'unreported', nativeTimerTool: null, costReport: 'per-turn', sessionIdSource: 'launch',
|
|
74
80
|
claudeModelAliases: false,
|
|
81
|
+
// A prompt to an idle session emits piTurnStarted in the same write.
|
|
82
|
+
turnStart: 'on-write',
|
|
75
83
|
},
|
|
76
84
|
// Every Cursor session runs on print (hearsay-tools/cezarion#1267).
|
|
77
85
|
cursor: {
|
|
@@ -90,6 +98,8 @@ export const RUNNER_FACTS = {
|
|
|
90
98
|
systemPromptOnResume: 'in-thread',
|
|
91
99
|
nativeAsk: 'auto-skipped', nativeSubagents: 'unreported', nativeTimerTool: null, costReport: 'per-turn', sessionIdSource: 'native',
|
|
92
100
|
claudeModelAliases: false,
|
|
101
|
+
// The init frame of the next print process.
|
|
102
|
+
turnStart: 'on-wire',
|
|
93
103
|
},
|
|
94
104
|
omp: {
|
|
95
105
|
// childWork: subagent_event frames carry subagent_lifecycle.parentToolCallId of their task call
|
|
@@ -109,6 +119,8 @@ export const RUNNER_FACTS = {
|
|
|
109
119
|
systemPromptOnResume: 'resent',
|
|
110
120
|
nativeAsk: 'none', nativeSubagents: 'turn-held', nativeTimerTool: null, costReport: 'per-turn', sessionIdSource: 'native',
|
|
111
121
|
claudeModelAliases: false,
|
|
122
|
+
// A prompt to an idle session emits ompTurnStarted in the same write.
|
|
123
|
+
turnStart: 'on-write',
|
|
112
124
|
},
|
|
113
125
|
};
|
|
114
126
|
/** The runners whose declared facts match, in `RUNNER_IDS` order. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner-facts.js","sourceRoot":"","sources":["../../src/core/runner-facts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAgE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"runner-facts.js","sourceRoot":"","sources":["../../src/core/runner-facts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAgE,MAAM,mBAAmB,CAAC;AAgF7G,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,MAAM,EAAE;QACN,+FAA+F;QAC/F,kFAAkF;QAClF,yFAAyF;QACzF,kGAAkG;QAClG,yCAAyC;QACzC,0FAA0F;QAC1F,gGAAgG;QAChG,oGAAoG;QACpG,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM;QAClH,aAAa,EAAE;YACb,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,OAAO,EAAE,mBAAmB,EAAE,gBAAgB;YACzG,GAAG,EAAE,8EAA8E;SACpF;QACD,oBAAoB,EAAE,QAAQ;QAC9B,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,UAAU,EAAE,eAAe,EAAE,gBAAgB,EAAE,UAAU,EAAE,YAAY,EAAE,eAAe,EAAE,QAAQ;QACtI,kBAAkB,EAAE,IAAI;QACxB,kFAAkF;QAClF,SAAS,EAAE,UAAU;KACtB;IACD,KAAK,EAAE;QACL,8FAA8F;QAC9F,0BAA0B;QAC1B,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S,EAAE,SAAS;KACrB;IACD,GAAG,EAAE;QACH,gGAAgG;QAChG,0BAA0B;QAC1B,yFAAyF;QACzF,mBAAmB;QACnB,iGAAiG;QACjG,wBAAwB;QACxB,wCAAwC;QACxC,4FAA4F;QAC5F,8CAA8C;QAC9C,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe,EAAE,iBAAiB;QACzH,aAAa,EAAE;YACb,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,mBAAmB,EAAE,YAAY;YACxG,GAAG,EAAE,yHAAyH;SAC/H;QACD,oBAAoB,EAAE,QAAQ;QAC9B,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,eAAe,EAAE,QAAQ;QACzH,kBAAkB,EAAE,KAAK;QACzB,sEAAsE;QACtE,SAAS,EAAE,UAAU;KACtB;CACyD,CAAC;AAE7D,qEAAqE;AACrE,MAAM,UAAU,YAAY,CAAC,OAAwC;IACnE,OAAO,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAC5D,CAAC"}
|
|
@@ -2,18 +2,6 @@ import type { DelegationRoutes } from './routes.ts';
|
|
|
2
2
|
export declare function createDelegationApp(routes: DelegationRoutes): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
|
|
3
3
|
"/list": {
|
|
4
4
|
$get: {
|
|
5
|
-
output: {
|
|
6
|
-
error: string;
|
|
7
|
-
code?: "invalid_input" | undefined;
|
|
8
|
-
};
|
|
9
|
-
outputFormat: "json";
|
|
10
|
-
status: 400;
|
|
11
|
-
input: {
|
|
12
|
-
query: {
|
|
13
|
-
offset?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
} | {
|
|
17
5
|
output: {
|
|
18
6
|
workers: {
|
|
19
7
|
workerId: string;
|
|
@@ -51,6 +39,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
51
39
|
offset?: string | undefined;
|
|
52
40
|
};
|
|
53
41
|
};
|
|
42
|
+
} | {
|
|
43
|
+
output: {
|
|
44
|
+
error: string;
|
|
45
|
+
code?: "invalid_input" | undefined;
|
|
46
|
+
};
|
|
47
|
+
outputFormat: "json";
|
|
48
|
+
status: 400;
|
|
49
|
+
input: {
|
|
50
|
+
query: {
|
|
51
|
+
offset?: string | undefined;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
56
|
} & {
|
|
@@ -588,18 +588,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
588
588
|
} & {
|
|
589
589
|
"/:workerId": {
|
|
590
590
|
$get: {
|
|
591
|
-
output: {
|
|
592
|
-
error: string;
|
|
593
|
-
code?: "invalid_input" | undefined;
|
|
594
|
-
};
|
|
595
|
-
outputFormat: "json";
|
|
596
|
-
status: 400;
|
|
597
|
-
input: {
|
|
598
|
-
param: {
|
|
599
|
-
workerId: string;
|
|
600
|
-
};
|
|
601
|
-
};
|
|
602
|
-
} | {
|
|
603
591
|
output: {
|
|
604
592
|
workerId: string;
|
|
605
593
|
parentRunId: string;
|
|
@@ -703,11 +691,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
703
691
|
workerId: string;
|
|
704
692
|
};
|
|
705
693
|
};
|
|
706
|
-
}
|
|
707
|
-
};
|
|
708
|
-
} & {
|
|
709
|
-
"/:workerId/collect": {
|
|
710
|
-
$post: {
|
|
694
|
+
} | {
|
|
711
695
|
output: {
|
|
712
696
|
error: string;
|
|
713
697
|
code?: "invalid_input" | undefined;
|
|
@@ -718,10 +702,12 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
718
702
|
param: {
|
|
719
703
|
workerId: string;
|
|
720
704
|
};
|
|
721
|
-
} & {
|
|
722
|
-
json: Record<string, never>;
|
|
723
705
|
};
|
|
724
|
-
}
|
|
706
|
+
};
|
|
707
|
+
};
|
|
708
|
+
} & {
|
|
709
|
+
"/:workerId/collect": {
|
|
710
|
+
$post: {
|
|
725
711
|
output: {
|
|
726
712
|
workerId: string;
|
|
727
713
|
parentRunId: string;
|
|
@@ -823,11 +809,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
823
809
|
} & {
|
|
824
810
|
json: Record<string, never>;
|
|
825
811
|
};
|
|
826
|
-
}
|
|
827
|
-
};
|
|
828
|
-
} & {
|
|
829
|
-
"/:workerId/steer": {
|
|
830
|
-
$post: {
|
|
812
|
+
} | {
|
|
831
813
|
output: {
|
|
832
814
|
error: string;
|
|
833
815
|
code?: "invalid_input" | undefined;
|
|
@@ -839,11 +821,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
839
821
|
workerId: string;
|
|
840
822
|
};
|
|
841
823
|
} & {
|
|
842
|
-
json:
|
|
843
|
-
text: string;
|
|
844
|
-
};
|
|
824
|
+
json: Record<string, never>;
|
|
845
825
|
};
|
|
846
|
-
}
|
|
826
|
+
};
|
|
827
|
+
};
|
|
828
|
+
} & {
|
|
829
|
+
"/:workerId/steer": {
|
|
830
|
+
$post: {
|
|
847
831
|
output: {
|
|
848
832
|
workerId: string;
|
|
849
833
|
state: "delivered" | "queued";
|
|
@@ -859,11 +843,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
859
843
|
text: string;
|
|
860
844
|
};
|
|
861
845
|
};
|
|
862
|
-
}
|
|
863
|
-
};
|
|
864
|
-
} & {
|
|
865
|
-
"/:workerId/stop": {
|
|
866
|
-
$post: {
|
|
846
|
+
} | {
|
|
867
847
|
output: {
|
|
868
848
|
error: string;
|
|
869
849
|
code?: "invalid_input" | undefined;
|
|
@@ -875,9 +855,15 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
875
855
|
workerId: string;
|
|
876
856
|
};
|
|
877
857
|
} & {
|
|
878
|
-
json:
|
|
858
|
+
json: {
|
|
859
|
+
text: string;
|
|
860
|
+
};
|
|
879
861
|
};
|
|
880
|
-
}
|
|
862
|
+
};
|
|
863
|
+
};
|
|
864
|
+
} & {
|
|
865
|
+
"/:workerId/stop": {
|
|
866
|
+
$post: {
|
|
881
867
|
output: {
|
|
882
868
|
workerId: string;
|
|
883
869
|
state: "stopping" | "terminated";
|
|
@@ -891,11 +877,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
891
877
|
} & {
|
|
892
878
|
json: Record<string, never>;
|
|
893
879
|
};
|
|
894
|
-
}
|
|
895
|
-
};
|
|
896
|
-
} & {
|
|
897
|
-
"/:workerId/destroy": {
|
|
898
|
-
$post: {
|
|
880
|
+
} | {
|
|
899
881
|
output: {
|
|
900
882
|
error: string;
|
|
901
883
|
code?: "invalid_input" | undefined;
|
|
@@ -909,7 +891,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
909
891
|
} & {
|
|
910
892
|
json: Record<string, never>;
|
|
911
893
|
};
|
|
912
|
-
}
|
|
894
|
+
};
|
|
895
|
+
};
|
|
896
|
+
} & {
|
|
897
|
+
"/:workerId/destroy": {
|
|
898
|
+
$post: {
|
|
913
899
|
output: {
|
|
914
900
|
workerId: string;
|
|
915
901
|
state: "complete" | "incomplete";
|
|
@@ -932,6 +918,20 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
932
918
|
} & {
|
|
933
919
|
json: Record<string, never>;
|
|
934
920
|
};
|
|
921
|
+
} | {
|
|
922
|
+
output: {
|
|
923
|
+
error: string;
|
|
924
|
+
code?: "invalid_input" | undefined;
|
|
925
|
+
};
|
|
926
|
+
outputFormat: "json";
|
|
927
|
+
status: 400;
|
|
928
|
+
input: {
|
|
929
|
+
param: {
|
|
930
|
+
workerId: string;
|
|
931
|
+
};
|
|
932
|
+
} & {
|
|
933
|
+
json: Record<string, never>;
|
|
934
|
+
};
|
|
935
935
|
} | {
|
|
936
936
|
output: {
|
|
937
937
|
workerId: string;
|
|
@@ -961,11 +961,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
961
961
|
"/:workerId/diff": {
|
|
962
962
|
$get: {
|
|
963
963
|
output: {
|
|
964
|
-
|
|
965
|
-
|
|
964
|
+
workerId: string;
|
|
965
|
+
baselineSha: string;
|
|
966
|
+
diff: string;
|
|
967
|
+
truncated: boolean;
|
|
966
968
|
};
|
|
967
969
|
outputFormat: "json";
|
|
968
|
-
status:
|
|
970
|
+
status: 200;
|
|
969
971
|
input: {
|
|
970
972
|
param: {
|
|
971
973
|
workerId: string;
|
|
@@ -973,13 +975,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
973
975
|
};
|
|
974
976
|
} | {
|
|
975
977
|
output: {
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
diff: string;
|
|
979
|
-
truncated: boolean;
|
|
978
|
+
error: string;
|
|
979
|
+
code?: "invalid_input" | undefined;
|
|
980
980
|
};
|
|
981
981
|
outputFormat: "json";
|
|
982
|
-
status:
|
|
982
|
+
status: 400;
|
|
983
983
|
input: {
|
|
984
984
|
param: {
|
|
985
985
|
workerId: string;
|
|
@@ -59,29 +59,6 @@ export declare function ciProgressPlugs(demand: ActivityDemand): {
|
|
|
59
59
|
export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
|
|
60
60
|
"/workspace/activity": {
|
|
61
61
|
$get: {
|
|
62
|
-
output: {
|
|
63
|
-
error: string;
|
|
64
|
-
code?: "invalid_input" | undefined;
|
|
65
|
-
};
|
|
66
|
-
outputFormat: "json";
|
|
67
|
-
status: 400;
|
|
68
|
-
input: {
|
|
69
|
-
query: {
|
|
70
|
-
project?: string | undefined;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
} | {
|
|
74
|
-
output: {
|
|
75
|
-
error: string;
|
|
76
|
-
};
|
|
77
|
-
outputFormat: "json";
|
|
78
|
-
status: 404 | 409 | 503;
|
|
79
|
-
input: {
|
|
80
|
-
query: {
|
|
81
|
-
project?: string | undefined;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
} | {
|
|
85
62
|
output: {
|
|
86
63
|
generatedAt: string;
|
|
87
64
|
projects: {
|
|
@@ -312,6 +289,29 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
|
|
|
312
289
|
project?: string | undefined;
|
|
313
290
|
};
|
|
314
291
|
};
|
|
292
|
+
} | {
|
|
293
|
+
output: {
|
|
294
|
+
error: string;
|
|
295
|
+
code?: "invalid_input" | undefined;
|
|
296
|
+
};
|
|
297
|
+
outputFormat: "json";
|
|
298
|
+
status: 400;
|
|
299
|
+
input: {
|
|
300
|
+
query: {
|
|
301
|
+
project?: string | undefined;
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
} | {
|
|
305
|
+
output: {
|
|
306
|
+
error: string;
|
|
307
|
+
};
|
|
308
|
+
outputFormat: "json";
|
|
309
|
+
status: 404 | 409 | 503;
|
|
310
|
+
input: {
|
|
311
|
+
query: {
|
|
312
|
+
project?: string | undefined;
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
315
|
};
|
|
316
316
|
};
|
|
317
317
|
}, "/", "/workspace/activity">;
|