agent-yes 1.303.1 → 1.304.0

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 (184) hide show
  1. package/README.md +54 -0
  2. package/default.config.yaml +5 -5
  3. package/dist/{JsonlStore-BpYZZTap.js → JsonlStore-CB_0sfdT.js} +5 -4
  4. package/dist/{SUPPORTED_CLIS-Dq9Lq9WJ.js → SUPPORTED_CLIS-C_1IiOj3.js} +2 -2
  5. package/dist/SUPPORTED_CLIS-Do3GHAY1.js +12 -0
  6. package/dist/{agentShare-suB6yPgO.js → agentShare-BvpEm-Fr.js} +10 -9
  7. package/dist/{askCli-BU3CNCLU.js → askCli-KmMf-3wA.js} +6 -6
  8. package/dist/{browser-BmxN1Ur9.js → browser-BAFPmEvN.js} +2 -2
  9. package/dist/{callback-Ctj3_Wxp.js → callback-BiSUhjw7.js} +6 -6
  10. package/dist/callback-SqLD2mMX.js +17 -0
  11. package/dist/{callbackCore-DSJWhqAe.js → callbackCore-BZ_10zyc.js} +1 -1
  12. package/dist/{callbackCore-BesbQ6-Z.js → callbackCore-Deve5pv3.js} +1 -1
  13. package/dist/{channels-j5nWuzlQ.js → channels-Y36S0ccW.js} +2 -2
  14. package/dist/cli.js +118 -13
  15. package/dist/{cmdDsh-2LP0grim.js → cmdDsh-DZ8bLsH7.js} +1 -1
  16. package/dist/cmdKill-CzSBfWmx.js +116 -0
  17. package/dist/{cmdPs-wc1j85fi.js → cmdPs-DBt23Qz0.js} +11 -10
  18. package/dist/{cwdConflictWarn-skQSMwEh.js → cwdConflictWarn-y-epQyOj.js} +21 -5
  19. package/dist/{cwdPassthroughHint-BUbWMoz0.js → cwdPassthroughHint-CzWh0hrw.js} +1 -1
  20. package/dist/{expose-Dawq1LxC.js → expose-Bhsn5yUz.js} +2 -2
  21. package/dist/forceKill-BDqxx4uQ.js +44 -0
  22. package/dist/{forkNested-CavHyWzA.js → forkNested-3heLs5XC.js} +45 -5
  23. package/dist/{globalPidIndex-CRB5KtyL.js → globalPidIndex-BsjlId-h.js} +6 -5
  24. package/dist/{globalPidIndex-BftWlg2V.js → globalPidIndex-uoz8Esqz.js} +2 -2
  25. package/dist/{hist-Cs0KFSUW.js → hist-DY16wm7g.js} +1 -1
  26. package/dist/{identity-DA7YI9km.js → identity-C0MxfwI2.js} +1 -1
  27. package/dist/{identity-Bk-aG_xl.js → identity-Ckav3-Up.js} +1 -1
  28. package/dist/index.js +7 -7
  29. package/dist/{initMsg-CcTqFtsp.js → initMsg-BEVDWYnv.js} +1 -1
  30. package/dist/{initMsg-D9KJnfgC.js → initMsg-GPU52N-j.js} +1 -1
  31. package/dist/liagent/box-BSIrRRc_.js +2320 -0
  32. package/dist/liagent/box-DloywR57.d.ts +409 -0
  33. package/dist/liagent/box.d.ts +3 -0
  34. package/dist/liagent/box.js +3 -0
  35. package/dist/liagent/cli.d.ts +1 -0
  36. package/dist/liagent/cli.js +908 -0
  37. package/dist/liagent/client.d.ts +28 -0
  38. package/dist/liagent/client.js +240 -0
  39. package/dist/liagent/echo-BvzPSI0x.js +86 -0
  40. package/dist/liagent/echo-W2RcMEny.d.ts +38 -0
  41. package/dist/liagent/hub.d.ts +405 -0
  42. package/dist/liagent/hub.js +1831 -0
  43. package/dist/liagent/index.d.ts +14 -0
  44. package/dist/liagent/index.js +10 -0
  45. package/dist/liagent/liagent.js +339 -0
  46. package/dist/liagent/mic-audio-C3Shud_F.js +754 -0
  47. package/dist/liagent/mic-audio-DMCWtEI-.d.ts +317 -0
  48. package/dist/liagent/mic-button-CtZHFBSG.js +651 -0
  49. package/dist/liagent/mic-button-Y0ioPetQ.d.ts +248 -0
  50. package/dist/liagent/mic.d.ts +3 -0
  51. package/dist/liagent/mic.js +4 -0
  52. package/dist/liagent/progress-CJs08bXb.js +473 -0
  53. package/dist/liagent/progress-CfE-meHr.d.ts +205 -0
  54. package/dist/liagent/progress.d.ts +2 -0
  55. package/dist/liagent/progress.js +3 -0
  56. package/dist/liagent/protocol.d.ts +324 -0
  57. package/dist/liagent/protocol.js +504 -0
  58. package/dist/liagent/speech-rate-DXeJjRTc.js +42 -0
  59. package/dist/liagent/state-tree-BZCmAknI.js +353 -0
  60. package/dist/liagent/tree-BrR7NwMf.js +710 -0
  61. package/dist/liagent/tree-HB9RhX_H.d.ts +295 -0
  62. package/dist/liagent/tree.d.ts +2 -0
  63. package/dist/liagent/tree.js +4 -0
  64. package/dist/liagent/ui-strings-B03le3fh.d.ts +27 -0
  65. package/dist/liagent/ui-strings-CJIwW5Gf.js +794 -0
  66. package/dist/liagent/ui.d.ts +394 -0
  67. package/dist/liagent/ui.js +5 -0
  68. package/dist/liagent/voice-D7yeS9VM.js +802 -0
  69. package/dist/liagent/voice-Qo7SCgi8.d.ts +308 -0
  70. package/dist/liagent/voice.d.ts +3 -0
  71. package/dist/liagent/voice.js +4 -0
  72. package/dist/{notifyDaemon-C7GlfJ1E.js → notifyDaemon-DkUB7GV2.js} +10 -9
  73. package/dist/{openBrowser-1cIo4dJL.js → openBrowser-CQAOIrD6.js} +1 -1
  74. package/dist/oxmgrService-DlYHmqyI.js +37 -0
  75. package/dist/oxmgrService-o9L3I6FX.js +3 -0
  76. package/dist/{parentLink-DoEWVGld.js → parentLink-BcAYcO9L.js} +2 -2
  77. package/dist/{parentLink-B58V1RVd.js → parentLink-MBUD3oY2.js} +2 -2
  78. package/dist/{parentPingLoop-C73bbmCE.js → parentPingLoop-DDO592Wh.js} +5 -5
  79. package/dist/{pidStore-433kvh9D.js → pidStore-C50VPk3E.js} +3 -3
  80. package/dist/pidStore-COkPjpW8.js +6 -0
  81. package/dist/{procStats-BvmrBrOs.js → procStats-DwTxj3rs.js} +1 -1
  82. package/dist/{remotes-MfdV9M8u.js → remotes-BqLoB5GR.js} +2 -2
  83. package/dist/{remotes-DevcBeLl.js → remotes-BsMGvAay.js} +3 -3
  84. package/dist/{roomReplyAlias-DFqg_6IU.js → roomReplyAlias-B-v76TA8.js} +3 -3
  85. package/dist/roomReplyAlias-BzWUBkQy.js +6 -0
  86. package/dist/{rustBinary-7VK7oLlW.js → rustBinary-BrJ2p8wy.js} +2 -2
  87. package/dist/{rustBinary-BV4LxMMn.js → rustBinary-vpfpWj1q.js} +2 -2
  88. package/dist/{schedule-Dp0qkNO1.js → schedule-Bzjhl6-h.js} +15 -44
  89. package/dist/schedulesCli-CLqieyQZ.js +784 -0
  90. package/dist/senderAncestry-CVHeKk1Y.js +173 -0
  91. package/dist/senderAncestry-KhAUPCQs.js +3 -0
  92. package/dist/{serve-BpOIIOVc.js → serve-XwFYE0cE.js} +67 -69
  93. package/dist/{serveRust-CbBrcUrg.js → serveRust-BfWkeL6T.js} +31 -4
  94. package/dist/{setup-DdIBk6Iv.js → setup-D4-s2VZw.js} +5 -5
  95. package/dist/{share-w5oRbvlj.js → share-CbFetL5H.js} +1 -1
  96. package/dist/{share-DrS3LYqf.js → share-_TPYAGWC.js} +1 -1
  97. package/dist/{shareCmd-DDENkBW2.js → shareCmd-DUBsVI3e.js} +10 -10
  98. package/dist/spawnGate-Dfj9V76w.js +5 -0
  99. package/dist/{spawnGate-lr3tvA6U.js → spawnGate-Dj_WaS29.js} +3 -3
  100. package/dist/{subcommands-DxgvDmZX.js → subcommands-B7YZJL8n.js} +471 -307
  101. package/dist/subcommands-BZPxFgkT.js +15 -0
  102. package/dist/{systemPathLink-SjUzgSiq.js → systemPathLink-Y3iC7bYV.js} +1 -1
  103. package/dist/{terminal-C2h7tpe0.js → terminal-13cGj3h6.js} +2 -2
  104. package/dist/terminal.js +1 -1
  105. package/dist/{todoAutomation-TTp_Qz9G.js → todoAutomation-CKlrxuZv.js} +2 -2
  106. package/dist/{todoCli-BWm5nZE0.js → todoCli-CU9vSJSJ.js} +6 -6
  107. package/dist/{todoIdentity-BvXZKWJI.js → todoIdentity-CzS1e7VL.js} +2 -2
  108. package/dist/{todoStore-C9RTz0Vs.js → todoStore-msRCEUi1.js} +2 -2
  109. package/dist/{tray-BeRSozJz.js → tray-CLktEN3G.js} +1 -1
  110. package/dist/{trayApp-QQjqhDv1.js → trayApp-5_OlvQcz.js} +2 -2
  111. package/dist/trayApp-DkAPo0m6.js +5 -0
  112. package/dist/{ts-6LF7f4fx.js → ts-njuddXQz.js} +126 -57
  113. package/dist/{versionChecker-Bc62HNf6.js → versionChecker-BJycAanp.js} +2 -2
  114. package/dist/{webrtcLink-va_gAR77.js → webrtcLink-DcvacEci.js} +1 -1
  115. package/dist/{webrtcLink-SsInrVHU.js → webrtcLink-WxS1nTIs.js} +1 -1
  116. package/dist/{webrtcRemote-BlGyNZDC.js → webrtcRemote-C3xQyf3u.js} +2 -2
  117. package/dist/{widget-Crb5zeHL.js → widget-DmRwOlco.js} +3 -3
  118. package/dist/widgets.js +1 -1
  119. package/dist/{workspaceConfig-BLWB5Wu9.js → workspaceConfig-DBgsu81B.js} +1 -1
  120. package/dist/{ws-DIbwNz8Z.js → ws-ByO6JO6m.js} +3 -3
  121. package/dist/{ws-BRhPG1Vy.js → ws-D0-Jg88z.js} +9 -8
  122. package/lab/ui/index.html +1 -1
  123. package/lab/ui/lab/posts/2026-08-11-slack-term-safe-writes.md +1 -1
  124. package/package.json +73 -8
  125. package/ts/JsonlStore.ts +10 -3
  126. package/ts/cli-idle.bun.spec.ts +1 -1
  127. package/ts/cli-idle.spec.ts +1 -1
  128. package/ts/cli.ts +35 -0
  129. package/ts/cmdKill.bun.spec.ts +155 -0
  130. package/ts/cmdKill.spec.ts +155 -0
  131. package/ts/cmdKill.ts +183 -0
  132. package/ts/composerGuard.edges.spec.ts +91 -0
  133. package/ts/composerGuard.spec.ts +53 -6
  134. package/ts/composerGuard.ts +42 -13
  135. package/ts/conptyModeFilter.spec.ts +30 -0
  136. package/ts/conptyModeFilter.ts +53 -0
  137. package/ts/copyLiagent.ts +42 -0
  138. package/ts/cwdConflictWarn.io.spec.ts +50 -0
  139. package/ts/cwdConflictWarn.spec.ts +34 -1
  140. package/ts/cwdConflictWarn.ts +43 -5
  141. package/ts/cwdGuard.spec.ts +110 -0
  142. package/ts/cwdGuard.ts +118 -0
  143. package/ts/forceKill.ts +52 -0
  144. package/ts/forkNested.bun.spec.ts +41 -0
  145. package/ts/forkNested.spec.ts +41 -0
  146. package/ts/forkNested.ts +48 -1
  147. package/ts/globalPidIndex.edges.spec.ts +125 -0
  148. package/ts/globalPidIndex.ts +6 -2
  149. package/ts/index.ts +13 -1
  150. package/ts/interruptSend.bun.spec.ts +99 -0
  151. package/ts/interruptSend.spec.ts +99 -0
  152. package/ts/interruptSend.ts +51 -0
  153. package/ts/lockRegistry.spec.ts +49 -0
  154. package/ts/lsRenderCache.spec.ts +58 -0
  155. package/ts/needsInput.edges.spec.ts +23 -0
  156. package/ts/parseCliArgs.ts +7 -0
  157. package/ts/pushGatePlan.spec.ts +147 -0
  158. package/ts/roomReplyAlias.io.spec.ts +81 -0
  159. package/ts/schedule.ts +5 -1
  160. package/ts/schedules.bun.spec.ts +397 -0
  161. package/ts/schedules.spec.ts +397 -0
  162. package/ts/schedules.ts +517 -0
  163. package/ts/schedulesCli.ts +386 -0
  164. package/ts/sendControl.bun.spec.ts +12 -0
  165. package/ts/senderAncestry.ts +1 -3
  166. package/ts/serve.ts +22 -33
  167. package/ts/serveRust.spec.ts +29 -2
  168. package/ts/serveRust.ts +27 -2
  169. package/ts/sizeNego.bun.spec.ts +9 -2
  170. package/ts/sizeNego.spec.ts +9 -2
  171. package/ts/sizeNego.ts +10 -5
  172. package/ts/subcommands.spec.ts +348 -9
  173. package/ts/subcommands.ts +513 -93
  174. package/ts/suggestAgents.spec.ts +33 -0
  175. package/ts/terminal/browser.ts +1 -1
  176. package/ts/todoParse.spec.ts +22 -1
  177. package/ts/todoParse.ts +19 -0
  178. package/dist/SUPPORTED_CLIS-ByO5twge.js +0 -12
  179. package/dist/callback-D7qfh_7p.js +0 -16
  180. package/dist/pidStore-BRlKRHXY.js +0 -6
  181. package/dist/roomReplyAlias-DuEkSSDI.js +0 -6
  182. package/dist/spawnGate-DeQBTX-o.js +0 -5
  183. package/dist/subcommands-DmiswRy4.js +0 -14
  184. package/dist/trayApp-C4TAvRvU.js +0 -5
@@ -0,0 +1,473 @@
1
+ import { t as OWNER_NAME } from "./state-tree-BZCmAknI.js";
2
+
3
+ //#region src/progress-token.ts
4
+ const enc = new TextEncoder();
5
+ function b64url(bytes) {
6
+ let s = "";
7
+ for (const b of bytes) s += String.fromCharCode(b);
8
+ return btoa(s).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
9
+ }
10
+ function unb64url(s) {
11
+ if (!/^[A-Za-z0-9_-]*$/.test(s)) return null;
12
+ try {
13
+ const bin = atob(s.replace(/-/g, "+").replace(/_/g, "/"));
14
+ const out = new Uint8Array(bin.length);
15
+ for (let i = 0; i < bin.length; i++) out[i] = bin.charCodeAt(i);
16
+ return out;
17
+ } catch {
18
+ return null;
19
+ }
20
+ }
21
+ const key = (secret) => crypto.subtle.importKey("raw", enc.encode(secret), {
22
+ name: "HMAC",
23
+ hash: "SHA-256"
24
+ }, false, ["sign", "verify"]);
25
+ /** A scoped token for `grant`, signed with the root secret. */
26
+ async function mintProgressToken(secret, grant) {
27
+ const payload = b64url(enc.encode(JSON.stringify(grant)));
28
+ return `${payload}.${b64url(new Uint8Array(await crypto.subtle.sign("HMAC", await key(secret), enc.encode(payload))))}`;
29
+ }
30
+ /** Compare by digest, so the time taken says nothing about the secret. */
31
+ async function sameSecret(a, b) {
32
+ const digest = async (s) => new Uint8Array(await crypto.subtle.digest("SHA-256", enc.encode(s)));
33
+ const [x, y] = await Promise.all([digest(a), digest(b)]);
34
+ let diff = 0;
35
+ for (let i = 0; i < x.length; i++) diff |= x[i] ^ y[i];
36
+ return diff === 0;
37
+ }
38
+ /**
39
+ * Who a bearer token is: the root, a live scoped grant, or null (wrong
40
+ * signature, malformed, or expired).
41
+ */
42
+ async function verifyProgressToken(secret, token, now = Date.now()) {
43
+ if (!secret || !token) return null;
44
+ if (await sameSecret(token, secret)) return { root: true };
45
+ const [payload, sig, extra] = token.split(".");
46
+ if (extra !== void 0 || !payload || !sig) return null;
47
+ const sigBytes = unb64url(sig);
48
+ if (!sigBytes) return null;
49
+ if (!await crypto.subtle.verify("HMAC", await key(secret), sigBytes, enc.encode(payload))) return null;
50
+ let g;
51
+ try {
52
+ g = JSON.parse(new TextDecoder().decode(unb64url(payload) ?? new Uint8Array()));
53
+ } catch {
54
+ return null;
55
+ }
56
+ if (typeof g.node !== "string" || typeof g.agent !== "string" || typeof g.exp !== "number") return null;
57
+ if (g.exp <= now) return null;
58
+ return {
59
+ root: false,
60
+ node: g.node,
61
+ agent: g.agent,
62
+ exp: g.exp,
63
+ ...typeof g.via === "string" ? { via: g.via } : {}
64
+ };
65
+ }
66
+
67
+ //#endregion
68
+ //#region src/progress.ts
69
+ /**
70
+ * Live progress on the state tree: what a writer (an agent, through
71
+ * `liagent progress`) posts, what the hub (progress-hub.ts, a Durable
72
+ * Object) keeps, and what a reader (<liagent-state-tree> with a progress
73
+ * feed, progress-tree.ts) shows — shared so the three agree on the shape and
74
+ * the limits. Pure: no I/O, no app specifics.
75
+ *
76
+ * Everything is a node. A node may be a plain task, have an agent assigned,
77
+ * or be a human (the owner, OWNER_NODE). Every write is an event; the state
78
+ * is the fold of the events (latest per `id`), and `parent` links nodes into
79
+ * a tree (foldProgress). Top-level nodes are usually page routes ("/words");
80
+ * their children are paths under them ("/words/prefetch", shown
81
+ * "/words › prefetch"); work that is not a page lives under roots such as
82
+ * "/_infra". A path id's parent is its directory, always.
83
+ */
84
+ const PROGRESS_STATUSES = [
85
+ "doing",
86
+ "blocked",
87
+ "waiting",
88
+ "waiting-owner",
89
+ "review",
90
+ "done"
91
+ ];
92
+ /**
93
+ * "decision" / "approval": pending decisions and authorisations (a repo, a
94
+ * merge, a grant, a secret). "feedback": work that came from a user's or the
95
+ * owner's feedback (a bug report). "person": a human's own node. "group": a
96
+ * plain grouping node, auto-created for a path's missing ancestors.
97
+ */
98
+ const PROGRESS_KINDS = [
99
+ "task",
100
+ "decision",
101
+ "approval",
102
+ "feedback",
103
+ "person",
104
+ "group"
105
+ ];
106
+ const ASSIGNEE_TYPES = ["agent", "human"];
107
+ const PROGRESS_LIMITS = {
108
+ name: 40,
109
+ task: 120,
110
+ note: 280,
111
+ eta: 40,
112
+ needs: 120,
113
+ id: 120,
114
+ parent: 120,
115
+ ref: 120,
116
+ action: 300,
117
+ link: 300
118
+ };
119
+ /** Nodes the hub keeps at most; past it the oldest done ones go first. */
120
+ const PROGRESS_MAX_ENTRIES = 200;
121
+ /** Events the hub's append-only log keeps (the newest). */
122
+ const PROGRESS_LOG_MAX = 200;
123
+ /** Notes kept per node (the newest); a note appends, never overwrites. */
124
+ const PROGRESS_NOTES_MAX = 20;
125
+ /** A done node is pruned this long after its last write. */
126
+ const PROGRESS_DONE_TTL_MS = 1440 * 60 * 1e3;
127
+ /** The creator of an auto-created node: the first real write claims it. */
128
+ const PROGRESS_AUTO = "_auto";
129
+ /**
130
+ * The owner, as a node (kind "person", a human assignee). His to-do items
131
+ * are its children, each with a `ref` to the node it unblocks. The data holds
132
+ * only this id and the name OWNER_NAME (a host may show its own name for it).
133
+ */
134
+ const OWNER_NODE = "/@owner";
135
+ const OWNER_ASSIGNEE = {
136
+ type: "human",
137
+ name: OWNER_NAME
138
+ };
139
+ const isOwnerTodo = (id) => id.startsWith(`${OWNER_NODE}/`);
140
+ const isOwnerSubtree = (id) => id === OWNER_NODE || isOwnerTodo(id);
141
+ /** Slugs ("main-live-tree") and paths ("/words/prefetch", "/_infra", "/@owner/x"). */
142
+ const ID_RE = /^(?:[a-z0-9][a-z0-9._:-]*|(?:\/@?[a-z0-9_][a-z0-9._:-]*)+)$/;
143
+ const isProgressId = (id) => typeof id === "string" && id.length <= PROGRESS_LIMITS.id && ID_RE.test(id);
144
+ const isPathId = (id) => id.startsWith("/");
145
+ /** A path id's parent: its directory ("/words/prefetch" → "/words"; "/words" → none). */
146
+ const pathParent = (id) => isPathId(id) && id.lastIndexOf("/") > 0 ? id.slice(0, id.lastIndexOf("/")) : void 0;
147
+ /** "/words/prefetch" → "/words › prefetch"; a slug stays as it is. */
148
+ function progressLabel(id) {
149
+ if (!isPathId(id)) return id;
150
+ const [first, ...rest] = id.slice(1).split("/");
151
+ return [`/${first}`, ...rest].join(" › ");
152
+ }
153
+ /** The default id: a slug of the assignee and the task. */
154
+ function progressSlug(name, task) {
155
+ return `${name}-${task}`.toLowerCase().normalize("NFKD").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 80).replace(/-+$/, "");
156
+ }
157
+ /** The storage key of one node. */
158
+ const progressKey = (e) => `e:${e.id}`;
159
+ const clean = (v) => v.replace(/[\u0000-\u001f\u007f]+/g, " ").trim();
160
+ function text(v, field) {
161
+ if (v === void 0 || v === null) return void 0;
162
+ if (typeof v !== "string") return /* @__PURE__ */ new Error(`${field} must be a string`);
163
+ const s = clean(v);
164
+ if (s.length > PROGRESS_LIMITS[field]) return /* @__PURE__ */ new Error(`${field} is longer than ${PROGRESS_LIMITS[field]} characters`);
165
+ return s;
166
+ }
167
+ /** `assignee: {type, name}`, or its alias `agent: "<name>"`. */
168
+ function parseAssignee(b) {
169
+ if (b.assignee !== void 0 && b.assignee !== null) {
170
+ const a = b.assignee;
171
+ if (typeof a !== "object" || !ASSIGNEE_TYPES.includes(a.type)) return /* @__PURE__ */ new Error(`assignee must be {type: ${ASSIGNEE_TYPES.join("|")}, name}`);
172
+ const name = text(a.name, "name");
173
+ if (name instanceof Error) return /* @__PURE__ */ new Error(`assignee.${name.message}`);
174
+ if (!name) return /* @__PURE__ */ new Error("assignee.name is required");
175
+ return {
176
+ type: a.type,
177
+ name
178
+ };
179
+ }
180
+ const name = text(b.agent, "name");
181
+ if (name instanceof Error) return /* @__PURE__ */ new Error(`agent: ${name.message}`);
182
+ if (!name) return /* @__PURE__ */ new Error("assignee (or agent) is required");
183
+ return {
184
+ type: "agent",
185
+ name
186
+ };
187
+ }
188
+ /** A report from a writer, checked field by field. An Error says what is wrong. */
189
+ function parseProgressReport(body) {
190
+ if (!body || typeof body !== "object" || Array.isArray(body)) return /* @__PURE__ */ new Error("body must be a JSON object");
191
+ const b = body;
192
+ const f = {};
193
+ for (const field of Object.keys(PROGRESS_LIMITS)) {
194
+ if (field === "name") continue;
195
+ const v = text(b[field], field);
196
+ if (v instanceof Error) return v;
197
+ if (v !== void 0) f[field] = v;
198
+ }
199
+ const assignee = parseAssignee(b);
200
+ if (assignee instanceof Error) return assignee;
201
+ if (!f.task) return /* @__PURE__ */ new Error("task is required");
202
+ if (!PROGRESS_STATUSES.includes(b.status)) return /* @__PURE__ */ new Error(`status must be one of ${PROGRESS_STATUSES.join(", ")}`);
203
+ if (b.kind !== void 0 && !PROGRESS_KINDS.includes(b.kind)) return /* @__PURE__ */ new Error(`kind must be one of ${PROGRESS_KINDS.join(", ")}`);
204
+ for (const k of [
205
+ "id",
206
+ "parent",
207
+ "ref"
208
+ ]) if (f[k] && !isProgressId(f[k])) return /* @__PURE__ */ new Error(`${k} must be a slug or a /path (a-z, 0-9, . _ : -)`);
209
+ const id = f.id || progressSlug(assignee.name, f.task);
210
+ if (!id) return /* @__PURE__ */ new Error("id is required when the name and task have no letters or digits");
211
+ let parent = f.parent || void 0;
212
+ if (isPathId(id)) {
213
+ const dir = pathParent(id);
214
+ if (parent !== void 0 && parent !== dir) return /* @__PURE__ */ new Error(`a path's parent is its directory (${dir ?? "none"}), not ${parent}`);
215
+ parent = dir;
216
+ }
217
+ if (parent === id) return /* @__PURE__ */ new Error("parent must not be the node itself");
218
+ const out = {
219
+ id,
220
+ assignee,
221
+ task: f.task,
222
+ status: b.status
223
+ };
224
+ if (parent) out.parent = parent;
225
+ if (b.kind !== void 0) out.kind = b.kind;
226
+ if (b.pct !== void 0 && b.pct !== null) {
227
+ if (typeof b.pct !== "number" || !Number.isFinite(b.pct) || b.pct < 0 || b.pct > 100) return /* @__PURE__ */ new Error("pct must be a number from 0 to 100");
228
+ out.pct = Math.round(b.pct);
229
+ }
230
+ for (const k of ["pr", "rev"]) if (b[k] !== void 0 && b[k] !== null) {
231
+ const n = b[k];
232
+ if (typeof n !== "number" || !Number.isInteger(n) || n <= 0 || n > Number.MAX_SAFE_INTEGER) return /* @__PURE__ */ new Error(`${k} must be a positive integer`);
233
+ out[k] = n;
234
+ }
235
+ if (f.link) {
236
+ if (!/^https:\/\/\S+$/.test(f.link)) return /* @__PURE__ */ new Error("link must be an https:// URL");
237
+ out.link = f.link;
238
+ }
239
+ if (f.needs !== void 0) out.needs = f.needs;
240
+ for (const k of [
241
+ "eta",
242
+ "ref",
243
+ "action",
244
+ "note"
245
+ ]) if (f[k]) out[k] = f[k];
246
+ return out;
247
+ }
248
+ /**
249
+ * The node a report makes, given what was there (`prev`). The first real
250
+ * write claims an auto-created node; the owner's subtree is always his,
251
+ * assigned to him; a note is appended; `needs: ""` clears it.
252
+ */
253
+ function mergeProgress(prev, r, at) {
254
+ const claim = !prev || prev.creator === PROGRESS_AUTO;
255
+ const pick = (k) => r[k] ?? prev?.[k];
256
+ const needs = r.needs === void 0 ? prev?.needs : r.needs || void 0;
257
+ const notes = [...prev?.notes ?? []];
258
+ if (r.note) notes.push({
259
+ at,
260
+ by: r.assignee.name,
261
+ text: r.note
262
+ });
263
+ const entry = {
264
+ id: r.id,
265
+ assignee: isOwnerSubtree(r.id) ? OWNER_ASSIGNEE : claim ? r.assignee : prev.assignee,
266
+ task: r.task,
267
+ status: r.status,
268
+ kind: r.id === OWNER_NODE ? "person" : r.kind ?? (claim || !prev ? "task" : prev.kind),
269
+ creator: claim ? r.assignee.name : prev.creator,
270
+ by: r.assignee.name,
271
+ rev: r.rev ?? (prev?.rev ?? 0) + 1,
272
+ created: prev?.created ?? at,
273
+ at
274
+ };
275
+ const parent = r.parent ?? prev?.parent;
276
+ if (parent) entry.parent = parent;
277
+ for (const k of [
278
+ "pct",
279
+ "eta",
280
+ "pr",
281
+ "ref",
282
+ "action",
283
+ "link"
284
+ ]) {
285
+ const v = pick(k);
286
+ if (v !== void 0) entry[k] = v;
287
+ }
288
+ if (needs) entry.needs = needs;
289
+ if (notes.length) entry.notes = notes.slice(-PROGRESS_NOTES_MAX);
290
+ return entry;
291
+ }
292
+ /** A node created only because a descendant named it: a group (or the owner's person node). */
293
+ function autoNode(id, by, at) {
294
+ const owner = id === OWNER_NODE;
295
+ const entry = {
296
+ id,
297
+ assignee: owner ? OWNER_ASSIGNEE : {
298
+ type: "agent",
299
+ name: by
300
+ },
301
+ task: owner ? OWNER_NAME : id.slice(id.lastIndexOf("/") + 1),
302
+ status: "doing",
303
+ kind: owner ? "person" : "group",
304
+ creator: PROGRESS_AUTO,
305
+ by,
306
+ rev: 1,
307
+ created: at,
308
+ at
309
+ };
310
+ const parent = pathParent(id);
311
+ if (parent) entry.parent = parent;
312
+ return entry;
313
+ }
314
+ /** The event a write broadcasts: the node without its notes, and the note it added. */
315
+ function progressEvent(entry, note) {
316
+ const { notes: _notes, ...rest } = entry;
317
+ return {
318
+ type: "progress",
319
+ ...rest,
320
+ ...note ? { note } : {}
321
+ };
322
+ }
323
+ const isEntry = (e) => {
324
+ if (!e || typeof e !== "object") return false;
325
+ const x = e;
326
+ const a = x.assignee;
327
+ return typeof x.id === "string" && !!a && typeof a.name === "string" && ASSIGNEE_TYPES.includes(a.type) && typeof x.task === "string" && PROGRESS_STATUSES.includes(x.status) && PROGRESS_KINDS.includes(x.kind) && typeof x.at === "number";
328
+ };
329
+ /** A reader's view of a hub message; anything else is null. */
330
+ function parseProgressMessage(raw) {
331
+ let m;
332
+ try {
333
+ m = typeof raw === "string" ? JSON.parse(raw) : null;
334
+ } catch {
335
+ return null;
336
+ }
337
+ if (!m || typeof m !== "object") return null;
338
+ const msg = m;
339
+ if (msg.type === "snapshot" && Array.isArray(msg.entries)) return {
340
+ type: "snapshot",
341
+ entries: msg.entries.filter(isEntry),
342
+ log: (Array.isArray(msg.log) ? msg.log : []).filter(isEntry)
343
+ };
344
+ if (msg.type === "progress" && isEntry(msg)) return msg;
345
+ return null;
346
+ }
347
+ /** Apply a hub message to a reader's view. */
348
+ function applyProgressMessage(view, msg) {
349
+ if (msg.type === "snapshot") return {
350
+ rows: [...msg.entries].sort((a, b) => b.at - a.at),
351
+ log: msg.log
352
+ };
353
+ const { type: _type, note, ...rest } = msg;
354
+ const notes = [...view.rows.find((r) => r.id === msg.id)?.notes ?? []];
355
+ if (note) notes.push({
356
+ at: msg.at,
357
+ by: msg.by,
358
+ text: note
359
+ });
360
+ return {
361
+ rows: [{
362
+ ...rest,
363
+ ...notes.length ? { notes: notes.slice(-PROGRESS_NOTES_MAX) } : {}
364
+ }, ...view.rows.filter((r) => r.id !== msg.id)].sort((a, b) => b.at - a.at),
365
+ log: [...view.log, msg].slice(-PROGRESS_LOG_MAX)
366
+ };
367
+ }
368
+ const isOpen = (e) => e.status !== "done";
369
+ const isWork = (e) => isOpen(e) && e.kind !== "group" && e.kind !== "person";
370
+ /**
371
+ * Does this node wait on the owner? An open decision or approval, or any
372
+ * open node marked waiting-owner or with something in `needs` — or one an
373
+ * open to-do under OWNER_NODE refs (`todoRefs`).
374
+ */
375
+ const waitsOnOwner = (e, todoRefs = /* @__PURE__ */ new Set()) => isOpen(e) && (e.kind === "decision" || e.kind === "approval" || e.status === "waiting-owner" || !!e.needs?.trim() || todoRefs.has(e.id));
376
+ /** The ids open owner to-dos point at. */
377
+ function openTodoRefs(entries) {
378
+ const refs = /* @__PURE__ */ new Set();
379
+ for (const e of entries) if (isOwnerTodo(e.id) && isOpen(e) && e.ref) refs.add(e.ref);
380
+ return refs;
381
+ }
382
+ /** Siblings: waiting on the owner first, then those with a waiting descendant, then newest first. */
383
+ const rank = (n) => n.waitingOwner ? 2 : n.waitingOwnerCount > 0 ? 1 : 0;
384
+ /**
385
+ * Fold nodes or events (in the order they happened) into the tree: the latest
386
+ * per id, children grouped under their parent, and per node its open counts
387
+ * and owner-waiting count over its subtree. Siblings are ordered by rank,
388
+ * then newest first. A node whose parent is unknown — or whose parent chain
389
+ * loops back to it — is a root.
390
+ */
391
+ function foldProgress(events) {
392
+ const nodes = /* @__PURE__ */ new Map();
393
+ for (const e of events) {
394
+ const { type: _type, note: _note, ...entry } = e;
395
+ nodes.set(entry.id, {
396
+ ...entry,
397
+ children: [],
398
+ counts: {
399
+ tasks: 0,
400
+ feedback: 0
401
+ },
402
+ waitingOwner: false,
403
+ waitingOwnerCount: 0
404
+ });
405
+ }
406
+ const refs = openTodoRefs(nodes.values());
407
+ const loops = (id) => {
408
+ const seen = new Set([id]);
409
+ for (let p = nodes.get(id)?.parent; p !== void 0; p = nodes.get(p)?.parent) {
410
+ if (seen.has(p)) return true;
411
+ if (!nodes.has(p)) return false;
412
+ seen.add(p);
413
+ }
414
+ return false;
415
+ };
416
+ const roots = [];
417
+ for (const node of nodes.values()) {
418
+ const parent = node.parent === void 0 ? void 0 : nodes.get(node.parent);
419
+ if (parent && !loops(node.id)) parent.children.push(node);
420
+ else roots.push(node);
421
+ }
422
+ const finish = (list) => {
423
+ const sum = {
424
+ tasks: 0,
425
+ feedback: 0,
426
+ waiting: 0
427
+ };
428
+ for (const n of list) {
429
+ const below = finish(n.children);
430
+ const self = isWork(n) ? 1 : 0;
431
+ n.counts = {
432
+ tasks: below.tasks + self,
433
+ feedback: below.feedback + (self && n.kind === "feedback" ? 1 : 0)
434
+ };
435
+ n.waitingOwner = waitsOnOwner(n, refs);
436
+ n.waitingOwnerCount = below.waiting + (n.waitingOwner ? 1 : 0);
437
+ sum.tasks += n.counts.tasks;
438
+ sum.feedback += n.counts.feedback;
439
+ sum.waiting += n.waitingOwnerCount;
440
+ }
441
+ list.sort((a, b) => rank(b) - rank(a) || b.at - a.at);
442
+ return sum;
443
+ };
444
+ finish(roots);
445
+ return roots;
446
+ }
447
+ /** Keep only nodes waiting on the owner and their ancestors (the "Needs me" filter). */
448
+ function filterWaiting(tree) {
449
+ return tree.filter((n) => n.waitingOwnerCount > 0).map((n) => ({
450
+ ...n,
451
+ children: filterWaiting(n.children)
452
+ }));
453
+ }
454
+ /** The owner's to-do list: the open nodes of his subtree, oldest first. */
455
+ function progressTodo(entries) {
456
+ return [...entries].filter((e) => isOwnerTodo(e.id) && isOpen(e)).sort((a, b) => a.created - b.created);
457
+ }
458
+ /** "8h", "30m", "2d", "90s" → milliseconds; an Error otherwise. */
459
+ function parseTtl(s) {
460
+ const m = /^(\d+(?:\.\d+)?)\s*([smhd])$/.exec(s.trim());
461
+ if (!m) return /* @__PURE__ */ new Error(`ttl must look like 30m, 8h or 2d, not ${s}`);
462
+ const unit = {
463
+ s: 1e3,
464
+ m: 6e4,
465
+ h: 36e5,
466
+ d: 864e5
467
+ }[m[2]];
468
+ return Math.round(Number(m[1]) * unit);
469
+ }
470
+
471
+ //#endregion
472
+ export { waitsOnOwner as A, parseTtl as C, progressLabel as D, progressKey as E, verifyProgressToken as M, progressSlug as O, parseProgressReport as S, progressEvent as T, isPathId as _, PROGRESS_DONE_TTL_MS as a, openTodoRefs as b, PROGRESS_LOG_MAX as c, PROGRESS_STATUSES as d, applyProgressMessage as f, isOwnerTodo as g, foldProgress as h, PROGRESS_AUTO as i, mintProgressToken as j, progressTodo as k, PROGRESS_MAX_ENTRIES as l, filterWaiting as m, OWNER_ASSIGNEE as n, PROGRESS_KINDS as o, autoNode as p, OWNER_NODE as r, PROGRESS_LIMITS as s, ASSIGNEE_TYPES as t, PROGRESS_NOTES_MAX as u, isProgressId as v, pathParent as w, parseProgressMessage as x, mergeProgress as y };
473
+ //# sourceMappingURL=progress-CJs08bXb.js.map
@@ -0,0 +1,205 @@
1
+ //#region src/progress-token.d.ts
2
+ /**
3
+ * Progress write scopes. The hub's secret itself is the root grant. A
4
+ * scoped token is
5
+ *
6
+ * base64url(JSON {node, agent, exp, via?}) + "." + base64url(HMAC-SHA256(secret, that payload))
7
+ *
8
+ * and lets `agent` write `node` and its descendants until `exp`. Only the
9
+ * hub holds the root, so only the hub mints (a scoped token delegates by
10
+ * asking it: POST <progress path>/grant). Web Crypto only, so a Worker and
11
+ * Bun share it. Stateless: nothing is stored per token.
12
+ */
13
+ type ProgressGrant = {
14
+ node: string;
15
+ agent: string; /** Expiry, ms since the epoch. */
16
+ exp: number; /** The node of the token that asked for this one ("root" for the root token). */
17
+ via?: string;
18
+ };
19
+ type ProgressAuth = {
20
+ root: true;
21
+ } | ({
22
+ root: false;
23
+ } & ProgressGrant);
24
+ /** A scoped token for `grant`, signed with the root secret. */
25
+ declare function mintProgressToken(secret: string, grant: ProgressGrant): Promise<string>;
26
+ /**
27
+ * Who a bearer token is: the root, a live scoped grant, or null (wrong
28
+ * signature, malformed, or expired).
29
+ */
30
+ declare function verifyProgressToken(secret: string, token: string, now?: number): Promise<ProgressAuth | null>;
31
+ //#endregion
32
+ //#region src/progress.d.ts
33
+ declare const PROGRESS_STATUSES: readonly ["doing", "blocked", "waiting", "waiting-owner", "review", "done"];
34
+ type ProgressStatus = (typeof PROGRESS_STATUSES)[number];
35
+ /**
36
+ * "decision" / "approval": pending decisions and authorisations (a repo, a
37
+ * merge, a grant, a secret). "feedback": work that came from a user's or the
38
+ * owner's feedback (a bug report). "person": a human's own node. "group": a
39
+ * plain grouping node, auto-created for a path's missing ancestors.
40
+ */
41
+ declare const PROGRESS_KINDS: readonly ["task", "decision", "approval", "feedback", "person", "group"];
42
+ type ProgressKind = (typeof PROGRESS_KINDS)[number];
43
+ declare const ASSIGNEE_TYPES: readonly ["agent", "human"];
44
+ type ProgressAssignee = {
45
+ type: (typeof ASSIGNEE_TYPES)[number];
46
+ name: string;
47
+ };
48
+ declare const PROGRESS_LIMITS: {
49
+ readonly name: 40;
50
+ readonly task: 120;
51
+ readonly note: 280;
52
+ readonly eta: 40;
53
+ readonly needs: 120;
54
+ readonly id: 120;
55
+ readonly parent: 120;
56
+ readonly ref: 120;
57
+ readonly action: 300;
58
+ readonly link: 300;
59
+ };
60
+ /** Nodes the hub keeps at most; past it the oldest done ones go first. */
61
+ declare const PROGRESS_MAX_ENTRIES = 200;
62
+ /** Events the hub's append-only log keeps (the newest). */
63
+ declare const PROGRESS_LOG_MAX = 200;
64
+ /** Notes kept per node (the newest); a note appends, never overwrites. */
65
+ declare const PROGRESS_NOTES_MAX = 20;
66
+ /** A done node is pruned this long after its last write. */
67
+ declare const PROGRESS_DONE_TTL_MS: number;
68
+ /** The creator of an auto-created node: the first real write claims it. */
69
+ declare const PROGRESS_AUTO = "_auto";
70
+ /**
71
+ * The owner, as a node (kind "person", a human assignee). His to-do items
72
+ * are its children, each with a `ref` to the node it unblocks. The data holds
73
+ * only this id and the name OWNER_NAME (a host may show its own name for it).
74
+ */
75
+ declare const OWNER_NODE = "/@owner";
76
+ declare const OWNER_ASSIGNEE: ProgressAssignee;
77
+ declare const isOwnerTodo: (id: string) => boolean;
78
+ /**
79
+ * What a writer posts. `id` is stable (default: a slug of assignee and
80
+ * task); `parent` another node's id (derived for a path id); `assignee` is
81
+ * who works on it (`agent: "<name>"` is the alias for an agent assignee) and
82
+ * also names the writer; `needs` is what the owner must do ("" clears it);
83
+ * `ref` (an owner to-do) the node it unblocks; `action` the exact command or
84
+ * URL that does it; `note` is appended to the node's notes; `rev`, if given,
85
+ * must be above the node's current rev (else 409).
86
+ */
87
+ type ProgressReport = {
88
+ id: string;
89
+ parent?: string;
90
+ assignee: ProgressAssignee;
91
+ task: string;
92
+ status: ProgressStatus;
93
+ kind?: ProgressKind;
94
+ pct?: number;
95
+ eta?: string;
96
+ pr?: number;
97
+ needs?: string;
98
+ ref?: string;
99
+ action?: string; /** A page about it (a PR, a preview): https only. */
100
+ link?: string;
101
+ note?: string;
102
+ rev?: number;
103
+ };
104
+ type ProgressNote = {
105
+ at: number;
106
+ by: string;
107
+ text: string;
108
+ };
109
+ /**
110
+ * A node as the hub keeps it. `creator` wrote it first (and so may change
111
+ * its status, pct and eta), `by` wrote it last, `rev` is its revision,
112
+ * `created` / `at` when it was first / last written.
113
+ */
114
+ type ProgressEntry = Omit<ProgressReport, "note" | "rev" | "kind"> & {
115
+ kind: ProgressKind;
116
+ creator: string;
117
+ by: string;
118
+ rev: number;
119
+ created: number;
120
+ at: number;
121
+ notes?: ProgressNote[];
122
+ };
123
+ /** One write as broadcast and logged: the node after it (without its notes) and the note it added. */
124
+ type ProgressEvent = {
125
+ type: "progress";
126
+ note?: string;
127
+ } & Omit<ProgressEntry, "notes">;
128
+ /**
129
+ * What the hub sends a reader: the state and the log on connect (and after a
130
+ * prune or an eviction), then each event as it happens.
131
+ */
132
+ type ProgressMessage = {
133
+ type: "snapshot";
134
+ entries: ProgressEntry[];
135
+ log: ProgressEvent[];
136
+ } | ProgressEvent;
137
+ declare const isProgressId: (id: unknown) => id is string;
138
+ declare const isPathId: (id: string) => boolean;
139
+ /** A path id's parent: its directory ("/words/prefetch" → "/words"; "/words" → none). */
140
+ declare const pathParent: (id: string) => string | undefined;
141
+ /** "/words/prefetch" → "/words › prefetch"; a slug stays as it is. */
142
+ declare function progressLabel(id: string): string;
143
+ /** The default id: a slug of the assignee and the task. */
144
+ declare function progressSlug(name: string, task: string): string;
145
+ /** The storage key of one node. */
146
+ declare const progressKey: (e: {
147
+ id: string;
148
+ }) => string;
149
+ /** A report from a writer, checked field by field. An Error says what is wrong. */
150
+ declare function parseProgressReport(body: unknown): ProgressReport | Error;
151
+ /**
152
+ * The node a report makes, given what was there (`prev`). The first real
153
+ * write claims an auto-created node; the owner's subtree is always his,
154
+ * assigned to him; a note is appended; `needs: ""` clears it.
155
+ */
156
+ declare function mergeProgress(prev: ProgressEntry | undefined, r: ProgressReport, at: number): ProgressEntry;
157
+ /** A node created only because a descendant named it: a group (or the owner's person node). */
158
+ declare function autoNode(id: string, by: string, at: number): ProgressEntry;
159
+ /** The event a write broadcasts: the node without its notes, and the note it added. */
160
+ declare function progressEvent(entry: ProgressEntry, note?: string): ProgressEvent;
161
+ /** A reader's view of a hub message; anything else is null. */
162
+ declare function parseProgressMessage(raw: unknown): ProgressMessage | null;
163
+ /** What a reader shows: the latest node per id (newest first) and the log (oldest first). */
164
+ type ProgressView = {
165
+ rows: ProgressEntry[];
166
+ log: ProgressEvent[];
167
+ };
168
+ /** Apply a hub message to a reader's view. */
169
+ declare function applyProgressMessage(view: ProgressView, msg: ProgressMessage): ProgressView;
170
+ /** Open work in a subtree: all open nodes that are not groups or people, and the feedback among them. */
171
+ type ProgressCounts = {
172
+ tasks: number;
173
+ feedback: number;
174
+ };
175
+ type ProgressNode = ProgressEntry & {
176
+ children: ProgressNode[];
177
+ counts: ProgressCounts; /** This node waits on the owner (see waitsOnOwner). */
178
+ waitingOwner: boolean; /** Nodes waiting on the owner in this subtree, this one included. */
179
+ waitingOwnerCount: number;
180
+ };
181
+ /**
182
+ * Does this node wait on the owner? An open decision or approval, or any
183
+ * open node marked waiting-owner or with something in `needs` — or one an
184
+ * open to-do under OWNER_NODE refs (`todoRefs`).
185
+ */
186
+ declare const waitsOnOwner: (e: ProgressEntry, todoRefs?: ReadonlySet<string>) => boolean;
187
+ /** The ids open owner to-dos point at. */
188
+ declare function openTodoRefs(entries: Iterable<ProgressEntry>): Set<string>;
189
+ /**
190
+ * Fold nodes or events (in the order they happened) into the tree: the latest
191
+ * per id, children grouped under their parent, and per node its open counts
192
+ * and owner-waiting count over its subtree. Siblings are ordered by rank,
193
+ * then newest first. A node whose parent is unknown — or whose parent chain
194
+ * loops back to it — is a root.
195
+ */
196
+ declare function foldProgress(events: Iterable<ProgressEntry | ProgressEvent>): ProgressNode[];
197
+ /** Keep only nodes waiting on the owner and their ancestors (the "Needs me" filter). */
198
+ declare function filterWaiting(tree: ProgressNode[]): ProgressNode[];
199
+ /** The owner's to-do list: the open nodes of his subtree, oldest first. */
200
+ declare function progressTodo(entries: Iterable<ProgressEntry>): ProgressEntry[];
201
+ /** "8h", "30m", "2d", "90s" → milliseconds; an Error otherwise. */
202
+ declare function parseTtl(s: string): number | Error;
203
+ //#endregion
204
+ export { mergeProgress as A, progressTodo as B, applyProgressMessage as C, isOwnerTodo as D, foldProgress as E, pathParent as F, verifyProgressToken as G, ProgressAuth as H, progressEvent as I, progressKey as L, parseProgressMessage as M, parseProgressReport as N, isPathId as O, parseTtl as P, progressLabel as R, ProgressView as S, filterWaiting as T, ProgressGrant as U, waitsOnOwner as V, mintProgressToken as W, ProgressMessage as _, PROGRESS_DONE_TTL_MS as a, ProgressReport as b, PROGRESS_LOG_MAX as c, PROGRESS_STATUSES as d, ProgressAssignee as f, ProgressKind as g, ProgressEvent as h, PROGRESS_AUTO as i, openTodoRefs as j, isProgressId as k, PROGRESS_MAX_ENTRIES as l, ProgressEntry as m, OWNER_ASSIGNEE as n, PROGRESS_KINDS as o, ProgressCounts as p, OWNER_NODE as r, PROGRESS_LIMITS as s, ASSIGNEE_TYPES as t, PROGRESS_NOTES_MAX as u, ProgressNode as v, autoNode as w, ProgressStatus as x, ProgressNote as y, progressSlug as z };
205
+ //# sourceMappingURL=progress-CfE-meHr.d.ts.map
@@ -0,0 +1,2 @@
1
+ import { A as mergeProgress, B as progressTodo, C as applyProgressMessage, D as isOwnerTodo, E as foldProgress, F as pathParent, G as verifyProgressToken, H as ProgressAuth, I as progressEvent, L as progressKey, M as parseProgressMessage, N as parseProgressReport, O as isPathId, P as parseTtl, R as progressLabel, S as ProgressView, T as filterWaiting, U as ProgressGrant, V as waitsOnOwner, W as mintProgressToken, _ as ProgressMessage, a as PROGRESS_DONE_TTL_MS, b as ProgressReport, c as PROGRESS_LOG_MAX, d as PROGRESS_STATUSES, f as ProgressAssignee, g as ProgressKind, h as ProgressEvent, i as PROGRESS_AUTO, j as openTodoRefs, k as isProgressId, l as PROGRESS_MAX_ENTRIES, m as ProgressEntry, n as OWNER_ASSIGNEE, o as PROGRESS_KINDS, p as ProgressCounts, r as OWNER_NODE, s as PROGRESS_LIMITS, t as ASSIGNEE_TYPES, u as PROGRESS_NOTES_MAX, v as ProgressNode, w as autoNode, x as ProgressStatus, y as ProgressNote, z as progressSlug } from "./progress-CfE-meHr.js";
2
+ export { ASSIGNEE_TYPES, OWNER_ASSIGNEE, OWNER_NODE, PROGRESS_AUTO, PROGRESS_DONE_TTL_MS, PROGRESS_KINDS, PROGRESS_LIMITS, PROGRESS_LOG_MAX, PROGRESS_MAX_ENTRIES, PROGRESS_NOTES_MAX, PROGRESS_STATUSES, ProgressAssignee, ProgressAuth, ProgressCounts, ProgressEntry, ProgressEvent, ProgressGrant, ProgressKind, ProgressMessage, ProgressNode, ProgressNote, ProgressReport, ProgressStatus, ProgressView, applyProgressMessage, autoNode, filterWaiting, foldProgress, isOwnerTodo, isPathId, isProgressId, mergeProgress, mintProgressToken, openTodoRefs, parseProgressMessage, parseProgressReport, parseTtl, pathParent, progressEvent, progressKey, progressLabel, progressSlug, progressTodo, verifyProgressToken, waitsOnOwner };
@@ -0,0 +1,3 @@
1
+ import { A as waitsOnOwner, C as parseTtl, D as progressLabel, E as progressKey, M as verifyProgressToken, O as progressSlug, S as parseProgressReport, T as progressEvent, _ as isPathId, a as PROGRESS_DONE_TTL_MS, b as openTodoRefs, c as PROGRESS_LOG_MAX, d as PROGRESS_STATUSES, f as applyProgressMessage, g as isOwnerTodo, h as foldProgress, i as PROGRESS_AUTO, j as mintProgressToken, k as progressTodo, l as PROGRESS_MAX_ENTRIES, m as filterWaiting, n as OWNER_ASSIGNEE, o as PROGRESS_KINDS, p as autoNode, r as OWNER_NODE, s as PROGRESS_LIMITS, t as ASSIGNEE_TYPES, u as PROGRESS_NOTES_MAX, v as isProgressId, w as pathParent, x as parseProgressMessage, y as mergeProgress } from "./progress-CJs08bXb.js";
2
+
3
+ export { ASSIGNEE_TYPES, OWNER_ASSIGNEE, OWNER_NODE, PROGRESS_AUTO, PROGRESS_DONE_TTL_MS, PROGRESS_KINDS, PROGRESS_LIMITS, PROGRESS_LOG_MAX, PROGRESS_MAX_ENTRIES, PROGRESS_NOTES_MAX, PROGRESS_STATUSES, applyProgressMessage, autoNode, filterWaiting, foldProgress, isOwnerTodo, isPathId, isProgressId, mergeProgress, mintProgressToken, openTodoRefs, parseProgressMessage, parseProgressReport, parseTtl, pathParent, progressEvent, progressKey, progressLabel, progressSlug, progressTodo, verifyProgressToken, waitsOnOwner };