@mulmoclaude/core 2.0.1 → 2.0.2

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 (78) hide show
  1. package/dist/{atomic-C_7YpMiM.cjs → atomic-DhUk8uiM.cjs} +2 -2
  2. package/dist/{atomic-C_7YpMiM.cjs.map → atomic-DhUk8uiM.cjs.map} +1 -1
  3. package/dist/collection/registry/server/index.cjs +21 -26
  4. package/dist/collection/registry/server/index.cjs.map +1 -1
  5. package/dist/collection/registry/server/index.js +18 -23
  6. package/dist/collection/registry/server/index.js.map +1 -1
  7. package/dist/collection/server/index.cjs +2 -2
  8. package/dist/collection/server/index.js +2 -2
  9. package/dist/collection-watchers/index.cjs +3 -3
  10. package/dist/collection-watchers/index.cjs.map +1 -1
  11. package/dist/collection-watchers/index.js +3 -3
  12. package/dist/{discovery-DSLgRQhN.cjs → discovery-B_sHig7n.cjs} +5 -5
  13. package/dist/{discovery-DSLgRQhN.cjs.map → discovery-B_sHig7n.cjs.map} +1 -1
  14. package/dist/{discovery-BSedPW8A.js → discovery-BvnXyUel.js} +3 -3
  15. package/dist/{discovery-BSedPW8A.js.map → discovery-BvnXyUel.js.map} +1 -1
  16. package/dist/dist-CsgSfWwR.cjs.map +1 -1
  17. package/dist/dist-D8zokgGo.js.map +1 -1
  18. package/dist/feeds/paths.cjs +1 -1
  19. package/dist/feeds/server/index.cjs +5 -5
  20. package/dist/feeds/server/index.cjs.map +1 -1
  21. package/dist/feeds/server/index.js +4 -4
  22. package/dist/feeds/server/index.js.map +1 -1
  23. package/dist/file-change/index.cjs +1 -1
  24. package/dist/file-change/index.cjs.map +1 -1
  25. package/dist/files/index.cjs +3 -3
  26. package/dist/files/index.cjs.map +1 -1
  27. package/dist/google/index.cjs +7 -6
  28. package/dist/google/index.cjs.map +1 -1
  29. package/dist/google/index.js +5 -4
  30. package/dist/google/index.js.map +1 -1
  31. package/dist/notifier/index.cjs +1 -1
  32. package/dist/notifier/index.js +1 -1
  33. package/dist/{notifier-CKFVVwDP.cjs → notifier-DZJj0sOh.cjs} +2 -2
  34. package/dist/{notifier-CKFVVwDP.cjs.map → notifier-DZJj0sOh.cjs.map} +1 -1
  35. package/dist/{notifier-CQD8NljP.js → notifier-DhnwR82U.js} +2 -2
  36. package/dist/{notifier-CQD8NljP.js.map → notifier-DhnwR82U.js.map} +1 -1
  37. package/dist/plugin-vue/i18n.cjs.map +1 -1
  38. package/dist/plugin-vue/index.cjs +39 -10
  39. package/dist/plugin-vue/index.cjs.map +1 -1
  40. package/dist/plugin-vue/index.js +39 -10
  41. package/dist/plugin-vue/index.js.map +1 -1
  42. package/dist/{relPath-CgGi4-Nv.cjs → relPath-CTAjGdCL.cjs} +2 -2
  43. package/dist/{relPath-CgGi4-Nv.cjs.map → relPath-CTAjGdCL.cjs.map} +1 -1
  44. package/dist/remote-host/server/index.cjs +3 -2
  45. package/dist/remote-host/server/index.cjs.map +1 -1
  46. package/dist/remote-host/server/index.js +3 -2
  47. package/dist/remote-host/server/index.js.map +1 -1
  48. package/dist/remote-host-CtQjagPt.cjs.map +1 -1
  49. package/dist/{rolldown-runtime-D6vf50IK.cjs → rolldown-runtime-VH7oDXx4.cjs} +1 -1
  50. package/dist/scheduler/index.cjs +6 -4
  51. package/dist/scheduler/index.cjs.map +1 -1
  52. package/dist/scheduler/index.js +5 -3
  53. package/dist/scheduler/index.js.map +1 -1
  54. package/dist/{server-B78f_bnY.js → server-DJt6USBQ.js} +11 -7
  55. package/dist/{server-B78f_bnY.js.map → server-DJt6USBQ.js.map} +1 -1
  56. package/dist/{server-By4oSql2.cjs → server-DoyGZMPS.cjs} +14 -10
  57. package/dist/{server-By4oSql2.cjs.map → server-DoyGZMPS.cjs.map} +1 -1
  58. package/dist/skill-bridge/index.cjs +1 -1
  59. package/dist/skill-bridge/index.cjs.map +1 -1
  60. package/dist/utils/fetch.cjs +1 -1
  61. package/dist/utils/fetch.cjs.map +1 -1
  62. package/dist/utils/fetch.js +1 -1
  63. package/dist/utils/fetch.js.map +1 -1
  64. package/dist/whisper/client.cjs.map +1 -1
  65. package/dist/whisper/client.js.map +1 -1
  66. package/dist/whisper/index.cjs +1 -1
  67. package/dist/whisper/index.cjs.map +1 -1
  68. package/dist/wiki/index.cjs +2 -1
  69. package/dist/wiki/index.cjs.map +1 -1
  70. package/dist/wiki/index.js +2 -1
  71. package/dist/wiki/index.js.map +1 -1
  72. package/dist/wiki/paths.cjs +1 -1
  73. package/dist/wiki/server/index.cjs +5 -3
  74. package/dist/wiki/server/index.cjs.map +1 -1
  75. package/dist/wiki/server/index.js +4 -2
  76. package/dist/wiki/server/index.js.map +1 -1
  77. package/dist/workspace-setup/index.js.map +1 -1
  78. package/package.json +6 -6
@@ -1,10 +1,10 @@
1
- const require_rolldown_runtime = require("./rolldown-runtime-D6vf50IK.cjs");
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-C_7YpMiM.cjs");
4
- const require_relPath = require("./relPath-CgGi4-Nv.cjs");
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-DSLgRQhN.cjs");
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 skillDir = require_relPath.toPosixRelPath(rel === "" || rel.startsWith("..") ? collection.skillDir : rel);
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
- return require_promptSafety.backlinkRows(field, require_calendarGrid.fieldText(enriched[schema.primaryKey]), Object.values(source.byId)).map((row) => require_promptSafety.projectBacklinkRow(row, field.display, source.schema.primaryKey));
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
- return require_promptSafety.resolveIcon(require_promptSafety.selectDynamicRecord(ordered, spec.source, orderBy, recordsById), spec, schema.icon, recordsById);
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 = 1440 * 60 * 1e3;
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
- await (0, node_fs_promises.cp)(await pathExists(staging) ? staging : collection.skillDir, node_path.default.join(archiveDir, "skill"), { recursive: true });
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-By4oSql2.cjs.map
2163
+ //# sourceMappingURL=server-DoyGZMPS.cjs.map