@wirecat/cli-memo 0.131.69 → 0.131.71
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 +3 -3
- package/THIRD_PARTY_NOTICES +2 -0
- package/dist/actions/actions.d.ts +2 -1
- package/dist/actions/actions.d.ts.map +1 -1
- package/dist/actions/actions.js +5 -3
- package/dist/actions/actions.js.map +1 -1
- package/dist/actions/command.d.ts.map +1 -1
- package/dist/actions/command.js +15 -6
- package/dist/actions/command.js.map +1 -1
- package/dist/answer.d.ts +1 -0
- package/dist/answer.d.ts.map +1 -1
- package/dist/answer.js +2 -1
- package/dist/answer.js.map +1 -1
- package/dist/bin/memo.js +2 -2
- package/dist/bin/memo.js.map +1 -1
- package/dist/bundle/{all-profiles-6JKSPBBO.js → all-profiles-G6S5HOBT.js} +5 -5
- package/dist/bundle/{anthropic-YA2N6EJ4.js → anthropic-LA6PXTPQ.js} +2 -2
- package/dist/bundle/{app-server-UP3AL2XQ.js → app-server-W622CBPF.js} +35 -35
- package/dist/bundle/auto-WUU2MYGS.js +85 -0
- package/dist/bundle/{bun-OUFOAYV4.js → bun-PZNVNH4G.js} +2 -2
- package/dist/bundle/{bun-sqlite-5RZTFU2Q.js → bun-sqlite-VICDK5FS.js} +2 -2
- package/dist/bundle/{chunk-3TFK7RBA.js → chunk-2LTQ6ZBS.js} +23908 -22107
- package/dist/bundle/{chunk-IHHXGTMX.js → chunk-3LS76TFB.js} +1 -1
- package/dist/bundle/{chunk-IJAILIZR.js → chunk-3PIKTX3U.js} +18 -18
- package/dist/bundle/{chunk-N73YBQ42.js → chunk-3ZSPTUG3.js} +9 -7
- package/dist/bundle/{chunk-RHW3DDWI.js → chunk-6B3GQMR6.js} +1 -1
- package/dist/bundle/{chunk-LYAJUZM4.js → chunk-6EIWRE6E.js} +30 -30
- package/dist/bundle/{chunk-EDPA54WQ.js → chunk-6Z62U7NY.js} +3 -3
- package/dist/bundle/{chunk-JMGQATR6.js → chunk-ASDOPGKC.js} +2 -2
- package/dist/bundle/{chunk-EKSOPEFQ.js → chunk-BE22RDTR.js} +4 -4
- package/dist/bundle/{chunk-FZHYGJQ2.js → chunk-CLQXHFKG.js} +5 -5
- package/dist/bundle/{chunk-VPKJZKXV.js → chunk-CPUQC7UF.js} +1 -1
- package/dist/bundle/{chunk-GGFL64HF.js → chunk-CZUAGRL7.js} +13168 -11987
- package/dist/bundle/{chunk-GVP6CAPH.js → chunk-DW6CDBXA.js} +33 -586
- package/dist/bundle/{chunk-5MUR6D2G.js → chunk-DXWDHC2K.js} +44 -2
- package/dist/bundle/{chunk-5OMM4CDT.js → chunk-ESYCZ575.js} +2 -2
- package/dist/bundle/{chunk-OBQ7TSUB.js → chunk-FHIGY5K6.js} +1 -1
- package/dist/bundle/{chunk-MK6SQ32Q.js → chunk-FPWF2XLH.js} +12 -12
- package/dist/bundle/{chunk-MYLNRBDF.js → chunk-FVJSDDSV.js} +46 -13
- package/dist/bundle/{chunk-TV75OHKJ.js → chunk-G3FQTKHT.js} +7 -7
- package/dist/bundle/{chunk-WNA2WNDK.js → chunk-G7XOBQB5.js} +3 -3
- package/dist/bundle/{chunk-PSYQPO6D.js → chunk-H3LAORYX.js} +2 -2
- package/dist/bundle/{chunk-2DQYP2K3.js → chunk-HIHZNBR7.js} +1 -1
- package/dist/bundle/{chunk-QAXIZHK7.js → chunk-HNQGX4AG.js} +33 -33
- package/dist/bundle/{chunk-22CDLXSR.js → chunk-I4HWKPQR.js} +4 -4
- package/dist/bundle/{chunk-2NFI7SDW.js → chunk-INQAQ55X.js} +2304 -1111
- package/dist/bundle/{chunk-XTEJXJJ3.js → chunk-IP5CA3CW.js} +10 -10
- package/dist/bundle/{chunk-EO4JMJFZ.js → chunk-IXZWUHSG.js} +7 -7
- package/dist/bundle/{chunk-MWQI6FSU.js → chunk-K55WZ67L.js} +3 -3
- package/dist/bundle/{chunk-YTJWIJIG.js → chunk-KH43CUE2.js} +5 -5
- package/dist/bundle/{chunk-2C7Z7CKD.js → chunk-LIF2HXIQ.js} +1 -1
- package/dist/bundle/{chunk-GVEY6743.js → chunk-LRS5X7G3.js} +9 -9
- package/dist/bundle/{chunk-3LGLKLBA.js → chunk-M2DAITNE.js} +2 -2
- package/dist/bundle/{chunk-OAO5UCPJ.js → chunk-MAGAWAPG.js} +1366 -1574
- package/dist/bundle/{chunk-7JFLHRQL.js → chunk-MKOQDN3I.js} +1 -1
- package/dist/bundle/{chunk-67VEVKMJ.js → chunk-MSTWHRLN.js} +1 -1
- package/dist/bundle/{chunk-YXXAPVAZ.js → chunk-NLRPCKUS.js} +8 -8
- package/dist/bundle/{chunk-W2FFA7T5.js → chunk-NNUS57F4.js} +5 -5
- package/dist/bundle/{chunk-3YVLNOPE.js → chunk-OHBP2KPQ.js} +4 -4
- package/dist/bundle/{chunk-BJJULUUC.js → chunk-OWFC6BAF.js} +5 -5
- package/dist/bundle/{chunk-267N22E4.js → chunk-PGOMGFXA.js} +1 -1
- package/dist/bundle/{chunk-4HSWIXYE.js → chunk-PHL53ERQ.js} +4 -4
- package/dist/bundle/{chunk-5EHUHZU5.js → chunk-QNJ4EKKW.js} +80 -68
- package/dist/bundle/{chunk-53EAI4VZ.js → chunk-QUPPO7DB.js} +1 -1
- package/dist/bundle/{chunk-276KPJI5.js → chunk-RF6KPQWV.js} +2 -2
- package/dist/bundle/{chunk-TXOXPQN2.js → chunk-SL2LXOCN.js} +2 -2
- package/dist/bundle/{chunk-QZU5IM5E.js → chunk-SR7C53CS.js} +2 -2
- package/dist/bundle/{chunk-ECHN36DC.js → chunk-STJWETNW.js} +4 -4
- package/dist/bundle/{chunk-BGWPKEKK.js → chunk-SVVSGUMU.js} +4 -4
- package/dist/bundle/{chunk-FQ54GW57.js → chunk-TG3XWDFI.js} +8360 -8360
- package/dist/bundle/{chunk-V2YS63Z5.js → chunk-U3P5F57B.js} +1 -1
- package/dist/bundle/{chunk-PHSYMVYX.js → chunk-UCRR7R6Q.js} +2 -2
- package/dist/bundle/{chunk-2F35N6BI.js → chunk-UX52EWLQ.js} +1 -1
- package/dist/bundle/{chunk-OHA7HDPX.js → chunk-V6BJM3XW.js} +1024 -676
- package/dist/bundle/{chunk-TVZXLAID.js → chunk-X337K4BD.js} +10 -6
- package/dist/bundle/{chunk-UEMI6FXR.js → chunk-XNX3U6GD.js} +6 -6
- package/dist/bundle/{chunk-7L4PBN5S.js → chunk-ZM6J47GY.js} +2 -2
- package/dist/bundle/{command-contract-OGW2DX4C.js → command-contract-7QECBB6M.js} +11 -11
- package/dist/bundle/{decode-IJMDTGTW.js → decode-WRWXOJML.js} +2 -2
- package/dist/bundle/{echarts-EHYUXOKP.js → echarts-MTCNTCST.js} +2 -2
- package/dist/bundle/{embed-RUY3UIVC.js → embed-PPPCHSTE.js} +3 -3
- package/dist/bundle/{embedder-P6WBMEGP.js → embedder-UJBIX6A2.js} +6 -6
- package/dist/bundle/{entry-7S2ONYSF.js → entry-4P5556KI.js} +4 -4
- package/dist/bundle/failure-3F3YHF7G.js +65 -0
- package/dist/bundle/{first-run-MLIFZSVH.js → first-run-EKRDZLLY.js} +5 -5
- package/dist/bundle/{first-screen-DGTTK6VK.js → first-screen-FRRTKWFB.js} +12 -12
- package/dist/bundle/{instructions-ZMG4FLGO.js → instructions-JKIO4JF7.js} +1 -1
- package/dist/bundle/{mcp-CFIL7WZU.js → mcp-FQPK2KAF.js} +35 -35
- package/dist/bundle/memo.js +14 -11
- package/dist/bundle/{node-QYL4B7JS.js → node-3AIXDDDR.js} +2 -2
- package/dist/bundle/{node-sqlite-ESTT2OCF.js → node-sqlite-NX722DXD.js} +3 -3
- package/dist/bundle/{oauth-CFQFSIRQ.js → oauth-2NPSI7Q3.js} +4 -4
- package/dist/bundle/{open-3XO2HMIT.js → open-AFRN6Q36.js} +2 -2
- package/dist/bundle/{openai-STUNDBD6.js → openai-U5CQFLRU.js} +7 -7
- package/dist/bundle/{process-P4UAJCZX.js → process-J2IBN6X7.js} +1 -1
- package/dist/bundle/{program-BXL5ZOVQ.js → program-L5IM35PO.js} +1433 -531
- package/dist/bundle/{prompt-ZCYMFMIG.js → prompt-6XNKR4VQ.js} +2 -2
- package/dist/bundle/{recognize-V3BY33FK.js → recognize-G3GI32QS.js} +1 -1
- package/dist/bundle/{remote-IP4QR7SP.js → remote-DJO255PT.js} +4 -4
- package/dist/bundle/{rerank-VKUSF3DM.js → rerank-5SBZRIHF.js} +4 -4
- package/dist/bundle/{serve-VBIUARHJ.js → serve-BZVBKGU3.js} +6 -6
- package/dist/bundle/server-GCESLOOF.js +48 -0
- package/dist/bundle/server-JUSMYLIQ.js +61 -0
- package/dist/bundle/{server-JLPZUC42.js → server-LWQAHDBH.js} +55 -52
- package/dist/bundle/{state-UBAIZ2WP.js → state-A57F7T5D.js} +3 -3
- package/dist/bundle/{store-VQQVUA4W.js → store-WG2GYWTG.js} +9 -9
- package/dist/bundle/store-maintenance-command-GTY6VU76.js +47 -0
- package/dist/bundle/update-LICMP7UR.js +68 -0
- package/dist/context/command.d.ts +2 -1
- package/dist/context/command.d.ts.map +1 -1
- package/dist/context/command.js +34 -12
- package/dist/context/command.js.map +1 -1
- package/dist/context/context.d.ts +20 -8
- package/dist/context/context.d.ts.map +1 -1
- package/dist/context/context.js +65 -40
- package/dist/context/context.js.map +1 -1
- package/dist/contract-overrides/search.js +1 -1
- package/dist/contract-overrides/search.js.map +1 -1
- package/dist/contract-overrides/skill.d.ts.map +1 -1
- package/dist/contract-overrides/skill.js +5 -10
- package/dist/contract-overrides/skill.js.map +1 -1
- package/dist/digest/backfill.d.ts.map +1 -1
- package/dist/digest/backfill.js +4 -2
- package/dist/digest/backfill.js.map +1 -1
- package/dist/digest/brief.d.ts +14 -0
- package/dist/digest/brief.d.ts.map +1 -0
- package/dist/digest/brief.js +143 -0
- package/dist/digest/brief.js.map +1 -0
- package/dist/digest/digest.d.ts.map +1 -1
- package/dist/digest/digest.js +2 -1
- package/dist/digest/digest.js.map +1 -1
- package/dist/discovery/command.d.ts.map +1 -1
- package/dist/discovery/command.js +2 -0
- package/dist/discovery/command.js.map +1 -1
- package/dist/doctor/command.d.ts +22 -2
- package/dist/doctor/command.d.ts.map +1 -1
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +51 -10
- package/dist/examples.js.map +1 -1
- package/dist/facts/command.d.ts.map +1 -1
- package/dist/facts/command.js +7 -6
- package/dist/facts/command.js.map +1 -1
- package/dist/finance/deal-text.d.ts +4 -0
- package/dist/finance/deal-text.d.ts.map +1 -0
- package/dist/finance/deal-text.js +34 -0
- package/dist/finance/deal-text.js.map +1 -0
- package/dist/finance/deals-command.d.ts +1 -1
- package/dist/finance/deals-command.d.ts.map +1 -1
- package/dist/finance/deals-command.js +113 -13
- package/dist/finance/deals-command.js.map +1 -1
- package/dist/knowledge/business-text.d.ts +7 -0
- package/dist/knowledge/business-text.d.ts.map +1 -0
- package/dist/knowledge/business-text.js +19 -0
- package/dist/knowledge/business-text.js.map +1 -0
- package/dist/knowledge/command.d.ts +1 -1
- package/dist/knowledge/command.d.ts.map +1 -1
- package/dist/knowledge/command.js +131 -42
- package/dist/knowledge/command.js.map +1 -1
- package/dist/knowledge/money-text.d.ts +4 -0
- package/dist/knowledge/money-text.d.ts.map +1 -0
- package/dist/knowledge/money-text.js +16 -0
- package/dist/knowledge/money-text.js.map +1 -0
- package/dist/knowledge/organization-text.d.ts +7 -0
- package/dist/knowledge/organization-text.d.ts.map +1 -0
- package/dist/knowledge/organization-text.js +24 -0
- package/dist/knowledge/organization-text.js.map +1 -0
- package/dist/knowledge/project-actions-command.js +1 -1
- package/dist/knowledge/project-actions-command.js.map +1 -1
- package/dist/knowledge/project-actions.d.ts +1 -1
- package/dist/knowledge/project-actions.d.ts.map +1 -1
- package/dist/knowledge/project-actions.js +2 -2
- package/dist/knowledge/project-actions.js.map +1 -1
- package/dist/knowledge/project-context.d.ts +27 -1
- package/dist/knowledge/project-context.d.ts.map +1 -1
- package/dist/knowledge/project-context.js +9 -5
- package/dist/knowledge/project-context.js.map +1 -1
- package/dist/knowledge/project-status-command.d.ts.map +1 -1
- package/dist/knowledge/project-status-command.js +21 -5
- package/dist/knowledge/project-status-command.js.map +1 -1
- package/dist/knowledge/relationships.d.ts +27 -23
- package/dist/knowledge/relationships.d.ts.map +1 -1
- package/dist/knowledge/relationships.js +65 -52
- package/dist/knowledge/relationships.js.map +1 -1
- package/dist/knowledge/roles-command.d.ts +8 -0
- package/dist/knowledge/roles-command.d.ts.map +1 -0
- package/dist/knowledge/roles-command.js +65 -0
- package/dist/knowledge/roles-command.js.map +1 -0
- package/dist/mcp/catalogue.d.ts +1 -1
- package/dist/mcp/catalogue.d.ts.map +1 -1
- package/dist/mcp/catalogue.js +3 -1
- package/dist/mcp/catalogue.js.map +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/server.js.map +1 -1
- package/dist/memories/command.d.ts.map +1 -1
- package/dist/memories/command.js +6 -5
- package/dist/memories/command.js.map +1 -1
- package/dist/memories/sources.js +2 -2
- package/dist/memories/sources.js.map +1 -1
- package/dist/models/command.d.ts +1 -1
- package/dist/models/command.d.ts.map +1 -1
- package/dist/models/command.js +2 -1
- package/dist/models/command.js.map +1 -1
- package/dist/notes/command.d.ts.map +1 -1
- package/dist/notes/command.js +13 -8
- package/dist/notes/command.js.map +1 -1
- package/dist/notes/embed.d.ts +6 -1
- package/dist/notes/embed.d.ts.map +1 -1
- package/dist/notes/embed.js +17 -8
- package/dist/notes/embed.js.map +1 -1
- package/dist/people/command.d.ts.map +1 -1
- package/dist/people/command.js +2 -1
- package/dist/people/command.js.map +1 -1
- package/dist/program.d.ts +13 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +173 -11
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +42 -0
- package/dist/reasons.js.map +1 -1
- package/dist/review/command.js +2 -2
- package/dist/review/command.js.map +1 -1
- package/dist/review/review.d.ts +3 -3
- package/dist/review/review.d.ts.map +1 -1
- package/dist/review/review.js +6 -6
- package/dist/review/review.js.map +1 -1
- package/dist/review/status.d.ts.map +1 -1
- package/dist/review/status.js +5 -4
- package/dist/review/status.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 +9 -3
- package/dist/run/import.js.map +1 -1
- package/dist/search/command.d.ts.map +1 -1
- package/dist/search/command.js +21 -3
- package/dist/search/command.js.map +1 -1
- package/dist/search/denied.d.ts +10 -0
- package/dist/search/denied.d.ts.map +1 -0
- package/dist/search/denied.js +10 -0
- package/dist/search/denied.js.map +1 -0
- package/dist/search/people.d.ts.map +1 -1
- package/dist/search/people.js +11 -1
- package/dist/search/people.js.map +1 -1
- package/dist/search/search.d.ts +2 -0
- package/dist/search/search.d.ts.map +1 -1
- package/dist/search/search.js +37 -12
- package/dist/search/search.js.map +1 -1
- package/dist/store/group.d.ts +38 -0
- package/dist/store/group.d.ts.map +1 -0
- package/dist/store/group.js +112 -0
- package/dist/store/group.js.map +1 -0
- package/dist/store/groups-command.d.ts +10 -0
- package/dist/store/groups-command.d.ts.map +1 -0
- package/dist/store/groups-command.js +88 -0
- package/dist/store/groups-command.js.map +1 -0
- package/dist/store/guard.d.ts +29 -0
- package/dist/store/guard.d.ts.map +1 -0
- package/dist/store/guard.js +94 -0
- package/dist/store/guard.js.map +1 -0
- package/dist/store/scope.d.ts +3 -3
- package/dist/store/scope.d.ts.map +1 -1
- package/dist/store/scope.js +7 -6
- package/dist/store/scope.js.map +1 -1
- package/dist/store/source-list.d.ts +5 -1
- package/dist/store/source-list.d.ts.map +1 -1
- package/dist/store/source-list.js +30 -15
- package/dist/store/source-list.js.map +1 -1
- package/dist/tags/command.d.ts.map +1 -1
- package/dist/tags/command.js +3 -2
- package/dist/tags/command.js.map +1 -1
- package/dist/tasks/shared.d.ts.map +1 -1
- package/dist/tasks/shared.js +2 -1
- package/dist/tasks/shared.js.map +1 -1
- package/dist/tasks/tasks.js +3 -3
- package/dist/tasks/tasks.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -4
- package/skills/cli-memo/SKILL.md +7 -7
- package/skills/cli-memo/topics/mcp.md +9 -0
- package/skills/cli-memo/topics/money.md +14 -1
- package/skills/cli-memo/topics/projects.md +2 -1
- package/skills/cli-memo/topics/search.md +12 -4
- package/dist/bundle/auto-IKZIROGF.js +0 -85
- package/dist/bundle/failure-NRZUB77S.js +0 -65
- package/dist/bundle/server-AASCSGCI.js +0 -61
- package/dist/bundle/server-YQLPZK4Z.js +0 -48
- package/dist/bundle/store-maintenance-command-GCBABKEZ.js +0 -47
- package/dist/bundle/update-M54Z3SEU.js +0 -68
- /package/dist/bundle/{chunk-AWVQHWIS.js → chunk-YSYFOIW7.js} +0 -0
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
answerOf,
|
|
5
5
|
messengerContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DW6CDBXA.js";
|
|
7
7
|
import {
|
|
8
8
|
FETCHING,
|
|
9
9
|
QUICK_HEALTH_CHECKS,
|
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
chatEventAnswer,
|
|
14
14
|
embeddingKeys,
|
|
15
15
|
endpointKeyName,
|
|
16
|
-
explainDamage,
|
|
17
16
|
fts5Tables,
|
|
18
17
|
invalidJson,
|
|
18
|
+
lossUnknown,
|
|
19
19
|
memberAnswer,
|
|
20
20
|
modelGateway,
|
|
21
21
|
newSendId,
|
|
@@ -27,12 +27,13 @@ import {
|
|
|
27
27
|
senderIsMe,
|
|
28
28
|
serveRelay,
|
|
29
29
|
servicesFor,
|
|
30
|
+
storeDamageReport,
|
|
30
31
|
storeHealth,
|
|
31
32
|
syncsOneChat,
|
|
32
33
|
typedQuery,
|
|
33
34
|
withQuery,
|
|
34
35
|
withTimeLimit
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-2LTQ6ZBS.js";
|
|
36
37
|
import {
|
|
37
38
|
stringWidth,
|
|
38
39
|
wrapAnsi
|
|
@@ -45,7 +46,6 @@ import {
|
|
|
45
46
|
REMOTE_WRITE,
|
|
46
47
|
annotate,
|
|
47
48
|
codeOf,
|
|
48
|
-
currentRun,
|
|
49
49
|
destroysNothing,
|
|
50
50
|
environmentOf,
|
|
51
51
|
itemOf,
|
|
@@ -63,17 +63,17 @@ import {
|
|
|
63
63
|
snakeKeys,
|
|
64
64
|
storeTable,
|
|
65
65
|
withoutProviderRefs
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-MAGAWAPG.js";
|
|
67
67
|
import {
|
|
68
68
|
holdLock,
|
|
69
69
|
lockPath,
|
|
70
70
|
releaseLock,
|
|
71
71
|
servingProfiles,
|
|
72
72
|
takeLock
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-ZM6J47GY.js";
|
|
74
74
|
import {
|
|
75
75
|
holdersOf
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-3LS76TFB.js";
|
|
77
77
|
import {
|
|
78
78
|
CORPORA,
|
|
79
79
|
MIGRATIONS,
|
|
@@ -86,7 +86,6 @@ import {
|
|
|
86
86
|
fillStems,
|
|
87
87
|
fillTrigrams,
|
|
88
88
|
fillVectorIndexes,
|
|
89
|
-
formatLocator,
|
|
90
89
|
involvementStoreOver,
|
|
91
90
|
isDerivedTable,
|
|
92
91
|
migrate,
|
|
@@ -94,7 +93,6 @@ import {
|
|
|
94
93
|
openSqlite,
|
|
95
94
|
openStore,
|
|
96
95
|
orphanPointers,
|
|
97
|
-
parseLocator,
|
|
98
96
|
pendingNormalization,
|
|
99
97
|
readStoreTables,
|
|
100
98
|
rebuildMentions,
|
|
@@ -110,26 +108,30 @@ import {
|
|
|
110
108
|
storeClients,
|
|
111
109
|
storeContents,
|
|
112
110
|
vectorIndexCounts
|
|
113
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-CZUAGRL7.js";
|
|
114
112
|
import {
|
|
113
|
+
currentRun,
|
|
114
|
+
formatLocator,
|
|
115
|
+
parseLocator,
|
|
115
116
|
queryFieldsOf,
|
|
116
117
|
readDamageMark,
|
|
117
118
|
readHealthMark,
|
|
119
|
+
readJournalMark,
|
|
118
120
|
recordDeepCheck
|
|
119
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-INQAQ55X.js";
|
|
120
122
|
import {
|
|
121
123
|
failureKey,
|
|
122
124
|
isStoreDamage
|
|
123
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-M2DAITNE.js";
|
|
124
126
|
import {
|
|
125
127
|
readSecret
|
|
126
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-UCRR7R6Q.js";
|
|
127
129
|
import {
|
|
128
130
|
storePath
|
|
129
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-U3P5F57B.js";
|
|
130
132
|
import {
|
|
131
133
|
openCache
|
|
132
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-KH43CUE2.js";
|
|
133
135
|
import {
|
|
134
136
|
resolvePaths,
|
|
135
137
|
writeSecurely
|
|
@@ -5499,11 +5501,11 @@ var require_liquid_node = __commonJS({
|
|
|
5499
5501
|
}
|
|
5500
5502
|
});
|
|
5501
5503
|
|
|
5502
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5504
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5503
5505
|
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";
|
|
5504
5506
|
import { dirname as dirname3, resolve } from "node:path";
|
|
5505
5507
|
|
|
5506
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5508
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5507
5509
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5508
5510
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5509
5511
|
import { Transform } from "node:stream";
|
|
@@ -5610,7 +5612,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5610
5612
|
renameSync(pending, to);
|
|
5611
5613
|
}, "unsealFile");
|
|
5612
5614
|
|
|
5613
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5615
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5614
5616
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5615
5617
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5616
5618
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5634,7 +5636,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5634
5636
|
};
|
|
5635
5637
|
}, "compatibilityOf");
|
|
5636
5638
|
|
|
5637
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5639
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5638
5640
|
import { createHash as createHash2 } from "node:crypto";
|
|
5639
5641
|
var COPY_MARK = "__repair_";
|
|
5640
5642
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5888,19 +5890,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5888
5890
|
return found;
|
|
5889
5891
|
}, "deleteCopy");
|
|
5890
5892
|
|
|
5891
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5893
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5892
5894
|
import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
|
|
5893
5895
|
|
|
5894
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
5895
5897
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5896
5898
|
|
|
5897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
5898
5900
|
import { execFileSync, spawn } from "node:child_process";
|
|
5899
5901
|
import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
|
|
5900
5902
|
import { basename, dirname, join } from "node:path";
|
|
5901
5903
|
import { Transform as Transform2 } from "node:stream";
|
|
5902
5904
|
|
|
5903
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5905
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/store/refill.js
|
|
5904
5906
|
var REFILL_MARGIN_MS = 864e5;
|
|
5905
5907
|
var TIME_KEYS = 1e12;
|
|
5906
5908
|
var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
|
|
@@ -5980,7 +5982,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
|
|
|
5980
5982
|
return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
|
|
5981
5983
|
}, "forgetMail");
|
|
5982
5984
|
|
|
5983
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5985
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
5984
5986
|
var SQLITE3_MINIMUM = [3, 43, 0];
|
|
5985
5987
|
var STORE_PARTS = ["", "-wal", "-shm"];
|
|
5986
5988
|
var RECOVER_LOCK = ".recover-lock";
|
|
@@ -6508,7 +6510,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
|
|
|
6508
6510
|
}
|
|
6509
6511
|
}, "recoverLocked");
|
|
6510
6512
|
|
|
6511
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6513
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
6512
6514
|
var COUNTED = [
|
|
6513
6515
|
"accounts",
|
|
6514
6516
|
"chats",
|
|
@@ -6541,18 +6543,23 @@ var storeRecoveryCheck = /* @__PURE__ */ __name(async (env, command, version) =>
|
|
|
6541
6543
|
}
|
|
6542
6544
|
} catch {
|
|
6543
6545
|
}
|
|
6546
|
+
const journal = readJournalMark(path);
|
|
6544
6547
|
recordDeepCheck(path, health, { cli: command, ...version ? { version } : {}, schema });
|
|
6545
6548
|
const mark = readDamageMark(path);
|
|
6546
|
-
const
|
|
6549
|
+
const lastKnownGood = readHealthMark(path)?.last_ok_at ?? null;
|
|
6547
6550
|
const inUse = storeHolders(path) ?? null;
|
|
6548
6551
|
const timers = activeTimers() ?? null;
|
|
6549
6552
|
const sqlite3 = sqlite3Program();
|
|
6550
|
-
const
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6553
|
+
const report = storeDamageReport({
|
|
6554
|
+
health,
|
|
6555
|
+
command,
|
|
6556
|
+
mark,
|
|
6557
|
+
journal,
|
|
6558
|
+
lastOkAt: lastKnownGood,
|
|
6559
|
+
holders: inUse,
|
|
6560
|
+
timers,
|
|
6561
|
+
sqlite3Usable: sqlite3.usable
|
|
6562
|
+
});
|
|
6556
6563
|
return {
|
|
6557
6564
|
path,
|
|
6558
6565
|
exists: true,
|
|
@@ -6563,13 +6570,13 @@ var storeRecoveryCheck = /* @__PURE__ */ __name(async (env, command, version) =>
|
|
|
6563
6570
|
damagedSearchIndexes: (health.searchIndexes ?? []).filter((index) => !index.ok).map(({ name, error }) => ({ name, ...error ? { error } : {} })),
|
|
6564
6571
|
invalidJson: health.invalidJson ?? [],
|
|
6565
6572
|
rows,
|
|
6566
|
-
|
|
6573
|
+
report,
|
|
6567
6574
|
damageMark: mark ? (({ inode: _, ...seen }) => seen)(mark) : null,
|
|
6568
|
-
lastKnownGood
|
|
6575
|
+
lastKnownGood,
|
|
6569
6576
|
inUse,
|
|
6570
6577
|
timers,
|
|
6571
6578
|
sqlite3: { version: sqlite3.version, usable: sqlite3.usable },
|
|
6572
|
-
next
|
|
6579
|
+
next: report?.steps.map((step) => step.command) ?? []
|
|
6573
6580
|
};
|
|
6574
6581
|
}, "storeRecoveryCheck");
|
|
6575
6582
|
var storeRecoveryRun = /* @__PURE__ */ __name(async (env, { command, version, note, timers: scheduled = activeTimers, copy }) => {
|
|
@@ -6610,13 +6617,12 @@ var refetchNotes = /* @__PURE__ */ __name(({ since, chats, mail }) => {
|
|
|
6610
6617
|
var recoveryNotes = /* @__PURE__ */ __name((answer) => {
|
|
6611
6618
|
if ("keptAt" in answer) {
|
|
6612
6619
|
const lost = answer.lost.map(({ table, before, read, kept, goneAtLeast, seenIn }) => `${table}: ${kept} kept of ${before ?? "an uncountable number"}${read > kept ? `, ${read - kept} read but unusable` : ""}` + (goneAtLeast > 0 ? `; at least ${goneAtLeast} rows are gone (the index ${seenIn} lists them)` : ""));
|
|
6613
|
-
const since = answer.lastKnownGood ? `since the last deep check that passed (${answer.lastKnownGood})` : "since the store was made (no deep check that passed is on record)";
|
|
6614
6620
|
return [
|
|
6615
6621
|
`recovered in ${answer.seconds.total} s; the damaged file is kept at ${answer.keptAt}`,
|
|
6616
6622
|
...lost,
|
|
6617
6623
|
...Object.entries(answer.placed).map(([table, rows]) => `${table}: ${rows} rows found on pages no table claimed were put back`),
|
|
6618
6624
|
...refetchNotes(answer.refetch),
|
|
6619
|
-
|
|
6625
|
+
lossUnknown(answer.lastKnownGood, lost.some((line) => line.includes("are gone"))),
|
|
6620
6626
|
...answer.dangling.map(({ table, parent, rows }) => `${rows} rows of ${table} point at ${parent} rows the store does not hold`),
|
|
6621
6627
|
...answer.invalidJson.map(({ table, column, rows, required }) => `${table}.${column}: ${rows} values were not valid JSON \u2014 ${required ? "those rows were dropped" : "set to empty"}`),
|
|
6622
6628
|
...answer.next.map((line) => `next: ${line}`)
|
|
@@ -6624,13 +6630,16 @@ var recoveryNotes = /* @__PURE__ */ __name((answer) => {
|
|
|
6624
6630
|
}
|
|
6625
6631
|
if (!answer.exists)
|
|
6626
6632
|
return ["no store yet"];
|
|
6627
|
-
|
|
6633
|
+
const report = answer.report;
|
|
6634
|
+
if (!report)
|
|
6628
6635
|
return [`the store is healthy (checked every page and search index in ${answer.seconds} s)`];
|
|
6629
|
-
const why = answer.explanation;
|
|
6630
6636
|
return [
|
|
6631
|
-
|
|
6632
|
-
|
|
6633
|
-
|
|
6637
|
+
report.whatHappened,
|
|
6638
|
+
...report.impact,
|
|
6639
|
+
report.externalDataSafe,
|
|
6640
|
+
report.loss,
|
|
6641
|
+
...report.likelyCauses.map(({ cause, check: check2 }) => `maybe: ${cause} \u2014 check: ${check2}`),
|
|
6642
|
+
...report.steps.map(({ command, why, destructive }) => `next: ${command} # ${destructive ? "changes things: " : ""}${why}`)
|
|
6634
6643
|
];
|
|
6635
6644
|
}, "recoveryNotes");
|
|
6636
6645
|
var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
|
|
@@ -6657,7 +6666,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
|
|
|
6657
6666
|
return recover;
|
|
6658
6667
|
}, "storeRecoverCommand");
|
|
6659
6668
|
|
|
6660
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6669
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
6661
6670
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
6662
6671
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
|
|
6663
6672
|
var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
|
|
@@ -6703,7 +6712,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
6703
6712
|
renderAnswer(this, outputFor(this), itemOf(answer));
|
|
6704
6713
|
}), "storeInfoCommand");
|
|
6705
6714
|
|
|
6706
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
6707
6716
|
var ENCRYPT_OPTION = [
|
|
6708
6717
|
"--encrypt",
|
|
6709
6718
|
"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"
|
|
@@ -6722,7 +6731,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
6722
6731
|
return password;
|
|
6723
6732
|
}, "passwordOf");
|
|
6724
6733
|
|
|
6725
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6734
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
6726
6735
|
import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
|
|
6727
6736
|
import { join as join2 } from "node:path";
|
|
6728
6737
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6893,7 +6902,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6893
6902
|
}, "problem");
|
|
6894
6903
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6895
6904
|
|
|
6896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6905
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6897
6906
|
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
6898
6907
|
import { join as join3 } from "node:path";
|
|
6899
6908
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6946,7 +6955,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6946
6955
|
}, "recordReply");
|
|
6947
6956
|
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");
|
|
6948
6957
|
|
|
6949
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6950
6959
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6951
6960
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6952
6961
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -7052,10 +7061,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
7052
7061
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
7053
7062
|
}, "filled");
|
|
7054
7063
|
|
|
7055
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7056
7065
|
var import_liquidjs2 = __toESM(require_liquid_node(), 1);
|
|
7057
7066
|
|
|
7058
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7067
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/render/liquid.js
|
|
7059
7068
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
7060
7069
|
var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
7061
7070
|
const engine = new import_liquidjs.Liquid({
|
|
@@ -7082,7 +7091,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
|
7082
7091
|
return engine;
|
|
7083
7092
|
}, "safeLiquid");
|
|
7084
7093
|
|
|
7085
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7094
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7086
7095
|
var TEMPLATE_LIMITS = {
|
|
7087
7096
|
parse: 32768,
|
|
7088
7097
|
renders: 2e3,
|
|
@@ -7221,7 +7230,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
7221
7230
|
}
|
|
7222
7231
|
}, "renderReplyTemplate");
|
|
7223
7232
|
|
|
7224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7233
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
7225
7234
|
var DRY_RUN_DAYS = 7;
|
|
7226
7235
|
var PAGE = 500;
|
|
7227
7236
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -7335,7 +7344,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
7335
7344
|
}
|
|
7336
7345
|
}, "storedSince");
|
|
7337
7346
|
|
|
7338
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7347
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
7339
7348
|
import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
|
|
7340
7349
|
import { join as join4 } from "node:path";
|
|
7341
7350
|
var shape = strictObject({
|
|
@@ -7360,7 +7369,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
7360
7369
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
7361
7370
|
}, "mayModelReply");
|
|
7362
7371
|
|
|
7363
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
7364
7373
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
|
|
7365
7374
|
ai: true
|
|
7366
7375
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -7407,7 +7416,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
7407
7416
|
return result2;
|
|
7408
7417
|
}, "replyRenderer");
|
|
7409
7418
|
|
|
7410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
7411
7420
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
7412
7421
|
var NO_RULES = "no rules";
|
|
7413
7422
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -7500,7 +7509,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
7500
7509
|
return { skip: why };
|
|
7501
7510
|
}, "replyTo");
|
|
7502
7511
|
|
|
7503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7512
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
|
|
7504
7513
|
var START_SYNC_DELAY_MS = 3e4;
|
|
7505
7514
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
7506
7515
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -7577,7 +7586,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
|
|
|
7577
7586
|
};
|
|
7578
7587
|
}, "startSync");
|
|
7579
7588
|
|
|
7580
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7589
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
7581
7590
|
var FIRST_FETCH_MS = 6e4;
|
|
7582
7591
|
var DAY_MS = 864e5;
|
|
7583
7592
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -7631,7 +7640,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
|
|
|
7631
7640
|
};
|
|
7632
7641
|
}, "memberFetches");
|
|
7633
7642
|
|
|
7634
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7643
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
7635
7644
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
7636
7645
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
7637
7646
|
if (context.format === "pretty") {
|
|
@@ -7664,7 +7673,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7664
7673
|
return context;
|
|
7665
7674
|
}, "recordDiagnostics");
|
|
7666
7675
|
|
|
7667
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7676
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
|
|
7668
7677
|
import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
|
|
7669
7678
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
7670
7679
|
var OUTDATED_CHECK_MS = 6e4;
|
|
@@ -7750,7 +7759,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
|
|
|
7750
7759
|
};
|
|
7751
7760
|
}, "watchOutdated");
|
|
7752
7761
|
|
|
7753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7762
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
7754
7763
|
var STEMS_EVERY_MS = 3e4;
|
|
7755
7764
|
var STEMS_SLICE_MS = 2e3;
|
|
7756
7765
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -7790,7 +7799,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
7790
7799
|
};
|
|
7791
7800
|
}, "stemFills");
|
|
7792
7801
|
|
|
7793
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7802
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/render/messages.js
|
|
7794
7803
|
import { styleText } from "node:util";
|
|
7795
7804
|
var TIME_WIDTH = 8;
|
|
7796
7805
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -7966,7 +7975,7 @@ var editedAt = /* @__PURE__ */ __name((message, options) => {
|
|
|
7966
7975
|
return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
|
|
7967
7976
|
}, "editedAt");
|
|
7968
7977
|
|
|
7969
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7978
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
7970
7979
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
7971
7980
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
7972
7981
|
kind: attachment.kind,
|
|
@@ -8061,7 +8070,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
8061
8070
|
locale: messenger.app.locale
|
|
8062
8071
|
}), "viewOf");
|
|
8063
8072
|
|
|
8064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8073
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
8065
8074
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
8066
8075
|
value: value.value,
|
|
8067
8076
|
observed_at: value.observedAt,
|
|
@@ -8128,7 +8137,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
8128
8137
|
}
|
|
8129
8138
|
}, "watchEventItem");
|
|
8130
8139
|
|
|
8131
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
8132
8141
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
8133
8142
|
output: { entity: "watch_item" },
|
|
8134
8143
|
effects: REMOTE_READ,
|
|
@@ -8283,7 +8292,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
8283
8292
|
}
|
|
8284
8293
|
}, "describe");
|
|
8285
8294
|
|
|
8286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8295
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
8287
8296
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
8288
8297
|
const command = annotate(new Command("serve"), {
|
|
8289
8298
|
output: { entity: "serve_summary" },
|
|
@@ -8566,7 +8575,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
8566
8575
|
};
|
|
8567
8576
|
}, "tasking");
|
|
8568
8577
|
|
|
8569
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
8570
8579
|
import { existsSync as existsSync9 } from "node:fs";
|
|
8571
8580
|
var PATH = "store tables list";
|
|
8572
8581
|
var STORE_TABLES_QUERY = {
|
|
@@ -8609,7 +8618,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
|
|
|
8609
8618
|
return tables;
|
|
8610
8619
|
}, "storeTablesCommand");
|
|
8611
8620
|
|
|
8612
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
8613
8622
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
8614
8623
|
var WORD_INDEX = "message_words";
|
|
8615
8624
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -8648,6 +8657,7 @@ var storeSummary = /* @__PURE__ */ __name(async (env, { deep = false, command, v
|
|
|
8648
8657
|
if (!existsSync10(path))
|
|
8649
8658
|
return { path, exists: false };
|
|
8650
8659
|
const checked = await storeHealth(path, { deep });
|
|
8660
|
+
const journal = readJournalMark(path);
|
|
8651
8661
|
const recorded = deep ? recordDeepCheck(path, checked, {
|
|
8652
8662
|
cli: command ?? "unknown",
|
|
8653
8663
|
...version ? { version } : {},
|
|
@@ -8665,13 +8675,15 @@ var storeSummary = /* @__PURE__ */ __name(async (env, { deep = false, command, v
|
|
|
8665
8675
|
...checked.invalidJson?.length ? { invalidJson: checked.invalidJson } : {},
|
|
8666
8676
|
...checked.searchIndexes?.some((index) => !index.ok) ? { damagedSearchIndexes: checked.searchIndexes.filter((index) => !index.ok).map((index) => index.name) } : {}
|
|
8667
8677
|
};
|
|
8668
|
-
const damage = command ?
|
|
8678
|
+
const damage = command ? storeDamageReport({ health: checked, command, mark, journal, lastOkAt: lastKnownGood }) : null;
|
|
8669
8679
|
const healthOf = {
|
|
8670
8680
|
health,
|
|
8671
8681
|
lastKnownGood,
|
|
8672
8682
|
...mark ? { damageMark: withoutInode(mark) } : {},
|
|
8683
|
+
...journal ? { journalMark: journal } : {},
|
|
8673
8684
|
...recorded?.cleared ? { damageMarkCleared: withoutInode(recorded.cleared) } : {},
|
|
8674
|
-
|
|
8685
|
+
// `what` keeps memo's doctor, which reads it, compiling until it moves to `whatHappened`.
|
|
8686
|
+
...damage ? { damage: { what: damage.whatHappened, ...damage } } : {}
|
|
8675
8687
|
};
|
|
8676
8688
|
try {
|
|
8677
8689
|
return await reading(path, (database) => {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
|
|
8
8
|
var instructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => {
|
|
9
9
|
const all = typeof profile !== "string";
|
|
10
10
|
const offers = /* @__PURE__ */ __name((key) => all || writes.includes(key), "offers");
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
ACCESS_SECONDS,
|
|
9
9
|
REFRESH_SECONDS,
|
|
10
10
|
readStored
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-I4HWKPQR.js";
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
14
|
} from "./chunk-ZVVMGPBJ.js";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
|
|
17
17
|
import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
|
|
18
18
|
import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
SAMPLE_RATE,
|
|
5
5
|
decodeOgg
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-K55WZ67L.js";
|
|
7
7
|
import {
|
|
8
8
|
importFrom
|
|
9
9
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/speech/decode.js
|
|
18
18
|
import { spawn } from "node:child_process";
|
|
19
19
|
import { mkdtemp, rm, writeFile } from "node:fs/promises";
|
|
20
20
|
import { createRequire } from "node:module";
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
unit
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-CLQXHFKG.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-ZTONSM5X.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
|
|
14
14
|
import { setTimeout } from "node:timers/promises";
|
|
15
15
|
var OPENAI_URL = "https://api.openai.com/v1";
|
|
16
16
|
var OPENAI_MODELS = {
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
answeredWire
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UX52EWLQ.js";
|
|
6
6
|
import {
|
|
7
7
|
CALLER_META_KEY,
|
|
8
8
|
PROXY_CLIENT_NAME,
|
|
9
9
|
callerOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-H3LAORYX.js";
|
|
11
11
|
import {
|
|
12
12
|
StdioServerTransport,
|
|
13
13
|
serveStdio
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-ZVVMGPBJ.js";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.619.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_25b690dd810be59ade44e4d26e61c9f5/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
|
|
23
23
|
import { spawn } from "node:child_process";
|
|
24
24
|
import { randomUUID } from "node:crypto";
|
|
25
25
|
var PROTOCOL = "2025-06-18";
|
|
@@ -253,7 +253,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
253
253
|
}, "serveAllProfilesOverStdio");
|
|
254
254
|
var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
255
255
|
const { build, close } = allProfilesServer(options);
|
|
256
|
-
const { serveOverHttp } = await import("./serve-
|
|
256
|
+
const { serveOverHttp } = await import("./serve-BZVBKGU3.js");
|
|
257
257
|
const listening = await serveOverHttp(build, {
|
|
258
258
|
...http,
|
|
259
259
|
appName: options.command,
|