@wirecat/cli-memo 0.131.79 → 0.131.80
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-ZMIHTBZD.js → all-profiles-RVKEGURX.js} +5 -5
- package/dist/bundle/{anthropic-PNRUKJHS.js → anthropic-FC6XUSWM.js} +2 -2
- package/dist/bundle/{app-server-RNASTWZO.js → app-server-IRNKU3IF.js} +36 -36
- package/dist/bundle/auto-GTL4YGZX.js +91 -0
- package/dist/bundle/{bun-QU4I5GWB.js → bun-TYBGE5BX.js} +2 -2
- package/dist/bundle/{bun-sqlite-J4KG5VML.js → bun-sqlite-YENHHNPL.js} +3 -3
- package/dist/bundle/{chunk-GJ7KTKIP.js → chunk-2CJIZZSI.js} +12 -12
- package/dist/bundle/{chunk-XO6RP5FV.js → chunk-2FICCBKH.js} +1 -1
- package/dist/bundle/{chunk-IU2QDYBO.js → chunk-3H56E3VI.js} +4 -4
- package/dist/bundle/{chunk-VIZBCX3C.js → chunk-4IKO3JAA.js} +4 -4
- package/dist/bundle/{chunk-5YS4WS74.js → chunk-666J5H2Z.js} +1 -1
- package/dist/bundle/{chunk-U3VXKVKI.js → chunk-6W6CLZKX.js} +12 -12
- package/dist/bundle/{chunk-TBCHID7L.js → chunk-BS5JBNGX.js} +591 -509
- package/dist/bundle/{chunk-CY7WACM7.js → chunk-C2FE62E5.js} +29 -29
- package/dist/bundle/{chunk-QOFD6JSB.js → chunk-C4TAEYDQ.js} +5 -5
- package/dist/bundle/{chunk-PI42ZHZQ.js → chunk-CEGA7A35.js} +2 -2
- package/dist/bundle/{chunk-Q5YM3JWV.js → chunk-CUWTYE5A.js} +2 -2
- package/dist/bundle/{chunk-UYKKJOND.js → chunk-CVQJ7L4C.js} +4 -4
- package/dist/bundle/{chunk-6ZO2ZVKV.js → chunk-DS5SA5QP.js} +5 -5
- package/dist/bundle/{chunk-J2KPUG2X.js → chunk-EOXWI2EX.js} +4 -4
- package/dist/bundle/{chunk-OP5MKU7T.js → chunk-F62N6QMI.js} +1 -1
- package/dist/bundle/{chunk-4XOAQ5EQ.js → chunk-FIJTCBPQ.js} +8 -8
- package/dist/bundle/{chunk-GDSCR5BG.js → chunk-FR646D4S.js} +1 -1
- package/dist/bundle/{chunk-BBJBWSGN.js → chunk-GHYJW4ZH.js} +2 -2
- package/dist/bundle/{chunk-PB4ZGGR4.js → chunk-GNII3UL7.js} +1 -1
- package/dist/bundle/{chunk-2C536VQW.js → chunk-HFQXEMRG.js} +1 -1
- package/dist/bundle/{chunk-RMKJWDVT.js → chunk-HHZMDFE2.js} +45 -45
- package/dist/bundle/{chunk-4FPSZCWN.js → chunk-HKXACNLD.js} +2 -2
- package/dist/bundle/{chunk-2TIK6LHL.js → chunk-HXPU3ABX.js} +362 -299
- package/dist/bundle/{chunk-GTYESBB2.js → chunk-IJUXHUNZ.js} +2 -2
- package/dist/bundle/{chunk-VSSWVVOZ.js → chunk-IW6O2SAG.js} +10 -10
- package/dist/bundle/{chunk-FCHVDLEL.js → chunk-JDQSL2EY.js} +2 -2
- package/dist/bundle/{chunk-ZIDR2CSX.js → chunk-JJ6ODCVQ.js} +2 -2
- package/dist/bundle/{chunk-4BSNHOEV.js → chunk-JPC7GSJO.js} +9 -9
- package/dist/bundle/{chunk-UC5YCXKS.js → chunk-JTQAMVZH.js} +13 -13
- package/dist/bundle/{chunk-46Z7UUCG.js → chunk-K3JEAMTT.js} +1 -1
- package/dist/bundle/{chunk-SM7PB5CU.js → chunk-KDLOSANT.js} +5 -5
- package/dist/bundle/{chunk-DAJEINOF.js → chunk-KNRYIHUJ.js} +281 -281
- package/dist/bundle/{chunk-QNI3Q7XS.js → chunk-KVQY7R66.js} +2 -2
- package/dist/bundle/{chunk-IE6AEPW3.js → chunk-MDIXXKVU.js} +9 -9
- package/dist/bundle/{chunk-SEIRBXJT.js → chunk-MLYPJ4EC.js} +6 -6
- package/dist/bundle/{chunk-DP2RZ6FO.js → chunk-NH7KIGIS.js} +2 -2
- package/dist/bundle/{chunk-H6QELEPY.js → chunk-NUKMYB65.js} +4 -4
- package/dist/bundle/{chunk-CLZHPHKI.js → chunk-OFRIG3CX.js} +3 -3
- package/dist/bundle/{chunk-WN7BSOD2.js → chunk-OH4AIBZF.js} +1 -1
- package/dist/bundle/{chunk-7SGURCSQ.js → chunk-OSE7GXAR.js} +1 -1
- package/dist/bundle/{chunk-LQBVQX47.js → chunk-PX55CRD3.js} +83 -78
- package/dist/bundle/{chunk-MQ6XB6BV.js → chunk-Q46O7KXY.js} +5 -5
- package/dist/bundle/{chunk-A5TSIMI2.js → chunk-R4XCBPD2.js} +1 -1
- package/dist/bundle/{chunk-YJUVVYS6.js → chunk-RUM4GGHP.js} +4 -4
- package/dist/bundle/{chunk-R24Q24U5.js → chunk-RWVB7SLQ.js} +20 -20
- package/dist/bundle/{chunk-CQPXUMIS.js → chunk-S2KXO7MO.js} +1 -1
- package/dist/bundle/{chunk-IHWPNLCI.js → chunk-SGV2Z4BO.js} +148 -148
- package/dist/bundle/{chunk-3GOMBG55.js → chunk-SKX3BNTE.js} +7 -7
- package/dist/bundle/{chunk-O4ZIN4AY.js → chunk-SULQCO3Y.js} +5 -5
- package/dist/bundle/{chunk-JDI7CKLO.js → chunk-TJ2B36VK.js} +7 -7
- package/dist/bundle/{chunk-3HCGK4FN.js → chunk-UBUCTVHB.js} +1 -1
- package/dist/bundle/{chunk-CX3D6D43.js → chunk-UTYGPWUY.js} +3 -3
- package/dist/bundle/{chunk-ZFUYVQII.js → chunk-VQJDYQ55.js} +32 -32
- package/dist/bundle/{chunk-RUHFWDHD.js → chunk-VTBIVTS5.js} +3 -3
- package/dist/bundle/{chunk-24FOGKJI.js → chunk-W26VONC6.js} +5 -5
- package/dist/bundle/{chunk-JX4YNSYT.js → chunk-X3NHAO6T.js} +1 -1
- package/dist/bundle/{chunk-TH3LLEA2.js → chunk-XZJUAG7B.js} +3 -3
- package/dist/bundle/{chunk-HKOHKYDY.js → chunk-ZMLDVE22.js} +6 -6
- package/dist/bundle/{chunk-AWUANCLC.js → chunk-ZMSEKQQQ.js} +1 -1
- package/dist/bundle/{command-contract-4ZJOMSQ2.js → command-contract-SR6ONYV4.js} +11 -11
- package/dist/bundle/{command-server-entry-VSWZ5K2Q.js → command-server-entry-2WXZVYIX.js} +17 -17
- package/dist/bundle/{decode-OPD4OHCW.js → decode-U7VFYQAA.js} +2 -2
- package/dist/bundle/{echarts-AXYKRYU7.js → echarts-2PXBBLLJ.js} +2 -2
- package/dist/bundle/{embed-6DBZRTQ7.js → embed-DPA5QOIR.js} +3 -3
- package/dist/bundle/{embedder-SQI6IDZC.js → embedder-IGI2UTFK.js} +6 -6
- package/dist/bundle/{entry-RV5QAV44.js → entry-7PAYGIQO.js} +5 -5
- package/dist/bundle/{entry-2GKNMGW6.js → entry-IFOQTBXC.js} +5 -5
- package/dist/bundle/failure-NAM37T2T.js +71 -0
- package/dist/bundle/{first-run-BBMUDHYX.js → first-run-WHDDKA4V.js} +5 -5
- package/dist/bundle/{first-screen-4BS5M4JW.js → first-screen-P5C57USR.js} +12 -12
- package/dist/bundle/{instructions-JNAROG65.js → instructions-W7F7OQZS.js} +1 -1
- package/dist/bundle/{mcp-3MBYSBNS.js → mcp-3LAFWOGW.js} +35 -35
- package/dist/bundle/memo.js +3 -3
- package/dist/bundle/{node-6OTEDFSP.js → node-K6MWX3SW.js} +2 -2
- package/dist/bundle/{node-sqlite-HBHJOJX6.js → node-sqlite-WV6GCPEC.js} +4 -4
- package/dist/bundle/{oauth-PVQSSPPE.js → oauth-EH2Y54DG.js} +4 -4
- package/dist/bundle/{open-ARBTD4LX.js → open-PB4W3UAM.js} +2 -2
- package/dist/bundle/{openai-2JRFTWUA.js → openai-76OKHXWR.js} +7 -7
- package/dist/bundle/{process-4ERCV4WX.js → process-FMQ7Q7AI.js} +1 -1
- package/dist/bundle/{program-5KVHPFJU.js → program-BR2QHF36.js} +174 -78
- package/dist/bundle/{prompt-4I34VBPK.js → prompt-AW4T6CC2.js} +2 -2
- package/dist/bundle/{recognize-22BJ7RWB.js → recognize-X5DMT3HH.js} +1 -1
- package/dist/bundle/{remote-BON3MKY5.js → remote-HVKKXNYZ.js} +4 -4
- package/dist/bundle/{rerank-6CCCIZDS.js → rerank-IXMWD7JV.js} +4 -4
- package/dist/bundle/{serve-FB54DFIV.js → serve-42XTYB26.js} +6 -6
- package/dist/bundle/server-HUEXB5QL.js +64 -0
- package/dist/bundle/{server-TL5WPR3I.js → server-NNE7MUYT.js} +52 -52
- package/dist/bundle/server-YLXOJOTR.js +50 -0
- package/dist/bundle/{state-23IF45K6.js → state-EOU37GAH.js} +3 -3
- package/dist/bundle/{store-FGNXSGJU.js → store-F3REYMA6.js} +9 -9
- package/dist/bundle/store-maintenance-command-TOBBH3ZK.js +49 -0
- package/dist/bundle/update-3QB752NL.js +74 -0
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +1 -0
- package/dist/examples.js.map +1 -1
- package/dist/knowledge/command.d.ts.map +1 -1
- package/dist/knowledge/command.js +2 -0
- package/dist/knowledge/command.js.map +1 -1
- package/dist/knowledge/document-context.d.ts +14 -0
- package/dist/knowledge/document-context.d.ts.map +1 -0
- package/dist/knowledge/document-context.js +33 -0
- package/dist/knowledge/document-context.js.map +1 -0
- package/dist/knowledge/project-activity-command.d.ts +5 -0
- package/dist/knowledge/project-activity-command.d.ts.map +1 -0
- package/dist/knowledge/project-activity-command.js +71 -0
- package/dist/knowledge/project-activity-command.js.map +1 -0
- package/dist/knowledge/relationships.d.ts +4 -0
- package/dist/knowledge/relationships.d.ts.map +1 -1
- package/dist/knowledge/relationships.js +14 -0
- package/dist/knowledge/relationships.js.map +1 -1
- package/dist/knowledge/roles-command.d.ts.map +1 -1
- package/dist/knowledge/roles-command.js +7 -4
- package/dist/knowledge/roles-command.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +1 -0
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/auto-TRSJQGJH.js +0 -91
- package/dist/bundle/failure-7RJ4HOL4.js +0 -71
- package/dist/bundle/server-SG4BOF6U.js +0 -64
- package/dist/bundle/server-UYEXFEEB.js +0 -50
- package/dist/bundle/store-maintenance-command-PDLIZ4J2.js +0 -49
- package/dist/bundle/update-QTZREQD6.js +0 -74
- /package/dist/bundle/{chunk-2AFREBSM.js → chunk-ID2I2X2Z.js} +0 -0
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
answeredWire
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OSE7GXAR.js";
|
|
6
6
|
import {
|
|
7
7
|
BinaryResource,
|
|
8
8
|
Picture,
|
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
tool,
|
|
24
24
|
toolKey,
|
|
25
25
|
toolsFromCommands
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-2CJIZZSI.js";
|
|
27
27
|
import {
|
|
28
28
|
callerOf,
|
|
29
29
|
callingAgent
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-KVQY7R66.js";
|
|
31
31
|
import {
|
|
32
32
|
CHART_KINDS,
|
|
33
33
|
CHART_SIZE,
|
|
@@ -39,31 +39,31 @@ import {
|
|
|
39
39
|
refuseWriteBeforeConnecting,
|
|
40
40
|
registerPrompts,
|
|
41
41
|
syncsFirst
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-RWVB7SLQ.js";
|
|
43
43
|
import {
|
|
44
44
|
mcpUrlOf
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-HFQXEMRG.js";
|
|
46
46
|
import {
|
|
47
47
|
agentJson,
|
|
48
48
|
skillResource
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-JPC7GSJO.js";
|
|
50
50
|
import {
|
|
51
51
|
StdioServerTransport,
|
|
52
52
|
serveStdio
|
|
53
53
|
} from "./chunk-MM5NVP7F.js";
|
|
54
54
|
import {
|
|
55
55
|
instructions
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-OH4AIBZF.js";
|
|
57
57
|
import {
|
|
58
58
|
mcpHttpMarker
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-CVQJ7L4C.js";
|
|
60
60
|
import {
|
|
61
61
|
McpServer,
|
|
62
62
|
ResourceTemplate
|
|
63
63
|
} from "./chunk-H3ZN4YLB.js";
|
|
64
64
|
import {
|
|
65
65
|
connectedFor
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-JTQAMVZH.js";
|
|
67
67
|
import {
|
|
68
68
|
capability,
|
|
69
69
|
dateWindow,
|
|
@@ -73,20 +73,20 @@ import {
|
|
|
73
73
|
servicesFor,
|
|
74
74
|
storedDeps,
|
|
75
75
|
wholeList
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-HXPU3ABX.js";
|
|
77
77
|
import {
|
|
78
78
|
openStore,
|
|
79
79
|
pdfPreviewLimits
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-BS5JBNGX.js";
|
|
81
81
|
import {
|
|
82
82
|
warmEmbedders
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-C4TAEYDQ.js";
|
|
84
84
|
import {
|
|
85
85
|
stdinFieldOf
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-F62N6QMI.js";
|
|
87
87
|
import {
|
|
88
88
|
findCommand
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-NH7KIGIS.js";
|
|
90
90
|
import {
|
|
91
91
|
DEFAULT_OUTPUT_BYTES,
|
|
92
92
|
changesAuthorityAt,
|
|
@@ -101,20 +101,20 @@ import {
|
|
|
101
101
|
rootOf2 as rootOf,
|
|
102
102
|
sealed,
|
|
103
103
|
snakeKeys
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-SGV2Z4BO.js";
|
|
105
105
|
import {
|
|
106
106
|
withCaller
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-MLYPJ4EC.js";
|
|
108
108
|
import {
|
|
109
109
|
readOnlyLockOf
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-ZMSEKQQQ.js";
|
|
111
111
|
import {
|
|
112
112
|
timezoneOf,
|
|
113
113
|
typedCommand
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-PX55CRD3.js";
|
|
115
115
|
import {
|
|
116
116
|
isCliFailure
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-JJ6ODCVQ.js";
|
|
118
118
|
import {
|
|
119
119
|
mcpErrorResult
|
|
120
120
|
} from "./chunk-RK24IARI.js";
|
|
@@ -141,10 +141,10 @@ import {
|
|
|
141
141
|
__name
|
|
142
142
|
} from "./chunk-ZVVMGPBJ.js";
|
|
143
143
|
|
|
144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
144
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
145
145
|
import { randomUUID } from "node:crypto";
|
|
146
146
|
|
|
147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
|
|
148
148
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
149
149
|
let held;
|
|
150
150
|
return {
|
|
@@ -163,7 +163,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
163
163
|
};
|
|
164
164
|
}, "agentLog");
|
|
165
165
|
|
|
166
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/mcp/resources.js
|
|
167
167
|
var LISTED = 100;
|
|
168
168
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
169
169
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -201,7 +201,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
201
201
|
});
|
|
202
202
|
}, "registerResources");
|
|
203
203
|
|
|
204
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/mcp/session.js
|
|
205
205
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
206
206
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
207
207
|
var MessengerSession = class {
|
|
@@ -276,7 +276,7 @@ var MessengerSession = class {
|
|
|
276
276
|
}
|
|
277
277
|
};
|
|
278
278
|
|
|
279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
|
|
280
280
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
281
281
|
const _command = messenger.app.command;
|
|
282
282
|
return {
|
|
@@ -330,7 +330,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
330
330
|
};
|
|
331
331
|
}, "attachmentsTools");
|
|
332
332
|
|
|
333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
|
|
334
334
|
var PHOTO_LIMIT = 512 * 1024;
|
|
335
335
|
var IMAGE_TYPES = [
|
|
336
336
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -384,7 +384,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
384
384
|
return new Uint8Array(Buffer.concat(chunks));
|
|
385
385
|
}, "readUpTo");
|
|
386
386
|
|
|
387
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
387
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
|
|
388
388
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
389
389
|
stats_charts: tool({
|
|
390
390
|
title: "A chart from a chat's statistics",
|
|
@@ -421,14 +421,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
421
421
|
})
|
|
422
422
|
}), "statsTools");
|
|
423
423
|
|
|
424
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
424
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/mcp/tools.js
|
|
425
425
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
426
426
|
...messagesPhotoTools(messenger),
|
|
427
427
|
...attachmentsTools(messenger),
|
|
428
428
|
...statsTools(messenger)
|
|
429
429
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
430
430
|
|
|
431
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
431
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
432
432
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
433
433
|
"streams",
|
|
434
434
|
"stdin",
|
|
@@ -752,7 +752,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
752
752
|
}, "serveOverStdio");
|
|
753
753
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
754
754
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
755
|
-
const { serveOverHttp } = await import("./serve-
|
|
755
|
+
const { serveOverHttp } = await import("./serve-42XTYB26.js");
|
|
756
756
|
const appName = messenger.app.command;
|
|
757
757
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
758
758
|
const listening = await serveOverHttp(build, {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UTYGPWUY.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -16,12 +16,12 @@ import {
|
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
20
20
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
21
21
|
import { availableParallelism } from "node:os";
|
|
22
22
|
import { basename, join as join2 } from "node:path";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
25
25
|
import { createHash } from "node:crypto";
|
|
26
26
|
import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
27
27
|
import { join } from "node:path";
|
|
@@ -678,7 +678,7 @@ var Unzip = /* @__PURE__ */ (function() {
|
|
|
678
678
|
return Unzip2;
|
|
679
679
|
})();
|
|
680
680
|
|
|
681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
682
682
|
var ONNX_RUNTIME_VERSION = "1.30.0";
|
|
683
683
|
var release = /* @__PURE__ */ __name((name, sha256, bytes) => ({
|
|
684
684
|
name,
|
|
@@ -858,7 +858,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
|
|
|
858
858
|
return { ort, session: await ort.InferenceSession.create(bytes, options) };
|
|
859
859
|
}, "openSession");
|
|
860
860
|
|
|
861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
862
862
|
var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
|
|
863
863
|
var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
|
|
864
864
|
var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
ACCESS_SECONDS,
|
|
5
5
|
REFRESH_SECONDS,
|
|
6
6
|
readStored
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CVQJ7L4C.js";
|
|
8
8
|
import {
|
|
9
9
|
OAuthError,
|
|
10
10
|
OAuthErrorCode
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
__name
|
|
14
14
|
} from "./chunk-ZVVMGPBJ.js";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
|
|
17
17
|
import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
|
|
18
18
|
import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
SAMPLE_RATE,
|
|
5
5
|
decodeOgg
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OFRIG3CX.js";
|
|
7
7
|
import {
|
|
8
8
|
importFrom
|
|
9
9
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -14,7 +14,7 @@ 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.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/speech/decode.js
|
|
18
18
|
import { spawn } from "node:child_process";
|
|
19
19
|
import { mkdtemp, rm, writeFile } from "node:fs/promises";
|
|
20
20
|
import { createRequire } from "node:module";
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
readLock,
|
|
6
6
|
releaseLock,
|
|
7
7
|
takeLock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JDQSL2EY.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.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/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.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/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.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/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");
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
PRAGMAS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-S2KXO7MO.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-BA6GHX5B.js";
|
|
@@ -10,7 +10,7 @@ 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.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
|
|
14
14
|
var SQLITE_WARNING = "SQLite is an experimental feature";
|
|
15
15
|
var quieted = /* @__PURE__ */ new WeakSet();
|
|
16
16
|
var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
|
|
@@ -31,7 +31,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
|
|
|
31
31
|
return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
|
|
32
32
|
}, "isSqliteWarning");
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/store/open.js
|
|
35
35
|
var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
36
36
|
const database = await openFile(path);
|
|
37
37
|
try {
|
|
@@ -44,12 +44,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
|
44
44
|
}, "openCache");
|
|
45
45
|
var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
|
|
46
46
|
var openUnderBun = /* @__PURE__ */ __name(async (path) => {
|
|
47
|
-
const { openWithBunSqlite } = await import("./bun-sqlite-
|
|
47
|
+
const { openWithBunSqlite } = await import("./bun-sqlite-YENHHNPL.js");
|
|
48
48
|
return await openWithBunSqlite(path);
|
|
49
49
|
}, "openUnderBun");
|
|
50
50
|
var openUnderNode = /* @__PURE__ */ __name(async (path) => {
|
|
51
51
|
quietSqliteWarning();
|
|
52
|
-
const { openWithNodeSqlite } = await import("./node-sqlite-
|
|
52
|
+
const { openWithNodeSqlite } = await import("./node-sqlite-WV6GCPEC.js");
|
|
53
53
|
return openWithNodeSqlite(path);
|
|
54
54
|
}, "openUnderNode");
|
|
55
55
|
var runtime = /* @__PURE__ */ __name(() => {
|
|
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
listen
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GNII3UL7.js";
|
|
6
6
|
import {
|
|
7
7
|
ownerLogin
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CEGA7A35.js";
|
|
9
9
|
import {
|
|
10
10
|
WebStandardStreamableHTTPServerTransport,
|
|
11
11
|
createMcpHandler,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
calledTools,
|
|
18
18
|
httpActivityFile,
|
|
19
19
|
httpLock
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CVQJ7L4C.js";
|
|
21
21
|
import {
|
|
22
22
|
getOAuthProtectedResourceMetadataUrl,
|
|
23
23
|
oauthMetadataResponse,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
__name
|
|
31
31
|
} from "./chunk-ZVVMGPBJ.js";
|
|
32
32
|
|
|
33
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/mcp/http/serve.js
|
|
34
34
|
import { randomUUID } from "node:crypto";
|
|
35
35
|
var MCP_PATH = "/mcp";
|
|
36
36
|
var AS_METADATA = "/.well-known/oauth-authorization-server";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/cli/stdin-field.js
|
|
8
8
|
var fields = /* @__PURE__ */ new WeakMap();
|
|
9
9
|
var readsStdin = /* @__PURE__ */ __name((command, field) => {
|
|
10
10
|
fields.set(command, field);
|
|
@@ -2,21 +2,21 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
botInstructions
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FR646D4S.js";
|
|
6
6
|
import {
|
|
7
7
|
answered,
|
|
8
8
|
normal,
|
|
9
9
|
registerCommands,
|
|
10
10
|
runCommandForAgent,
|
|
11
11
|
toolsFromCommands
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2CJIZZSI.js";
|
|
13
13
|
import {
|
|
14
14
|
callerOf
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KVQY7R66.js";
|
|
16
16
|
import {
|
|
17
17
|
agentJson,
|
|
18
18
|
skillResource
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JPC7GSJO.js";
|
|
20
20
|
import {
|
|
21
21
|
serveStdio
|
|
22
22
|
} from "./chunk-MM5NVP7F.js";
|
|
@@ -25,17 +25,17 @@ import {
|
|
|
25
25
|
} from "./chunk-H3ZN4YLB.js";
|
|
26
26
|
import {
|
|
27
27
|
wholeList
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-HXPU3ABX.js";
|
|
29
29
|
import {
|
|
30
30
|
changesMessenger,
|
|
31
31
|
flatten,
|
|
32
32
|
itemOf
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-SGV2Z4BO.js";
|
|
34
34
|
import {
|
|
35
35
|
MESSENGER_CHANGE_REFUSAL,
|
|
36
36
|
readOnlyLockOf,
|
|
37
37
|
readOnlyRefusal
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-ZMSEKQQQ.js";
|
|
39
39
|
import {
|
|
40
40
|
mcpErrorResult
|
|
41
41
|
} from "./chunk-RK24IARI.js";
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
__name
|
|
47
47
|
} from "./chunk-ZVVMGPBJ.js";
|
|
48
48
|
|
|
49
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/mcp/bot/server.js
|
|
50
50
|
import { randomUUID } from "node:crypto";
|
|
51
51
|
var body = /* @__PURE__ */ __name((command, value) => Array.isArray(value) ? wholeList(`bot ${command}`, value) : value !== null && typeof value === "object" && ("item" in value || "items" in value) ? value : itemOf(value !== null && typeof value === "object" ? value : { value }), "body");
|
|
52
52
|
var createBotServer = /* @__PURE__ */ __name((options) => {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
|
|
8
8
|
var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
|
|
9
9
|
`The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
|
|
10
10
|
"Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
unit
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-C4TAEYDQ.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-BA6GHX5B.js";
|
|
@@ -10,7 +10,7 @@ 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.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
|
|
14
14
|
import { setTimeout } from "node:timers/promises";
|
|
15
15
|
var OPENAI_URL = "https://api.openai.com/v1";
|
|
16
16
|
var OPENAI_MODELS = {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/http/listen.js
|
|
8
8
|
import { createServer } from "node:http";
|
|
9
9
|
import { Readable } from "node:stream";
|
|
10
10
|
var MAX_BODY = 4 * 1024 * 1024;
|
|
@@ -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.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/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)
|