@krapht/ork 1.0.0-alpha.1 → 1.0.0-alpha.2

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 (30) hide show
  1. package/dist/{__build_info__-D9lSlMFy.mjs → __build_info__-fy6L1Mrd.mjs} +2 -2
  2. package/dist/bin.mjs +28 -28
  3. package/dist/{clean-CA_Oi2Wl.mjs → clean-DaHjs__2.mjs} +1 -1
  4. package/dist/{completion-DBGfL-gN.mjs → completion-CSU5vkEt.mjs} +5 -5
  5. package/dist/{context-6x3kXREO.mjs → context-DT8MfEIR.mjs} +3 -3
  6. package/dist/{decide-CoIJh34e.mjs → decide-CGyx9rv7.mjs} +1 -1
  7. package/dist/{find-rBBk7Jui.mjs → find-D6Gj1sxg.mjs} +1 -1
  8. package/dist/{format-zMmhqyLE.mjs → format-Dnfv8zMT.mjs} +2 -2
  9. package/dist/{in-a-run-DdAakpRR.mjs → in-a-run-pLAZeNys.mjs} +1 -1
  10. package/dist/{limits-BPM9wUlV.mjs → limits-B1-DYc3d.mjs} +1 -1
  11. package/dist/{list-Bv5Lxu7z.mjs → list-BrH8KRSJ.mjs} +1 -1
  12. package/dist/{mcp-DM30MFBw.mjs → mcp-DE_EmyVm.mjs} +6 -6
  13. package/dist/{output-TV_j7Ni0.mjs → output-BLQWD6MJ.mjs} +1 -1
  14. package/dist/{pause-C7lJkSma.mjs → pause-CL6N_Xrj.mjs} +4 -4
  15. package/dist/{relay-BipJYszF.mjs → relay-0SD0erwf.mjs} +2 -2
  16. package/dist/{remove-BDs9isB6.mjs → remove-BeGdqroy.mjs} +3 -3
  17. package/dist/{send-nbkjf3sc.mjs → send-C8tunWhv.mjs} +3 -3
  18. package/dist/{src-B0TT7DBi.mjs → src-BbyEoMn4.mjs} +7 -7
  19. package/dist/{src-B9v0lDc6.mjs → src-CCUKRX51.mjs} +1 -1
  20. package/dist/{src-BxUJPGa5.mjs → src-DOcK8Jfp.mjs} +1 -1
  21. package/dist/{src-hrj2h0IZ.mjs → src-Dujmvv4s.mjs} +19 -4
  22. package/dist/ui/assets/{app-CmkynZyW.js → app-T7wVAhgx.js} +1 -1
  23. package/dist/ui/assets/{index-CPx74lFf.js → index-9dFha9Qn.js} +2 -2
  24. package/dist/ui/index.html +1 -1
  25. package/dist/{ui-B98FSboa.mjs → ui-CTmO2Xzu.mjs} +4 -4
  26. package/dist/{usage-EW7DI6Z7.mjs → usage-DYUmP0i4.mjs} +5 -5
  27. package/dist/{watch-BAkSGaOp.mjs → watch-CtbgDAcz.mjs} +6 -6
  28. package/dist/{workflows-vsEohqa7.mjs → workflows-D1_WVukk.mjs} +3 -3
  29. package/dist/{worktrees-Ahj9rdWK.mjs → worktrees-DdMYoNOC.mjs} +4 -4
  30. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { An as guardedBase, En as inside, Gt as publishPost, Mn as writePlainFile, On as LESSON_CAP_TOKENS, Rt as FEEDBACK_KINDS, Yt as targetOf, Zt as maskSecrets, bn as placeFiles, g as parseVersion, h as isNewer, jn as plainPathInside, kn as estimateTokens, m as compareVersions, qt as fingerprint, xn as placeFor, zt as FEEDBACK_SEVERITIES } from "./src-hrj2h0IZ.mjs";
1
+ import { An as guardedBase, En as inside, Gt as publishPost, Mn as writePlainFile, On as LESSON_CAP_TOKENS, Rt as FEEDBACK_KINDS, Yt as targetOf, Zt as maskSecrets, bn as placeFiles, g as parseVersion, h as isNewer, jn as plainPathInside, kn as estimateTokens, m as compareVersions, qt as fingerprint, xn as placeFor, zt as FEEDBACK_SEVERITIES } from "./src-Dujmvv4s.mjs";
2
2
  import path from "node:path";
3
3
  import { existsSync, mkdirSync, readFileSync, realpathSync, renameSync, writeFileSync } from "node:fs";
4
4
  import { homedir } from "node:os";
@@ -611,5 +611,5 @@ const registryShown = (registry) => {
611
611
  * fails when it is stale.
612
612
  */
613
613
  const ORK_NAME = "@krapht/ork";
614
- const ORK_VERSION = "1.0.0-alpha.1";
614
+ const ORK_VERSION = "1.0.0-alpha.2";
615
615
  export { feedbackActions as C, placeOf as S, previewPost as _, registryShown as a, acceptItem as b, checkDue as c, pendingNotice as d, readUpdateCache as f, nodeSession as g, writeUpdateCache as h, registryOf as i, fetchLatest as l, updateCachePath as m, ORK_VERSION as n, updateSwitchOff as o, refreshUpdateCache as p, isSwitchedOn as r, runInstall as s, ORK_NAME as t, newerVersion as u, checkNote as v, openFixRun as w, lessonPlaceOf as x, recordNote as y };
package/dist/bin.mjs CHANGED
@@ -1,18 +1,18 @@
1
1
  #!/usr/bin/env node
2
- import { Bn as serializeWorkflow, Bt as FEEDBACK_TARGETS, Cn as runDirOf, D as inspectProject, Dn as projectRootOf, Dt as userMessageText, En as inside, Ft as PROJECT_FILE, H as tellNode, Ht as planPost, I as createCalls, It as gitRulesOf, J as tellLiveRun, Jn as beforeOf, Jt as normalizeTitle, Kn as settingsOf, Kt as createFeedback, L as addressOf, Lt as loadProject, M as clearGitLocalEnv, N as parseInputPairs, P as resolveInputs, R as endLink, Rt as FEEDBACK_KINDS, Sn as projectsHome, Tt as startRun, Un as WorkflowSchema, V as peerOf, W as flattenTree, Wt as sendPost, Xt as maskReplacer, Yn as isClaudeNode, _ as lateTriggers, _n as hasInRepoFiles, _t as runStatus, an as wakeRun, ar as CLAUDE_DRIVERS, bn as placeFiles, cn as planMoveInto, d as runningRunIds, dn as toolsInUse, dt as namingNoDriver, er as INTEGRATIONS, et as adoptedCalls, f as runningScript, fn as createAgent, ft as sessionDriver, h as isNewer, hn as loadAgents, ht as liveStatus, i as NOT_STARTED, in as socketRoom, ir as ORK_LAYOUT, it as replayLoopAnswers, l as planUpgrade, ln as linkTools, mn as catalogAgent, n as resolveBase, nn as serveRun, nt as resumable, on as planAgentMigration, or as firstLine, ot as detachRun, pn as deleteAgent, q as requestStop, qt as fingerprint, rn as socketPath, rr as AGENT_TOOL_LAYOUTS, rt as createReplay, sn as applySteps, st as followEvents, t as createWorkspace, tt as detachResume, u as releaseNotes, un as toolLinks, ut as planNodeSession, v as triggersReport, vn as inRepoPlace, vt as runTree, wn as shownPath, wt as walkSummary, xn as placeFor, yn as newProjectId, z as endLinksOf, zt as FEEDBACK_SEVERITIES } from "./src-hrj2h0IZ.mjs";
3
- import { C as feedbackActions, S as placeOf, _ as previewPost, b as acceptItem, c as checkDue, d as pendingNotice, f as readUpdateCache, g as nodeSession, h as writeUpdateCache, i as registryOf, l as fetchLatest, m as updateCachePath, n as ORK_VERSION, o as updateSwitchOff, p as refreshUpdateCache, r as isSwitchedOn, s as runInstall, t as ORK_NAME, u as newerVersion$1, v as checkNote, w as openFixRun, y as recordNote } from "./__build_info__-D9lSlMFy.mjs";
4
- import { i as builtinWorkflowFile, n as pendingDecisions, r as builtinProblem, t as answerDecision } from "./decide-CoIJh34e.mjs";
5
- import { n as newRunId, t as findRun } from "./find-rBBk7Jui.mjs";
6
- import { a as write, c as openStore, i as style, l as storePath, n as cost, o as writeErr, s as nodeOf, t as confirm } from "./output-TV_j7Ni0.mjs";
7
- import { n as listOrkWorktrees, t as createdWorktrees } from "./list-Bv5Lxu7z.mjs";
8
- import { a as planClean, t as applyClean } from "./clean-CA_Oi2Wl.mjs";
2
+ import { Bn as serializeWorkflow, Bt as FEEDBACK_TARGETS, Cn as runDirOf, D as inspectProject, Dn as projectRootOf, Dt as userMessageText, En as inside, Ft as PROJECT_FILE, H as tellNode, Ht as planPost, I as createCalls, It as gitRulesOf, J as tellLiveRun, Jn as beforeOf, Jt as normalizeTitle, Kn as settingsOf, Kt as createFeedback, L as addressOf, Lt as loadProject, M as clearGitLocalEnv, N as parseInputPairs, P as resolveInputs, R as endLink, Rt as FEEDBACK_KINDS, Sn as projectsHome, Tt as startRun, Un as WorkflowSchema, V as peerOf, W as flattenTree, Wt as sendPost, Xt as maskReplacer, Yn as isClaudeNode, _ as lateTriggers, _n as hasInRepoFiles, _t as runStatus, an as wakeRun, ar as CLAUDE_DRIVERS, bn as placeFiles, cn as planMoveInto, d as runningRunIds, dn as toolsInUse, dt as namingNoDriver, er as INTEGRATIONS, et as adoptedCalls, f as runningScript, fn as createAgent, ft as sessionDriver, h as isNewer, hn as loadAgents, ht as liveStatus, i as NOT_STARTED, in as socketRoom, ir as ORK_LAYOUT, it as replayLoopAnswers, l as planUpgrade, ln as linkTools, mn as catalogAgent, n as resolveBase, nn as serveRun, nt as resumable, on as planAgentMigration, or as firstLine, ot as detachRun, pn as deleteAgent, q as requestStop, qt as fingerprint, rn as socketPath, rr as AGENT_TOOL_LAYOUTS, rt as createReplay, sn as applySteps, st as followEvents, t as createWorkspace, tt as detachResume, u as releaseNotes, un as toolLinks, ut as planNodeSession, v as triggersReport, vn as inRepoPlace, vt as runTree, wn as shownPath, wt as walkSummary, xn as placeFor, yn as newProjectId, z as endLinksOf, zt as FEEDBACK_SEVERITIES } from "./src-Dujmvv4s.mjs";
3
+ import { C as feedbackActions, S as placeOf, _ as previewPost, b as acceptItem, c as checkDue, d as pendingNotice, f as readUpdateCache, g as nodeSession, h as writeUpdateCache, i as registryOf, l as fetchLatest, m as updateCachePath, n as ORK_VERSION, o as updateSwitchOff, p as refreshUpdateCache, r as isSwitchedOn, s as runInstall, t as ORK_NAME, u as newerVersion$1, v as checkNote, w as openFixRun, y as recordNote } from "./__build_info__-fy6L1Mrd.mjs";
4
+ import { i as builtinWorkflowFile, n as pendingDecisions, r as builtinProblem, t as answerDecision } from "./decide-CGyx9rv7.mjs";
5
+ import { n as newRunId, t as findRun } from "./find-D6Gj1sxg.mjs";
6
+ import { a as write, c as openStore, i as style, l as storePath, n as cost, o as writeErr, s as nodeOf, t as confirm } from "./output-BLQWD6MJ.mjs";
7
+ import { n as listOrkWorktrees, t as createdWorktrees } from "./list-BrH8KRSJ.mjs";
8
+ import { a as planClean, t as applyClean } from "./clean-DaHjs__2.mjs";
9
9
  import { c as subcommandsOf, i as argsOf, n as groupedEntries, o as publicArgs, s as resolved, t as groupOf } from "./help-groups-BwYoAWsh.mjs";
10
- import { a as formatRunEvent, i as formatEvent, n as formatRuns, o as createTerminalHuman, r as formatTree, t as ago } from "./format-zMmhqyLE.mjs";
11
- import { c as registeredProjects, i as refusedBuiltin, n as WORKFLOW_SUFFIX, o as workflowArg, s as projectAt, t as WORKFLOW_DIR } from "./workflows-vsEohqa7.mjs";
12
- import { a as validate, c as warningLines, i as loadWorkflow, o as validateFile, r as formatReport, s as walkLoaded, t as context } from "./context-6x3kXREO.mjs";
13
- import { i as runLimits, r as limitsRefusal, t as chatNotice } from "./limits-BPM9wUlV.mjs";
14
- import { _ as resultOf, a as builtinExecutors, d as maskedEnv, f as maskedNamesOfRun, g as clearOutputFiles, h as sessionEnv, i as onPath, l as clearStateFiles, m as runScrubber, n as missingProgramMessage, r as missingPrograms, t as envProblems } from "./src-BxUJPGa5.mjs";
15
- import { i as decideRefusal, n as chatRefusal } from "./in-a-run-DdAakpRR.mjs";
10
+ import { a as formatRunEvent, i as formatEvent, n as formatRuns, o as createTerminalHuman, r as formatTree, t as ago } from "./format-Dnfv8zMT.mjs";
11
+ import { c as registeredProjects, i as refusedBuiltin, n as WORKFLOW_SUFFIX, o as workflowArg, s as projectAt, t as WORKFLOW_DIR } from "./workflows-D1_WVukk.mjs";
12
+ import { a as validate, c as warningLines, i as loadWorkflow, o as validateFile, r as formatReport, s as walkLoaded, t as context } from "./context-DT8MfEIR.mjs";
13
+ import { i as runLimits, r as limitsRefusal, t as chatNotice } from "./limits-B1-DYc3d.mjs";
14
+ import { _ as resultOf, a as builtinExecutors, d as maskedEnv, f as maskedNamesOfRun, g as clearOutputFiles, h as sessionEnv, i as onPath, l as clearStateFiles, m as runScrubber, n as missingProgramMessage, r as missingPrograms, t as envProblems } from "./src-DOcK8Jfp.mjs";
15
+ import { i as decideRefusal, n as chatRefusal } from "./in-a-run-pLAZeNys.mjs";
16
16
  import path from "node:path";
17
17
  import { stringify } from "yaml";
18
18
  import { z } from "zod";
@@ -1685,7 +1685,7 @@ const flagValues = (rawArgs, flag) => {
1685
1685
  };
1686
1686
  const isDriver = (value) => CLAUDE_DRIVERS.some((d) => d.id === value);
1687
1687
  /** Loads the drivers only when a run starts, so other commands stay fast. */
1688
- const loadRuntime = async (driver) => (await import("./src-B9v0lDc6.mjs")).createRuntime(driver, sessionEnv(process.env));
1688
+ const loadRuntime = async (driver) => (await import("./src-CCUKRX51.mjs")).createRuntime(driver, sessionEnv(process.env));
1689
1689
  /**
1690
1690
  * Ctrl-C asks the run to stop, and so does a terminal closing or a polite kill,
1691
1691
  * so that the run ends tidily and leaves no result unscrubbed.
@@ -4575,27 +4575,27 @@ const main = defineCommand({
4575
4575
  ps,
4576
4576
  logs,
4577
4577
  tree,
4578
- usage: () => import("./usage-EW7DI6Z7.mjs").then((module) => module.usage),
4579
- prune: () => import("./usage-EW7DI6Z7.mjs").then((module) => module.prune),
4578
+ usage: () => import("./usage-DYUmP0i4.mjs").then((module) => module.usage),
4579
+ prune: () => import("./usage-DYUmP0i4.mjs").then((module) => module.prune),
4580
4580
  decide,
4581
- relay: () => import("./relay-BipJYszF.mjs").then((module) => module.relay),
4582
- pause: () => import("./pause-C7lJkSma.mjs").then((module) => module.pause),
4583
- continue: () => import("./pause-C7lJkSma.mjs").then((module) => module.continueRun),
4581
+ relay: () => import("./relay-0SD0erwf.mjs").then((module) => module.relay),
4582
+ pause: () => import("./pause-CL6N_Xrj.mjs").then((module) => module.pause),
4583
+ continue: () => import("./pause-CL6N_Xrj.mjs").then((module) => module.continueRun),
4584
4584
  stop,
4585
4585
  chat,
4586
- send: () => import("./send-nbkjf3sc.mjs").then((module) => module.send),
4586
+ send: () => import("./send-C8tunWhv.mjs").then((module) => module.send),
4587
4587
  resume,
4588
4588
  feedback,
4589
4589
  context,
4590
- worktrees: () => import("./worktrees-Ahj9rdWK.mjs").then((module) => module.worktrees),
4591
- wt: () => import("./worktrees-Ahj9rdWK.mjs").then((module) => module.worktrees),
4592
- watch: () => import("./watch-BAkSGaOp.mjs").then((module) => module.watch),
4593
- mcp: () => import("./mcp-DM30MFBw.mjs").then((module) => module.mcp),
4594
- ui: () => import("./ui-B98FSboa.mjs").then((module) => module.ui),
4590
+ worktrees: () => import("./worktrees-DdMYoNOC.mjs").then((module) => module.worktrees),
4591
+ wt: () => import("./worktrees-DdMYoNOC.mjs").then((module) => module.worktrees),
4592
+ watch: () => import("./watch-CtbgDAcz.mjs").then((module) => module.watch),
4593
+ mcp: () => import("./mcp-DE_EmyVm.mjs").then((module) => module.mcp),
4594
+ ui: () => import("./ui-CTmO2Xzu.mjs").then((module) => module.ui),
4595
4595
  doctor,
4596
4596
  upgrade,
4597
- completion: () => import("./completion-DBGfL-gN.mjs").then((module) => module.completion),
4598
- __complete: () => import("./completion-DBGfL-gN.mjs").then((module) => module.completeCommand(main))
4597
+ completion: () => import("./completion-CSU5vkEt.mjs").then((module) => module.completion),
4598
+ __complete: () => import("./completion-CSU5vkEt.mjs").then((module) => module.completeCommand(main))
4599
4599
  }
4600
4600
  });
4601
4601
  // src/bin.ts
@@ -4613,7 +4613,7 @@ const main = defineCommand({
4613
4613
  clearGitLocalEnv();
4614
4614
  const argv = process.argv.slice(2);
4615
4615
  if (argv[0] === "__complete") {
4616
- const { printCompletions } = await import("./completion-DBGfL-gN.mjs");
4616
+ const { printCompletions } = await import("./completion-CSU5vkEt.mjs");
4617
4617
  await printCompletions(main, argv.slice(1));
4618
4618
  } else if (process.env["ORK_UPDATE_CHECK_CHILD"] === "1") await runUpdateChild();
4619
4619
  else {
@@ -1,4 +1,4 @@
1
- import { A as gitOk, O as removeWorktree } from "./src-hrj2h0IZ.mjs";
1
+ import { A as gitOk, O as removeWorktree } from "./src-Dujmvv4s.mjs";
2
2
  // ../core/src/worktree/clean.ts
3
3
  /**
4
4
  * @file What `ork worktrees clean` and `ork worktrees remove` do with what
@@ -1,9 +1,9 @@
1
- import { Qn as NodeIdSchema, ar as CLAUDE_DRIVERS, bn as placeFiles, ht as liveStatus, xn as placeFor } from "./src-hrj2h0IZ.mjs";
2
- import { a as builtinWorkflowNames, n as pendingDecisions, o as builtinWorkflowText, s as isBuiltinArg } from "./decide-CoIJh34e.mjs";
3
- import { t as findRun } from "./find-rBBk7Jui.mjs";
4
- import { c as openStore, l as storePath, o as writeErr } from "./output-TV_j7Ni0.mjs";
1
+ import { Qn as NodeIdSchema, ar as CLAUDE_DRIVERS, bn as placeFiles, ht as liveStatus, xn as placeFor } from "./src-Dujmvv4s.mjs";
2
+ import { a as builtinWorkflowNames, n as pendingDecisions, o as builtinWorkflowText, s as isBuiltinArg } from "./decide-CGyx9rv7.mjs";
3
+ import { t as findRun } from "./find-D6Gj1sxg.mjs";
4
+ import { c as openStore, l as storePath, o as writeErr } from "./output-BLQWD6MJ.mjs";
5
5
  import { a as findEntry, c as subcommandsOf, d as SHELL_SCRIPTS, l as COMPLETE_COMMAND, n as groupedEntries, r as argInfoOf, t as groupOf, u as SHELLS } from "./help-groups-BwYoAWsh.mjs";
6
- import { a as resolveWorkflowArg, n as WORKFLOW_SUFFIX } from "./workflows-vsEohqa7.mjs";
6
+ import { a as resolveWorkflowArg, n as WORKFLOW_SUFFIX } from "./workflows-D1_WVukk.mjs";
7
7
  import path from "node:path";
8
8
  import { parse } from "yaml";
9
9
  import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
@@ -1,6 +1,6 @@
1
- import { C as workflowTextHash, Ct as walkChecks, On as LESSON_CAP_TOKENS, S as readProjectTriggers, St as checkWorkflowText, Tn as workflowDirOf, bn as placeFiles, lt as explainSession, wt as walkSummary, xn as placeFor } from "./src-hrj2h0IZ.mjs";
2
- import { a as write, i as style, r as plain } from "./output-TV_j7Ni0.mjs";
3
- import { c as registeredProjects, i as refusedBuiltin, o as workflowArg, r as findWorkflowFiles, s as projectAt } from "./workflows-vsEohqa7.mjs";
1
+ import { C as workflowTextHash, Ct as walkChecks, On as LESSON_CAP_TOKENS, S as readProjectTriggers, St as checkWorkflowText, Tn as workflowDirOf, bn as placeFiles, lt as explainSession, wt as walkSummary, xn as placeFor } from "./src-Dujmvv4s.mjs";
2
+ import { a as write, i as style, r as plain } from "./output-BLQWD6MJ.mjs";
3
+ import { c as registeredProjects, i as refusedBuiltin, o as workflowArg, r as findWorkflowFiles, s as projectAt } from "./workflows-D1_WVukk.mjs";
4
4
  import path from "node:path";
5
5
  import { readFileSync } from "node:fs";
6
6
  import { defineCommand } from "citty";
@@ -1,4 +1,4 @@
1
- import { An as guardedBase, Mn as writePlainFile, an as wakeRun, bn as placeFiles, ht as liveStatus, jn as plainPathInside, rn as socketPath } from "./src-hrj2h0IZ.mjs";
1
+ import { An as guardedBase, Mn as writePlainFile, an as wakeRun, bn as placeFiles, ht as liveStatus, jn as plainPathInside, rn as socketPath } from "./src-Dujmvv4s.mjs";
2
2
  import path from "node:path";
3
3
  import { existsSync, readFileSync } from "node:fs";
4
4
  import { createHash } from "node:crypto";
@@ -1,4 +1,4 @@
1
- import { xn as placeFor } from "./src-hrj2h0IZ.mjs";
1
+ import { xn as placeFor } from "./src-Dujmvv4s.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  // ../core/src/remote/find.ts
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { ht as liveStatus } from "./src-hrj2h0IZ.mjs";
2
- import { i as style, n as cost } from "./output-TV_j7Ni0.mjs";
1
+ import { ht as liveStatus } from "./src-Dujmvv4s.mjs";
2
+ import { i as style, n as cost } from "./output-BLQWD6MJ.mjs";
3
3
  import { createInterface } from "node:readline/promises";
4
4
  // src/human.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { p as runMarkerIn } from "./src-BxUJPGa5.mjs";
1
+ import { p as runMarkerIn } from "./src-DOcK8Jfp.mjs";
2
2
  // src/commands/in-a-run.ts
3
3
  /**
4
4
  * @file The commands that act as the user refuse a program or an agent in a run
@@ -1,4 +1,4 @@
1
- import { a as limitsNow, i as NOT_STARTED, o as limitsReport, r as capsHere } from "./src-hrj2h0IZ.mjs";
1
+ import { a as limitsNow, i as NOT_STARTED, o as limitsReport, r as capsHere } from "./src-Dujmvv4s.mjs";
2
2
  // src/run/limits.ts
3
3
  /**
4
4
  * @file The limits across runs that apply here (RFC-007): the user's settings
@@ -1,4 +1,4 @@
1
- import { A as gitOk, j as lines, k as git } from "./src-hrj2h0IZ.mjs";
1
+ import { A as gitOk, j as lines, k as git } from "./src-Dujmvv4s.mjs";
2
2
  import { existsSync } from "node:fs";
3
3
  // ../core/src/worktree/list.ts
4
4
  /**
@@ -1,8 +1,8 @@
1
- import { h as isNewer } from "./src-hrj2h0IZ.mjs";
2
- import { n as ORK_VERSION } from "./__build_info__-D9lSlMFy.mjs";
3
- import { a as openMcp, c as refused, o as tool, s as answer } from "./src-B0TT7DBi.mjs";
4
- import { n as explainNode } from "./context-6x3kXREO.mjs";
5
- import { p as runMarkerIn } from "./src-BxUJPGa5.mjs";
1
+ import { h as isNewer } from "./src-Dujmvv4s.mjs";
2
+ import { n as ORK_VERSION } from "./__build_info__-fy6L1Mrd.mjs";
3
+ import { a as openMcp, c as refused, o as tool, s as answer } from "./src-BbyEoMn4.mjs";
4
+ import { n as explainNode } from "./context-DT8MfEIR.mjs";
5
+ import { p as runMarkerIn } from "./src-DOcK8Jfp.mjs";
6
6
  import { z } from "zod";
7
7
  import { defineCommand } from "citty";
8
8
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
@@ -43,7 +43,7 @@ const orkMcpServer = (options = {}) => {
43
43
  ...options.script === void 0 ? {} : { script: options.script }
44
44
  });
45
45
  const all = [...opened.tools, explainTool(opened, options.home)];
46
- const tools = options.expects !== void 0 && isNewer(options.expects, "1.0.0-alpha.1") ? tooOld(all, options.expects) : all;
46
+ const tools = options.expects !== void 0 && isNewer(options.expects, "1.0.0-alpha.2") ? tooOld(all, options.expects) : all;
47
47
  const server = new McpServer({
48
48
  name: "ork",
49
49
  version: ORK_VERSION
@@ -1,4 +1,4 @@
1
- import { $ as text, Bt as FEEDBACK_TARGETS, Q as inTransaction, Rt as FEEDBACK_KINDS, X as usageQueries, Xt as maskReplacer, Y as backfillUsage, Z as eventOf, Zt as maskSecrets, gn as PROJECT_MODES, yt as ownProcessStart, zt as FEEDBACK_SEVERITIES } from "./src-hrj2h0IZ.mjs";
1
+ import { $ as text, Bt as FEEDBACK_TARGETS, Q as inTransaction, Rt as FEEDBACK_KINDS, X as usageQueries, Xt as maskReplacer, Y as backfillUsage, Z as eventOf, Zt as maskSecrets, gn as PROJECT_MODES, yt as ownProcessStart, zt as FEEDBACK_SEVERITIES } from "./src-Dujmvv4s.mjs";
2
2
  import path from "node:path";
3
3
  import { mkdirSync } from "node:fs";
4
4
  import { homedir } from "node:os";
@@ -1,7 +1,7 @@
1
- import { G as requestContinue, K as requestPause } from "./src-hrj2h0IZ.mjs";
2
- import { t as findRun } from "./find-rBBk7Jui.mjs";
3
- import { a as write, c as openStore, i as style, o as writeErr } from "./output-TV_j7Ni0.mjs";
4
- import { r as continueRefusal } from "./in-a-run-DdAakpRR.mjs";
1
+ import { G as requestContinue, K as requestPause } from "./src-Dujmvv4s.mjs";
2
+ import { t as findRun } from "./find-D6Gj1sxg.mjs";
3
+ import { a as write, c as openStore, i as style, o as writeErr } from "./output-BLQWD6MJ.mjs";
4
+ import { r as continueRefusal } from "./in-a-run-pLAZeNys.mjs";
5
5
  import { defineCommand } from "citty";
6
6
  // src/commands/pause.ts
7
7
  /**
@@ -1,5 +1,5 @@
1
- import { B as linkNodes, L as addressOf, U as unlinkNodes } from "./src-hrj2h0IZ.mjs";
2
- import { a as write, c as openStore, i as style, o as writeErr } from "./output-TV_j7Ni0.mjs";
1
+ import { B as linkNodes, L as addressOf, U as unlinkNodes } from "./src-Dujmvv4s.mjs";
2
+ import { a as write, c as openStore, i as style, o as writeErr } from "./output-BLQWD6MJ.mjs";
3
3
  import { defineCommand } from "citty";
4
4
  // src/commands/relay.ts
5
5
  /**
@@ -1,6 +1,6 @@
1
- import { ht as liveStatus, j as lines, k as git } from "./src-hrj2h0IZ.mjs";
2
- import { n as listOrkWorktrees, t as createdWorktrees } from "./list-Bv5Lxu7z.mjs";
3
- import { i as keyOf, n as applyStep, r as cleanStep, s as stepPrunes } from "./clean-CA_Oi2Wl.mjs";
1
+ import { ht as liveStatus, j as lines, k as git } from "./src-Dujmvv4s.mjs";
2
+ import { n as listOrkWorktrees, t as createdWorktrees } from "./list-BrH8KRSJ.mjs";
3
+ import { i as keyOf, n as applyStep, r as cleanStep, s as stepPrunes } from "./clean-DaHjs__2.mjs";
4
4
  // ../core/src/worktree/words.ts
5
5
  /**
6
6
  * @file The plain words for what `ork worktrees` shows, in one place, so the
@@ -1,6 +1,6 @@
1
- import { an as wakeRun, ht as liveStatus, kt as scriptContactsOf, rn as socketPath } from "./src-hrj2h0IZ.mjs";
2
- import { c as openStore, o as writeErr } from "./output-TV_j7Ni0.mjs";
3
- import { u as inheritedScrubber } from "./src-BxUJPGa5.mjs";
1
+ import { an as wakeRun, ht as liveStatus, kt as scriptContactsOf, rn as socketPath } from "./src-Dujmvv4s.mjs";
2
+ import { c as openStore, o as writeErr } from "./output-BLQWD6MJ.mjs";
3
+ import { u as inheritedScrubber } from "./src-DOcK8Jfp.mjs";
4
4
  import { defineCommand } from "citty";
5
5
  // ../core/src/remote/send.ts
6
6
  /**
@@ -1,11 +1,11 @@
1
- import { B as linkNodes, Cn as runDirOf, Ct as walkChecks, En as inside, Fn as applyEdits, G as requestContinue, Gn as expandEdge, Hn as EdgeInputSchema, Ht as planPost, In as newWorkflowText, J as tellLiveRun, K as requestPause, Ln as readDocument, Nn as skillsIn, Nt as nodeSays, On as LESSON_CAP_TOKENS, Pn as WorkflowEditSchema, Rn as renderJsonSchema, St as checkWorkflowText, Tn as workflowDirOf, U as unlinkNodes, Ut as runGh, Vt as DISCUSSIONS, Wt as sendPost, _t as runStatus, bn as placeFiles, bt as processAlive, ct as explainWorkflowText, d as runningRunIds, f as runningScript, gt as pausedOf, hn as loadAgents, ht as liveStatus, l as planUpgrade, nt as resumable, o as limitsReport, ot as detachRun, p as detectInstaller, q as requestStop, qn as NodeSchema, r as capsHere, st as followEvents, tn as readCondition, tt as detachResume, u as releaseNotes, v as triggersReport, vt as runTree, wt as walkSummary, xn as placeFor, zn as parseWorkflow } from "./src-hrj2h0IZ.mjs";
2
- import { C as feedbackActions, S as placeOf$1, _ as previewPost, a as registryShown, b as acceptItem, c as checkDue, f as readUpdateCache, g as nodeSession, h as writeUpdateCache, i as registryOf, l as fetchLatest, m as updateCachePath, o as updateSwitchOff, p as refreshUpdateCache, s as runInstall, u as newerVersion, w as openFixRun, x as lessonPlaceOf, y as recordNote } from "./__build_info__-D9lSlMFy.mjs";
3
- import { n as pendingDecisions, r as builtinProblem, t as answerDecision } from "./decide-CoIJh34e.mjs";
4
- import { n as newRunId, t as findRun } from "./find-rBBk7Jui.mjs";
5
- import { c as openStore, l as storePath, s as nodeOf } from "./output-TV_j7Ni0.mjs";
1
+ import { B as linkNodes, Cn as runDirOf, Ct as walkChecks, En as inside, Fn as applyEdits, G as requestContinue, Gn as expandEdge, Hn as EdgeInputSchema, Ht as planPost, In as newWorkflowText, J as tellLiveRun, K as requestPause, Ln as readDocument, Nn as skillsIn, Nt as nodeSays, On as LESSON_CAP_TOKENS, Pn as WorkflowEditSchema, Rn as renderJsonSchema, St as checkWorkflowText, Tn as workflowDirOf, U as unlinkNodes, Ut as runGh, Vt as DISCUSSIONS, Wt as sendPost, _t as runStatus, bn as placeFiles, bt as processAlive, ct as explainWorkflowText, d as runningRunIds, f as runningScript, gt as pausedOf, hn as loadAgents, ht as liveStatus, l as planUpgrade, nt as resumable, o as limitsReport, ot as detachRun, p as detectInstaller, q as requestStop, qn as NodeSchema, r as capsHere, st as followEvents, tn as readCondition, tt as detachResume, u as releaseNotes, v as triggersReport, vt as runTree, wt as walkSummary, xn as placeFor, zn as parseWorkflow } from "./src-Dujmvv4s.mjs";
2
+ import { C as feedbackActions, S as placeOf$1, _ as previewPost, a as registryShown, b as acceptItem, c as checkDue, f as readUpdateCache, g as nodeSession, h as writeUpdateCache, i as registryOf, l as fetchLatest, m as updateCachePath, o as updateSwitchOff, p as refreshUpdateCache, s as runInstall, u as newerVersion, w as openFixRun, x as lessonPlaceOf, y as recordNote } from "./__build_info__-fy6L1Mrd.mjs";
3
+ import { n as pendingDecisions, r as builtinProblem, t as answerDecision } from "./decide-CGyx9rv7.mjs";
4
+ import { n as newRunId, t as findRun } from "./find-D6Gj1sxg.mjs";
5
+ import { c as openStore, l as storePath, s as nodeOf } from "./output-BLQWD6MJ.mjs";
6
6
  import { n as usageReport } from "./report-DK4LGqwF.mjs";
7
- import { a as planClean, i as keyOf, o as stepActs, r as cleanStep, s as stepPrunes, t as applyClean } from "./clean-CA_Oi2Wl.mjs";
8
- import { a as readWorktrees, c as planLine, i as projectHead, l as removeRefusal, n as lostWork, o as labelOf, r as planRemove, s as mergeStateOf, t as applyRemove, u as stateParts } from "./remove-BDs9isB6.mjs";
7
+ import { a as planClean, i as keyOf, o as stepActs, r as cleanStep, s as stepPrunes, t as applyClean } from "./clean-DaHjs__2.mjs";
8
+ import { a as readWorktrees, c as planLine, i as projectHead, l as removeRefusal, n as lostWork, o as labelOf, r as planRemove, s as mergeStateOf, t as applyRemove, u as stateParts } from "./remove-BeGdqroy.mjs";
9
9
  import path from "node:path";
10
10
  import { z } from "zod";
11
11
  import { chmodSync, existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
@@ -1,4 +1,4 @@
1
- import { Bt as FEEDBACK_TARGETS, Rt as FEEDBACK_KINDS, pt as parseReport, zt as FEEDBACK_SEVERITIES } from "./src-hrj2h0IZ.mjs";
1
+ import { Bt as FEEDBACK_TARGETS, Rt as FEEDBACK_KINDS, pt as parseReport, zt as FEEDBACK_SEVERITIES } from "./src-Dujmvv4s.mjs";
2
2
  import { z } from "zod";
3
3
  import { randomBytes, timingSafeEqual } from "node:crypto";
4
4
  import { createInterface } from "node:readline";
@@ -1,4 +1,4 @@
1
- import { $n as timeoutMs, $t as parseTemplate, At as runScope, F as declaredProblem, Jn as beforeOf, Mt as envReadsOf, Ot as heldTimeout, Pt as declaredOutputOf, Qt as evaluate, Vn as markValue, Xn as isToolNode, Zn as programsRunBy, en as renderTemplate, er as INTEGRATIONS, ft as sessionDriver, jt as calledWorkflows, mt as reportSchemaFor, nr as integrationFor, s as planReason, tr as TOOL_PREFIX, ut as planNodeSession } from "./src-hrj2h0IZ.mjs";
1
+ import { $n as timeoutMs, $t as parseTemplate, At as runScope, F as declaredProblem, Jn as beforeOf, Mt as envReadsOf, Ot as heldTimeout, Pt as declaredOutputOf, Qt as evaluate, Vn as markValue, Xn as isToolNode, Zn as programsRunBy, en as renderTemplate, er as INTEGRATIONS, ft as sessionDriver, jt as calledWorkflows, mt as reportSchemaFor, nr as integrationFor, s as planReason, tr as TOOL_PREFIX, ut as planNodeSession } from "./src-Dujmvv4s.mjs";
2
2
  import path from "node:path";
3
3
  import { accessSync, constants, existsSync, lstatSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
4
4
  import { spawn } from "node:child_process";
@@ -11357,10 +11357,23 @@ const clearGitLocalEnv = (env = process.env) => {
11357
11357
  * @file A minimal `git` runner for the worktree manager: arguments without a
11358
11358
  * shell, results that never throw, and none of git's local variables (a
11359
11359
  * hook's `GIT_DIR` or `GIT_INDEX_FILE`), so it acts on the repository at
11360
- * `cwd` (specs/worktrees.md).
11361
- */
11362
- /** Runs `git` with arguments (no shell) in `cwd`. Never throws. */
11363
- const git = (cwd, args) => new Promise((resolve) => {
11360
+ * `cwd` (specs/worktrees.md). Commands in one folder run one at a time: two
11361
+ * children handed their owner's work at once both stage it (`git add -A`),
11362
+ * and git refuses the second while the first holds the index's lock.
11363
+ */
11364
+ /** The last command queued in each folder, so the next one waits for it. */
11365
+ const queues = /* @__PURE__ */ new Map();
11366
+ /** Runs `task` after every command queued earlier in the same folder. */
11367
+ const inTurn = (cwd, task) => {
11368
+ const key = path.resolve(cwd);
11369
+ const next = (queues.get(key) ?? Promise.resolve()).then(task, task);
11370
+ queues.set(key, next);
11371
+ next.finally(() => {
11372
+ if (queues.get(key) === next) queues.delete(key);
11373
+ });
11374
+ return next;
11375
+ };
11376
+ const runGit = (cwd, args) => new Promise((resolve) => {
11364
11377
  execFile("git", args, {
11365
11378
  cwd,
11366
11379
  env: withoutGitLocalEnv(process.env),
@@ -11374,6 +11387,8 @@ const git = (cwd, args) => new Promise((resolve) => {
11374
11387
  });
11375
11388
  });
11376
11389
  });
11390
+ /** Runs `git` with arguments (no shell) in `cwd`. Never throws. */
11391
+ const git = (cwd, args) => inTurn(cwd, () => runGit(cwd, args));
11377
11392
  /** Like `git`, but rejects with git's message when the command fails. */
11378
11393
  const gitOk = async (cwd, args) => {
11379
11394
  const result = await git(cwd, args);