@wirecat/mail-cli 0.6.0 → 0.8.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/CHANGELOG.md +62 -0
- package/README.md +8 -4
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-GBFTKUHA.js → all-profiles-MXGDUBAM.js} +9 -9
- package/dist/bundle/{anthropic-PTSCWUG6.js → anthropic-A2QA4W7L.js} +6 -6
- package/dist/bundle/{app-server-5VJ2WCKJ.js → app-server-PMIMK6FK.js} +48 -48
- package/dist/bundle/{bun-2KRUBPIN.js → bun-3UW3LFNL.js} +2 -2
- package/dist/bundle/{bun-sqlite-ELSRSJBM.js → bun-sqlite-TGFZFKAX.js} +5 -5
- package/dist/bundle/{chunk-H4VFIH5W.js → chunk-2KZJWBXB.js} +3 -3
- package/dist/bundle/{chunk-PKU6V4EQ.js → chunk-2MQXXPPK.js} +17 -17
- package/dist/bundle/{chunk-ZMMIIBTM.js → chunk-4QDBMYK4.js} +70 -53
- package/dist/bundle/{chunk-B337KHJ5.js → chunk-5PWKPRTD.js} +4 -4
- package/dist/bundle/{chunk-ZRYFEEXZ.js → chunk-5W74YMCK.js} +3 -3
- package/dist/bundle/{chunk-WGK4AIRL.js → chunk-6J3DKKOV.js} +12 -12
- package/dist/bundle/{chunk-YBJMBPL7.js → chunk-6JK46V5X.js} +6 -6
- package/dist/bundle/{chunk-NZB4WGQS.js → chunk-6U6Z3GXR.js} +6 -6
- package/dist/bundle/{chunk-XZGLY2LU.js → chunk-7JUTNCQX.js} +14 -14
- package/dist/bundle/{chunk-TKJDGAHT.js → chunk-AO3XYONW.js} +33 -27
- package/dist/bundle/{chunk-DA46WQEA.js → chunk-BCDPLG7T.js} +1 -1
- package/dist/bundle/{chunk-SAZJDKEI.js → chunk-BEUQ2X7U.js} +8 -8
- package/dist/bundle/{chunk-TPNC5VCJ.js → chunk-CMNFLAUG.js} +4 -4
- package/dist/bundle/{chunk-MD2J3POF.js → chunk-CRS63C3T.js} +8 -2
- package/dist/bundle/{chunk-SQLCCKEL.js → chunk-DLB2JPLU.js} +1 -1
- package/dist/bundle/{chunk-DV4RSEAH.js → chunk-DM4ULDS3.js} +6 -6
- package/dist/bundle/{chunk-P5B7IFOG.js → chunk-DYCPBLUC.js} +2 -2
- package/dist/bundle/{chunk-OHV5RDFE.js → chunk-EN3UZPGB.js} +4 -4
- package/dist/bundle/{chunk-RAZOSYEO.js → chunk-EU35YQXE.js} +23 -23
- package/dist/bundle/{chunk-4PKHZQIM.js → chunk-EVO77D3Y.js} +8 -8
- package/dist/bundle/{chunk-3KY7DA5A.js → chunk-FSBKLJXM.js} +449 -346
- package/dist/bundle/{chunk-JFJTDL22.js → chunk-J5RKMQ6A.js} +46 -46
- package/dist/bundle/{chunk-BVIHT7KR.js → chunk-J6ACLZKV.js} +9 -9
- package/dist/bundle/{chunk-AGX7NR3S.js → chunk-KBKEZV4L.js} +13 -13
- package/dist/bundle/{chunk-PBYDT3CG.js → chunk-KEZHPPMI.js} +18 -3
- package/dist/bundle/{chunk-JKLQHPED.js → chunk-KF4YULWC.js} +10 -10
- package/dist/bundle/{chunk-NOU6MWEM.js → chunk-L2ZHPIFC.js} +2 -2
- package/dist/bundle/{chunk-BM445GYF.js → chunk-L3KMVMRJ.js} +2 -2
- package/dist/bundle/{chunk-5KHJUYHQ.js → chunk-LN7TNZIS.js} +8 -8
- package/dist/bundle/{chunk-NXJLC2WK.js → chunk-NAIJNJZZ.js} +12 -8
- package/dist/bundle/{chunk-ZPGLWMNH.js → chunk-NEBO3NZU.js} +3 -3
- package/dist/bundle/{chunk-O7VK7CJX.js → chunk-NI6WX55Z.js} +2 -2
- package/dist/bundle/{chunk-Y7JKWQC2.js → chunk-NSODLSEL.js} +114 -95
- package/dist/bundle/{chunk-ES4PWHBJ.js → chunk-NWKLBZN5.js} +30 -30
- package/dist/bundle/{chunk-O555ZEQR.js → chunk-OAQ4UB6V.js} +4 -4
- package/dist/bundle/{chunk-FUB3X25H.js → chunk-PEF637VV.js} +4 -4
- package/dist/bundle/{chunk-PHPC72DP.js → chunk-PXCIM6D5.js} +7 -7
- package/dist/bundle/{chunk-56PI2BRH.js → chunk-Q5DOXSBM.js} +1 -1
- package/dist/bundle/{chunk-RDSAI6DC.js → chunk-QBBKSCQD.js} +386 -257
- package/dist/bundle/{chunk-XERTHQ6D.js → chunk-RFWTPSJX.js} +34 -28
- package/dist/bundle/{chunk-QZBT6BOU.js → chunk-ROZBXOES.js} +1 -1
- package/dist/bundle/{chunk-FIQOBLHS.js → chunk-RVZ4JIRR.js} +1 -1
- package/dist/bundle/{chunk-VEAP5RVI.js → chunk-SZ5PKNDF.js} +7 -7
- package/dist/bundle/{chunk-J5MYH4L5.js → chunk-TCWJYOZV.js} +6 -6
- package/dist/bundle/{chunk-M7V3GSJQ.js → chunk-TMQA4KR7.js} +1 -1
- package/dist/bundle/{chunk-NCWO2FNC.js → chunk-U4IF2MOB.js} +2 -2
- package/dist/bundle/{chunk-JKA2AICL.js → chunk-UR6WHUJF.js} +2 -2
- package/dist/bundle/{chunk-KUQYWIVR.js → chunk-VGR3AGAC.js} +6 -6
- package/dist/bundle/{chunk-6MV2TBDB.js → chunk-VSDVH2M2.js} +71 -59
- package/dist/bundle/{chunk-5AQKM47C.js → chunk-W5J6I5GW.js} +3 -3
- package/dist/bundle/{chunk-LWTG5UOF.js → chunk-W7H3PZ67.js} +2 -2
- package/dist/bundle/{chunk-K5JUROGN.js → chunk-WS4L47DG.js} +1 -1
- package/dist/bundle/{chunk-WCL3WBH5.js → chunk-WWNAQ75T.js} +3 -3
- package/dist/bundle/{chunk-JIQAFFPV.js → chunk-XWNCXFR5.js} +2 -2
- package/dist/bundle/{chunk-VF24ZAPX.js → chunk-YS2WUWY7.js} +4 -4
- package/dist/bundle/{chunk-UAXBLHZK.js → chunk-Z5GDZ3QF.js} +2 -2
- package/dist/bundle/{chunk-JLRMSNPX.js → chunk-ZISFMUYB.js} +20 -18
- package/dist/bundle/{chunk-J4C32YKH.js → chunk-ZKAT6I2I.js} +1 -1
- package/dist/bundle/command-contract-Q32SL5KX.js +34 -0
- package/dist/bundle/{decode-HVXDCQ63.js → decode-NF4TGOR3.js} +5 -5
- package/dist/bundle/{dispatch-GDAH4JHS.js → dispatch-5C6XNGEE.js} +8 -8
- package/dist/bundle/{dist-43DZXMBL.js → dist-DVYY3YFG.js} +13 -13
- package/dist/bundle/{echarts-LZ74IXHG.js → echarts-F3USGP5B.js} +2 -2
- package/dist/bundle/{embed-OQF5U2C6.js → embed-2RXV3BEC.js} +6 -6
- package/dist/bundle/{embedder-OCWQAWKO.js → embedder-I2SJMC6N.js} +9 -9
- package/dist/bundle/{failure-6COJAO7T.js → failure-YRGRZBTX.js} +2 -2
- package/dist/bundle/{first-run-MTZPUPGA.js → first-run-3GA7YCKZ.js} +11 -11
- package/dist/bundle/first-screen-JFIXKYAK.js +32 -0
- package/dist/bundle/{instructions-M6F4FP7U.js → instructions-VHI5CWH5.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-GAPDLFWA.js → mcp-B25MZCS7.js} +2 -2
- package/dist/bundle/{node-NYBBFHGN.js → node-4RBB3RDY.js} +2 -2
- package/dist/bundle/{node-sqlite-CWCNWO75.js → node-sqlite-FWYX3P2D.js} +5 -5
- package/dist/bundle/{oauth-DVX45EME.js → oauth-6JKKRGLX.js} +7 -7
- package/dist/bundle/{open-M7EQWWHL.js → open-7JSNC3MR.js} +4 -4
- package/dist/bundle/{openai-63KRU5H2.js → openai-ASLWL3D6.js} +14 -14
- package/dist/bundle/{process-DV5GQIGM.js → process-AB2D2G2Q.js} +1 -1
- package/dist/bundle/{program-EPR3QCMX.js → program-ZJPQ3IDU.js} +2539 -1024
- package/dist/bundle/{prompt-EPWPWTB3.js → prompt-JDFVQR3L.js} +5 -5
- package/dist/bundle/{recognize-R46KDXK4.js → recognize-PKYA4HRC.js} +4 -4
- package/dist/bundle/{remote-RENCYB5X.js → remote-USBVVO4O.js} +7 -7
- package/dist/bundle/{rerank-VHPC5O73.js → rerank-UBMV6KO6.js} +7 -7
- package/dist/bundle/{serve-KCH3ORYO.js → serve-SVS3YOYS.js} +9 -9
- package/dist/bundle/{server-HZVXSK7B.js → server-7PZMYXY6.js} +38 -38
- package/dist/bundle/server-KA7Q5XCL.js +63 -0
- package/dist/bundle/{sqlite-runtime-XP7ZJCKJ.js → sqlite-runtime-IDPTXAM7.js} +5 -5
- package/dist/bundle/{state-GQ4MEQJ5.js → state-6G2TSVP7.js} +6 -6
- package/dist/bundle/{store-WT7YTR3Y.js → store-7A464D4X.js} +15 -15
- package/dist/bundle/{store-CQNLNINW.js → store-L56GFI4P.js} +13 -13
- package/dist/bundle/store-maintenance-command-2LM4GOI3.js +52 -0
- package/dist/commands/attachments.js +2 -2
- package/dist/commands/attachments.js.map +1 -1
- package/dist/commands/context.d.ts +21 -6
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +47 -6
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/drafts.d.ts.map +1 -1
- package/dist/commands/drafts.js +20 -16
- package/dist/commands/drafts.js.map +1 -1
- package/dist/commands/export.d.ts.map +1 -1
- package/dist/commands/export.js +10 -7
- package/dist/commands/export.js.map +1 -1
- package/dist/commands/messages.d.ts.map +1 -1
- package/dist/commands/messages.js +13 -9
- package/dist/commands/messages.js.map +1 -1
- package/dist/commands/read.d.ts.map +1 -1
- package/dist/commands/read.js +3 -1
- package/dist/commands/read.js.map +1 -1
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +5 -5
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/server-search.d.ts.map +1 -1
- package/dist/commands/server-search.js +3 -2
- package/dist/commands/server-search.js.map +1 -1
- package/dist/commands/session-start.d.ts.map +1 -1
- package/dist/commands/session-start.js +107 -10
- package/dist/commands/session-start.js.map +1 -1
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +72 -9
- package/dist/commands/session.js.map +1 -1
- package/dist/commands/stats.d.ts.map +1 -1
- package/dist/commands/stats.js +2 -3
- package/dist/commands/stats.js.map +1 -1
- package/dist/commands/status.js +2 -2
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/sync.d.ts +0 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +8 -15
- package/dist/commands/sync.js.map +1 -1
- package/dist/config.d.ts +3 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +6 -1
- package/dist/config.js.map +1 -1
- package/dist/mail/backend.d.ts +23 -1
- package/dist/mail/backend.d.ts.map +1 -1
- package/dist/mail/backend.js +4 -1
- package/dist/mail/backend.js.map +1 -1
- package/dist/mail/compose.d.ts.map +1 -1
- package/dist/mail/compose.js +13 -25
- package/dist/mail/compose.js.map +1 -1
- package/dist/mail/doctor.d.ts +42 -0
- package/dist/mail/doctor.d.ts.map +1 -1
- package/dist/mail/doctor.js +76 -0
- package/dist/mail/doctor.js.map +1 -1
- package/dist/mail/drafts.d.ts.map +1 -1
- package/dist/mail/drafts.js +4 -4
- package/dist/mail/drafts.js.map +1 -1
- package/dist/mail/imap/connection.d.ts +6 -3
- package/dist/mail/imap/connection.d.ts.map +1 -1
- package/dist/mail/imap/connection.js +63 -16
- package/dist/mail/imap/connection.js.map +1 -1
- package/dist/mail/imap/index.d.ts +2 -2
- package/dist/mail/imap/index.d.ts.map +1 -1
- package/dist/mail/imap/index.js +3 -3
- package/dist/mail/imap/index.js.map +1 -1
- package/dist/mail/imap/search.d.ts.map +1 -1
- package/dist/mail/imap/search.js +10 -4
- package/dist/mail/imap/search.js.map +1 -1
- package/dist/mail/save.d.ts +2 -5
- package/dist/mail/save.d.ts.map +1 -1
- package/dist/mail/save.js +6 -27
- package/dist/mail/save.js.map +1 -1
- package/dist/mail/send.d.ts.map +1 -1
- package/dist/mail/send.js +1 -0
- package/dist/mail/send.js.map +1 -1
- package/dist/mail/smtp.d.ts +3 -3
- package/dist/mail/smtp.d.ts.map +1 -1
- package/dist/mail/smtp.js +72 -36
- package/dist/mail/smtp.js.map +1 -1
- package/dist/oauth.d.ts +74 -0
- package/dist/oauth.d.ts.map +1 -0
- package/dist/oauth.js +230 -0
- package/dist/oauth.js.map +1 -0
- package/dist/program.js +2 -2
- package/dist/program.js.map +1 -1
- package/dist/providers.d.ts +33 -3
- package/dist/providers.d.ts.map +1 -1
- package/dist/providers.js +34 -8
- package/dist/providers.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +6 -0
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -5
- package/dist/bundle/command-contract-NZF4B5OR.js +0 -34
- package/dist/bundle/first-screen-4PBS6QK5.js +0 -32
- package/dist/bundle/server-FMCPE2ZK.js +0 -63
- package/dist/bundle/store-maintenance-command-YYR42IT4.js +0 -52
- /package/dist/bundle/{chunk-WJWLHLQ7.js → chunk-EKRM2QJB.js} +0 -0
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
permissionOverrides,
|
|
14
14
|
projectFields,
|
|
15
15
|
resolveOutput
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-TCWJYOZV.js";
|
|
17
17
|
import {
|
|
18
18
|
currentCaller,
|
|
19
19
|
endpointTemplate,
|
|
@@ -24,38 +24,38 @@ import {
|
|
|
24
24
|
providerErrorKey,
|
|
25
25
|
renderEvent,
|
|
26
26
|
runContextOf
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-J6ACLZKV.js";
|
|
28
28
|
import {
|
|
29
29
|
permissionCeiling
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-2KZJWBXB.js";
|
|
31
31
|
import {
|
|
32
32
|
count,
|
|
33
33
|
id,
|
|
34
34
|
text,
|
|
35
35
|
time
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-OAQ4UB6V.js";
|
|
37
37
|
import {
|
|
38
38
|
PRIORITY_LABELS,
|
|
39
39
|
TASK_ORIGINS,
|
|
40
40
|
TASK_STATES,
|
|
41
41
|
TASK_TYPES
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-SZ5PKNDF.js";
|
|
43
43
|
import {
|
|
44
44
|
FIELD_TYPES,
|
|
45
45
|
QUERY_BACKENDS,
|
|
46
46
|
TAG_TYPES,
|
|
47
47
|
describeQuery
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-4QDBMYK4.js";
|
|
49
49
|
import {
|
|
50
50
|
sharedConfigPath
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-6JK46V5X.js";
|
|
52
52
|
import {
|
|
53
53
|
filesPresent,
|
|
54
54
|
sharedModelsDirectory
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-EN3UZPGB.js";
|
|
56
56
|
import {
|
|
57
57
|
storePath
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-XWNCXFR5.js";
|
|
59
59
|
import {
|
|
60
60
|
configFilePath,
|
|
61
61
|
createRecordLog,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
saveConfigFile,
|
|
66
66
|
traceIdOf,
|
|
67
67
|
writeSecurely
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-ZISFMUYB.js";
|
|
69
69
|
import {
|
|
70
70
|
MAX_NEXT_STEPS,
|
|
71
71
|
STEPS,
|
|
@@ -104,16 +104,16 @@ import {
|
|
|
104
104
|
union,
|
|
105
105
|
unknown,
|
|
106
106
|
writes
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-NAIJNJZZ.js";
|
|
108
108
|
import {
|
|
109
109
|
CliError,
|
|
110
110
|
isCliError
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-L3KMVMRJ.js";
|
|
112
112
|
import {
|
|
113
113
|
__name
|
|
114
114
|
} from "./chunk-ZVVMGPBJ.js";
|
|
115
115
|
|
|
116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
117
117
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
118
118
|
var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
119
119
|
const name = envName(app, "READ_ONLY");
|
|
@@ -123,7 +123,7 @@ var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
|
123
123
|
var MESSENGER_CHANGE_REFUSAL = "send, react, change chats or change the account";
|
|
124
124
|
var readOnlyRefusal = /* @__PURE__ */ __name((lock, what) => new CliError("permission_error", `this process is read-only (${lock}) \u2014 it cannot ${what}`), "readOnlyRefusal");
|
|
125
125
|
|
|
126
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
126
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
|
|
127
127
|
var labels = /* @__PURE__ */ new WeakMap();
|
|
128
128
|
var annotate = /* @__PURE__ */ __name((command, meta) => {
|
|
129
129
|
labels.set(command, { ...labels.get(command), ...meta });
|
|
@@ -3624,7 +3624,7 @@ __name(useColor, "useColor");
|
|
|
3624
3624
|
// node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
|
|
3625
3625
|
var program = new Command();
|
|
3626
3626
|
|
|
3627
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3627
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
|
|
3628
3628
|
var argumentInfoSchema = object({
|
|
3629
3629
|
name: string(),
|
|
3630
3630
|
required: boolean(),
|
|
@@ -3653,7 +3653,8 @@ var fieldInfoSchema = object({
|
|
|
3653
3653
|
example: string(),
|
|
3654
3654
|
relation: optional(string()),
|
|
3655
3655
|
native: optional(boolean()),
|
|
3656
|
-
placement: optional(literal("and"))
|
|
3656
|
+
placement: optional(literal("and")),
|
|
3657
|
+
negatable: optional(boolean())
|
|
3657
3658
|
});
|
|
3658
3659
|
var commandInfoSchema = object({
|
|
3659
3660
|
path: array(string()),
|
|
@@ -3697,7 +3698,7 @@ var commandsDocumentSchema = strictObject({
|
|
|
3697
3698
|
exit_codes: record(string(), pipe(number(), integer()))
|
|
3698
3699
|
});
|
|
3699
3700
|
|
|
3700
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3701
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
|
|
3701
3702
|
import { isDeepStrictEqual } from "node:util";
|
|
3702
3703
|
var protectedCommands = /* @__PURE__ */ new WeakMap();
|
|
3703
3704
|
var hidden = /* @__PURE__ */ __name((command) => Boolean(command._hidden), "hidden");
|
|
@@ -3806,7 +3807,7 @@ var sharedCommand = /* @__PURE__ */ __name((factory) => (...args) => {
|
|
|
3806
3807
|
return result;
|
|
3807
3808
|
}, "sharedCommand");
|
|
3808
3809
|
|
|
3809
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3810
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
|
|
3810
3811
|
var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
3811
3812
|
let command = root;
|
|
3812
3813
|
const path2 = [];
|
|
@@ -3824,7 +3825,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3824
3825
|
}
|
|
3825
3826
|
}, "refuseJoinedPath");
|
|
3826
3827
|
|
|
3827
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3828
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
3828
3829
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3829
3830
|
var sentIds = /* @__PURE__ */ __name((typed, message) => ({
|
|
3830
3831
|
messageId: message.id,
|
|
@@ -3930,7 +3931,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
3930
3931
|
}, "guardedWrite");
|
|
3931
3932
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
3932
3933
|
|
|
3933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3934
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
3934
3935
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
3935
3936
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
3936
3937
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -4112,7 +4113,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4112
4113
|
}
|
|
4113
4114
|
}, "withAbort");
|
|
4114
4115
|
|
|
4115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
4116
4117
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
4117
4118
|
import { join } from "node:path";
|
|
4118
4119
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -4134,7 +4135,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4134
4135
|
}, "profilesWithAccounts");
|
|
4135
4136
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4136
4137
|
|
|
4137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/background/budget.js
|
|
4138
4139
|
var DEADLINE_MARGIN_MS = 5e3;
|
|
4139
4140
|
var DEADLINE_MARGIN_SHARE = 0.15;
|
|
4140
4141
|
var DEFAULT_REQUEST_MS = 2e3;
|
|
@@ -4177,7 +4178,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests, deadline, requestMs, signal,
|
|
|
4177
4178
|
};
|
|
4178
4179
|
}, "runBudget");
|
|
4179
4180
|
|
|
4180
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
4181
4182
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
4182
4183
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
4183
4184
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4211,7 +4212,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4211
4212
|
cache: "cache.answered"
|
|
4212
4213
|
};
|
|
4213
4214
|
|
|
4214
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4215
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
4215
4216
|
var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
4216
4217
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
4217
4218
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -4224,13 +4225,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
4224
4225
|
error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
|
|
4225
4226
|
}), "snakeLogger");
|
|
4226
4227
|
|
|
4227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4228
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4228
4229
|
import { randomUUID } from "node:crypto";
|
|
4229
4230
|
import { appendFileSync, mkdirSync, readdirSync as readdirSync2, readFileSync as readFileSync2, rmSync, statSync, writeFileSync } from "node:fs";
|
|
4230
4231
|
import { userInfo } from "node:os";
|
|
4231
4232
|
import { join as join2, sep } from "node:path";
|
|
4232
4233
|
|
|
4233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4234
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
4234
4235
|
var diagnostic = {
|
|
4235
4236
|
event: true,
|
|
4236
4237
|
operation: true,
|
|
@@ -4300,7 +4301,7 @@ var LOG_ATTRIBUTES = [
|
|
|
4300
4301
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
4301
4302
|
].sort();
|
|
4302
4303
|
|
|
4303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4304
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4304
4305
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
4305
4306
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
4306
4307
|
var RUNS_SIZE_LIMIT_MB = 200;
|
|
@@ -4653,7 +4654,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
4653
4654
|
};
|
|
4654
4655
|
}, "metadataOf");
|
|
4655
4656
|
|
|
4656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
4657
4658
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
4658
4659
|
import { randomBytes } from "node:crypto";
|
|
4659
4660
|
var scopes = new AsyncLocalStorage2();
|
|
@@ -4689,7 +4690,7 @@ var childTrace = /* @__PURE__ */ __name(() => {
|
|
|
4689
4690
|
var attempts = new AsyncLocalStorage2();
|
|
4690
4691
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
4691
4692
|
|
|
4692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4693
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
4693
4694
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
4694
4695
|
const recording = startRecording(options);
|
|
4695
4696
|
try {
|
|
@@ -4874,7 +4875,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
4874
4875
|
return void 0;
|
|
4875
4876
|
}, "partialOutcome");
|
|
4876
4877
|
|
|
4877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
4878
4879
|
var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
4879
4880
|
if (ms === void 0)
|
|
4880
4881
|
return body();
|
|
@@ -4900,7 +4901,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
|
4900
4901
|
}
|
|
4901
4902
|
}, "withDeadline");
|
|
4902
4903
|
|
|
4903
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4904
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
4904
4905
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
4905
4906
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
4906
4907
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -4969,10 +4970,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
4969
4970
|
return void 0;
|
|
4970
4971
|
}, "sampleCommand");
|
|
4971
4972
|
|
|
4972
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4973
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
4973
4974
|
import { existsSync as existsSync3 } from "node:fs";
|
|
4974
4975
|
|
|
4975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4976
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
4976
4977
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
4977
4978
|
try {
|
|
4978
4979
|
const url2 = new URL(value);
|
|
@@ -4982,7 +4983,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
|
|
|
4982
4983
|
}
|
|
4983
4984
|
}, "endpoint");
|
|
4984
4985
|
|
|
4985
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4986
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
4986
4987
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
4987
4988
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
4988
4989
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -5051,7 +5052,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
5051
5052
|
};
|
|
5052
5053
|
}, "modelTarget");
|
|
5053
5054
|
|
|
5054
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5055
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
5055
5056
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
5056
5057
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
5057
5058
|
var AI_FIELDS = {
|
|
@@ -5095,7 +5096,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
5095
5096
|
};
|
|
5096
5097
|
}, "resolveAISettings");
|
|
5097
5098
|
|
|
5098
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5099
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
5099
5100
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
5100
5101
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
5101
5102
|
var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
@@ -5109,7 +5110,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
|
5109
5110
|
return ms;
|
|
5110
5111
|
}, "parseDuration");
|
|
5111
5112
|
|
|
5112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
5113
5114
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
5114
5115
|
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
5115
5116
|
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
@@ -5268,7 +5269,7 @@ var rerankModel = /* @__PURE__ */ __name((id2) => {
|
|
|
5268
5269
|
var vectorModelKey = /* @__PURE__ */ __name((model2) => `local:${model2.id}:${model2.dims}`, "vectorModelKey");
|
|
5269
5270
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
5270
5271
|
|
|
5271
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5272
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
5272
5273
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
5273
5274
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
5274
5275
|
var SECTIONS = ["personal", "bot"];
|
|
@@ -5558,7 +5559,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
5558
5559
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
5559
5560
|
}, "readConfigFile");
|
|
5560
5561
|
|
|
5561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
5562
5563
|
import { existsSync as existsSync2, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
5563
5564
|
import { dirname, join as join3 } from "node:path";
|
|
5564
5565
|
var DEFAULT_CONFIG = {
|
|
@@ -5587,7 +5588,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
5587
5588
|
}
|
|
5588
5589
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
5589
5590
|
|
|
5590
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5591
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5591
5592
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
5592
5593
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
5593
5594
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -5977,7 +5978,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
5977
5978
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
5978
5979
|
}, "given");
|
|
5979
5980
|
|
|
5980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5981
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
5981
5982
|
var runBudgetOf = /* @__PURE__ */ __name((command, requests) => {
|
|
5982
5983
|
const { deadline, signal, app } = environmentOf(command);
|
|
5983
5984
|
const now = deadline?.();
|
|
@@ -6094,7 +6095,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
6094
6095
|
return words.join(" ");
|
|
6095
6096
|
}, "commandPath");
|
|
6096
6097
|
|
|
6097
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6098
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
6098
6099
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
6099
6100
|
var FETCH = { remote: "read", local: "write" };
|
|
6100
6101
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -6140,15 +6141,21 @@ var fetchesOnly = /* @__PURE__ */ __name((command) => {
|
|
|
6140
6141
|
const effects = metaOf(command).effects;
|
|
6141
6142
|
return effects?.remote === "read" && effects.local === "write" && !STORE_WRITES.has(command) && !changesAuthority(command) && !OTHER_SERVICE.has(command) && !savesFiles(command);
|
|
6142
6143
|
}, "fetchesOnly");
|
|
6143
|
-
var
|
|
6144
|
+
var FILE_OPTION = /* @__PURE__ */ new WeakMap();
|
|
6145
|
+
var writesFileNow = /* @__PURE__ */ __name((command) => {
|
|
6146
|
+
const option = FILE_OPTION.get(command);
|
|
6147
|
+
return option === void 0 || command.opts()[option] !== void 0;
|
|
6148
|
+
}, "writesFileNow");
|
|
6149
|
+
var readsOverMcp = /* @__PURE__ */ __name((command) => fetchesOnly(command) || FILE_OPTION.has(command), "readsOverMcp");
|
|
6150
|
+
var readsOverMcpAt = /* @__PURE__ */ __name((root) => (path2) => {
|
|
6144
6151
|
let at = root;
|
|
6145
6152
|
for (const word of path2)
|
|
6146
6153
|
at = at?.commands.find((one) => one.name() === word);
|
|
6147
|
-
return at !== void 0 &&
|
|
6148
|
-
}, "
|
|
6154
|
+
return at !== void 0 && readsOverMcp(at);
|
|
6155
|
+
}, "readsOverMcpAt");
|
|
6149
6156
|
var isStoreChange = /* @__PURE__ */ __name((command) => {
|
|
6150
6157
|
const effects = metaOf(command).effects;
|
|
6151
|
-
return (effects?.remote === "none" || STORE_WRITES.has(command)) && effects?.local === "write" && !KEPT_UNDER_LOCK.has(command) && !changesAuthority(command);
|
|
6158
|
+
return (effects?.remote === "none" || STORE_WRITES.has(command)) && effects?.local === "write" && !KEPT_UNDER_LOCK.has(command) && !changesAuthority(command) && writesFileNow(command);
|
|
6152
6159
|
}, "isStoreChange");
|
|
6153
6160
|
var STORE_CHANGE_REFUSAL = "change the message store";
|
|
6154
6161
|
var previewFlag = /* @__PURE__ */ __name((program2) => program2.options.some((option) => option.long === "--dry-run") ? " --dry-run" : "", "previewFlag");
|
|
@@ -6196,7 +6203,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
6196
6203
|
throw readOnlyRefusal(lock, what);
|
|
6197
6204
|
}, "refuseUnderReadOnly");
|
|
6198
6205
|
|
|
6199
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6206
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
6200
6207
|
import { join as join4 } from "node:path";
|
|
6201
6208
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
6202
6209
|
var IMAGE_MODELS = [
|
|
@@ -6250,7 +6257,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
6250
6257
|
var placedImage = /* @__PURE__ */ __name((model2, directory) => model2.files.map((file) => [file, join4(directory, model2.id, file.name)]), "placedImage");
|
|
6251
6258
|
var isImageModelInstalled = /* @__PURE__ */ __name((model2, directory) => filesPresent(placedImage(model2, directory)), "isImageModelInstalled");
|
|
6252
6259
|
|
|
6253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6260
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
6254
6261
|
var STEPS2 = defineSteps([
|
|
6255
6262
|
...STEPS,
|
|
6256
6263
|
{
|
|
@@ -6517,7 +6524,7 @@ var stepLine = /* @__PURE__ */ __name((root, step) => {
|
|
|
6517
6524
|
].join(" ");
|
|
6518
6525
|
}, "stepLine");
|
|
6519
6526
|
|
|
6520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6527
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
6521
6528
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
6522
6529
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
6523
6530
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -6531,7 +6538,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
6531
6538
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
6532
6539
|
}, "strip");
|
|
6533
6540
|
|
|
6534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6541
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
6535
6542
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
6536
6543
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
6537
6544
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -6665,7 +6672,7 @@ var printItem = /* @__PURE__ */ __name(({ renderer, format }, item) => {
|
|
|
6665
6672
|
renderer.result(item);
|
|
6666
6673
|
}, "printItem");
|
|
6667
6674
|
|
|
6668
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6675
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
6669
6676
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
6670
6677
|
var storeTable = strictObject({
|
|
6671
6678
|
name: text,
|
|
@@ -6674,7 +6681,7 @@ var storeTable = strictObject({
|
|
|
6674
6681
|
bytes: optional(nullable(count))
|
|
6675
6682
|
});
|
|
6676
6683
|
|
|
6677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6684
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
6678
6685
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
6679
6686
|
const run = currentRun();
|
|
6680
6687
|
const trace = traceId ?? run.traceId;
|
|
@@ -6688,7 +6695,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
6688
6695
|
}));
|
|
6689
6696
|
}, "recordLogFor");
|
|
6690
6697
|
|
|
6691
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6698
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
6692
6699
|
var attachment = strictObject({
|
|
6693
6700
|
/** The message it came with, as a locator; absent inside that message. */
|
|
6694
6701
|
message: optional(reference),
|
|
@@ -6724,8 +6731,9 @@ var attachment = strictObject({
|
|
|
6724
6731
|
url: optional(text)
|
|
6725
6732
|
}))))
|
|
6726
6733
|
});
|
|
6734
|
+
var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
|
|
6727
6735
|
|
|
6728
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
6729
6737
|
var closeSuggestion = strictObject({
|
|
6730
6738
|
as: picklist(["done", "dismissed"]),
|
|
6731
6739
|
/** The agent's name. */
|
|
@@ -6749,6 +6757,8 @@ var task = strictObject({
|
|
|
6749
6757
|
/** The project's key and name, as `tasks counts` names it. */
|
|
6750
6758
|
project_key: optional(nullable(text)),
|
|
6751
6759
|
project_name: optional(nullable(text)),
|
|
6760
|
+
/** Who added it: the owner, or an agent by its bot name. */
|
|
6761
|
+
created_by: optional(nullable(strictObject({ type: picklist(["person", "bot"]), id, name: nullable(text), owner: boolean() }))),
|
|
6752
6762
|
account: optional(text),
|
|
6753
6763
|
/** The chat it came from, as a `chat:` reference. */
|
|
6754
6764
|
chat: optional(nullable(reference)),
|
|
@@ -6781,7 +6791,7 @@ var task = strictObject({
|
|
|
6781
6791
|
updated_at: optional(time)
|
|
6782
6792
|
});
|
|
6783
6793
|
|
|
6784
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6794
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
6785
6795
|
var agendaChat = strictObject({
|
|
6786
6796
|
chat: reference,
|
|
6787
6797
|
title: nullable(text),
|
|
@@ -6851,7 +6861,7 @@ var agenda = strictObject({
|
|
|
6851
6861
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
6852
6862
|
});
|
|
6853
6863
|
|
|
6854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6864
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
6855
6865
|
var WEIGHTS = {
|
|
6856
6866
|
bot: 3,
|
|
6857
6867
|
scam: 3,
|
|
@@ -6876,7 +6886,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
6876
6886
|
var DIGITS = /\d{5,}/;
|
|
6877
6887
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
6878
6888
|
|
|
6879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6889
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
6880
6890
|
var conversation = strictObject({
|
|
6881
6891
|
id,
|
|
6882
6892
|
chat: reference,
|
|
@@ -6891,7 +6901,7 @@ var conversation = strictObject({
|
|
|
6891
6901
|
rules_version: count
|
|
6892
6902
|
});
|
|
6893
6903
|
|
|
6894
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6904
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
6895
6905
|
var tagging = strictObject({
|
|
6896
6906
|
tag: text,
|
|
6897
6907
|
type: picklist(TAG_TYPES),
|
|
@@ -6932,6 +6942,7 @@ export {
|
|
|
6932
6942
|
withAttempt,
|
|
6933
6943
|
recordLogFor,
|
|
6934
6944
|
attachment,
|
|
6945
|
+
hitFile,
|
|
6935
6946
|
annotate,
|
|
6936
6947
|
metaOf,
|
|
6937
6948
|
annotateOption,
|
|
@@ -6948,6 +6959,7 @@ export {
|
|
|
6948
6959
|
sharedContracts,
|
|
6949
6960
|
sharedCommand,
|
|
6950
6961
|
refuseJoinedPath,
|
|
6962
|
+
deadlineMargin,
|
|
6951
6963
|
recorded,
|
|
6952
6964
|
startRecording,
|
|
6953
6965
|
wasSettled,
|
|
@@ -7015,7 +7027,7 @@ export {
|
|
|
7015
7027
|
isLogin,
|
|
7016
7028
|
destroysNothing,
|
|
7017
7029
|
changesStore,
|
|
7018
|
-
|
|
7030
|
+
readsOverMcpAt,
|
|
7019
7031
|
isStoreChange,
|
|
7020
7032
|
previewFlag,
|
|
7021
7033
|
storeChangeRefusal,
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DYCPBLUC.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-L3KMVMRJ.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.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
|
|
16
16
|
import { createInterface } from "node:readline";
|
|
17
17
|
import { Writable } from "node:stream";
|
|
18
18
|
var readSecret = /* @__PURE__ */ __name(async (prompt, { input = process.stdin, output = process.stderr, echo = false, signal: givenSignal } = {}) => {
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
CAPABILITY_STATEMENTS,
|
|
5
5
|
storeCapable
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DM4ULDS3.js";
|
|
7
7
|
import {
|
|
8
8
|
importFrom
|
|
9
9
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
|
|
15
15
|
import { spawn, spawnSync } from "node:child_process";
|
|
16
16
|
import { readFileSync } from "node:fs";
|
|
17
17
|
import { dirname } from "node:path";
|
|
@@ -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.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/http/listen.js
|
|
8
8
|
import { createServer } from "node:http";
|
|
9
9
|
import { Readable } from "node:stream";
|
|
10
10
|
var MAX_BODY = 4 * 1024 * 1024;
|
|
@@ -9,15 +9,15 @@ import {
|
|
|
9
9
|
optional,
|
|
10
10
|
pipe,
|
|
11
11
|
safeParse
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NAIJNJZZ.js";
|
|
13
13
|
import {
|
|
14
14
|
CliError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-L3KMVMRJ.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
18
|
} from "./chunk-ZVVMGPBJ.js";
|
|
19
19
|
|
|
20
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/models/options.js
|
|
21
21
|
var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
|
|
22
22
|
const parsed = safeParse(schema, options);
|
|
23
23
|
if (!parsed.success) {
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
resolvePaths
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZISFMUYB.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.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/store/path.js
|
|
11
11
|
import { join } from "node:path";
|
|
12
12
|
var wirecatDirectory = /* @__PURE__ */ __name((env = process.env, platform) => resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env, ...platform ? { platform } : {} }).state, "wirecatDirectory");
|
|
13
13
|
var storePath = /* @__PURE__ */ __name((env = process.env) => env.MESSAGING_STORE ?? join(wirecatDirectory(env), "wirecat.db"), "storePath");
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
} from "./chunk-Y5E2WNWB.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-L3KMVMRJ.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.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
14
14
|
import { createRequire } from "node:module";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
|
|
17
17
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
|
|
18
18
|
var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
19
19
|
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
|
70
70
|
throw invalid();
|
|
71
71
|
}, "checkOggDuration");
|
|
72
72
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
73
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
74
74
|
var SAMPLE_RATE = 16e3;
|
|
75
75
|
var LEAD = SAMPLE_RATE / 2;
|
|
76
76
|
var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
|