@likec4/mcp 1.55.0 → 1.56.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 (159) hide show
  1. package/README.md +2 -2
  2. package/bin/likec4-mcp.mjs +3 -0
  3. package/dist/chunks/libs/@chevrotain/gast.mjs +1 -0
  4. package/dist/chunks/libs/@chevrotain/regexp-to-ast.mjs +9 -0
  5. package/dist/chunks/libs/@chevrotain/utils.mjs +1 -0
  6. package/dist/chunks/libs/@hono/mcp.mjs +45 -0
  7. package/dist/chunks/libs/@hono/node-server.mjs +1 -0
  8. package/dist/chunks/libs/@logtape/logtape.mjs +4 -0
  9. package/dist/chunks/libs/@lume/kiwi.mjs +1 -0
  10. package/dist/chunks/libs/@modelcontextprotocol/sdk.mjs +12 -0
  11. package/dist/chunks/libs/@radix-ui/colors.mjs +1 -0
  12. package/dist/chunks/libs/@ungap/structured-clone.mjs +1 -0
  13. package/dist/chunks/libs/bail.mjs +1 -0
  14. package/dist/chunks/libs/ccount.mjs +1 -0
  15. package/dist/chunks/libs/chevrotain-allstar.mjs +2 -0
  16. package/dist/chunks/libs/chevrotain.mjs +58 -0
  17. package/dist/chunks/libs/chokidar.mjs +3 -0
  18. package/dist/chunks/libs/chroma-js.mjs +15 -0
  19. package/dist/chunks/libs/citty.mjs +5 -0
  20. package/dist/chunks/libs/comma-separated-tokens.mjs +1 -0
  21. package/dist/chunks/libs/decode-named-character-reference.mjs +1 -0
  22. package/dist/chunks/libs/defu.mjs +1 -0
  23. package/dist/chunks/libs/destr.mjs +1 -0
  24. package/dist/chunks/libs/devlop.mjs +1 -0
  25. package/dist/chunks/libs/escape-string-regexp.mjs +1 -0
  26. package/dist/chunks/libs/eventemitter3.mjs +1 -0
  27. package/dist/chunks/libs/extend.mjs +1 -0
  28. package/dist/chunks/libs/fdir.mjs +1 -0
  29. package/dist/chunks/libs/graphology-dag.mjs +1 -0
  30. package/dist/chunks/libs/graphology.mjs +1 -0
  31. package/dist/chunks/libs/hast-util-sanitize.mjs +1 -0
  32. package/dist/chunks/libs/hast-util-to-html.mjs +9 -0
  33. package/dist/chunks/libs/hono.mjs +1 -0
  34. package/dist/chunks/libs/immer.mjs +1 -0
  35. package/dist/chunks/libs/is-error-instance.mjs +1 -0
  36. package/dist/chunks/libs/is-plain-obj.mjs +1 -0
  37. package/dist/chunks/libs/isexe.mjs +1 -0
  38. package/dist/chunks/libs/json5.mjs +14 -0
  39. package/dist/chunks/libs/khroma.mjs +1 -0
  40. package/dist/chunks/libs/langium.mjs +29 -0
  41. package/dist/chunks/libs/longest-streak.mjs +1 -0
  42. package/dist/chunks/libs/markdown-table.mjs +2 -0
  43. package/dist/chunks/libs/mdast-util-find-and-replace.mjs +1 -0
  44. package/dist/chunks/libs/mdast-util-from-markdown.mjs +3 -0
  45. package/dist/chunks/libs/mdast-util-gfm.mjs +15 -0
  46. package/dist/chunks/libs/mdast-util-to-hast.mjs +11 -0
  47. package/dist/chunks/libs/merge-error-cause.mjs +2 -0
  48. package/dist/chunks/libs/micromark-extension-gfm.mjs +1 -0
  49. package/dist/chunks/libs/mnemonist.mjs +1 -0
  50. package/dist/chunks/libs/nano-spawn.mjs +3 -0
  51. package/dist/chunks/libs/natural-compare-lite.mjs +9 -0
  52. package/dist/chunks/libs/ohash.mjs +1 -0
  53. package/dist/chunks/libs/p-limit.mjs +1 -0
  54. package/dist/chunks/libs/p-queue.mjs +1 -0
  55. package/dist/chunks/libs/p-timeout.mjs +1 -0
  56. package/dist/chunks/libs/parse-ms.mjs +1 -0
  57. package/dist/chunks/libs/pathe.mjs +1 -0
  58. package/dist/chunks/libs/pretty-ms.mjs +1 -0
  59. package/dist/chunks/libs/rehype-sanitize.mjs +1 -0
  60. package/dist/chunks/libs/rehype-stringify.mjs +1 -0
  61. package/dist/chunks/libs/remark-gfm.mjs +1 -0
  62. package/dist/chunks/libs/remark-github-blockquote-alert.mjs +3 -0
  63. package/dist/chunks/libs/remark-parse.mjs +1 -0
  64. package/dist/chunks/libs/remark-rehype.mjs +1 -0
  65. package/dist/chunks/libs/remeda.mjs +1 -0
  66. package/dist/chunks/libs/safe-stringify.mjs +1 -0
  67. package/dist/chunks/libs/strip-indent.mjs +1 -0
  68. package/dist/chunks/libs/tinyrainbow.mjs +1 -0
  69. package/dist/chunks/libs/trough.mjs +1 -0
  70. package/dist/chunks/libs/ts-graphviz.mjs +4 -0
  71. package/dist/chunks/libs/ufo.mjs +1 -0
  72. package/dist/chunks/libs/unified.mjs +1 -0
  73. package/dist/chunks/libs/unstorage.mjs +1 -0
  74. package/dist/chunks/libs/which.mjs +1 -0
  75. package/dist/chunks/libs/word-wrap.mjs +12 -0
  76. package/dist/chunks/rolldown-runtime.mjs +1 -0
  77. package/dist/chunks/src.mjs +1228 -0
  78. package/dist/cli.mjs +1 -1
  79. package/dist/index.mjs +1 -1
  80. package/package.json +21 -17
  81. package/dist/THIRD-PARTY-LICENSES.md +0 -2318
  82. package/dist/_chunks/libs/@chevrotain/cst-dts-gen.mjs +0 -30
  83. package/dist/_chunks/libs/@chevrotain/regexp-to-ast.mjs +0 -9
  84. package/dist/_chunks/libs/@chevrotain/utils.mjs +0 -1
  85. package/dist/_chunks/libs/@hono/mcp.mjs +0 -45
  86. package/dist/_chunks/libs/@hono/node-server.mjs +0 -1
  87. package/dist/_chunks/libs/@logtape/logtape.mjs +0 -4
  88. package/dist/_chunks/libs/@lume/kiwi.mjs +0 -1
  89. package/dist/_chunks/libs/@mantine/colors-generator.mjs +0 -15
  90. package/dist/_chunks/libs/@modelcontextprotocol/sdk.mjs +0 -12
  91. package/dist/_chunks/libs/@radix-ui/colors.mjs +0 -1
  92. package/dist/_chunks/libs/@ungap/structured-clone.mjs +0 -1
  93. package/dist/_chunks/libs/bail.mjs +0 -1
  94. package/dist/_chunks/libs/ccount.mjs +0 -1
  95. package/dist/_chunks/libs/chevrotain-allstar.mjs +0 -2
  96. package/dist/_chunks/libs/chevrotain.mjs +0 -58
  97. package/dist/_chunks/libs/chokidar.mjs +0 -3
  98. package/dist/_chunks/libs/citty.mjs +0 -5
  99. package/dist/_chunks/libs/comma-separated-tokens.mjs +0 -1
  100. package/dist/_chunks/libs/decode-named-character-reference.mjs +0 -1
  101. package/dist/_chunks/libs/defu.mjs +0 -1
  102. package/dist/_chunks/libs/destr.mjs +0 -1
  103. package/dist/_chunks/libs/devlop.mjs +0 -1
  104. package/dist/_chunks/libs/escape-string-regexp.mjs +0 -1
  105. package/dist/_chunks/libs/eventemitter3.mjs +0 -1
  106. package/dist/_chunks/libs/extend.mjs +0 -1
  107. package/dist/_chunks/libs/fast-equals.mjs +0 -1
  108. package/dist/_chunks/libs/fdir.mjs +0 -1
  109. package/dist/_chunks/libs/graphology-dag.mjs +0 -1
  110. package/dist/_chunks/libs/graphology.mjs +0 -1
  111. package/dist/_chunks/libs/hast-util-sanitize.mjs +0 -1
  112. package/dist/_chunks/libs/hast-util-to-html.mjs +0 -9
  113. package/dist/_chunks/libs/immer.mjs +0 -1
  114. package/dist/_chunks/libs/is-error-instance.mjs +0 -1
  115. package/dist/_chunks/libs/is-plain-obj.mjs +0 -1
  116. package/dist/_chunks/libs/isexe.mjs +0 -1
  117. package/dist/_chunks/libs/json5.mjs +0 -14
  118. package/dist/_chunks/libs/khroma.mjs +0 -1
  119. package/dist/_chunks/libs/langium.mjs +0 -30
  120. package/dist/_chunks/libs/longest-streak.mjs +0 -1
  121. package/dist/_chunks/libs/markdown-table.mjs +0 -2
  122. package/dist/_chunks/libs/mdast-util-find-and-replace.mjs +0 -1
  123. package/dist/_chunks/libs/mdast-util-from-markdown.mjs +0 -3
  124. package/dist/_chunks/libs/mdast-util-gfm.mjs +0 -15
  125. package/dist/_chunks/libs/mdast-util-to-hast.mjs +0 -11
  126. package/dist/_chunks/libs/merge-error-cause.mjs +0 -2
  127. package/dist/_chunks/libs/micromark-extension-gfm.mjs +0 -1
  128. package/dist/_chunks/libs/mnemonist.mjs +0 -1
  129. package/dist/_chunks/libs/nano-spawn.mjs +0 -3
  130. package/dist/_chunks/libs/natural-compare-lite.mjs +0 -9
  131. package/dist/_chunks/libs/ohash.mjs +0 -1
  132. package/dist/_chunks/libs/p-limit.mjs +0 -1
  133. package/dist/_chunks/libs/p-queue.mjs +0 -1
  134. package/dist/_chunks/libs/p-timeout.mjs +0 -1
  135. package/dist/_chunks/libs/parse-ms.mjs +0 -1
  136. package/dist/_chunks/libs/pathe.mjs +0 -1
  137. package/dist/_chunks/libs/pretty-ms.mjs +0 -1
  138. package/dist/_chunks/libs/rehype-sanitize.mjs +0 -1
  139. package/dist/_chunks/libs/rehype-stringify.mjs +0 -1
  140. package/dist/_chunks/libs/remark-gfm.mjs +0 -1
  141. package/dist/_chunks/libs/remark-github-blockquote-alert.mjs +0 -3
  142. package/dist/_chunks/libs/remark-parse.mjs +0 -1
  143. package/dist/_chunks/libs/remark-rehype.mjs +0 -1
  144. package/dist/_chunks/libs/remeda.mjs +0 -2
  145. package/dist/_chunks/libs/safe-stringify.mjs +0 -1
  146. package/dist/_chunks/libs/strip-indent.mjs +0 -1
  147. package/dist/_chunks/libs/tinyrainbow.mjs +0 -1
  148. package/dist/_chunks/libs/trough.mjs +0 -1
  149. package/dist/_chunks/libs/ts-graphviz.mjs +0 -4
  150. package/dist/_chunks/libs/ufo.mjs +0 -1
  151. package/dist/_chunks/libs/unified.mjs +0 -1
  152. package/dist/_chunks/libs/unstorage.mjs +0 -1
  153. package/dist/_chunks/libs/which.mjs +0 -1
  154. package/dist/_chunks/libs/word-wrap.mjs +0 -12
  155. package/dist/_chunks/rolldown-runtime.mjs +0 -1
  156. package/dist/_chunks/src.mjs +0 -1228
  157. /package/dist/{_chunks → chunks}/libs/character-entities-html4.mjs +0 -0
  158. /package/dist/{_chunks → chunks}/libs/character-entities-legacy.mjs +0 -0
  159. /package/dist/{_chunks → chunks}/libs/character-entities.mjs +0 -0
@@ -1 +0,0 @@
1
- String.fromCharCode;const e=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,t=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,n=/^([/\\]\s*){2,}[^/\\]/,r=/\/$|\/\?|\/#/,i=/^\.?\//;function a(e){return[`./`,`../`].some(t=>e.startsWith(t))}function o(r,i={}){return typeof i==`boolean`&&(i={acceptRelative:i}),i.strict?e.test(r):t.test(r)||(i.acceptRelative?n.test(r):!1)}function s(e=``,t){return t?r.test(e):e.endsWith(`/`)}function c(e=``,t){if(!t)return(s(e)?e.slice(0,-1):e)||`/`;if(!s(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);i!==-1&&(n=e.slice(0,i),r=e.slice(i));let[a,...o]=n.split(`?`);return((a.endsWith(`/`)?a.slice(0,-1):a)||`/`)+(o.length>0?`?${o.join(`?`)}`:``)+r}function l(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(s(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;let[a,...o]=n.split(`?`);return a+`/`+(o.length>0?`?${o.join(`?`)}`:``)+r}function u(e=``){return e.startsWith(`/`)}function d(e=``){return(u(e)?e.slice(1):e)||`/`}function f(e=``){return e.split(`://`).map(e=>e.replace(/\/{2,}/g,`/`)).join(`://`)}function p(e,t){if(m(t))return e;let n=c(t);if(!e.startsWith(n))return e;let r=e[n.length];if(r&&r!==`/`&&r!==`?`)return e;let i=e.slice(n.length);return i[0]===`/`?i:`/`+i}function m(e){return!e||e===`/`}function h(e){return e&&e!==`/`}function g(e,...t){let n=e||``;for(let e of t.filter(e=>h(e)))if(n){let t=e.replace(i,``);n=l(n)+t}else n=e;return n}function _(...e){let t=/\/(?!\/)/,n=e.filter(Boolean),r=[],i=0;for(let e of n)if(!(!e||e===`/`)){for(let[n,a]of e.split(t).entries())if(!(!a||a===`.`)){if(a===`..`){if(r.length===1&&o(r[0]))continue;r.pop(),i--;continue}if(n===1&&r[r.length-1]?.endsWith(`:/`)){r[r.length-1]+=`/`+a;continue}r.push(a),i++}}let a=r.join(`/`);return i>=0?n[0]?.startsWith(`/`)&&!a.startsWith(`/`)?a=`/`+a:n[0]?.startsWith(`./`)&&!a.startsWith(`./`)&&(a=`./`+a):a=`../`.repeat(-1*i)+a,n[n.length-1]?.endsWith(`/`)&&!a.endsWith(`/`)&&(a+=`/`),a}function v(e){return y(e,``)}function y(e,n){let r=e.match(t);return r||=e.match(/^\/{2,}/),r?n+e.slice(r[0].length):n+e}export{_ as a,p as c,c as d,a as i,d as l,u as n,g as o,o as r,l as s,f as t,v as u};
@@ -1 +0,0 @@
1
- import{s as e}from"../rolldown-runtime.mjs";import"./devlop.mjs";import{n as t}from"./mdast-util-from-markdown.mjs";import{t as n}from"./bail.mjs";import{t as r}from"./extend.mjs";import{t as i}from"./is-plain-obj.mjs";import{t as a}from"./trough.mjs";import o from"node:path";import s from"node:process";import{fileURLToPath as c}from"node:url";var l=class extends Error{constructor(e,n,r){super(),typeof n==`string`&&(r=n,n=void 0);let i=``,a={},o=!1;if(n&&(a=`line`in n&&`column`in n||`start`in n&&`end`in n?{place:n}:`type`in n?{ancestors:[n],place:n.position}:{...n}),typeof e==`string`?i=e:!a.cause&&e&&(o=!0,i=e.message,a.cause=e),!a.ruleId&&!a.source&&typeof r==`string`){let e=r.indexOf(`:`);e===-1?a.ruleId=r:(a.source=r.slice(0,e),a.ruleId=r.slice(e+1))}if(!a.place&&a.ancestors&&a.ancestors){let e=a.ancestors[a.ancestors.length-1];e&&(a.place=e.position)}let s=a.place&&`start`in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=t(a.place)||`1:1`,this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack==`string`?a.cause.stack:``,this.actual,this.expected,this.note,this.url}};l.prototype.file=``,l.prototype.name=``,l.prototype.reason=``,l.prototype.message=``,l.prototype.stack=``,l.prototype.column=void 0,l.prototype.line=void 0,l.prototype.ancestors=void 0,l.prototype.cause=void 0,l.prototype.fatal=void 0,l.prototype.place=void 0,l.prototype.ruleId=void 0,l.prototype.source=void 0;function u(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}const d=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`];var f=class{constructor(e){let t;t=e?u(e)?{path:e}:typeof e==`string`||g(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:s.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<d.length;){let e=d[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)d.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?o.basename(this.path):void 0}set basename(e){m(e,`basename`),p(e,`basename`),this.path=o.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?o.dirname(this.path):void 0}set dirname(e){h(this.basename,`dirname`),this.path=o.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?o.extname(this.path):void 0}set extname(e){if(p(e,`extname`),h(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=o.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){u(e)&&(e=c(e)),m(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?o.basename(this.path,this.extname):void 0}set stem(e){m(e,`stem`),p(e,`stem`),this.path=o.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new l(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function p(e,t){if(e&&e.includes(o.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+o.sep+"`")}function m(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function h(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function g(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}const _=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r});var v=e(r(),1);const y={}.hasOwnProperty,b=new class e extends _{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=a()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,v.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(C(`data`,this.frozen),this.namespace[e]=t,this):y.call(this.namespace,e)&&this.namespace[e]||void 0:e?(C(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=E(e),n=this.parser||this.Parser;return x(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),x(`process`,this.parser||this.Parser),S(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=E(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);O(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,r;return this.freeze(),x(`processSync`,this.parser||this.Parser),S(`processSync`,this.compiler||this.Compiler),this.process(e,i),T(`processSync`,`process`,t),r;function i(e,i){t=!0,n(e),r=i}}run(e,t,n){w(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=E(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let r=!1,i;return this.run(e,t,a),T(`runSync`,`run`,r),i;function a(e,t){n(e),i=t,r=!0}}stringify(e,t){this.freeze();let n=E(t),r=this.compiler||this.Compiler;return S(`stringify`,r),w(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(C(`use`,this.frozen),e!=null)if(typeof e==`function`)c(e,t);else if(typeof e==`object`)Array.isArray(e)?s(e):o(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function a(e){if(typeof e==`function`)c(e,[]);else if(typeof e==`object`)if(Array.isArray(e)){let[t,...n]=e;c(t,n)}else o(e);else throw TypeError("Expected usable value, not `"+e+"`")}function o(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(e.plugins),e.settings&&(r.settings=(0,v.default)(!0,r.settings,e.settings))}function s(e){let t=-1;if(e!=null)if(Array.isArray(e))for(;++t<e.length;){let n=e[t];a(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function c(e,t){let r=-1,a=-1;for(;++r<n.length;)if(n[r][0]===e){a=r;break}if(a===-1)n.push([e,...t]);else if(t.length>0){let[r,...o]=t,s=n[a][1];i(s)&&i(r)&&(r=(0,v.default)(!0,s,r)),n[a]=[e,r,...o]}}}}().freeze();function x(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function S(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function C(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function w(e){if(!i(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function T(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function E(e){return D(e)?e:new f(e)}function D(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function O(e){return typeof e==`string`||k(e)}function k(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}export{b as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./destr.mjs";function t(e){return!e||typeof e.then!=`function`?Promise.resolve(e):e}function n(e,...n){try{return t(e(...n))}catch(e){return Promise.reject(e)}}function r(e){let t=typeof e;return e===null||t!==`object`&&t!==`function`}function i(e){let t=Object.getPrototypeOf(e);return!t||t.isPrototypeOf(Object)}function a(e){if(r(e))return String(e);if(i(e)||Array.isArray(e))return JSON.stringify(e);if(typeof e.toJSON==`function`)return a(e.toJSON());throw Error(`[unstorage] Cannot stringify value!`)}const o=`base64:`;function s(e){return typeof e==`string`?e:o+u(e)}function c(e){return typeof e!=`string`||!e.startsWith(o)?e:l(e.slice(7))}function l(e){return globalThis.Buffer?Buffer.from(e,`base64`):Uint8Array.from(globalThis.atob(e),e=>e.codePointAt(0))}function u(e){return globalThis.Buffer?Buffer.from(e).toString(`base64`):globalThis.btoa(String.fromCodePoint(...e))}const d=[`has`,`hasItem`,`get`,`getItem`,`getItemRaw`,`set`,`setItem`,`setItemRaw`,`del`,`remove`,`removeItem`,`getMeta`,`setMeta`,`removeMeta`,`getKeys`,`clear`,`mount`,`unmount`];function f(e,t){if(t=h(t),!t)return e;let n={...e};for(let r of d)n[r]=(n=``,...i)=>e[r](t+n,...i);return n.getKeys=(n=``,...r)=>e.getKeys(t+n,...r).then(e=>e.map(e=>e.slice(t.length))),n.keys=n.getKeys,n.getItems=async(n,r)=>{let i=n.map(e=>typeof e==`string`?t+e:{...e,key:t+e.key});return(await e.getItems(i,r)).map(e=>({key:e.key.slice(t.length),value:e.value}))},n.setItems=async(n,r)=>{let i=n.map(e=>({key:t+e.key,value:e.value,options:e.options}));return e.setItems(i,r)},n}function p(e){return e&&e.split(`?`)[0]?.replace(/[/\\]/g,`:`).replace(/:+/g,`:`).replace(/^:|:$/g,``)||``}function m(...e){return p(e.join(`:`))}function h(e){return e=p(e),e?e+`:`:``}function g(e,t){if(t===void 0)return!0;let n=0,r=e.indexOf(`:`);for(;r>-1;)n++,r=e.indexOf(`:`,r+1);return n<=t}function _(e,t){return t?e.startsWith(t)&&e[e.length-1]!==`$`:e[e.length-1]!==`$`}function v(e){return e}const y=v(()=>{let e=new Map;return{name:`memory`,getInstance:()=>e,hasItem(t){return e.has(t)},getItem(t){return e.get(t)??null},getItemRaw(t){return e.get(t)??null},setItem(t,n){e.set(t,n)},setItemRaw(t,n){e.set(t,n)},removeItem(t){e.delete(t)},getKeys(){return[...e.keys()]},clear(){e.clear()},dispose(){e.clear()}}});function b(t={}){let r={mounts:{"":t.driver||y()},mountpoints:[``],watching:!1,watchListeners:[],unwatch:{}},i=e=>{for(let t of r.mountpoints)if(e.startsWith(t))return{base:t,relativeKey:e.slice(t.length),driver:r.mounts[t]};return{base:``,relativeKey:e,driver:r.mounts[``]}},o=(e,t)=>r.mountpoints.filter(n=>n.startsWith(e)||t&&e.startsWith(n)).map(t=>({relativeBase:e.length>t.length?e.slice(t.length):void 0,mountpoint:t,driver:r.mounts[t]})),l=(e,t)=>{if(r.watching){t=p(t);for(let n of r.watchListeners)n(e,t)}},u=async()=>{if(!r.watching){r.watching=!0;for(let e in r.mounts)r.unwatch[e]=await x(r.mounts[e],l,e)}},d=async()=>{if(r.watching){for(let e in r.unwatch)await r.unwatch[e]();r.unwatch={},r.watching=!1}},f=(e,t,n)=>{let r=new Map,a=e=>{let t=r.get(e.base);return t||(t={driver:e.driver,base:e.base,items:[]},r.set(e.base,t)),t};for(let n of e){let e=typeof n==`string`,r=p(e?n:n.key),o=e?void 0:n.value,s=e||!n.options?t:{...t,...n.options},c=i(r);a(c).items.push({key:r,value:o,relativeKey:c.relativeKey,options:s})}return Promise.all([...r.values()].map(e=>n(e))).then(e=>e.flat())},v={hasItem(e,t={}){e=p(e);let{relativeKey:r,driver:a}=i(e);return n(a.hasItem,r,t)},getItem(t,r={}){t=p(t);let{relativeKey:a,driver:o}=i(t);return n(o.getItem,a,r).then(t=>e(t))},getItems(t,r={}){return f(t,r,t=>t.driver.getItems?n(t.driver.getItems,t.items.map(e=>({key:e.relativeKey,options:e.options})),r).then(n=>n.map(n=>({key:m(t.base,n.key),value:e(n.value)}))):Promise.all(t.items.map(r=>n(t.driver.getItem,r.relativeKey,r.options).then(t=>({key:r.key,value:e(t)})))))},getItemRaw(e,t={}){e=p(e);let{relativeKey:r,driver:a}=i(e);return a.getItemRaw?n(a.getItemRaw,r,t):n(a.getItem,r,t).then(e=>c(e))},async setItem(e,t,r={}){if(t===void 0)return v.removeItem(e);e=p(e);let{relativeKey:o,driver:s}=i(e);s.setItem&&(await n(s.setItem,o,a(t),r),s.watch||l(`update`,e))},async setItems(e,t){await f(e,t,async e=>{if(e.driver.setItems)return n(e.driver.setItems,e.items.map(e=>({key:e.relativeKey,value:a(e.value),options:e.options})),t);e.driver.setItem&&await Promise.all(e.items.map(t=>n(e.driver.setItem,t.relativeKey,a(t.value),t.options)))})},async setItemRaw(e,t,r={}){if(t===void 0)return v.removeItem(e,r);e=p(e);let{relativeKey:a,driver:o}=i(e);if(o.setItemRaw)await n(o.setItemRaw,a,t,r);else if(o.setItem)await n(o.setItem,a,s(t),r);else return;o.watch||l(`update`,e)},async removeItem(e,t={}){typeof t==`boolean`&&(t={removeMeta:t}),e=p(e);let{relativeKey:r,driver:a}=i(e);a.removeItem&&(await n(a.removeItem,r,t),(t.removeMeta||t.removeMata)&&await n(a.removeItem,r+`$`,t),a.watch||l(`remove`,e))},async getMeta(t,r={}){typeof r==`boolean`&&(r={nativeOnly:r}),t=p(t);let{relativeKey:a,driver:o}=i(t),s=Object.create(null);if(o.getMeta&&Object.assign(s,await n(o.getMeta,a,r)),!r.nativeOnly){let t=await n(o.getItem,a+`$`,r).then(t=>e(t));t&&typeof t==`object`&&(typeof t.atime==`string`&&(t.atime=new Date(t.atime)),typeof t.mtime==`string`&&(t.mtime=new Date(t.mtime)),Object.assign(s,t))}return s},setMeta(e,t,n={}){return this.setItem(e+`$`,t,n)},removeMeta(e,t={}){return this.removeItem(e+`$`,t)},async getKeys(e,t={}){e=h(e);let r=o(e,!0),i=[],a=[],s=!0;for(let e of r){e.driver.flags?.maxDepth||(s=!1);let r=await n(e.driver.getKeys,e.relativeBase,t);for(let t of r){let n=e.mountpoint+p(t);i.some(e=>n.startsWith(e))||a.push(n)}i=[e.mountpoint,...i.filter(t=>!t.startsWith(e.mountpoint))]}let c=t.maxDepth!==void 0&&!s;return a.filter(n=>(!c||g(n,t.maxDepth))&&_(n,e))},async clear(e,t={}){e=h(e),await Promise.all(o(e,!1).map(async e=>{if(e.driver.clear)return n(e.driver.clear,e.relativeBase,t);if(e.driver.removeItem){let n=await e.driver.getKeys(e.relativeBase||``,t);return Promise.all(n.map(n=>e.driver.removeItem(n,t)))}}))},async dispose(){await Promise.all(Object.values(r.mounts).map(e=>S(e)))},async watch(e){return await u(),r.watchListeners.push(e),async()=>{r.watchListeners=r.watchListeners.filter(t=>t!==e),r.watchListeners.length===0&&await d()}},async unwatch(){r.watchListeners=[],await d()},mount(e,t){if(e=h(e),e&&r.mounts[e])throw Error(`already mounted at ${e}`);return e&&(r.mountpoints.push(e),r.mountpoints.sort((e,t)=>t.length-e.length)),r.mounts[e]=t,r.watching&&Promise.resolve(x(t,l,e)).then(t=>{r.unwatch[e]=t}).catch(console.error),v},async unmount(e,t=!0){e=h(e),!(!e||!r.mounts[e])&&(r.watching&&e in r.unwatch&&(r.unwatch[e]?.(),delete r.unwatch[e]),t&&await S(r.mounts[e]),r.mountpoints=r.mountpoints.filter(t=>t!==e),delete r.mounts[e])},getMount(e=``){e=p(e)+`:`;let t=i(e);return{driver:t.driver,base:t.base}},getMounts(e=``,t={}){return e=p(e),o(e,t.parents).map(e=>({driver:e.driver,base:e.mountpoint}))},keys:(e,t={})=>v.getKeys(e,t),get:(e,t={})=>v.getItem(e,t),set:(e,t,n={})=>v.setItem(e,t,n),has:(e,t={})=>v.hasItem(e,t),del:(e,t={})=>v.removeItem(e,t),remove:(e,t={})=>v.removeItem(e,t)};return v}function x(e,t,n){return e.watch?e.watch((e,r)=>t(e,n+r)):()=>{}}async function S(e){typeof e.dispose==`function`&&await n(e.dispose)}export{f as n,b as t};
@@ -1 +0,0 @@
1
- import{a as e,o as t,t as n}from"../rolldown-runtime.mjs";import{n as r,t as i}from"./isexe.mjs";var a=n(((n,a)=>{let{isexe:o,sync:s}=(i(),t(r)),{join:c,delimiter:l,sep:u,posix:d}=e(`path`),f=process.platform===`win32`,p=new RegExp(`[${d.sep}${u===d.sep?``:u}]`.replace(/(\\)/g,`\\$1`)),m=RegExp(`^\\.${p.source}`),h=e=>Object.assign(Error(`not found: ${e}`),{code:`ENOENT`}),g=(e,{path:t=process.env.PATH,pathExt:n=process.env.PATHEXT,delimiter:r=l})=>{let i=e.match(p)?[``]:[...f?[process.cwd()]:[],...(t||``).split(r)];if(f){let t=n||[`.EXE`,`.CMD`,`.BAT`,`.COM`].join(r),a=t.split(r).flatMap(e=>[e,e.toLowerCase()]);return e.includes(`.`)&&a[0]!==``&&a.unshift(``),{pathEnv:i,pathExt:a,pathExtExe:t}}return{pathEnv:i,pathExt:[``]}},_=(e,t)=>{let n=/^".*"$/.test(e)?e.slice(1,-1):e;return(!n&&m.test(t)?t.slice(0,2):``)+c(n,t)},v=async(e,t={})=>{let{pathEnv:n,pathExt:r,pathExtExe:i}=g(e,t),a=[];for(let s of n){let n=_(s,e);for(let e of r){let r=n+e;if(await o(r,{pathExt:i,ignoreErrors:!0})){if(!t.all)return r;a.push(r)}}}if(t.all&&a.length)return a;if(t.nothrow)return null;throw h(e)};a.exports=v,v.sync=(e,t={})=>{let{pathEnv:n,pathExt:r,pathExtExe:i}=g(e,t),a=[];for(let o of n){let n=_(o,e);for(let e of r){let r=n+e;if(s(r,{pathExt:i,ignoreErrors:!0})){if(!t.all)return r;a.push(r)}}}if(t.all&&a.length)return a;if(t.nothrow)return null;throw h(e)}}));export{a as t};
@@ -1,12 +0,0 @@
1
- import{t as e}from"../rolldown-runtime.mjs";var t=e(((e,t)=>{
2
- /*!
3
- * word-wrap <https://github.com/jonschlinkert/word-wrap>
4
- *
5
- * Copyright (c) 2014-2023, Jon Schlinkert.
6
- * Released under the MIT License.
7
- */
8
- function n(e){let t=e.length-1,n=e[t];for(;n===` `||n===` `;)n=e[--t];return e.substring(0,t+1)}function r(e){return e.split(`
9
- `).map(e=>n(e)).join(`
10
- `)}t.exports=function(e,t){if(t||={},e==null)return e;var n=t.width||50,a=typeof t.indent==`string`?t.indent:` `,o=t.newline||`
11
- `+a,s=typeof t.escape==`function`?t.escape:i,c=`.{1,`+n+`}`;t.cut!==!0&&(c+=`([\\s​]+|$)|[^\\s​]+?([\\s​]+|$)`);var l=new RegExp(c,`g`),u=a+(e.match(l)||[]).map(function(e){return e.slice(-1)===`
12
- `&&(e=e.slice(0,e.length-1)),s(e)}).join(o);return t.trim===!0&&(u=r(u)),u};function i(e){return e}}));export{t};
@@ -1 +0,0 @@
1
- import{createRequire as e}from"node:module";var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(e&&(t=e(e=0)),t),c=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),l=(e,t)=>{let r={};for(var i in e)n(r,i,{get:e[i],enumerable:!0});return t||n(r,Symbol.toStringTag,{value:`Module`}),r},u=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},d=(e,t,n)=>(u(e,t,`default`),n&&u(n,t,`default`)),f=(e,r,i)=>(i=e==null?{}:t(a(e)),u(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e)),p=e=>o.call(e,`module.exports`)?e[`module.exports`]:u(n({},`__esModule`,{value:!0}),e),m=e(import.meta.url);export{m as a,d as i,s as n,p as o,l as r,f as s,c as t};