@wirecat/drive-cli 0.59.0 → 0.61.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.
- package/README.md +4 -5
- package/dist/bin/drive.js +2 -2
- package/dist/bin/drive.js.map +1 -1
- package/dist/bundle/{all-profiles-CVISDGMF.js → all-profiles-H4L3Z5UM.js} +14 -14
- package/dist/bundle/{anthropic-WLNQC23G.js → anthropic-PPGFISVP.js} +9 -9
- package/dist/bundle/{app-server-P2VOONXF.js → app-server-YXVK2FUZ.js} +52 -52
- package/dist/bundle/{bun-CDFBNTKV.js → bun-DKZAL6ML.js} +2 -2
- package/dist/bundle/{bun-sqlite-MNZICITP.js → bun-sqlite-MTZY36QK.js} +8 -8
- package/dist/bundle/{chunk-TFH5X46A.js → chunk-2RJA4BQB.js} +19 -19
- package/dist/bundle/{chunk-VVCZS42A.js → chunk-3252WXOL.js} +1 -1
- package/dist/bundle/{chunk-H2BKXPBL.js → chunk-36CWGEVX.js} +2 -2
- package/dist/bundle/{chunk-HWLLVLAB.js → chunk-3I2D5TK2.js} +14 -11
- package/dist/bundle/{chunk-PAEVBAM3.js → chunk-3SJQNS72.js} +5 -5
- package/dist/bundle/{chunk-GI5JBGXH.js → chunk-3UPIJ7DW.js} +615 -374
- package/dist/bundle/{chunk-EORMZCVF.js → chunk-3WZH3WV3.js} +3 -3
- package/dist/bundle/{chunk-ZSMCJKGP.js → chunk-5W56YMQS.js} +28 -27
- package/dist/bundle/{chunk-LJ7E4HLQ.js → chunk-5W7D5H2R.js} +1 -1
- package/dist/bundle/{chunk-6C6255U6.js → chunk-67HS46KM.js} +12 -12
- package/dist/bundle/{chunk-AD62XJKO.js → chunk-6DN4VPA7.js} +25 -25
- package/dist/bundle/{chunk-HIP43OGZ.js → chunk-6IBM4Z3V.js} +1 -1
- package/dist/bundle/{chunk-QTM7USFA.js → chunk-6SUGANRJ.js} +6 -6
- package/dist/bundle/{chunk-II7LST64.js → chunk-6Y2FWJZ4.js} +4 -3
- package/dist/bundle/{chunk-XCOCPXCM.js → chunk-73WSULMI.js} +2 -2
- package/dist/bundle/{chunk-V42KAPU3.js → chunk-AM4RIWOZ.js} +4 -4
- package/dist/bundle/{chunk-DI5Z4SH5.js → chunk-AWN22PJK.js} +3 -3
- package/dist/bundle/{chunk-HMZAMHKN.js → chunk-BCWUDTYQ.js} +2 -2
- package/dist/bundle/{chunk-EHEZSV6I.js → chunk-BF6TQMNB.js} +8 -8
- package/dist/bundle/chunk-BQMIDYBA.js +415 -0
- package/dist/bundle/{chunk-FVQCM7IQ.js → chunk-BXR7BKM3.js} +5 -5
- package/dist/bundle/{chunk-OKXSTWKW.js → chunk-CACYL36O.js} +8 -8
- package/dist/bundle/{chunk-CBM2XAEZ.js → chunk-DCBFNBEB.js} +113 -51
- package/dist/bundle/{chunk-GT5KTGCN.js → chunk-DEPMQHXQ.js} +4 -4
- package/dist/bundle/{chunk-3KJTJDDT.js → chunk-DXPOVLQC.js} +46 -28
- package/dist/bundle/{chunk-P7WPYKSB.js → chunk-E5EXJ2XS.js} +4 -4
- package/dist/bundle/{chunk-IGF6EXBR.js → chunk-E6J5YH2N.js} +34 -34
- package/dist/bundle/{chunk-IIP43FQJ.js → chunk-ECEYAQGN.js} +2 -2
- package/dist/bundle/{chunk-OMMEQJOB.js → chunk-EPCJUL6M.js} +3 -3
- package/dist/bundle/{chunk-JSDVK3JA.js → chunk-FE5JJXKA.js} +2 -2
- package/dist/bundle/{chunk-FICVPYE4.js → chunk-HFM653T3.js} +49 -49
- package/dist/bundle/{chunk-KPRGTTJH.js → chunk-HGOYQUT7.js} +1 -1
- package/dist/bundle/{chunk-3VSUT6BD.js → chunk-I26VL4W7.js} +2 -2
- package/dist/bundle/{chunk-V36RIXFA.js → chunk-J4HQVHMN.js} +6 -5
- package/dist/bundle/{chunk-P3ZTW2ZM.js → chunk-J5UDQD5S.js} +5 -5
- package/dist/bundle/{chunk-3KNZADHJ.js → chunk-JVBLXSAA.js} +437 -193
- package/dist/bundle/{chunk-TJXPJ3A5.js → chunk-K7LS3NGM.js} +137 -62
- package/dist/bundle/{chunk-2AXA5SKP.js → chunk-KV4267S4.js} +1 -1
- package/dist/bundle/{chunk-YU3PTU3D.js → chunk-LARQTWIL.js} +1 -1
- package/dist/bundle/{chunk-B5GBJ35N.js → chunk-N2RLJTIW.js} +4 -4
- package/dist/bundle/{chunk-K4LXGZTE.js → chunk-NIX2MWHZ.js} +242 -344
- package/dist/bundle/{chunk-L5SE2XZP.js → chunk-NZ2EIZLX.js} +14 -10
- package/dist/bundle/{chunk-F3FOL42A.js → chunk-O5CUFS7T.js} +2 -2
- package/dist/bundle/{chunk-UQPKAY6I.js → chunk-OFFA54TW.js} +2 -2
- package/dist/bundle/{chunk-W62CON5K.js → chunk-OGNOQDWB.js} +4 -4
- package/dist/bundle/{chunk-MUUHUHWC.js → chunk-OLPJRD4S.js} +1 -22
- package/dist/bundle/{chunk-YADXWQHV.js → chunk-PJTX2MOI.js} +26 -26
- package/dist/bundle/{chunk-M6I2SQN7.js → chunk-PY7LKNOS.js} +2 -2
- package/dist/bundle/{chunk-GJ4ZCIOP.js → chunk-Q4XVBKX4.js} +3 -3
- package/dist/bundle/{chunk-A6SLYOP2.js → chunk-QR5VQXQ5.js} +69 -36
- package/dist/bundle/{chunk-OZH4ALTI.js → chunk-QSGT4ZH4.js} +1 -1
- package/dist/bundle/{chunk-UWVNRPT7.js → chunk-RFRCOAWS.js} +22 -22
- package/dist/bundle/{chunk-A6EG7ZDS.js → chunk-S4YK6TTG.js} +13 -13
- package/dist/bundle/{chunk-LPHMAQJQ.js → chunk-TKGAYKXW.js} +16 -16
- package/dist/bundle/{chunk-KFZUODXB.js → chunk-UKOYQC5O.js} +39 -22
- package/dist/bundle/{chunk-MEAPA4EZ.js → chunk-UO2IUDVK.js} +2 -2
- package/dist/bundle/{chunk-HIOJRPCT.js → chunk-VPDAH7PJ.js} +1 -1
- package/dist/bundle/{chunk-3U22QTU6.js → chunk-VYXVPYA3.js} +24 -6
- package/dist/bundle/{chunk-VT6GZAF4.js → chunk-W767AUNR.js} +4 -4
- package/dist/bundle/{chunk-5C7K6XIT.js → chunk-WIU733D2.js} +1 -1
- package/dist/bundle/{chunk-IADOBOKB.js → chunk-WUP2MJDN.js} +2 -2
- package/dist/bundle/{chunk-EBLA7GXY.js → chunk-WZ5XK74U.js} +2 -1
- package/dist/bundle/{chunk-IBZ3IBO4.js → chunk-X2CXW4HM.js} +7 -7
- package/dist/bundle/{chunk-JW2CVCUH.js → chunk-XGMDWIUP.js} +4 -4
- package/dist/bundle/{chunk-BSGOM3BD.js → chunk-XGNC5OJG.js} +1 -1
- package/dist/bundle/{chunk-TI55J3BA.js → chunk-XLFJLZJL.js} +4 -4
- package/dist/bundle/{chunk-7QTVIZII.js → chunk-XYCCGGKN.js} +792 -327
- package/dist/bundle/{chunk-6CQO2FIN.js → chunk-XZBR2O63.js} +400 -291
- package/dist/bundle/{chunk-EVETU3TF.js → chunk-YMBFZA3H.js} +8 -8
- package/dist/bundle/{chunk-ZYCLPJ7U.js → chunk-YPF6OS37.js} +1 -1
- package/dist/bundle/{chunk-36B7AIGP.js → chunk-YWIU4HOT.js} +1 -1
- package/dist/bundle/{chunk-MKCNUI72.js → chunk-ZHYRHERD.js} +2 -2
- package/dist/bundle/{chunk-YV4ABH6J.js → chunk-ZMNYK3FC.js} +5 -5
- package/dist/bundle/command-contract-T3EO5AYD.js +39 -0
- package/dist/bundle/{decode-XTOMXMGN.js → decode-62A3HGPW.js} +8 -8
- package/dist/bundle/{dispatch-T6TW2JJB.js → dispatch-IE7PBEQC.js} +9 -9
- package/dist/bundle/drive.js +12 -12
- package/dist/bundle/{echarts-RKKIOYVV.js → echarts-BGBPRGR5.js} +2 -2
- package/dist/bundle/{embed-STHKKA6G.js → embed-J3IBVV2V.js} +9 -9
- package/dist/bundle/{embedder-3XZEWHRO.js → embedder-QFPMDRT2.js} +12 -12
- package/dist/bundle/entry-YQSYER66.js +22 -0
- package/dist/bundle/{failure-DNQYXP2T.js → failure-BKOGBMIC.js} +4 -4
- package/dist/bundle/first-run-ZIFPVZAI.js +30 -0
- package/dist/bundle/first-screen-L5U26EY7.js +37 -0
- package/dist/bundle/{google-BYNSAIQI.js → google-RXM2XEPD.js} +13 -13
- package/dist/bundle/{google-api-4VTZH7OP.js → google-api-NC65BZO4.js} +83 -64
- package/dist/bundle/grants-SEWUYYH3.js +105 -0
- package/dist/bundle/{identity-ARDPFYV5.js → identity-PI6F2GWA.js} +6 -6
- package/dist/bundle/{instructions-N3OH5X2Y.js → instructions-6LPDSKAD.js} +1 -1
- package/dist/bundle/{login-4VQEC7VI.js → login-HTY7GT2S.js} +66 -68
- package/dist/bundle/{mcp-WBHKX5E3.js → mcp-PPVOM4SE.js} +2 -2
- package/dist/bundle/{node-YU5JBNAA.js → node-IB246NCQ.js} +2 -2
- package/dist/bundle/{node-sqlite-3C6PSBIW.js → node-sqlite-G2Y5SFJM.js} +9 -9
- package/dist/bundle/oauth-MWBKBI4T.js +22 -0
- package/dist/bundle/{open-M2V2VYXO.js → open-WD4GFSJD.js} +8 -8
- package/dist/bundle/{openai-ST2IWNUX.js → openai-QVM4PMY7.js} +17 -17
- package/dist/bundle/{process-PYNNBBTV.js → process-SWPJGPQC.js} +1 -1
- package/dist/bundle/{program-Q4VWV2MR.js → program-WHYFAMXR.js} +142 -106
- package/dist/bundle/prompt-OVYCGZB7.js +17 -0
- package/dist/bundle/{reasons-LOQ5J73F.js → reasons-Q34DQWB6.js} +5 -5
- package/dist/bundle/{recognize-FBLMWXNE.js → recognize-DM3YWHSE.js} +7 -7
- package/dist/bundle/{remote-XC3OXE4T.js → remote-KXVWRK7J.js} +10 -10
- package/dist/bundle/{rerank-2XMKKF4S.js → rerank-TINXM3MY.js} +10 -10
- package/dist/bundle/{serve-Q2BQHNZB.js → serve-IY2WL656.js} +12 -12
- package/dist/bundle/server-EMWVVT2C.js +70 -0
- package/dist/bundle/{server-42HPV3AH.js → server-VPY3OWPC.js} +44 -44
- package/dist/bundle/{services-WU22S2MU.js → services-PXNBOCOC.js} +34 -32
- package/dist/bundle/{sqlite-runtime-CSO6K6B2.js → sqlite-runtime-5ZK2CV7Y.js} +9 -9
- package/dist/bundle/{start-TZWKM4AH.js → start-LDVCN3DK.js} +7 -7
- package/dist/bundle/{state-FLUT7U7R.js → state-3MKTT3VS.js} +9 -9
- package/dist/bundle/{store-TG6622NG.js → store-4VQOT5IJ.js} +18 -18
- package/dist/bundle/{store-HDWMJ44E.js → store-7M4MSUJV.js} +28 -22
- package/dist/bundle/store-maintenance-command-NRATYBWD.js +60 -0
- package/dist/bundle/tokens-XUKLM3SL.js +103 -0
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +15 -6
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/context.d.ts +4 -2
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +15 -4
- package/dist/commands/session.js.map +1 -1
- package/dist/config.d.ts +23 -5
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +33 -20
- package/dist/config.js.map +1 -1
- package/dist/download.d.ts +3 -2
- package/dist/download.d.ts.map +1 -1
- package/dist/download.js +21 -9
- package/dist/download.js.map +1 -1
- package/dist/errors.js +4 -4
- package/dist/errors.js.map +1 -1
- package/dist/google-api.d.ts +3 -1
- package/dist/google-api.d.ts.map +1 -1
- package/dist/google-api.js +27 -7
- package/dist/google-api.js.map +1 -1
- package/dist/login.d.ts.map +1 -1
- package/dist/login.js +4 -6
- package/dist/login.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +11 -7
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +1 -22
- package/dist/reasons.js.map +1 -1
- package/dist/registry.d.ts +1 -1
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +2 -1
- package/dist/registry.js.map +1 -1
- package/dist/tokens.js +5 -5
- package/dist/tokens.js.map +1 -1
- package/dist/upload.js +1 -1
- package/dist/upload.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-PGKIOSN3.js +0 -249
- package/dist/bundle/command-contract-LQDNHZJU.js +0 -39
- package/dist/bundle/entry-CNOYSSSD.js +0 -22
- package/dist/bundle/first-run-F2SI24PK.js +0 -30
- package/dist/bundle/first-screen-TYYF6VXY.js +0 -37
- package/dist/bundle/grants-EUQXSICG.js +0 -105
- package/dist/bundle/oauth-D6NJFPYU.js +0 -22
- package/dist/bundle/prompt-MFIOJMAF.js +0 -17
- package/dist/bundle/server-EWZYN323.js +0 -70
- package/dist/bundle/store-maintenance-command-RHWRUREJ.js +0 -60
- package/dist/bundle/tokens-TXYURU4S.js +0 -103
- package/dist/oauth-application.d.ts +0 -5
- package/dist/oauth-application.d.ts.map +0 -1
- package/dist/oauth-application.js +0 -9
- package/dist/oauth-application.js.map +0 -1
- /package/dist/bundle/{chunk-LK2E2ELG.js → chunk-LU3WKZBA.js} +0 -0
|
@@ -19,16 +19,16 @@ import {
|
|
|
19
19
|
reference,
|
|
20
20
|
string,
|
|
21
21
|
variant
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VYXVPYA3.js";
|
|
23
23
|
import {
|
|
24
24
|
CliError,
|
|
25
25
|
isCliError
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-WZ5XK74U.js";
|
|
27
27
|
import {
|
|
28
28
|
__name
|
|
29
29
|
} from "./chunk-ZVVMGPBJ.js";
|
|
30
30
|
|
|
31
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
31
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/types.js
|
|
32
32
|
var QUERY_LIMITS = {
|
|
33
33
|
bytes: 8192,
|
|
34
34
|
depth: 32,
|
|
@@ -72,7 +72,7 @@ function queryError(reason, span, alternative, context = {}, details = {}) {
|
|
|
72
72
|
__name(queryError, "queryError");
|
|
73
73
|
var walkQuery = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => walkQuery(node2)), "walkQuery");
|
|
74
74
|
|
|
75
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
75
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/dates.js
|
|
76
76
|
var timezoneOf = /* @__PURE__ */ __name((given) => {
|
|
77
77
|
const zone = given ?? Intl.DateTimeFormat().resolvedOptions().timeZone ?? "UTC";
|
|
78
78
|
try {
|
|
@@ -217,7 +217,7 @@ var dateRange = /* @__PURE__ */ __name((lower, upper, lowerInclusive, upperInclu
|
|
|
217
217
|
};
|
|
218
218
|
}, "dateRange");
|
|
219
219
|
|
|
220
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
220
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/evaluate.js
|
|
221
221
|
var wordsOf = /* @__PURE__ */ __name((text) => text.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
|
|
222
222
|
var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
|
|
223
223
|
var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
|
|
@@ -272,7 +272,7 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
|
|
|
272
272
|
}, "matches");
|
|
273
273
|
var evaluate = /* @__PURE__ */ __name((ast, fields, item, options = {}) => matches(ast.root, item, new Map(fields.map((field) => [field.name, field])), options), "evaluate");
|
|
274
274
|
|
|
275
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
275
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/fields.js
|
|
276
276
|
var FIELD_TYPES = ["kw", "txt", "enum", "num", "time", "bool", "ref"];
|
|
277
277
|
var OPERATORS_BY_TYPE = {
|
|
278
278
|
kw: ["term", "phrase", "wildcard"],
|
|
@@ -351,7 +351,7 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
|
|
|
351
351
|
return [...own, ...relations, ...states];
|
|
352
352
|
}, "queryFieldsOf");
|
|
353
353
|
|
|
354
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
354
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/help.js
|
|
355
355
|
var shownOf = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "shownOf");
|
|
356
356
|
var leftOut = /* @__PURE__ */ __name((fields) => fields.filter((field) => field.negatable).map((field) => field.name), "leftOut");
|
|
357
357
|
var has = /* @__PURE__ */ __name((fields, operator) => fields.some((field) => field.operators.includes(operator)), "has");
|
|
@@ -388,7 +388,7 @@ var queryDescription = /* @__PURE__ */ __name((registry) => {
|
|
|
388
388
|
return `${terms}; fields: ${fields.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
|
|
389
389
|
}, "queryDescription");
|
|
390
390
|
|
|
391
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
391
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/parser.js
|
|
392
392
|
var whitespace = /* @__PURE__ */ __name((c) => /[ \t\n\r\u3000]/u.test(c), "whitespace");
|
|
393
393
|
var reserved = /* @__PURE__ */ new Set([
|
|
394
394
|
"+",
|
|
@@ -495,6 +495,10 @@ var tokensOf = /* @__PURE__ */ __name((text, fail = queryError) => {
|
|
|
495
495
|
break;
|
|
496
496
|
at++;
|
|
497
497
|
}
|
|
498
|
+
const [field, colon] = tokens.slice(-2);
|
|
499
|
+
if (field?.kind === "term" && colon?.kind === ":" && colon.span.end === start && text[at] === ":" && /^[a-z][a-z_-]*$/u.test(text.slice(start, at)) && /^:[^\s()"]/u.test(text.slice(at)))
|
|
500
|
+
while (at < text.length && !whitespace(text[at] ?? "") && !["(", ")", '"'].includes(text[at] ?? ""))
|
|
501
|
+
at++;
|
|
498
502
|
const raw = text.slice(start, at);
|
|
499
503
|
kind = { AND: "AND", OR: "OR", NOT: "NOT", "&&": "AND", "||": "OR" }[raw] ?? (/^\d+(?:\.\d+)?$/u.test(raw) ? "number" : "term");
|
|
500
504
|
}
|
|
@@ -693,7 +697,7 @@ var implicitTextTerms = /* @__PURE__ */ __name((text) => {
|
|
|
693
697
|
return new Set(tokens.flatMap((token, index) => (token.kind === "term" || token.kind === "number") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index - 1]?.kind ?? "") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index + 1]?.kind ?? "") ? [token.span.start] : []));
|
|
694
698
|
}, "implicitTextTerms");
|
|
695
699
|
|
|
696
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
700
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/validate.js
|
|
697
701
|
var inContext = /* @__PURE__ */ __name((context, run) => {
|
|
698
702
|
try {
|
|
699
703
|
run();
|
|
@@ -768,7 +772,7 @@ var validateQuery = /* @__PURE__ */ __name((ast, registry, options = {}) => {
|
|
|
768
772
|
}, "validateQuery");
|
|
769
773
|
var fieldsNamed = /* @__PURE__ */ __name((ast) => new Set(walkQuery(ast.root).map((node) => node.field)), "fieldsNamed");
|
|
770
774
|
|
|
771
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
775
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/registry.js
|
|
772
776
|
var describeQuery = /* @__PURE__ */ __name((registry) => ({
|
|
773
777
|
entity: registry.entity,
|
|
774
778
|
backend: registry.backend,
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WZ5XK74U.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
|
|
11
11
|
var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
|
|
12
12
|
var MAX_SECRET_INPUT = 64 * 1024;
|
|
13
13
|
var policies = /* @__PURE__ */ new WeakMap();
|
|
@@ -15,12 +15,12 @@ import {
|
|
|
15
15
|
string,
|
|
16
16
|
text,
|
|
17
17
|
unknown
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VYXVPYA3.js";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
21
|
} from "./chunk-ZVVMGPBJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/log.js
|
|
24
24
|
var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
|
|
25
25
|
var logRecordSchema = strictObject({
|
|
26
26
|
time: isoTime,
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
singleLine
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6IBM4Z3V.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
|
|
11
11
|
var DESCRIBE_FORMAT = 1;
|
|
12
12
|
var describeAnswer = /* @__PURE__ */ __name((tool) => ({
|
|
13
13
|
wcat_describe: DESCRIBE_FORMAT,
|
|
@@ -36,7 +36,7 @@ var parseDescribe = /* @__PURE__ */ __name((text) => {
|
|
|
36
36
|
};
|
|
37
37
|
}, "parseDescribe");
|
|
38
38
|
|
|
39
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
39
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
|
|
40
40
|
var FIRST_PARTY_TOOLS = [
|
|
41
41
|
{ name: "tg", package: "@wirecat/tg-cli" },
|
|
42
42
|
{ name: "max", package: "@wirecat/max-cli" },
|
|
@@ -59,7 +59,7 @@ var PROGRAM_PREFIX = "wcat-";
|
|
|
59
59
|
var DESCRIBE_FLAG = "--wcat-describe";
|
|
60
60
|
var DISPATCH_FLAG = "--wcat-dispatch";
|
|
61
61
|
|
|
62
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
62
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
|
|
63
63
|
import { lstatSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
64
64
|
import { join } from "node:path";
|
|
65
65
|
var SHIM_FORMAT = 1;
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
defineReasons
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VYXVPYA3.js";
|
|
6
6
|
|
|
7
7
|
// dist/reasons.js
|
|
8
8
|
var ENTRIES = [
|
|
@@ -11,7 +11,6 @@ var ENTRIES = [
|
|
|
11
11
|
["catalog.depth-invalid", "validation_error", "tree depth must be between 0 and 50"],
|
|
12
12
|
["catalog.cycle", "invalid_response", "local folder ancestry contains a cycle"],
|
|
13
13
|
["catalog.tree-limit", "validation_error", "tree output exceeds 10000 nodes; choose a smaller folder"],
|
|
14
|
-
["api.unknown-method", "validation_error", "the Google method is not known; run drive api list"],
|
|
15
14
|
["mirror.none", "not_found", "the profile has no mirrors; add one with drive <profile> mirrors add"],
|
|
16
15
|
["mirror.not-folder", "validation_error", "the path to mirror is not a folder"],
|
|
17
16
|
["mirror.not-found", "not_found", "no such mirror in this profile; see drive <profile> mirrors list"],
|
|
@@ -28,16 +27,8 @@ var ENTRIES = [
|
|
|
28
27
|
["download.exists", "validation_error", "the output file already exists; pass --overwrite to replace it"],
|
|
29
28
|
["export.exists", "validation_error", "the output file already exists"],
|
|
30
29
|
["export.too-large", "validation_error", "Google exports at most 10 MB of a native file"],
|
|
31
|
-
["file.not-file", "validation_error", "upload takes one file, not a folder"],
|
|
32
30
|
["file.unreadable", "validation_error", "the file to upload could not be read"],
|
|
33
|
-
[
|
|
34
|
-
"google-api.disabled",
|
|
35
|
-
"configuration_error",
|
|
36
|
-
"Google API is disabled for this OAuth project; its owner must enable it in Google Cloud API Library"
|
|
37
|
-
],
|
|
38
31
|
["listing.too-large", "provider_error", "the listing is over its bound; the checkpoint was kept"],
|
|
39
|
-
["oauth-client.rejected", "configuration_error", "Google rejected the OAuth client"],
|
|
40
|
-
["offline.refused", "permission_error", "this command needs Google; --offline was given"],
|
|
41
32
|
["policy.confirm", "confirmation_required", "the profile policy asks to confirm {permission}", ["permission"]],
|
|
42
33
|
["policy.denied", "permission_error", "the profile policy refuses {permission}", ["permission"]],
|
|
43
34
|
[
|
|
@@ -49,19 +40,7 @@ var ENTRIES = [
|
|
|
49
40
|
["policy.unknown-key", "configuration_error", "permission {permission} names no drive command", ["permission"]],
|
|
50
41
|
["profile.busy", "provider_unavailable", "another drive command holds this profile; retry later"],
|
|
51
42
|
["profile.unknown", "validation_error", "no such profile here; see the profiles listed", ["profiles"]],
|
|
52
|
-
["profile.lock-refused", "permission_error", "this process is locked to another profile (DRIVE_PROFILE_LOCK)"],
|
|
53
43
|
["profile.required", "validation_error", "choose a profile: drive <profile> <command>", ["profiles"]],
|
|
54
|
-
["sign-in.declined", "authentication_error", "the Google sign-in was declined"],
|
|
55
|
-
[
|
|
56
|
-
"sign-in.expired",
|
|
57
|
-
"authentication_error",
|
|
58
|
-
"the Google sign-in is no longer valid; run drive <profile> session start",
|
|
59
|
-
[],
|
|
60
|
-
"owner.sign-in"
|
|
61
|
-
],
|
|
62
|
-
["sign-in.failed", "authentication_error", "the Google sign-in did not finish; run drive <profile> session start"],
|
|
63
|
-
["sign-in.not-saved", "configuration_error", "the sign-in could not be saved: its private file cannot be read"],
|
|
64
|
-
["sign-in.scope-missing", "permission_error", "the sign-in lacks the Google permission this command needs"],
|
|
65
44
|
["source.changed", "provider_error", "the document changed during export; retry the sync"],
|
|
66
45
|
[
|
|
67
46
|
"store.annotations-present",
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
MAX_FILE_BYTES,
|
|
9
9
|
MAX_TEXT_CHARS,
|
|
10
10
|
attachmentMaxBytes
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-WUP2MJDN.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-
|
|
19
|
+
} from "./chunk-WZ5XK74U.js";
|
|
20
20
|
import {
|
|
21
21
|
__commonJS,
|
|
22
22
|
__name,
|
|
@@ -16632,20 +16632,20 @@ var require_lib3 = __commonJS({
|
|
|
16632
16632
|
}
|
|
16633
16633
|
});
|
|
16634
16634
|
|
|
16635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/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.
|
|
16638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/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.
|
|
16643
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/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.
|
|
16648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/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.
|
|
16750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/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.
|
|
16965
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/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.
|
|
17023
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/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.
|
|
17032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/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.
|
|
17044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/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.
|
|
17057
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/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.
|
|
17233
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/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.
|
|
17289
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/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.
|
|
17360
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/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.
|
|
17363
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/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.
|
|
17418
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/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.
|
|
17833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/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.
|
|
17844
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/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.
|
|
17911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/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.
|
|
17931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/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.
|
|
17939
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/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.
|
|
17942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/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.
|
|
17980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/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.
|
|
18019
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/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.
|
|
18029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/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) => {
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
ACCESS_SECONDS,
|
|
9
9
|
REFRESH_SECONDS,
|
|
10
10
|
readStored
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-DEPMQHXQ.js";
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
14
|
} from "./chunk-ZVVMGPBJ.js";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
|
|
17
17
|
import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
|
|
18
18
|
import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -2,16 +2,16 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
alive
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WIU733D2.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DCBFNBEB.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/background/lock.js
|
|
15
15
|
import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
16
16
|
import { dirname, join } from "node:path";
|
|
17
17
|
var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
|