@mulmoclaude/core 0.15.0 → 0.18.1

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 (45) hide show
  1. package/assets/helps/collection-skills.md +74 -13
  2. package/assets/helps/custom-view.md +28 -0
  3. package/assets/helps/egress-sync.md +158 -0
  4. package/assets/helps/index.md +1 -0
  5. package/dist/{calendarGrid-CaR-q36Y.js → calendarGrid-B3dtFN-m.js} +51 -11
  6. package/dist/calendarGrid-B3dtFN-m.js.map +1 -0
  7. package/dist/{calendarGrid-gN4sei7s.cjs → calendarGrid-CRaMAguM.cjs} +68 -10
  8. package/dist/calendarGrid-CRaMAguM.cjs.map +1 -0
  9. package/dist/collection/core/actionVisible.d.ts +15 -4
  10. package/dist/collection/core/backlinks.d.ts +20 -0
  11. package/dist/collection/core/mutateAction.d.ts +14 -0
  12. package/dist/collection/core/recordZ.d.ts +3 -2
  13. package/dist/collection/core/schema.d.ts +20 -10
  14. package/dist/collection/core/schemaZ.d.ts +177 -16
  15. package/dist/collection/core/uiTypes.d.ts +4 -0
  16. package/dist/collection/index.cjs +7 -3
  17. package/dist/collection/index.cjs.map +1 -1
  18. package/dist/collection/index.js +5 -4
  19. package/dist/collection/index.js.map +1 -1
  20. package/dist/collection/registry/server/index.cjs +1 -1
  21. package/dist/collection/registry/server/index.js +1 -1
  22. package/dist/collection/server/index.cjs +4 -2
  23. package/dist/collection/server/index.d.ts +1 -0
  24. package/dist/collection/server/index.js +3 -3
  25. package/dist/collection/server/mutate.d.ts +24 -0
  26. package/dist/collection/server/ontology.d.ts +1 -1
  27. package/dist/collection-watchers/index.cjs +2 -2
  28. package/dist/collection-watchers/index.js +2 -2
  29. package/dist/feeds/index.cjs +2 -2
  30. package/dist/feeds/index.js +2 -2
  31. package/dist/feeds/server/index.cjs +3 -3
  32. package/dist/feeds/server/index.js +3 -3
  33. package/dist/{ingestTypes-DG8RExWt.cjs → ingestTypes-Cq65Bv-N.cjs} +2 -2
  34. package/dist/{ingestTypes-DG8RExWt.cjs.map → ingestTypes-Cq65Bv-N.cjs.map} +1 -1
  35. package/dist/{ingestTypes-V4upKeBx.js → ingestTypes-DvsJhqMx.js} +2 -2
  36. package/dist/{ingestTypes-V4upKeBx.js.map → ingestTypes-DvsJhqMx.js.map} +1 -1
  37. package/dist/{server-BNTR7ySK.js → server-C3FOqabY.js} +204 -28
  38. package/dist/server-C3FOqabY.js.map +1 -0
  39. package/dist/{server-bsNrf2yW.cjs → server-Cd6HA_3-.cjs} +216 -28
  40. package/dist/server-Cd6HA_3-.cjs.map +1 -0
  41. package/package.json +1 -1
  42. package/dist/calendarGrid-CaR-q36Y.js.map +0 -1
  43. package/dist/calendarGrid-gN4sei7s.cjs.map +0 -1
  44. package/dist/server-BNTR7ySK.js.map +0 -1
  45. package/dist/server-bsNrf2yW.cjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import { A as isSafeSlug, C as projectBacklinkRow, D as SAFE_RECORD_ID_PATTERN, F as embedTargetId, I as isFieldDrivenEvery, M as COMPUTED_TYPES, N as FEED_SCHEDULES, O as SAFE_SLUG_PATTERN, P as INGEST_KINDS, S as backlinkRows, b as selectDynamicRecord, h as deriveAll, j as AGENT_INGEST_KIND, k as isSafeRecordId, l as parseIsoDate, u as parseIsoDateTime, v as firstDateField, y as resolveIcon } from "./calendarGrid-CaR-q36Y.js";
1
+ import { A as SAFE_RECORD_ID_PATTERN, C as coerceNumeric, E as actionVisible, F as COMPUTED_TYPES, I as FEED_SCHEDULES, L as INGEST_KINDS, M as isSafeRecordId, N as isSafeSlug, P as AGENT_INGEST_KIND, R as embedTargetId, S as backlinkRows, T as rollupValue, b as selectDynamicRecord, h as deriveAll, j as SAFE_SLUG_PATTERN, l as parseIsoDate, u as parseIsoDateTime, v as firstDateField, w as projectBacklinkRow, y as resolveIcon, z as isFieldDrivenEvery } from "./calendarGrid-B3dtFN-m.js";
2
2
  import { isSafeActionTemplatePath, isSafeCustomViewI18nPath, isSafeCustomViewPath } from "./collection/paths.js";
3
3
  import path from "node:path";
4
4
  import { promises, realpathSync } from "node:fs";
@@ -646,15 +646,6 @@ function enforcedProblem(key, spec, value) {
646
646
  if (!empty && spec.type === "enum" && !spec.values.includes(String(value))) return `'${key}' = '${String(value)}' is not one of [${spec.values.join(", ")}]`;
647
647
  return null;
648
648
  }
649
- /** Numeric coercion for the strict `number`/`money` check: a plain number,
650
- * or a non-blank numeric string (renderers coerce those via `Number(...)`,
651
- * so they display fine). Anything else — arrays (`[]` stringifies to `""`
652
- * = 0, `[42]` to `"42"`), booleans, objects — is NaN and gets flagged. */
653
- function coerceNumeric(value) {
654
- if (typeof value === "number") return value;
655
- if (typeof value === "string" && value.trim() !== "") return Number(value);
656
- return NaN;
657
- }
658
649
  /** Report-only per-type checks on a PRESENT value. Date / datetime reuse the
659
650
  * calendar's STRICT civil parsers (`parseIsoDate` / `parseIsoDateTime`), so
660
651
  * the lint flags exactly the values the calendar / trigger / spawn code
@@ -822,6 +813,96 @@ function validateRecordObject(record, itemId, schema, tier = "enforced") {
822
813
  if (typeof idValue !== "string" || idValue !== itemId) return `'${schema.primaryKey}' is '${String(idValue ?? "")}' but must equal the filename ('${itemId}'), or the record can't be opened`;
823
814
  return firstRecordProblem(record, schema, tier);
824
815
  }
816
+ /** The param name a `set` value references, or null when the value is a
817
+ * literal (non-strings can never be references). A bare/empty prefix
818
+ * (`"$params."`) returns the empty string — the schema refine rejects
819
+ * it as an undeclared param, never silently treats it as a literal. */
820
+ function paramRefName(value) {
821
+ if (typeof value !== "string" || !value.startsWith("$params.")) return null;
822
+ return value.slice(8);
823
+ }
824
+ /** Resolve a mutate action's `set` map against the submitted params:
825
+ * literals pass through, `$params.<name>` reads the param value. An
826
+ * ABSENT referenced param omits the key entirely (merge semantics —
827
+ * the stored value survives), mirroring how the record form omits
828
+ * empty optionals rather than writing empty strings. */
829
+ function resolveMutateSet(set, params) {
830
+ const resolved = {};
831
+ for (const [key, value] of Object.entries(set)) {
832
+ const ref = paramRefName(value);
833
+ if (ref === null) {
834
+ resolved[key] = value;
835
+ continue;
836
+ }
837
+ const paramValue = params[ref];
838
+ if (paramValue !== void 0 && paramValue !== null && paramValue !== "") resolved[key] = paramValue;
839
+ }
840
+ return resolved;
841
+ }
842
+ //#endregion
843
+ //#region src/collection/server/mutate.ts
844
+ /** First problem with the submitted params, or null. Every declared param
845
+ * is checked by the shared record-field validator; keys the action never
846
+ * declared are rejected outright — a stray key would otherwise ride the
847
+ * resolved `set` semantics silently. */
848
+ function firstMutateParamProblem(action, params) {
849
+ const declared = action.params ?? {};
850
+ for (const key of Object.keys(params)) if (declared[key] === void 0) return `unknown param '${key}' — not declared by action '${action.id}'`;
851
+ for (const [key, spec] of Object.entries(declared)) {
852
+ const problem = recordFieldProblem(key, spec, params[key], "strict");
853
+ if (problem) return problem;
854
+ }
855
+ return null;
856
+ }
857
+ /** Apply one mutate action to one record. Never throws for data-shaped
858
+ * failures — the outcome's `problem` doubles as agent feedback when an
859
+ * LLM (not the user) pressed the button. */
860
+ async function applyMutateAction(collection, action, itemId, params, opts = {}) {
861
+ const paramProblem = firstMutateParamProblem(action, params);
862
+ if (paramProblem) return {
863
+ ok: false,
864
+ status: "invalid-params",
865
+ problem: paramProblem
866
+ };
867
+ const existing = await readItem(collection.dataDir, itemId, opts);
868
+ if (!existing) return {
869
+ ok: false,
870
+ status: "not-found",
871
+ problem: `item '${itemId}' not found`
872
+ };
873
+ if (!actionVisible(action, existing)) return {
874
+ ok: false,
875
+ status: "require-unmet",
876
+ problem: `action '${action.id}' is not available for item '${itemId}' in its current state`
877
+ };
878
+ const stored = Object.entries(existing).filter(([key]) => {
879
+ const spec = collection.schema.fields[key];
880
+ return !spec || !COMPUTED_TYPES.has(spec.type);
881
+ });
882
+ const merged = {
883
+ ...Object.fromEntries(stored),
884
+ ...resolveMutateSet(action.set, params)
885
+ };
886
+ const invalid = validateRecordObject(merged, itemId, collection.schema);
887
+ if (invalid) return {
888
+ ok: false,
889
+ status: "invalid-record",
890
+ problem: invalid
891
+ };
892
+ const result = await writeItem(collection.dataDir, itemId, merged, {
893
+ workspaceRoot: opts.workspaceRoot,
894
+ slug: collection.slug
895
+ });
896
+ if (result.kind !== "ok") return {
897
+ ok: false,
898
+ status: "write-refused",
899
+ problem: `write refused (${result.kind})`
900
+ };
901
+ return {
902
+ ok: true,
903
+ item: merged
904
+ };
905
+ }
825
906
  //#endregion
826
907
  //#region src/collection/core/schemaZ.ts
827
908
  /** Optional visibility predicate shared by actions and fields: the target
@@ -991,7 +1072,7 @@ var EmbedFieldZ = z.object({
991
1072
  message: "fields with type 'embed' must declare a `to` (valid collection slug) and exactly one of `id` (a fixed record's primary key) or `idField` (a sibling field naming the per-record target)",
992
1073
  path: ["id"]
993
1074
  });
994
- /** Display-only REVERSE refs (plan step ② of plans/collection-ontology.md):
1075
+ /** Display-only REVERSE refs (plan step ② of plans/done/collection-ontology.md):
995
1076
  * a read-only sub-table of the records in collection `from` whose `via`
996
1077
  * ref field stores THIS record's primary key. Stores nothing (joins
997
1078
  * `COMPUTED_TYPES`); resolution is shared server/client via
@@ -1009,6 +1090,30 @@ var BacklinksFieldZ = z.object({
1009
1090
  display: z.array(z.string().trim().min(1)).min(1),
1010
1091
  filter: WhenZ.optional()
1011
1092
  }).refine((spec) => isSafeSlug(spec.from), slugMessage("from"));
1093
+ /** A cross-collection AGGREGATE over a backlink relation (plan step ⑤ of
1094
+ * plans/done/collection-ontology.md): a computed number — never stored — that
1095
+ * sums a source column (or counts rows) over the records in `from` whose
1096
+ * `via` ref points at this record. Same `from`/`via`/`filter` vocabulary
1097
+ * and reverse-loading machinery as `backlinks`; resolution shared
1098
+ * server/client via `core/backlinks.ts`'s `rollupValue`. Deliberately a
1099
+ * STRUCTURED field, not `sumOver(...)` formula syntax — the derived
1100
+ * evaluator's no-string-literals boundary stays untouched — and
1101
+ * deliberately just `sum` | `count`. Rollups resolve BEFORE the formula
1102
+ * pass, so a sibling `derived` formula may read them as identifiers
1103
+ * (`played = homePlayed + awayPlayed`). Fail-soft: an unresolvable
1104
+ * `from` renders em-dash; an empty match set is a real 0. */
1105
+ var RollupFieldZ = z.object({
1106
+ type: z.literal("rollup"),
1107
+ ...fieldBase,
1108
+ from: z.string().min(1),
1109
+ via: z.string().trim().min(1),
1110
+ op: z.enum(["sum", "count"]),
1111
+ column: z.string().trim().min(1).optional(),
1112
+ filter: WhenZ.optional()
1113
+ }).refine((spec) => isSafeSlug(spec.from), slugMessage("from")).refine((spec) => spec.op === "sum" === (spec.column !== void 0), {
1114
+ message: "a rollup's `column` names the source column to aggregate: required for op \"sum\", meaningless for op \"count\"",
1115
+ path: ["column"]
1116
+ });
1012
1117
  /** A checkbox that is a pure PROJECTION of an `enum` field — it stores
1013
1118
  * nothing of its own. Checked when the enum named by `field` equals
1014
1119
  * `onValue`; toggling writes `onValue` / `offValue` back to that enum
@@ -1032,23 +1137,60 @@ var FieldSpecZ = z.discriminatedUnion("type", [
1032
1137
  DerivedFieldZ,
1033
1138
  EmbedFieldZ,
1034
1139
  BacklinksFieldZ,
1140
+ RollupFieldZ,
1035
1141
  ToggleFieldZ
1036
1142
  ]);
1037
- /** A schema-declared record action, rendered as a button in the read-only
1038
- * detail view. Domain-free: the host validates the shape; the meaning
1039
- * (which role, which template) is data. v1 ships only `kind: "chat"` —
1040
- * start a new chat in `role` with a templated seed prompt; the enum
1041
- * reserves room for a future `"mutate"` (status transitions) without
1042
- * another schema-shape change. */
1043
- var ActionSpecZ = z.object({
1143
+ var actionBase = {
1044
1144
  id: z.string().trim().min(1),
1045
1145
  label: z.string().trim().min(1),
1046
- icon: z.string().trim().min(1).optional(),
1047
- kind: z.enum(["chat"]),
1146
+ icon: z.string().trim().min(1).optional()
1147
+ };
1148
+ /** The LLM-seeded action kinds — same shape, different visibility:
1149
+ * - `"chat"` — start a new VISIBLE chat in `role` with the templated
1150
+ * seed prompt (judgment work: drafting, planning, conversation).
1151
+ * - `"agent"` — dispatch a HIDDEN worker (origin `system`) with the SAME
1152
+ * seed; it edits records via manageCollection and finishes silently
1153
+ * (mechanical enrichment: refresh a price, fetch metadata). Spinner
1154
+ * while running, deduped failure bell on error — see
1155
+ * server/api/routes/collectionAgentActions.ts. */
1156
+ var SeededActionZ = z.object({
1157
+ kind: z.enum(["chat", "agent"]),
1158
+ ...actionBase,
1048
1159
  role: z.string().trim().min(1),
1049
1160
  template: z.string().trim().min(1).refine(isSafeActionTemplatePath, "must be a safe path under `templates/` (e.g. `templates/invoice.md`; no `..`, no leading `/`, no backslash)"),
1050
1161
  when: WhenZ.optional()
1051
1162
  });
1163
+ /** `kind: "mutate"` — a declarative, HOST-executed write; no LLM, no
1164
+ * tokens (plan step ④ of plans/done/collection-ontology.md). Clicking the
1165
+ * button (after an optional `params` mini-form) merges `set` into the
1166
+ * record: values are literals or `$params.<name>` references. `require`
1167
+ * is the state gate — the standard `when` shape, both the visibility
1168
+ * rule AND the server-side authorization rule, exactly like `when` on
1169
+ * the seeded kinds. `params` reuses the table sub-field DSL, and the
1170
+ * form is validated by the SAME compiled record checks `putItems` uses
1171
+ * (`recordFieldProblem`), not a third mechanism. Record-level only —
1172
+ * a collection-level mutate has no record to write (schema refine
1173
+ * below). Merge semantics make half-states unconstructible THROUGH
1174
+ * THIS PATH; the raw file stays editable by design (lint, not lock). */
1175
+ var MutateActionZ = z.object({
1176
+ kind: z.literal("mutate"),
1177
+ ...actionBase,
1178
+ require: WhenZ.optional(),
1179
+ params: z.record(z.string().trim().min(1), SubFieldSpecZ).optional(),
1180
+ set: z.record(z.string().trim().min(1), z.union([
1181
+ z.string(),
1182
+ z.number(),
1183
+ z.boolean()
1184
+ ]))
1185
+ }).refine((spec) => Object.keys(spec.set).length > 0, {
1186
+ message: "a mutate action's `set` must name at least one field to write",
1187
+ path: ["set"]
1188
+ });
1189
+ /** A schema-declared record action, rendered as a button in the read-only
1190
+ * detail view. Domain-free: the host validates the shape; the meaning
1191
+ * (role + template prose, or the declarative `set`) is data. A
1192
+ * discriminated union on `kind` — each kind declares only its own keys. */
1193
+ var ActionSpecZ = z.discriminatedUnion("kind", [SeededActionZ, MutateActionZ]);
1052
1194
  /** A custom (LLM-authored) HTML view registration. Domain-free: the host
1053
1195
  * validates the shape; the view's behaviour lives in the HTML file. `file`
1054
1196
  * is constrained to `views/*.html` (path-safe) so the view-file reader can
@@ -1289,6 +1431,21 @@ var CollectionSchemaZ = z.object({
1289
1431
  }).refine((schema) => schema.collectionActions === void 0 || new Set(schema.collectionActions.map((action) => action.id)).size === schema.collectionActions.length, {
1290
1432
  message: "schema `collectionActions` must have unique `id`s",
1291
1433
  path: ["collectionActions"]
1434
+ }).refine((schema) => (schema.actions ?? []).every((action) => action.kind !== "mutate" || Object.keys(action.set).every((key) => {
1435
+ const target = schema.fields[key];
1436
+ return target !== void 0 && !COMPUTED_TYPES.has(target.type) && key !== schema.primaryKey;
1437
+ })), {
1438
+ message: "a mutate action's `set` keys must name declared, non-computed fields (and never the primaryKey)",
1439
+ path: ["actions"]
1440
+ }).refine((schema) => (schema.actions ?? []).every((action) => action.kind !== "mutate" || Object.values(action.set).every((value) => {
1441
+ const ref = paramRefName(value);
1442
+ return ref === null || (action.params ?? {})[ref] !== void 0;
1443
+ })), {
1444
+ message: "a mutate action's `$params.<name>` references must name keys declared in its `params`",
1445
+ path: ["actions"]
1446
+ }).refine((schema) => (schema.collectionActions ?? []).every((action) => action.kind !== "mutate"), {
1447
+ message: "`collectionActions` cannot contain `kind: \"mutate\"` — a collection-level action has no record to write",
1448
+ path: ["collectionActions"]
1292
1449
  }).refine((schema) => collectCurrencyFieldRefs(schema.fields).every((name) => CODE_FIELD_TYPES.has(schema.fields[name]?.type ?? "")), {
1293
1450
  message: "a money field's `currencyField` must name a top-level `string`, `text`, or `enum` field that holds the currency code",
1294
1451
  path: ["fields"]
@@ -1575,9 +1732,9 @@ function schemaRelations(schema) {
1575
1732
  kind: spec.type,
1576
1733
  to: spec.to
1577
1734
  });
1578
- if (spec.type === "backlinks") relations.push({
1735
+ if (spec.type === "backlinks" || spec.type === "rollup") relations.push({
1579
1736
  field: key,
1580
- kind: "backlinks",
1737
+ kind: spec.type,
1581
1738
  to: spec.from
1582
1739
  });
1583
1740
  if (spec.type !== "table") continue;
@@ -1650,11 +1807,12 @@ function uniqueEmbedTargets(schema) {
1650
1807
  for (const field of Object.values(schema.fields)) if (field.type === "embed" && typeof field.to === "string" && field.to.length > 0) targets.add(field.to);
1651
1808
  return [...targets];
1652
1809
  }
1653
- /** Slugs of every SOURCE collection a `backlinks` field reverses over —
1654
- * loaded exactly like ref/embed targets (whole collection, once). */
1810
+ /** Slugs of every SOURCE collection a `backlinks` or `rollup` field
1811
+ * reverses over — loaded exactly like ref/embed targets (whole
1812
+ * collection, once; the two field kinds share one load). */
1655
1813
  function uniqueBacklinkSources(schema) {
1656
1814
  const sources = /* @__PURE__ */ new Set();
1657
- for (const field of Object.values(schema.fields)) if (field.type === "backlinks" && field.from.length > 0) sources.add(field.from);
1815
+ for (const field of Object.values(schema.fields)) if ((field.type === "backlinks" || field.type === "rollup") && field.from.length > 0) sources.add(field.from);
1658
1816
  return [...sources];
1659
1817
  }
1660
1818
  async function loadTarget(slug, opts) {
@@ -1717,6 +1875,24 @@ function projectComputed(schema, enriched, linked) {
1717
1875
  }
1718
1876
  return enriched;
1719
1877
  }
1878
+ /** Resolve every rollup field onto a COPY of the record, BEFORE the
1879
+ * formula pass — a `derived` formula may reference rollup values as
1880
+ * plain identifiers (`played = homePlayed + awayPlayed`). Same reverse
1881
+ * machinery as backlinks, collapsed to a number: an unresolvable source
1882
+ * is null (a formula reading it fails soft to em-dash); an empty match
1883
+ * set is a real 0. Returns `record` unchanged when the schema declares
1884
+ * no rollups. */
1885
+ function projectRollups(schema, record, linked) {
1886
+ let out = record;
1887
+ for (const [key, field] of Object.entries(schema.fields)) {
1888
+ if (field.type !== "rollup") continue;
1889
+ if (out === record) out = { ...record };
1890
+ const source = linked[field.from];
1891
+ const selfId = String(record[schema.primaryKey] ?? "");
1892
+ out[key] = source ? rollupValue(field, selfId, Object.values(source.byId)) : null;
1893
+ }
1894
+ return out;
1895
+ }
1720
1896
  /** Enrich records with every host-computed field: derived formulas
1721
1897
  * evaluated (cross-collection derefs included), toggles projected,
1722
1898
  * embeds resolved. Loads each linked collection ONCE per call. Input
@@ -1725,7 +1901,7 @@ async function enrichItems(collection, items, opts = {}) {
1725
1901
  const { schema } = collection;
1726
1902
  const linked = await loadLinkedTargets(schema, opts);
1727
1903
  const refRecords = toRefRecords(linked);
1728
- return items.map((item) => projectComputed(schema, deriveAll(schema, item, refRecords), linked));
1904
+ return items.map((item) => projectComputed(schema, deriveAll(schema, projectRollups(schema, item, linked), refRecords), linked));
1729
1905
  }
1730
1906
  //#endregion
1731
1907
  //#region src/collection/server/dynamicIcon.ts
@@ -2250,6 +2426,6 @@ async function deleteCustomView(collection, viewId, opts = {}) {
2250
2426
  };
2251
2427
  }
2252
2428
  //#endregion
2253
- export { getWorkspaceRoot as $, buildCollectionActionSeedPrompt as A, resolveCreateItemId as B, toSummary as C, compileRecordZ as D, validateRecordObject as E, promptPathsFor as F, isContainedInWorkspace as G, writeFileAtomic as H, readCustomViewHtml as I, resolveTemplatePath as J, itemFilePath as K, readCustomViewI18n as L, generateItemId as M, isRegularFile as N, recordFieldProblem as O, listItems as P, configureCollectionHost as Q, readItem as R, toDetail as S, validateCollectionRecords as T, SCHEMA_FILE as U, writeItem as V, isContainedInRoot as W, safeSlugName as X, safeRecordId as Y, collectionsRegistriesConfigPath as Z, buildWorkspaceOntology as _, computeSuccessor as a, discoverCollections as b, isTriggerDue as c, resolveEvery as d, log as et, successorId as f, enrichItems as g, computeCollectionIcon as h, advanceTriggerDate as i, deleteItem as j, buildActionSeedPrompt as k, maybeSpawnSuccessor as l, errorMessage as m, deleteCollection as n, setCollectionChangePublisher as nt, daysInMonth as o, ONE_SECOND_MS as p, resolveDataDir as q, deleteCollectionRefusalMessage as r, formatCivil as s, deleteCustomView as t, publishCollectionChange as tt, parseCivil as u, schemaRelations as v, CollectionSchemaZ as w, loadCollection as x, acceptParsedSchema as y, readSkillTemplate as z };
2429
+ export { collectionsRegistriesConfigPath as $, recordFieldProblem as A, readItem as B, toSummary as C, validateCollectionRecords as D, firstMutateParamProblem as E, isRegularFile as F, SCHEMA_FILE as G, resolveCreateItemId as H, listItems as I, itemFilePath as J, isContainedInRoot as K, promptPathsFor as L, buildCollectionActionSeedPrompt as M, deleteItem as N, validateRecordObject as O, generateItemId as P, safeSlugName as Q, readCustomViewHtml as R, toDetail as S, applyMutateAction as T, writeItem as U, readSkillTemplate as V, writeFileAtomic as W, resolveTemplatePath as X, resolveDataDir as Y, safeRecordId as Z, buildWorkspaceOntology as _, computeSuccessor as a, discoverCollections as b, isTriggerDue as c, resolveEvery as d, configureCollectionHost as et, successorId as f, enrichItems as g, computeCollectionIcon as h, advanceTriggerDate as i, setCollectionChangePublisher as it, buildActionSeedPrompt as j, compileRecordZ as k, maybeSpawnSuccessor as l, errorMessage as m, deleteCollection as n, log as nt, daysInMonth as o, ONE_SECOND_MS as p, isContainedInWorkspace as q, deleteCollectionRefusalMessage as r, publishCollectionChange as rt, formatCivil as s, deleteCustomView as t, getWorkspaceRoot as tt, parseCivil as u, schemaRelations as v, CollectionSchemaZ as w, loadCollection as x, acceptParsedSchema as y, readCustomViewI18n as z };
2254
2430
 
2255
- //# sourceMappingURL=server-BNTR7ySK.js.map
2431
+ //# sourceMappingURL=server-C3FOqabY.js.map