@krapht/ork 1.0.0-alpha.16 → 1.0.0-alpha.18

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 (46) hide show
  1. package/dist/{__build_info__-DcRdK0Du.mjs → __build_info__-B8TNbFtN.mjs} +2 -2
  2. package/dist/{attach-7lB5_jpr.mjs → attach-CU4Pk42S.mjs} +5 -5
  3. package/dist/{attach-B-FeE1dJ.mjs → attach-qvfyaQXC.mjs} +1 -1
  4. package/dist/bin.mjs +35 -35
  5. package/dist/brief-Bh1FnAHv.mjs +100 -0
  6. package/dist/{builtin-files-BRSOObAv.mjs → builtin-files-dnTP2GaX.mjs} +1 -1
  7. package/dist/{completion-Cgb2qPPh.mjs → completion-CzXUGSVn.mjs} +46 -4
  8. package/dist/{context-BN9A2Nnu.mjs → context-b4_gPlv3.mjs} +3 -3
  9. package/dist/{find-mLYsR0uC.mjs → find-P-VV4B47.mjs} +1 -1
  10. package/dist/{flags-CdgIH1L6.mjs → flags-CqjJ44uW.mjs} +3 -108
  11. package/dist/{follow-ups-DxCsOby1.mjs → follow-ups-B_c1DSpA.mjs} +8 -8
  12. package/dist/{format-hiDvtNGM.mjs → format-BS1qzpkf.mjs} +1 -1
  13. package/dist/in-a-run-DKoMGTNE.mjs +27 -0
  14. package/dist/{install-23g_1ngs.mjs → install-B743Bwzz.mjs} +1 -1
  15. package/dist/{limits-C_Xz_t3C.mjs → limits-DrsKCqaN.mjs} +1 -1
  16. package/dist/{mcp-CWng9I9n.mjs → mcp-BMwekw38.mjs} +6 -6
  17. package/dist/{once-lvwcWfVf.mjs → once-6L8gciJV.mjs} +3 -3
  18. package/dist/parse-BzWpMN-a.mjs +107 -0
  19. package/dist/{pause-Cy11KrXK.mjs → pause-8gnVgICR.mjs} +3 -3
  20. package/dist/{post-C9soCx7i.mjs → post-y1qL1Fnj.mjs} +2 -2
  21. package/dist/{print-BaWiWf4v.mjs → print-DLe4MHn-.mjs} +1 -1
  22. package/dist/{project-records-BRiyQzUo.mjs → project-records-CsILxwfI.mjs} +1 -1
  23. package/dist/{relay-C0M1TWMB.mjs → relay-Bvm9JEoN.mjs} +1 -1
  24. package/dist/{run-B-j3Qxqc.mjs → run-D4yuTmmJ.mjs} +17 -17
  25. package/dist/{run-D_u9V_Ve.mjs → run-y8jI7bAI.mjs} +1 -1
  26. package/dist/{send-qBxj0JbJ.mjs → send-BV9eIxQ7.mjs} +2 -2
  27. package/dist/{src-DHDQ0itC.mjs → src-CVeA4tAw.mjs} +73 -18
  28. package/dist/{src-nXLIwDrt.mjs → src-DWAcd3Sy.mjs} +235 -73
  29. package/dist/{src-DN-RPsil.mjs → src-Frwpx3WF.mjs} +49 -6
  30. package/dist/{src-CXBmaGwS.mjs → src-ygFMh2eP.mjs} +391 -233
  31. package/dist/{store-Dyr1mP8K.mjs → store-B0nGqnPq.mjs} +1 -1
  32. package/dist/ui/assets/app-9Q-62Ywz.css +1 -0
  33. package/dist/ui/assets/app-C4yxmYQR.js +111 -0
  34. package/dist/ui/assets/{index-CVzwYlz3.js → index-CcbJWo5C.js} +2 -2
  35. package/dist/ui/index.html +1 -1
  36. package/dist/{ui-DLrSt5ny.mjs → ui-BZ9BhFw8.mjs} +3 -3
  37. package/dist/{usage-CxmpYYO4.mjs → usage-BIs4j5Rw.mjs} +5 -4
  38. package/dist/{validate-BVrT43GO.mjs → validate-Xn2ZbJQC.mjs} +3 -3
  39. package/dist/{watch-mkLm4t9D.mjs → watch-9VM3DFTp.mjs} +5 -5
  40. package/dist/{workflows-Bvl2Fquu.mjs → workflows-CBYtycIy.mjs} +2 -2
  41. package/dist/{worktrees-DOOCoS2w.mjs → worktrees-C7vfh7y5.mjs} +4 -4
  42. package/package.json +1 -1
  43. package/dist/brief-BvMtIFio.mjs +0 -58
  44. package/dist/in-a-run-a447hxq8.mjs +0 -24
  45. package/dist/ui/assets/app-BPSCxb_l.css +0 -1
  46. package/dist/ui/assets/app-CnNRowFn.js +0 -111
@@ -1,15 +1,87 @@
1
- import { $n as DISCUSSIONS, Cn as linkNodes, D as triggersReport, Dn as requestStop, En as requestPause, F as activeTree, Fn as processAlive, Gn as endOf, Gt as applyClean, Hn as loadProject, I as isNodeEvent, Ir as runDirOf, Jn as END_KINDS, Jr as applyEdits, Jt as planClean, Kr as skillsIn, Kt as cleanStep, L as openStore, Mn as runStatus, Nr as placeFiles, On as tellLiveRun, Pr as placeFor, R as storePath, Rn as nestItems, Rr as workflowDirOf, S as detectInstaller, St as walkSummary, Tn as requestContinue, Vr as LESSON_CAP_TOKENS, Xr as readDocument, Xt as stepPrunes, Yr as newWorkflowText, Yt as stepActs, _ as capsHere, a as planRemove, an as nodeSays, b as runningRunIds, bn as DEFAULT_FOLLOW_UPS_RULE, bt as checkWorkflowText, d as planLine, ei as renderJsonSchema, er as planPost, f as removeRefusal, fn as checkFollowUpsDue, fr as readCondition, g as usageReport, hn as startFollowUpChecks, ht as explainWorkflowText, i as lostWork, ii as EdgeInputSchema, jn as pausedOf, kn as liveStatus, kr as loadAgents, l as labelOf, li as NodeSchema, lt as detachRun, nr as sendPost, nt as answerDecision, o as projectHead, ot as detachResume, p as stateParts, pt as limitsReport, qr as WorkflowEditSchema, qt as keyOf, r as applyRemove, rt as pendingDecisions, s as readWorktrees, si as expandEdge, st as resumable, ti as parseWorkflow, tr as runGh, u as mergeStateOf, ut as followEvents, v as planUpgrade, wn as unlinkNodes, x as runningScript, xt as walkChecks, y as releaseNotes, yn as liveSessionOf, zr as inside } from "./src-DN-RPsil.mjs";
2
- import { a as acceptItem, c as feedbackActions, i as recordNote, l as openFixRun, n as previewPost, o as lessonPlaceOf, s as placeOf$1, t as runInstall } from "./install-23g_1ngs.mjs";
3
- import { _ as dueCause, a as registryShown, c as fetchLatest, d as readUpdateCache, f as refreshUpdateCache, g as changeFollowUp, h as nodeSession, i as registryOf, l as newerVersion, m as writeUpdateCache, o as updateSwitchOff, p as updateCachePath, s as checkDue, v as findFollowUp, y as followUpActions } from "./__build_info__-DcRdK0Du.mjs";
4
- import { t as postFollowUpMessage } from "./post-C9soCx7i.mjs";
5
- import { t as builtinProblem } from "./builtin-files-BRSOObAv.mjs";
6
- import { n as newRunId, t as findRun } from "./find-mLYsR0uC.mjs";
1
+ import { An as liveStatus, Ar as loadAgents, Br as inside, Bt as decisionListTable, D as triggersReport, Dn as requestPause, En as requestContinue, F as activeTree, Fr as placeFor, Gt as worktreeListTable, Hr as LESSON_CAP_TOKENS, Ht as followUpListTable, I as isNodeEvent, In as processAlive, Jr as WorkflowEditSchema, Jt as keyOf, Kn as endOf, Kt as applyClean, L as openStore, Lr as runDirOf, Mn as pausedOf, Nn as runStatus, On as requestStop, Pr as placeFiles, R as storePath, S as detectInstaller, St as walkSummary, Tn as unlinkNodes, Un as loadProject, Ut as runListTable, Vt as feedbackListTable, Wt as usageListTable, Xr as newWorkflowText, Xt as stepActs, Yn as END_KINDS, Yr as applyEdits, Yt as planClean, Zr as readDocument, Zt as stepPrunes, _ as capsHere, a as planRemove, ai as EdgeInputSchema, b as runningRunIds, bn as liveSessionOf, bt as checkWorkflowText, ci as expandEdge, d as planLine, er as DISCUSSIONS, f as removeRefusal, g as usageReport, gn as startFollowUpChecks, ht as explainWorkflowText, i as lostWork, kn as tellLiveRun, l as labelOf, lt as detachRun, ni as parseWorkflow, nr as runGh, nt as answerDecision, o as projectHead, on as nodeSays, ot as detachResume, p as stateParts, pn as checkFollowUpsDue, pr as readCondition, pt as limitsReport, qr as skillsIn, qt as cleanStep, r as applyRemove, rr as sendPost, rt as pendingDecisions, s as readWorktrees, st as resumable, ti as renderJsonSchema, tr as planPost, u as mergeStateOf, ui as NodeSchema, ut as followEvents, v as planUpgrade, wn as linkNodes, x as runningScript, xn as DEFAULT_FOLLOW_UPS_RULE, xt as walkChecks, y as releaseNotes, zn as nestItems, zr as workflowDirOf, zt as LIST_TABLES } from "./src-Frwpx3WF.mjs";
2
+ import { a as acceptItem, c as feedbackActions, i as recordNote, l as openFixRun, n as previewPost, o as lessonPlaceOf, s as placeOf$1, t as runInstall } from "./install-B743Bwzz.mjs";
3
+ import { _ as dueCause, a as registryShown, c as fetchLatest, d as readUpdateCache, f as refreshUpdateCache, g as changeFollowUp, h as nodeSession, i as registryOf, l as newerVersion, m as writeUpdateCache, o as updateSwitchOff, p as updateCachePath, s as checkDue, v as findFollowUp, y as followUpActions } from "./__build_info__-B8TNbFtN.mjs";
4
+ import { t as postFollowUpMessage } from "./post-y1qL1Fnj.mjs";
5
+ import { t as applyFilters } from "./apply-Mb0fNpCX.mjs";
6
+ import { t as parseFilters } from "./parse-BzWpMN-a.mjs";
7
+ import { t as builtinProblem } from "./builtin-files-dnTP2GaX.mjs";
8
+ import { n as newRunId, t as findRun } from "./find-P-VV4B47.mjs";
7
9
  import path from "node:path";
8
10
  import { z } from "zod";
9
11
  import { chmodSync, existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
10
12
  import { createHash, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
11
13
  import { homedir } from "node:os";
12
14
  import { createServer } from "node:http";
15
+ // ../server/src/contract-lists.ts
16
+ /** A filter's value: any text; the handler checks it with core. */
17
+ const text = () => z.string().min(1).optional();
18
+ /**
19
+ * A `since` or `until`: `all`, an age (`24h`), a day, or an ISO time. Read with
20
+ * core by the handler, so a bad one is refused in the CLI's words.
21
+ */
22
+ const time = text;
23
+ /** Each list's filter fields, by flag name, in its core table's order. */
24
+ const LIST_SHAPES = {
25
+ runs: {
26
+ status: text(),
27
+ workflow: text(),
28
+ project: text(),
29
+ since: time(),
30
+ until: time()
31
+ },
32
+ feedback: {
33
+ status: text(),
34
+ kind: text(),
35
+ severity: text(),
36
+ workflow: text(),
37
+ run: text()
38
+ },
39
+ "follow-ups": {
40
+ status: text(),
41
+ for: text(),
42
+ kind: text(),
43
+ due: text(),
44
+ project: text()
45
+ },
46
+ decisions: {
47
+ workflow: text(),
48
+ run: text(),
49
+ project: text()
50
+ },
51
+ worktrees: {
52
+ run: text(),
53
+ project: text()
54
+ },
55
+ usage: {
56
+ workflow: text(),
57
+ project: text(),
58
+ since: time(),
59
+ until: time()
60
+ }
61
+ };
62
+ /** A list's filter fields as query params: its core table's, each optional. */
63
+ const listShape = (list) => LIST_SHAPES[list];
64
+ Object.keys(LIST_SHAPES.runs), Object.keys(LIST_SHAPES.feedback), Object.keys(LIST_SHAPES["follow-ups"]), Object.keys(LIST_SHAPES.decisions), Object.keys(LIST_SHAPES.worktrees), Object.keys(LIST_SHAPES.usage);
65
+ const Count$1 = z.coerce.number().int().positive();
66
+ /** `GET /api/runs`: `runListTable`'s fields, and the newest `limit`. */
67
+ const RunsQuerySchema = z.strictObject({
68
+ limit: Count$1.optional(),
69
+ ...LIST_SHAPES.runs
70
+ });
71
+ /**
72
+ * `GET /api/usage`: `usageListTable`'s fields; `since` and `until` also take
73
+ * ISO times (`since` included, `until` not), as before.
74
+ */
75
+ const UsageQuerySchema = z.strictObject(LIST_SHAPES.usage);
76
+ /**
77
+ * `GET /api/decisions`: `decisionListTable`'s fields; `workflow` is ANDed with
78
+ * `run` or `project`.
79
+ */
80
+ const DecisionsQuerySchema = z.strictObject(LIST_SHAPES.decisions);
81
+ const LISTS_API = { listFields: {
82
+ method: "GET",
83
+ path: "/api/list-fields"
84
+ } };
13
85
  // ../server/src/contract-feedback.ts
14
86
  const NoteSchema = z.strictObject({
15
87
  /** Its first line is the title. */
@@ -45,6 +117,11 @@ const PublishSchema = z.strictObject({
45
117
  /** The preview's digest: what the person saw, so nothing else is sent. */
46
118
  digest: z.string().min(1)
47
119
  });
120
+ /**
121
+ * The filters are core's `feedbackListTable` fields; with none, every item
122
+ * comes, dismissed too (the panel hides them itself).
123
+ */
124
+ const FeedbackItemsQuerySchema = z.strictObject(listShape("feedback"));
48
125
  const FEEDBACK_API = {
49
126
  note: {
50
127
  method: "POST",
@@ -53,7 +130,8 @@ const FEEDBACK_API = {
53
130
  },
54
131
  feedbackItems: {
55
132
  method: "GET",
56
- path: "/api/feedback"
133
+ path: "/api/feedback",
134
+ query: FeedbackItemsQuerySchema
57
135
  },
58
136
  feedbackItem: {
59
137
  method: "GET",
@@ -90,19 +168,11 @@ const FEEDBACK_API = {
90
168
  }
91
169
  };
92
170
  // ../server/src/contract-follow-ups.ts
93
- /** `open` is due and waiting, the default; `all` adds done and dropped. */
94
- const FollowUpsQuerySchema = z.strictObject({
95
- status: z.enum([
96
- "open",
97
- "all",
98
- "due",
99
- "waiting",
100
- "done",
101
- "dropped"
102
- ]).optional(),
103
- /** Only those for this: `agent`, `me`, `project:<name>` or `person:<name>`. */
104
- for: z.string().min(1).optional()
105
- });
171
+ /**
172
+ * The filters are core's `followUpListTable` fields. `status` is `open` (due
173
+ * and waiting, the default), `all` (adds done and dropped), or the table's.
174
+ */
175
+ const FollowUpsQuerySchema = z.strictObject(listShape("follow-ups"));
106
176
  const FollowUpChangeSchema = z.strictObject({ action: z.enum([
107
177
  "done",
108
178
  "drop",
@@ -271,9 +341,11 @@ planId: z.string().min(1) })
271
341
  };
272
342
  // ../server/src/contract-worktrees.ts
273
343
  const Root = z.string().min(1);
274
- const WorktreesQuerySchema = z.strictObject({
275
- /** A project's root; every project Ork knows without one. */
276
- project: Root.optional() });
344
+ /**
345
+ * The filters are core's `worktreeListTable` fields (`project`: a root; every
346
+ * project without one).
347
+ */
348
+ const WorktreesQuerySchema = z.strictObject(listShape("worktrees"));
277
349
  const RemovePlanSchema = z.strictObject({
278
350
  project: Root,
279
351
  /** The item's branch, or a detached worktree's path. */
@@ -323,17 +395,6 @@ const WORKTREES_API = {
323
395
  // ../server/src/contract.ts
324
396
  const Count = z.coerce.number().int().positive();
325
397
  const Seq = z.coerce.number().int().nonnegative();
326
- const RunsQuerySchema = z.strictObject({
327
- project: z.string().min(1).optional(),
328
- limit: Count.optional()
329
- });
330
- const UsageQuerySchema = z.strictObject({
331
- project: z.string().min(1).optional(),
332
- workflow: z.string().min(1).optional(),
333
- /** ISO times: `since` included, `until` not. */
334
- since: z.iso.datetime().optional(),
335
- until: z.iso.datetime().optional()
336
- });
337
398
  const EventsQuerySchema = z.strictObject({
338
399
  after: Seq.optional(),
339
400
  node: z.string().min(1).optional(),
@@ -342,12 +403,6 @@ const EventsQuerySchema = z.strictObject({
342
403
  /** Only the newest this many, still oldest first. */
343
404
  last: Count.optional()
344
405
  });
345
- const DecisionsQuerySchema = z.strictObject({
346
- run: z.string().min(1).optional(),
347
- project: z.string().min(1).optional(),
348
- /** Only runs of this workflow, by name; ANDed with `run` or `project`. */
349
- workflow: z.string().min(1).optional()
350
- });
351
406
  /** An answer: the option, and what the person said with it, if anything. */
352
407
  const AnswerSchema = z.strictObject({
353
408
  choose: z.string().min(1),
@@ -385,6 +440,7 @@ const API = {
385
440
  ...CONTEXT_API,
386
441
  ...AFTER_API,
387
442
  ...WORKTREES_API,
443
+ ...LISTS_API,
388
444
  ...UPDATE_API,
389
445
  projects: {
390
446
  method: "GET",
@@ -1575,6 +1631,76 @@ const treeWithEnds = (roots, stored) => {
1575
1631
  };
1576
1632
  return roots.map((node) => dress(node));
1577
1633
  };
1634
+ // ../server/src/list-fields-routes.ts
1635
+ /**
1636
+ * @file `GET /api/list-fields`: the filter fields of each list, from core's
1637
+ * tables (RFC-017), as text without their functions, so the UI builds its
1638
+ * filter bar without importing core.
1639
+ */
1640
+ const infoOf = (field) => ({
1641
+ name: field.name,
1642
+ description: field.description,
1643
+ type: field.type,
1644
+ ...field.values === void 0 ? {} : { values: [...field.values] },
1645
+ ...field.all === true ? { all: true } : {}
1646
+ });
1647
+ /** The answer, built once: the tables do not change while the server runs. */
1648
+ const listFields = () => ({
1649
+ runs: LIST_TABLES.ps.fields.map(infoOf),
1650
+ feedback: LIST_TABLES["feedback list"].fields.map(infoOf),
1651
+ "follow-ups": LIST_TABLES["follow-ups list"].fields.map(infoOf),
1652
+ decisions: LIST_TABLES["decide --list"].fields.map(infoOf),
1653
+ worktrees: LIST_TABLES["worktrees list"].fields.map(infoOf),
1654
+ usage: LIST_TABLES.usage.fields.map(infoOf)
1655
+ });
1656
+ const listFieldsRoutes = () => ({ listFields: () => ok(listFields()) });
1657
+ // ../server/src/list-query.ts
1658
+ /**
1659
+ * @file Reads a list route's filter fields the way the CLI reads its flags
1660
+ * (RFC-017, ADR-088): each value checked by core's `parseFilters` against the
1661
+ * list's table, a refused one answered as 400 in the CLI's words. A full ISO
1662
+ * time in `since` or `until` is taken as given (the form `usage` had before
1663
+ * the tables), the rest are an age, a day or `all`.
1664
+ */
1665
+ /** A `2026-11-01T10:00:00Z`-style time, as an ISO time; else `undefined`. */
1666
+ const isoTime = (value) => {
1667
+ if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T/u.test(value)) return;
1668
+ const time = Date.parse(value);
1669
+ return Number.isNaN(time) ? void 0 : new Date(time).toISOString();
1670
+ };
1671
+ /**
1672
+ * The filter `query` asks for, checked against `table`; a value the table
1673
+ * refuses is a 400.
1674
+ */
1675
+ const filterOf = (table, query) => {
1676
+ const times = {};
1677
+ const rest = { ...query };
1678
+ for (const name of ["since", "until"]) {
1679
+ const iso = isoTime(query[name]);
1680
+ if (iso === void 0) continue;
1681
+ times[name] = iso;
1682
+ delete rest[name];
1683
+ }
1684
+ const parsed = parseFilters(table, rest, Date.now());
1685
+ return parsed.ok ? {
1686
+ ok: true,
1687
+ filter: {
1688
+ ...parsed.filter,
1689
+ ...times
1690
+ }
1691
+ } : {
1692
+ ok: false,
1693
+ refusal: fail(400, parsed.error)
1694
+ };
1695
+ };
1696
+ /**
1697
+ * The root a filter's `project` names (a registered project's id or root, else
1698
+ * the value as a root); `undefined` without one or for `all`.
1699
+ */
1700
+ const projectRootOf = (context, filter) => {
1701
+ const key = filter["project"];
1702
+ return key === void 0 || key === "all" ? void 0 : projectOf(context, key)?.root ?? key;
1703
+ };
1578
1704
  // ../server/src/workflows.ts
1579
1705
  /**
1580
1706
  * @file A project's workflows, for the UI's Run workflow dialog: each
@@ -1633,14 +1759,18 @@ const projectWorkflows = (project) => {
1633
1759
  * decisions, and usage. Each reads the store as the matching CLI command does
1634
1760
  * (`ork projects`, `ps`, `tree`, `logs`, `decide --list`, `usage`).
1635
1761
  */
1636
- /** A project filter's root: a registered project's, or the value as a root. */
1637
1762
  /** A registered project's place; caps are only known for one. */
1638
1763
  const placeOf = (context, key) => {
1639
1764
  const known = key === void 0 ? void 0 : projectOf(context, key);
1640
1765
  return known === void 0 ? void 0 : placeFor(known.root, context.store.projects());
1641
1766
  };
1642
- const projectRoot = (context, key) => projectOf(context, key)?.root ?? key;
1767
+ /** `ork ps`'s table, matching `--status` on the live status the API shows. */
1768
+ const liveRunTable = {
1769
+ ...runListTable,
1770
+ fields: runListTable.fields.map((field) => field.name === "status" ? Object.assign({}, field, { get: (run) => run.live }) : field)
1771
+ };
1643
1772
  const readRoutes = (context) => ({
1773
+ ...listFieldsRoutes(),
1644
1774
  health: () => ok({
1645
1775
  version: context.version,
1646
1776
  pid: context.pid,
@@ -1649,23 +1779,38 @@ const readRoutes = (context) => ({
1649
1779
  projects: () => ok(context.store.projects()),
1650
1780
  triggers: () => ok(triggersReport(context.store, context.store.projects(), context.home)),
1651
1781
  links: ({ query }) => ok(context.store.links(query.run === void 0 ? {} : { run: query.run })),
1652
- usage: ({ query }) => ok({
1653
- ...usageReport(context.store.usage({
1654
- ...query.project === void 0 ? {} : { project: projectRoot(context, query.project) },
1655
- ...query.workflow === void 0 ? {} : { workflow: query.workflow },
1656
- ...query.since === void 0 ? {} : { since: query.since },
1657
- ...query.until === void 0 ? {} : { until: query.until }
1658
- })),
1659
- limits: limitsReport(context.store, capsHere(context.home, placeOf(context, query.project)), /* @__PURE__ */ new Date())
1660
- }),
1782
+ usage: ({ query }) => {
1783
+ const read = filterOf(usageListTable, query);
1784
+ if (!read.ok) return read.refusal;
1785
+ const { filter } = read;
1786
+ const { workflow, since, until } = filter;
1787
+ const root = projectRootOf(context, filter);
1788
+ return ok({
1789
+ ...usageReport(context.store.usage({
1790
+ ...root === void 0 ? {} : { project: root },
1791
+ ...workflow === void 0 ? {} : { workflow },
1792
+ ...since === void 0 || since === "all" ? {} : { since },
1793
+ ...until === void 0 ? {} : { until }
1794
+ })),
1795
+ limits: limitsReport(context.store, capsHere(context.home, placeOf(context, root)), /* @__PURE__ */ new Date())
1796
+ });
1797
+ },
1661
1798
  workflows: ({ params }) => {
1662
1799
  const project = projectOf(context, params.id);
1663
1800
  return project === void 0 ? fail(404, `No registered project \`${params.id}\`.`) : ok(projectWorkflows(project));
1664
1801
  },
1665
- runs: ({ query }) => ok(context.store.runs({
1666
- limit: query.limit ?? 20,
1667
- ...query.project === void 0 ? {} : { project: projectRoot(context, query.project) }
1668
- }).map((run) => viewOf$2(context, run))),
1802
+ runs: ({ query }) => {
1803
+ const read = filterOf(liveRunTable, query);
1804
+ if (!read.ok) return read.refusal;
1805
+ const root = projectRootOf(context, read.filter);
1806
+ const limit = query.limit ?? 20;
1807
+ const narrowed = Object.keys(read.filter).some((name) => name !== "project");
1808
+ const views = context.store.runs({
1809
+ ...root === void 0 ? {} : { project: root },
1810
+ ...narrowed ? {} : { limit }
1811
+ }).map((run) => viewOf$2(context, run));
1812
+ return ok(applyFilters(liveRunTable, views, read.filter).slice(0, limit));
1813
+ },
1669
1814
  run: ({ params }) => {
1670
1815
  const found = runOf(context, params.id);
1671
1816
  return found.ok ? ok(viewOf$2(context, found.run)) : found.refusal;
@@ -1689,12 +1834,18 @@ const readRoutes = (context) => ({
1689
1834
  return ok((query.limit === void 0 ? newest : newest.slice(0, query.limit)).map((stored) => servedEvent(stored)));
1690
1835
  },
1691
1836
  decisions: ({ query }) => {
1692
- const workflow = query.workflow === void 0 ? {} : { workflow: query.workflow };
1693
- if (query.run === void 0) return ok(pendingDecisions(context.store, {
1694
- ...workflow,
1695
- ...query.project === void 0 ? {} : { project: projectRoot(context, query.project) }
1696
- }));
1697
- const found = runOf(context, query.run);
1837
+ const read = filterOf(decisionListTable, query);
1838
+ if (!read.ok) return read.refusal;
1839
+ const { run, workflow: named } = read.filter;
1840
+ const workflow = named === void 0 ? {} : { workflow: named };
1841
+ if (run === void 0) {
1842
+ const root = projectRootOf(context, read.filter);
1843
+ return ok(pendingDecisions(context.store, {
1844
+ ...workflow,
1845
+ ...root === void 0 ? {} : { project: root }
1846
+ }));
1847
+ }
1848
+ const found = runOf(context, run);
1698
1849
  if (!found.ok) return found.refusal;
1699
1850
  return ok(pendingDecisions(context.store, {
1700
1851
  ...workflow,
@@ -1739,7 +1890,7 @@ const mcpTools = (context) => {
1739
1890
  ...NO_QUERY,
1740
1891
  params: { id: args.project }
1741
1892
  }))),
1742
- tool("runs", "Runs, newest first, with their live status and cost. 10 unless a limit is given.", RunsQuerySchema.shape, (args) => fromReply(read.runs({
1893
+ tool("runs", "Runs, newest first, with their live status and cost. 10 unless a limit is given. Narrow them with `status` (running, paused, crashed, succeeded, failed, … or all), `workflow`, `project` (or all), `since` (24h, 30d, 2026-11-01, all) and `until` (a day).", RunsQuerySchema.shape, (args) => fromReply(read.runs({
1743
1894
  ...NO_QUERY,
1744
1895
  query: {
1745
1896
  limit: 10,
@@ -1775,11 +1926,11 @@ const mcpTools = (context) => {
1775
1926
  }
1776
1927
  }));
1777
1928
  }),
1778
- tool("usage", "What runs spent, by workflow and model, and how close the limits are. `since` and `until` are ISO times.", UsageQuerySchema.shape, (args) => fromReply(read.usage({
1929
+ tool("usage", "What runs spent, by workflow and model, and how close the limits are. Narrow it with `workflow`, `project` (or all), `since` and `until`: an age (24h, 30d), a day (2026-11-01) or an ISO time; `since` also takes all.", UsageQuerySchema.shape, (args) => fromReply(read.usage({
1779
1930
  ...NO_QUERY,
1780
1931
  query: args
1781
1932
  }))),
1782
- tool("decisions", "The decisions open in live runs, waiting on a person. This server can't answer them.", DecisionsQuerySchema.shape, (args) => fromReply(read.decisions({
1933
+ tool("decisions", "The decisions open in live runs, waiting on a person. This server can't answer them. Narrow them with `workflow`, `run` (an id or a start of one) and `project` (or all).", DecisionsQuerySchema.shape, (args) => fromReply(read.decisions({
1783
1934
  ...NO_QUERY,
1784
1935
  query: args
1785
1936
  }), (open) => ({
@@ -2180,7 +2331,10 @@ const feedbackRoutes = (context) => {
2180
2331
  const noted = recordNote(store, found.run, body);
2181
2332
  return noted.ok ? ok({ item: noted.item }) : fail(400, noted.error);
2182
2333
  },
2183
- feedbackItems: () => ok(store.feedbackItems({ all: true })),
2334
+ feedbackItems: ({ query }) => {
2335
+ const read = filterOf(feedbackListTable, query);
2336
+ return read.ok ? ok(applyFilters(feedbackListTable, store.feedbackItems({ all: true }), read.filter)) : read.refusal;
2337
+ },
2184
2338
  feedbackItem: ({ params }) => {
2185
2339
  const found = itemOf(store, params.id);
2186
2340
  if (!found.ok) return found.refusal;
@@ -2349,13 +2503,15 @@ const followUpRoutes = (context) => {
2349
2503
  gh
2350
2504
  }).then((checked) => checked.errors).catch((error) => [error instanceof Error ? error.message : String(error)]);
2351
2505
  const all = store.followUps(root);
2352
- const status = query.status ?? "open";
2353
- const shown = all.filter((f) => {
2354
- if (query.for !== void 0 && f.for !== query.for) return false;
2355
- if (status === "all") return true;
2356
- if (status === "open") return OPEN.some((s) => s === f.status);
2357
- return f.status === status;
2506
+ const open = (query.status ?? "open") === "open";
2507
+ const read = filterOf(followUpListTable, {
2508
+ ...query,
2509
+ ...open ? { status: "all" } : {}
2358
2510
  });
2511
+ if (!read.ok) return read.refusal;
2512
+ const other = projectRootOf(context, read.filter);
2513
+ const matched = other === void 0 || other === root ? applyFilters(followUpListTable, all, read.filter) : [];
2514
+ const shown = open ? matched.filter((f) => OPEN.some((s) => s === f.status)) : matched;
2359
2515
  return ok({
2360
2516
  project: root,
2361
2517
  followUps: shown,
@@ -2905,9 +3061,15 @@ const worktreesRoutes = (context) => {
2905
3061
  };
2906
3062
  return {
2907
3063
  worktrees: async ({ query }) => {
2908
- const all = await readAll(query.project);
3064
+ const filtered = filterOf(worktreeListTable, query);
3065
+ if (!filtered.ok) return filtered.refusal;
3066
+ const all = await readAll(projectRootOf(context, filtered.filter));
2909
3067
  if (!all.ok) return all.refusal;
2910
- return ok({ projects: all.reads.map((read) => listed(context, read)) });
3068
+ return ok({ projects: all.reads.map((read) => {
3069
+ const project = listed(context, read);
3070
+ project.items = applyFilters(worktreeListTable, project.items, filtered.filter);
3071
+ return project;
3072
+ }) });
2911
3073
  },
2912
3074
  worktreeRemovePlan: async ({ body }) => {
2913
3075
  const planned = await removePlanOf(context, body);
@@ -1,7 +1,7 @@
1
1
  import path from "node:path";
2
2
  import { LineCounter, YAMLMap, YAMLSeq, isAlias, isCollection, isMap, isNode, isPair, isScalar, isSeq, parseDocument, stringify, visit } from "yaml";
3
3
  import { z } from "zod";
4
- import { appendFileSync, closeSync, cpSync, existsSync, lstatSync, mkdirSync, mkdtempSync, openSync, readFileSync, readdirSync, readlinkSync, realpathSync, renameSync, rmSync, rmdirSync, statSync, symlinkSync, unlinkSync, writeFileSync } from "node:fs";
4
+ import { appendFileSync, chmodSync, closeSync, cpSync, existsSync, lstatSync, mkdirSync, mkdtempSync, openSync, readFileSync, readdirSync, readlinkSync, realpathSync, renameSync, rmSync, rmdirSync, statSync, symlinkSync, unlinkSync, writeFileSync } from "node:fs";
5
5
  import { createHash, randomBytes, randomUUID } from "node:crypto";
6
6
  import { constants as constants$1, homedir, setPriority, tmpdir } from "node:os";
7
7
  import { createConnection, createServer } from "node:net";
@@ -3990,7 +3990,10 @@ const messageOf$3 = (line) => {
3990
3990
  };
3991
3991
  /** Listens on the run's socket; resolves once it is listening. */
3992
3992
  const serveRun = async (options) => {
3993
- mkdirSync(path.dirname(options.path), { recursive: true });
3993
+ mkdirSync(path.dirname(options.path), {
3994
+ recursive: true,
3995
+ mode: 448
3996
+ });
3994
3997
  rmSync(options.path, { force: true });
3995
3998
  const followers = /* @__PURE__ */ new Set();
3996
3999
  const server = createServer((socket) => {
@@ -6308,18 +6311,27 @@ const sameFiles = (a, b) => a.length === b.length && a.toSorted().join("\n") ===
6308
6311
  * title.
6309
6312
  */
6310
6313
  const sameFollowUp = (kept, input) => (kept.status === "waiting" || kept.status === "due") && kept.for === input.for && sameFiles(kept.where, input.where) && nearTitle(kept.title, input.title);
6314
+ /** Who a follow-up is for, its name scrubbed and its kind kept. */
6315
+ const scrubFor = (to, scrub) => {
6316
+ if (to.startsWith("project:")) return `project:${scrub(to.slice(8))}`;
6317
+ if (to.startsWith("person:")) return `person:${scrub(to.slice(7))}`;
6318
+ return to;
6319
+ };
6311
6320
  /** `input` with what shouldn't be kept or leave the machine taken out. */
6312
6321
  const scrubFollowUp = (input, options) => {
6313
6322
  const scrub = (text) => redact(text, options);
6314
6323
  return {
6315
6324
  ...input,
6325
+ for: scrubFor(input.for, scrub),
6316
6326
  title: scrub(input.title),
6327
+ ...input.ref === void 0 ? {} : { ref: scrub(input.ref) },
6317
6328
  ...input.body === void 0 ? {} : { body: scrub(input.body) },
6318
6329
  ...input.where === void 0 ? {} : { where: input.where.map(scrub) },
6319
6330
  ...input.draft === void 0 ? {} : { draft: {
6320
6331
  ...input.draft,
6321
6332
  to: scrub(input.draft.to),
6322
- text: scrub(input.draft.text)
6333
+ text: scrub(input.draft.text),
6334
+ ...input.draft.channel === void 0 ? {} : { channel: scrub(input.draft.channel) }
6323
6335
  } },
6324
6336
  ...input.steps === void 0 ? {} : { steps: input.steps.map((step) => ({
6325
6337
  text: scrub(step.text),
@@ -9285,6 +9297,15 @@ const usageListTable = { fields: [
9285
9297
  type: "until"
9286
9298
  }
9287
9299
  ] };
9300
+ /** Every core list's table, by the command that lists it. */
9301
+ const LIST_TABLES = {
9302
+ ps: runListTable,
9303
+ "feedback list": feedbackListTable,
9304
+ "follow-ups list": followUpListTable,
9305
+ "decide --list": decisionListTable,
9306
+ "worktrees list": worktreeListTable,
9307
+ usage: usageListTable
9308
+ };
9288
9309
  // ../core/src/machine/priority.ts
9289
9310
  /**
9290
9311
  * @file Starting a child at the project's priority (`priority:`): `low`, the
@@ -13605,6 +13626,13 @@ const STANDARD = /* @__PURE__ */ new Set([
13605
13626
  "artifacts",
13606
13627
  "branch"
13607
13628
  ]);
13629
+ /**
13630
+ * A name git takes as a branch (`git check-ref-format --branch`'s rules), and
13631
+ * nothing a command would read as an option or a refspec: no leading `-`, no
13632
+ * `:` or `+`, no space or control character. A reported branch reaches tool
13633
+ * arguments, so one that isn't a plain branch name is dropped.
13634
+ */
13635
+ const isBranchName = (name) => name !== "" && name !== "@" && !name.startsWith("-") && !name.startsWith("/") && !name.endsWith("/") && !name.endsWith(".") && !name.endsWith(".lock") && !name.includes("..") && !name.includes("//") && !name.includes("@{") && !name.includes("/.") && !name.startsWith(".") && !/[\u0000-\u0020\u007F~^:?*[\\+]/u.test(name);
13608
13636
  /** Reads a driver's structured output as a report, or `null` if it is not one. */
13609
13637
  const parseReport = (value) => {
13610
13638
  if (value === null || typeof value !== "object" || Array.isArray(value)) return null;
@@ -13621,7 +13649,7 @@ const parseReport = (value) => {
13621
13649
  artifacts: paths,
13622
13650
  fields: Object.fromEntries(Object.entries(record).filter(([key]) => !STANDARD.has(key)))
13623
13651
  };
13624
- if (typeof branch === "string" && branch !== "") report.branch = branch;
13652
+ if (typeof branch === "string" && isBranchName(branch)) report.branch = branch;
13625
13653
  return report;
13626
13654
  };
13627
13655
  // ../core/src/run/brief.ts
@@ -17201,10 +17229,25 @@ const openReadOnly = (file) => {
17201
17229
  throw error;
17202
17230
  }
17203
17231
  };
17232
+ /**
17233
+ * Keeps Ork's folder for the person alone: `~/.ork` holds every run's prompts
17234
+ * and output, its sockets and its locks, so it is made 0700, and one an older
17235
+ * Ork made with the umask's mode is narrowed. A store elsewhere (a test's) only
17236
+ * gets its folder made.
17237
+ */
17238
+ const keepPrivate = (dir) => {
17239
+ mkdirSync(dir, {
17240
+ recursive: true,
17241
+ mode: 448
17242
+ });
17243
+ if (path.basename(dir) !== ".ork") return;
17244
+ if ((statSync(dir).mode & 63) !== 0) chmodSync(dir, 448);
17245
+ };
17204
17246
  /** A database opened for writing: created, in WAL mode, migrated. */
17205
17247
  const openWritable = (file) => {
17206
- if (file !== ":memory:") mkdirSync(path.dirname(file), { recursive: true });
17248
+ if (file !== ":memory:") keepPrivate(path.dirname(file));
17207
17249
  const db = new DatabaseSync(file);
17250
+ if (file !== ":memory:") chmodSync(file, 384);
17208
17251
  db.exec("PRAGMA busy_timeout = 5000");
17209
17252
  db.exec("PRAGMA journal_mode = WAL");
17210
17253
  db.exec("PRAGMA synchronous = NORMAL");
@@ -19010,4 +19053,4 @@ const createWorkspace = (options) => {
19010
19053
  close
19011
19054
  };
19012
19055
  };
19013
- export { sendFromScript as $, DISCUSSIONS as $n, programsRunBy as $r, gitOk as $t, declaredTriggers as A, lockWaitsOf as An, hasInRepoFiles as Ar, endedWith as At, planPrune as B, PROJECT_FILE as Bn, projectRootOf as Br, feedbackListTable as Bt, compareVersions as C, ORK_LAYOUT as Ci, linkNodes as Cn, toolLinks as Cr, startRun as Ct, triggersReport as D, EXPERIMENTS as Di, requestStop as Dn, AGENT_SOURCES as Dr, runScope as Dt, lateTriggers as E, firstLine as Ei, requestPause as En, deleteAgent as Er, heldTimeout as Et, activeTree as F, processAlive as Fn, projectsHome as Fr, slotWaitLine as Ft, parseInputPairs as G, endOf as Gn, writePlainFile as Gr, applyClean as Gt, listOrkWorktrees as H, loadProject as Hn, estimateTokens as Hr, runListTable as Ht, isNodeEvent as I, stillTheSameProcess as In, runDirOf as Ir, lowerChild as It, driverRefusals as J, END_KINDS as Jn, applyEdits as Jr, planClean as Jt, resolveInputs as K, outcomeEnd as Kn, skillsIn as Kr, cleanStep as Kt, openStore as L, isItem as Ln, shownPath as Lr, programFound as Lt, workflowTextHash as M, runStatus as Mn, newProjectId as Mr, stoppedEnd as Mt, takeWatchLock as N, slotWaitsOf as Nn, placeFiles as Nr, declaredProblem as Nt, createWatcher as O, experimentsOn as Oi, tellLiveRun as On, catalogAgent as Or, calledWorkflows as Ot, watchingPid as P, templateOf$1 as Pn, placeFor as Pr, slotClock as Pt, scriptRefusal as Q, FEEDBACK_TARGETS as Qn, beforeOf as Qr, git as Qt, storePath as R, nestItems as Rn, workflowDirOf as Rr, startAt as Rt, detectInstaller as S, AGENT_TOOL_LAYOUTS as Si, endLinksOf as Sn, linkTools as Sr, walkSummary as St, parseVersion as T, DRIVER_IDS as Ti, requestContinue as Tn, createAgent as Tr, userMessageText as Tt, createReplay as U, machineRulesOf as Un, guardedBase as Ur, usageListTable as Ut, createdWorktrees as V, gitRulesOf as Vn, LESSON_CAP_TOKENS as Vr, followUpListTable as Vt, replayLoopAnswers as W, createSignals as Wn, plainPathInside as Wr, worktreeListTable as Wt, driverQueues as X, FEEDBACK_KINDS as Xn, readDocument as Xr, stepPrunes as Xt, sessionRefusals as Y, endFor as Yn, newWorkflowText as Yr, stepActs as Yt, TOO_LONG as Z, FEEDBACK_SEVERITIES as Zn, renameNodeTypes as Zr, inspectProject as Zt, capsHere as _, TOOL_PREFIX as _i, deliverFollowUp as _n, maskReplacer as _r, planNodeSession as _t, planRemove as a, WorkflowSchema as ai, nodeSays as an, createFeedback as ar, adoptedCalls as at, runningRunIds as b, driverChecks as bi, DEFAULT_FOLLOW_UPS_RULE as bn, applySteps as br, checkWorkflowText as bt, repoRoot as c, settingsOf as ci, mcpNotText as cn, targetOf as cr, DETACHED_ENV as ct, planLine as d, isToolNode as di, createFollowUps as dn, renderTemplate as dr, NOT_STARTED as dt, renderJsonSchema as ei, clearGitLocalEnv as en, planPost as er, createRelay as et, removeRefusal as f, DriverSchema as fi, checkFollowUpsDue as fn, readCondition as fr, limitsNow as ft, usageReport as g, INTEGRATIONS as gi, takeFollowUps as gn, MASK as gr, explainSession as gt, USAGE_DIMENSIONS as h, timeoutMs as hi, startFollowUpChecks as hn, socketRoom as hr, explainWorkflowText as ht, lostWork as i, EdgeInputSchema as ii, sessionDriver as in, redact as ir, createCalls as it, readProjectTriggers as j, pausedOf as jn, inRepoPlace as jr, failedWith as jt, triggerStanding as k, knownExperiments as ki, liveStatus as kn, loadAgents as kr, lockWaitLine as kt, labelOf as l, NodeSchema as li, serversIn as ln, evaluate as lr, detachRun as lt, resolveBase as m, retiredDriverHint as mi, recordPublished as mn, socketPath as mr, planReason as mt, resumedOptions as n, serializeWorkflow as ni, modelDriver as nn, sendPost as nr, answerDecision as nt, projectHead as o, CheckReportSchema as oi, declaredOutputOf as on, fingerprint as or, detachResume as ot, stateParts as p, NodeIdSchema as pi, markDue as pn, serveRun as pr, limitsReport as pt, budgetWarnings as q, END_DETAIL_LIMIT as qn, WorkflowEditSchema as qr, keyOf as qt, applyRemove as r, markValue as ri, namingNoDriver as rn, publishPost as rr, pendingDecisions as rt, readWorktrees as s, expandEdge as si, MCP_FILE as sn, normalizeTitle as sr, resumable as st, createWorkspace as t, parseWorkflow as ti, envReadsOf as tn, runGh as tr, followRunTree as tt, mergeStateOf as u, isClaudeNode as ui, FOLLOW_UP_KINDS as un, parseTemplate as ur, followEvents as ut, planUpgrade as v, integrationFor as vi, followUpProblem as vn, maskSecrets as vr, parseReport as vt, isNewer as w, AGENT_DRIVERS as wi, unlinkNodes as wn, toolsInUse as wr, MESSAGE_LIMIT as wt, runningScript as x, readyDriver as xi, addressOf as xn, planMoveInto as xr, walkChecks as xt, releaseNotes as y, PREFERRED_DRIVER as yi, liveSessionOf as yn, planAgentMigration as yr, reportSchemaFor as yt, applyPrune as z, countedTokens as zn, inside as zr, decisionListTable as zt };
19056
+ export { sendFromScript as $, FEEDBACK_TARGETS as $n, beforeOf as $r, git as $t, declaredTriggers as A, knownExperiments as Ai, liveStatus as An, loadAgents as Ar, endedWith as At, planPrune as B, countedTokens as Bn, inside as Br, decisionListTable as Bt, compareVersions as C, AGENT_TOOL_LAYOUTS as Ci, endLinksOf as Cn, linkTools as Cr, startRun as Ct, triggersReport as D, firstLine as Di, requestPause as Dn, deleteAgent as Dr, runScope as Dt, lateTriggers as E, DRIVER_IDS as Ei, requestContinue as En, createAgent as Er, heldTimeout as Et, activeTree as F, templateOf$1 as Fn, placeFor as Fr, slotWaitLine as Ft, parseInputPairs as G, createSignals as Gn, plainPathInside as Gr, worktreeListTable as Gt, listOrkWorktrees as H, gitRulesOf as Hn, LESSON_CAP_TOKENS as Hr, followUpListTable as Ht, isNodeEvent as I, processAlive as In, projectsHome as Ir, lowerChild as It, driverRefusals as J, END_DETAIL_LIMIT as Jn, WorkflowEditSchema as Jr, keyOf as Jt, resolveInputs as K, endOf as Kn, writePlainFile as Kr, applyClean as Kt, openStore as L, stillTheSameProcess as Ln, runDirOf as Lr, programFound as Lt, workflowTextHash as M, pausedOf as Mn, inRepoPlace as Mr, stoppedEnd as Mt, takeWatchLock as N, runStatus as Nn, newProjectId as Nr, declaredProblem as Nt, createWatcher as O, EXPERIMENTS as Oi, requestStop as On, AGENT_SOURCES as Or, calledWorkflows as Ot, watchingPid as P, slotWaitsOf as Pn, placeFiles as Pr, slotClock as Pt, scriptRefusal as Q, FEEDBACK_SEVERITIES as Qn, renameNodeTypes as Qr, inspectProject as Qt, storePath as R, isItem as Rn, shownPath as Rr, startAt as Rt, detectInstaller as S, readyDriver as Si, addressOf as Sn, planMoveInto as Sr, walkSummary as St, parseVersion as T, AGENT_DRIVERS as Ti, unlinkNodes as Tn, toolsInUse as Tr, userMessageText as Tt, createReplay as U, loadProject as Un, estimateTokens as Ur, runListTable as Ut, createdWorktrees as V, PROJECT_FILE as Vn, projectRootOf as Vr, feedbackListTable as Vt, replayLoopAnswers as W, machineRulesOf as Wn, guardedBase as Wr, usageListTable as Wt, driverQueues as X, endFor as Xn, newWorkflowText as Xr, stepActs as Xt, sessionRefusals as Y, END_KINDS as Yn, applyEdits as Yr, planClean as Yt, TOO_LONG as Z, FEEDBACK_KINDS as Zn, readDocument as Zr, stepPrunes as Zt, capsHere as _, INTEGRATIONS as _i, takeFollowUps as _n, MASK as _r, planNodeSession as _t, planRemove as a, EdgeInputSchema as ai, sessionDriver as an, redact as ar, adoptedCalls as at, runningRunIds as b, PREFERRED_DRIVER as bi, liveSessionOf as bn, planAgentMigration as br, checkWorkflowText as bt, repoRoot as c, expandEdge as ci, MCP_FILE as cn, normalizeTitle as cr, DETACHED_ENV as ct, planLine as d, isClaudeNode as di, FOLLOW_UP_KINDS as dn, parseTemplate as dr, NOT_STARTED as dt, programsRunBy as ei, gitOk as en, DISCUSSIONS as er, createRelay as et, removeRefusal as f, isToolNode as fi, createFollowUps as fn, renderTemplate as fr, limitsNow as ft, usageReport as g, timeoutMs as gi, startFollowUpChecks as gn, socketRoom as gr, explainSession as gt, USAGE_DIMENSIONS as h, retiredDriverHint as hi, recordPublished as hn, socketPath as hr, explainWorkflowText as ht, lostWork as i, markValue as ii, namingNoDriver as in, publishPost as ir, createCalls as it, readProjectTriggers as j, lockWaitsOf as jn, hasInRepoFiles as jr, failedWith as jt, triggerStanding as k, experimentsOn as ki, tellLiveRun as kn, catalogAgent as kr, lockWaitLine as kt, labelOf as l, settingsOf as li, mcpNotText as ln, targetOf as lr, detachRun as lt, resolveBase as m, NodeIdSchema as mi, markDue as mn, serveRun as mr, planReason as mt, resumedOptions as n, parseWorkflow as ni, envReadsOf as nn, runGh as nr, answerDecision as nt, projectHead as o, WorkflowSchema as oi, nodeSays as on, createFeedback as or, detachResume as ot, stateParts as p, DriverSchema as pi, checkFollowUpsDue as pn, readCondition as pr, limitsReport as pt, budgetWarnings as q, outcomeEnd as qn, skillsIn as qr, cleanStep as qt, applyRemove as r, serializeWorkflow as ri, modelDriver as rn, sendPost as rr, pendingDecisions as rt, readWorktrees as s, CheckReportSchema as si, declaredOutputOf as sn, fingerprint as sr, resumable as st, createWorkspace as t, renderJsonSchema as ti, clearGitLocalEnv as tn, planPost as tr, followRunTree as tt, mergeStateOf as u, NodeSchema as ui, serversIn as un, evaluate as ur, followEvents as ut, planUpgrade as v, TOOL_PREFIX as vi, deliverFollowUp as vn, maskReplacer as vr, parseReport as vt, isNewer as w, ORK_LAYOUT as wi, linkNodes as wn, toolLinks as wr, MESSAGE_LIMIT as wt, runningScript as x, driverChecks as xi, DEFAULT_FOLLOW_UPS_RULE as xn, applySteps as xr, walkChecks as xt, releaseNotes as y, integrationFor as yi, followUpProblem as yn, maskSecrets as yr, reportSchemaFor as yt, applyPrune as z, nestItems as zn, workflowDirOf as zr, LIST_TABLES as zt };