@hearsay-tools/squawk 0.18.0-pr4350.8487.2 → 0.18.0-pr4351.8508
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/runner-definition.d.ts +6 -0
- package/dist/core/runner-definition.js.map +1 -1
- package/dist/core/runner-registry.d.ts +6 -0
- package/dist/core/runner-registry.js +10 -0
- package/dist/core/runner-registry.js.map +1 -1
- package/dist/runners/antigravity/models.d.ts +3 -0
- package/dist/runners/antigravity/models.js +9 -0
- package/dist/runners/antigravity/models.js.map +1 -1
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/models-routes.d.ts +12 -12
- package/dist/server/providers-routes.d.ts +57 -57
- package/dist/server/repo-routes.d.ts +34 -34
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/server.d.ts +1618 -1618
- package/dist/server/workspace-routes.d.ts +84 -84
- package/dist/workflows/run/launch-read-resolver.d.ts +7 -2
- package/dist/workflows/run/launch-read-resolver.js +5 -3
- package/dist/workflows/run/launch-read-resolver.js.map +1 -1
- package/dist/workflows/run/run-line.js +1 -1
- package/dist/workflows/run/run-line.js.map +1 -1
- package/dist/workflows/run/step-loop.js +1 -1
- package/dist/workflows/run/step-loop.js.map +1 -1
- package/dist/workflows/run/wake-admission.js +1 -1
- package/dist/workflows/run/wake-admission.js.map +1 -1
- package/dist/workflows/run-scheduling.d.ts +15 -6
- package/dist/workflows/run-scheduling.js +62 -10
- package/dist/workflows/run-scheduling.js.map +1 -1
- package/dist/workflows/run-states.js +1 -1
- package/dist/workflows/run-states.js.map +1 -1
- package/package.json +4 -4
|
@@ -184,6 +184,12 @@ export interface RunnerModelData {
|
|
|
184
184
|
readonly known: readonly string[];
|
|
185
185
|
/** How a model id maps to a provider and to the wire (`core/model-identity.ts`). */
|
|
186
186
|
readonly idMap: BackendModelMap;
|
|
187
|
+
/**
|
|
188
|
+
* The provider quota pool a named model draws on, when one account holds several pools that
|
|
189
|
+
* close apart (hearsay-tools/squawk#4343). A usage-limit hold then closes only that pool.
|
|
190
|
+
* Undefined, or no function: the runner cannot name the pool, so the hold closes the account.
|
|
191
|
+
*/
|
|
192
|
+
readonly quotaPool?: (model: string) => string | undefined;
|
|
187
193
|
}
|
|
188
194
|
/** A runner's `models` part: its model data and the reader of its native default model. */
|
|
189
195
|
export interface RunnerModels extends RunnerModelData {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner-definition.js","sourceRoot":"","sources":["../../src/core/runner-definition.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"runner-definition.js","sourceRoot":"","sources":["../../src/core/runner-definition.ts"],"names":[],"mappings":"AAwVA,0BAA0B;AAC1B,MAAM,UAAU,YAAY,CAAC,UAA4B;IACvD,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
|
@@ -43,6 +43,12 @@ export declare function savedRunnerRegistration(id: string): boolean | undefined
|
|
|
43
43
|
* read it. Never throws, like `savedRunnerRegistration`.
|
|
44
44
|
*/
|
|
45
45
|
export declare function knownRunnerIds(): readonly string[];
|
|
46
|
+
/**
|
|
47
|
+
* The quota pool a named model draws on with this runner (`RunnerModelData.quotaPool`), or
|
|
48
|
+
* undefined when the runner cannot name one, the model is unnamed, or the runner is not registered.
|
|
49
|
+
* Never throws: usage-limit holds read it for every saved run.
|
|
50
|
+
*/
|
|
51
|
+
export declare function runnerQuotaPool(id: string, model: string | undefined): string | undefined;
|
|
46
52
|
/** The registered definition of a runner. */
|
|
47
53
|
export declare function runnerDefinition(id: string): RunnerDefinition;
|
|
48
54
|
/**
|
|
@@ -86,6 +86,16 @@ export function savedRunnerRegistration(id) {
|
|
|
86
86
|
export function knownRunnerIds() {
|
|
87
87
|
return runners.isSealed() ? runners.keys() : [];
|
|
88
88
|
}
|
|
89
|
+
/**
|
|
90
|
+
* The quota pool a named model draws on with this runner (`RunnerModelData.quotaPool`), or
|
|
91
|
+
* undefined when the runner cannot name one, the model is unnamed, or the runner is not registered.
|
|
92
|
+
* Never throws: usage-limit holds read it for every saved run.
|
|
93
|
+
*/
|
|
94
|
+
export function runnerQuotaPool(id, model) {
|
|
95
|
+
if (!model || !runners.isSealed() || !runners.has(id))
|
|
96
|
+
return undefined;
|
|
97
|
+
return runners.get(id)?.models.quotaPool?.(model);
|
|
98
|
+
}
|
|
89
99
|
/** The registered definition of a runner. */
|
|
90
100
|
export function runnerDefinition(id) {
|
|
91
101
|
const definition = runners.get(id);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner-registry.js","sourceRoot":"","sources":["../../src/core/runner-registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAGpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEvE,+EAA+E;AAC/E,MAAM,OAAO,GAAG,mBAAmB,CAA2B;IAC5D,IAAI,EAAE,iBAAiB;IACvB,QAAQ,EAAE,0EAA0E;IACpF,YAAY,EAAE,CAAC,GAAG,iBAAiB,CAAC,IAAI,EAAE,CAAC;CAC5C,CAAC,CAAC;AAEH,wDAAwD;AACxD,MAAM,UAAU,WAAW,KAAW,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAEvD,iDAAiD;AACjD,MAAM,UAAU,aAAa,KAAc,OAAO,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;AAEvE;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,OAA2B;IACzD,MAAM,MAAM,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC;IACrG,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,iBAAiB,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AAC3D,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,cAAc;IAC5B,OAAO,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AAClD,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,EAAU,EAAE,KAAyB;IACnE,IAAI,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;QAAE,OAAO,SAAS,CAAC;IACxE,OAAO,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,CAAC;AACpD,CAAC;AAED,6CAA6C;AAC7C,MAAM,UAAU,gBAAgB,CAAC,EAAU;IACzC,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACnC,IAAI,CAAC,UAAU;QAAE,MAAM,IAAI,KAAK,CAAC,UAAU,EAAE,wDAAwD,EAAE,qCAAqC,CAAC,CAAC;IAC9I,OAAO,UAAU,CAAC;AACpB,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,OAA2B;IAC5D,OAAO,gBAAgB,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;AAClE,CAAC"}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import type { RunnerModelData } from '../../plugin/index.js';
|
|
2
|
+
/** Antigravity bills Gemini models and third-party models (Claude and others) from separate quotas:
|
|
3
|
+
* "Third-party quota reached. Please switch to Gemini models" (hearsay-tools/squawk#4343). */
|
|
4
|
+
export declare function antigravityQuotaPool(model: string): string | undefined;
|
|
2
5
|
export declare const ANTIGRAVITY_MODELS: RunnerModelData;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
/** Antigravity bills Gemini models and third-party models (Claude and others) from separate quotas:
|
|
2
|
+
* "Third-party quota reached. Please switch to Gemini models" (hearsay-tools/squawk#4343). */
|
|
3
|
+
export function antigravityQuotaPool(model) {
|
|
4
|
+
const id = model.slice(model.lastIndexOf('/') + 1).trim().toLowerCase();
|
|
5
|
+
if (!id)
|
|
6
|
+
return undefined;
|
|
7
|
+
return id.startsWith('gemini-') ? 'gemini' : 'third-party';
|
|
8
|
+
}
|
|
1
9
|
export const ANTIGRAVITY_MODELS = {
|
|
2
10
|
catalogAtAdmission: false,
|
|
3
11
|
suggested: [{ id: '', label: 'auto', desc: 'Use your Antigravity default model' }],
|
|
4
12
|
known: [], retired: [], idMap: { nativeIdNamespace: 'antigravity' },
|
|
13
|
+
quotaPool: antigravityQuotaPool,
|
|
5
14
|
};
|
|
6
15
|
//# sourceMappingURL=models.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/runners/antigravity/models.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/runners/antigravity/models.ts"],"names":[],"mappings":"AAEA;+FAC+F;AAC/F,MAAM,UAAU,oBAAoB,CAAC,KAAa;IAChD,MAAM,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IACxE,IAAI,CAAC,EAAE;QAAE,OAAO,SAAS,CAAC;IAC1B,OAAO,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC;AAC7D,CAAC;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAoB;IACjD,kBAAkB,EAAE,KAAK;IACzB,SAAS,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,oCAAoC,EAAE,CAAC;IAClF,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,iBAAiB,EAAE,aAAa,EAAE;IACnE,SAAS,EAAE,oBAAoB;CAChC,CAAC"}
|
|
@@ -58,6 +58,29 @@ export declare function ciProgressPlugs(): {
|
|
|
58
58
|
export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
|
|
59
59
|
"/workspace/activity": {
|
|
60
60
|
$get: {
|
|
61
|
+
output: {
|
|
62
|
+
error: string;
|
|
63
|
+
code?: "invalid_input" | undefined;
|
|
64
|
+
};
|
|
65
|
+
outputFormat: "json";
|
|
66
|
+
status: 400;
|
|
67
|
+
input: {
|
|
68
|
+
query: {
|
|
69
|
+
project?: string | undefined;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
} | {
|
|
73
|
+
output: {
|
|
74
|
+
error: string;
|
|
75
|
+
};
|
|
76
|
+
outputFormat: "json";
|
|
77
|
+
status: 404 | 409 | 503;
|
|
78
|
+
input: {
|
|
79
|
+
query: {
|
|
80
|
+
project?: string | undefined;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
} | {
|
|
61
84
|
output: {
|
|
62
85
|
generatedAt: string;
|
|
63
86
|
projects: {
|
|
@@ -304,29 +327,6 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
|
|
|
304
327
|
project?: string | undefined;
|
|
305
328
|
};
|
|
306
329
|
};
|
|
307
|
-
} | {
|
|
308
|
-
output: {
|
|
309
|
-
error: string;
|
|
310
|
-
code?: "invalid_input" | undefined;
|
|
311
|
-
};
|
|
312
|
-
outputFormat: "json";
|
|
313
|
-
status: 400;
|
|
314
|
-
input: {
|
|
315
|
-
query: {
|
|
316
|
-
project?: string | undefined;
|
|
317
|
-
};
|
|
318
|
-
};
|
|
319
|
-
} | {
|
|
320
|
-
output: {
|
|
321
|
-
error: string;
|
|
322
|
-
};
|
|
323
|
-
outputFormat: "json";
|
|
324
|
-
status: 404 | 409 | 503;
|
|
325
|
-
input: {
|
|
326
|
-
query: {
|
|
327
|
-
project?: string | undefined;
|
|
328
|
-
};
|
|
329
|
-
};
|
|
330
330
|
};
|
|
331
331
|
};
|
|
332
332
|
}, "/", "/workspace/activity">;
|
|
@@ -22,18 +22,6 @@ export declare function createModelsRoutes(options: {
|
|
|
22
22
|
profileId?: string | undefined;
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
|
-
} | {
|
|
26
|
-
output: {
|
|
27
|
-
error: string;
|
|
28
|
-
};
|
|
29
|
-
outputFormat: "json";
|
|
30
|
-
status: 400;
|
|
31
|
-
input: {
|
|
32
|
-
query: {
|
|
33
|
-
runner: string | string[];
|
|
34
|
-
profileId?: string | undefined;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
25
|
} | {
|
|
38
26
|
output: {
|
|
39
27
|
runner: string;
|
|
@@ -55,6 +43,18 @@ export declare function createModelsRoutes(options: {
|
|
|
55
43
|
profileId?: string | undefined;
|
|
56
44
|
};
|
|
57
45
|
};
|
|
46
|
+
} | {
|
|
47
|
+
output: {
|
|
48
|
+
error: string;
|
|
49
|
+
};
|
|
50
|
+
outputFormat: "json";
|
|
51
|
+
status: 400;
|
|
52
|
+
input: {
|
|
53
|
+
query: {
|
|
54
|
+
runner: string | string[];
|
|
55
|
+
profileId?: string | undefined;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
58
|
};
|
|
59
59
|
};
|
|
60
60
|
}, "/", "/models">;
|
|
@@ -70,10 +70,18 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
|
|
|
70
70
|
};
|
|
71
71
|
} | {
|
|
72
72
|
output: {
|
|
73
|
-
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
-
|
|
124
|
-
worktreeReclaimedAt: string;
|
|
123
|
+
error: string;
|
|
125
124
|
};
|
|
126
125
|
outputFormat: "json";
|
|
127
|
-
status:
|
|
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
|
-
|
|
134
|
+
runId: string;
|
|
135
|
+
worktreeReclaimedAt: string;
|
|
136
136
|
};
|
|
137
137
|
outputFormat: "json";
|
|
138
|
-
status:
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
455
|
-
pulled: true;
|
|
456
|
-
summary: string;
|
|
454
|
+
error: string;
|
|
457
455
|
};
|
|
458
456
|
outputFormat: "json";
|
|
459
|
-
status:
|
|
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
|
-
|
|
466
|
+
branch: string;
|
|
467
|
+
pulled: true;
|
|
468
|
+
summary: string;
|
|
469
469
|
};
|
|
470
470
|
outputFormat: "json";
|
|
471
|
-
status:
|
|
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:
|
|
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:
|
|
56
|
+
status: 400;
|
|
57
57
|
input: {
|
|
58
58
|
query: {
|
|
59
59
|
q?: string | undefined;
|