@wirecat/notion-cli 0.7.0 → 0.8.0
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/CHANGELOG.md +58 -0
- package/README.md +20 -3
- package/contracts/wirecat.json +238 -2
- package/dist/bin/notion.js +2 -2
- package/dist/bundle/agent-FDS2ENXJ.js +42 -0
- package/dist/bundle/{all-profiles-CKOACXTW.js → all-profiles-MIGUJ6UM.js} +11 -11
- package/dist/bundle/{anthropic-DWBBVTU3.js → anthropic-ZTYBZ7PI.js} +5 -5
- package/dist/bundle/{app-server-BHFYNCDE.js → app-server-MGXJZOJ2.js} +72 -72
- package/dist/bundle/{bun-ICK2XT7J.js → bun-NS5YLOQT.js} +2 -2
- package/dist/bundle/{bun-sqlite-LU5V5Y4A.js → bun-sqlite-EKMD3TXK.js} +6 -6
- package/dist/bundle/{chunk-UYEDQGMI.js → chunk-2BPQNFA5.js} +6 -6
- package/dist/bundle/{chunk-5NFIUY2P.js → chunk-2Q5ATPA6.js} +4 -4
- package/dist/bundle/{chunk-NCCRLAAI.js → chunk-2T76TPDD.js} +3 -3
- package/dist/bundle/{chunk-OCGNOJYD.js → chunk-2TVHFJKV.js} +1 -1
- package/dist/bundle/{chunk-ITWINZ6R.js → chunk-2XWVZDOM.js} +12 -12
- package/dist/bundle/{chunk-IEY7KS6Q.js → chunk-43PCMVTZ.js} +1 -1
- package/dist/bundle/{chunk-KWBLDSRV.js → chunk-53UXHJEO.js} +3 -3
- package/dist/bundle/{chunk-EMIJVLOA.js → chunk-5KL3PQWI.js} +2 -2
- package/dist/bundle/{chunk-SRVTGI3M.js → chunk-5QCPDJLB.js} +2 -2
- package/dist/bundle/{chunk-MB4HXDBT.js → chunk-64KVWK5N.js} +5 -5
- package/dist/bundle/{chunk-ITW26OBI.js → chunk-66M7VFIM.js} +38 -38
- package/dist/bundle/{chunk-QK52ARAU.js → chunk-6BOEXO72.js} +3 -3
- package/dist/bundle/{chunk-ZMKAI3F3.js → chunk-6P7HUUR5.js} +3 -3
- package/dist/bundle/{chunk-LBRTLZHI.js → chunk-77727OQH.js} +197 -155
- package/dist/bundle/{chunk-BXXHUO7Y.js → chunk-7KNBZOLH.js} +13 -13
- package/dist/bundle/{chunk-EUF5JNPG.js → chunk-7YPZPJTB.js} +1 -1
- package/dist/bundle/{chunk-TWY543BS.js → chunk-A5PL2GYK.js} +1 -1
- package/dist/bundle/{chunk-6MQSBWWF.js → chunk-AG34MPVN.js} +1 -1
- package/dist/bundle/{chunk-46JBCXLI.js → chunk-BCO37YUH.js} +327 -6
- package/dist/bundle/{chunk-7COTHS6G.js → chunk-COF6KS7A.js} +6 -6
- package/dist/bundle/{chunk-VXKD533R.js → chunk-CWTTCFDX.js} +995 -610
- package/dist/bundle/{chunk-3T3OAYL4.js → chunk-D2IVASIC.js} +2 -2
- package/dist/bundle/{chunk-PDVXG3T3.js → chunk-D3G375NT.js} +6 -6
- package/dist/bundle/{chunk-3ZSUVFR7.js → chunk-DGZNVYKK.js} +8 -8
- package/dist/bundle/{chunk-FHYV4VWY.js → chunk-DLEAVO2T.js} +7 -7
- package/dist/bundle/{chunk-UQVUXG7H.js → chunk-DW6YAEMZ.js} +10 -10
- package/dist/bundle/{chunk-LEPPRULN.js → chunk-E4FNVLTR.js} +23 -4
- package/dist/bundle/{chunk-VRBEYOJL.js → chunk-E5EYJU5R.js} +1 -1
- package/dist/bundle/{chunk-A3RJ6FD5.js → chunk-E5XATHAF.js} +8 -8
- package/dist/bundle/{chunk-63SW4UXG.js → chunk-EXHTGQR2.js} +1 -1
- package/dist/bundle/{chunk-FO3XY2Y2.js → chunk-EZAVBR47.js} +2 -2
- package/dist/bundle/{chunk-NV7NNL5T.js → chunk-F7DHR4OO.js} +7 -7
- package/dist/bundle/{chunk-4FHKSSXQ.js → chunk-FGWQHNKK.js} +2 -2
- package/dist/bundle/{chunk-B6DJQBZI.js → chunk-FSWLPNJT.js} +5 -5
- package/dist/bundle/{chunk-364ET7LV.js → chunk-GFI3UUIU.js} +1 -1
- package/dist/bundle/{chunk-2OZVCNU5.js → chunk-GGNVBN2S.js} +2 -2
- package/dist/bundle/{chunk-X737FHZP.js → chunk-GPFE4SS7.js} +4 -4
- package/dist/bundle/{chunk-OW5HW3TD.js → chunk-H76WEF2L.js} +6 -6
- package/dist/bundle/{chunk-RNVYNPXT.js → chunk-HPS2YGSZ.js} +1 -1
- package/dist/bundle/{chunk-S5P7THM5.js → chunk-HZ5LRWKH.js} +2 -2
- package/dist/bundle/{chunk-ZGUUP2T3.js → chunk-I5OAVMOI.js} +12 -12
- package/dist/bundle/{chunk-OALFRUMI.js → chunk-I62MWK5L.js} +14 -2
- package/dist/bundle/{chunk-3AKMIKND.js → chunk-IBFCD6TR.js} +17 -17
- package/dist/bundle/{chunk-HJDQTM3T.js → chunk-IL3UYHCR.js} +8 -8
- package/dist/bundle/{chunk-HSVKU4OJ.js → chunk-J4CXJJJU.js} +116 -30
- package/dist/bundle/{chunk-R4JV3VLU.js → chunk-JRZEXLRQ.js} +13 -12
- package/dist/bundle/{chunk-ALAPDLCP.js → chunk-KDPV6YBX.js} +2 -2
- package/dist/bundle/{chunk-BFCRGLOF.js → chunk-KHEISFJO.js} +3 -3
- package/dist/bundle/{chunk-FNESLLZS.js → chunk-KI6OOW6D.js} +8 -1
- package/dist/bundle/{chunk-3DGHBXH2.js → chunk-KPBUJQKT.js} +1 -1
- package/dist/bundle/{chunk-OP2BH55P.js → chunk-LEO5GWPD.js} +3 -3
- package/dist/bundle/{chunk-N3NJPHZB.js → chunk-LKUWH6KU.js} +1 -1
- package/dist/bundle/{chunk-JPGN473W.js → chunk-LYJDZILD.js} +3 -3
- package/dist/bundle/{chunk-JVRBW5LH.js → chunk-M27SMKNH.js} +5 -5
- package/dist/bundle/{chunk-YSF5JBRA.js → chunk-MA6U4XH2.js} +1 -1
- package/dist/bundle/{chunk-64IK7JFO.js → chunk-MC3LAGIW.js} +2 -2
- package/dist/bundle/{chunk-J3DZVB67.js → chunk-MGC2BAD2.js} +1 -1
- package/dist/bundle/{chunk-S35UJBFZ.js → chunk-MLXDGBH4.js} +19 -19
- package/dist/bundle/{chunk-IYZWHCZJ.js → chunk-NQA2STEE.js} +35 -14
- package/dist/bundle/{chunk-2RNJ2JP3.js → chunk-NSBTYJRP.js} +4 -4
- package/dist/bundle/{chunk-REOBWSGV.js → chunk-NSQN4F7H.js} +8 -8
- package/dist/bundle/{chunk-WUNEJRLJ.js → chunk-NVXMWAEV.js} +6 -6
- package/dist/bundle/{chunk-UO4O6WQ4.js → chunk-OZAP4FEG.js} +8 -8
- package/dist/bundle/{chunk-OFMCU3BH.js → chunk-OZZ5PTHG.js} +5 -5
- package/dist/bundle/{chunk-BQ6CXCLP.js → chunk-P4ADIGTL.js} +8 -8
- package/dist/bundle/{chunk-KBY42GKW.js → chunk-PVTW7ZOY.js} +23 -23
- package/dist/bundle/{chunk-PSMRUOII.js → chunk-Q5PNS2K2.js} +3 -3
- package/dist/bundle/{chunk-LVAFTQ45.js → chunk-QQP54EEZ.js} +29 -178
- package/dist/bundle/{chunk-3YXYA6HB.js → chunk-RM4DO2WZ.js} +1 -1
- package/dist/bundle/{chunk-JEZJFQQW.js → chunk-S3SLDYTU.js} +1 -1
- package/dist/bundle/{chunk-RXGX2CZX.js → chunk-S5NFSVNK.js} +63 -63
- package/dist/bundle/{chunk-EWXMIKZN.js → chunk-UE7ST7JC.js} +30 -30
- package/dist/bundle/{chunk-6UZ5D2WP.js → chunk-ULTKZLJV.js} +7 -7
- package/dist/bundle/{chunk-WJFQMOVM.js → chunk-VJ5EF4C7.js} +61 -61
- package/dist/bundle/{chunk-OS4WPXPZ.js → chunk-WBVZVP4T.js} +4 -4
- package/dist/bundle/{chunk-QMNEDK7Z.js → chunk-WDL3QYN2.js} +3 -3
- package/dist/bundle/{chunk-HOO53OYK.js → chunk-WPNY2J2X.js} +16 -16
- package/dist/bundle/{chunk-BFHPT67P.js → chunk-XRA2V4MM.js} +1556 -620
- package/dist/bundle/{chunk-3KOJNZH3.js → chunk-Y6KPZOOD.js} +3 -3
- package/dist/bundle/{chunk-ADCAWRRX.js → chunk-YAYVXHMO.js} +48 -48
- package/dist/bundle/{chunk-DCSPCOPB.js → chunk-YG2FFC2R.js} +9 -9
- package/dist/bundle/{chunk-X5LUHN62.js → chunk-YOZHKJEN.js} +2 -2
- package/dist/bundle/{chunk-VYZ2J7DT.js → chunk-ZKD3TL3O.js} +4 -4
- package/dist/bundle/command-contract-ZGBZCKZP.js +41 -0
- package/dist/bundle/{command-server-entry-F3B2KSPO.js → command-server-entry-ZXB7VUIG.js} +29 -29
- package/dist/bundle/{decode-FDHFF7GC.js → decode-BGLAM2YP.js} +5 -5
- package/dist/bundle/{dispatch-IXKG5Z5Y.js → dispatch-A3WIRXBM.js} +8 -8
- package/dist/bundle/{echarts-PGJPVPA4.js → echarts-ISH62J4E.js} +2 -2
- package/dist/bundle/{embed-U6X7CNNK.js → embed-POZWSFKL.js} +6 -6
- package/dist/bundle/{embedder-3ROL6ROQ.js → embedder-7DIUHQOQ.js} +9 -9
- package/dist/bundle/{failure-IYMRXM2X.js → failure-BBT3B4UY.js} +2 -2
- package/dist/bundle/{first-run-PNVNHGR7.js → first-run-SLMRAWYB.js} +12 -12
- package/dist/bundle/first-screen-CCLGBTQ2.js +41 -0
- package/dist/bundle/{instructions-MJQWRI2D.js → instructions-G5ZGHVFB.js} +1 -1
- package/dist/bundle/{mcp-JNHOSK4L.js → mcp-MQ2L5IIM.js} +2 -2
- package/dist/bundle/meeting-combined-P56K6BUT.js +25 -0
- package/dist/bundle/meeting-model-UY4ABXAZ.js +27 -0
- package/dist/bundle/{meeting-semantic-7WPLMBNT.js → meeting-semantic-VPMFO4FB.js} +6 -6
- package/dist/bundle/{node-3UXNV3CD.js → node-NLJINXVQ.js} +2 -2
- package/dist/bundle/{node-sqlite-ULWDWM3I.js → node-sqlite-LPV27ECD.js} +7 -7
- package/dist/bundle/notes-search-TKP34WJZ.js +64 -0
- package/dist/bundle/notion.js +13 -13
- package/dist/bundle/{oauth-LNUZMA72.js → oauth-SC4HSJ7X.js} +7 -7
- package/dist/bundle/{open-HGHC35M4.js → open-K2JIOWCG.js} +5 -5
- package/dist/bundle/{openai-ISSP57MV.js → openai-MCKQLBZM.js} +18 -18
- package/dist/bundle/{process-PB2WCOR2.js → process-LPVAYRO7.js} +1 -1
- package/dist/bundle/{program-GASBJRMG.js → program-QXA6YXUO.js} +11176 -8685
- package/dist/bundle/{prompt-3VGQVX2B.js → prompt-XWESMSOG.js} +5 -5
- package/dist/bundle/{recognize-7Q2P3NME.js → recognize-TDE6PPXV.js} +4 -4
- package/dist/bundle/{remote-BBAWKVIT.js → remote-OAGPQQVE.js} +11 -11
- package/dist/bundle/{rerank-H4PUS4HV.js → rerank-375AKI4E.js} +7 -7
- package/dist/bundle/{schemas-TTVUADHT.js → schemas-ZE62D6CG.js} +1 -1
- package/dist/bundle/{serve-FZNSKY7R.js → serve-YWCHKQEP.js} +9 -9
- package/dist/bundle/{server-BRRNDW6L.js → server-C4SH5PRK.js} +64 -64
- package/dist/bundle/server-SYGVF5BJ.js +90 -0
- package/dist/bundle/{services-PEU557KZ.js → services-5Z2P4D2K.js} +51 -51
- package/dist/bundle/{sqlite-runtime-4IZJ4YUM.js → sqlite-runtime-KLELNUHI.js} +6 -6
- package/dist/bundle/{state-MX3JVT5Q.js → state-OWEBLXCG.js} +6 -6
- package/dist/bundle/{store-JUT34REM.js → store-F63SKKV7.js} +27 -23
- package/dist/bundle/{store-PP4BPADZ.js → store-IVJXGAX7.js} +21 -21
- package/dist/bundle/store-maintenance-command-YBMOO7XH.js +77 -0
- package/dist/bundle/surface-G3ITURGS.js +76 -0
- package/dist/commands/comments.d.ts +1 -1
- package/dist/commands/comments.d.ts.map +1 -1
- package/dist/commands/comments.js +33 -2
- package/dist/commands/comments.js.map +1 -1
- package/dist/commands/databases.d.ts.map +1 -1
- package/dist/commands/databases.js +3 -2
- package/dist/commands/databases.js.map +1 -1
- package/dist/commands/documents.d.ts +13 -2
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +291 -23
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/library.d.ts.map +1 -1
- package/dist/commands/library.js +12 -4
- package/dist/commands/library.js.map +1 -1
- package/dist/commands/meetings.d.ts +7 -0
- package/dist/commands/meetings.d.ts.map +1 -0
- package/dist/commands/meetings.js +136 -0
- package/dist/commands/meetings.js.map +1 -0
- package/dist/commands/rows.d.ts +4 -0
- package/dist/commands/rows.d.ts.map +1 -0
- package/dist/commands/rows.js +51 -0
- package/dist/commands/rows.js.map +1 -0
- package/dist/commands/writing.d.ts +2 -1
- package/dist/commands/writing.d.ts.map +1 -1
- package/dist/commands/writing.js +2 -2
- package/dist/commands/writing.js.map +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +12 -2
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +2 -0
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +2 -0
- package/dist/context.js.map +1 -1
- package/dist/generated/wirecat-config.d.ts.map +1 -1
- package/dist/generated/wirecat-config.js +8 -0
- package/dist/generated/wirecat-config.js.map +1 -1
- package/dist/knowledge.d.ts +18 -1
- package/dist/knowledge.d.ts.map +1 -1
- package/dist/library.d.ts +4 -0
- package/dist/library.d.ts.map +1 -1
- package/dist/library.js +11 -1
- package/dist/library.js.map +1 -1
- package/dist/notion/errors.d.ts.map +1 -1
- package/dist/notion/errors.js +19 -0
- package/dist/notion/errors.js.map +1 -1
- package/dist/notion/meeting-notes.d.ts +10 -0
- package/dist/notion/meeting-notes.d.ts.map +1 -0
- package/dist/notion/meeting-notes.js +196 -0
- package/dist/notion/meeting-notes.js.map +1 -0
- package/dist/notion/notion.d.ts +46 -0
- package/dist/notion/notion.d.ts.map +1 -1
- package/dist/notion/notion.js +105 -14
- package/dist/notion/notion.js.map +1 -1
- package/dist/notion/page-target.d.ts +30 -0
- package/dist/notion/page-target.d.ts.map +1 -0
- package/dist/notion/page-target.js +73 -0
- package/dist/notion/page-target.js.map +1 -0
- package/dist/notion/port.d.ts.map +1 -1
- package/dist/notion/port.js +2 -0
- package/dist/notion/port.js.map +1 -1
- package/dist/notion/properties.d.ts +55 -0
- package/dist/notion/properties.d.ts.map +1 -0
- package/dist/notion/properties.js +280 -0
- package/dist/notion/properties.js.map +1 -0
- package/dist/notion/reads.d.ts +19 -1
- package/dist/notion/reads.d.ts.map +1 -1
- package/dist/notion/reads.js +2 -1
- package/dist/notion/reads.js.map +1 -1
- package/dist/notion/rows.d.ts +14 -0
- package/dist/notion/rows.d.ts.map +1 -0
- package/dist/notion/rows.js +119 -0
- package/dist/notion/rows.js.map +1 -0
- package/dist/notion/writes.d.ts +99 -0
- package/dist/notion/writes.d.ts.map +1 -1
- package/dist/notion/writes.js +278 -67
- package/dist/notion/writes.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +7 -1
- package/dist/program.js.map +1 -1
- package/dist/sync/comments.d.ts +12 -0
- package/dist/sync/comments.d.ts.map +1 -0
- package/dist/sync/comments.js +47 -0
- package/dist/sync/comments.js.map +1 -0
- package/dist/sync/files.d.ts +7 -1
- package/dist/sync/files.d.ts.map +1 -1
- package/dist/sync/files.js.map +1 -1
- package/dist/sync/from-config.d.ts.map +1 -1
- package/dist/sync/from-config.js +5 -4
- package/dist/sync/from-config.js.map +1 -1
- package/dist/sync/source.d.ts.map +1 -1
- package/dist/sync/source.js +21 -9
- package/dist/sync/source.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/notion-cli/SKILL.md +29 -3
- package/dist/bundle/agent-AILW4JPO.js +0 -42
- package/dist/bundle/command-contract-C2CF4QAH.js +0 -41
- package/dist/bundle/first-screen-DEDD64YH.js +0 -41
- package/dist/bundle/meeting-combined-HEC25QPY.js +0 -25
- package/dist/bundle/meeting-model-R7QPDNZZ.js +0 -27
- package/dist/bundle/notes-search-7PE3E3C7.js +0 -64
- package/dist/bundle/server-CQJ4LKAZ.js +0 -90
- package/dist/bundle/store-maintenance-command-GRFTJBSB.js +0 -77
- package/dist/bundle/surface-FPWES3NY.js +0 -76
- package/dist/bundle/{hast-util-from-html-X2DCPS3T.js → hast-util-from-html-237ZT4C7.js} +3 -3
- package/dist/bundle/{hast-util-to-mdast-3CSMIWK2.js → hast-util-to-mdast-H5COQ6HJ.js} +6 -6
- package/dist/bundle/{mdast-util-gfm-JO7PHUIB.js → mdast-util-gfm-M3K5BNY2.js} +16 -16
- package/dist/bundle/{mdast-util-to-hast-AYJV7KAE.js → mdast-util-to-hast-TSB5MAAV.js} +1 -1
- package/dist/bundle/{mdast-util-to-markdown-DOXGHRI7.js → mdast-util-to-markdown-SG6455IT.js} +10 -10
- package/dist/bundle/{micromark-extension-gfm-PQ7DWZM7.js → micromark-extension-gfm-7SUOOQ3A.js} +3 -3
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
-
answerOf,
|
|
5
4
|
messengerContext
|
|
6
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QQP54EEZ.js";
|
|
7
6
|
import {
|
|
8
7
|
chatEventAnswer,
|
|
9
8
|
memberAnswer,
|
|
10
9
|
pollVoteAnswer
|
|
11
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IL3UYHCR.js";
|
|
12
11
|
import {
|
|
13
12
|
readSecret
|
|
14
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6BOEXO72.js";
|
|
15
14
|
import {
|
|
16
15
|
stringWidth,
|
|
17
16
|
wrapAnsi
|
|
18
17
|
} from "./chunk-EH6ZEJGT.js";
|
|
19
18
|
import {
|
|
20
19
|
serveRelay
|
|
21
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-2BPQNFA5.js";
|
|
22
21
|
import {
|
|
23
22
|
FETCHING,
|
|
24
23
|
RULES_VERSION,
|
|
24
|
+
answerOf,
|
|
25
25
|
applyTaskRulesOnArrival,
|
|
26
26
|
newSendId,
|
|
27
27
|
openRequestTask,
|
|
@@ -29,12 +29,12 @@ import {
|
|
|
29
29
|
refuseLockedOutput,
|
|
30
30
|
servicesFor,
|
|
31
31
|
syncsOneChat
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-XRA2V4MM.js";
|
|
33
33
|
import {
|
|
34
34
|
queryTerms,
|
|
35
35
|
typedQuery,
|
|
36
36
|
withQuery
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-JRZEXLRQ.js";
|
|
38
38
|
import {
|
|
39
39
|
Command,
|
|
40
40
|
LOCAL_READ,
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
snakeKeys,
|
|
61
61
|
storeTable,
|
|
62
62
|
withoutProviderRefs
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-77727OQH.js";
|
|
64
64
|
import {
|
|
65
65
|
embeddingKeys,
|
|
66
66
|
endpointKeyName,
|
|
@@ -68,14 +68,14 @@ import {
|
|
|
68
68
|
onlineDeps,
|
|
69
69
|
senderIsMe,
|
|
70
70
|
withTimeLimit
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-YAYVXHMO.js";
|
|
72
72
|
import {
|
|
73
73
|
capability
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-5KL3PQWI.js";
|
|
75
75
|
import {
|
|
76
76
|
codeOf,
|
|
77
77
|
modelTarget
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-DGZNVYKK.js";
|
|
79
79
|
import {
|
|
80
80
|
holdLock,
|
|
81
81
|
lockPath,
|
|
@@ -83,10 +83,10 @@ import {
|
|
|
83
83
|
releaseLock,
|
|
84
84
|
servingProfiles,
|
|
85
85
|
takeLock
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-53UXHJEO.js";
|
|
87
87
|
import {
|
|
88
88
|
holdersOf
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-MGC2BAD2.js";
|
|
90
90
|
import {
|
|
91
91
|
QUICK_HEALTH_CHECKS,
|
|
92
92
|
fts5Tables,
|
|
@@ -94,7 +94,7 @@ import {
|
|
|
94
94
|
lossUnknown,
|
|
95
95
|
storeDamageReport,
|
|
96
96
|
storeHealth
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-IBFCD6TR.js";
|
|
98
98
|
import {
|
|
99
99
|
CORPORA,
|
|
100
100
|
MIGRATIONS,
|
|
@@ -132,46 +132,46 @@ import {
|
|
|
132
132
|
storeClients,
|
|
133
133
|
storeContents,
|
|
134
134
|
vectorIndexCounts
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-CWTTCFDX.js";
|
|
136
136
|
import {
|
|
137
137
|
readDamageMark,
|
|
138
138
|
readHealthMark,
|
|
139
139
|
readJournalMark,
|
|
140
140
|
recordDeepCheck
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-PVTW7ZOY.js";
|
|
142
142
|
import {
|
|
143
143
|
currentRun,
|
|
144
144
|
formatLocator,
|
|
145
145
|
parseLocator
|
|
146
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-7KNBZOLH.js";
|
|
147
147
|
import {
|
|
148
148
|
failureKey,
|
|
149
149
|
isStoreDamage
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-HZ5LRWKH.js";
|
|
151
151
|
import {
|
|
152
152
|
queryFieldsOf
|
|
153
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-S5NFSVNK.js";
|
|
154
154
|
import {
|
|
155
155
|
modelAddressAllowed,
|
|
156
156
|
onThisComputer
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-LEO5GWPD.js";
|
|
158
158
|
import {
|
|
159
159
|
readSharedSection,
|
|
160
160
|
sharedConfigPath,
|
|
161
161
|
writeSharedSection
|
|
162
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-F7DHR4OO.js";
|
|
163
163
|
import {
|
|
164
164
|
storePath
|
|
165
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-YOZHKJEN.js";
|
|
166
166
|
import {
|
|
167
167
|
openCache
|
|
168
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-NVXMWAEV.js";
|
|
169
169
|
import {
|
|
170
170
|
Credentials,
|
|
171
171
|
isMovedRun,
|
|
172
172
|
resolvePaths,
|
|
173
173
|
writeSecurely
|
|
174
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-MLXDGBH4.js";
|
|
175
175
|
import {
|
|
176
176
|
array,
|
|
177
177
|
boolean,
|
|
@@ -198,7 +198,7 @@ import {
|
|
|
198
198
|
CliError,
|
|
199
199
|
singleLine,
|
|
200
200
|
visibleControls
|
|
201
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-FGWQHNKK.js";
|
|
202
202
|
import {
|
|
203
203
|
__commonJS,
|
|
204
204
|
__name,
|
|
@@ -5538,11 +5538,11 @@ var require_liquid_node = __commonJS({
|
|
|
5538
5538
|
}
|
|
5539
5539
|
});
|
|
5540
5540
|
|
|
5541
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5541
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5542
5542
|
import { chmodSync, constants, copyFileSync, existsSync as existsSync10, mkdirSync, realpathSync as realpathSync3, renameSync as renameSync3, rmSync as rmSync3, statfsSync as statfsSync2, statSync as statSync4, writeFileSync as writeFileSync2 } from "node:fs";
|
|
5543
5543
|
import { dirname as dirname3, resolve } from "node:path";
|
|
5544
5544
|
|
|
5545
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5546
5546
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5547
5547
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5548
5548
|
import { Transform } from "node:stream";
|
|
@@ -5649,7 +5649,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5649
5649
|
renameSync(pending, to);
|
|
5650
5650
|
}, "unsealFile");
|
|
5651
5651
|
|
|
5652
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5652
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5653
5653
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5654
5654
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5655
5655
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5673,7 +5673,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5673
5673
|
};
|
|
5674
5674
|
}, "compatibilityOf");
|
|
5675
5675
|
|
|
5676
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5676
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5677
5677
|
import { createHash as createHash2 } from "node:crypto";
|
|
5678
5678
|
var COPY_MARK = "__repair_";
|
|
5679
5679
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5927,19 +5927,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5927
5927
|
return found;
|
|
5928
5928
|
}, "deleteCopy");
|
|
5929
5929
|
|
|
5930
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5930
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5931
5931
|
import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
|
|
5932
5932
|
|
|
5933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
5934
5934
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5935
5935
|
|
|
5936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
5937
5937
|
import { execFileSync, spawn } from "node:child_process";
|
|
5938
5938
|
import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
|
|
5939
5939
|
import { basename, dirname, join } from "node:path";
|
|
5940
5940
|
import { Transform as Transform2 } from "node:stream";
|
|
5941
5941
|
|
|
5942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/refill.js
|
|
5943
5943
|
var REFILL_MARGIN_MS = 864e5;
|
|
5944
5944
|
var TIME_KEYS = 1e12;
|
|
5945
5945
|
var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
|
|
@@ -6019,7 +6019,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
|
|
|
6019
6019
|
return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
|
|
6020
6020
|
}, "forgetMail");
|
|
6021
6021
|
|
|
6022
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
6023
6023
|
var SQLITE3_MINIMUM = [3, 43, 0];
|
|
6024
6024
|
var STORE_PARTS = ["", "-wal", "-shm"];
|
|
6025
6025
|
var RECOVER_LOCK = ".recover-lock";
|
|
@@ -6550,7 +6550,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
|
|
|
6550
6550
|
}
|
|
6551
6551
|
}, "recoverLocked");
|
|
6552
6552
|
|
|
6553
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6553
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
6554
6554
|
var COUNTED = [
|
|
6555
6555
|
"accounts",
|
|
6556
6556
|
"chats",
|
|
@@ -6706,7 +6706,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
|
|
|
6706
6706
|
return recover;
|
|
6707
6707
|
}, "storeRecoverCommand");
|
|
6708
6708
|
|
|
6709
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6709
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
6710
6710
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
6711
6711
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
|
|
6712
6712
|
var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
|
|
@@ -6752,7 +6752,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
6752
6752
|
renderAnswer(this, outputFor(this), itemOf(answer));
|
|
6753
6753
|
}), "storeInfoCommand");
|
|
6754
6754
|
|
|
6755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
6756
6756
|
var ENCRYPT_OPTION = [
|
|
6757
6757
|
"--encrypt",
|
|
6758
6758
|
"compress and encrypt with a password, typed at a hidden prompt or piped on stdin; it is never kept \u2014 lose it and the file cannot be opened"
|
|
@@ -6771,7 +6771,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
6771
6771
|
return password;
|
|
6772
6772
|
}, "passwordOf");
|
|
6773
6773
|
|
|
6774
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6774
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
6775
6775
|
import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
|
|
6776
6776
|
import { join as join2 } from "node:path";
|
|
6777
6777
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6942,7 +6942,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6942
6942
|
}, "problem");
|
|
6943
6943
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6944
6944
|
|
|
6945
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6945
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6946
6946
|
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
6947
6947
|
import { join as join3 } from "node:path";
|
|
6948
6948
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6995,7 +6995,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6995
6995
|
}, "recordReply");
|
|
6996
6996
|
var broken2 = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply state ${path} cannot be read (${why}) \u2014 fix or move the file`), "broken");
|
|
6997
6997
|
|
|
6998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6998
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6999
6999
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
7000
7000
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
7001
7001
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -7101,10 +7101,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
7101
7101
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
7102
7102
|
}, "filled");
|
|
7103
7103
|
|
|
7104
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7104
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7105
7105
|
var import_liquidjs2 = __toESM(require_liquid_node(), 1);
|
|
7106
7106
|
|
|
7107
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7107
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/render/liquid.js
|
|
7108
7108
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
7109
7109
|
var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
7110
7110
|
const engine = new import_liquidjs.Liquid({
|
|
@@ -7131,7 +7131,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
|
7131
7131
|
return engine;
|
|
7132
7132
|
}, "safeLiquid");
|
|
7133
7133
|
|
|
7134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7135
7135
|
var TEMPLATE_LIMITS = {
|
|
7136
7136
|
parse: 32768,
|
|
7137
7137
|
renders: 2e3,
|
|
@@ -7270,7 +7270,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
7270
7270
|
}
|
|
7271
7271
|
}, "renderReplyTemplate");
|
|
7272
7272
|
|
|
7273
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7273
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
7274
7274
|
var DRY_RUN_DAYS = 7;
|
|
7275
7275
|
var PAGE = 500;
|
|
7276
7276
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -7384,7 +7384,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
7384
7384
|
}
|
|
7385
7385
|
}, "storedSince");
|
|
7386
7386
|
|
|
7387
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7387
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/models/ai.js
|
|
7388
7388
|
var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
|
|
7389
7389
|
var DEFAULT_BASE_URL = {
|
|
7390
7390
|
anthropic: "https://api.anthropic.com",
|
|
@@ -7534,7 +7534,7 @@ var checkAi = /* @__PURE__ */ __name(async (deps) => {
|
|
|
7534
7534
|
}
|
|
7535
7535
|
}, "checkAi");
|
|
7536
7536
|
|
|
7537
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7537
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/models/purpose.js
|
|
7538
7538
|
var HOSTED = {
|
|
7539
7539
|
openai: "https://api.openai.com/v1",
|
|
7540
7540
|
anthropic: "https://api.anthropic.com"
|
|
@@ -7555,7 +7555,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
|
|
|
7555
7555
|
return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
|
|
7556
7556
|
}, "purposeModel");
|
|
7557
7557
|
|
|
7558
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7558
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
7559
7559
|
import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
|
|
7560
7560
|
import { join as join4 } from "node:path";
|
|
7561
7561
|
var shape = strictObject({
|
|
@@ -7580,7 +7580,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
7580
7580
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
7581
7581
|
}, "mayModelReply");
|
|
7582
7582
|
|
|
7583
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7583
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
7584
7584
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
|
|
7585
7585
|
ai: true
|
|
7586
7586
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -7628,7 +7628,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
7628
7628
|
return result2;
|
|
7629
7629
|
}, "replyRenderer");
|
|
7630
7630
|
|
|
7631
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7631
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
7632
7632
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
7633
7633
|
var NO_RULES = "no rules";
|
|
7634
7634
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -7721,7 +7721,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
7721
7721
|
return { skip: why };
|
|
7722
7722
|
}, "replyTo");
|
|
7723
7723
|
|
|
7724
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7724
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
|
|
7725
7725
|
var START_SYNC_DELAY_MS = 3e4;
|
|
7726
7726
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
7727
7727
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -7798,7 +7798,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
|
|
|
7798
7798
|
};
|
|
7799
7799
|
}, "startSync");
|
|
7800
7800
|
|
|
7801
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7801
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
7802
7802
|
var FIRST_FETCH_MS = 6e4;
|
|
7803
7803
|
var DAY_MS = 864e5;
|
|
7804
7804
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -7852,7 +7852,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
|
|
|
7852
7852
|
};
|
|
7853
7853
|
}, "memberFetches");
|
|
7854
7854
|
|
|
7855
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7855
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
7856
7856
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
7857
7857
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
7858
7858
|
if (context.format === "pretty") {
|
|
@@ -7885,7 +7885,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7885
7885
|
return context;
|
|
7886
7886
|
}, "recordDiagnostics");
|
|
7887
7887
|
|
|
7888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
|
|
7889
7889
|
import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
|
|
7890
7890
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
7891
7891
|
var OUTDATED_CHECK_MS = 6e4;
|
|
@@ -7971,7 +7971,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
|
|
|
7971
7971
|
};
|
|
7972
7972
|
}, "watchOutdated");
|
|
7973
7973
|
|
|
7974
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7974
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
7975
7975
|
var STEMS_EVERY_MS = 3e4;
|
|
7976
7976
|
var STEMS_SLICE_MS = 2e3;
|
|
7977
7977
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -8011,7 +8011,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
8011
8011
|
};
|
|
8012
8012
|
}, "stemFills");
|
|
8013
8013
|
|
|
8014
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8014
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/render/messages.js
|
|
8015
8015
|
import { styleText } from "node:util";
|
|
8016
8016
|
var TIME_WIDTH = 8;
|
|
8017
8017
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -8187,7 +8187,7 @@ var editedAt = /* @__PURE__ */ __name((message, options) => {
|
|
|
8187
8187
|
return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
|
|
8188
8188
|
}, "editedAt");
|
|
8189
8189
|
|
|
8190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
8191
8191
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
8192
8192
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
8193
8193
|
kind: attachment.kind,
|
|
@@ -8283,7 +8283,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
8283
8283
|
locale: messenger.app.locale
|
|
8284
8284
|
}), "viewOf");
|
|
8285
8285
|
|
|
8286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
8287
8287
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
8288
8288
|
value: value.value,
|
|
8289
8289
|
observed_at: value.observedAt,
|
|
@@ -8350,7 +8350,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
8350
8350
|
}
|
|
8351
8351
|
}, "watchEventItem");
|
|
8352
8352
|
|
|
8353
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8353
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
8354
8354
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
8355
8355
|
output: { entity: "watch_item" },
|
|
8356
8356
|
effects: REMOTE_READ,
|
|
@@ -8505,7 +8505,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
8505
8505
|
}
|
|
8506
8506
|
}, "describe");
|
|
8507
8507
|
|
|
8508
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8508
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
8509
8509
|
var CURRENT_EVERY_MS = 6e4;
|
|
8510
8510
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
8511
8511
|
const command = annotate(new Command("serve"), {
|
|
@@ -8805,7 +8805,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
8805
8805
|
};
|
|
8806
8806
|
}, "tasking");
|
|
8807
8807
|
|
|
8808
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8808
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
8809
8809
|
import { existsSync as existsSync9 } from "node:fs";
|
|
8810
8810
|
var PATH = "store tables list";
|
|
8811
8811
|
var STORE_TABLES_QUERY = {
|
|
@@ -8848,7 +8848,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
|
|
|
8848
8848
|
return tables;
|
|
8849
8849
|
}, "storeTablesCommand");
|
|
8850
8850
|
|
|
8851
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8851
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
8852
8852
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
8853
8853
|
var WORD_INDEX = "message_words";
|
|
8854
8854
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
singleLine
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FGWQHNKK.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
|
|
11
11
|
var FIRST_PARTY_TOOLS = [
|
|
12
12
|
{ name: "tg", package: "@wirecat/tg-cli" },
|
|
13
13
|
{ name: "max", package: "@wirecat/max-cli" },
|
|
@@ -31,7 +31,7 @@ var DESCRIBE_FLAG = "--wcat-describe";
|
|
|
31
31
|
var DESCRIBE_MAX_BYTES = 64 * 1024;
|
|
32
32
|
var DISPATCH_FLAG = "--wcat-dispatch";
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
|
|
35
35
|
var DESCRIBE_FORMAT = 1;
|
|
36
36
|
var DESCRIBE_MANIFEST_FORMAT = 2;
|
|
37
37
|
var describeAnswer = /* @__PURE__ */ __name((tool, manifest) => {
|
|
@@ -74,7 +74,7 @@ var parseDescribe = /* @__PURE__ */ __name((text) => {
|
|
|
74
74
|
};
|
|
75
75
|
}, "parseDescribe");
|
|
76
76
|
|
|
77
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
77
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
|
|
78
78
|
import { lstatSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
79
79
|
import { join } from "node:path";
|
|
80
80
|
var SHIM_FORMAT = 2;
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
formatMeetingReference
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-S5NFSVNK.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FGWQHNKK.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/services/meeting-semantic.js
|
|
14
14
|
var positive = /* @__PURE__ */ __name((value, name, max) => {
|
|
15
15
|
if (!Number.isSafeInteger(value) || value < 1 || value > max)
|
|
16
16
|
throw new CliError("validation_error", `Invalid ${name}`);
|
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
agentArguments,
|
|
7
7
|
agentJson,
|
|
8
8
|
failureContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NQA2STEE.js";
|
|
10
10
|
import {
|
|
11
11
|
refuseLacking
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-I62MWK5L.js";
|
|
13
13
|
import {
|
|
14
14
|
MAX_BUFFERED_INPUT
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KDPV6YBX.js";
|
|
16
16
|
import {
|
|
17
17
|
callerOf
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-EZAVBR47.js";
|
|
19
19
|
import {
|
|
20
20
|
servicesFor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XRA2V4MM.js";
|
|
22
22
|
import {
|
|
23
23
|
DEFAULT_OUTPUT_BYTES,
|
|
24
24
|
ENTITIES,
|
|
@@ -35,27 +35,27 @@ import {
|
|
|
35
35
|
refuseStoreChange,
|
|
36
36
|
sealed,
|
|
37
37
|
startRecording
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-77727OQH.js";
|
|
39
39
|
import {
|
|
40
40
|
currentCaller,
|
|
41
41
|
keepsSuccess,
|
|
42
42
|
runContextOf,
|
|
43
43
|
withCaller
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-P4ADIGTL.js";
|
|
45
45
|
import {
|
|
46
46
|
onlineDeps,
|
|
47
47
|
storeModeDeps
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-YAYVXHMO.js";
|
|
49
49
|
import {
|
|
50
50
|
inRun,
|
|
51
51
|
newRunId
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-7KNBZOLH.js";
|
|
53
53
|
import {
|
|
54
54
|
storeDamaged
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-HZ5LRWKH.js";
|
|
56
56
|
import {
|
|
57
57
|
traceIdOf
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-MLXDGBH4.js";
|
|
59
59
|
import {
|
|
60
60
|
errorObjectOf,
|
|
61
61
|
itemEnvelopeSchema,
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
mcpErrorResult,
|
|
64
64
|
toJsonSchema,
|
|
65
65
|
toStandardJsonSchema
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-E5XATHAF.js";
|
|
67
67
|
import {
|
|
68
68
|
array,
|
|
69
69
|
boolean,
|
|
@@ -88,15 +88,15 @@ import {
|
|
|
88
88
|
import {
|
|
89
89
|
CliError,
|
|
90
90
|
errorCodes
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-FGWQHNKK.js";
|
|
92
92
|
import {
|
|
93
93
|
__name
|
|
94
94
|
} from "./chunk-ZVVMGPBJ.js";
|
|
95
95
|
|
|
96
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
96
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
97
97
|
import { randomUUID } from "node:crypto";
|
|
98
98
|
|
|
99
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
99
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
100
100
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
101
101
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
102
102
|
var message = pipe(
|
|
@@ -355,7 +355,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
355
355
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
|
|
356
356
|
}, "failed");
|
|
357
357
|
|
|
358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
358
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
359
359
|
var MATCHES = 8;
|
|
360
360
|
var ANSWER = answerSchema();
|
|
361
361
|
var agentAnswer = /* @__PURE__ */ __name((prefix, writes) => {
|