@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.
- package/assets/helps/presenthtml.md +18 -0
- package/assets/helps/spreadsheet.md +6 -6
- package/dist/artifacts/paths.cjs +1 -2
- package/dist/artifacts/paths.js +1 -2
- package/dist/collection/firestore.cjs +1 -2
- package/dist/collection/firestore.js +1 -2
- package/dist/collection/index.cjs +18 -30
- package/dist/collection/index.cjs.map +1 -1
- package/dist/collection/index.js +18 -30
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/paths.cjs +1 -1
- package/dist/collection/paths.js +1 -1
- package/dist/collection/registry/index.cjs +1 -1
- package/dist/collection/registry/index.js +1 -1
- package/dist/collection/registry/server/index.cjs +17 -26
- package/dist/collection/registry/server/index.cjs.map +1 -1
- package/dist/collection/registry/server/index.js +16 -25
- package/dist/collection/registry/server/index.js.map +1 -1
- package/dist/collection/server/index.cjs +5 -5
- package/dist/collection/server/index.js +5 -5
- package/dist/collection-watchers/index.cjs +10 -14
- package/dist/collection-watchers/index.cjs.map +1 -1
- package/dist/collection-watchers/index.js +10 -14
- package/dist/collection-watchers/index.js.map +1 -1
- package/dist/{discovery-DBJRuDv2.cjs → discovery-CYIV1J5l.cjs} +25 -42
- package/dist/{discovery-DBJRuDv2.cjs.map → discovery-CYIV1J5l.cjs.map} +1 -1
- package/dist/{discovery-BTl21_hI.js → discovery-duLlygnJ.js} +24 -41
- package/dist/{discovery-BTl21_hI.js.map → discovery-duLlygnJ.js.map} +1 -1
- package/dist/{dist-CAc42oZn.cjs → dist-734JaRYi.cjs} +2 -4
- package/dist/dist-734JaRYi.cjs.map +1 -0
- package/dist/{dist-C0oU4X3A.js → dist-BmO4oSQy.js} +2 -4
- package/dist/dist-BmO4oSQy.js.map +1 -0
- package/dist/errorMessage-D0kR547_.cjs +1 -0
- package/dist/errorMessage-TpKxrmeo.js +1 -0
- package/dist/{errors-Dgiw-unK.js → errors-0QwjDxsv.js} +3 -4
- package/dist/{errors-Dgiw-unK.js.map → errors-0QwjDxsv.js.map} +1 -1
- package/dist/{errors-DQr4mDbJ.cjs → errors-B9mCEVG9.cjs} +3 -4
- package/dist/{errors-DQr4mDbJ.cjs.map → errors-B9mCEVG9.cjs.map} +1 -1
- package/dist/feeds/index.cjs +2 -2
- package/dist/feeds/index.js +2 -2
- package/dist/feeds/paths.cjs +2 -3
- package/dist/feeds/paths.js +1 -2
- package/dist/feeds/server/index.cjs +23 -37
- package/dist/feeds/server/index.cjs.map +1 -1
- package/dist/feeds/server/index.js +22 -36
- package/dist/feeds/server/index.js.map +1 -1
- package/dist/file-change/index.cjs +2 -3
- package/dist/file-change/index.js +1 -2
- package/dist/files/index.cjs +136 -11
- package/dist/files/index.cjs.map +1 -1
- package/dist/files/index.d.ts +1 -0
- package/dist/files/index.js +132 -12
- package/dist/files/index.js.map +1 -1
- package/dist/files/verified.d.ts +28 -0
- package/dist/global-config/index.cjs +3 -5
- package/dist/global-config/index.cjs.map +1 -1
- package/dist/global-config/index.js +3 -5
- package/dist/global-config/index.js.map +1 -1
- package/dist/google/index.cjs +38 -67
- package/dist/google/index.cjs.map +1 -1
- package/dist/google/index.js +37 -66
- package/dist/google/index.js.map +1 -1
- package/dist/{graph-CURotEkH.cjs → graph-BvVMZfDV.cjs} +6 -11
- package/dist/{graph-CURotEkH.cjs.map → graph-BvVMZfDV.cjs.map} +1 -1
- package/dist/{graph-DBxSOx3v.js → graph-DBbzemby.js} +6 -11
- package/dist/{graph-DBxSOx3v.js.map → graph-DBbzemby.js.map} +1 -1
- package/dist/{iconGlyph-fSBp6k4J.cjs → iconGlyph-CFOiFsmq.cjs} +2 -3
- package/dist/{iconGlyph-fSBp6k4J.cjs.map → iconGlyph-CFOiFsmq.cjs.map} +1 -1
- package/dist/{iconGlyph-D8JeNg7R.js → iconGlyph-D9h__VaM.js} +2 -3
- package/dist/{iconGlyph-D8JeNg7R.js.map → iconGlyph-D9h__VaM.js.map} +1 -1
- package/dist/{ingestTypes-DS9HiR2I.cjs → ingestTypes-CLDvn7kw.cjs} +3 -4
- package/dist/{ingestTypes-DS9HiR2I.cjs.map → ingestTypes-CLDvn7kw.cjs.map} +1 -1
- package/dist/{ingestTypes-Bs31Xt5c.js → ingestTypes-DuXuSBSn.js} +3 -4
- package/dist/{ingestTypes-Bs31Xt5c.js.map → ingestTypes-DuXuSBSn.js.map} +1 -1
- package/dist/{itemId-CVrNibwT.cjs → itemId-D2XAQ8RU.cjs} +9 -17
- package/dist/{itemId-CVrNibwT.cjs.map → itemId-D2XAQ8RU.cjs.map} +1 -1
- package/dist/{itemId-C9s-Jd5s.js → itemId-D_pSpa3U.js} +9 -17
- package/dist/{itemId-C9s-Jd5s.js.map → itemId-D_pSpa3U.js.map} +1 -1
- package/dist/{listen-CUJyj9V2.cjs → listen-OmfLDX1l.cjs} +3 -4
- package/dist/{listen-CUJyj9V2.cjs.map → listen-OmfLDX1l.cjs.map} +1 -1
- package/dist/{listen-CnLfYFdW.js → listen-uiEnXcW9.js} +3 -4
- package/dist/{listen-CnLfYFdW.js.map → listen-uiEnXcW9.js.map} +1 -1
- package/dist/notifier/index.cjs +1 -1
- package/dist/notifier/index.js +1 -1
- package/dist/{notifier-BF49QNV7.cjs → notifier-CRTk34EC.cjs} +6 -10
- package/dist/{notifier-BF49QNV7.cjs.map → notifier-CRTk34EC.cjs.map} +1 -1
- package/dist/{notifier-XGAgdX2J.js → notifier-htdf4ekH.js} +6 -10
- package/dist/{notifier-XGAgdX2J.js.map → notifier-htdf4ekH.js.map} +1 -1
- package/dist/{paths-CkJxNZ7T.js → paths-BMQNHdaJ.js} +2 -3
- package/dist/{paths-CkJxNZ7T.js.map → paths-BMQNHdaJ.js.map} +1 -1
- package/dist/{paths-C8-jxR0s.cjs → paths-DUHAueEv.cjs} +2 -3
- package/dist/{paths-C8-jxR0s.cjs.map → paths-DUHAueEv.cjs.map} +1 -1
- package/dist/plugin-vue/i18n.cjs +1 -2
- package/dist/plugin-vue/i18n.js +1 -2
- package/dist/plugin-vue/index.cjs +9 -17
- package/dist/plugin-vue/index.cjs.map +1 -1
- package/dist/plugin-vue/index.js +9 -17
- package/dist/plugin-vue/index.js.map +1 -1
- package/dist/{project-C1ep9pvo.cjs → project-DDTIVEMU.cjs} +2 -3
- package/dist/{project-C1ep9pvo.cjs.map → project-DDTIVEMU.cjs.map} +1 -1
- package/dist/{project-B0j_Vf_Q.js → project-mU6-xLfy.js} +2 -3
- package/dist/{project-B0j_Vf_Q.js.map → project-mU6-xLfy.js.map} +1 -1
- package/dist/prompt-files/index.cjs +4 -6
- package/dist/prompt-files/index.cjs.map +1 -1
- package/dist/prompt-files/index.js +3 -5
- package/dist/prompt-files/index.js.map +1 -1
- package/dist/{promptSafety-C9uabl9i.js → promptSafety-B8LECAkY.js} +14 -25
- package/dist/{promptSafety-C9uabl9i.js.map → promptSafety-B8LECAkY.js.map} +1 -1
- package/dist/{promptSafety-CKmqbSTK.cjs → promptSafety-CjxafW2b.cjs} +14 -25
- package/dist/{promptSafety-CKmqbSTK.cjs.map → promptSafety-CjxafW2b.cjs.map} +1 -1
- package/dist/{relPath-DW8MC8VO.js → relPath-BkKmqiiF.js} +2 -3
- package/dist/{relPath-DW8MC8VO.js.map → relPath-BkKmqiiF.js.map} +1 -1
- package/dist/{relPath-CTAjGdCL.cjs → relPath-CZiP2S_a.cjs} +3 -4
- package/dist/{relPath-CTAjGdCL.cjs.map → relPath-CZiP2S_a.cjs.map} +1 -1
- package/dist/remote-host/index.cjs +1 -1
- package/dist/remote-host/index.js +1 -1
- package/dist/remote-host/server/index.cjs +14 -25
- package/dist/remote-host/server/index.cjs.map +1 -1
- package/dist/remote-host/server/index.js +14 -25
- package/dist/remote-host/server/index.js.map +1 -1
- package/dist/{remote-host-BLWjSIZd.cjs → remote-host-BW_eH-Nu.cjs} +4 -6
- package/dist/{remote-host-BLWjSIZd.cjs.map → remote-host-BW_eH-Nu.cjs.map} +1 -1
- package/dist/{remote-host-5f5LOmDU.js → remote-host-CSeDNbE6.js} +4 -6
- package/dist/{remote-host-5f5LOmDU.js.map → remote-host-CSeDNbE6.js.map} +1 -1
- package/dist/remote-view/index.cjs +3 -4
- package/dist/remote-view/index.js +3 -4
- package/dist/{rolldown-runtime-VH7oDXx4.cjs → rolldown-runtime-CmQyd0Gu.cjs} +1 -2
- package/dist/{root-BvwBUcol.cjs → root-9lRFeXbm.cjs} +10 -6
- package/dist/{root-BvwBUcol.cjs.map → root-9lRFeXbm.cjs.map} +1 -1
- package/dist/{root-BcS4-Kge.js → root-CqxPNSyK.js} +4 -6
- package/dist/{root-BcS4-Kge.js.map → root-CqxPNSyK.js.map} +1 -1
- package/dist/scheduler/index.cjs +6 -9
- package/dist/scheduler/index.cjs.map +1 -1
- package/dist/scheduler/index.js +5 -8
- package/dist/scheduler/index.js.map +1 -1
- package/dist/{server-ekmEXF9t.cjs → server-ByKWGQn2.cjs} +25 -41
- package/dist/{server-ekmEXF9t.cjs.map → server-ByKWGQn2.cjs.map} +1 -1
- package/dist/{server-BdRkw2Gh.js → server-CA-alqqN.js} +24 -40
- package/dist/{server-BdRkw2Gh.js.map → server-CA-alqqN.js.map} +1 -1
- package/dist/skill-bridge/index.cjs +3 -4
- package/dist/skill-bridge/index.js +2 -3
- package/dist/{slug-BpjumQfe.js → slug-D24AYqCZ.js} +2 -3
- package/dist/{slug-BpjumQfe.js.map → slug-D24AYqCZ.js.map} +1 -1
- package/dist/{slug-JxgB0ru9.cjs → slug-DVkuPjIv.cjs} +2 -3
- package/dist/{slug-JxgB0ru9.cjs.map → slug-DVkuPjIv.cjs.map} +1 -1
- package/dist/{templatePath-27vUZowm.cjs → templatePath-BIh7wqgS.cjs} +2 -3
- package/dist/{templatePath-27vUZowm.cjs.map → templatePath-BIh7wqgS.cjs.map} +1 -1
- package/dist/{templatePath-k_WNbL_Q.js → templatePath-CB3wtVpe.js} +2 -3
- package/dist/{templatePath-k_WNbL_Q.js.map → templatePath-CB3wtVpe.js.map} +1 -1
- package/dist/{text-CjDbP2O1.js → text-BQAuwKVj.js} +2 -3
- package/dist/{text-CjDbP2O1.js.map → text-BQAuwKVj.js.map} +1 -1
- package/dist/{text-CaAh9ZSO.cjs → text-BQiyo5R9.cjs} +2 -3
- package/dist/{text-CaAh9ZSO.cjs.map → text-BQiyo5R9.cjs.map} +1 -1
- package/dist/translation/client.cjs +1 -2
- package/dist/translation/client.js +1 -2
- package/dist/{types-BKVZrtyc.js → types-BLCZTGW2.js} +4 -7
- package/dist/{types-BKVZrtyc.js.map → types-BLCZTGW2.js.map} +1 -1
- package/dist/{types-CNqkLT4M.cjs → types-DPycxnDf.cjs} +4 -7
- package/dist/{types-CNqkLT4M.cjs.map → types-DPycxnDf.cjs.map} +1 -1
- package/dist/utils/fetch.cjs +0 -1
- package/dist/utils/fetch.js +0 -1
- package/dist/utils/index.cjs +3 -3
- package/dist/utils/index.js +3 -3
- package/dist/whisper/client.cjs +2 -4
- package/dist/whisper/client.cjs.map +1 -1
- package/dist/whisper/client.js +2 -4
- package/dist/whisper/client.js.map +1 -1
- package/dist/whisper/index.cjs +9 -15
- package/dist/whisper/index.cjs.map +1 -1
- package/dist/whisper/index.js +8 -14
- package/dist/whisper/index.js.map +1 -1
- package/dist/wiki/index.cjs +5 -7
- package/dist/wiki/index.cjs.map +1 -1
- package/dist/wiki/index.js +5 -7
- package/dist/wiki/index.js.map +1 -1
- package/dist/wiki/paths.cjs +3 -4
- package/dist/wiki/paths.js +2 -3
- package/dist/wiki/server/index.cjs +7 -11
- package/dist/wiki/server/index.cjs.map +1 -1
- package/dist/wiki/server/index.js +6 -10
- package/dist/wiki/server/index.js.map +1 -1
- package/dist/workspace-setup/index.js +4 -9
- package/dist/workspace-setup/index.js.map +1 -1
- package/dist/workspace-setup/slug.js +1 -2
- package/package.json +5 -5
- package/dist/dist-C0oU4X3A.js.map +0 -1
- package/dist/dist-CAc42oZn.cjs.map +0 -1
- package/dist/errorMessage-BYNQlnx0.cjs +0 -1
- package/dist/errorMessage-DVcsvx02.js +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
2
|
-
const require_dist = require("./dist-
|
|
3
|
-
require("./errors-
|
|
4
|
-
const require_root = require("./root-
|
|
5
|
-
const require_relPath = require("./relPath-
|
|
6
|
-
const require_itemId = require("./itemId-
|
|
7
|
-
const require_promptSafety = require("./promptSafety-
|
|
8
|
-
const require_discovery = require("./discovery-
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime-CmQyd0Gu.cjs");
|
|
2
|
+
const require_dist = require("./dist-734JaRYi.cjs");
|
|
3
|
+
require("./errors-B9mCEVG9.cjs");
|
|
4
|
+
const require_root = require("./root-9lRFeXbm.cjs");
|
|
5
|
+
const require_relPath = require("./relPath-CZiP2S_a.cjs");
|
|
6
|
+
const require_itemId = require("./itemId-D2XAQ8RU.cjs");
|
|
7
|
+
const require_promptSafety = require("./promptSafety-CjxafW2b.cjs");
|
|
8
|
+
const require_discovery = require("./discovery-CYIV1J5l.cjs");
|
|
9
9
|
const require_feeds_paths = require("./feeds/paths.cjs");
|
|
10
10
|
const require_skill_bridge_index = require("./skill-bridge/index.cjs");
|
|
11
11
|
let node_fs = require("node:fs");
|
|
@@ -14,7 +14,7 @@ node_path = require_rolldown_runtime.__toESM(node_path, 1);
|
|
|
14
14
|
let node_crypto = require("node:crypto");
|
|
15
15
|
let node_fs_promises = require("node:fs/promises");
|
|
16
16
|
let zod = require("zod");
|
|
17
|
-
|
|
17
|
+
// src/collection/server/skillAssets.ts
|
|
18
18
|
/** Read a collection's custom-view HTML, path-safely. `viewFile` is a
|
|
19
19
|
* schema-validated `views/*.html` path, resolved with realpath containment.
|
|
20
20
|
* Returns the HTML, or null when the path is unsafe or the file is missing.
|
|
@@ -260,8 +260,7 @@ ${dataJson}
|
|
|
260
260
|
|
|
261
261
|
${templateText}`;
|
|
262
262
|
}
|
|
263
|
-
|
|
264
|
-
//#region src/collection/server/jsonlQuery.ts
|
|
263
|
+
// src/collection/server/jsonlQuery.ts
|
|
265
264
|
/** SQL semantics for an aggregate-only query over ZERO rows: one scalar
|
|
266
265
|
* row (`count` = 0, everything else NULL) — the same shape the CSV path
|
|
267
266
|
* produces for a header-only file, so callers reading `rows[0]` never
|
|
@@ -328,8 +327,7 @@ async function runQueryOverRows(rows, query) {
|
|
|
328
327
|
});
|
|
329
328
|
}
|
|
330
329
|
}
|
|
331
|
-
|
|
332
|
-
//#region src/collection/server/derive.ts
|
|
330
|
+
// src/collection/server/derive.ts
|
|
333
331
|
async function loadTarget(slug, opts) {
|
|
334
332
|
const target = await require_discovery.loadCollection(slug, opts);
|
|
335
333
|
if (!target) return null;
|
|
@@ -417,15 +415,13 @@ async function enrichItems(collection, items, opts = {}, fields) {
|
|
|
417
415
|
const refRecords = toRefRecords(linked);
|
|
418
416
|
return items.map((item) => projectComputed(schema, require_promptSafety.deriveAll(schema, projectRollups(schema, item, linked), refRecords), linked));
|
|
419
417
|
}
|
|
420
|
-
|
|
421
|
-
//#region src/collection/server/queryRunner.ts
|
|
418
|
+
// src/collection/server/queryRunner.ts
|
|
422
419
|
async function runCollectionQuery(collection, query, opts = {}) {
|
|
423
420
|
const store = require_discovery.storeFor(collection, { workspaceRoot: opts.workspaceRoot });
|
|
424
421
|
if (store.query) return store.query(query);
|
|
425
422
|
return runQueryOverRows(await enrichItems(collection, await store.list(), opts), query);
|
|
426
423
|
}
|
|
427
|
-
|
|
428
|
-
//#region src/collection/core/recordZ.ts
|
|
424
|
+
// src/collection/core/recordZ.ts
|
|
429
425
|
/** The emptiness rule shared by `required` and the "only check present
|
|
430
426
|
* values" gate. NOT a truthiness check — `0` and `false` are filled. */
|
|
431
427
|
var isEmptyValue = (value) => value === void 0 || value === null || value === "";
|
|
@@ -538,8 +534,7 @@ function firstRecordProblem(record, schema, tier) {
|
|
|
538
534
|
if (result.success) return null;
|
|
539
535
|
return result.error.issues[0]?.message ?? "record failed schema validation";
|
|
540
536
|
}
|
|
541
|
-
|
|
542
|
-
//#region src/collection/server/validate.ts
|
|
537
|
+
// src/collection/server/validate.ts
|
|
543
538
|
/** Don't flood the result; the first batch is enough to act on. Exported
|
|
544
539
|
* because a caller that REPORTS a count has to know the count is a floor —
|
|
545
540
|
* `publish` presents a full batch as "at least N" rather than as a total. */
|
|
@@ -675,8 +670,7 @@ function validateRecordObject(record, itemId, schema, tier = "enforced") {
|
|
|
675
670
|
if (idValue !== itemId) return `'${schema.primaryKey}' is '${idValue}' but must equal the filename ('${itemId}'), or the record can't be opened`;
|
|
676
671
|
return firstRecordProblem(record, schema, tier);
|
|
677
672
|
}
|
|
678
|
-
|
|
679
|
-
//#region src/collection/server/mutate.ts
|
|
673
|
+
// src/collection/server/mutate.ts
|
|
680
674
|
/** First problem with the submitted params, or null. Every declared param
|
|
681
675
|
* is checked by the shared record-field validator; keys the action never
|
|
682
676
|
* declared are rejected outright — a stray key would otherwise ride the
|
|
@@ -742,8 +736,7 @@ async function applyMutateAction(collection, action, itemId, params, opts = {})
|
|
|
742
736
|
item: merged
|
|
743
737
|
};
|
|
744
738
|
}
|
|
745
|
-
|
|
746
|
-
//#region src/collection/server/ontology.ts
|
|
739
|
+
// src/collection/server/ontology.ts
|
|
747
740
|
/** Extract the relations a schema declares, in field declaration order:
|
|
748
741
|
* top-level `ref` / `embed` / `backlinks` fields plus `ref` sub-fields
|
|
749
742
|
* inside `table` columns. Pure — exported so the phase-2 graph panel
|
|
@@ -824,8 +817,7 @@ async function buildWorkspaceOntology(opts = {}) {
|
|
|
824
817
|
const collections = await require_discovery.discoverCollections(opts);
|
|
825
818
|
return Promise.all(collections.map((collection) => toOntologyEntry(collection, workspaceRoot)));
|
|
826
819
|
}
|
|
827
|
-
|
|
828
|
-
//#region src/collection/server/dynamicIcon.ts
|
|
820
|
+
// src/collection/server/dynamicIcon.ts
|
|
829
821
|
/** Index `items` by their `primaryKey` value — the `recordsById` map a
|
|
830
822
|
* `valueFrom` reference (e.g. `_config.defaultCity`) resolves against.
|
|
831
823
|
* Items whose primary key isn't a string (shouldn't happen for a valid
|
|
@@ -871,12 +863,10 @@ async function computeCollectionIcon(collection, opts = {}) {
|
|
|
871
863
|
return spec.fallback ?? schema.icon;
|
|
872
864
|
}
|
|
873
865
|
}
|
|
874
|
-
|
|
875
|
-
//#region src/collection/server/util.ts
|
|
866
|
+
// src/collection/server/util.ts
|
|
876
867
|
var ONE_SECOND_MS = 1e3;
|
|
877
868
|
var ONE_DAY_MS = 864e5;
|
|
878
|
-
|
|
879
|
-
//#region src/collection/server/spawn.ts
|
|
869
|
+
// src/collection/server/spawn.ts
|
|
880
870
|
var YMD_PATTERN = /^(\d{4})-(\d{2})-(\d{2})$/;
|
|
881
871
|
function pad2(value) {
|
|
882
872
|
return String(value).padStart(2, "0");
|
|
@@ -1093,8 +1083,7 @@ async function maybeSpawnSuccessor(collection, sourceItem, sourceId, ioOpts = {}
|
|
|
1093
1083
|
});
|
|
1094
1084
|
}
|
|
1095
1085
|
}
|
|
1096
|
-
|
|
1097
|
-
//#region src/collection/server/delete.ts
|
|
1086
|
+
// src/collection/server/delete.ts
|
|
1098
1087
|
/** Human-readable reason for a non-`ok` delete result. Exported so the
|
|
1099
1088
|
* route maps `kind` → message without inlining the switch (keeps the
|
|
1100
1089
|
* handler short and the mapping unit-testable). The `Record` is
|
|
@@ -1330,8 +1319,7 @@ async function deleteCollection(collection, opts = {}) {
|
|
|
1330
1319
|
archivePath: archiveRel
|
|
1331
1320
|
};
|
|
1332
1321
|
}
|
|
1333
|
-
|
|
1334
|
-
//#region src/collection/server/views.ts
|
|
1322
|
+
// src/collection/server/views.ts
|
|
1335
1323
|
/** The authoritative base dir for a collection's schema.json + view HTML.
|
|
1336
1324
|
* For a project collection, prefer the staging tree when its schema.json is
|
|
1337
1325
|
* present (authoring layout); otherwise fall back to the active skill dir
|
|
@@ -1415,8 +1403,7 @@ async function deleteCustomView(collection, viewId, opts = {}) {
|
|
|
1415
1403
|
viewId
|
|
1416
1404
|
};
|
|
1417
1405
|
}
|
|
1418
|
-
|
|
1419
|
-
//#region src/collection/server/schemaDocs.ts
|
|
1406
|
+
// src/collection/server/schemaDocs.ts
|
|
1420
1407
|
/** Fenced authoring variants inside the reference doc.
|
|
1421
1408
|
*
|
|
1422
1409
|
* A collection's authoring LOCATION depends on the root it lives in, and the
|
|
@@ -1602,8 +1589,7 @@ function renderSchemaDocs(rawDoc, topic, variant = "staged") {
|
|
|
1602
1589
|
if (sections.length === 0) return doc;
|
|
1603
1590
|
return clip(requested ? renderTopic(lines, sections, requested) : renderDefault(lines, sections), SCHEMA_DOCS_RESULT_BUDGET);
|
|
1604
1591
|
}
|
|
1605
|
-
|
|
1606
|
-
//#region src/collection/server/schemaReadReply.ts
|
|
1592
|
+
// src/collection/server/schemaReadReply.ts
|
|
1607
1593
|
/** The note prefixed when the two copies differ. Kept separate from the JSON by a
|
|
1608
1594
|
* blank line so the schema below it is still copyable as-is. */
|
|
1609
1595
|
function divergenceNotice(slug) {
|
|
@@ -1632,8 +1618,7 @@ function schemaReadReply(slug, staging, active) {
|
|
|
1632
1618
|
function isPresetSlug(slug) {
|
|
1633
1619
|
return slug.startsWith("mc-") && slug.length > 3;
|
|
1634
1620
|
}
|
|
1635
|
-
|
|
1636
|
-
//#region src/collection/server/manageTool.ts
|
|
1621
|
+
// src/collection/server/manageTool.ts
|
|
1637
1622
|
/** Refuse an unselective getItems beyond this many records — a silent
|
|
1638
1623
|
* truncation would read as "covered everything", and an unbounded dump
|
|
1639
1624
|
* of a large collection is a token bomb. `ids` or `fields` lifts it. */
|
|
@@ -2489,7 +2474,6 @@ function makeManageCollectionTool(deps = {}) {
|
|
|
2489
2474
|
handler: (args) => manageCollectionHandler(deps, args)
|
|
2490
2475
|
};
|
|
2491
2476
|
}
|
|
2492
|
-
//#endregion
|
|
2493
2477
|
Object.defineProperty(exports, "MAX_ITEMS_FILE_BYTES", {
|
|
2494
2478
|
enumerable: true,
|
|
2495
2479
|
get: function() {
|
|
@@ -2731,4 +2715,4 @@ Object.defineProperty(exports, "validateRecordObject", {
|
|
|
2731
2715
|
}
|
|
2732
2716
|
});
|
|
2733
2717
|
|
|
2734
|
-
//# sourceMappingURL=server-
|
|
2718
|
+
//# sourceMappingURL=server-ByKWGQn2.cjs.map
|