@wirecat/drive-cli 0.63.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-GZJS3UKC.js → all-profiles-BPPT2AK5.js} +13 -13
- package/dist/bundle/{anthropic-RGV3WXX5.js → anthropic-JW6GOJUD.js} +13 -11
- package/dist/bundle/{app-server-AA2PJ7PV.js → app-server-KAQIOJMZ.js} +53 -53
- package/dist/bundle/{bun-OXZYIA3R.js → bun-UT7GNTPV.js} +2 -2
- package/dist/bundle/{bun-sqlite-D45NSDM3.js → bun-sqlite-2OIVV3LS.js} +8 -8
- package/dist/bundle/{chunk-EOOGWUTP.js → chunk-2FEZ24DK.js} +10 -10
- package/dist/bundle/{chunk-TWUH22Z5.js → chunk-2W464HAE.js} +4 -4
- package/dist/bundle/{chunk-YIP7ELON.js → chunk-34BIDKF4.js} +275 -419
- package/dist/bundle/{chunk-2NIC72HH.js → chunk-36GPBPWM.js} +1 -1
- package/dist/bundle/{chunk-44SBK6KB.js → chunk-3J5KAFNA.js} +1601 -877
- package/dist/bundle/{chunk-ZM5J6ZMB.js → chunk-3NULZGQU.js} +2 -2
- package/dist/bundle/{chunk-DJHLVUL6.js → chunk-46CD64J2.js} +152 -36
- package/dist/bundle/{chunk-2TFXK3R4.js → chunk-4CNTID2X.js} +4 -4
- package/dist/bundle/{chunk-WYGWWHZP.js → chunk-4YRENUB5.js} +2 -2
- package/dist/bundle/{chunk-L37LMMRJ.js → chunk-5HSRQ53R.js} +2 -2
- package/dist/bundle/{chunk-XR6ESRU6.js → chunk-5OFA5EXE.js} +2 -2
- package/dist/bundle/{chunk-3QINVLZI.js → chunk-5ZBR55US.js} +1 -1
- package/dist/bundle/{chunk-LMAVCYLQ.js → chunk-66AF4FBW.js} +4 -4
- package/dist/bundle/{chunk-Y6GNA7HE.js → chunk-6B37XO6B.js} +23 -5
- package/dist/bundle/{chunk-ZMOUUOT2.js → chunk-6G53ZFUT.js} +1 -1
- package/dist/bundle/{chunk-2TDUGC5D.js → chunk-AHB4OJCI.js} +1885 -565
- package/dist/bundle/{chunk-E4SDKMBJ.js → chunk-B67BLRAI.js} +3 -3
- package/dist/bundle/{chunk-YGU6ULU5.js → chunk-B7XBIOMR.js} +12 -12
- package/dist/bundle/{chunk-FEZF3TII.js → chunk-BDYWZ7JE.js} +50 -6
- package/dist/bundle/{chunk-BKYMKVHT.js → chunk-BEUAICUD.js} +2 -2
- package/dist/bundle/{chunk-ABYGSJZ4.js → chunk-BEZJA44H.js} +7 -7
- package/dist/bundle/{chunk-TF23BZW5.js → chunk-BZ2ZKILM.js} +3 -3
- package/dist/bundle/{chunk-FUITWY7O.js → chunk-C7WBNOYW.js} +1 -1
- package/dist/bundle/{chunk-V3NVXIQR.js → chunk-CPMRM3GQ.js} +231 -191
- package/dist/bundle/{chunk-AEX37ETW.js → chunk-DD7EFG6B.js} +2 -2
- package/dist/bundle/{chunk-PDCCYHCH.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-4S4JMW6I.js → chunk-EQEGJVO2.js} +1 -1
- package/dist/bundle/{chunk-XNVFKMVR.js → chunk-EWGVDFPT.js} +957 -533
- package/dist/bundle/{chunk-CE2TJBLP.js → chunk-EZ6O3ST3.js} +3 -3
- package/dist/bundle/{chunk-FRIJUILO.js → chunk-F2VDAG32.js} +3 -3
- package/dist/bundle/{chunk-HZZCEQTH.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-4CIZWCXV.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-DJ3SDJZY.js → chunk-IX7NQJLY.js} +8 -8
- package/dist/bundle/{chunk-534OBX5Y.js → chunk-J62DI53V.js} +1 -1
- package/dist/bundle/{chunk-PO5RQQIG.js → chunk-JRXFW7HE.js} +5 -5
- package/dist/bundle/{chunk-XIUDS3OK.js → chunk-K6BSB53R.js} +1 -1
- package/dist/bundle/{chunk-ND6LLYGF.js → chunk-KE4XPPRQ.js} +27 -27
- package/dist/bundle/{chunk-UQLWMGSD.js → chunk-KG2XKEHL.js} +5 -5
- package/dist/bundle/{chunk-MOTRI3SY.js → chunk-KIN6PDFE.js} +24 -2
- package/dist/bundle/{chunk-VAUMOZU5.js → chunk-KVW4XNKB.js} +16 -16
- package/dist/bundle/{chunk-33MGFUED.js → chunk-LOMW6F2E.js} +194 -229
- package/dist/bundle/{chunk-5PPL7JDM.js → chunk-M73NNJ3X.js} +2 -2
- package/dist/bundle/{chunk-QCKZ3GAA.js → chunk-N622LRPM.js} +4 -4
- package/dist/bundle/{chunk-3BZRKLJ6.js → chunk-O2QO5UZC.js} +13 -13
- package/dist/bundle/{chunk-SXM6MHRR.js → chunk-OEVHZOHC.js} +12 -12
- package/dist/bundle/{chunk-6MQSQ4LX.js → chunk-OH3K2E7X.js} +402 -184
- package/dist/bundle/{chunk-J24ZFCWM.js → chunk-P7DEGRZA.js} +21 -21
- package/dist/bundle/{chunk-YUWPNG7B.js → chunk-PBMSBCVB.js} +1 -1
- package/dist/bundle/{chunk-S4RXABDR.js → chunk-QEAD2LF4.js} +3 -3
- package/dist/bundle/{chunk-OXY6SSZG.js → chunk-QXCKJUZY.js} +33 -18
- package/dist/bundle/{chunk-LZEOQW7S.js → chunk-SIOIMO62.js} +36 -36
- package/dist/bundle/{chunk-RKELRWH7.js → chunk-TNV2FXVK.js} +5 -5
- package/dist/bundle/{chunk-UPOSDTPT.js → chunk-UD55VB2N.js} +3 -3
- package/dist/bundle/{chunk-6KQJSFYF.js → chunk-UIEA6FIV.js} +22 -22
- package/dist/bundle/{chunk-XDC3TWTL.js → chunk-UJR272CP.js} +28 -28
- package/dist/bundle/{chunk-3HK5WMI5.js → chunk-USLZE36C.js} +6 -6
- package/dist/bundle/{chunk-ZOJU7ZFI.js → chunk-VIJ6ACYB.js} +8 -8
- package/dist/bundle/{chunk-VKPCONDQ.js → chunk-VPLFD5RJ.js} +4 -4
- package/dist/bundle/{chunk-VJEOGKAN.js → chunk-VT2UFYPJ.js} +7 -7
- package/dist/bundle/{chunk-Q5DJTRKV.js → chunk-WWCYTMAV.js} +2 -2
- package/dist/bundle/{chunk-7EMQ26BA.js → chunk-XPXKD63J.js} +13 -13
- package/dist/bundle/{chunk-J4DIHPZ6.js → chunk-ZF6GUZCE.js} +1 -1
- package/dist/bundle/{chunk-Z42YYLTS.js → chunk-ZRZ4HTCK.js} +52 -34
- package/dist/bundle/{chunk-NEFSGCVA.js → chunk-ZSZJLJIA.js} +10 -10
- package/dist/bundle/command-contract-H5OYJOPF.js +38 -0
- package/dist/bundle/{decode-G5YEIPNC.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-W2CWHNXR.js → echarts-KFHB6SLX.js} +2 -2
- package/dist/bundle/{embed-OBFFPVF4.js → embed-YATFB2PN.js} +9 -9
- package/dist/bundle/{embedder-NGCBQHIG.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-CIWUVJ5C.js → google-DVADVICN.js} +13 -13
- package/dist/bundle/{google-api-Z3NSTBBR.js → google-api-QMFGCXBM.js} +55 -56
- package/dist/bundle/grants-WKB2E4TA.js +103 -0
- package/dist/bundle/{identity-OM6GFZ7T.js → identity-FYVDK4M2.js} +6 -6
- package/dist/bundle/{instructions-YQBQSYSS.js → instructions-D3GF3B7M.js} +1 -1
- package/dist/bundle/{login-7RYSDVN3.js → login-COFZ2IWP.js} +61 -62
- package/dist/bundle/{mcp-GWDA3HOA.js → mcp-RKJG22KM.js} +2 -2
- package/dist/bundle/{node-IVU33RL7.js → node-OFICOKX3.js} +2 -2
- package/dist/bundle/{node-sqlite-SIH5BEW2.js → node-sqlite-DNBTDOXD.js} +9 -9
- package/dist/bundle/oauth-PDQHWFBF.js +22 -0
- package/dist/bundle/{open-IAO2SNII.js → open-PTPR2YWX.js} +8 -8
- package/dist/bundle/{openai-SGOUBHXP.js → openai-2KV5LUW4.js} +17 -17
- package/dist/bundle/{process-BPBMV3AT.js → process-EAW6NST2.js} +1 -1
- package/dist/bundle/{program-MYKKJ4F6.js → program-6UV5Q5YN.js} +306 -276
- package/dist/bundle/prompt-634TPMJK.js +19 -0
- package/dist/bundle/{reasons-57J2D77K.js → reasons-DDWCEYSQ.js} +5 -5
- package/dist/bundle/{recognize-A5C5RPB3.js → recognize-SJO6QUDW.js} +7 -7
- package/dist/bundle/{remote-VWYFLRGO.js → remote-6JXZITKF.js} +10 -10
- package/dist/bundle/{rerank-4NGQWREA.js → rerank-MD5VOPQ6.js} +10 -10
- package/dist/bundle/{serve-Y6LQTFH5.js → serve-LZTROA2M.js} +12 -12
- package/dist/bundle/server-GT7X666D.js +69 -0
- package/dist/bundle/{server-6AUHIIUA.js → server-NSA3UAFY.js} +43 -43
- package/dist/bundle/{services-2W4J7EMW.js → services-F5A6XQCV.js} +63 -33
- package/dist/bundle/{sqlite-runtime-P6BBDX2H.js → sqlite-runtime-7YF6REKS.js} +9 -9
- package/dist/bundle/{start-AFFA3LKM.js → start-MUFLE6FA.js} +30 -8
- package/dist/bundle/{state-PXKKXR3R.js → state-UC54F3YZ.js} +9 -9
- package/dist/bundle/{store-IVV2BAGZ.js → store-F5FJGWMR.js} +28 -20
- package/dist/bundle/{store-CN6JEUC4.js → store-J53YNAH6.js} +35 -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/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-Z5KC7XBR.js +0 -33
- package/dist/bundle/command-contract-BRW3AP44.js +0 -38
- package/dist/bundle/entry-ET6HGM7A.js +0 -22
- package/dist/bundle/first-run-JG52UZVO.js +0 -30
- package/dist/bundle/first-screen-CIL3GFAA.js +0 -36
- package/dist/bundle/grants-3S4RL3WB.js +0 -104
- package/dist/bundle/oauth-PT4JEHLL.js +0 -22
- package/dist/bundle/prompt-3ZM64DCB.js +0 -17
- package/dist/bundle/server-PFHI35HA.js +0 -69
- package/dist/bundle/store-maintenance-command-MSY2QNEH.js +0 -59
- package/dist/bundle/tokens-P4LPNUFW.js +0 -102
- /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,26 +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
59
|
import {
|
|
60
60
|
storeDamaged
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-B67BLRAI.js";
|
|
62
62
|
import {
|
|
63
63
|
MAX_BUFFERED_INPUT
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-5OFA5EXE.js";
|
|
65
65
|
import {
|
|
66
66
|
captureStreams
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-G4KEKKDE.js";
|
|
68
68
|
import {
|
|
69
69
|
errorObjectOf,
|
|
70
70
|
mcpErrorResult
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-KG2XKEHL.js";
|
|
72
72
|
import {
|
|
73
73
|
traceIdOf
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-HW4UPST2.js";
|
|
75
75
|
import {
|
|
76
76
|
COMPACT_FLAG,
|
|
77
77
|
SNAKE_CASE,
|
|
@@ -108,19 +108,19 @@ import {
|
|
|
108
108
|
unknown,
|
|
109
109
|
word,
|
|
110
110
|
writes
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-BDYWZ7JE.js";
|
|
112
112
|
import {
|
|
113
113
|
CliError,
|
|
114
114
|
errorCodes
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-EJ4PNHPP.js";
|
|
116
116
|
import {
|
|
117
117
|
__name
|
|
118
118
|
} from "./chunk-ZVVMGPBJ.js";
|
|
119
119
|
|
|
120
|
-
// 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
|
|
121
121
|
import { Readable } from "node:stream";
|
|
122
122
|
|
|
123
|
-
// 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
|
|
124
124
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
125
125
|
var lintRuleSchema = strictObject({
|
|
126
126
|
id: word,
|
|
@@ -248,7 +248,7 @@ var overrideSchema = strictObject({
|
|
|
248
248
|
});
|
|
249
249
|
var overridesSchema = array(overrideSchema);
|
|
250
250
|
|
|
251
|
-
// 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
|
|
252
252
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
253
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");
|
|
254
254
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -374,7 +374,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
374
374
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
375
375
|
]);
|
|
376
376
|
|
|
377
|
-
// 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
|
|
378
378
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
379
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");
|
|
380
380
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -390,7 +390,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
390
390
|
}
|
|
391
391
|
]);
|
|
392
392
|
|
|
393
|
-
// 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
|
|
394
394
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
395
395
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
396
396
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -412,7 +412,7 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
412
412
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
413
413
|
]);
|
|
414
414
|
|
|
415
|
-
// 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
|
|
416
416
|
var CALENDAR_FLAGS = [
|
|
417
417
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
418
418
|
{
|
|
@@ -420,14 +420,14 @@ var CALENDAR_FLAGS = [
|
|
|
420
420
|
value: "<date>",
|
|
421
421
|
role: "value",
|
|
422
422
|
type: "time",
|
|
423
|
-
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"
|
|
424
424
|
},
|
|
425
425
|
{
|
|
426
426
|
name: "--end-date",
|
|
427
427
|
value: "<date>",
|
|
428
428
|
role: "value",
|
|
429
429
|
type: "time",
|
|
430
|
-
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"
|
|
431
431
|
},
|
|
432
432
|
{ name: "--location", value: "<text>", role: "value", type: "string", meaning: "where it takes place" },
|
|
433
433
|
{
|
|
@@ -486,7 +486,7 @@ var CALENDAR_FLAGS = [
|
|
|
486
486
|
}
|
|
487
487
|
];
|
|
488
488
|
|
|
489
|
-
// 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
|
|
490
490
|
var CRM_FLAGS = [
|
|
491
491
|
{
|
|
492
492
|
name: "--pipeline",
|
|
@@ -523,10 +523,106 @@ var CRM_FLAGS = [
|
|
|
523
523
|
role: "value",
|
|
524
524
|
type: "id",
|
|
525
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"
|
|
526
622
|
}
|
|
527
623
|
];
|
|
528
624
|
|
|
529
|
-
// 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
|
|
530
626
|
var HOW_FLAGS = [
|
|
531
627
|
{
|
|
532
628
|
name: "--limit",
|
|
@@ -760,6 +856,7 @@ var HOW_FLAGS = [
|
|
|
760
856
|
type: "switch",
|
|
761
857
|
meaning: "record the action as the owner's although an agent's terminal runs the tool"
|
|
762
858
|
},
|
|
859
|
+
{ name: "--from-app", role: "mode", type: "switch", meaning: "the owner acted in the app; its word, not a check" },
|
|
763
860
|
{
|
|
764
861
|
name: "--allow-any-file",
|
|
765
862
|
role: "mode",
|
|
@@ -1521,7 +1618,7 @@ var HOW_FLAGS = [
|
|
|
1521
1618
|
}
|
|
1522
1619
|
];
|
|
1523
1620
|
|
|
1524
|
-
// 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
|
|
1525
1622
|
var MAIL_FLAGS = [
|
|
1526
1623
|
{
|
|
1527
1624
|
name: "--cc",
|
|
@@ -1551,7 +1648,7 @@ var MAIL_FLAGS = [
|
|
|
1551
1648
|
}
|
|
1552
1649
|
];
|
|
1553
1650
|
|
|
1554
|
-
// 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
|
|
1555
1652
|
var PRIVACY_FLAGS = [
|
|
1556
1653
|
{
|
|
1557
1654
|
name: "--about-text",
|
|
@@ -1612,7 +1709,7 @@ var PRIVACY_FLAGS = [
|
|
|
1612
1709
|
{ name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" }
|
|
1613
1710
|
];
|
|
1614
1711
|
|
|
1615
|
-
// 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
|
|
1616
1713
|
var SCHEDULE_FLAGS = [
|
|
1617
1714
|
{
|
|
1618
1715
|
name: "--notify-on",
|
|
@@ -1638,7 +1735,7 @@ var SCHEDULE_FLAGS = [
|
|
|
1638
1735
|
}
|
|
1639
1736
|
];
|
|
1640
1737
|
|
|
1641
|
-
// 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
|
|
1642
1739
|
var WHAT_FLAGS = [
|
|
1643
1740
|
{
|
|
1644
1741
|
name: "--analysis-provider",
|
|
@@ -2364,7 +2461,14 @@ var WHAT_FLAGS = [
|
|
|
2364
2461
|
type: "id",
|
|
2365
2462
|
meaning: "the stored calendar event it is linked to, or none to unlink"
|
|
2366
2463
|
},
|
|
2367
|
-
{
|
|
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
|
+
},
|
|
2368
2472
|
{
|
|
2369
2473
|
name: "--evidence",
|
|
2370
2474
|
value: "<ref...>",
|
|
@@ -2600,7 +2704,7 @@ var WHAT_FLAGS = [
|
|
|
2600
2704
|
}
|
|
2601
2705
|
];
|
|
2602
2706
|
|
|
2603
|
-
// 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
|
|
2604
2708
|
var FLAG_TYPES = [
|
|
2605
2709
|
"switch",
|
|
2606
2710
|
"count",
|
|
@@ -2688,6 +2792,7 @@ var defineVocabulary = /* @__PURE__ */ __name((input) => parseRegistry("vocabula
|
|
|
2688
2792
|
var verbs = [
|
|
2689
2793
|
["list", "show many"],
|
|
2690
2794
|
["show", "show one"],
|
|
2795
|
+
["browse", "list one level of a remote hierarchy, such as a provider's folders, to choose from; reads only"],
|
|
2691
2796
|
["search", "find by text; the description says where it looks"],
|
|
2692
2797
|
["prepare", "assemble bounded cited context for a selected upcoming activity without applying findings"],
|
|
2693
2798
|
["related", "what is nearest in meaning to one thing, without a query"],
|
|
@@ -2718,7 +2823,7 @@ var verbs = [
|
|
|
2718
2823
|
["revoke", "take back what was granted, so it stops working: a login, an invite link, a consent"],
|
|
2719
2824
|
["install", "install a system unit"],
|
|
2720
2825
|
["uninstall", "remove a system unit"],
|
|
2721
|
-
["cancel", "stop a job
|
|
2826
|
+
["cancel", "stop a job, a pending thing or a subscription"],
|
|
2722
2827
|
[
|
|
2723
2828
|
"sync",
|
|
2724
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"
|
|
@@ -2741,6 +2846,10 @@ var verbs = [
|
|
|
2741
2846
|
// Only when someone asks, never from a matching name: WC-ACCT-11 in docs/standards/accounts.md.
|
|
2742
2847
|
["link", "record that two identities are one person"],
|
|
2743
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
|
+
],
|
|
2744
2853
|
["allocate", "match a payment to the invoice or order it settles, in whole or in part"],
|
|
2745
2854
|
["lookup", "ask the messenger who is behind a phone number"],
|
|
2746
2855
|
[
|
|
@@ -2853,7 +2962,14 @@ var collections = [
|
|
|
2853
2962
|
["leads", "possible customers not yet qualified into a deal"],
|
|
2854
2963
|
["pipelines", "ordered sets of stages a deal moves through"],
|
|
2855
2964
|
["stages", "steps of a pipeline, each open, won or lost"],
|
|
2856
|
-
["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"],
|
|
2857
2973
|
["users", "people who work in the owner's account at a service, such as a CRM's employees"],
|
|
2858
2974
|
["fields", "a record type's field definitions: code, label, type and options, such as a CRM's custom fields"],
|
|
2859
2975
|
[
|
|
@@ -2998,7 +3114,7 @@ var VOCABULARY = defineVocabulary({
|
|
|
2998
3114
|
]
|
|
2999
3115
|
});
|
|
3000
3116
|
|
|
3001
|
-
// 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
|
|
3002
3118
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
3003
3119
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
3004
3120
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -3221,7 +3337,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
3221
3337
|
}
|
|
3222
3338
|
}, "runCommandForAgent");
|
|
3223
3339
|
|
|
3224
|
-
// 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
|
|
3225
3341
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
3226
3342
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
3227
3343
|
var message = pipe(
|
|
@@ -3480,7 +3596,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3480
3596
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
|
|
3481
3597
|
}, "failed");
|
|
3482
3598
|
|
|
3483
|
-
// 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
|
|
3484
3600
|
import { randomUUID } from "node:crypto";
|
|
3485
3601
|
var MATCHES = 8;
|
|
3486
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");
|