@wirecat/drive-cli 0.62.0 → 0.64.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 (150) hide show
  1. package/README.md +2 -1
  2. package/dist/bin/drive.js +2 -2
  3. package/dist/bundle/{all-profiles-CKD2DWUK.js → all-profiles-BPPT2AK5.js} +13 -14
  4. package/dist/bundle/{anthropic-E3T4USLA.js → anthropic-JW6GOJUD.js} +13 -11
  5. package/dist/bundle/{app-server-JB2AEWWL.js → app-server-KAQIOJMZ.js} +53 -54
  6. package/dist/bundle/{bun-CC44AAND.js → bun-UT7GNTPV.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-AUMFKYVR.js → bun-sqlite-2OIVV3LS.js} +8 -8
  8. package/dist/bundle/{chunk-EOOGWUTP.js → chunk-2FEZ24DK.js} +10 -10
  9. package/dist/bundle/{chunk-N7OZPKU7.js → chunk-2W464HAE.js} +4 -4
  10. package/dist/bundle/{chunk-UGXN5D7U.js → chunk-34BIDKF4.js} +332 -430
  11. package/dist/bundle/{chunk-WZKEU7WR.js → chunk-36GPBPWM.js} +1 -1
  12. package/dist/bundle/{chunk-LQKD257P.js → chunk-3J5KAFNA.js} +2255 -1125
  13. package/dist/bundle/{chunk-7W5HYGVW.js → chunk-3NULZGQU.js} +2 -2
  14. package/dist/bundle/{chunk-XFRRKZHQ.js → chunk-46CD64J2.js} +155 -36
  15. package/dist/bundle/{chunk-DWJHL6DV.js → chunk-4CNTID2X.js} +4 -4
  16. package/dist/bundle/{chunk-LWE4JGRN.js → chunk-4YRENUB5.js} +2 -2
  17. package/dist/bundle/{chunk-SW4I5BR7.js → chunk-5HSRQ53R.js} +2 -2
  18. package/dist/bundle/{chunk-IR4SQLBR.js → chunk-5OFA5EXE.js} +2 -2
  19. package/dist/bundle/{chunk-R347FPYU.js → chunk-5ZBR55US.js} +1 -1
  20. package/dist/bundle/{chunk-Q2LRPOKL.js → chunk-66AF4FBW.js} +4 -4
  21. package/dist/bundle/{chunk-RWSXVCSG.js → chunk-6B37XO6B.js} +23 -5
  22. package/dist/bundle/{chunk-ZMOUUOT2.js → chunk-6G53ZFUT.js} +1 -1
  23. package/dist/bundle/{chunk-HCNQT3QE.js → chunk-AHB4OJCI.js} +1951 -580
  24. package/dist/bundle/{chunk-JK3U25QZ.js → chunk-B67BLRAI.js} +59 -1
  25. package/dist/bundle/{chunk-7ZXIWZQ6.js → chunk-B7XBIOMR.js} +12 -12
  26. package/dist/bundle/{chunk-FEZF3TII.js → chunk-BDYWZ7JE.js} +50 -6
  27. package/dist/bundle/{chunk-SVPCHFKI.js → chunk-BEUAICUD.js} +2 -2
  28. package/dist/bundle/{chunk-TDX4GZFO.js → chunk-BEZJA44H.js} +7 -7
  29. package/dist/bundle/{chunk-RIDQNVZM.js → chunk-BZ2ZKILM.js} +3 -3
  30. package/dist/bundle/{chunk-FUITWY7O.js → chunk-C7WBNOYW.js} +1 -1
  31. package/dist/bundle/{chunk-CJHY5YIF.js → chunk-CPMRM3GQ.js} +489 -210
  32. package/dist/bundle/{chunk-FNWIJ6EJ.js → chunk-DD7EFG6B.js} +2 -2
  33. package/dist/bundle/{chunk-W4RTIL7S.js → chunk-E2LBCCTG.js} +5 -5
  34. package/dist/bundle/{chunk-O2XOX4HB.js → chunk-EC2XGDKJ.js} +50 -34
  35. package/dist/bundle/{chunk-4OSSOWDM.js → chunk-EJ4PNHPP.js} +1 -1
  36. package/dist/bundle/{chunk-XS5POQST.js → chunk-EQEGJVO2.js} +1 -1
  37. package/dist/bundle/{chunk-U2BFYSQV.js → chunk-EWGVDFPT.js} +8983 -3343
  38. package/dist/bundle/{chunk-OBH5BA62.js → chunk-EZ6O3ST3.js} +3 -3
  39. package/dist/bundle/{chunk-HG6CAYJH.js → chunk-F2VDAG32.js} +3 -3
  40. package/dist/bundle/{chunk-RPMKG63Z.js → chunk-G3NULXOM.js} +4 -4
  41. package/dist/bundle/{chunk-OD4U7GUY.js → chunk-G4KEKKDE.js} +20 -20
  42. package/dist/bundle/{chunk-OTROVC4E.js → chunk-GSMYXGFR.js} +1 -1
  43. package/dist/bundle/{chunk-XZUS7XRO.js → chunk-GW3U6OLD.js} +1 -1
  44. package/dist/bundle/{chunk-6EY46GAN.js → chunk-HW4UPST2.js} +2 -2
  45. package/dist/bundle/{chunk-2HF2MRXI.js → chunk-IDAK4DDK.js} +1 -1
  46. package/dist/bundle/{chunk-27YUUGXQ.js → chunk-IK6KH3RE.js} +1 -1
  47. package/dist/bundle/{chunk-QTI6IVHZ.js → chunk-IX7NQJLY.js} +8 -8
  48. package/dist/bundle/{chunk-YMWENGKH.js → chunk-J62DI53V.js} +1 -1
  49. package/dist/bundle/{chunk-AH5C3D3D.js → chunk-JRXFW7HE.js} +5 -5
  50. package/dist/bundle/{chunk-KLFSRKHB.js → chunk-K6BSB53R.js} +1 -1
  51. package/dist/bundle/{chunk-ONP2IBHY.js → chunk-KE4XPPRQ.js} +98 -81
  52. package/dist/bundle/{chunk-UQLWMGSD.js → chunk-KG2XKEHL.js} +5 -5
  53. package/dist/bundle/{chunk-T5NWWXS2.js → chunk-KIN6PDFE.js} +24 -2
  54. package/dist/bundle/{chunk-QH7DOVO3.js → chunk-KVW4XNKB.js} +45 -29
  55. package/dist/bundle/{chunk-PEQA6LA5.js → chunk-LOMW6F2E.js} +230 -236
  56. package/dist/bundle/{chunk-4SIZEJ3M.js → chunk-M73NNJ3X.js} +2 -2
  57. package/dist/bundle/{chunk-QCKZ3GAA.js → chunk-N622LRPM.js} +4 -4
  58. package/dist/bundle/{chunk-YPFUYQDP.js → chunk-O2QO5UZC.js} +13 -13
  59. package/dist/bundle/{chunk-QCX6XZLA.js → chunk-OEVHZOHC.js} +12 -12
  60. package/dist/bundle/{chunk-VAYB52HF.js → chunk-OH3K2E7X.js} +402 -184
  61. package/dist/bundle/{chunk-YXYTY4GF.js → chunk-P7DEGRZA.js} +21 -21
  62. package/dist/bundle/{chunk-YUWPNG7B.js → chunk-PBMSBCVB.js} +1 -1
  63. package/dist/bundle/{chunk-67ZQCWBV.js → chunk-QEAD2LF4.js} +3 -3
  64. package/dist/bundle/{chunk-JN5TVEEL.js → chunk-QXCKJUZY.js} +124 -22
  65. package/dist/bundle/{chunk-T7X53FCJ.js → chunk-SIOIMO62.js} +37 -37
  66. package/dist/bundle/{chunk-O7ALBI2I.js → chunk-TNV2FXVK.js} +5 -5
  67. package/dist/bundle/chunk-UD55VB2N.js +87 -0
  68. package/dist/bundle/{chunk-L7K2MOIC.js → chunk-UIEA6FIV.js} +22 -22
  69. package/dist/bundle/{chunk-EW7PKB4M.js → chunk-UJR272CP.js} +29 -29
  70. package/dist/bundle/{chunk-YALI4C7C.js → chunk-USLZE36C.js} +6 -6
  71. package/dist/bundle/{chunk-YOJDGAPT.js → chunk-VIJ6ACYB.js} +8 -8
  72. package/dist/bundle/{chunk-MN4VXU3M.js → chunk-VPLFD5RJ.js} +4 -4
  73. package/dist/bundle/{chunk-VQDD64A4.js → chunk-VT2UFYPJ.js} +8 -10
  74. package/dist/bundle/{chunk-CZ2GJHLL.js → chunk-WWCYTMAV.js} +2 -2
  75. package/dist/bundle/{chunk-DJOAMGF4.js → chunk-XPXKD63J.js} +13 -13
  76. package/dist/bundle/{chunk-E43ENLJJ.js → chunk-ZF6GUZCE.js} +1 -1
  77. package/dist/bundle/{chunk-XEW2EN6F.js → chunk-ZRZ4HTCK.js} +60 -34
  78. package/dist/bundle/{chunk-2KN35F32.js → chunk-ZSZJLJIA.js} +10 -10
  79. package/dist/bundle/command-contract-H5OYJOPF.js +38 -0
  80. package/dist/bundle/{decode-WIIX3Y2X.js → decode-HTOQ6S3V.js} +8 -8
  81. package/dist/bundle/{dispatch-GEFIXA6X.js → dispatch-SH5SP6LA.js} +11 -11
  82. package/dist/bundle/drive.js +11 -11
  83. package/dist/bundle/{echarts-OYINM4C4.js → echarts-KFHB6SLX.js} +2 -2
  84. package/dist/bundle/{embed-DWZIYMBX.js → embed-YATFB2PN.js} +9 -9
  85. package/dist/bundle/{embedder-ILWH7ZRM.js → embedder-MQPDFGTJ.js} +12 -12
  86. package/dist/bundle/entry-YZBB647C.js +22 -0
  87. package/dist/bundle/{failure-GV77W3CD.js → failure-4FQL4XJI.js} +4 -4
  88. package/dist/bundle/first-run-5JT3UQZB.js +30 -0
  89. package/dist/bundle/first-screen-BEMDEWO7.js +36 -0
  90. package/dist/bundle/{google-KLZSUAVY.js → google-DVADVICN.js} +13 -13
  91. package/dist/bundle/{google-api-HZQ5R4ZO.js → google-api-QMFGCXBM.js} +55 -57
  92. package/dist/bundle/grants-WKB2E4TA.js +103 -0
  93. package/dist/bundle/{identity-J2DON4IO.js → identity-FYVDK4M2.js} +6 -6
  94. package/dist/bundle/{instructions-HGOJ23AJ.js → instructions-D3GF3B7M.js} +1 -1
  95. package/dist/bundle/{login-BD2TS4GY.js → login-COFZ2IWP.js} +61 -63
  96. package/dist/bundle/{mcp-GWDA3HOA.js → mcp-RKJG22KM.js} +2 -2
  97. package/dist/bundle/{node-CPKTDPH7.js → node-OFICOKX3.js} +2 -2
  98. package/dist/bundle/{node-sqlite-IXDCRLSX.js → node-sqlite-DNBTDOXD.js} +9 -9
  99. package/dist/bundle/oauth-PDQHWFBF.js +22 -0
  100. package/dist/bundle/{open-O7P3ZV3Y.js → open-PTPR2YWX.js} +8 -8
  101. package/dist/bundle/{openai-RCFQKCXC.js → openai-2KV5LUW4.js} +17 -17
  102. package/dist/bundle/{process-KXDRJO22.js → process-EAW6NST2.js} +1 -1
  103. package/dist/bundle/{program-UCHFC7JQ.js → program-6UV5Q5YN.js} +310 -279
  104. package/dist/bundle/prompt-634TPMJK.js +19 -0
  105. package/dist/bundle/{reasons-57J2D77K.js → reasons-DDWCEYSQ.js} +5 -5
  106. package/dist/bundle/{recognize-MRCYGP2J.js → recognize-SJO6QUDW.js} +7 -7
  107. package/dist/bundle/{remote-L3L4PHKF.js → remote-6JXZITKF.js} +10 -10
  108. package/dist/bundle/{rerank-PSOE6XFT.js → rerank-MD5VOPQ6.js} +10 -10
  109. package/dist/bundle/{serve-72OGS3BF.js → serve-LZTROA2M.js} +12 -12
  110. package/dist/bundle/server-GT7X666D.js +69 -0
  111. package/dist/bundle/{server-SCXKYHBO.js → server-NSA3UAFY.js} +43 -44
  112. package/dist/bundle/{services-YAFTELBI.js → services-F5A6XQCV.js} +69 -34
  113. package/dist/bundle/{sqlite-runtime-DLK4SU33.js → sqlite-runtime-7YF6REKS.js} +9 -9
  114. package/dist/bundle/{start-AFFA3LKM.js → start-MUFLE6FA.js} +30 -8
  115. package/dist/bundle/{state-T5VNAJSZ.js → state-UC54F3YZ.js} +9 -9
  116. package/dist/bundle/{store-4OFK7PKQ.js → store-F5FJGWMR.js} +58 -20
  117. package/dist/bundle/{store-R6MSY2IM.js → store-J53YNAH6.js} +43 -18
  118. package/dist/bundle/store-maintenance-command-GJVXLBAB.js +58 -0
  119. package/dist/bundle/tokens-H2EJKGA5.js +101 -0
  120. package/dist/commands/account.d.ts +4 -0
  121. package/dist/commands/account.d.ts.map +1 -0
  122. package/dist/commands/account.js +33 -0
  123. package/dist/commands/account.js.map +1 -0
  124. package/dist/commands/config.d.ts.map +1 -1
  125. package/dist/commands/config.js +5 -1
  126. package/dist/commands/config.js.map +1 -1
  127. package/dist/profile-lock.d.ts +1 -0
  128. package/dist/profile-lock.d.ts.map +1 -1
  129. package/dist/profile-lock.js +1 -0
  130. package/dist/profile-lock.js.map +1 -1
  131. package/dist/program.d.ts.map +1 -1
  132. package/dist/program.js +2 -0
  133. package/dist/program.js.map +1 -1
  134. package/dist/version.d.ts +1 -1
  135. package/dist/version.js +1 -1
  136. package/package.json +3 -3
  137. package/dist/bundle/chunk-AQVUEZEP.js +0 -22
  138. package/dist/bundle/chunk-DRZZBN3V.js +0 -33
  139. package/dist/bundle/chunk-UOXOLGNG.js +0 -42
  140. package/dist/bundle/command-contract-OB5BRABN.js +0 -39
  141. package/dist/bundle/entry-V5V3TOTY.js +0 -22
  142. package/dist/bundle/first-run-V3VVLQF4.js +0 -30
  143. package/dist/bundle/first-screen-Y3RIN7FU.js +0 -37
  144. package/dist/bundle/grants-L7XLHLUT.js +0 -105
  145. package/dist/bundle/oauth-HOGY4YBB.js +0 -22
  146. package/dist/bundle/prompt-EVPPBN5W.js +0 -17
  147. package/dist/bundle/server-C5TGNFXW.js +0 -70
  148. package/dist/bundle/store-maintenance-command-QDMCXGV6.js +0 -60
  149. package/dist/bundle/tokens-HIG36RNS.js +0 -103
  150. /package/dist/bundle/{chunk-ZQ3GWKDQ.js → chunk-SW6C6WH5.js} +0 -0
@@ -8,7 +8,7 @@ import {
8
8
  MAX_FILE_BYTES,
9
9
  MAX_TEXT_CHARS,
10
10
  attachmentMaxBytes
11
- } from "./chunk-UOXOLGNG.js";
11
+ } from "./chunk-UD55VB2N.js";
12
12
  import {
13
13
  importFrom,
14
14
  resolveFrom
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  CliError,
18
18
  isCliError
19
- } from "./chunk-4OSSOWDM.js";
19
+ } from "./chunk-EJ4PNHPP.js";
20
20
  import {
21
21
  __commonJS,
22
22
  __name,
@@ -337,7 +337,7 @@ var require_errors = __commonJS({
337
337
  return typeof value === "string" && value.substring(value.length - DOMExceptionName.Error.length) === DOMExceptionName.Error;
338
338
  }
339
339
  __name(endsWithError, "endsWithError");
340
- function DOMException(messageOrCode, nameOrMessage) {
340
+ function DOMException2(messageOrCode, nameOrMessage) {
341
341
  if (isValidDomExceptionCode(messageOrCode)) {
342
342
  this.name = DOMExceptionNames[messageOrCode];
343
343
  this.message = nameOrMessage || "";
@@ -345,11 +345,11 @@ var require_errors = __commonJS({
345
345
  this.message = messageOrCode;
346
346
  this.name = endsWithError(nameOrMessage) ? nameOrMessage : DOMExceptionName.Error;
347
347
  }
348
- if (Error.captureStackTrace) Error.captureStackTrace(this, DOMException);
348
+ if (Error.captureStackTrace) Error.captureStackTrace(this, DOMException2);
349
349
  }
350
- __name(DOMException, "DOMException");
351
- extendError(DOMException, true);
352
- Object.defineProperties(DOMException.prototype, {
350
+ __name(DOMException2, "DOMException");
351
+ extendError(DOMException2, true);
352
+ Object.defineProperties(DOMException2.prototype, {
353
353
  code: {
354
354
  enumerable: true,
355
355
  get: /* @__PURE__ */ __name(function() {
@@ -389,7 +389,7 @@ var require_errors = __commonJS({
389
389
  var entries = Object.entries(ExceptionCode);
390
390
  for (i = 0; i < entries.length; i++) {
391
391
  key = entries[i][0];
392
- DOMException[key] = entries[i][1];
392
+ DOMException2[key] = entries[i][1];
393
393
  }
394
394
  var key;
395
395
  var i;
@@ -401,7 +401,7 @@ var require_errors = __commonJS({
401
401
  }
402
402
  __name(ParseError, "ParseError");
403
403
  extendError(ParseError);
404
- exports.DOMException = DOMException;
404
+ exports.DOMException = DOMException2;
405
405
  exports.DOMExceptionName = DOMExceptionName;
406
406
  exports.ExceptionCode = ExceptionCode;
407
407
  exports.ParseError = ParseError;
@@ -635,7 +635,7 @@ var require_dom = __commonJS({
635
635
  var NAMESPACE = conventions.NAMESPACE;
636
636
  var PDC = /* @__PURE__ */ Symbol();
637
637
  var errors = require_errors();
638
- var DOMException = errors.DOMException;
638
+ var DOMException2 = errors.DOMException;
639
639
  var DOMExceptionName = errors.DOMExceptionName;
640
640
  var g = require_grammar();
641
641
  function checkSymbol(symbol) {
@@ -673,7 +673,7 @@ var require_dom = __commonJS({
673
673
  __name(arrayIncludes, "arrayIncludes");
674
674
  function validateQualifiedName(qualifiedName) {
675
675
  if (!g.QName_exact.test(qualifiedName)) {
676
- throw new DOMException(DOMException.INVALID_CHARACTER_ERR, 'invalid character in qualified name "' + qualifiedName + '"');
676
+ throw new DOMException2(DOMException2.INVALID_CHARACTER_ERR, 'invalid character in qualified name "' + qualifiedName + '"');
677
677
  }
678
678
  }
679
679
  __name(validateQualifiedName, "validateQualifiedName");
@@ -688,20 +688,20 @@ var require_dom = __commonJS({
688
688
  localName = splitResult[1];
689
689
  }
690
690
  if (prefix !== null && namespace === null) {
691
- throw new DOMException(DOMException.NAMESPACE_ERR, "prefix is non-null and namespace is null");
691
+ throw new DOMException2(DOMException2.NAMESPACE_ERR, "prefix is non-null and namespace is null");
692
692
  }
693
693
  if (prefix === "xml" && namespace !== conventions.NAMESPACE.XML) {
694
- throw new DOMException(DOMException.NAMESPACE_ERR, 'prefix is "xml" and namespace is not the XML namespace');
694
+ throw new DOMException2(DOMException2.NAMESPACE_ERR, 'prefix is "xml" and namespace is not the XML namespace');
695
695
  }
696
696
  if ((prefix === "xmlns" || qualifiedName === "xmlns") && namespace !== conventions.NAMESPACE.XMLNS) {
697
- throw new DOMException(
698
- DOMException.NAMESPACE_ERR,
697
+ throw new DOMException2(
698
+ DOMException2.NAMESPACE_ERR,
699
699
  'either qualifiedName or prefix is "xmlns" and namespace is not the XMLNS namespace'
700
700
  );
701
701
  }
702
702
  if (namespace === conventions.NAMESPACE.XMLNS && prefix !== "xmlns" && qualifiedName !== "xmlns") {
703
- throw new DOMException(
704
- DOMException.NAMESPACE_ERR,
703
+ throw new DOMException2(
704
+ DOMException2.NAMESPACE_ERR,
705
705
  'namespace is the XMLNS namespace and neither qualifiedName nor prefix is "xmlns"'
706
706
  );
707
707
  }
@@ -1027,7 +1027,7 @@ var require_dom = __commonJS({
1027
1027
  setNamedItem: /* @__PURE__ */ __name(function(attr) {
1028
1028
  var el = attr.ownerElement;
1029
1029
  if (el && el !== this._ownerElement) {
1030
- throw new DOMException(DOMException.INUSE_ATTRIBUTE_ERR);
1030
+ throw new DOMException2(DOMException2.INUSE_ATTRIBUTE_ERR);
1031
1031
  }
1032
1032
  var oldAttr = _nnmIndexFind(this, attr.namespaceURI, attr.localName);
1033
1033
  if (oldAttr === attr) {
@@ -1069,7 +1069,7 @@ var require_dom = __commonJS({
1069
1069
  removeNamedItem: /* @__PURE__ */ __name(function(localName) {
1070
1070
  var attr = this.getNamedItem(localName);
1071
1071
  if (!attr) {
1072
- throw new DOMException(DOMException.NOT_FOUND_ERR, localName);
1072
+ throw new DOMException2(DOMException2.NOT_FOUND_ERR, localName);
1073
1073
  }
1074
1074
  _removeNamedNode(this._ownerElement, this, attr);
1075
1075
  return attr;
@@ -1093,7 +1093,7 @@ var require_dom = __commonJS({
1093
1093
  removeNamedItemNS: /* @__PURE__ */ __name(function(namespaceURI, localName) {
1094
1094
  var attr = this.getNamedItemNS(namespaceURI, localName);
1095
1095
  if (!attr) {
1096
- throw new DOMException(DOMException.NOT_FOUND_ERR, namespaceURI ? namespaceURI + " : " + localName : localName);
1096
+ throw new DOMException2(DOMException2.NOT_FOUND_ERR, namespaceURI ? namespaceURI + " : " + localName : localName);
1097
1097
  }
1098
1098
  _removeNamedNode(this._ownerElement, this, attr);
1099
1099
  return attr;
@@ -1996,7 +1996,7 @@ var require_dom = __commonJS({
1996
1996
  __name(_onUpdateChild, "_onUpdateChild");
1997
1997
  function _removeChild(parentNode, child) {
1998
1998
  if (parentNode !== child.parentNode) {
1999
- throw new DOMException(DOMException.NOT_FOUND_ERR, "child's parent is not parent");
1999
+ throw new DOMException2(DOMException2.NOT_FOUND_ERR, "child's parent is not parent");
2000
2000
  }
2001
2001
  var oldPreviousSibling = child.previousSibling;
2002
2002
  var oldNextSibling = child.nextSibling;
@@ -2061,10 +2061,10 @@ var require_dom = __commonJS({
2061
2061
  __name(isElementReplacementPossible, "isElementReplacementPossible");
2062
2062
  function assertPreInsertionValidity1to5(parent, node, child) {
2063
2063
  if (!hasValidParentNodeType(parent)) {
2064
- throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR, "Unexpected parent node type " + parent.nodeType);
2064
+ throw new DOMException2(DOMException2.HIERARCHY_REQUEST_ERR, "Unexpected parent node type " + parent.nodeType);
2065
2065
  }
2066
2066
  if (child && child.parentNode !== parent) {
2067
- throw new DOMException(DOMException.NOT_FOUND_ERR, "child not in parent");
2067
+ throw new DOMException2(DOMException2.NOT_FOUND_ERR, "child not in parent");
2068
2068
  }
2069
2069
  if (
2070
2070
  // 4. If `node` is not a DocumentFragment, DocumentType, Element, or CharacterData node, then throw a "HierarchyRequestError" DOMException.
@@ -2074,8 +2074,8 @@ var require_dom = __commonJS({
2074
2074
  // or `node` is a doctype and `parent` is not a document, then throw a "HierarchyRequestError" DOMException.
2075
2075
  isDocTypeNode(node) && parent.nodeType !== Node.DOCUMENT_NODE
2076
2076
  ) {
2077
- throw new DOMException(
2078
- DOMException.HIERARCHY_REQUEST_ERR,
2077
+ throw new DOMException2(
2078
+ DOMException2.HIERARCHY_REQUEST_ERR,
2079
2079
  "Unexpected node type " + node.nodeType + " for parent node type " + parent.nodeType
2080
2080
  );
2081
2081
  }
@@ -2087,27 +2087,27 @@ var require_dom = __commonJS({
2087
2087
  if (node.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
2088
2088
  var nodeChildElements = nodeChildNodes.filter(isElementNode);
2089
2089
  if (nodeChildElements.length > 1 || find(nodeChildNodes, isTextNode)) {
2090
- throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR, "More than one element or text in fragment");
2090
+ throw new DOMException2(DOMException2.HIERARCHY_REQUEST_ERR, "More than one element or text in fragment");
2091
2091
  }
2092
2092
  if (nodeChildElements.length === 1 && !isElementInsertionPossible(parent, child)) {
2093
- throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR, "Element in fragment can not be inserted before doctype");
2093
+ throw new DOMException2(DOMException2.HIERARCHY_REQUEST_ERR, "Element in fragment can not be inserted before doctype");
2094
2094
  }
2095
2095
  }
2096
2096
  if (isElementNode(node)) {
2097
2097
  if (!isElementInsertionPossible(parent, child)) {
2098
- throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR, "Only one element can be added and only after doctype");
2098
+ throw new DOMException2(DOMException2.HIERARCHY_REQUEST_ERR, "Only one element can be added and only after doctype");
2099
2099
  }
2100
2100
  }
2101
2101
  if (isDocTypeNode(node)) {
2102
2102
  if (find(parentChildNodes, isDocTypeNode)) {
2103
- throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR, "Only one doctype is allowed");
2103
+ throw new DOMException2(DOMException2.HIERARCHY_REQUEST_ERR, "Only one doctype is allowed");
2104
2104
  }
2105
2105
  var parentElementChild = find(parentChildNodes, isElementNode);
2106
2106
  if (child && parentChildNodes.indexOf(parentElementChild) < parentChildNodes.indexOf(child)) {
2107
- throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR, "Doctype can only be inserted before an element");
2107
+ throw new DOMException2(DOMException2.HIERARCHY_REQUEST_ERR, "Doctype can only be inserted before an element");
2108
2108
  }
2109
2109
  if (!child && parentElementChild) {
2110
- throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR, "Doctype can not be appended since element is present");
2110
+ throw new DOMException2(DOMException2.HIERARCHY_REQUEST_ERR, "Doctype can not be appended since element is present");
2111
2111
  }
2112
2112
  }
2113
2113
  }
@@ -2118,15 +2118,15 @@ var require_dom = __commonJS({
2118
2118
  if (node.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
2119
2119
  var nodeChildElements = nodeChildNodes.filter(isElementNode);
2120
2120
  if (nodeChildElements.length > 1 || find(nodeChildNodes, isTextNode)) {
2121
- throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR, "More than one element or text in fragment");
2121
+ throw new DOMException2(DOMException2.HIERARCHY_REQUEST_ERR, "More than one element or text in fragment");
2122
2122
  }
2123
2123
  if (nodeChildElements.length === 1 && !isElementReplacementPossible(parent, child)) {
2124
- throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR, "Element in fragment can not be inserted before doctype");
2124
+ throw new DOMException2(DOMException2.HIERARCHY_REQUEST_ERR, "Element in fragment can not be inserted before doctype");
2125
2125
  }
2126
2126
  }
2127
2127
  if (isElementNode(node)) {
2128
2128
  if (!isElementReplacementPossible(parent, child)) {
2129
- throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR, "Only one element can be added and only after doctype");
2129
+ throw new DOMException2(DOMException2.HIERARCHY_REQUEST_ERR, "Only one element can be added and only after doctype");
2130
2130
  }
2131
2131
  }
2132
2132
  if (isDocTypeNode(node)) {
@@ -2135,11 +2135,11 @@ var require_dom = __commonJS({
2135
2135
  };
2136
2136
  __name(hasDoctypeChildThatIsNotChild, "hasDoctypeChildThatIsNotChild");
2137
2137
  if (find(parentChildNodes, hasDoctypeChildThatIsNotChild)) {
2138
- throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR, "Only one doctype is allowed");
2138
+ throw new DOMException2(DOMException2.HIERARCHY_REQUEST_ERR, "Only one doctype is allowed");
2139
2139
  }
2140
2140
  var parentElementChild = find(parentChildNodes, isElementNode);
2141
2141
  if (child && parentChildNodes.indexOf(parentElementChild) < parentChildNodes.indexOf(child)) {
2142
- throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR, "Doctype can only be inserted before an element");
2142
+ throw new DOMException2(DOMException2.HIERARCHY_REQUEST_ERR, "Doctype can only be inserted before an element");
2143
2143
  }
2144
2144
  }
2145
2145
  }
@@ -2358,7 +2358,7 @@ var require_dom = __commonJS({
2358
2358
  */
2359
2359
  createCDATASection: /* @__PURE__ */ __name(function(data) {
2360
2360
  if (data.indexOf("]]>") !== -1) {
2361
- throw new DOMException(DOMException.INVALID_CHARACTER_ERR, 'data contains "]]>"');
2361
+ throw new DOMException2(DOMException2.INVALID_CHARACTER_ERR, 'data contains "]]>"');
2362
2362
  }
2363
2363
  var node = new CDATASection(PDC);
2364
2364
  node.ownerDocument = this;
@@ -2410,7 +2410,7 @@ var require_dom = __commonJS({
2410
2410
  */
2411
2411
  createAttribute: /* @__PURE__ */ __name(function(name) {
2412
2412
  if (!g.QName_exact.test(name)) {
2413
- throw new DOMException(DOMException.INVALID_CHARACTER_ERR, 'invalid character in name "' + name + '"');
2413
+ throw new DOMException2(DOMException2.INVALID_CHARACTER_ERR, 'invalid character in name "' + name + '"');
2414
2414
  }
2415
2415
  if (this.type === "html") {
2416
2416
  name = name.toLowerCase();
@@ -2455,10 +2455,10 @@ var require_dom = __commonJS({
2455
2455
  */
2456
2456
  createEntityReference: /* @__PURE__ */ __name(function(name) {
2457
2457
  if (!g.Name_exact.test(name)) {
2458
- throw new DOMException(DOMException.INVALID_CHARACTER_ERR, 'not a valid xml name "' + name + '"');
2458
+ throw new DOMException2(DOMException2.INVALID_CHARACTER_ERR, 'not a valid xml name "' + name + '"');
2459
2459
  }
2460
2460
  if (this.type === "html") {
2461
- throw new DOMException("document is an html document", DOMExceptionName.NotSupportedError);
2461
+ throw new DOMException2("document is an html document", DOMExceptionName.NotSupportedError);
2462
2462
  }
2463
2463
  var node = new EntityReference(PDC);
2464
2464
  node.ownerDocument = this;
@@ -2909,7 +2909,7 @@ var require_dom = __commonJS({
2909
2909
  __name(needNamespaceDefine, "needNamespaceDefine");
2910
2910
  function addSerializedAttribute(buf, qualifiedName, value, requireWellFormed) {
2911
2911
  if (requireWellFormed && !g.QName_exact.test(qualifiedName)) {
2912
- throw new DOMException(
2912
+ throw new DOMException2(
2913
2913
  'The attribute name "' + qualifiedName + '" is not a valid XML QName',
2914
2914
  DOMExceptionName.InvalidStateError
2915
2915
  );
@@ -2979,7 +2979,7 @@ var require_dom = __commonJS({
2979
2979
  }
2980
2980
  }
2981
2981
  if (requireWellFormed && !g.QName_exact.test(prefixedNodeName)) {
2982
- throw new DOMException(
2982
+ throw new DOMException2(
2983
2983
  'The element name "' + prefixedNodeName + '" is not a valid XML QName',
2984
2984
  DOMExceptionName.InvalidStateError
2985
2985
  );
@@ -3046,7 +3046,7 @@ var require_dom = __commonJS({
3046
3046
  case DOCUMENT_NODE:
3047
3047
  case DOCUMENT_FRAGMENT_NODE:
3048
3048
  if (requireWellFormed && n.nodeType === DOCUMENT_NODE && n.documentElement == null) {
3049
- throw new DOMException("The Document has no documentElement", DOMExceptionName.InvalidStateError);
3049
+ throw new DOMException2("The Document has no documentElement", DOMExceptionName.InvalidStateError);
3050
3050
  }
3051
3051
  return { ns: namespaces };
3052
3052
  case ATTRIBUTE_NODE:
@@ -3054,7 +3054,7 @@ var require_dom = __commonJS({
3054
3054
  return null;
3055
3055
  case TEXT_NODE:
3056
3056
  if (requireWellFormed && g.InvalidChar.test(n.data)) {
3057
- throw new DOMException(
3057
+ throw new DOMException2(
3058
3058
  "The Text node data contains characters outside the XML Char production",
3059
3059
  DOMExceptionName.InvalidStateError
3060
3060
  );
@@ -3063,7 +3063,7 @@ var require_dom = __commonJS({
3063
3063
  return null;
3064
3064
  case CDATA_SECTION_NODE:
3065
3065
  if (requireWellFormed && n.data.indexOf("]]>") !== -1) {
3066
- throw new DOMException('The CDATASection data contains "]]>"', DOMExceptionName.InvalidStateError);
3066
+ throw new DOMException2('The CDATASection data contains "]]>"', DOMExceptionName.InvalidStateError);
3067
3067
  }
3068
3068
  if (splitCDATASections) {
3069
3069
  buf.push(g.CDATA_START, n.data.replace(/]]>/g, "]]]]><![CDATA[>"), g.CDATA_END);
@@ -3074,13 +3074,13 @@ var require_dom = __commonJS({
3074
3074
  case COMMENT_NODE:
3075
3075
  if (requireWellFormed) {
3076
3076
  if (g.InvalidChar.test(n.data)) {
3077
- throw new DOMException(
3077
+ throw new DOMException2(
3078
3078
  "The comment node data contains characters outside the XML Char production",
3079
3079
  DOMExceptionName.InvalidStateError
3080
3080
  );
3081
3081
  }
3082
3082
  if (n.data.indexOf("--") !== -1 || n.data[n.data.length - 1] === "-") {
3083
- throw new DOMException(
3083
+ throw new DOMException2(
3084
3084
  'The comment node data contains "--" or ends with "-"',
3085
3085
  DOMExceptionName.InvalidStateError
3086
3086
  );
@@ -3093,19 +3093,19 @@ var require_dom = __commonJS({
3093
3093
  var sysid = n.systemId;
3094
3094
  if (requireWellFormed) {
3095
3095
  if (!g.Name_exact.test(n.name)) {
3096
- throw new DOMException(
3096
+ throw new DOMException2(
3097
3097
  'The doctype name "' + n.name + '" is not a valid XML Name',
3098
3098
  DOMExceptionName.InvalidStateError
3099
3099
  );
3100
3100
  }
3101
3101
  if (pubid && !g.PubidLiteral_match.test(pubid)) {
3102
- throw new DOMException("DocumentType publicId is not a valid PubidLiteral", DOMExceptionName.InvalidStateError);
3102
+ throw new DOMException2("DocumentType publicId is not a valid PubidLiteral", DOMExceptionName.InvalidStateError);
3103
3103
  }
3104
3104
  if (sysid && sysid !== "." && !g.SystemLiteral_match.test(sysid)) {
3105
- throw new DOMException("DocumentType systemId is not a valid SystemLiteral", DOMExceptionName.InvalidStateError);
3105
+ throw new DOMException2("DocumentType systemId is not a valid SystemLiteral", DOMExceptionName.InvalidStateError);
3106
3106
  }
3107
3107
  if (n.internalSubset && n.internalSubset.indexOf("]>") !== -1) {
3108
- throw new DOMException('DocumentType internalSubset contains "]>"', DOMExceptionName.InvalidStateError);
3108
+ throw new DOMException2('DocumentType internalSubset contains "]>"', DOMExceptionName.InvalidStateError);
3109
3109
  }
3110
3110
  }
3111
3111
  buf.push(g.DOCTYPE_DECL_START, " ", n.name);
@@ -3125,26 +3125,26 @@ var require_dom = __commonJS({
3125
3125
  case PROCESSING_INSTRUCTION_NODE:
3126
3126
  if (requireWellFormed) {
3127
3127
  if (!g.NCName_exact.test(n.target) || n.target.toLowerCase() === "xml") {
3128
- throw new DOMException(
3128
+ throw new DOMException2(
3129
3129
  'The processing instruction target "' + n.target + '" is not a valid XML NCName or is reserved',
3130
3130
  DOMExceptionName.InvalidStateError
3131
3131
  );
3132
3132
  }
3133
3133
  if (g.InvalidChar.test(n.data)) {
3134
- throw new DOMException(
3134
+ throw new DOMException2(
3135
3135
  "The ProcessingInstruction data contains characters outside the XML Char production",
3136
3136
  DOMExceptionName.InvalidStateError
3137
3137
  );
3138
3138
  }
3139
3139
  if (n.data.indexOf("?>") !== -1) {
3140
- throw new DOMException('The ProcessingInstruction data contains "?>"', DOMExceptionName.InvalidStateError);
3140
+ throw new DOMException2('The ProcessingInstruction data contains "?>"', DOMExceptionName.InvalidStateError);
3141
3141
  }
3142
3142
  }
3143
3143
  buf.push("<?", n.target, " ", n.data, "?>");
3144
3144
  return null;
3145
3145
  case ENTITY_REFERENCE_NODE:
3146
3146
  if (requireWellFormed && !g.Name_exact.test(n.nodeName)) {
3147
- throw new DOMException(
3147
+ throw new DOMException2(
3148
3148
  'The entity reference name "' + n.nodeName + '" is not a valid XML Name',
3149
3149
  DOMExceptionName.InvalidStateError
3150
3150
  );
@@ -5511,7 +5511,7 @@ var require_sax = __commonJS({
5511
5511
  var hasOwn = conventions.hasOwn;
5512
5512
  var NAMESPACE = conventions.NAMESPACE;
5513
5513
  var ParseError = errors.ParseError;
5514
- var DOMException = errors.DOMException;
5514
+ var DOMException2 = errors.DOMException;
5515
5515
  var S_TAG = 0;
5516
5516
  var S_ATTR = 1;
5517
5517
  var S_ATTR_SPACE = 2;
@@ -5720,7 +5720,7 @@ var require_sax = __commonJS({
5720
5720
  } catch (e) {
5721
5721
  if (e instanceof ParseError) {
5722
5722
  throw e;
5723
- } else if (e instanceof DOMException) {
5723
+ } else if (e instanceof DOMException2) {
5724
5724
  return errorHandler.fatalError("Error constructing the DOM: " + e.name + ": " + e.message, e);
5725
5725
  }
5726
5726
  errorHandler.error("element parse error: " + e);
@@ -16632,20 +16632,20 @@ var require_lib3 = __commonJS({
16632
16632
  }
16633
16633
  });
16634
16634
 
16635
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/attachments/extract.js
16635
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/attachments/extract.js
16636
16636
  import { extname as extname2 } from "node:path";
16637
16637
 
16638
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/readers/engine.js
16638
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/readers/engine.js
16639
16639
  import { readFileSync } from "node:fs";
16640
16640
  import { dirname, extname, join } from "node:path";
16641
16641
  import { fileURLToPath } from "node:url";
16642
16642
 
16643
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/attachments/container.js
16643
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/attachments/container.js
16644
16644
  import { setImmediate as tick } from "node:timers/promises";
16645
16645
  import { crc32 } from "node:zlib";
16646
16646
  var import_xmldom = __toESM(require_lib(), 1);
16647
16647
 
16648
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
16648
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
16649
16649
  var import_chardet = __toESM(require_lib2(), 1);
16650
16650
  var import_iconv_lite = __toESM(require_lib3(), 1);
16651
16651
  var SAMPLE = 65536;
@@ -16747,7 +16747,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes) => {
16747
16747
  return result.text;
16748
16748
  }, "decodeXml");
16749
16749
 
16750
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/attachments/container.js
16750
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/attachments/container.js
16751
16751
  var MAX_PART = 10 * 1024 * 1024;
16752
16752
  var MAX_ENTRIES = 1e3;
16753
16753
  var decoder = new TextDecoder("utf-8", { fatal: true });
@@ -16962,7 +16962,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
16962
16962
  return found;
16963
16963
  }, "elements");
16964
16964
 
16965
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/readers/engine.js
16965
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/readers/engine.js
16966
16966
  var BUILT_IN = ["unpdf", "mammoth", "word-extractor", "linkedom", "defuddle/node"];
16967
16967
  var ENGINES = [...BUILT_IN, "@napi-rs/canvas"];
16968
16968
  var isMissing = /* @__PURE__ */ __name((error, name) => error?.code === "ERR_MODULE_NOT_FOUND" && String(error.message).includes(name), "isMissing");
@@ -17020,7 +17020,7 @@ var derived = /* @__PURE__ */ __name((bytes, extractor, read) => {
17020
17020
  }
17021
17021
  }, "derived");
17022
17022
 
17023
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/readers/image/index.js
17023
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/readers/image/index.js
17024
17024
  var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
17025
17025
  var image = {
17026
17026
  id: "image",
@@ -17029,7 +17029,7 @@ var image = {
17029
17029
  read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
17030
17030
  };
17031
17031
 
17032
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
17032
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
17033
17033
  var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
17034
17034
  var doc = {
17035
17035
  id: "doc",
@@ -17041,7 +17041,7 @@ var doc = {
17041
17041
  }), "read")
17042
17042
  };
17043
17043
 
17044
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
17044
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
17045
17045
  var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
17046
17046
  var docx = {
17047
17047
  id: "docx",
@@ -17054,7 +17054,7 @@ var docx = {
17054
17054
  }), "read")
17055
17055
  };
17056
17056
 
17057
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/attachments/markup.js
17057
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/attachments/markup.js
17058
17058
  var import_iconv_lite2 = __toESM(require_lib3(), 1);
17059
17059
  var RTF_SKIPPED = /* @__PURE__ */ new Set([
17060
17060
  "fonttbl",
@@ -17230,7 +17230,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
17230
17230
  }, "htmlText");
17231
17231
  var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
17232
17232
 
17233
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/readers/html/page.js
17233
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/readers/html/page.js
17234
17234
  var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
17235
17235
  var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
17236
17236
  var jsonLdNodes = /* @__PURE__ */ __name((document) => {
@@ -17286,7 +17286,7 @@ var markdownSections = /* @__PURE__ */ __name((text) => {
17286
17286
  return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text.length }));
17287
17287
  }, "markdownSections");
17288
17288
 
17289
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/readers/html/index.js
17289
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/readers/html/index.js
17290
17290
  var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
17291
17291
  var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
17292
17292
  var loaded = /* @__PURE__ */ __name(async (load, name) => {
@@ -17357,10 +17357,10 @@ var html = {
17357
17357
  }, "read")
17358
17358
  };
17359
17359
 
17360
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/attachments/documents.js
17360
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/attachments/documents.js
17361
17361
  import { posix } from "node:path";
17362
17362
 
17363
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
17363
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
17364
17364
  var columnName = /* @__PURE__ */ __name((column) => {
17365
17365
  let name = "";
17366
17366
  for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
@@ -17415,7 +17415,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
17415
17415
  return { text: parts.join("").trim(), truncated: false };
17416
17416
  }, "sheetText");
17417
17417
 
17418
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/attachments/documents.js
17418
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/attachments/documents.js
17419
17419
  var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
17420
17420
  var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
17421
17421
  var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
@@ -17830,7 +17830,7 @@ var readDocument = /* @__PURE__ */ __name(async (bytes, kind, signal) => {
17830
17830
  }
17831
17831
  }, "readDocument");
17832
17832
 
17833
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/readers/office/index.js
17833
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/readers/office/index.js
17834
17834
  var office = {
17835
17835
  id: "office",
17836
17836
  version: documentExtractor("odt"),
@@ -17841,7 +17841,7 @@ var office = {
17841
17841
  }, "read")
17842
17842
  };
17843
17843
 
17844
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
17844
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
17845
17845
  var pdf = {
17846
17846
  id: "pdf",
17847
17847
  version: "unpdf",
@@ -17908,7 +17908,7 @@ var pdf = {
17908
17908
  }), "read")
17909
17909
  };
17910
17910
 
17911
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
17911
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
17912
17912
  var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
17913
17913
  var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
17914
17914
  var readPlain = /* @__PURE__ */ __name((bytes) => {
@@ -17928,7 +17928,7 @@ var plain = {
17928
17928
  read: /* @__PURE__ */ __name(async (bytes) => readPlain(bytes), "read")
17929
17929
  };
17930
17930
 
17931
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
17931
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
17932
17932
  var rtf = {
17933
17933
  id: "rtf",
17934
17934
  version: "v1",
@@ -17936,10 +17936,10 @@ var rtf = {
17936
17936
  read: /* @__PURE__ */ __name(async (bytes) => derived(bytes, "rtf:v1", rtfText), "read")
17937
17937
  };
17938
17938
 
17939
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
17939
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
17940
17940
  import { basename } from "node:path";
17941
17941
 
17942
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
17942
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
17943
17943
  var delimitedSpans = /* @__PURE__ */ __name((text, delimiter, maxCells = 1e4) => {
17944
17944
  const cells = [];
17945
17945
  let row = 1, column = 1, start = 0, quoted = false, truncated = false;
@@ -17977,7 +17977,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text, delimiter, maxCells = 1e4) =>
17977
17977
  return { cells, truncated };
17978
17978
  }, "delimitedSpans");
17979
17979
 
17980
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
17980
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
17981
17981
  var DELIMITED = {
17982
17982
  ".csv": ",",
17983
17983
  ".tsv": " ",
@@ -18016,7 +18016,7 @@ var sheets = {
18016
18016
  }, "read")
18017
18017
  };
18018
18018
 
18019
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/readers/registry.js
18019
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/readers/registry.js
18020
18020
  var BUILT_INS = [office, pdf, docx, doc, rtf, html, sheets, plain, image];
18021
18021
  var HEAD_BYTES = 1024;
18022
18022
  var readers = [...BUILT_INS];
@@ -18026,7 +18026,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes, hint, context) => {
18026
18026
  return reader ? reader.read(bytes, hint, context) : { status: "unsupported" };
18027
18027
  }, "readWithRegistry");
18028
18028
 
18029
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/attachments/extract.js
18029
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/attachments/extract.js
18030
18030
  var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
18031
18031
  var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname2(name ?? path).toLowerCase(), "extensionOf");
18032
18032
  var extractText = /* @__PURE__ */ __name(async (bytes, hint, load, signal, env = process.env) => {
@@ -18064,7 +18064,24 @@ var engineStates = /* @__PURE__ */ __name((resolve = (name) => resolveFrom(new U
18064
18064
  }
18065
18065
  })), "engineStates");
18066
18066
 
18067
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/http/time-limit.js
18068
+ var timeLimit = /* @__PURE__ */ __name((ms) => {
18069
+ const controller = new AbortController();
18070
+ const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
18071
+ timer.unref();
18072
+ return { signal: controller.signal, clear: /* @__PURE__ */ __name(() => clearTimeout(timer), "clear") };
18073
+ }, "timeLimit");
18074
+ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run) => {
18075
+ const limit = timeLimit(ms);
18076
+ try {
18077
+ return await run(limit.signal);
18078
+ } finally {
18079
+ limit.clear();
18080
+ }
18081
+ }, "withTimeLimit");
18082
+
18067
18083
  export {
18084
+ withTimeLimit,
18068
18085
  columnName,
18069
18086
  documentKind,
18070
18087
  documentExtractor,