@hearsay-tools/squawk 0.19.0-dev.8773 → 0.19.0-dev.8778
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/boot.js +2 -0
- package/dist/boot.js.map +1 -1
- package/dist/built-in-http-routes.d.ts +10 -0
- package/dist/built-in-http-routes.js +41 -0
- package/dist/built-in-http-routes.js.map +1 -0
- package/dist/contract/automation-requests.d.ts +4 -0
- package/dist/core/http-route-registry.d.ts +28 -5
- package/dist/core/http-route-registry.js +37 -9
- package/dist/core/http-route-registry.js.map +1 -1
- package/dist/delegation/transport.d.ts +65 -65
- package/dist/plugin/api.js +3 -1
- package/dist/plugin/api.js.map +1 -1
- package/dist/plugin/index.d.ts +1 -1
- package/dist/plugin/index.js.map +1 -1
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/models-routes.d.ts +12 -12
- package/dist/server/plugin-http-routes.d.ts +29 -4
- package/dist/server/plugin-http-routes.js +100 -13
- package/dist/server/plugin-http-routes.js.map +1 -1
- package/dist/server/projects-routes.d.ts +45 -45
- package/dist/server/providers-routes.d.ts +53 -53
- package/dist/server/repo-routes.d.ts +34 -34
- package/dist/server/runner-install-routes.d.ts +10 -10
- package/dist/server/server.d.ts +2870 -5670
- package/dist/server/server.js +39 -59
- package/dist/server/server.js.map +1 -1
- package/dist/server/workspace-routes.d.ts +84 -84
- package/dist/server/ws.d.ts +6 -0
- package/dist/server/ws.js +41 -0
- package/dist/server/ws.js.map +1 -1
- package/package.json +4 -4
- package/web/dist/assets/{accounts-section-CIgJyKva.js → accounts-section-DyE8nZhG.js} +1 -1
- package/web/dist/assets/{activity-motion-D_URV8Di.js → activity-motion-BbCsI0zQ.js} +1 -1
- package/web/dist/assets/{activity-route-Do33FDky.js → activity-route-BBHWMCvF.js} +1 -1
- package/web/dist/assets/{agent-config-section-BMfcQCbi.js → agent-config-section-7k8wATxQ.js} +1 -1
- package/web/dist/assets/{agent-defaults-section-Co96ec0d.js → agent-defaults-section-DwjS2zpP.js} +1 -1
- package/web/dist/assets/{appearance-DkSPOcn0.js → appearance-Cz_Xisdp.js} +1 -1
- package/web/dist/assets/{automations-route-YNUMP0mD.js → automations-route-331MoIW6.js} +1 -1
- package/web/dist/assets/{commit-list-0tp9mxng.js → commit-list-Ogvgv0V9.js} +1 -1
- package/web/dist/assets/{diff-6Tr1DKFm.js → diff-ZGlCIC2o.js} +2 -2
- package/web/dist/assets/{diff-controls-Uj68AWl-.js → diff-controls-CY3bqJPO.js} +1 -1
- package/web/dist/assets/{diff-view-DMO64pR1.js → diff-view-9-FcV8NQ.js} +1 -1
- package/web/dist/assets/{file-preview-BqaVkwcr.js → file-preview-CBme1fo_.js} +1 -1
- package/web/dist/assets/{git-toolbar-D513sAp1.js → git-toolbar-p0Gt04pZ.js} +1 -1
- package/web/dist/assets/{github-C5qUGzPx.js → github-ohX3f9y8.js} +1 -1
- package/web/dist/assets/{global-activity-route-DRZlGf9a.js → global-activity-route-Do0nIcLb.js} +1 -1
- package/web/dist/assets/{index-CIAFRUw6.js → index-BSZD2aai.js} +4 -4
- package/web/dist/assets/index-BwvwfpYW.css +1 -0
- package/web/dist/assets/{markdown-B8uIJFot.js → markdown-BZgLow5j.js} +1 -1
- package/web/dist/assets/{notifications-section-DcR7A7aZ.js → notifications-section-UWrIuuqK.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-BOptVmB7.js → preview-pane-connected-D-NHVwVK.js} +1 -1
- package/web/dist/assets/{projects-section-ByjMveO2.js → projects-section-ZvcZ3_Gf.js} +1 -1
- package/web/dist/assets/{prompt-templates-section-mztZbjR2.js → prompt-templates-section-C41o3_cn.js} +1 -1
- package/web/dist/assets/{remote-settings-notice-_lT2fFKo.js → remote-settings-notice-BsKK4zWt.js} +1 -1
- package/web/dist/assets/{repo-git-muNCGIF4.js → repo-git-CaKYihkq.js} +1 -1
- package/web/dist/assets/{report-reader-CJTciXLf.js → report-reader-MQRVVGOV.js} +1 -1
- package/web/dist/assets/{reports-Ddq_ls0m.js → reports-BkkJOinX.js} +1 -1
- package/web/dist/assets/{resources-section-C5ssAmKn.js → resources-section-D4cLySUg.js} +1 -1
- package/web/dist/assets/{review-panel-wst8aLz4.js → review-panel-DwoLnSOz.js} +1 -1
- package/web/dist/assets/{run-header-bZAJ80iC.js → run-header-DXt2EtCb.js} +1 -1
- package/web/dist/assets/{select-B05NBo-9.js → select-DsxHxI9X.js} +1 -1
- package/web/dist/assets/{session-context-section-BzflGStM.js → session-context-section-Dq7kwhFC.js} +1 -1
- package/web/dist/assets/{settings-agent-picker-BjvjnUs4.js → settings-agent-picker--LZQKc3H.js} +1 -1
- package/web/dist/assets/{settings-shell-vD5R1O7D.js → settings-shell-BLI4CANd.js} +1 -1
- package/web/dist/assets/{sidebar-section-BZLTjCJ6.js → sidebar-section-BZKlFvG9.js} +1 -1
- package/web/dist/assets/{skills-BNbkK6g-.js → skills-Dvzt9DdF.js} +1 -1
- package/web/dist/assets/{task-changes-BbRB1M0L.js → task-changes-Bj8vcfpY.js} +1 -1
- package/web/dist/assets/{task-commits-_hMQ47BK.js → task-commits-D2sgt47s.js} +1 -1
- package/web/dist/assets/{task-file-scope-CGgYP4rR.js → task-file-scope-BEi9o8Ur.js} +1 -1
- package/web/dist/assets/{task-files-Cce3Lghe.js → task-files-CSGqLTZ9.js} +1 -1
- package/web/dist/assets/{task-github-item-C25rYc6W.js → task-github-item-DyMsNAdL.js} +1 -1
- package/web/dist/assets/{task-thread-Cqs9j6f8.js → task-thread-D7iB5aiK.js} +1 -1
- package/web/dist/assets/{thread-state-C4f5H6np.js → thread-state-D8MmuQvJ.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-Dnb5uNM1.js → use-hand-to-agent-state-BFCOOUq3.js} +1 -1
- package/web/dist/assets/{workflows-FH3RBKvk.css → workflows-BpuZNAc8.css} +1 -1
- package/web/dist/assets/workflows-V_D7FZYN.js +7 -0
- package/web/dist/assets/{workspace-tools-DJcDHrF-.js → workspace-tools-BwNE3W6C.js} +1 -1
- package/web/dist/assets/{worktrees-section-DRG2wiAo.js → worktrees-section-DLigjWPB.js} +1 -1
- package/web/dist/index.html +2 -2
- package/web/dist/assets/index-DclFk8VO.css +0 -1
- package/web/dist/assets/workflows-Cl1NhrpU.js +0 -7
package/dist/boot.js
CHANGED
|
@@ -49,6 +49,7 @@ async function sealRuntime({ pluginsDir, bundledRunnersDir, bundledFeaturesDir,
|
|
|
49
49
|
registerBuiltInCliCommands();
|
|
50
50
|
const { registerBuiltInRunSlots, sealBuiltInRunSlots } = await import('./built-in-run-slots.js');
|
|
51
51
|
const { registerBuiltInLaunchParts, sealBuiltInLaunchParts } = await import('./built-in-launch-parts.js');
|
|
52
|
+
const { registerBuiltInHttpRoutes } = await import('./built-in-http-routes.js');
|
|
52
53
|
const { registerBuiltInStepKinds, sealBuiltInStepKinds } = await import('./workflows/step-kind-registry.js');
|
|
53
54
|
const { registerBuiltInTools, sealBuiltInTools } = await import('./built-in-tools.js');
|
|
54
55
|
const { registerBuiltInWaitKinds, sealBuiltInWaitKinds } = await import('./built-in-wait-kinds.js');
|
|
@@ -58,6 +59,7 @@ async function sealRuntime({ pluginsDir, bundledRunnersDir, bundledFeaturesDir,
|
|
|
58
59
|
const loader = await import('./plugin/loader.js');
|
|
59
60
|
registerBuiltInRunSlots();
|
|
60
61
|
registerBuiltInLaunchParts();
|
|
62
|
+
registerBuiltInHttpRoutes();
|
|
61
63
|
registerBuiltInStepKinds();
|
|
62
64
|
registerBuiltInTools();
|
|
63
65
|
registerBuiltInWaitKinds();
|
package/dist/boot.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boot.js","sourceRoot":"","sources":["../src/boot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAChG,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE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* Temporary built-in HTTP route bundle registrations for automations (hearsay-tools/squawk#4441).
|
|
3
|
+
* Moves into `features/automations/index.ts` and is deleted in `hearsay-tools/squawk#4444`.
|
|
4
|
+
*/
|
|
5
|
+
import { type HttpBundleRouteDefinition, type HttpRouteDefinition } from './core/http-route-registry.ts';
|
|
6
|
+
export declare const automationsHttpRoute: HttpBundleRouteDefinition;
|
|
7
|
+
export declare const automationChecksHttpRoute: HttpBundleRouteDefinition;
|
|
8
|
+
export declare const BUILT_IN_HTTP_ROUTES: readonly HttpRouteDefinition[];
|
|
9
|
+
/** Register the temporary built-in HTTP routes. Idempotent for the same objects. */
|
|
10
|
+
export declare function registerBuiltInHttpRoutes(): void;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Temporary built-in HTTP route bundle registrations for automations (hearsay-tools/squawk#4441).
|
|
3
|
+
* Moves into `features/automations/index.ts` and is deleted in `hearsay-tools/squawk#4444`.
|
|
4
|
+
*/
|
|
5
|
+
import { registerHttpRoute, } from './core/http-route-registry.js';
|
|
6
|
+
import { createAutomationsRouteBundles } from './server/automations-routes.js';
|
|
7
|
+
const bundlesByBridge = new WeakMap();
|
|
8
|
+
function automationsBundles(context) {
|
|
9
|
+
const bridge = context.appBridge;
|
|
10
|
+
if (!bridge || typeof bridge !== 'object') {
|
|
11
|
+
throw new Error('HTTP routes: automations bundle requires server app context.');
|
|
12
|
+
}
|
|
13
|
+
let created = bundlesByBridge.get(bridge);
|
|
14
|
+
if (!created) {
|
|
15
|
+
created = createAutomationsRouteBundles(bridge);
|
|
16
|
+
bundlesByBridge.set(bridge, created);
|
|
17
|
+
}
|
|
18
|
+
return created;
|
|
19
|
+
}
|
|
20
|
+
export const automationsHttpRoute = {
|
|
21
|
+
kind: 'bundle',
|
|
22
|
+
id: 'automations',
|
|
23
|
+
scope: 'project',
|
|
24
|
+
createRoutes: (context) => automationsBundles(context).automationsRoutes,
|
|
25
|
+
};
|
|
26
|
+
export const automationChecksHttpRoute = {
|
|
27
|
+
kind: 'bundle',
|
|
28
|
+
id: 'automation-checks',
|
|
29
|
+
scope: 'workspace',
|
|
30
|
+
createRoutes: (context) => automationsBundles(context).automationChecksRoutes,
|
|
31
|
+
};
|
|
32
|
+
export const BUILT_IN_HTTP_ROUTES = [
|
|
33
|
+
automationsHttpRoute,
|
|
34
|
+
automationChecksHttpRoute,
|
|
35
|
+
];
|
|
36
|
+
/** Register the temporary built-in HTTP routes. Idempotent for the same objects. */
|
|
37
|
+
export function registerBuiltInHttpRoutes() {
|
|
38
|
+
for (const route of BUILT_IN_HTTP_ROUTES)
|
|
39
|
+
registerHttpRoute(route);
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=built-in-http-routes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"built-in-http-routes.js","sourceRoot":"","sources":["../src/built-in-http-routes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACL,iBAAiB,GAIlB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,6BAA6B,EAA6B,MAAM,gCAAgC,CAAC;AAE1G,MAAM,eAAe,GAAG,IAAI,OAAO,EAA4D,CAAC;AAEhG,SAAS,kBAAkB,CAAC,OAA+B;IACzD,MAAM,MAAM,GAAG,OAAO,CAAC,SAA6C,CAAC;IACrE,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;QAC1C,MAAM,IAAI,KAAK,CAAC,8DAA8D,CAAC,CAAC;IAClF,CAAC;IACD,IAAI,OAAO,GAAG,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,GAAG,6BAA6B,CAAC,MAAM,CAAC,CAAC;QAChD,eAAe,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,MAAM,CAAC,MAAM,oBAAoB,GAA8B;IAC7D,IAAI,EAAE,QAAQ;IACd,EAAE,EAAE,aAAa;IACjB,KAAK,EAAE,SAAS;IAChB,YAAY,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,iBAAiB;CACzE,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAA8B;IAClE,IAAI,EAAE,QAAQ;IACd,EAAE,EAAE,mBAAmB;IACvB,KAAK,EAAE,WAAW;IAClB,YAAY,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,sBAAsB;CAC9E,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAmC;IAClE,oBAAoB;IACpB,yBAAyB;CAC1B,CAAC;AAEF,oFAAoF;AACpF,MAAM,UAAU,yBAAyB;IACvC,KAAK,MAAM,KAAK,IAAI,oBAAoB;QAAE,iBAAiB,CAAC,KAAK,CAAC,CAAC;AACrE,CAAC"}
|
|
@@ -164,6 +164,7 @@ export declare const automationCreateSchema: z.ZodObject<{
|
|
|
164
164
|
}, z.core.$strict>;
|
|
165
165
|
enable: z.ZodOptional<z.ZodBoolean>;
|
|
166
166
|
}, z.core.$strict>;
|
|
167
|
+
export type AutomationCreateRequest = z.input<typeof automationCreateSchema>;
|
|
167
168
|
export declare const automationUpdateSchema: z.ZodObject<{
|
|
168
169
|
name: z.ZodString;
|
|
169
170
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -244,12 +245,14 @@ export declare const automationUpdateSchema: z.ZodObject<{
|
|
|
244
245
|
}, z.core.$strict>;
|
|
245
246
|
expectedRevision: z.ZodNumber;
|
|
246
247
|
}, z.core.$strict>;
|
|
248
|
+
export type AutomationUpdateRequest = z.input<typeof automationUpdateSchema>;
|
|
247
249
|
export declare const automationCheckRequestSchema: z.ZodObject<{
|
|
248
250
|
mode: z.ZodEnum<{
|
|
249
251
|
execute: "execute";
|
|
250
252
|
preview: "preview";
|
|
251
253
|
}>;
|
|
252
254
|
}, z.core.$strict>;
|
|
255
|
+
export type AutomationCheckRequest = z.input<typeof automationCheckRequestSchema>;
|
|
253
256
|
export declare const automationLogQuerySchema: z.ZodObject<{
|
|
254
257
|
automationId: z.ZodOptional<z.ZodString>;
|
|
255
258
|
result: z.ZodOptional<z.ZodEnum<{
|
|
@@ -276,3 +279,4 @@ export declare const automationLogQuerySchema: z.ZodObject<{
|
|
|
276
279
|
cursor: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
277
280
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
278
281
|
}, z.core.$strip>;
|
|
282
|
+
export type AutomationLogQuery = z.output<typeof automationLogQuerySchema>;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* Follows the register → seal → read lifecycle of `core/registry.ts`.
|
|
4
|
-
* outside `AppType` RPC inference, behind the global `/api/*`
|
|
5
|
-
* SPA catch-all.
|
|
2
|
+
* Plugin HTTP route registry for bundled features and plugins (hearsay-tools/squawk#4402,
|
|
3
|
+
* hearsay-tools/squawk#4441). Follows the register → seal → read lifecycle of `core/registry.ts`.
|
|
4
|
+
* Routes mounted here sit outside `AppType` RPC inference, behind the global `/api/*`
|
|
5
|
+
* request-origin guard and before the SPA catch-all.
|
|
6
6
|
*/
|
|
7
|
+
import type { Hono } from 'hono';
|
|
7
8
|
import type { Home } from '../home/home.ts';
|
|
8
9
|
export declare const HTTP_ROUTE_METHODS: readonly ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'ALL'];
|
|
9
10
|
export type HttpRouteMethod = typeof HTTP_ROUTE_METHODS[number];
|
|
11
|
+
export declare const HTTP_ROUTE_SCOPES: readonly ['project', 'workspace'];
|
|
12
|
+
export type HttpRouteScope = typeof HTTP_ROUTE_SCOPES[number];
|
|
10
13
|
export interface HttpRouteContext {
|
|
11
14
|
readonly home: Home;
|
|
12
15
|
readonly version: string;
|
|
@@ -15,7 +18,15 @@ export interface HttpRouteContext {
|
|
|
15
18
|
/** Invoke the cockpit HTTP app in-process (synthetic loopback Host, no Origin). */
|
|
16
19
|
fetchApp(request: Request): Promise<Response>;
|
|
17
20
|
}
|
|
18
|
-
export interface
|
|
21
|
+
export interface HttpRouteBundleContext extends HttpRouteContext {
|
|
22
|
+
/**
|
|
23
|
+
* Opaque per-app bridge for server-scoped route bundles until server lifecycle hooks
|
|
24
|
+
* (`hearsay-tools/squawk#4442`) replace it with `ServerPluginContext`.
|
|
25
|
+
*/
|
|
26
|
+
readonly appBridge?: unknown;
|
|
27
|
+
}
|
|
28
|
+
export interface HttpHandlerRouteDefinition {
|
|
29
|
+
readonly kind?: 'handler' | undefined;
|
|
19
30
|
readonly id: string;
|
|
20
31
|
readonly method: HttpRouteMethod;
|
|
21
32
|
/** Must start with `/api/v1/`. */
|
|
@@ -27,6 +38,18 @@ export interface HttpRouteDefinition {
|
|
|
27
38
|
readonly managesBodyLimit?: boolean | undefined;
|
|
28
39
|
handle(request: Request, context: HttpRouteContext): Response | Promise<Response>;
|
|
29
40
|
}
|
|
41
|
+
export interface HttpBundleRouteDefinition {
|
|
42
|
+
readonly kind: 'bundle';
|
|
43
|
+
readonly id: string;
|
|
44
|
+
readonly scope: HttpRouteScope;
|
|
45
|
+
/**
|
|
46
|
+
* Build the Hono sub-app mounted under `/api/v1/p/:projectId` and `/api/v1` (when `scope` is
|
|
47
|
+
* `'project'`) or under `/api/v1` only (when `scope` is `'workspace'`).
|
|
48
|
+
*/
|
|
49
|
+
createRoutes(context: HttpRouteBundleContext): Hono<any, any, any>;
|
|
50
|
+
}
|
|
51
|
+
export type HttpRouteDefinition = HttpHandlerRouteDefinition | HttpBundleRouteDefinition;
|
|
52
|
+
export declare function isHttpBundleRoute(route: HttpRouteDefinition): route is HttpBundleRouteDefinition;
|
|
30
53
|
/** Throws what `registerHttpRoute` would throw, without writing. */
|
|
31
54
|
export declare function checkHttpRouteRegistration(route: HttpRouteDefinition): void;
|
|
32
55
|
export declare function registerHttpRoute(route: HttpRouteDefinition): void;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { createKeyedRegistry } from './registry.js';
|
|
2
2
|
export const HTTP_ROUTE_METHODS = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'ALL'];
|
|
3
|
+
export const HTTP_ROUTE_SCOPES = ['project', 'workspace'];
|
|
4
|
+
export function isHttpBundleRoute(route) {
|
|
5
|
+
return route.kind === 'bundle';
|
|
6
|
+
}
|
|
3
7
|
const API_V1_PREFIX = '/api/v1/';
|
|
4
8
|
const routes = createKeyedRegistry({
|
|
5
9
|
name: 'HTTP routes',
|
|
6
10
|
bootHint: 'register every HTTP route, then call sealHttpRoutes() at the runtime boot boundary (boot.ts), or import a testkit that seals it.',
|
|
7
11
|
});
|
|
8
12
|
const claimedPaths = new Map();
|
|
9
|
-
function
|
|
10
|
-
if (typeof route !== 'object' || route === null)
|
|
11
|
-
throw new Error('HTTP routes: a route definition must be an object.');
|
|
12
|
-
if (typeof route.id !== 'string' || route.id.length === 0)
|
|
13
|
-
throw new Error(`HTTP routes: invalid id ${JSON.stringify(route.id)}.`);
|
|
13
|
+
function checkHandlerShape(route) {
|
|
14
14
|
if (!HTTP_ROUTE_METHODS.includes(route.method)) {
|
|
15
15
|
throw new Error(`HTTP routes: '${route.id}' has unsupported method ${JSON.stringify(route.method)}.`);
|
|
16
16
|
}
|
|
@@ -23,19 +23,47 @@ function checkShape(route) {
|
|
|
23
23
|
if (typeof route.handle !== 'function')
|
|
24
24
|
throw new Error(`HTTP routes: '${route.id}' needs a handle function.`);
|
|
25
25
|
}
|
|
26
|
+
function checkBundleShape(route) {
|
|
27
|
+
if (!HTTP_ROUTE_SCOPES.includes(route.scope)) {
|
|
28
|
+
throw new Error(`HTTP routes: '${route.id}' has unsupported scope ${JSON.stringify(route.scope)}.`);
|
|
29
|
+
}
|
|
30
|
+
if (typeof route.createRoutes !== 'function') {
|
|
31
|
+
throw new Error(`HTTP routes: '${route.id}' needs a createRoutes function.`);
|
|
32
|
+
}
|
|
33
|
+
if (route.createRoutes.constructor?.name === 'AsyncFunction') {
|
|
34
|
+
throw new Error(`HTTP routes: '${route.id}' createRoutes must be synchronous.`);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function checkShape(route) {
|
|
38
|
+
if (typeof route !== 'object' || route === null)
|
|
39
|
+
throw new Error('HTTP routes: a route definition must be an object.');
|
|
40
|
+
if (typeof route.id !== 'string' || route.id.length === 0)
|
|
41
|
+
throw new Error(`HTTP routes: invalid id ${JSON.stringify(route.id)}.`);
|
|
42
|
+
if (route.kind === 'bundle') {
|
|
43
|
+
checkBundleShape(route);
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
if (route.kind !== undefined && route.kind !== 'handler') {
|
|
47
|
+
throw new Error(`HTTP routes: '${route.id}' has unsupported kind ${JSON.stringify(route.kind)}.`);
|
|
48
|
+
}
|
|
49
|
+
checkHandlerShape(route);
|
|
50
|
+
}
|
|
26
51
|
/** Throws what `registerHttpRoute` would throw, without writing. */
|
|
27
52
|
export function checkHttpRouteRegistration(route) {
|
|
28
53
|
checkShape(route);
|
|
29
54
|
routes.check(route.id, route);
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
55
|
+
if (!isHttpBundleRoute(route)) {
|
|
56
|
+
const owner = claimedPaths.get(route.path);
|
|
57
|
+
if (owner !== undefined && owner !== route) {
|
|
58
|
+
throw new Error(`HTTP routes: path '${route.path}' is already registered by '${owner.id}'.`);
|
|
59
|
+
}
|
|
33
60
|
}
|
|
34
61
|
}
|
|
35
62
|
export function registerHttpRoute(route) {
|
|
36
63
|
checkHttpRouteRegistration(route);
|
|
37
64
|
routes.register(route.id, route);
|
|
38
|
-
|
|
65
|
+
if (!isHttpBundleRoute(route))
|
|
66
|
+
claimedPaths.set(route.path, route);
|
|
39
67
|
}
|
|
40
68
|
export function sealHttpRoutes() { routes.seal(); }
|
|
41
69
|
/** Whether the registry is sealed. Never throws. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-route-registry.js","sourceRoot":"","sources":["../../src/core/http-route-registry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"http-route-registry.js","sourceRoot":"","sources":["../../src/core/http-route-registry.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAU,CAAC;AAG5F,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,SAAS,EAAE,WAAW,CAAU,CAAC;AA+CnE,MAAM,UAAU,iBAAiB,CAAC,KAA0B;IAC1D,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC;AACjC,CAAC;AAED,MAAM,aAAa,GAAG,UAAU,CAAC;AAEjC,MAAM,MAAM,GAAG,mBAAmB,CAA8B;IAC9D,IAAI,EAAE,aAAa;IACnB,QAAQ,EAAE,kIAAkI;CAC7I,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,IAAI,GAAG,EAAsC,CAAC;AAEnE,SAAS,iBAAiB,CAAC,KAAiC;IAC1D,IAAI,CAAE,kBAAwC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;QACtE,MAAM,IAAI,KAAK,CAAC,iBAAiB,KAAK,CAAC,EAAE,4BAA4B,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACxG,CAAC;IACD,IAAI,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,IAAI,aAAa,CAAC,MAAM,EAAE,CAAC;QACzH,MAAM,IAAI,KAAK,CAAC,iBA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C,KAAK,CAAC;QAAE,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrE,CAAC;AAED,MAAM,UAAU,cAAc,KAAW,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAEzD,oDAAoD;AACpD,MAAM,UAAU,gBAAgB,KAAc,OAAO,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;AAEzE,gFAAgF;AAChF,MAAM,UAAU,oBAAoB;IAClC,OAAO,MAAM,CAAC,MAAM,EAAE,CAAC;AACzB,CAAC"}
|
|
@@ -2,6 +2,18 @@ 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
|
+
} | {
|
|
5
17
|
output: {
|
|
6
18
|
workers: {
|
|
7
19
|
workerId: string;
|
|
@@ -54,18 +66,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
54
66
|
offset?: string | undefined;
|
|
55
67
|
};
|
|
56
68
|
};
|
|
57
|
-
} | {
|
|
58
|
-
output: {
|
|
59
|
-
error: string;
|
|
60
|
-
code?: "invalid_input" | undefined;
|
|
61
|
-
};
|
|
62
|
-
outputFormat: "json";
|
|
63
|
-
status: 400;
|
|
64
|
-
input: {
|
|
65
|
-
query: {
|
|
66
|
-
offset?: string | undefined;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
69
|
};
|
|
70
70
|
};
|
|
71
71
|
} & {
|
|
@@ -652,6 +652,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
652
652
|
} & {
|
|
653
653
|
"/:workerId": {
|
|
654
654
|
$get: {
|
|
655
|
+
output: {
|
|
656
|
+
error: string;
|
|
657
|
+
code?: "invalid_input" | undefined;
|
|
658
|
+
};
|
|
659
|
+
outputFormat: "json";
|
|
660
|
+
status: 400;
|
|
661
|
+
input: {
|
|
662
|
+
param: {
|
|
663
|
+
workerId: string;
|
|
664
|
+
};
|
|
665
|
+
};
|
|
666
|
+
} | {
|
|
655
667
|
output: {
|
|
656
668
|
workerId: string;
|
|
657
669
|
settled: boolean;
|
|
@@ -776,7 +788,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
776
788
|
workerId: string;
|
|
777
789
|
};
|
|
778
790
|
};
|
|
779
|
-
}
|
|
791
|
+
};
|
|
792
|
+
};
|
|
793
|
+
} & {
|
|
794
|
+
"/:workerId/collect": {
|
|
795
|
+
$post: {
|
|
780
796
|
output: {
|
|
781
797
|
error: string;
|
|
782
798
|
code?: "invalid_input" | undefined;
|
|
@@ -787,12 +803,10 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
787
803
|
param: {
|
|
788
804
|
workerId: string;
|
|
789
805
|
};
|
|
806
|
+
} & {
|
|
807
|
+
json: Record<string, never>;
|
|
790
808
|
};
|
|
791
|
-
}
|
|
792
|
-
};
|
|
793
|
-
} & {
|
|
794
|
-
"/:workerId/collect": {
|
|
795
|
-
$post: {
|
|
809
|
+
} | {
|
|
796
810
|
output: {
|
|
797
811
|
workerId: string;
|
|
798
812
|
parentRunId: string;
|
|
@@ -915,7 +929,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
915
929
|
} & {
|
|
916
930
|
json: Record<string, never>;
|
|
917
931
|
};
|
|
918
|
-
}
|
|
932
|
+
};
|
|
933
|
+
};
|
|
934
|
+
} & {
|
|
935
|
+
"/:workerId/steer": {
|
|
936
|
+
$post: {
|
|
919
937
|
output: {
|
|
920
938
|
error: string;
|
|
921
939
|
code?: "invalid_input" | undefined;
|
|
@@ -927,13 +945,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
927
945
|
workerId: string;
|
|
928
946
|
};
|
|
929
947
|
} & {
|
|
930
|
-
json:
|
|
948
|
+
json: {
|
|
949
|
+
text: string;
|
|
950
|
+
};
|
|
931
951
|
};
|
|
932
|
-
}
|
|
933
|
-
};
|
|
934
|
-
} & {
|
|
935
|
-
"/:workerId/steer": {
|
|
936
|
-
$post: {
|
|
952
|
+
} | {
|
|
937
953
|
output: {
|
|
938
954
|
workerId: string;
|
|
939
955
|
state: "delivered" | "queued";
|
|
@@ -949,7 +965,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
949
965
|
text: string;
|
|
950
966
|
};
|
|
951
967
|
};
|
|
952
|
-
}
|
|
968
|
+
};
|
|
969
|
+
};
|
|
970
|
+
} & {
|
|
971
|
+
"/:workerId/stop": {
|
|
972
|
+
$post: {
|
|
953
973
|
output: {
|
|
954
974
|
error: string;
|
|
955
975
|
code?: "invalid_input" | undefined;
|
|
@@ -961,15 +981,9 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
961
981
|
workerId: string;
|
|
962
982
|
};
|
|
963
983
|
} & {
|
|
964
|
-
json:
|
|
965
|
-
text: string;
|
|
966
|
-
};
|
|
984
|
+
json: Record<string, never>;
|
|
967
985
|
};
|
|
968
|
-
}
|
|
969
|
-
};
|
|
970
|
-
} & {
|
|
971
|
-
"/:workerId/stop": {
|
|
972
|
-
$post: {
|
|
986
|
+
} | {
|
|
973
987
|
output: {
|
|
974
988
|
workerId: string;
|
|
975
989
|
state: "stopping" | "terminated";
|
|
@@ -983,7 +997,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
983
997
|
} & {
|
|
984
998
|
json: Record<string, never>;
|
|
985
999
|
};
|
|
986
|
-
}
|
|
1000
|
+
};
|
|
1001
|
+
};
|
|
1002
|
+
} & {
|
|
1003
|
+
"/:workerId/destroy": {
|
|
1004
|
+
$post: {
|
|
987
1005
|
output: {
|
|
988
1006
|
error: string;
|
|
989
1007
|
code?: "invalid_input" | undefined;
|
|
@@ -995,13 +1013,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
995
1013
|
workerId: string;
|
|
996
1014
|
};
|
|
997
1015
|
} & {
|
|
998
|
-
json:
|
|
1016
|
+
json: {
|
|
1017
|
+
discardWork?: true | undefined;
|
|
1018
|
+
};
|
|
999
1019
|
};
|
|
1000
|
-
}
|
|
1001
|
-
};
|
|
1002
|
-
} & {
|
|
1003
|
-
"/:workerId/destroy": {
|
|
1004
|
-
$post: {
|
|
1020
|
+
} | {
|
|
1005
1021
|
output: {
|
|
1006
1022
|
workerId: string;
|
|
1007
1023
|
state: "complete" | "incomplete";
|
|
@@ -1030,22 +1046,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1030
1046
|
discardWork?: true | undefined;
|
|
1031
1047
|
};
|
|
1032
1048
|
};
|
|
1033
|
-
} | {
|
|
1034
|
-
output: {
|
|
1035
|
-
error: string;
|
|
1036
|
-
code?: "invalid_input" | undefined;
|
|
1037
|
-
};
|
|
1038
|
-
outputFormat: "json";
|
|
1039
|
-
status: 400;
|
|
1040
|
-
input: {
|
|
1041
|
-
param: {
|
|
1042
|
-
workerId: string;
|
|
1043
|
-
};
|
|
1044
|
-
} & {
|
|
1045
|
-
json: {
|
|
1046
|
-
discardWork?: true | undefined;
|
|
1047
|
-
};
|
|
1048
|
-
};
|
|
1049
1049
|
} | {
|
|
1050
1050
|
output: {
|
|
1051
1051
|
workerId: string;
|
|
@@ -1081,13 +1081,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1081
1081
|
"/:workerId/diff": {
|
|
1082
1082
|
$get: {
|
|
1083
1083
|
output: {
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
diff: string;
|
|
1087
|
-
truncated: boolean;
|
|
1084
|
+
error: string;
|
|
1085
|
+
code?: "invalid_input" | undefined;
|
|
1088
1086
|
};
|
|
1089
1087
|
outputFormat: "json";
|
|
1090
|
-
status:
|
|
1088
|
+
status: 400;
|
|
1091
1089
|
input: {
|
|
1092
1090
|
param: {
|
|
1093
1091
|
workerId: string;
|
|
@@ -1095,11 +1093,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1095
1093
|
};
|
|
1096
1094
|
} | {
|
|
1097
1095
|
output: {
|
|
1098
|
-
|
|
1099
|
-
|
|
1096
|
+
workerId: string;
|
|
1097
|
+
baselineSha: string;
|
|
1098
|
+
diff: string;
|
|
1099
|
+
truncated: boolean;
|
|
1100
1100
|
};
|
|
1101
1101
|
outputFormat: "json";
|
|
1102
|
-
status:
|
|
1102
|
+
status: 200;
|
|
1103
1103
|
input: {
|
|
1104
1104
|
param: {
|
|
1105
1105
|
workerId: string;
|
package/dist/plugin/api.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { checkAgentToolRegistration, registerAgentTool } from '../ci-wait/tool-registry.js';
|
|
8
8
|
import { checkCliCommandRegistration, registerCliCommand } from '../core/cli-registry.js';
|
|
9
|
-
import { checkHttpRouteRegistration, registerHttpRoute } from '../core/http-route-registry.js';
|
|
9
|
+
import { checkHttpRouteRegistration, isHttpBundleRoute, registerHttpRoute } from '../core/http-route-registry.js';
|
|
10
10
|
import { checkLaunchPartRegistration, registerLaunchPart } from '../core/launch-registry.js';
|
|
11
11
|
import { checkRunnerRegistration, registerRunner } from '../core/runner-registry.js';
|
|
12
12
|
import { checkRunLifecycleListenerRegistration, registerRunLifecycleListener } from '../runs/lifecycle-registry.js';
|
|
@@ -77,6 +77,8 @@ function checkSlots(slots) {
|
|
|
77
77
|
function checkStagedHttpPaths(routes) {
|
|
78
78
|
const owners = new Map();
|
|
79
79
|
for (const route of routes) {
|
|
80
|
+
if (isHttpBundleRoute(route))
|
|
81
|
+
continue;
|
|
80
82
|
const owner = owners.get(route.path);
|
|
81
83
|
if (owner && owner !== route)
|
|
82
84
|
throw new Error(`HTTP routes: the plugin registers path '${route.path}' twice.`);
|
package/dist/plugin/api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/plugin/api.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,0BAA0B,EAAE,iBAAiB,EAA4B,MAAM,6BAA6B,CAAC;AACtH,OAAO,EAAE,2BAA2B,EAAE,kBAAkB,EAA6B,MAAM,yBAAyB,CAAC;AACrH,OAAO,EAAE,0BAA0B,EAAE,iBAAiB,EAA4B,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/plugin/api.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,0BAA0B,EAAE,iBAAiB,EAA4B,MAAM,6BAA6B,CAAC;AACtH,OAAO,EAAE,2BAA2B,EAAE,kBAAkB,EAA6B,MAAM,yBAAyB,CAAC;AACrH,OAAO,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,iBAAiB,EAA4B,MAAM,gCAAgC,CAAC;AAC5I,OAAO,EAAE,2BAA2B,EAAE,kBAAkB,EAA6B,MAAM,4BAA4B,CAAC;AAExH,OAAO,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAErF,OAAO,EAAE,qCAAqC,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AACpH,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAiB,MAAM,0BAA0B,CAAC;AACtG,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAoB,MAAM,wCAAwC,CAAC;AACvH,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAA2B,MAAM,oCAAoC,CAAC;AAmB1H,SAAS,QAAQ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AE,EAAE,YAAY,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;IACzK,IAAI,IAAI,GAAG,IAAI,CAAC;IAChB,IAAI,CAAC;QACH,MAAM,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAC/C,CAAC;YAAS,CAAC;QACT,IAAI,GAAG,KAAK,CAAC;IACf,CAAC;IACD,WAAW,CAAC,MAAM,CAAC,CAAC;IACpB,YAAY,CAAC,MAAM,CAAC,CAAC;IACrB,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC;AAC/B,CAAC"}
|
package/dist/plugin/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export type { AgentToolDefinition, AgentToolResult } from '../ci-wait/tool-regis
|
|
|
8
8
|
export type { WaitKindRow, WaitKindRegistration, WaitLifecycle, WaitInputDescriptor } from '../workflows/run/wait-kind-registry.ts';
|
|
9
9
|
export type { StepKindDefinition, StepKindContext, StepKindOutcome } from '../workflows/step-kind-registry.ts';
|
|
10
10
|
export type { CliCommandDefinition, RootCommandContext, SubcommandRunner } from '../core/cli-registry.ts';
|
|
11
|
-
export type { HttpRouteContext, HttpRouteDefinition, HttpRouteMethod } from '../core/http-route-registry.ts';
|
|
11
|
+
export type { HttpBundleRouteDefinition, HttpHandlerRouteDefinition, HttpRouteBundleContext, HttpRouteContext, HttpRouteDefinition, HttpRouteMethod, HttpRouteScope, } from '../core/http-route-registry.ts';
|
|
12
12
|
export type { RunSlots, DeletionGate, DeletionGateContext, DeletionKind, ReclaimPreparation, ReclaimContext, RemovalCleanup } from '../runs/removal-slots.ts';
|
|
13
13
|
export type { LaunchCockpitAddress, LaunchPartContext, LaunchPartContribution, LaunchPartDefinition } from '../core/launch-registry.ts';
|
|
14
14
|
export type { RunLifecycleHandlers, RunLifecycleHandler, RunLifecycleEvents, RunLifecycleEventType } from '../runs/lifecycle.ts';
|
package/dist/plugin/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/plugin/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/plugin/index.ts"],"names":[],"mappings":"AAsBA,cAAc,iBAAiB,CAAC"}
|
|
@@ -16,12 +16,6 @@ export declare function createLiveRoutes({ resolveProject, serverGeneration, res
|
|
|
16
16
|
output: {
|
|
17
17
|
generation: string;
|
|
18
18
|
results: ({
|
|
19
|
-
projectId: string;
|
|
20
|
-
runId: string;
|
|
21
|
-
type: "error" | "reset";
|
|
22
|
-
status: 400 | 404 | 409 | 413 | 503;
|
|
23
|
-
error: string;
|
|
24
|
-
} | {
|
|
25
19
|
projectId: string;
|
|
26
20
|
runId: string;
|
|
27
21
|
type: "batch";
|
|
@@ -42,6 +36,12 @@ export declare function createLiveRoutes({ resolveProject, serverGeneration, res
|
|
|
42
36
|
cursor: string;
|
|
43
37
|
afterSeq: number;
|
|
44
38
|
hasMore: boolean;
|
|
39
|
+
} | {
|
|
40
|
+
projectId: string;
|
|
41
|
+
runId: string;
|
|
42
|
+
type: "error" | "reset";
|
|
43
|
+
status: 400 | 404 | 409 | 413 | 503;
|
|
44
|
+
error: string;
|
|
45
45
|
})[];
|
|
46
46
|
};
|
|
47
47
|
outputFormat: "json";
|
|
@@ -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">;
|