@mulmoclaude/core 0.2.8 → 0.2.9

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 (107) hide show
  1. package/assets/skills-preset/mc-manage-automations/SKILL.md +1 -1
  2. package/dist/collection/server/index.js +1 -1
  3. package/dist/collection-watchers/index.js +1 -1
  4. package/dist/feeds/server/index.js +1 -1
  5. package/dist/{server-B2YkcCwl.js → server-q4WPXtbU.js} +22 -14
  6. package/dist/{server-B2YkcCwl.js.map → server-q4WPXtbU.js.map} +1 -1
  7. package/package.json +1 -1
  8. package/dist/collection/core/actionVisible.d.ts +0 -34
  9. package/dist/collection/core/calendarGrid.d.ts +0 -120
  10. package/dist/collection/core/deriveAll.d.ts +0 -38
  11. package/dist/collection/core/derivedFormula.d.ts +0 -18
  12. package/dist/collection/core/draft.d.ts +0 -18
  13. package/dist/collection/core/enumColors.d.ts +0 -33
  14. package/dist/collection/core/errorMessage.d.ts +0 -4
  15. package/dist/collection/core/itemLabel.d.ts +0 -12
  16. package/dist/collection/core/presentCollection.d.ts +0 -13
  17. package/dist/collection/core/promptSafety.d.ts +0 -1
  18. package/dist/collection/core/schema.d.ts +0 -382
  19. package/dist/collection/core/shortHexId.d.ts +0 -8
  20. package/dist/collection/core/sortItems.d.ts +0 -29
  21. package/dist/collection/core/uiTypes.d.ts +0 -106
  22. package/dist/collection/index.cjs +0 -794
  23. package/dist/collection/index.cjs.map +0 -1
  24. package/dist/collection/index.d.ts +0 -14
  25. package/dist/collection/paths.cjs +0 -44
  26. package/dist/collection/paths.cjs.map +0 -1
  27. package/dist/collection/server/atomic.d.ts +0 -1
  28. package/dist/collection/server/delete.d.ts +0 -38
  29. package/dist/collection/server/derive.d.ts +0 -8
  30. package/dist/collection/server/discoveredCollection.d.ts +0 -18
  31. package/dist/collection/server/discovery.d.ts +0 -239
  32. package/dist/collection/server/host.d.ts +0 -77
  33. package/dist/collection/server/index.cjs +0 -51
  34. package/dist/collection/server/io.d.ts +0 -120
  35. package/dist/collection/server/paths.d.ts +0 -52
  36. package/dist/collection/server/spawn.d.ts +0 -55
  37. package/dist/collection/server/util.d.ts +0 -3
  38. package/dist/collection/server/validate.d.ts +0 -19
  39. package/dist/collection/server/views.d.ts +0 -20
  40. package/dist/collection-watchers/config.d.ts +0 -49
  41. package/dist/collection-watchers/index.cjs +0 -553
  42. package/dist/collection-watchers/index.cjs.map +0 -1
  43. package/dist/collection-watchers/index.d.ts +0 -3
  44. package/dist/collection-watchers/reconciler.d.ts +0 -33
  45. package/dist/collection-watchers/watcher.d.ts +0 -34
  46. package/dist/deriveAll-VRWrs3SF.cjs +0 -413
  47. package/dist/deriveAll-VRWrs3SF.cjs.map +0 -1
  48. package/dist/feeds/index.cjs +0 -8
  49. package/dist/feeds/index.d.ts +0 -1
  50. package/dist/feeds/ingestTypes.d.ts +0 -57
  51. package/dist/feeds/paths.cjs +0 -48
  52. package/dist/feeds/paths.cjs.map +0 -1
  53. package/dist/feeds/paths.d.ts +0 -22
  54. package/dist/feeds/server/fetch/httpClient.d.ts +0 -8
  55. package/dist/feeds/server/fetch/rssParser.d.ts +0 -12
  56. package/dist/feeds/server/index.cjs +0 -840
  57. package/dist/feeds/server/index.cjs.map +0 -1
  58. package/dist/feeds/server/pathResolver.d.ts +0 -6
  59. package/dist/feeds/server/projectItem.d.ts +0 -8
  60. package/dist/feeds/server/refreshResult.d.ts +0 -17
  61. package/dist/feeds/server/retrievers/httpJson.d.ts +0 -3
  62. package/dist/feeds/server/retrievers/index.d.ts +0 -12
  63. package/dist/feeds/server/retrievers/registerAll.d.ts +0 -0
  64. package/dist/feeds/server/retrievers/rss.d.ts +0 -3
  65. package/dist/file-change/index.cjs +0 -72
  66. package/dist/file-change/index.cjs.map +0 -1
  67. package/dist/file-change/index.d.ts +0 -43
  68. package/dist/ingestTypes-DDOVhOYC.cjs +0 -32
  69. package/dist/ingestTypes-DDOVhOYC.cjs.map +0 -1
  70. package/dist/notifier/engine.d.ts +0 -72
  71. package/dist/notifier/index.cjs +0 -21
  72. package/dist/notifier/index.d.ts +0 -3
  73. package/dist/notifier/store.d.ts +0 -18
  74. package/dist/notifier/types.d.ts +0 -118
  75. package/dist/notifier/validate.d.ts +0 -17
  76. package/dist/notifier-bS8IEeLA.cjs +0 -577
  77. package/dist/notifier-bS8IEeLA.cjs.map +0 -1
  78. package/dist/rolldown-runtime-D6vf50IK.cjs +0 -28
  79. package/dist/scheduler/adapter.d.ts +0 -48
  80. package/dist/scheduler/index.cjs +0 -352
  81. package/dist/scheduler/index.cjs.map +0 -1
  82. package/dist/scheduler/index.d.ts +0 -2
  83. package/dist/scheduler/task-manager.d.ts +0 -51
  84. package/dist/server-D27UzXug.cjs +0 -1985
  85. package/dist/server-D27UzXug.cjs.map +0 -1
  86. package/dist/skill-bridge/index.cjs +0 -88
  87. package/dist/skill-bridge/index.cjs.map +0 -1
  88. package/dist/skill-bridge/index.d.ts +0 -30
  89. package/dist/whisper/client.cjs +0 -241
  90. package/dist/whisper/client.cjs.map +0 -1
  91. package/dist/whisper/client.d.ts +0 -35
  92. package/dist/whisper/ffmpeg.d.ts +0 -6
  93. package/dist/whisper/index.cjs +0 -433
  94. package/dist/whisper/index.cjs.map +0 -1
  95. package/dist/whisper/index.d.ts +0 -5
  96. package/dist/whisper/internal.d.ts +0 -11
  97. package/dist/whisper/models.d.ts +0 -49
  98. package/dist/whisper/sidecar.d.ts +0 -8
  99. package/dist/whisper/whisper.d.ts +0 -28
  100. package/dist/workspace-setup/assets.d.ts +0 -10
  101. package/dist/workspace-setup/index.d.ts +0 -3
  102. package/dist/workspace-setup/index.js +0 -560
  103. package/dist/workspace-setup/index.js.map +0 -1
  104. package/dist/workspace-setup/slug.d.ts +0 -6
  105. package/dist/workspace-setup/slug.js +0 -13
  106. package/dist/workspace-setup/slug.js.map +0 -1
  107. package/dist/workspace-setup/sync.d.ts +0 -94
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: mc-manage-automations
3
- description: Schedule, list, edit, or remove a recurring agent task (cron / interval) in `config/scheduler/tasks.json`. Use for cross-collection digests, notifications, or any standalone recurring prompt ("毎朝7時に天気", "every weekday 8am check email", "schedule a weekly cleanup"), or to list/stop automations. EXCEPTION — do NOT create a task here to keep ONE collection's records fresh (e.g. "update the stock-quotes daily", "refresh these quotes every morning", "re-poll these URLs"): instead add an `ingest` block with `kind: "agent"` to THAT collection's own `schema.json` (it self-refreshes on schedule and from its Refresh button; syntax in `config/helps/collection-skills.md` → "Scheduled agent refresh"). Read this skill body in full before writing `tasks.json` — the entry format is structured, not free-form.
3
+ description: 'Schedule, list, edit, or remove a recurring agent task (cron / interval) in `config/scheduler/tasks.json`. Use for cross-collection digests, notifications, or any standalone recurring prompt ("毎朝7時に天気", "every weekday 8am check email", "schedule a weekly cleanup"), or to list/stop automations. EXCEPTION — do NOT create a task here to keep ONE collection''s records fresh (e.g. "update the stock-quotes daily", "refresh these quotes every morning", "re-poll these URLs"): instead add an `ingest` block with `kind: "agent"` to THAT collection''s own `schema.json` (it self-refreshes on schedule and from its Refresh button; syntax in `config/helps/collection-skills.md` → "Scheduled agent refresh"). Read this skill body in full before writing `tasks.json` — the entry format is structured, not free-form.'
4
4
  ---
5
5
 
6
6
  # Automations manager
@@ -1,3 +1,3 @@
1
- import { A as readSkillTemplate, B as safeSlugName, C as buildActionSeedPrompt, D as listItems, E as generateItemId, F as isContainedInWorkspace, G as setCollectionChangePublisher, H as getWorkspaceRoot, I as itemFilePath, L as resolveDataDir, M as writeItem, N as SCHEMA_FILE, O as readCustomViewHtml, P as isContainedInRoot, R as resolveTemplatePath, S as validateRecordObject, T as deleteItem, U as log, V as configureCollectionHost, W as publishCollectionChange, _ as loadCollection, a as computeSuccessor, b as COMPUTED_TYPES, c as isTriggerDue, d as resolveEvery, f as successorId, g as discoverCollections, h as acceptParsedSchema, i as advanceTriggerDate, j as resolveCreateItemId, k as readItem, l as maybeSpawnSuccessor, m as CollectionSchemaZ, n as deleteCollection, o as daysInMonth, p as enrichItems, r as deleteCollectionRefusalMessage, s as formatCivil, t as deleteCustomView, u as parseCivil, v as toDetail, w as buildCollectionActionSeedPrompt, x as validateCollectionRecords, y as toSummary, z as safeRecordId } from "../../server-B2YkcCwl.js";
1
+ import { A as readSkillTemplate, B as safeSlugName, C as buildActionSeedPrompt, D as listItems, E as generateItemId, F as isContainedInWorkspace, G as setCollectionChangePublisher, H as getWorkspaceRoot, I as itemFilePath, L as resolveDataDir, M as writeItem, N as SCHEMA_FILE, O as readCustomViewHtml, P as isContainedInRoot, R as resolveTemplatePath, S as validateRecordObject, T as deleteItem, U as log, V as configureCollectionHost, W as publishCollectionChange, _ as loadCollection, a as computeSuccessor, b as COMPUTED_TYPES, c as isTriggerDue, d as resolveEvery, f as successorId, g as discoverCollections, h as acceptParsedSchema, i as advanceTriggerDate, j as resolveCreateItemId, k as readItem, l as maybeSpawnSuccessor, m as CollectionSchemaZ, n as deleteCollection, o as daysInMonth, p as enrichItems, r as deleteCollectionRefusalMessage, s as formatCivil, t as deleteCustomView, u as parseCivil, v as toDetail, w as buildCollectionActionSeedPrompt, x as validateCollectionRecords, y as toSummary, z as safeRecordId } from "../../server-q4WPXtbU.js";
2
2
  import { isSafeActionTemplatePath, isSafeCustomViewPath, isSafeTemplatePath } from "../paths.js";
3
3
  export { COMPUTED_TYPES, CollectionSchemaZ, SCHEMA_FILE, acceptParsedSchema, advanceTriggerDate, buildActionSeedPrompt, buildCollectionActionSeedPrompt, computeSuccessor, configureCollectionHost, daysInMonth, deleteCollection, deleteCollectionRefusalMessage, deleteCustomView, deleteItem, discoverCollections, enrichItems, formatCivil, generateItemId, getWorkspaceRoot, isContainedInRoot, isContainedInWorkspace, isSafeActionTemplatePath, isSafeCustomViewPath, isSafeTemplatePath, isTriggerDue, itemFilePath, listItems, loadCollection, log, maybeSpawnSuccessor, parseCivil, publishCollectionChange, readCustomViewHtml, readItem, readSkillTemplate, resolveCreateItemId, resolveDataDir, resolveEvery, resolveTemplatePath, safeRecordId, safeSlugName, setCollectionChangePublisher, successorId, toDetail, toSummary, validateCollectionRecords, validateRecordObject, writeItem };
@@ -1,5 +1,5 @@
1
1
  import { whenMatches } from "../collection/index.js";
2
- import { D as listItems, _ as loadCollection, c as isTriggerDue, g as discoverCollections, k as readItem, l as maybeSpawnSuccessor } from "../server-B2YkcCwl.js";
2
+ import { D as listItems, _ as loadCollection, c as isTriggerDue, g as discoverCollections, k as readItem, l as maybeSpawnSuccessor } from "../server-q4WPXtbU.js";
3
3
  import { d as publish, m as updateForPlugin, n as clear, s as listAll } from "../notifier-ChpY0XrY.js";
4
4
  import { watch } from "node:fs";
5
5
  import { mkdir } from "node:fs/promises";
@@ -1,5 +1,5 @@
1
1
  import { a as FEED_SCHEDULES, o as INGEST_KINDS } from "../../deriveAll-vzIhhKBK.js";
2
- import { A as readSkillTemplate, B as safeSlugName, D as listItems, L as resolveDataDir, M as writeItem, T as deleteItem, g as discoverCollections, w as buildCollectionActionSeedPrompt } from "../../server-B2YkcCwl.js";
2
+ import { A as readSkillTemplate, B as safeSlugName, D as listItems, L as resolveDataDir, M as writeItem, T as deleteItem, g as discoverCollections, w as buildCollectionActionSeedPrompt } from "../../server-q4WPXtbU.js";
3
3
  import { n as DEFAULT_FEED_MAX_ITEMS, r as isFeedSchedule, t as AGENT_INGEST_KIND } from "../../ingestTypes-B8DaQOTy.js";
4
4
  import { FEEDS_DIR, feedDir, feedStatePath, feedsRoot, ingestStateDir, ingestStatePath } from "../paths.js";
5
5
  import { d as publish, n as clear } from "../../notifier-ChpY0XrY.js";
@@ -1501,21 +1501,29 @@ function deleteTargets(collection, workspaceRoot) {
1501
1501
  ];
1502
1502
  }
1503
1503
  /** The records directory the delete recursively archives + removes
1504
- * (`collection.dataDir`) must live in this collection's OWN
1505
- * `data/<slug>/` subtree. `dataDir` is normally derived from
1506
- * `schema.dataPath`, but `deleteCollection` accepts a `LoadedCollection`
1507
- * whose fields could be inconsistent — so we validate the RESOLVED
1508
- * target the destructive ops actually touch, not the schema string.
1509
- * `resolveDataDir` only proves containment in the workspace; a shared
1510
- * root like `data` or `data/skills` would otherwise turn the recursive
1511
- * removal into a workspace-wide wipe whose archive captures only this
1512
- * collection. `path.resolve` collapses any `..` before the prefix test
1513
- * (symlink escapes are caught separately by the realpath containment
1514
- * check in `deleteTargets`). */
1504
+ * (`collection.dataDir`) must live in this collection's OWN per-slug
1505
+ * subtree. `dataDir` is normally derived from `schema.dataPath`, but
1506
+ * `deleteCollection` accepts a `LoadedCollection` whose fields could be
1507
+ * inconsistent — so we validate the RESOLVED target the destructive ops
1508
+ * actually touch, not the schema string. A shared root like `data` or
1509
+ * `data/skills` would otherwise turn the recursive removal into a
1510
+ * workspace-wide wipe whose archive captures only this collection.
1511
+ * `path.resolve` collapses any `..` before the prefix test (symlink
1512
+ * escapes are caught separately by the realpath containment check in
1513
+ * `deleteTargets`).
1514
+ *
1515
+ * TWO acceptable per-slug subtrees:
1516
+ * - `data/<slug>/...` — the convention authored collections default to.
1517
+ * - `data/collections/<slug>/...` — what `normalizedDataPath` in the
1518
+ * registry-import path stamps onto every imported schema (so imported
1519
+ * collections never collide with `data/<slug>/`-shaped authored ones).
1520
+ * Both are equally per-collection and equally safe; a delete that targets
1521
+ * anything else (e.g. raw `data/`, `data/wiki/`, a sibling slug) is
1522
+ * refused. */
1515
1523
  function isDataDirSafe(dataDir, slug, workspaceRoot) {
1516
- const expectedRoot = path.resolve(workspaceRoot, "data", slug);
1524
+ const acceptableRoots = [path.resolve(workspaceRoot, "data", slug), path.resolve(workspaceRoot, "data", "collections", slug)];
1517
1525
  const resolved = path.resolve(dataDir);
1518
- return resolved === expectedRoot || resolved.startsWith(expectedRoot + path.sep);
1526
+ return acceptableRoots.some((root) => resolved === root || resolved.startsWith(root + path.sep));
1519
1527
  }
1520
1528
  function buildRestoreDoc(collection) {
1521
1529
  const { slug, schema } = collection;
@@ -1711,4 +1719,4 @@ async function deleteCustomView(collection, viewId, opts = {}) {
1711
1719
  //#endregion
1712
1720
  export { readSkillTemplate as A, safeSlugName as B, buildActionSeedPrompt as C, listItems as D, generateItemId as E, isContainedInWorkspace as F, setCollectionChangePublisher as G, getWorkspaceRoot as H, itemFilePath as I, resolveDataDir as L, writeItem as M, SCHEMA_FILE as N, readCustomViewHtml as O, isContainedInRoot as P, resolveTemplatePath as R, validateRecordObject as S, deleteItem as T, log as U, configureCollectionHost as V, publishCollectionChange as W, loadCollection as _, computeSuccessor as a, COMPUTED_TYPES as b, isTriggerDue as c, resolveEvery as d, successorId as f, discoverCollections as g, acceptParsedSchema as h, advanceTriggerDate as i, resolveCreateItemId as j, readItem as k, maybeSpawnSuccessor as l, CollectionSchemaZ as m, deleteCollection as n, daysInMonth as o, enrichItems as p, deleteCollectionRefusalMessage as r, formatCivil as s, deleteCustomView as t, parseCivil as u, toDetail as v, buildCollectionActionSeedPrompt as w, validateCollectionRecords as x, toSummary as y, safeRecordId as z };
1713
1721
 
1714
- //# sourceMappingURL=server-B2YkcCwl.js.map
1722
+ //# sourceMappingURL=server-q4WPXtbU.js.map