@mulmoclaude/core 6.0.0 → 7.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 (50) hide show
  1. package/dist/collection/index.cjs +1 -1
  2. package/dist/collection/index.js +1 -1
  3. package/dist/collection/registry/server/index.cjs +7 -7
  4. package/dist/collection/registry/server/index.js +7 -7
  5. package/dist/collection/server/index.cjs +2 -2
  6. package/dist/collection/server/index.js +2 -2
  7. package/dist/collection-watchers/index.cjs +3 -3
  8. package/dist/collection-watchers/index.js +3 -3
  9. package/dist/{discovery-CYIV1J5l.cjs → discovery-BkCeYBf6.cjs} +26 -14
  10. package/dist/discovery-BkCeYBf6.cjs.map +1 -0
  11. package/dist/{discovery-duLlygnJ.js → discovery-DR4GNqrp.js} +26 -14
  12. package/dist/discovery-DR4GNqrp.js.map +1 -0
  13. package/dist/dist-734JaRYi.cjs.map +1 -1
  14. package/dist/dist-BmO4oSQy.js.map +1 -1
  15. package/dist/feeds/server/index.cjs +5 -5
  16. package/dist/feeds/server/index.js +5 -5
  17. package/dist/files/index.cjs +7 -31
  18. package/dist/files/index.cjs.map +1 -1
  19. package/dist/files/index.js +3 -27
  20. package/dist/files/index.js.map +1 -1
  21. package/dist/google/index.cjs +4 -4
  22. package/dist/google/index.js +4 -4
  23. package/dist/plugin-vue/index.cjs +181 -267
  24. package/dist/plugin-vue/index.cjs.map +1 -1
  25. package/dist/plugin-vue/index.js +181 -267
  26. package/dist/plugin-vue/index.js.map +1 -1
  27. package/dist/remote-host/server/index.cjs +1 -1
  28. package/dist/remote-host/server/index.js +1 -1
  29. package/dist/safe-D79sHxq1.cjs +43 -0
  30. package/dist/safe-D79sHxq1.cjs.map +1 -0
  31. package/dist/safe-DRNa8UBp.js +30 -0
  32. package/dist/safe-DRNa8UBp.js.map +1 -0
  33. package/dist/{server-ByKWGQn2.cjs → server-CnCUBmSn.cjs} +6 -6
  34. package/dist/{server-ByKWGQn2.cjs.map → server-CnCUBmSn.cjs.map} +1 -1
  35. package/dist/{server-CA-alqqN.js → server-Dp5KWarO.js} +6 -6
  36. package/dist/{server-CA-alqqN.js.map → server-Dp5KWarO.js.map} +1 -1
  37. package/dist/whisper/index.cjs +1 -1
  38. package/dist/whisper/index.js +1 -1
  39. package/dist/wiki/index.cjs +1 -1
  40. package/dist/wiki/index.js +1 -1
  41. package/dist/wiki/server/fs.d.ts +7 -2
  42. package/dist/wiki/server/index.cjs +106 -36
  43. package/dist/wiki/server/index.cjs.map +1 -1
  44. package/dist/wiki/server/index.js +108 -38
  45. package/dist/wiki/server/index.js.map +1 -1
  46. package/dist/wiki/server/locations.d.ts +10 -0
  47. package/dist/workspace-setup/index.js.map +1 -1
  48. package/package.json +10 -10
  49. package/dist/discovery-CYIV1J5l.cjs.map +0 -1
  50. package/dist/discovery-duLlygnJ.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_dist = require("../../dist-734JaRYi.cjs");
3
3
  require("../../errorMessage-D0kR547_.cjs");
4
- const require_listen = require("../../listen-OmfLDX1l.cjs");
5
4
  const require_remote_host = require("../../remote-host-11euEZKP.cjs");
5
+ const require_listen = require("../../listen-OmfLDX1l.cjs");
6
6
  let firebase_firestore = require("firebase/firestore");
7
7
  let node_perf_hooks = require("node:perf_hooks");
8
8
  let firebase_auth = require("firebase/auth");
@@ -1,7 +1,7 @@
1
1
  import { c as isRecord$1, t as errorMessage } from "../../dist-BmO4oSQy.js";
2
2
  import "../../errorMessage-TpKxrmeo.js";
3
- import { i as shouldGiveUpListening, n as backoffDelayMs, r as classifyListenerError, t as LISTEN_RETRY_WINDOW_MS } from "../../listen-uiEnXcW9.js";
4
3
  import { a as coerceJsonObject, i as byCreatedAt, o as isExpired, r as buildHostPresence } from "../../remote-host-TiMhcW1o.js";
4
+ import { i as shouldGiveUpListening, n as backoffDelayMs, r as classifyListenerError, t as LISTEN_RETRY_WINDOW_MS } from "../../listen-uiEnXcW9.js";
5
5
  import { collection, deleteDoc, doc, getDocFromServer, getFirestore, onSnapshot, query, runTransaction, serverTimestamp, setDoc, updateDoc, where } from "firebase/firestore";
6
6
  import { performance } from "node:perf_hooks";
7
7
  import { GoogleAuthProvider, getAuth, initializeAuth, signInWithCredential, signOut } from "firebase/auth";
@@ -0,0 +1,43 @@
1
+ const require_rolldown_runtime = require("./rolldown-runtime-CmQyd0Gu.cjs");
2
+ let node_fs = require("node:fs");
3
+ let node_path = require("node:path");
4
+ node_path = require_rolldown_runtime.__toESM(node_path, 1);
5
+ // src/files/safe.ts
6
+ /** True for a `not found` filesystem error (ENOENT) — lets callers treat a
7
+ * missing file as an empty/default result instead of a thrown error. */
8
+ function isEnoent(err) {
9
+ return typeof err === "object" && err !== null && "code" in err && err.code === "ENOENT";
10
+ }
11
+ /** Realpath-based read-time containment: resolve `relPath` against the root's
12
+ * realpath and require the target's realpath to stay inside it. Returns null
13
+ * on ENOENT or traversal (symlink escapes included). `rootReal` MUST already
14
+ * be a realpath. The one implementation for host and plugins (#2461) — this
15
+ * security-critical primitive must not drift per consumer. */
16
+ function resolveWithinRoot(rootReal, relPath) {
17
+ const normalized = node_path.default.normalize(relPath || "");
18
+ const resolvedReal = realpathOrNull(node_path.default.resolve(rootReal, normalized));
19
+ if (resolvedReal === null) return null;
20
+ if (resolvedReal !== rootReal && !resolvedReal.startsWith(rootReal + node_path.default.sep)) return null;
21
+ return resolvedReal;
22
+ }
23
+ function realpathOrNull(absPath) {
24
+ try {
25
+ return (0, node_fs.realpathSync)(absPath);
26
+ } catch {
27
+ return null;
28
+ }
29
+ }
30
+ Object.defineProperty(exports, "isEnoent", {
31
+ enumerable: true,
32
+ get: function() {
33
+ return isEnoent;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "resolveWithinRoot", {
37
+ enumerable: true,
38
+ get: function() {
39
+ return resolveWithinRoot;
40
+ }
41
+ });
42
+
43
+ //# sourceMappingURL=safe-D79sHxq1.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"safe-D79sHxq1.cjs","names":["path","realpathSync"],"sources":["../src/files/safe.ts"],"sourcesContent":["import { realpathSync } from \"node:fs\";\nimport path from \"node:path\";\n\n/** True for a `not found` filesystem error (ENOENT) — lets callers treat a\n * missing file as an empty/default result instead of a thrown error. */\nexport function isEnoent(err: unknown): boolean {\n return typeof err === \"object\" && err !== null && \"code\" in err && err.code === \"ENOENT\";\n}\n\n/** Realpath-based read-time containment: resolve `relPath` against the root's\n * realpath and require the target's realpath to stay inside it. Returns null\n * on ENOENT or traversal (symlink escapes included). `rootReal` MUST already\n * be a realpath. The one implementation for host and plugins (#2461) — this\n * security-critical primitive must not drift per consumer. */\nexport function resolveWithinRoot(rootReal: string, relPath: string): string | null {\n const normalized = path.normalize(relPath || \"\");\n const resolved = path.resolve(rootReal, normalized);\n const resolvedReal = realpathOrNull(resolved);\n if (resolvedReal === null) return null;\n if (resolvedReal !== rootReal && !resolvedReal.startsWith(rootReal + path.sep)) {\n return null;\n }\n return resolvedReal;\n}\n\nfunction realpathOrNull(absPath: string): string | null {\n try {\n return realpathSync(absPath);\n } catch {\n return null;\n }\n}\n"],"mappings":";;;;;;;AAKA,SAAgB,SAAS,KAAuB;CAC9C,OAAO,OAAO,QAAQ,YAAY,QAAQ,QAAQ,UAAU,OAAO,IAAI,SAAS;AAClF;;;;;;AAOA,SAAgB,kBAAkB,UAAkB,SAAgC;CAClF,MAAM,aAAaA,UAAAA,QAAK,UAAU,WAAW,EAAE;CAE/C,MAAM,eAAe,eADJA,UAAAA,QAAK,QAAQ,UAAU,UACJ,CAAQ;CAC5C,IAAI,iBAAiB,MAAM,OAAO;CAClC,IAAI,iBAAiB,YAAY,CAAC,aAAa,WAAW,WAAWA,UAAAA,QAAK,GAAG,GAC3E,OAAO;CAET,OAAO;AACT;AAEA,SAAS,eAAe,SAAgC;CACtD,IAAI;EACF,QAAA,GAAOC,QAAAA,aAAAA,CAAa,OAAO;CAC7B,QAAQ;EACN,OAAO;CACT;AACF"}
@@ -0,0 +1,30 @@
1
+ import { realpathSync } from "node:fs";
2
+ import path from "node:path";
3
+ // src/files/safe.ts
4
+ /** True for a `not found` filesystem error (ENOENT) — lets callers treat a
5
+ * missing file as an empty/default result instead of a thrown error. */
6
+ function isEnoent(err) {
7
+ return typeof err === "object" && err !== null && "code" in err && err.code === "ENOENT";
8
+ }
9
+ /** Realpath-based read-time containment: resolve `relPath` against the root's
10
+ * realpath and require the target's realpath to stay inside it. Returns null
11
+ * on ENOENT or traversal (symlink escapes included). `rootReal` MUST already
12
+ * be a realpath. The one implementation for host and plugins (#2461) — this
13
+ * security-critical primitive must not drift per consumer. */
14
+ function resolveWithinRoot(rootReal, relPath) {
15
+ const normalized = path.normalize(relPath || "");
16
+ const resolvedReal = realpathOrNull(path.resolve(rootReal, normalized));
17
+ if (resolvedReal === null) return null;
18
+ if (resolvedReal !== rootReal && !resolvedReal.startsWith(rootReal + path.sep)) return null;
19
+ return resolvedReal;
20
+ }
21
+ function realpathOrNull(absPath) {
22
+ try {
23
+ return realpathSync(absPath);
24
+ } catch {
25
+ return null;
26
+ }
27
+ }
28
+ export { resolveWithinRoot as n, isEnoent as t };
29
+
30
+ //# sourceMappingURL=safe-DRNa8UBp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"safe-DRNa8UBp.js","names":[],"sources":["../src/files/safe.ts"],"sourcesContent":["import { realpathSync } from \"node:fs\";\nimport path from \"node:path\";\n\n/** True for a `not found` filesystem error (ENOENT) — lets callers treat a\n * missing file as an empty/default result instead of a thrown error. */\nexport function isEnoent(err: unknown): boolean {\n return typeof err === \"object\" && err !== null && \"code\" in err && err.code === \"ENOENT\";\n}\n\n/** Realpath-based read-time containment: resolve `relPath` against the root's\n * realpath and require the target's realpath to stay inside it. Returns null\n * on ENOENT or traversal (symlink escapes included). `rootReal` MUST already\n * be a realpath. The one implementation for host and plugins (#2461) — this\n * security-critical primitive must not drift per consumer. */\nexport function resolveWithinRoot(rootReal: string, relPath: string): string | null {\n const normalized = path.normalize(relPath || \"\");\n const resolved = path.resolve(rootReal, normalized);\n const resolvedReal = realpathOrNull(resolved);\n if (resolvedReal === null) return null;\n if (resolvedReal !== rootReal && !resolvedReal.startsWith(rootReal + path.sep)) {\n return null;\n }\n return resolvedReal;\n}\n\nfunction realpathOrNull(absPath: string): string | null {\n try {\n return realpathSync(absPath);\n } catch {\n return null;\n }\n}\n"],"mappings":";;;;;AAKA,SAAgB,SAAS,KAAuB;CAC9C,OAAO,OAAO,QAAQ,YAAY,QAAQ,QAAQ,UAAU,OAAO,IAAI,SAAS;AAClF;;;;;;AAOA,SAAgB,kBAAkB,UAAkB,SAAgC;CAClF,MAAM,aAAa,KAAK,UAAU,WAAW,EAAE;CAE/C,MAAM,eAAe,eADJ,KAAK,QAAQ,UAAU,UACJ,CAAQ;CAC5C,IAAI,iBAAiB,MAAM,OAAO;CAClC,IAAI,iBAAiB,YAAY,CAAC,aAAa,WAAW,WAAW,KAAK,GAAG,GAC3E,OAAO;CAET,OAAO;AACT;AAEA,SAAS,eAAe,SAAgC;CACtD,IAAI;EACF,OAAO,aAAa,OAAO;CAC7B,QAAQ;EACN,OAAO;CACT;AACF"}
@@ -1,12 +1,12 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-CmQyd0Gu.cjs");
2
- const require_dist = require("./dist-734JaRYi.cjs");
3
- require("./errors-B9mCEVG9.cjs");
4
- const require_root = require("./root-9lRFeXbm.cjs");
2
+ const require_discovery = require("./discovery-BkCeYBf6.cjs");
5
3
  const require_relPath = require("./relPath-CZiP2S_a.cjs");
6
- const require_itemId = require("./itemId-D2XAQ8RU.cjs");
4
+ const require_dist = require("./dist-734JaRYi.cjs");
7
5
  const require_promptSafety = require("./promptSafety-CjxafW2b.cjs");
8
- const require_discovery = require("./discovery-CYIV1J5l.cjs");
6
+ const require_itemId = require("./itemId-D2XAQ8RU.cjs");
7
+ require("./errors-B9mCEVG9.cjs");
9
8
  const require_feeds_paths = require("./feeds/paths.cjs");
9
+ const require_root = require("./root-9lRFeXbm.cjs");
10
10
  const require_skill_bridge_index = require("./skill-bridge/index.cjs");
11
11
  let node_fs = require("node:fs");
12
12
  let node_path = require("node:path");
@@ -2715,4 +2715,4 @@ Object.defineProperty(exports, "validateRecordObject", {
2715
2715
  }
2716
2716
  });
2717
2717
 
2718
- //# sourceMappingURL=server-ByKWGQn2.cjs.map
2718
+ //# sourceMappingURL=server-CnCUBmSn.cjs.map