@wirecat/drive-cli 0.62.0 → 0.64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-CKD2DWUK.js → all-profiles-BPPT2AK5.js} +13 -14
- package/dist/bundle/{anthropic-E3T4USLA.js → anthropic-JW6GOJUD.js} +13 -11
- package/dist/bundle/{app-server-JB2AEWWL.js → app-server-KAQIOJMZ.js} +53 -54
- package/dist/bundle/{bun-CC44AAND.js → bun-UT7GNTPV.js} +2 -2
- package/dist/bundle/{bun-sqlite-AUMFKYVR.js → bun-sqlite-2OIVV3LS.js} +8 -8
- package/dist/bundle/{chunk-EOOGWUTP.js → chunk-2FEZ24DK.js} +10 -10
- package/dist/bundle/{chunk-N7OZPKU7.js → chunk-2W464HAE.js} +4 -4
- package/dist/bundle/{chunk-UGXN5D7U.js → chunk-34BIDKF4.js} +332 -430
- package/dist/bundle/{chunk-WZKEU7WR.js → chunk-36GPBPWM.js} +1 -1
- package/dist/bundle/{chunk-LQKD257P.js → chunk-3J5KAFNA.js} +2255 -1125
- package/dist/bundle/{chunk-7W5HYGVW.js → chunk-3NULZGQU.js} +2 -2
- package/dist/bundle/{chunk-XFRRKZHQ.js → chunk-46CD64J2.js} +155 -36
- package/dist/bundle/{chunk-DWJHL6DV.js → chunk-4CNTID2X.js} +4 -4
- package/dist/bundle/{chunk-LWE4JGRN.js → chunk-4YRENUB5.js} +2 -2
- package/dist/bundle/{chunk-SW4I5BR7.js → chunk-5HSRQ53R.js} +2 -2
- package/dist/bundle/{chunk-IR4SQLBR.js → chunk-5OFA5EXE.js} +2 -2
- package/dist/bundle/{chunk-R347FPYU.js → chunk-5ZBR55US.js} +1 -1
- package/dist/bundle/{chunk-Q2LRPOKL.js → chunk-66AF4FBW.js} +4 -4
- package/dist/bundle/{chunk-RWSXVCSG.js → chunk-6B37XO6B.js} +23 -5
- package/dist/bundle/{chunk-ZMOUUOT2.js → chunk-6G53ZFUT.js} +1 -1
- package/dist/bundle/{chunk-HCNQT3QE.js → chunk-AHB4OJCI.js} +1951 -580
- package/dist/bundle/{chunk-JK3U25QZ.js → chunk-B67BLRAI.js} +59 -1
- package/dist/bundle/{chunk-7ZXIWZQ6.js → chunk-B7XBIOMR.js} +12 -12
- package/dist/bundle/{chunk-FEZF3TII.js → chunk-BDYWZ7JE.js} +50 -6
- package/dist/bundle/{chunk-SVPCHFKI.js → chunk-BEUAICUD.js} +2 -2
- package/dist/bundle/{chunk-TDX4GZFO.js → chunk-BEZJA44H.js} +7 -7
- package/dist/bundle/{chunk-RIDQNVZM.js → chunk-BZ2ZKILM.js} +3 -3
- package/dist/bundle/{chunk-FUITWY7O.js → chunk-C7WBNOYW.js} +1 -1
- package/dist/bundle/{chunk-CJHY5YIF.js → chunk-CPMRM3GQ.js} +489 -210
- package/dist/bundle/{chunk-FNWIJ6EJ.js → chunk-DD7EFG6B.js} +2 -2
- package/dist/bundle/{chunk-W4RTIL7S.js → chunk-E2LBCCTG.js} +5 -5
- package/dist/bundle/{chunk-O2XOX4HB.js → chunk-EC2XGDKJ.js} +50 -34
- package/dist/bundle/{chunk-4OSSOWDM.js → chunk-EJ4PNHPP.js} +1 -1
- package/dist/bundle/{chunk-XS5POQST.js → chunk-EQEGJVO2.js} +1 -1
- package/dist/bundle/{chunk-U2BFYSQV.js → chunk-EWGVDFPT.js} +8983 -3343
- package/dist/bundle/{chunk-OBH5BA62.js → chunk-EZ6O3ST3.js} +3 -3
- package/dist/bundle/{chunk-HG6CAYJH.js → chunk-F2VDAG32.js} +3 -3
- package/dist/bundle/{chunk-RPMKG63Z.js → chunk-G3NULXOM.js} +4 -4
- package/dist/bundle/{chunk-OD4U7GUY.js → chunk-G4KEKKDE.js} +20 -20
- package/dist/bundle/{chunk-OTROVC4E.js → chunk-GSMYXGFR.js} +1 -1
- package/dist/bundle/{chunk-XZUS7XRO.js → chunk-GW3U6OLD.js} +1 -1
- package/dist/bundle/{chunk-6EY46GAN.js → chunk-HW4UPST2.js} +2 -2
- package/dist/bundle/{chunk-2HF2MRXI.js → chunk-IDAK4DDK.js} +1 -1
- package/dist/bundle/{chunk-27YUUGXQ.js → chunk-IK6KH3RE.js} +1 -1
- package/dist/bundle/{chunk-QTI6IVHZ.js → chunk-IX7NQJLY.js} +8 -8
- package/dist/bundle/{chunk-YMWENGKH.js → chunk-J62DI53V.js} +1 -1
- package/dist/bundle/{chunk-AH5C3D3D.js → chunk-JRXFW7HE.js} +5 -5
- package/dist/bundle/{chunk-KLFSRKHB.js → chunk-K6BSB53R.js} +1 -1
- package/dist/bundle/{chunk-ONP2IBHY.js → chunk-KE4XPPRQ.js} +98 -81
- package/dist/bundle/{chunk-UQLWMGSD.js → chunk-KG2XKEHL.js} +5 -5
- package/dist/bundle/{chunk-T5NWWXS2.js → chunk-KIN6PDFE.js} +24 -2
- package/dist/bundle/{chunk-QH7DOVO3.js → chunk-KVW4XNKB.js} +45 -29
- package/dist/bundle/{chunk-PEQA6LA5.js → chunk-LOMW6F2E.js} +230 -236
- package/dist/bundle/{chunk-4SIZEJ3M.js → chunk-M73NNJ3X.js} +2 -2
- package/dist/bundle/{chunk-QCKZ3GAA.js → chunk-N622LRPM.js} +4 -4
- package/dist/bundle/{chunk-YPFUYQDP.js → chunk-O2QO5UZC.js} +13 -13
- package/dist/bundle/{chunk-QCX6XZLA.js → chunk-OEVHZOHC.js} +12 -12
- package/dist/bundle/{chunk-VAYB52HF.js → chunk-OH3K2E7X.js} +402 -184
- package/dist/bundle/{chunk-YXYTY4GF.js → chunk-P7DEGRZA.js} +21 -21
- package/dist/bundle/{chunk-YUWPNG7B.js → chunk-PBMSBCVB.js} +1 -1
- package/dist/bundle/{chunk-67ZQCWBV.js → chunk-QEAD2LF4.js} +3 -3
- package/dist/bundle/{chunk-JN5TVEEL.js → chunk-QXCKJUZY.js} +124 -22
- package/dist/bundle/{chunk-T7X53FCJ.js → chunk-SIOIMO62.js} +37 -37
- package/dist/bundle/{chunk-O7ALBI2I.js → chunk-TNV2FXVK.js} +5 -5
- package/dist/bundle/chunk-UD55VB2N.js +87 -0
- package/dist/bundle/{chunk-L7K2MOIC.js → chunk-UIEA6FIV.js} +22 -22
- package/dist/bundle/{chunk-EW7PKB4M.js → chunk-UJR272CP.js} +29 -29
- package/dist/bundle/{chunk-YALI4C7C.js → chunk-USLZE36C.js} +6 -6
- package/dist/bundle/{chunk-YOJDGAPT.js → chunk-VIJ6ACYB.js} +8 -8
- package/dist/bundle/{chunk-MN4VXU3M.js → chunk-VPLFD5RJ.js} +4 -4
- package/dist/bundle/{chunk-VQDD64A4.js → chunk-VT2UFYPJ.js} +8 -10
- package/dist/bundle/{chunk-CZ2GJHLL.js → chunk-WWCYTMAV.js} +2 -2
- package/dist/bundle/{chunk-DJOAMGF4.js → chunk-XPXKD63J.js} +13 -13
- package/dist/bundle/{chunk-E43ENLJJ.js → chunk-ZF6GUZCE.js} +1 -1
- package/dist/bundle/{chunk-XEW2EN6F.js → chunk-ZRZ4HTCK.js} +60 -34
- package/dist/bundle/{chunk-2KN35F32.js → chunk-ZSZJLJIA.js} +10 -10
- package/dist/bundle/command-contract-H5OYJOPF.js +38 -0
- package/dist/bundle/{decode-WIIX3Y2X.js → decode-HTOQ6S3V.js} +8 -8
- package/dist/bundle/{dispatch-GEFIXA6X.js → dispatch-SH5SP6LA.js} +11 -11
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-OYINM4C4.js → echarts-KFHB6SLX.js} +2 -2
- package/dist/bundle/{embed-DWZIYMBX.js → embed-YATFB2PN.js} +9 -9
- package/dist/bundle/{embedder-ILWH7ZRM.js → embedder-MQPDFGTJ.js} +12 -12
- package/dist/bundle/entry-YZBB647C.js +22 -0
- package/dist/bundle/{failure-GV77W3CD.js → failure-4FQL4XJI.js} +4 -4
- package/dist/bundle/first-run-5JT3UQZB.js +30 -0
- package/dist/bundle/first-screen-BEMDEWO7.js +36 -0
- package/dist/bundle/{google-KLZSUAVY.js → google-DVADVICN.js} +13 -13
- package/dist/bundle/{google-api-HZQ5R4ZO.js → google-api-QMFGCXBM.js} +55 -57
- package/dist/bundle/grants-WKB2E4TA.js +103 -0
- package/dist/bundle/{identity-J2DON4IO.js → identity-FYVDK4M2.js} +6 -6
- package/dist/bundle/{instructions-HGOJ23AJ.js → instructions-D3GF3B7M.js} +1 -1
- package/dist/bundle/{login-BD2TS4GY.js → login-COFZ2IWP.js} +61 -63
- package/dist/bundle/{mcp-GWDA3HOA.js → mcp-RKJG22KM.js} +2 -2
- package/dist/bundle/{node-CPKTDPH7.js → node-OFICOKX3.js} +2 -2
- package/dist/bundle/{node-sqlite-IXDCRLSX.js → node-sqlite-DNBTDOXD.js} +9 -9
- package/dist/bundle/oauth-PDQHWFBF.js +22 -0
- package/dist/bundle/{open-O7P3ZV3Y.js → open-PTPR2YWX.js} +8 -8
- package/dist/bundle/{openai-RCFQKCXC.js → openai-2KV5LUW4.js} +17 -17
- package/dist/bundle/{process-KXDRJO22.js → process-EAW6NST2.js} +1 -1
- package/dist/bundle/{program-UCHFC7JQ.js → program-6UV5Q5YN.js} +310 -279
- package/dist/bundle/prompt-634TPMJK.js +19 -0
- package/dist/bundle/{reasons-57J2D77K.js → reasons-DDWCEYSQ.js} +5 -5
- package/dist/bundle/{recognize-MRCYGP2J.js → recognize-SJO6QUDW.js} +7 -7
- package/dist/bundle/{remote-L3L4PHKF.js → remote-6JXZITKF.js} +10 -10
- package/dist/bundle/{rerank-PSOE6XFT.js → rerank-MD5VOPQ6.js} +10 -10
- package/dist/bundle/{serve-72OGS3BF.js → serve-LZTROA2M.js} +12 -12
- package/dist/bundle/server-GT7X666D.js +69 -0
- package/dist/bundle/{server-SCXKYHBO.js → server-NSA3UAFY.js} +43 -44
- package/dist/bundle/{services-YAFTELBI.js → services-F5A6XQCV.js} +69 -34
- package/dist/bundle/{sqlite-runtime-DLK4SU33.js → sqlite-runtime-7YF6REKS.js} +9 -9
- package/dist/bundle/{start-AFFA3LKM.js → start-MUFLE6FA.js} +30 -8
- package/dist/bundle/{state-T5VNAJSZ.js → state-UC54F3YZ.js} +9 -9
- package/dist/bundle/{store-4OFK7PKQ.js → store-F5FJGWMR.js} +58 -20
- package/dist/bundle/{store-R6MSY2IM.js → store-J53YNAH6.js} +43 -18
- package/dist/bundle/store-maintenance-command-GJVXLBAB.js +58 -0
- package/dist/bundle/tokens-H2EJKGA5.js +101 -0
- package/dist/commands/account.d.ts +4 -0
- package/dist/commands/account.d.ts.map +1 -0
- package/dist/commands/account.js +33 -0
- package/dist/commands/account.js.map +1 -0
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +5 -1
- package/dist/commands/config.js.map +1 -1
- package/dist/profile-lock.d.ts +1 -0
- package/dist/profile-lock.d.ts.map +1 -1
- package/dist/profile-lock.js +1 -0
- package/dist/profile-lock.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +2 -0
- package/dist/program.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-AQVUEZEP.js +0 -22
- package/dist/bundle/chunk-DRZZBN3V.js +0 -33
- package/dist/bundle/chunk-UOXOLGNG.js +0 -42
- package/dist/bundle/command-contract-OB5BRABN.js +0 -39
- package/dist/bundle/entry-V5V3TOTY.js +0 -22
- package/dist/bundle/first-run-V3VVLQF4.js +0 -30
- package/dist/bundle/first-screen-Y3RIN7FU.js +0 -37
- package/dist/bundle/grants-L7XLHLUT.js +0 -105
- package/dist/bundle/oauth-HOGY4YBB.js +0 -22
- package/dist/bundle/prompt-EVPPBN5W.js +0 -17
- package/dist/bundle/server-C5TGNFXW.js +0 -70
- package/dist/bundle/store-maintenance-command-QDMCXGV6.js +0 -60
- package/dist/bundle/tokens-HIG36RNS.js +0 -103
- /package/dist/bundle/{chunk-ZQ3GWKDQ.js → chunk-SW6C6WH5.js} +0 -0
|
@@ -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-EJ4PNHPP.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.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
11
11
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
12
12
|
var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
13
13
|
const name = envName(app, "READ_ONLY");
|
|
@@ -7,15 +7,15 @@ import {
|
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability,
|
|
9
9
|
failureContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QXCKJUZY.js";
|
|
11
11
|
import {
|
|
12
12
|
callerOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-4YRENUB5.js";
|
|
14
14
|
import {
|
|
15
15
|
QUERY_ARGUMENT,
|
|
16
16
|
lentConnection,
|
|
17
17
|
refuseLacking
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-P7DEGRZA.js";
|
|
19
19
|
import {
|
|
20
20
|
DEFAULT_OUTPUT_BYTES,
|
|
21
21
|
ENTITIES,
|
|
@@ -30,18 +30,18 @@ import {
|
|
|
30
30
|
refuseStoreChange,
|
|
31
31
|
sealed,
|
|
32
32
|
startRecording
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-LOMW6F2E.js";
|
|
34
34
|
import {
|
|
35
35
|
currentCaller,
|
|
36
36
|
keepsSuccess,
|
|
37
37
|
runContextOf,
|
|
38
38
|
withCaller
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-VT2UFYPJ.js";
|
|
40
40
|
import {
|
|
41
41
|
onlineDeps,
|
|
42
42
|
servicesFor,
|
|
43
43
|
storeModeDeps
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-3J5KAFNA.js";
|
|
45
45
|
import {
|
|
46
46
|
authorityAllowed,
|
|
47
47
|
botApiAllowed,
|
|
@@ -52,23 +52,26 @@ import {
|
|
|
52
52
|
newRunId,
|
|
53
53
|
readKeysForCommand,
|
|
54
54
|
traceOf
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-OH3K2E7X.js";
|
|
56
56
|
import {
|
|
57
57
|
queryDescription
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-2FEZ24DK.js";
|
|
59
|
+
import {
|
|
60
|
+
storeDamaged
|
|
61
|
+
} from "./chunk-B67BLRAI.js";
|
|
59
62
|
import {
|
|
60
63
|
MAX_BUFFERED_INPUT
|
|
61
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-5OFA5EXE.js";
|
|
62
65
|
import {
|
|
63
66
|
captureStreams
|
|
64
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-G4KEKKDE.js";
|
|
65
68
|
import {
|
|
66
69
|
errorObjectOf,
|
|
67
70
|
mcpErrorResult
|
|
68
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-KG2XKEHL.js";
|
|
69
72
|
import {
|
|
70
73
|
traceIdOf
|
|
71
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-HW4UPST2.js";
|
|
72
75
|
import {
|
|
73
76
|
COMPACT_FLAG,
|
|
74
77
|
SNAKE_CASE,
|
|
@@ -105,19 +108,19 @@ import {
|
|
|
105
108
|
unknown,
|
|
106
109
|
word,
|
|
107
110
|
writes
|
|
108
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-BDYWZ7JE.js";
|
|
109
112
|
import {
|
|
110
113
|
CliError,
|
|
111
114
|
errorCodes
|
|
112
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-EJ4PNHPP.js";
|
|
113
116
|
import {
|
|
114
117
|
__name
|
|
115
118
|
} from "./chunk-ZVVMGPBJ.js";
|
|
116
119
|
|
|
117
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
120
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
118
121
|
import { Readable } from "node:stream";
|
|
119
122
|
|
|
120
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
123
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
|
|
121
124
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
122
125
|
var lintRuleSchema = strictObject({
|
|
123
126
|
id: word,
|
|
@@ -245,7 +248,7 @@ var overrideSchema = strictObject({
|
|
|
245
248
|
});
|
|
246
249
|
var overridesSchema = array(overrideSchema);
|
|
247
250
|
|
|
248
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
251
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
|
|
249
252
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
250
253
|
var defineAuditRules = /* @__PURE__ */ __name((input) => parseRegistry("audit rules", array(auditRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineAuditRules");
|
|
251
254
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -371,7 +374,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
371
374
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
372
375
|
]);
|
|
373
376
|
|
|
374
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
377
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
|
|
375
378
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
376
379
|
var defineFieldRules = /* @__PURE__ */ __name((input) => parseRegistry("output field rules", array(fieldRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineFieldRules");
|
|
377
380
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -387,7 +390,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
387
390
|
}
|
|
388
391
|
]);
|
|
389
392
|
|
|
390
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
393
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
|
|
391
394
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
392
395
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
393
396
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -409,7 +412,7 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
409
412
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
410
413
|
]);
|
|
411
414
|
|
|
412
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
415
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
|
|
413
416
|
var CALENDAR_FLAGS = [
|
|
414
417
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
415
418
|
{
|
|
@@ -417,14 +420,14 @@ var CALENDAR_FLAGS = [
|
|
|
417
420
|
value: "<date>",
|
|
418
421
|
role: "value",
|
|
419
422
|
type: "time",
|
|
420
|
-
meaning: "the first day of something that lasts whole days, such as an all-day event"
|
|
423
|
+
meaning: "the first day of something that lasts whole days, such as an all-day event or a contract"
|
|
421
424
|
},
|
|
422
425
|
{
|
|
423
426
|
name: "--end-date",
|
|
424
427
|
value: "<date>",
|
|
425
428
|
role: "value",
|
|
426
429
|
type: "time",
|
|
427
|
-
meaning: "the last day of something that lasts whole days, such as an all-day event"
|
|
430
|
+
meaning: "the last day of something that lasts whole days, such as an all-day event or a contract"
|
|
428
431
|
},
|
|
429
432
|
{ name: "--location", value: "<text>", role: "value", type: "string", meaning: "where it takes place" },
|
|
430
433
|
{
|
|
@@ -483,7 +486,7 @@ var CALENDAR_FLAGS = [
|
|
|
483
486
|
}
|
|
484
487
|
];
|
|
485
488
|
|
|
486
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
489
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-crm.js
|
|
487
490
|
var CRM_FLAGS = [
|
|
488
491
|
{
|
|
489
492
|
name: "--pipeline",
|
|
@@ -520,10 +523,106 @@ var CRM_FLAGS = [
|
|
|
520
523
|
role: "value",
|
|
521
524
|
type: "id",
|
|
522
525
|
meaning: "the CRM user a record is assigned to, by the CRM's id"
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
name: "--status",
|
|
529
|
+
value: "<state>",
|
|
530
|
+
role: "value",
|
|
531
|
+
type: "choice",
|
|
532
|
+
meaning: "the state to put it in; the command lists the states"
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
name: "--product",
|
|
536
|
+
value: "<product>",
|
|
537
|
+
role: "value",
|
|
538
|
+
type: "string",
|
|
539
|
+
meaning: "a product or service the owner sells or buys: product:<id>"
|
|
540
|
+
},
|
|
541
|
+
{ name: "--contract", value: "<contract>", role: "value", type: "string", meaning: "a contract: contract:<id>" },
|
|
542
|
+
{ name: "--payment", value: "<payment>", role: "value", type: "string", meaning: "a payment: payment:<id>" },
|
|
543
|
+
{
|
|
544
|
+
name: "--refund-of",
|
|
545
|
+
value: "<payment>",
|
|
546
|
+
role: "value",
|
|
547
|
+
type: "string",
|
|
548
|
+
meaning: "the payment this one gives money back for: payment:<id>"
|
|
549
|
+
},
|
|
550
|
+
{ name: "--wallet", value: "<wallet>", role: "value", type: "string", meaning: "a wallet: wallet:<id>" },
|
|
551
|
+
{
|
|
552
|
+
name: "--supplier",
|
|
553
|
+
value: "<party>",
|
|
554
|
+
role: "value",
|
|
555
|
+
type: "string",
|
|
556
|
+
meaning: "who supplies it: person:<uid> or organization:<id>"
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
name: "--customer",
|
|
560
|
+
value: "<party>",
|
|
561
|
+
role: "value",
|
|
562
|
+
type: "string",
|
|
563
|
+
meaning: "who receives it and pays for it: person:<uid> or organization:<id>"
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
name: "--trial-end-date",
|
|
567
|
+
value: "<date>",
|
|
568
|
+
role: "value",
|
|
569
|
+
type: "time",
|
|
570
|
+
meaning: "the day a free trial ends, YYYY-MM-DD"
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
name: "--notice-days",
|
|
574
|
+
value: "<days>",
|
|
575
|
+
role: "value",
|
|
576
|
+
type: "count",
|
|
577
|
+
meaning: "how many days before its end a party must say it will not go on",
|
|
578
|
+
unit: "days"
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
name: "--auto-renew",
|
|
582
|
+
value: "<on|off>",
|
|
583
|
+
role: "value",
|
|
584
|
+
type: "choice",
|
|
585
|
+
meaning: "it renews by itself at its end, or it does not"
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
name: "--opening-balance",
|
|
589
|
+
value: "<decimal>",
|
|
590
|
+
role: "value",
|
|
591
|
+
type: "string",
|
|
592
|
+
meaning: "the money it held on --opening-date, as a decimal such as 1500.50; later movements count from it"
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
name: "--opening-date",
|
|
596
|
+
value: "<date>",
|
|
597
|
+
role: "value",
|
|
598
|
+
type: "time",
|
|
599
|
+
meaning: "the day of the opening balance, YYYY-MM-DD"
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
name: "--institution",
|
|
603
|
+
value: "<text>",
|
|
604
|
+
role: "value",
|
|
605
|
+
type: "string",
|
|
606
|
+
meaning: "the bank or other company that holds it, by name"
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
name: "--unit",
|
|
610
|
+
value: "<text>",
|
|
611
|
+
role: "value",
|
|
612
|
+
type: "string",
|
|
613
|
+
meaning: "what one of it is counted in, such as hour or piece"
|
|
614
|
+
},
|
|
615
|
+
{ name: "--sku", value: "<code>", role: "value", type: "string", meaning: "the stock code the seller gives it" },
|
|
616
|
+
{
|
|
617
|
+
name: "--archived",
|
|
618
|
+
value: "<on|off>",
|
|
619
|
+
role: "value",
|
|
620
|
+
type: "choice",
|
|
621
|
+
meaning: "set it aside as no longer in use, or bring it back; what points at it keeps pointing at it"
|
|
523
622
|
}
|
|
524
623
|
];
|
|
525
624
|
|
|
526
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
625
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
|
|
527
626
|
var HOW_FLAGS = [
|
|
528
627
|
{
|
|
529
628
|
name: "--limit",
|
|
@@ -757,6 +856,7 @@ var HOW_FLAGS = [
|
|
|
757
856
|
type: "switch",
|
|
758
857
|
meaning: "record the action as the owner's although an agent's terminal runs the tool"
|
|
759
858
|
},
|
|
859
|
+
{ name: "--from-app", role: "mode", type: "switch", meaning: "the owner acted in the app; its word, not a check" },
|
|
760
860
|
{
|
|
761
861
|
name: "--allow-any-file",
|
|
762
862
|
role: "mode",
|
|
@@ -1518,7 +1618,7 @@ var HOW_FLAGS = [
|
|
|
1518
1618
|
}
|
|
1519
1619
|
];
|
|
1520
1620
|
|
|
1521
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1621
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-mail.js
|
|
1522
1622
|
var MAIL_FLAGS = [
|
|
1523
1623
|
{
|
|
1524
1624
|
name: "--cc",
|
|
@@ -1548,7 +1648,7 @@ var MAIL_FLAGS = [
|
|
|
1548
1648
|
}
|
|
1549
1649
|
];
|
|
1550
1650
|
|
|
1551
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1651
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-privacy.js
|
|
1552
1652
|
var PRIVACY_FLAGS = [
|
|
1553
1653
|
{
|
|
1554
1654
|
name: "--about-text",
|
|
@@ -1609,7 +1709,7 @@ var PRIVACY_FLAGS = [
|
|
|
1609
1709
|
{ name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" }
|
|
1610
1710
|
];
|
|
1611
1711
|
|
|
1612
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1712
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-schedule.js
|
|
1613
1713
|
var SCHEDULE_FLAGS = [
|
|
1614
1714
|
{
|
|
1615
1715
|
name: "--notify-on",
|
|
@@ -1635,7 +1735,7 @@ var SCHEDULE_FLAGS = [
|
|
|
1635
1735
|
}
|
|
1636
1736
|
];
|
|
1637
1737
|
|
|
1638
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1738
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
|
|
1639
1739
|
var WHAT_FLAGS = [
|
|
1640
1740
|
{
|
|
1641
1741
|
name: "--analysis-provider",
|
|
@@ -2361,7 +2461,14 @@ var WHAT_FLAGS = [
|
|
|
2361
2461
|
type: "id",
|
|
2362
2462
|
meaning: "the stored calendar event it is linked to, or none to unlink"
|
|
2363
2463
|
},
|
|
2364
|
-
{
|
|
2464
|
+
{
|
|
2465
|
+
name: "--every",
|
|
2466
|
+
value: "<duration>",
|
|
2467
|
+
role: "value",
|
|
2468
|
+
type: "duration",
|
|
2469
|
+
otherValues: ["count-unit"],
|
|
2470
|
+
meaning: "repeat this often: a length of time for a timer (<duration>), a count and a calendar unit for a charge, such as 1-month (<count-unit>)"
|
|
2471
|
+
},
|
|
2365
2472
|
{
|
|
2366
2473
|
name: "--evidence",
|
|
2367
2474
|
value: "<ref...>",
|
|
@@ -2597,7 +2704,7 @@ var WHAT_FLAGS = [
|
|
|
2597
2704
|
}
|
|
2598
2705
|
];
|
|
2599
2706
|
|
|
2600
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2707
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
|
|
2601
2708
|
var FLAG_TYPES = [
|
|
2602
2709
|
"switch",
|
|
2603
2710
|
"count",
|
|
@@ -2685,6 +2792,7 @@ var defineVocabulary = /* @__PURE__ */ __name((input) => parseRegistry("vocabula
|
|
|
2685
2792
|
var verbs = [
|
|
2686
2793
|
["list", "show many"],
|
|
2687
2794
|
["show", "show one"],
|
|
2795
|
+
["browse", "list one level of a remote hierarchy, such as a provider's folders, to choose from; reads only"],
|
|
2688
2796
|
["search", "find by text; the description says where it looks"],
|
|
2689
2797
|
["prepare", "assemble bounded cited context for a selected upcoming activity without applying findings"],
|
|
2690
2798
|
["related", "what is nearest in meaning to one thing, without a query"],
|
|
@@ -2715,7 +2823,7 @@ var verbs = [
|
|
|
2715
2823
|
["revoke", "take back what was granted, so it stops working: a login, an invite link, a consent"],
|
|
2716
2824
|
["install", "install a system unit"],
|
|
2717
2825
|
["uninstall", "remove a system unit"],
|
|
2718
|
-
["cancel", "stop a job
|
|
2826
|
+
["cancel", "stop a job, a pending thing or a subscription"],
|
|
2719
2827
|
[
|
|
2720
2828
|
"sync",
|
|
2721
2829
|
"bring the local store up to date from the source: only what changed, or the whole list where the source cannot say; a mirror syncs both ways"
|
|
@@ -2738,6 +2846,10 @@ var verbs = [
|
|
|
2738
2846
|
// Only when someone asks, never from a matching name: WC-ACCT-11 in docs/standards/accounts.md.
|
|
2739
2847
|
["link", "record that two identities are one person"],
|
|
2740
2848
|
["unlink", "undo a link"],
|
|
2849
|
+
[
|
|
2850
|
+
"match",
|
|
2851
|
+
"link each waiting record to the thing its identifiers name, such as a person by e-mail address; a name alone never matches"
|
|
2852
|
+
],
|
|
2741
2853
|
["allocate", "match a payment to the invoice or order it settles, in whole or in part"],
|
|
2742
2854
|
["lookup", "ask the messenger who is behind a phone number"],
|
|
2743
2855
|
[
|
|
@@ -2850,7 +2962,14 @@ var collections = [
|
|
|
2850
2962
|
["leads", "possible customers not yet qualified into a deal"],
|
|
2851
2963
|
["pipelines", "ordered sets of stages a deal moves through"],
|
|
2852
2964
|
["stages", "steps of a pipeline, each open, won or lost"],
|
|
2853
|
-
["products", "goods and services the owner sells, with their prices"],
|
|
2965
|
+
["products", "goods and services the owner sells or buys, with their prices"],
|
|
2966
|
+
["lines", "the rows of an order or an invoice: what, how many and at what price"],
|
|
2967
|
+
["contracts", "agreements the owner is a party to, with their terms, dates and renewal"],
|
|
2968
|
+
["subscriptions", "charges that repeat on a schedule, which the owner pays or is paid, with their price history"],
|
|
2969
|
+
["prices", "what a thing costs over time, each price from its start date"],
|
|
2970
|
+
["wallets", "places that hold the owner's money, such as a bank account, a card or cash"],
|
|
2971
|
+
["transactions", "money that moved in or out of a wallet, as the bank or the owner recorded it"],
|
|
2972
|
+
["splits", "parts of one transaction, each with its own amount and category"],
|
|
2854
2973
|
["users", "people who work in the owner's account at a service, such as a CRM's employees"],
|
|
2855
2974
|
["fields", "a record type's field definitions: code, label, type and options, such as a CRM's custom fields"],
|
|
2856
2975
|
[
|
|
@@ -2995,7 +3114,7 @@ var VOCABULARY = defineVocabulary({
|
|
|
2995
3114
|
]
|
|
2996
3115
|
});
|
|
2997
3116
|
|
|
2998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3117
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
2999
3118
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
3000
3119
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
3001
3120
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -3218,7 +3337,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
3218
3337
|
}
|
|
3219
3338
|
}, "runCommandForAgent");
|
|
3220
3339
|
|
|
3221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
3222
3341
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
3223
3342
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
3224
3343
|
var message = pipe(
|
|
@@ -3474,10 +3593,10 @@ var answered = /* @__PURE__ */ __name((answer, maxBytes = DEFAULT_OUTPUT_BYTES,
|
|
|
3474
3593
|
var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
3475
3594
|
const judged = judgedEffects(effects);
|
|
3476
3595
|
const context = { ...failureContext(errors), ...judged ? { effects: judged } : {} };
|
|
3477
|
-
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
|
|
3596
|
+
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
|
|
3478
3597
|
}, "failed");
|
|
3479
3598
|
|
|
3480
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3599
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3481
3600
|
import { randomUUID } from "node:crypto";
|
|
3482
3601
|
var MATCHES = 8;
|
|
3483
3602
|
var ANSWER = answerSchema();
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
readLock,
|
|
6
6
|
releaseLock,
|
|
7
7
|
takeLock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-F2VDAG32.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
14
14
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
|
|
17
17
|
import { randomBytes } from "node:crypto";
|
|
18
18
|
import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
|
|
|
86
86
|
};
|
|
87
87
|
}, "activityRecorder");
|
|
88
88
|
|
|
89
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
89
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
90
90
|
var ACCESS_SECONDS = 60 * 60;
|
|
91
91
|
var REFRESH_SECONDS = 30 * 24 * 60 * 60;
|
|
92
92
|
var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
agentOf,
|
|
30
30
|
clientHash,
|
|
31
31
|
currentCaller
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-VT2UFYPJ.js";
|
|
33
33
|
import {
|
|
34
34
|
__name
|
|
35
35
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -541,7 +541,7 @@ function toError(value) {
|
|
|
541
541
|
}
|
|
542
542
|
__name(toError, "toError");
|
|
543
543
|
|
|
544
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
544
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/mcp/caller.js
|
|
545
545
|
var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
|
|
546
546
|
const client = caller?.agent?.client?.name;
|
|
547
547
|
if (client && client !== "unknown")
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
} from "./chunk-Y5E2WNWB.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EJ4PNHPP.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
|
|
14
14
|
import { readFileSync } from "node:fs";
|
|
15
15
|
var musl = /* @__PURE__ */ __name(() => {
|
|
16
16
|
if (process.platform !== "linux")
|
|
@@ -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-EJ4PNHPP.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.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/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();
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
|
|
8
8
|
var instructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => {
|
|
9
9
|
const all = typeof profile !== "string";
|
|
10
10
|
const offers = /* @__PURE__ */ __name((key) => all || writes.includes(key), "offers");
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
wirecatDirectory
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DD7EFG6B.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EJ4PNHPP.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/speech/models.js
|
|
14
14
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
15
15
|
var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
|
|
16
16
|
var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
|
|
@@ -137,7 +137,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
|
|
|
137
137
|
return model;
|
|
138
138
|
}, "speechModel");
|
|
139
139
|
|
|
140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/speech/install.js
|
|
141
141
|
import { createHash, randomUUID } from "node:crypto";
|
|
142
142
|
import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
|
|
143
143
|
import { rename, rm } from "node:fs/promises";
|
|
@@ -4,17 +4,19 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5OFA5EXE.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EJ4PNHPP.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
|
|
16
16
|
import { createInterface } from "node:readline";
|
|
17
17
|
import { Writable } from "node:stream";
|
|
18
|
+
var EMPTY_TRIES = 3;
|
|
19
|
+
var pasteHint = /* @__PURE__ */ __name((platform = process.platform) => `Nothing arrived. To paste in a terminal, use ${platform === "darwin" ? "Cmd+V" : "Ctrl+Shift+V (or right-click \u2192 Paste)"}.`, "pasteHint");
|
|
18
20
|
var readSecret = /* @__PURE__ */ __name(async (prompt, { input = process.stdin, output = process.stderr, echo = false, signal: givenSignal } = {}) => {
|
|
19
21
|
const policy = inputPolicy(input);
|
|
20
22
|
const signals = [givenSignal, policy.signal].filter((one) => one !== void 0);
|
|
@@ -65,9 +67,24 @@ var readSecret = /* @__PURE__ */ __name(async (prompt, { input = process.stdin,
|
|
|
65
67
|
reader.once("SIGINT", cancel);
|
|
66
68
|
reader.once("close", cancel);
|
|
67
69
|
signal?.addEventListener("abort", abort, { once: true });
|
|
68
|
-
|
|
69
|
-
|
|
70
|
+
const ask = /* @__PURE__ */ __name((tries) => {
|
|
71
|
+
muted = false;
|
|
72
|
+
reader.question(prompt, (line) => {
|
|
73
|
+
if (echo || line.trim() || tries >= EMPTY_TRIES)
|
|
74
|
+
return resolve(line);
|
|
75
|
+
output.write(`
|
|
76
|
+
${pasteHint()}
|
|
77
|
+
`);
|
|
78
|
+
ask(tries + 1);
|
|
79
|
+
});
|
|
80
|
+
muted = !echo;
|
|
81
|
+
}, "ask");
|
|
82
|
+
ask(1);
|
|
70
83
|
});
|
|
84
|
+
if (!echo && !answer.trim())
|
|
85
|
+
throw new CliError("validation_error", `nothing arrived after ${EMPTY_TRIES} tries. ${pasteHint()}`, {
|
|
86
|
+
reason: "input.empty"
|
|
87
|
+
});
|
|
71
88
|
return answer.trim();
|
|
72
89
|
} finally {
|
|
73
90
|
input.off("data", data).off("error", inputError);
|
|
@@ -78,5 +95,6 @@ var readSecret = /* @__PURE__ */ __name(async (prompt, { input = process.stdin,
|
|
|
78
95
|
}, "readSecret");
|
|
79
96
|
|
|
80
97
|
export {
|
|
98
|
+
pasteHint,
|
|
81
99
|
readSecret
|
|
82
100
|
};
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
|
|
8
8
|
import { existsSync } from "node:fs";
|
|
9
9
|
import { win32 } from "node:path";
|
|
10
10
|
var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
|