@hearsay-tools/squawk 0.18.0-pr4416.8626 → 0.19.0-pr4418.8633
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/ci-wait/controller.d.ts +7 -7
- package/dist/core/runner-definition.d.ts +0 -9
- package/dist/core/runner-definition.js.map +1 -1
- package/dist/core/runner-facts.d.ts +3 -6
- package/dist/core/runner-facts.js.map +1 -1
- package/dist/runners/codex/mock.d.ts +0 -1
- package/dist/runners/codex/mock.js +0 -1
- package/dist/runners/codex/mock.js.map +1 -1
- package/dist/runners/omp/mock.d.ts +0 -1
- package/dist/runners/omp/mock.js +0 -1
- package/dist/runners/omp/mock.js.map +1 -1
- package/dist/runners/opencode/facts.d.ts +1 -1
- package/dist/runners/opencode/facts.js +2 -3
- package/dist/runners/opencode/facts.js.map +1 -1
- package/dist/runners/opencode/opencode-server-runner.d.ts +1 -1
- package/dist/runners/pi/mock.d.ts +0 -1
- package/dist/runners/pi/mock.js +0 -1
- package/dist/runners/pi/mock.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/runs-routes.d.ts +16 -16
- package/dist/server/server.d.ts +1643 -1643
- package/dist/server/workspace-routes.d.ts +84 -84
- package/package.json +4 -4
|
@@ -121,9 +121,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
121
121
|
} & {
|
|
122
122
|
"/api/v1/tools/:name": {
|
|
123
123
|
$post: {
|
|
124
|
-
output:
|
|
124
|
+
output: {
|
|
125
|
+
code: string;
|
|
126
|
+
message: string;
|
|
127
|
+
};
|
|
125
128
|
outputFormat: "json";
|
|
126
|
-
status:
|
|
129
|
+
status: 401;
|
|
127
130
|
input: {
|
|
128
131
|
json: unknown;
|
|
129
132
|
} & {
|
|
@@ -146,12 +149,9 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
146
149
|
};
|
|
147
150
|
};
|
|
148
151
|
} | {
|
|
149
|
-
output:
|
|
150
|
-
code: string;
|
|
151
|
-
message: string;
|
|
152
|
-
};
|
|
152
|
+
output: never;
|
|
153
153
|
outputFormat: "json";
|
|
154
|
-
status:
|
|
154
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
155
155
|
input: {
|
|
156
156
|
json: unknown;
|
|
157
157
|
} & {
|
|
@@ -119,15 +119,6 @@ export interface RunnerMock {
|
|
|
119
119
|
readonly env: string;
|
|
120
120
|
readonly argsFileSuffix: string;
|
|
121
121
|
};
|
|
122
|
-
/** Fixed native session id the mock binds its turn events to on resume (e.g. Codex `th_mock_1`).
|
|
123
|
-
* Absent: the mock binds to `PINNED_SESSION_ID`. */
|
|
124
|
-
readonly resumeSessionId?: string;
|
|
125
|
-
/** True when `step-default` bypasses the CLI allowlist so extension tools stay active (Pi's
|
|
126
|
-
* `--no-builtin-tools`). Selects the extra `step-default`/`empty` tool-admission cells. */
|
|
127
|
-
readonly defaultToolsBypassAllowlist?: true;
|
|
128
|
-
/** True when the wire can report restored history on a fresh start without `--resume` (OMP's
|
|
129
|
-
* `get_state.messageCount` implicit `autoResume`), running S21 live instead of exempt. */
|
|
130
|
-
readonly implicitAutoResume?: true;
|
|
131
122
|
/**
|
|
132
123
|
* How a resume reaches a session this mock does not hold, so the runner opens a fresh one
|
|
133
124
|
* (`fallback-bootstrap` in `core/runner-skill-trigger.testkit.ts`). `unknown-id`: an id the
|
|
@@ -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"}
|
|
@@ -84,13 +84,10 @@ export interface RunnerFacts {
|
|
|
84
84
|
/**
|
|
85
85
|
* When the runner reports the turn that a human `sendMessage` to an idle session opens.
|
|
86
86
|
* `on-write`: `turn.started` is emitted inside `sendMessage`, before the call returns.
|
|
87
|
-
* `on-
|
|
88
|
-
*
|
|
89
|
-
* `on-wire`: it comes later, from a native wire turn-start frame (e.g. Codex `turn/started`).
|
|
90
|
-
* Seam row S37 checks `on-write` vs later; F11 runs where the wire sends a native turn-start
|
|
91
|
-
* frame (`on-wire`). Shared code must not read it; tests use it to pick runners.
|
|
87
|
+
* `on-wire`: it comes later, from a wire frame or a later process. Seam row S37 checks it. Shared
|
|
88
|
+
* code must not read it; tests use it to pick runners.
|
|
92
89
|
*/
|
|
93
|
-
readonly turnStart: 'on-write' | 'on-
|
|
90
|
+
readonly turnStart: 'on-write' | 'on-wire';
|
|
94
91
|
}
|
|
95
92
|
/**
|
|
96
93
|
* Each runner's facts, by runner id. A read goes to the registry (`core/runner-registry.ts`): each
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner-facts.js","sourceRoot":"","sources":["../../src/core/runner-facts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"runner-facts.js","sourceRoot":"","sources":["../../src/core/runner-facts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AA6F5G;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,YAAY,GAA0C,IAAI,KAAK,CAAC,EAAiC,EAAE;IAC9G,GAAG,CAAC,MAAM,EAAE,EAAE;QACZ,IAAI,OAAO,EAAE,KAAK,QAAQ;YAAE,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,EA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C9G,CAAC"}
|
|
@@ -7,7 +7,6 @@ export declare const CODEX_MOCK: {
|
|
|
7
7
|
}];
|
|
8
8
|
readonly binEnv: 'CEZ_CODEX_BIN';
|
|
9
9
|
readonly script: 'mock-codex-app-server.mjs';
|
|
10
|
-
readonly resumeSessionId: 'th_mock_1';
|
|
11
10
|
readonly approvalDecisions: readonly [{
|
|
12
11
|
readonly pick: 'decline';
|
|
13
12
|
readonly echo: 'Approval response: {"decision":"decline"}';
|
|
@@ -6,7 +6,6 @@ export const CODEX_MOCK = {
|
|
|
6
6
|
askResumeCases: [{ kind: 'item/tool/requestUserInput', scenario: 'ask-resume', answer: 'Library: Vitest' }],
|
|
7
7
|
binEnv: 'CEZ_CODEX_BIN',
|
|
8
8
|
script: 'mock-codex-app-server.mjs',
|
|
9
|
-
resumeSessionId: 'th_mock_1',
|
|
10
9
|
approvalDecisions: [
|
|
11
10
|
{ pick: 'decline', echo: 'Approval response: {"decision":"decline"}' },
|
|
12
11
|
{ pick: 'cancel', echo: 'Approval response: {"decision":"cancel"}' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock.js","sourceRoot":"","sources":["../../../src/runners/codex/mock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,qBAAqB,EAAE,6BAA6B,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAErJ,yDAAyD;AACzD,MAAM,iBAAiB,GAAG,mKAAmK,CAAC;AAE9L,4FAA4F;AAC5F,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,4BAA4B,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC3G,MAAM,EAAE,eAAe;IACvB,MAAM,EAAE,2BAA2B;IACnC,
|
|
1
|
+
{"version":3,"file":"mock.js","sourceRoot":"","sources":["../../../src/runners/codex/mock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,qBAAqB,EAA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,MAAM,EAAE,iBAAiB;SAC1B;QACD,GAAG,EAAE;YACH,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,iBAAiB;SAC1B;QACD,qFAAqF;QACrF,EAAE,EAAE;YACF,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,2MAA2M;SACpN;KACF;CAC4B,CAAC"}
|
package/dist/runners/omp/mock.js
CHANGED
|
@@ -4,7 +4,6 @@ export const OMP_MOCK = {
|
|
|
4
4
|
askResumeCases: [{ kind: 'cezar_ask', scenario: 'ask-resume', answer: 'Library: Vitest' }],
|
|
5
5
|
binEnv: 'CEZ_OMP_BIN',
|
|
6
6
|
script: 'mock-omp-rpc.mjs',
|
|
7
|
-
implicitAutoResume: true,
|
|
8
7
|
// scripts/mock-omp-rpc.mjs: CEZ_MOCK_OMP_RESUME_MOVED reports the session moved to a new id.
|
|
9
8
|
missingSession: { session: 'empty-file', env: { CEZ_MOCK_OMP_RESUME_MOVED: '1' } },
|
|
10
9
|
// scripts/mock-omp-rpc.mjs reads these at start: a closed input pipe, and an implicit autoResume.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock.js","sourceRoot":"","sources":["../../../src/runners/omp/mock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,oBAAoB,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAErK,0FAA0F;AAC1F,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC1F,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,kBAAkB;IAC1B,
|
|
1
|
+
{"version":3,"file":"mock.js","sourceRoot":"","sources":["../../../src/runners/omp/mock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,oBAAoB,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,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ACH,IAAI,EAAE,0BAA0B;YAChC,MAAM,EAAE,gKAAgK;SACzK;QACD,GAAG,EAAE;YACH,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,2IAA2I;SACpJ;KACF;CAC4B,CAAC"}
|
|
@@ -19,8 +19,7 @@ export const OPENCODE_FACTS = {
|
|
|
19
19
|
systemPromptOnResume: 'in-thread',
|
|
20
20
|
nativeAsk: 'answerable', nativeSubagents: 'turn-held', nativeTimerTool: null, costReport: 'per-turn', sessionIdSource: 'native',
|
|
21
21
|
claudeModelAliases: false,
|
|
22
|
-
// A human prompt_async POST goes out after the ready promise,
|
|
23
|
-
|
|
24
|
-
turnStart: 'on-dispatch',
|
|
22
|
+
// A human prompt_async POST goes out after the ready promise, so after sendMessage returns.
|
|
23
|
+
turnStart: 'on-wire',
|
|
25
24
|
};
|
|
26
25
|
//# sourceMappingURL=facts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"facts.js","sourceRoot":"","sources":["../../../src/runners/opencode/facts.ts"],"names":[],"mappings":"AAEA;oEACoE;AACpE,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,mBAAmB,EAAE,eAAe;IACpC,mBAAmB,EAAE,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,mBAAmB,EAAE,UAAU;IACtF,kGAAkG;IAClG,iGAAiG;IACjG,gGAAgG;IAChG,6FAA6F;IAC7F,+BAA+B;IAC/B,kGAAkG;IAClG,8FAA8F;IAC9F,sFAAsF;IACtF,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,gBAAgB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,iBAAiB;IAC9H,aAAa,EAAE;QACb,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,mBAAmB,EAAE,aAAa;QACzG,GAAG,EAAE,4EAA4E;KAClF;IACD,oBAAoB,EAAE,WAAW;IACjC,SAAS,EAAE,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,eAAe,EAAE,QAAQ;IAC/H,kBAAkB,EAAE,KAAK;IACzB,
|
|
1
|
+
{"version":3,"file":"facts.js","sourceRoot":"","sources":["../../../src/runners/opencode/facts.ts"],"names":[],"mappings":"AAEA;oEACoE;AACpE,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,mBAAmB,EAAE,eAAe;IACpC,mBAAmB,EAAE,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,mBAAmB,EAAE,UAAU;IACtF,kGAAkG;IAClG,iGAAiG;IACjG,gGAAgG;IAChG,6FAA6F;IAC7F,+BAA+B;IAC/B,kGAAkG;IAClG,8FAA8F;IAC9F,sFAAsF;IACtF,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,gBAAgB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,iBAAiB;IAC9H,aAAa,EAAE;QACb,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,mBAAmB,EAAE,aAAa;QACzG,GAAG,EAAE,4EAA4E;KAClF;IACD,oBAAoB,EAAE,WAAW;IACjC,SAAS,EAAE,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,eAAe,EAAE,QAAQ;IAC/H,kBAAkB,EAAE,KAAK;IACzB,4FAA4F;IAC5F,SAAS,EAAE,SAAS;CACU,CAAC"}
|
|
@@ -64,7 +64,7 @@ export declare class OpencodeServerRunner implements AgentRunner {
|
|
|
64
64
|
readonly costReport: 'per-turn';
|
|
65
65
|
readonly sessionIdSource: 'native';
|
|
66
66
|
readonly claudeModelAliases: false;
|
|
67
|
-
readonly turnStart: 'on-
|
|
67
|
+
readonly turnStart: 'on-wire';
|
|
68
68
|
};
|
|
69
69
|
readonly inputDelivery: InputDelivery;
|
|
70
70
|
private readonly bin;
|
package/dist/runners/pi/mock.js
CHANGED
|
@@ -4,7 +4,6 @@ export const PI_MOCK = {
|
|
|
4
4
|
askResumeCases: [{ kind: 'cezar_ask', scenario: 'ask-resume', answer: 'Library: Vitest' }],
|
|
5
5
|
binEnv: 'CEZ_PI_BIN',
|
|
6
6
|
script: 'mock-pi-rpc.mjs',
|
|
7
|
-
defaultToolsBypassAllowlist: true,
|
|
8
7
|
// scripts/mock-pi-rpc.mjs: an empty session file holds no session, so the resume opens a fresh one.
|
|
9
8
|
missingSession: { session: 'empty-file' },
|
|
10
9
|
scenarios: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock.js","sourceRoot":"","sources":["../../../src/runners/pi/mock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,6BAA6B,EAAE,wBAAwB,EAAmB,MAAM,8BAA8B,CAAC;AAE/I,yFAAyF;AACzF,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC1F,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,iBAAiB;IACzB,
|
|
1
|
+
{"version":3,"file":"mock.js","sourceRoot":"","sources":["../../../src/runners/pi/mock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,6BAA6B,EAAE,wBAAwB,EAAmB,MAAM,8BAA8B,CAAC;AAE/I,yFAAyF;AACzF,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC1F,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,iBAAiB;IACzB,oGAAoG;IACpG,cAAc,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE;IACzC,SAAS,EAAE;QACT,GAAG,qBAAqB;QACxB,GAAG,wBAAwB;QAC3B,GAAG,6BAA6B;QAChC,sBAAsB,EAAE,2BAA2B;QACnD,kEAAkE;KACnE;IACD,iEAAiE;IACjE,gBAAgB,EAAE;QAChB,EAAE,EAAE;YACF,IAAI,EAAE,0BAA0B;YAChC,MAAM,EAAE,wKAAwK;SACjL;QACD,+FAA+F;QAC/F,uDAAuD;QACvD,EAAE,EAAE;YACF,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,oHAAoH;SAC7H;QACD,EAAE,EAAE;YACF,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,gKAAgK;SACzK;QACD,qFAAqF;QACrF,EAAE,EAAE;YACF,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,wHAAwH;SACjI;QACD,qFAAqF;QACrF,EAAE,EAAE;YACF,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,oHAAoH;SAC7H;QACD,kEAAkE;QAClE,GAAG,EAAE;YACH,IAAI,EAAE,0BAA0B;YAChC,MAAM,EAAE,uLAAuL;SAChM;QACD,GAAG,EAAE;YACH,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,oIAAoI;SAC7I;KACF;CAC4B,CAAC"}
|
|
@@ -58,29 +58,6 @@ 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
|
-
} | {
|
|
84
61
|
output: {
|
|
85
62
|
generatedAt: string;
|
|
86
63
|
projects: {
|
|
@@ -327,6 +304,29 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
|
|
|
327
304
|
project?: string | undefined;
|
|
328
305
|
};
|
|
329
306
|
};
|
|
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,6 +22,18 @@ 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
|
+
};
|
|
25
37
|
} | {
|
|
26
38
|
output: {
|
|
27
39
|
runner: string;
|
|
@@ -43,18 +55,6 @@ export declare function createModelsRoutes(options: {
|
|
|
43
55
|
profileId?: string | undefined;
|
|
44
56
|
};
|
|
45
57
|
};
|
|
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,18 +70,10 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
|
|
|
70
70
|
};
|
|
71
71
|
} | {
|
|
72
72
|
output: {
|
|
73
|
-
|
|
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
|
-
}[];
|
|
73
|
+
error: string;
|
|
82
74
|
};
|
|
83
75
|
outputFormat: "json";
|
|
84
|
-
status:
|
|
76
|
+
status: 500;
|
|
85
77
|
input: {
|
|
86
78
|
param: {
|
|
87
79
|
provider: string;
|
|
@@ -93,10 +85,18 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
|
|
|
93
85
|
};
|
|
94
86
|
} | {
|
|
95
87
|
output: {
|
|
96
|
-
|
|
88
|
+
providers: {
|
|
89
|
+
requiresAccountHome?: boolean | undefined;
|
|
90
|
+
provider: string;
|
|
91
|
+
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
92
|
+
enabled?: boolean | undefined;
|
|
93
|
+
hint?: string | undefined;
|
|
94
|
+
authFailureId?: string | undefined;
|
|
95
|
+
profileId?: string | undefined;
|
|
96
|
+
}[];
|
|
97
97
|
};
|
|
98
98
|
outputFormat: "json";
|
|
99
|
-
status:
|
|
99
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
100
100
|
input: {
|
|
101
101
|
param: {
|
|
102
102
|
provider: string;
|
|
@@ -128,18 +128,10 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
|
|
|
128
128
|
};
|
|
129
129
|
} | {
|
|
130
130
|
output: {
|
|
131
|
-
|
|
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
|
-
}[];
|
|
131
|
+
error: string;
|
|
140
132
|
};
|
|
141
133
|
outputFormat: "json";
|
|
142
|
-
status:
|
|
134
|
+
status: 409;
|
|
143
135
|
input: {
|
|
144
136
|
param: {
|
|
145
137
|
provider: string;
|
|
@@ -151,10 +143,18 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
|
|
|
151
143
|
};
|
|
152
144
|
} | {
|
|
153
145
|
output: {
|
|
154
|
-
|
|
146
|
+
providers: {
|
|
147
|
+
requiresAccountHome?: boolean | undefined;
|
|
148
|
+
provider: string;
|
|
149
|
+
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
150
|
+
enabled?: boolean | undefined;
|
|
151
|
+
hint?: string | undefined;
|
|
152
|
+
authFailureId?: string | undefined;
|
|
153
|
+
profileId?: string | undefined;
|
|
154
|
+
}[];
|
|
155
155
|
};
|
|
156
156
|
outputFormat: "json";
|
|
157
|
-
status:
|
|
157
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
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: 400;
|
|
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: 409;
|
|
189
189
|
input: {
|
|
190
190
|
json: {
|
|
191
191
|
provider: string;
|
|
@@ -290,10 +290,28 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
290
290
|
"/workspace/agent-profiles": {
|
|
291
291
|
$post: {
|
|
292
292
|
output: {
|
|
293
|
-
|
|
293
|
+
profile: {
|
|
294
|
+
id: string;
|
|
295
|
+
provider: string;
|
|
296
|
+
label: string;
|
|
297
|
+
configDir?: string | undefined;
|
|
298
|
+
path?: string | undefined;
|
|
299
|
+
exists: boolean;
|
|
300
|
+
looksValid: boolean;
|
|
301
|
+
isDefault: boolean;
|
|
302
|
+
status?: {
|
|
303
|
+
requiresAccountHome?: boolean | undefined;
|
|
304
|
+
provider: string;
|
|
305
|
+
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
306
|
+
enabled?: boolean | undefined;
|
|
307
|
+
hint?: string | undefined;
|
|
308
|
+
authFailureId?: string | undefined;
|
|
309
|
+
profileId?: string | undefined;
|
|
310
|
+
} | undefined;
|
|
311
|
+
};
|
|
294
312
|
};
|
|
295
313
|
outputFormat: "json";
|
|
296
|
-
status:
|
|
314
|
+
status: 201;
|
|
297
315
|
input: {
|
|
298
316
|
json: {
|
|
299
317
|
provider: string;
|
|
@@ -319,7 +337,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
319
337
|
error: string;
|
|
320
338
|
};
|
|
321
339
|
outputFormat: "json";
|
|
322
|
-
status:
|
|
340
|
+
status: 409;
|
|
323
341
|
input: {
|
|
324
342
|
json: {
|
|
325
343
|
provider: string;
|
|
@@ -329,28 +347,10 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
329
347
|
};
|
|
330
348
|
} | {
|
|
331
349
|
output: {
|
|
332
|
-
|
|
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
|
-
};
|
|
350
|
+
error: string;
|
|
351
351
|
};
|
|
352
352
|
outputFormat: "json";
|
|
353
|
-
status:
|
|
353
|
+
status: 500;
|
|
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: 400;
|
|
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: 404;
|
|
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: 409;
|
|
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: 400;
|
|
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: 404;
|
|
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: 404;
|
|
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: 409;
|
|
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: 500;
|
|
647
647
|
input: {
|
|
648
648
|
param: {
|
|
649
649
|
id: string;
|