@mulmoclaude/core 5.12.1 → 5.14.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 (186) hide show
  1. package/assets/helps/presenthtml.md +24 -0
  2. package/dist/artifacts/paths.cjs +1 -2
  3. package/dist/artifacts/paths.js +1 -2
  4. package/dist/collection/firestore.cjs +1 -2
  5. package/dist/collection/firestore.js +1 -2
  6. package/dist/collection/index.cjs +18 -30
  7. package/dist/collection/index.cjs.map +1 -1
  8. package/dist/collection/index.js +18 -30
  9. package/dist/collection/index.js.map +1 -1
  10. package/dist/collection/paths.cjs +1 -1
  11. package/dist/collection/paths.js +1 -1
  12. package/dist/collection/registry/index.cjs +1 -1
  13. package/dist/collection/registry/index.js +1 -1
  14. package/dist/collection/registry/server/index.cjs +17 -26
  15. package/dist/collection/registry/server/index.cjs.map +1 -1
  16. package/dist/collection/registry/server/index.js +16 -25
  17. package/dist/collection/registry/server/index.js.map +1 -1
  18. package/dist/collection/server/index.cjs +5 -5
  19. package/dist/collection/server/index.js +5 -5
  20. package/dist/collection-watchers/index.cjs +10 -14
  21. package/dist/collection-watchers/index.cjs.map +1 -1
  22. package/dist/collection-watchers/index.js +10 -14
  23. package/dist/collection-watchers/index.js.map +1 -1
  24. package/dist/{discovery-DgZRmO7F.cjs → discovery-CYIV1J5l.cjs} +25 -42
  25. package/dist/{discovery-DgZRmO7F.cjs.map → discovery-CYIV1J5l.cjs.map} +1 -1
  26. package/dist/{discovery-CbwHtcwk.js → discovery-duLlygnJ.js} +24 -41
  27. package/dist/{discovery-CbwHtcwk.js.map → discovery-duLlygnJ.js.map} +1 -1
  28. package/dist/{dist-BZ62pKuU.cjs → dist-734JaRYi.cjs} +2 -4
  29. package/dist/{dist-BZ62pKuU.cjs.map → dist-734JaRYi.cjs.map} +1 -1
  30. package/dist/{dist-MFUV9FYo.js → dist-BmO4oSQy.js} +2 -4
  31. package/dist/{dist-MFUV9FYo.js.map → dist-BmO4oSQy.js.map} +1 -1
  32. package/dist/errorMessage-D0kR547_.cjs +1 -0
  33. package/dist/errorMessage-TpKxrmeo.js +1 -0
  34. package/dist/{errors-zTAsW7dS.js → errors-0QwjDxsv.js} +3 -4
  35. package/dist/{errors-zTAsW7dS.js.map → errors-0QwjDxsv.js.map} +1 -1
  36. package/dist/{errors-B0xloJ3E.cjs → errors-B9mCEVG9.cjs} +3 -4
  37. package/dist/{errors-B0xloJ3E.cjs.map → errors-B9mCEVG9.cjs.map} +1 -1
  38. package/dist/feeds/index.cjs +2 -2
  39. package/dist/feeds/index.js +2 -2
  40. package/dist/feeds/paths.cjs +2 -3
  41. package/dist/feeds/paths.js +1 -2
  42. package/dist/feeds/server/index.cjs +23 -37
  43. package/dist/feeds/server/index.cjs.map +1 -1
  44. package/dist/feeds/server/index.js +22 -36
  45. package/dist/feeds/server/index.js.map +1 -1
  46. package/dist/file-change/index.cjs +2 -3
  47. package/dist/file-change/index.js +1 -2
  48. package/dist/files/index.cjs +159 -11
  49. package/dist/files/index.cjs.map +1 -1
  50. package/dist/files/index.d.ts +1 -0
  51. package/dist/files/index.js +154 -12
  52. package/dist/files/index.js.map +1 -1
  53. package/dist/files/verified.d.ts +33 -0
  54. package/dist/global-config/index.cjs +3 -5
  55. package/dist/global-config/index.cjs.map +1 -1
  56. package/dist/global-config/index.js +3 -5
  57. package/dist/global-config/index.js.map +1 -1
  58. package/dist/google/index.cjs +38 -67
  59. package/dist/google/index.cjs.map +1 -1
  60. package/dist/google/index.js +37 -66
  61. package/dist/google/index.js.map +1 -1
  62. package/dist/{graph-CURotEkH.cjs → graph-BvVMZfDV.cjs} +6 -11
  63. package/dist/{graph-CURotEkH.cjs.map → graph-BvVMZfDV.cjs.map} +1 -1
  64. package/dist/{graph-DBxSOx3v.js → graph-DBbzemby.js} +6 -11
  65. package/dist/{graph-DBxSOx3v.js.map → graph-DBbzemby.js.map} +1 -1
  66. package/dist/{iconGlyph-fSBp6k4J.cjs → iconGlyph-CFOiFsmq.cjs} +2 -3
  67. package/dist/{iconGlyph-fSBp6k4J.cjs.map → iconGlyph-CFOiFsmq.cjs.map} +1 -1
  68. package/dist/{iconGlyph-D8JeNg7R.js → iconGlyph-D9h__VaM.js} +2 -3
  69. package/dist/{iconGlyph-D8JeNg7R.js.map → iconGlyph-D9h__VaM.js.map} +1 -1
  70. package/dist/{ingestTypes-DS9HiR2I.cjs → ingestTypes-CLDvn7kw.cjs} +3 -4
  71. package/dist/{ingestTypes-DS9HiR2I.cjs.map → ingestTypes-CLDvn7kw.cjs.map} +1 -1
  72. package/dist/{ingestTypes-Bs31Xt5c.js → ingestTypes-DuXuSBSn.js} +3 -4
  73. package/dist/{ingestTypes-Bs31Xt5c.js.map → ingestTypes-DuXuSBSn.js.map} +1 -1
  74. package/dist/{itemId-CVrNibwT.cjs → itemId-D2XAQ8RU.cjs} +9 -17
  75. package/dist/{itemId-CVrNibwT.cjs.map → itemId-D2XAQ8RU.cjs.map} +1 -1
  76. package/dist/{itemId-C9s-Jd5s.js → itemId-D_pSpa3U.js} +9 -17
  77. package/dist/{itemId-C9s-Jd5s.js.map → itemId-D_pSpa3U.js.map} +1 -1
  78. package/dist/{listen-N_8XdKz_.cjs → listen-OmfLDX1l.cjs} +3 -4
  79. package/dist/{listen-N_8XdKz_.cjs.map → listen-OmfLDX1l.cjs.map} +1 -1
  80. package/dist/{listen-DUlzSOzX.js → listen-uiEnXcW9.js} +3 -4
  81. package/dist/{listen-DUlzSOzX.js.map → listen-uiEnXcW9.js.map} +1 -1
  82. package/dist/notifier/index.cjs +1 -1
  83. package/dist/notifier/index.js +1 -1
  84. package/dist/{notifier-CiemUClt.cjs → notifier-CRTk34EC.cjs} +6 -10
  85. package/dist/{notifier-CiemUClt.cjs.map → notifier-CRTk34EC.cjs.map} +1 -1
  86. package/dist/{notifier-dgkC-h80.js → notifier-htdf4ekH.js} +6 -10
  87. package/dist/{notifier-dgkC-h80.js.map → notifier-htdf4ekH.js.map} +1 -1
  88. package/dist/{paths-CkJxNZ7T.js → paths-BMQNHdaJ.js} +2 -3
  89. package/dist/{paths-CkJxNZ7T.js.map → paths-BMQNHdaJ.js.map} +1 -1
  90. package/dist/{paths-C8-jxR0s.cjs → paths-DUHAueEv.cjs} +2 -3
  91. package/dist/{paths-C8-jxR0s.cjs.map → paths-DUHAueEv.cjs.map} +1 -1
  92. package/dist/plugin-vue/i18n.cjs +1 -2
  93. package/dist/plugin-vue/i18n.js +1 -2
  94. package/dist/plugin-vue/index.cjs +9 -17
  95. package/dist/plugin-vue/index.cjs.map +1 -1
  96. package/dist/plugin-vue/index.js +9 -17
  97. package/dist/plugin-vue/index.js.map +1 -1
  98. package/dist/{project-C1ep9pvo.cjs → project-DDTIVEMU.cjs} +2 -3
  99. package/dist/{project-C1ep9pvo.cjs.map → project-DDTIVEMU.cjs.map} +1 -1
  100. package/dist/{project-B0j_Vf_Q.js → project-mU6-xLfy.js} +2 -3
  101. package/dist/{project-B0j_Vf_Q.js.map → project-mU6-xLfy.js.map} +1 -1
  102. package/dist/prompt-files/index.cjs +4 -6
  103. package/dist/prompt-files/index.cjs.map +1 -1
  104. package/dist/prompt-files/index.js +3 -5
  105. package/dist/prompt-files/index.js.map +1 -1
  106. package/dist/{promptSafety-DFaOnOWN.js → promptSafety-B8LECAkY.js} +14 -25
  107. package/dist/{promptSafety-DFaOnOWN.js.map → promptSafety-B8LECAkY.js.map} +1 -1
  108. package/dist/{promptSafety-yET9jLep.cjs → promptSafety-CjxafW2b.cjs} +14 -25
  109. package/dist/{promptSafety-yET9jLep.cjs.map → promptSafety-CjxafW2b.cjs.map} +1 -1
  110. package/dist/{relPath-DW8MC8VO.js → relPath-BkKmqiiF.js} +2 -3
  111. package/dist/{relPath-DW8MC8VO.js.map → relPath-BkKmqiiF.js.map} +1 -1
  112. package/dist/{relPath-CTAjGdCL.cjs → relPath-CZiP2S_a.cjs} +3 -4
  113. package/dist/{relPath-CTAjGdCL.cjs.map → relPath-CZiP2S_a.cjs.map} +1 -1
  114. package/dist/remote-host/index.cjs +1 -1
  115. package/dist/remote-host/index.js +1 -1
  116. package/dist/remote-host/server/index.cjs +14 -25
  117. package/dist/remote-host/server/index.cjs.map +1 -1
  118. package/dist/remote-host/server/index.js +14 -25
  119. package/dist/remote-host/server/index.js.map +1 -1
  120. package/dist/{remote-host-CR5W9uj4.cjs → remote-host-BW_eH-Nu.cjs} +4 -6
  121. package/dist/{remote-host-CR5W9uj4.cjs.map → remote-host-BW_eH-Nu.cjs.map} +1 -1
  122. package/dist/{remote-host-9NNAvUhU.js → remote-host-CSeDNbE6.js} +4 -6
  123. package/dist/{remote-host-9NNAvUhU.js.map → remote-host-CSeDNbE6.js.map} +1 -1
  124. package/dist/remote-view/index.cjs +3 -4
  125. package/dist/remote-view/index.js +3 -4
  126. package/dist/{rolldown-runtime-VH7oDXx4.cjs → rolldown-runtime-CmQyd0Gu.cjs} +1 -2
  127. package/dist/{root-BvwBUcol.cjs → root-9lRFeXbm.cjs} +10 -6
  128. package/dist/{root-BvwBUcol.cjs.map → root-9lRFeXbm.cjs.map} +1 -1
  129. package/dist/{root-BcS4-Kge.js → root-CqxPNSyK.js} +4 -6
  130. package/dist/{root-BcS4-Kge.js.map → root-CqxPNSyK.js.map} +1 -1
  131. package/dist/scheduler/index.cjs +6 -9
  132. package/dist/scheduler/index.cjs.map +1 -1
  133. package/dist/scheduler/index.js +5 -8
  134. package/dist/scheduler/index.js.map +1 -1
  135. package/dist/{server-CJek9Y3Q.cjs → server-ByKWGQn2.cjs} +25 -41
  136. package/dist/{server-CJek9Y3Q.cjs.map → server-ByKWGQn2.cjs.map} +1 -1
  137. package/dist/{server-BtbbQqBY.js → server-CA-alqqN.js} +24 -40
  138. package/dist/{server-BtbbQqBY.js.map → server-CA-alqqN.js.map} +1 -1
  139. package/dist/skill-bridge/index.cjs +3 -4
  140. package/dist/skill-bridge/index.js +2 -3
  141. package/dist/{slug-BpjumQfe.js → slug-D24AYqCZ.js} +2 -3
  142. package/dist/{slug-BpjumQfe.js.map → slug-D24AYqCZ.js.map} +1 -1
  143. package/dist/{slug-JxgB0ru9.cjs → slug-DVkuPjIv.cjs} +2 -3
  144. package/dist/{slug-JxgB0ru9.cjs.map → slug-DVkuPjIv.cjs.map} +1 -1
  145. package/dist/{templatePath-27vUZowm.cjs → templatePath-BIh7wqgS.cjs} +2 -3
  146. package/dist/{templatePath-27vUZowm.cjs.map → templatePath-BIh7wqgS.cjs.map} +1 -1
  147. package/dist/{templatePath-k_WNbL_Q.js → templatePath-CB3wtVpe.js} +2 -3
  148. package/dist/{templatePath-k_WNbL_Q.js.map → templatePath-CB3wtVpe.js.map} +1 -1
  149. package/dist/{text-CjDbP2O1.js → text-BQAuwKVj.js} +2 -3
  150. package/dist/{text-CjDbP2O1.js.map → text-BQAuwKVj.js.map} +1 -1
  151. package/dist/{text-CaAh9ZSO.cjs → text-BQiyo5R9.cjs} +2 -3
  152. package/dist/{text-CaAh9ZSO.cjs.map → text-BQiyo5R9.cjs.map} +1 -1
  153. package/dist/translation/client.cjs +1 -2
  154. package/dist/translation/client.js +1 -2
  155. package/dist/{types-BKVZrtyc.js → types-BLCZTGW2.js} +4 -7
  156. package/dist/{types-BKVZrtyc.js.map → types-BLCZTGW2.js.map} +1 -1
  157. package/dist/{types-CNqkLT4M.cjs → types-DPycxnDf.cjs} +4 -7
  158. package/dist/{types-CNqkLT4M.cjs.map → types-DPycxnDf.cjs.map} +1 -1
  159. package/dist/utils/fetch.cjs +0 -1
  160. package/dist/utils/fetch.js +0 -1
  161. package/dist/utils/index.cjs +3 -3
  162. package/dist/utils/index.js +3 -3
  163. package/dist/whisper/client.cjs +2 -4
  164. package/dist/whisper/client.cjs.map +1 -1
  165. package/dist/whisper/client.js +2 -4
  166. package/dist/whisper/client.js.map +1 -1
  167. package/dist/whisper/index.cjs +9 -15
  168. package/dist/whisper/index.cjs.map +1 -1
  169. package/dist/whisper/index.js +8 -14
  170. package/dist/whisper/index.js.map +1 -1
  171. package/dist/wiki/index.cjs +5 -7
  172. package/dist/wiki/index.cjs.map +1 -1
  173. package/dist/wiki/index.js +5 -7
  174. package/dist/wiki/index.js.map +1 -1
  175. package/dist/wiki/paths.cjs +3 -4
  176. package/dist/wiki/paths.js +2 -3
  177. package/dist/wiki/server/index.cjs +7 -11
  178. package/dist/wiki/server/index.cjs.map +1 -1
  179. package/dist/wiki/server/index.js +6 -10
  180. package/dist/wiki/server/index.js.map +1 -1
  181. package/dist/workspace-setup/index.js +4 -9
  182. package/dist/workspace-setup/index.js.map +1 -1
  183. package/dist/workspace-setup/slug.js +1 -2
  184. package/package.json +2 -2
  185. package/dist/errorMessage-OEQzRwsi.cjs +0 -1
  186. package/dist/errorMessage-VEiXHRnX.js +0 -1
@@ -1,10 +1,10 @@
1
- import { a as isErrorWithCode, c as isRecord, l as isStringArray, t as errorMessage, u as isUnknownArray } from "./dist-MFUV9FYo.js";
2
- import "./errors-zTAsW7dS.js";
3
- import { n as writeFileAtomic } from "./root-BcS4-Kge.js";
4
- import { n as toPosixRelPath } from "./relPath-DW8MC8VO.js";
5
- import { $ as fieldText, D as isCanonicalServerTime, K as COMPUTED_TYPES, Q as storageKindFor, X as isFieldDrivenEvery, Y as embedTargetId, et as fieldTextOrNull, f as parseIsoDate, p as parseIsoDateTime } from "./itemId-C9s-Jd5s.js";
6
- import { A as schemaDefaults, S as rollupValue, b as coerceNumeric, c as selectDynamicRecord, f as itemIsDone, h as linkedSlugsForFields, i as ownProp, k as firstUnknownDefault, n as deriveAll, o as firstDateField, s as resolveIcon, t as defangForPrompt, w as actionVisible, x as projectBacklinkRow, y as backlinkRows } from "./promptSafety-DFaOnOWN.js";
7
- import { B as SCHEMA_FILE$1, C as CollectionQueryZ, G as resolveTemplatePath, H as isUnderRealRoot, O as isRegularFile, S as compileJsonlQuery, V as isContainedInRoot, W as resolveDataDir, Y as isBackendUnavailable, Z as archiveDir, at as isPresetSlug$1, b as queryCsv, c as resolveMutateSet, d as storeFor, f as checkpointSqliteDatabase, gt as stagingSkillDir, i as resolvePrimaryField, j as resolveCreateItemId, m as cacheDir, n as discoverCollections, q as safeSlugName, r as loadCollection, rt as getWorkspaceRoot, s as CollectionSchemaZ, st as log, u as readOnlyRefusal, y as normalizeCsvValue } from "./discovery-CbwHtcwk.js";
1
+ import { a as isErrorWithCode, c as isRecord, l as isStringArray, t as errorMessage, u as isUnknownArray } from "./dist-BmO4oSQy.js";
2
+ import "./errors-0QwjDxsv.js";
3
+ import { r as writeFileAtomic } from "./root-CqxPNSyK.js";
4
+ import { n as toPosixRelPath } from "./relPath-BkKmqiiF.js";
5
+ import { $ as fieldText, D as isCanonicalServerTime, K as COMPUTED_TYPES, Q as storageKindFor, X as isFieldDrivenEvery, Y as embedTargetId, et as fieldTextOrNull, f as parseIsoDate, p as parseIsoDateTime } from "./itemId-D_pSpa3U.js";
6
+ import { A as schemaDefaults, S as rollupValue, b as coerceNumeric, c as selectDynamicRecord, f as itemIsDone, h as linkedSlugsForFields, i as ownProp, k as firstUnknownDefault, n as deriveAll, o as firstDateField, s as resolveIcon, t as defangForPrompt, w as actionVisible, x as projectBacklinkRow, y as backlinkRows } from "./promptSafety-B8LECAkY.js";
7
+ import { B as SCHEMA_FILE$1, C as CollectionQueryZ, G as resolveTemplatePath, H as isUnderRealRoot, O as isRegularFile, S as compileJsonlQuery, V as isContainedInRoot, W as resolveDataDir, Y as isBackendUnavailable, Z as archiveDir, at as isPresetSlug$1, b as queryCsv, c as resolveMutateSet, d as storeFor, f as checkpointSqliteDatabase, gt as stagingSkillDir, i as resolvePrimaryField, j as resolveCreateItemId, m as cacheDir, n as discoverCollections, q as safeSlugName, r as loadCollection, rt as getWorkspaceRoot, s as CollectionSchemaZ, st as log, u as readOnlyRefusal, y as normalizeCsvValue } from "./discovery-duLlygnJ.js";
8
8
  import { ingestStatePath } from "./feeds/paths.js";
9
9
  import { mirrorSkillWrite } from "./skill-bridge/index.js";
10
10
  import { constants } from "node:fs";
@@ -12,7 +12,7 @@ import path from "node:path";
12
12
  import { randomBytes, randomUUID } from "node:crypto";
13
13
  import { cp, lstat, mkdir, open, readFile, readdir, realpath, rm, rmdir, stat, unlink, writeFile } from "node:fs/promises";
14
14
  import { z } from "zod";
15
- //#region src/collection/server/skillAssets.ts
15
+ // src/collection/server/skillAssets.ts
16
16
  /** Read a collection's custom-view HTML, path-safely. `viewFile` is a
17
17
  * schema-validated `views/*.html` path, resolved with realpath containment.
18
18
  * Returns the HTML, or null when the path is unsafe or the file is missing.
@@ -258,8 +258,7 @@ ${dataJson}
258
258
 
259
259
  ${templateText}`;
260
260
  }
261
- //#endregion
262
- //#region src/collection/server/jsonlQuery.ts
261
+ // src/collection/server/jsonlQuery.ts
263
262
  /** SQL semantics for an aggregate-only query over ZERO rows: one scalar
264
263
  * row (`count` = 0, everything else NULL) — the same shape the CSV path
265
264
  * produces for a header-only file, so callers reading `rows[0]` never
@@ -326,8 +325,7 @@ async function runQueryOverRows(rows, query) {
326
325
  });
327
326
  }
328
327
  }
329
- //#endregion
330
- //#region src/collection/server/derive.ts
328
+ // src/collection/server/derive.ts
331
329
  async function loadTarget(slug, opts) {
332
330
  const target = await loadCollection(slug, opts);
333
331
  if (!target) return null;
@@ -415,15 +413,13 @@ async function enrichItems(collection, items, opts = {}, fields) {
415
413
  const refRecords = toRefRecords(linked);
416
414
  return items.map((item) => projectComputed(schema, deriveAll(schema, projectRollups(schema, item, linked), refRecords), linked));
417
415
  }
418
- //#endregion
419
- //#region src/collection/server/queryRunner.ts
416
+ // src/collection/server/queryRunner.ts
420
417
  async function runCollectionQuery(collection, query, opts = {}) {
421
418
  const store = storeFor(collection, { workspaceRoot: opts.workspaceRoot });
422
419
  if (store.query) return store.query(query);
423
420
  return runQueryOverRows(await enrichItems(collection, await store.list(), opts), query);
424
421
  }
425
- //#endregion
426
- //#region src/collection/core/recordZ.ts
422
+ // src/collection/core/recordZ.ts
427
423
  /** The emptiness rule shared by `required` and the "only check present
428
424
  * values" gate. NOT a truthiness check — `0` and `false` are filled. */
429
425
  var isEmptyValue = (value) => value === void 0 || value === null || value === "";
@@ -536,8 +532,7 @@ function firstRecordProblem(record, schema, tier) {
536
532
  if (result.success) return null;
537
533
  return result.error.issues[0]?.message ?? "record failed schema validation";
538
534
  }
539
- //#endregion
540
- //#region src/collection/server/validate.ts
535
+ // src/collection/server/validate.ts
541
536
  /** Don't flood the result; the first batch is enough to act on. Exported
542
537
  * because a caller that REPORTS a count has to know the count is a floor —
543
538
  * `publish` presents a full batch as "at least N" rather than as a total. */
@@ -673,8 +668,7 @@ function validateRecordObject(record, itemId, schema, tier = "enforced") {
673
668
  if (idValue !== itemId) return `'${schema.primaryKey}' is '${idValue}' but must equal the filename ('${itemId}'), or the record can't be opened`;
674
669
  return firstRecordProblem(record, schema, tier);
675
670
  }
676
- //#endregion
677
- //#region src/collection/server/mutate.ts
671
+ // src/collection/server/mutate.ts
678
672
  /** First problem with the submitted params, or null. Every declared param
679
673
  * is checked by the shared record-field validator; keys the action never
680
674
  * declared are rejected outright — a stray key would otherwise ride the
@@ -740,8 +734,7 @@ async function applyMutateAction(collection, action, itemId, params, opts = {})
740
734
  item: merged
741
735
  };
742
736
  }
743
- //#endregion
744
- //#region src/collection/server/ontology.ts
737
+ // src/collection/server/ontology.ts
745
738
  /** Extract the relations a schema declares, in field declaration order:
746
739
  * top-level `ref` / `embed` / `backlinks` fields plus `ref` sub-fields
747
740
  * inside `table` columns. Pure — exported so the phase-2 graph panel
@@ -822,8 +815,7 @@ async function buildWorkspaceOntology(opts = {}) {
822
815
  const collections = await discoverCollections(opts);
823
816
  return Promise.all(collections.map((collection) => toOntologyEntry(collection, workspaceRoot)));
824
817
  }
825
- //#endregion
826
- //#region src/collection/server/dynamicIcon.ts
818
+ // src/collection/server/dynamicIcon.ts
827
819
  /** Index `items` by their `primaryKey` value — the `recordsById` map a
828
820
  * `valueFrom` reference (e.g. `_config.defaultCity`) resolves against.
829
821
  * Items whose primary key isn't a string (shouldn't happen for a valid
@@ -869,12 +861,10 @@ async function computeCollectionIcon(collection, opts = {}) {
869
861
  return spec.fallback ?? schema.icon;
870
862
  }
871
863
  }
872
- //#endregion
873
- //#region src/collection/server/util.ts
864
+ // src/collection/server/util.ts
874
865
  var ONE_SECOND_MS = 1e3;
875
866
  var ONE_DAY_MS = 864e5;
876
- //#endregion
877
- //#region src/collection/server/spawn.ts
867
+ // src/collection/server/spawn.ts
878
868
  var YMD_PATTERN = /^(\d{4})-(\d{2})-(\d{2})$/;
879
869
  function pad2(value) {
880
870
  return String(value).padStart(2, "0");
@@ -1091,8 +1081,7 @@ async function maybeSpawnSuccessor(collection, sourceItem, sourceId, ioOpts = {}
1091
1081
  });
1092
1082
  }
1093
1083
  }
1094
- //#endregion
1095
- //#region src/collection/server/delete.ts
1084
+ // src/collection/server/delete.ts
1096
1085
  /** Human-readable reason for a non-`ok` delete result. Exported so the
1097
1086
  * route maps `kind` → message without inlining the switch (keeps the
1098
1087
  * handler short and the mapping unit-testable). The `Record` is
@@ -1328,8 +1317,7 @@ async function deleteCollection(collection, opts = {}) {
1328
1317
  archivePath: archiveRel
1329
1318
  };
1330
1319
  }
1331
- //#endregion
1332
- //#region src/collection/server/views.ts
1320
+ // src/collection/server/views.ts
1333
1321
  /** The authoritative base dir for a collection's schema.json + view HTML.
1334
1322
  * For a project collection, prefer the staging tree when its schema.json is
1335
1323
  * present (authoring layout); otherwise fall back to the active skill dir
@@ -1413,8 +1401,7 @@ async function deleteCustomView(collection, viewId, opts = {}) {
1413
1401
  viewId
1414
1402
  };
1415
1403
  }
1416
- //#endregion
1417
- //#region src/collection/server/schemaDocs.ts
1404
+ // src/collection/server/schemaDocs.ts
1418
1405
  /** Fenced authoring variants inside the reference doc.
1419
1406
  *
1420
1407
  * A collection's authoring LOCATION depends on the root it lives in, and the
@@ -1600,8 +1587,7 @@ function renderSchemaDocs(rawDoc, topic, variant = "staged") {
1600
1587
  if (sections.length === 0) return doc;
1601
1588
  return clip(requested ? renderTopic(lines, sections, requested) : renderDefault(lines, sections), SCHEMA_DOCS_RESULT_BUDGET);
1602
1589
  }
1603
- //#endregion
1604
- //#region src/collection/server/schemaReadReply.ts
1590
+ // src/collection/server/schemaReadReply.ts
1605
1591
  /** The note prefixed when the two copies differ. Kept separate from the JSON by a
1606
1592
  * blank line so the schema below it is still copyable as-is. */
1607
1593
  function divergenceNotice(slug) {
@@ -1630,8 +1616,7 @@ function schemaReadReply(slug, staging, active) {
1630
1616
  function isPresetSlug(slug) {
1631
1617
  return slug.startsWith("mc-") && slug.length > 3;
1632
1618
  }
1633
- //#endregion
1634
- //#region src/collection/server/manageTool.ts
1619
+ // src/collection/server/manageTool.ts
1635
1620
  /** Refuse an unselective getItems beyond this many records — a silent
1636
1621
  * truncation would read as "covered everything", and an unbounded dump
1637
1622
  * of a large collection is a token bomb. `ids` or `fields` lifts it. */
@@ -2487,7 +2472,6 @@ function makeManageCollectionTool(deps = {}) {
2487
2472
  handler: (args) => manageCollectionHandler(deps, args)
2488
2473
  };
2489
2474
  }
2490
- //#endregion
2491
2475
  export { recordFieldProblem as A, stagedSkillDir as B, applyMutateAction as C, validateCollectionRecords as D, STORE_UNREADABLE as E, buildCollectionActionSeedPrompt as F, promptPathsFor as I, readCustomViewHtml as L, enrichItems as M, runQueryOverRows as N, validateRecordObject as O, buildActionSeedPrompt as P, readCustomViewI18n as R, schemaRelations as S, MAX_RECORD_ISSUES as T, resolveEvery as _, MAX_UNSELECTIVE_ITEMS as a, computeCollectionIcon as b, deleteCollection as c, computeSuccessor as d, daysInMonth as f, parseCivil as g, maybeSpawnSuccessor as h, MAX_SCHEMA_ISSUES as i, runCollectionQuery as j, compileRecordZ as k, deleteCollectionRefusalMessage as l, isTriggerDue as m, MAX_PUT_ITEMS as n, makeManageCollectionTool as o, formatCivil as p, MAX_PUT_LINT as r, deleteCustomView as s, MAX_ITEMS_FILE_BYTES as t, advanceTriggerDate as u, successorId as v, firstMutateParamProblem as w, buildWorkspaceOntology as x, ONE_SECOND_MS as y, readSkillTemplate as z };
2492
2476
 
2493
- //# sourceMappingURL=server-BtbbQqBY.js.map
2477
+ //# sourceMappingURL=server-CA-alqqN.js.map