@mulmoclaude/core 7.2.0 → 7.3.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.
@@ -182,6 +182,7 @@ skipped, never crashes the host):
182
182
  | `calendarEndField` | Optional. A second `date`/`datetime` field marking the END of a multi-day span on the calendar (the record renders across `calendarField` → this date). Requires `calendarField`. Must name a real `date`/`datetime` field. |
183
183
  | `calendarTimeField` | Optional. Name of a string field holding a free-form time or time-range (`"14:00-17:00"`, `"17:00-"`, `"16:30"`) used to place records on the calendar's **day (time-allocation) view**. Consulted only when the date fields are date-only — a `datetime` anchor/end pair carries its own clock and takes precedence. Requires `calendarField`. See "Calendar view" below. |
184
184
  | `kanbanField` | Optional. Name of an `enum` field that groups records into columns on the **Kanban board** (one column per declared value). When unset, the Kanban toggle still appears if the schema has any `enum` field — the first one is used, switchable in-view. Set this to pin a specific group field. Must name a real `enum` field. See "Kanban view" below. |
185
+ | `builtinViews` | Optional. `{ "calendar"?: boolean, "kanban"?: boolean }` — `false` hides that built-in view toggle (e.g. a collection read through custom views). Omitted / `true` keeps the field-derived default; it never adds a view whose `date` / `enum` field is missing. Unknown keys are rejected. |
185
186
  | `views` | Optional. Custom (LLM-authored) HTML views: `[{ id, label, icon?, file, capabilities?, target?, allowSendChat? }]`. Each renders an HTML file under `views/*.html` in a sandboxed iframe over the records, for layouts the built-ins don't cover (year/quarter overview, Gantt, report). `capabilities` is `["read"]` (default) or `["read","write"]`. `allowSendChat: true` makes the view's `startChat` buttons RUN the prompt instead of leaving it as an editable draft. `target: "mobile"` makes it a **remote view** for the phone app (different runtime contract — **`config/helps/custom-view-remote.md`**). See "Custom views" below and **`config/helps/custom-view.md`** for the desktop authoring contract. |
186
187
  | `googleCalendar` | Optional. `{ "calendarId": "primary", "map": { "<field>": "summary" } }` — the host mirrors one of the user's **Google calendars** into this collection on a schedule, **LLM-free**: no tool call, no tokens per sync. Reach for it whenever the user asks for a collection that syncs with Google Calendar — never an `ingest.kind: "agent"` worker or the `google` MCP tools, which spend an LLM turn per refresh doing what the host does for free. Needs `dataPath`. See "Google Calendar sync" below and **`config/helps/google-calendar-collection.md`**. |
187
188
 
@@ -833,6 +834,9 @@ Notes:
833
834
  anchors the grid (otherwise the first `date` field is used, and the user can
834
835
  switch in-view when there are several); `calendarEndField` makes a record span
835
836
  multiple days (`calendarField` → `calendarEndField`, inclusive).
837
+ - **To hide the toggle**, set `"builtinViews": { "calendar": false }` — e.g. a
838
+ collection read through custom views. The `date` fields keep their picker and
839
+ validation; only the Calendar button goes away.
836
840
  - `displayField` sets the chip label (falls back to the primary key).
837
841
  - Records whose anchor date is missing or unparseable are listed in a small
838
842
  "No date" tray under the grid — never silently dropped.
@@ -914,6 +918,10 @@ Notes:
914
918
  - **No schema change is needed to get the toggle** — it appears whenever an
915
919
  `enum` field exists. `kanbanField` only _tunes_ which enum groups the board
916
920
  (otherwise the first `enum` field is used, switchable in-view).
921
+ - **To hide the toggle**, set `"builtinViews": { "kanban": false }`. Use this
922
+ instead of retyping the enum to `string`, which loses the dropdown and
923
+ validation (and is impossible when a `toggle` or `completionField` needs it).
924
+ Calendar chips stay coloured by the enum.
917
925
  - **The enum is the single source of truth.** For a todo-style "done" checkbox,
918
926
  use a `toggle` field projecting the status enum (above) — do NOT add a separate
919
927
  stored boolean. Checking the box sets `status` to the done value (and moves the
@@ -1084,6 +1084,10 @@ declare const CollectionObjectZ: z.ZodObject<{
1084
1084
  calendarEndField: z.ZodOptional<z.ZodString>;
1085
1085
  calendarTimeField: z.ZodOptional<z.ZodString>;
1086
1086
  kanbanField: z.ZodOptional<z.ZodString>;
1087
+ builtinViews: z.ZodOptional<z.ZodObject<{
1088
+ calendar: z.ZodOptional<z.ZodBoolean>;
1089
+ kanban: z.ZodOptional<z.ZodBoolean>;
1090
+ }, z.core.$strict>>;
1087
1091
  views: z.ZodOptional<z.ZodArray<z.ZodObject<{
1088
1092
  id: z.ZodString;
1089
1093
  label: z.ZodString;
@@ -1585,6 +1589,10 @@ export declare const CollectionSchemaZ: z.ZodPreprocess<z.ZodObject<{
1585
1589
  calendarEndField: z.ZodOptional<z.ZodString>;
1586
1590
  calendarTimeField: z.ZodOptional<z.ZodString>;
1587
1591
  kanbanField: z.ZodOptional<z.ZodString>;
1592
+ builtinViews: z.ZodOptional<z.ZodObject<{
1593
+ calendar: z.ZodOptional<z.ZodBoolean>;
1594
+ kanban: z.ZodOptional<z.ZodBoolean>;
1595
+ }, z.core.$strict>>;
1588
1596
  views: z.ZodOptional<z.ZodArray<z.ZodObject<{
1589
1597
  id: z.ZodString;
1590
1598
  label: z.ZodString;
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_rolldown_runtime = require("../../../rolldown-runtime-CmQyd0Gu.cjs");
3
3
  const require_utils_fetch = require("../../../utils/fetch.cjs");
4
- const require_server = require("../../../server-BGxmZppB.cjs");
5
- const require_discovery = require("../../../discovery-D3e3JaAv.cjs");
4
+ const require_server = require("../../../server-ZKTtI8_W.cjs");
5
+ const require_discovery = require("../../../discovery-DxmMcpFo.cjs");
6
6
  const require_types = require("../../../types-DPycxnDf.cjs");
7
7
  const require_skill_bridge_index = require("../../../skill-bridge/index.cjs");
8
8
  const require_root = require("../../../root-9lRFeXbm.cjs");
@@ -1,6 +1,6 @@
1
1
  import { fetchWithTimeout } from "../../../utils/fetch.js";
2
- import { y as ONE_SECOND_MS } from "../../../server-MKJPGYKI.js";
3
- import { K as safeRecordId, et as collectionsRegistriesConfigPath, ht as skillsStagingDir, lt as projectSkillsDir, r as loadCollection, rt as getWorkspaceRoot, s as CollectionSchemaZ, st as log, t as acceptParsedSchema } from "../../../discovery-BIQY56d1.js";
2
+ import { y as ONE_SECOND_MS } from "../../../server-xdXBsiba.js";
3
+ import { K as safeRecordId, et as collectionsRegistriesConfigPath, ht as skillsStagingDir, lt as projectSkillsDir, r as loadCollection, rt as getWorkspaceRoot, s as CollectionSchemaZ, st as log, t as acceptParsedSchema } from "../../../discovery-RyuhNKjx.js";
4
4
  import { n as parseRegistryIndex, r as isRecord, t as OFFICIAL_REGISTRY_NAME } from "../../../types-BLCZTGW2.js";
5
5
  import { claudeSkillDir, dataSkillDir, mirrorSkillWrite } from "../../../skill-bridge/index.js";
6
6
  import { r as writeFileAtomic } from "../../../root-CqxPNSyK.js";
@@ -1,9 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_discovery = require("../../discovery-D3e3JaAv.cjs");
2
+ const require_discovery = require("../../discovery-DxmMcpFo.cjs");
3
3
  const require_root = require("../../root-9lRFeXbm.cjs");
4
4
  const require_itemId = require("../../itemId-D2XAQ8RU.cjs");
5
5
  const require_templatePath = require("../../templatePath-BIh7wqgS.cjs");
6
- const require_server = require("../../server-BGxmZppB.cjs");
6
+ const require_server = require("../../server-ZKTtI8_W.cjs");
7
7
  exports.APP_MANIFEST_FILE = require_discovery.APP_MANIFEST_FILE;
8
8
  exports.BackendUnavailableError = require_discovery.BackendUnavailableError;
9
9
  exports.COLLECTION_ROOT_REQUIRED = require_discovery.COLLECTION_ROOT_REQUIRED;
@@ -1,6 +1,6 @@
1
- import { $ as collectionChangePayload, A as readItem, B as SCHEMA_FILE, C as CollectionQueryZ, D as generateItemId, E as deleteItem, F as loadAppManifest, G as resolveTemplatePath, H as isUnderRealRoot, I as parseAppManifest, J as BackendUnavailableError, K as safeRecordId, L as sharedItemsPath, M as writeItem, N as APP_MANIFEST_FILE, O as isRegularFile, P as appManifestReason, Q as collectionChangeKey, R as pageFromFullRead, S as compileJsonlQuery, T as MAX_QUERY_ROWS, U as itemFilePath, V as isContainedInRoot, W as resolveDataDir, X as COLLECTION_ROOT_REQUIRED, Y as isBackendUnavailable, _ as dedupeByRecordId, a as toDetail, ct as peekWorkspaceRoot, d as storeFor, dt as setCollectionChangePublisher, ft as setFirestoreAccessor, g as decodeCsvRecordId, h as csvRowToItem, i as resolvePrimaryField, it as hostSupportsSharedCollections, j as resolveCreateItemId, k as listItems, l as collectionWritable, mt as sharedCollectionChangePayload, n as discoverCollections, nt as firestoreHandle, o as toSummary, ot as localCollectionKey, p as MAX_CSV_ROWS, pt as setSharedCollectionsSupport, q as safeSlugName, r as loadCollection, rt as getWorkspaceRoot, s as CollectionSchemaZ, st as log, t as acceptParsedSchema, tt as configureCollectionHost, u as readOnlyRefusal, ut as publishCollectionChange, v as encodeCsvRecordId, w as DEFAULT_QUERY_ROWS, x as compileCsvQuery, y as normalizeCsvValue, z as projectItemFields } from "../../discovery-BIQY56d1.js";
1
+ import { $ as collectionChangePayload, A as readItem, B as SCHEMA_FILE, C as CollectionQueryZ, D as generateItemId, E as deleteItem, F as loadAppManifest, G as resolveTemplatePath, H as isUnderRealRoot, I as parseAppManifest, J as BackendUnavailableError, K as safeRecordId, L as sharedItemsPath, M as writeItem, N as APP_MANIFEST_FILE, O as isRegularFile, P as appManifestReason, Q as collectionChangeKey, R as pageFromFullRead, S as compileJsonlQuery, T as MAX_QUERY_ROWS, U as itemFilePath, V as isContainedInRoot, W as resolveDataDir, X as COLLECTION_ROOT_REQUIRED, Y as isBackendUnavailable, _ as dedupeByRecordId, a as toDetail, ct as peekWorkspaceRoot, d as storeFor, dt as setCollectionChangePublisher, ft as setFirestoreAccessor, g as decodeCsvRecordId, h as csvRowToItem, i as resolvePrimaryField, it as hostSupportsSharedCollections, j as resolveCreateItemId, k as listItems, l as collectionWritable, mt as sharedCollectionChangePayload, n as discoverCollections, nt as firestoreHandle, o as toSummary, ot as localCollectionKey, p as MAX_CSV_ROWS, pt as setSharedCollectionsSupport, q as safeSlugName, r as loadCollection, rt as getWorkspaceRoot, s as CollectionSchemaZ, st as log, t as acceptParsedSchema, tt as configureCollectionHost, u as readOnlyRefusal, ut as publishCollectionChange, v as encodeCsvRecordId, w as DEFAULT_QUERY_ROWS, x as compileCsvQuery, y as normalizeCsvValue, z as projectItemFields } from "../../discovery-RyuhNKjx.js";
2
2
  import { t as canonicalRoot } from "../../root-CqxPNSyK.js";
3
3
  import { K as COMPUTED_TYPES } from "../../itemId-D_pSpa3U.js";
4
4
  import { i as isSafeTemplatePath, n as isSafeCustomViewI18nPath, r as isSafeCustomViewPath, t as isSafeActionTemplatePath } from "../../templatePath-CB3wtVpe.js";
5
- import { A as recordFieldProblem, B as stagedSkillDir, C as applyMutateAction, D as validateCollectionRecords, E as STORE_UNREADABLE, F as buildCollectionActionSeedPrompt, I as promptPathsFor, L as readCustomViewHtml, M as enrichItems, N as runQueryOverRows, O as validateRecordObject, P as buildActionSeedPrompt, R as readCustomViewI18n, S as schemaRelations, T as MAX_RECORD_ISSUES, _ as resolveEvery, a as MAX_UNSELECTIVE_ITEMS, b as computeCollectionIcon, c as deleteCollection, d as computeSuccessor, f as daysInMonth, g as parseCivil, h as maybeSpawnSuccessor, i as MAX_SCHEMA_ISSUES, j as runCollectionQuery, k as compileRecordZ, l as deleteCollectionRefusalMessage, m as isTriggerDue, n as MAX_PUT_ITEMS, o as makeManageCollectionTool, p as formatCivil, r as MAX_PUT_LINT, s as deleteCustomView, t as MAX_ITEMS_FILE_BYTES, u as advanceTriggerDate, v as successorId, w as firstMutateParamProblem, x as buildWorkspaceOntology, z as readSkillTemplate } from "../../server-MKJPGYKI.js";
5
+ import { A as recordFieldProblem, B as stagedSkillDir, C as applyMutateAction, D as validateCollectionRecords, E as STORE_UNREADABLE, F as buildCollectionActionSeedPrompt, I as promptPathsFor, L as readCustomViewHtml, M as enrichItems, N as runQueryOverRows, O as validateRecordObject, P as buildActionSeedPrompt, R as readCustomViewI18n, S as schemaRelations, T as MAX_RECORD_ISSUES, _ as resolveEvery, a as MAX_UNSELECTIVE_ITEMS, b as computeCollectionIcon, c as deleteCollection, d as computeSuccessor, f as daysInMonth, g as parseCivil, h as maybeSpawnSuccessor, i as MAX_SCHEMA_ISSUES, j as runCollectionQuery, k as compileRecordZ, l as deleteCollectionRefusalMessage, m as isTriggerDue, n as MAX_PUT_ITEMS, o as makeManageCollectionTool, p as formatCivil, r as MAX_PUT_LINT, s as deleteCustomView, t as MAX_ITEMS_FILE_BYTES, u as advanceTriggerDate, v as successorId, w as firstMutateParamProblem, x as buildWorkspaceOntology, z as readSkillTemplate } from "../../server-xdXBsiba.js";
6
6
  export { APP_MANIFEST_FILE, BackendUnavailableError, COLLECTION_ROOT_REQUIRED, COMPUTED_TYPES, CollectionQueryZ, CollectionSchemaZ, DEFAULT_QUERY_ROWS, MAX_CSV_ROWS, MAX_ITEMS_FILE_BYTES, MAX_PUT_ITEMS, MAX_PUT_LINT, MAX_QUERY_ROWS, MAX_RECORD_ISSUES, MAX_SCHEMA_ISSUES, MAX_UNSELECTIVE_ITEMS, SCHEMA_FILE, STORE_UNREADABLE, acceptParsedSchema, advanceTriggerDate, appManifestReason, applyMutateAction, buildActionSeedPrompt, buildCollectionActionSeedPrompt, buildWorkspaceOntology, canonicalRoot, collectionChangeKey, collectionChangePayload, collectionWritable, compileCsvQuery, compileJsonlQuery, compileRecordZ, computeCollectionIcon, computeSuccessor, configureCollectionHost, csvRowToItem, daysInMonth, decodeCsvRecordId, dedupeByRecordId, deleteCollection, deleteCollectionRefusalMessage, deleteCustomView, deleteItem, discoverCollections, encodeCsvRecordId, enrichItems, firestoreHandle, firstMutateParamProblem, formatCivil, generateItemId, getWorkspaceRoot, hostSupportsSharedCollections, isBackendUnavailable, isContainedInRoot, isRegularFile, isSafeActionTemplatePath, isSafeCustomViewI18nPath, isSafeCustomViewPath, isSafeTemplatePath, isTriggerDue, isUnderRealRoot, itemFilePath, listItems, loadAppManifest, loadCollection, localCollectionKey, log, makeManageCollectionTool, maybeSpawnSuccessor, normalizeCsvValue, pageFromFullRead, parseAppManifest, parseCivil, peekWorkspaceRoot, projectItemFields, promptPathsFor, publishCollectionChange, readCustomViewHtml, readCustomViewI18n, readItem, readOnlyRefusal, readSkillTemplate, recordFieldProblem, resolveCreateItemId, resolveDataDir, resolveEvery, resolvePrimaryField, resolveTemplatePath, runCollectionQuery, runQueryOverRows, safeRecordId, safeSlugName, schemaRelations, setCollectionChangePublisher, setFirestoreAccessor, setSharedCollectionsSupport, sharedCollectionChangePayload, sharedItemsPath, stagedSkillDir, storeFor, successorId, toDetail, toSummary, validateCollectionRecords, validateRecordObject, writeItem };
@@ -1,11 +1,11 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_discovery = require("../discovery-D3e3JaAv.cjs");
2
+ const require_discovery = require("../discovery-DxmMcpFo.cjs");
3
3
  const require_root = require("../root-9lRFeXbm.cjs");
4
4
  const require_itemId = require("../itemId-D2XAQ8RU.cjs");
5
5
  const require_promptSafety = require("../promptSafety-CjxafW2b.cjs");
6
6
  const require_notifier = require("../notifier-CRTk34EC.cjs");
7
7
  require("../collection/index.cjs");
8
- const require_server = require("../server-BGxmZppB.cjs");
8
+ const require_server = require("../server-ZKTtI8_W.cjs");
9
9
  let node_fs_promises = require("node:fs/promises");
10
10
  // src/collection-watchers/config.ts
11
11
  var NOOP_LOG = {
@@ -1,10 +1,10 @@
1
- import { $ as collectionChangePayload, U as itemFilePath, ct as peekWorkspaceRoot, d as storeFor, mt as sharedCollectionChangePayload, n as discoverCollections, nt as firestoreHandle, r as loadCollection, ut as publishCollectionChange } from "../discovery-BIQY56d1.js";
1
+ import { $ as collectionChangePayload, U as itemFilePath, ct as peekWorkspaceRoot, d as storeFor, mt as sharedCollectionChangePayload, n as discoverCollections, nt as firestoreHandle, r as loadCollection, ut as publishCollectionChange } from "../discovery-RyuhNKjx.js";
2
2
  import { t as canonicalRoot } from "../root-CqxPNSyK.js";
3
3
  import { $ as fieldText, P as isValidCollectionName } from "../itemId-D_pSpa3U.js";
4
4
  import { D as whenMatches, f as itemIsDone } from "../promptSafety-B8LECAkY.js";
5
5
  import { d as publish, m as updateForPlugin, n as clear, s as listAll } from "../notifier-htdf4ekH.js";
6
6
  import "../collection/index.js";
7
- import { h as maybeSpawnSuccessor, m as isTriggerDue } from "../server-MKJPGYKI.js";
7
+ import { h as maybeSpawnSuccessor, m as isTriggerDue } from "../server-xdXBsiba.js";
8
8
  import { access } from "node:fs/promises";
9
9
  // src/collection-watchers/config.ts
10
10
  var NOOP_LOG = {
@@ -2889,6 +2889,10 @@ var BareCollectionSchemaZ = zod.z.object({
2889
2889
  calendarEndField: zod.z.string().trim().min(1).optional(),
2890
2890
  calendarTimeField: zod.z.string().trim().min(1).optional(),
2891
2891
  kanbanField: zod.z.string().trim().min(1).optional(),
2892
+ builtinViews: zod.z.object({
2893
+ calendar: zod.z.boolean().optional(),
2894
+ kanban: zod.z.boolean().optional()
2895
+ }).strict().optional(),
2892
2896
  views: zod.z.array(CustomViewZ).optional(),
2893
2897
  notifyWhen: WhenZ.optional(),
2894
2898
  ingest: IngestZ.optional(),
@@ -3793,4 +3797,4 @@ Object.defineProperty(exports, "writeItem", {
3793
3797
  }
3794
3798
  });
3795
3799
 
3796
- //# sourceMappingURL=discovery-D3e3JaAv.cjs.map
3800
+ //# sourceMappingURL=discovery-DxmMcpFo.cjs.map