@ordewell/core 0.12.2 → 0.12.3

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 (44) hide show
  1. package/dist/{ModeResolver-CA2fUU9h.d.mts → ModeResolver-CkZnbIqs.d.mts} +1 -1
  2. package/dist/{ModeResolver-B64aUZXJ.d.ts → ModeResolver-DS-aCVOP.d.ts} +1 -1
  3. package/dist/{Task-CxGgN6I0.d.mts → Task-D3O49EUo.d.mts} +43 -6
  4. package/dist/{Task-CxGgN6I0.d.ts → Task-D3O49EUo.d.ts} +43 -6
  5. package/dist/{chunk-RZ23BMVR.mjs → chunk-3S5IVTZM.mjs} +80 -22
  6. package/dist/chunk-3S5IVTZM.mjs.map +1 -0
  7. package/dist/{chunk-FX33UKAD.mjs → chunk-IOYBL3E5.mjs} +3 -3
  8. package/dist/{chunk-UDUATSCJ.mjs → chunk-MJKCU4U7.mjs} +1 -1
  9. package/dist/{chunk-UDUATSCJ.mjs.map → chunk-MJKCU4U7.mjs.map} +1 -1
  10. package/dist/{chunk-PKJTN2PD.mjs → chunk-POD3KZQW.mjs} +7 -1
  11. package/dist/chunk-POD3KZQW.mjs.map +1 -0
  12. package/dist/{chunk-2IFKPYPO.mjs → chunk-YZDWWXCB.mjs} +58 -17
  13. package/dist/chunk-YZDWWXCB.mjs.map +1 -0
  14. package/dist/{eventStore-CTCSKS9E.d.ts → eventStore-BcoMsZtU.d.mts} +23 -7
  15. package/dist/{eventStore-CcB8yELZ.d.mts → eventStore-CSFKy48Y.d.ts} +23 -7
  16. package/dist/index.d.mts +248 -112
  17. package/dist/index.d.ts +248 -112
  18. package/dist/index.js +2576 -1104
  19. package/dist/index.js.map +1 -1
  20. package/dist/index.mjs +2240 -866
  21. package/dist/index.mjs.map +1 -1
  22. package/dist/parsing.d.mts +2 -2
  23. package/dist/parsing.d.ts +2 -2
  24. package/dist/parsing.js +43 -15
  25. package/dist/parsing.js.map +1 -1
  26. package/dist/parsing.mjs +3 -3
  27. package/dist/plan-utils.d.mts +4 -4
  28. package/dist/plan-utils.d.ts +4 -4
  29. package/dist/plan-utils.js +65 -14
  30. package/dist/plan-utils.js.map +1 -1
  31. package/dist/plan-utils.mjs +15 -3
  32. package/dist/plan-utils.mjs.map +1 -1
  33. package/dist/{runSettingsText-DFVpe6aU.d.mts → runSettingsText-C6eto6Uv.d.ts} +550 -26
  34. package/dist/{runSettingsText-lKLDsyli.d.ts → runSettingsText-DnzSrB0c.d.mts} +550 -26
  35. package/dist/testing.d.mts +2 -2
  36. package/dist/testing.d.ts +2 -2
  37. package/dist/testing.js.map +1 -1
  38. package/dist/testing.mjs +2 -2
  39. package/docker/task.Dockerfile +7 -4
  40. package/package.json +1 -1
  41. package/dist/chunk-2IFKPYPO.mjs.map +0 -1
  42. package/dist/chunk-PKJTN2PD.mjs.map +0 -1
  43. package/dist/chunk-RZ23BMVR.mjs.map +0 -1
  44. /package/dist/{chunk-FX33UKAD.mjs.map → chunk-IOYBL3E5.mjs.map} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { ChildProcess } from 'child_process';
2
- import { aB as PlannerAllowlist, b3 as RunnerId, az as PlanStatus, aj as LegacyPlanState, ay as PlanState, bk as SkillsService, bf as SkillInfo, aS as RepoGroupLayout, T as IWorktreeIsolation, ab as IsolationRun, X as IsolationHandoff, ax as PlanIsolation, ac as IsolationTaskRecord, bt as TaskIsolation, ag as IsolationView, a6 as IsolationRemoval, bp as Task, aH as PrepareIntent, aL as PreviousWork, J as HandoffCommit, a3 as IsolationOutcome, aP as RepairEvidence, bE as TreeSnapshot, bq as TaskDiffRead, br as TaskDiffResult, a2 as IsolationMergeResult, ai as LandedWork, b0 as RevertWatch, a9 as IsolationRevertResult, bG as UsageRecord, bm as SubagentOutcome, b4 as RunnerSessionCost, p as DiscoveredModel, bJ as VerificationCheck, bz as TaskSkillSnapshot, b7 as ScriptBody, I as HandoffCheck } from './Task-CxGgN6I0.mjs';
2
+ import { aB as PlannerAllowlist, b4 as RunnerId, az as PlanStatus, aj as LegacyPlanState, ay as PlanState, bl as SkillsService, bg as SkillInfo, aT as RepoGroupLayout, T as IWorktreeIsolation, ab as IsolationRun, X as IsolationHandoff, ax as PlanIsolation, ac as IsolationTaskRecord, bu as TaskIsolation, ag as IsolationView, a6 as IsolationRemoval, bq as Task, aI as PrepareIntent, aM as PreviousWork, J as HandoffCommit, a3 as IsolationOutcome, aQ as RepairEvidence, bF as TreeSnapshot, br as TaskDiffRead, bs as TaskDiffResult, a2 as IsolationMergeResult, ai as LandedWork, b1 as RevertWatch, a9 as IsolationRevertResult, bH as UsageRecord, bn as SubagentOutcome, b5 as RunnerSessionCost, p as DiscoveredModel, bK as VerificationCheck, bA as TaskSkillSnapshot, b8 as ScriptBody, I as HandoffCheck } from './Task-D3O49EUo.js';
3
3
  import { z } from 'zod/v4';
4
4
 
5
5
  /**
@@ -2172,8 +2172,8 @@ declare class IsolationRunController {
2172
2172
  takeResolver(resolverId: string): string | undefined;
2173
2173
  /** The tasks added to resolve this task's conflict: one, but for a plan saved before that was the rule (ADR-0015). */
2174
2174
  resolversOf(conflictedId: string): string[];
2175
- /** The paths a task's branch changed since its base, by their place in the workspace. Throws where they cannot be read: a verdict that rests on them fails closed (ADR-0055 D6). */
2176
- changedPaths(taskId: string): Promise<string[]>;
2175
+ /** The paths a task's branch changed since its base, as `changeNames` calls them, `both` asking for both names of each. Throws where they cannot be read: a verdict that rests on them fails closed (ADR-0055 D6). */
2176
+ changedPaths(taskId: string, names?: 'both' | true): Promise<string[]>;
2177
2177
  /** The branch this run's work lands on, which a board's files are compared with (ADR-0057 R9). */
2178
2178
  get integrationBranch(): string | undefined;
2179
2179
  /** See {@link IWorktreeIsolation.blobOn}. */
@@ -2338,15 +2338,31 @@ interface PlacedLaunch {
2338
2338
  }
2339
2339
  /**
2340
2340
  * Where a lease that does not run its session on this host puts its runner. A
2341
- * runner is still handed a cwd and nothing more (ADR-0013): only {@link RunnerProcess}
2342
- * reads this, and an adapter writes the launch it always wrote.
2341
+ * runner is still handed a cwd and nothing more (ADR-0013): {@link RunnerProcess}
2342
+ * reads this, and an adapter writes the launch it always wrote. One whose
2343
+ * protocol names a path takes it from {@link cwd}.
2343
2344
  */
2344
2345
  interface RunnerPlacement {
2346
+ /** The session's working directory as the runner sees it there. */
2347
+ cwd: string;
2345
2348
  place(launch: RunnerLaunch): Promise<PlacedLaunch>;
2346
2349
  /** Make a listener on this host's loopback reachable from there, and answer the URL to reach it by (`endpoints.mcp`). */
2347
2350
  reach(url: string): Promise<string>;
2351
+ /**
2352
+ * Make a listener inside reachable from here, and answer the URL to reach it
2353
+ * by: a runner whose own server the host must speak to, as OpenCode's is.
2354
+ * Absent where only this host's listeners are ever reached from there.
2355
+ */
2356
+ reachIn?(url: string): Promise<string>;
2348
2357
  /** The blob a file holds there, as git would name it, read where the attempt's work is; undefined for what cannot be read. */
2349
2358
  blob(file: string): Promise<string | undefined>;
2359
+ /**
2360
+ * What the lease holds for the runner in place of a key it may not read
2361
+ * (ADR-0059 L7), by the name the runner knows it by: a stand-in token, the
2362
+ * address it is spent at, and what was handed over. Read before a runner
2363
+ * starts, for a runner that must write one into its own configuration.
2364
+ */
2365
+ env?: Readonly<Record<string, string>>;
2350
2366
  }
2351
2367
  /** One repository of an attempt's worktree, for a backend that keeps a copy of it elsewhere. */
2352
2368
  interface LeaseRepo {
@@ -3692,11 +3708,11 @@ type TreeEvent = TreeFact & {
3692
3708
  * lease writes it (ADR-0055 D13).
3693
3709
  */
3694
3710
  interface EventStore {
3695
- /** In order, each batch whole: after a crash a reader finds all of a batch or none of it. Numbers them. */
3711
+ /** In order, each batch whole: after a crash a reader finds all of a batch or none of it. Numbers them. A rejected batch is offered again by the same event objects, which land once. */
3696
3712
  append(events: readonly TreeFact[]): Promise<void>;
3697
3713
  /** What came after the cursor, at `path` and below when one is named. */
3698
3714
  read(after: number, path?: NodePath): AsyncIterable<TreeEvent>;
3699
3715
  close(): Promise<void>;
3700
3716
  }
3701
3717
 
3702
- export { type InvokedCommand as $, AUTO_COMMANDS as A, type BashOptions as B, type CatalogModel as C, type CommandClassification as D, type CommandTier as E, ConsoleLogger as F, DENY_ALL as G, type DiscoveryCommand as H, type EditPlanArgs as I, type EventStore as J, type ExecutionBackend as K, type FetchAllProviderModelsOptions as L, type FindSymbolOptions as M, GIT_READONLY_SUBCOMMANDS as N, GREP_DEFAULT_HEAD_LIMIT as O, type GlobOptions as P, type GrepOptions as Q, type GrepOutputMode as R, type Guarantee as S, type GuaranteeReport as T, type IApproval as U, type IConfig as V, type IFileSystem as W, type ILogger as X, type INotification as Y, type IRunner as Z, type IRunnerSession as _, type AgentAdapter as a, type RunnerFeatures as a$, type IsolatedExecution as a0, IsolationRunController as a1, type LeaseRecord as a2, type LeaseRepo as a3, type LeaseRequest as a4, type LeaseSpec as a5, LineBuffer as a6, type ListModelsArgs as a7, type ListRunnersArgs as a8, type LoadSkillArgs as a9, type PlannerSandboxDeps as aA, PlannerShellSandbox as aB, type PlannerStartOptions as aC, type PlannerTokenScope as aD, type PlannerToolHandler as aE, type PostArgs as aF, type ProjectMcpServer as aG, type ProviderCredentialSource as aH, type ProviderModelLists as aI, type ProviderModelsResult as aJ, type QueuedTaskMessage as aK, READ_ONLY_TASK_TOOLS as aL, REFUSED_COMMANDS as aM, type ReadFileOpts as aN, type ReadTaskArgs as aO, type ResearchShell as aP, type ResearchShellDeps as aQ, type ReservedLease as aR, type RetryTaskArgs as aS, type RunCommandArgs as aT, type RunPlanArgs as aU, type RunnerAuthSpec as aV, type RunnerAuthStatus as aW, type RunnerCommand as aX, type RunnerCommandKind as aY, type RunnerEntry as aZ, type RunnerEnv as a_, type McpClientConfig as aa, type McpCredential as ab, type McpRefusal as ac, type McpTool as ad, type McpToolContext as ae, type McpToolReply as af, type MessageTaskArgs as ag, ModelCatalog as ah, type ModelShortcut as ai, type NodePath as aj, type NotificationAction as ak, ORCHESTRATOR_SHORTCUTS as al, ORDEWELL_MCP_PATH as am, ORDEWELL_MCP_SERVER_NAME as an, type OneTaskArgs as ao, type OpenLease as ap, type OrchestratorOption as aq, OrdewellMcpServer as ar, type OwnSealedRuns as as, type OwnerOnlyFile as at, PLANNER_EXECUTION_TOOLS as au, PLANNER_SANDBOX_DOCS as av, PLANNER_TOOLS as aw, type PlannerBackendId as ax, type PlannerModes as ay, type PlannerSandboxAvailability as az, type AgentAdapterFactory as b, fetchAllProviderModels as b$, type RunnerManifest as b0, type RunnerMcpServer as b1, type RunnerMode as b2, type RunnerModelDiscovery as b3, type RunnerModelRef as b4, type RunnerPlacement as b5, RunnerRegistry as b6, SEALED_LIMITS as b7, SEARCH_EXCLUSIONS as b8, type SandboxBackend as b9, type TaskMessageFrom as bA, type TaskModeAgentAdapter as bB, TaskModeUnsupportedError as bC, type TaskOutputArgs as bD, type TaskQueryArgs as bE, type TaskRunCommandArgs as bF, type TaskRunnerConfig as bG, type TaskRunnerFlags as bH, type TaskShell as bI, type TaskShellSite as bJ, type TaskStartOptions as bK, type TaskTokenScope as bL, type TaskToolHandler as bM, type TaskWebReads as bN, type ToolOutcome as bO, type TreeEvent as bP, type TreeFact as bQ, type UsageLimitSignal as bR, approvalScopes as bS, classifyCommand as bT, clearPlannerSandboxCache as bU, clearResearchShellCache as bV, collectProviderCredentials as bW, defaultLogger as bX, deleteSession as bY, effectiveApprovalMode as bZ, enabledRunners as b_, type SandboxInvocation as ba, type SandboxLaunch as bb, type SandboxLimits as bc, type SandboxProfile as bd, type ScriptExit as be, type ScriptFullOutput as bf, type ScriptRun as bg, type ScriptStatus as bh, type SealedAvailability as bi, type SealedRunOptions as bj, type SessionData as bk, type SessionMeta as bl, type ShellDialect as bm, type ShellLaunch as bn, type SkillLookup as bo, type SpawnFn as bp, type StandingDecision as bq, type StructuredEvent as br, type StructuredTurnEnd as bs, type SubmitPlanArgs as bt, TASK_COMPLETE_TOOL as bu, TASK_COMPLETION_CONTRACT as bv, TASK_SEALED_LIMITS as bw, TASK_TOOLS as bx, type TaskCompleteArgs as by, type TaskDiffArgs as bz, type AgentEvent as c, findRunnerCommand as c0, getLatestSession as c1, idSegment as c2, isGranted as c3, isRunnerApproval as c4, knownModelId as c5, listChildSessions as c6, listSessions as c7, loadChildSession as c8, loadSession as c9, loadSessionPlanState as ca, mcpClientConfig as cb, ownerOnlyConfigFile as cc, parseApprovalModeSetting as cd, plannerToolSet as ce, researchShellWarning as cf, researchToolsPath as cg, resolveModelShortcut as ch, resolvePlannerSandbox as ci, resolveProvider as cj, resolveResearchShell as ck, saveChildSession as cl, saveSession as cm, sessionDataDir as cn, sharedMcpServer as co, taskCompletionContract as cp, taskToolSet as cq, toApprovalDecision as cr, toOrchestratorOptions as cs, toolListing as ct, type AgentProcessDeps as d, type AgentStartOptions as e, type AiProvider as f, type AllProviderModels as g, type AnswerApprovalArgs as h, type ApplyPatchArgs as i, type ApprovalAnswer as j, type ApprovalDecision as k, type ApprovalKind as l, type ApprovalMode as m, type ApprovalModeSetting as n, ApprovalPolicy as o, type ApprovalPolicyOptions as p, type ApprovalRequest as q, type ApprovalSource as r, type AttachState as s, type BoardAuthor as t, type BoardDraft as u, type BoardEntry as v, type BoardPost as w, type CheckpointAnswer as x, type CheckpointArgs as y, type ChildSessionPlace as z };
3718
+ export { type InvokedCommand as $, AUTO_COMMANDS as A, type BashOptions as B, type CatalogModel as C, type CommandClassification as D, type CommandTier as E, ConsoleLogger as F, DENY_ALL as G, type DiscoveryCommand as H, type EditPlanArgs as I, type EventStore as J, type ExecutionBackend as K, type FetchAllProviderModelsOptions as L, type FindSymbolOptions as M, GIT_READONLY_SUBCOMMANDS as N, GREP_DEFAULT_HEAD_LIMIT as O, type GlobOptions as P, type GrepOptions as Q, type GrepOutputMode as R, type Guarantee as S, type GuaranteeReport as T, type IApproval as U, type IConfig as V, type IFileSystem as W, type ILogger as X, type INotification as Y, type IRunner as Z, type IRunnerSession as _, type AgentAdapter as a, type RunnerFeatures as a$, type IsolatedExecution as a0, IsolationRunController as a1, type LeaseRecord as a2, type LeaseRepo as a3, type LeaseRequest as a4, type LeaseSpec as a5, LineBuffer as a6, type ListModelsArgs as a7, type ListRunnersArgs as a8, type LoadSkillArgs as a9, type PlannerSandboxDeps as aA, PlannerShellSandbox as aB, type PlannerStartOptions as aC, type PlannerTokenScope as aD, type PlannerToolHandler as aE, type PostArgs as aF, type ProjectMcpServer as aG, type ProviderCredentialSource as aH, type ProviderModelLists as aI, type ProviderModelsResult as aJ, type QueuedTaskMessage as aK, READ_ONLY_TASK_TOOLS as aL, REFUSED_COMMANDS as aM, type ReadFileOpts as aN, type ReadTaskArgs as aO, type ResearchShell as aP, type ResearchShellDeps as aQ, type ReservedLease as aR, type RetryTaskArgs as aS, type RunCommandArgs as aT, type RunPlanArgs as aU, type RunnerAuthSpec as aV, type RunnerAuthStatus as aW, type RunnerCommand as aX, type RunnerCommandKind as aY, type RunnerEntry as aZ, type RunnerEnv as a_, type McpClientConfig as aa, type McpCredential as ab, type McpRefusal as ac, type McpTool as ad, type McpToolContext as ae, type McpToolReply as af, type MessageTaskArgs as ag, ModelCatalog as ah, type ModelShortcut as ai, type NodePath as aj, type NotificationAction as ak, ORCHESTRATOR_SHORTCUTS as al, ORDEWELL_MCP_PATH as am, ORDEWELL_MCP_SERVER_NAME as an, type OneTaskArgs as ao, type OpenLease as ap, type OrchestratorOption as aq, OrdewellMcpServer as ar, type OwnSealedRuns as as, type OwnerOnlyFile as at, PLANNER_EXECUTION_TOOLS as au, PLANNER_SANDBOX_DOCS as av, PLANNER_TOOLS as aw, type PlannerBackendId as ax, type PlannerModes as ay, type PlannerSandboxAvailability as az, type AgentAdapterFactory as b, enabledRunners as b$, type RunnerLaunch as b0, type RunnerManifest as b1, type RunnerMcpServer as b2, type RunnerMode as b3, type RunnerModelDiscovery as b4, type RunnerModelRef as b5, type RunnerPlacement as b6, RunnerRegistry as b7, SEALED_LIMITS as b8, SEARCH_EXCLUSIONS as b9, type TaskDiffArgs as bA, type TaskMessageFrom as bB, type TaskModeAgentAdapter as bC, TaskModeUnsupportedError as bD, type TaskOutputArgs as bE, type TaskQueryArgs as bF, type TaskRunCommandArgs as bG, type TaskRunnerConfig as bH, type TaskRunnerFlags as bI, type TaskShell as bJ, type TaskShellSite as bK, type TaskStartOptions as bL, type TaskTokenScope as bM, type TaskToolHandler as bN, type TaskWebReads as bO, type ToolOutcome as bP, type TreeEvent as bQ, type TreeFact as bR, type UsageLimitSignal as bS, approvalScopes as bT, classifyCommand as bU, clearPlannerSandboxCache as bV, clearResearchShellCache as bW, collectProviderCredentials as bX, defaultLogger as bY, deleteSession as bZ, effectiveApprovalMode as b_, type SandboxBackend as ba, type SandboxInvocation as bb, type SandboxLaunch as bc, type SandboxLimits as bd, type SandboxProfile as be, type ScriptExit as bf, type ScriptFullOutput as bg, type ScriptRun as bh, type ScriptStatus as bi, type SealedAvailability as bj, type SealedRunOptions as bk, type SessionData as bl, type SessionMeta as bm, type ShellDialect as bn, type ShellLaunch as bo, type SkillLookup as bp, type SpawnFn as bq, type StandingDecision as br, type StructuredEvent as bs, type StructuredTurnEnd as bt, type SubmitPlanArgs as bu, TASK_COMPLETE_TOOL as bv, TASK_COMPLETION_CONTRACT as bw, TASK_SEALED_LIMITS as bx, TASK_TOOLS as by, type TaskCompleteArgs as bz, type AgentEvent as c, fetchAllProviderModels as c0, findRunnerCommand as c1, getLatestSession as c2, idSegment as c3, isGranted as c4, isRunnerApproval as c5, knownModelId as c6, listChildSessions as c7, listSessions as c8, loadChildSession as c9, loadSession as ca, loadSessionPlanState as cb, mcpClientConfig as cc, ownerOnlyConfigFile as cd, parseApprovalModeSetting as ce, plannerToolSet as cf, researchShellWarning as cg, researchToolsPath as ch, resolveModelShortcut as ci, resolvePlannerSandbox as cj, resolveProvider as ck, resolveResearchShell as cl, saveChildSession as cm, saveSession as cn, sessionDataDir as co, sharedMcpServer as cp, taskCompletionContract as cq, taskToolSet as cr, toApprovalDecision as cs, toOrchestratorOptions as ct, toolListing as cu, type AgentProcessDeps as d, type AgentStartOptions as e, type AiProvider as f, type AllProviderModels as g, type AnswerApprovalArgs as h, type ApplyPatchArgs as i, type ApprovalAnswer as j, type ApprovalDecision as k, type ApprovalKind as l, type ApprovalMode as m, type ApprovalModeSetting as n, ApprovalPolicy as o, type ApprovalPolicyOptions as p, type ApprovalRequest as q, type ApprovalSource as r, type AttachState as s, type BoardAuthor as t, type BoardDraft as u, type BoardEntry as v, type BoardPost as w, type CheckpointAnswer as x, type CheckpointArgs as y, type ChildSessionPlace as z };