@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
package/dist/google/index.js
CHANGED
|
@@ -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-
|
|
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
|
|
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 =
|
|
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
|
-
|
|
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 =
|
|
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 {
|