@mulmoclaude/core 5.12.0 → 5.13.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 (189) hide show
  1. package/assets/helps/presenthtml.md +18 -0
  2. package/assets/helps/spreadsheet.md +6 -6
  3. package/dist/artifacts/paths.cjs +1 -2
  4. package/dist/artifacts/paths.js +1 -2
  5. package/dist/collection/firestore.cjs +1 -2
  6. package/dist/collection/firestore.js +1 -2
  7. package/dist/collection/index.cjs +18 -30
  8. package/dist/collection/index.cjs.map +1 -1
  9. package/dist/collection/index.js +18 -30
  10. package/dist/collection/index.js.map +1 -1
  11. package/dist/collection/paths.cjs +1 -1
  12. package/dist/collection/paths.js +1 -1
  13. package/dist/collection/registry/index.cjs +1 -1
  14. package/dist/collection/registry/index.js +1 -1
  15. package/dist/collection/registry/server/index.cjs +17 -26
  16. package/dist/collection/registry/server/index.cjs.map +1 -1
  17. package/dist/collection/registry/server/index.js +16 -25
  18. package/dist/collection/registry/server/index.js.map +1 -1
  19. package/dist/collection/server/index.cjs +5 -5
  20. package/dist/collection/server/index.js +5 -5
  21. package/dist/collection-watchers/index.cjs +10 -14
  22. package/dist/collection-watchers/index.cjs.map +1 -1
  23. package/dist/collection-watchers/index.js +10 -14
  24. package/dist/collection-watchers/index.js.map +1 -1
  25. package/dist/{discovery-DBJRuDv2.cjs → discovery-CYIV1J5l.cjs} +25 -42
  26. package/dist/{discovery-DBJRuDv2.cjs.map → discovery-CYIV1J5l.cjs.map} +1 -1
  27. package/dist/{discovery-BTl21_hI.js → discovery-duLlygnJ.js} +24 -41
  28. package/dist/{discovery-BTl21_hI.js.map → discovery-duLlygnJ.js.map} +1 -1
  29. package/dist/{dist-CAc42oZn.cjs → dist-734JaRYi.cjs} +2 -4
  30. package/dist/dist-734JaRYi.cjs.map +1 -0
  31. package/dist/{dist-C0oU4X3A.js → dist-BmO4oSQy.js} +2 -4
  32. package/dist/dist-BmO4oSQy.js.map +1 -0
  33. package/dist/errorMessage-D0kR547_.cjs +1 -0
  34. package/dist/errorMessage-TpKxrmeo.js +1 -0
  35. package/dist/{errors-Dgiw-unK.js → errors-0QwjDxsv.js} +3 -4
  36. package/dist/{errors-Dgiw-unK.js.map → errors-0QwjDxsv.js.map} +1 -1
  37. package/dist/{errors-DQr4mDbJ.cjs → errors-B9mCEVG9.cjs} +3 -4
  38. package/dist/{errors-DQr4mDbJ.cjs.map → errors-B9mCEVG9.cjs.map} +1 -1
  39. package/dist/feeds/index.cjs +2 -2
  40. package/dist/feeds/index.js +2 -2
  41. package/dist/feeds/paths.cjs +2 -3
  42. package/dist/feeds/paths.js +1 -2
  43. package/dist/feeds/server/index.cjs +23 -37
  44. package/dist/feeds/server/index.cjs.map +1 -1
  45. package/dist/feeds/server/index.js +22 -36
  46. package/dist/feeds/server/index.js.map +1 -1
  47. package/dist/file-change/index.cjs +2 -3
  48. package/dist/file-change/index.js +1 -2
  49. package/dist/files/index.cjs +136 -11
  50. package/dist/files/index.cjs.map +1 -1
  51. package/dist/files/index.d.ts +1 -0
  52. package/dist/files/index.js +132 -12
  53. package/dist/files/index.js.map +1 -1
  54. package/dist/files/verified.d.ts +28 -0
  55. package/dist/global-config/index.cjs +3 -5
  56. package/dist/global-config/index.cjs.map +1 -1
  57. package/dist/global-config/index.js +3 -5
  58. package/dist/global-config/index.js.map +1 -1
  59. package/dist/google/index.cjs +38 -67
  60. package/dist/google/index.cjs.map +1 -1
  61. package/dist/google/index.js +37 -66
  62. package/dist/google/index.js.map +1 -1
  63. package/dist/{graph-CURotEkH.cjs → graph-BvVMZfDV.cjs} +6 -11
  64. package/dist/{graph-CURotEkH.cjs.map → graph-BvVMZfDV.cjs.map} +1 -1
  65. package/dist/{graph-DBxSOx3v.js → graph-DBbzemby.js} +6 -11
  66. package/dist/{graph-DBxSOx3v.js.map → graph-DBbzemby.js.map} +1 -1
  67. package/dist/{iconGlyph-fSBp6k4J.cjs → iconGlyph-CFOiFsmq.cjs} +2 -3
  68. package/dist/{iconGlyph-fSBp6k4J.cjs.map → iconGlyph-CFOiFsmq.cjs.map} +1 -1
  69. package/dist/{iconGlyph-D8JeNg7R.js → iconGlyph-D9h__VaM.js} +2 -3
  70. package/dist/{iconGlyph-D8JeNg7R.js.map → iconGlyph-D9h__VaM.js.map} +1 -1
  71. package/dist/{ingestTypes-DS9HiR2I.cjs → ingestTypes-CLDvn7kw.cjs} +3 -4
  72. package/dist/{ingestTypes-DS9HiR2I.cjs.map → ingestTypes-CLDvn7kw.cjs.map} +1 -1
  73. package/dist/{ingestTypes-Bs31Xt5c.js → ingestTypes-DuXuSBSn.js} +3 -4
  74. package/dist/{ingestTypes-Bs31Xt5c.js.map → ingestTypes-DuXuSBSn.js.map} +1 -1
  75. package/dist/{itemId-CVrNibwT.cjs → itemId-D2XAQ8RU.cjs} +9 -17
  76. package/dist/{itemId-CVrNibwT.cjs.map → itemId-D2XAQ8RU.cjs.map} +1 -1
  77. package/dist/{itemId-C9s-Jd5s.js → itemId-D_pSpa3U.js} +9 -17
  78. package/dist/{itemId-C9s-Jd5s.js.map → itemId-D_pSpa3U.js.map} +1 -1
  79. package/dist/{listen-CUJyj9V2.cjs → listen-OmfLDX1l.cjs} +3 -4
  80. package/dist/{listen-CUJyj9V2.cjs.map → listen-OmfLDX1l.cjs.map} +1 -1
  81. package/dist/{listen-CnLfYFdW.js → listen-uiEnXcW9.js} +3 -4
  82. package/dist/{listen-CnLfYFdW.js.map → listen-uiEnXcW9.js.map} +1 -1
  83. package/dist/notifier/index.cjs +1 -1
  84. package/dist/notifier/index.js +1 -1
  85. package/dist/{notifier-BF49QNV7.cjs → notifier-CRTk34EC.cjs} +6 -10
  86. package/dist/{notifier-BF49QNV7.cjs.map → notifier-CRTk34EC.cjs.map} +1 -1
  87. package/dist/{notifier-XGAgdX2J.js → notifier-htdf4ekH.js} +6 -10
  88. package/dist/{notifier-XGAgdX2J.js.map → notifier-htdf4ekH.js.map} +1 -1
  89. package/dist/{paths-CkJxNZ7T.js → paths-BMQNHdaJ.js} +2 -3
  90. package/dist/{paths-CkJxNZ7T.js.map → paths-BMQNHdaJ.js.map} +1 -1
  91. package/dist/{paths-C8-jxR0s.cjs → paths-DUHAueEv.cjs} +2 -3
  92. package/dist/{paths-C8-jxR0s.cjs.map → paths-DUHAueEv.cjs.map} +1 -1
  93. package/dist/plugin-vue/i18n.cjs +1 -2
  94. package/dist/plugin-vue/i18n.js +1 -2
  95. package/dist/plugin-vue/index.cjs +9 -17
  96. package/dist/plugin-vue/index.cjs.map +1 -1
  97. package/dist/plugin-vue/index.js +9 -17
  98. package/dist/plugin-vue/index.js.map +1 -1
  99. package/dist/{project-C1ep9pvo.cjs → project-DDTIVEMU.cjs} +2 -3
  100. package/dist/{project-C1ep9pvo.cjs.map → project-DDTIVEMU.cjs.map} +1 -1
  101. package/dist/{project-B0j_Vf_Q.js → project-mU6-xLfy.js} +2 -3
  102. package/dist/{project-B0j_Vf_Q.js.map → project-mU6-xLfy.js.map} +1 -1
  103. package/dist/prompt-files/index.cjs +4 -6
  104. package/dist/prompt-files/index.cjs.map +1 -1
  105. package/dist/prompt-files/index.js +3 -5
  106. package/dist/prompt-files/index.js.map +1 -1
  107. package/dist/{promptSafety-C9uabl9i.js → promptSafety-B8LECAkY.js} +14 -25
  108. package/dist/{promptSafety-C9uabl9i.js.map → promptSafety-B8LECAkY.js.map} +1 -1
  109. package/dist/{promptSafety-CKmqbSTK.cjs → promptSafety-CjxafW2b.cjs} +14 -25
  110. package/dist/{promptSafety-CKmqbSTK.cjs.map → promptSafety-CjxafW2b.cjs.map} +1 -1
  111. package/dist/{relPath-DW8MC8VO.js → relPath-BkKmqiiF.js} +2 -3
  112. package/dist/{relPath-DW8MC8VO.js.map → relPath-BkKmqiiF.js.map} +1 -1
  113. package/dist/{relPath-CTAjGdCL.cjs → relPath-CZiP2S_a.cjs} +3 -4
  114. package/dist/{relPath-CTAjGdCL.cjs.map → relPath-CZiP2S_a.cjs.map} +1 -1
  115. package/dist/remote-host/index.cjs +1 -1
  116. package/dist/remote-host/index.js +1 -1
  117. package/dist/remote-host/server/index.cjs +14 -25
  118. package/dist/remote-host/server/index.cjs.map +1 -1
  119. package/dist/remote-host/server/index.js +14 -25
  120. package/dist/remote-host/server/index.js.map +1 -1
  121. package/dist/{remote-host-BLWjSIZd.cjs → remote-host-BW_eH-Nu.cjs} +4 -6
  122. package/dist/{remote-host-BLWjSIZd.cjs.map → remote-host-BW_eH-Nu.cjs.map} +1 -1
  123. package/dist/{remote-host-5f5LOmDU.js → remote-host-CSeDNbE6.js} +4 -6
  124. package/dist/{remote-host-5f5LOmDU.js.map → remote-host-CSeDNbE6.js.map} +1 -1
  125. package/dist/remote-view/index.cjs +3 -4
  126. package/dist/remote-view/index.js +3 -4
  127. package/dist/{rolldown-runtime-VH7oDXx4.cjs → rolldown-runtime-CmQyd0Gu.cjs} +1 -2
  128. package/dist/{root-BvwBUcol.cjs → root-9lRFeXbm.cjs} +10 -6
  129. package/dist/{root-BvwBUcol.cjs.map → root-9lRFeXbm.cjs.map} +1 -1
  130. package/dist/{root-BcS4-Kge.js → root-CqxPNSyK.js} +4 -6
  131. package/dist/{root-BcS4-Kge.js.map → root-CqxPNSyK.js.map} +1 -1
  132. package/dist/scheduler/index.cjs +6 -9
  133. package/dist/scheduler/index.cjs.map +1 -1
  134. package/dist/scheduler/index.js +5 -8
  135. package/dist/scheduler/index.js.map +1 -1
  136. package/dist/{server-ekmEXF9t.cjs → server-ByKWGQn2.cjs} +25 -41
  137. package/dist/{server-ekmEXF9t.cjs.map → server-ByKWGQn2.cjs.map} +1 -1
  138. package/dist/{server-BdRkw2Gh.js → server-CA-alqqN.js} +24 -40
  139. package/dist/{server-BdRkw2Gh.js.map → server-CA-alqqN.js.map} +1 -1
  140. package/dist/skill-bridge/index.cjs +3 -4
  141. package/dist/skill-bridge/index.js +2 -3
  142. package/dist/{slug-BpjumQfe.js → slug-D24AYqCZ.js} +2 -3
  143. package/dist/{slug-BpjumQfe.js.map → slug-D24AYqCZ.js.map} +1 -1
  144. package/dist/{slug-JxgB0ru9.cjs → slug-DVkuPjIv.cjs} +2 -3
  145. package/dist/{slug-JxgB0ru9.cjs.map → slug-DVkuPjIv.cjs.map} +1 -1
  146. package/dist/{templatePath-27vUZowm.cjs → templatePath-BIh7wqgS.cjs} +2 -3
  147. package/dist/{templatePath-27vUZowm.cjs.map → templatePath-BIh7wqgS.cjs.map} +1 -1
  148. package/dist/{templatePath-k_WNbL_Q.js → templatePath-CB3wtVpe.js} +2 -3
  149. package/dist/{templatePath-k_WNbL_Q.js.map → templatePath-CB3wtVpe.js.map} +1 -1
  150. package/dist/{text-CjDbP2O1.js → text-BQAuwKVj.js} +2 -3
  151. package/dist/{text-CjDbP2O1.js.map → text-BQAuwKVj.js.map} +1 -1
  152. package/dist/{text-CaAh9ZSO.cjs → text-BQiyo5R9.cjs} +2 -3
  153. package/dist/{text-CaAh9ZSO.cjs.map → text-BQiyo5R9.cjs.map} +1 -1
  154. package/dist/translation/client.cjs +1 -2
  155. package/dist/translation/client.js +1 -2
  156. package/dist/{types-BKVZrtyc.js → types-BLCZTGW2.js} +4 -7
  157. package/dist/{types-BKVZrtyc.js.map → types-BLCZTGW2.js.map} +1 -1
  158. package/dist/{types-CNqkLT4M.cjs → types-DPycxnDf.cjs} +4 -7
  159. package/dist/{types-CNqkLT4M.cjs.map → types-DPycxnDf.cjs.map} +1 -1
  160. package/dist/utils/fetch.cjs +0 -1
  161. package/dist/utils/fetch.js +0 -1
  162. package/dist/utils/index.cjs +3 -3
  163. package/dist/utils/index.js +3 -3
  164. package/dist/whisper/client.cjs +2 -4
  165. package/dist/whisper/client.cjs.map +1 -1
  166. package/dist/whisper/client.js +2 -4
  167. package/dist/whisper/client.js.map +1 -1
  168. package/dist/whisper/index.cjs +9 -15
  169. package/dist/whisper/index.cjs.map +1 -1
  170. package/dist/whisper/index.js +8 -14
  171. package/dist/whisper/index.js.map +1 -1
  172. package/dist/wiki/index.cjs +5 -7
  173. package/dist/wiki/index.cjs.map +1 -1
  174. package/dist/wiki/index.js +5 -7
  175. package/dist/wiki/index.js.map +1 -1
  176. package/dist/wiki/paths.cjs +3 -4
  177. package/dist/wiki/paths.js +2 -3
  178. package/dist/wiki/server/index.cjs +7 -11
  179. package/dist/wiki/server/index.cjs.map +1 -1
  180. package/dist/wiki/server/index.js +6 -10
  181. package/dist/wiki/server/index.js.map +1 -1
  182. package/dist/workspace-setup/index.js +4 -9
  183. package/dist/workspace-setup/index.js.map +1 -1
  184. package/dist/workspace-setup/slug.js +1 -2
  185. package/package.json +5 -5
  186. package/dist/dist-C0oU4X3A.js.map +0 -1
  187. package/dist/dist-CAc42oZn.cjs.map +0 -1
  188. package/dist/errorMessage-BYNQlnx0.cjs +0 -1
  189. package/dist/errorMessage-DVcsvx02.js +0 -1
@@ -1,9 +1,9 @@
1
- import { a as isErrorWithCode, c as isRecord, r as hasNumberProp, u as isUnknownArray } from "./dist-C0oU4X3A.js";
2
- import { n as writeFileAtomic, t as canonicalRoot } from "./root-BcS4-Kge.js";
3
- import { $ as fieldText, B as SAFE_SLUG_PATTERN, C as decodeRecordTimes, F as localCollectionKeyOf, G as AGENT_INGEST_KIND, H as isSafeRecordId, J as INGEST_KINDS, K as COMPUTED_TYPES, P as isValidCollectionName, Q as storageKindFor, R as sharedCollectionKey, T as encodeRecordTimes, U as isSafeSlug, Z as isReadOnlySchema, b as ACCENT_COLORS, et as fieldTextOrNull, q as FEED_SCHEDULES, t as newItemId, z as SAFE_RECORD_ID_PATTERN } from "./itemId-C9s-Jd5s.js";
4
- import { n as projectRecordFields } from "./project-B0j_Vf_Q.js";
5
- import { n as backoffDelayMs, r as classifyListenerError } from "./listen-CnLfYFdW.js";
6
- import { n as isSafeCustomViewI18nPath, r as isSafeCustomViewPath, t as isSafeActionTemplatePath } from "./templatePath-k_WNbL_Q.js";
1
+ import { a as isErrorWithCode, c as isRecord, r as hasNumberProp, u as isUnknownArray } from "./dist-BmO4oSQy.js";
2
+ import { r as writeFileAtomic, t as canonicalRoot } from "./root-CqxPNSyK.js";
3
+ import { $ as fieldText, B as SAFE_SLUG_PATTERN, C as decodeRecordTimes, F as localCollectionKeyOf, G as AGENT_INGEST_KIND, H as isSafeRecordId, J as INGEST_KINDS, K as COMPUTED_TYPES, P as isValidCollectionName, Q as storageKindFor, R as sharedCollectionKey, T as encodeRecordTimes, U as isSafeSlug, Z as isReadOnlySchema, b as ACCENT_COLORS, et as fieldTextOrNull, q as FEED_SCHEDULES, t as newItemId, z as SAFE_RECORD_ID_PATTERN } from "./itemId-D_pSpa3U.js";
4
+ import { n as projectRecordFields } from "./project-mU6-xLfy.js";
5
+ import { n as backoffDelayMs, r as classifyListenerError } from "./listen-uiEnXcW9.js";
6
+ import { n as isSafeCustomViewI18nPath, r as isSafeCustomViewPath, t as isSafeActionTemplatePath } from "./templatePath-CB3wtVpe.js";
7
7
  import { readFileSync, realpathSync, watch } from "node:fs";
8
8
  import path from "node:path";
9
9
  import { createHash, randomBytes } from "node:crypto";
@@ -11,7 +11,7 @@ import { lstat, mkdir, open, readFile, readdir, rename, stat, unlink, writeFile
11
11
  import { tmpdir } from "node:os";
12
12
  import iconv from "iconv-lite";
13
13
  import { z } from "zod";
14
- //#region src/host/hostSlot.ts
14
+ // src/host/hostSlot.ts
15
15
  function createHostSlot(name) {
16
16
  let current = null;
17
17
  const set = (value) => {
@@ -41,8 +41,7 @@ function createForwardingLogger(getLogger) {
41
41
  debug: (prefix, message, data) => getLogger()?.debug(prefix, message, data)
42
42
  };
43
43
  }
44
- //#endregion
45
- //#region src/collection/server/host.ts
44
+ // src/collection/server/host.ts
46
45
  /** `err.code` on the throw from `getWorkspaceRoot()` under an explicit-root
47
46
  * binding: this CALL is missing its `workspaceRoot` option. Exported because
48
47
  * the fix differs from a watcher root conflict — that one means another root's
@@ -244,8 +243,7 @@ function isPresetSlug(slug) {
244
243
  * `getWorkspaceRoot()`, which fails loudly because the engine cannot operate
245
244
  * without a workspace root. */
246
245
  var log = createForwardingLogger(() => hostSlot.peek()?.log ?? null);
247
- //#endregion
248
- //#region src/collection/server/backendAvailability.ts
246
+ // src/collection/server/backendAvailability.ts
249
247
  /** Thrown by a store when its engine or session cannot serve the request. */
250
248
  var BackendUnavailableError = class extends Error {
251
249
  constructor(message) {
@@ -256,8 +254,7 @@ var BackendUnavailableError = class extends Error {
256
254
  function isBackendUnavailable(err) {
257
255
  return err instanceof BackendUnavailableError;
258
256
  }
259
- //#endregion
260
- //#region src/collection/server/paths.ts
257
+ // src/collection/server/paths.ts
261
258
  var SCHEMA_FILE = "schema.json";
262
259
  /** Sanitise a user-supplied slug into a safe directory-name leaf.
263
260
  * Returns null for anything that fails the slug whitelist OR isn't a
@@ -379,8 +376,7 @@ function resolveTemplatePath(skillDir, templateRelPath) {
379
376
  if (!isContainedInRoot(resolved, skillDir)) return null;
380
377
  return resolved;
381
378
  }
382
- //#endregion
383
- //#region src/collection/server/storePage.ts
379
+ // src/collection/server/storePage.ts
384
380
  /** Project `fields` (+ the primary key, always) out of each record. Thin
385
381
  * server-typed alias over the shared isomorphic `projectRecordFields`
386
382
  * (../core/project.ts) — kept as the store layer's exported name. */
@@ -399,8 +395,7 @@ function pageFromFullRead(items, opts, primaryKey, truncated) {
399
395
  truncated
400
396
  };
401
397
  }
402
- //#endregion
403
- //#region src/collection/server/firestoreStore.ts
398
+ // src/collection/server/firestoreStore.ts
404
399
  /** What every operation throws when there is no live session. Worded as an
405
400
  * instruction because it surfaces straight to the user and the agent. */
406
401
  var NOT_CONNECTED = "shared collection unavailable: connect remote-host first — these records live in the app's Firestore, not in the workspace, so nothing can be read or written while the session is closed";
@@ -717,8 +712,7 @@ function firestoreStoreFor(collection, opts) {
717
712
  watch: async (onChange) => armSharedWatch(keyOf(collection), onChange)
718
713
  };
719
714
  }
720
- //#endregion
721
- //#region src/collection/server/appManifest.ts
715
+ // src/collection/server/appManifest.ts
722
716
  /** The app declaration's filename, at the repository root. */
723
717
  var APP_MANIFEST_FILE = "app.json";
724
718
  /** Read `<root>/app.json` and return its `aid`.
@@ -800,8 +794,7 @@ function appManifestReason(failure, root) {
800
794
  if (failure.kind === "unreadable") return `cannot read ${manifestPath}: ${failure.detail}`;
801
795
  return `${manifestPath} ${failure.detail}`;
802
796
  }
803
- //#endregion
804
- //#region src/collection/server/io.ts
797
+ // src/collection/server/io.ts
805
798
  /** True iff `filePath` exists and is a regular file (NOT a symlink).
806
799
  * Defends `listItems` / `readItem` against `*.json` symlinks placed
807
800
  * inside an otherwise-contained data dir — without this, a record
@@ -1024,8 +1017,7 @@ function resolveCreateItemId(schema, record) {
1024
1017
  const primaryRaw = record[schema.primaryKey];
1025
1018
  return typeof primaryRaw === "string" && primaryRaw.length > 0 ? primaryRaw : null;
1026
1019
  }
1027
- //#endregion
1028
- //#region src/collection/core/queryZ.ts
1020
+ // src/collection/core/queryZ.ts
1029
1021
  /** Result-column aliases double as SQL identifiers and JSON keys — keep
1030
1022
  * them to a conservative identifier charset so neither side needs
1031
1023
  * escaping gymnastics. */
@@ -1121,8 +1113,7 @@ var CollectionQueryZ = z.object({
1121
1113
  message: "every `orderBy.field` must be a `groupBy` column or an aggregate alias",
1122
1114
  path: ["orderBy"]
1123
1115
  });
1124
- //#endregion
1125
- //#region src/collection/server/csvQuery.ts
1116
+ // src/collection/server/csvQuery.ts
1126
1117
  /** Double-quote a SQL identifier (CSV column name / result alias). */
1127
1118
  function quoteIdent(name) {
1128
1119
  return `"${name.replaceAll("\"", "\"\"")}"`;
@@ -1232,8 +1223,7 @@ function compileCsvQuery(query, primaryKey) {
1232
1223
  function compileJsonlQuery(query) {
1233
1224
  return compileQuery(query, `read_json(?, format='newline_delimited', sample_size=-1)`);
1234
1225
  }
1235
- //#endregion
1236
- //#region src/collection/server/csvStore.ts
1226
+ // src/collection/server/csvStore.ts
1237
1227
  /** `list()` row cap. Over-cap files are truncated with a warn — the v1
1238
1228
  * contract is "browse + per-record views", not full-table analytics. */
1239
1229
  var MAX_CSV_ROWS = 5e3;
@@ -1534,8 +1524,7 @@ async function csvRunQuery(absPath, primaryKey, query, workspaceRoot) {
1534
1524
  const { sql, params } = compileCsvQuery(query, primaryKey);
1535
1525
  return (await queryCsv(sql, [utf8Path, ...params])).map((row) => Object.fromEntries(Object.entries(row).map(([key, value]) => [key, normalizeCsvValue(value)])));
1536
1526
  }
1537
- //#endregion
1538
- //#region src/collection/server/watchFs.ts
1527
+ // src/collection/server/watchFs.ts
1539
1528
  /** An atomic file replace (editor save, `mv` over the target) surfaces as
1540
1529
  * 2-3 events. Collapse them so one user action reports one change. */
1541
1530
  var REPLACE_DEBOUNCE_MS = 300;
@@ -1617,8 +1606,7 @@ async function watchSingleFile(absPath, alsoAccept, onChange) {
1617
1606
  function closerFor(handle) {
1618
1607
  return handle === null ? null : () => handle.close();
1619
1608
  }
1620
- //#endregion
1621
- //#region src/collection/server/sqliteStore.ts
1609
+ // src/collection/server/sqliteStore.ts
1622
1610
  /** A constructor's parameter and return types are not observable at runtime,
1623
1611
  * so the check stops at "DatabaseSync is constructible" — the only member of
1624
1612
  * the module this store ever touches. */
@@ -1889,8 +1877,7 @@ function sqliteStoreFor(collection, opts) {
1889
1877
  watch: async (onChange) => closerFor(await watchSingleFile(file, (base, name) => name.startsWith(base), () => onChange({ kind: "collection" })))
1890
1878
  };
1891
1879
  }
1892
- //#endregion
1893
- //#region src/collection/server/store.ts
1880
+ // src/collection/server/store.ts
1894
1881
  /** The file store's stable order: lexicographic by record id (codepoint
1895
1882
  * compare — locale-independent). `listItems` returns readdir order, which
1896
1883
  * is filesystem-dependent; paging needs determinism. */
@@ -2006,8 +1993,7 @@ function resolveMutateSet(set, params) {
2006
1993
  }
2007
1994
  return resolved;
2008
1995
  }
2009
- //#endregion
2010
- //#region src/collection/core/schemaRules.ts
1996
+ // src/collection/core/schemaRules.ts
2011
1997
  var declaredField = (fields, name) => Object.hasOwn(fields, name) ? fields[name] : void 0;
2012
1998
  var isDateLike = (type) => type === "date" || type === "datetime";
2013
1999
  var isTimeStringField = (type) => type === "string" || type === "text";
@@ -2331,8 +2317,7 @@ function viewIdsAreSlugs(schema) {
2331
2317
  function viewIdsAreUnique(schema) {
2332
2318
  return hasUniqueIds(schema.views);
2333
2319
  }
2334
- //#endregion
2335
- //#region src/collection/core/schemaZ.ts
2320
+ // src/collection/core/schemaZ.ts
2336
2321
  /** Optional visibility predicate shared by actions and fields: the target
2337
2322
  * shows only when the open record's `field` (stringified) is one of `in`.
2338
2323
  * Domain-free — `field` is any non-empty key, `in` a non-empty array of
@@ -3073,8 +3058,7 @@ var CollectionSchemaZ = z.preprocess((input, ctx) => {
3073
3058
  }
3074
3059
  return input;
3075
3060
  }, BareCollectionSchemaZ);
3076
- //#endregion
3077
- //#region src/collection/server/discovery.ts
3061
+ // src/collection/server/discovery.ts
3078
3062
  function applyFeedSchemaDefaults(parsed, slug) {
3079
3063
  if (!isRecord(parsed)) return parsed;
3080
3064
  const icon = typeof parsed.icon === "string" && parsed.icon.trim().length > 0 ? parsed.icon : "dynamic_feed";
@@ -3361,7 +3345,6 @@ function toDetail(collection) {
3361
3345
  schema: collection.schema
3362
3346
  };
3363
3347
  }
3364
- //#endregion
3365
3348
  export { collectionChangePayload as $, readItem as A, SCHEMA_FILE as B, CollectionQueryZ as C, generateItemId as D, deleteItem as E, loadAppManifest as F, resolveTemplatePath as G, isUnderRealRoot as H, parseAppManifest as I, BackendUnavailableError as J, safeRecordId as K, sharedItemsPath as L, writeItem as M, APP_MANIFEST_FILE as N, isRegularFile as O, appManifestReason as P, collectionChangeKey as Q, pageFromFullRead as R, compileJsonlQuery as S, MAX_QUERY_ROWS as T, itemFilePath as U, isContainedInRoot as V, resolveDataDir as W, COLLECTION_ROOT_REQUIRED as X, isBackendUnavailable as Y, archiveDir as Z, dedupeByRecordId as _, createForwardingLogger as _t, toDetail as a, isPresetSlug as at, queryCsv as b, resolveMutateSet as c, peekWorkspaceRoot as ct, storeFor as d, setCollectionChangePublisher as dt, collectionsRegistriesConfigPath as et, checkpointSqliteDatabase as f, setFirestoreAccessor as ft, decodeCsvRecordId as g, stagingSkillDir as gt, csvRowToItem as h, skillsStagingDir as ht, resolvePrimaryField as i, hostSupportsSharedCollections as it, resolveCreateItemId as j, listItems as k, collectionWritable as l, projectSkillsDir as lt, cacheDir as m, sharedCollectionChangePayload as mt, discoverCollections as n, firestoreHandle as nt, toSummary as o, localCollectionKey as ot, MAX_CSV_ROWS as p, setSharedCollectionsSupport as pt, safeSlugName as q, loadCollection as r, getWorkspaceRoot as rt, CollectionSchemaZ as s, log as st, acceptParsedSchema as t, configureCollectionHost as tt, readOnlyRefusal as u, publishCollectionChange as ut, encodeCsvRecordId as v, createHostSlot as vt, DEFAULT_QUERY_ROWS as w, compileCsvQuery as x, normalizeCsvValue as y, projectItemFields as z };
3366
3349
 
3367
- //# sourceMappingURL=discovery-BTl21_hI.js.map
3350
+ //# sourceMappingURL=discovery-duLlygnJ.js.map