@wirecat/cli-memo 0.131.24 → 0.131.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -12
- package/dist/actions/actions.d.ts +1 -1
- package/dist/actions/actions.d.ts.map +1 -1
- package/dist/actions/actions.js +27 -8
- package/dist/actions/actions.js.map +1 -1
- package/dist/actions/command.d.ts +1 -1
- package/dist/actions/command.d.ts.map +1 -1
- package/dist/actions/command.js +1 -12
- package/dist/actions/command.js.map +1 -1
- package/dist/app.d.ts +1 -1
- package/dist/bin/memo.js +2 -2
- package/dist/bundle/{all-profiles-ZCJTYGOL.js → all-profiles-VULFSNYE.js} +9 -9
- package/dist/bundle/{anthropic-7WVLAKTX.js → anthropic-VXQ6ST2U.js} +6 -6
- package/dist/bundle/{app-server-6G3SXEHO.js → app-server-HQPELIPY.js} +42 -42
- package/dist/bundle/auto-3R4RFJGK.js +86 -0
- package/dist/bundle/{bun-JVBDJKBB.js → bun-2NMWL5YB.js} +2 -2
- package/dist/bundle/{bun-sqlite-P4I7NVMQ.js → bun-sqlite-CT544OXO.js} +5 -5
- package/dist/bundle/{chunk-EGG3PGCM.js → chunk-254TXVLA.js} +2 -2
- package/dist/bundle/{chunk-FXHN2UZW.js → chunk-2ND2XYME.js} +33 -17
- package/dist/bundle/{chunk-5YCNCXL5.js → chunk-3CVDHJER.js} +1 -1
- package/dist/bundle/{chunk-ALGIPJ6L.js → chunk-3ZJE5TIG.js} +2 -2
- package/dist/bundle/{chunk-3KNXQZMO.js → chunk-4ENVJFRM.js} +29 -29
- package/dist/bundle/{chunk-NAH473ZR.js → chunk-5FPQGUJA.js} +1 -1
- package/dist/bundle/{chunk-ZOYGY2PN.js → chunk-6PRRZC7Z.js} +3 -3
- package/dist/bundle/{chunk-CM2H7NRC.js → chunk-6TJCRDNZ.js} +4 -4
- package/dist/bundle/{chunk-AWGV4VOA.js → chunk-7ISENDNK.js} +12 -12
- package/dist/bundle/{chunk-UY2VH3QK.js → chunk-7LMTWOTP.js} +2 -2
- package/dist/bundle/{chunk-2IRCJT4O.js → chunk-A4NZ2XOG.js} +8 -8
- package/dist/bundle/{chunk-R3LNQ3I4.js → chunk-A6PITALJ.js} +4 -2
- package/dist/bundle/{chunk-EACY2ULS.js → chunk-AGMYCYSG.js} +306 -187
- package/dist/bundle/{chunk-EB7LKK4K.js → chunk-ARDUJR5Z.js} +1 -1
- package/dist/bundle/{chunk-UA2C4BCH.js → chunk-BELLQAWL.js} +9 -9
- package/dist/bundle/{chunk-LWIMGWKB.js → chunk-BO4FN4UB.js} +3 -3
- package/dist/bundle/{chunk-3MER7NE6.js → chunk-CRC3AW6N.js} +4 -4
- package/dist/bundle/{chunk-UVR6U55E.js → chunk-CUWI6JIX.js} +6 -6
- package/dist/bundle/{chunk-VLPMB3UU.js → chunk-CW3NJ764.js} +4 -4
- package/dist/bundle/{chunk-ND3GBFEY.js → chunk-DKKWZMR7.js} +2 -2
- package/dist/bundle/{chunk-BTQSFPIM.js → chunk-DUHXWFCB.js} +5 -5
- package/dist/bundle/{chunk-CCHHEMPM.js → chunk-EB2IULWB.js} +3 -2
- package/dist/bundle/{chunk-R2LJDDZP.js → chunk-FHY664YS.js} +4 -4
- package/dist/bundle/{chunk-JY4LVWGZ.js → chunk-G2BB5WY5.js} +15 -8
- package/dist/bundle/chunk-GJBK3M6X.js +452 -0
- package/dist/bundle/{chunk-ZDOVR4PA.js → chunk-GOEHJK2R.js} +7 -7
- package/dist/bundle/{chunk-GQOXFZBX.js → chunk-GPYGMETC.js} +286 -282
- package/dist/bundle/{chunk-DIMX5AEE.js → chunk-H6O6IQND.js} +5 -5
- package/dist/bundle/{chunk-ELKYINWL.js → chunk-HN3EDDVX.js} +13 -13
- package/dist/bundle/{chunk-GSEDSGJF.js → chunk-HVVBSM2C.js} +753 -648
- package/dist/bundle/{chunk-JCCL7RGH.js → chunk-I7PL5WX2.js} +4 -4
- package/dist/bundle/{chunk-LNXFM4FD.js → chunk-IJ34FAES.js} +45 -26
- package/dist/bundle/{chunk-MPVW7BQZ.js → chunk-IUM5XZWV.js} +6 -6
- package/dist/bundle/{chunk-GRXVN2X7.js → chunk-J57DDKF4.js} +1 -1
- package/dist/bundle/{chunk-INTF3YPV.js → chunk-KFDPW2AR.js} +2 -2
- package/dist/bundle/{chunk-AIGMYGEL.js → chunk-KMZRXGTF.js} +1 -1
- package/dist/bundle/{chunk-MROFZXAB.js → chunk-KTDNFSXC.js} +22 -22
- package/dist/bundle/{chunk-ILHTNOIV.js → chunk-KV4267S4.js} +1 -1
- package/dist/bundle/{chunk-VVEFQEWP.js → chunk-LJZFMXDC.js} +22 -22
- package/dist/bundle/{chunk-OQK2IKPB.js → chunk-LMN7SYX4.js} +1 -1
- package/dist/bundle/{chunk-RTESJ5O2.js → chunk-M4QN77GH.js} +4 -4
- package/dist/bundle/{chunk-M43DAAZ7.js → chunk-M6O4DH5F.js} +1 -1
- package/dist/bundle/{chunk-UXCDBNAY.js → chunk-MQAHMAJB.js} +2 -2
- package/dist/bundle/{chunk-XF3LZ32F.js → chunk-NAM2Y63Z.js} +3 -3
- package/dist/bundle/{chunk-UPXUE27A.js → chunk-NH2JSH24.js} +6 -6
- package/dist/bundle/{chunk-3U7OUQV2.js → chunk-OYB3FUYQ.js} +1 -1
- package/dist/bundle/{chunk-J6D34BFP.js → chunk-PWA3RNXN.js} +260 -263
- package/dist/bundle/{chunk-KQSHIQSV.js → chunk-QFW4MJIH.js} +239 -242
- package/dist/bundle/{chunk-CPJEQK4V.js → chunk-QKQ7A4L7.js} +46 -46
- package/dist/bundle/{chunk-N5H6I7WQ.js → chunk-S3RBWUUA.js} +6 -6
- package/dist/bundle/{chunk-Q6MFBH6Q.js → chunk-SY7M2DLJ.js} +9 -9
- package/dist/bundle/{chunk-EKTZEF3Q.js → chunk-TKVRZZE3.js} +3 -27
- package/dist/bundle/{chunk-SKTGBVYC.js → chunk-TPFWNOPG.js} +4 -4
- package/dist/bundle/{chunk-F2ED6KG6.js → chunk-TXANQZEG.js} +3 -3
- package/dist/bundle/{chunk-T4LW6UYQ.js → chunk-TZ7WDQPD.js} +40 -34
- package/dist/bundle/{chunk-AIVUS6WA.js → chunk-UZXCBBDC.js} +15 -12
- package/dist/bundle/{chunk-XSI5NYGB.js → chunk-VL3YCTZD.js} +8 -8
- package/dist/bundle/{chunk-ZLZE5P6M.js → chunk-WRZ7JDA2.js} +8 -8
- package/dist/bundle/{chunk-EW3XTUPB.js → chunk-XBIPSSKI.js} +4 -4
- package/dist/bundle/{chunk-JDDVGGUV.js → chunk-XKGXVVYV.js} +10 -10
- package/dist/bundle/{chunk-ITQBXFMC.js → chunk-YFBKS5BW.js} +3 -3
- package/dist/bundle/{chunk-PQLBPYJR.js → chunk-YPF6OS37.js} +1 -1
- package/dist/bundle/{chunk-IC2TL7RW.js → chunk-Z3YGDBBS.js} +2 -2
- package/dist/bundle/{chunk-IJC6MFLP.js → chunk-ZR3BPBS6.js} +10 -10
- package/dist/bundle/command-contract-RQMIQKBS.js +32 -0
- package/dist/bundle/{decode-YHX3DQG2.js → decode-7VB3CHK2.js} +5 -5
- package/dist/bundle/{dispatch-MELZFYOS.js → dispatch-CU5KGRQL.js} +8 -8
- package/dist/bundle/{echarts-FBVAP7BR.js → echarts-45D6USAX.js} +2 -2
- package/dist/bundle/{embed-CQJ42S5C.js → embed-KU2RGB24.js} +6 -6
- package/dist/bundle/{embedder-EDXLEJ27.js → embedder-E7YZDZ5Y.js} +9 -9
- package/dist/bundle/{entry-HZEA7QFK.js → entry-N42HJMIN.js} +7 -7
- package/dist/bundle/failure-R355OCVE.js +66 -0
- package/dist/bundle/{failure-RBNZBCZJ.js → failure-TUXXI6JT.js} +2 -2
- package/dist/bundle/{first-run-JZQN7R6M.js → first-run-Y5YNAAO3.js} +11 -11
- package/dist/bundle/first-screen-SNPGBQFZ.js +30 -0
- package/dist/bundle/{instructions-NYVYNWVU.js → instructions-6EFSPC7C.js} +1 -1
- package/dist/bundle/mcp-6Z7UKX7E.js +90 -0
- package/dist/bundle/{mcp-MNI62HHE.js → mcp-PPVOM4SE.js} +2 -2
- package/dist/bundle/memo.js +16 -16
- package/dist/bundle/{node-2QE6UPGS.js → node-OXC26QXO.js} +2 -2
- package/dist/bundle/{node-sqlite-SDHZJNY7.js → node-sqlite-FNTICDEN.js} +6 -6
- package/dist/bundle/{oauth-FFUJREKS.js → oauth-4JFOFCBB.js} +7 -7
- package/dist/bundle/{open-NT2GYX6N.js → open-WXFCCY7S.js} +5 -5
- package/dist/bundle/{openai-IQA2XR6Z.js → openai-TPQKQNM7.js} +10 -10
- package/dist/bundle/{process-HIEJXYW6.js → process-YWPAOI6G.js} +1 -1
- package/dist/bundle/{chunk-DMQ3342A.js → program-WFUPN7XO.js} +9769 -2059
- package/dist/bundle/{prompt-IOZAME2R.js → prompt-HJUH4EP4.js} +5 -5
- package/dist/bundle/{recognize-2XOAZJ5N.js → recognize-DAIRHALM.js} +4 -4
- package/dist/bundle/{remote-2LE7OTDA.js → remote-MJLWTLAX.js} +7 -7
- package/dist/bundle/{rerank-UKOVVZM6.js → rerank-VAK5HSJE.js} +7 -7
- package/dist/bundle/{serve-S2UHPEBP.js → serve-M2A66WOW.js} +9 -9
- package/dist/bundle/server-33FB7QXW.js +48 -0
- package/dist/bundle/server-AIPDQO57.js +61 -0
- package/dist/bundle/{server-BG4WWQHY.js → server-NN2CBVSX.js} +57 -57
- package/dist/bundle/{state-F5KT3CBD.js → state-6TBUXJOX.js} +6 -6
- package/dist/bundle/{store-WBUUS7FO.js → store-TJCL3QBY.js} +13 -13
- package/dist/bundle/store-maintenance-command-NKJV5A3G.js +48 -0
- package/dist/bundle/update-OXR3SNM2.js +69 -0
- package/dist/config.d.ts +15 -29
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +23 -36
- package/dist/config.js.map +1 -1
- package/dist/context/command.d.ts.map +1 -1
- package/dist/context/command.js +6 -2
- package/dist/context/command.js.map +1 -1
- package/dist/context/context.d.ts +2 -0
- package/dist/context/context.d.ts.map +1 -1
- package/dist/context/context.js +15 -0
- package/dist/context/context.js.map +1 -1
- package/dist/doctor/command.d.ts +0 -12
- package/dist/doctor/command.d.ts.map +1 -1
- package/dist/doctor/command.js +19 -24
- package/dist/doctor/command.js.map +1 -1
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +3 -9
- package/dist/examples.js.map +1 -1
- package/dist/failure.d.ts +2 -2
- package/dist/mail/command.d.ts.map +1 -1
- package/dist/mail/command.js +2 -87
- package/dist/mail/command.js.map +1 -1
- package/dist/mail/findings-command.d.ts.map +1 -1
- package/dist/mail/findings-command.js +1 -1
- package/dist/mail/findings-command.js.map +1 -1
- package/dist/mail/messages-command.d.ts.map +1 -1
- package/dist/mail/messages-command.js +9 -2
- package/dist/mail/messages-command.js.map +1 -1
- package/dist/mail/moved.d.ts +1 -1
- package/dist/mail/moved.d.ts.map +1 -1
- package/dist/mail/moved.js +3 -0
- package/dist/mail/moved.js.map +1 -1
- package/dist/mail/review-command.d.ts +1 -1
- package/dist/mail/review-command.d.ts.map +1 -1
- package/dist/mail/review-command.js +5 -8
- package/dist/mail/review-command.js.map +1 -1
- package/dist/program.js +1 -1
- package/dist/program.js.map +1 -1
- package/dist/read-only.d.ts +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +1 -25
- package/dist/reasons.js.map +1 -1
- package/dist/review/command.d.ts +0 -1
- package/dist/review/command.d.ts.map +1 -1
- package/dist/review/command.js +2 -10
- package/dist/review/command.js.map +1 -1
- package/dist/review/kinds.d.ts +4 -21
- package/dist/review/kinds.d.ts.map +1 -1
- package/dist/review/kinds.js +13 -174
- package/dist/review/kinds.js.map +1 -1
- package/dist/review/review.js +2 -2
- package/dist/review/review.js.map +1 -1
- package/dist/review/status.js +2 -2
- package/dist/review/status.js.map +1 -1
- package/dist/run/auto.js +3 -3
- package/dist/run/auto.js.map +1 -1
- package/dist/run/import.d.ts +2 -2
- package/dist/run/import.d.ts.map +1 -1
- package/dist/run/import.js +24 -121
- package/dist/run/import.js.map +1 -1
- package/dist/schedule/command.d.ts +2 -2
- package/dist/schedule/command.d.ts.map +1 -1
- package/dist/schedule/command.js +9 -4
- package/dist/schedule/command.js.map +1 -1
- package/dist/search/command.js +1 -1
- package/dist/store/source-list.d.ts +1 -6
- package/dist/store/source-list.d.ts.map +1 -1
- package/dist/store/source-list.js +11 -46
- package/dist/store/source-list.js.map +1 -1
- package/dist/tasks/command.js +1 -1
- package/dist/tasks/command.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/scenarios/set-up.md +3 -3
- package/skills/cli-memo/SKILL.md +13 -21
- package/skills/mail-triage/SKILL.md +28 -16
- package/dist/bundle/auto-JWPM5654.js +0 -86
- package/dist/bundle/chunk-MLMSQK76.js +0 -103
- package/dist/bundle/command-contract-543RRFNU.js +0 -32
- package/dist/bundle/failure-62G7QSPX.js +0 -66
- package/dist/bundle/first-screen-56V3UOQE.js +0 -30
- package/dist/bundle/mcp-Y6IPYDS2.js +0 -90
- package/dist/bundle/program-DEMRKCZY.js +0 -10972
- package/dist/bundle/server-3YNOEPWU.js +0 -61
- package/dist/bundle/server-EZWQ5KP4.js +0 -48
- package/dist/bundle/setup-2X7ADKFH.js +0 -973
- package/dist/bundle/store-maintenance-command-KLST56XF.js +0 -48
- package/dist/bundle/update-WH4CGJGP.js +0 -69
- package/dist/mail/accounts.d.ts +0 -7
- package/dist/mail/accounts.d.ts.map +0 -1
- package/dist/mail/accounts.js +0 -28
- package/dist/mail/accounts.js.map +0 -1
- package/dist/mail/backfill-headers.d.ts +0 -11
- package/dist/mail/backfill-headers.d.ts.map +0 -1
- package/dist/mail/backfill-headers.js +0 -84
- package/dist/mail/backfill-headers.js.map +0 -1
- package/dist/mail/domain-age.d.ts +0 -26
- package/dist/mail/domain-age.d.ts.map +0 -1
- package/dist/mail/domain-age.js +0 -151
- package/dist/mail/domain-age.js.map +0 -1
- package/dist/mail/gmail.d.ts +0 -39
- package/dist/mail/gmail.d.ts.map +0 -1
- package/dist/mail/gmail.js +0 -325
- package/dist/mail/gmail.js.map +0 -1
- package/dist/mail/himalaya.d.ts +0 -22
- package/dist/mail/himalaya.d.ts.map +0 -1
- package/dist/mail/himalaya.js +0 -113
- package/dist/mail/himalaya.js.map +0 -1
- package/dist/mail/mbox.d.ts +0 -9
- package/dist/mail/mbox.d.ts.map +0 -1
- package/dist/mail/mbox.js +0 -230
- package/dist/mail/mbox.js.map +0 -1
- package/dist/mail/repair.d.ts +0 -7
- package/dist/mail/repair.d.ts.map +0 -1
- package/dist/mail/repair.js +0 -54
- package/dist/mail/repair.js.map +0 -1
- package/dist/mail/rule-store.d.ts +0 -12
- package/dist/mail/rule-store.d.ts.map +0 -1
- package/dist/mail/rule-store.js +0 -83
- package/dist/mail/rule-store.js.map +0 -1
- package/dist/mail/setup-command.d.ts +0 -4
- package/dist/mail/setup-command.d.ts.map +0 -1
- package/dist/mail/setup-command.js +0 -41
- package/dist/mail/setup-command.js.map +0 -1
- package/dist/mail/setup.d.ts +0 -19
- package/dist/mail/setup.d.ts.map +0 -1
- package/dist/mail/setup.js +0 -95
- package/dist/mail/setup.js.map +0 -1
- package/dist/mail/slices.d.ts +0 -6
- package/dist/mail/slices.d.ts.map +0 -1
- package/dist/mail/slices.js +0 -7
- package/dist/mail/slices.js.map +0 -1
- package/dist/mail/source.d.ts +0 -7
- package/dist/mail/source.d.ts.map +0 -1
- package/dist/mail/source.js +0 -119
- package/dist/mail/source.js.map +0 -1
- package/dist/mail/sync.d.ts +0 -21
- package/dist/mail/sync.d.ts.map +0 -1
- package/dist/mail/sync.js +0 -24
- package/dist/mail/sync.js.map +0 -1
- /package/dist/bundle/{chunk-CWOKGEL3.js → chunk-DF7NE4ZG.js} +0 -0
- /package/dist/bundle/{chunk-NUN6OGOV.js → chunk-LU3WKZBA.js} +0 -0
|
@@ -10,18 +10,18 @@ import {
|
|
|
10
10
|
providerErrorKey,
|
|
11
11
|
renderEvent,
|
|
12
12
|
runContextOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BELLQAWL.js";
|
|
14
14
|
import {
|
|
15
15
|
permissionCeiling
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-6TJCRDNZ.js";
|
|
17
17
|
import {
|
|
18
18
|
envName,
|
|
19
19
|
readOnlyLockOf,
|
|
20
20
|
readOnlyRefusal
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-A6PITALJ.js";
|
|
22
22
|
import {
|
|
23
23
|
carries
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-3CVDHJER.js";
|
|
25
25
|
import {
|
|
26
26
|
FACT_STATUSES,
|
|
27
27
|
FACT_TYPES,
|
|
@@ -57,17 +57,17 @@ import {
|
|
|
57
57
|
meetingStats,
|
|
58
58
|
meetingSummary,
|
|
59
59
|
meetingTranscript
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-QFW4MJIH.js";
|
|
61
61
|
import {
|
|
62
62
|
sharedConfigPath
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-NH2JSH24.js";
|
|
64
64
|
import {
|
|
65
65
|
filesPresent,
|
|
66
66
|
sharedModelsDirectory
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-M4QN77GH.js";
|
|
68
68
|
import {
|
|
69
69
|
storePath
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-MQAHMAJB.js";
|
|
71
71
|
import {
|
|
72
72
|
configFilePath,
|
|
73
73
|
createRecordLog,
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
saveConfigFile,
|
|
81
81
|
traceIdOf,
|
|
82
82
|
writeSecurely
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-TZ7WDQPD.js";
|
|
84
84
|
import {
|
|
85
85
|
COMPACT_FLAG,
|
|
86
86
|
EXIT_CODES,
|
|
@@ -135,18 +135,18 @@ import {
|
|
|
135
135
|
unwrap,
|
|
136
136
|
variant,
|
|
137
137
|
writes
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-G2BB5WY5.js";
|
|
139
139
|
import {
|
|
140
140
|
CliError,
|
|
141
141
|
isCliError,
|
|
142
142
|
singleLine,
|
|
143
143
|
visibleControls
|
|
144
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-EB2IULWB.js";
|
|
145
145
|
import {
|
|
146
146
|
__name
|
|
147
147
|
} from "./chunk-ZVVMGPBJ.js";
|
|
148
148
|
|
|
149
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
149
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
|
|
150
150
|
var labels = /* @__PURE__ */ new WeakMap();
|
|
151
151
|
var annotate = /* @__PURE__ */ __name((command, meta) => {
|
|
152
152
|
labels.set(command, { ...labels.get(command), ...meta });
|
|
@@ -3647,7 +3647,7 @@ __name(useColor, "useColor");
|
|
|
3647
3647
|
// node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
|
|
3648
3648
|
var program = new Command();
|
|
3649
3649
|
|
|
3650
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3650
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
|
|
3651
3651
|
import { isDeepStrictEqual } from "node:util";
|
|
3652
3652
|
var protectedCommands = /* @__PURE__ */ new WeakMap();
|
|
3653
3653
|
var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
|
|
@@ -3849,7 +3849,7 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference2, reason, build,
|
|
|
3849
3849
|
return command;
|
|
3850
3850
|
}, "customizeSharedCommand");
|
|
3851
3851
|
|
|
3852
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3852
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
|
|
3853
3853
|
var argumentInfoSchema = object({
|
|
3854
3854
|
name: string(),
|
|
3855
3855
|
required: boolean(),
|
|
@@ -3932,7 +3932,7 @@ var commandsDocument = /* @__PURE__ */ __name((root, about) => ({
|
|
|
3932
3932
|
exit_codes: { ok: 0, internal_error: GENERIC_FAILURE, ...EXIT_CODES }
|
|
3933
3933
|
}), "commandsDocument");
|
|
3934
3934
|
|
|
3935
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
3936
3936
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3937
3937
|
var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
|
|
3938
3938
|
messageId: message2.id,
|
|
@@ -4038,7 +4038,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
4038
4038
|
}, "guardedWrite");
|
|
4039
4039
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
4040
4040
|
|
|
4041
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4041
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
4042
4042
|
var named = /* @__PURE__ */ __name((work) => {
|
|
4043
4043
|
try {
|
|
4044
4044
|
return work();
|
|
@@ -4065,7 +4065,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
4065
4065
|
return projectFields(value, fields);
|
|
4066
4066
|
}), "projectFields");
|
|
4067
4067
|
|
|
4068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4068
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
4069
4069
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
4070
4070
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
4071
4071
|
var DEFAULT_OUTPUT_BYTES = 4 * 1024 * 1024;
|
|
@@ -4087,7 +4087,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4087
4087
|
}
|
|
4088
4088
|
}, "withAbort");
|
|
4089
4089
|
|
|
4090
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4090
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
4091
4091
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
4092
4092
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
4093
4093
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -4483,7 +4483,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
4483
4483
|
}
|
|
4484
4484
|
}, "assertRetentionEvidenceRead");
|
|
4485
4485
|
|
|
4486
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4486
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
4487
4487
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
4488
4488
|
import { join } from "node:path";
|
|
4489
4489
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -4505,12 +4505,12 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4505
4505
|
}, "profilesWithAccounts");
|
|
4506
4506
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4507
4507
|
|
|
4508
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4508
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/background/budget.js
|
|
4509
4509
|
var DEADLINE_MARGIN_MS = 5e3;
|
|
4510
4510
|
var DEADLINE_MARGIN_SHARE = 0.15;
|
|
4511
4511
|
var deadlineMargin = /* @__PURE__ */ __name((deadline) => Math.max(DEADLINE_MARGIN_MS, deadline.ms * DEADLINE_MARGIN_SHARE), "deadlineMargin");
|
|
4512
4512
|
|
|
4513
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4513
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
4514
4514
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
4515
4515
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
4516
4516
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -4546,7 +4546,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
4546
4546
|
return value;
|
|
4547
4547
|
}, "atDetail");
|
|
4548
4548
|
|
|
4549
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4549
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/output.js
|
|
4550
4550
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
4551
4551
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
4552
4552
|
if (other)
|
|
@@ -4610,7 +4610,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
|
|
|
4610
4610
|
}, "warn")
|
|
4611
4611
|
}), "silence");
|
|
4612
4612
|
|
|
4613
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4613
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
4614
4614
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
4615
4615
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
4616
4616
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4644,7 +4644,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4644
4644
|
cache: "cache.answered"
|
|
4645
4645
|
};
|
|
4646
4646
|
|
|
4647
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
4648
4648
|
var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
4649
4649
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
4650
4650
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -4657,13 +4657,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
4657
4657
|
error: /* @__PURE__ */ __name((event2, message2) => logger.error(logAttributes(event2), message2), "error")
|
|
4658
4658
|
}), "snakeLogger");
|
|
4659
4659
|
|
|
4660
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4660
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4661
4661
|
import { randomUUID } from "node:crypto";
|
|
4662
4662
|
import { appendFileSync, mkdirSync, readdirSync as readdirSync2, readFileSync as readFileSync2, rmSync, statSync, writeFileSync } from "node:fs";
|
|
4663
4663
|
import { userInfo } from "node:os";
|
|
4664
4664
|
import { join as join2, sep } from "node:path";
|
|
4665
4665
|
|
|
4666
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4666
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
4667
4667
|
var diagnostic = {
|
|
4668
4668
|
event: true,
|
|
4669
4669
|
operation: true,
|
|
@@ -4733,7 +4733,7 @@ var LOG_ATTRIBUTES = [
|
|
|
4733
4733
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
4734
4734
|
].sort();
|
|
4735
4735
|
|
|
4736
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4737
4737
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
4738
4738
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
4739
4739
|
var RUNS_SIZE_LIMIT_MB = 200;
|
|
@@ -5086,7 +5086,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
5086
5086
|
};
|
|
5087
5087
|
}, "metadataOf");
|
|
5088
5088
|
|
|
5089
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5089
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
5090
5090
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
5091
5091
|
import { randomBytes } from "node:crypto";
|
|
5092
5092
|
var scopes = new AsyncLocalStorage2();
|
|
@@ -5104,7 +5104,6 @@ var currentRun = /* @__PURE__ */ __name(() => {
|
|
|
5104
5104
|
return processScope;
|
|
5105
5105
|
}, "currentRun");
|
|
5106
5106
|
var inRun = /* @__PURE__ */ __name((scope, body) => scopes.run(scope, body), "inRun");
|
|
5107
|
-
var runEvent = /* @__PURE__ */ __name((event2) => scopes.getStore()?.events?.(event2), "runEvent");
|
|
5108
5107
|
var typedCommand = /* @__PURE__ */ __name((tool, words, profile = currentRun().profile) => [tool, profile, words].filter((part) => part !== void 0 && part !== "").join(" "), "typedCommand");
|
|
5109
5108
|
var useAsProcessRun = /* @__PURE__ */ __name((scope) => {
|
|
5110
5109
|
processScope = scope;
|
|
@@ -5121,9 +5120,8 @@ var childTrace = /* @__PURE__ */ __name(() => {
|
|
|
5121
5120
|
}, "childTrace");
|
|
5122
5121
|
var attempts = new AsyncLocalStorage2();
|
|
5123
5122
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
5124
|
-
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
5125
5123
|
|
|
5126
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
5127
5125
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
5128
5126
|
const recording = startRecording(options);
|
|
5129
5127
|
try {
|
|
@@ -5308,7 +5306,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
5308
5306
|
return void 0;
|
|
5309
5307
|
}, "partialOutcome");
|
|
5310
5308
|
|
|
5311
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5309
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
5312
5310
|
var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
5313
5311
|
if (ms2 === void 0)
|
|
5314
5312
|
return body();
|
|
@@ -5334,7 +5332,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
|
5334
5332
|
}
|
|
5335
5333
|
}, "withDeadline");
|
|
5336
5334
|
|
|
5337
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5335
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
5338
5336
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
5339
5337
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
5340
5338
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -5376,10 +5374,10 @@ var rootOf = /* @__PURE__ */ __name((command) => {
|
|
|
5376
5374
|
return root;
|
|
5377
5375
|
}, "rootOf");
|
|
5378
5376
|
|
|
5379
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5380
|
-
import { existsSync as
|
|
5377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5378
|
+
import { existsSync as existsSync4 } from "node:fs";
|
|
5381
5379
|
|
|
5382
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5380
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
5383
5381
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
5384
5382
|
try {
|
|
5385
5383
|
const url2 = new URL(value);
|
|
@@ -5389,7 +5387,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
|
|
|
5389
5387
|
}
|
|
5390
5388
|
}, "endpoint");
|
|
5391
5389
|
|
|
5392
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5390
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
5393
5391
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
5394
5392
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
5395
5393
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -5458,7 +5456,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
5458
5456
|
};
|
|
5459
5457
|
}, "modelTarget");
|
|
5460
5458
|
|
|
5461
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
5462
5460
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
5463
5461
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
5464
5462
|
var AI_FIELDS = {
|
|
@@ -5502,7 +5500,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
5502
5500
|
};
|
|
5503
5501
|
}, "resolveAISettings");
|
|
5504
5502
|
|
|
5505
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
5506
5504
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
5507
5505
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
5508
5506
|
var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
@@ -5516,7 +5514,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
|
5516
5514
|
return ms2;
|
|
5517
5515
|
}, "parseDuration");
|
|
5518
5516
|
|
|
5519
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
5520
5518
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
5521
5519
|
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
5522
5520
|
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
@@ -5675,7 +5673,7 @@ var rerankModel = /* @__PURE__ */ __name((id6) => {
|
|
|
5675
5673
|
var vectorModelKey = /* @__PURE__ */ __name((model3) => `local:${model3.id}:${model3.dims}`, "vectorModelKey");
|
|
5676
5674
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
5677
5675
|
|
|
5678
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5676
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
5679
5677
|
var HISTORY_MAX_DAYS = 1095;
|
|
5680
5678
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
5681
5679
|
var DAY_MS2 = 24 * 60 * 60 * 1e3;
|
|
@@ -5722,10 +5720,99 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
5722
5720
|
return { batch: { ...batch, messages }, skipped };
|
|
5723
5721
|
}, "limitBatch");
|
|
5724
5722
|
|
|
5725
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5726
|
-
import { readFileSync as readFileSync3 } from "node:fs";
|
|
5723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
|
|
5724
|
+
import { existsSync as existsSync2, readdirSync as readdirSync3, readFileSync as readFileSync3 } from "node:fs";
|
|
5725
|
+
import { join as join3 } from "node:path";
|
|
5726
|
+
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
|
|
5727
|
+
var botFiles = /* @__PURE__ */ __name((app, profile, env = process.env) => {
|
|
5728
|
+
const directory = botsDirectory(app, env);
|
|
5729
|
+
return {
|
|
5730
|
+
registry: join3(directory, `${profile}.json`),
|
|
5731
|
+
recipients: join3(directory, "recipients", `${profile}.json`),
|
|
5732
|
+
journal: join3(directory, "sends", `${profile}.jsonl`),
|
|
5733
|
+
updates: join3(directory, "updates", `${profile}.json`),
|
|
5734
|
+
presses: join3(directory, "presses", `${profile}.json`),
|
|
5735
|
+
checks: join3(directory, "checks", `${profile}.json`)
|
|
5736
|
+
};
|
|
5737
|
+
}, "botFiles");
|
|
5738
|
+
var ChatRegistry = class {
|
|
5739
|
+
static {
|
|
5740
|
+
__name(this, "ChatRegistry");
|
|
5741
|
+
}
|
|
5742
|
+
#path;
|
|
5743
|
+
constructor(app, profile, env = process.env) {
|
|
5744
|
+
this.#path = botFiles(app, profile, env).registry;
|
|
5745
|
+
}
|
|
5746
|
+
list(filter = {}) {
|
|
5747
|
+
const { chats } = this.#read();
|
|
5748
|
+
return (Array.isArray(chats) ? chats : []).filter((chat2) => (filter.id === void 0 || chat2.id === filter.id) && (filter.kind === void 0 || chat2.kind === filter.kind) && (filter.title === void 0 || chat2.title?.toLocaleLowerCase() === filter.title?.toLocaleLowerCase()));
|
|
5749
|
+
}
|
|
5750
|
+
/** The bot's own user id, once any command has learned it — the key its messages are stored under. */
|
|
5751
|
+
botId() {
|
|
5752
|
+
const { botId } = this.#read();
|
|
5753
|
+
return typeof botId === "string" ? botId : void 0;
|
|
5754
|
+
}
|
|
5755
|
+
rememberBot(id6) {
|
|
5756
|
+
const file = this.#read();
|
|
5757
|
+
if (file.botId !== id6)
|
|
5758
|
+
this.#write({ ...file, botId: id6 });
|
|
5759
|
+
}
|
|
5760
|
+
/** Makes this bot known to `bot list` before it has seen any chat. */
|
|
5761
|
+
touch() {
|
|
5762
|
+
if (!existsSync2(this.#path))
|
|
5763
|
+
writeSecurely(this.#path, `${JSON.stringify({ chats: [] }, null, 2)}
|
|
5764
|
+
`, 384);
|
|
5765
|
+
}
|
|
5766
|
+
/** Newer facts win; a chat seen only as an id keeps the title it had. */
|
|
5767
|
+
observe(chats, now = /* @__PURE__ */ new Date()) {
|
|
5768
|
+
if (chats.length === 0)
|
|
5769
|
+
return;
|
|
5770
|
+
const byId = new Map(this.list().map((chat2) => [chat2.id, chat2]));
|
|
5771
|
+
const at2 = now.toISOString();
|
|
5772
|
+
for (const chat2 of chats) {
|
|
5773
|
+
const known = byId.get(chat2.id);
|
|
5774
|
+
const defined = Object.fromEntries(Object.entries(chat2).filter(([, value]) => value !== void 0 && value !== null));
|
|
5775
|
+
byId.set(chat2.id, {
|
|
5776
|
+
title: null,
|
|
5777
|
+
kind: "unknown",
|
|
5778
|
+
unreadCount: null,
|
|
5779
|
+
lastMessageAt: null,
|
|
5780
|
+
participantsCount: null,
|
|
5781
|
+
...known,
|
|
5782
|
+
...defined,
|
|
5783
|
+
id: chat2.id,
|
|
5784
|
+
firstSeenAt: known?.firstSeenAt ?? at2,
|
|
5785
|
+
lastSeenAt: at2
|
|
5786
|
+
});
|
|
5787
|
+
}
|
|
5788
|
+
this.#write({ ...this.#read(), chats: [...byId.values()] });
|
|
5789
|
+
}
|
|
5790
|
+
#read() {
|
|
5791
|
+
if (!existsSync2(this.#path))
|
|
5792
|
+
return {};
|
|
5793
|
+
try {
|
|
5794
|
+
const parsed = JSON.parse(readFileSync3(this.#path, "utf8"));
|
|
5795
|
+
return parsed && typeof parsed === "object" ? parsed : {};
|
|
5796
|
+
} catch {
|
|
5797
|
+
return {};
|
|
5798
|
+
}
|
|
5799
|
+
}
|
|
5800
|
+
#write(file) {
|
|
5801
|
+
writeSecurely(this.#path, `${JSON.stringify(file, null, 2)}
|
|
5802
|
+
`, 384);
|
|
5803
|
+
}
|
|
5804
|
+
};
|
|
5805
|
+
var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
|
|
5806
|
+
const directory = botsDirectory(app, env);
|
|
5807
|
+
if (!existsSync2(directory))
|
|
5808
|
+
return [];
|
|
5809
|
+
return readdirSync3(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
|
|
5810
|
+
}, "registryProfiles");
|
|
5811
|
+
|
|
5812
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
5813
|
+
import { readFileSync as readFileSync4 } from "node:fs";
|
|
5727
5814
|
|
|
5728
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
|
|
5729
5816
|
var REPAIR_WORDS = {
|
|
5730
5817
|
byte_order_mark: "an invisible byte-order mark at the start",
|
|
5731
5818
|
comment: "a comment, which JSON does not allow",
|
|
@@ -5966,7 +6053,7 @@ ${parts.join(",\n")}
|
|
|
5966
6053
|
${indent}${close}`;
|
|
5967
6054
|
}, "serialise");
|
|
5968
6055
|
|
|
5969
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6056
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
5970
6057
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
5971
6058
|
var SECTIONS = ["personal", "bot"];
|
|
5972
6059
|
var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
|
|
@@ -6221,11 +6308,11 @@ var issueMessage = /* @__PURE__ */ __name((issues, doctor = "doctor") => {
|
|
|
6221
6308
|
const more = issues.length - 1;
|
|
6222
6309
|
return `${first2.file}: ${first2.what}` + (first2.fix ? ` \u2014 ${fixVerb(first2)} it with \`${first2.fix}\`` : "") + (more === 0 ? "" : ` (and ${more} more problem${more === 1 ? "" : "s"} \u2014 \`${doctor}\` lists them all)`);
|
|
6223
6310
|
}, "issueMessage");
|
|
6224
|
-
var checkConfigText = /* @__PURE__ */ __name((text5, { file, tool, schema: schema2, knownPermissions }) => {
|
|
6311
|
+
var checkConfigText = /* @__PURE__ */ __name((text5, { file, tool, schema: schema2, knownPermissions, repair = true }) => {
|
|
6225
6312
|
const parsed = parseConfigText(text5, file);
|
|
6226
6313
|
if ("issue" in parsed) {
|
|
6227
6314
|
const issue = publicIssue(parsed.issue);
|
|
6228
|
-
if (repairConfigText(text5).state === "repaired")
|
|
6315
|
+
if (repair && repairConfigText(text5).state === "repaired")
|
|
6229
6316
|
issue.fix = `${tool} config repair`;
|
|
6230
6317
|
return { issues: [issue], config: void 0 };
|
|
6231
6318
|
}
|
|
@@ -6241,7 +6328,7 @@ var checkConfigText = /* @__PURE__ */ __name((text5, { file, tool, schema: schem
|
|
|
6241
6328
|
var wholeFile = /* @__PURE__ */ __name((file, what) => ({ kind: "invalid_value", file, what }), "wholeFile");
|
|
6242
6329
|
var readConfigText = /* @__PURE__ */ __name((path2) => {
|
|
6243
6330
|
try {
|
|
6244
|
-
return { text:
|
|
6331
|
+
return { text: readFileSync4(path2, "utf8") };
|
|
6245
6332
|
} catch (error) {
|
|
6246
6333
|
const code = error.code;
|
|
6247
6334
|
if (code === "ENOENT")
|
|
@@ -6261,20 +6348,20 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
6261
6348
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
6262
6349
|
}, "readConfigFile");
|
|
6263
6350
|
|
|
6264
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6265
|
-
import { existsSync as
|
|
6266
|
-
import { dirname, join as
|
|
6351
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
6352
|
+
import { existsSync as existsSync3, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
6353
|
+
import { dirname, join as join4 } from "node:path";
|
|
6267
6354
|
var DEFAULT_CONFIG = {
|
|
6268
6355
|
defaults: { limit: 20, keep_runs_for_days: 30, sends_per_hour: 30, update_check: true, skill_hint: true },
|
|
6269
6356
|
profiles: {}
|
|
6270
6357
|
};
|
|
6271
6358
|
function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
6272
|
-
if (
|
|
6359
|
+
if (existsSync3(path2))
|
|
6273
6360
|
return;
|
|
6274
6361
|
const directory = dirname(path2);
|
|
6275
6362
|
mkdirSync2(directory, { recursive: true, mode: 448 });
|
|
6276
|
-
const temporary = mkdtempSync(
|
|
6277
|
-
const candidate =
|
|
6363
|
+
const temporary = mkdtempSync(join4(directory, ".config-"));
|
|
6364
|
+
const candidate = join4(temporary, "config.json");
|
|
6278
6365
|
try {
|
|
6279
6366
|
writeFileSync2(candidate, `${JSON.stringify(config, null, 2)}
|
|
6280
6367
|
`, { flag: "wx", mode: 384 });
|
|
@@ -6290,7 +6377,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
6290
6377
|
}
|
|
6291
6378
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
6292
6379
|
|
|
6293
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6380
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
|
|
6294
6381
|
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
6295
6382
|
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
6296
6383
|
const path2 = key.split(".");
|
|
@@ -6323,7 +6410,7 @@ var settingRows = /* @__PURE__ */ __name((raw, declared) => declared.map((settin
|
|
|
6323
6410
|
};
|
|
6324
6411
|
}), "settingRows");
|
|
6325
6412
|
|
|
6326
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6413
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
6327
6414
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
6328
6415
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
6329
6416
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -6387,7 +6474,9 @@ var MESSENGER_ONLY_SETTINGS = [
|
|
|
6387
6474
|
"history_dialog_days",
|
|
6388
6475
|
"history_group_days",
|
|
6389
6476
|
"history_group_members_max",
|
|
6390
|
-
"read_other_bots"
|
|
6477
|
+
"read_other_bots",
|
|
6478
|
+
"speech_model",
|
|
6479
|
+
"picture_search"
|
|
6391
6480
|
];
|
|
6392
6481
|
var SHARED_DEFAULTS_ONLY = {
|
|
6393
6482
|
update_check: optional(flag),
|
|
@@ -6519,7 +6608,12 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
6519
6608
|
return { config: { profiles: {} }, issues: [read.issue] };
|
|
6520
6609
|
if (read.text === void 0)
|
|
6521
6610
|
return { config: { profiles: {} }, issues: [] };
|
|
6522
|
-
const { config, issues } = checkConfigText(read.text, {
|
|
6611
|
+
const { config, issues } = checkConfigText(read.text, {
|
|
6612
|
+
file: path2,
|
|
6613
|
+
tool: app.command,
|
|
6614
|
+
schema: readSchema,
|
|
6615
|
+
repair: extension.configRepair !== false
|
|
6616
|
+
});
|
|
6523
6617
|
return { config: config ?? { profiles: {} }, issues };
|
|
6524
6618
|
}, "loadConfig");
|
|
6525
6619
|
const locked = /* @__PURE__ */ __name((profile, lock) => {
|
|
@@ -6542,6 +6636,15 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
6542
6636
|
throw new CliError("validation_error", `name a profile: \`${app.command} <profile> \u2026\` \u2014 profiles here: ${here.join(", ")} (or set ${PROFILE})`, { profiles: here });
|
|
6543
6637
|
}, "unnamed");
|
|
6544
6638
|
const profilesOf = /* @__PURE__ */ __name((config, env) => profilesHere(app, [...namedProfiles(config), ...extension.profiles?.(env) ?? []], env), "profilesOf");
|
|
6639
|
+
const botsOf = /* @__PURE__ */ __name((config, env) => [.../* @__PURE__ */ new Set([...Object.keys(config.bot?.profiles ?? {}), ...registryProfiles(app, env)])].sort(), "botsOf");
|
|
6640
|
+
const accountsOf = /* @__PURE__ */ __name((config, env, bots) => {
|
|
6641
|
+
const personal = /* @__PURE__ */ new Set([
|
|
6642
|
+
...Object.keys(config.personal?.profiles ?? {}),
|
|
6643
|
+
...profilesWithAccounts(app, env),
|
|
6644
|
+
...extension.profiles?.(env) ?? []
|
|
6645
|
+
]);
|
|
6646
|
+
return profilesOf(config, env).filter((name) => !bots.includes(name) || personal.has(name));
|
|
6647
|
+
}, "accountsOf");
|
|
6545
6648
|
const resolveSettings = /* @__PURE__ */ __name((flags = {}, options = {}) => {
|
|
6546
6649
|
const env = options.env ?? process.env;
|
|
6547
6650
|
const configPath = configPathFor(options);
|
|
@@ -6563,6 +6666,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
6563
6666
|
], void 0);
|
|
6564
6667
|
const profile = locked(named3.value === void 0 ? unnamed(config, env, options.needsProfile !== false) : { value: named3.value, from: named3.from }, lock);
|
|
6565
6668
|
const kind2 = options.kind ?? "personal";
|
|
6669
|
+
const bots = botsOf(config, env);
|
|
6566
6670
|
const name = usableProfileName(profile.value);
|
|
6567
6671
|
const configured = config.profiles[name] ?? {};
|
|
6568
6672
|
const shared = config.defaults ?? {};
|
|
@@ -6654,9 +6758,11 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
6654
6758
|
updateCheck: updateCheck.value,
|
|
6655
6759
|
skillHint: skillHint.value,
|
|
6656
6760
|
configPath,
|
|
6657
|
-
configFound:
|
|
6761
|
+
configFound: existsSync4(configPath),
|
|
6658
6762
|
configuredProfiles: namedProfiles(config),
|
|
6659
6763
|
profilesHere: profilesOf(config, env),
|
|
6764
|
+
accountProfiles: accountsOf(config, env, bots),
|
|
6765
|
+
botProfiles: bots,
|
|
6660
6766
|
sources: {
|
|
6661
6767
|
...ai.sources,
|
|
6662
6768
|
profile: profile.from,
|
|
@@ -6739,10 +6845,20 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
6739
6845
|
if (kind2 !== "bot" && botOnlyKeys.includes(setting2)) {
|
|
6740
6846
|
throw new CliError("validation_error", `${setting2} is a bot's setting \u2014 add --bot`);
|
|
6741
6847
|
}
|
|
6742
|
-
const changed = structuredClone(raw);
|
|
6743
|
-
setAt(changed, at2, level2 === void 0 ? parseValue(value) : value.trim());
|
|
6744
6848
|
const had = new Set(before.map((issue) => issue.at.join(".")));
|
|
6745
|
-
const
|
|
6849
|
+
const tried = /* @__PURE__ */ __name((typed2) => {
|
|
6850
|
+
const changed2 = structuredClone(raw);
|
|
6851
|
+
setAt(changed2, at2, typed2);
|
|
6852
|
+
const added2 = schemaIssues(changed2, readSchema, context2(path2)).find((issue) => !had.has(issue.at.join(".")) || issue.at.join(".") === at2.join("."));
|
|
6853
|
+
return { changed: changed2, added: added2 };
|
|
6854
|
+
}, "tried");
|
|
6855
|
+
const parsed = level2 === void 0 ? parseValue(value) : value.trim();
|
|
6856
|
+
let { changed, added } = tried(parsed);
|
|
6857
|
+
if (added && typeof parsed !== "string") {
|
|
6858
|
+
const asText = tried(value.trim());
|
|
6859
|
+
if (!asText.added)
|
|
6860
|
+
({ changed, added } = asText);
|
|
6861
|
+
}
|
|
6746
6862
|
if (added)
|
|
6747
6863
|
throw new CliError("validation_error", `${setting2} cannot be "${value}": ${added.what}`);
|
|
6748
6864
|
const checked = safeParse(readSchema, changed);
|
|
@@ -6804,7 +6920,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
6804
6920
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
6805
6921
|
}, "given");
|
|
6806
6922
|
|
|
6807
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
6808
6924
|
var setExitCode = /* @__PURE__ */ __name((command, code) => {
|
|
6809
6925
|
const slot = environmentOf(command).exit;
|
|
6810
6926
|
if (slot)
|
|
@@ -6917,7 +7033,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
6917
7033
|
return words.join(" ");
|
|
6918
7034
|
}, "commandPath");
|
|
6919
7035
|
|
|
6920
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
6921
7037
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
6922
7038
|
var FETCH = { remote: "read", local: "write" };
|
|
6923
7039
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -7024,7 +7140,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
7024
7140
|
throw readOnlyRefusal(lock, what);
|
|
7025
7141
|
}, "refuseUnderReadOnly");
|
|
7026
7142
|
|
|
7027
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
7028
7144
|
var text = string();
|
|
7029
7145
|
var id = pipe(string(), minLength(1));
|
|
7030
7146
|
var time = isoTime;
|
|
@@ -7048,7 +7164,7 @@ var author = strictObject({
|
|
|
7048
7164
|
name: nullable(text)
|
|
7049
7165
|
});
|
|
7050
7166
|
|
|
7051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7167
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/account.js
|
|
7052
7168
|
var account = strictObject({
|
|
7053
7169
|
provider: text,
|
|
7054
7170
|
id,
|
|
@@ -7058,7 +7174,7 @@ var account = strictObject({
|
|
|
7058
7174
|
scope: optional(picklist(["personal", "work"]))
|
|
7059
7175
|
});
|
|
7060
7176
|
|
|
7061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7177
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/account-session.js
|
|
7062
7178
|
var accountSession = strictObject({
|
|
7063
7179
|
current: boolean(),
|
|
7064
7180
|
client: nullable(text),
|
|
@@ -7068,7 +7184,7 @@ var accountSession = strictObject({
|
|
|
7068
7184
|
created_at: optional(nullable(time))
|
|
7069
7185
|
});
|
|
7070
7186
|
|
|
7071
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/account-change.js
|
|
7072
7188
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
7073
7189
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
7074
7190
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -7086,17 +7202,19 @@ var accountPrivacy = strictObject({
|
|
|
7086
7202
|
});
|
|
7087
7203
|
var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
|
|
7088
7204
|
|
|
7089
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7205
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
|
|
7090
7206
|
var accountProfile = strictObject({
|
|
7091
7207
|
profile: id,
|
|
7092
7208
|
current: boolean(),
|
|
7093
7209
|
account: nullable(id),
|
|
7094
7210
|
name: nullable(text),
|
|
7095
7211
|
/** False for a profile with no session on this computer; absent when the messenger does not say. */
|
|
7096
|
-
signed_in: optional(boolean())
|
|
7212
|
+
signed_in: optional(boolean()),
|
|
7213
|
+
/** True when the same name is a bot profile too (`<tool> <profile> bot …`); absent otherwise. */
|
|
7214
|
+
bot: optional(literal(true))
|
|
7097
7215
|
});
|
|
7098
7216
|
|
|
7099
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7217
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
|
|
7100
7218
|
var milliseconds = pipe(number(), minValue(0));
|
|
7101
7219
|
var counterReading = strictObject({
|
|
7102
7220
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -7108,7 +7226,7 @@ var counterReading = strictObject({
|
|
|
7108
7226
|
});
|
|
7109
7227
|
var selection = record(string(), unknown());
|
|
7110
7228
|
|
|
7111
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7229
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
|
|
7112
7230
|
var adminRow = strictObject({
|
|
7113
7231
|
ref: reference,
|
|
7114
7232
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -7161,7 +7279,7 @@ var adminReport = strictObject({
|
|
|
7161
7279
|
rows: array(adminRow)
|
|
7162
7280
|
});
|
|
7163
7281
|
|
|
7164
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7282
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
7165
7283
|
var closeSuggestion = strictObject({
|
|
7166
7284
|
as: picklist(["done", "dismissed"]),
|
|
7167
7285
|
/** The agent's name. */
|
|
@@ -7219,7 +7337,7 @@ var task = strictObject({
|
|
|
7219
7337
|
updated_at: optional(time)
|
|
7220
7338
|
});
|
|
7221
7339
|
|
|
7222
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
7223
7341
|
var agendaChat = strictObject({
|
|
7224
7342
|
chat: reference,
|
|
7225
7343
|
title: nullable(text),
|
|
@@ -7289,11 +7407,11 @@ var agenda = strictObject({
|
|
|
7289
7407
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
7290
7408
|
});
|
|
7291
7409
|
|
|
7292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
|
|
7293
7411
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
7294
7412
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
7295
7413
|
|
|
7296
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7414
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
7297
7415
|
var attachment = strictObject({
|
|
7298
7416
|
/** The message it came with, as a locator; absent inside that message. */
|
|
7299
7417
|
message: optional(reference),
|
|
@@ -7331,7 +7449,7 @@ var attachment = strictObject({
|
|
|
7331
7449
|
});
|
|
7332
7450
|
var hitFile = strictObject({ position: count2, kind: text, name: optional(text), size: optional(count2) });
|
|
7333
7451
|
|
|
7334
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7452
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
|
|
7335
7453
|
var actionableError = objectWithRest({
|
|
7336
7454
|
code: text,
|
|
7337
7455
|
message: text,
|
|
@@ -7348,7 +7466,7 @@ var batchResult = strictObject({
|
|
|
7348
7466
|
max_error_percent: count2
|
|
7349
7467
|
});
|
|
7350
7468
|
|
|
7351
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7469
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
|
|
7352
7470
|
var extractionItem = strictObject({
|
|
7353
7471
|
ref: reference,
|
|
7354
7472
|
attachment: count2,
|
|
@@ -7381,7 +7499,7 @@ var extractionReport = strictObject({
|
|
|
7381
7499
|
cursor: optional(text)
|
|
7382
7500
|
});
|
|
7383
7501
|
|
|
7384
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7502
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
|
|
7385
7503
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
7386
7504
|
var attachmentBytes = strictObject({
|
|
7387
7505
|
ref: reference,
|
|
@@ -7409,7 +7527,7 @@ var attachmentTextChange = strictObject({
|
|
|
7409
7527
|
replaced: nullable(picklist(["extracted", "agent"]))
|
|
7410
7528
|
});
|
|
7411
7529
|
|
|
7412
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7530
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/chart.js
|
|
7413
7531
|
var chart = strictObject({
|
|
7414
7532
|
version: literal(1),
|
|
7415
7533
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -7424,7 +7542,7 @@ var chart = strictObject({
|
|
|
7424
7542
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count2, height: count2 }))
|
|
7425
7543
|
});
|
|
7426
7544
|
|
|
7427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/member.js
|
|
7428
7546
|
var member = strictObject({
|
|
7429
7547
|
id,
|
|
7430
7548
|
name: nullable(text),
|
|
@@ -7447,7 +7565,7 @@ var member = strictObject({
|
|
|
7447
7565
|
check: optional(record(string(), unknown()))
|
|
7448
7566
|
});
|
|
7449
7567
|
|
|
7450
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7568
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/chat.js
|
|
7451
7569
|
var setting = optional(nullable(boolean()));
|
|
7452
7570
|
var chat = strictObject({
|
|
7453
7571
|
ref: reference,
|
|
@@ -7488,7 +7606,7 @@ var chat = strictObject({
|
|
|
7488
7606
|
members: optional(array(member))
|
|
7489
7607
|
});
|
|
7490
7608
|
|
|
7491
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7609
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/folder.js
|
|
7492
7610
|
var named2 = strictObject({
|
|
7493
7611
|
id,
|
|
7494
7612
|
title: nullable(text),
|
|
@@ -7511,7 +7629,7 @@ var folder = strictObject({
|
|
|
7511
7629
|
excluded_chats: optional(array(named2))
|
|
7512
7630
|
});
|
|
7513
7631
|
|
|
7514
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
|
|
7515
7633
|
var inviteLink = strictObject({
|
|
7516
7634
|
link: text,
|
|
7517
7635
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -7527,7 +7645,7 @@ var inviteLink = strictObject({
|
|
|
7527
7645
|
joined_count: optional(count2)
|
|
7528
7646
|
});
|
|
7529
7647
|
|
|
7530
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
|
|
7531
7649
|
var operated = { operation_id: id, chat_id: id };
|
|
7532
7650
|
var group = strictObject({
|
|
7533
7651
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -7607,7 +7725,7 @@ var chatFolderOrder = strictObject({
|
|
|
7607
7725
|
folders: array(strictObject({ id, title: text }))
|
|
7608
7726
|
});
|
|
7609
7727
|
|
|
7610
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7728
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
|
|
7611
7729
|
var operated2 = { operation_id: id, chat_id: id };
|
|
7612
7730
|
var chatRemoval = strictObject(operated2);
|
|
7613
7731
|
var chatMuting = strictObject({
|
|
@@ -7618,7 +7736,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
7618
7736
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
7619
7737
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
7620
7738
|
|
|
7621
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7739
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
|
|
7622
7740
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
7623
7741
|
var chatEvent = strictObject({
|
|
7624
7742
|
chat_id: id,
|
|
@@ -7635,7 +7753,7 @@ var chatEvent = strictObject({
|
|
|
7635
7753
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
7636
7754
|
});
|
|
7637
7755
|
|
|
7638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7756
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
|
|
7639
7757
|
var chatMetadata = strictObject({
|
|
7640
7758
|
chat_id: id,
|
|
7641
7759
|
title: nullable(text),
|
|
@@ -7650,7 +7768,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
7650
7768
|
has_more: boolean()
|
|
7651
7769
|
});
|
|
7652
7770
|
|
|
7653
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7771
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
|
|
7654
7772
|
var action = picklist(["report", "delete", "remove"]);
|
|
7655
7773
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
7656
7774
|
var chatRules = strictObject({
|
|
@@ -7687,7 +7805,7 @@ var chatModeration = strictObject({
|
|
|
7687
7805
|
}))
|
|
7688
7806
|
});
|
|
7689
7807
|
|
|
7690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7808
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
|
|
7691
7809
|
var optionalCount = optional(count2);
|
|
7692
7810
|
var minutes = nullable(number());
|
|
7693
7811
|
var chatStats = strictObject({
|
|
@@ -7761,7 +7879,7 @@ var taskStats = strictObject({
|
|
|
7761
7879
|
}))
|
|
7762
7880
|
});
|
|
7763
7881
|
|
|
7764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
|
|
7765
7883
|
var memberCount = strictObject({
|
|
7766
7884
|
day: pipe(text, isoDate()),
|
|
7767
7885
|
participants: nullable(count2),
|
|
@@ -7784,7 +7902,7 @@ var chatTracking = strictObject({
|
|
|
7784
7902
|
tracked: boolean()
|
|
7785
7903
|
});
|
|
7786
7904
|
|
|
7787
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7905
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
7788
7906
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
7789
7907
|
var contactSync = strictObject({ added: count2, changed: count2, known: count2 });
|
|
7790
7908
|
var profileFields = {
|
|
@@ -7822,7 +7940,7 @@ var profileFields = {
|
|
|
7822
7940
|
}))
|
|
7823
7941
|
};
|
|
7824
7942
|
|
|
7825
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7943
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
7826
7944
|
var contact = strictObject({
|
|
7827
7945
|
ref: reference,
|
|
7828
7946
|
id,
|
|
@@ -7853,7 +7971,7 @@ var contact = strictObject({
|
|
|
7853
7971
|
notes: optional(array(strictObject({ id, text, revision: count2, created_at: time, updated_at: time })))
|
|
7854
7972
|
});
|
|
7855
7973
|
|
|
7856
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7974
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
7857
7975
|
var WEIGHTS = {
|
|
7858
7976
|
bot: 3,
|
|
7859
7977
|
scam: 3,
|
|
@@ -7878,7 +7996,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
7878
7996
|
var DIGITS = /\d{5,}/;
|
|
7879
7997
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
7880
7998
|
|
|
7881
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
7882
8000
|
var linkedIdentity = strictObject({
|
|
7883
8001
|
provider: text,
|
|
7884
8002
|
id,
|
|
@@ -7919,7 +8037,7 @@ var contactCheck = strictObject({
|
|
|
7919
8037
|
checked_at: time
|
|
7920
8038
|
});
|
|
7921
8039
|
|
|
7922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8040
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
7923
8041
|
var quoted = strictObject({
|
|
7924
8042
|
id,
|
|
7925
8043
|
sender_id: nullable(id),
|
|
@@ -8038,7 +8156,7 @@ var message = strictObject({
|
|
|
8038
8156
|
provider_metadata: providerMetadata
|
|
8039
8157
|
});
|
|
8040
8158
|
|
|
8041
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8159
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
8042
8160
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
8043
8161
|
var contextMessage = strictObject({
|
|
8044
8162
|
locator: reference,
|
|
@@ -8236,7 +8354,7 @@ var contactPreparation = strictObject({
|
|
|
8236
8354
|
})
|
|
8237
8355
|
});
|
|
8238
8356
|
|
|
8239
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
|
|
8240
8358
|
var contactNote = strictObject({
|
|
8241
8359
|
id,
|
|
8242
8360
|
/** The contact, as a `contact:` reference. */
|
|
@@ -8248,13 +8366,13 @@ var contactNote = strictObject({
|
|
|
8248
8366
|
updated_at: time
|
|
8249
8367
|
});
|
|
8250
8368
|
|
|
8251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
|
|
8252
8370
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
8253
8371
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
8254
8372
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
8255
8373
|
var contactImport = strictObject({ operation_id: id, sent: count2, recognised: array(addressBookPerson) });
|
|
8256
8374
|
|
|
8257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8375
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
8258
8376
|
var conversation = strictObject({
|
|
8259
8377
|
id,
|
|
8260
8378
|
chat: reference,
|
|
@@ -8269,7 +8387,7 @@ var conversation = strictObject({
|
|
|
8269
8387
|
rules_version: count2
|
|
8270
8388
|
});
|
|
8271
8389
|
|
|
8272
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8390
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
|
|
8273
8391
|
var conversationBuild = strictObject({
|
|
8274
8392
|
chat: id,
|
|
8275
8393
|
messages: count2,
|
|
@@ -8294,7 +8412,7 @@ var catchUpPreparation = strictObject({
|
|
|
8294
8412
|
prepared: optional(conversationPreparation)
|
|
8295
8413
|
});
|
|
8296
8414
|
|
|
8297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8415
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
|
|
8298
8416
|
var conversationDetails = union([
|
|
8299
8417
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
8300
8418
|
message
|
|
@@ -8384,7 +8502,7 @@ var conversationHit = strictObject({
|
|
|
8384
8502
|
stale: boolean()
|
|
8385
8503
|
});
|
|
8386
8504
|
|
|
8387
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8505
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/counters.js
|
|
8388
8506
|
var counters = strictObject({
|
|
8389
8507
|
cutoff: time,
|
|
8390
8508
|
max_age_ms: milliseconds,
|
|
@@ -8414,7 +8532,7 @@ var counterRefresh = strictObject({
|
|
|
8414
8532
|
complete: optional(boolean())
|
|
8415
8533
|
});
|
|
8416
8534
|
|
|
8417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
8418
8536
|
var document = strictObject({
|
|
8419
8537
|
ref: reference,
|
|
8420
8538
|
id,
|
|
@@ -8429,7 +8547,7 @@ var document = strictObject({
|
|
|
8429
8547
|
owners: optional(array(text))
|
|
8430
8548
|
});
|
|
8431
8549
|
|
|
8432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/document-link.js
|
|
8433
8551
|
var documentLink = strictObject({
|
|
8434
8552
|
ref: reference,
|
|
8435
8553
|
url: text,
|
|
@@ -8440,7 +8558,7 @@ var documentLink = strictObject({
|
|
|
8440
8558
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
8441
8559
|
});
|
|
8442
8560
|
|
|
8443
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8561
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/evidence.js
|
|
8444
8562
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
8445
8563
|
var contribution = strictObject({
|
|
8446
8564
|
message: evidenceMessage,
|
|
@@ -8470,7 +8588,7 @@ var retentionStay = strictObject({
|
|
|
8470
8588
|
});
|
|
8471
8589
|
var evidence = union([contribution, retentionStay]);
|
|
8472
8590
|
|
|
8473
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8591
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/fact.js
|
|
8474
8592
|
var fact = strictObject({
|
|
8475
8593
|
ref: reference,
|
|
8476
8594
|
id,
|
|
@@ -8500,7 +8618,7 @@ var fact = strictObject({
|
|
|
8500
8618
|
updated_at: time
|
|
8501
8619
|
});
|
|
8502
8620
|
|
|
8503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/hit.js
|
|
8504
8622
|
var hit = strictObject({
|
|
8505
8623
|
kind: picklist(["message", "mail", "note", "document", "event", "meeting"]),
|
|
8506
8624
|
ref: reference,
|
|
@@ -8538,7 +8656,7 @@ var hit = strictObject({
|
|
|
8538
8656
|
untrusted
|
|
8539
8657
|
});
|
|
8540
8658
|
|
|
8541
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8659
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/identity.js
|
|
8542
8660
|
var identity = strictObject({
|
|
8543
8661
|
ref: reference,
|
|
8544
8662
|
provider: text,
|
|
@@ -8551,7 +8669,7 @@ var identity = strictObject({
|
|
|
8551
8669
|
person: optional(nullable(reference))
|
|
8552
8670
|
});
|
|
8553
8671
|
|
|
8554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8672
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
|
|
8555
8673
|
var imageEmbedding = strictObject({
|
|
8556
8674
|
model: text,
|
|
8557
8675
|
embedded: count2,
|
|
@@ -8560,13 +8678,13 @@ var imageEmbedding = strictObject({
|
|
|
8560
8678
|
more: boolean()
|
|
8561
8679
|
});
|
|
8562
8680
|
|
|
8563
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8564
8682
|
import { spawn } from "node:child_process";
|
|
8565
8683
|
import { randomBytes as randomBytes2 } from "node:crypto";
|
|
8566
|
-
import { closeSync, existsSync as
|
|
8567
|
-
import { dirname as dirname2, join as
|
|
8684
|
+
import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync3, openSync, readdirSync as readdirSync4, readFileSync as readFileSync5, realpathSync, rmSync as rmSync3 } from "node:fs";
|
|
8685
|
+
import { dirname as dirname2, join as join5 } from "node:path";
|
|
8568
8686
|
|
|
8569
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8687
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
8570
8688
|
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
8571
8689
|
const total = input.total ?? null;
|
|
8572
8690
|
const updated = input.updatedAt ?? null;
|
|
@@ -8582,7 +8700,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
8582
8700
|
};
|
|
8583
8701
|
}, "progressOf");
|
|
8584
8702
|
|
|
8585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8703
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
8586
8704
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
8587
8705
|
const run = currentRun();
|
|
8588
8706
|
const trace = traceId ?? run.traceId;
|
|
@@ -8596,7 +8714,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
8596
8714
|
}));
|
|
8597
8715
|
}, "recordLogFor");
|
|
8598
8716
|
|
|
8599
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8717
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8600
8718
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
8601
8719
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
8602
8720
|
const out = openSync(log, "a", 384);
|
|
@@ -8612,23 +8730,23 @@ var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
|
8612
8730
|
closeSync(out);
|
|
8613
8731
|
}
|
|
8614
8732
|
}, "spawnDetached");
|
|
8615
|
-
var jobsDir = /* @__PURE__ */ __name((app, env) =>
|
|
8616
|
-
var jobPath = /* @__PURE__ */ __name((dir, id6) =>
|
|
8733
|
+
var jobsDir = /* @__PURE__ */ __name((app, env) => join5(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "backfill"), "jobsDir");
|
|
8734
|
+
var jobPath = /* @__PURE__ */ __name((dir, id6) => join5(dir, `${id6}.json`), "jobPath");
|
|
8617
8735
|
var saveJob = /* @__PURE__ */ __name((dir, job2) => {
|
|
8618
8736
|
mkdirSync3(dir, { recursive: true, mode: 448 });
|
|
8619
8737
|
writeSecurely(jobPath(dir, job2.id), `${JSON.stringify(job2, null, 2)}
|
|
8620
8738
|
`, 384);
|
|
8621
8739
|
}, "saveJob");
|
|
8622
8740
|
var readJob = /* @__PURE__ */ __name((dir, id6) => {
|
|
8623
|
-
if (!/^[\w-]+$/.test(id6) || !
|
|
8741
|
+
if (!/^[\w-]+$/.test(id6) || !existsSync5(jobPath(dir, id6)))
|
|
8624
8742
|
return void 0;
|
|
8625
8743
|
try {
|
|
8626
|
-
return JSON.parse(
|
|
8744
|
+
return JSON.parse(readFileSync5(jobPath(dir, id6), "utf8"));
|
|
8627
8745
|
} catch {
|
|
8628
8746
|
return void 0;
|
|
8629
8747
|
}
|
|
8630
8748
|
}, "readJob");
|
|
8631
|
-
var recordsPath = /* @__PURE__ */ __name((dir, id6) =>
|
|
8749
|
+
var recordsPath = /* @__PURE__ */ __name((dir, id6) => join5(dir, `${id6}.jsonl`), "recordsPath");
|
|
8632
8750
|
var tracedJob = /* @__PURE__ */ __name((env) => {
|
|
8633
8751
|
const trace = childTrace();
|
|
8634
8752
|
return { env: { ...env, TRACEPARENT: trace.traceparent }, traceId: trace.traceId };
|
|
@@ -8665,7 +8783,7 @@ var removeJob = /* @__PURE__ */ __name((dir, job2) => {
|
|
|
8665
8783
|
if (dirname2(job2.log) === dir)
|
|
8666
8784
|
rmSync3(job2.log, { force: true });
|
|
8667
8785
|
}, "removeJob");
|
|
8668
|
-
var listJobs = /* @__PURE__ */ __name((dir) =>
|
|
8786
|
+
var listJobs = /* @__PURE__ */ __name((dir) => existsSync5(dir) ? readdirSync4(dir).filter((name) => name.endsWith(".json")).flatMap((name) => readJob(dir, name.slice(0, -".json".length)) ?? []).sort((a, b) => b.startedAt.localeCompare(a.startedAt)) : [], "listJobs");
|
|
8669
8787
|
var jobDetails = /* @__PURE__ */ __name((job2) => ({
|
|
8670
8788
|
job: job2.id,
|
|
8671
8789
|
profile: job2.profile,
|
|
@@ -8731,7 +8849,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
8731
8849
|
const startedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
8732
8850
|
const id6 = `${startedAt.replace(/[-:]/g, "").slice(0, 15)}-${randomBytes2(3).toString("hex")}`;
|
|
8733
8851
|
mkdirSync3(dir, { recursive: true, mode: 448 });
|
|
8734
|
-
const log =
|
|
8852
|
+
const log = join5(dir, `${id6}.log`);
|
|
8735
8853
|
const job2 = {
|
|
8736
8854
|
id: id6,
|
|
8737
8855
|
chat: input.chat,
|
|
@@ -8751,7 +8869,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
8751
8869
|
return { job: id6, pid, chat: input.chat, log };
|
|
8752
8870
|
}, "startArchiveJob");
|
|
8753
8871
|
|
|
8754
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8872
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/job.js
|
|
8755
8873
|
var problem = strictObject({ code: text, message: text });
|
|
8756
8874
|
var job = strictObject({
|
|
8757
8875
|
id,
|
|
@@ -8774,7 +8892,7 @@ var job = strictObject({
|
|
|
8774
8892
|
error: optional(problem)
|
|
8775
8893
|
});
|
|
8776
8894
|
|
|
8777
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8895
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/join-request.js
|
|
8778
8896
|
var joinRequest = strictObject({
|
|
8779
8897
|
person_id: id,
|
|
8780
8898
|
name: nullable(text),
|
|
@@ -8785,7 +8903,7 @@ var joinRequest = strictObject({
|
|
|
8785
8903
|
about: optional(text)
|
|
8786
8904
|
});
|
|
8787
8905
|
|
|
8788
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8906
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
8789
8907
|
var organization = strictObject({
|
|
8790
8908
|
id,
|
|
8791
8909
|
ref: reference,
|
|
@@ -8815,7 +8933,7 @@ var reminder = strictObject({
|
|
|
8815
8933
|
receipt: nullable(text)
|
|
8816
8934
|
});
|
|
8817
8935
|
|
|
8818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/list-results.js
|
|
8819
8937
|
var botProfile = strictObject({
|
|
8820
8938
|
name: text,
|
|
8821
8939
|
token: text,
|
|
@@ -8883,7 +9001,7 @@ var stickerInventory = strictObject({
|
|
|
8883
9001
|
url: optional(nullable(text))
|
|
8884
9002
|
});
|
|
8885
9003
|
|
|
8886
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
|
|
8887
9005
|
var pollVote = strictObject({
|
|
8888
9006
|
person_id: id,
|
|
8889
9007
|
name: nullable(text),
|
|
@@ -8893,7 +9011,7 @@ var pollVote = strictObject({
|
|
|
8893
9011
|
voted_at: time
|
|
8894
9012
|
});
|
|
8895
9013
|
|
|
8896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9014
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/listener.js
|
|
8897
9015
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
8898
9016
|
var observation = strictObject({
|
|
8899
9017
|
value: pipe(number(), minValue(0)),
|
|
@@ -8935,7 +9053,7 @@ var serveSummary = strictObject({
|
|
|
8935
9053
|
tasks: optional(strictObject({ added: count2, closed: count2, review: count2 }))
|
|
8936
9054
|
});
|
|
8937
9055
|
|
|
8938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9056
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
|
|
8939
9057
|
var mailCounts = strictObject({
|
|
8940
9058
|
by: picklist(["day", "week", "sender"]),
|
|
8941
9059
|
received: count2,
|
|
@@ -8950,7 +9068,7 @@ var mailCounts = strictObject({
|
|
|
8950
9068
|
}))
|
|
8951
9069
|
});
|
|
8952
9070
|
|
|
8953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9071
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
|
|
8954
9072
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
8955
9073
|
var base = { id, evidence: array(evidence2) };
|
|
8956
9074
|
var finding = variant("kind", [
|
|
@@ -9016,7 +9134,7 @@ var mailFindings = strictObject({
|
|
|
9016
9134
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome) }))
|
|
9017
9135
|
});
|
|
9018
9136
|
|
|
9019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
9020
9138
|
var mediaArchive = strictObject({
|
|
9021
9139
|
directory: text,
|
|
9022
9140
|
chats: count2,
|
|
@@ -9048,7 +9166,7 @@ var mediaArchiveTimer = union([
|
|
|
9048
9166
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
9049
9167
|
]);
|
|
9050
9168
|
|
|
9051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
9052
9170
|
var preparationId = pipe(string(), minLength(1));
|
|
9053
9171
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
9054
9172
|
var preparationTime = nullable(isoTime);
|
|
@@ -9140,7 +9258,7 @@ var preparationMeeting = strictObject({
|
|
|
9140
9258
|
updated_at: isoTime
|
|
9141
9259
|
});
|
|
9142
9260
|
|
|
9143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
9144
9262
|
var meetingEvidence = preparationEvidence;
|
|
9145
9263
|
var meetingPersonContext = strictObject({
|
|
9146
9264
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -9162,7 +9280,7 @@ var meetingPersonContext = strictObject({
|
|
|
9162
9280
|
})
|
|
9163
9281
|
});
|
|
9164
9282
|
|
|
9165
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9283
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
9166
9284
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
9167
9285
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
9168
9286
|
var finding2 = variant("kind", [
|
|
@@ -9200,7 +9318,7 @@ var meetingFindings = strictObject({
|
|
|
9200
9318
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
9201
9319
|
});
|
|
9202
9320
|
|
|
9203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9321
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
9204
9322
|
var communicationCoverage = strictObject({
|
|
9205
9323
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
9206
9324
|
query: string(),
|
|
@@ -9245,7 +9363,7 @@ var preparationCommunications = strictObject({
|
|
|
9245
9363
|
}))
|
|
9246
9364
|
});
|
|
9247
9365
|
|
|
9248
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9366
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
9249
9367
|
var meetingPreparation = strictObject({
|
|
9250
9368
|
communications: optional(preparationCommunications),
|
|
9251
9369
|
schema_version: literal(1),
|
|
@@ -9358,7 +9476,7 @@ var meetingPreparation = strictObject({
|
|
|
9358
9476
|
})
|
|
9359
9477
|
});
|
|
9360
9478
|
|
|
9361
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9479
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
9362
9480
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
9363
9481
|
var id3 = pipe(string(), minLength(1));
|
|
9364
9482
|
var text3 = string();
|
|
@@ -9422,7 +9540,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
9422
9540
|
})
|
|
9423
9541
|
});
|
|
9424
9542
|
|
|
9425
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9543
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
9426
9544
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
9427
9545
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
9428
9546
|
var meetingSeriesInventory = strictObject({
|
|
@@ -9452,7 +9570,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
9452
9570
|
})
|
|
9453
9571
|
});
|
|
9454
9572
|
|
|
9455
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9573
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
9456
9574
|
var text4 = string();
|
|
9457
9575
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
9458
9576
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -9469,7 +9587,7 @@ var meetingTaskProposal = strictObject({
|
|
|
9469
9587
|
persistence: literal("proposal-only")
|
|
9470
9588
|
});
|
|
9471
9589
|
|
|
9472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9590
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
9473
9591
|
var memory = strictObject({
|
|
9474
9592
|
ref: reference,
|
|
9475
9593
|
id,
|
|
@@ -9496,7 +9614,7 @@ var memory = strictObject({
|
|
|
9496
9614
|
updated_at: time
|
|
9497
9615
|
});
|
|
9498
9616
|
|
|
9499
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9617
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
9500
9618
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
9501
9619
|
var status = picklist(["found", "linked", "dismissed"]);
|
|
9502
9620
|
var mention = strictObject({
|
|
@@ -9539,13 +9657,13 @@ var mentionRebuild = strictObject({
|
|
|
9539
9657
|
mentions: count2
|
|
9540
9658
|
});
|
|
9541
9659
|
|
|
9542
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9660
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
9543
9661
|
var operated3 = { operation_id: id, chat_id: id };
|
|
9544
9662
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
9545
9663
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
9546
9664
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
9547
9665
|
|
|
9548
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9666
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
9549
9667
|
var messageTranscript = strictObject({
|
|
9550
9668
|
message_id: id,
|
|
9551
9669
|
text,
|
|
@@ -9603,7 +9721,7 @@ var evidencePacket = strictObject({
|
|
|
9603
9721
|
}))
|
|
9604
9722
|
});
|
|
9605
9723
|
|
|
9606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9724
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
9607
9725
|
var messageThread = strictObject({
|
|
9608
9726
|
ref: reference,
|
|
9609
9727
|
chat: id,
|
|
@@ -9620,7 +9738,7 @@ var messageThread = strictObject({
|
|
|
9620
9738
|
});
|
|
9621
9739
|
var messageContext = union([message, messageThread]);
|
|
9622
9740
|
|
|
9623
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9741
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
9624
9742
|
var messageCounts = strictObject({
|
|
9625
9743
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
9626
9744
|
total: count2,
|
|
@@ -9633,7 +9751,7 @@ var messageCounts = strictObject({
|
|
|
9633
9751
|
}))
|
|
9634
9752
|
});
|
|
9635
9753
|
|
|
9636
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9754
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
9637
9755
|
var messageLink = strictObject({
|
|
9638
9756
|
ref: reference,
|
|
9639
9757
|
url: nullable(text),
|
|
@@ -9650,7 +9768,7 @@ var messageLink = strictObject({
|
|
|
9650
9768
|
})))
|
|
9651
9769
|
});
|
|
9652
9770
|
|
|
9653
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9771
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
9654
9772
|
var savedMessageFile = strictObject({
|
|
9655
9773
|
kind: text,
|
|
9656
9774
|
path: text,
|
|
@@ -9737,7 +9855,7 @@ var messageSyncAll = strictObject({
|
|
|
9737
9855
|
var messageSyncStarted = strictObject({ job: id, pid: count2, chat: text, log: text });
|
|
9738
9856
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
9739
9857
|
|
|
9740
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
9741
9859
|
var messageWrite = strictObject({
|
|
9742
9860
|
operation_id: id,
|
|
9743
9861
|
message,
|
|
@@ -9752,7 +9870,7 @@ var draftWrite = strictObject({
|
|
|
9752
9870
|
});
|
|
9753
9871
|
var messageSend = union([messageWrite, draftWrite]);
|
|
9754
9872
|
|
|
9755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9873
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
9756
9874
|
var model2 = strictObject({
|
|
9757
9875
|
id,
|
|
9758
9876
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -9769,7 +9887,7 @@ var model2 = strictObject({
|
|
|
9769
9887
|
path: text
|
|
9770
9888
|
});
|
|
9771
9889
|
|
|
9772
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9890
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
9773
9891
|
var source = picklist(["environment", "keyring", "file"]);
|
|
9774
9892
|
var modelKey = strictObject({
|
|
9775
9893
|
provider: text,
|
|
@@ -9779,7 +9897,7 @@ var modelKey = strictObject({
|
|
|
9779
9897
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
9780
9898
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
9781
9899
|
|
|
9782
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9900
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/note.js
|
|
9783
9901
|
var link = {
|
|
9784
9902
|
target_text: nullable(text),
|
|
9785
9903
|
kind: text,
|
|
@@ -9820,7 +9938,7 @@ var note = strictObject({
|
|
|
9820
9938
|
backlinks: optional(array(strictObject({ from: reference, ...link })))
|
|
9821
9939
|
});
|
|
9822
9940
|
|
|
9823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9941
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
9824
9942
|
var versus = strictObject({ current: number(), previous: number() });
|
|
9825
9943
|
var person = { person_ref: reference, name: nullable(text) };
|
|
9826
9944
|
var graph = strictObject({
|
|
@@ -9854,14 +9972,14 @@ var officialStats = strictObject({
|
|
|
9854
9972
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
9855
9973
|
});
|
|
9856
9974
|
|
|
9857
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
9858
9976
|
var person2 = strictObject({
|
|
9859
9977
|
ref: reference,
|
|
9860
9978
|
name: nullable(text),
|
|
9861
9979
|
identities: optional(array(identity))
|
|
9862
9980
|
});
|
|
9863
9981
|
|
|
9864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9982
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
9865
9983
|
var poll = strictObject({
|
|
9866
9984
|
chat_id: id,
|
|
9867
9985
|
message_id: id,
|
|
@@ -9877,11 +9995,11 @@ var poll = strictObject({
|
|
|
9877
9995
|
});
|
|
9878
9996
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
9879
9997
|
|
|
9880
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9998
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
9881
9999
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
9882
10000
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
9883
10001
|
|
|
9884
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10002
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
9885
10003
|
var figures = record(string(), number());
|
|
9886
10004
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
9887
10005
|
var rankingRow = strictObject({
|
|
@@ -9928,7 +10046,7 @@ var ranking = strictObject({
|
|
|
9928
10046
|
rows: array(rankingRow)
|
|
9929
10047
|
});
|
|
9930
10048
|
|
|
9931
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10049
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
9932
10050
|
var reaction = strictObject({
|
|
9933
10051
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
9934
10052
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -9936,7 +10054,7 @@ var reaction = strictObject({
|
|
|
9936
10054
|
reacted_at: time
|
|
9937
10055
|
});
|
|
9938
10056
|
|
|
9939
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10057
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
9940
10058
|
var reactionChange = strictObject({
|
|
9941
10059
|
operation_id: id,
|
|
9942
10060
|
chat_id: id,
|
|
@@ -9944,7 +10062,7 @@ var reactionChange = strictObject({
|
|
|
9944
10062
|
reaction: nullable(text)
|
|
9945
10063
|
});
|
|
9946
10064
|
|
|
9947
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10065
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
9948
10066
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
9949
10067
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
9950
10068
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -9955,7 +10073,7 @@ var recipientChange = strictObject({
|
|
|
9955
10073
|
...partial(recipientOff).entries
|
|
9956
10074
|
});
|
|
9957
10075
|
|
|
9958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10076
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
9959
10077
|
var events = array(record(string(), unknown()));
|
|
9960
10078
|
var recordedRun = strictObject({
|
|
9961
10079
|
run_id: id,
|
|
@@ -10027,7 +10145,7 @@ var runHit = strictObject({
|
|
|
10027
10145
|
});
|
|
10028
10146
|
var runLocation = strictObject({ path: text });
|
|
10029
10147
|
|
|
10030
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10148
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
10031
10149
|
var relationship = strictObject({
|
|
10032
10150
|
id,
|
|
10033
10151
|
from: reference,
|
|
@@ -10044,7 +10162,7 @@ var relationship = strictObject({
|
|
|
10044
10162
|
created_at: time
|
|
10045
10163
|
});
|
|
10046
10164
|
|
|
10047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10165
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
10048
10166
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
10049
10167
|
var figures2 = { replies: count2, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
10050
10168
|
var responseTimes = strictObject({
|
|
@@ -10061,7 +10179,7 @@ var waitingChats = strictObject({
|
|
|
10061
10179
|
by_kind: strictObject({ private: count2, group: count2 })
|
|
10062
10180
|
});
|
|
10063
10181
|
|
|
10064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10182
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
10065
10183
|
var retentionCohort = strictObject({
|
|
10066
10184
|
/** The first day of the joining day or week. */
|
|
10067
10185
|
cohort: text,
|
|
@@ -10109,7 +10227,7 @@ var retention = strictObject({
|
|
|
10109
10227
|
rows: array(retentionCohort)
|
|
10110
10228
|
});
|
|
10111
10229
|
|
|
10112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10230
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
10113
10231
|
var savedSearch = strictObject({
|
|
10114
10232
|
id,
|
|
10115
10233
|
/** `null` for a run in the history. */
|
|
@@ -10126,7 +10244,7 @@ var savedSearch = strictObject({
|
|
|
10126
10244
|
});
|
|
10127
10245
|
var searchHistoryClear = strictObject({ cleared: count2 });
|
|
10128
10246
|
|
|
10129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10247
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
10130
10248
|
var sendAttempt = strictObject({
|
|
10131
10249
|
at: time,
|
|
10132
10250
|
profile: text,
|
|
@@ -10154,7 +10272,7 @@ var sendAttempt = strictObject({
|
|
|
10154
10272
|
error_code: optional(text)
|
|
10155
10273
|
});
|
|
10156
10274
|
|
|
10157
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10275
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
10158
10276
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
10159
10277
|
var schema = strictObject({ version: count2, min_compatible: count2, writable: boolean(), speaks: count2 });
|
|
10160
10278
|
var infoSchema = strictObject({
|
|
@@ -10362,7 +10480,7 @@ var storeRepair = union([
|
|
|
10362
10480
|
]);
|
|
10363
10481
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count2 }) });
|
|
10364
10482
|
|
|
10365
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10483
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
10366
10484
|
var range = strictObject({ from: number(), to: number() });
|
|
10367
10485
|
var storeChatStatus = strictObject({
|
|
10368
10486
|
chat_id: id,
|
|
@@ -10460,7 +10578,7 @@ var storeJobRetry = union([
|
|
|
10460
10578
|
]);
|
|
10461
10579
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
10462
10580
|
|
|
10463
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10581
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
10464
10582
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
10465
10583
|
var storeTable = strictObject({
|
|
10466
10584
|
name: text,
|
|
@@ -10469,7 +10587,7 @@ var storeTable = strictObject({
|
|
|
10469
10587
|
bytes: optional(nullable(count2))
|
|
10470
10588
|
});
|
|
10471
10589
|
|
|
10472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10590
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
10473
10591
|
var tagTarget = variant("type", [
|
|
10474
10592
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
10475
10593
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -10500,7 +10618,7 @@ var automaticTags = strictObject({
|
|
|
10500
10618
|
dry_run: boolean()
|
|
10501
10619
|
});
|
|
10502
10620
|
|
|
10503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
10504
10622
|
var tagging = strictObject({
|
|
10505
10623
|
tag: text,
|
|
10506
10624
|
type: picklist(TAG_TYPES),
|
|
@@ -10513,7 +10631,7 @@ var tagging = strictObject({
|
|
|
10513
10631
|
created_at: time
|
|
10514
10632
|
});
|
|
10515
10633
|
|
|
10516
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10634
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
10517
10635
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
10518
10636
|
var taskPair = strictObject({
|
|
10519
10637
|
task: nullable(side),
|
|
@@ -10536,7 +10654,7 @@ var taskPair = strictObject({
|
|
|
10536
10654
|
created_at: time
|
|
10537
10655
|
});
|
|
10538
10656
|
|
|
10539
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
10540
10658
|
var nullableTime = nullable(time);
|
|
10541
10659
|
var link2 = strictObject({
|
|
10542
10660
|
id,
|
|
@@ -10706,7 +10824,7 @@ var taskReview = strictObject({
|
|
|
10706
10824
|
untrusted
|
|
10707
10825
|
});
|
|
10708
10826
|
|
|
10709
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10827
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
10710
10828
|
var topic = strictObject({
|
|
10711
10829
|
id,
|
|
10712
10830
|
title: text,
|
|
@@ -10720,7 +10838,7 @@ var topic = strictObject({
|
|
|
10720
10838
|
untrusted
|
|
10721
10839
|
});
|
|
10722
10840
|
|
|
10723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10841
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
10724
10842
|
var ENTITIES = {
|
|
10725
10843
|
sync_progress: progress,
|
|
10726
10844
|
...MEETING_RESULT_ENTITIES,
|
|
@@ -11002,7 +11120,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
11002
11120
|
return [name, definition];
|
|
11003
11121
|
})), "entityDefinitions");
|
|
11004
11122
|
|
|
11005
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11123
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
11006
11124
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
11007
11125
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
11008
11126
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -11036,8 +11154,8 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
11036
11154
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
11037
11155
|
}, "answerRow");
|
|
11038
11156
|
|
|
11039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11040
|
-
import { join as
|
|
11157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
11158
|
+
import { join as join6 } from "node:path";
|
|
11041
11159
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
11042
11160
|
var IMAGE_MODELS = [
|
|
11043
11161
|
{
|
|
@@ -11087,10 +11205,10 @@ var imageModel = /* @__PURE__ */ __name((id6) => {
|
|
|
11087
11205
|
return found;
|
|
11088
11206
|
}, "imageModel");
|
|
11089
11207
|
var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("image", env), "imageModelsDirectory");
|
|
11090
|
-
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file,
|
|
11208
|
+
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
|
|
11091
11209
|
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
11092
11210
|
|
|
11093
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
11094
11212
|
var STEPS2 = defineSteps([
|
|
11095
11213
|
...STEPS,
|
|
11096
11214
|
{
|
|
@@ -11362,7 +11480,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
11362
11480
|
].join(" ");
|
|
11363
11481
|
}, "stepLine");
|
|
11364
11482
|
|
|
11365
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11483
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
11366
11484
|
var where = [{ field: "ref" }, { field: ["chat_title", "chat"] }];
|
|
11367
11485
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
11368
11486
|
var STATUS_SIGNAL_ROWS = {
|
|
@@ -11471,7 +11589,7 @@ var STATUS_ROWS = {
|
|
|
11471
11589
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
11472
11590
|
};
|
|
11473
11591
|
|
|
11474
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11592
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
11475
11593
|
var TEXT_CHARS = 400;
|
|
11476
11594
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
11477
11595
|
var messageRow = {
|
|
@@ -11807,7 +11925,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
11807
11925
|
return lines.concat(footerOf(body)).join("\n");
|
|
11808
11926
|
}, "compactText");
|
|
11809
11927
|
|
|
11810
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
11811
11929
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
11812
11930
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
11813
11931
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -11854,7 +11972,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
11854
11972
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
11855
11973
|
}, "largeAnswerSteps");
|
|
11856
11974
|
|
|
11857
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
11858
11976
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
11859
11977
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
11860
11978
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -11868,7 +11986,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
11868
11986
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
11869
11987
|
}, "strip");
|
|
11870
11988
|
|
|
11871
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11989
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
11872
11990
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
11873
11991
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
11874
11992
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -12058,13 +12176,11 @@ export {
|
|
|
12058
12176
|
readEvents,
|
|
12059
12177
|
currentRun,
|
|
12060
12178
|
inRun,
|
|
12061
|
-
runEvent,
|
|
12062
12179
|
typedCommand,
|
|
12063
12180
|
enclosingTraceId,
|
|
12064
12181
|
traceOf,
|
|
12065
12182
|
childTrace,
|
|
12066
12183
|
withAttempt,
|
|
12067
|
-
currentAttempt,
|
|
12068
12184
|
startRecording,
|
|
12069
12185
|
wasSettled,
|
|
12070
12186
|
sentIds,
|
|
@@ -12109,6 +12225,9 @@ export {
|
|
|
12109
12225
|
assertRetentionEvidenceRead,
|
|
12110
12226
|
historyWindow,
|
|
12111
12227
|
limitBatch,
|
|
12228
|
+
botFiles,
|
|
12229
|
+
ChatRegistry,
|
|
12230
|
+
registryProfiles,
|
|
12112
12231
|
REPAIR_WORDS,
|
|
12113
12232
|
repairConfigText,
|
|
12114
12233
|
permissionIssues,
|