@wirecat/tg-cli 0.132.0 → 0.134.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/README.md +139 -319
- package/contracts/wirecat.json +82 -2
- package/dist/bin/tg.js +2 -2
- package/dist/bot/generated/types.d.ts +188 -0
- package/dist/bot/generated/types.d.ts.map +1 -1
- package/dist/bundle/{adapter-OXVMOWVE.js → adapter-Y4IXTXAG.js} +104 -68
- package/dist/bundle/agent-G7VHOJMS.js +37 -0
- package/dist/bundle/{all-profiles-6OQC7PBL.js → all-profiles-SUGID6CX.js} +62 -20
- package/dist/bundle/{anthropic-YFMIHFW5.js → anthropic-4QKTXT4B.js} +5 -5
- package/dist/bundle/{app-server-S7CJPJXN.js → app-server-TPOD6LIJ.js} +75 -65
- package/dist/bundle/{bot-api-KJ6EZ4R6.js → bot-api-KBESP422.js} +73 -91
- package/dist/bundle/{bot-history-JYCXDFW4.js → bot-history-3EORA23G.js} +23 -22
- package/dist/bundle/{bun-FVTOBYZ2.js → bun-FL76M4M2.js} +2 -2
- package/dist/bundle/{bun-sqlite-KDGWBNOR.js → bun-sqlite-H37OSTAJ.js} +6 -6
- package/dist/bundle/{chunk-JZJV3DYK.js → chunk-2GT563YH.js} +2 -2
- package/dist/bundle/{chunk-EPR67IRV.js → chunk-2JWY7CXJ.js} +4 -4
- package/dist/bundle/{chunk-UGD4SCUI.js → chunk-3O25FAPA.js} +3 -4
- package/dist/bundle/{chunk-AERP2QR6.js → chunk-3PG6QVQZ.js} +11 -25
- package/dist/bundle/{chunk-DXPGMUOR.js → chunk-3QQWTP77.js} +2 -2
- package/dist/bundle/{chunk-FIUH52FE.js → chunk-3ZNO27UE.js} +1 -1
- package/dist/bundle/{chunk-Y57EKZZK.js → chunk-4R2ZJGFF.js} +3274 -1674
- package/dist/bundle/{chunk-6LPUK62N.js → chunk-4S2DHHJM.js} +2 -100
- package/dist/bundle/{chunk-LF6FACSW.js → chunk-4X6BX3XP.js} +144 -10
- package/dist/bundle/{chunk-LZ3HFDYL.js → chunk-6DGVK5KS.js} +2 -2
- package/dist/bundle/chunk-6DJJVFSG.js +388 -0
- package/dist/bundle/{chunk-BSXS7VAC.js → chunk-6MEHKUN6.js} +1 -1
- package/dist/bundle/{chunk-44A2XRDE.js → chunk-6UNLEQA5.js} +31 -20
- package/dist/bundle/{chunk-M2TV6BDB.js → chunk-77E7Q4EQ.js} +7 -7
- package/dist/bundle/chunk-7GGDCQJ5.js +353 -0
- package/dist/bundle/{chunk-OGZZUDJJ.js → chunk-AHVWZDXO.js} +79 -64
- package/dist/bundle/{chunk-YVI5SQPY.js → chunk-ANBI3OXK.js} +1 -1
- package/dist/bundle/{chunk-PR4F3TYK.js → chunk-AYWST6NA.js} +60 -51
- package/dist/bundle/{chunk-7SEVVE3X.js → chunk-CA7DY2YU.js} +3 -3
- package/dist/bundle/{chunk-O43PARFS.js → chunk-CDKXZLMP.js} +273 -176
- package/dist/bundle/{chunk-YAPO7QNO.js → chunk-CNGNR4CY.js} +6 -6
- package/dist/bundle/{chunk-2UGSIHLV.js → chunk-CSXCCK6J.js} +2 -2
- package/dist/bundle/{chunk-N5LZ6L4D.js → chunk-DG35TQ6P.js} +3 -3
- package/dist/bundle/{chunk-LMGVPDXN.js → chunk-EXMAWEHC.js} +2 -2
- package/dist/bundle/{chunk-A5D3J7XZ.js → chunk-FR3ATU5I.js} +4 -4
- package/dist/bundle/{chunk-JDNDWZYS.js → chunk-FR4Y5CGW.js} +4 -4
- package/dist/bundle/{chunk-YSNQGOUI.js → chunk-GIGZTI74.js} +2115 -1975
- package/dist/bundle/{chunk-3QHKZLBU.js → chunk-H3TLAYGY.js} +4 -4
- package/dist/bundle/{chunk-KJICORS4.js → chunk-HD7DV5B2.js} +65 -43
- package/dist/bundle/{chunk-NLRGMP7M.js → chunk-HETHFOHC.js} +3 -3
- package/dist/bundle/{chunk-4YB7JU2W.js → chunk-HEZK4W3U.js} +6 -6
- package/dist/bundle/{chunk-2LZD2VFV.js → chunk-IJ7R2WMK.js} +4 -4
- package/dist/bundle/{chunk-4ZTVJHWU.js → chunk-ITJ7DGNA.js} +4 -4
- package/dist/bundle/{chunk-5UPEEMEF.js → chunk-J5RB4ASI.js} +142 -372
- package/dist/bundle/{chunk-IY7CTAOQ.js → chunk-JAL443BH.js} +9 -9
- package/dist/bundle/{chunk-U7PHJSTX.js → chunk-JCDD5T3A.js} +2 -2
- package/dist/bundle/{chunk-BLZEQVP4.js → chunk-JHZJBNDO.js} +2 -2
- package/dist/bundle/chunk-JWLODUN3.js +555 -0
- package/dist/bundle/{chunk-4CKYANQH.js → chunk-JWNSG5GI.js} +1 -1
- package/dist/bundle/{chunk-YRXSNH3R.js → chunk-JXEO5EIN.js} +2 -2
- package/dist/bundle/{chunk-DSJNZXTP.js → chunk-K5FK6WWN.js} +1 -1
- package/dist/bundle/{chunk-LG3K5NHX.js → chunk-L47PFECD.js} +7 -7
- package/dist/bundle/{chunk-OIRNHSAH.js → chunk-L4PNDW4S.js} +6 -6
- package/dist/bundle/{chunk-WAVRUADL.js → chunk-M323L5SG.js} +30 -15
- package/dist/bundle/{chunk-AUZWIBHJ.js → chunk-MMDFPBFZ.js} +43 -64
- package/dist/bundle/{chunk-FKGYXIN7.js → chunk-MUV73B5A.js} +7 -7
- package/dist/bundle/chunk-MXA3FU2R.js +116 -0
- package/dist/bundle/{chunk-42MXCMW6.js → chunk-NUD4CBHK.js} +3 -3
- package/dist/bundle/{chunk-PG37E63A.js → chunk-NYEVPAF2.js} +511 -472
- package/dist/bundle/{chunk-QS46C5SW.js → chunk-O3QBO6NW.js} +17 -17
- package/dist/bundle/{chunk-CFWFESBO.js → chunk-O4ZOQJ6W.js} +9 -9
- package/dist/bundle/{chunk-74UPKW7H.js → chunk-OJSPB4LA.js} +2 -2
- package/dist/bundle/{chunk-JNWKV3QV.js → chunk-PCBVSHKD.js} +4 -4
- package/dist/bundle/{chunk-5RDNBG7D.js → chunk-PK5WEGPJ.js} +2 -2
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/{chunk-BMI2NWFI.js → chunk-PRI2XTM7.js} +35 -12
- package/dist/bundle/chunk-PRM7GKBV.js +340 -0
- package/dist/bundle/{chunk-ZZ32DXTH.js → chunk-PZ2ZFPGO.js} +1 -1
- package/dist/bundle/chunk-QYRK4XXH.js +727 -0
- package/dist/bundle/{chunk-QNEAPLOP.js → chunk-RVA3CRSY.js} +12 -12
- package/dist/bundle/{chunk-4EDJJQJI.js → chunk-SPXNI53Z.js} +38 -9
- package/dist/bundle/{chunk-ZRW3DF25.js → chunk-TI5U6AUT.js} +34 -28
- package/dist/bundle/{chunk-SMQ45RZX.js → chunk-TKWYXM7L.js} +9 -60
- package/dist/bundle/{chunk-ZJIGVT6Z.js → chunk-TZCFJJEU.js} +6 -6
- package/dist/bundle/chunk-UTTEAOJ3.js +7 -0
- package/dist/bundle/chunk-V6G4LTXU.js +50 -0
- package/dist/bundle/{chunk-JMJOWT4N.js → chunk-VH4J7IIS.js} +1 -1
- package/dist/bundle/{chunk-UAFSDTID.js → chunk-VNJRWFHP.js} +1 -1
- package/dist/bundle/chunk-W2QSDPG6.js +80 -0
- package/dist/bundle/{chunk-ESOFH7PA.js → chunk-WGGUKQE7.js} +134 -558
- package/dist/bundle/{chunk-NWDADTPE.js → chunk-WPXVJGSL.js} +3 -3
- package/dist/bundle/{chunk-NWCFO37P.js → chunk-XLNV3U6N.js} +3 -3
- package/dist/bundle/{chunk-JPSRC732.js → chunk-XS4EE7MO.js} +17 -15
- package/dist/bundle/{chunk-FPSRT2TX.js → chunk-XVRLD3LN.js} +2 -2
- package/dist/bundle/{chunk-O3AM32YN.js → chunk-XZ6XEAJP.js} +18 -18
- package/dist/bundle/{chunk-B4LGDOG5.js → chunk-YHTSJMZ5.js} +3734 -3380
- package/dist/bundle/chunk-YPJCURT6.js +108 -0
- package/dist/bundle/{chunk-HBSKP7OV.js → chunk-Z77R76S2.js} +1 -1
- package/dist/bundle/{chunk-PYECFCPD.js → chunk-ZC7OEYDX.js} +1 -1
- package/dist/bundle/{chunk-IYJ4B632.js → chunk-ZW2N2GI2.js} +12 -12
- package/dist/bundle/command-contract-LEFXJAA3.js +37 -0
- package/dist/bundle/{command-server-entry-TM264M2J.js → command-server-entry-WQAE5UGU.js} +27 -27
- package/dist/bundle/{decode-RJFOSHCE.js → decode-2J2DOVGV.js} +5 -5
- package/dist/bundle/{dispatch-7OZP3X4O.js → dispatch-IZ2TP5GW.js} +8 -8
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/{echarts-PYKF4D7B.js → echarts-GFIIHZ4U.js} +2 -2
- package/dist/bundle/{embed-JFN6Z5TG.js → embed-AGOXADHW.js} +6 -6
- package/dist/bundle/{embedder-WN54JIMY.js → embedder-PCIXGM2Y.js} +9 -9
- package/dist/bundle/{entry-Z6LO6N6S.js → entry-HUQXUV52.js} +9 -9
- package/dist/bundle/{failure-UONA2IA5.js → failure-JSRHZ2S6.js} +2 -2
- package/dist/bundle/{first-run-WQAKES7G.js → first-run-2LXN7B33.js} +12 -12
- package/dist/bundle/first-screen-VUE6RCSF.js +37 -0
- package/dist/bundle/{instructions-PR4BBBTM.js → instructions-RSLTJVFJ.js} +1 -1
- package/dist/bundle/{mcp-O6ACR2DX.js → mcp-MMENCB7I.js} +2 -2
- package/dist/bundle/meeting-combined-PBNPHOM3.js +23 -0
- package/dist/bundle/{meeting-model-YVTUOM4H.js → meeting-model-SI77WMMK.js} +11 -11
- package/dist/bundle/{meeting-semantic-X4KG6RNV.js → meeting-semantic-WRXWUR4M.js} +6 -6
- package/dist/bundle/{node-OVS5LTVZ.js → node-5XGMCUGQ.js} +2 -2
- package/dist/bundle/{node-sqlite-LC44SM4Z.js → node-sqlite-ES7SQSIC.js} +7 -7
- package/dist/bundle/{oauth-NSVUFQCW.js → oauth-QFM4Y6N7.js} +8 -8
- package/dist/bundle/{open-XN5SJFVY.js → open-2MD2DKGQ.js} +5 -5
- package/dist/bundle/{openai-WOYZHJNL.js → openai-6TMKJKYO.js} +15 -15
- package/dist/bundle/{process-UFBRGTQC.js → process-VA2DP7MY.js} +1 -1
- package/dist/bundle/{program-RAGBRRQH.js → program-K3SLEA42.js} +70 -63
- package/dist/bundle/{prompt-6HAKBUQN.js → prompt-VZSPCE6E.js} +5 -5
- package/dist/bundle/{proxy-transport-5EJVFUTC.js → proxy-transport-OJU2EOOC.js} +5 -5
- package/dist/bundle/{recognize-CN5COBVJ.js → recognize-LH3ZZEIL.js} +4 -4
- package/dist/bundle/{remote-STX5AMGE.js → remote-JNW5HN2I.js} +9 -9
- package/dist/bundle/{rerank-ZCOWTXIJ.js → rerank-P23UJMII.js} +7 -7
- package/dist/bundle/{serve-XMQEOIG2.js → serve-VSLLMILH.js} +15 -15
- package/dist/bundle/{server-PGGUD3DM.js → server-FBRRRKCS.js} +68 -57
- package/dist/bundle/server-TA4QP7PG.js +78 -0
- package/dist/bundle/{sqlite-runtime-PS4DSOIU.js → sqlite-runtime-LWATDAAU.js} +6 -6
- package/dist/bundle/{state-GL4ZC57O.js → state-3AFJL2EL.js} +6 -6
- package/dist/bundle/{store-VISFXSHL.js → store-6TLYL2VU.js} +30 -17
- package/dist/bundle/{store-HJ76TLWD.js → store-PEXV5DNA.js} +24 -19
- package/dist/bundle/store-maintenance-command-IYJLUQ5X.js +65 -0
- package/dist/bundle/surface-L4VY4WFG.js +64 -0
- package/dist/bundle/tg.js +13 -13
- package/dist/telegram/adapter.d.ts +9 -2
- package/dist/telegram/adapter.d.ts.map +1 -1
- package/dist/telegram/adapter.js +5 -6
- package/dist/telegram/adapter.js.map +1 -1
- package/dist/telegram/messages.d.ts +12 -0
- package/dist/telegram/messages.d.ts.map +1 -1
- package/dist/telegram/messages.js +40 -0
- package/dist/telegram/messages.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/tg-cli/SKILL.md +80 -576
- package/skills/tg-cli/references/files.md +64 -0
- package/skills/tg-cli/references/history.md +22 -0
- package/skills/tg-cli/references/mcp-and-bots.md +54 -0
- package/skills/tg-cli/references/messages.md +115 -0
- package/skills/tg-cli/references/people.md +85 -0
- package/skills/tg-cli/references/search.md +132 -0
- package/skills/tg-cli/references/setup.md +91 -0
- package/skills/tg-cli/references/stats.md +45 -0
- package/skills/tg-cli/references/tasks.md +54 -0
- package/dist/bundle/chunk-VKE77B3F.js +0 -2
- package/dist/bundle/command-contract-FRH7LBGE.js +0 -37
- package/dist/bundle/first-screen-4RFG22SA.js +0 -35
- package/dist/bundle/meeting-combined-MHWTZOF2.js +0 -23
- package/dist/bundle/server-WTNYWCZ4.js +0 -69
- package/dist/bundle/store-maintenance-command-SMARMN5C.js +0 -60
|
@@ -3,32 +3,29 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
answerOf,
|
|
5
5
|
messengerContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XS4EE7MO.js";
|
|
7
|
+
import {
|
|
8
|
+
chatEventAnswer,
|
|
9
|
+
memberAnswer,
|
|
10
|
+
pollVoteAnswer
|
|
11
|
+
} from "./chunk-7GGDCQJ5.js";
|
|
7
12
|
import {
|
|
8
13
|
FETCHING,
|
|
9
14
|
RULES_VERSION,
|
|
10
15
|
applyTaskRulesOnArrival,
|
|
11
|
-
capability,
|
|
12
|
-
chatEventAnswer,
|
|
13
16
|
embeddingKeys,
|
|
14
17
|
endpointKeyName,
|
|
15
|
-
memberAnswer,
|
|
16
18
|
modelGateway,
|
|
17
19
|
newSendId,
|
|
18
20
|
onlineDeps,
|
|
19
21
|
openRequestTask,
|
|
20
22
|
patiently,
|
|
21
|
-
pollVoteAnswer,
|
|
22
|
-
queryTerms,
|
|
23
23
|
refuseLockedOutput,
|
|
24
24
|
senderIsMe,
|
|
25
|
-
serveRelay,
|
|
26
25
|
servicesFor,
|
|
27
26
|
syncsOneChat,
|
|
28
|
-
typedQuery,
|
|
29
|
-
withQuery,
|
|
30
27
|
withTimeLimit
|
|
31
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-YHTSJMZ5.js";
|
|
32
29
|
import {
|
|
33
30
|
stringWidth,
|
|
34
31
|
wrapAnsi
|
|
@@ -39,7 +36,16 @@ import {
|
|
|
39
36
|
releaseLock,
|
|
40
37
|
servingProfiles,
|
|
41
38
|
takeLock
|
|
42
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-HETHFOHC.js";
|
|
40
|
+
import {
|
|
41
|
+
serveRelay
|
|
42
|
+
} from "./chunk-PRM7GKBV.js";
|
|
43
|
+
import {
|
|
44
|
+
capability,
|
|
45
|
+
queryTerms,
|
|
46
|
+
typedQuery,
|
|
47
|
+
withQuery
|
|
48
|
+
} from "./chunk-QYRK4XXH.js";
|
|
43
49
|
import {
|
|
44
50
|
QUICK_HEALTH_CHECKS,
|
|
45
51
|
fts5Tables,
|
|
@@ -47,10 +53,10 @@ import {
|
|
|
47
53
|
lossUnknown,
|
|
48
54
|
storeDamageReport,
|
|
49
55
|
storeHealth
|
|
50
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-O3QBO6NW.js";
|
|
51
57
|
import {
|
|
52
58
|
readSecret
|
|
53
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-NUD4CBHK.js";
|
|
54
60
|
import {
|
|
55
61
|
CORPORA,
|
|
56
62
|
MIGRATIONS,
|
|
@@ -74,9 +80,12 @@ import {
|
|
|
74
80
|
readStoreTables,
|
|
75
81
|
rebuildMentions,
|
|
76
82
|
resetAttachmentWords,
|
|
83
|
+
resetContentPostWords,
|
|
84
|
+
resetCrmFileWords,
|
|
77
85
|
resetNoteIndex,
|
|
78
86
|
resetSearchIndex,
|
|
79
87
|
resetStems,
|
|
88
|
+
resetTrackerItemWords,
|
|
80
89
|
rollBack,
|
|
81
90
|
rowCounts,
|
|
82
91
|
searchIndexState,
|
|
@@ -85,10 +94,10 @@ import {
|
|
|
85
94
|
storeClients,
|
|
86
95
|
storeContents,
|
|
87
96
|
vectorIndexCounts
|
|
88
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-4R2ZJGFF.js";
|
|
89
98
|
import {
|
|
90
99
|
openCache
|
|
91
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-L4PNDW4S.js";
|
|
92
101
|
import {
|
|
93
102
|
Command,
|
|
94
103
|
LOCAL_READ,
|
|
@@ -116,14 +125,14 @@ import {
|
|
|
116
125
|
snakeKeys,
|
|
117
126
|
storeTable,
|
|
118
127
|
withoutProviderRefs
|
|
119
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-CDKXZLMP.js";
|
|
120
129
|
import {
|
|
121
130
|
holdersOf
|
|
122
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-K5FK6WWN.js";
|
|
123
132
|
import {
|
|
124
133
|
modelAddressAllowed,
|
|
125
134
|
onThisComputer
|
|
126
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-4X6BX3XP.js";
|
|
127
136
|
import {
|
|
128
137
|
currentRun,
|
|
129
138
|
formatLocator,
|
|
@@ -132,28 +141,28 @@ import {
|
|
|
132
141
|
readHealthMark,
|
|
133
142
|
readJournalMark,
|
|
134
143
|
recordDeepCheck
|
|
135
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-HD7DV5B2.js";
|
|
136
145
|
import {
|
|
137
146
|
failureKey,
|
|
138
147
|
isStoreDamage
|
|
139
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-WPXVJGSL.js";
|
|
140
149
|
import {
|
|
141
150
|
readSharedSection,
|
|
142
151
|
sharedConfigPath,
|
|
143
152
|
writeSharedSection
|
|
144
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-77E7Q4EQ.js";
|
|
145
154
|
import {
|
|
146
155
|
queryFieldsOf
|
|
147
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-NYEVPAF2.js";
|
|
148
157
|
import {
|
|
149
158
|
storePath
|
|
150
|
-
} from "./chunk-
|
|
159
|
+
} from "./chunk-XVRLD3LN.js";
|
|
151
160
|
import {
|
|
152
161
|
Credentials,
|
|
153
162
|
isMovedRun,
|
|
154
163
|
resolvePaths,
|
|
155
164
|
writeSecurely
|
|
156
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-6UNLEQA5.js";
|
|
157
166
|
import {
|
|
158
167
|
array,
|
|
159
168
|
boolean,
|
|
@@ -175,12 +184,12 @@ import {
|
|
|
175
184
|
string,
|
|
176
185
|
transform,
|
|
177
186
|
trim
|
|
178
|
-
} from "./chunk-
|
|
187
|
+
} from "./chunk-SPXNI53Z.js";
|
|
179
188
|
import {
|
|
180
189
|
CliError,
|
|
181
190
|
singleLine,
|
|
182
191
|
visibleControls
|
|
183
|
-
} from "./chunk-
|
|
192
|
+
} from "./chunk-PK5WEGPJ.js";
|
|
184
193
|
import {
|
|
185
194
|
__commonJS,
|
|
186
195
|
__name,
|
|
@@ -5520,11 +5529,11 @@ var require_liquid_node = __commonJS({
|
|
|
5520
5529
|
}
|
|
5521
5530
|
});
|
|
5522
5531
|
|
|
5523
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5532
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5524
5533
|
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";
|
|
5525
5534
|
import { dirname as dirname3, resolve } from "node:path";
|
|
5526
5535
|
|
|
5527
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5536
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5528
5537
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5529
5538
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5530
5539
|
import { Transform } from "node:stream";
|
|
@@ -5631,7 +5640,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5631
5640
|
renameSync(pending, to);
|
|
5632
5641
|
}, "unsealFile");
|
|
5633
5642
|
|
|
5634
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5643
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5635
5644
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5636
5645
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5637
5646
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5655,7 +5664,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5655
5664
|
};
|
|
5656
5665
|
}, "compatibilityOf");
|
|
5657
5666
|
|
|
5658
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5667
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5659
5668
|
import { createHash as createHash2 } from "node:crypto";
|
|
5660
5669
|
var COPY_MARK = "__repair_";
|
|
5661
5670
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5909,19 +5918,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5909
5918
|
return found;
|
|
5910
5919
|
}, "deleteCopy");
|
|
5911
5920
|
|
|
5912
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5921
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5913
5922
|
import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
|
|
5914
5923
|
|
|
5915
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5924
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
5916
5925
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5917
5926
|
|
|
5918
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5927
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
5919
5928
|
import { execFileSync, spawn } from "node:child_process";
|
|
5920
5929
|
import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
|
|
5921
5930
|
import { basename, dirname, join } from "node:path";
|
|
5922
5931
|
import { Transform as Transform2 } from "node:stream";
|
|
5923
5932
|
|
|
5924
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/store/refill.js
|
|
5925
5934
|
var REFILL_MARGIN_MS = 864e5;
|
|
5926
5935
|
var TIME_KEYS = 1e12;
|
|
5927
5936
|
var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
|
|
@@ -6001,7 +6010,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
|
|
|
6001
6010
|
return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
|
|
6002
6011
|
}, "forgetMail");
|
|
6003
6012
|
|
|
6004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6013
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
6005
6014
|
var SQLITE3_MINIMUM = [3, 43, 0];
|
|
6006
6015
|
var STORE_PARTS = ["", "-wal", "-shm"];
|
|
6007
6016
|
var RECOVER_LOCK = ".recover-lock";
|
|
@@ -6278,6 +6287,9 @@ var FILLERS = {
|
|
|
6278
6287
|
fillStems(database, { now });
|
|
6279
6288
|
}, "message_stems"),
|
|
6280
6289
|
attachment_words: /* @__PURE__ */ __name((database) => void resetAttachmentWords(database), "attachment_words"),
|
|
6290
|
+
crm_file_words: /* @__PURE__ */ __name((database) => void resetCrmFileWords(database), "crm_file_words"),
|
|
6291
|
+
tracker_item_words: /* @__PURE__ */ __name((database) => void resetTrackerItemWords(database), "tracker_item_words"),
|
|
6292
|
+
content_post_words: /* @__PURE__ */ __name((database) => void resetContentPostWords(database), "content_post_words"),
|
|
6281
6293
|
attachment_name_words: /* @__PURE__ */ __name((database) => (
|
|
6282
6294
|
// As migration 20 filled it: й and ё fold as the triggers fold them.
|
|
6283
6295
|
database.exec("INSERT INTO attachment_name_words (rowid, name) SELECT id, replace(replace(replace(replace(name, '\u0439', '\u0438'), '\u0419', '\u0418'), '\u0451', '\u0435'), '\u0401', '\u0415') FROM attachments WHERE name IS NOT NULL")
|
|
@@ -6529,7 +6541,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
|
|
|
6529
6541
|
}
|
|
6530
6542
|
}, "recoverLocked");
|
|
6531
6543
|
|
|
6532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6544
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
6533
6545
|
var COUNTED = [
|
|
6534
6546
|
"accounts",
|
|
6535
6547
|
"chats",
|
|
@@ -6685,7 +6697,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
|
|
|
6685
6697
|
return recover;
|
|
6686
6698
|
}, "storeRecoverCommand");
|
|
6687
6699
|
|
|
6688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6700
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
6689
6701
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
6690
6702
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
|
|
6691
6703
|
var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
|
|
@@ -6731,7 +6743,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
6731
6743
|
renderAnswer(this, outputFor(this), itemOf(answer));
|
|
6732
6744
|
}), "storeInfoCommand");
|
|
6733
6745
|
|
|
6734
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6746
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
6735
6747
|
var ENCRYPT_OPTION = [
|
|
6736
6748
|
"--encrypt",
|
|
6737
6749
|
"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"
|
|
@@ -6750,7 +6762,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
6750
6762
|
return password;
|
|
6751
6763
|
}, "passwordOf");
|
|
6752
6764
|
|
|
6753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6765
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
6754
6766
|
import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
|
|
6755
6767
|
import { join as join2 } from "node:path";
|
|
6756
6768
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6921,7 +6933,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6921
6933
|
}, "problem");
|
|
6922
6934
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6923
6935
|
|
|
6924
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6925
6937
|
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
6926
6938
|
import { join as join3 } from "node:path";
|
|
6927
6939
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6974,7 +6986,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6974
6986
|
}, "recordReply");
|
|
6975
6987
|
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");
|
|
6976
6988
|
|
|
6977
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6989
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6978
6990
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6979
6991
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6980
6992
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -7080,10 +7092,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
7080
7092
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
7081
7093
|
}, "filled");
|
|
7082
7094
|
|
|
7083
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7095
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7084
7096
|
var import_liquidjs2 = __toESM(require_liquid_node(), 1);
|
|
7085
7097
|
|
|
7086
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7098
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/render/liquid.js
|
|
7087
7099
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
7088
7100
|
var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
7089
7101
|
const engine = new import_liquidjs.Liquid({
|
|
@@ -7110,7 +7122,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
|
7110
7122
|
return engine;
|
|
7111
7123
|
}, "safeLiquid");
|
|
7112
7124
|
|
|
7113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7114
7126
|
var TEMPLATE_LIMITS = {
|
|
7115
7127
|
parse: 32768,
|
|
7116
7128
|
renders: 2e3,
|
|
@@ -7249,7 +7261,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
7249
7261
|
}
|
|
7250
7262
|
}, "renderReplyTemplate");
|
|
7251
7263
|
|
|
7252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
7253
7265
|
var DRY_RUN_DAYS = 7;
|
|
7254
7266
|
var PAGE = 500;
|
|
7255
7267
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -7363,7 +7375,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
7363
7375
|
}
|
|
7364
7376
|
}, "storedSince");
|
|
7365
7377
|
|
|
7366
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7378
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/models/ai.js
|
|
7367
7379
|
var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
|
|
7368
7380
|
var DEFAULT_BASE_URL = {
|
|
7369
7381
|
anthropic: "https://api.anthropic.com",
|
|
@@ -7513,7 +7525,7 @@ var checkAi = /* @__PURE__ */ __name(async (deps) => {
|
|
|
7513
7525
|
}
|
|
7514
7526
|
}, "checkAi");
|
|
7515
7527
|
|
|
7516
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7528
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/models/purpose.js
|
|
7517
7529
|
var HOSTED = {
|
|
7518
7530
|
openai: "https://api.openai.com/v1",
|
|
7519
7531
|
anthropic: "https://api.anthropic.com"
|
|
@@ -7534,7 +7546,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
|
|
|
7534
7546
|
return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
|
|
7535
7547
|
}, "purposeModel");
|
|
7536
7548
|
|
|
7537
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7549
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
7538
7550
|
import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
|
|
7539
7551
|
import { join as join4 } from "node:path";
|
|
7540
7552
|
var shape = strictObject({
|
|
@@ -7559,7 +7571,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
7559
7571
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
7560
7572
|
}, "mayModelReply");
|
|
7561
7573
|
|
|
7562
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7574
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
7563
7575
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
|
|
7564
7576
|
ai: true
|
|
7565
7577
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -7607,7 +7619,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
7607
7619
|
return result2;
|
|
7608
7620
|
}, "replyRenderer");
|
|
7609
7621
|
|
|
7610
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7622
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
7611
7623
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
7612
7624
|
var NO_RULES = "no rules";
|
|
7613
7625
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -7700,7 +7712,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
7700
7712
|
return { skip: why };
|
|
7701
7713
|
}, "replyTo");
|
|
7702
7714
|
|
|
7703
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
|
|
7704
7716
|
var START_SYNC_DELAY_MS = 3e4;
|
|
7705
7717
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
7706
7718
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -7777,7 +7789,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
|
|
|
7777
7789
|
};
|
|
7778
7790
|
}, "startSync");
|
|
7779
7791
|
|
|
7780
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7792
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
7781
7793
|
var FIRST_FETCH_MS = 6e4;
|
|
7782
7794
|
var DAY_MS = 864e5;
|
|
7783
7795
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -7831,7 +7843,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
|
|
|
7831
7843
|
};
|
|
7832
7844
|
}, "memberFetches");
|
|
7833
7845
|
|
|
7834
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7846
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
7835
7847
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
7836
7848
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
7837
7849
|
if (context.format === "pretty") {
|
|
@@ -7864,7 +7876,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7864
7876
|
return context;
|
|
7865
7877
|
}, "recordDiagnostics");
|
|
7866
7878
|
|
|
7867
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7879
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
|
|
7868
7880
|
import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
|
|
7869
7881
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
7870
7882
|
var OUTDATED_CHECK_MS = 6e4;
|
|
@@ -7950,7 +7962,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
|
|
|
7950
7962
|
};
|
|
7951
7963
|
}, "watchOutdated");
|
|
7952
7964
|
|
|
7953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7965
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
7954
7966
|
var STEMS_EVERY_MS = 3e4;
|
|
7955
7967
|
var STEMS_SLICE_MS = 2e3;
|
|
7956
7968
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -7990,7 +8002,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
7990
8002
|
};
|
|
7991
8003
|
}, "stemFills");
|
|
7992
8004
|
|
|
7993
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/render/messages.js
|
|
7994
8006
|
import { styleText } from "node:util";
|
|
7995
8007
|
var TIME_WIDTH = 8;
|
|
7996
8008
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -8166,7 +8178,7 @@ var editedAt = /* @__PURE__ */ __name((message, options) => {
|
|
|
8166
8178
|
return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
|
|
8167
8179
|
}, "editedAt");
|
|
8168
8180
|
|
|
8169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
8170
8182
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
8171
8183
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
8172
8184
|
kind: attachment.kind,
|
|
@@ -8262,7 +8274,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
8262
8274
|
locale: messenger.app.locale
|
|
8263
8275
|
}), "viewOf");
|
|
8264
8276
|
|
|
8265
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8277
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
8266
8278
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
8267
8279
|
value: value.value,
|
|
8268
8280
|
observed_at: value.observedAt,
|
|
@@ -8329,7 +8341,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
8329
8341
|
}
|
|
8330
8342
|
}, "watchEventItem");
|
|
8331
8343
|
|
|
8332
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8344
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
8333
8345
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
8334
8346
|
output: { entity: "watch_item" },
|
|
8335
8347
|
effects: REMOTE_READ,
|
|
@@ -8484,7 +8496,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
8484
8496
|
}
|
|
8485
8497
|
}, "describe");
|
|
8486
8498
|
|
|
8487
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8499
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
8488
8500
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
8489
8501
|
const command = annotate(new Command("serve"), {
|
|
8490
8502
|
output: { entity: "serve_summary" },
|
|
@@ -8770,7 +8782,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
8770
8782
|
};
|
|
8771
8783
|
}, "tasking");
|
|
8772
8784
|
|
|
8773
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8785
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
8774
8786
|
import { existsSync as existsSync9 } from "node:fs";
|
|
8775
8787
|
var PATH = "store tables list";
|
|
8776
8788
|
var STORE_TABLES_QUERY = {
|
|
@@ -8813,7 +8825,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
|
|
|
8813
8825
|
return tables;
|
|
8814
8826
|
}, "storeTablesCommand");
|
|
8815
8827
|
|
|
8816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8828
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
8817
8829
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
8818
8830
|
var WORD_INDEX = "message_words";
|
|
8819
8831
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -9055,7 +9067,10 @@ var inspect = /* @__PURE__ */ __name((path) => reading(path, (database) => {
|
|
|
9055
9067
|
...schema.version > 0 ? SEARCH_INDEXES.map((index) => [index, indexIntegrity(database, index)]) : [],
|
|
9056
9068
|
...wordIndex ? [[WORD_INDEX, indexIntegrity(database, WORD_INDEX, 0)]] : [],
|
|
9057
9069
|
...stems ? [["message_stems", indexIntegrity(database, "message_stems", 0)]] : [],
|
|
9058
|
-
...schema.version > 0 ? [["attachment_words", indexIntegrity(database, "attachment_words", 0)]] : []
|
|
9070
|
+
...schema.version > 0 ? [["attachment_words", indexIntegrity(database, "attachment_words", 0)]] : [],
|
|
9071
|
+
...schema.version >= 68 ? [["crm_file_words", indexIntegrity(database, "crm_file_words", 0)]] : [],
|
|
9072
|
+
...schema.version >= 70 ? [["tracker_item_words", indexIntegrity(database, "tracker_item_words", 0)]] : [],
|
|
9073
|
+
...schema.version >= 71 ? [["content_post_words", indexIntegrity(database, "content_post_words", 0)]] : []
|
|
9059
9074
|
]);
|
|
9060
9075
|
const size = bytesOf2(path) + bytesOf2(`${path}-wal`);
|
|
9061
9076
|
const { bavail, bsize } = statfsSync2(dirname3(path));
|
|
@@ -9223,7 +9238,7 @@ var reindexCommand = /* @__PURE__ */ __name((owner) => destroysNothing(annotate(
|
|
|
9223
9238
|
throw new CliError("validation_error", `the store is behind this build \u2014 \`${lineOf(this, "store migrate")}\` first`);
|
|
9224
9239
|
}
|
|
9225
9240
|
resetSearchIndex(database);
|
|
9226
|
-
const fileTexts = resetAttachmentWords(database);
|
|
9241
|
+
const fileTexts = resetAttachmentWords(database) + resetCrmFileWords(database) + resetTrackerItemWords(database) + resetContentPostWords(database);
|
|
9227
9242
|
const words = buildWordIndex(database, (note) => renderer.note(note));
|
|
9228
9243
|
return {
|
|
9229
9244
|
path,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.122.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
|
|
8
8
|
import { existsSync } from "node:fs";
|
|
9
9
|
import { win32 } from "node:path";
|
|
10
10
|
var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
|