@mulmoclaude/core 2.0.1 → 2.1.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/dist/{atomic-C_7YpMiM.cjs → atomic-DhUk8uiM.cjs} +2 -2
- package/dist/{atomic-C_7YpMiM.cjs.map → atomic-DhUk8uiM.cjs.map} +1 -1
- package/dist/collection/registry/server/index.cjs +21 -26
- package/dist/collection/registry/server/index.cjs.map +1 -1
- package/dist/collection/registry/server/index.js +18 -23
- package/dist/collection/registry/server/index.js.map +1 -1
- package/dist/collection/server/index.cjs +2 -2
- package/dist/collection/server/index.js +2 -2
- package/dist/collection-watchers/index.cjs +3 -3
- package/dist/collection-watchers/index.cjs.map +1 -1
- package/dist/collection-watchers/index.js +3 -3
- package/dist/{discovery-DSLgRQhN.cjs → discovery-B_sHig7n.cjs} +5 -5
- package/dist/{discovery-DSLgRQhN.cjs.map → discovery-B_sHig7n.cjs.map} +1 -1
- package/dist/{discovery-BSedPW8A.js → discovery-BvnXyUel.js} +3 -3
- package/dist/{discovery-BSedPW8A.js.map → discovery-BvnXyUel.js.map} +1 -1
- package/dist/dist-CsgSfWwR.cjs.map +1 -1
- package/dist/dist-D8zokgGo.js.map +1 -1
- package/dist/feeds/paths.cjs +1 -1
- package/dist/feeds/server/index.cjs +5 -5
- package/dist/feeds/server/index.cjs.map +1 -1
- package/dist/feeds/server/index.js +4 -4
- package/dist/feeds/server/index.js.map +1 -1
- package/dist/file-change/index.cjs +1 -1
- package/dist/file-change/index.cjs.map +1 -1
- package/dist/files/index.cjs +3 -3
- package/dist/files/index.cjs.map +1 -1
- package/dist/global-config/index.cjs +69 -0
- package/dist/global-config/index.cjs.map +1 -0
- package/dist/global-config/index.d.ts +13 -0
- package/dist/global-config/index.js +63 -0
- package/dist/global-config/index.js.map +1 -0
- package/dist/global-config/paths.d.ts +2 -0
- package/dist/global-config/schema.d.ts +17 -0
- package/dist/google/index.cjs +11 -7
- package/dist/google/index.cjs.map +1 -1
- package/dist/google/index.js +9 -5
- package/dist/google/index.js.map +1 -1
- package/dist/google/paths.d.ts +2 -0
- package/dist/notifier/index.cjs +1 -1
- package/dist/notifier/index.js +1 -1
- package/dist/{notifier-CKFVVwDP.cjs → notifier-DZJj0sOh.cjs} +2 -2
- package/dist/{notifier-CKFVVwDP.cjs.map → notifier-DZJj0sOh.cjs.map} +1 -1
- package/dist/{notifier-CQD8NljP.js → notifier-DhnwR82U.js} +2 -2
- package/dist/{notifier-CQD8NljP.js.map → notifier-DhnwR82U.js.map} +1 -1
- package/dist/paths-CkJxNZ7T.js +13 -0
- package/dist/paths-CkJxNZ7T.js.map +1 -0
- package/dist/paths-ClV946_f.cjs +25 -0
- package/dist/paths-ClV946_f.cjs.map +1 -0
- package/dist/plugin-vue/i18n.cjs.map +1 -1
- package/dist/plugin-vue/index.cjs +39 -10
- package/dist/plugin-vue/index.cjs.map +1 -1
- package/dist/plugin-vue/index.js +39 -10
- package/dist/plugin-vue/index.js.map +1 -1
- package/dist/{relPath-CgGi4-Nv.cjs → relPath-CTAjGdCL.cjs} +2 -2
- package/dist/{relPath-CgGi4-Nv.cjs.map → relPath-CTAjGdCL.cjs.map} +1 -1
- package/dist/remote-host/server/index.cjs +3 -2
- package/dist/remote-host/server/index.cjs.map +1 -1
- package/dist/remote-host/server/index.js +3 -2
- package/dist/remote-host/server/index.js.map +1 -1
- package/dist/remote-host-CtQjagPt.cjs.map +1 -1
- package/dist/{rolldown-runtime-D6vf50IK.cjs → rolldown-runtime-VH7oDXx4.cjs} +1 -1
- package/dist/scheduler/index.cjs +6 -4
- package/dist/scheduler/index.cjs.map +1 -1
- package/dist/scheduler/index.js +5 -3
- package/dist/scheduler/index.js.map +1 -1
- package/dist/{server-B78f_bnY.js → server-DJt6USBQ.js} +11 -7
- package/dist/{server-B78f_bnY.js.map → server-DJt6USBQ.js.map} +1 -1
- package/dist/{server-By4oSql2.cjs → server-DoyGZMPS.cjs} +14 -10
- package/dist/{server-By4oSql2.cjs.map → server-DoyGZMPS.cjs.map} +1 -1
- package/dist/skill-bridge/index.cjs +1 -1
- package/dist/skill-bridge/index.cjs.map +1 -1
- package/dist/utils/fetch.cjs +1 -1
- package/dist/utils/fetch.cjs.map +1 -1
- package/dist/utils/fetch.js +1 -1
- package/dist/utils/fetch.js.map +1 -1
- package/dist/whisper/client.cjs.map +1 -1
- package/dist/whisper/client.js.map +1 -1
- package/dist/whisper/index.cjs +1 -1
- package/dist/whisper/index.cjs.map +1 -1
- package/dist/wiki/index.cjs +2 -1
- package/dist/wiki/index.cjs.map +1 -1
- package/dist/wiki/index.js +2 -1
- package/dist/wiki/index.js.map +1 -1
- package/dist/wiki/paths.cjs +1 -1
- package/dist/wiki/server/index.cjs +5 -3
- package/dist/wiki/server/index.cjs.map +1 -1
- package/dist/wiki/server/index.js +4 -2
- package/dist/wiki/server/index.js.map +1 -1
- package/dist/workspace-setup/index.js.map +1 -1
- package/package.json +12 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime-VH7oDXx4.cjs");
|
|
2
2
|
const require_dist = require("./dist-CsgSfWwR.cjs");
|
|
3
|
-
const require_atomic = require("./atomic-
|
|
4
|
-
const require_relPath = require("./relPath-
|
|
3
|
+
const require_atomic = require("./atomic-DhUk8uiM.cjs");
|
|
4
|
+
const require_relPath = require("./relPath-CTAjGdCL.cjs");
|
|
5
5
|
const require_calendarGrid = require("./calendarGrid-p8K-7cuB.cjs");
|
|
6
6
|
const require_promptSafety = require("./promptSafety-CNEW3_qS.cjs");
|
|
7
|
-
const require_discovery = require("./discovery-
|
|
7
|
+
const require_discovery = require("./discovery-B_sHig7n.cjs");
|
|
8
8
|
const require_feeds_paths = require("./feeds/paths.cjs");
|
|
9
9
|
const require_skill_bridge_index = require("./skill-bridge/index.cjs");
|
|
10
10
|
let node_path = require("node:path");
|
|
@@ -140,7 +140,8 @@ function sanitizeDeep(value) {
|
|
|
140
140
|
* collections, so it reflects what the host actually reads/writes. */
|
|
141
141
|
function promptPathsFor(collection, workspaceRoot) {
|
|
142
142
|
const rel = node_path.default.relative(workspaceRoot, collection.skillDir);
|
|
143
|
-
const
|
|
143
|
+
const raw = rel === "" || rel.startsWith("..") ? collection.skillDir : rel;
|
|
144
|
+
const skillDir = require_relPath.toPosixRelPath(raw);
|
|
144
145
|
return {
|
|
145
146
|
slug: collection.slug,
|
|
146
147
|
dataPath: collection.schema.dataPath ?? collection.schema.dataSource?.path ?? "",
|
|
@@ -318,7 +319,8 @@ function toRefRecords(linked) {
|
|
|
318
319
|
function projectBacklinks(field, schema, enriched, linked) {
|
|
319
320
|
const source = linked[field.from];
|
|
320
321
|
if (!source) return [];
|
|
321
|
-
|
|
322
|
+
const selfId = require_calendarGrid.fieldText(enriched[schema.primaryKey]);
|
|
323
|
+
return require_promptSafety.backlinkRows(field, selfId, Object.values(source.byId)).map((row) => require_promptSafety.projectBacklinkRow(row, field.display, source.schema.primaryKey));
|
|
322
324
|
}
|
|
323
325
|
/** Project the computed (never-stored) field kinds onto one derived
|
|
324
326
|
* record: `toggle` → boolean off its enum, `embed` → the target record
|
|
@@ -776,7 +778,8 @@ async function computeCollectionIcon(collection, opts = {}) {
|
|
|
776
778
|
const ordered = sortByPrimaryKey(await require_discovery.storeFor(source, { workspaceRoot: opts.workspaceRoot }).list(), source.schema.primaryKey);
|
|
777
779
|
const orderBy = spec.source.orderBy ?? require_promptSafety.firstDateField(source.schema);
|
|
778
780
|
const recordsById = buildRecordsById(ordered, source.schema.primaryKey);
|
|
779
|
-
|
|
781
|
+
const record = require_promptSafety.selectDynamicRecord(ordered, spec.source, orderBy, recordsById);
|
|
782
|
+
return require_promptSafety.resolveIcon(record, spec, schema.icon, recordsById);
|
|
780
783
|
} catch (err) {
|
|
781
784
|
require_discovery.log.warn("collections", "dynamic icon compute failed, falling back", {
|
|
782
785
|
slug: collection.slug,
|
|
@@ -789,7 +792,7 @@ async function computeCollectionIcon(collection, opts = {}) {
|
|
|
789
792
|
//#endregion
|
|
790
793
|
//#region src/collection/server/util.ts
|
|
791
794
|
var ONE_SECOND_MS = 1e3;
|
|
792
|
-
var ONE_DAY_MS =
|
|
795
|
+
var ONE_DAY_MS = 864e5;
|
|
793
796
|
//#endregion
|
|
794
797
|
//#region src/collection/server/spawn.ts
|
|
795
798
|
var YMD_PATTERN = /^(\d{4})-(\d{2})-(\d{2})$/;
|
|
@@ -1126,7 +1129,8 @@ ${restoreRecordsStep(schema)}
|
|
|
1126
1129
|
/** Copy one skill copy + the records + RESTORE.md into `archiveDir`. */
|
|
1127
1130
|
async function writeArchive(collection, archiveDir, workspaceRoot) {
|
|
1128
1131
|
const staging = stagingSkillDir(workspaceRoot, collection.slug);
|
|
1129
|
-
|
|
1132
|
+
const skillSrc = await pathExists(staging) ? staging : collection.skillDir;
|
|
1133
|
+
await (0, node_fs_promises.cp)(skillSrc, node_path.default.join(archiveDir, "skill"), { recursive: true });
|
|
1130
1134
|
if (await pathExists(collection.dataDir)) await (0, node_fs_promises.cp)(collection.dataDir, node_path.default.join(archiveDir, "records"), { recursive: true });
|
|
1131
1135
|
if (collection.storageFile !== void 0 && await pathExists(collection.storageFile)) {
|
|
1132
1136
|
const checkpointed = await require_discovery.checkpointSqliteDatabase(collection.storageFile);
|
|
@@ -2156,4 +2160,4 @@ Object.defineProperty(exports, "validateRecordObject", {
|
|
|
2156
2160
|
}
|
|
2157
2161
|
});
|
|
2158
2162
|
|
|
2159
|
-
//# sourceMappingURL=server-
|
|
2163
|
+
//# sourceMappingURL=server-DoyGZMPS.cjs.map
|