@mulmoclaude/core 1.14.0 → 2.0.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 (120) hide show
  1. package/dist/atomic-C_7YpMiM.cjs.map +1 -1
  2. package/dist/atomic-DPpdrJzO.js.map +1 -1
  3. package/dist/{calendarGrid-DivcNKkX.js → calendarGrid-Csy2rpjp.js} +58 -28
  4. package/dist/{calendarGrid-DivcNKkX.js.map → calendarGrid-Csy2rpjp.js.map} +1 -1
  5. package/dist/{calendarGrid-BQYqOCnF.cjs → calendarGrid-p8K-7cuB.cjs} +58 -28
  6. package/dist/{calendarGrid-BQYqOCnF.cjs.map → calendarGrid-p8K-7cuB.cjs.map} +1 -1
  7. package/dist/collection/core/actionVisible.d.ts +3 -3
  8. package/dist/collection/core/completion.d.ts +7 -7
  9. package/dist/collection/core/presentCollection.d.ts +1 -1
  10. package/dist/collection/index.cjs +5 -8
  11. package/dist/collection/index.cjs.map +1 -1
  12. package/dist/collection/index.js +5 -8
  13. package/dist/collection/index.js.map +1 -1
  14. package/dist/collection/registry/registryIndex.d.ts +1 -1
  15. package/dist/collection/registry/server/index.cjs +14 -12
  16. package/dist/collection/registry/server/index.cjs.map +1 -1
  17. package/dist/collection/registry/server/index.js +14 -12
  18. package/dist/collection/registry/server/index.js.map +1 -1
  19. package/dist/collection/server/discovery.d.ts +2 -2
  20. package/dist/collection/server/index.cjs +3 -3
  21. package/dist/collection/server/index.js +3 -3
  22. package/dist/collection/server/io.d.ts +3 -3
  23. package/dist/collection/server/manageTool.d.ts +3 -3
  24. package/dist/collection/server/store.d.ts +3 -3
  25. package/dist/collection/server/validate.d.ts +1 -1
  26. package/dist/collection-watchers/index.cjs +5 -5
  27. package/dist/collection-watchers/index.js +5 -5
  28. package/dist/{discovery-D6p4ITNR.js → discovery-BSedPW8A.js} +14 -6
  29. package/dist/discovery-BSedPW8A.js.map +1 -0
  30. package/dist/{discovery-CRDx6TS4.cjs → discovery-DSLgRQhN.cjs} +14 -6
  31. package/dist/discovery-DSLgRQhN.cjs.map +1 -0
  32. package/dist/feeds/index.cjs +2 -2
  33. package/dist/feeds/index.js +2 -2
  34. package/dist/feeds/server/host.d.ts +2 -2
  35. package/dist/feeds/server/index.cjs +11 -11
  36. package/dist/feeds/server/index.cjs.map +1 -1
  37. package/dist/feeds/server/index.js +11 -11
  38. package/dist/feeds/server/index.js.map +1 -1
  39. package/dist/feeds/server/refreshResult.d.ts +2 -2
  40. package/dist/files/index.cjs +3 -2
  41. package/dist/files/index.cjs.map +1 -1
  42. package/dist/files/index.js +3 -2
  43. package/dist/files/index.js.map +1 -1
  44. package/dist/google/calendar.d.ts +24 -24
  45. package/dist/google/collectionSync.d.ts +2 -2
  46. package/dist/google/driveFile.d.ts +2 -2
  47. package/dist/google/index.cjs +3 -3
  48. package/dist/google/index.cjs.map +1 -1
  49. package/dist/google/index.js +3 -3
  50. package/dist/google/index.js.map +1 -1
  51. package/dist/google/tasks.d.ts +11 -11
  52. package/dist/{graph-DjE1Az1C.cjs → graph-BZJxiv1E.cjs} +10 -12
  53. package/dist/graph-BZJxiv1E.cjs.map +1 -0
  54. package/dist/{graph-BcwqiSpR.js → graph-Ce7xsDTt.js} +10 -12
  55. package/dist/graph-Ce7xsDTt.js.map +1 -0
  56. package/dist/{ingestTypes-C7IJSqv4.cjs → ingestTypes-CPR-h-OZ.cjs} +2 -2
  57. package/dist/{ingestTypes-C7IJSqv4.cjs.map → ingestTypes-CPR-h-OZ.cjs.map} +1 -1
  58. package/dist/{ingestTypes-DmtDLRmt.js → ingestTypes-F2IJhOLJ.js} +2 -2
  59. package/dist/{ingestTypes-DmtDLRmt.js.map → ingestTypes-F2IJhOLJ.js.map} +1 -1
  60. package/dist/notifier/index.cjs +1 -1
  61. package/dist/notifier/index.js +1 -1
  62. package/dist/notifier/types.d.ts +4 -4
  63. package/dist/{notifier-Wc4M24Bi.cjs → notifier-CKFVVwDP.cjs} +35 -24
  64. package/dist/notifier-CKFVVwDP.cjs.map +1 -0
  65. package/dist/{notifier-Dxh8mEFh.js → notifier-CQD8NljP.js} +35 -24
  66. package/dist/notifier-CQD8NljP.js.map +1 -0
  67. package/dist/{promptSafety-DJgaDjM4.js → promptSafety-ACXw_2Yu.js} +48 -19
  68. package/dist/promptSafety-ACXw_2Yu.js.map +1 -0
  69. package/dist/{promptSafety-B52GvaJc.cjs → promptSafety-CNEW3_qS.cjs} +48 -19
  70. package/dist/promptSafety-CNEW3_qS.cjs.map +1 -0
  71. package/dist/remote-host/server/hostRunner.d.ts +7 -2
  72. package/dist/remote-host/server/index.cjs +12 -9
  73. package/dist/remote-host/server/index.cjs.map +1 -1
  74. package/dist/remote-host/server/index.js +13 -10
  75. package/dist/remote-host/server/index.js.map +1 -1
  76. package/dist/remote-host/server/lifecycle.d.ts +1 -1
  77. package/dist/remote-view/index.cjs.map +1 -1
  78. package/dist/remote-view/index.d.ts +1 -1
  79. package/dist/remote-view/index.js.map +1 -1
  80. package/dist/scheduler/adapter.d.ts +4 -4
  81. package/dist/scheduler/index.cjs +34 -2
  82. package/dist/scheduler/index.cjs.map +1 -1
  83. package/dist/scheduler/index.js +34 -2
  84. package/dist/scheduler/index.js.map +1 -1
  85. package/dist/scheduler/task-manager.d.ts +2 -2
  86. package/dist/{server-D6EUf3BF.js → server-B78f_bnY.js} +12 -8
  87. package/dist/server-B78f_bnY.js.map +1 -0
  88. package/dist/{server-D7_oRbTJ.cjs → server-By4oSql2.cjs} +12 -8
  89. package/dist/server-By4oSql2.cjs.map +1 -0
  90. package/dist/skill-bridge/index.cjs +3 -4
  91. package/dist/skill-bridge/index.cjs.map +1 -1
  92. package/dist/skill-bridge/index.js +3 -4
  93. package/dist/skill-bridge/index.js.map +1 -1
  94. package/dist/types-BKVZrtyc.js.map +1 -1
  95. package/dist/types-CNqkLT4M.cjs.map +1 -1
  96. package/dist/utils/fetch.cjs.map +1 -1
  97. package/dist/utils/fetch.d.ts +1 -1
  98. package/dist/utils/fetch.js.map +1 -1
  99. package/dist/whisper/client.cjs.map +1 -1
  100. package/dist/whisper/client.d.ts +3 -3
  101. package/dist/whisper/client.js.map +1 -1
  102. package/dist/wiki/index.cjs +2 -2
  103. package/dist/wiki/index.cjs.map +1 -1
  104. package/dist/wiki/index.js +2 -2
  105. package/dist/wiki/index.js.map +1 -1
  106. package/dist/wiki/server/index.cjs +15 -12
  107. package/dist/wiki/server/index.cjs.map +1 -1
  108. package/dist/wiki/server/index.js +15 -12
  109. package/dist/wiki/server/index.js.map +1 -1
  110. package/package.json +8 -8
  111. package/dist/discovery-CRDx6TS4.cjs.map +0 -1
  112. package/dist/discovery-D6p4ITNR.js.map +0 -1
  113. package/dist/graph-BcwqiSpR.js.map +0 -1
  114. package/dist/graph-DjE1Az1C.cjs.map +0 -1
  115. package/dist/notifier-Dxh8mEFh.js.map +0 -1
  116. package/dist/notifier-Wc4M24Bi.cjs.map +0 -1
  117. package/dist/promptSafety-B52GvaJc.cjs.map +0 -1
  118. package/dist/promptSafety-DJgaDjM4.js.map +0 -1
  119. package/dist/server-D6EUf3BF.js.map +0 -1
  120. package/dist/server-D7_oRbTJ.cjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { a as isErrorWithCode, l as isUnknownArray, r as hasNumberProp, s as isRecord } from "./dist-D8zokgGo.js";
2
2
  import { t as writeFileAtomic } from "./atomic-DPpdrJzO.js";
3
- import { A as fieldTextOrNull, C as FEED_SCHEDULES, D as isReadOnlySchema, O as storageKindFor, S as COMPUTED_TYPES, g as SAFE_SLUG_PATTERN, h as SAFE_RECORD_ID_PATTERN, k as fieldText, v as isSafeRecordId, w as INGEST_KINDS, x as AGENT_INGEST_KIND, y as isSafeSlug } from "./calendarGrid-DivcNKkX.js";
3
+ import { A as fieldTextOrNull, C as FEED_SCHEDULES, D as isReadOnlySchema, O as storageKindFor, S as COMPUTED_TYPES, g as SAFE_SLUG_PATTERN, h as SAFE_RECORD_ID_PATTERN, k as fieldText, v as isSafeRecordId, w as INGEST_KINDS, x as AGENT_INGEST_KIND, y as isSafeSlug } from "./calendarGrid-Csy2rpjp.js";
4
4
  import { n as projectRecordFields } from "./project-B0j_Vf_Q.js";
5
5
  import { n as isSafeCustomViewI18nPath, r as isSafeCustomViewPath, t as isSafeActionTemplatePath } from "./templatePath-k_WNbL_Q.js";
6
6
  import { realpathSync, watch } from "node:fs";
@@ -587,7 +587,7 @@ function whereFragment(cond) {
587
587
  const column = quoteIdent(cond.field);
588
588
  const asText = `CAST(${column} AS VARCHAR)`;
589
589
  if (cond.op === "in") {
590
- const values = cond.value;
590
+ const values = arrayValue(cond);
591
591
  return {
592
592
  sql: `${values.every((value) => typeof value === "string") ? asText : column} IN (${values.map(() => "?").join(", ")})`,
593
593
  params: values
@@ -610,6 +610,14 @@ function whereFragment(cond) {
610
610
  params: [scalarValue(cond)]
611
611
  };
612
612
  }
613
+ /** Mirror of `scalarValue` for the one op that takes a set: a scalar under
614
+ * `in` also means the query skipped `CollectionQueryZ`. Left unchecked it
615
+ * failed as `values.every is not a function`, naming neither the field nor
616
+ * the op. */
617
+ function arrayValue(cond) {
618
+ if (!Array.isArray(cond.value)) throw new Error(`where condition on '${cond.field}' uses op 'in', which requires an array value, not a scalar`);
619
+ return cond.value;
620
+ }
613
621
  /** `CollectionQueryZ` refines "`in` ⇔ array value", so an array reaching a
614
622
  * scalar op means the query was compiled without being validated first —
615
623
  * binding it would send an array to a single `?`. */
@@ -674,9 +682,9 @@ function encodeCsvRecordId(rawKey) {
674
682
  * `encodeCsvRecordId` for encoded ids; anything else is already the raw
675
683
  * value. Pure + exported for unit tests. */
676
684
  function decodeCsvRecordId(itemId) {
677
- const match = ENCODED_ID_PATTERN.exec(itemId);
678
- if (!match) return itemId;
679
- return Buffer.from(match[1], "hex").toString("utf-8");
685
+ const hex = ENCODED_ID_PATTERN.exec(itemId)?.[1];
686
+ if (hex === void 0) return itemId;
687
+ return Buffer.from(hex, "hex").toString("utf-8");
680
688
  }
681
689
  /** Normalize one DuckDB JS value into a JSON-safe record value: BigInt →
682
690
  * number (string beyond the safe range), DATE/TIMESTAMP → ISO string
@@ -2715,4 +2723,4 @@ function toDetail(collection) {
2715
2723
  //#endregion
2716
2724
  export { skillsStagingDir as $, deleteItem as A, itemFilePath as B, compileCsvQuery as C, MAX_QUERY_ROWS as D, DEFAULT_QUERY_ROWS as E, resolveCreateItemId as F, archiveDir as G, resolveTemplatePath as H, writeItem as I, getWorkspaceRoot as J, collectionsRegistriesConfigPath as K, SCHEMA_FILE as L, isRegularFile as M, listItems as N, BackendUnavailableError as O, readItem as P, setCollectionChangePublisher as Q, isContainedInRoot as R, queryCsv as S, CollectionQueryZ as T, safeRecordId as U, resolveDataDir as V, safeSlugName as W, log as X, isPresetSlug as Y, publishCollectionChange as Z, csvRowToItem as _, toDetail as a, encodeCsvRecordId as b, resolveMutateSet as c, storeFor as d, createForwardingLogger as et, checkpointSqliteDatabase as f, cacheDir as g, MAX_CSV_ROWS as h, resolvePrimaryField as i, generateItemId as j, isBackendUnavailable as k, collectionWritable as l, projectItemFields as m, discoverCollections as n, toSummary as o, pageFromFullRead as p, configureCollectionHost as q, loadCollection as r, CollectionSchemaZ as s, acceptParsedSchema as t, createHostSlot as tt, readOnlyRefusal as u, decodeCsvRecordId as v, compileJsonlQuery as w, normalizeCsvValue as x, dedupeByRecordId as y, isContainedInWorkspace as z };
2717
2725
 
2718
- //# sourceMappingURL=discovery-D6p4ITNR.js.map
2726
+ //# sourceMappingURL=discovery-BSedPW8A.js.map