@mulmoclaude/core 5.12.1 → 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/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 +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-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,9 +1,9 @@
|
|
|
1
|
-
import { a as isErrorWithCode, c as isRecord, r as hasNumberProp, u as isUnknownArray } from "./dist-
|
|
2
|
-
import {
|
|
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-
|
|
4
|
-
import { n as projectRecordFields } from "./project-
|
|
5
|
-
import { n as backoffDelayMs, r as classifyListenerError } from "./listen-
|
|
6
|
-
import { n as isSafeCustomViewI18nPath, r as isSafeCustomViewPath, t as isSafeActionTemplatePath } from "./templatePath-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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-
|
|
3350
|
+
//# sourceMappingURL=discovery-duLlygnJ.js.map
|