@hearsay-tools/squawk 0.18.0-pr4174.8066 → 0.18.0-pr4178.8069
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/conversations.d.ts +0 -2
- package/dist/contract/delegation.d.ts +0 -57
- package/dist/contract/index.js +144 -187
- package/dist/contract/run-predicates.d.ts +0 -9
- package/dist/contract/usage-limit-hold.d.ts +0 -7
- package/dist/contract/waits.d.ts +2 -2
- package/dist/delegation/cli.js +4 -8
- package/dist/delegation/cli.js.map +1 -1
- package/dist/delegation/conversation-send.js +4 -15
- package/dist/delegation/conversation-send.js.map +1 -1
- package/dist/delegation/conversations.js +0 -6
- package/dist/delegation/conversations.js.map +1 -1
- package/dist/delegation/execution-identity.d.ts +9 -53
- package/dist/delegation/execution-identity.js +9 -165
- package/dist/delegation/execution-identity.js.map +1 -1
- package/dist/delegation/park-notice.d.ts +3 -29
- package/dist/delegation/park-notice.js +4 -32
- package/dist/delegation/park-notice.js.map +1 -1
- package/dist/delegation/provision.js +3 -3
- package/dist/delegation/provision.js.map +1 -1
- package/dist/delegation/routes.d.ts +0 -19
- package/dist/delegation/service.d.ts +0 -5
- package/dist/delegation/service.js +14 -93
- package/dist/delegation/service.js.map +1 -1
- package/dist/delegation/transport.d.ts +4 -23
- package/dist/delegation/worker-executions.d.ts +0 -2
- package/dist/delegation/worker-executions.js +1 -5
- package/dist/delegation/worker-executions.js.map +1 -1
- package/dist/runs/ports.d.ts +0 -2
- package/dist/server/provider-action-gate.js +1 -2
- package/dist/server/provider-action-gate.js.map +1 -1
- package/dist/server/run-accounts.d.ts +3 -4
- package/dist/server/run-accounts.js +5 -20
- package/dist/server/run-accounts.js.map +1 -1
- package/dist/server/runner-install-routes.d.ts +10 -10
- package/dist/server/server.d.ts +58 -72
- package/dist/server/server.js +1 -1
- package/dist/server/server.js.map +1 -1
- package/dist/workflows/continuation-admission.d.ts +0 -7
- package/dist/workflows/continuation-admission.js +8 -21
- package/dist/workflows/continuation-admission.js.map +1 -1
- package/dist/workflows/input-acknowledgement.d.ts +24 -24
- package/dist/workflows/run/continuation-acceptance.d.ts +1 -5
- package/dist/workflows/run/continuation-acceptance.js +29 -94
- package/dist/workflows/run/continuation-acceptance.js.map +1 -1
- package/dist/workflows/run/launch-read-resolver.d.ts +0 -6
- package/dist/workflows/run/launch-read-resolver.js +2 -13
- package/dist/workflows/run/launch-read-resolver.js.map +1 -1
- package/dist/workflows/run/run-settlement.js +0 -1
- package/dist/workflows/run/run-settlement.js.map +1 -1
- package/dist/workflows/run/worker-questions.d.ts +0 -4
- package/dist/workflows/run/worker-questions.js +8 -42
- package/dist/workflows/run/worker-questions.js.map +1 -1
- package/dist/workflows/step-kind-ids.d.ts +9 -0
- package/dist/workflows/step-kind-ids.js +10 -0
- package/dist/workflows/step-kind-ids.js.map +1 -0
- package/dist/workflows/wait-kind-ids.d.ts +11 -0
- package/dist/workflows/wait-kind-ids.js +34 -0
- package/dist/workflows/wait-kind-ids.js.map +1 -0
- package/package.json +4 -4
- package/web/dist/assets/{accounts-section-TDhV5kKW.js → accounts-section-D3P_Z-Nu.js} +1 -1
- package/web/dist/assets/{activity-motion-BfE9wCn7.js → activity-motion-BW-0k8s7.js} +1 -1
- package/web/dist/assets/{activity-route-DSBv6t6R.js → activity-route-Bpgblioe.js} +1 -1
- package/web/dist/assets/{agent-config-section-3bIgmLYR.js → agent-config-section-Cj3w7UIn.js} +1 -1
- package/web/dist/assets/{agent-defaults-section-Bfu8Tma5.js → agent-defaults-section-BJ4poe9c.js} +1 -1
- package/web/dist/assets/{appearance-DPE7X6-a.js → appearance-BUsUTPF0.js} +1 -1
- package/web/dist/assets/{archive-on-merge-field-Bx1bEmI8.js → archive-on-merge-field-D_kgBFNv.js} +1 -1
- package/web/dist/assets/attention-lvUYNNvV.js +1 -0
- package/web/dist/assets/{automation-format-BsnXeUET.js → automation-format-1lHzRTbq.js} +1 -1
- package/web/dist/assets/automations-route-CZaUrmDs.js +1 -0
- package/web/dist/assets/{cez-idle-Crszm9Ts.js → cez-idle-BY3rjM_y.js} +1 -1
- package/web/dist/assets/{commit-diff-panel-CLg6vURE.js → commit-diff-panel-xwLW6Ydr.js} +1 -1
- package/web/dist/assets/{diff-DE0Xb0Z5.js → diff-BB8SoL-s.js} +2 -2
- package/web/dist/assets/{diff-view-CGETvhPt.js → diff-view-O8lx1ztb.js} +1 -1
- package/web/dist/assets/{file-preview-DVQ7eTcT.js → file-preview-BS6M2tBo.js} +1 -1
- package/web/dist/assets/{folder-browser-G_9ZgDjg.js → folder-browser-Dsqz0Z1z.js} +1 -1
- package/web/dist/assets/{git-toolbar-DOvJwlcb.js → git-toolbar-DoPFA36c.js} +1 -1
- package/web/dist/assets/{github-3XgNmHF-.js → github-Bjy3WBvf.js} +1 -1
- package/web/dist/assets/{global-activity-route-7aoJOaT9.js → global-activity-route-BXBZKz_9.js} +1 -1
- package/web/dist/assets/index-CmadQXcg.js +21 -0
- package/web/dist/assets/{label-BWld23ke.js → label-CZp8t0zE.js} +1 -1
- package/web/dist/assets/live-protocol-D9ji1YCl.js +64 -0
- package/web/dist/assets/{markdown-63jCKOob.js → markdown-KHcncamw.js} +1 -1
- package/web/dist/assets/{notifications-section-fQ-nbk6G.js → notifications-section-DD21Sd79.js} +1 -1
- package/web/dist/assets/{open-in-menu-D03osLGE.js → open-in-menu-DdKs6X5r.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-C_LORmfr.js → preview-pane-connected-BvTZv2SQ.js} +1 -1
- package/web/dist/assets/{project-location-BM-6wMI3.js → project-location-B3LBvkz2.js} +1 -1
- package/web/dist/assets/{project-router-DtTvMbeA.js → project-router-CIKODSHW.js} +1 -1
- package/web/dist/assets/project-scope-context-D1bpJixc.js +4 -0
- package/web/dist/assets/{projects-section-WlDXEr2U.js → projects-section-C0k8kyb-.js} +1 -1
- package/web/dist/assets/{prompt-templates-section-BrRD9W-C.js → prompt-templates-section-DNkosCni.js} +1 -1
- package/web/dist/assets/queries-dHXhD3Hc.js +1 -0
- package/web/dist/assets/{reference-chip-DeqB7ZMB.js → reference-chip-BWViAFIN.js} +1 -1
- package/web/dist/assets/{remote-settings-notice-Dsz5ly3b.js → remote-settings-notice-DPCENbhz.js} +1 -1
- package/web/dist/assets/{repo-git-Bjx30PIk.js → repo-git-jKOnO3ba.js} +1 -1
- package/web/dist/assets/{report-reader-BIDMrkji.js → report-reader-DXYiKNcg.js} +1 -1
- package/web/dist/assets/{reports-CJmqlXn7.js → reports-DEE0bHNv.js} +1 -1
- package/web/dist/assets/{resources-section-C8KZ4hre.js → resources-section-lqXgYTrv.js} +1 -1
- package/web/dist/assets/{run-header-BzuB68Yq.js → run-header-CXlUbvDO.js} +1 -1
- package/web/dist/assets/runners-CGQjSsir.js +1 -0
- package/web/dist/assets/{settings-agent-picker-CSyeml1b.js → settings-agent-picker-BRvZn4kM.js} +1 -1
- package/web/dist/assets/{settings-shell-Cni3kHc9.js → settings-shell-DTtd-vIa.js} +1 -1
- package/web/dist/assets/{sidebar-section-CCg4QGtg.js → sidebar-section-BFW4ZfBR.js} +1 -1
- package/web/dist/assets/{skills-C-in30dy.js → skills-AImMlT1T.js} +1 -1
- package/web/dist/assets/{tab-link-Dl5Mmavw.js → tab-link-CM6SDBtV.js} +1 -1
- package/web/dist/assets/{task-changes-Bo4ZjMI9.js → task-changes-01Z_ppIw.js} +1 -1
- package/web/dist/assets/{task-commits-Ca0v06Ow.js → task-commits-DRNIum3J.js} +1 -1
- package/web/dist/assets/{task-files-1XZzDBKI.js → task-files-Crz7Fo3C.js} +1 -1
- package/web/dist/assets/{task-github-item-vJHng0ie.js → task-github-item-psG2V47c.js} +1 -1
- package/web/dist/assets/task-groups-DF0XoB6U.js +1 -0
- package/web/dist/assets/task-thread-Bqg91ZVZ.js +9 -0
- package/web/dist/assets/{tasks-table-DUrhAh4g.js → tasks-table-DHTEGteC.js} +1 -1
- package/web/dist/assets/{thread-state-CF0SB2iW.js → thread-state-BWJ2YyXo.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-B3y26akX.js → use-hand-to-agent-state-DNROQerR.js} +1 -1
- package/web/dist/assets/{useInfiniteQuery-BnyaEFle.js → useInfiniteQuery-qJeCNhM7.js} +1 -1
- package/web/dist/assets/useQuery-C3CQhXsT.js +1 -0
- package/web/dist/assets/{workflows-C6YdW7RT.js → workflows-Cx9lgrEo.js} +1 -1
- package/web/dist/assets/{workspace-tools-BDdrgrCg.js → workspace-tools-CVitt3kE.js} +1 -1
- package/web/dist/assets/{worktrees-section-DO1e87cC.js → worktrees-section-DxUg4l9n.js} +1 -1
- package/web/dist/assets/{ws-Bal5BUy2.js → ws-BisMp6U5.js} +1 -1
- package/web/dist/index.html +17 -17
- package/web/dist/live-worker.js +1 -1
- package/web/dist/assets/attention-otQlgfRj.js +0 -1
- package/web/dist/assets/automations-route-YYPPidII.js +0 -1
- package/web/dist/assets/index-CYYWiYLX.js +0 -21
- package/web/dist/assets/live-protocol-BXzu6cSE.js +0 -64
- package/web/dist/assets/project-scope-context-Dgq8_2JZ.js +0 -4
- package/web/dist/assets/queries-yuG-mM6_.js +0 -1
- package/web/dist/assets/runners-CDw7wLfd.js +0 -1
- package/web/dist/assets/task-groups-3jn_VZOd.js +0 -1
- package/web/dist/assets/task-thread-Cfgc4Wvc.js +0 -9
- package/web/dist/assets/useQuery-BUslvRIM.js +0 -1
package/dist/runs/ports.d.ts
CHANGED
|
@@ -181,8 +181,6 @@ export interface WorkerExecutions {
|
|
|
181
181
|
export interface WorkerExecutionRecords {
|
|
182
182
|
/** `identity` is checked against the worker identity schema before it is written. */
|
|
183
183
|
writeWorkerIdentity(id: string, identity: unknown): void;
|
|
184
|
-
/** Atomically update an existing worker identity (same-runner model/effort override). */
|
|
185
|
-
updateWorkerIdentity(id: string, identity: unknown): void;
|
|
186
184
|
writeWorkerExecution(id: string, proof: WorkerExecution, fresh?: boolean): void;
|
|
187
185
|
/** A deleted child's receipt replaces the private proof only after the deletion checkpoint. */
|
|
188
186
|
workerDeletionEvidence(id: string): boolean;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { controlLocation } from '../contract/index.js';
|
|
2
2
|
import { registeredRunners, runnerDefinition, resolveRunnerId } from '../core/runner-registry.js';
|
|
3
3
|
import { providersRequiredByWorkflow as requiredByWorkflow } from '../contract/index.js';
|
|
4
|
-
import { workerContinuationStep } from '../contract/index.js';
|
|
5
4
|
/** The registered runners an original workflow executes, in registration order. */
|
|
6
5
|
export function providersRequiredByWorkflow(workflow, fallback) {
|
|
7
6
|
return requiredByWorkflow(workflow, fallback, registeredRunners().map(({ id }) => id));
|
|
@@ -9,7 +8,7 @@ export function providersRequiredByWorkflow(workflow, fallback) {
|
|
|
9
8
|
export function providerForExistingRun(run, override) {
|
|
10
9
|
if (override)
|
|
11
10
|
return override;
|
|
12
|
-
return resolveRunnerId(
|
|
11
|
+
return resolveRunnerId(run.runner);
|
|
13
12
|
}
|
|
14
13
|
export function unavailableProviderMessage(required, response, accounts = new Map()) {
|
|
15
14
|
for (const provider of required) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-action-gate.js","sourceRoot":"","sources":["../../src/server/provider-action-gate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AAIjF,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClG,OAAO,EAAE,2BAA2B,IAAI,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"provider-action-gate.js","sourceRoot":"","sources":["../../src/server/provider-action-gate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AAIjF,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClG,OAAO,EAAE,2BAA2B,IAAI,kBAAkB,EAAE,MAAM,wCAAwC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IAAI,MAAM,KAAK,WAAW;YAAE,SAAS;QACrC,IAAI,OAAO,IAAI,MAAM,KAAK,cAAc,EAAE,CAAC;YACzC,OAAO,GAAG,IAAI,EAAE,aAAa,OAAO,CAAC,KAAK,kCAAkC,eAAe,CAAC,WAAW,CAAC,GAAG,CAAC;QAC9G,CAAC;QACD,OAAO,GAAG,IAAI,EAAE,iDAAiD,eAAe,CAAC,WAAW,CAAC,GAAG,CAAC;IACnG,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -2,7 +2,7 @@ import type { Home } from '../home/home.ts';
|
|
|
2
2
|
import type { ProviderAuthService, ProviderId } from '../core/provider-auth.ts';
|
|
3
3
|
import type { RunRecord } from '../runs/store.ts';
|
|
4
4
|
import { type ResolvedAgentProfile } from '../workspace/agent-profiles.ts';
|
|
5
|
-
import {
|
|
5
|
+
import type { GateAccount } from './provider-action-gate.ts';
|
|
6
6
|
/**
|
|
7
7
|
* The NAMED (non-default) account each provider of a start will run on (hearsay-tools/squawk#4116).
|
|
8
8
|
*
|
|
@@ -21,12 +21,11 @@ export interface AccountScope {
|
|
|
21
21
|
repoRoot: string;
|
|
22
22
|
run?: RunRecord | undefined;
|
|
23
23
|
live?: boolean | undefined;
|
|
24
|
-
untouched?: boolean | undefined;
|
|
25
24
|
runners?: ContinueRunners | undefined;
|
|
26
25
|
picks?: Partial<Record<ProviderId, string | undefined>> | undefined;
|
|
27
26
|
}
|
|
28
27
|
/** {@link namedRunAccounts} for an {@link AccountScope}. */
|
|
29
|
-
export declare function scopeRunAccounts(home: Home, required: readonly ProviderId[], { repoRoot, run, live,
|
|
28
|
+
export declare function scopeRunAccounts(home: Home, required: readonly ProviderId[], { repoRoot, run, live, runners, picks }: AccountScope): Promise<Map<ProviderId, ResolvedAgentProfile>>;
|
|
30
29
|
/** The account a message to a live run's session on `provider` reaches: the latest session's. */
|
|
31
30
|
export declare function liveAccountFor(run: RunRecord, provider: ProviderId): string | undefined;
|
|
32
31
|
/** A continuation's runners: the run's own (`original`) and the one it continues on (`target`). */
|
|
@@ -41,7 +40,7 @@ export interface ContinueRunners {
|
|
|
41
40
|
* recorded). Otherwise the target runner starts fresh on the run's account, which a runner switch
|
|
42
41
|
* clears first; every other runner uses the project's selection (absent).
|
|
43
42
|
*/
|
|
44
|
-
export declare function runAccountFor(run: RunRecord, provider: ProviderId, runners?: ContinueRunners
|
|
43
|
+
export declare function runAccountFor(run: RunRecord, provider: ProviderId, runners?: ContinueRunners): string | undefined;
|
|
45
44
|
/** The probed sign-in state of each named account in `accounts`. `refresh` drops the cached answer
|
|
46
45
|
* first, so a refusal is confirmed by a fresh probe, as the default rows are. */
|
|
47
46
|
export declare function probeNamedAccounts(providerAuth: Pick<ProviderAuthService, 'profileStatus' | 'forgetProfileStatus'>, accounts: ReadonlyMap<ProviderId, ResolvedAgentProfile>, refresh?: boolean): Promise<Map<ProviderId, GateAccount>>;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { resolveRunnerId } from '../core/runner-registry.js';
|
|
2
2
|
import { DEFAULT_RUNNER_ID } from '../core/runner-ids.js';
|
|
3
3
|
import { executionAccount } from '../workflows/execution-account.js';
|
|
4
|
-
import { latestSession
|
|
4
|
+
import { latestSession } from '../contract/index.js';
|
|
5
5
|
import { DEFAULT_AGENT_ACCOUNT_ID } from '../contract/index.js';
|
|
6
6
|
import { loadAgentAccounts } from '../workspace/agent-accounts.js';
|
|
7
7
|
import { selectProfile } from '../workspace/agent-profiles.js';
|
|
8
|
-
import { providerForExistingRun } from './provider-action-gate.js';
|
|
9
8
|
/**
|
|
10
9
|
* The NAMED (non-default) account each provider of a start will run on (hearsay-tools/squawk#4116).
|
|
11
10
|
*
|
|
@@ -30,9 +29,9 @@ export async function namedRunAccounts(home, repoRoot, providers, picks = {}) {
|
|
|
30
29
|
return named;
|
|
31
30
|
}
|
|
32
31
|
/** {@link namedRunAccounts} for an {@link AccountScope}. */
|
|
33
|
-
export function scopeRunAccounts(home, required, { repoRoot, run, live,
|
|
32
|
+
export function scopeRunAccounts(home, required, { repoRoot, run, live, runners, picks = {} }) {
|
|
34
33
|
const fromRun = (provider) => run === undefined ? undefined
|
|
35
|
-
: live ? liveAccountFor(run, provider) : runAccountFor(run, provider, runners
|
|
34
|
+
: live ? liveAccountFor(run, provider) : runAccountFor(run, provider, runners);
|
|
36
35
|
const chosen = Object.fromEntries(required.map((provider) => [provider, picks[provider] ?? fromRun(provider)]));
|
|
37
36
|
return namedRunAccounts(home, repoRoot, required, chosen);
|
|
38
37
|
}
|
|
@@ -41,15 +40,6 @@ export function liveAccountFor(run, provider) {
|
|
|
41
40
|
const live = executionAccount(run);
|
|
42
41
|
return resolveRunnerId(live.runner ?? DEFAULT_RUNNER_ID) === provider ? live.agentProfile : undefined;
|
|
43
42
|
}
|
|
44
|
-
function workerAccountFor(run, provider, original, target, untouched) {
|
|
45
|
-
if (untouched) {
|
|
46
|
-
const match = run.workflowDef?.steps.find(step => step.command === undefined && step.kind !== 'plugin' && resolveRunnerId(step.runner ?? run.runner) === provider);
|
|
47
|
-
return match?.agentProfile ?? (provider === original ? run.agentProfile : undefined);
|
|
48
|
-
}
|
|
49
|
-
if (provider !== target)
|
|
50
|
-
return undefined;
|
|
51
|
-
return workerContinuationStep(run)?.agentProfile;
|
|
52
|
-
}
|
|
53
43
|
/**
|
|
54
44
|
* The account a continuation's turn on `provider` uses, as the engine picks it (`sessionAffinity`,
|
|
55
45
|
* `overridePatch`, `agentEnvForStep`). The target runner resumes the latest session when that session
|
|
@@ -57,14 +47,9 @@ function workerAccountFor(run, provider, original, target, untouched) {
|
|
|
57
47
|
* recorded). Otherwise the target runner starts fresh on the run's account, which a runner switch
|
|
58
48
|
* clears first; every other runner uses the project's selection (absent).
|
|
59
49
|
*/
|
|
60
|
-
export function runAccountFor(run, provider, runners
|
|
61
|
-
const original = runners?.original ??
|
|
50
|
+
export function runAccountFor(run, provider, runners) {
|
|
51
|
+
const original = runners?.original ?? resolveRunnerId(run.runner ?? DEFAULT_RUNNER_ID);
|
|
62
52
|
const target = runners?.target ?? original;
|
|
63
|
-
if (run.delegation?.role === 'worker') {
|
|
64
|
-
const pinned = workerAccountFor(run, provider, original, target, untouched);
|
|
65
|
-
if (pinned !== undefined || untouched)
|
|
66
|
-
return pinned;
|
|
67
|
-
}
|
|
68
53
|
if (provider !== target)
|
|
69
54
|
return undefined;
|
|
70
55
|
const session = latestSession(run);
|
|
@@ -1 +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,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,
|
|
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,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,6CAA6C,CAAC;AACvF,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,aAAa,EAA6B,MAAM,gCAAgC,CAAC;AAG1F;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,IAAU,EACV,QAAgB,EAChB,SAAgC,EAChC,KAAK,GAAoD,EAAE;IAE3D,MAAM,KAAK,GAAG,IAAI,GAAG,EAAoC,CAAC;IAC1D,MAAM,KAAK,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,C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,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"}
|
|
@@ -51,11 +51,15 @@ export declare function createRunnerInstallRoutes(options: {
|
|
|
51
51
|
"/runner-install/:runner": {
|
|
52
52
|
$post: {
|
|
53
53
|
output: {
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
supported: boolean;
|
|
55
|
+
installedVersion: string | null;
|
|
56
|
+
latestVersion: string | null;
|
|
57
|
+
updateAvailable: boolean;
|
|
58
|
+
phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
|
|
59
|
+
error: string | null;
|
|
56
60
|
};
|
|
57
61
|
outputFormat: "json";
|
|
58
|
-
status:
|
|
62
|
+
status: 202;
|
|
59
63
|
input: {
|
|
60
64
|
param: {
|
|
61
65
|
runner: string;
|
|
@@ -67,15 +71,11 @@ export declare function createRunnerInstallRoutes(options: {
|
|
|
67
71
|
};
|
|
68
72
|
} | {
|
|
69
73
|
output: {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
latestVersion: string | null;
|
|
73
|
-
updateAvailable: boolean;
|
|
74
|
-
phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
|
|
75
|
-
error: string | null;
|
|
74
|
+
error: string;
|
|
75
|
+
code?: "invalid_input" | undefined;
|
|
76
76
|
};
|
|
77
77
|
outputFormat: "json";
|
|
78
|
-
status:
|
|
78
|
+
status: 400;
|
|
79
79
|
input: {
|
|
80
80
|
param: {
|
|
81
81
|
runner: string;
|
package/dist/server/server.d.ts
CHANGED
|
@@ -4665,19 +4665,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
4665
4665
|
} & {
|
|
4666
4666
|
"/repo/commit/:sha": {
|
|
4667
4667
|
$get: {
|
|
4668
|
-
output: string;
|
|
4669
|
-
outputFormat: "text";
|
|
4670
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4671
|
-
input: {
|
|
4672
|
-
query: {
|
|
4673
|
-
structured?: string | undefined;
|
|
4674
|
-
};
|
|
4675
|
-
} & {
|
|
4676
|
-
param: {
|
|
4677
|
-
sha: string;
|
|
4678
|
-
};
|
|
4679
|
-
};
|
|
4680
|
-
} | {
|
|
4681
4668
|
output: {
|
|
4682
4669
|
error: string;
|
|
4683
4670
|
code?: "invalid_input" | undefined;
|
|
@@ -4741,6 +4728,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
4741
4728
|
sha: string;
|
|
4742
4729
|
};
|
|
4743
4730
|
};
|
|
4731
|
+
} | {
|
|
4732
|
+
output: string;
|
|
4733
|
+
outputFormat: "text";
|
|
4734
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4735
|
+
input: {
|
|
4736
|
+
query: {
|
|
4737
|
+
structured?: string | undefined;
|
|
4738
|
+
};
|
|
4739
|
+
} & {
|
|
4740
|
+
param: {
|
|
4741
|
+
sha: string;
|
|
4742
|
+
};
|
|
4743
|
+
};
|
|
4744
4744
|
};
|
|
4745
4745
|
};
|
|
4746
4746
|
} & {
|
|
@@ -8523,13 +8523,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8523
8523
|
};
|
|
8524
8524
|
backend?: string | undefined;
|
|
8525
8525
|
model?: string | undefined;
|
|
8526
|
-
effort?: string | undefined;
|
|
8527
|
-
hold?: {
|
|
8528
|
-
reason: "provider-error" | "usage-limit";
|
|
8529
|
-
resumeAt: string;
|
|
8530
|
-
attempts?: number | undefined;
|
|
8531
|
-
error?: string | undefined;
|
|
8532
|
-
} | undefined;
|
|
8533
8526
|
inputs?: {
|
|
8534
8527
|
source: {
|
|
8535
8528
|
kind: "parent-file";
|
|
@@ -19208,20 +19201,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
19208
19201
|
} & {
|
|
19209
19202
|
"/runs/:id/handoff": {
|
|
19210
19203
|
$get: {
|
|
19211
|
-
output:
|
|
19212
|
-
|
|
19213
|
-
|
|
19204
|
+
output: {
|
|
19205
|
+
error: string;
|
|
19206
|
+
};
|
|
19207
|
+
outputFormat: "json";
|
|
19208
|
+
status: 404;
|
|
19214
19209
|
input: {
|
|
19215
19210
|
param: {
|
|
19216
19211
|
id: string;
|
|
19217
19212
|
};
|
|
19218
19213
|
};
|
|
19219
19214
|
} | {
|
|
19220
|
-
output:
|
|
19221
|
-
|
|
19222
|
-
|
|
19223
|
-
outputFormat: "json";
|
|
19224
|
-
status: 404;
|
|
19215
|
+
output: string;
|
|
19216
|
+
outputFormat: "text";
|
|
19217
|
+
status: 200;
|
|
19225
19218
|
input: {
|
|
19226
19219
|
param: {
|
|
19227
19220
|
id: string;
|
|
@@ -19259,20 +19252,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
19259
19252
|
} & {
|
|
19260
19253
|
"/runs/:id/diff": {
|
|
19261
19254
|
$get: {
|
|
19262
|
-
output:
|
|
19263
|
-
|
|
19264
|
-
|
|
19255
|
+
output: {
|
|
19256
|
+
error: string;
|
|
19257
|
+
};
|
|
19258
|
+
outputFormat: "json";
|
|
19259
|
+
status: 404 | 409;
|
|
19265
19260
|
input: {
|
|
19266
19261
|
param: {
|
|
19267
19262
|
id: string;
|
|
19268
19263
|
};
|
|
19269
19264
|
};
|
|
19270
19265
|
} | {
|
|
19271
|
-
output:
|
|
19272
|
-
|
|
19273
|
-
|
|
19274
|
-
outputFormat: "json";
|
|
19275
|
-
status: 404 | 409;
|
|
19266
|
+
output: string;
|
|
19267
|
+
outputFormat: "text";
|
|
19268
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
19276
19269
|
input: {
|
|
19277
19270
|
param: {
|
|
19278
19271
|
id: string;
|
|
@@ -21319,19 +21312,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
21319
21312
|
} & {
|
|
21320
21313
|
"/repo/commit/:sha": {
|
|
21321
21314
|
$get: {
|
|
21322
|
-
output: string;
|
|
21323
|
-
outputFormat: "text";
|
|
21324
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
21325
|
-
input: {
|
|
21326
|
-
query: {
|
|
21327
|
-
structured?: string | undefined;
|
|
21328
|
-
};
|
|
21329
|
-
} & {
|
|
21330
|
-
param: {
|
|
21331
|
-
sha: string;
|
|
21332
|
-
};
|
|
21333
|
-
};
|
|
21334
|
-
} | {
|
|
21335
21315
|
output: {
|
|
21336
21316
|
error: string;
|
|
21337
21317
|
code?: "invalid_input" | undefined;
|
|
@@ -21395,6 +21375,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
21395
21375
|
sha: string;
|
|
21396
21376
|
};
|
|
21397
21377
|
};
|
|
21378
|
+
} | {
|
|
21379
|
+
output: string;
|
|
21380
|
+
outputFormat: "text";
|
|
21381
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
21382
|
+
input: {
|
|
21383
|
+
query: {
|
|
21384
|
+
structured?: string | undefined;
|
|
21385
|
+
};
|
|
21386
|
+
} & {
|
|
21387
|
+
param: {
|
|
21388
|
+
sha: string;
|
|
21389
|
+
};
|
|
21390
|
+
};
|
|
21398
21391
|
};
|
|
21399
21392
|
};
|
|
21400
21393
|
} & {
|
|
@@ -25177,13 +25170,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
25177
25170
|
};
|
|
25178
25171
|
backend?: string | undefined;
|
|
25179
25172
|
model?: string | undefined;
|
|
25180
|
-
effort?: string | undefined;
|
|
25181
|
-
hold?: {
|
|
25182
|
-
reason: "provider-error" | "usage-limit";
|
|
25183
|
-
resumeAt: string;
|
|
25184
|
-
attempts?: number | undefined;
|
|
25185
|
-
error?: string | undefined;
|
|
25186
|
-
} | undefined;
|
|
25187
25173
|
inputs?: {
|
|
25188
25174
|
source: {
|
|
25189
25175
|
kind: "parent-file";
|
|
@@ -35862,20 +35848,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
35862
35848
|
} & {
|
|
35863
35849
|
"/runs/:id/handoff": {
|
|
35864
35850
|
$get: {
|
|
35865
|
-
output:
|
|
35866
|
-
|
|
35867
|
-
|
|
35851
|
+
output: {
|
|
35852
|
+
error: string;
|
|
35853
|
+
};
|
|
35854
|
+
outputFormat: "json";
|
|
35855
|
+
status: 404;
|
|
35868
35856
|
input: {
|
|
35869
35857
|
param: {
|
|
35870
35858
|
id: string;
|
|
35871
35859
|
};
|
|
35872
35860
|
};
|
|
35873
35861
|
} | {
|
|
35874
|
-
output:
|
|
35875
|
-
|
|
35876
|
-
|
|
35877
|
-
outputFormat: "json";
|
|
35878
|
-
status: 404;
|
|
35862
|
+
output: string;
|
|
35863
|
+
outputFormat: "text";
|
|
35864
|
+
status: 200;
|
|
35879
35865
|
input: {
|
|
35880
35866
|
param: {
|
|
35881
35867
|
id: string;
|
|
@@ -35913,20 +35899,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
35913
35899
|
} & {
|
|
35914
35900
|
"/runs/:id/diff": {
|
|
35915
35901
|
$get: {
|
|
35916
|
-
output:
|
|
35917
|
-
|
|
35918
|
-
|
|
35902
|
+
output: {
|
|
35903
|
+
error: string;
|
|
35904
|
+
};
|
|
35905
|
+
outputFormat: "json";
|
|
35906
|
+
status: 404 | 409;
|
|
35919
35907
|
input: {
|
|
35920
35908
|
param: {
|
|
35921
35909
|
id: string;
|
|
35922
35910
|
};
|
|
35923
35911
|
};
|
|
35924
35912
|
} | {
|
|
35925
|
-
output:
|
|
35926
|
-
|
|
35927
|
-
|
|
35928
|
-
outputFormat: "json";
|
|
35929
|
-
status: 404 | 409;
|
|
35913
|
+
output: string;
|
|
35914
|
+
outputFormat: "text";
|
|
35915
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
35930
35916
|
input: {
|
|
35931
35917
|
param: {
|
|
35932
35918
|
id: string;
|
package/dist/server/server.js
CHANGED
|
@@ -2763,7 +2763,7 @@ export function createApp(deps) {
|
|
|
2763
2763
|
const required = untouched
|
|
2764
2764
|
? providersRequiredByWorkflow(run.workflowDef, provider)
|
|
2765
2765
|
: [provider];
|
|
2766
|
-
const blocked = await providerActionError(required, { repoRoot, run,
|
|
2766
|
+
const blocked = await providerActionError(required, { repoRoot, run, runners: { original: originalProvider, target: provider } });
|
|
2767
2767
|
if (blocked)
|
|
2768
2768
|
return c.json({ error: blocked }, 409);
|
|
2769
2769
|
const result = manager.continueRun(id, {
|