@hearsay-tools/squawk 0.18.0-dev.7909 → 0.18.0-dev.7915
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/tools.d.ts +4 -4
- package/dist/contract/index.js +4 -1
- package/dist/contract/workflow-requests.d.ts +1 -0
- package/dist/core/provider-auth.d.ts +3 -1
- package/dist/core/provider-auth.js +18 -5
- package/dist/core/provider-auth.js.map +1 -1
- package/dist/headless-run.js +5 -1
- package/dist/headless-run.js.map +1 -1
- package/dist/planner.d.ts +1 -1
- package/dist/planner.js +3 -2
- package/dist/planner.js.map +1 -1
- package/dist/server/open-in-targets.d.ts +2 -1
- package/dist/server/open-in-targets.js +5 -3
- package/dist/server/open-in-targets.js.map +1 -1
- package/dist/server/probe-writable-dir.d.ts +5 -0
- package/dist/server/probe-writable-dir.js +25 -0
- package/dist/server/probe-writable-dir.js.map +1 -0
- package/dist/server/provider-action-gate.d.ts +9 -1
- package/dist/server/provider-action-gate.js +15 -4
- package/dist/server/provider-action-gate.js.map +1 -1
- package/dist/server/run-accounts.d.ts +46 -0
- package/dist/server/run-accounts.js +74 -0
- package/dist/server/run-accounts.js.map +1 -0
- package/dist/server/server-deps.d.ts +4 -2
- package/dist/server/server-deps.js +18 -6
- package/dist/server/server-deps.js.map +1 -1
- package/dist/server/server.d.ts +222 -218
- package/dist/server/server.js +17 -34
- package/dist/server/server.js.map +1 -1
- package/dist/server/start-run-options.d.ts +3 -2
- package/dist/server/start-run-options.js +2 -2
- package/dist/server/start-run-options.js.map +1 -1
- package/package.json +4 -4
- package/web/dist/assets/{accounts-section-C7qacMAX.js → accounts-section-BvrCdhB1.js} +1 -1
- package/web/dist/assets/activity-motion-CyQUo8rH.js +2 -0
- package/web/dist/assets/{activity-route-DkSc-BB_.js → activity-route-BZPRmiNI.js} +1 -1
- package/web/dist/assets/{agent-config-section-DBqtxqrI.js → agent-config-section-DEeDIcK_.js} +1 -1
- package/web/dist/assets/{agent-defaults-section-AHmatJKy.js → agent-defaults-section-RYnao4vB.js} +1 -1
- package/web/dist/assets/{appearance-Uyrw7pjm.js → appearance-obeD0TrH.js} +1 -1
- package/web/dist/assets/{archive-on-merge-field-w_cfxV6m.js → archive-on-merge-field-DP12N-QW.js} +1 -1
- package/web/dist/assets/attention-CSFsCoi5.js +1 -0
- package/web/dist/assets/automations-route-bJYe7JKX.js +1 -0
- package/web/dist/assets/{commit-diff-panel-Ba-6F5So.js → commit-diff-panel-yCI8kY--.js} +1 -1
- package/web/dist/assets/{diff-D3RVmX07.js → diff-B9wl20YA.js} +2 -2
- package/web/dist/assets/{diff-view-CYIMlq04.js → diff-view-C-HieogW.js} +1 -1
- package/web/dist/assets/{file-preview-jj3RWAaW.js → file-preview-BzialgZg.js} +1 -1
- package/web/dist/assets/{folder-browser-CH0gdxd-.js → folder-browser-B8_lzQT7.js} +1 -1
- package/web/dist/assets/{git-toolbar-BOaq9GcR.js → git-toolbar-lvqVHT9o.js} +1 -1
- package/web/dist/assets/{github-wkggyCqa.js → github-CQhVzG31.js} +1 -1
- package/web/dist/assets/{global-activity-route-BTrelHAD.js → global-activity-route-Cnk7K6kB.js} +1 -1
- package/web/dist/assets/index-D0DvUgTj.js +21 -0
- package/web/dist/assets/{label-D6DhdNb7.js → label-CYqEyapm.js} +1 -1
- package/web/dist/assets/{markdown-i80v6qNq.js → markdown-BLWEExIH.js} +1 -1
- package/web/dist/assets/{notifications-section-GGsdkedq.js → notifications-section-Ci4iCnOt.js} +1 -1
- package/web/dist/assets/{open-in-menu-DgScIVvr.js → open-in-menu-JhT-c8K6.js} +1 -1
- package/web/dist/assets/preview-pane-connected-COUwLzj1.js +3 -0
- package/web/dist/assets/{project-location-4UN0Eqf-.js → project-location-BMreyTgv.js} +1 -1
- package/web/dist/assets/{project-router-UyyzK1j2.js → project-router-DG3CwEiO.js} +1 -1
- package/web/dist/assets/project-scope-context-BairiAvs.js +4 -0
- package/web/dist/assets/{projects-section-DjeKfkRK.js → projects-section-I4Umh57f.js} +1 -1
- package/web/dist/assets/{prompt-templates-section-CPH3RU9O.js → prompt-templates-section-Byinr-jH.js} +1 -1
- package/web/dist/assets/queries-bg9YtgmX.js +1 -0
- package/web/dist/assets/{reference-chip-DGOmeh0l.js → reference-chip-Bphmq8DU.js} +1 -1
- package/web/dist/assets/{remote-settings-notice-BFDdo8X5.js → remote-settings-notice-CcYe1mbK.js} +1 -1
- package/web/dist/assets/{repo-git-PaJ9uJ6o.js → repo-git-tmqJIA3Y.js} +1 -1
- package/web/dist/assets/{report-reader-DDDg-Iyz.js → report-reader-GE7zBDlE.js} +1 -1
- package/web/dist/assets/{reports-DRSGsu5b.js → reports-Dzd6o31r.js} +1 -1
- package/web/dist/assets/{resources-section-Dwx13rfP.js → resources-section-D6yjk2_7.js} +1 -1
- package/web/dist/assets/run-header-Cc5Flvc9.js +2 -0
- package/web/dist/assets/{runners-BFhbiSKy.js → runners-GyEIYtzT.js} +1 -1
- package/web/dist/assets/settings-agent-picker-gDWJBt2q.js +1 -0
- package/web/dist/assets/{settings-shell-De1IxHYf.js → settings-shell-1kV0mCGg.js} +1 -1
- package/web/dist/assets/{sidebar-section-CYKz48EO.js → sidebar-section-bytwajV6.js} +1 -1
- package/web/dist/assets/skills-oC915Joa.js +1 -0
- package/web/dist/assets/{tab-link-BmEGnV4R.js → tab-link-BrrGCBYJ.js} +1 -1
- package/web/dist/assets/{task-changes-CvbqO0ug.js → task-changes-CgEF750z.js} +1 -1
- package/web/dist/assets/{task-commits-kVuYqkqB.js → task-commits-CmewNVBz.js} +1 -1
- package/web/dist/assets/{task-files-DOFkMbFg.js → task-files-x0fUUNIG.js} +1 -1
- package/web/dist/assets/{task-github-item-13sbVXYb.js → task-github-item-DuwLqcE4.js} +1 -1
- package/web/dist/assets/{task-groups-Dc7pXgaS.js → task-groups-Ccol3P2t.js} +1 -1
- package/web/dist/assets/task-thread-DkgKDQSG.js +9 -0
- package/web/dist/assets/{tasks-table-lb5Dy-8O.js → tasks-table-CbfBNxAB.js} +1 -1
- package/web/dist/assets/{thread-state-BwzJmXzv.js → thread-state-Nzl4pHXB.js} +1 -1
- package/web/dist/assets/use-hand-to-agent-state-BMWlCZBX.js +1 -0
- package/web/dist/assets/{useInfiniteQuery-rgb-nitU.js → useInfiniteQuery-C8q14xTE.js} +1 -1
- package/web/dist/assets/useQuery-Berjv5Ts.js +1 -0
- package/web/dist/assets/{workflows-35bEvVkH.js → workflows-BV5oZdB_.js} +3 -3
- package/web/dist/assets/{workspace-tools-Bw4MyHOW.js → workspace-tools-NWKvRhWg.js} +1 -1
- package/web/dist/assets/{worktrees-section-CLwPLrl2.js → worktrees-section--MUxuXUq.js} +4 -4
- package/web/dist/assets/{ws-D3-jE1IB.js → ws-BYbBRDfC.js} +1 -1
- package/web/dist/index.html +15 -15
- package/web/dist/assets/activity-motion-CkAbct6K.js +0 -2
- package/web/dist/assets/attention-BMiaqJnx.js +0 -1
- package/web/dist/assets/automations-route-BBzRefYM.js +0 -1
- package/web/dist/assets/index-CRfojAQ1.js +0 -21
- package/web/dist/assets/preview-pane-connected-B3mexb-I.js +0 -3
- package/web/dist/assets/project-scope-context-BRvkKGX1.js +0 -4
- package/web/dist/assets/queries-CQWAcH8p.js +0 -1
- package/web/dist/assets/run-header-q5egOxrK.js +0 -2
- package/web/dist/assets/settings-agent-picker-YO8UtetZ.js +0 -1
- package/web/dist/assets/skills-hTBIyeAr.js +0 -1
- package/web/dist/assets/task-thread-B0d0xyLV.js +0 -9
- package/web/dist/assets/use-hand-to-agent-state-wRTXiZqE.js +0 -1
- package/web/dist/assets/useQuery-SVV6EtG7.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-accounts.js","sourceRoot":"","sources":["../../src/server/run-accounts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OA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BAAwB,CAAC;IACrE,MAAM,OAAO,GAAG,OAAO,CAAC,SAAS,KAAK,SAAS,IAAI,eAAe,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,MAAM;WACzF,CAAC,GAAG,CAAC,YAAY,IAAI,cAAc,CAAC,KAAK,cAAc,CAAC;IAC7D,IAAI,OAAO;QAAE,OAAO,cAAc,CAAC;IACnC,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;AAC5D,CAAC;AAED;kFACkF;AAClF,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,YAAgF,EAChF,QAAuD,EACvD,OAAO,GAAG,KAAK;IAEf,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,EAAE,EAAE;QAC7E,IAAI,OAAO;YAAE,YAAY,CAAC,mBAAmB,CAAC,QAAQ,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,aAAa,CAAC,QAAQ,EAAE,EAAE,EAAE,EAAE,OAAO,CAAC,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;QACvG,OAAO,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAU,CAAC;IAC9E,CAAC,CAAC,CAAC,CAAC;IACJ,OAAO,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC;AACvB,CAAC"}
|
|
@@ -2,6 +2,8 @@ import { type ProviderId } from '../core/provider-auth.ts';
|
|
|
2
2
|
import type { ProviderStatusResponse } from '../contract/index.js';
|
|
3
3
|
import type { TaskWebhooks } from '../runs/webhook.ts';
|
|
4
4
|
import type { ProjectContext, ProjectContexts } from './project-context.ts';
|
|
5
|
+
import { type AccountScope } from './run-accounts.ts';
|
|
6
|
+
import type { Home } from '../home/home.ts';
|
|
5
7
|
import type { ProviderRuntimeAuthObserver } from './provider-auth-runtime.ts';
|
|
6
8
|
import type { ServerDeps, WorkspaceEventBus } from './server.ts';
|
|
7
9
|
/** The host-wide services `createApp` always has: the injected one, or the real default. */
|
|
@@ -16,11 +18,11 @@ type HostServices = {
|
|
|
16
18
|
*/
|
|
17
19
|
export declare function resolveServerDeps(deps: Pick<ServerDeps, HostServiceKey> & Pick<ServerDeps, 'home'>, bootRoot: string): HostServices;
|
|
18
20
|
/** The host-wide provider closures the provider, models and start-gate routes share. */
|
|
19
|
-
export declare function createProviderStatus(services: Pick<HostServices, 'modelCatalog' | 'providerAuth' | 'workspaceConfig'
|
|
21
|
+
export declare function createProviderStatus(services: Pick<HostServices, 'modelCatalog' | 'providerAuth' | 'workspaceConfig'>, home: Home): {
|
|
20
22
|
providerStatus: (options?: {
|
|
21
23
|
refresh?: boolean;
|
|
22
24
|
}) => Promise<ProviderStatusResponse>;
|
|
23
|
-
providerActionError: (required: readonly ProviderId[]) => Promise<string | null>;
|
|
25
|
+
providerActionError: (required: readonly ProviderId[], scope?: AccountScope) => Promise<string | null>;
|
|
24
26
|
invalidateHostModels: (provider: ProviderId) => void;
|
|
25
27
|
};
|
|
26
28
|
export declare function emitProviderRow(workspaceEvents: WorkspaceEventBus, providers: ProviderStatusResponse['providers'], id: ProviderId): void;
|
|
@@ -18,6 +18,7 @@ import { loadWorkspaceConfig, mergeWriteWorkspaceConfig } from '../workspace/con
|
|
|
18
18
|
import { openFileInDefaultApp, openInApp } from './open-in-app.js';
|
|
19
19
|
import { openInTerminal } from './open-in-terminal.js';
|
|
20
20
|
import { unavailableProviderMessage } from './provider-action-gate.js';
|
|
21
|
+
import { probeNamedAccounts, scopeRunAccounts } from './run-accounts.js';
|
|
21
22
|
/**
|
|
22
23
|
* Resolve each host-wide service to the injected dependency or its real default. A default is
|
|
23
24
|
* built only when its dependency is absent (`??` short-circuits), in the order below, so a test
|
|
@@ -42,7 +43,7 @@ export function resolveServerDeps(deps, bootRoot) {
|
|
|
42
43
|
};
|
|
43
44
|
}
|
|
44
45
|
/** The host-wide provider closures the provider, models and start-gate routes share. */
|
|
45
|
-
export function createProviderStatus(services) {
|
|
46
|
+
export function createProviderStatus(services, home) {
|
|
46
47
|
const { modelCatalog, providerAuth, workspaceConfig } = services;
|
|
47
48
|
const invalidateHostModels = (provider) => {
|
|
48
49
|
modelCatalog.invalidate(provider);
|
|
@@ -60,11 +61,22 @@ export function createProviderStatus(services) {
|
|
|
60
61
|
/**
|
|
61
62
|
* Verify cached provider unavailability before refusing a start. Settings-disabled providers
|
|
62
63
|
* need no probe. Runtime incidents remain authoritative until an explicit retry or matching
|
|
63
|
-
* native verification clears them.
|
|
64
|
+
* native verification clears them. `scope` says which account each provider runs on; a named
|
|
65
|
+
* account's own sign-in state replaces the default account's row (hearsay-tools/squawk#4116).
|
|
64
66
|
*/
|
|
65
|
-
const providerActionError = async (required) => {
|
|
66
|
-
|
|
67
|
-
const
|
|
67
|
+
const providerActionError = async (required, scope) => {
|
|
68
|
+
// With auth checks off every provider row reads connected; a named account must not re-add a probe.
|
|
69
|
+
const named = providerAuthChecksDisabled() || scope === undefined
|
|
70
|
+
? new Map()
|
|
71
|
+
: await scopeRunAccounts(home, required, scope);
|
|
72
|
+
const check = async (refresh) => {
|
|
73
|
+
const [known, statuses] = await Promise.all([
|
|
74
|
+
providerStatus(refresh ? { refresh: true } : undefined),
|
|
75
|
+
probeNamedAccounts(providerAuth, named, refresh),
|
|
76
|
+
]);
|
|
77
|
+
return { known, message: unavailableProviderMessage(required, known, statuses) };
|
|
78
|
+
};
|
|
79
|
+
const { known, message } = await check(false);
|
|
68
80
|
if (message === null)
|
|
69
81
|
return null;
|
|
70
82
|
// A DISABLED provider is a settings fact, not a probe result — re-probing it learns nothing and
|
|
@@ -72,7 +84,7 @@ export function createProviderStatus(services) {
|
|
|
72
84
|
const disabled = required.some((provider) => known.providers.find((row) => row.provider === provider)?.enabled === false);
|
|
73
85
|
if (disabled)
|
|
74
86
|
return message;
|
|
75
|
-
return
|
|
87
|
+
return (await check(true)).message;
|
|
76
88
|
};
|
|
77
89
|
return { providerStatus, providerActionError, invalidateHostModels };
|
|
78
90
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-deps.js","sourceRoot":"","sources":["../../src/server/server-deps.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EACL,mBAAmB,EACnB,0BAA0B,GAE3B,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,OAAO,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"server-deps.js","sourceRoot":"","sources":["../../src/server/server-deps.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,k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C,KAAK,CAAC,CAAC;IAChD,CAAC;IACD,QAAQ,CAAC,cAAc,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,mBAAmB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IACrE,QAAQ,CAAC,cAAc,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,mBAAmB,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;AACzE,CAAC;AAED,mGAAmG;AACnG,MAAM,UAAU,qBAAqB,CACnC,YAA0C,EAC1C,QAAkE;IAElE,KAAK,MAAM,EAAE,IAAI,QAAQ,CAAC,GAAG,EAAE,EAAE,CAAC;QAChC,MAAM,GAAG,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAC9B,IAAI,GAAG;YAAE,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACpC,CAAC;IACD,QAAQ,CAAC,cAAc,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;AAC7D,CAAC;AAED,SAAS,eAAe,CAAC,QAA4B;IACnD,IAAI,CAAC,QAAQ,IAAI,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,IAAI;QAAE,OAAO,WAAW,CAAC;IACjF,OAAO,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,QAAQ,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC;AAC7D,CAAC;AAED,kKAAkK;AAClK,MAAM,UAAU,gBAAgB,CAAC,QAA4B,EAAE,IAAY;IACzE,OAAO,UAAU,eAAe,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;AACvD,CAAC"}
|
package/dist/server/server.d.ts
CHANGED
|
@@ -3077,6 +3077,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3077
3077
|
output: {
|
|
3078
3078
|
generation: string;
|
|
3079
3079
|
results: ({
|
|
3080
|
+
projectId: string;
|
|
3081
|
+
runId: string;
|
|
3082
|
+
type: "error" | "reset";
|
|
3083
|
+
status: 400 | 404 | 409 | 413 | 503;
|
|
3084
|
+
error: string;
|
|
3085
|
+
} | {
|
|
3080
3086
|
projectId: string;
|
|
3081
3087
|
runId: string;
|
|
3082
3088
|
type: "batch";
|
|
@@ -3090,12 +3096,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3090
3096
|
cursor: string;
|
|
3091
3097
|
afterSeq: number;
|
|
3092
3098
|
hasMore: boolean;
|
|
3093
|
-
} | {
|
|
3094
|
-
projectId: string;
|
|
3095
|
-
runId: string;
|
|
3096
|
-
type: "error" | "reset";
|
|
3097
|
-
status: 400 | 404 | 409 | 413 | 503;
|
|
3098
|
-
error: string;
|
|
3099
3099
|
})[];
|
|
3100
3100
|
};
|
|
3101
3101
|
outputFormat: "json";
|
|
@@ -3367,10 +3367,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3367
3367
|
error: string;
|
|
3368
3368
|
};
|
|
3369
3369
|
outputFormat: "json";
|
|
3370
|
-
status: 409;
|
|
3370
|
+
status: 400 | 404 | 409;
|
|
3371
3371
|
input: {
|
|
3372
3372
|
json: {
|
|
3373
3373
|
task: string;
|
|
3374
|
+
agentProfile?: string | undefined;
|
|
3374
3375
|
};
|
|
3375
3376
|
};
|
|
3376
3377
|
} | {
|
|
@@ -3402,94 +3403,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3402
3403
|
input: {
|
|
3403
3404
|
json: {
|
|
3404
3405
|
task: string;
|
|
3405
|
-
|
|
3406
|
-
};
|
|
3407
|
-
};
|
|
3408
|
-
};
|
|
3409
|
-
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
3410
|
-
"/reports/state": {
|
|
3411
|
-
$get: {
|
|
3412
|
-
output: {
|
|
3413
|
-
error: string;
|
|
3414
|
-
};
|
|
3415
|
-
outputFormat: "json";
|
|
3416
|
-
status: 409;
|
|
3417
|
-
input: {};
|
|
3418
|
-
} | {
|
|
3419
|
-
output: {
|
|
3420
|
-
epoch: string;
|
|
3421
|
-
generation: number;
|
|
3422
|
-
metadataGeneration: number;
|
|
3423
|
-
};
|
|
3424
|
-
outputFormat: "json";
|
|
3425
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
3426
|
-
input: {};
|
|
3427
|
-
};
|
|
3428
|
-
};
|
|
3429
|
-
} & {
|
|
3430
|
-
"/reports": {
|
|
3431
|
-
$get: {
|
|
3432
|
-
output: {
|
|
3433
|
-
error: string;
|
|
3434
|
-
code?: "invalid_input" | undefined;
|
|
3435
|
-
};
|
|
3436
|
-
outputFormat: "json";
|
|
3437
|
-
status: 400;
|
|
3438
|
-
input: {
|
|
3439
|
-
query: {
|
|
3440
|
-
q?: string | undefined;
|
|
3441
|
-
before?: string | undefined;
|
|
3442
|
-
limit?: number | undefined;
|
|
3443
|
-
};
|
|
3444
|
-
};
|
|
3445
|
-
} | {
|
|
3446
|
-
output: {
|
|
3447
|
-
error: string;
|
|
3448
|
-
};
|
|
3449
|
-
outputFormat: "json";
|
|
3450
|
-
status: 409;
|
|
3451
|
-
input: {
|
|
3452
|
-
query: {
|
|
3453
|
-
q?: string | undefined;
|
|
3454
|
-
before?: string | undefined;
|
|
3455
|
-
limit?: number | undefined;
|
|
3456
|
-
};
|
|
3457
|
-
};
|
|
3458
|
-
} | {
|
|
3459
|
-
output: {
|
|
3460
|
-
error: string;
|
|
3461
|
-
};
|
|
3462
|
-
outputFormat: "json";
|
|
3463
|
-
status: 400;
|
|
3464
|
-
input: {
|
|
3465
|
-
query: {
|
|
3466
|
-
q?: string | undefined;
|
|
3467
|
-
before?: string | undefined;
|
|
3468
|
-
limit?: number | undefined;
|
|
3469
|
-
};
|
|
3470
|
-
};
|
|
3471
|
-
} | {
|
|
3472
|
-
output: {
|
|
3473
|
-
reports: {
|
|
3474
|
-
id: string;
|
|
3475
|
-
runId: string;
|
|
3476
|
-
name: string;
|
|
3477
|
-
title: string;
|
|
3478
|
-
createdAt: string;
|
|
3479
|
-
size: number;
|
|
3480
|
-
taskTitle: string;
|
|
3481
|
-
taskStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
|
|
3482
|
-
}[];
|
|
3483
|
-
nextCursor: string | null;
|
|
3484
|
-
total: number;
|
|
3485
|
-
};
|
|
3486
|
-
outputFormat: "json";
|
|
3487
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
3488
|
-
input: {
|
|
3489
|
-
query: {
|
|
3490
|
-
q?: string | undefined;
|
|
3491
|
-
before?: string | undefined;
|
|
3492
|
-
limit?: number | undefined;
|
|
3406
|
+
agentProfile?: string | undefined;
|
|
3493
3407
|
};
|
|
3494
3408
|
};
|
|
3495
3409
|
};
|
|
@@ -3982,6 +3896,94 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3982
3896
|
};
|
|
3983
3897
|
};
|
|
3984
3898
|
};
|
|
3899
|
+
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
3900
|
+
"/reports/state": {
|
|
3901
|
+
$get: {
|
|
3902
|
+
output: {
|
|
3903
|
+
error: string;
|
|
3904
|
+
};
|
|
3905
|
+
outputFormat: "json";
|
|
3906
|
+
status: 409;
|
|
3907
|
+
input: {};
|
|
3908
|
+
} | {
|
|
3909
|
+
output: {
|
|
3910
|
+
epoch: string;
|
|
3911
|
+
generation: number;
|
|
3912
|
+
metadataGeneration: number;
|
|
3913
|
+
};
|
|
3914
|
+
outputFormat: "json";
|
|
3915
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
3916
|
+
input: {};
|
|
3917
|
+
};
|
|
3918
|
+
};
|
|
3919
|
+
} & {
|
|
3920
|
+
"/reports": {
|
|
3921
|
+
$get: {
|
|
3922
|
+
output: {
|
|
3923
|
+
error: string;
|
|
3924
|
+
code?: "invalid_input" | undefined;
|
|
3925
|
+
};
|
|
3926
|
+
outputFormat: "json";
|
|
3927
|
+
status: 400;
|
|
3928
|
+
input: {
|
|
3929
|
+
query: {
|
|
3930
|
+
q?: string | undefined;
|
|
3931
|
+
before?: string | undefined;
|
|
3932
|
+
limit?: number | undefined;
|
|
3933
|
+
};
|
|
3934
|
+
};
|
|
3935
|
+
} | {
|
|
3936
|
+
output: {
|
|
3937
|
+
error: string;
|
|
3938
|
+
};
|
|
3939
|
+
outputFormat: "json";
|
|
3940
|
+
status: 409;
|
|
3941
|
+
input: {
|
|
3942
|
+
query: {
|
|
3943
|
+
q?: string | undefined;
|
|
3944
|
+
before?: string | undefined;
|
|
3945
|
+
limit?: number | undefined;
|
|
3946
|
+
};
|
|
3947
|
+
};
|
|
3948
|
+
} | {
|
|
3949
|
+
output: {
|
|
3950
|
+
error: string;
|
|
3951
|
+
};
|
|
3952
|
+
outputFormat: "json";
|
|
3953
|
+
status: 400;
|
|
3954
|
+
input: {
|
|
3955
|
+
query: {
|
|
3956
|
+
q?: string | undefined;
|
|
3957
|
+
before?: string | undefined;
|
|
3958
|
+
limit?: number | undefined;
|
|
3959
|
+
};
|
|
3960
|
+
};
|
|
3961
|
+
} | {
|
|
3962
|
+
output: {
|
|
3963
|
+
reports: {
|
|
3964
|
+
id: string;
|
|
3965
|
+
runId: string;
|
|
3966
|
+
name: string;
|
|
3967
|
+
title: string;
|
|
3968
|
+
createdAt: string;
|
|
3969
|
+
size: number;
|
|
3970
|
+
taskTitle: string;
|
|
3971
|
+
taskStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
|
|
3972
|
+
}[];
|
|
3973
|
+
nextCursor: string | null;
|
|
3974
|
+
total: number;
|
|
3975
|
+
};
|
|
3976
|
+
outputFormat: "json";
|
|
3977
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
3978
|
+
input: {
|
|
3979
|
+
query: {
|
|
3980
|
+
q?: string | undefined;
|
|
3981
|
+
before?: string | undefined;
|
|
3982
|
+
limit?: number | undefined;
|
|
3983
|
+
};
|
|
3984
|
+
};
|
|
3985
|
+
};
|
|
3986
|
+
};
|
|
3985
3987
|
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
3986
3988
|
"/worktrees": {
|
|
3987
3989
|
$get: {
|
|
@@ -8457,22 +8459,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8457
8459
|
"/runs/:id/worker-destroy": {
|
|
8458
8460
|
$post: {
|
|
8459
8461
|
output: {
|
|
8460
|
-
|
|
8461
|
-
|
|
8462
|
-
readonly modelChoices?: {
|
|
8463
|
-
runner: string;
|
|
8464
|
-
requestedModel: string;
|
|
8465
|
-
availableModels: {
|
|
8466
|
-
id: string;
|
|
8467
|
-
label: string;
|
|
8468
|
-
description: string;
|
|
8469
|
-
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
8470
|
-
}[];
|
|
8471
|
-
otherRunners: string[];
|
|
8472
|
-
} | undefined;
|
|
8462
|
+
error: string;
|
|
8463
|
+
code?: "invalid_input" | undefined;
|
|
8473
8464
|
};
|
|
8474
8465
|
outputFormat: "json";
|
|
8475
|
-
status: 400
|
|
8466
|
+
status: 400;
|
|
8476
8467
|
input: {
|
|
8477
8468
|
query: {
|
|
8478
8469
|
[x: string]: string | string[];
|
|
@@ -8488,11 +8479,22 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8488
8479
|
};
|
|
8489
8480
|
} | {
|
|
8490
8481
|
output: {
|
|
8491
|
-
|
|
8492
|
-
|
|
8482
|
+
readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
|
|
8483
|
+
readonly error: string;
|
|
8484
|
+
readonly modelChoices?: {
|
|
8485
|
+
runner: string;
|
|
8486
|
+
requestedModel: string;
|
|
8487
|
+
availableModels: {
|
|
8488
|
+
id: string;
|
|
8489
|
+
label: string;
|
|
8490
|
+
description: string;
|
|
8491
|
+
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
8492
|
+
}[];
|
|
8493
|
+
otherRunners: string[];
|
|
8494
|
+
} | undefined;
|
|
8493
8495
|
};
|
|
8494
8496
|
outputFormat: "json";
|
|
8495
|
-
status: 400;
|
|
8497
|
+
status: 400 | 401 | 403 | 409 | 503;
|
|
8496
8498
|
input: {
|
|
8497
8499
|
query: {
|
|
8498
8500
|
[x: string]: string | string[];
|
|
@@ -19326,10 +19328,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
19326
19328
|
error: string;
|
|
19327
19329
|
};
|
|
19328
19330
|
outputFormat: "json";
|
|
19329
|
-
status: 409;
|
|
19331
|
+
status: 400 | 404 | 409;
|
|
19330
19332
|
input: {
|
|
19331
19333
|
json: {
|
|
19332
19334
|
task: string;
|
|
19335
|
+
agentProfile?: string | undefined;
|
|
19333
19336
|
};
|
|
19334
19337
|
};
|
|
19335
19338
|
} | {
|
|
@@ -19361,94 +19364,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
19361
19364
|
input: {
|
|
19362
19365
|
json: {
|
|
19363
19366
|
task: string;
|
|
19364
|
-
|
|
19365
|
-
};
|
|
19366
|
-
};
|
|
19367
|
-
};
|
|
19368
|
-
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
19369
|
-
"/reports/state": {
|
|
19370
|
-
$get: {
|
|
19371
|
-
output: {
|
|
19372
|
-
error: string;
|
|
19373
|
-
};
|
|
19374
|
-
outputFormat: "json";
|
|
19375
|
-
status: 409;
|
|
19376
|
-
input: {};
|
|
19377
|
-
} | {
|
|
19378
|
-
output: {
|
|
19379
|
-
epoch: string;
|
|
19380
|
-
generation: number;
|
|
19381
|
-
metadataGeneration: number;
|
|
19382
|
-
};
|
|
19383
|
-
outputFormat: "json";
|
|
19384
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
19385
|
-
input: {};
|
|
19386
|
-
};
|
|
19387
|
-
};
|
|
19388
|
-
} & {
|
|
19389
|
-
"/reports": {
|
|
19390
|
-
$get: {
|
|
19391
|
-
output: {
|
|
19392
|
-
error: string;
|
|
19393
|
-
code?: "invalid_input" | undefined;
|
|
19394
|
-
};
|
|
19395
|
-
outputFormat: "json";
|
|
19396
|
-
status: 400;
|
|
19397
|
-
input: {
|
|
19398
|
-
query: {
|
|
19399
|
-
q?: string | undefined;
|
|
19400
|
-
before?: string | undefined;
|
|
19401
|
-
limit?: number | undefined;
|
|
19402
|
-
};
|
|
19403
|
-
};
|
|
19404
|
-
} | {
|
|
19405
|
-
output: {
|
|
19406
|
-
error: string;
|
|
19407
|
-
};
|
|
19408
|
-
outputFormat: "json";
|
|
19409
|
-
status: 409;
|
|
19410
|
-
input: {
|
|
19411
|
-
query: {
|
|
19412
|
-
q?: string | undefined;
|
|
19413
|
-
before?: string | undefined;
|
|
19414
|
-
limit?: number | undefined;
|
|
19415
|
-
};
|
|
19416
|
-
};
|
|
19417
|
-
} | {
|
|
19418
|
-
output: {
|
|
19419
|
-
error: string;
|
|
19420
|
-
};
|
|
19421
|
-
outputFormat: "json";
|
|
19422
|
-
status: 400;
|
|
19423
|
-
input: {
|
|
19424
|
-
query: {
|
|
19425
|
-
q?: string | undefined;
|
|
19426
|
-
before?: string | undefined;
|
|
19427
|
-
limit?: number | undefined;
|
|
19428
|
-
};
|
|
19429
|
-
};
|
|
19430
|
-
} | {
|
|
19431
|
-
output: {
|
|
19432
|
-
reports: {
|
|
19433
|
-
id: string;
|
|
19434
|
-
runId: string;
|
|
19435
|
-
name: string;
|
|
19436
|
-
title: string;
|
|
19437
|
-
createdAt: string;
|
|
19438
|
-
size: number;
|
|
19439
|
-
taskTitle: string;
|
|
19440
|
-
taskStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
|
|
19441
|
-
}[];
|
|
19442
|
-
nextCursor: string | null;
|
|
19443
|
-
total: number;
|
|
19444
|
-
};
|
|
19445
|
-
outputFormat: "json";
|
|
19446
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
19447
|
-
input: {
|
|
19448
|
-
query: {
|
|
19449
|
-
q?: string | undefined;
|
|
19450
|
-
before?: string | undefined;
|
|
19451
|
-
limit?: number | undefined;
|
|
19367
|
+
agentProfile?: string | undefined;
|
|
19452
19368
|
};
|
|
19453
19369
|
};
|
|
19454
19370
|
};
|
|
@@ -19941,6 +19857,94 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
19941
19857
|
};
|
|
19942
19858
|
};
|
|
19943
19859
|
};
|
|
19860
|
+
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
19861
|
+
"/reports/state": {
|
|
19862
|
+
$get: {
|
|
19863
|
+
output: {
|
|
19864
|
+
error: string;
|
|
19865
|
+
};
|
|
19866
|
+
outputFormat: "json";
|
|
19867
|
+
status: 409;
|
|
19868
|
+
input: {};
|
|
19869
|
+
} | {
|
|
19870
|
+
output: {
|
|
19871
|
+
epoch: string;
|
|
19872
|
+
generation: number;
|
|
19873
|
+
metadataGeneration: number;
|
|
19874
|
+
};
|
|
19875
|
+
outputFormat: "json";
|
|
19876
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
19877
|
+
input: {};
|
|
19878
|
+
};
|
|
19879
|
+
};
|
|
19880
|
+
} & {
|
|
19881
|
+
"/reports": {
|
|
19882
|
+
$get: {
|
|
19883
|
+
output: {
|
|
19884
|
+
error: string;
|
|
19885
|
+
code?: "invalid_input" | undefined;
|
|
19886
|
+
};
|
|
19887
|
+
outputFormat: "json";
|
|
19888
|
+
status: 400;
|
|
19889
|
+
input: {
|
|
19890
|
+
query: {
|
|
19891
|
+
q?: string | undefined;
|
|
19892
|
+
before?: string | undefined;
|
|
19893
|
+
limit?: number | undefined;
|
|
19894
|
+
};
|
|
19895
|
+
};
|
|
19896
|
+
} | {
|
|
19897
|
+
output: {
|
|
19898
|
+
error: string;
|
|
19899
|
+
};
|
|
19900
|
+
outputFormat: "json";
|
|
19901
|
+
status: 409;
|
|
19902
|
+
input: {
|
|
19903
|
+
query: {
|
|
19904
|
+
q?: string | undefined;
|
|
19905
|
+
before?: string | undefined;
|
|
19906
|
+
limit?: number | undefined;
|
|
19907
|
+
};
|
|
19908
|
+
};
|
|
19909
|
+
} | {
|
|
19910
|
+
output: {
|
|
19911
|
+
error: string;
|
|
19912
|
+
};
|
|
19913
|
+
outputFormat: "json";
|
|
19914
|
+
status: 400;
|
|
19915
|
+
input: {
|
|
19916
|
+
query: {
|
|
19917
|
+
q?: string | undefined;
|
|
19918
|
+
before?: string | undefined;
|
|
19919
|
+
limit?: number | undefined;
|
|
19920
|
+
};
|
|
19921
|
+
};
|
|
19922
|
+
} | {
|
|
19923
|
+
output: {
|
|
19924
|
+
reports: {
|
|
19925
|
+
id: string;
|
|
19926
|
+
runId: string;
|
|
19927
|
+
name: string;
|
|
19928
|
+
title: string;
|
|
19929
|
+
createdAt: string;
|
|
19930
|
+
size: number;
|
|
19931
|
+
taskTitle: string;
|
|
19932
|
+
taskStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
|
|
19933
|
+
}[];
|
|
19934
|
+
nextCursor: string | null;
|
|
19935
|
+
total: number;
|
|
19936
|
+
};
|
|
19937
|
+
outputFormat: "json";
|
|
19938
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
19939
|
+
input: {
|
|
19940
|
+
query: {
|
|
19941
|
+
q?: string | undefined;
|
|
19942
|
+
before?: string | undefined;
|
|
19943
|
+
limit?: number | undefined;
|
|
19944
|
+
};
|
|
19945
|
+
};
|
|
19946
|
+
};
|
|
19947
|
+
};
|
|
19944
19948
|
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
19945
19949
|
"/worktrees": {
|
|
19946
19950
|
$get: {
|
|
@@ -24416,22 +24420,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
24416
24420
|
"/runs/:id/worker-destroy": {
|
|
24417
24421
|
$post: {
|
|
24418
24422
|
output: {
|
|
24419
|
-
|
|
24420
|
-
|
|
24421
|
-
readonly modelChoices?: {
|
|
24422
|
-
runner: string;
|
|
24423
|
-
requestedModel: string;
|
|
24424
|
-
availableModels: {
|
|
24425
|
-
id: string;
|
|
24426
|
-
label: string;
|
|
24427
|
-
description: string;
|
|
24428
|
-
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
24429
|
-
}[];
|
|
24430
|
-
otherRunners: string[];
|
|
24431
|
-
} | undefined;
|
|
24423
|
+
error: string;
|
|
24424
|
+
code?: "invalid_input" | undefined;
|
|
24432
24425
|
};
|
|
24433
24426
|
outputFormat: "json";
|
|
24434
|
-
status: 400
|
|
24427
|
+
status: 400;
|
|
24435
24428
|
input: {
|
|
24436
24429
|
query: {
|
|
24437
24430
|
[x: string]: string | string[];
|
|
@@ -24447,11 +24440,22 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
24447
24440
|
};
|
|
24448
24441
|
} | {
|
|
24449
24442
|
output: {
|
|
24450
|
-
|
|
24451
|
-
|
|
24443
|
+
readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
|
|
24444
|
+
readonly error: string;
|
|
24445
|
+
readonly modelChoices?: {
|
|
24446
|
+
runner: string;
|
|
24447
|
+
requestedModel: string;
|
|
24448
|
+
availableModels: {
|
|
24449
|
+
id: string;
|
|
24450
|
+
label: string;
|
|
24451
|
+
description: string;
|
|
24452
|
+
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
24453
|
+
}[];
|
|
24454
|
+
otherRunners: string[];
|
|
24455
|
+
} | undefined;
|
|
24452
24456
|
};
|
|
24453
24457
|
outputFormat: "json";
|
|
24454
|
-
status: 400;
|
|
24458
|
+
status: 400 | 401 | 403 | 409 | 503;
|
|
24455
24459
|
input: {
|
|
24456
24460
|
query: {
|
|
24457
24461
|
[x: string]: string | string[];
|