@hearsay-tools/squawk 0.18.0-pr4174.8067 → 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.
Files changed (133) hide show
  1. package/dist/contract/conversations.d.ts +0 -2
  2. package/dist/contract/delegation.d.ts +0 -57
  3. package/dist/contract/index.js +144 -187
  4. package/dist/contract/run-predicates.d.ts +0 -9
  5. package/dist/contract/usage-limit-hold.d.ts +0 -7
  6. package/dist/contract/waits.d.ts +2 -2
  7. package/dist/delegation/cli.js +4 -8
  8. package/dist/delegation/cli.js.map +1 -1
  9. package/dist/delegation/conversation-send.js +4 -15
  10. package/dist/delegation/conversation-send.js.map +1 -1
  11. package/dist/delegation/conversations.js +0 -6
  12. package/dist/delegation/conversations.js.map +1 -1
  13. package/dist/delegation/execution-identity.d.ts +9 -53
  14. package/dist/delegation/execution-identity.js +9 -165
  15. package/dist/delegation/execution-identity.js.map +1 -1
  16. package/dist/delegation/park-notice.d.ts +3 -29
  17. package/dist/delegation/park-notice.js +4 -32
  18. package/dist/delegation/park-notice.js.map +1 -1
  19. package/dist/delegation/provision.js +3 -3
  20. package/dist/delegation/provision.js.map +1 -1
  21. package/dist/delegation/routes.d.ts +0 -19
  22. package/dist/delegation/service.d.ts +0 -5
  23. package/dist/delegation/service.js +14 -93
  24. package/dist/delegation/service.js.map +1 -1
  25. package/dist/delegation/transport.d.ts +4 -23
  26. package/dist/delegation/worker-executions.d.ts +0 -2
  27. package/dist/delegation/worker-executions.js +1 -5
  28. package/dist/delegation/worker-executions.js.map +1 -1
  29. package/dist/runs/ports.d.ts +0 -2
  30. package/dist/server/provider-action-gate.d.ts +0 -8
  31. package/dist/server/provider-action-gate.js +2 -19
  32. package/dist/server/provider-action-gate.js.map +1 -1
  33. package/dist/server/run-accounts.d.ts +3 -4
  34. package/dist/server/run-accounts.js +5 -20
  35. package/dist/server/run-accounts.js.map +1 -1
  36. package/dist/server/runner-install-routes.d.ts +10 -10
  37. package/dist/server/server.d.ts +58 -72
  38. package/dist/server/server.js +9 -3
  39. package/dist/server/server.js.map +1 -1
  40. package/dist/workflows/continuation-admission.d.ts +0 -7
  41. package/dist/workflows/continuation-admission.js +8 -21
  42. package/dist/workflows/continuation-admission.js.map +1 -1
  43. package/dist/workflows/input-acknowledgement.d.ts +24 -24
  44. package/dist/workflows/run/continuation-acceptance.d.ts +1 -5
  45. package/dist/workflows/run/continuation-acceptance.js +29 -94
  46. package/dist/workflows/run/continuation-acceptance.js.map +1 -1
  47. package/dist/workflows/run/launch-read-resolver.d.ts +0 -6
  48. package/dist/workflows/run/launch-read-resolver.js +2 -13
  49. package/dist/workflows/run/launch-read-resolver.js.map +1 -1
  50. package/dist/workflows/run/run-settlement.js +0 -6
  51. package/dist/workflows/run/run-settlement.js.map +1 -1
  52. package/dist/workflows/run/worker-questions.d.ts +0 -4
  53. package/dist/workflows/run/worker-questions.js +8 -42
  54. package/dist/workflows/run/worker-questions.js.map +1 -1
  55. package/dist/workflows/step-kind-ids.d.ts +9 -0
  56. package/dist/workflows/step-kind-ids.js +10 -0
  57. package/dist/workflows/step-kind-ids.js.map +1 -0
  58. package/dist/workflows/wait-kind-ids.d.ts +11 -0
  59. package/dist/workflows/wait-kind-ids.js +34 -0
  60. package/dist/workflows/wait-kind-ids.js.map +1 -0
  61. package/package.json +4 -4
  62. package/web/dist/assets/{accounts-section-BkKQ8sVH.js → accounts-section-D3P_Z-Nu.js} +1 -1
  63. package/web/dist/assets/{activity-motion-D80Uv4-Z.js → activity-motion-BW-0k8s7.js} +1 -1
  64. package/web/dist/assets/{activity-route-DVT8IWTR.js → activity-route-Bpgblioe.js} +1 -1
  65. package/web/dist/assets/{agent-config-section-BbwkJunW.js → agent-config-section-Cj3w7UIn.js} +1 -1
  66. package/web/dist/assets/{agent-defaults-section-BLNTIZT_.js → agent-defaults-section-BJ4poe9c.js} +1 -1
  67. package/web/dist/assets/{appearance-B6YBsmTo.js → appearance-BUsUTPF0.js} +1 -1
  68. package/web/dist/assets/{archive-on-merge-field-Bx1bEmI8.js → archive-on-merge-field-D_kgBFNv.js} +1 -1
  69. package/web/dist/assets/attention-lvUYNNvV.js +1 -0
  70. package/web/dist/assets/{automation-format-BsnXeUET.js → automation-format-1lHzRTbq.js} +1 -1
  71. package/web/dist/assets/automations-route-CZaUrmDs.js +1 -0
  72. package/web/dist/assets/{cez-idle-Crszm9Ts.js → cez-idle-BY3rjM_y.js} +1 -1
  73. package/web/dist/assets/{commit-diff-panel-DKUnniap.js → commit-diff-panel-xwLW6Ydr.js} +1 -1
  74. package/web/dist/assets/{diff-DUbLBjbg.js → diff-BB8SoL-s.js} +2 -2
  75. package/web/dist/assets/{diff-view-D_bjQyDl.js → diff-view-O8lx1ztb.js} +1 -1
  76. package/web/dist/assets/{file-preview-glEH09z8.js → file-preview-BS6M2tBo.js} +1 -1
  77. package/web/dist/assets/{folder-browser-G_9ZgDjg.js → folder-browser-Dsqz0Z1z.js} +1 -1
  78. package/web/dist/assets/{git-toolbar-CTsmGICA.js → git-toolbar-DoPFA36c.js} +1 -1
  79. package/web/dist/assets/{github-BqW9PaQO.js → github-Bjy3WBvf.js} +1 -1
  80. package/web/dist/assets/{global-activity-route-BP_Z7HNc.js → global-activity-route-BXBZKz_9.js} +1 -1
  81. package/web/dist/assets/index-CmadQXcg.js +21 -0
  82. package/web/dist/assets/{label-BWld23ke.js → label-CZp8t0zE.js} +1 -1
  83. package/web/dist/assets/live-protocol-D9ji1YCl.js +64 -0
  84. package/web/dist/assets/{markdown-CT65TA_B.js → markdown-KHcncamw.js} +1 -1
  85. package/web/dist/assets/{notifications-section-DuSzYLwP.js → notifications-section-DD21Sd79.js} +1 -1
  86. package/web/dist/assets/{open-in-menu-D03osLGE.js → open-in-menu-DdKs6X5r.js} +1 -1
  87. package/web/dist/assets/{preview-pane-connected-DHmgDHId.js → preview-pane-connected-BvTZv2SQ.js} +1 -1
  88. package/web/dist/assets/{project-location-BM-6wMI3.js → project-location-B3LBvkz2.js} +1 -1
  89. package/web/dist/assets/{project-router-DtTvMbeA.js → project-router-CIKODSHW.js} +1 -1
  90. package/web/dist/assets/project-scope-context-D1bpJixc.js +4 -0
  91. package/web/dist/assets/{projects-section-Dr0xJWTm.js → projects-section-C0k8kyb-.js} +1 -1
  92. package/web/dist/assets/{prompt-templates-section-COKMgKMw.js → prompt-templates-section-DNkosCni.js} +1 -1
  93. package/web/dist/assets/queries-dHXhD3Hc.js +1 -0
  94. package/web/dist/assets/{reference-chip-DTKtEtWv.js → reference-chip-BWViAFIN.js} +1 -1
  95. package/web/dist/assets/{remote-settings-notice-BV_sPAXc.js → remote-settings-notice-DPCENbhz.js} +1 -1
  96. package/web/dist/assets/{repo-git-BgXC4opq.js → repo-git-jKOnO3ba.js} +1 -1
  97. package/web/dist/assets/{report-reader-CtHvvSln.js → report-reader-DXYiKNcg.js} +1 -1
  98. package/web/dist/assets/{reports-CdbDUzkK.js → reports-DEE0bHNv.js} +1 -1
  99. package/web/dist/assets/{resources-section-C8KZ4hre.js → resources-section-lqXgYTrv.js} +1 -1
  100. package/web/dist/assets/{run-header-RQYKdIMw.js → run-header-CXlUbvDO.js} +1 -1
  101. package/web/dist/assets/runners-CGQjSsir.js +1 -0
  102. package/web/dist/assets/{settings-agent-picker-3uuSf9LK.js → settings-agent-picker-BRvZn4kM.js} +1 -1
  103. package/web/dist/assets/{settings-shell-DnYRfclU.js → settings-shell-DTtd-vIa.js} +1 -1
  104. package/web/dist/assets/{sidebar-section-CCg4QGtg.js → sidebar-section-BFW4ZfBR.js} +1 -1
  105. package/web/dist/assets/{skills-L01dfEnP.js → skills-AImMlT1T.js} +1 -1
  106. package/web/dist/assets/{tab-link-Dl5Mmavw.js → tab-link-CM6SDBtV.js} +1 -1
  107. package/web/dist/assets/{task-changes-DWPWp6ZV.js → task-changes-01Z_ppIw.js} +1 -1
  108. package/web/dist/assets/{task-commits-D576LERH.js → task-commits-DRNIum3J.js} +1 -1
  109. package/web/dist/assets/{task-files-1EjplVVb.js → task-files-Crz7Fo3C.js} +1 -1
  110. package/web/dist/assets/{task-github-item-BubKlTej.js → task-github-item-psG2V47c.js} +1 -1
  111. package/web/dist/assets/task-groups-DF0XoB6U.js +1 -0
  112. package/web/dist/assets/task-thread-Bqg91ZVZ.js +9 -0
  113. package/web/dist/assets/{tasks-table-DTNcYbbN.js → tasks-table-DHTEGteC.js} +1 -1
  114. package/web/dist/assets/{thread-state-BiS8rKQ-.js → thread-state-BWJ2YyXo.js} +1 -1
  115. package/web/dist/assets/{use-hand-to-agent-state-BFx3SZia.js → use-hand-to-agent-state-DNROQerR.js} +1 -1
  116. package/web/dist/assets/{useInfiniteQuery-BnyaEFle.js → useInfiniteQuery-qJeCNhM7.js} +1 -1
  117. package/web/dist/assets/useQuery-C3CQhXsT.js +1 -0
  118. package/web/dist/assets/{workflows-DbuTPPz7.js → workflows-Cx9lgrEo.js} +1 -1
  119. package/web/dist/assets/{workspace-tools-DPnEZoDL.js → workspace-tools-CVitt3kE.js} +1 -1
  120. package/web/dist/assets/{worktrees-section-Vr8s9cio.js → worktrees-section-DxUg4l9n.js} +1 -1
  121. package/web/dist/assets/{ws-Bal5BUy2.js → ws-BisMp6U5.js} +1 -1
  122. package/web/dist/index.html +17 -17
  123. package/web/dist/live-worker.js +1 -1
  124. package/web/dist/assets/attention-otQlgfRj.js +0 -1
  125. package/web/dist/assets/automations-route-BOcGwfd4.js +0 -1
  126. package/web/dist/assets/index-DXIRYobS.js +0 -21
  127. package/web/dist/assets/live-protocol-BXzu6cSE.js +0 -64
  128. package/web/dist/assets/project-scope-context-Dgq8_2JZ.js +0 -4
  129. package/web/dist/assets/queries-yuG-mM6_.js +0 -1
  130. package/web/dist/assets/runners-CDw7wLfd.js +0 -1
  131. package/web/dist/assets/task-groups-D4RYW5I_.js +0 -1
  132. package/web/dist/assets/task-thread-yWACZZAo.js +0 -9
  133. package/web/dist/assets/useQuery-BUslvRIM.js +0 -1
@@ -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;
@@ -5,14 +5,6 @@ import type { WorkflowDef } from '../contract/index.js';
5
5
  /** The registered runners an original workflow executes, in registration order. */
6
6
  export declare function providersRequiredByWorkflow(workflow: WorkflowDef, fallback: ProviderId): ProviderId[];
7
7
  export declare function providerForExistingRun(run: RunRecord, override?: ProviderId): ProviderId;
8
- /** The provider an untouched cancelled run continues on: a worker's first agent step, else the run's runner, else config default. */
9
- export declare function providerForUntouchedRun(run: RunRecord, defaultRunner: () => Promise<ProviderId>): Promise<ProviderId>;
10
- /** Resolve the original, target, and required providers for `POST /runs/:id/continue`. */
11
- export declare function continueRunProviders(run: RunRecord, requestedRunner: string | undefined, untouched: boolean, defaultRunner: () => Promise<ProviderId>): Promise<{
12
- original: ProviderId;
13
- target: ProviderId;
14
- required: ProviderId[];
15
- }>;
16
8
  /**
17
9
  * The named (non-default) account a start will run on, per provider, and its probed sign-in state.
18
10
  * A provider absent here runs on its DEFAULT account, whose state is the provider-status row.
@@ -1,7 +1,6 @@
1
1
  import { controlLocation } from '../contract/index.js';
2
- import { registeredRunnerId, registeredRunners, runnerDefinition, resolveRunnerId } from '../core/runner-registry.js';
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,23 +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(workerContinuationStep(run)?.runner ?? run.runner);
13
- }
14
- /** The provider an untouched cancelled run continues on: a worker's first agent step, else the run's runner, else config default. */
15
- export async function providerForUntouchedRun(run, defaultRunner) {
16
- const stepRunner = workerContinuationStep(run, true)?.runner;
17
- if (stepRunner !== undefined)
18
- return resolveRunnerId(stepRunner);
19
- return run.runner === undefined ? defaultRunner() : resolveRunnerId(run.runner);
20
- }
21
- /** Resolve the original, target, and required providers for `POST /runs/:id/continue`. */
22
- export async function continueRunProviders(run, requestedRunner, untouched, defaultRunner) {
23
- const original = untouched
24
- ? await providerForUntouchedRun(run, defaultRunner)
25
- : providerForExistingRun(run);
26
- const target = requestedRunner === undefined ? original : registeredRunnerId(requestedRunner);
27
- const required = untouched ? providersRequiredByWorkflow(run.workflowDef, target) : [target];
28
- return { original, target, required };
11
+ return resolveRunnerId(run.runner);
29
12
  }
30
13
  export function unavailableProviderMessage(required, response, accounts = new Map()) {
31
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,kBAAkB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AACtH,OAAO,EAAE,2BAA2B,IAAI,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC3G,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AAGrF,mFAAmF;AACnF,MAAM,UAAU,2BAA2B,CAAC,QAAqB,EAAE,QAAoB;IACrF,OAAO,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAC,GAAG,CAA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,OAAO,GAAG,GAAG,EAAE,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACtF,MAAM,MAAM,GAAG,OAAO,EAAE,MAAM,IAAI,GAAG,EAAE,MAAM,CAAC;QAC9C,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 { type GateAccount } from './provider-action-gate.ts';
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, untouched, runners, picks }: AccountScope): Promise<Map<ProviderId, ResolvedAgentProfile>>;
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, untouched?: boolean): string | undefined;
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, workerContinuationStep } from '../contract/index.js';
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, untouched, runners, picks = {} }) {
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, untouched);
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, untouched = false) {
61
- const original = runners?.original ?? providerForExistingRun(run);
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
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,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"}
@@ -51,11 +51,15 @@ export declare function createRunnerInstallRoutes(options: {
51
51
  "/runner-install/:runner": {
52
52
  $post: {
53
53
  output: {
54
- error: string;
55
- code?: "invalid_input" | undefined;
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: 400;
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
- supported: boolean;
71
- installedVersion: string | null;
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: 202;
78
+ status: 400;
79
79
  input: {
80
80
  param: {
81
81
  runner: string;
@@ -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: string;
19212
- outputFormat: "text";
19213
- status: 200;
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
- error: string;
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: string;
19263
- outputFormat: "text";
19264
- status: import("hono/utils/http-status").ContentfulStatusCode;
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
- error: string;
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: string;
35866
- outputFormat: "text";
35867
- status: 200;
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
- error: string;
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: string;
35917
- outputFormat: "text";
35918
- status: import("hono/utils/http-status").ContentfulStatusCode;
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
- error: string;
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;
@@ -152,7 +152,7 @@ import { prepareProjects } from '../project-migration/auto.js';
152
152
  import { freshCliHandoff, openRunApp, openRunCli, openRunDefaultApp } from './open-in-targets.js';
153
153
  import { agentCliRunner, detectOpenTargets } from './open-in-app.js';
154
154
  import { ProviderRuntimeAuthObserver } from './provider-auth-runtime.js';
155
- import { continueRunProviders } from './provider-action-gate.js';
155
+ import { providerForExistingRun, providersRequiredByWorkflow, } from './provider-action-gate.js';
156
156
  import { attachProjectWebhooks, createBootContext, createProviderStatus, emitProviderRow, resolveServerDeps, watchProviderRuntimeAuth, } from './server-deps.js';
157
157
  import { NO_WEBHOOK_ERROR, agentProfileRefusal, clientRequestOf, launchRun, modelLockRefusal, notifyRefusal, providerGateRefusal, replayedRun, resolveStartWorkflow, startRunInput, } from './start-run-options.js';
158
158
  import { ASSET_CACHE_CONTROL, BUILD_HINT_HTML, assetContentType, isSafeAssetFilename, resolveGetRequest, } from './static-ui.js';
@@ -2756,8 +2756,14 @@ export function createApp(deps) {
2756
2756
  return c.json({ error: removedRunnerMessage(run.removedRunner) }, 409);
2757
2757
  }
2758
2758
  const untouched = isUntouchedCancelledRun(run);
2759
- const { original: originalProvider, target: provider, required } = await continueRunProviders(run, parsed.data.runner, untouched, async () => (await loadConfig(repoRoot, deps.home)).defaultRunner);
2760
- const blocked = await providerActionError(required, { repoRoot, run, untouched, runners: { original: originalProvider, target: provider } });
2759
+ const originalProvider = untouched
2760
+ ? run.runner === undefined ? (await loadConfig(repoRoot, deps.home)).defaultRunner : resolveRunnerId(run.runner)
2761
+ : providerForExistingRun(run);
2762
+ const provider = parsed.data.runner === undefined ? originalProvider : registeredRunnerId(parsed.data.runner);
2763
+ const required = untouched
2764
+ ? providersRequiredByWorkflow(run.workflowDef, provider)
2765
+ : [provider];
2766
+ const blocked = await providerActionError(required, { repoRoot, run, runners: { original: originalProvider, target: provider } });
2761
2767
  if (blocked)
2762
2768
  return c.json({ error: blocked }, 409);
2763
2769
  const result = manager.continueRun(id, {