@wirecat/drive-cli 0.64.0 → 0.65.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/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-BPPT2AK5.js → all-profiles-PD7GJHFA.js} +14 -13
- package/dist/bundle/{anthropic-JW6GOJUD.js → anthropic-PJKFON5H.js} +20 -11
- package/dist/bundle/{app-server-KAQIOJMZ.js → app-server-6ELQA6FJ.js} +59 -56
- package/dist/bundle/{bun-UT7GNTPV.js → bun-P54TGES2.js} +2 -2
- package/dist/bundle/{bun-sqlite-2OIVV3LS.js → bun-sqlite-TND5ZRJH.js} +12 -8
- package/dist/bundle/chunk-2AFI4KGI.js +185 -0
- package/dist/bundle/{chunk-WWCYTMAV.js → chunk-3HXNDF6Q.js} +2 -2
- package/dist/bundle/{chunk-46CD64J2.js → chunk-3ONWN3IA.js} +166 -53
- package/dist/bundle/{chunk-4YRENUB5.js → chunk-42G2XNPN.js} +2 -2
- package/dist/bundle/chunk-4AOINPN2.js +66 -0
- package/dist/bundle/{chunk-ZF6GUZCE.js → chunk-4EDWLR22.js} +1 -1
- package/dist/bundle/{chunk-BEZJA44H.js → chunk-4Y5YBFMS.js} +7 -7
- package/dist/bundle/{chunk-B7XBIOMR.js → chunk-54V4H6PM.js} +16 -16
- package/dist/bundle/{chunk-4CNTID2X.js → chunk-5XSBCMAF.js} +4 -4
- package/dist/bundle/{chunk-IDAK4DDK.js → chunk-6DCLZLGX.js} +1 -1
- package/dist/bundle/{chunk-G4KEKKDE.js → chunk-7AQGVX5O.js} +20 -20
- package/dist/bundle/{chunk-34BIDKF4.js → chunk-7TAP7Y2E.js} +508 -155
- package/dist/bundle/{chunk-BZ2ZKILM.js → chunk-A27UVLPK.js} +3 -3
- package/dist/bundle/{chunk-SIOIMO62.js → chunk-A4QNADEX.js} +57 -51
- package/dist/bundle/{chunk-FXBHOCJK.js → chunk-ADLS6FVG.js} +1 -1
- package/dist/bundle/{chunk-66AF4FBW.js → chunk-B2LPCHQN.js} +4 -4
- package/dist/bundle/{chunk-M73NNJ3X.js → chunk-CGQRZRTH.js} +2 -2
- package/dist/bundle/{chunk-KVW4XNKB.js → chunk-CWLL63JD.js} +107 -48
- package/dist/bundle/{chunk-CPMRM3GQ.js → chunk-D6Z43SOG.js} +1592 -335
- package/dist/bundle/{chunk-QXCKJUZY.js → chunk-D7WB54P7.js} +111 -27
- package/dist/bundle/{chunk-VT2UFYPJ.js → chunk-DA63E2UM.js} +13 -9
- package/dist/bundle/{chunk-2FEZ24DK.js → chunk-ECEP4SO3.js} +20 -20
- package/dist/bundle/{chunk-ZSZJLJIA.js → chunk-EHU6EYGO.js} +38 -28
- package/dist/bundle/{chunk-EJ4PNHPP.js → chunk-ELJUBPY4.js} +1 -1
- package/dist/bundle/{chunk-F2VDAG32.js → chunk-EM7NL5ES.js} +3 -3
- package/dist/bundle/{chunk-O2QO5UZC.js → chunk-EU5MD24W.js} +13 -13
- package/dist/bundle/{chunk-KIN6PDFE.js → chunk-EZ2OLYEK.js} +4 -4
- package/dist/bundle/{chunk-OH3K2E7X.js → chunk-F56DRBGY.js} +655 -1220
- package/dist/bundle/{chunk-VIJ6ACYB.js → chunk-FA6JNXCC.js} +8 -8
- package/dist/bundle/{chunk-KE4XPPRQ.js → chunk-FBHSWQU7.js} +1531 -136
- package/dist/bundle/{chunk-ZRZ4HTCK.js → chunk-GW3LBY3T.js} +51 -67
- package/dist/bundle/{chunk-6B37XO6B.js → chunk-HP3NT6JJ.js} +3 -3
- package/dist/bundle/{chunk-IX7NQJLY.js → chunk-I272E6UR.js} +9 -8
- package/dist/bundle/{chunk-5HSRQ53R.js → chunk-IBO23OID.js} +2 -2
- package/dist/bundle/{chunk-EZ6O3ST3.js → chunk-II4S2DBJ.js} +3 -3
- package/dist/bundle/{chunk-3NULZGQU.js → chunk-IKHOIXJR.js} +2 -2
- package/dist/bundle/{chunk-JRXFW7HE.js → chunk-IMHW7VIV.js} +5 -5
- package/dist/bundle/{chunk-USLZE36C.js → chunk-JMJIH6JH.js} +6 -6
- package/dist/bundle/{chunk-C7WBNOYW.js → chunk-JPPPLKAO.js} +26 -1
- package/dist/bundle/{chunk-EQEGJVO2.js → chunk-LMKPP2JP.js} +1 -1
- package/dist/bundle/{chunk-G3NULXOM.js → chunk-M7ELUGU6.js} +4 -4
- package/dist/bundle/{chunk-6G53ZFUT.js → chunk-MCPOZNWG.js} +1 -1
- package/dist/bundle/{chunk-EWGVDFPT.js → chunk-NI5PD5KM.js} +39203 -35871
- package/dist/bundle/{chunk-AHB4OJCI.js → chunk-NQ5XMSLA.js} +3678 -2049
- package/dist/bundle/chunk-NQRTKYJB.js +257 -0
- package/dist/bundle/{chunk-3J5KAFNA.js → chunk-O6K2E7OA.js} +3917 -3005
- package/dist/bundle/{chunk-J62DI53V.js → chunk-O7ZDCOZE.js} +1 -1
- package/dist/bundle/{chunk-XPXKD63J.js → chunk-OFJXHEFT.js} +13 -13
- package/dist/bundle/chunk-OWMZUWCM.js +109 -0
- package/dist/bundle/chunk-PHOL2DZM.js +138 -0
- package/dist/bundle/{chunk-KG2XKEHL.js → chunk-PLP5527C.js} +5 -5
- package/dist/bundle/{chunk-5ZBR55US.js → chunk-RNHGQ35R.js} +1 -1
- package/dist/bundle/{chunk-IK6KH3RE.js → chunk-RX5CJ55S.js} +1 -1
- package/dist/bundle/{chunk-K6BSB53R.js → chunk-SE352DBY.js} +1 -1
- package/dist/bundle/chunk-SEQWBZYH.js +18 -0
- package/dist/bundle/{chunk-LOMW6F2E.js → chunk-SIWXYB4E.js} +3734 -3448
- package/dist/bundle/{chunk-GW3U6OLD.js → chunk-SNLSEYJO.js} +1 -1
- package/dist/bundle/{chunk-UJR272CP.js → chunk-SS4LKLD7.js} +52 -605
- package/dist/bundle/{chunk-BEUAICUD.js → chunk-TMHF4BCL.js} +2 -2
- package/dist/bundle/{chunk-BDYWZ7JE.js → chunk-TOVWMURV.js} +30 -6
- package/dist/bundle/{chunk-N622LRPM.js → chunk-TTP4NOP3.js} +4 -4
- package/dist/bundle/chunk-UTNRBOEN.js +53 -0
- package/dist/bundle/{chunk-36GPBPWM.js → chunk-VDZY3L7U.js} +3 -1
- package/dist/bundle/chunk-VHQYWFWV.js +13 -0
- package/dist/bundle/{chunk-VPLFD5RJ.js → chunk-VLXWAH5E.js} +4 -4
- package/dist/bundle/{chunk-UIEA6FIV.js → chunk-VMAMRFFC.js} +23 -23
- package/dist/bundle/{chunk-HW4UPST2.js → chunk-W2XY6C5S.js} +2 -2
- package/dist/bundle/{chunk-P7DEGRZA.js → chunk-WRAUO5EJ.js} +22 -24
- package/dist/bundle/{chunk-QEAD2LF4.js → chunk-WRMJN6UQ.js} +3 -3
- package/dist/bundle/{chunk-UD55VB2N.js → chunk-WVJHZIDH.js} +3 -3
- package/dist/bundle/{chunk-B67BLRAI.js → chunk-X7YGGWXI.js} +1 -59
- package/dist/bundle/{chunk-EC2XGDKJ.js → chunk-XPWZSW6Y.js} +4 -4
- package/dist/bundle/{chunk-E2LBCCTG.js → chunk-XYE7XZPB.js} +5 -5
- package/dist/bundle/{chunk-TNV2FXVK.js → chunk-Y5PKRITX.js} +5 -5
- package/dist/bundle/{chunk-5OFA5EXE.js → chunk-Z2ADO6UA.js} +2 -2
- package/dist/bundle/{chunk-PBMSBCVB.js → chunk-ZD4MB7NH.js} +1 -1
- package/dist/bundle/{chunk-2W464HAE.js → chunk-ZILALBYQ.js} +4 -4
- package/dist/bundle/{chunk-OEVHZOHC.js → chunk-ZR2EJPMQ.js} +44 -15
- package/dist/bundle/command-contract-25E4PYMD.js +40 -0
- package/dist/bundle/command-server-entry-36JXYIJB.js +170 -0
- package/dist/bundle/{decode-HTOQ6S3V.js → decode-T5ZW57WZ.js} +8 -8
- package/dist/bundle/{dispatch-SH5SP6LA.js → dispatch-RMA2XFYA.js} +9 -9
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-KFHB6SLX.js → echarts-KQ44LPSF.js} +2 -2
- package/dist/bundle/{embed-YATFB2PN.js → embed-Q7XST53J.js} +9 -9
- package/dist/bundle/{embedder-MQPDFGTJ.js → embedder-RWZSBVW2.js} +12 -12
- package/dist/bundle/entry-HPLW4QL2.js +25 -0
- package/dist/bundle/{failure-4FQL4XJI.js → failure-7NP4QPIN.js} +4 -4
- package/dist/bundle/first-run-RL3RKYZW.js +30 -0
- package/dist/bundle/first-screen-NX3TM2VJ.js +38 -0
- package/dist/bundle/google-DPD5N6AQ.js +42 -0
- package/dist/bundle/{google-api-QMFGCXBM.js → google-api-P5DRHD7L.js} +61 -55
- package/dist/bundle/grants-TX4MHLI4.js +109 -0
- package/dist/bundle/{identity-FYVDK4M2.js → identity-VDV6CHRW.js} +6 -6
- package/dist/bundle/{instructions-D3GF3B7M.js → instructions-Q45FVY6H.js} +1 -1
- package/dist/bundle/{login-COFZ2IWP.js → login-XKN3NI6X.js} +67 -61
- package/dist/bundle/{mcp-RKJG22KM.js → mcp-7KQUJNFN.js} +2 -2
- package/dist/bundle/{node-OFICOKX3.js → node-MSW565D3.js} +2 -2
- package/dist/bundle/{node-KM3CUABH.js → node-P4E63KXA.js} +9 -9
- package/dist/bundle/{node-sqlite-DNBTDOXD.js → node-sqlite-S74XVVHL.js} +13 -9
- package/dist/bundle/oauth-6R7AWAES.js +22 -0
- package/dist/bundle/{open-PTPR2YWX.js → open-P7UQG7XJ.js} +8 -8
- package/dist/bundle/{openai-2KV5LUW4.js → openai-DDHJ57KZ.js} +19 -40
- package/dist/bundle/{process-EAW6NST2.js → process-NMUB5SHK.js} +1 -1
- package/dist/bundle/{program-6UV5Q5YN.js → program-PJNWP6JW.js} +294 -137
- package/dist/bundle/{prompt-634TPMJK.js → prompt-VOSMK4C2.js} +8 -8
- package/dist/bundle/{reasons-DDWCEYSQ.js → reasons-KDAXOC5S.js} +5 -5
- package/dist/bundle/{recognize-SJO6QUDW.js → recognize-GZIY63HS.js} +7 -7
- package/dist/bundle/{remote-6JXZITKF.js → remote-V3YGN7LN.js} +10 -10
- package/dist/bundle/{rerank-MD5VOPQ6.js → rerank-XRU6AVN7.js} +10 -10
- package/dist/bundle/{serve-LZTROA2M.js → serve-NDOAFA57.js} +12 -12
- package/dist/bundle/{server-NSA3UAFY.js → server-BKGWJYMC.js} +46 -44
- package/dist/bundle/server-QD2MUJJZ.js +72 -0
- package/dist/bundle/{services-F5A6XQCV.js → services-TYDMFQCA.js} +101 -41
- package/dist/bundle/{sqlite-runtime-7YF6REKS.js → sqlite-runtime-UAFJKSJR.js} +9 -9
- package/dist/bundle/{start-MUFLE6FA.js → start-2ZLDP2OE.js} +7 -7
- package/dist/bundle/{state-UC54F3YZ.js → state-6SP27J2K.js} +9 -9
- package/dist/bundle/{store-J53YNAH6.js → store-4UUY545Q.js} +25 -18
- package/dist/bundle/{store-F5FJGWMR.js → store-EJN27MXI.js} +61 -28
- package/dist/bundle/store-maintenance-command-LETURZDC.js +60 -0
- package/dist/bundle/tokens-MTFJPTYT.js +107 -0
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +6 -5
- 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/documents.d.ts +2 -0
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +39 -3
- package/dist/commands/documents.js.map +1 -1
- package/dist/config.d.ts +13 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +32 -2
- package/dist/config.js.map +1 -1
- package/dist/documents-add.d.ts +49 -0
- package/dist/documents-add.d.ts.map +1 -0
- package/dist/documents-add.js +122 -0
- package/dist/documents-add.js.map +1 -0
- package/dist/errors.d.ts +1 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +9 -1
- package/dist/errors.js.map +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.d.ts.map +1 -1
- package/dist/knowledge.js +15 -17
- package/dist/knowledge.js.map +1 -1
- package/dist/model.d.ts +3 -0
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +22 -15
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +25 -0
- package/dist/reasons.js.map +1 -1
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +20 -0
- package/dist/store.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/dist/bundle/chunk-DD7EFG6B.js +0 -35
- package/dist/bundle/chunk-GSMYXGFR.js +0 -62
- package/dist/bundle/command-contract-H5OYJOPF.js +0 -38
- package/dist/bundle/entry-YZBB647C.js +0 -22
- package/dist/bundle/first-run-5JT3UQZB.js +0 -30
- package/dist/bundle/first-screen-BEMDEWO7.js +0 -36
- package/dist/bundle/google-DVADVICN.js +0 -36
- package/dist/bundle/grants-WKB2E4TA.js +0 -103
- package/dist/bundle/oauth-PDQHWFBF.js +0 -22
- package/dist/bundle/server-GT7X666D.js +0 -69
- package/dist/bundle/store-maintenance-command-GJVXLBAB.js +0 -58
- package/dist/bundle/tokens-H2EJKGA5.js +0 -101
- package/dist/bundle/{chunk-SW6C6WH5.js → chunk-YVNHQFLC.js} +0 -0
- package/dist/bundle/{mdast-util-from-markdown-FXEPSNER.js → mdast-util-from-markdown-CE73EWJ2.js} +3 -3
|
@@ -7,15 +7,20 @@ import {
|
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability,
|
|
9
9
|
failureContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-D7WB54P7.js";
|
|
11
11
|
import {
|
|
12
12
|
callerOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-42G2XNPN.js";
|
|
14
14
|
import {
|
|
15
15
|
QUERY_ARGUMENT,
|
|
16
16
|
lentConnection,
|
|
17
17
|
refuseLacking
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-WRAUO5EJ.js";
|
|
19
|
+
import {
|
|
20
|
+
onlineDeps,
|
|
21
|
+
servicesFor,
|
|
22
|
+
storeModeDeps
|
|
23
|
+
} from "./chunk-O6K2E7OA.js";
|
|
19
24
|
import {
|
|
20
25
|
DEFAULT_OUTPUT_BYTES,
|
|
21
26
|
ENTITIES,
|
|
@@ -30,48 +35,45 @@ import {
|
|
|
30
35
|
refuseStoreChange,
|
|
31
36
|
sealed,
|
|
32
37
|
startRecording
|
|
33
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-SIWXYB4E.js";
|
|
34
39
|
import {
|
|
35
40
|
currentCaller,
|
|
36
41
|
keepsSuccess,
|
|
37
42
|
runContextOf,
|
|
38
43
|
withCaller
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import {
|
|
41
|
-
onlineDeps,
|
|
42
|
-
servicesFor,
|
|
43
|
-
storeModeDeps
|
|
44
|
-
} from "./chunk-3J5KAFNA.js";
|
|
44
|
+
} from "./chunk-DA63E2UM.js";
|
|
45
45
|
import {
|
|
46
46
|
authorityAllowed,
|
|
47
47
|
botApiAllowed,
|
|
48
|
-
enclosingTraceId,
|
|
49
|
-
inRun,
|
|
50
48
|
keyForCommand,
|
|
51
49
|
levelFor,
|
|
50
|
+
readKeysForCommand
|
|
51
|
+
} from "./chunk-F56DRBGY.js";
|
|
52
|
+
import {
|
|
53
|
+
MAX_BUFFERED_INPUT
|
|
54
|
+
} from "./chunk-Z2ADO6UA.js";
|
|
55
|
+
import {
|
|
56
|
+
enclosingTraceId,
|
|
57
|
+
inRun,
|
|
52
58
|
newRunId,
|
|
53
|
-
readKeysForCommand,
|
|
54
59
|
traceOf
|
|
55
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-D6Z43SOG.js";
|
|
56
61
|
import {
|
|
57
62
|
queryDescription
|
|
58
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-ECEP4SO3.js";
|
|
59
64
|
import {
|
|
60
65
|
storeDamaged
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import {
|
|
63
|
-
MAX_BUFFERED_INPUT
|
|
64
|
-
} from "./chunk-5OFA5EXE.js";
|
|
66
|
+
} from "./chunk-4AOINPN2.js";
|
|
65
67
|
import {
|
|
66
68
|
captureStreams
|
|
67
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-7AQGVX5O.js";
|
|
68
70
|
import {
|
|
69
71
|
errorObjectOf,
|
|
70
72
|
mcpErrorResult
|
|
71
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-PLP5527C.js";
|
|
72
74
|
import {
|
|
73
75
|
traceIdOf
|
|
74
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-W2XY6C5S.js";
|
|
75
77
|
import {
|
|
76
78
|
COMPACT_FLAG,
|
|
77
79
|
SNAKE_CASE,
|
|
@@ -108,25 +110,25 @@ import {
|
|
|
108
110
|
unknown,
|
|
109
111
|
word,
|
|
110
112
|
writes
|
|
111
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-TOVWMURV.js";
|
|
112
114
|
import {
|
|
113
115
|
CliError,
|
|
114
116
|
errorCodes
|
|
115
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-ELJUBPY4.js";
|
|
116
118
|
import {
|
|
117
119
|
__name
|
|
118
120
|
} from "./chunk-ZVVMGPBJ.js";
|
|
119
121
|
|
|
120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
121
123
|
import { Readable } from "node:stream";
|
|
122
124
|
|
|
123
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
125
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.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
126
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
125
127
|
var lintRuleSchema = strictObject({
|
|
126
128
|
id: word,
|
|
127
129
|
severity: picklist(LINT_SEVERITIES),
|
|
128
130
|
/** What the rule looks at; a violation's target names one of these. */
|
|
129
|
-
scope: picklist(["command", "group", "argument", "option", "flag", "key"]),
|
|
131
|
+
scope: picklist(["command", "group", "argument", "option", "flag", "key", "source"]),
|
|
130
132
|
summary: text
|
|
131
133
|
});
|
|
132
134
|
var defineLintRules = /* @__PURE__ */ __name((input) => parseRegistry("lint rules", array(lintRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineLintRules");
|
|
@@ -235,6 +237,18 @@ var LINT_RULES = defineLintRules([
|
|
|
235
237
|
severity: "high",
|
|
236
238
|
scope: "group",
|
|
237
239
|
summary: "the CLI keeps a failed run and reads it back: `runs list`, `runs show`, global `--record` and `--no-record`"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
id: "raw-network",
|
|
243
|
+
severity: "high",
|
|
244
|
+
scope: "source",
|
|
245
|
+
summary: "the CLI's own source reaches the network only through `hostFetch`: no `node:http`, `https`, `net`, `tls`, `undici`, `axios`, `got`, `node-fetch` or `ws`, no global `fetch`"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
id: "undeclared-host",
|
|
249
|
+
severity: "medium",
|
|
250
|
+
scope: "source",
|
|
251
|
+
summary: "every `http(s)://` host in the CLI's own source is in the manifest's `network.hosts`"
|
|
238
252
|
}
|
|
239
253
|
]);
|
|
240
254
|
var baselineSchema = array(text);
|
|
@@ -248,7 +262,7 @@ var overrideSchema = strictObject({
|
|
|
248
262
|
});
|
|
249
263
|
var overridesSchema = array(overrideSchema);
|
|
250
264
|
|
|
251
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
265
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.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
266
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
253
267
|
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
268
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -374,7 +388,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
374
388
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
375
389
|
]);
|
|
376
390
|
|
|
377
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
391
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.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
392
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
379
393
|
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
394
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -390,7 +404,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
390
404
|
}
|
|
391
405
|
]);
|
|
392
406
|
|
|
393
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
407
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.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
408
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
395
409
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
396
410
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -412,7 +426,7 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
412
426
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
413
427
|
]);
|
|
414
428
|
|
|
415
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
429
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.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
430
|
var CALENDAR_FLAGS = [
|
|
417
431
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
418
432
|
{
|
|
@@ -486,7 +500,7 @@ var CALENDAR_FLAGS = [
|
|
|
486
500
|
}
|
|
487
501
|
];
|
|
488
502
|
|
|
489
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
503
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.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
504
|
var CRM_FLAGS = [
|
|
491
505
|
{
|
|
492
506
|
name: "--pipeline",
|
|
@@ -517,6 +531,13 @@ var CRM_FLAGS = [
|
|
|
517
531
|
type: "time",
|
|
518
532
|
meaning: "the day a deal or lead is expected to close, YYYY-MM-DD"
|
|
519
533
|
},
|
|
534
|
+
{
|
|
535
|
+
name: "--position",
|
|
536
|
+
value: "<title>",
|
|
537
|
+
role: "value",
|
|
538
|
+
type: "string",
|
|
539
|
+
meaning: "a person's job title on a relationship, stored as position; never the role"
|
|
540
|
+
},
|
|
520
541
|
{
|
|
521
542
|
name: "--owner",
|
|
522
543
|
value: "<user>",
|
|
@@ -584,6 +605,13 @@ var CRM_FLAGS = [
|
|
|
584
605
|
type: "choice",
|
|
585
606
|
meaning: "it renews by itself at its end, or it does not"
|
|
586
607
|
},
|
|
608
|
+
{
|
|
609
|
+
name: "--period",
|
|
610
|
+
value: "<count-unit>",
|
|
611
|
+
role: "value",
|
|
612
|
+
type: "duration",
|
|
613
|
+
meaning: "how often a charge repeats: a count and a calendar unit, such as 1-month"
|
|
614
|
+
},
|
|
587
615
|
{
|
|
588
616
|
name: "--opening-balance",
|
|
589
617
|
value: "<decimal>",
|
|
@@ -622,7 +650,7 @@ var CRM_FLAGS = [
|
|
|
622
650
|
}
|
|
623
651
|
];
|
|
624
652
|
|
|
625
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
653
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.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
|
|
626
654
|
var HOW_FLAGS = [
|
|
627
655
|
{
|
|
628
656
|
name: "--limit",
|
|
@@ -908,6 +936,7 @@ var HOW_FLAGS = [
|
|
|
908
936
|
replaces: ["--expected"]
|
|
909
937
|
},
|
|
910
938
|
{ name: "--full-history", role: "mode", type: "switch", meaning: "keep a chat's whole history, past its limits" },
|
|
939
|
+
{ name: "--with-muted", role: "mode", type: "switch", meaning: "also read the chats the owner muted" },
|
|
911
940
|
{
|
|
912
941
|
name: "--for-everyone",
|
|
913
942
|
role: "mode",
|
|
@@ -1200,6 +1229,7 @@ var HOW_FLAGS = [
|
|
|
1200
1229
|
{ name: "--retract", role: "action", type: "switch", meaning: "take the owner's vote back" },
|
|
1201
1230
|
{ name: "--revoke", role: "action", type: "switch", meaning: "forget every login given to a browser app" },
|
|
1202
1231
|
{ name: "--track", role: "action", type: "switch", meaning: "also do it daily while serve runs" },
|
|
1232
|
+
{ name: "--undo", role: "mode", type: "switch", meaning: "put back what the last change replaced, not a new value" },
|
|
1203
1233
|
{
|
|
1204
1234
|
name: "--transcribe",
|
|
1205
1235
|
role: "action",
|
|
@@ -1618,7 +1648,39 @@ var HOW_FLAGS = [
|
|
|
1618
1648
|
}
|
|
1619
1649
|
];
|
|
1620
1650
|
|
|
1621
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1651
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.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-knowledge.js
|
|
1652
|
+
var KNOWLEDGE_FLAGS = [
|
|
1653
|
+
{
|
|
1654
|
+
name: "--quote",
|
|
1655
|
+
value: "<ref=words...>",
|
|
1656
|
+
role: "value",
|
|
1657
|
+
type: "list",
|
|
1658
|
+
meaning: "the words an --evidence reference says that a record rests on, as <ref>=<words>, one per reference"
|
|
1659
|
+
},
|
|
1660
|
+
{
|
|
1661
|
+
name: "--suggest",
|
|
1662
|
+
value: "<text>",
|
|
1663
|
+
role: "value",
|
|
1664
|
+
type: "string",
|
|
1665
|
+
meaning: "wording offered for the owner to take or leave; it decides nothing"
|
|
1666
|
+
},
|
|
1667
|
+
{
|
|
1668
|
+
name: "--keep-copy",
|
|
1669
|
+
role: "mode",
|
|
1670
|
+
type: "switch",
|
|
1671
|
+
meaning: "keep a copy of the original file as well as its text"
|
|
1672
|
+
},
|
|
1673
|
+
{
|
|
1674
|
+
name: "--max-chars",
|
|
1675
|
+
value: "<n>",
|
|
1676
|
+
role: "budget",
|
|
1677
|
+
type: "count",
|
|
1678
|
+
meaning: "at most this many characters read",
|
|
1679
|
+
unit: "characters"
|
|
1680
|
+
}
|
|
1681
|
+
];
|
|
1682
|
+
|
|
1683
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.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
|
|
1622
1684
|
var MAIL_FLAGS = [
|
|
1623
1685
|
{
|
|
1624
1686
|
name: "--cc",
|
|
@@ -1648,7 +1710,7 @@ var MAIL_FLAGS = [
|
|
|
1648
1710
|
}
|
|
1649
1711
|
];
|
|
1650
1712
|
|
|
1651
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1713
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.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
|
|
1652
1714
|
var PRIVACY_FLAGS = [
|
|
1653
1715
|
{
|
|
1654
1716
|
name: "--about-text",
|
|
@@ -1709,8 +1771,15 @@ var PRIVACY_FLAGS = [
|
|
|
1709
1771
|
{ name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" }
|
|
1710
1772
|
];
|
|
1711
1773
|
|
|
1712
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1774
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.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
|
|
1713
1775
|
var SCHEDULE_FLAGS = [
|
|
1776
|
+
{
|
|
1777
|
+
name: "--locale",
|
|
1778
|
+
value: "<code>",
|
|
1779
|
+
role: "target",
|
|
1780
|
+
type: "string",
|
|
1781
|
+
meaning: "a human language, as an ISO 639-1 code such as en or ru: which language's version it acts on"
|
|
1782
|
+
},
|
|
1714
1783
|
{
|
|
1715
1784
|
name: "--notify-on",
|
|
1716
1785
|
value: "<when>",
|
|
@@ -1735,7 +1804,7 @@ var SCHEDULE_FLAGS = [
|
|
|
1735
1804
|
}
|
|
1736
1805
|
];
|
|
1737
1806
|
|
|
1738
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1807
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.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
|
|
1739
1808
|
var WHAT_FLAGS = [
|
|
1740
1809
|
{
|
|
1741
1810
|
name: "--analysis-provider",
|
|
@@ -1751,6 +1820,13 @@ var WHAT_FLAGS = [
|
|
|
1751
1820
|
type: "choice",
|
|
1752
1821
|
meaning: "who computes embeddings: a local model or a configured remote model service"
|
|
1753
1822
|
},
|
|
1823
|
+
{
|
|
1824
|
+
name: "--region",
|
|
1825
|
+
value: "<country>",
|
|
1826
|
+
role: "mode",
|
|
1827
|
+
type: "string",
|
|
1828
|
+
meaning: "the two-letter country code, such as ru, that phone numbers written without + are read in"
|
|
1829
|
+
},
|
|
1754
1830
|
{
|
|
1755
1831
|
name: "--consent-provider",
|
|
1756
1832
|
value: "<identity>",
|
|
@@ -2279,7 +2355,13 @@ var WHAT_FLAGS = [
|
|
|
2279
2355
|
meaning: "who joins by the link asks first, and an admin lets them in"
|
|
2280
2356
|
},
|
|
2281
2357
|
{ name: "--can", value: "<rights>", role: "value", type: "list", meaning: "what an admin may do, comma-separated" },
|
|
2282
|
-
{
|
|
2358
|
+
{
|
|
2359
|
+
name: "--channel",
|
|
2360
|
+
role: "value",
|
|
2361
|
+
type: "switch",
|
|
2362
|
+
otherValues: ["channel"],
|
|
2363
|
+
meaning: "a channel instead of a group (a switch), or what a message is written for (<channel>), such as email"
|
|
2364
|
+
},
|
|
2283
2365
|
{
|
|
2284
2366
|
name: "--certainty",
|
|
2285
2367
|
value: "<n>",
|
|
@@ -2461,14 +2543,7 @@ var WHAT_FLAGS = [
|
|
|
2461
2543
|
type: "id",
|
|
2462
2544
|
meaning: "the stored calendar event it is linked to, or none to unlink"
|
|
2463
2545
|
},
|
|
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
|
-
},
|
|
2546
|
+
{ name: "--every", value: "<duration>", role: "value", type: "duration", meaning: "repeat this often" },
|
|
2472
2547
|
{
|
|
2473
2548
|
name: "--evidence",
|
|
2474
2549
|
value: "<ref...>",
|
|
@@ -2495,7 +2570,7 @@ var WHAT_FLAGS = [
|
|
|
2495
2570
|
value: "<file>",
|
|
2496
2571
|
role: "value",
|
|
2497
2572
|
type: "path",
|
|
2498
|
-
meaning: "a file to send with
|
|
2573
|
+
meaning: "a file it reads: one to send with a message, the text its caption, or the new text of a write"
|
|
2499
2574
|
},
|
|
2500
2575
|
{
|
|
2501
2576
|
name: "--filename",
|
|
@@ -2539,7 +2614,15 @@ var WHAT_FLAGS = [
|
|
|
2539
2614
|
meaning: "what kind of thing it is; the command lists the kinds"
|
|
2540
2615
|
},
|
|
2541
2616
|
{ name: "--name", value: "<name>", role: "value", type: "string", meaning: "the name to give it" },
|
|
2617
|
+
{
|
|
2618
|
+
name: "--button",
|
|
2619
|
+
value: "<text=data>",
|
|
2620
|
+
role: "value",
|
|
2621
|
+
type: "string",
|
|
2622
|
+
meaning: "an inline button under a message: its text, then the data a press sends back; repeat for more in one row"
|
|
2623
|
+
},
|
|
2542
2624
|
{ name: "--no-approval", role: "value", type: "switch", meaning: "anyone with the link joins at once" },
|
|
2625
|
+
{ name: "--no-buttons", role: "value", type: "switch", meaning: "take the buttons off the message" },
|
|
2543
2626
|
{
|
|
2544
2627
|
name: "--notification",
|
|
2545
2628
|
value: "<text>",
|
|
@@ -2574,6 +2657,13 @@ var WHAT_FLAGS = [
|
|
|
2574
2657
|
},
|
|
2575
2658
|
{ name: "--remind-time", value: "<time>", role: "value", type: "time", meaning: "when to look at it again" },
|
|
2576
2659
|
{ name: "--role", value: "<role>", role: "value", type: "string", meaning: "the part it plays, in a word or two" },
|
|
2660
|
+
{
|
|
2661
|
+
name: "--label",
|
|
2662
|
+
value: "<label>",
|
|
2663
|
+
role: "value",
|
|
2664
|
+
type: "string",
|
|
2665
|
+
meaning: "a human-readable label for an id, such as the name shown for a custom relationship role"
|
|
2666
|
+
},
|
|
2577
2667
|
{
|
|
2578
2668
|
name: "--scope",
|
|
2579
2669
|
value: "<scope>",
|
|
@@ -2704,7 +2794,7 @@ var WHAT_FLAGS = [
|
|
|
2704
2794
|
}
|
|
2705
2795
|
];
|
|
2706
2796
|
|
|
2707
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2797
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.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
|
|
2708
2798
|
var FLAG_TYPES = [
|
|
2709
2799
|
"switch",
|
|
2710
2800
|
"count",
|
|
@@ -2800,6 +2890,7 @@ var verbs = [
|
|
|
2800
2890
|
["status", "how a thing stands right now"],
|
|
2801
2891
|
["check", "verify, and change nothing; the answer says what is wrong and how to fix it"],
|
|
2802
2892
|
["test", "run rules over what is already stored and say what they would have done, doing none of it"],
|
|
2893
|
+
["preview", "render what would be sent or written, from what is stored or a draft; sends and saves nothing"],
|
|
2803
2894
|
["apply", "run the owner's saved rules over what is already stored and change what they match; dry run unless --yes"],
|
|
2804
2895
|
["scan", "read stored messages for what a rule finds, such as tasks, and list it; records it only with --yes"],
|
|
2805
2896
|
["pause", "stop what a running process does for a profile, without stopping the process"],
|
|
@@ -2886,6 +2977,7 @@ var verbs = [
|
|
|
2886
2977
|
["assign", "name the person responsible for work, with their task role"],
|
|
2887
2978
|
["reverse", "record that an accepted decision no longer holds, without replacing it"],
|
|
2888
2979
|
["invalidate", "mark a derived record whose supporting evidence no longer holds"],
|
|
2980
|
+
["challenge", "say a record no longer holds, citing what contradicts it; it only proposes, and the owner decides"],
|
|
2889
2981
|
["acknowledge", "record successful delivery using the exact receipt issued when the item was claimed"],
|
|
2890
2982
|
["confirm", "the owner accepts what an agent proposed"],
|
|
2891
2983
|
["reject", "the owner refuses what an agent proposed"],
|
|
@@ -2935,6 +3027,7 @@ var collections = [
|
|
|
2935
3027
|
["topics", "forum topics in a group"],
|
|
2936
3028
|
["models", "local or remote models"],
|
|
2937
3029
|
["tags", "labels the owner puts on things"],
|
|
3030
|
+
["groups", "account groups: the accounts a run in a group reads, such as work and personal (WC-ACCT-13)"],
|
|
2938
3031
|
["searches", "the owner's saved searches"],
|
|
2939
3032
|
["copies", "tables kept aside by a repair"],
|
|
2940
3033
|
["tables", "the tables of the local store, with their kind, row count and size"],
|
|
@@ -2945,6 +3038,7 @@ var collections = [
|
|
|
2945
3038
|
["tracking", "the chats whose member lists are fetched daily"],
|
|
2946
3039
|
["documents", "files imported from Google Drive or Docs, or linked in a chat"],
|
|
2947
3040
|
["notes", "text the owner writes, or files from a notes folder"],
|
|
3041
|
+
["sources", "what the owner adds by hand to read from: a file, a web page or a pasted text, kept as its text"],
|
|
2948
3042
|
["projects", "the owner's work units with a task key"],
|
|
2949
3043
|
[
|
|
2950
3044
|
"annotations",
|
|
@@ -2979,6 +3073,7 @@ var collections = [
|
|
|
2979
3073
|
["facts", "what happened, with evidence"],
|
|
2980
3074
|
["memories", "what an agent concluded, with evidence and scope"],
|
|
2981
3075
|
["relationships", "confirmed or suggested links between people, organizations and projects"],
|
|
3076
|
+
["roles", "the parts a person plays in a relationship, built in or the owner's own"],
|
|
2982
3077
|
["sheets", "remote spreadsheets and their cell ranges, read or changed through a provider"],
|
|
2983
3078
|
["files", "files in the source, such as Google Drive, read and changed there"],
|
|
2984
3079
|
["comments", "comments people left on a thing in the source: a channel post or a file"],
|
|
@@ -3109,12 +3204,13 @@ var VOCABULARY = defineVocabulary({
|
|
|
3109
3204
|
...PRIVACY_FLAGS,
|
|
3110
3205
|
...CALENDAR_FLAGS,
|
|
3111
3206
|
...MAIL_FLAGS,
|
|
3207
|
+
...KNOWLEDGE_FLAGS,
|
|
3112
3208
|
...CRM_FLAGS,
|
|
3113
3209
|
...SCHEDULE_FLAGS
|
|
3114
3210
|
]
|
|
3115
3211
|
});
|
|
3116
3212
|
|
|
3117
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3213
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
3118
3214
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
3119
3215
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
3120
3216
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -3337,7 +3433,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
3337
3433
|
}
|
|
3338
3434
|
}, "runCommandForAgent");
|
|
3339
3435
|
|
|
3340
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3436
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
3341
3437
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
3342
3438
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
3343
3439
|
var message = pipe(
|
|
@@ -3596,10 +3692,27 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3596
3692
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
|
|
3597
3693
|
}, "failed");
|
|
3598
3694
|
|
|
3599
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3600
3696
|
import { randomUUID } from "node:crypto";
|
|
3601
3697
|
var MATCHES = 8;
|
|
3602
3698
|
var ANSWER = answerSchema();
|
|
3699
|
+
var agentAnswer = /* @__PURE__ */ __name((prefix, writes2) => {
|
|
3700
|
+
const meta = pipe(looseObject({}), description(`run facts; ${prefix}_tools_search shows the full answer`));
|
|
3701
|
+
const next = optional(pipe(array(looseObject({})), description("steps to run next: command and args")));
|
|
3702
|
+
return looseObject(writes2 ? { item: optional(unknown()), next, meta } : {
|
|
3703
|
+
items: optional(array(unknown())),
|
|
3704
|
+
item: optional(unknown()),
|
|
3705
|
+
page: optional(looseObject({ has_more: boolean() })),
|
|
3706
|
+
next,
|
|
3707
|
+
missing: optional(array(looseObject({ field: string(), why: string() }))),
|
|
3708
|
+
meta
|
|
3709
|
+
});
|
|
3710
|
+
}, "agentAnswer");
|
|
3711
|
+
var listedAs = /* @__PURE__ */ __name((prefix, writes2) => {
|
|
3712
|
+
const checked = toStandardJsonSchema(ANSWER);
|
|
3713
|
+
const shown = toStandardJsonSchema(agentAnswer(prefix, writes2))["~standard"].jsonSchema;
|
|
3714
|
+
return { "~standard": { ...checked["~standard"], jsonSchema: shown } };
|
|
3715
|
+
}, "listedAs");
|
|
3603
3716
|
var normal = /* @__PURE__ */ __name((command) => command.trim().toLowerCase().split(/[\s_-]+/).join(" "), "normal");
|
|
3604
3717
|
var haystack = /* @__PURE__ */ __name((command, one) => [command, one.title, one.description, ...Object.keys(one.input.entries)].join(" ").toLowerCase(), "haystack");
|
|
3605
3718
|
var search = /* @__PURE__ */ __name((commands, query) => {
|
|
@@ -3704,7 +3817,7 @@ var registerCommands = /* @__PURE__ */ __name((server, prefix, commands, errors,
|
|
|
3704
3817
|
arguments: optional(pipe(record(string(), unknown()), description("that command's arguments")))
|
|
3705
3818
|
});
|
|
3706
3819
|
server.registerTool(`${prefix}_read`, {
|
|
3707
|
-
outputSchema:
|
|
3820
|
+
outputSchema: listedAs(prefix, false),
|
|
3708
3821
|
title: "Run a reading command",
|
|
3709
3822
|
description: `Run one command that only reads, with the arguments ${prefix}_tools_search showed. ${untrusted}`,
|
|
3710
3823
|
inputSchema: toStandardJsonSchema(call),
|
|
@@ -3712,7 +3825,7 @@ var registerCommands = /* @__PURE__ */ __name((server, prefix, commands, errors,
|
|
|
3712
3825
|
}, runner(false));
|
|
3713
3826
|
if (Object.values(commands).some((one) => one.writes))
|
|
3714
3827
|
server.registerTool(`${prefix}_write`, {
|
|
3715
|
-
outputSchema:
|
|
3828
|
+
outputSchema: listedAs(prefix, true),
|
|
3716
3829
|
title: "Run a writing command",
|
|
3717
3830
|
description: `Run one command that changes something \u2014 ${messenger ? "sends, edits, deletes, joins" : "creates, edits, deletes"} \u2014 with the arguments ${prefix}_tools_search showed. ${untrusted}`,
|
|
3718
3831
|
inputSchema: toStandardJsonSchema(call),
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
agentOf,
|
|
30
30
|
clientHash,
|
|
31
31
|
currentCaller
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-DA63E2UM.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.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/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")
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
CliError,
|
|
5
|
+
errorCodes
|
|
6
|
+
} from "./chunk-ELJUBPY4.js";
|
|
7
|
+
import {
|
|
8
|
+
__name
|
|
9
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
10
|
+
|
|
11
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/errors/failures.js
|
|
12
|
+
var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
|
|
13
|
+
var isCommanderFailure = /* @__PURE__ */ __name((value) => {
|
|
14
|
+
const { code, exitCode } = value ?? {};
|
|
15
|
+
return value instanceof Error && typeof code === "string" && code.startsWith("commander.") && typeof exitCode === "number";
|
|
16
|
+
}, "isCommanderFailure");
|
|
17
|
+
var failureKey = /* @__PURE__ */ __name((error) => isCliFailure(error) ? error.code : error instanceof Error ? error.name : "error", "failureKey");
|
|
18
|
+
var SQLITE_CORRUPT = 11;
|
|
19
|
+
var SQLITE_NOTADB = 26;
|
|
20
|
+
var DAMAGED_TEXT = /database disk image is malformed|file is not a database|fts5: corruption/i;
|
|
21
|
+
var sqliteCode = /* @__PURE__ */ __name((error) => {
|
|
22
|
+
const { errcode, errno, name } = error ?? {};
|
|
23
|
+
const code = typeof errcode === "number" ? errcode : name === "SQLiteError" && typeof errno === "number" ? errno : null;
|
|
24
|
+
return code === null ? void 0 : code & 255;
|
|
25
|
+
}, "sqliteCode");
|
|
26
|
+
var damageIn = /* @__PURE__ */ __name((error) => {
|
|
27
|
+
if (isCliFailure(error) || isCommanderFailure(error))
|
|
28
|
+
return void 0;
|
|
29
|
+
let at = error;
|
|
30
|
+
for (let depth = 0; depth < 5 && at instanceof Error; depth += 1) {
|
|
31
|
+
const code = sqliteCode(at);
|
|
32
|
+
if (code !== void 0 && [SQLITE_CORRUPT, SQLITE_NOTADB].includes(code) || DAMAGED_TEXT.test(at.message))
|
|
33
|
+
return at;
|
|
34
|
+
at = at.cause;
|
|
35
|
+
}
|
|
36
|
+
return void 0;
|
|
37
|
+
}, "damageIn");
|
|
38
|
+
var wrapping = /* @__PURE__ */ __name((error, original) => {
|
|
39
|
+
Object.defineProperty(error, "cause", { value: original, configurable: true, writable: true });
|
|
40
|
+
if (original instanceof Error && original.stack)
|
|
41
|
+
error.stack = original.stack;
|
|
42
|
+
return error;
|
|
43
|
+
}, "wrapping");
|
|
44
|
+
var storeDamaged = /* @__PURE__ */ __name((error, next) => damageIn(error) ? wrapping(new CliError("configuration_error", `the store file is damaged${next ? `; \`${next}\` says what is damaged and what to do` : ""}`, { reason: "store.damaged" }), error) : error, "storeDamaged");
|
|
45
|
+
var damagedFile = /* @__PURE__ */ __name(async (files, work) => {
|
|
46
|
+
try {
|
|
47
|
+
return await work();
|
|
48
|
+
} catch (error) {
|
|
49
|
+
if (!damageIn(error))
|
|
50
|
+
throw error;
|
|
51
|
+
throw wrapping(new CliError("validation_error", `${files.join(" or ")} is damaged or not a database`, {
|
|
52
|
+
reason: "store.file-damaged"
|
|
53
|
+
}), error);
|
|
54
|
+
}
|
|
55
|
+
}, "damagedFile");
|
|
56
|
+
var isStoreDamage = /* @__PURE__ */ __name((error) => damageIn(error) !== void 0, "isStoreDamage");
|
|
57
|
+
|
|
58
|
+
export {
|
|
59
|
+
isCliFailure,
|
|
60
|
+
isCommanderFailure,
|
|
61
|
+
failureKey,
|
|
62
|
+
sqliteCode,
|
|
63
|
+
storeDamaged,
|
|
64
|
+
damagedFile,
|
|
65
|
+
isStoreDamage
|
|
66
|
+
};
|
|
@@ -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.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
|
|
8
8
|
import { PassThrough, Writable } from "node:stream";
|
|
9
9
|
var lineReader = /* @__PURE__ */ __name((onMessage) => {
|
|
10
10
|
let rest = "";
|
|
@@ -2,25 +2,25 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
storePath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UTNRBOEN.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7AQGVX5O.js";
|
|
9
9
|
import {
|
|
10
10
|
singleLine
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6DCLZLGX.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ELJUBPY4.js";
|
|
15
15
|
import {
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
20
20
|
import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
21
21
|
import { dirname, join, resolve } from "node:path";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
24
24
|
var DEFAULT_TASK_CATEGORIES = [
|
|
25
25
|
{
|
|
26
26
|
name: "taxes",
|
|
@@ -775,7 +775,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
775
775
|
}
|
|
776
776
|
}, "storedTaskCategories");
|
|
777
777
|
|
|
778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
778
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
779
779
|
var SECTION = "task_categories";
|
|
780
780
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
781
781
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|