@qwen-code/qwen-code 0.17.0 → 0.17.1

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 (91) hide show
  1. package/bundled/qc-helper/docs/configuration/_meta.ts +0 -3
  2. package/bundled/qc-helper/docs/configuration/settings.md +13 -12
  3. package/bundled/qc-helper/docs/configuration/themes.md +39 -0
  4. package/bundled/qc-helper/docs/features/approval-mode.md +26 -22
  5. package/bundled/qc-helper/docs/features/commands.md +68 -12
  6. package/bundled/qc-helper/docs/features/status-line.md +168 -32
  7. package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +16 -0
  8. package/bundled/simplify/SKILL.md +123 -0
  9. package/chunks/{agent-KVXFGIOU.js → agent-ZJHHICAC.js} +14 -13
  10. package/chunks/{anthropicContentGenerator-L4HWAOIV.js → anthropicContentGenerator-M45RXZVS.js} +48 -5
  11. package/chunks/{askUserQuestion-DC6OWQIL.js → askUserQuestion-TGRD7FNQ.js} +1 -1
  12. package/chunks/{ca-NMZFEGAU.js → ca-6RSCDYUS.js} +2 -1
  13. package/chunks/{chunk-7EHPK6TK.js → chunk-2KEXT6RB.js} +4007 -2390
  14. package/chunks/{chunk-J5VCSWPA.js → chunk-3PJXIDKI.js} +1153 -103
  15. package/chunks/{chunk-7NNBQRV7.js → chunk-5JBZM7FZ.js} +4 -4
  16. package/chunks/{chunk-EMVEDSVZ.js → chunk-6O244QKR.js} +43 -3
  17. package/chunks/chunk-7TQVELRB.js +10412 -0
  18. package/chunks/{chunk-HCSJIOLR.js → chunk-BNESGOSJ.js} +7450 -3516
  19. package/chunks/{chunk-MEN6IEKX.js → chunk-C5CUHYSM.js} +456 -1225
  20. package/chunks/{chunk-7YJIR2FX.js → chunk-G4K6P5KN.js} +8 -15
  21. package/chunks/chunk-HX3JRTWL.js +393 -0
  22. package/chunks/{chunk-V7LMZR76.js → chunk-JBSYXHJF.js} +1 -1
  23. package/chunks/{chunk-R2B65CAN.js → chunk-JKUAX6UT.js} +0 -1
  24. package/chunks/chunk-MRO43B25.js +30 -0
  25. package/chunks/{chunk-JI7FDD65.js → chunk-NJJER6E2.js} +9 -6
  26. package/chunks/{chunk-ODPVJ6JJ.js → chunk-OJFMTECH.js} +6 -1
  27. package/chunks/{chunk-QEXSIXLX.js → chunk-PLYRQYKC.js} +10 -10
  28. package/chunks/{chunk-U2K6HDUJ.js → chunk-QVJ33ZBG.js} +23 -13
  29. package/chunks/{chunk-HAQCNXSG.js → chunk-RQW7WUJR.js} +15 -0
  30. package/chunks/{chunk-UQRYJQBE.js → chunk-SOGUPKP6.js} +1 -1
  31. package/chunks/{chunk-6NUSWV4M.js → chunk-TDZCEIK6.js} +2 -0
  32. package/chunks/{chunk-4O2TWJK4.js → chunk-X2474BTT.js} +183 -40
  33. package/chunks/{computer-use-2J5ZXEER.js → computer-use-NAHQPV2L.js} +24 -6
  34. package/chunks/{contextCommand-52NTEMCT.js → contextCommand-7KJT3UJS.js} +16 -15
  35. package/chunks/{cron-create-FXRORK2U.js → cron-create-V3UK2SJN.js} +1 -1
  36. package/chunks/{cron-delete-D24IN6CA.js → cron-delete-MANALPCP.js} +1 -1
  37. package/chunks/{cron-list-SMOX26SL.js → cron-list-UDIYK3B3.js} +1 -1
  38. package/chunks/{de-OIMT3OMI.js → de-APURNJ3I.js} +2 -1
  39. package/chunks/{dist-GRQVFL3G.js → dist-ATAKC63R.js} +1 -1
  40. package/chunks/{edit-RLFUTT5F.js → edit-JWXCQ4KK.js} +14 -13
  41. package/chunks/{en-2IFZ5THF.js → en-FYO57HJW.js} +3 -1
  42. package/chunks/{enter-worktree-CYRAPQKJ.js → enter-worktree-G4CJXPT4.js} +14 -13
  43. package/chunks/{exit-worktree-WQZM72QD.js → exit-worktree-MYZ2FGU2.js} +14 -13
  44. package/chunks/{exitPlanMode-STFEBQZE.js → exitPlanMode-ELJ6FSMU.js} +14 -13
  45. package/chunks/{fr-PVELSHTV.js → fr-32YHQZIS.js} +2 -1
  46. package/chunks/{geminiContentGenerator-DIV32SKO.js → geminiContentGenerator-3LR7MKCQ.js} +4 -3
  47. package/chunks/{glob-N3XO4RVI.js → glob-CANUAUTC.js} +14 -13
  48. package/chunks/{grep-AK5MP7P3.js → grep-WZWNJRDX.js} +14 -13
  49. package/chunks/{ja-P5TK5GNN.js → ja-PEUXN4XT.js} +2 -1
  50. package/chunks/{ls-7FYQHPWF.js → ls-T4SVZWR6.js} +1 -1
  51. package/chunks/{lsp-DKG34USR.js → lsp-U4ZQLNIS.js} +1 -1
  52. package/chunks/{monitor-IVBWJZEZ.js → monitor-CCKNOUFG.js} +17 -14
  53. package/chunks/{multipart-parser-IXGBIOIN.js → multipart-parser-AJ4WASWR.js} +2 -2
  54. package/chunks/{notebook-edit-PM46AXFS.js → notebook-edit-XDUY5Q4I.js} +14 -13
  55. package/chunks/{openaiContentGenerator-4QXCH7L2.js → openaiContentGenerator-N3O3MYIT.js} +11 -10
  56. package/chunks/{pt-A5GHG66T.js → pt-2INS7YVC.js} +2 -1
  57. package/chunks/{qwenContentGenerator-BLXQIIMX.js → qwenContentGenerator-DEOIWKVH.js} +16 -15
  58. package/chunks/{qwenOAuth2-BAN2EGSH.js → qwenOAuth2-LKXG7XVO.js} +2 -1
  59. package/chunks/{read-file-IEQAS3EZ.js → read-file-BRNXGILN.js} +8 -7
  60. package/chunks/{ripGrep-HQO7IE4C.js → ripGrep-ZRY5PKUZ.js} +14 -13
  61. package/chunks/{ru-66XKB4QX.js → ru-6CQ5HNHB.js} +2 -1
  62. package/chunks/scheduler-SSFABMN5.js +306 -0
  63. package/chunks/{send-message-ZL7CDM7K.js → send-message-GFYV7WLL.js} +1 -1
  64. package/chunks/{serve-CYRAK4UM.js → serve-B5O72CRN.js} +43 -30
  65. package/chunks/{shell-UZBGNO2Q.js → shell-SGYNBVMK.js} +14 -13
  66. package/chunks/{skill-JVC34QYN.js → skill-V7Y6DOFB.js} +9 -8
  67. package/chunks/{src-TMOD5X6F.js → src-7XL4G4DC.js} +88 -46
  68. package/chunks/{src-FOODLH7B.js → src-OKFFQGXB.js} +41 -15
  69. package/chunks/{syntheticOutput-U3YJ3GOO.js → syntheticOutput-DM43O6TY.js} +2 -2
  70. package/chunks/{task-stop-NPUI3YBA.js → task-stop-WKP5OB3V.js} +1 -1
  71. package/chunks/{todoWrite-Y6F7YEIM.js → todoWrite-GHL6DCLP.js} +14 -3
  72. package/chunks/{tool-search-P7PRPOW3.js → tool-search-7MHT3HGM.js} +8 -7
  73. package/chunks/{web-fetch-XWEK4TFX.js → web-fetch-SZIV74ZX.js} +2 -2
  74. package/chunks/{write-file-SIIEUON5.js → write-file-ARS2Z6BJ.js} +16 -15
  75. package/chunks/{zh-TW-3ND6DQRX.js → zh-TW-SSL3ATVZ.js} +3 -1
  76. package/chunks/{zh-OB5P2ZDO.js → zh-ZHZCMIRG.js} +3 -1
  77. package/cli.js +38665 -53791
  78. package/locales/ca.js +2 -1
  79. package/locales/de.js +2 -1
  80. package/locales/en.js +4 -1
  81. package/locales/fr.js +2 -1
  82. package/locales/ja.js +2 -1
  83. package/locales/pt.js +2 -1
  84. package/locales/ru.js +2 -1
  85. package/locales/zh-TW.js +4 -1
  86. package/locales/zh.js +4 -1
  87. package/package.json +2 -2
  88. package/chunks/chunk-EM6ETG2K.js +0 -60
  89. package/chunks/chunk-TI4GXJKO.js +0 -4277
  90. package/chunks/multipart-parser-3QWGTLK3.js +0 -384
  91. package/chunks/src-IPWIHNMI.js +0 -1406
@@ -29,7 +29,7 @@ import {
29
29
  getNpmVersion,
30
30
  loadSettings,
31
31
  mapDomainErrorToErrorKind
32
- } from "./chunk-4O2TWJK4.js";
32
+ } from "./chunk-X2474BTT.js";
33
33
  import {
34
34
  ClientSideConnection,
35
35
  PROTOCOL_VERSION,
@@ -38,7 +38,7 @@ import {
38
38
  import {
39
39
  writeStderrLine,
40
40
  writeStdoutLine
41
- } from "./chunk-QEXSIXLX.js";
41
+ } from "./chunk-PLYRQYKC.js";
42
42
  import {
43
43
  APPROVAL_MODES,
44
44
  BuiltinAgentRegistry,
@@ -56,16 +56,16 @@ import {
56
56
  loadIgnoreRules,
57
57
  require_once,
58
58
  writeWorkspaceContextFile
59
- } from "./chunk-7EHPK6TK.js";
59
+ } from "./chunk-2KEXT6RB.js";
60
60
  import "./chunk-24YKA2DA.js";
61
61
  import "./chunk-O4PICXES.js";
62
62
  import "./chunk-TW522KN6.js";
63
- import "./chunk-TI4GXJKO.js";
63
+ import "./chunk-7TQVELRB.js";
64
64
  import "./chunk-AKBFRR6J.js";
65
65
  import "./chunk-MLZQVCF3.js";
66
- import "./chunk-EMVEDSVZ.js";
66
+ import "./chunk-6O244QKR.js";
67
67
  import "./chunk-EY6BDW7Y.js";
68
- import "./chunk-HAQCNXSG.js";
68
+ import "./chunk-RQW7WUJR.js";
69
69
  import "./chunk-77WXWU44.js";
70
70
  import "./chunk-GVWPJCXU.js";
71
71
  import {
@@ -75,16 +75,16 @@ import {
75
75
  isBinaryFile,
76
76
  isWithinRoot,
77
77
  require_safer
78
- } from "./chunk-MEN6IEKX.js";
79
- import "./chunk-J5VCSWPA.js";
78
+ } from "./chunk-C5CUHYSM.js";
79
+ import "./chunk-3PJXIDKI.js";
80
80
  import "./chunk-UWCTAVOD.js";
81
81
  import "./chunk-W57YDFU5.js";
82
82
  import "./chunk-OFEVLU4C.js";
83
83
  import "./chunk-NQ3E7YLD.js";
84
- import "./chunk-ODPVJ6JJ.js";
85
- import "./chunk-UQRYJQBE.js";
84
+ import "./chunk-OJFMTECH.js";
85
+ import "./chunk-SOGUPKP6.js";
86
86
  import "./chunk-6RQTH7UQ.js";
87
- import "./chunk-R2B65CAN.js";
87
+ import "./chunk-JKUAX6UT.js";
88
88
  import {
89
89
  QwenOAuth2Client,
90
90
  QwenOAuthPollError,
@@ -93,14 +93,15 @@ import {
93
93
  isDeviceAuthorizationSuccess,
94
94
  isDeviceTokenPending,
95
95
  isDeviceTokenSuccess
96
- } from "./chunk-7YJIR2FX.js";
96
+ } from "./chunk-G4K6P5KN.js";
97
97
  import "./chunk-OIL7KDWV.js";
98
+ import "./chunk-HX3JRTWL.js";
98
99
  import {
99
100
  detectRuntime,
100
101
  redactProxyCredentials
101
- } from "./chunk-U2K6HDUJ.js";
102
- import "./chunk-6NUSWV4M.js";
103
- import "./chunk-HCSJIOLR.js";
102
+ } from "./chunk-QVJ33ZBG.js";
103
+ import "./chunk-TDZCEIK6.js";
104
+ import "./chunk-BNESGOSJ.js";
104
105
  import "./chunk-SZOEIL6S.js";
105
106
  import "./chunk-5IFG2VC4.js";
106
107
  import {
@@ -17271,6 +17272,20 @@ async function resolveWithinWorkspace(input, boundWorkspace, intent) {
17271
17272
  __name(resolveWithinWorkspace, "resolveWithinWorkspace");
17272
17273
 
17273
17274
  // packages/cli/src/serve/httpAcpBridge.ts
17275
+ function findChannelInfoForEntry(current, alive, entry) {
17276
+ if (current?.channel === entry.channel) return current;
17277
+ for (const info of alive) {
17278
+ if (info.channel === entry.channel) return info;
17279
+ }
17280
+ return void 0;
17281
+ }
17282
+ __name(findChannelInfoForEntry, "findChannelInfoForEntry");
17283
+ function detachSessionIdFromEntryChannel(current, alive, entry, sessionId) {
17284
+ const info = findChannelInfoForEntry(current, alive, entry);
17285
+ info?.sessionIds.delete(sessionId);
17286
+ return info;
17287
+ }
17288
+ __name(detachSessionIdFromEntryChannel, "detachSessionIdFromEntryChannel");
17274
17289
  var MAX_RESOLVED_PERMISSION_RECORDS = 512;
17275
17290
  function isServeDebugLoggingEnabled() {
17276
17291
  const value = process.env["QWEN_SERVE_DEBUG"];
@@ -18083,13 +18098,7 @@ function createHttpAcpBridge(opts) {
18083
18098
  if (!channelInfo || channelInfo.isDying) return void 0;
18084
18099
  return channelInfo;
18085
18100
  }, "liveChannelInfo");
18086
- const channelInfoForEntry = /* @__PURE__ */ __name((entry) => {
18087
- if (channelInfo?.channel === entry.channel) return channelInfo;
18088
- for (const info of aliveChannels) {
18089
- if (info.channel === entry.channel) return info;
18090
- }
18091
- return void 0;
18092
- }, "channelInfoForEntry");
18101
+ const channelInfoForEntry = /* @__PURE__ */ __name((entry) => findChannelInfoForEntry(channelInfo, aliveChannels, entry), "channelInfoForEntry");
18093
18102
  const getChannelClosedReject = /* @__PURE__ */ __name((info) => {
18094
18103
  if (!info.statusClosedReject) {
18095
18104
  info.statusClosedReject = info.channel.exited.then(() => {
@@ -18556,10 +18565,12 @@ function createHttpAcpBridge(opts) {
18556
18565
  `qwen serve: closing session ${JSON.stringify(sessionId)}` + (originatorClientId ? ` by client ${JSON.stringify(originatorClientId)}` : "")
18557
18566
  );
18558
18567
  if (defaultEntry === entry) defaultEntry = void 0;
18559
- const ci = channelInfo;
18560
- if (ci && ci.channel === entry.channel) {
18561
- ci.sessionIds.delete(sessionId);
18562
- }
18568
+ const ci = detachSessionIdFromEntryChannel(
18569
+ channelInfo,
18570
+ aliveChannels,
18571
+ entry,
18572
+ sessionId
18573
+ );
18563
18574
  for (const id of Array.from(entry.pendingPermissionIds)) {
18564
18575
  resolvePending(id, { outcome: { outcome: "cancelled" } });
18565
18576
  }
@@ -19057,10 +19068,12 @@ function createHttpAcpBridge(opts) {
19057
19068
  }
19058
19069
  if (defaultEntry === entry) defaultEntry = void 0;
19059
19070
  byId.delete(sessionId);
19060
- const ci = channelInfo;
19061
- if (ci && ci.channel === entry.channel) {
19062
- ci.sessionIds.delete(sessionId);
19063
- }
19071
+ const ci = detachSessionIdFromEntryChannel(
19072
+ channelInfo,
19073
+ aliveChannels,
19074
+ entry,
19075
+ sessionId
19076
+ );
19064
19077
  ci?.client.markSessionClosed(sessionId);
19065
19078
  for (const id of Array.from(entry.pendingPermissionIds)) {
19066
19079
  resolvePending(id, { outcome: { outcome: "cancelled" } });
@@ -7,33 +7,34 @@ import {
7
7
  buildLongRunningForegroundHint,
8
8
  detectBlockedSleepPattern,
9
9
  parseNumstat
10
- } from "./chunk-7EHPK6TK.js";
10
+ } from "./chunk-2KEXT6RB.js";
11
11
  import "./chunk-24YKA2DA.js";
12
12
  import "./chunk-O4PICXES.js";
13
13
  import "./chunk-TW522KN6.js";
14
- import "./chunk-TI4GXJKO.js";
14
+ import "./chunk-7TQVELRB.js";
15
15
  import "./chunk-AKBFRR6J.js";
16
16
  import "./chunk-MLZQVCF3.js";
17
- import "./chunk-EMVEDSVZ.js";
17
+ import "./chunk-6O244QKR.js";
18
18
  import "./chunk-EY6BDW7Y.js";
19
- import "./chunk-HAQCNXSG.js";
19
+ import "./chunk-RQW7WUJR.js";
20
20
  import "./chunk-77WXWU44.js";
21
21
  import "./chunk-GVWPJCXU.js";
22
- import "./chunk-MEN6IEKX.js";
23
- import "./chunk-J5VCSWPA.js";
22
+ import "./chunk-C5CUHYSM.js";
23
+ import "./chunk-3PJXIDKI.js";
24
24
  import "./chunk-UWCTAVOD.js";
25
25
  import "./chunk-W57YDFU5.js";
26
26
  import "./chunk-OFEVLU4C.js";
27
27
  import "./chunk-NQ3E7YLD.js";
28
- import "./chunk-ODPVJ6JJ.js";
29
- import "./chunk-UQRYJQBE.js";
28
+ import "./chunk-OJFMTECH.js";
29
+ import "./chunk-SOGUPKP6.js";
30
30
  import "./chunk-6RQTH7UQ.js";
31
- import "./chunk-R2B65CAN.js";
32
- import "./chunk-7YJIR2FX.js";
31
+ import "./chunk-JKUAX6UT.js";
32
+ import "./chunk-G4K6P5KN.js";
33
33
  import "./chunk-OIL7KDWV.js";
34
- import "./chunk-U2K6HDUJ.js";
35
- import "./chunk-6NUSWV4M.js";
36
- import "./chunk-HCSJIOLR.js";
34
+ import "./chunk-HX3JRTWL.js";
35
+ import "./chunk-QVJ33ZBG.js";
36
+ import "./chunk-TDZCEIK6.js";
37
+ import "./chunk-BNESGOSJ.js";
37
38
  import "./chunk-SZOEIL6S.js";
38
39
  import "./chunk-5IFG2VC4.js";
39
40
  import "./chunk-ACBGEKB7.js";
@@ -5,18 +5,18 @@ import {
5
5
  escapeXml,
6
6
  registerSkillHooks
7
7
  } from "./chunk-EY6BDW7Y.js";
8
- import "./chunk-HAQCNXSG.js";
8
+ import "./chunk-RQW7WUJR.js";
9
9
  import {
10
10
  SkillLaunchEvent,
11
11
  logSkillLaunch
12
- } from "./chunk-MEN6IEKX.js";
13
- import "./chunk-J5VCSWPA.js";
12
+ } from "./chunk-C5CUHYSM.js";
13
+ import "./chunk-3PJXIDKI.js";
14
14
  import "./chunk-UWCTAVOD.js";
15
15
  import "./chunk-W57YDFU5.js";
16
16
  import "./chunk-OFEVLU4C.js";
17
17
  import "./chunk-NQ3E7YLD.js";
18
- import "./chunk-ODPVJ6JJ.js";
19
- import "./chunk-UQRYJQBE.js";
18
+ import "./chunk-OJFMTECH.js";
19
+ import "./chunk-SOGUPKP6.js";
20
20
  import {
21
21
  ToolDisplayNames,
22
22
  ToolNames
@@ -24,9 +24,10 @@ import {
24
24
  import {
25
25
  BaseDeclarativeTool,
26
26
  BaseToolInvocation
27
- } from "./chunk-R2B65CAN.js";
28
- import "./chunk-6NUSWV4M.js";
29
- import "./chunk-HCSJIOLR.js";
27
+ } from "./chunk-JKUAX6UT.js";
28
+ import "./chunk-HX3JRTWL.js";
29
+ import "./chunk-TDZCEIK6.js";
30
+ import "./chunk-BNESGOSJ.js";
30
31
  import "./chunk-SZOEIL6S.js";
31
32
  import "./chunk-5IFG2VC4.js";
32
33
  import {
@@ -1,9 +1,5 @@
1
1
  // Force strict mode and setup for ESM
2
2
  "use strict";
3
- import {
4
- dist_default,
5
- init_dist
6
- } from "./chunk-EM6ETG2K.js";
7
3
  import {
8
4
  FormData,
9
5
  blobFrom,
@@ -26,10 +22,56 @@ import {
26
22
  __name
27
23
  } from "./chunk-J2S4EL5Y.js";
28
24
 
29
- // packages/core/node_modules/node-fetch/src/errors/base.js
25
+ // node_modules/data-uri-to-buffer/dist/index.js
26
+ function dataUriToBuffer(uri) {
27
+ if (!/^data:/i.test(uri)) {
28
+ throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');
29
+ }
30
+ uri = uri.replace(/\r?\n/g, "");
31
+ const firstComma = uri.indexOf(",");
32
+ if (firstComma === -1 || firstComma <= 4) {
33
+ throw new TypeError("malformed data: URI");
34
+ }
35
+ const meta = uri.substring(5, firstComma).split(";");
36
+ let charset = "";
37
+ let base64 = false;
38
+ const type = meta[0] || "text/plain";
39
+ let typeFull = type;
40
+ for (let i = 1; i < meta.length; i++) {
41
+ if (meta[i] === "base64") {
42
+ base64 = true;
43
+ } else if (meta[i]) {
44
+ typeFull += `;${meta[i]}`;
45
+ if (meta[i].indexOf("charset=") === 0) {
46
+ charset = meta[i].substring(8);
47
+ }
48
+ }
49
+ }
50
+ if (!meta[0] && !charset.length) {
51
+ typeFull += ";charset=US-ASCII";
52
+ charset = "US-ASCII";
53
+ }
54
+ const encoding = base64 ? "base64" : "ascii";
55
+ const data = unescape(uri.substring(firstComma + 1));
56
+ const buffer = Buffer.from(data, encoding);
57
+ buffer.type = type;
58
+ buffer.typeFull = typeFull;
59
+ buffer.charset = charset;
60
+ return buffer;
61
+ }
62
+ var dist_default;
63
+ var init_dist = __esm({
64
+ "node_modules/data-uri-to-buffer/dist/index.js"() {
65
+ init_esbuild_shims();
66
+ __name(dataUriToBuffer, "dataUriToBuffer");
67
+ dist_default = dataUriToBuffer;
68
+ }
69
+ });
70
+
71
+ // node_modules/gaxios/node_modules/node-fetch/src/errors/base.js
30
72
  var FetchBaseError;
31
73
  var init_base = __esm({
32
- "packages/core/node_modules/node-fetch/src/errors/base.js"() {
74
+ "node_modules/gaxios/node_modules/node-fetch/src/errors/base.js"() {
33
75
  init_esbuild_shims();
34
76
  FetchBaseError = class extends Error {
35
77
  static {
@@ -50,10 +92,10 @@ var init_base = __esm({
50
92
  }
51
93
  });
52
94
 
53
- // packages/core/node_modules/node-fetch/src/errors/fetch-error.js
95
+ // node_modules/gaxios/node_modules/node-fetch/src/errors/fetch-error.js
54
96
  var FetchError;
55
97
  var init_fetch_error = __esm({
56
- "packages/core/node_modules/node-fetch/src/errors/fetch-error.js"() {
98
+ "node_modules/gaxios/node_modules/node-fetch/src/errors/fetch-error.js"() {
57
99
  init_esbuild_shims();
58
100
  init_base();
59
101
  FetchError = class extends FetchBaseError {
@@ -76,10 +118,10 @@ var init_fetch_error = __esm({
76
118
  }
77
119
  });
78
120
 
79
- // packages/core/node_modules/node-fetch/src/utils/is.js
121
+ // node_modules/gaxios/node_modules/node-fetch/src/utils/is.js
80
122
  var NAME, isURLSearchParameters, isBlob, isAbortSignal, isDomainOrSubdomain, isSameProtocol;
81
123
  var init_is = __esm({
82
- "packages/core/node_modules/node-fetch/src/utils/is.js"() {
124
+ "node_modules/gaxios/node_modules/node-fetch/src/utils/is.js"() {
83
125
  init_esbuild_shims();
84
126
  NAME = Symbol.toStringTag;
85
127
  isURLSearchParameters = /* @__PURE__ */ __name((object) => {
@@ -104,10 +146,10 @@ var init_is = __esm({
104
146
  }
105
147
  });
106
148
 
107
- // packages/core/node_modules/node-fetch/src/body.js
149
+ // node_modules/gaxios/node_modules/node-fetch/src/body.js
108
150
  import Stream, { PassThrough } from "node:stream";
109
151
  import { types, deprecate, promisify } from "node:util";
110
- import { Buffer } from "node:buffer";
152
+ import { Buffer as Buffer2 } from "node:buffer";
111
153
  async function consumeBody(data) {
112
154
  if (data[INTERNALS].disturbed) {
113
155
  throw new TypeError(`body used already for: ${data.url}`);
@@ -118,10 +160,10 @@ async function consumeBody(data) {
118
160
  }
119
161
  const { body } = data;
120
162
  if (body === null) {
121
- return Buffer.alloc(0);
163
+ return Buffer2.alloc(0);
122
164
  }
123
165
  if (!(body instanceof Stream)) {
124
- return Buffer.alloc(0);
166
+ return Buffer2.alloc(0);
125
167
  }
126
168
  const accum = [];
127
169
  let accumBytes = 0;
@@ -142,9 +184,9 @@ async function consumeBody(data) {
142
184
  if (body.readableEnded === true || body._readableState.ended === true) {
143
185
  try {
144
186
  if (accum.every((c) => typeof c === "string")) {
145
- return Buffer.from(accum.join(""));
187
+ return Buffer2.from(accum.join(""));
146
188
  }
147
- return Buffer.concat(accum, accumBytes);
189
+ return Buffer2.concat(accum, accumBytes);
148
190
  } catch (error) {
149
191
  throw new FetchError(`Could not create Buffer from response body for ${data.url}: ${error.message}`, "system", error);
150
192
  }
@@ -154,7 +196,7 @@ async function consumeBody(data) {
154
196
  }
155
197
  var pipeline, INTERNALS, Body, clone, getNonSpecFormDataBoundary, extractContentType, getTotalBytes, writeToStream;
156
198
  var init_body = __esm({
157
- "packages/core/node_modules/node-fetch/src/body.js"() {
199
+ "node_modules/gaxios/node_modules/node-fetch/src/body.js"() {
158
200
  init_esbuild_shims();
159
201
  init_fetch_blob();
160
202
  init_esm_min();
@@ -174,22 +216,22 @@ var init_body = __esm({
174
216
  if (body === null) {
175
217
  body = null;
176
218
  } else if (isURLSearchParameters(body)) {
177
- body = Buffer.from(body.toString());
219
+ body = Buffer2.from(body.toString());
178
220
  } else if (isBlob(body)) {
179
- } else if (Buffer.isBuffer(body)) {
221
+ } else if (Buffer2.isBuffer(body)) {
180
222
  } else if (types.isAnyArrayBuffer(body)) {
181
- body = Buffer.from(body);
223
+ body = Buffer2.from(body);
182
224
  } else if (ArrayBuffer.isView(body)) {
183
- body = Buffer.from(body.buffer, body.byteOffset, body.byteLength);
225
+ body = Buffer2.from(body.buffer, body.byteOffset, body.byteLength);
184
226
  } else if (body instanceof Stream) {
185
227
  } else if (body instanceof FormData) {
186
228
  body = formDataToBlob(body);
187
229
  boundary = body.type.split("=")[1];
188
230
  } else {
189
- body = Buffer.from(String(body));
231
+ body = Buffer2.from(String(body));
190
232
  }
191
233
  let stream = body;
192
- if (Buffer.isBuffer(body)) {
234
+ if (Buffer2.isBuffer(body)) {
193
235
  stream = Stream.Readable.from(body);
194
236
  } else if (isBlob(body)) {
195
237
  stream = Stream.Readable.from(body.stream());
@@ -234,7 +276,7 @@ var init_body = __esm({
234
276
  }
235
277
  return formData;
236
278
  }
237
- const { toFormData } = await import("./multipart-parser-3QWGTLK3.js");
279
+ const { toFormData } = await import("./multipart-parser-AJ4WASWR.js");
238
280
  return toFormData(this.body, ct);
239
281
  }
240
282
  /**
@@ -327,7 +369,7 @@ var init_body = __esm({
327
369
  if (isBlob(body)) {
328
370
  return body.type || null;
329
371
  }
330
- if (Buffer.isBuffer(body) || types.isAnyArrayBuffer(body) || ArrayBuffer.isView(body)) {
372
+ if (Buffer2.isBuffer(body) || types.isAnyArrayBuffer(body) || ArrayBuffer.isView(body)) {
331
373
  return null;
332
374
  }
333
375
  if (body instanceof FormData) {
@@ -349,7 +391,7 @@ var init_body = __esm({
349
391
  if (isBlob(body)) {
350
392
  return body.size;
351
393
  }
352
- if (Buffer.isBuffer(body)) {
394
+ if (Buffer2.isBuffer(body)) {
353
395
  return body.length;
354
396
  }
355
397
  if (body && typeof body.getLengthSync === "function") {
@@ -367,7 +409,7 @@ var init_body = __esm({
367
409
  }
368
410
  });
369
411
 
370
- // packages/core/node_modules/node-fetch/src/headers.js
412
+ // node_modules/gaxios/node_modules/node-fetch/src/headers.js
371
413
  import { types as types2 } from "node:util";
372
414
  import http from "node:http";
373
415
  function fromRawHeaders(headers = []) {
@@ -390,7 +432,7 @@ function fromRawHeaders(headers = []) {
390
432
  }
391
433
  var validateHeaderName, validateHeaderValue, Headers;
392
434
  var init_headers = __esm({
393
- "packages/core/node_modules/node-fetch/src/headers.js"() {
435
+ "node_modules/gaxios/node_modules/node-fetch/src/headers.js"() {
394
436
  init_esbuild_shims();
395
437
  validateHeaderName = typeof http.validateHeaderName === "function" ? http.validateHeaderName : (name) => {
396
438
  if (!/^[\^`\-\w!#$%&'*+.|~]+$/.test(name)) {
@@ -563,10 +605,10 @@ var init_headers = __esm({
563
605
  }
564
606
  });
565
607
 
566
- // packages/core/node_modules/node-fetch/src/utils/is-redirect.js
608
+ // node_modules/gaxios/node_modules/node-fetch/src/utils/is-redirect.js
567
609
  var redirectStatus, isRedirect;
568
610
  var init_is_redirect = __esm({
569
- "packages/core/node_modules/node-fetch/src/utils/is-redirect.js"() {
611
+ "node_modules/gaxios/node_modules/node-fetch/src/utils/is-redirect.js"() {
570
612
  init_esbuild_shims();
571
613
  redirectStatus = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
572
614
  isRedirect = /* @__PURE__ */ __name((code) => {
@@ -575,10 +617,10 @@ var init_is_redirect = __esm({
575
617
  }
576
618
  });
577
619
 
578
- // packages/core/node_modules/node-fetch/src/response.js
620
+ // node_modules/gaxios/node_modules/node-fetch/src/response.js
579
621
  var INTERNALS2, Response;
580
622
  var init_response = __esm({
581
- "packages/core/node_modules/node-fetch/src/response.js"() {
623
+ "node_modules/gaxios/node_modules/node-fetch/src/response.js"() {
582
624
  init_esbuild_shims();
583
625
  init_headers();
584
626
  init_body();
@@ -705,10 +747,10 @@ var init_response = __esm({
705
747
  }
706
748
  });
707
749
 
708
- // packages/core/node_modules/node-fetch/src/utils/get-search.js
750
+ // node_modules/gaxios/node_modules/node-fetch/src/utils/get-search.js
709
751
  var getSearch;
710
752
  var init_get_search = __esm({
711
- "packages/core/node_modules/node-fetch/src/utils/get-search.js"() {
753
+ "node_modules/gaxios/node_modules/node-fetch/src/utils/get-search.js"() {
712
754
  init_esbuild_shims();
713
755
  getSearch = /* @__PURE__ */ __name((parsedURL) => {
714
756
  if (parsedURL.search) {
@@ -721,7 +763,7 @@ var init_get_search = __esm({
721
763
  }
722
764
  });
723
765
 
724
- // packages/core/node_modules/node-fetch/src/utils/referrer.js
766
+ // node_modules/gaxios/node_modules/node-fetch/src/utils/referrer.js
725
767
  import { isIP } from "node:net";
726
768
  function stripURLForUseAsAReferrer(url, originOnly = false) {
727
769
  if (url == null) {
@@ -850,7 +892,7 @@ function parseReferrerPolicyFromHeader(headers) {
850
892
  }
851
893
  var ReferrerPolicy, DEFAULT_REFERRER_POLICY;
852
894
  var init_referrer = __esm({
853
- "packages/core/node_modules/node-fetch/src/utils/referrer.js"() {
895
+ "node_modules/gaxios/node_modules/node-fetch/src/utils/referrer.js"() {
854
896
  init_esbuild_shims();
855
897
  __name(stripURLForUseAsAReferrer, "stripURLForUseAsAReferrer");
856
898
  ReferrerPolicy = /* @__PURE__ */ new Set([
@@ -873,12 +915,12 @@ var init_referrer = __esm({
873
915
  }
874
916
  });
875
917
 
876
- // packages/core/node_modules/node-fetch/src/request.js
918
+ // node_modules/gaxios/node_modules/node-fetch/src/request.js
877
919
  import { format as formatUrl } from "node:url";
878
920
  import { deprecate as deprecate2 } from "node:util";
879
921
  var INTERNALS3, isRequest, doBadDataWarn, Request, getNodeRequestOptions;
880
922
  var init_request = __esm({
881
- "packages/core/node_modules/node-fetch/src/request.js"() {
923
+ "node_modules/gaxios/node_modules/node-fetch/src/request.js"() {
882
924
  init_esbuild_shims();
883
925
  init_headers();
884
926
  init_body();
@@ -1082,10 +1124,10 @@ var init_request = __esm({
1082
1124
  }
1083
1125
  });
1084
1126
 
1085
- // packages/core/node_modules/node-fetch/src/errors/abort-error.js
1127
+ // node_modules/gaxios/node_modules/node-fetch/src/errors/abort-error.js
1086
1128
  var AbortError;
1087
1129
  var init_abort_error = __esm({
1088
- "packages/core/node_modules/node-fetch/src/errors/abort-error.js"() {
1130
+ "node_modules/gaxios/node_modules/node-fetch/src/errors/abort-error.js"() {
1089
1131
  init_esbuild_shims();
1090
1132
  init_base();
1091
1133
  AbortError = class extends FetchBaseError {
@@ -1099,12 +1141,12 @@ var init_abort_error = __esm({
1099
1141
  }
1100
1142
  });
1101
1143
 
1102
- // packages/core/node_modules/node-fetch/src/index.js
1144
+ // node_modules/gaxios/node_modules/node-fetch/src/index.js
1103
1145
  import http2 from "node:http";
1104
1146
  import https from "node:https";
1105
1147
  import zlib from "node:zlib";
1106
1148
  import Stream2, { PassThrough as PassThrough2, pipeline as pump } from "node:stream";
1107
- import { Buffer as Buffer2 } from "node:buffer";
1149
+ import { Buffer as Buffer3 } from "node:buffer";
1108
1150
  async function fetch(url, options_) {
1109
1151
  return new Promise((resolve, reject) => {
1110
1152
  const request = new Request(url, options_);
@@ -1335,7 +1377,7 @@ async function fetch(url, options_) {
1335
1377
  });
1336
1378
  }
1337
1379
  function fixResponseChunkedTransferBadEnding(request, errorCallback) {
1338
- const LAST_CHUNK = Buffer2.from("0\r\n\r\n");
1380
+ const LAST_CHUNK = Buffer3.from("0\r\n\r\n");
1339
1381
  let isChunkedTransfer = false;
1340
1382
  let properLastChunkReceived = false;
1341
1383
  let previousChunk;
@@ -1352,9 +1394,9 @@ function fixResponseChunkedTransferBadEnding(request, errorCallback) {
1352
1394
  }
1353
1395
  }, "onSocketClose");
1354
1396
  const onData = /* @__PURE__ */ __name((buf) => {
1355
- properLastChunkReceived = Buffer2.compare(buf.slice(-5), LAST_CHUNK) === 0;
1397
+ properLastChunkReceived = Buffer3.compare(buf.slice(-5), LAST_CHUNK) === 0;
1356
1398
  if (!properLastChunkReceived && previousChunk) {
1357
- properLastChunkReceived = Buffer2.compare(previousChunk.slice(-3), LAST_CHUNK.slice(0, 3)) === 0 && Buffer2.compare(buf.slice(-2), LAST_CHUNK.slice(3)) === 0;
1399
+ properLastChunkReceived = Buffer3.compare(previousChunk.slice(-3), LAST_CHUNK.slice(0, 3)) === 0 && Buffer3.compare(buf.slice(-2), LAST_CHUNK.slice(3)) === 0;
1358
1400
  }
1359
1401
  previousChunk = buf;
1360
1402
  }, "onData");
@@ -1368,7 +1410,7 @@ function fixResponseChunkedTransferBadEnding(request, errorCallback) {
1368
1410
  }
1369
1411
  var supportedSchemas;
1370
1412
  var init_src = __esm({
1371
- "packages/core/node_modules/node-fetch/src/index.js"() {
1413
+ "node_modules/gaxios/node_modules/node-fetch/src/index.js"() {
1372
1414
  init_esbuild_shims();
1373
1415
  init_dist();
1374
1416
  init_body();