@wirecat/cli-memo 0.131.36 → 0.131.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/memo.js +2 -2
- package/dist/bundle/{all-profiles-AVDSOFZL.js → all-profiles-W26PFZ2J.js} +5 -5
- package/dist/bundle/{anthropic-CRPI5XLD.js → anthropic-SY6QPTQW.js} +3 -3
- package/dist/bundle/{app-server-PIXX4CXT.js → app-server-WUXDTYU4.js} +35 -35
- package/dist/bundle/auto-U76QA2DW.js +86 -0
- package/dist/bundle/{bun-JOD7BLWG.js → bun-O3KE32D7.js} +2 -2
- package/dist/bundle/{bun-sqlite-IW42RA6B.js → bun-sqlite-5X2NBSLA.js} +2 -2
- package/dist/bundle/{chunk-4BWAVNRU.js → chunk-2EDP7PDR.js} +258 -258
- package/dist/bundle/{chunk-BRMII52T.js → chunk-2IST54UV.js} +9 -9
- package/dist/bundle/{chunk-XSS6U6VL.js → chunk-2Q4DYGNU.js} +2 -2
- package/dist/bundle/{chunk-EUZGV5UK.js → chunk-32WLB6I3.js} +1 -1
- package/dist/bundle/{chunk-G4N6CIFO.js → chunk-374FSLTB.js} +5 -5
- package/dist/bundle/{chunk-JPVAIMPJ.js → chunk-3G63U4VK.js} +9 -9
- package/dist/bundle/{chunk-PWKO36K4.js → chunk-43CMY3YD.js} +1 -1
- package/dist/bundle/{chunk-ZFIBNKLW.js → chunk-4AXSD77N.js} +1 -1
- package/dist/bundle/{chunk-D57K44OV.js → chunk-4CADISNA.js} +1 -1
- package/dist/bundle/{chunk-TW5YX26Q.js → chunk-4CD37FZU.js} +5 -5
- package/dist/bundle/{chunk-7U7U2UZV.js → chunk-4NJQJZRO.js} +1 -1
- package/dist/bundle/{chunk-CC2EUMMM.js → chunk-4OF64T67.js} +1 -1
- package/dist/bundle/{chunk-X3WEAVIH.js → chunk-5EBYGKZB.js} +1 -1
- package/dist/bundle/{chunk-HQJBQWFQ.js → chunk-5J5RTJUJ.js} +1 -1
- package/dist/bundle/{chunk-QRYSVOUH.js → chunk-5ZKNRR6O.js} +48 -33
- package/dist/bundle/{chunk-XCO6NBTE.js → chunk-75QQ7MLH.js} +8 -8
- package/dist/bundle/{chunk-RZLEQP2H.js → chunk-7P3PM3OL.js} +7 -7
- package/dist/bundle/{chunk-EW2T73CA.js → chunk-AJ4SVCBD.js} +259 -251
- package/dist/bundle/{chunk-T5IRZA25.js → chunk-AOFYLQK2.js} +2 -2
- package/dist/bundle/{chunk-6Z5SDRME.js → chunk-B4LT2DHH.js} +4 -4
- package/dist/bundle/{chunk-YVYOZY5K.js → chunk-CEENCS5P.js} +6 -6
- package/dist/bundle/{chunk-T676QOXT.js → chunk-CEOXSWU3.js} +2 -2
- package/dist/bundle/{chunk-EFF5JJRJ.js → chunk-CVCL77DZ.js} +4 -4
- package/dist/bundle/{chunk-CBFO5NLX.js → chunk-CXWKBOKQ.js} +3 -3
- package/dist/bundle/{chunk-QIRO6B6C.js → chunk-DHGQTARJ.js} +4 -4
- package/dist/bundle/{chunk-RPZQ3DSX.js → chunk-DZA5OWKD.js} +5 -5
- package/dist/bundle/{chunk-UKSL7QZD.js → chunk-F4BXYTIW.js} +7 -7
- package/dist/bundle/{chunk-LTP2EEXM.js → chunk-FOQBIEL5.js} +1 -1
- package/dist/bundle/{chunk-WVJFUHQS.js → chunk-GXCXOITM.js} +20 -20
- package/dist/bundle/{chunk-BFKNZMRN.js → chunk-J7FP7PRV.js} +150 -150
- package/dist/bundle/{chunk-AOZMZXFQ.js → chunk-JT36R23P.js} +7 -7
- package/dist/bundle/{chunk-4AMCA6VQ.js → chunk-K3GMQLFM.js} +2 -2
- package/dist/bundle/{chunk-ZLFFEGX6.js → chunk-L2M3LTQQ.js} +1 -1
- package/dist/bundle/{chunk-CIWU756L.js → chunk-LV6FBPUQ.js} +11 -11
- package/dist/bundle/{chunk-JBMSXV2A.js → chunk-O762IE2F.js} +1 -1
- package/dist/bundle/{chunk-VIWOYM4L.js → chunk-QM5CNTGT.js} +20 -20
- package/dist/bundle/{chunk-VWWUJKLO.js → chunk-QMY4EZ6B.js} +5 -5
- package/dist/bundle/{chunk-KAODXBUF.js → chunk-QP7BTVMT.js} +2 -2
- package/dist/bundle/{chunk-6J6OO4BJ.js → chunk-QTLYWZXB.js} +3 -3
- package/dist/bundle/{chunk-34BMGIFI.js → chunk-RBCI432I.js} +3 -3
- package/dist/bundle/{chunk-E7IJTHAC.js → chunk-S2K3FWLA.js} +12 -12
- package/dist/bundle/{chunk-GZZQDHUT.js → chunk-S5KSC4B3.js} +27 -27
- package/dist/bundle/{chunk-UKIZBDD3.js → chunk-SDIKN2OR.js} +10 -10
- package/dist/bundle/{chunk-JU5Q3AZD.js → chunk-SSQDA7X6.js} +4 -4
- package/dist/bundle/{chunk-G7N3ID6S.js → chunk-TJNW4L7P.js} +43 -43
- package/dist/bundle/{chunk-GAC4FF6K.js → chunk-TJXVMLK4.js} +1 -1
- package/dist/bundle/{chunk-YCLV7AAF.js → chunk-TXJYVD5U.js} +1 -1
- package/dist/bundle/{chunk-2JZKVNFL.js → chunk-UOJWRYVD.js} +7 -1
- package/dist/bundle/{chunk-HPUUJVTP.js → chunk-UUD4QHAN.js} +4 -4
- package/dist/bundle/{chunk-WORCFDZN.js → chunk-UWJ3RJF4.js} +2 -2
- package/dist/bundle/{chunk-VR6FNEFZ.js → chunk-VHYJIRK7.js} +4 -4
- package/dist/bundle/{chunk-FKRD3KGN.js → chunk-WRZP6DJT.js} +54 -54
- package/dist/bundle/{chunk-PXOZGHXR.js → chunk-WVXTZWH3.js} +1 -1
- package/dist/bundle/{chunk-RDXN52I6.js → chunk-XCAGVFRC.js} +278 -278
- package/dist/bundle/{chunk-VBAAW3FK.js → chunk-XLUOKHFN.js} +3 -3
- package/dist/bundle/{chunk-WGLE4R45.js → chunk-ZMZVRVCK.js} +2 -2
- package/dist/bundle/{chunk-WUF3P4DX.js → chunk-ZP7F76D3.js} +1 -1
- package/dist/bundle/{command-contract-BAHAQIPW.js → command-contract-FRRW2Z4S.js} +11 -11
- package/dist/bundle/{decode-ANYCY5PK.js → decode-RVPTVZ3W.js} +2 -2
- package/dist/bundle/{echarts-NH42736V.js → echarts-CW6DTALT.js} +2 -2
- package/dist/bundle/{embed-34XKENNN.js → embed-VXWYSZ7X.js} +3 -3
- package/dist/bundle/{embedder-GMTQ6CUJ.js → embedder-QX3GSPBN.js} +6 -6
- package/dist/bundle/{entry-W2JUZTXL.js → entry-LBDVYMDG.js} +4 -4
- package/dist/bundle/failure-NMC4BQ2P.js +66 -0
- package/dist/bundle/{first-run-MAHEEKHT.js → first-run-VPR5YFMD.js} +5 -5
- package/dist/bundle/{first-screen-X4SVIRMT.js → first-screen-WRKQ4GAM.js} +12 -12
- package/dist/bundle/{instructions-YOSNFLTK.js → instructions-2XLUHPQH.js} +1 -1
- package/dist/bundle/{mcp-CAMU2OWN.js → mcp-RD54TNKO.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-O3XV2354.js → node-AQ7O3PGH.js} +2 -2
- package/dist/bundle/{node-sqlite-MJDZN4PN.js → node-sqlite-RKDBK624.js} +3 -3
- package/dist/bundle/{oauth-KEGXZT2C.js → oauth-ZQCL2HPA.js} +4 -4
- package/dist/bundle/{open-I3I57V2N.js → open-ME6M3BWL.js} +2 -2
- package/dist/bundle/{openai-VCEX4PW3.js → openai-PHW5QKNC.js} +7 -7
- package/dist/bundle/{process-BAT3Q3LY.js → process-4HJLMEHS.js} +1 -1
- package/dist/bundle/{program-IH6EXRJR.js → program-GVEBIXZL.js} +83 -61
- package/dist/bundle/{prompt-3AD7X52P.js → prompt-U5JMQJPC.js} +2 -2
- package/dist/bundle/{recognize-AMFTP45O.js → recognize-OYKFXOLL.js} +1 -1
- package/dist/bundle/{remote-Z5V5EKS4.js → remote-IXABNXVH.js} +4 -4
- package/dist/bundle/{rerank-PUDPLKON.js → rerank-6ASLHI5I.js} +4 -4
- package/dist/bundle/{serve-ZRBPK4GW.js → serve-ZYQO2Z23.js} +6 -6
- package/dist/bundle/server-BMXFJO2T.js +61 -0
- package/dist/bundle/{server-CJ5CMNEO.js → server-DMU7GDV2.js} +50 -50
- package/dist/bundle/server-V7JU6YLA.js +48 -0
- package/dist/bundle/{state-BVVIF6M3.js → state-5W7BQVQO.js} +3 -3
- package/dist/bundle/{store-2U3EY4N5.js → store-6WW7XV2O.js} +9 -9
- package/dist/bundle/store-maintenance-command-YPNP663U.js +48 -0
- package/dist/bundle/update-GLX3YE67.js +69 -0
- package/dist/examples.js +1 -1
- package/dist/examples.js.map +1 -1
- package/dist/mail/findings-command.d.ts +1 -1
- package/dist/mail/findings-command.d.ts.map +1 -1
- package/dist/mail/findings-command.js +29 -4
- package/dist/mail/findings-command.js.map +1 -1
- package/dist/mail/review-command.d.ts.map +1 -1
- package/dist/mail/review-command.js +1 -0
- package/dist/mail/review-command.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 +2 -2
- package/skills/cli-memo/topics/mail.md +2 -1
- package/skills/mail-triage/SKILL.md +34 -11
- package/dist/bundle/auto-QK6SSRWW.js +0 -86
- package/dist/bundle/failure-UOGNX3CX.js +0 -66
- package/dist/bundle/server-423F624R.js +0 -48
- package/dist/bundle/server-GHZF2UHL.js +0 -61
- package/dist/bundle/store-maintenance-command-MSYIPYY3.js +0 -48
- package/dist/bundle/update-NQNVV57J.js +0 -69
- /package/dist/bundle/{chunk-2HSW646W.js → chunk-FEJOKQPV.js} +0 -0
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
tool,
|
|
21
21
|
toolKey,
|
|
22
22
|
toolsFromCommands
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-LV6FBPUQ.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-QM5CNTGT.js";
|
|
37
37
|
import {
|
|
38
38
|
mcpUrlOf
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-TXJYVD5U.js";
|
|
40
40
|
import {
|
|
41
41
|
agentJson,
|
|
42
42
|
skillResource
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-3G63U4VK.js";
|
|
44
44
|
import {
|
|
45
45
|
instructions
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-5J5RTJUJ.js";
|
|
47
47
|
import {
|
|
48
48
|
answeredWire
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-WVXTZWH3.js";
|
|
50
50
|
import {
|
|
51
51
|
callerOf,
|
|
52
52
|
callingAgent
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-2Q4DYGNU.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-GXCXOITM.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-2EDP7PDR.js";
|
|
75
75
|
import {
|
|
76
76
|
findCommand
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-AOFYLQK2.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-J7FP7PRV.js";
|
|
94
94
|
import {
|
|
95
95
|
isCliFailure,
|
|
96
96
|
withCaller
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-JT36R23P.js";
|
|
98
98
|
import {
|
|
99
99
|
readOnlyLockOf
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-4NJQJZRO.js";
|
|
101
101
|
import {
|
|
102
102
|
mcpHttpMarker
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-SSQDA7X6.js";
|
|
104
104
|
import {
|
|
105
105
|
openStore,
|
|
106
106
|
pdfPreviewLimits
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-XCAGVFRC.js";
|
|
108
108
|
import {
|
|
109
109
|
timezoneOf
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-WRZP6DJT.js";
|
|
111
111
|
import {
|
|
112
112
|
warmEmbedders
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-4CD37FZU.js";
|
|
114
114
|
import {
|
|
115
115
|
description,
|
|
116
116
|
integer,
|
|
@@ -135,10 +135,10 @@ 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.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/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.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/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.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/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.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/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.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/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.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/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.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/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.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/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.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/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-ZYQO2Z23.js");
|
|
750
750
|
const appName = messenger.app.command;
|
|
751
751
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
752
752
|
const listening = await serveOverHttp(build, {
|
|
@@ -8,17 +8,17 @@ import {
|
|
|
8
8
|
readSetupAnswers,
|
|
9
9
|
unanswered,
|
|
10
10
|
writeSetupAnswers
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XLUOKHFN.js";
|
|
12
12
|
import {
|
|
13
13
|
DEFAULT_STEMMERS,
|
|
14
14
|
LANGUAGES
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7P3PM3OL.js";
|
|
16
16
|
import {
|
|
17
17
|
sharedConfigPath
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-B4LT2DHH.js";
|
|
19
19
|
import {
|
|
20
20
|
storePath
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-4CADISNA.js";
|
|
22
22
|
import {
|
|
23
23
|
installerOf
|
|
24
24
|
} from "./chunk-CID4MNRQ.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
__name
|
|
27
27
|
} from "./chunk-ZVVMGPBJ.js";
|
|
28
28
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/cli/first-run.js
|
|
30
30
|
import { spawnSync } from "node:child_process";
|
|
31
31
|
import { accessSync, constants, realpathSync } from "node:fs";
|
|
32
32
|
import { delimiter, join } from "node:path";
|
|
@@ -84,7 +84,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
|
|
|
84
84
|
return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
|
|
85
85
|
}, "suggested");
|
|
86
86
|
var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
|
|
87
|
-
const { openStore } = await import("./store-
|
|
87
|
+
const { openStore } = await import("./store-6WW7XV2O.js");
|
|
88
88
|
const store = await openStore({ env });
|
|
89
89
|
let rebuild = false;
|
|
90
90
|
try {
|
|
@@ -113,8 +113,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
113
113
|
if (!rebuild)
|
|
114
114
|
return;
|
|
115
115
|
const [{ openCache }, { buildStems }] = await Promise.all([
|
|
116
|
-
import("./open-
|
|
117
|
-
import("./store-maintenance-command-
|
|
116
|
+
import("./open-ME6M3BWL.js"),
|
|
117
|
+
import("./store-maintenance-command-YPNP663U.js")
|
|
118
118
|
]);
|
|
119
119
|
const database = await openCache(storePath(env));
|
|
120
120
|
try {
|
|
@@ -126,7 +126,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
126
126
|
var askTools = /* @__PURE__ */ __name(async (run) => {
|
|
127
127
|
const { command, env, io } = run;
|
|
128
128
|
const installed = run.installed ?? ((name) => onPath(name, env));
|
|
129
|
-
const { WIRECAT_TOOLS } = await import("./first-screen-
|
|
129
|
+
const { WIRECAT_TOOLS } = await import("./first-screen-WRKQ4GAM.js");
|
|
130
130
|
const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
|
|
131
131
|
const missing = others.filter((tool) => !installed(tool.command));
|
|
132
132
|
io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
|
|
@@ -199,7 +199,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
|
|
|
199
199
|
contentLanguages: start.contentLanguages,
|
|
200
200
|
all: start.path[0] === "setup",
|
|
201
201
|
io: {
|
|
202
|
-
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-
|
|
202
|
+
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-U5JMQJPC.js")).readSecret(prompt, { input, echo: true }), "ask"),
|
|
203
203
|
say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
|
|
204
204
|
`), "say")
|
|
205
205
|
}
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
readLock,
|
|
6
6
|
releaseLock,
|
|
7
7
|
takeLock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZMZVRVCK.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.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
14
14
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
|
|
17
17
|
import { randomBytes } from "node:crypto";
|
|
18
18
|
import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
|
|
|
86
86
|
};
|
|
87
87
|
}, "activityRecorder");
|
|
88
88
|
|
|
89
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
89
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
90
90
|
var ACCESS_SECONDS = 60 * 60;
|
|
91
91
|
var REFRESH_SECONDS = 30 * 24 * 60 * 60;
|
|
92
92
|
var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
|
|
@@ -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-GXCXOITM.js";
|
|
7
7
|
import {
|
|
8
8
|
FETCHING,
|
|
9
9
|
RULES_VERSION,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
typedQuery,
|
|
25
25
|
withQuery,
|
|
26
26
|
withTimeLimit
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-2EDP7PDR.js";
|
|
28
28
|
import {
|
|
29
29
|
stringWidth,
|
|
30
30
|
wrapAnsi
|
|
@@ -56,23 +56,23 @@ import {
|
|
|
56
56
|
snakeKeys,
|
|
57
57
|
storeTable,
|
|
58
58
|
withoutProviderRefs
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-J7FP7PRV.js";
|
|
60
60
|
import {
|
|
61
61
|
failureKey
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-JT36R23P.js";
|
|
63
63
|
import {
|
|
64
64
|
envName
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-4NJQJZRO.js";
|
|
66
66
|
import {
|
|
67
67
|
holdLock,
|
|
68
68
|
lockPath,
|
|
69
69
|
releaseLock,
|
|
70
70
|
servingProfiles,
|
|
71
71
|
takeLock
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-ZMZVRVCK.js";
|
|
73
73
|
import {
|
|
74
74
|
holdersOf
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-5EBYGKZB.js";
|
|
76
76
|
import {
|
|
77
77
|
MIGRATIONS,
|
|
78
78
|
drainNoteIndex,
|
|
@@ -101,28 +101,28 @@ import {
|
|
|
101
101
|
storeClients,
|
|
102
102
|
storeContents,
|
|
103
103
|
vectorIndexCounts
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-XCAGVFRC.js";
|
|
105
105
|
import {
|
|
106
106
|
queryFieldsOf
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-WRZP6DJT.js";
|
|
108
108
|
import {
|
|
109
109
|
readSecret
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-QP7BTVMT.js";
|
|
111
111
|
import {
|
|
112
112
|
checkedOptions,
|
|
113
113
|
range
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-FOQBIEL5.js";
|
|
115
115
|
import {
|
|
116
116
|
messagesFor,
|
|
117
117
|
systemFor,
|
|
118
118
|
validateImages
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-TJXVMLK4.js";
|
|
120
120
|
import {
|
|
121
121
|
storePath
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-4CADISNA.js";
|
|
123
123
|
import {
|
|
124
124
|
openCache
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-374FSLTB.js";
|
|
126
126
|
import {
|
|
127
127
|
Credentials,
|
|
128
128
|
pathsAreOverridden,
|
|
@@ -5497,11 +5497,11 @@ var require_liquid_node = __commonJS({
|
|
|
5497
5497
|
}
|
|
5498
5498
|
});
|
|
5499
5499
|
|
|
5500
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5500
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5501
5501
|
import { chmodSync, constants, copyFileSync, existsSync as existsSync7, mkdirSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync3, writeFileSync } from "node:fs";
|
|
5502
5502
|
import { dirname, resolve } from "node:path";
|
|
5503
5503
|
|
|
5504
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5504
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5505
5505
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5506
5506
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5507
5507
|
import { Transform } from "node:stream";
|
|
@@ -5608,7 +5608,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5608
5608
|
renameSync(pending, to);
|
|
5609
5609
|
}, "unsealFile");
|
|
5610
5610
|
|
|
5611
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5611
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5612
5612
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5613
5613
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5614
5614
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5632,7 +5632,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5632
5632
|
};
|
|
5633
5633
|
}, "compatibilityOf");
|
|
5634
5634
|
|
|
5635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5636
5636
|
import { createHash as createHash2 } from "node:crypto";
|
|
5637
5637
|
var COPY_MARK = "__repair_";
|
|
5638
5638
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5886,7 +5886,7 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5886
5886
|
return found;
|
|
5887
5887
|
}, "deleteCopy");
|
|
5888
5888
|
|
|
5889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5889
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5890
5890
|
import { existsSync as existsSync2, statSync as statSync2 } from "node:fs";
|
|
5891
5891
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
5892
5892
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync2(path) ? statSync2(path).size : 0, "bytesOf");
|
|
@@ -5933,7 +5933,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
5933
5933
|
renderAnswer(this, outputFor(this), itemOf(answer));
|
|
5934
5934
|
}), "storeInfoCommand");
|
|
5935
5935
|
|
|
5936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
5937
5937
|
var ENCRYPT_OPTION = [
|
|
5938
5938
|
"--encrypt",
|
|
5939
5939
|
"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"
|
|
@@ -5952,7 +5952,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
5952
5952
|
return password;
|
|
5953
5953
|
}, "passwordOf");
|
|
5954
5954
|
|
|
5955
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5955
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
5956
5956
|
import { existsSync as existsSync3, readFileSync } from "node:fs";
|
|
5957
5957
|
import { join } from "node:path";
|
|
5958
5958
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6123,7 +6123,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6123
6123
|
}, "problem");
|
|
6124
6124
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6125
6125
|
|
|
6126
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6127
6127
|
import { existsSync as existsSync4, readFileSync as readFileSync2 } from "node:fs";
|
|
6128
6128
|
import { join as join2 } from "node:path";
|
|
6129
6129
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6176,7 +6176,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6176
6176
|
}, "recordReply");
|
|
6177
6177
|
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");
|
|
6178
6178
|
|
|
6179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6180
6180
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6181
6181
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6182
6182
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -6282,7 +6282,7 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
6282
6282
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
6283
6283
|
}, "filled");
|
|
6284
6284
|
|
|
6285
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
6286
6286
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
6287
6287
|
var TEMPLATE_LIMITS = {
|
|
6288
6288
|
parse: 32768,
|
|
@@ -6442,7 +6442,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
6442
6442
|
}
|
|
6443
6443
|
}, "renderReplyTemplate");
|
|
6444
6444
|
|
|
6445
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6445
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
6446
6446
|
var DRY_RUN_DAYS = 7;
|
|
6447
6447
|
var PAGE = 500;
|
|
6448
6448
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -6556,7 +6556,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
6556
6556
|
}
|
|
6557
6557
|
}, "storedSince");
|
|
6558
6558
|
|
|
6559
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6559
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
6560
6560
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
6561
6561
|
const host = new URL(baseUrl).host;
|
|
6562
6562
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -6587,7 +6587,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
6587
6587
|
};
|
|
6588
6588
|
}, "embeddingKeys");
|
|
6589
6589
|
|
|
6590
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6590
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
6591
6591
|
var options = strictObject({
|
|
6592
6592
|
temperature: range(0, 2),
|
|
6593
6593
|
top_p: range(0, 1),
|
|
@@ -6636,7 +6636,7 @@ var openai = {
|
|
|
6636
6636
|
}), "complete")
|
|
6637
6637
|
};
|
|
6638
6638
|
|
|
6639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6639
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
6640
6640
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
6641
6641
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
6642
6642
|
if (deps.signal?.aborted)
|
|
@@ -6651,7 +6651,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
6651
6651
|
if (!adapter && target.provider === "openai")
|
|
6652
6652
|
adapter = openai;
|
|
6653
6653
|
if (!adapter && target.provider === "anthropic")
|
|
6654
|
-
adapter = (await import("./anthropic-
|
|
6654
|
+
adapter = (await import("./anthropic-SY6QPTQW.js")).anthropic;
|
|
6655
6655
|
if (!adapter)
|
|
6656
6656
|
throw new CliError("validation_error", `no model adapter for ${target.provider}`);
|
|
6657
6657
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -6692,7 +6692,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
6692
6692
|
}, "complete")
|
|
6693
6693
|
}), "modelGateway");
|
|
6694
6694
|
|
|
6695
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
6696
6696
|
import { existsSync as existsSync5, readFileSync as readFileSync3 } from "node:fs";
|
|
6697
6697
|
import { join as join3 } from "node:path";
|
|
6698
6698
|
var shape = strictObject({
|
|
@@ -6717,7 +6717,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
6717
6717
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
6718
6718
|
}, "mayModelReply");
|
|
6719
6719
|
|
|
6720
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
6721
6721
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options2 = {
|
|
6722
6722
|
ai: true
|
|
6723
6723
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -6764,7 +6764,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
6764
6764
|
return result2;
|
|
6765
6765
|
}, "replyRenderer");
|
|
6766
6766
|
|
|
6767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6767
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
6768
6768
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
6769
6769
|
var NO_RULES = "no rules";
|
|
6770
6770
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -6857,7 +6857,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
6857
6857
|
return { skip: why };
|
|
6858
6858
|
}, "replyTo");
|
|
6859
6859
|
|
|
6860
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6860
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
|
|
6861
6861
|
var START_SYNC_DELAY_MS = 3e4;
|
|
6862
6862
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
6863
6863
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -6934,7 +6934,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch: fetch2, note
|
|
|
6934
6934
|
};
|
|
6935
6935
|
}, "startSync");
|
|
6936
6936
|
|
|
6937
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
6938
6938
|
var FIRST_FETCH_MS = 6e4;
|
|
6939
6939
|
var DAY_MS = 864e5;
|
|
6940
6940
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -6988,7 +6988,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, fi
|
|
|
6988
6988
|
};
|
|
6989
6989
|
}, "memberFetches");
|
|
6990
6990
|
|
|
6991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
6992
6992
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
6993
6993
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
6994
6994
|
if (context.format === "pretty") {
|
|
@@ -7021,7 +7021,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7021
7021
|
return context;
|
|
7022
7022
|
}, "recordDiagnostics");
|
|
7023
7023
|
|
|
7024
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7024
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
7025
7025
|
var STEMS_EVERY_MS = 3e4;
|
|
7026
7026
|
var STEMS_SLICE_MS = 2e3;
|
|
7027
7027
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -7061,7 +7061,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
7061
7061
|
};
|
|
7062
7062
|
}, "stemFills");
|
|
7063
7063
|
|
|
7064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/render/messages.js
|
|
7065
7065
|
import { styleText } from "node:util";
|
|
7066
7066
|
var TIME_WIDTH = 8;
|
|
7067
7067
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -7237,7 +7237,7 @@ var editedAt = /* @__PURE__ */ __name((message, options2) => {
|
|
|
7237
7237
|
return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
|
|
7238
7238
|
}, "editedAt");
|
|
7239
7239
|
|
|
7240
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7240
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
7241
7241
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
7242
7242
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
7243
7243
|
kind: attachment.kind,
|
|
@@ -7332,7 +7332,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
7332
7332
|
locale: messenger.app.locale
|
|
7333
7333
|
}), "viewOf");
|
|
7334
7334
|
|
|
7335
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7335
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
7336
7336
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
7337
7337
|
value: value.value,
|
|
7338
7338
|
observed_at: value.observedAt,
|
|
@@ -7399,7 +7399,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
7399
7399
|
}
|
|
7400
7400
|
}, "watchEventItem");
|
|
7401
7401
|
|
|
7402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
7403
7403
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
7404
7404
|
output: { entity: "watch_item" },
|
|
7405
7405
|
effects: REMOTE_READ,
|
|
@@ -7554,7 +7554,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
7554
7554
|
}
|
|
7555
7555
|
}, "describe");
|
|
7556
7556
|
|
|
7557
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7557
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
7558
7558
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
7559
7559
|
const command = annotate(new Command("serve"), {
|
|
7560
7560
|
output: { entity: "serve_summary" },
|
|
@@ -7818,7 +7818,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
7818
7818
|
};
|
|
7819
7819
|
}, "tasking");
|
|
7820
7820
|
|
|
7821
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7821
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
7822
7822
|
import { existsSync as existsSync6 } from "node:fs";
|
|
7823
7823
|
var PATH = "store tables list";
|
|
7824
7824
|
var STORE_TABLES_QUERY = {
|
|
@@ -7861,7 +7861,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
|
|
|
7861
7861
|
return tables;
|
|
7862
7862
|
}, "storeTablesCommand");
|
|
7863
7863
|
|
|
7864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7864
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
7865
7865
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
7866
7866
|
var WORD_INDEX = "message_words";
|
|
7867
7867
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -7,7 +7,7 @@ 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.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/models/types.js
|
|
11
11
|
var MAX_MODEL_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
12
12
|
var validateImages = /* @__PURE__ */ __name((images) => {
|
|
13
13
|
if (images === void 0)
|
|
@@ -7,7 +7,7 @@ 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.581.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_36341de5bb3d58122cbf3036ff7c0d66/node_modules/@wirecat/cli-core/dist/http/public-url.js
|
|
11
11
|
var EXAMPLE = "--public-url https://<name>.ts.net";
|
|
12
12
|
var publicUrlOf = /* @__PURE__ */ __name((given, { missing, reaches, path = false }) => {
|
|
13
13
|
if (!given)
|