@krapht/ork 1.0.0-alpha.0 → 1.0.0-alpha.10

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 (41) hide show
  1. package/README.md +5 -6
  2. package/dist/{__build_info__-DdTVd2p5.mjs → __build_info__-DFF18K8y.mjs} +72 -3
  3. package/dist/bin.mjs +603 -384
  4. package/dist/{clean-NnboOuz6.mjs → clean-DVaEH9e7.mjs} +5 -2
  5. package/dist/{completion-snnYGjgK.mjs → completion-Dv5kf598.mjs} +6 -6
  6. package/dist/context-CEaKOVmG.mjs +683 -0
  7. package/dist/{decide-B81wCZQg.mjs → decide-3l9q8UtX.mjs} +3 -3
  8. package/dist/{find-BKW-uGey.mjs → find-DEjjOlTG.mjs} +1 -1
  9. package/dist/format-Cb5_m-Qd.mjs +191 -0
  10. package/dist/{in-a-run-BPXX09Bs.mjs → in-a-run-BS9Nc-JW.mjs} +1 -1
  11. package/dist/{limits-JCve2QpI.mjs → limits-BSwEjQST.mjs} +1 -1
  12. package/dist/{list-C7UEgmtd.mjs → list-Qxr6rwsY.mjs} +11 -4
  13. package/dist/{mcp-CKPyNaKD.mjs → mcp-CslnG5wf.mjs} +6 -6
  14. package/dist/output-Bqljtmp_.mjs +40 -0
  15. package/dist/{pause-B_SL_yDz.mjs → pause-D7OVB5Ac.mjs} +4 -4
  16. package/dist/{relay-o-Luee1c.mjs → relay-EceRIebO.mjs} +2 -2
  17. package/dist/{remove-DAZ7ZCzt.mjs → remove-0IQZVWmI.mjs} +14 -7
  18. package/dist/{send-3B64fBNB.mjs → send-C0uwfUYi.mjs} +3 -3
  19. package/dist/{src-DHvWU4tX.mjs → src-Df6KOIDC.mjs} +5682 -3248
  20. package/dist/{src-C38BPzit.mjs → src-cmmXKHn1.mjs} +266 -203
  21. package/dist/{src-BJTegEzY.mjs → src-i5k2Y-kf.mjs} +40 -88
  22. package/dist/src-oaJYIddp.mjs +2255 -0
  23. package/dist/ui/THIRD_PARTY_LICENSES.txt +594 -0
  24. package/dist/ui/assets/app-C8uhHVYp.css +1 -0
  25. package/dist/ui/assets/app-qs8Lofv6.js +75 -0
  26. package/dist/ui/assets/{index-D83F2OKZ.js → index-DV1ZaOk-.js} +3 -3
  27. package/dist/ui/assets/theme-CdXvqTQ6.js +1 -0
  28. package/dist/ui/index.html +2 -2
  29. package/dist/{ui-CY4xxJUu.mjs → ui-CBkHJdqk.mjs} +4 -4
  30. package/dist/{usage-CJnytoe4.mjs → usage-Cd8pEYyK.mjs} +5 -5
  31. package/dist/{watch-BJB82ZJ7.mjs → watch-DW5R2OPO.mjs} +6 -6
  32. package/dist/{workflows-CiM7S3l0.mjs → workflows-BT1gDRIV.mjs} +4 -3
  33. package/dist/{worktrees-86ySXxR6.mjs → worktrees-g1MQMGie.mjs} +78 -19
  34. package/package.json +2 -4
  35. package/dist/context-DO3sBy9v.mjs +0 -274
  36. package/dist/format-CmTlTOjT.mjs +0 -427
  37. package/dist/output-B1V6ZJSx.mjs +0 -950
  38. package/dist/src-Dyz_Gy1q.mjs +0 -1183
  39. package/dist/ui/assets/app-C8nJ6NpT.js +0 -67
  40. package/dist/ui/assets/app-CH7YC3in.css +0 -1
  41. package/dist/ui/assets/theme-3xH5jxKs.js +0 -1
@@ -1,4 +1,4 @@
1
- import { A as gitOk, O as removeWorktree } from "./src-DHvWU4tX.mjs";
1
+ import { N as gitOk, j as removeWorktree } from "./src-Df6KOIDC.mjs";
2
2
  // ../core/src/worktree/clean.ts
3
3
  /**
4
4
  * @file What `ork worktrees clean` and `ork worktrees remove` do with what
@@ -11,6 +11,7 @@ const keyOf = (item) => item.branch ?? item.path ?? `${item.runId}/${item.nodeId
11
11
  /** The reasons no `force` overrides: removing would break something. */
12
12
  const MAIN_CHECKOUT = "checked out in the main checkout";
13
13
  const RUN_GOING = "its run is still going";
14
+ const NOT_ORKS = "not created by Ork";
14
15
  const kept = (item, skip) => ({
15
16
  item,
16
17
  removeWorktree: false,
@@ -19,6 +20,7 @@ const kept = (item, skip) => ({
19
20
  });
20
21
  /** What clean does with one item. */
21
22
  const cleanStep = (item, options) => {
23
+ if (!item.recorded) return kept(item, NOT_ORKS);
22
24
  if (item.inMainCheckout) return kept(item, MAIN_CHECKOUT);
23
25
  if (item.heldBy !== void 0) return kept(item, `checked out in ${item.heldBy}`);
24
26
  if (options.live?.has(item.runId) === true) return kept(item, RUN_GOING);
@@ -45,7 +47,8 @@ const stepActs = (step) => step.removeWorktree || step.deleteBranch || stepPrune
45
47
  * What `ork worktrees clean` would do. A worktree with uncommitted changes, an
46
48
  * unmerged branch, or a detached worktree holding commits no branch has, is
47
49
  * kept unless `force`; one checked out in the main checkout or in a worktree
48
- * Ork didn't create, or whose run is still going, is kept even then.
50
+ * Ork didn't create, whose run is still going, or an `ork/` branch no run
51
+ * recorded creating, is kept even then.
49
52
  */
50
53
  const planClean = (items, filter, options) => items.filter((item) => filter.runId === void 0 || item.runId === filter.runId).filter((item) => filter.key === void 0 || keyOf(item) === filter.key).filter((item) => !filter.merged || item.merged).map((item) => cleanStep(item, options));
51
54
  /**
@@ -1,9 +1,9 @@
1
- import { Qn as NodeIdSchema, ar as CLAUDE_DRIVERS, bn as placeFiles, ht as liveStatus, xn as placeFor } from "./src-DHvWU4tX.mjs";
2
- import { a as builtinWorkflowNames, n as pendingDecisions, o as builtinWorkflowText, s as isBuiltinArg } from "./decide-B81wCZQg.mjs";
3
- import { t as findRun } from "./find-BKW-uGey.mjs";
4
- import { c as openStore, l as storePath, o as writeErr } from "./output-B1V6ZJSx.mjs";
1
+ import { D as openStore, O as storePath, Tn as placeFor, bt as liveStatus, mr as AGENT_DRIVERS, rr as NodeIdSchema, wn as placeFiles } from "./src-Df6KOIDC.mjs";
2
+ import { a as builtinWorkflowNames, n as pendingDecisions, o as builtinWorkflowText, s as isBuiltinArg } from "./decide-3l9q8UtX.mjs";
3
+ import { t as findRun } from "./find-DEjjOlTG.mjs";
5
4
  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-CiM7S3l0.mjs";
5
+ import { o as writeErr } from "./output-Bqljtmp_.mjs";
6
+ import { a as resolveWorkflowArg, n as WORKFLOW_SUFFIX } from "./workflows-BT1gDRIV.mjs";
7
7
  import path from "node:path";
8
8
  import { parse } from "yaml";
9
9
  import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
@@ -117,7 +117,7 @@ const decisions = {
117
117
  };
118
118
  const drivers = {
119
119
  group: "drivers",
120
- values: () => CLAUDE_DRIVERS.map((driver) => ({
120
+ values: () => AGENT_DRIVERS.map((driver) => ({
121
121
  value: driver.id,
122
122
  description: driver.label
123
123
  }))