@mulmoclaude/core 2.0.1 → 2.0.2

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 (78) hide show
  1. package/dist/{atomic-C_7YpMiM.cjs → atomic-DhUk8uiM.cjs} +2 -2
  2. package/dist/{atomic-C_7YpMiM.cjs.map → atomic-DhUk8uiM.cjs.map} +1 -1
  3. package/dist/collection/registry/server/index.cjs +21 -26
  4. package/dist/collection/registry/server/index.cjs.map +1 -1
  5. package/dist/collection/registry/server/index.js +18 -23
  6. package/dist/collection/registry/server/index.js.map +1 -1
  7. package/dist/collection/server/index.cjs +2 -2
  8. package/dist/collection/server/index.js +2 -2
  9. package/dist/collection-watchers/index.cjs +3 -3
  10. package/dist/collection-watchers/index.cjs.map +1 -1
  11. package/dist/collection-watchers/index.js +3 -3
  12. package/dist/{discovery-DSLgRQhN.cjs → discovery-B_sHig7n.cjs} +5 -5
  13. package/dist/{discovery-DSLgRQhN.cjs.map → discovery-B_sHig7n.cjs.map} +1 -1
  14. package/dist/{discovery-BSedPW8A.js → discovery-BvnXyUel.js} +3 -3
  15. package/dist/{discovery-BSedPW8A.js.map → discovery-BvnXyUel.js.map} +1 -1
  16. package/dist/dist-CsgSfWwR.cjs.map +1 -1
  17. package/dist/dist-D8zokgGo.js.map +1 -1
  18. package/dist/feeds/paths.cjs +1 -1
  19. package/dist/feeds/server/index.cjs +5 -5
  20. package/dist/feeds/server/index.cjs.map +1 -1
  21. package/dist/feeds/server/index.js +4 -4
  22. package/dist/feeds/server/index.js.map +1 -1
  23. package/dist/file-change/index.cjs +1 -1
  24. package/dist/file-change/index.cjs.map +1 -1
  25. package/dist/files/index.cjs +3 -3
  26. package/dist/files/index.cjs.map +1 -1
  27. package/dist/google/index.cjs +7 -6
  28. package/dist/google/index.cjs.map +1 -1
  29. package/dist/google/index.js +5 -4
  30. package/dist/google/index.js.map +1 -1
  31. package/dist/notifier/index.cjs +1 -1
  32. package/dist/notifier/index.js +1 -1
  33. package/dist/{notifier-CKFVVwDP.cjs → notifier-DZJj0sOh.cjs} +2 -2
  34. package/dist/{notifier-CKFVVwDP.cjs.map → notifier-DZJj0sOh.cjs.map} +1 -1
  35. package/dist/{notifier-CQD8NljP.js → notifier-DhnwR82U.js} +2 -2
  36. package/dist/{notifier-CQD8NljP.js.map → notifier-DhnwR82U.js.map} +1 -1
  37. package/dist/plugin-vue/i18n.cjs.map +1 -1
  38. package/dist/plugin-vue/index.cjs +39 -10
  39. package/dist/plugin-vue/index.cjs.map +1 -1
  40. package/dist/plugin-vue/index.js +39 -10
  41. package/dist/plugin-vue/index.js.map +1 -1
  42. package/dist/{relPath-CgGi4-Nv.cjs → relPath-CTAjGdCL.cjs} +2 -2
  43. package/dist/{relPath-CgGi4-Nv.cjs.map → relPath-CTAjGdCL.cjs.map} +1 -1
  44. package/dist/remote-host/server/index.cjs +3 -2
  45. package/dist/remote-host/server/index.cjs.map +1 -1
  46. package/dist/remote-host/server/index.js +3 -2
  47. package/dist/remote-host/server/index.js.map +1 -1
  48. package/dist/remote-host-CtQjagPt.cjs.map +1 -1
  49. package/dist/{rolldown-runtime-D6vf50IK.cjs → rolldown-runtime-VH7oDXx4.cjs} +1 -1
  50. package/dist/scheduler/index.cjs +6 -4
  51. package/dist/scheduler/index.cjs.map +1 -1
  52. package/dist/scheduler/index.js +5 -3
  53. package/dist/scheduler/index.js.map +1 -1
  54. package/dist/{server-B78f_bnY.js → server-DJt6USBQ.js} +11 -7
  55. package/dist/{server-B78f_bnY.js.map → server-DJt6USBQ.js.map} +1 -1
  56. package/dist/{server-By4oSql2.cjs → server-DoyGZMPS.cjs} +14 -10
  57. package/dist/{server-By4oSql2.cjs.map → server-DoyGZMPS.cjs.map} +1 -1
  58. package/dist/skill-bridge/index.cjs +1 -1
  59. package/dist/skill-bridge/index.cjs.map +1 -1
  60. package/dist/utils/fetch.cjs +1 -1
  61. package/dist/utils/fetch.cjs.map +1 -1
  62. package/dist/utils/fetch.js +1 -1
  63. package/dist/utils/fetch.js.map +1 -1
  64. package/dist/whisper/client.cjs.map +1 -1
  65. package/dist/whisper/client.js.map +1 -1
  66. package/dist/whisper/index.cjs +1 -1
  67. package/dist/whisper/index.cjs.map +1 -1
  68. package/dist/wiki/index.cjs +2 -1
  69. package/dist/wiki/index.cjs.map +1 -1
  70. package/dist/wiki/index.js +2 -1
  71. package/dist/wiki/index.js.map +1 -1
  72. package/dist/wiki/paths.cjs +1 -1
  73. package/dist/wiki/server/index.cjs +5 -3
  74. package/dist/wiki/server/index.cjs.map +1 -1
  75. package/dist/wiki/server/index.js +4 -2
  76. package/dist/wiki/server/index.js.map +1 -1
  77. package/dist/workspace-setup/index.js.map +1 -1
  78. package/package.json +6 -6
@@ -88,7 +88,7 @@ function useClipboardCopy(resetMs = DEFAULT_RESET_MS) {
88
88
  }
89
89
  //#endregion
90
90
  //#region ../../node_modules/dompurify/dist/purify.es.mjs
91
- /*! @license DOMPurify 3.4.12 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.12/LICENSE */
91
+ /*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */
92
92
  function _arrayLikeToArray(r, a) {
93
93
  (null == a || a > r.length) && (a = r.length);
94
94
  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
@@ -1046,7 +1046,7 @@ var _resolveSetOption = function _resolveSetOption(cfg, key, fallback, options)
1046
1046
  function createDOMPurify() {
1047
1047
  let window = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
1048
1048
  const DOMPurify = (root) => createDOMPurify(root);
1049
- DOMPurify.version = "3.4.12";
1049
+ DOMPurify.version = "3.4.13";
1050
1050
  DOMPurify.removed = [];
1051
1051
  if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
1052
1052
  DOMPurify.isSupported = false;
@@ -1070,6 +1070,7 @@ function createDOMPurify() {
1070
1070
  const getAttributes = lookupGetter(ElementPrototype, "attributes");
1071
1071
  const getNodeType = Node && Node.prototype ? lookupGetter(Node.prototype, "nodeType") : null;
1072
1072
  const getNodeName = Node && Node.prototype ? lookupGetter(Node.prototype, "nodeName") : null;
1073
+ const getOwnerDocument = Node && Node.prototype ? lookupGetter(Node.prototype, "ownerDocument") : null;
1073
1074
  if (typeof HTMLTemplateElement === "function") {
1074
1075
  const template = document.createElement("template");
1075
1076
  if (template.content && template.content.ownerDocument) document = template.content.ownerDocument;
@@ -1710,7 +1711,8 @@ function createDOMPurify() {
1710
1711
  * @return The created NodeIterator
1711
1712
  */
1712
1713
  const _createNodeIterator = function _createNodeIterator(root) {
1713
- return createNodeIterator.call(root.ownerDocument || root, root, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);
1714
+ const doc = getOwnerDocument ? getOwnerDocument(root) : root.ownerDocument;
1715
+ return createNodeIterator.call(doc || root, root, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);
1714
1716
  };
1715
1717
  /**
1716
1718
  * Replace template expression syntax (mustache, ERB, template
@@ -1748,7 +1750,8 @@ function createDOMPurify() {
1748
1750
  const _scrubTemplateExpressions2 = function _scrubTemplateExpressions(node) {
1749
1751
  var _node$querySelectorAl;
1750
1752
  node.normalize();
1751
- const walker = createNodeIterator.call(node.ownerDocument || node, node, NodeFilter.SHOW_TEXT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_CDATA_SECTION | NodeFilter.SHOW_PROCESSING_INSTRUCTION, null);
1753
+ const doc = getOwnerDocument ? getOwnerDocument(node) : node.ownerDocument;
1754
+ const walker = createNodeIterator.call(doc || node, node, NodeFilter.SHOW_TEXT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_CDATA_SECTION | NodeFilter.SHOW_PROCESSING_INSTRUCTION, null);
1752
1755
  let currentNode = walker.nextNode();
1753
1756
  while (currentNode) {
1754
1757
  currentNode.data = _stripTemplateExpressions(currentNode.data);
@@ -1855,7 +1858,7 @@ function createDOMPurify() {
1855
1858
  * @param tagName the node's transformCaseFunc'd tag name
1856
1859
  * @return true if the node was removed, false if kept
1857
1860
  */
1858
- const _sanitizeDisallowedNode = function _sanitizeDisallowedNode(currentNode, tagName) {
1861
+ const _sanitizeDisallowedNode = function _sanitizeDisallowedNode(currentNode, tagName, root) {
1859
1862
  if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
1860
1863
  if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) return false;
1861
1864
  if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) return false;
@@ -1866,7 +1869,7 @@ function createDOMPurify() {
1866
1869
  if (childNodes && parentNode) {
1867
1870
  const childCount = childNodes.length;
1868
1871
  for (let i = childCount - 1; i >= 0; --i) {
1869
- const hoisted = IN_PLACE ? childNodes[i] : cloneNode(childNodes[i], true);
1872
+ const hoisted = currentNode === root ? cloneNode(childNodes[i], true) : childNodes[i];
1870
1873
  parentNode.insertBefore(hoisted, getNextSibling(currentNode));
1871
1874
  }
1872
1875
  }
@@ -1875,6 +1878,24 @@ function createDOMPurify() {
1875
1878
  return true;
1876
1879
  };
1877
1880
  /**
1881
+ * Fork a hook-mutable allowlist off its shared binding the first time a
1882
+ * (possibly lazily-installed) uponSanitize* hook is about to see it, so the
1883
+ * hook cannot widen the per-instance default or the setConfig binding by
1884
+ * reference and leak past the call. Returns the set unchanged once it is
1885
+ * already call-local, so repeated calls across elements are idempotent.
1886
+ *
1887
+ * @param hookList the uponSanitize* hook array for this event
1888
+ * @param set the current ALLOWED_TAGS / ALLOWED_ATTR binding
1889
+ * @param defaultSet the per-instance DEFAULT_ALLOWED_* constant
1890
+ * @param setConfigSet the captured setConfig() binding, or null
1891
+ * @return a call-local clone if a hook is present and set is still shared,
1892
+ * else set unchanged
1893
+ */
1894
+ const _forkSharedAllowlist = function _forkSharedAllowlist(hookList, set, defaultSet, setConfigSet) {
1895
+ if (hookList.length === 0) return set;
1896
+ return set === defaultSet || set === setConfigSet ? clone(set) : set;
1897
+ };
1898
+ /**
1878
1899
  * _sanitizeElements
1879
1900
  *
1880
1901
  * @protect nodeName
@@ -1885,23 +1906,30 @@ function createDOMPurify() {
1885
1906
  */
1886
1907
  const _sanitizeElements = function _sanitizeElements(currentNode, root) {
1887
1908
  _executeHooks(hooks.beforeSanitizeElements, currentNode, null);
1888
- if (currentNode !== root && getParentNode(currentNode) === null) return true;
1909
+ if (currentNode !== root && getParentNode(currentNode) === null) {
1910
+ if (IN_PLACE) _neutralizeSubtree(currentNode);
1911
+ return true;
1912
+ }
1889
1913
  if (_isClobbered(currentNode)) {
1890
1914
  _forceRemove(currentNode);
1891
1915
  return true;
1892
1916
  }
1893
1917
  const tagName = transformCaseFunc(getNodeName ? getNodeName(currentNode) : currentNode.nodeName);
1918
+ ALLOWED_TAGS = _forkSharedAllowlist(hooks.uponSanitizeElement, ALLOWED_TAGS, DEFAULT_ALLOWED_TAGS, SET_CONFIG_ALLOWED_TAGS);
1894
1919
  _executeHooks(hooks.uponSanitizeElement, currentNode, {
1895
1920
  tagName,
1896
1921
  allowedTags: ALLOWED_TAGS
1897
1922
  });
1898
- if (currentNode !== root && getParentNode(currentNode) === null) return true;
1923
+ if (currentNode !== root && getParentNode(currentNode) === null) {
1924
+ if (IN_PLACE) _neutralizeSubtree(currentNode);
1925
+ return true;
1926
+ }
1899
1927
  if (_isUnsafeNode(currentNode, tagName)) {
1900
1928
  _forceRemove(currentNode);
1901
1929
  return true;
1902
1930
  }
1903
1931
  if (FORBID_TAGS[tagName] || !(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && !ALLOWED_TAGS[tagName]) {
1904
- const removed = _sanitizeDisallowedNode(currentNode, tagName);
1932
+ const removed = _sanitizeDisallowedNode(currentNode, tagName, root);
1905
1933
  if (removed === false) _executeHooks(hooks.afterSanitizeElements, currentNode, null);
1906
1934
  return removed;
1907
1935
  }
@@ -2025,6 +2053,7 @@ function createDOMPurify() {
2025
2053
  _executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
2026
2054
  const attributes = currentNode.attributes;
2027
2055
  if (!attributes || _isClobbered(currentNode)) return;
2056
+ ALLOWED_ATTR = _forkSharedAllowlist(hooks.uponSanitizeAttribute, ALLOWED_ATTR, DEFAULT_ALLOWED_ATTR, SET_CONFIG_ALLOWED_ATTR);
2028
2057
  const hookEvent = {
2029
2058
  attrName: "",
2030
2059
  attrValue: "",
@@ -2215,8 +2244,8 @@ function createDOMPurify() {
2215
2244
  }
2216
2245
  if (body && FORCE_BODY) _forceRemove(body.firstChild);
2217
2246
  const walkRoot = inPlace ? dirty : body;
2218
- const nodeIterator = _createNodeIterator(walkRoot);
2219
2247
  try {
2248
+ const nodeIterator = _createNodeIterator(walkRoot);
2220
2249
  while (currentNode = nodeIterator.nextNode()) {
2221
2250
  _sanitizeElements(currentNode, walkRoot);
2222
2251
  _sanitizeAttributes(currentNode);