@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.
- package/assets/helps/presenthtml.md +24 -0
- 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-DgZRmO7F.cjs → discovery-CYIV1J5l.cjs} +25 -42
- package/dist/{discovery-DgZRmO7F.cjs.map → discovery-CYIV1J5l.cjs.map} +1 -1
- package/dist/{discovery-CbwHtcwk.js → discovery-duLlygnJ.js} +24 -41
- package/dist/{discovery-CbwHtcwk.js.map → discovery-duLlygnJ.js.map} +1 -1
- package/dist/{dist-BZ62pKuU.cjs → dist-734JaRYi.cjs} +2 -4
- package/dist/{dist-BZ62pKuU.cjs.map → dist-734JaRYi.cjs.map} +1 -1
- package/dist/{dist-MFUV9FYo.js → dist-BmO4oSQy.js} +2 -4
- package/dist/{dist-MFUV9FYo.js.map → dist-BmO4oSQy.js.map} +1 -1
- package/dist/errorMessage-D0kR547_.cjs +1 -0
- package/dist/errorMessage-TpKxrmeo.js +1 -0
- package/dist/{errors-zTAsW7dS.js → errors-0QwjDxsv.js} +3 -4
- package/dist/{errors-zTAsW7dS.js.map → errors-0QwjDxsv.js.map} +1 -1
- package/dist/{errors-B0xloJ3E.cjs → errors-B9mCEVG9.cjs} +3 -4
- package/dist/{errors-B0xloJ3E.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 +159 -11
- package/dist/files/index.cjs.map +1 -1
- package/dist/files/index.d.ts +1 -0
- package/dist/files/index.js +154 -12
- package/dist/files/index.js.map +1 -1
- package/dist/files/verified.d.ts +33 -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-N_8XdKz_.cjs → listen-OmfLDX1l.cjs} +3 -4
- package/dist/{listen-N_8XdKz_.cjs.map → listen-OmfLDX1l.cjs.map} +1 -1
- package/dist/{listen-DUlzSOzX.js → listen-uiEnXcW9.js} +3 -4
- package/dist/{listen-DUlzSOzX.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-CiemUClt.cjs → notifier-CRTk34EC.cjs} +6 -10
- package/dist/{notifier-CiemUClt.cjs.map → notifier-CRTk34EC.cjs.map} +1 -1
- package/dist/{notifier-dgkC-h80.js → notifier-htdf4ekH.js} +6 -10
- package/dist/{notifier-dgkC-h80.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-DFaOnOWN.js → promptSafety-B8LECAkY.js} +14 -25
- package/dist/{promptSafety-DFaOnOWN.js.map → promptSafety-B8LECAkY.js.map} +1 -1
- package/dist/{promptSafety-yET9jLep.cjs → promptSafety-CjxafW2b.cjs} +14 -25
- package/dist/{promptSafety-yET9jLep.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-CR5W9uj4.cjs → remote-host-BW_eH-Nu.cjs} +4 -6
- package/dist/{remote-host-CR5W9uj4.cjs.map → remote-host-BW_eH-Nu.cjs.map} +1 -1
- package/dist/{remote-host-9NNAvUhU.js → remote-host-CSeDNbE6.js} +4 -6
- package/dist/{remote-host-9NNAvUhU.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-CJek9Y3Q.cjs → server-ByKWGQn2.cjs} +25 -41
- package/dist/{server-CJek9Y3Q.cjs.map → server-ByKWGQn2.cjs.map} +1 -1
- package/dist/{server-BtbbQqBY.js → server-CA-alqqN.js} +24 -40
- package/dist/{server-BtbbQqBY.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 +2 -2
- package/dist/errorMessage-OEQzRwsi.cjs +0 -1
- 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-
|
|
2
|
-
import "./errors-
|
|
3
|
-
import {
|
|
4
|
-
import { n as toPosixRelPath } from "./relPath-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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-
|
|
2477
|
+
//# sourceMappingURL=server-CA-alqqN.js.map
|