@wirecat/cli-memo 0.131.24 → 0.131.25
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 +9 -12
- package/dist/app.d.ts +1 -1
- package/dist/bin/memo.js +2 -2
- package/dist/bundle/{all-profiles-ZCJTYGOL.js → all-profiles-L2T7PQ7S.js} +9 -9
- package/dist/bundle/{anthropic-7WVLAKTX.js → anthropic-KWI2B4O2.js} +6 -6
- package/dist/bundle/{app-server-6G3SXEHO.js → app-server-GLDIS3HE.js} +42 -42
- package/dist/bundle/auto-QFG57LR6.js +86 -0
- package/dist/bundle/{bun-JVBDJKBB.js → bun-SMKYTOGI.js} +2 -2
- package/dist/bundle/{bun-sqlite-P4I7NVMQ.js → bun-sqlite-PKY3JXMR.js} +5 -5
- package/dist/bundle/{chunk-IC2TL7RW.js → chunk-47EZNSMD.js} +2 -2
- package/dist/bundle/{chunk-LNXFM4FD.js → chunk-4AONXXP2.js} +45 -26
- package/dist/bundle/{chunk-UY2VH3QK.js → chunk-5ANNUWNM.js} +2 -2
- package/dist/bundle/{chunk-3U7OUQV2.js → chunk-5GMOYTJQ.js} +1 -1
- package/dist/bundle/{chunk-EKTZEF3Q.js → chunk-5JYB6QKS.js} +3 -15
- package/dist/bundle/{chunk-GQOXFZBX.js → chunk-5SKYUS4U.js} +278 -279
- package/dist/bundle/{chunk-ALGIPJ6L.js → chunk-6OP743NB.js} +2 -2
- package/dist/bundle/{chunk-VVEFQEWP.js → chunk-7Y6O4UQB.js} +22 -22
- package/dist/bundle/{chunk-Q6MFBH6Q.js → chunk-BNF2ZUNS.js} +9 -9
- package/dist/bundle/{chunk-AIVUS6WA.js → chunk-BX7DVBWD.js} +15 -12
- package/dist/bundle/{chunk-LWIMGWKB.js → chunk-D5ZV7PRP.js} +3 -3
- package/dist/bundle/{chunk-OQK2IKPB.js → chunk-E2WPSRCI.js} +1 -1
- package/dist/bundle/{chunk-CCHHEMPM.js → chunk-EB2IULWB.js} +3 -2
- package/dist/bundle/{chunk-ND3GBFEY.js → chunk-EEVUVWHW.js} +2 -2
- package/dist/bundle/{chunk-UVR6U55E.js → chunk-EFTJ4RTT.js} +6 -6
- package/dist/bundle/{chunk-ZOYGY2PN.js → chunk-ENU2556X.js} +3 -3
- package/dist/bundle/{chunk-EB7LKK4K.js → chunk-ERQHZZNF.js} +1 -1
- package/dist/bundle/{chunk-AWGV4VOA.js → chunk-FS3ABWVX.js} +12 -12
- package/dist/bundle/{chunk-JY4LVWGZ.js → chunk-G2BB5WY5.js} +15 -8
- package/dist/bundle/{chunk-ZLZE5P6M.js → chunk-H5QHU5LZ.js} +8 -8
- package/dist/bundle/{chunk-CM2H7NRC.js → chunk-I5LIEFQR.js} +4 -4
- package/dist/bundle/{chunk-JCCL7RGH.js → chunk-I7PL5WX2.js} +4 -4
- package/dist/bundle/{chunk-JDDVGGUV.js → chunk-IE27DJP3.js} +10 -10
- package/dist/bundle/{chunk-AIGMYGEL.js → chunk-ILUTSRU3.js} +1 -1
- package/dist/bundle/{chunk-UXCDBNAY.js → chunk-INA5WGY7.js} +2 -2
- package/dist/bundle/{chunk-RTESJ5O2.js → chunk-J7T6RSR5.js} +4 -4
- package/dist/bundle/{chunk-F2ED6KG6.js → chunk-JDDLDKC7.js} +3 -3
- package/dist/bundle/{chunk-EACY2ULS.js → chunk-JLBKAIVT.js} +306 -187
- package/dist/bundle/{chunk-5YCNCXL5.js → chunk-JVNSHN2J.js} +1 -1
- package/dist/bundle/{chunk-NAH473ZR.js → chunk-KFZGI7BU.js} +1 -1
- package/dist/bundle/{chunk-ILHTNOIV.js → chunk-KV4267S4.js} +1 -1
- package/dist/bundle/{chunk-MPVW7BQZ.js → chunk-LFNJ6CG6.js} +6 -6
- package/dist/bundle/chunk-MAUKGKRA.js +428 -0
- package/dist/bundle/{chunk-ZDOVR4PA.js → chunk-MWX7UJCL.js} +7 -7
- package/dist/bundle/{chunk-3KNXQZMO.js → chunk-MZS3LIMW.js} +29 -29
- package/dist/bundle/{chunk-UA2C4BCH.js → chunk-NFTWNCEL.js} +9 -9
- package/dist/bundle/{chunk-R2LJDDZP.js → chunk-OGMTUMB7.js} +4 -4
- package/dist/bundle/{chunk-CPJEQK4V.js → chunk-ON5SHKHB.js} +46 -46
- package/dist/bundle/{chunk-DIMX5AEE.js → chunk-PCT2CIYR.js} +5 -5
- package/dist/bundle/{chunk-GSEDSGJF.js → chunk-POXCMAM7.js} +403 -503
- package/dist/bundle/{chunk-GRXVN2X7.js → chunk-QA674BMY.js} +1 -1
- package/dist/bundle/{chunk-ITQBXFMC.js → chunk-QJJSMLBR.js} +3 -3
- package/dist/bundle/{chunk-BTQSFPIM.js → chunk-QOWGFGG3.js} +5 -5
- package/dist/bundle/{chunk-N5H6I7WQ.js → chunk-QYDCVWD4.js} +6 -6
- package/dist/bundle/{chunk-INTF3YPV.js → chunk-RKLZQVKL.js} +2 -2
- package/dist/bundle/{chunk-XF3LZ32F.js → chunk-RTII6JWI.js} +3 -3
- package/dist/bundle/{chunk-M43DAAZ7.js → chunk-SBMBBVXF.js} +1 -1
- package/dist/bundle/{chunk-SKTGBVYC.js → chunk-SW5YJCHC.js} +4 -4
- package/dist/bundle/{chunk-EGG3PGCM.js → chunk-T3R6QHD2.js} +2 -2
- package/dist/bundle/{chunk-T4LW6UYQ.js → chunk-TZ7WDQPD.js} +40 -34
- package/dist/bundle/{chunk-3MER7NE6.js → chunk-UQS6Y2A7.js} +4 -4
- package/dist/bundle/{chunk-ELKYINWL.js → chunk-UWUP3A5H.js} +13 -13
- package/dist/bundle/{chunk-KQSHIQSV.js → chunk-VGYXKQJE.js} +73 -74
- package/dist/bundle/{chunk-FXHN2UZW.js → chunk-VZ3K7IYC.js} +30 -17
- package/dist/bundle/{chunk-IJC6MFLP.js → chunk-WGHQXJHL.js} +10 -10
- package/dist/bundle/{chunk-R3LNQ3I4.js → chunk-WHVH72AD.js} +2 -2
- package/dist/bundle/{chunk-EW3XTUPB.js → chunk-XBIPSSKI.js} +4 -4
- package/dist/bundle/{chunk-2IRCJT4O.js → chunk-XFDE6AL4.js} +8 -8
- package/dist/bundle/{chunk-J6D34BFP.js → chunk-YMAS7U5X.js} +260 -262
- package/dist/bundle/{chunk-PQLBPYJR.js → chunk-YPF6OS37.js} +1 -1
- package/dist/bundle/{chunk-XSI5NYGB.js → chunk-ZKZT6PCF.js} +8 -8
- package/dist/bundle/{chunk-UPXUE27A.js → chunk-ZLB2CM7Z.js} +6 -6
- package/dist/bundle/{chunk-MROFZXAB.js → chunk-ZUV337F2.js} +22 -22
- package/dist/bundle/{chunk-VLPMB3UU.js → chunk-ZVEGLXYB.js} +4 -4
- package/dist/bundle/command-contract-47EKA67S.js +32 -0
- package/dist/bundle/{decode-YHX3DQG2.js → decode-EEDEXCHR.js} +5 -5
- package/dist/bundle/{dispatch-MELZFYOS.js → dispatch-CU5KGRQL.js} +8 -8
- package/dist/bundle/{echarts-FBVAP7BR.js → echarts-36MD3UZF.js} +2 -2
- package/dist/bundle/{embed-CQJ42S5C.js → embed-R6JZ4CDW.js} +6 -6
- package/dist/bundle/{embedder-EDXLEJ27.js → embedder-XUIOKCH6.js} +9 -9
- package/dist/bundle/{entry-HZEA7QFK.js → entry-WOAZRQ5F.js} +7 -7
- package/dist/bundle/failure-BHRE5S75.js +66 -0
- package/dist/bundle/{failure-RBNZBCZJ.js → failure-TUXXI6JT.js} +2 -2
- package/dist/bundle/{first-run-JZQN7R6M.js → first-run-3ZUSIFQJ.js} +11 -11
- package/dist/bundle/first-screen-WQ2IDXDP.js +30 -0
- package/dist/bundle/{instructions-NYVYNWVU.js → instructions-7VMPJMUM.js} +1 -1
- package/dist/bundle/mcp-I7LL7AJG.js +90 -0
- package/dist/bundle/{mcp-MNI62HHE.js → mcp-PPVOM4SE.js} +2 -2
- package/dist/bundle/memo.js +16 -16
- package/dist/bundle/{node-2QE6UPGS.js → node-SBHCG4ZC.js} +2 -2
- package/dist/bundle/{node-sqlite-SDHZJNY7.js → node-sqlite-EMKROM5U.js} +6 -6
- package/dist/bundle/{oauth-FFUJREKS.js → oauth-OJPTUA5K.js} +7 -7
- package/dist/bundle/{open-NT2GYX6N.js → open-XI2AVS5B.js} +5 -5
- package/dist/bundle/{openai-IQA2XR6Z.js → openai-NCYTRZB6.js} +10 -10
- package/dist/bundle/{process-HIEJXYW6.js → process-373B2EBA.js} +1 -1
- package/dist/bundle/{chunk-DMQ3342A.js → program-VW7IJ755.js} +9892 -2082
- package/dist/bundle/{prompt-IOZAME2R.js → prompt-L3KQBPNH.js} +5 -5
- package/dist/bundle/{recognize-2XOAZJ5N.js → recognize-GFWZX4F6.js} +4 -4
- package/dist/bundle/{remote-2LE7OTDA.js → remote-5IGAYQBB.js} +7 -7
- package/dist/bundle/{rerank-UKOVVZM6.js → rerank-6HWHGDFX.js} +7 -7
- package/dist/bundle/{serve-S2UHPEBP.js → serve-AA7RKEOM.js} +9 -9
- package/dist/bundle/server-MWUCYBJF.js +61 -0
- package/dist/bundle/server-XEY5AKKG.js +48 -0
- package/dist/bundle/{server-BG4WWQHY.js → server-Z6L4U6HO.js} +57 -57
- package/dist/bundle/{state-F5KT3CBD.js → state-3WTPOBXR.js} +6 -6
- package/dist/bundle/{store-WBUUS7FO.js → store-LNP5BXUL.js} +13 -13
- package/dist/bundle/store-maintenance-command-6HEGTKPL.js +48 -0
- package/dist/bundle/update-6GWVILUX.js +69 -0
- package/dist/config.d.ts +2 -28
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +2 -35
- package/dist/config.js.map +1 -1
- package/dist/doctor/command.d.ts +0 -12
- package/dist/doctor/command.d.ts.map +1 -1
- package/dist/doctor/command.js +19 -24
- package/dist/doctor/command.js.map +1 -1
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +1 -8
- package/dist/examples.js.map +1 -1
- package/dist/failure.d.ts +2 -2
- package/dist/mail/command.d.ts.map +1 -1
- package/dist/mail/command.js +2 -87
- package/dist/mail/command.js.map +1 -1
- package/dist/mail/findings-command.d.ts.map +1 -1
- package/dist/mail/findings-command.js +1 -1
- package/dist/mail/findings-command.js.map +1 -1
- package/dist/mail/moved.d.ts +1 -1
- package/dist/mail/moved.d.ts.map +1 -1
- package/dist/mail/moved.js +3 -0
- package/dist/mail/moved.js.map +1 -1
- package/dist/mail/review-command.d.ts +1 -1
- package/dist/mail/review-command.d.ts.map +1 -1
- package/dist/program.js +1 -1
- package/dist/program.js.map +1 -1
- package/dist/read-only.d.ts +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +1 -13
- package/dist/reasons.js.map +1 -1
- package/dist/run/auto.js +3 -3
- package/dist/run/auto.js.map +1 -1
- package/dist/run/import.d.ts +2 -2
- package/dist/run/import.d.ts.map +1 -1
- package/dist/run/import.js +24 -121
- package/dist/run/import.js.map +1 -1
- package/dist/search/command.js +1 -1
- package/dist/store/source-list.d.ts +1 -6
- package/dist/store/source-list.d.ts.map +1 -1
- package/dist/store/source-list.js +11 -46
- package/dist/store/source-list.js.map +1 -1
- package/dist/tasks/command.js +1 -1
- package/dist/tasks/command.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/scenarios/set-up.md +3 -3
- package/skills/cli-memo/SKILL.md +13 -21
- package/skills/mail-triage/SKILL.md +9 -5
- package/dist/bundle/auto-JWPM5654.js +0 -86
- package/dist/bundle/chunk-MLMSQK76.js +0 -103
- package/dist/bundle/command-contract-543RRFNU.js +0 -32
- package/dist/bundle/failure-62G7QSPX.js +0 -66
- package/dist/bundle/first-screen-56V3UOQE.js +0 -30
- package/dist/bundle/mcp-Y6IPYDS2.js +0 -90
- package/dist/bundle/program-DEMRKCZY.js +0 -10972
- package/dist/bundle/server-3YNOEPWU.js +0 -61
- package/dist/bundle/server-EZWQ5KP4.js +0 -48
- package/dist/bundle/setup-2X7ADKFH.js +0 -973
- package/dist/bundle/store-maintenance-command-KLST56XF.js +0 -48
- package/dist/bundle/update-WH4CGJGP.js +0 -69
- package/dist/mail/accounts.d.ts +0 -7
- package/dist/mail/accounts.d.ts.map +0 -1
- package/dist/mail/accounts.js +0 -28
- package/dist/mail/accounts.js.map +0 -1
- package/dist/mail/backfill-headers.d.ts +0 -11
- package/dist/mail/backfill-headers.d.ts.map +0 -1
- package/dist/mail/backfill-headers.js +0 -84
- package/dist/mail/backfill-headers.js.map +0 -1
- package/dist/mail/domain-age.d.ts +0 -26
- package/dist/mail/domain-age.d.ts.map +0 -1
- package/dist/mail/domain-age.js +0 -151
- package/dist/mail/domain-age.js.map +0 -1
- package/dist/mail/gmail.d.ts +0 -39
- package/dist/mail/gmail.d.ts.map +0 -1
- package/dist/mail/gmail.js +0 -325
- package/dist/mail/gmail.js.map +0 -1
- package/dist/mail/himalaya.d.ts +0 -22
- package/dist/mail/himalaya.d.ts.map +0 -1
- package/dist/mail/himalaya.js +0 -113
- package/dist/mail/himalaya.js.map +0 -1
- package/dist/mail/mbox.d.ts +0 -9
- package/dist/mail/mbox.d.ts.map +0 -1
- package/dist/mail/mbox.js +0 -230
- package/dist/mail/mbox.js.map +0 -1
- package/dist/mail/repair.d.ts +0 -7
- package/dist/mail/repair.d.ts.map +0 -1
- package/dist/mail/repair.js +0 -54
- package/dist/mail/repair.js.map +0 -1
- package/dist/mail/rule-store.d.ts +0 -12
- package/dist/mail/rule-store.d.ts.map +0 -1
- package/dist/mail/rule-store.js +0 -83
- package/dist/mail/rule-store.js.map +0 -1
- package/dist/mail/setup-command.d.ts +0 -4
- package/dist/mail/setup-command.d.ts.map +0 -1
- package/dist/mail/setup-command.js +0 -41
- package/dist/mail/setup-command.js.map +0 -1
- package/dist/mail/setup.d.ts +0 -19
- package/dist/mail/setup.d.ts.map +0 -1
- package/dist/mail/setup.js +0 -95
- package/dist/mail/setup.js.map +0 -1
- package/dist/mail/slices.d.ts +0 -6
- package/dist/mail/slices.d.ts.map +0 -1
- package/dist/mail/slices.js +0 -7
- package/dist/mail/slices.js.map +0 -1
- package/dist/mail/source.d.ts +0 -7
- package/dist/mail/source.d.ts.map +0 -1
- package/dist/mail/source.js +0 -119
- package/dist/mail/source.js.map +0 -1
- package/dist/mail/sync.d.ts +0 -21
- package/dist/mail/sync.d.ts.map +0 -1
- package/dist/mail/sync.js +0 -24
- package/dist/mail/sync.js.map +0 -1
- /package/dist/bundle/{chunk-CWOKGEL3.js → chunk-LU3WKZBA.js} +0 -0
- /package/dist/bundle/{chunk-NUN6OGOV.js → chunk-MNDLWYNQ.js} +0 -0
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
tool,
|
|
21
21
|
toolKey,
|
|
22
22
|
toolsFromCommands
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-4AONXXP2.js";
|
|
24
24
|
import {
|
|
25
25
|
CHART_KINDS,
|
|
26
26
|
CHART_SIZE,
|
|
@@ -33,24 +33,24 @@ import {
|
|
|
33
33
|
registerPrompts,
|
|
34
34
|
stdinFieldOf,
|
|
35
35
|
syncsFirst
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-ZUV337F2.js";
|
|
37
37
|
import {
|
|
38
38
|
mcpUrlOf
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-T3R6QHD2.js";
|
|
40
40
|
import {
|
|
41
41
|
agentJson,
|
|
42
42
|
skillResource
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-VZ3K7IYC.js";
|
|
44
44
|
import {
|
|
45
45
|
instructions
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-KFZGI7BU.js";
|
|
47
47
|
import {
|
|
48
48
|
answeredWire
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-ERQHZZNF.js";
|
|
50
50
|
import {
|
|
51
51
|
callerOf,
|
|
52
52
|
callingAgent
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-RKLZQVKL.js";
|
|
54
54
|
import {
|
|
55
55
|
StdioServerTransport,
|
|
56
56
|
serveStdio
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
import {
|
|
63
63
|
connectedFor,
|
|
64
64
|
guardFor
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-7Y6O4UQB.js";
|
|
66
66
|
import {
|
|
67
67
|
capability,
|
|
68
68
|
dateWindow,
|
|
@@ -71,10 +71,10 @@ import {
|
|
|
71
71
|
servicesFor,
|
|
72
72
|
storedDeps,
|
|
73
73
|
wholeList
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-YMAS7U5X.js";
|
|
75
75
|
import {
|
|
76
76
|
findCommand
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-UQS6Y2A7.js";
|
|
78
78
|
import {
|
|
79
79
|
DEFAULT_OUTPUT_BYTES,
|
|
80
80
|
changesAuthorityAt,
|
|
@@ -90,27 +90,27 @@ import {
|
|
|
90
90
|
sealed,
|
|
91
91
|
snakeKeys,
|
|
92
92
|
typedCommand
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-JLBKAIVT.js";
|
|
94
94
|
import {
|
|
95
95
|
isCliFailure,
|
|
96
96
|
withCaller
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-NFTWNCEL.js";
|
|
98
98
|
import {
|
|
99
99
|
readOnlyLockOf
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-WHVH72AD.js";
|
|
101
101
|
import {
|
|
102
102
|
mcpHttpMarker
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-ZVEGLXYB.js";
|
|
104
104
|
import {
|
|
105
105
|
openStore,
|
|
106
106
|
pdfPreviewLimits
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-5SKYUS4U.js";
|
|
108
108
|
import {
|
|
109
109
|
timezoneOf
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-VGYXKQJE.js";
|
|
111
111
|
import {
|
|
112
112
|
warmEmbedders
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-LFNJ6CG6.js";
|
|
114
114
|
import {
|
|
115
115
|
description,
|
|
116
116
|
integer,
|
|
@@ -126,19 +126,19 @@ import {
|
|
|
126
126
|
regex,
|
|
127
127
|
strictObject,
|
|
128
128
|
string
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-G2BB5WY5.js";
|
|
130
130
|
import {
|
|
131
131
|
CliError,
|
|
132
132
|
visibleControls
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-EB2IULWB.js";
|
|
134
134
|
import {
|
|
135
135
|
__name
|
|
136
136
|
} from "./chunk-ZVVMGPBJ.js";
|
|
137
137
|
|
|
138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
139
139
|
import { randomUUID } from "node:crypto";
|
|
140
140
|
|
|
141
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
141
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
|
|
142
142
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
143
143
|
let held;
|
|
144
144
|
return {
|
|
@@ -157,7 +157,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
157
157
|
};
|
|
158
158
|
}, "agentLog");
|
|
159
159
|
|
|
160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
160
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/mcp/resources.js
|
|
161
161
|
var LISTED = 100;
|
|
162
162
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
163
163
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -195,7 +195,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
195
195
|
});
|
|
196
196
|
}, "registerResources");
|
|
197
197
|
|
|
198
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
198
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/mcp/session.js
|
|
199
199
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
200
200
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
201
201
|
var MessengerSession = class {
|
|
@@ -270,7 +270,7 @@ var MessengerSession = class {
|
|
|
270
270
|
}
|
|
271
271
|
};
|
|
272
272
|
|
|
273
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
273
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
|
|
274
274
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
275
275
|
const _command = messenger.app.command;
|
|
276
276
|
return {
|
|
@@ -324,7 +324,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
324
324
|
};
|
|
325
325
|
}, "attachmentsTools");
|
|
326
326
|
|
|
327
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
|
|
328
328
|
var PHOTO_LIMIT = 512 * 1024;
|
|
329
329
|
var IMAGE_TYPES = [
|
|
330
330
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -378,7 +378,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
378
378
|
return new Uint8Array(Buffer.concat(chunks));
|
|
379
379
|
}, "readUpTo");
|
|
380
380
|
|
|
381
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
381
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
|
|
382
382
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
383
383
|
stats_charts: tool({
|
|
384
384
|
title: "A chart from a chat's statistics",
|
|
@@ -415,14 +415,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
415
415
|
})
|
|
416
416
|
}), "statsTools");
|
|
417
417
|
|
|
418
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
418
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/mcp/tools.js
|
|
419
419
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
420
420
|
...messagesPhotoTools(messenger),
|
|
421
421
|
...attachmentsTools(messenger),
|
|
422
422
|
...statsTools(messenger)
|
|
423
423
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
424
424
|
|
|
425
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
425
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
426
426
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
427
427
|
"streams",
|
|
428
428
|
"stdin",
|
|
@@ -746,7 +746,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
746
746
|
}, "serveOverStdio");
|
|
747
747
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
748
748
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
749
|
-
const { serveOverHttp } = await import("./serve-
|
|
749
|
+
const { serveOverHttp } = await import("./serve-AA7RKEOM.js");
|
|
750
750
|
const appName = messenger.app.command;
|
|
751
751
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
752
752
|
const listening = await serveOverHttp(build, {
|
|
@@ -3,29 +3,29 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
secretNamed,
|
|
5
5
|
withoutSecrets
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QA674BMY.js";
|
|
7
7
|
import {
|
|
8
8
|
isContentKey
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TZ7WDQPD.js";
|
|
10
10
|
import {
|
|
11
11
|
errorCodes
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EB2IULWB.js";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
18
18
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
19
19
|
import { createHash } from "node:crypto";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
22
22
|
import { homedir } from "node:os";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/errors/failures.js
|
|
25
25
|
var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
|
|
26
26
|
var failureKey = /* @__PURE__ */ __name((error) => isCliFailure(error) ? error.code : error instanceof Error ? error.name : "error", "failureKey");
|
|
27
27
|
|
|
28
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/runs/events.js
|
|
29
29
|
var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
|
|
30
30
|
var renderEvent = /* @__PURE__ */ __name((event) => {
|
|
31
31
|
if (event.event === "warning") {
|
|
@@ -73,7 +73,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
|
|
|
73
73
|
var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
|
|
74
74
|
var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
|
|
75
75
|
|
|
76
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
76
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
77
77
|
var MESSAGE_AT_MOST = 500;
|
|
78
78
|
var CAUSES_AT_MOST = 5;
|
|
79
79
|
var FRAMES_AT_MOST = 15;
|
|
@@ -182,7 +182,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
|
|
|
182
182
|
return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
|
|
183
183
|
}, "redactText");
|
|
184
184
|
|
|
185
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
185
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
186
186
|
var REDACTED = "[redacted]";
|
|
187
187
|
var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
|
|
188
188
|
if (!record)
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
} from "./chunk-Y5E2WNWB.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EB2IULWB.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.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/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.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/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.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/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) => {
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
answerOf,
|
|
5
5
|
messengerContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7Y6O4UQB.js";
|
|
7
7
|
import {
|
|
8
8
|
FETCHING,
|
|
9
9
|
RULES_VERSION,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
syncsOneChat,
|
|
24
24
|
typedQuery,
|
|
25
25
|
withQuery
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-YMAS7U5X.js";
|
|
27
27
|
import {
|
|
28
28
|
stringWidth,
|
|
29
29
|
wrapAnsi
|
|
@@ -55,23 +55,23 @@ import {
|
|
|
55
55
|
snakeKeys,
|
|
56
56
|
storeTable,
|
|
57
57
|
withoutProviderRefs
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-JLBKAIVT.js";
|
|
59
59
|
import {
|
|
60
60
|
failureKey
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-NFTWNCEL.js";
|
|
62
62
|
import {
|
|
63
63
|
envName
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-WHVH72AD.js";
|
|
65
65
|
import {
|
|
66
66
|
holdLock,
|
|
67
67
|
lockPath,
|
|
68
68
|
releaseLock,
|
|
69
69
|
servingProfiles,
|
|
70
70
|
takeLock
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-D5ZV7PRP.js";
|
|
72
72
|
import {
|
|
73
73
|
holdersOf
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-JVNSHN2J.js";
|
|
75
75
|
import {
|
|
76
76
|
MIGRATIONS,
|
|
77
77
|
drainNoteIndex,
|
|
@@ -100,34 +100,34 @@ import {
|
|
|
100
100
|
storeClients,
|
|
101
101
|
storeContents,
|
|
102
102
|
vectorIndexCounts
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-5SKYUS4U.js";
|
|
104
104
|
import {
|
|
105
105
|
queryFieldsOf
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-VGYXKQJE.js";
|
|
107
107
|
import {
|
|
108
108
|
readSecret
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-RTII6JWI.js";
|
|
110
110
|
import {
|
|
111
111
|
checkedOptions,
|
|
112
112
|
range
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-ENU2556X.js";
|
|
114
114
|
import {
|
|
115
115
|
messagesFor,
|
|
116
116
|
systemFor,
|
|
117
117
|
validateImages
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-6OP743NB.js";
|
|
119
119
|
import {
|
|
120
120
|
storePath
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-INA5WGY7.js";
|
|
122
122
|
import {
|
|
123
123
|
openCache
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-EFTJ4RTT.js";
|
|
125
125
|
import {
|
|
126
126
|
Credentials,
|
|
127
127
|
pathsAreOverridden,
|
|
128
128
|
resolvePaths,
|
|
129
129
|
writeSecurely
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-TZ7WDQPD.js";
|
|
131
131
|
import {
|
|
132
132
|
array,
|
|
133
133
|
boolean,
|
|
@@ -151,12 +151,12 @@ import {
|
|
|
151
151
|
transform,
|
|
152
152
|
trim,
|
|
153
153
|
union
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-G2BB5WY5.js";
|
|
155
155
|
import {
|
|
156
156
|
CliError,
|
|
157
157
|
singleLine,
|
|
158
158
|
visibleControls
|
|
159
|
-
} from "./chunk-
|
|
159
|
+
} from "./chunk-EB2IULWB.js";
|
|
160
160
|
import {
|
|
161
161
|
__commonJS,
|
|
162
162
|
__name,
|
|
@@ -5496,11 +5496,11 @@ var require_liquid_node = __commonJS({
|
|
|
5496
5496
|
}
|
|
5497
5497
|
});
|
|
5498
5498
|
|
|
5499
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5499
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5500
5500
|
import { chmodSync, constants, copyFileSync, existsSync as existsSync7, mkdirSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync3, writeFileSync } from "node:fs";
|
|
5501
5501
|
import { dirname, resolve } from "node:path";
|
|
5502
5502
|
|
|
5503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5504
5504
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5505
5505
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5506
5506
|
import { Transform } from "node:stream";
|
|
@@ -5607,7 +5607,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5607
5607
|
renameSync(pending, to);
|
|
5608
5608
|
}, "unsealFile");
|
|
5609
5609
|
|
|
5610
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5610
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5611
5611
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5612
5612
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5613
5613
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5631,7 +5631,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5631
5631
|
};
|
|
5632
5632
|
}, "compatibilityOf");
|
|
5633
5633
|
|
|
5634
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5634
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5635
5635
|
import { createHash as createHash2 } from "node:crypto";
|
|
5636
5636
|
var COPY_MARK = "__repair_";
|
|
5637
5637
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5885,7 +5885,7 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5885
5885
|
return found;
|
|
5886
5886
|
}, "deleteCopy");
|
|
5887
5887
|
|
|
5888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5889
5889
|
import { existsSync as existsSync2, statSync as statSync2 } from "node:fs";
|
|
5890
5890
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
5891
5891
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync2(path) ? statSync2(path).size : 0, "bytesOf");
|
|
@@ -5932,7 +5932,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
5932
5932
|
renderAnswer(this, outputFor(this), itemOf(answer));
|
|
5933
5933
|
}), "storeInfoCommand");
|
|
5934
5934
|
|
|
5935
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
5936
5936
|
var ENCRYPT_OPTION = [
|
|
5937
5937
|
"--encrypt",
|
|
5938
5938
|
"compress and encrypt with a password, typed at a hidden prompt or piped on stdin; it is never kept \u2014 lose it and the file cannot be opened"
|
|
@@ -5951,7 +5951,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
5951
5951
|
return password;
|
|
5952
5952
|
}, "passwordOf");
|
|
5953
5953
|
|
|
5954
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5954
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
5955
5955
|
import { existsSync as existsSync3, readFileSync } from "node:fs";
|
|
5956
5956
|
import { join } from "node:path";
|
|
5957
5957
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6122,7 +6122,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6122
6122
|
}, "problem");
|
|
6123
6123
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6124
6124
|
|
|
6125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6126
6126
|
import { existsSync as existsSync4, readFileSync as readFileSync2 } from "node:fs";
|
|
6127
6127
|
import { join as join2 } from "node:path";
|
|
6128
6128
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6175,7 +6175,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6175
6175
|
}, "recordReply");
|
|
6176
6176
|
var broken2 = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply state ${path} cannot be read (${why}) \u2014 fix or move the file`), "broken");
|
|
6177
6177
|
|
|
6178
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6179
6179
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6180
6180
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6181
6181
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -6281,7 +6281,7 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
6281
6281
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
6282
6282
|
}, "filled");
|
|
6283
6283
|
|
|
6284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
6285
6285
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
6286
6286
|
var TEMPLATE_LIMITS = {
|
|
6287
6287
|
parse: 32768,
|
|
@@ -6441,7 +6441,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
6441
6441
|
}
|
|
6442
6442
|
}, "renderReplyTemplate");
|
|
6443
6443
|
|
|
6444
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
6445
6445
|
var DRY_RUN_DAYS = 7;
|
|
6446
6446
|
var PAGE = 500;
|
|
6447
6447
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -6555,7 +6555,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
6555
6555
|
}
|
|
6556
6556
|
}, "storedSince");
|
|
6557
6557
|
|
|
6558
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6558
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
6559
6559
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
6560
6560
|
const host = new URL(baseUrl).host;
|
|
6561
6561
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -6586,7 +6586,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
6586
6586
|
};
|
|
6587
6587
|
}, "embeddingKeys");
|
|
6588
6588
|
|
|
6589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6589
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
6590
6590
|
var options = strictObject({
|
|
6591
6591
|
temperature: range(0, 2),
|
|
6592
6592
|
top_p: range(0, 1),
|
|
@@ -6635,7 +6635,7 @@ var openai = {
|
|
|
6635
6635
|
}, "complete")
|
|
6636
6636
|
};
|
|
6637
6637
|
|
|
6638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
6639
6639
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
6640
6640
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
6641
6641
|
if (deps.signal?.aborted)
|
|
@@ -6650,7 +6650,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
6650
6650
|
if (!adapter && target.provider === "openai")
|
|
6651
6651
|
adapter = openai;
|
|
6652
6652
|
if (!adapter && target.provider === "anthropic")
|
|
6653
|
-
adapter = (await import("./anthropic-
|
|
6653
|
+
adapter = (await import("./anthropic-KWI2B4O2.js")).anthropic;
|
|
6654
6654
|
if (!adapter)
|
|
6655
6655
|
throw new CliError("validation_error", `no model adapter for ${target.provider}`);
|
|
6656
6656
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -6691,7 +6691,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
6691
6691
|
}, "complete")
|
|
6692
6692
|
}), "modelGateway");
|
|
6693
6693
|
|
|
6694
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6694
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
6695
6695
|
import { existsSync as existsSync5, readFileSync as readFileSync3 } from "node:fs";
|
|
6696
6696
|
import { join as join3 } from "node:path";
|
|
6697
6697
|
var shape = strictObject({
|
|
@@ -6716,7 +6716,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
6716
6716
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
6717
6717
|
}, "mayModelReply");
|
|
6718
6718
|
|
|
6719
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6719
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
6720
6720
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options2 = {
|
|
6721
6721
|
ai: true
|
|
6722
6722
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -6763,7 +6763,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
6763
6763
|
return result2;
|
|
6764
6764
|
}, "replyRenderer");
|
|
6765
6765
|
|
|
6766
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6766
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
6767
6767
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
6768
6768
|
var NO_RULES = "no rules";
|
|
6769
6769
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -6856,7 +6856,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
6856
6856
|
return { skip: why };
|
|
6857
6857
|
}, "replyTo");
|
|
6858
6858
|
|
|
6859
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6859
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
|
|
6860
6860
|
var START_SYNC_DELAY_MS = 3e4;
|
|
6861
6861
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
6862
6862
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -6933,7 +6933,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch: fetch2, note
|
|
|
6933
6933
|
};
|
|
6934
6934
|
}, "startSync");
|
|
6935
6935
|
|
|
6936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
6937
6937
|
var FIRST_FETCH_MS = 6e4;
|
|
6938
6938
|
var DAY_MS = 864e5;
|
|
6939
6939
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -6987,7 +6987,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, fi
|
|
|
6987
6987
|
};
|
|
6988
6988
|
}, "memberFetches");
|
|
6989
6989
|
|
|
6990
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
6991
6991
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
6992
6992
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
6993
6993
|
if (context.format === "pretty") {
|
|
@@ -7020,7 +7020,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7020
7020
|
return context;
|
|
7021
7021
|
}, "recordDiagnostics");
|
|
7022
7022
|
|
|
7023
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7023
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
7024
7024
|
var STEMS_EVERY_MS = 3e4;
|
|
7025
7025
|
var STEMS_SLICE_MS = 2e3;
|
|
7026
7026
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -7060,7 +7060,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
7060
7060
|
};
|
|
7061
7061
|
}, "stemFills");
|
|
7062
7062
|
|
|
7063
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7063
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/render/messages.js
|
|
7064
7064
|
import { styleText } from "node:util";
|
|
7065
7065
|
var TIME_WIDTH = 8;
|
|
7066
7066
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -7236,7 +7236,7 @@ var editedAt = /* @__PURE__ */ __name((message, options2) => {
|
|
|
7236
7236
|
return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
|
|
7237
7237
|
}, "editedAt");
|
|
7238
7238
|
|
|
7239
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7239
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
7240
7240
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
7241
7241
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
7242
7242
|
kind: attachment.kind,
|
|
@@ -7331,7 +7331,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
7331
7331
|
locale: messenger.app.locale
|
|
7332
7332
|
}), "viewOf");
|
|
7333
7333
|
|
|
7334
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7334
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
7335
7335
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
7336
7336
|
value: value.value,
|
|
7337
7337
|
observed_at: value.observedAt,
|
|
@@ -7398,7 +7398,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
7398
7398
|
}
|
|
7399
7399
|
}, "watchEventItem");
|
|
7400
7400
|
|
|
7401
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7401
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
7402
7402
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
7403
7403
|
output: { entity: "watch_item" },
|
|
7404
7404
|
effects: REMOTE_READ,
|
|
@@ -7553,7 +7553,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
7553
7553
|
}
|
|
7554
7554
|
}, "describe");
|
|
7555
7555
|
|
|
7556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
7557
7557
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
7558
7558
|
const command = annotate(new Command("serve"), {
|
|
7559
7559
|
output: { entity: "serve_summary" },
|
|
@@ -7817,7 +7817,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
7817
7817
|
};
|
|
7818
7818
|
}, "tasking");
|
|
7819
7819
|
|
|
7820
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7820
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
7821
7821
|
import { existsSync as existsSync6 } from "node:fs";
|
|
7822
7822
|
var PATH = "store tables list";
|
|
7823
7823
|
var STORE_TABLES_QUERY = {
|
|
@@ -7860,7 +7860,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
|
|
|
7860
7860
|
return tables;
|
|
7861
7861
|
}, "storeTablesCommand");
|
|
7862
7862
|
|
|
7863
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7863
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
7864
7864
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
7865
7865
|
var WORD_INDEX = "message_words";
|
|
7866
7866
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|