@wirecat/cli-memo 0.131.35 → 0.131.36
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-6666YYUZ.js → all-profiles-AVDSOFZL.js} +5 -5
- package/dist/bundle/{anthropic-23OB7KWO.js → anthropic-CRPI5XLD.js} +3 -3
- package/dist/bundle/{app-server-2S5OS3OH.js → app-server-PIXX4CXT.js} +35 -35
- package/dist/bundle/auto-QK6SSRWW.js +86 -0
- package/dist/bundle/{bun-BNVO37ZD.js → bun-JOD7BLWG.js} +2 -2
- package/dist/bundle/{bun-sqlite-USZ27VKM.js → bun-sqlite-IW42RA6B.js} +2 -2
- package/dist/bundle/{chunk-SKBMXSQ3.js → chunk-2JZKVNFL.js} +1 -1
- package/dist/bundle/{chunk-WRUD4OYQ.js → chunk-34BMGIFI.js} +3 -3
- package/dist/bundle/{chunk-2PFOLWD3.js → chunk-4AMCA6VQ.js} +2 -2
- package/dist/bundle/{chunk-EIYLAELT.js → chunk-4BWAVNRU.js} +259 -259
- package/dist/bundle/{chunk-DMUIMBCE.js → chunk-6J6OO4BJ.js} +3 -3
- package/dist/bundle/{chunk-OCIE3POS.js → chunk-6Z5SDRME.js} +4 -4
- package/dist/bundle/{chunk-N2Y6FTPK.js → chunk-7U7U2UZV.js} +1 -1
- package/dist/bundle/{chunk-GNLCVNP7.js → chunk-AOZMZXFQ.js} +7 -7
- package/dist/bundle/{chunk-JIWQNA2J.js → chunk-BFKNZMRN.js} +160 -151
- package/dist/bundle/{chunk-ME5RGIHV.js → chunk-BRMII52T.js} +9 -9
- package/dist/bundle/{chunk-RUZOQ7QN.js → chunk-CBFO5NLX.js} +3 -3
- package/dist/bundle/{chunk-XLKJSFQN.js → chunk-CC2EUMMM.js} +1 -1
- package/dist/bundle/{chunk-VYYPW7YP.js → chunk-CIWU756L.js} +11 -11
- package/dist/bundle/{chunk-WIK6SGHZ.js → chunk-D57K44OV.js} +1 -1
- package/dist/bundle/{chunk-FXG3SUIQ.js → chunk-E7IJTHAC.js} +12 -12
- package/dist/bundle/{chunk-I55VXEI2.js → chunk-EFF5JJRJ.js} +4 -4
- package/dist/bundle/{chunk-BU4LJSW2.js → chunk-EUZGV5UK.js} +1 -1
- package/dist/bundle/{chunk-26PVWAKE.js → chunk-EW2T73CA.js} +256 -246
- package/dist/bundle/{chunk-PYQU4GLK.js → chunk-FKRD3KGN.js} +71 -57
- package/dist/bundle/{chunk-NYELWBUA.js → chunk-G4N6CIFO.js} +5 -5
- package/dist/bundle/{chunk-L7AB7Y4Z.js → chunk-G7N3ID6S.js} +43 -43
- package/dist/bundle/{chunk-C2XCIZND.js → chunk-GAC4FF6K.js} +1 -1
- package/dist/bundle/{chunk-DCBBLYCI.js → chunk-GZZQDHUT.js} +27 -27
- package/dist/bundle/{chunk-CLHGYKYZ.js → chunk-HPUUJVTP.js} +4 -4
- package/dist/bundle/{chunk-FYT6A3UY.js → chunk-HQJBQWFQ.js} +1 -1
- package/dist/bundle/{chunk-6H6EXCZY.js → chunk-JBMSXV2A.js} +1 -1
- package/dist/bundle/{chunk-DYMUJFDK.js → chunk-JPVAIMPJ.js} +13 -9
- package/dist/bundle/{chunk-DQ66H456.js → chunk-JU5Q3AZD.js} +4 -4
- package/dist/bundle/{chunk-2Y4UU4DB.js → chunk-KAODXBUF.js} +2 -2
- package/dist/bundle/{chunk-VJSWU4JX.js → chunk-LTP2EEXM.js} +1 -1
- package/dist/bundle/{chunk-736NNFPY.js → chunk-PWKO36K4.js} +1 -1
- package/dist/bundle/{chunk-AYIUZUGD.js → chunk-PXOZGHXR.js} +1 -1
- package/dist/bundle/{chunk-L3SMTWCF.js → chunk-QIRO6B6C.js} +4 -4
- package/dist/bundle/chunk-QRYSVOUH.js +7577 -0
- package/dist/bundle/{chunk-IKDHJLSH.js → chunk-RDXN52I6.js} +10404 -375
- package/dist/bundle/{chunk-LQHW4G6G.js → chunk-RPZQ3DSX.js} +5 -5
- package/dist/bundle/{chunk-4OR4HFSL.js → chunk-RZLEQP2H.js} +7 -7
- package/dist/bundle/{chunk-SRHG24V7.js → chunk-T5IRZA25.js} +2 -2
- package/dist/bundle/{chunk-GAWGZN4F.js → chunk-T676QOXT.js} +2 -2
- package/dist/bundle/{chunk-3ZZ5OCUO.js → chunk-TW5YX26Q.js} +5 -5
- package/dist/bundle/{chunk-LBDMVVVW.js → chunk-UKIZBDD3.js} +10 -10
- package/dist/bundle/{chunk-URQ7ZL5K.js → chunk-UKSL7QZD.js} +7 -7
- package/dist/bundle/{chunk-2DTUMEN2.js → chunk-VBAAW3FK.js} +3 -3
- package/dist/bundle/{chunk-T3AUEF46.js → chunk-VIWOYM4L.js} +20 -20
- package/dist/bundle/{chunk-VMXESPNG.js → chunk-VR6FNEFZ.js} +4 -4
- package/dist/bundle/{chunk-BHDNHN55.js → chunk-VWWUJKLO.js} +5 -5
- package/dist/bundle/{chunk-SMJAJWYW.js → chunk-WGLE4R45.js} +2 -2
- package/dist/bundle/{chunk-MMRM6ZMM.js → chunk-WORCFDZN.js} +2 -2
- package/dist/bundle/{chunk-MNKCFCI7.js → chunk-WUF3P4DX.js} +1 -1
- package/dist/bundle/{chunk-YGW3JZVB.js → chunk-WVJFUHQS.js} +20 -20
- package/dist/bundle/{chunk-6D47X4KD.js → chunk-X3WEAVIH.js} +1 -1
- package/dist/bundle/{chunk-V5N65VRU.js → chunk-XCO6NBTE.js} +8 -8
- package/dist/bundle/{chunk-GLFFCRRX.js → chunk-XSS6U6VL.js} +2 -2
- package/dist/bundle/{chunk-SKVRUW57.js → chunk-YCLV7AAF.js} +1 -1
- package/dist/bundle/{chunk-XZPE2E3O.js → chunk-YVYOZY5K.js} +6 -6
- package/dist/bundle/{chunk-DMU5PAKY.js → chunk-ZFIBNKLW.js} +1 -1
- package/dist/bundle/{chunk-ICBWD2OL.js → chunk-ZLFFEGX6.js} +1 -1
- package/dist/bundle/{command-contract-TBZCPYWZ.js → command-contract-BAHAQIPW.js} +11 -11
- package/dist/bundle/{decode-RMAOEVTY.js → decode-ANYCY5PK.js} +2 -2
- package/dist/bundle/{echarts-R2MI4OEU.js → echarts-NH42736V.js} +2 -2
- package/dist/bundle/{embed-BG2XPLWM.js → embed-34XKENNN.js} +3 -3
- package/dist/bundle/{embedder-65SA34CZ.js → embedder-GMTQ6CUJ.js} +6 -6
- package/dist/bundle/{entry-DX3D4TWF.js → entry-W2JUZTXL.js} +4 -4
- package/dist/bundle/failure-UOGNX3CX.js +66 -0
- package/dist/bundle/{first-run-ZUQRYWEZ.js → first-run-MAHEEKHT.js} +5 -5
- package/dist/bundle/{first-screen-O5X3OT77.js → first-screen-X4SVIRMT.js} +12 -12
- package/dist/bundle/{instructions-ZDWGTLMU.js → instructions-YOSNFLTK.js} +1 -1
- package/dist/bundle/{mcp-B5CUHAKS.js → mcp-CAMU2OWN.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-43BSSPFC.js → node-O3XV2354.js} +2 -2
- package/dist/bundle/{node-sqlite-RPWFR6H3.js → node-sqlite-MJDZN4PN.js} +3 -3
- package/dist/bundle/{oauth-AYAADVSS.js → oauth-KEGXZT2C.js} +4 -4
- package/dist/bundle/{open-XEZ5CPLR.js → open-I3I57V2N.js} +2 -2
- package/dist/bundle/{openai-SQS7OBEI.js → openai-VCEX4PW3.js} +7 -7
- package/dist/bundle/{process-HJWMNCUC.js → process-BAT3Q3LY.js} +1 -1
- package/dist/bundle/{program-RQO3ZNVL.js → program-IH6EXRJR.js} +85 -65
- package/dist/bundle/{prompt-STQZGLH7.js → prompt-3AD7X52P.js} +2 -2
- package/dist/bundle/{recognize-HJ6G4OWB.js → recognize-AMFTP45O.js} +1 -1
- package/dist/bundle/{remote-HDTQYFBP.js → remote-Z5V5EKS4.js} +4 -4
- package/dist/bundle/{rerank-GBKN7RN4.js → rerank-PUDPLKON.js} +4 -4
- package/dist/bundle/{serve-KPTYHWUY.js → serve-ZRBPK4GW.js} +6 -6
- package/dist/bundle/server-423F624R.js +48 -0
- package/dist/bundle/{server-ASCI46TB.js → server-CJ5CMNEO.js} +50 -50
- package/dist/bundle/server-GHZF2UHL.js +61 -0
- package/dist/bundle/{state-22MNHAQY.js → state-BVVIF6M3.js} +3 -3
- package/dist/bundle/{store-R7QBCWWM.js → store-2U3EY4N5.js} +9 -9
- package/dist/bundle/store-maintenance-command-MSYIPYY3.js +48 -0
- package/dist/bundle/update-NQNVV57J.js +69 -0
- package/dist/examples.js +1 -1
- package/dist/examples.js.map +1 -1
- package/dist/mail/findings-command.d.ts.map +1 -1
- package/dist/mail/findings-command.js +29 -8
- package/dist/mail/findings-command.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/mail-triage/SKILL.md +38 -19
- package/dist/bundle/auto-XDBIEURD.js +0 -86
- package/dist/bundle/chunk-CMMKWXFG.js +0 -17421
- package/dist/bundle/failure-76A5ZD6Y.js +0 -66
- package/dist/bundle/server-DJVWUOO7.js +0 -61
- package/dist/bundle/server-TEOK5SHM.js +0 -48
- package/dist/bundle/store-maintenance-command-BZXFY2NT.js +0 -48
- package/dist/bundle/update-I5HTAMBY.js +0 -69
- /package/dist/bundle/{chunk-QMNLI4NV.js → chunk-2HSW646W.js} +0 -0
|
@@ -1,75 +1,75 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import "./chunk-
|
|
3
|
+
import "./chunk-2HSW646W.js";
|
|
4
4
|
import {
|
|
5
5
|
createBotServer
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-XCO6NBTE.js";
|
|
7
|
+
import "./chunk-PWKO36K4.js";
|
|
8
8
|
import {
|
|
9
9
|
MCP_PATH,
|
|
10
10
|
serveOverHttp
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-HPUUJVTP.js";
|
|
12
|
+
import "./chunk-JBMSXV2A.js";
|
|
13
13
|
import {
|
|
14
14
|
revokeAll
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WORCFDZN.js";
|
|
16
16
|
import {
|
|
17
17
|
registerCommands,
|
|
18
18
|
runCommandForAgent,
|
|
19
19
|
toolsFromCommands
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CIWU756L.js";
|
|
21
21
|
import {
|
|
22
22
|
mcpUrlOf,
|
|
23
23
|
portOf,
|
|
24
24
|
publicUrlOf
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-YCLV7AAF.js";
|
|
26
|
+
import "./chunk-JPVAIMPJ.js";
|
|
27
27
|
import {
|
|
28
28
|
allProfilesServer,
|
|
29
29
|
serveAllProfilesOverHttp,
|
|
30
30
|
serveAllProfilesOverStdio
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-EFF5JJRJ.js";
|
|
32
|
+
import "./chunk-PXOZGHXR.js";
|
|
33
33
|
import {
|
|
34
34
|
callingAgent
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-XSS6U6VL.js";
|
|
36
36
|
import "./chunk-MM5NVP7F.js";
|
|
37
37
|
import "./chunk-3X4JM3ZR.js";
|
|
38
38
|
import "./chunk-H3ZN4YLB.js";
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-4BWAVNRU.js";
|
|
40
|
+
import "./chunk-E7IJTHAC.js";
|
|
41
|
+
import "./chunk-BFKNZMRN.js";
|
|
42
|
+
import "./chunk-AOZMZXFQ.js";
|
|
43
43
|
import "./chunk-JY34MQW4.js";
|
|
44
44
|
import "./chunk-LER7G4XY.js";
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-VBAAW3FK.js";
|
|
46
|
+
import "./chunk-7U7U2UZV.js";
|
|
47
47
|
import {
|
|
48
48
|
httpLockFile
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
49
|
+
} from "./chunk-JU5Q3AZD.js";
|
|
50
|
+
import "./chunk-WGLE4R45.js";
|
|
51
|
+
import "./chunk-X3WEAVIH.js";
|
|
52
|
+
import "./chunk-RDXN52I6.js";
|
|
53
|
+
import "./chunk-FKRD3KGN.js";
|
|
54
|
+
import "./chunk-EUZGV5UK.js";
|
|
55
|
+
import "./chunk-RZLEQP2H.js";
|
|
56
|
+
import "./chunk-6Z5SDRME.js";
|
|
57
|
+
import "./chunk-WUF3P4DX.js";
|
|
58
|
+
import "./chunk-GAC4FF6K.js";
|
|
59
|
+
import "./chunk-T676QOXT.js";
|
|
60
|
+
import "./chunk-TW5YX26Q.js";
|
|
61
|
+
import "./chunk-6J6OO4BJ.js";
|
|
62
|
+
import "./chunk-D57K44OV.js";
|
|
63
63
|
import "./chunk-CID4MNRQ.js";
|
|
64
64
|
import "./chunk-AT5Y62SD.js";
|
|
65
65
|
import "./chunk-D72URWJE.js";
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-G4N6CIFO.js";
|
|
67
|
+
import "./chunk-ZLFFEGX6.js";
|
|
68
68
|
import "./chunk-2R2Z2VWL.js";
|
|
69
69
|
import "./chunk-SN63VOE6.js";
|
|
70
70
|
import "./chunk-Y5E2WNWB.js";
|
|
71
71
|
import "./chunk-RZ54DSVU.js";
|
|
72
|
-
import "./chunk-
|
|
72
|
+
import "./chunk-ZFIBNKLW.js";
|
|
73
73
|
import "./chunk-ZVVMGPBJ.js";
|
|
74
74
|
export {
|
|
75
75
|
MCP_PATH,
|
package/dist/bundle/memo.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-BPGYTJNB.js";
|
|
7
7
|
import {
|
|
8
8
|
APP
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2JZKVNFL.js";
|
|
10
10
|
import {
|
|
11
11
|
installerOf
|
|
12
12
|
} from "./chunk-CID4MNRQ.js";
|
|
@@ -164,7 +164,7 @@ var wcat = await wcatStart({
|
|
|
164
164
|
if (wcat.code !== void 0) {
|
|
165
165
|
process.exitCode = wcat.code;
|
|
166
166
|
} else {
|
|
167
|
-
const { startCli } = await import("./entry-
|
|
167
|
+
const { startCli } = await import("./entry-W2JUZTXL.js");
|
|
168
168
|
let program;
|
|
169
169
|
let failure;
|
|
170
170
|
await startCli({
|
|
@@ -173,15 +173,15 @@ if (wcat.code !== void 0) {
|
|
|
173
173
|
interactive: interactiveOf,
|
|
174
174
|
reasons: APP.errors.reasons,
|
|
175
175
|
run: /* @__PURE__ */ __name(async (entry) => {
|
|
176
|
-
failure = await import("./failure-
|
|
177
|
-
const { createProgram, refuseJoinedPath } = await import("./program-
|
|
178
|
-
const { autoNotice, followInstall } = await import("./auto-
|
|
176
|
+
failure = await import("./failure-UOGNX3CX.js");
|
|
177
|
+
const { createProgram, refuseJoinedPath } = await import("./program-IH6EXRJR.js");
|
|
178
|
+
const { autoNotice, followInstall } = await import("./auto-QK6SSRWW.js");
|
|
179
179
|
if (entry.args[0] !== "jobs") {
|
|
180
180
|
const notice2 = autoNotice(entry.env);
|
|
181
181
|
if (notice2)
|
|
182
182
|
processStreams.diagnostic(notice2);
|
|
183
183
|
}
|
|
184
|
-
const { updateNotice } = await import("./update-
|
|
184
|
+
const { updateNotice } = await import("./update-NQNVV57J.js");
|
|
185
185
|
const notice = updateNotice(entry.args);
|
|
186
186
|
program = createProgram({ signal: entry.signal });
|
|
187
187
|
program.hook("preAction", (_root, command) => entry.atStart(command));
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ZFIBNKLW.js";
|
|
22
22
|
import {
|
|
23
23
|
__name
|
|
24
24
|
} from "./chunk-ZVVMGPBJ.js";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.580.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_1f031b1bf1aa6bd7eaff3f6410d5fa78/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/node.js
|
|
27
27
|
import { DatabaseSync } from "node:sqlite";
|
|
28
28
|
var nodeSQLiteCodecs = refineSqliteCodecs({
|
|
29
29
|
"integer:boolean": { normalize: booleanFromInteger },
|
|
@@ -3,11 +3,11 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CC2EUMMM.js";
|
|
7
7
|
import {
|
|
8
8
|
TIME_LIMIT_FUNCTION,
|
|
9
9
|
beforeTimeLimit
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZLFFEGX6.js";
|
|
11
11
|
import "./chunk-2R2Z2VWL.js";
|
|
12
12
|
import "./chunk-SN63VOE6.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -16,7 +16,7 @@ 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.580.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_1f031b1bf1aa6bd7eaff3f6410d5fa78/node_modules/@wirecat/cli-core/dist/store/drivers/node-sqlite.js
|
|
20
20
|
import { DatabaseSync } from "node:sqlite";
|
|
21
21
|
var openWithNodeSqlite = /* @__PURE__ */ __name(async (path) => cacheOverNodeSqlite(await nodeClient(path)), "openWithNodeSqlite");
|
|
22
22
|
var nodeClient = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
|
|
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
ownerLogin,
|
|
5
5
|
revokeAll
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WORCFDZN.js";
|
|
7
7
|
import "./chunk-3X4JM3ZR.js";
|
|
8
8
|
import "./chunk-H3ZN4YLB.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-JU5Q3AZD.js";
|
|
10
|
+
import "./chunk-WGLE4R45.js";
|
|
11
|
+
import "./chunk-X3WEAVIH.js";
|
|
12
12
|
import "./chunk-2R2Z2VWL.js";
|
|
13
13
|
import "./chunk-SN63VOE6.js";
|
|
14
14
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
openCache,
|
|
7
7
|
openFile,
|
|
8
8
|
storeCapable
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-G4N6CIFO.js";
|
|
10
|
+
import "./chunk-ZLFFEGX6.js";
|
|
11
11
|
import "./chunk-2R2Z2VWL.js";
|
|
12
12
|
import "./chunk-SN63VOE6.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
LONGEST_REQUEST_SECONDS,
|
|
5
5
|
piecesOf,
|
|
6
6
|
transcribeOpenAI
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-UKSL7QZD.js";
|
|
8
|
+
import "./chunk-CBFO5NLX.js";
|
|
9
|
+
import "./chunk-E7IJTHAC.js";
|
|
10
|
+
import "./chunk-T676QOXT.js";
|
|
11
|
+
import "./chunk-TW5YX26Q.js";
|
|
12
|
+
import "./chunk-6J6OO4BJ.js";
|
|
13
|
+
import "./chunk-D57K44OV.js";
|
|
14
14
|
import "./chunk-2R2Z2VWL.js";
|
|
15
15
|
import "./chunk-SN63VOE6.js";
|
|
16
16
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
__name
|
|
6
6
|
} from "./chunk-ZVVMGPBJ.js";
|
|
7
7
|
|
|
8
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.580.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_1f031b1bf1aa6bd7eaff3f6410d5fa78/node_modules/@wirecat/cli-core/dist/embeddings/process.js
|
|
9
9
|
import { spawn } from "node:child_process";
|
|
10
10
|
import { createInterface } from "node:readline";
|
|
11
11
|
import { fileURLToPath } from "node:url";
|
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
autoState,
|
|
7
7
|
lastAutoRun,
|
|
8
8
|
recordAutoRun
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QIRO6B6C.js";
|
|
10
10
|
import {
|
|
11
11
|
installer,
|
|
12
12
|
latest,
|
|
13
13
|
upgradeCommand
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VWWUJKLO.js";
|
|
15
15
|
import {
|
|
16
16
|
mcpOwnerAllowed,
|
|
17
17
|
readOnlyAvailability,
|
|
18
18
|
refuseWritesUnderLock
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RPZQ3DSX.js";
|
|
20
20
|
import {
|
|
21
21
|
answers,
|
|
22
22
|
atDetail,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
trackAnswers,
|
|
27
27
|
wholeList,
|
|
28
28
|
withStore
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-VR6FNEFZ.js";
|
|
30
30
|
import {
|
|
31
31
|
ATTACHMENT_CHARS,
|
|
32
32
|
DIALECTS,
|
|
@@ -55,15 +55,15 @@ import {
|
|
|
55
55
|
showMail,
|
|
56
56
|
unsetConfigKey,
|
|
57
57
|
updateConfig
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-QRYSVOUH.js";
|
|
59
59
|
import "./chunk-QP3KNC5D.js";
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-4AMCA6VQ.js";
|
|
61
|
+
import "./chunk-UKSL7QZD.js";
|
|
62
|
+
import "./chunk-CBFO5NLX.js";
|
|
63
63
|
import {
|
|
64
64
|
errorObject,
|
|
65
65
|
recognisable
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-34BMGIFI.js";
|
|
67
67
|
import {
|
|
68
68
|
DISCOVERY_DESCRIPTIONS,
|
|
69
69
|
addContractInfo,
|
|
@@ -90,6 +90,7 @@ import {
|
|
|
90
90
|
projectStatusSchema,
|
|
91
91
|
projectStatusText,
|
|
92
92
|
projectWindowOf,
|
|
93
|
+
readMailFindingsJson,
|
|
93
94
|
recordRuns,
|
|
94
95
|
runsCommand,
|
|
95
96
|
scheduleCommandFor,
|
|
@@ -98,29 +99,29 @@ import {
|
|
|
98
99
|
tasksCommand,
|
|
99
100
|
tasksStatsCommand,
|
|
100
101
|
withSqliteSidecars
|
|
101
|
-
} from "./chunk-
|
|
102
|
-
import "./chunk-
|
|
103
|
-
import "./chunk-
|
|
102
|
+
} from "./chunk-EW2T73CA.js";
|
|
103
|
+
import "./chunk-PWKO36K4.js";
|
|
104
|
+
import "./chunk-JBMSXV2A.js";
|
|
104
105
|
import {
|
|
105
106
|
allHitItem,
|
|
106
107
|
coverageGaps,
|
|
107
108
|
messageHitItem,
|
|
108
109
|
noteHitItem,
|
|
109
110
|
shownOf
|
|
110
|
-
} from "./chunk-
|
|
111
|
-
import "./chunk-
|
|
111
|
+
} from "./chunk-VIWOYM4L.js";
|
|
112
|
+
import "./chunk-YCLV7AAF.js";
|
|
112
113
|
import {
|
|
113
114
|
SKILL_TARGETS,
|
|
114
115
|
skillCommand,
|
|
115
116
|
skillPath,
|
|
116
117
|
skillVersion
|
|
117
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-JPVAIMPJ.js";
|
|
118
119
|
import {
|
|
119
120
|
modelGateway,
|
|
120
121
|
storeInfo,
|
|
121
122
|
storeSummary
|
|
122
|
-
} from "./chunk-
|
|
123
|
-
import "./chunk-
|
|
123
|
+
} from "./chunk-G7N3ID6S.js";
|
|
124
|
+
import "./chunk-WVJFUHQS.js";
|
|
124
125
|
import {
|
|
125
126
|
LIST_QUERY_GUIDE,
|
|
126
127
|
ORGANIZATIONS_QUERY,
|
|
@@ -174,18 +175,18 @@ import {
|
|
|
174
175
|
termField,
|
|
175
176
|
typedQuery,
|
|
176
177
|
withQuery
|
|
177
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-4BWAVNRU.js";
|
|
178
179
|
import {
|
|
179
180
|
readBoundedUtf8File,
|
|
180
181
|
writeFileAtomic
|
|
181
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-E7IJTHAC.js";
|
|
182
183
|
import {
|
|
183
184
|
commandsText,
|
|
184
185
|
inSection,
|
|
185
186
|
installHelp
|
|
186
|
-
} from "./chunk-
|
|
187
|
+
} from "./chunk-YVYOZY5K.js";
|
|
187
188
|
import "./chunk-HTQTIKWP.js";
|
|
188
|
-
import "./chunk-
|
|
189
|
+
import "./chunk-T5IRZA25.js";
|
|
189
190
|
import {
|
|
190
191
|
Command,
|
|
191
192
|
FETCH,
|
|
@@ -215,22 +216,22 @@ import {
|
|
|
215
216
|
runsDirFor,
|
|
216
217
|
settingRows,
|
|
217
218
|
settingsFor
|
|
218
|
-
} from "./chunk-
|
|
219
|
-
import "./chunk-
|
|
220
|
-
import "./chunk-
|
|
219
|
+
} from "./chunk-BFKNZMRN.js";
|
|
220
|
+
import "./chunk-AOZMZXFQ.js";
|
|
221
|
+
import "./chunk-UKIZBDD3.js";
|
|
221
222
|
import {
|
|
222
223
|
isNewer
|
|
223
224
|
} from "./chunk-JY34MQW4.js";
|
|
224
225
|
import "./chunk-LER7G4XY.js";
|
|
225
|
-
import "./chunk-
|
|
226
|
-
import "./chunk-
|
|
227
|
-
import "./chunk-
|
|
228
|
-
import "./chunk-
|
|
226
|
+
import "./chunk-VBAAW3FK.js";
|
|
227
|
+
import "./chunk-BRMII52T.js";
|
|
228
|
+
import "./chunk-7U7U2UZV.js";
|
|
229
|
+
import "./chunk-JU5Q3AZD.js";
|
|
229
230
|
import {
|
|
230
231
|
releaseLock,
|
|
231
232
|
takeLock
|
|
232
|
-
} from "./chunk-
|
|
233
|
-
import "./chunk-
|
|
233
|
+
} from "./chunk-WGLE4R45.js";
|
|
234
|
+
import "./chunk-X3WEAVIH.js";
|
|
234
235
|
import {
|
|
235
236
|
EVIDENCE_FINDINGS_KIND,
|
|
236
237
|
MAIL_FINDINGS_KIND,
|
|
@@ -261,7 +262,7 @@ import {
|
|
|
261
262
|
parseReference,
|
|
262
263
|
providerNamed,
|
|
263
264
|
refLabel
|
|
264
|
-
} from "./chunk-
|
|
265
|
+
} from "./chunk-RDXN52I6.js";
|
|
265
266
|
import {
|
|
266
267
|
FACT_STATUSES,
|
|
267
268
|
FACT_TYPES,
|
|
@@ -294,22 +295,22 @@ import {
|
|
|
294
295
|
timezoneOf,
|
|
295
296
|
validateQuery,
|
|
296
297
|
walkQuery
|
|
297
|
-
} from "./chunk-
|
|
298
|
-
import "./chunk-
|
|
299
|
-
import "./chunk-
|
|
300
|
-
import "./chunk-
|
|
301
|
-
import "./chunk-
|
|
302
|
-
import "./chunk-
|
|
303
|
-
import "./chunk-
|
|
304
|
-
import "./chunk-
|
|
305
|
-
import "./chunk-
|
|
306
|
-
import "./chunk-
|
|
298
|
+
} from "./chunk-FKRD3KGN.js";
|
|
299
|
+
import "./chunk-EUZGV5UK.js";
|
|
300
|
+
import "./chunk-RZLEQP2H.js";
|
|
301
|
+
import "./chunk-6Z5SDRME.js";
|
|
302
|
+
import "./chunk-KAODXBUF.js";
|
|
303
|
+
import "./chunk-WUF3P4DX.js";
|
|
304
|
+
import "./chunk-LTP2EEXM.js";
|
|
305
|
+
import "./chunk-GAC4FF6K.js";
|
|
306
|
+
import "./chunk-T676QOXT.js";
|
|
307
|
+
import "./chunk-TW5YX26Q.js";
|
|
307
308
|
import {
|
|
308
309
|
sharedModelsDirectory
|
|
309
|
-
} from "./chunk-
|
|
310
|
+
} from "./chunk-6J6OO4BJ.js";
|
|
310
311
|
import {
|
|
311
312
|
storePath
|
|
312
|
-
} from "./chunk-
|
|
313
|
+
} from "./chunk-D57K44OV.js";
|
|
313
314
|
import {
|
|
314
315
|
provideTerminal,
|
|
315
316
|
terminalOf
|
|
@@ -319,12 +320,12 @@ import {
|
|
|
319
320
|
REASONS,
|
|
320
321
|
STORE_CLIENT,
|
|
321
322
|
VERSION
|
|
322
|
-
} from "./chunk-
|
|
323
|
+
} from "./chunk-2JZKVNFL.js";
|
|
323
324
|
import "./chunk-CID4MNRQ.js";
|
|
324
325
|
import "./chunk-AT5Y62SD.js";
|
|
325
326
|
import "./chunk-D72URWJE.js";
|
|
326
|
-
import "./chunk-
|
|
327
|
-
import "./chunk-
|
|
327
|
+
import "./chunk-G4N6CIFO.js";
|
|
328
|
+
import "./chunk-ZLFFEGX6.js";
|
|
328
329
|
import {
|
|
329
330
|
createDeadline,
|
|
330
331
|
createRenderer,
|
|
@@ -363,7 +364,7 @@ import {
|
|
|
363
364
|
errorCodes,
|
|
364
365
|
isCliError
|
|
365
366
|
} from "./chunk-RZ54DSVU.js";
|
|
366
|
-
import "./chunk-
|
|
367
|
+
import "./chunk-ZFIBNKLW.js";
|
|
367
368
|
import {
|
|
368
369
|
__name
|
|
369
370
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -645,7 +646,7 @@ var collect = /* @__PURE__ */ __name((value, previous = []) => [...previous, val
|
|
|
645
646
|
var readScope = /* @__PURE__ */ __name((command, help = ONE_ACCOUNT_HELP) => sourceOptions(command, help).option("--json", "print JSON; --json=id,title keeps only those fields"), "readScope");
|
|
646
647
|
var writeScope = /* @__PURE__ */ __name((command, help) => writeOptions(command, help).option("--json", "print JSON; --json=id,title keeps only those fields"), "writeScope");
|
|
647
648
|
|
|
648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
649
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.580.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_1f031b1bf1aa6bd7eaff3f6410d5fa78/node_modules/@wirecat/cli-core/dist/mail/sender-scores.js
|
|
649
650
|
var SCORED = "mail_sender_scores";
|
|
650
651
|
var DAY = 864e5;
|
|
651
652
|
var RECENT = 2 * 365 * DAY;
|
|
@@ -661,7 +662,7 @@ var demotedSenders = /* @__PURE__ */ __name(async (store) => {
|
|
|
661
662
|
return senders;
|
|
662
663
|
}, "demotedSenders");
|
|
663
664
|
|
|
664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
665
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.580.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_1f031b1bf1aa6bd7eaff3f6410d5fa78/node_modules/@wirecat/cli-core/dist/mail/sync.js
|
|
665
666
|
var DAY2 = 864e5;
|
|
666
667
|
var EDGE = 2 * DAY2;
|
|
667
668
|
|
|
@@ -1890,7 +1891,7 @@ import { createHash } from "node:crypto";
|
|
|
1890
1891
|
import { existsSync, readFileSync as readFileSync2, statSync } from "node:fs";
|
|
1891
1892
|
import { basename, extname, relative, sep } from "node:path";
|
|
1892
1893
|
|
|
1893
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1894
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.580.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_1f031b1bf1aa6bd7eaff3f6410d5fa78/node_modules/@wirecat/cli-core/dist/services/documents/extraction.js
|
|
1894
1895
|
var Proposal = object({
|
|
1895
1896
|
kind: picklist(["summary", "digest", "fact", "preference"]),
|
|
1896
1897
|
body: pipe(string(), trim(), minLength(1), maxLength(15e3)),
|
|
@@ -1898,10 +1899,10 @@ var Proposal = object({
|
|
|
1898
1899
|
});
|
|
1899
1900
|
var Proposals = object({ items: pipe(array(Proposal), maxLength(20)) });
|
|
1900
1901
|
|
|
1901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.580.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_1f031b1bf1aa6bd7eaff3f6410d5fa78/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
|
|
1902
1903
|
var ID = pipe(string(), regex(/^[A-Za-z0-9_-]{1,200}$/));
|
|
1903
1904
|
|
|
1904
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1905
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.580.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_1f031b1bf1aa6bd7eaff3f6410d5fa78/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
|
|
1905
1906
|
var MAX_PICTURE_BYTES = 25 * 1024 * 1024;
|
|
1906
1907
|
|
|
1907
1908
|
// dist/notes/links.js
|
|
@@ -4214,8 +4215,8 @@ var EXAMPLES = {
|
|
|
4214
4215
|
],
|
|
4215
4216
|
"mail findings add": [
|
|
4216
4217
|
"memo mail findings add findings.json --source email:work",
|
|
4217
|
-
|
|
4218
|
-
|
|
4218
|
+
"memo mail findings add findings.json --source email:work --dry-run --json",
|
|
4219
|
+
`memo mail findings add '{"schema_version":1,"key":"mail-triage:9123","extractor":"mail-triage/1","findings":[\u2026]}' --source email:me@example.com --json`
|
|
4219
4220
|
],
|
|
4220
4221
|
"mail findings show": [
|
|
4221
4222
|
"memo mail findings show 41",
|
|
@@ -6279,25 +6280,44 @@ due_evidence, assignee with assignee_evidence; no project means the mailbox's in
|
|
|
6279
6280
|
change close|due|detail, reason; due needs due_at, detail needs detail) \xB7 fact (type, statement, subject or project)
|
|
6280
6281
|
\xB7 memory (memory_kind, scope, body, subject or project) \xB7 link (from, to, reason: contact:email/<address> \u2192 person:N,
|
|
6281
6282
|
person:N \u2192 organization:N, chat:email/\u2026 \u2192 project:N) \xB7 new_contact (address of a cited email's sender or recipient,
|
|
6282
|
-
name, reason) \xB7 invoice (direction receivable|payable, counterparty person:N|organization:N
|
|
6283
|
-
description and amount, optional total, number, issue_date,
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
-
|
|
6283
|
+
name, reason) \xB7 invoice (direction receivable|payable, counterparty person:N|organization:N or counterparty_name with
|
|
6284
|
+
optional counterparty_email, currency, lines of description and amount, optional total, number, issue_date,
|
|
6285
|
+
due_date, project) \xB7 payment (direction in|out, amount,
|
|
6286
|
+
currency, date, optional payer or payer_name, payee or payee_name, reference, allocations of stored invoices) \xB7
|
|
6287
|
+
order (purpose personal|business|client|other, supplier_name, optional customer or customer_name, supplier, number,
|
|
6288
|
+
total with currency, status, order_date, invoice, payment, source_url) \xB7 order_update (supplier_name and number of
|
|
6289
|
+
a stored order, status, date when delivered).
|
|
6287
6290
|
An invoice, payment or order is checked as memo invoices|payments|orders add checks yours; a refusal names why.
|
|
6288
6291
|
A cited email that changed since review refuses the batch (mail-findings.stale), one still partial too
|
|
6289
6292
|
(mail-findings.partial). Nothing is created until the owner confirms: memo review confirm <batch>/<finding>.
|
|
6293
|
+
A party the store does not hold yet goes by name: counterparty_name, payer_name, payee_name or customer_name in
|
|
6294
|
+
place of the reference, with an optional <party>_email that sent or received a cited email; the owner's accept finds
|
|
6295
|
+
its organization by that address, its domain or the exact name, or makes one. An order whose shop and number are
|
|
6296
|
+
stored (order.duplicate) or already wait in a proposed batch (order.proposed) is refused.
|
|
6297
|
+
--dry-run checks it all and stages nothing: valid, and problems with each refused finding's id, kind and message.
|
|
6298
|
+
Build the whole batch, check it, fix every problem, then stage it once: a staged key takes no other input.
|
|
6290
6299
|
`;
|
|
6291
6300
|
var json4 = /* @__PURE__ */ __name((command) => command.option("--json", "print JSON; --json=id,status keeps only those fields"), "json");
|
|
6292
6301
|
var mailFindingsCommand = /* @__PURE__ */ __name((program, mail, streams, env) => {
|
|
6293
6302
|
const { run } = answers(program, streams, env);
|
|
6294
6303
|
const findings = mail.command("findings").description("cited tasks, task updates, facts, memories, links, contacts, invoices, payments and orders an agent read in new mail").summary("what an agent read in new mail, cited, waiting for the owner");
|
|
6295
|
-
json4(proposesOnly(annotate(findings.command("add"), { effects: LOCAL_WRITE, output: { entity: "mail_findings" } }))).description("stage one mailbox's findings for the owner; nothing is created until the owner confirms").summary("stage one mailbox's findings; the owner confirms them").argument("<file>", FINDINGS_INPUT_HELP).option("--source <accounts>", MAILBOX_HELP).addHelpText("after", INPUT_HELP).action(async (file, given) => {
|
|
6304
|
+
json4(proposesOnly(annotate(findings.command("add"), { effects: LOCAL_WRITE, output: { entity: "mail_findings" } }))).description("stage one mailbox's findings for the owner; nothing is created until the owner confirms").summary("stage one mailbox's findings; the owner confirms them").argument("<file>", FINDINGS_INPUT_HELP).option("--source <accounts>", MAILBOX_HELP).option("--dry-run", "check the batch as staging would, invoices, payments and orders tried and rolled back, and stage nothing; answers valid and every finding's problem at once").addHelpText("after", INPUT_HELP).action(async (file, given) => {
|
|
6296
6305
|
const text2 = await readFindingsInput(file, environmentOf(program).stdin ?? process.stdin);
|
|
6297
|
-
const input = parseMailFindingsJson(text2);
|
|
6306
|
+
const input = given.dryRun ? readMailFindingsJson(text2) : parseMailFindingsJson(text2);
|
|
6298
6307
|
const author = await whoRuns(program, env, { question: "" });
|
|
6299
6308
|
const agent = author === "owner" ? { bot: "memo-mail-findings" } : author;
|
|
6300
|
-
await run(given.json, async (store) =>
|
|
6309
|
+
await run(given.json, async (store) => {
|
|
6310
|
+
const mailbox = await oneMailboxOf(store, env, given.source);
|
|
6311
|
+
if (!given.dryRun)
|
|
6312
|
+
return itemAnswer(await store.mailFindings.stage(mailbox, input, agent));
|
|
6313
|
+
const checked = await store.mailFindings.check(mailbox, input, agent);
|
|
6314
|
+
const issues = checked.problems.map((one2) => ({
|
|
6315
|
+
code: one2.code,
|
|
6316
|
+
source: one2.finding ?? "batch",
|
|
6317
|
+
reason: one2.details?.reason ?? one2.message
|
|
6318
|
+
}));
|
|
6319
|
+
return itemAnswer({ dryRun: true, ...checked }, issues.length ? { meta: { complete: false, issues } } : void 0);
|
|
6320
|
+
});
|
|
6301
6321
|
});
|
|
6302
6322
|
json4(annotate(findings.command("show"), { effects: LOCAL_READ, output: { entity: "mail_findings" } })).description("one findings batch: its findings with their evidence, earlier decisions and the review receipt").summary("one findings batch with its evidence and decisions").argument("<id>", "the batch id `mail findings add` or `list` gave").action((id, given) => run(given.json, async (store) => itemAnswer(await store.mailFindings.get(id))));
|
|
6303
6323
|
withQuery(json4(annotate(findings.command("list"), { effects: LOCAL_READ, output: { entity: "mail_findings" } })), FINDINGS_QUERY2).description("mail findings batches, newest first; status:proposed is what waits for the owner").option("--source <accounts>", "only this mailbox's batches: email:<address>").option("--limit <n>", "batches per page, at most 50", positive, 20).option("--page <n>", "which page, from 1", positive, 1).action((words, given) => run(given.json, async (store) => {
|
|
@@ -6440,10 +6460,10 @@ var mcpCommandDefinition = /* @__PURE__ */ __name((program, streams, env, create
|
|
|
6440
6460
|
}).summary("serve this profile's commands to an AI agent").description("serve memo commands over MCP on stdio or authenticated HTTP, limited by saved permissions").option("--permission <key=level>", "tighten one saved permission for this server; repeat for more keys", (value, previous = []) => [...previous, value]).option("--http", "serve on 127.0.0.1 behind an HTTPS tunnel with an owner access-code login").option("--port <port>", `local HTTP port (default ${DEFAULT_PORT}); requires --http`).option("--public-url <url>", "tunnel's HTTPS address without /mcp, or a path of it such as https://<name>.ts.net/memo; requires --http").action(async (options) => {
|
|
6441
6461
|
if (!options.http && (options.port !== void 0 || options.publicUrl !== void 0))
|
|
6442
6462
|
throw new CliError("validation_error", "--port and --public-url require --http");
|
|
6443
|
-
const { createMemoServer } = await import("./server-
|
|
6463
|
+
const { createMemoServer } = await import("./server-CJ5CMNEO.js");
|
|
6444
6464
|
const build = /* @__PURE__ */ __name(() => createMemoServer(env, createProgram2, options.permission), "build");
|
|
6445
6465
|
if (options.http) {
|
|
6446
|
-
const { httpLockFile, mcpUrlOf, portOf, publicUrlOf, serveOverHttp } = await import("./mcp-
|
|
6466
|
+
const { httpLockFile, mcpUrlOf, portOf, publicUrlOf, serveOverHttp } = await import("./mcp-CAMU2OWN.js");
|
|
6447
6467
|
const publicUrl = publicUrlOf(options.publicUrl, {
|
|
6448
6468
|
missing: "--http",
|
|
6449
6469
|
reaches: "the browser apps reach memo",
|
|
@@ -6495,7 +6515,7 @@ var mcpCommandDefinition = /* @__PURE__ */ __name((program, streams, env, create
|
|
|
6495
6515
|
});
|
|
6496
6516
|
});
|
|
6497
6517
|
annotate(mcp2.command("revoke"), { effects: LOCAL_WRITE, mcp: false, examples: ["memo mcp revoke --json"] }).summary("forget every login given to a browser app").description("forget every login `memo mcp serve --http` gave a browser app; each app must log in again").option("--json", "print JSON").action(async function() {
|
|
6498
|
-
const { revokeAll } = await import("./mcp-
|
|
6518
|
+
const { revokeAll } = await import("./mcp-CAMU2OWN.js");
|
|
6499
6519
|
revokeAll(httpTokenFile(env));
|
|
6500
6520
|
out.print(this.opts().json, itemAnswer({ revoked: true }));
|
|
6501
6521
|
});
|
|
@@ -2,8 +2,8 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
readSecret
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-KAODXBUF.js";
|
|
6
|
+
import "./chunk-WUF3P4DX.js";
|
|
7
7
|
import "./chunk-2R2Z2VWL.js";
|
|
8
8
|
import "./chunk-SN63VOE6.js";
|
|
9
9
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
openRemote,
|
|
9
9
|
remoteKey,
|
|
10
10
|
remoteModel
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-T676QOXT.js";
|
|
12
|
+
import "./chunk-TW5YX26Q.js";
|
|
13
|
+
import "./chunk-6J6OO4BJ.js";
|
|
14
|
+
import "./chunk-D57K44OV.js";
|
|
15
15
|
import "./chunk-2R2Z2VWL.js";
|
|
16
16
|
import "./chunk-SN63VOE6.js";
|
|
17
17
|
import "./chunk-Y5E2WNWB.js";
|