@mmmbuto/qwen-code-termux 0.16.1-termux → 0.18.0-termux
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.
- package/README.md +79 -109
- package/bundled/new-app/SKILL.md +22 -0
- package/bundled/qc-helper/SKILL.md +29 -24
- package/bundled/qc-helper/docs/_meta.ts +1 -0
- package/bundled/qc-helper/docs/configuration/_meta.ts +0 -3
- package/bundled/qc-helper/docs/configuration/settings.md +37 -31
- package/bundled/qc-helper/docs/configuration/themes.md +39 -0
- package/bundled/qc-helper/docs/features/_meta.ts +1 -3
- package/bundled/qc-helper/docs/features/approval-mode.md +35 -35
- package/bundled/qc-helper/docs/features/auto-mode.md +54 -9
- package/bundled/qc-helper/docs/features/channels/_meta.ts +1 -0
- package/bundled/qc-helper/docs/features/channels/feishu.md +170 -0
- package/bundled/qc-helper/docs/features/commands.md +115 -35
- package/bundled/qc-helper/docs/features/followup-suggestions.md +2 -2
- package/bundled/qc-helper/docs/features/headless.md +32 -0
- package/bundled/qc-helper/docs/features/markdown-rendering.md +21 -1
- package/bundled/qc-helper/docs/features/memory.md +22 -5
- package/bundled/qc-helper/docs/features/scheduled-tasks.md +1 -1
- package/bundled/qc-helper/docs/features/status-line.md +168 -32
- package/bundled/qc-helper/docs/features/sub-agents.md +60 -0
- package/bundled/qc-helper/docs/features/worktree.md +345 -0
- package/bundled/qc-helper/docs/overview.md +4 -4
- package/bundled/qc-helper/docs/quickstart.md +4 -4
- package/bundled/qc-helper/docs/qwen-serve-deploy-local.md +221 -0
- package/bundled/qc-helper/docs/qwen-serve.md +234 -24
- package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +16 -0
- package/bundled/qc-helper/docs/support/Uninstall.md +19 -1
- package/bundled/qc-helper/docs/support/troubleshooting.md +2 -1
- package/bundled/simplify/SKILL.md +123 -0
- package/chunks/agent-IDS4HMOX.js +56 -0
- package/chunks/agent-headless-5Q2EUSPS.js +50 -0
- package/chunks/{anthropicContentGenerator-SSGKR6DO.js → anthropicContentGenerator-2HBRNQ3B.js} +52 -9
- package/chunks/{askUserQuestion-PJWUUXKN.js → askUserQuestion-75TDJVK2.js} +45 -3
- package/chunks/{ca-UZ7BANMN.js → ca-BARBRL6N.js} +89 -5
- package/chunks/{chunk-GGNTZ2NH.js → chunk-2Y5SYSD3.js} +368 -597
- package/chunks/{chunk-2LA2TREA.js → chunk-3AA2DK35.js} +1448 -207
- package/chunks/{chunk-I2V5WXHJ.js → chunk-3AUHFMSK.js} +80 -38
- package/chunks/chunk-3DHXZ6EV.js +241 -0
- package/chunks/{chunk-PR4T27R7.js → chunk-3HTIVKZE.js} +42 -8
- package/chunks/chunk-3HX5LZ6R.js +1798 -0
- package/chunks/chunk-3PJXIDKI.js +2517 -0
- package/chunks/{chunk-MYAKAFEC.js → chunk-55ZMG67I.js} +7451 -3517
- package/chunks/{chunk-66CXYE4B.js → chunk-5IFG2VC4.js} +293 -242
- package/chunks/chunk-64WXLC72.js +98 -0
- package/chunks/{chunk-C6WMLUNB.js → chunk-72LDN5PP.js} +1 -1
- package/chunks/{chunk-F23NCRJ2.js → chunk-A7B4ISQP.js} +1 -1
- package/chunks/chunk-B7HXHOHU.js +393 -0
- package/chunks/{chunk-XEGHDASV.js → chunk-D3RHSPAS.js} +435 -540
- package/chunks/{chunk-XKS5KBFJ.js → chunk-EYENRK4D.js} +694 -384
- package/chunks/chunk-H6BD2ELD.js +36 -0
- package/chunks/{chunk-XP27SJMH.js → chunk-HR7SV7AY.js} +79 -48
- package/chunks/{chunk-D5NTAHYL.js → chunk-IDX6COTE.js} +7 -2
- package/chunks/{chunk-SHT4VJWU.js → chunk-IWKSG2AR.js} +2 -2
- package/chunks/chunk-J37FGIOA.js +1623 -0
- package/chunks/chunk-J5MDQKJL.js +2230 -0
- package/chunks/{chunk-USE2VQ5P.js → chunk-JTQAQBTV.js} +21 -0
- package/chunks/{chunk-NCTLV2NB.js → chunk-KQJMQJPI.js} +1 -1
- package/chunks/{chunk-5FBA5XC2.js → chunk-KRIHGKNA.js} +1 -1
- package/chunks/chunk-LD2XBG6Z.js +102 -0
- package/chunks/{chunk-MAY32HXD.js → chunk-M6VTDSVR.js} +3 -1
- package/chunks/chunk-MRO43B25.js +30 -0
- package/chunks/{chunk-N4WOREMD.js → chunk-NVFMZBX2.js} +43 -3
- package/chunks/chunk-OHEGWO4L.js +264 -0
- package/chunks/{chunk-K6O2NBMF.js → chunk-OQ7NJIY7.js} +4604 -6397
- package/chunks/chunk-QQDPRDVW.js +25 -0
- package/chunks/{chunk-KXZ4TJB4.js → chunk-SEGYWKIH.js} +1 -1
- package/chunks/chunk-SKBPNJEW.js +45 -0
- package/chunks/{chunk-4AOCVI6J.js → chunk-SNGELLWX.js} +52 -6
- package/chunks/{chunk-3OCRHZA3.js → chunk-TD4OPI4T.js} +56742 -44104
- package/chunks/{chunk-DQ4QTG7E.js → chunk-VV4F63BD.js} +11 -11
- package/chunks/chunk-XBY7E2FX.js +605 -0
- package/chunks/{chunk-JKMBWLFB.js → chunk-YILFYI5W.js} +48 -26
- package/chunks/chunk-YOGAOMYB.js +159 -0
- package/chunks/{chunk-QWSRH265.js → chunk-Z2Z3GUXZ.js} +777 -776
- package/chunks/{chunk-SDHRQFOS.js → chunk-ZTZ4DDQE.js} +2 -2
- package/chunks/computer-use-W2TYQNEE.js +825 -0
- package/chunks/contextCommand-6FGX3A7J.js +52 -0
- package/chunks/{cron-create-3ZBBN7WB.js → cron-create-APL5LU6I.js} +3 -3
- package/chunks/{cron-delete-NAGKKIIG.js → cron-delete-4SBJSCN4.js} +3 -3
- package/chunks/{cron-list-PAGRXNAI.js → cron-list-2AMGOMVO.js} +3 -3
- package/chunks/{de-V4IE2OOZ.js → de-YGKK2BC4.js} +89 -5
- package/chunks/{devtools-TWVXEJQB.js → devtools-FM6GJPYG.js} +2 -1
- package/chunks/{dist-4L54HRX2.js → dist-4LXD6L6X.js} +24 -5
- package/chunks/dist-H6ONXVLG.js +94146 -0
- package/chunks/{dist-XKWIWPWQ.js → dist-KAZ3SEBX.js} +1083 -3856
- package/chunks/{dist-BXDUQ2QY.js → dist-PK7DFCAW.js} +1 -1
- package/chunks/{edit-NVO3FOAK.js → edit-ZCEZC264.js} +30 -22
- package/chunks/{en-HGJ2SPLM.js → en-DHGYHIHX.js} +127 -6
- package/chunks/{enter-worktree-UEBG4WFC.js → enter-worktree-BBHCFCHG.js} +30 -20
- package/chunks/enterPlanMode-3M6KTD3B.js +158 -0
- package/chunks/{exit-worktree-UZ3MAQZN.js → exit-worktree-73YPIEQO.js} +27 -19
- package/chunks/exitPlanMode-TYZM6BAE.js +703 -0
- package/chunks/{fr-CJULI7ZX.js → fr-JXBKPJKQ.js} +89 -5
- package/chunks/{geminiContentGenerator-3UZFXGNT.js → geminiContentGenerator-7N2V3VW2.js} +8 -6
- package/chunks/{getMachineId-bsd-JXOSIJV2.js → getMachineId-bsd-4CASPIU4.js} +4 -4
- package/chunks/{getMachineId-darwin-TE4QRR42.js → getMachineId-darwin-HPQPEMZR.js} +4 -4
- package/chunks/{getMachineId-linux-S3OL52XK.js → getMachineId-linux-AUARKYHL.js} +3 -3
- package/chunks/{getMachineId-unsupported-DWUSBAPX.js → getMachineId-unsupported-S32ZDA2T.js} +3 -3
- package/chunks/{getMachineId-win-AAC5P3AP.js → getMachineId-win-4EFLHYIJ.js} +4 -4
- package/chunks/{glob-KNHSFFFG.js → glob-5XBCPQ2A.js} +27 -19
- package/chunks/{grep-LACWDZW4.js → grep-VIUU3A7X.js} +30 -19
- package/chunks/{ja-L7CHRQEW.js → ja-TGPZSP2B.js} +89 -5
- package/chunks/{keychain-token-storage-335UOLJ6.js → keychain-token-storage-6IU6ORQN.js} +3 -3
- package/chunks/{ls-AGXQOKSG.js → ls-JRGYIGLY.js} +4 -4
- package/chunks/{lsp-UDMUHNPA.js → lsp-SHMKFOAC.js} +3 -3
- package/chunks/{monitor-ETKWPJEH.js → monitor-6R4LIJL5.js} +40 -25
- package/chunks/{multipart-parser-3QWGTLK3.js → multipart-parser-AJ4WASWR.js} +2 -2
- package/chunks/{notebook-edit-QJJLPNYT.js → notebook-edit-5E7ULDVQ.js} +28 -20
- package/chunks/{openaiContentGenerator-CNNN424U.js → openaiContentGenerator-ZVHFKM3O.js} +17 -14
- package/chunks/{pt-M6JULLEQ.js → pt-TIBG6BIO.js} +89 -5
- package/chunks/{qwenContentGenerator-BOLCGK3R.js → qwenContentGenerator-B2VTVSPJ.js} +31 -23
- package/chunks/{qwenOAuth2-EEJGROP7.js → qwenOAuth2-2KCKWDCF.js} +6 -4
- package/chunks/read-file-GIT7BCDR.js +27 -0
- package/chunks/ripGrep-MWKFVYMS.js +48 -0
- package/chunks/{ru-QILM4HBC.js → ru-JBCHCK4L.js} +89 -5
- package/chunks/scheduler-5VOOYGBH.js +308 -0
- package/chunks/send-message-4QNWQJF4.js +244 -0
- package/chunks/{serve-OLSI7WSR.js → serve-MN6HZBWN.js} +14262 -7414
- package/chunks/shell-NQZQGFM2.js +56 -0
- package/chunks/{skill-D6YRHTTI.js → skill-WCFW4644.js} +145 -119
- package/chunks/{src-TMOD5X6F.js → src-7XL4G4DC.js} +88 -46
- package/chunks/{src-4QH4FZ6I.js → src-IHA6DTUV.js} +452 -62
- package/chunks/{syntheticOutput-5PVFDDJ4.js → syntheticOutput-YTYS2ZMQ.js} +4 -4
- package/chunks/task-create-MPORPYN6.js +19 -0
- package/chunks/task-list-R2YDYPZT.js +151 -0
- package/chunks/{task-stop-AJKPSR6R.js → task-stop-SYWJYBCM.js} +3 -3
- package/chunks/task-update-E4NSLKMQ.js +408 -0
- package/chunks/team-create-7R7KA5IP.js +314 -0
- package/chunks/team-delete-25OIWUPN.js +116 -0
- package/chunks/{todoWrite-VLAUG4CA.js → todoWrite-4YHMIF4X.js} +16 -5
- package/chunks/{tool-search-MZGHUUKD.js → tool-search-YBRVZCLI.js} +29 -11
- package/chunks/{tts-notification-K3X7X7MN.js → tts-notification-7SOEMQK4.js} +5 -4
- package/chunks/{web-fetch-OILB464A.js → web-fetch-MFIRHIHI.js} +5 -5
- package/chunks/workflow-5RIKVCIE.js +960 -0
- package/chunks/{write-file-BIQAA57V.js → write-file-DMQTJZOM.js} +32 -24
- package/chunks/{zh-PWL2NKY3.js → zh-7H5OQC4I.js} +135 -11
- package/chunks/{zh-TW-S3YGWICZ.js → zh-TW-P4IDHD3M.js} +128 -11
- package/cli.js +45402 -20570
- package/examples/agent/agents/diary.md +86 -0
- package/examples/agent/qwen-extension.json +5 -0
- package/examples/commands/commands/fs/grep-code.md +3 -0
- package/examples/commands/qwen-extension.json +5 -0
- package/examples/context/QWEN.md +8 -0
- package/examples/context/qwen-extension.json +5 -0
- package/examples/mcp-server/example.ts +60 -0
- package/examples/mcp-server/package.json +18 -0
- package/examples/mcp-server/qwen-extension.json +12 -0
- package/examples/mcp-server/tsconfig.json +13 -0
- package/examples/skills/qwen-extension.json +5 -0
- package/examples/skills/skills/synonyms/SKILL.md +48 -0
- package/examples/starter/QWEN.md +30 -0
- package/examples/starter/README.md +59 -0
- package/examples/starter/agents/diary.md +86 -0
- package/examples/starter/commands/writing/polish.md +13 -0
- package/examples/starter/example.ts +64 -0
- package/examples/starter/package.json +18 -0
- package/examples/starter/qwen-extension.json +12 -0
- package/examples/starter/skills/synonyms/SKILL.md +48 -0
- package/examples/starter/tsconfig.json +13 -0
- package/fzfWorker.js +1083 -0
- package/locales/ca.js +118 -5
- package/locales/de.js +117 -5
- package/locales/en.js +169 -7
- package/locales/fr.js +119 -5
- package/locales/ja.js +114 -5
- package/locales/pt.js +117 -5
- package/locales/ru.js +116 -5
- package/locales/zh-TW.js +161 -12
- package/locales/zh.js +169 -12
- package/package.json +4 -2
- package/scripts/postinstall.cjs +2 -1
- package/bundled/qc-helper/docs/features/checkpointing.md +0 -77
- package/chunks/agent-7ZN3CRHR.js +0 -48
- package/chunks/chunk-6PCB2DEF.js +0 -434
- package/chunks/chunk-EM6ETG2K.js +0 -60
- package/chunks/chunk-G7YTSRES.js +0 -150
- package/chunks/contextCommand-7IBASARL.js +0 -44
- package/chunks/exitPlanMode-PZAMWIRW.js +0 -227
- package/chunks/multipart-parser-IXGBIOIN.js +0 -384
- package/chunks/read-file-CCUEUFG2.js +0 -24
- package/chunks/ripGrep-TADOH2HK.js +0 -40
- package/chunks/send-message-YL44UZFC.js +0 -151
- package/chunks/shell-7KKKC5G7.js +0 -48
- package/chunks/src-IPWIHNMI.js +0 -1406
- package/chunks/undici-F6ZOXSS5.js +0 -8
|
@@ -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
|
-
//
|
|
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
|
-
"
|
|
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
|
-
//
|
|
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
|
-
"
|
|
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
|
-
//
|
|
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
|
-
"
|
|
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
|
-
//
|
|
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
|
|
163
|
+
return Buffer2.alloc(0);
|
|
122
164
|
}
|
|
123
165
|
if (!(body instanceof Stream)) {
|
|
124
|
-
return
|
|
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
|
|
187
|
+
return Buffer2.from(accum.join(""));
|
|
146
188
|
}
|
|
147
|
-
return
|
|
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
|
-
"
|
|
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 =
|
|
219
|
+
body = Buffer2.from(body.toString());
|
|
178
220
|
} else if (isBlob(body)) {
|
|
179
|
-
} else if (
|
|
221
|
+
} else if (Buffer2.isBuffer(body)) {
|
|
180
222
|
} else if (types.isAnyArrayBuffer(body)) {
|
|
181
|
-
body =
|
|
223
|
+
body = Buffer2.from(body);
|
|
182
224
|
} else if (ArrayBuffer.isView(body)) {
|
|
183
|
-
body =
|
|
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 =
|
|
231
|
+
body = Buffer2.from(String(body));
|
|
190
232
|
}
|
|
191
233
|
let stream = body;
|
|
192
|
-
if (
|
|
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-
|
|
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 (
|
|
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 (
|
|
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
|
-
//
|
|
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
|
-
"
|
|
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
|
-
//
|
|
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
|
-
"
|
|
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
|
-
//
|
|
620
|
+
// node_modules/gaxios/node_modules/node-fetch/src/response.js
|
|
579
621
|
var INTERNALS2, Response;
|
|
580
622
|
var init_response = __esm({
|
|
581
|
-
"
|
|
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
|
-
//
|
|
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
|
-
"
|
|
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
|
-
//
|
|
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
|
-
"
|
|
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
|
-
//
|
|
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
|
-
"
|
|
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
|
-
//
|
|
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
|
-
"
|
|
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
|
-
//
|
|
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
|
|
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 =
|
|
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 =
|
|
1397
|
+
properLastChunkReceived = Buffer3.compare(buf.slice(-5), LAST_CHUNK) === 0;
|
|
1356
1398
|
if (!properLastChunkReceived && previousChunk) {
|
|
1357
|
-
properLastChunkReceived =
|
|
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
|
-
"
|
|
1413
|
+
"node_modules/gaxios/node_modules/node-fetch/src/index.js"() {
|
|
1372
1414
|
init_esbuild_shims();
|
|
1373
1415
|
init_dist();
|
|
1374
1416
|
init_body();
|