@hearsay-tools/squawk 0.18.0-pr4010.7645 → 0.18.0-pr4011.7657
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/contract/index.js +4 -0
- package/dist/contract/runners.d.ts +2 -0
- package/dist/contract/runs.d.ts +1 -0
- package/dist/core/agent-runner.d.ts +1 -0
- package/dist/core/provider-auth.d.ts +2 -0
- package/dist/core/provider-auth.js +11 -2
- package/dist/core/provider-auth.js.map +1 -1
- package/dist/core/runner-cli.js +4 -1
- package/dist/core/runner-cli.js.map +1 -1
- package/dist/core/runner-definition.d.ts +24 -2
- package/dist/core/runner-definition.js.map +1 -1
- package/dist/delegation/routes.d.ts +13 -13
- package/dist/delegation/transport.d.ts +13 -13
- package/dist/runners/acp/events.d.ts +4 -2
- package/dist/runners/acp/events.js +12 -2
- package/dist/runners/acp/events.js.map +1 -1
- package/dist/runners/acp/protocol.d.ts +6 -1
- package/dist/runners/acp/session.d.ts +11 -1
- package/dist/runners/acp/session.js +52 -18
- package/dist/runners/acp/session.js.map +1 -1
- package/dist/runners/acp/transport.js +1 -1
- package/dist/runners/acp/transport.js.map +1 -1
- package/dist/runners/antigravity/accounts.d.ts +9 -0
- package/dist/runners/antigravity/accounts.js +6 -0
- package/dist/runners/antigravity/accounts.js.map +1 -0
- package/dist/runners/antigravity/antigravity-model-catalog.d.ts +2 -0
- package/dist/runners/antigravity/antigravity-model-catalog.js +5 -0
- package/dist/runners/antigravity/antigravity-model-catalog.js.map +1 -0
- package/dist/runners/antigravity/antigravity-runner.d.ts +47 -0
- package/dist/runners/antigravity/antigravity-runner.js +27 -0
- package/dist/runners/antigravity/antigravity-runner.js.map +1 -0
- package/dist/runners/antigravity/antigravity-session.d.ts +60 -0
- package/dist/runners/antigravity/antigravity-session.js +335 -0
- package/dist/runners/antigravity/antigravity-session.js.map +1 -0
- package/dist/runners/antigravity/antigravity-skill-catalog.d.ts +5 -0
- package/dist/runners/antigravity/antigravity-skill-catalog.js +48 -0
- package/dist/runners/antigravity/antigravity-skill-catalog.js.map +1 -0
- package/dist/runners/antigravity/antigravity-ui-mapper.d.ts +13 -0
- package/dist/runners/antigravity/antigravity-ui-mapper.js +54 -0
- package/dist/runners/antigravity/antigravity-ui-mapper.js.map +1 -0
- package/dist/runners/antigravity/cli.d.ts +16 -0
- package/dist/runners/antigravity/cli.js +9 -0
- package/dist/runners/antigravity/cli.js.map +1 -0
- package/dist/runners/antigravity/client-files.d.ts +5 -0
- package/dist/runners/antigravity/client-files.js +20 -0
- package/dist/runners/antigravity/client-files.js.map +1 -0
- package/dist/runners/antigravity/config-files.d.ts +2 -0
- package/dist/runners/antigravity/config-files.js +8 -0
- package/dist/runners/antigravity/config-files.js.map +1 -0
- package/dist/runners/antigravity/definition.d.ts +1 -0
- package/dist/runners/antigravity/definition.js +30 -0
- package/dist/runners/antigravity/definition.js.map +1 -0
- package/dist/runners/antigravity/detection.d.ts +11 -0
- package/dist/runners/antigravity/detection.js +8 -0
- package/dist/runners/antigravity/detection.js.map +1 -0
- package/dist/runners/antigravity/display.d.ts +11 -0
- package/dist/runners/antigravity/display.js +7 -0
- package/dist/runners/antigravity/display.js.map +1 -0
- package/dist/runners/antigravity/env.d.ts +3 -0
- package/dist/runners/antigravity/env.js +2 -0
- package/dist/runners/antigravity/env.js.map +1 -0
- package/dist/runners/antigravity/extra-tools.d.ts +1 -0
- package/dist/runners/antigravity/extra-tools.js +2 -0
- package/dist/runners/antigravity/extra-tools.js.map +1 -0
- package/dist/runners/antigravity/facts.d.ts +25 -0
- package/dist/runners/antigravity/facts.js +11 -0
- package/dist/runners/antigravity/facts.js.map +1 -0
- package/dist/runners/antigravity/http-mcp.d.ts +14 -0
- package/dist/runners/antigravity/http-mcp.js +82 -0
- package/dist/runners/antigravity/http-mcp.js.map +1 -0
- package/dist/runners/antigravity/login-probe.d.ts +3 -0
- package/dist/runners/antigravity/login-probe.js +26 -0
- package/dist/runners/antigravity/login-probe.js.map +1 -0
- package/dist/runners/antigravity/login.d.ts +5 -0
- package/dist/runners/antigravity/login.js +5 -0
- package/dist/runners/antigravity/login.js.map +1 -0
- package/dist/runners/antigravity/mock.d.ts +141 -0
- package/dist/runners/antigravity/mock.js +30 -0
- package/dist/runners/antigravity/mock.js.map +1 -0
- package/dist/runners/antigravity/model-settings.d.ts +2 -0
- package/dist/runners/antigravity/model-settings.js +4 -0
- package/dist/runners/antigravity/model-settings.js.map +1 -0
- package/dist/runners/antigravity/models.d.ts +2 -0
- package/dist/runners/antigravity/models.js +5 -0
- package/dist/runners/antigravity/models.js.map +1 -0
- package/dist/runners/antigravity/permissions.d.ts +5 -0
- package/dist/runners/antigravity/permissions.js +69 -0
- package/dist/runners/antigravity/permissions.js.map +1 -0
- package/dist/runners/antigravity/runtime-env.d.ts +6 -0
- package/dist/runners/antigravity/runtime-env.js +34 -0
- package/dist/runners/antigravity/runtime-env.js.map +1 -0
- package/dist/runners/antigravity/spec-support.d.ts +2 -0
- package/dist/runners/antigravity/spec-support.js +23 -0
- package/dist/runners/antigravity/spec-support.js.map +1 -0
- package/dist/runners/antigravity/tool-normalization.d.ts +4 -0
- package/dist/runners/antigravity/tool-normalization.js +42 -0
- package/dist/runners/antigravity/tool-normalization.js.map +1 -0
- package/dist/runners/antigravity/usage.d.ts +2 -0
- package/dist/runners/antigravity/usage.js +14 -0
- package/dist/runners/antigravity/usage.js.map +1 -0
- package/dist/runners/antigravity/wire-updates.d.ts +2 -0
- package/dist/runners/antigravity/wire-updates.js +10 -0
- package/dist/runners/antigravity/wire-updates.js.map +1 -0
- package/dist/runners/built-in.js +2 -1
- package/dist/runners/built-in.js.map +1 -1
- package/dist/runners/ids.js +1 -1
- package/dist/runners/ids.js.map +1 -1
- package/dist/server/agent-profile-id.d.ts +8 -0
- package/dist/server/agent-profile-id.js +14 -0
- package/dist/server/agent-profile-id.js.map +1 -0
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/open-in-app.js +3 -1
- package/dist/server/open-in-app.js.map +1 -1
- package/dist/server/open-in-targets.js +2 -0
- package/dist/server/open-in-targets.js.map +1 -1
- package/dist/server/runners-routes.d.ts +1 -0
- package/dist/server/runners-routes.js +2 -1
- package/dist/server/runners-routes.js.map +1 -1
- package/dist/server/server.d.ts +121 -116
- package/dist/server/server.js +7 -15
- package/dist/server/server.js.map +1 -1
- package/package.json +4 -4
- package/scripts/mock-acp.mjs +149 -40
- package/scripts/mock-ci-tool.mjs +6 -1
- package/scripts/parity-rows.ts +2 -0
- package/web/dist/assets/{activity-motion-CJuRsJs-.js → activity-motion-DlR4mBlC.js} +1 -1
- package/web/dist/assets/{activity-route-B999gkxo.js → activity-route-BX73yeC2.js} +1 -1
- package/web/dist/assets/attention-BKUao3ek.js +1 -0
- package/web/dist/assets/{commit-diff-panel-DOEgpIAo.js → commit-diff-panel-CtZeu3MZ.js} +1 -1
- package/web/dist/assets/{diff-Crj7FMff.js → diff-B3xLSUUj.js} +2 -2
- package/web/dist/assets/{diff-view-Dz323lcJ.js → diff-view-DVRITRLu.js} +1 -1
- package/web/dist/assets/{file-preview-C2yywg9k.js → file-preview-DGOTXqdk.js} +1 -1
- package/web/dist/assets/{git-toolbar-BK5yHWl1.js → git-toolbar-4v8xZZCH.js} +1 -1
- package/web/dist/assets/{github-CheTq7R2.js → github-Bod0HZuA.js} +1 -1
- package/web/dist/assets/{global-activity-route-GqcNdjhf.js → global-activity-route-CmJqjL6J.js} +1 -1
- package/web/dist/assets/index-z2UgtfF6.js +14 -0
- package/web/dist/assets/{markdown-BnyNka-W.js → markdown-D4rxQRsB.js} +1 -1
- package/web/dist/assets/{picker-pill-BDVQSD8T.js → picker-pill-B2VxxL1D.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-CyLHNe9w.js → preview-pane-connected-D65yOeP8.js} +1 -1
- package/web/dist/assets/{project-router-CJ-APsTV.js → project-router-BNi9OCwj.js} +1 -1
- package/web/dist/assets/{project-scope-context-Ito06TKi.js → project-scope-context-DE_iUInX.js} +1 -1
- package/web/dist/assets/{prompt-template-menu-Cl4asEVh.js → prompt-template-menu-CSWQm6rc.js} +1 -1
- package/web/dist/assets/{queries-CczBZU0G.js → queries-BeaJJEJK.js} +1 -1
- package/web/dist/assets/{reference-chip-CP_u_4NW.js → reference-chip-7zf-u89p.js} +1 -1
- package/web/dist/assets/{repo-git-CTJrogdl.js → repo-git-GiMtA0j2.js} +1 -1
- package/web/dist/assets/{report-reader-VTcuImt1.js → report-reader-j2Lb2GZj.js} +1 -1
- package/web/dist/assets/{reports-CfhAWOFd.js → reports-DPw3rtR9.js} +1 -1
- package/web/dist/assets/{run-header-BhCysq_v.js → run-header-C-GCSV_Y.js} +1 -1
- package/web/dist/assets/runners-DGs5n2Tx.js +1 -0
- package/web/dist/assets/{skills-CRI1L9F6.js → skills-D7CV9irX.js} +1 -1
- package/web/dist/assets/{tab-link-B7uri0w5.js → tab-link-Bi9k8bF7.js} +1 -1
- package/web/dist/assets/task-changes-J7EI12dI.js +1 -0
- package/web/dist/assets/{task-commits-CFO6ZLb3.js → task-commits-BU2iegYj.js} +1 -1
- package/web/dist/assets/{task-files-CEHjGOVR.js → task-files-DRcm6hkf.js} +1 -1
- package/web/dist/assets/{task-github-item-CSySa5nk.js → task-github-item-59YEKQlj.js} +1 -1
- package/web/dist/assets/{task-thread-hE754xgI.js → task-thread-D_Mjsl8-.js} +1 -1
- package/web/dist/assets/{thread-state-DOFm4wd8.js → thread-state-DDYR1fhC.js} +1 -1
- package/web/dist/assets/{use-desktop-GXqB6sBk.js → use-desktop-BIR3yp9r.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-HEhXe8kn.js → use-hand-to-agent-state-NIaZxbR_.js} +1 -1
- package/web/dist/assets/{useInfiniteQuery-VxGcKUy8.js → useInfiniteQuery-BipmcFHn.js} +1 -1
- package/web/dist/assets/useQuery-BfRbMVIN.js +1 -0
- package/web/dist/assets/{workflows-CypZ8Fqr.js → workflows-CrrnZO-8.js} +1 -1
- package/web/dist/assets/{ws-POSR1RIB.js → ws-Q8U4J3aJ.js} +1 -1
- package/web/dist/index.html +13 -13
- package/web/dist/assets/attention-DNTfJGJ-.js +0 -1
- package/web/dist/assets/index-B_Jb-DKg.js +0 -14
- package/web/dist/assets/runners-C1EVq1ad.js +0 -1
- package/web/dist/assets/task-changes-CM09-q2O.js +0 -1
- package/web/dist/assets/useQuery-DlAhPJSV.js +0 -1
package/dist/server/server.d.ts
CHANGED
|
@@ -383,6 +383,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
383
383
|
icon: string;
|
|
384
384
|
installHint: string;
|
|
385
385
|
loginCommand: string;
|
|
386
|
+
terminalLogin?: boolean | undefined;
|
|
386
387
|
accountFolderExample?: string | undefined;
|
|
387
388
|
models: {
|
|
388
389
|
suggested: {
|
|
@@ -4257,19 +4258,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
4257
4258
|
} & {
|
|
4258
4259
|
"/repo/commit/:sha": {
|
|
4259
4260
|
$get: {
|
|
4260
|
-
output: string;
|
|
4261
|
-
outputFormat: "text";
|
|
4262
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4263
|
-
input: {
|
|
4264
|
-
query: {
|
|
4265
|
-
structured?: string | undefined;
|
|
4266
|
-
};
|
|
4267
|
-
} & {
|
|
4268
|
-
param: {
|
|
4269
|
-
sha: string;
|
|
4270
|
-
};
|
|
4271
|
-
};
|
|
4272
|
-
} | {
|
|
4273
4261
|
output: {
|
|
4274
4262
|
error: string;
|
|
4275
4263
|
code?: "invalid_input" | undefined;
|
|
@@ -4333,6 +4321,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
4333
4321
|
sha: string;
|
|
4334
4322
|
};
|
|
4335
4323
|
};
|
|
4324
|
+
} | {
|
|
4325
|
+
output: string;
|
|
4326
|
+
outputFormat: "text";
|
|
4327
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4328
|
+
input: {
|
|
4329
|
+
query: {
|
|
4330
|
+
structured?: string | undefined;
|
|
4331
|
+
};
|
|
4332
|
+
} & {
|
|
4333
|
+
param: {
|
|
4334
|
+
sha: string;
|
|
4335
|
+
};
|
|
4336
|
+
};
|
|
4336
4337
|
};
|
|
4337
4338
|
};
|
|
4338
4339
|
} & {
|
|
@@ -7604,6 +7605,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
7604
7605
|
} | undefined;
|
|
7605
7606
|
finishBlocked?: string | null | undefined;
|
|
7606
7607
|
cliResumeCommand?: string | undefined;
|
|
7608
|
+
cliHandoff?: false | undefined;
|
|
7607
7609
|
usage?: {
|
|
7608
7610
|
cpuPct: number;
|
|
7609
7611
|
rssBytes: number;
|
|
@@ -8121,24 +8123,22 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8121
8123
|
};
|
|
8122
8124
|
} | {
|
|
8123
8125
|
output: {
|
|
8124
|
-
|
|
8125
|
-
|
|
8126
|
-
|
|
8127
|
-
|
|
8128
|
-
|
|
8126
|
+
readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
|
|
8127
|
+
readonly error: string;
|
|
8128
|
+
readonly modelChoices?: {
|
|
8129
|
+
runner: string;
|
|
8130
|
+
requestedModel: string;
|
|
8131
|
+
availableModels: {
|
|
8132
|
+
id: string;
|
|
8133
|
+
label: string;
|
|
8134
|
+
description: string;
|
|
8135
|
+
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
8136
|
+
}[];
|
|
8137
|
+
otherRunners: string[];
|
|
8129
8138
|
} | undefined;
|
|
8130
|
-
deleted?: ({
|
|
8131
|
-
kind: "worktree";
|
|
8132
|
-
path: string;
|
|
8133
|
-
} | {
|
|
8134
|
-
kind: "branch";
|
|
8135
|
-
ref: string;
|
|
8136
|
-
})[] | undefined;
|
|
8137
|
-
remaining: ("branch" | "process" | "worktree")[];
|
|
8138
|
-
error?: string | undefined;
|
|
8139
8139
|
};
|
|
8140
8140
|
outputFormat: "json";
|
|
8141
|
-
status:
|
|
8141
|
+
status: 400 | 401 | 403 | 409 | 503;
|
|
8142
8142
|
input: {
|
|
8143
8143
|
query: {
|
|
8144
8144
|
[x: string]: string | string[];
|
|
@@ -8171,7 +8171,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8171
8171
|
error?: string | undefined;
|
|
8172
8172
|
};
|
|
8173
8173
|
outputFormat: "json";
|
|
8174
|
-
status:
|
|
8174
|
+
status: 200;
|
|
8175
8175
|
input: {
|
|
8176
8176
|
query: {
|
|
8177
8177
|
[x: string]: string | string[];
|
|
@@ -8187,22 +8187,24 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8187
8187
|
};
|
|
8188
8188
|
} | {
|
|
8189
8189
|
output: {
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
availableModels: {
|
|
8196
|
-
id: string;
|
|
8197
|
-
label: string;
|
|
8198
|
-
description: string;
|
|
8199
|
-
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
8200
|
-
}[];
|
|
8201
|
-
otherRunners: string[];
|
|
8190
|
+
workerId: string;
|
|
8191
|
+
state: "complete" | "incomplete";
|
|
8192
|
+
work?: {
|
|
8193
|
+
uncommittedFiles: number;
|
|
8194
|
+
commits: number;
|
|
8202
8195
|
} | undefined;
|
|
8196
|
+
deleted?: ({
|
|
8197
|
+
kind: "worktree";
|
|
8198
|
+
path: string;
|
|
8199
|
+
} | {
|
|
8200
|
+
kind: "branch";
|
|
8201
|
+
ref: string;
|
|
8202
|
+
})[] | undefined;
|
|
8203
|
+
remaining: ("branch" | "process" | "worktree")[];
|
|
8204
|
+
error?: string | undefined;
|
|
8203
8205
|
};
|
|
8204
8206
|
outputFormat: "json";
|
|
8205
|
-
status:
|
|
8207
|
+
status: 409;
|
|
8206
8208
|
input: {
|
|
8207
8209
|
query: {
|
|
8208
8210
|
[x: string]: string | string[];
|
|
@@ -16226,6 +16228,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
16226
16228
|
} | undefined;
|
|
16227
16229
|
finishBlocked?: string | null | undefined;
|
|
16228
16230
|
cliResumeCommand?: string | undefined;
|
|
16231
|
+
cliHandoff?: false | undefined;
|
|
16229
16232
|
usage?: {
|
|
16230
16233
|
cpuPct: number;
|
|
16231
16234
|
rssBytes: number;
|
|
@@ -18096,20 +18099,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
18096
18099
|
} & {
|
|
18097
18100
|
"/runs/:id/handoff": {
|
|
18098
18101
|
$get: {
|
|
18099
|
-
output:
|
|
18100
|
-
|
|
18101
|
-
|
|
18102
|
+
output: {
|
|
18103
|
+
error: string;
|
|
18104
|
+
};
|
|
18105
|
+
outputFormat: "json";
|
|
18106
|
+
status: 404;
|
|
18102
18107
|
input: {
|
|
18103
18108
|
param: {
|
|
18104
18109
|
id: string;
|
|
18105
18110
|
};
|
|
18106
18111
|
};
|
|
18107
18112
|
} | {
|
|
18108
|
-
output:
|
|
18109
|
-
|
|
18110
|
-
|
|
18111
|
-
outputFormat: "json";
|
|
18112
|
-
status: 404;
|
|
18113
|
+
output: string;
|
|
18114
|
+
outputFormat: "text";
|
|
18115
|
+
status: 200;
|
|
18113
18116
|
input: {
|
|
18114
18117
|
param: {
|
|
18115
18118
|
id: string;
|
|
@@ -18147,20 +18150,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
18147
18150
|
} & {
|
|
18148
18151
|
"/runs/:id/diff": {
|
|
18149
18152
|
$get: {
|
|
18150
|
-
output:
|
|
18151
|
-
|
|
18152
|
-
|
|
18153
|
+
output: {
|
|
18154
|
+
error: string;
|
|
18155
|
+
};
|
|
18156
|
+
outputFormat: "json";
|
|
18157
|
+
status: 404 | 409;
|
|
18153
18158
|
input: {
|
|
18154
18159
|
param: {
|
|
18155
18160
|
id: string;
|
|
18156
18161
|
};
|
|
18157
18162
|
};
|
|
18158
18163
|
} | {
|
|
18159
|
-
output:
|
|
18160
|
-
|
|
18161
|
-
|
|
18162
|
-
outputFormat: "json";
|
|
18163
|
-
status: 404 | 409;
|
|
18164
|
+
output: string;
|
|
18165
|
+
outputFormat: "text";
|
|
18166
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
18164
18167
|
input: {
|
|
18165
18168
|
param: {
|
|
18166
18169
|
id: string;
|
|
@@ -20178,19 +20181,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
20178
20181
|
} & {
|
|
20179
20182
|
"/repo/commit/:sha": {
|
|
20180
20183
|
$get: {
|
|
20181
|
-
output: string;
|
|
20182
|
-
outputFormat: "text";
|
|
20183
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
20184
|
-
input: {
|
|
20185
|
-
query: {
|
|
20186
|
-
structured?: string | undefined;
|
|
20187
|
-
};
|
|
20188
|
-
} & {
|
|
20189
|
-
param: {
|
|
20190
|
-
sha: string;
|
|
20191
|
-
};
|
|
20192
|
-
};
|
|
20193
|
-
} | {
|
|
20194
20184
|
output: {
|
|
20195
20185
|
error: string;
|
|
20196
20186
|
code?: "invalid_input" | undefined;
|
|
@@ -20254,6 +20244,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
20254
20244
|
sha: string;
|
|
20255
20245
|
};
|
|
20256
20246
|
};
|
|
20247
|
+
} | {
|
|
20248
|
+
output: string;
|
|
20249
|
+
outputFormat: "text";
|
|
20250
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
20251
|
+
input: {
|
|
20252
|
+
query: {
|
|
20253
|
+
structured?: string | undefined;
|
|
20254
|
+
};
|
|
20255
|
+
} & {
|
|
20256
|
+
param: {
|
|
20257
|
+
sha: string;
|
|
20258
|
+
};
|
|
20259
|
+
};
|
|
20257
20260
|
};
|
|
20258
20261
|
};
|
|
20259
20262
|
} & {
|
|
@@ -23525,6 +23528,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
23525
23528
|
} | undefined;
|
|
23526
23529
|
finishBlocked?: string | null | undefined;
|
|
23527
23530
|
cliResumeCommand?: string | undefined;
|
|
23531
|
+
cliHandoff?: false | undefined;
|
|
23528
23532
|
usage?: {
|
|
23529
23533
|
cpuPct: number;
|
|
23530
23534
|
rssBytes: number;
|
|
@@ -24042,24 +24046,22 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
24042
24046
|
};
|
|
24043
24047
|
} | {
|
|
24044
24048
|
output: {
|
|
24045
|
-
|
|
24046
|
-
|
|
24047
|
-
|
|
24048
|
-
|
|
24049
|
-
|
|
24049
|
+
readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
|
|
24050
|
+
readonly error: string;
|
|
24051
|
+
readonly modelChoices?: {
|
|
24052
|
+
runner: string;
|
|
24053
|
+
requestedModel: string;
|
|
24054
|
+
availableModels: {
|
|
24055
|
+
id: string;
|
|
24056
|
+
label: string;
|
|
24057
|
+
description: string;
|
|
24058
|
+
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
24059
|
+
}[];
|
|
24060
|
+
otherRunners: string[];
|
|
24050
24061
|
} | undefined;
|
|
24051
|
-
deleted?: ({
|
|
24052
|
-
kind: "worktree";
|
|
24053
|
-
path: string;
|
|
24054
|
-
} | {
|
|
24055
|
-
kind: "branch";
|
|
24056
|
-
ref: string;
|
|
24057
|
-
})[] | undefined;
|
|
24058
|
-
remaining: ("branch" | "process" | "worktree")[];
|
|
24059
|
-
error?: string | undefined;
|
|
24060
24062
|
};
|
|
24061
24063
|
outputFormat: "json";
|
|
24062
|
-
status:
|
|
24064
|
+
status: 400 | 401 | 403 | 409 | 503;
|
|
24063
24065
|
input: {
|
|
24064
24066
|
query: {
|
|
24065
24067
|
[x: string]: string | string[];
|
|
@@ -24092,7 +24094,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
24092
24094
|
error?: string | undefined;
|
|
24093
24095
|
};
|
|
24094
24096
|
outputFormat: "json";
|
|
24095
|
-
status:
|
|
24097
|
+
status: 200;
|
|
24096
24098
|
input: {
|
|
24097
24099
|
query: {
|
|
24098
24100
|
[x: string]: string | string[];
|
|
@@ -24108,22 +24110,24 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
24108
24110
|
};
|
|
24109
24111
|
} | {
|
|
24110
24112
|
output: {
|
|
24111
|
-
|
|
24112
|
-
|
|
24113
|
-
|
|
24114
|
-
|
|
24115
|
-
|
|
24116
|
-
availableModels: {
|
|
24117
|
-
id: string;
|
|
24118
|
-
label: string;
|
|
24119
|
-
description: string;
|
|
24120
|
-
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
24121
|
-
}[];
|
|
24122
|
-
otherRunners: string[];
|
|
24113
|
+
workerId: string;
|
|
24114
|
+
state: "complete" | "incomplete";
|
|
24115
|
+
work?: {
|
|
24116
|
+
uncommittedFiles: number;
|
|
24117
|
+
commits: number;
|
|
24123
24118
|
} | undefined;
|
|
24119
|
+
deleted?: ({
|
|
24120
|
+
kind: "worktree";
|
|
24121
|
+
path: string;
|
|
24122
|
+
} | {
|
|
24123
|
+
kind: "branch";
|
|
24124
|
+
ref: string;
|
|
24125
|
+
})[] | undefined;
|
|
24126
|
+
remaining: ("branch" | "process" | "worktree")[];
|
|
24127
|
+
error?: string | undefined;
|
|
24124
24128
|
};
|
|
24125
24129
|
outputFormat: "json";
|
|
24126
|
-
status:
|
|
24130
|
+
status: 409;
|
|
24127
24131
|
input: {
|
|
24128
24132
|
query: {
|
|
24129
24133
|
[x: string]: string | string[];
|
|
@@ -32147,6 +32151,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
32147
32151
|
} | undefined;
|
|
32148
32152
|
finishBlocked?: string | null | undefined;
|
|
32149
32153
|
cliResumeCommand?: string | undefined;
|
|
32154
|
+
cliHandoff?: false | undefined;
|
|
32150
32155
|
usage?: {
|
|
32151
32156
|
cpuPct: number;
|
|
32152
32157
|
rssBytes: number;
|
|
@@ -34017,20 +34022,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
34017
34022
|
} & {
|
|
34018
34023
|
"/runs/:id/handoff": {
|
|
34019
34024
|
$get: {
|
|
34020
|
-
output:
|
|
34021
|
-
|
|
34022
|
-
|
|
34025
|
+
output: {
|
|
34026
|
+
error: string;
|
|
34027
|
+
};
|
|
34028
|
+
outputFormat: "json";
|
|
34029
|
+
status: 404;
|
|
34023
34030
|
input: {
|
|
34024
34031
|
param: {
|
|
34025
34032
|
id: string;
|
|
34026
34033
|
};
|
|
34027
34034
|
};
|
|
34028
34035
|
} | {
|
|
34029
|
-
output:
|
|
34030
|
-
|
|
34031
|
-
|
|
34032
|
-
outputFormat: "json";
|
|
34033
|
-
status: 404;
|
|
34036
|
+
output: string;
|
|
34037
|
+
outputFormat: "text";
|
|
34038
|
+
status: 200;
|
|
34034
34039
|
input: {
|
|
34035
34040
|
param: {
|
|
34036
34041
|
id: string;
|
|
@@ -34068,20 +34073,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
34068
34073
|
} & {
|
|
34069
34074
|
"/runs/:id/diff": {
|
|
34070
34075
|
$get: {
|
|
34071
|
-
output:
|
|
34072
|
-
|
|
34073
|
-
|
|
34076
|
+
output: {
|
|
34077
|
+
error: string;
|
|
34078
|
+
};
|
|
34079
|
+
outputFormat: "json";
|
|
34080
|
+
status: 404 | 409;
|
|
34074
34081
|
input: {
|
|
34075
34082
|
param: {
|
|
34076
34083
|
id: string;
|
|
34077
34084
|
};
|
|
34078
34085
|
};
|
|
34079
34086
|
} | {
|
|
34080
|
-
output:
|
|
34081
|
-
|
|
34082
|
-
|
|
34083
|
-
outputFormat: "json";
|
|
34084
|
-
status: 404 | 409;
|
|
34087
|
+
output: string;
|
|
34088
|
+
outputFormat: "text";
|
|
34089
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
34085
34090
|
input: {
|
|
34086
34091
|
param: {
|
|
34087
34092
|
id: string;
|
package/dist/server/server.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { allocateAgentProfileId } from './agent-profile-id.js';
|
|
1
2
|
import { runnerSkillsQuerySchema } from '../contract/index.js';
|
|
2
3
|
import { readRunnerSkills } from './runner-skills.js';
|
|
3
4
|
import { runCheckout, preparePublishCheckout, reclaimCheckoutError } from './run-checkout.js';
|
|
@@ -80,7 +81,7 @@ import { setWorkspaceUiStateInputSchema } from '../contract/index.js';
|
|
|
80
81
|
// A contract VALUE, like `workspaceUiStateSchema` in workspace/migrations.ts — the request
|
|
81
82
|
// schema this route validates with is the same one the client compiles against.
|
|
82
83
|
import { openProjectInSchema } from '../contract/index.js';
|
|
83
|
-
import { knownRunnerIds, registeredRunnerId, registeredRunners, resolveRunnerId } from '../core/runner-registry.js';
|
|
84
|
+
import { knownRunnerIds, registeredRunnerId, registeredRunners, resolveRunnerId, runnerDefinition } from '../core/runner-registry.js';
|
|
84
85
|
import { REMOVED_RUNNER_IDS } from '../runs/legacy-run-rows.js';
|
|
85
86
|
import { attachmentFileParamSchema, } from '../contract/index.js';
|
|
86
87
|
import { agentWebhookParamsSchema, createProjectWebhookInputSchema, projectWebhookParamsSchema, sendAgentReportInputSchema, updateProjectInputSchema, updateProjectWebhookInputSchema, } from '../contract/index.js';
|
|
@@ -128,7 +129,7 @@ import { defaultAgentProfile, listAgentProfiles, profileDirState, resolveStoredP
|
|
|
128
129
|
import { profileCapableProviders, profileEnv, supportsProfiles } from '../core/agent-profiles.js';
|
|
129
130
|
import { shellQuote, withEnvPrefix } from '../core/shell-env.js';
|
|
130
131
|
import { resumeCommand } from '../core/runner-cli.js';
|
|
131
|
-
import {
|
|
132
|
+
import { normalizeProjectTags, probeProjectStatus, toProjectListEntry, registerProject, removeProject, shouldRegisterProject, } from '../workspace/projects.js';
|
|
132
133
|
import { mergeWriteWorkspaceUiState, readWorkspaceUiState } from '../workspace/ui-state.js';
|
|
133
134
|
import { checkoutRepo } from './checkout.js';
|
|
134
135
|
import { createProject, listGithubOwners } from './create-project.js';
|
|
@@ -154,18 +155,6 @@ const HOSTED_GITHUB_OWNERS_REASON = 'GitHub repositories can be created from a l
|
|
|
154
155
|
const hostedProfileRefusal = {
|
|
155
156
|
error: 'agent accounts are managed from the machine that owns the checkout (this cockpit runs in hosted mode)',
|
|
156
157
|
};
|
|
157
|
-
/**
|
|
158
|
-
* Allocate a profile id from the label (or, with no label, the folder name).
|
|
159
|
-
*
|
|
160
|
-
* Reuses the project allocator's shape, and deliberately its reserved set too: `default` is the
|
|
161
|
-
* discovered profile here exactly as it is the boot alias there, so a folder called `default/`
|
|
162
|
-
* becomes `default-2` and can never shadow it.
|
|
163
|
-
*/
|
|
164
|
-
function allocateAgentProfileId(source, taken) {
|
|
165
|
-
// `allocateProjectSlug` already basenames its argument and enforces the shared
|
|
166
|
-
// `^[a-z0-9][a-z0-9-]{0,63}$` shape, so `~/.claude-klaudiusz` slugs to `claude-klaudiusz`.
|
|
167
|
-
return allocateProjectSlug(source, taken);
|
|
168
|
-
}
|
|
169
158
|
/**
|
|
170
159
|
* The public API surface (spec 2026-07-23-independent-server-web-packages).
|
|
171
160
|
*
|
|
@@ -974,7 +963,7 @@ export function createApp(deps) {
|
|
|
974
963
|
// safe degradation. Running the bare command would sign the user into a DIFFERENT account
|
|
975
964
|
// than the one they clicked, and nothing in the terminal would say so.
|
|
976
965
|
if (command === null) {
|
|
977
|
-
return c.json({ error:
|
|
966
|
+
return c.json({ error: providerAuth.loginRefusalHint(provider, profile.configDir) }, 409);
|
|
978
967
|
}
|
|
979
968
|
// BOTH branches must mean "is this account signed in NOW". The default branch refreshes; the
|
|
980
969
|
// account branch has to evict first, because `profileStatus` serves the per-account cache and
|
|
@@ -2366,6 +2355,7 @@ export function createApp(deps) {
|
|
|
2366
2355
|
const { sessionId, backend } = latestSession(run);
|
|
2367
2356
|
const command = sessionId ? resumeCommand(resolveRunnerId(backend), sessionId) : null;
|
|
2368
2357
|
return { ...run, ...(usage ? { usage } : {}), ...(command ? { cliResumeCommand: command } : {}),
|
|
2358
|
+
...(runnerDefinition(resolveRunnerId(backend)).cli.interactive === false ? { cliHandoff: false } : {}),
|
|
2369
2359
|
...(finishBlocked !== undefined ? { finishBlocked } : {}) };
|
|
2370
2360
|
};
|
|
2371
2361
|
// A list row (#817) with the same live `usage` sample `withUsage` attaches. The sampler is
|
|
@@ -2840,6 +2830,8 @@ export function createApp(deps) {
|
|
|
2840
2830
|
const { sessionId, backend: savedBackend, profileId } = latestSession(checkout.run), backend = resolveRunnerId(savedBackend);
|
|
2841
2831
|
if (!sessionId)
|
|
2842
2832
|
return c.json({ error: 'no agent session to resume' }, 409);
|
|
2833
|
+
if (runnerDefinition(backend).cli.interactive === false)
|
|
2834
|
+
return c.json({ error: 'this runner has no interactive CLI' }, 409);
|
|
2843
2835
|
const blocked = await providerActionError([backend]);
|
|
2844
2836
|
if (blocked)
|
|
2845
2837
|
return c.json({ error: blocked }, 409);
|