@mulmoclaude/core 5.1.0 → 5.4.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/README.md +17 -1
- package/assets/helps/error-recovery.md +78 -0
- package/assets/helps/google-calendar-collection.md +92 -12
- package/dist/collection/core/schemaZ.d.ts +15 -2
- package/dist/collection/core/viewChatPolicy.d.ts +15 -3
- package/dist/collection/firestore.cjs +2 -1
- package/dist/collection/firestore.cjs.map +1 -1
- package/dist/collection/firestore.js +3 -2
- package/dist/collection/firestore.js.map +1 -1
- package/dist/collection/index.cjs +15 -3
- package/dist/collection/index.cjs.map +1 -1
- package/dist/collection/index.js +15 -3
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/registry/server/index.cjs +2 -2
- package/dist/collection/registry/server/index.js +2 -2
- package/dist/collection/server/firestoreDocs.d.ts +10 -0
- package/dist/collection/server/index.cjs +2 -2
- package/dist/collection/server/index.js +2 -2
- package/dist/collection-watchers/index.cjs +2 -2
- package/dist/collection-watchers/index.js +2 -2
- package/dist/{discovery-DCMW05Bp.cjs → discovery-B79IxEM6.cjs} +15 -5
- package/dist/discovery-B79IxEM6.cjs.map +1 -0
- package/dist/{discovery-CBjI1lx9.js → discovery-DIGau7M8.js} +15 -5
- package/dist/discovery-DIGau7M8.js.map +1 -0
- package/dist/feeds/server/index.cjs +2 -2
- package/dist/feeds/server/index.js +2 -2
- package/dist/google/calendar.d.ts +24 -0
- package/dist/google/collectionPush.d.ts +45 -2
- package/dist/google/deletePlan.d.ts +32 -0
- package/dist/google/eventDerived.d.ts +19 -0
- package/dist/google/index.cjs +179 -18
- package/dist/google/index.cjs.map +1 -1
- package/dist/google/index.d.ts +4 -2
- package/dist/google/index.js +174 -19
- package/dist/google/index.js.map +1 -1
- package/dist/remote-view/index.cjs +9 -7
- package/dist/remote-view/index.cjs.map +1 -1
- package/dist/remote-view/index.d.ts +3 -3
- package/dist/remote-view/index.js +9 -7
- package/dist/remote-view/index.js.map +1 -1
- package/dist/{server-rA9FSkl2.cjs → server-BUbU9G-J.cjs} +2 -2
- package/dist/{server-rA9FSkl2.cjs.map → server-BUbU9G-J.cjs.map} +1 -1
- package/dist/{server-BMZ_BcPH.js → server-DZ7Cq7s_.js} +2 -2
- package/dist/{server-BMZ_BcPH.js.map → server-DZ7Cq7s_.js.map} +1 -1
- package/package.json +1 -1
- package/dist/discovery-CBjI1lx9.js.map +0 -1
- package/dist/discovery-DCMW05Bp.cjs.map +0 -1
|
@@ -8,7 +8,6 @@ import { readFileSync, realpathSync, watch } from "node:fs";
|
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import { createHash, randomBytes } from "node:crypto";
|
|
10
10
|
import { lstat, mkdir, open, readFile, readdir, rename, stat, unlink, writeFile } from "node:fs/promises";
|
|
11
|
-
import { Timestamp } from "firebase/firestore";
|
|
12
11
|
import { tmpdir } from "node:os";
|
|
13
12
|
import iconv from "iconv-lite";
|
|
14
13
|
import { z } from "zod";
|
|
@@ -553,7 +552,7 @@ async function firestoreWrite(key, itemId, item, schema, opts) {
|
|
|
553
552
|
itemId
|
|
554
553
|
}), async (safeId, { docs, email }) => {
|
|
555
554
|
const collectionPath = sharedItemsPath(key);
|
|
556
|
-
const asTimestamp = (parts) =>
|
|
555
|
+
const asTimestamp = (parts) => docs.timestamp(parts.seconds, parts.nanoseconds);
|
|
557
556
|
if (opts.refuseOverwrite) {
|
|
558
557
|
if (!await guarded(key, email, () => docs.create(collectionPath, safeId, encodeRecordTimes(item, null, asTimestamp)))) return {
|
|
559
558
|
kind: "conflict",
|
|
@@ -2794,14 +2793,25 @@ var GoogleCalendarSyncZ = z.object({
|
|
|
2794
2793
|
"updated",
|
|
2795
2794
|
"transparency",
|
|
2796
2795
|
"eventType",
|
|
2797
|
-
"hangoutLink"
|
|
2796
|
+
"hangoutLink",
|
|
2797
|
+
"selfResponseStatus",
|
|
2798
|
+
"conferenceVideoUri"
|
|
2798
2799
|
])).refine((map) => Object.keys(map).length > 0, { message: "map at least one field — a `googleCalendar` sync with an empty map writes records that carry only the event id" }),
|
|
2799
2800
|
/** Run the push on the sync schedule too, immediately before each pull, so
|
|
2800
2801
|
* local edits reach Google without anyone pressing a button (#2620).
|
|
2801
2802
|
*
|
|
2802
2803
|
* Opt-in and absent by default: a push writes to a calendar other people may
|
|
2803
2804
|
* read, so turning it on is the user's decision, not a default. */
|
|
2804
|
-
autoPush: z.boolean().optional()
|
|
2805
|
+
autoPush: z.boolean().optional(),
|
|
2806
|
+
/** Delete the Google event when its record is deleted in the collection
|
|
2807
|
+
* (#3234). Absent by default, and absent means what it has always meant:
|
|
2808
|
+
* the deletion is reported and Google is left alone.
|
|
2809
|
+
*
|
|
2810
|
+
* Separate from `autoPush` rather than folded into it, because the two are
|
|
2811
|
+
* different sizes of decision — `autoPush` changes WHEN a write happens,
|
|
2812
|
+
* this one makes a write irreversible. Even on, the push refuses an event
|
|
2813
|
+
* with attendees (`google/deletePlan.ts`). */
|
|
2814
|
+
propagateDeletes: z.boolean().optional()
|
|
2805
2815
|
});
|
|
2806
2816
|
/** `ingest` is a discriminated union on `kind`: the three declarative
|
|
2807
2817
|
* retrievers fetch-and-map; `agent` dispatches a hidden worker. Optional on
|
|
@@ -3354,4 +3364,4 @@ function toDetail(collection) {
|
|
|
3354
3364
|
//#endregion
|
|
3355
3365
|
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 };
|
|
3356
3366
|
|
|
3357
|
-
//# sourceMappingURL=discovery-
|
|
3367
|
+
//# sourceMappingURL=discovery-DIGau7M8.js.map
|