@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.
Files changed (90) 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/global-config/index.cjs +69 -0
  28. package/dist/global-config/index.cjs.map +1 -0
  29. package/dist/global-config/index.d.ts +13 -0
  30. package/dist/global-config/index.js +63 -0
  31. package/dist/global-config/index.js.map +1 -0
  32. package/dist/global-config/paths.d.ts +2 -0
  33. package/dist/global-config/schema.d.ts +17 -0
  34. package/dist/google/index.cjs +11 -7
  35. package/dist/google/index.cjs.map +1 -1
  36. package/dist/google/index.js +9 -5
  37. package/dist/google/index.js.map +1 -1
  38. package/dist/google/paths.d.ts +2 -0
  39. package/dist/notifier/index.cjs +1 -1
  40. package/dist/notifier/index.js +1 -1
  41. package/dist/{notifier-CKFVVwDP.cjs → notifier-DZJj0sOh.cjs} +2 -2
  42. package/dist/{notifier-CKFVVwDP.cjs.map → notifier-DZJj0sOh.cjs.map} +1 -1
  43. package/dist/{notifier-CQD8NljP.js → notifier-DhnwR82U.js} +2 -2
  44. package/dist/{notifier-CQD8NljP.js.map → notifier-DhnwR82U.js.map} +1 -1
  45. package/dist/paths-CkJxNZ7T.js +13 -0
  46. package/dist/paths-CkJxNZ7T.js.map +1 -0
  47. package/dist/paths-ClV946_f.cjs +25 -0
  48. package/dist/paths-ClV946_f.cjs.map +1 -0
  49. package/dist/plugin-vue/i18n.cjs.map +1 -1
  50. package/dist/plugin-vue/index.cjs +39 -10
  51. package/dist/plugin-vue/index.cjs.map +1 -1
  52. package/dist/plugin-vue/index.js +39 -10
  53. package/dist/plugin-vue/index.js.map +1 -1
  54. package/dist/{relPath-CgGi4-Nv.cjs → relPath-CTAjGdCL.cjs} +2 -2
  55. package/dist/{relPath-CgGi4-Nv.cjs.map → relPath-CTAjGdCL.cjs.map} +1 -1
  56. package/dist/remote-host/server/index.cjs +3 -2
  57. package/dist/remote-host/server/index.cjs.map +1 -1
  58. package/dist/remote-host/server/index.js +3 -2
  59. package/dist/remote-host/server/index.js.map +1 -1
  60. package/dist/remote-host-CtQjagPt.cjs.map +1 -1
  61. package/dist/{rolldown-runtime-D6vf50IK.cjs → rolldown-runtime-VH7oDXx4.cjs} +1 -1
  62. package/dist/scheduler/index.cjs +6 -4
  63. package/dist/scheduler/index.cjs.map +1 -1
  64. package/dist/scheduler/index.js +5 -3
  65. package/dist/scheduler/index.js.map +1 -1
  66. package/dist/{server-B78f_bnY.js → server-DJt6USBQ.js} +11 -7
  67. package/dist/{server-B78f_bnY.js.map → server-DJt6USBQ.js.map} +1 -1
  68. package/dist/{server-By4oSql2.cjs → server-DoyGZMPS.cjs} +14 -10
  69. package/dist/{server-By4oSql2.cjs.map → server-DoyGZMPS.cjs.map} +1 -1
  70. package/dist/skill-bridge/index.cjs +1 -1
  71. package/dist/skill-bridge/index.cjs.map +1 -1
  72. package/dist/utils/fetch.cjs +1 -1
  73. package/dist/utils/fetch.cjs.map +1 -1
  74. package/dist/utils/fetch.js +1 -1
  75. package/dist/utils/fetch.js.map +1 -1
  76. package/dist/whisper/client.cjs.map +1 -1
  77. package/dist/whisper/client.js.map +1 -1
  78. package/dist/whisper/index.cjs +1 -1
  79. package/dist/whisper/index.cjs.map +1 -1
  80. package/dist/wiki/index.cjs +2 -1
  81. package/dist/wiki/index.cjs.map +1 -1
  82. package/dist/wiki/index.js +2 -1
  83. package/dist/wiki/index.js.map +1 -1
  84. package/dist/wiki/paths.cjs +1 -1
  85. package/dist/wiki/server/index.cjs +5 -3
  86. package/dist/wiki/server/index.cjs.map +1 -1
  87. package/dist/wiki/server/index.js +4 -2
  88. package/dist/wiki/server/index.js.map +1 -1
  89. package/dist/workspace-setup/index.js.map +1 -1
  90. package/package.json +12 -6
@@ -4,7 +4,8 @@ import { t as writeFileAtomic } from "../atomic-DPpdrJzO.js";
4
4
  import { fetchWithTimeout } from "../utils/fetch.js";
5
5
  import { l as parseIsoDate, u as parseIsoDateTime } from "../calendarGrid-Csy2rpjp.js";
6
6
  import { t as mergeIntoExisting } from "../project-B0j_Vf_Q.js";
7
- import { J as getWorkspaceRoot, d as storeFor, et as createForwardingLogger, n as discoverCollections, tt as createHostSlot } from "../discovery-BSedPW8A.js";
7
+ import { J as getWorkspaceRoot, d as storeFor, et as createForwardingLogger, n as discoverCollections, tt as createHostSlot } from "../discovery-BvnXyUel.js";
8
+ import { t as mulmoConfigDir } from "../paths-CkJxNZ7T.js";
8
9
  import { promises } from "node:fs";
9
10
  import path, { join } from "node:path";
10
11
  import { randomBytes, randomUUID } from "node:crypto";
@@ -40,8 +41,10 @@ var isIsoDateTimeWithOffset = (value) => {
40
41
  };
41
42
  //#endregion
42
43
  //#region src/google/paths.ts
44
+ /** Same directory as every other cross-app per-user file — see
45
+ * `../global-config/paths.ts`, which owns the spelling. */
43
46
  function googleConfigDir(home) {
44
- return join(home ?? homedir(), ".config", "mulmo");
47
+ return mulmoConfigDir(home);
45
48
  }
46
49
  /** Pre-0.20.1 token dir (mulmoclaude-branded); reads migrate away from it. */
47
50
  function legacyGoogleTokenPath(home) {
@@ -1115,7 +1118,7 @@ async function clearCalendarLastSyncedAt(calendarId, workspaceRoot) {
1115
1118
  /** Slack between a tick and the marker it writes. Without it a lone host reads
1116
1119
  * its OWN marker as "not due yet" — elapsed lands a hair under the interval
1117
1120
  * every time — and syncs every other hour. */
1118
- var TICK_JITTER_TOLERANCE_MS = 300 * 1e3;
1121
+ var TICK_JITTER_TOLERANCE_MS = 3e5;
1119
1122
  /** How long a fresh marker suppresses a sync: one interval, less the slack.
1120
1123
  * The slack is halved rather than subtracted flat for a very short configured
1121
1124
  * interval, where a fixed five minutes would swallow the window whole. */
@@ -1252,7 +1255,8 @@ function rawGoogleTime(value) {
1252
1255
  if (isCalendarDate(value)) return { date: value };
1253
1256
  const zone = value.match(ZONE_SUFFIX_RE$1)?.[0];
1254
1257
  if (zone === void 0) return null;
1255
- return parseIsoDateTime(value.slice(0, value.length - zone.length).replace(FRACTIONAL_SECONDS_RE$1, "")) === null ? null : { dateTime: value };
1258
+ const civil = value.slice(0, value.length - zone.length).replace(FRACTIONAL_SECONDS_RE$1, "");
1259
+ return parseIsoDateTime(civil) === null ? null : { dateTime: value };
1256
1260
  }
1257
1261
  /** Google's own all-day `end` is EXCLUSIVE — a single day on the 12th ends on
1258
1262
  * the 13th. The pull stores that as `2026-05-13T00:00` and this takes the date
@@ -1871,7 +1875,7 @@ async function pushCalendarForCollection(slug, workspaceRoot, deps = liveDeps) {
1871
1875
  //#endregion
1872
1876
  //#region src/google/collectionSync.ts
1873
1877
  var GOOGLE_CALENDAR_SYNC_TASK_ID = "system:google-calendar-sync";
1874
- var DEFAULT_SYNC_INTERVAL_MS = 3600 * 1e3;
1878
+ var DEFAULT_SYNC_INTERVAL_MS = 36e5;
1875
1879
  function classifyWrite(eventId, kind) {
1876
1880
  if (kind === "ok") return { kind: "written" };
1877
1881
  if (kind === "invalid-id") return {