@wirecat/drive-cli 0.52.0 → 0.53.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 -2
- package/dist/bin/drive.js +2 -2
- package/dist/bin/drive.js.map +1 -1
- package/dist/bundle/{chunk-ZWSG7OCA.js → all-profiles-WRN35CUF.js} +11 -6
- package/dist/bundle/{anthropic-KW6KU36Y.js → anthropic-DZASXWG3.js} +1 -1
- package/dist/bundle/{app-server-TCJZ333E.js → app-server-4VHT7QZN.js} +33 -41
- package/dist/bundle/{bun-sqlite-RI7DR6RZ.js → bun-sqlite-2GOM5PM3.js} +1 -1
- package/dist/bundle/{chunk-LONV6HIK.js → chunk-2HHOMN2G.js} +440 -25
- package/dist/bundle/{chunk-4A2PIGC6.js → chunk-2PVDFLJJ.js} +8 -3
- package/dist/bundle/{chunk-725OHXKR.js → chunk-3RYX7IB6.js} +2218 -30
- package/dist/bundle/{chunk-CB7SBYLO.js → chunk-54BYJQ77.js} +41 -21
- package/dist/bundle/{chunk-5FONRUG6.js → chunk-5D4AEUVA.js} +1 -23
- package/dist/bundle/{chunk-RNSP57TC.js → chunk-6BNALDGA.js} +1 -1
- package/dist/bundle/{chunk-H47W2J6S.js → chunk-6XYGTRMQ.js} +812 -381
- package/dist/bundle/{chunk-UR32UWTQ.js → chunk-7IUMHMTP.js} +11 -0
- package/dist/bundle/{chunk-W7IK7E4B.js → chunk-BEL4XZ3M.js} +5 -7
- package/dist/bundle/{chunk-43QVYW3K.js → chunk-CL4GVCXS.js} +230 -56
- package/dist/bundle/{chunk-PQYVPCJ2.js → chunk-CNKILAWA.js} +18 -24
- package/dist/bundle/chunk-DOZOLBXE.js +110 -0
- package/dist/bundle/{chunk-2AUXBJRX.js → chunk-DT2YCB2V.js} +84 -11
- package/dist/bundle/{chunk-HQVJK5E7.js → chunk-DZMK255Y.js} +210 -357
- package/dist/bundle/{chunk-G6QF5KWF.js → chunk-E6XDFMRZ.js} +22 -28
- package/dist/bundle/{chunk-DW46P2DY.js → chunk-EKFEY3KP.js} +1 -1
- package/dist/bundle/{chunk-54O62JWP.js → chunk-F3KHUJEE.js} +24 -5
- package/dist/bundle/{chunk-I7UH5CTA.js → chunk-FXWBUTR7.js} +7 -9
- package/dist/bundle/{chunk-ZNZUZGSV.js → chunk-GE4DP24O.js} +131 -4
- package/dist/bundle/{chunk-PEOCBV2Z.js → chunk-GPJEYW2J.js} +1 -1
- package/dist/bundle/{chunk-A4UNTWAX.js → chunk-HM352LJR.js} +84 -15
- package/dist/bundle/{chunk-KYVXMEBC.js → chunk-IAQ4L6SM.js} +1 -1
- package/dist/bundle/{chunk-PQJYM5ES.js → chunk-IJFZKQC4.js} +1 -1
- package/dist/bundle/{chunk-O6IOL6RX.js → chunk-KPBCGUJC.js} +1 -1
- package/dist/bundle/{chunk-XOLQSCMF.js → chunk-KXMJE3XC.js} +2 -2
- package/dist/bundle/{chunk-33NVQGUY.js → chunk-LSGAJYVN.js} +2 -2
- package/dist/bundle/{chunk-2UIMEMWU.js → chunk-MK3N7WX7.js} +1 -1
- package/dist/bundle/{chunk-IDUNJCFO.js → chunk-OQMK6WXQ.js} +1 -1
- package/dist/bundle/{chunk-CM7GAXGD.js → chunk-PC4UA6UN.js} +1 -1
- package/dist/bundle/{chunk-YNFELLNQ.js → chunk-PIMMF67N.js} +2 -2
- package/dist/bundle/{chunk-WBTVGFXI.js → chunk-PR3DA7KA.js} +9 -9
- package/dist/bundle/{chunk-VJZST5RD.js → chunk-QXYGK6G5.js} +1 -1
- package/dist/bundle/{chunk-WQJBAWQP.js → chunk-R4TE4ZSD.js} +549 -224
- package/dist/bundle/{chunk-BSSCTWWK.js → chunk-RNIHKIQP.js} +1 -1
- package/dist/bundle/{chunk-PAXKALHV.js → chunk-SIWBUGBU.js} +116 -5
- package/dist/bundle/{chunk-2623YE5I.js → chunk-SQHPJBNO.js} +6 -8
- package/dist/bundle/chunk-SVTYS36O.js +5305 -0
- package/dist/bundle/{chunk-WLFUBNFX.js → chunk-T334CFU4.js} +2 -2
- package/dist/bundle/{chunk-UC22Q5KU.js → chunk-TZLO3ZZF.js} +16 -16
- package/dist/bundle/{chunk-5PLJKSG4.js → chunk-UFWK3L5Z.js} +4 -6
- package/dist/bundle/{chunk-FCJAHD4R.js → chunk-VTWADVEQ.js} +2 -2
- package/dist/bundle/{chunk-HX7Y2ASG.js → chunk-WJRJBQIM.js} +26040 -15126
- package/dist/bundle/{chunk-VSOLLTYT.js → chunk-YLKQSVLI.js} +5 -0
- package/dist/bundle/{chunk-IWFBAWZK.js → chunk-YQOVVCIA.js} +282 -10
- package/dist/bundle/{chunk-7YMDL4JQ.js → chunk-ZG6X24ON.js} +4 -1
- package/dist/bundle/{command-contract-I2YB5IXI.js → command-contract-D4UG3D33.js} +12 -15
- package/dist/bundle/{decode-EDN2ARXZ.js → decode-WAPM2VBH.js} +1 -1
- package/dist/bundle/drive.js +10 -21
- package/dist/bundle/{embed-3GSQIQXE.js → embed-HW3N3KNP.js} +4 -4
- package/dist/bundle/{embedder-6ULWRG3R.js → embedder-7WNFXYYP.js} +4 -4
- package/dist/bundle/{entry-IPRJLFHO.js → entry-J7YIRDPD.js} +4 -4
- package/dist/bundle/{first-run-FGHGWHC2.js → first-run-53CL2IYH.js} +6 -6
- package/dist/bundle/{first-screen-M62KTPZG.js → first-screen-2KT7HM2K.js} +13 -16
- package/dist/bundle/{google-BD3ZNFVJ.js → google-5NNVARNR.js} +2 -2
- package/dist/bundle/{chunk-GR5GGZKH.js → google-api-EQQH53QD.js} +60 -4
- package/dist/bundle/grants-4NETZ4MR.js +98 -0
- package/dist/bundle/{identity-QLBSASO5.js → identity-LBTXDMTA.js} +4 -2
- package/dist/bundle/{login-VNZKRSAD.js → login-Y6ENYKC3.js} +50 -52
- package/dist/bundle/{node-sqlite-J3OODPYK.js → node-sqlite-FSQIKGED.js} +1 -1
- package/dist/bundle/{oauth-L4VTCBLF.js → oauth-HF5USWXY.js} +5 -5
- package/dist/bundle/{open-SGUN7ZVF.js → open-NHGJENCX.js} +2 -2
- package/dist/bundle/{openai-RLVISEDH.js → openai-3JCJYKNX.js} +6 -6
- package/dist/bundle/{program-6S5EH7BS.js → program-QAJ66K3Z.js} +715 -904
- package/dist/bundle/{prompt-AUWTBLO7.js → prompt-LQJBCCUF.js} +3 -3
- package/dist/bundle/{reasons-M5AKCNCU.js → reasons-J57GSRWN.js} +1 -1
- package/dist/bundle/{recognize-ORX2UBQW.js → recognize-QM3LN4ZF.js} +1 -1
- package/dist/bundle/{remote-AGIJY73X.js → remote-WREGEZJQ.js} +5 -5
- package/dist/bundle/{rerank-R6PE44M5.js → rerank-YFUB6J6M.js} +4 -4
- package/dist/bundle/{chunk-G7DCVJ4F.js → serve-7NFEZ564.js} +7 -4
- package/dist/bundle/{chunk-F7UUZATI.js → server-KBCFZ2AU.js} +38 -11
- package/dist/bundle/server-UYVL2CFI.js +63 -0
- package/dist/bundle/{services-HZFTTZSF.js → services-C3XWRA2W.js} +16 -21
- package/dist/bundle/{sqlite-runtime-DTGPR2T2.js → sqlite-runtime-H3TSAMIN.js} +3 -3
- package/dist/bundle/{state-WG3JKJM3.js → state-S2Q53L6L.js} +3 -3
- package/dist/bundle/{store-33VHIMEO.js → store-H345VQHP.js} +6 -8
- package/dist/bundle/{store-EV72MT5U.js → store-I27LAJPU.js} +7 -9
- package/dist/bundle/store-maintenance-command-3XA73XMC.js +52 -0
- package/dist/bundle/{chunk-GNI7INK6.js → terminal-DHJ4D3BC.js} +2 -3
- package/dist/bundle/tokens-7MUGKFEM.js +96 -0
- package/dist/commands/context.d.ts +14 -13
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +1 -4
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/mirrors.d.ts.map +1 -1
- package/dist/commands/mirrors.js +1 -2
- package/dist/commands/mirrors.js.map +1 -1
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +2 -1
- package/dist/commands/session.js.map +1 -1
- package/dist/commands/upgrade.d.ts +1 -1
- package/dist/commands/upgrade.d.ts.map +1 -1
- package/dist/commands/upgrade.js +4 -9
- package/dist/commands/upgrade.js.map +1 -1
- package/dist/config.d.ts +182 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +38 -3
- package/dist/config.js.map +1 -1
- package/dist/contract-overrides.d.ts +0 -3
- package/dist/contract-overrides.d.ts.map +1 -1
- package/dist/contract-overrides.js +0 -234
- package/dist/contract-overrides.js.map +1 -1
- package/dist/first-screen.d.ts +3 -2
- package/dist/first-screen.d.ts.map +1 -1
- package/dist/first-screen.js +17 -22
- package/dist/first-screen.js.map +1 -1
- package/dist/grants.d.ts +9 -0
- package/dist/grants.d.ts.map +1 -0
- package/dist/grants.js +30 -0
- package/dist/grants.js.map +1 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +2 -0
- package/dist/identity.js.map +1 -1
- package/dist/login.d.ts.map +1 -1
- package/dist/login.js +7 -3
- package/dist/login.js.map +1 -1
- package/dist/policy-keys.d.ts +12 -0
- package/dist/policy-keys.d.ts.map +1 -0
- package/dist/policy-keys.js +107 -0
- package/dist/policy-keys.js.map +1 -0
- package/dist/policy.d.ts +1 -8
- package/dist/policy.d.ts.map +1 -1
- package/dist/policy.js +2 -105
- package/dist/policy.js.map +1 -1
- package/dist/program.d.ts +8 -4
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +251 -222
- package/dist/program.js.map +1 -1
- package/dist/reasons.js +1 -1
- package/dist/reasons.js.map +1 -1
- package/dist/testing/mcp.d.ts +28 -0
- package/dist/testing/mcp.d.ts.map +1 -0
- package/dist/testing/mcp.js +56 -0
- package/dist/testing/mcp.js.map +1 -0
- package/dist/tokens.d.ts +0 -2
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +12 -13
- package/dist/tokens.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -3
- package/scenarios/agent-access.md +4 -2
- package/dist/bundle/all-profiles-CYW6XBBS.js +0 -26
- package/dist/bundle/chunk-234MHU76.js +0 -384
- package/dist/bundle/chunk-4CPLOMRK.js +0 -1714
- package/dist/bundle/chunk-4Z6TCU5T.js +0 -9
- package/dist/bundle/chunk-DO4PDQY5.js +0 -48
- package/dist/bundle/chunk-FDWYPONW.js +0 -1988
- package/dist/bundle/chunk-FQRJWVEB.js +0 -2
- package/dist/bundle/chunk-NPSZPUK6.js +0 -193
- package/dist/bundle/chunk-PDGECM5D.js +0 -138
- package/dist/bundle/chunk-Q765VPZY.js +0 -421
- package/dist/bundle/chunk-WQRGA75U.js +0 -256
- package/dist/bundle/chunk-X6ID5EAR.js +0 -522
- package/dist/bundle/chunk-YVPHJHIL.js +0 -15572
- package/dist/bundle/chunk-Z47LOJUS.js +0 -484
- package/dist/bundle/failure-4CVEVY45.js +0 -37
- package/dist/bundle/google-api-BDUWZMRV.js +0 -83
- package/dist/bundle/mcp-5SNSMI2M.js +0 -502
- package/dist/bundle/mcp-JZSYPQA4.js +0 -96
- package/dist/bundle/serve-VOBAQHAQ.js +0 -20
- package/dist/bundle/server-24PS4M7U.js +0 -70
- package/dist/bundle/server-G6HFZ2CK.js +0 -57
- package/dist/bundle/store-maintenance-command-ZTUEI4EC.js +0 -58
- package/dist/bundle/terminal-TFCTWLOS.js +0 -11
- package/dist/bundle/tokens-XDQXUFDQ.js +0 -104
- package/dist/commands/doctor.d.ts +0 -56
- package/dist/commands/doctor.d.ts.map +0 -1
- package/dist/commands/doctor.js +0 -75
- package/dist/commands/doctor.js.map +0 -1
- package/dist/commands/mcp.d.ts +0 -6
- package/dist/commands/mcp.d.ts.map +0 -1
- package/dist/commands/mcp.js +0 -156
- package/dist/commands/mcp.js.map +0 -1
- package/dist/commands/skill.d.ts +0 -6
- package/dist/commands/skill.d.ts.map +0 -1
- package/dist/commands/skill.js +0 -34
- package/dist/commands/skill.js.map +0 -1
- package/dist/failure.d.ts +0 -88
- package/dist/failure.d.ts.map +0 -1
- package/dist/failure.js +0 -60
- package/dist/failure.js.map +0 -1
- package/dist/mcp.d.ts +0 -175
- package/dist/mcp.d.ts.map +0 -1
- package/dist/mcp.js +0 -412
- package/dist/mcp.js.map +0 -1
|
@@ -8,14 +8,12 @@ import {
|
|
|
8
8
|
chartRenderer,
|
|
9
9
|
chatChart,
|
|
10
10
|
keepRefreshedRefs,
|
|
11
|
+
mcpUrlOf,
|
|
11
12
|
refuseWriteBeforeConnecting,
|
|
12
13
|
registerPrompts,
|
|
13
14
|
stdinFieldOf,
|
|
14
15
|
syncsFirst
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import {
|
|
17
|
-
mcpUrlOf
|
|
18
|
-
} from "./chunk-DO4PDQY5.js";
|
|
16
|
+
} from "./chunk-HM352LJR.js";
|
|
19
17
|
import {
|
|
20
18
|
answeredWire
|
|
21
19
|
} from "./chunk-CITFEQ6S.js";
|
|
@@ -39,47 +37,48 @@ import {
|
|
|
39
37
|
tool,
|
|
40
38
|
toolKey,
|
|
41
39
|
toolsFromCommands
|
|
42
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-CNKILAWA.js";
|
|
43
41
|
import {
|
|
44
42
|
agentJson,
|
|
45
43
|
skillResource
|
|
46
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-YQOVVCIA.js";
|
|
47
45
|
import {
|
|
48
46
|
StdioServerTransport,
|
|
49
47
|
callerOf,
|
|
50
48
|
serveStdio
|
|
51
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-VTWADVEQ.js";
|
|
52
50
|
import {
|
|
53
51
|
instructions
|
|
54
52
|
} from "./chunk-ZSXRDF6I.js";
|
|
55
53
|
import {
|
|
56
54
|
McpServer,
|
|
57
55
|
ResourceTemplate
|
|
58
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-5D4AEUVA.js";
|
|
59
57
|
import {
|
|
60
58
|
mcpHttpMarker
|
|
61
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-6BNALDGA.js";
|
|
62
60
|
import {
|
|
63
61
|
connectedFor,
|
|
64
62
|
guardFor
|
|
65
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-54BYJQ77.js";
|
|
66
64
|
import {
|
|
67
65
|
lackedNeed,
|
|
68
66
|
wholeList
|
|
69
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-DT2YCB2V.js";
|
|
70
68
|
import {
|
|
71
69
|
capability,
|
|
72
70
|
dateWindow,
|
|
73
71
|
imageSize,
|
|
74
72
|
servicesFor,
|
|
75
73
|
storedDeps
|
|
76
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-6XYGTRMQ.js";
|
|
77
75
|
import {
|
|
78
76
|
findCommand
|
|
79
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-UFWK3L5Z.js";
|
|
80
78
|
import {
|
|
81
79
|
DEFAULT_OUTPUT_BYTES,
|
|
82
80
|
changesAuthorityAt,
|
|
81
|
+
describeProgram,
|
|
83
82
|
environmentOf,
|
|
84
83
|
fetchesOnlyAt,
|
|
85
84
|
itemOf,
|
|
@@ -88,32 +87,27 @@ import {
|
|
|
88
87
|
rootOf2 as rootOf,
|
|
89
88
|
sealed,
|
|
90
89
|
snakeKeys
|
|
91
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-3RYX7IB6.js";
|
|
92
91
|
import {
|
|
93
92
|
withCaller
|
|
94
|
-
} from "./chunk-
|
|
95
|
-
import {
|
|
96
|
-
describeProgram
|
|
97
|
-
} from "./chunk-725OHXKR.js";
|
|
93
|
+
} from "./chunk-GPJEYW2J.js";
|
|
98
94
|
import {
|
|
95
|
+
levelFor,
|
|
96
|
+
readKeysForCommand,
|
|
99
97
|
typedCommand
|
|
100
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-2HHOMN2G.js";
|
|
101
99
|
import {
|
|
102
100
|
isCliFailure
|
|
103
|
-
} from "./chunk-
|
|
104
|
-
import {
|
|
105
|
-
levelFor,
|
|
106
|
-
readKeysForCommand
|
|
107
|
-
} from "./chunk-Q765VPZY.js";
|
|
101
|
+
} from "./chunk-YLKQSVLI.js";
|
|
108
102
|
import {
|
|
109
103
|
readOnlyLockOf
|
|
110
104
|
} from "./chunk-ZDLIO76S.js";
|
|
111
105
|
import {
|
|
112
106
|
warmEmbedders
|
|
113
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-PC4UA6UN.js";
|
|
114
108
|
import {
|
|
115
109
|
openStore
|
|
116
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-R4TE4ZSD.js";
|
|
117
111
|
import {
|
|
118
112
|
pdfPreviewLimits
|
|
119
113
|
} from "./chunk-JEOYFKUK.js";
|
|
@@ -123,7 +117,7 @@ import {
|
|
|
123
117
|
import {
|
|
124
118
|
mcpErrorResult,
|
|
125
119
|
visibleControls
|
|
126
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-DZMK255Y.js";
|
|
127
121
|
import {
|
|
128
122
|
CliError,
|
|
129
123
|
description,
|
|
@@ -755,7 +749,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
755
749
|
}, "serveOverStdio");
|
|
756
750
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
757
751
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
758
|
-
const { serveOverHttp } = await import("./serve-
|
|
752
|
+
const { serveOverHttp } = await import("./serve-7NFEZ564.js");
|
|
759
753
|
const appName = messenger.app.command;
|
|
760
754
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
761
755
|
const listening = await serveOverHttp(build, {
|
|
@@ -59,7 +59,7 @@ var ENTRIES = [
|
|
|
59
59
|
"owner.sign-in"
|
|
60
60
|
],
|
|
61
61
|
["sign-in.failed", "authentication_error", "the Google sign-in did not finish; run drive <profile> session start"],
|
|
62
|
-
["sign-in.not-saved", "configuration_error", "the sign-in could not be saved
|
|
62
|
+
["sign-in.not-saved", "configuration_error", "the sign-in could not be saved: its private file cannot be read"],
|
|
63
63
|
["sign-in.scope-missing", "permission_error", "the sign-in lacks the Google permission this command needs"],
|
|
64
64
|
["source.changed", "provider_error", "the document changed during export; retry the sync"],
|
|
65
65
|
[
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
} from "./chunk-ZDLIO76S.js";
|
|
7
7
|
import {
|
|
8
8
|
ensureSqlite
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OQMK6WXQ.js";
|
|
10
10
|
import {
|
|
11
11
|
catchCrashes
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DZMK255Y.js";
|
|
13
13
|
import {
|
|
14
14
|
CliError
|
|
15
15
|
} from "./chunk-YKZ4IPLB.js";
|
|
@@ -22,6 +22,23 @@ import { spawn } from "node:child_process";
|
|
|
22
22
|
|
|
23
23
|
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
|
|
24
24
|
import { appendFileSync } from "node:fs";
|
|
25
|
+
var logParsedArgv = /* @__PURE__ */ __name((file, action) => {
|
|
26
|
+
const words = [];
|
|
27
|
+
const options = [];
|
|
28
|
+
for (let at = action; at; at = at.parent) {
|
|
29
|
+
if (at.parent)
|
|
30
|
+
words.unshift(at.name());
|
|
31
|
+
for (const option of at.options) {
|
|
32
|
+
const key = option.attributeName();
|
|
33
|
+
if (at.getOptionValueSource(key) !== "cli" || !option.long)
|
|
34
|
+
continue;
|
|
35
|
+
if (option.negate === (at.getOptionValue(key) === false))
|
|
36
|
+
options.push(option.long);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
appendFileSync(file, `${JSON.stringify({ command: words.join(" "), options })}
|
|
40
|
+
`);
|
|
41
|
+
}, "logParsedArgv");
|
|
25
42
|
var logVersion = /* @__PURE__ */ __name((file) => {
|
|
26
43
|
appendFileSync(file, `${JSON.stringify({ command: "", options: ["--version"] })}
|
|
27
44
|
`);
|
|
@@ -81,8 +98,8 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
81
98
|
if (command.optsWithGlobals().dryRun === true)
|
|
82
99
|
return;
|
|
83
100
|
const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
|
|
84
|
-
import("./first-run-
|
|
85
|
-
import("./command-contract-
|
|
101
|
+
import("./first-run-53CL2IYH.js"),
|
|
102
|
+
import("./command-contract-D4UG3D33.js")
|
|
86
103
|
]);
|
|
87
104
|
await setupAtStart({
|
|
88
105
|
command: entry.app.command,
|
|
@@ -97,7 +114,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
97
114
|
ask: /* @__PURE__ */ __name(async (question, command) => {
|
|
98
115
|
if (headless(command) || io.stdin.isTTY !== true)
|
|
99
116
|
return false;
|
|
100
|
-
const { readSecret } = await import("./prompt-
|
|
117
|
+
const { readSecret } = await import("./prompt-LQJBCCUF.js");
|
|
101
118
|
const answer = await readSecret(`${question} [y/N] `, {
|
|
102
119
|
input: io.stdin,
|
|
103
120
|
output: io.stderr,
|
|
@@ -162,5 +179,7 @@ var openBrowser = /* @__PURE__ */ __name((io, url, browser) => {
|
|
|
162
179
|
}, "openBrowser");
|
|
163
180
|
|
|
164
181
|
export {
|
|
182
|
+
logParsedArgv,
|
|
183
|
+
logVersion,
|
|
165
184
|
startCli
|
|
166
185
|
};
|
|
@@ -7,20 +7,18 @@ import {
|
|
|
7
7
|
commandPathOf,
|
|
8
8
|
findCommand,
|
|
9
9
|
outputOf
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
NO_EFFECTS,
|
|
13
|
-
commandAt,
|
|
14
|
-
environmentOf,
|
|
15
|
-
takesProfile
|
|
16
|
-
} from "./chunk-FDWYPONW.js";
|
|
10
|
+
} from "./chunk-UFWK3L5Z.js";
|
|
17
11
|
import {
|
|
18
12
|
Command,
|
|
19
13
|
Help,
|
|
14
|
+
NO_EFFECTS,
|
|
20
15
|
Option,
|
|
21
16
|
annotate,
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
commandAt,
|
|
18
|
+
environmentOf,
|
|
19
|
+
metaOf,
|
|
20
|
+
takesProfile
|
|
21
|
+
} from "./chunk-3RYX7IB6.js";
|
|
24
22
|
import {
|
|
25
23
|
CliError,
|
|
26
24
|
writes
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
singleLine,
|
|
14
14
|
visibleControls
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DZMK255Y.js";
|
|
16
16
|
import {
|
|
17
17
|
CliError,
|
|
18
18
|
STEPS,
|
|
@@ -1250,8 +1250,8 @@ var contentHash = /* @__PURE__ */ __name(async (text7) => {
|
|
|
1250
1250
|
var speakerPosition = /* @__PURE__ */ __name((name, participants) => {
|
|
1251
1251
|
if (name === null)
|
|
1252
1252
|
return null;
|
|
1253
|
-
const
|
|
1254
|
-
return
|
|
1253
|
+
const matches2 = participants.flatMap((p, i) => p.displayName === name ? [i] : []);
|
|
1254
|
+
return matches2.length === 1 ? matches2[0] ?? null : null;
|
|
1255
1255
|
}, "speakerPosition");
|
|
1256
1256
|
var transcriptInput = /* @__PURE__ */ __name(async (lines, participants, source, hashText = JSON.stringify(lines), format = null) => ({
|
|
1257
1257
|
source,
|
|
@@ -2296,6 +2296,94 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
2296
2296
|
};
|
|
2297
2297
|
}, "aggregateMeetingStats");
|
|
2298
2298
|
|
|
2299
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
2300
|
+
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
2301
|
+
var TASK_STATES = ["open", "done", "dismissed"];
|
|
2302
|
+
var TASK_ORIGINS = ["rule", "agent", "owner"];
|
|
2303
|
+
var TASK_VERDICTS = ["useful", "not_useful"];
|
|
2304
|
+
function closeTask(task, state, by, at, reason) {
|
|
2305
|
+
if (task.state !== "open")
|
|
2306
|
+
throw new CliError("validation_error", `task ${task.id} is already ${task.state}`, { reason: "task.closed" });
|
|
2307
|
+
const { claimedBy: _by, claimedUntil: _until, ...unclaimed } = task;
|
|
2308
|
+
return { ...unclaimed, state, closedAt: at, closedBy: by, ...reason === void 0 ? {} : { reason } };
|
|
2309
|
+
}
|
|
2310
|
+
__name(closeTask, "closeTask");
|
|
2311
|
+
|
|
2312
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
2313
|
+
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
2314
|
+
async function find(id4) {
|
|
2315
|
+
const task = await store.get(id4);
|
|
2316
|
+
if (!task)
|
|
2317
|
+
throw new CliError("not_found", `no task ${id4}`);
|
|
2318
|
+
return task;
|
|
2319
|
+
}
|
|
2320
|
+
__name(find, "find");
|
|
2321
|
+
return {
|
|
2322
|
+
/**
|
|
2323
|
+
* A rule never makes a second task from a source it has seen, whatever that task's state, so a
|
|
2324
|
+
* dismissed one stays dismissed — nor from a message attached or merged into a task. A person or an agent may
|
|
2325
|
+
* add a task of another kind to it. A task a rule opens goes through the host's duplicate check.
|
|
2326
|
+
*/
|
|
2327
|
+
async add(input) {
|
|
2328
|
+
const rule = input.origin === "rule";
|
|
2329
|
+
const existing = await store.findBySource(input.account, input.source, rule ? { linked: true } : void 0);
|
|
2330
|
+
const same = rule ? existing[0] : existing.find((task2) => task2.kind === input.kind);
|
|
2331
|
+
if (same)
|
|
2332
|
+
return { task: same, created: false };
|
|
2333
|
+
const task = { ...input, id: newId(), state: "open", createdAt: now() };
|
|
2334
|
+
await store.insert(task);
|
|
2335
|
+
if (!rule || !store.reviewDuplicates)
|
|
2336
|
+
return { task, created: true };
|
|
2337
|
+
return { task, created: true, review: await store.reviewDuplicates(task.id) };
|
|
2338
|
+
},
|
|
2339
|
+
async close(id4, { as, by, reason }) {
|
|
2340
|
+
const task = closeTask(await find(id4), as, by, now(), reason);
|
|
2341
|
+
await store.update(task);
|
|
2342
|
+
return task;
|
|
2343
|
+
},
|
|
2344
|
+
list: /* @__PURE__ */ __name((filter = {}) => store.list(filter), "list"),
|
|
2345
|
+
async stats(filter = {}) {
|
|
2346
|
+
const byGroup = /* @__PURE__ */ new Map();
|
|
2347
|
+
for (const task of await store.list(filter))
|
|
2348
|
+
byGroup.set(task.group, [...byGroup.get(task.group) ?? [], task]);
|
|
2349
|
+
return [...byGroup].map(([group, tasks]) => {
|
|
2350
|
+
const open = tasks.filter((task) => task.state === "open");
|
|
2351
|
+
const closeMs = tasks.flatMap((task) => task.closedAt ? [task.closedAt.getTime() - task.createdAt.getTime()] : []);
|
|
2352
|
+
const oldestOpenAt = open.map((task) => task.createdAt).sort((a, b) => a.getTime() - b.getTime())[0];
|
|
2353
|
+
return {
|
|
2354
|
+
group,
|
|
2355
|
+
open: open.length,
|
|
2356
|
+
...oldestOpenAt ? { oldestOpenAt } : {},
|
|
2357
|
+
...closeMs.length > 0 ? { medianCloseMs: median(closeMs) } : {}
|
|
2358
|
+
};
|
|
2359
|
+
});
|
|
2360
|
+
}
|
|
2361
|
+
};
|
|
2362
|
+
}
|
|
2363
|
+
__name(createTaskService, "createTaskService");
|
|
2364
|
+
function median(values) {
|
|
2365
|
+
const sorted = [...values].sort((a, b) => a - b);
|
|
2366
|
+
const middle = Math.floor(sorted.length / 2);
|
|
2367
|
+
const upper = sorted[middle] ?? 0;
|
|
2368
|
+
return sorted.length % 2 === 1 ? upper : ((sorted[middle - 1] ?? 0) + upper) / 2;
|
|
2369
|
+
}
|
|
2370
|
+
__name(median, "median");
|
|
2371
|
+
|
|
2372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
2373
|
+
function matches(task, filter) {
|
|
2374
|
+
return (filter.account === void 0 || task.account === filter.account) && (filter.state === void 0 || task.state === filter.state) && (filter.group === void 0 || task.group === filter.group) && (filter.kind === void 0 || task.kind === filter.kind) && (filter.createdBefore === void 0 || task.createdAt < filter.createdBefore);
|
|
2375
|
+
}
|
|
2376
|
+
__name(matches, "matches");
|
|
2377
|
+
|
|
2378
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
2379
|
+
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
2380
|
+
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
2381
|
+
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
2382
|
+
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
2383
|
+
var MEMORY_SCOPES = ["personal", "work"];
|
|
2384
|
+
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
2385
|
+
var TASK_TYPES2 = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
2386
|
+
|
|
2299
2387
|
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
2300
2388
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
2301
2389
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
@@ -2310,6 +2398,27 @@ var normalizeTag = /* @__PURE__ */ __name((value) => {
|
|
|
2310
2398
|
return tag;
|
|
2311
2399
|
}, "normalizeTag");
|
|
2312
2400
|
|
|
2401
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
2402
|
+
var LINK_KINDS = [
|
|
2403
|
+
"links-to",
|
|
2404
|
+
"blocked-by",
|
|
2405
|
+
"follow-up-of",
|
|
2406
|
+
"about",
|
|
2407
|
+
"member-of",
|
|
2408
|
+
"labelled",
|
|
2409
|
+
"answered-by",
|
|
2410
|
+
"evidence",
|
|
2411
|
+
"created-from",
|
|
2412
|
+
"duplicate-of",
|
|
2413
|
+
"related-to",
|
|
2414
|
+
"assigned-to",
|
|
2415
|
+
"attached"
|
|
2416
|
+
];
|
|
2417
|
+
var LINK_ORIGINS = ["file", "owner", "suggested", "message"];
|
|
2418
|
+
var LINK_SOURCES = [...LINK_ORIGINS, "calendar"];
|
|
2419
|
+
var RELATION_KINDS = ["member-of", "related-to"];
|
|
2420
|
+
var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
|
|
2421
|
+
|
|
2313
2422
|
export {
|
|
2314
2423
|
TAG_TYPES,
|
|
2315
2424
|
tagOf,
|
|
@@ -2383,5 +2492,23 @@ export {
|
|
|
2383
2492
|
SAVE_HELP,
|
|
2384
2493
|
validateMeetingSeriesHistory,
|
|
2385
2494
|
validateMeetingSeriesInventoryCursor,
|
|
2386
|
-
aggregateMeetingStats
|
|
2495
|
+
aggregateMeetingStats,
|
|
2496
|
+
LINK_KINDS,
|
|
2497
|
+
LINK_ORIGINS,
|
|
2498
|
+
LINK_SOURCES,
|
|
2499
|
+
RELATION_KINDS,
|
|
2500
|
+
linkKind,
|
|
2501
|
+
TASK_KINDS,
|
|
2502
|
+
TASK_STATES,
|
|
2503
|
+
TASK_ORIGINS,
|
|
2504
|
+
TASK_VERDICTS,
|
|
2505
|
+
createTaskService,
|
|
2506
|
+
matches,
|
|
2507
|
+
FACT_TYPES,
|
|
2508
|
+
FACT_STATUSES,
|
|
2509
|
+
MEMORY_KINDS,
|
|
2510
|
+
MEMORY_STATUSES,
|
|
2511
|
+
MEMORY_SCOPES,
|
|
2512
|
+
WORK_TASK_TYPES,
|
|
2513
|
+
TASK_TYPES2 as TASK_TYPES
|
|
2387
2514
|
};
|
|
@@ -2,59 +2,59 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
SendJournal,
|
|
5
|
+
ceilingRefusal,
|
|
5
6
|
levelRefusal,
|
|
6
7
|
refuseLocalWrite,
|
|
8
|
+
refuseUnknownPermissionKeys,
|
|
7
9
|
sendsPathFor
|
|
8
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-54BYJQ77.js";
|
|
9
11
|
import {
|
|
10
12
|
chatRef,
|
|
11
13
|
contactRef,
|
|
12
14
|
positiveCount
|
|
13
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DT2YCB2V.js";
|
|
14
16
|
import {
|
|
15
17
|
MAX_SEARCH_OFFSET,
|
|
16
18
|
excerpt,
|
|
17
19
|
newOperationId,
|
|
18
20
|
refreshedFiles,
|
|
19
21
|
senderIsMe
|
|
20
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-6XYGTRMQ.js";
|
|
21
23
|
import {
|
|
22
24
|
commandPathOf
|
|
23
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-UFWK3L5Z.js";
|
|
24
26
|
import {
|
|
25
27
|
NONE_NAMED,
|
|
26
28
|
changesMessenger,
|
|
27
29
|
environmentOf,
|
|
28
30
|
itemOf,
|
|
29
31
|
listOf,
|
|
32
|
+
metaOf,
|
|
30
33
|
nextStep,
|
|
31
34
|
recalledAccount,
|
|
32
35
|
settingsFor
|
|
33
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-3RYX7IB6.js";
|
|
34
37
|
import {
|
|
38
|
+
CEILING_KEY,
|
|
35
39
|
DEFAULT_TEXT_MODEL,
|
|
36
|
-
parseDuration
|
|
37
|
-
} from "./chunk-LONV6HIK.js";
|
|
38
|
-
import {
|
|
39
40
|
keyForCommand,
|
|
40
41
|
levelFor,
|
|
42
|
+
parseDuration,
|
|
41
43
|
writeOfKey
|
|
42
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-2HHOMN2G.js";
|
|
43
45
|
import {
|
|
44
46
|
MESSENGER_CHANGE_REFUSAL,
|
|
45
47
|
readOnlyLockOf,
|
|
46
48
|
readOnlyRefusal
|
|
47
49
|
} from "./chunk-ZDLIO76S.js";
|
|
48
|
-
import {
|
|
49
|
-
openStore
|
|
50
|
-
} from "./chunk-WQJBAWQP.js";
|
|
51
50
|
import {
|
|
52
51
|
formatLocator,
|
|
52
|
+
openStore,
|
|
53
53
|
parseLocator
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-R4TE4ZSD.js";
|
|
55
55
|
import {
|
|
56
56
|
visibleControls
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-DZMK255Y.js";
|
|
58
58
|
import {
|
|
59
59
|
CliError,
|
|
60
60
|
description,
|
|
@@ -62,7 +62,8 @@ import {
|
|
|
62
62
|
optional,
|
|
63
63
|
pipe,
|
|
64
64
|
string,
|
|
65
|
-
toStandardJsonSchema
|
|
65
|
+
toStandardJsonSchema,
|
|
66
|
+
writes
|
|
66
67
|
} from "./chunk-YKZ4IPLB.js";
|
|
67
68
|
import {
|
|
68
69
|
importFrom
|
|
@@ -231,6 +232,70 @@ var refuseWriteBeforeConnecting = /* @__PURE__ */ __name((action, { app, env, dr
|
|
|
231
232
|
}
|
|
232
233
|
throw refusal;
|
|
233
234
|
}, "refuseWriteBeforeConnecting");
|
|
235
|
+
var refuseByCommandPermissions = /* @__PURE__ */ __name((action, permissions, { app, env, dryRun, resolve }) => {
|
|
236
|
+
const key = permissions.keyOf(commandPathOf(action));
|
|
237
|
+
if (!key)
|
|
238
|
+
return;
|
|
239
|
+
const { effects } = metaOf(action);
|
|
240
|
+
const lock = readOnlyLockOf(app, env);
|
|
241
|
+
if (lock && effects?.remote === "write")
|
|
242
|
+
throw readOnlyRefusal(lock, `run ${commandPathOf(action).join(" ")}`);
|
|
243
|
+
const flags = action.optsWithGlobals();
|
|
244
|
+
const overrides = environmentOf(action).agent?.overrides ?? [];
|
|
245
|
+
const settings = resolve(overrides.length > 0 ? { ...flags, permission: [...overrides, ...flags.permission ?? []] } : flags, { env, needsProfile: false, readOnly: true });
|
|
246
|
+
refuseUnknownPermissionKeys(action, settings, app.command, permissions);
|
|
247
|
+
if (dryRun || settings.sources?.profile === NONE_NAMED)
|
|
248
|
+
return;
|
|
249
|
+
const { level, key: named } = levelFor(settings.permissions, key, permissions.defaults);
|
|
250
|
+
if (level === "deny") {
|
|
251
|
+
if (named === CEILING_KEY)
|
|
252
|
+
throw ceilingRefusal(key, app.command);
|
|
253
|
+
throw new CliError("permission_error", `profile ${settings.profile} denies ${key} (permissions.${named} is deny, from the ${settings.permissionSources[named ?? ""] ?? "default"})`, { permission: key });
|
|
254
|
+
}
|
|
255
|
+
if (level === "readonly" && effects !== void 0 && writes(effects))
|
|
256
|
+
throw levelRefusal({
|
|
257
|
+
profile: settings.profile,
|
|
258
|
+
command: app.command,
|
|
259
|
+
key,
|
|
260
|
+
level,
|
|
261
|
+
named,
|
|
262
|
+
permissionSources: settings.permissionSources
|
|
263
|
+
});
|
|
264
|
+
}, "refuseByCommandPermissions");
|
|
265
|
+
|
|
266
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/http/public-url.js
|
|
267
|
+
var EXAMPLE = "--public-url https://<name>.ts.net";
|
|
268
|
+
var publicUrlOf = /* @__PURE__ */ __name((given, { missing, reaches, path = false }) => {
|
|
269
|
+
if (!given)
|
|
270
|
+
throw new CliError("configuration_error", `${missing} needs the tunnel's address: ${EXAMPLE}`);
|
|
271
|
+
let url;
|
|
272
|
+
try {
|
|
273
|
+
url = new URL(given);
|
|
274
|
+
} catch {
|
|
275
|
+
throw new CliError("validation_error", `--public-url is not an address: ${EXAMPLE}`);
|
|
276
|
+
}
|
|
277
|
+
if (url.username || url.password)
|
|
278
|
+
throw new CliError("validation_error", "--public-url must not contain login credentials");
|
|
279
|
+
const local = url.protocol === "http:" && ["localhost", "127.0.0.1"].includes(url.hostname);
|
|
280
|
+
if (url.protocol !== "https:" && !local)
|
|
281
|
+
throw new CliError("validation_error", `--public-url must be https \u2014 ${reaches} through it`);
|
|
282
|
+
if (url.search || url.hash || !path && url.pathname !== "/")
|
|
283
|
+
throw new CliError("validation_error", path ? `--public-url is the tunnel's address, or a path of it, without a query: ${EXAMPLE}/tg` : `--public-url is the tunnel's address only, without a path: ${EXAMPLE}`);
|
|
284
|
+
if (path && !/^(\/[A-Za-z0-9_-][A-Za-z0-9._-]*)*\/?$/.test(url.pathname))
|
|
285
|
+
throw new CliError("validation_error", "--public-url's path takes letters, digits, dot, dash and underscore: /tg");
|
|
286
|
+
if (path)
|
|
287
|
+
url.pathname = url.pathname.replace(/\/+$/, "") || "/";
|
|
288
|
+
return url;
|
|
289
|
+
}, "publicUrlOf");
|
|
290
|
+
var portOf = /* @__PURE__ */ __name((given, fallback) => {
|
|
291
|
+
if (given === void 0)
|
|
292
|
+
return fallback;
|
|
293
|
+
const port = Number(given);
|
|
294
|
+
if (!Number.isInteger(port) || port < 1 || port > 65535)
|
|
295
|
+
throw new CliError("validation_error", "--port takes 1\u201365535");
|
|
296
|
+
return port;
|
|
297
|
+
}, "portOf");
|
|
298
|
+
var mcpUrlOf = /* @__PURE__ */ __name((publicUrl) => new URL(`${publicUrl.pathname.replace(/\/+$/, "")}/mcp`, publicUrl.origin), "mcpUrlOf");
|
|
234
299
|
|
|
235
300
|
// node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/cli/messenger/search-sync-options.js
|
|
236
301
|
var syncsFirst = /* @__PURE__ */ __name((messenger) => messenger.history !== "store", "syncsFirst");
|
|
@@ -1088,6 +1153,10 @@ var taskStatsAnswer = /* @__PURE__ */ __name((rows, account) => itemOf({
|
|
|
1088
1153
|
export {
|
|
1089
1154
|
registerPrompts,
|
|
1090
1155
|
refuseWriteBeforeConnecting,
|
|
1156
|
+
refuseByCommandPermissions,
|
|
1157
|
+
publicUrlOf,
|
|
1158
|
+
portOf,
|
|
1159
|
+
mcpUrlOf,
|
|
1091
1160
|
syncsFirst,
|
|
1092
1161
|
syncOptions,
|
|
1093
1162
|
syncRequest,
|
|
@@ -2,11 +2,11 @@ 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-QXYGK6G5.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
singleLine
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DZMK255Y.js";
|
|
10
10
|
import {
|
|
11
11
|
CliError
|
|
12
12
|
} from "./chunk-YKZ4IPLB.js";
|
|
@@ -48,12 +48,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
|
48
48
|
}, "openCache");
|
|
49
49
|
var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
|
|
50
50
|
var openUnderBun = /* @__PURE__ */ __name(async (path) => {
|
|
51
|
-
const { openWithBunSqlite } = await import("./bun-sqlite-
|
|
51
|
+
const { openWithBunSqlite } = await import("./bun-sqlite-2GOM5PM3.js");
|
|
52
52
|
return await openWithBunSqlite(path);
|
|
53
53
|
}, "openUnderBun");
|
|
54
54
|
var openUnderNode = /* @__PURE__ */ __name(async (path) => {
|
|
55
55
|
quietSqliteWarning();
|
|
56
|
-
const { openWithNodeSqlite } = await import("./node-sqlite-
|
|
56
|
+
const { openWithNodeSqlite } = await import("./node-sqlite-FSQIKGED.js");
|
|
57
57
|
return openWithNodeSqlite(path);
|
|
58
58
|
}, "openUnderNode");
|
|
59
59
|
var runtime = /* @__PURE__ */ __name(() => {
|