@wirecat/cli-memo 0.131.47 → 0.131.49
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 +1 -1
- package/dist/bin/memo.js +2 -2
- package/dist/bundle/{all-profiles-75EGCXK3.js → all-profiles-3HADTQZA.js} +9 -9
- package/dist/bundle/{anthropic-PTAYBCPR.js → anthropic-RI4DWC3G.js} +6 -6
- package/dist/bundle/{app-server-YSUBXGGB.js → app-server-6EKWAYJI.js} +42 -42
- package/dist/bundle/auto-NKUBNWLS.js +86 -0
- package/dist/bundle/{bun-3AIG5ML4.js → bun-HUHQD76Z.js} +2 -2
- package/dist/bundle/{bun-sqlite-5FCGI6EO.js → bun-sqlite-RPSKGB4O.js} +5 -5
- package/dist/bundle/{chunk-3HPFTKDH.js → chunk-2HPYP3ZT.js} +4 -4
- package/dist/bundle/{chunk-KLBZJZD2.js → chunk-2OIGV355.js} +216 -143
- package/dist/bundle/{chunk-R44PUK7G.js → chunk-355PHJYX.js} +1 -1
- package/dist/bundle/{chunk-F4HMPMET.js → chunk-3BG5VYMV.js} +10 -10
- package/dist/bundle/{chunk-5N6HWFXN.js → chunk-4VQPPX47.js} +350 -295
- package/dist/bundle/{chunk-PGVADNDD.js → chunk-57LMWEDK.js} +3 -3
- package/dist/bundle/{chunk-ELKK5M66.js → chunk-5JVA43HX.js} +6 -6
- package/dist/bundle/{chunk-U35N3EC7.js → chunk-5RVL7GYA.js} +2 -2
- package/dist/bundle/{chunk-BNIWLVWG.js → chunk-6N6BVPVX.js} +18 -4
- package/dist/bundle/{chunk-JY34MQW4.js → chunk-7RNHFNHX.js} +4 -4
- package/dist/bundle/{chunk-HCZV537M.js → chunk-AKD62EUH.js} +2 -2
- package/dist/bundle/{chunk-RZ54DSVU.js → chunk-BXTDAGM4.js} +2 -2
- package/dist/bundle/{chunk-V3B5COFP.js → chunk-BYVASZVV.js} +5 -5
- package/dist/bundle/{chunk-DS4DOK75.js → chunk-D5KGXYG6.js} +33 -25
- package/dist/bundle/{chunk-4LWX2WOB.js → chunk-DJRBSOWH.js} +4 -4
- package/dist/bundle/{chunk-W2JVP7GK.js → chunk-DVA6MQWK.js} +1 -1
- package/dist/bundle/{chunk-SN63VOE6.js → chunk-EBNNONF5.js} +8 -8
- package/dist/bundle/{chunk-XRRPQCTS.js → chunk-EJDV5IIF.js} +1 -1
- package/dist/bundle/{chunk-ZKH6LC5P.js → chunk-FOM7WE2C.js} +9 -9
- package/dist/bundle/{chunk-GA3KFYEZ.js → chunk-GAKZOX2S.js} +20 -11
- package/dist/bundle/{chunk-IPMBB6W5.js → chunk-GIDZGGAD.js} +4 -4
- package/dist/bundle/{chunk-6TKWJKPS.js → chunk-GV6XJMUW.js} +12 -12
- package/dist/bundle/{chunk-EFQCDCLY.js → chunk-HCMXUHHF.js} +99 -74
- package/dist/bundle/{chunk-U75ANK5K.js → chunk-HXOAPH47.js} +1 -1
- package/dist/bundle/{chunk-J324GKJM.js → chunk-IXXBPSXO.js} +2 -2
- package/dist/bundle/{chunk-UFVGAFID.js → chunk-KVOHC4ZM.js} +22 -14
- package/dist/bundle/{chunk-N63KZFH4.js → chunk-LUPJB7ZD.js} +9 -9
- package/dist/bundle/{chunk-IPLPMD6H.js → chunk-LZWXGO3G.js} +2 -2
- package/dist/bundle/{chunk-6QNPOBR5.js → chunk-N6IHOYMT.js} +198 -81
- package/dist/bundle/{chunk-32QM6X5H.js → chunk-ND6D4A6H.js} +3 -3
- package/dist/bundle/{chunk-MCMEBL3C.js → chunk-NJDGZRF5.js} +31 -15
- package/dist/bundle/{chunk-25RDNYKZ.js → chunk-NTQUBSIJ.js} +6 -6
- package/dist/bundle/{chunk-I2RDACUF.js → chunk-O3KOW7RG.js} +8 -8
- package/dist/bundle/{chunk-2R2Z2VWL.js → chunk-O3ZOYXH3.js} +20 -20
- package/dist/bundle/{chunk-W3T45MMN.js → chunk-OQTBCPSG.js} +8 -8
- package/dist/bundle/{chunk-SYTYLLYO.js → chunk-OT23U5LT.js} +2 -2
- package/dist/bundle/{chunk-OSCRP52P.js → chunk-P2LMXIHL.js} +675 -400
- package/dist/bundle/{chunk-ZLIARJU4.js → chunk-P2TISY3R.js} +1 -1
- package/dist/bundle/{chunk-CID4MNRQ.js → chunk-P3ASN72F.js} +1 -1
- package/dist/bundle/{chunk-YMK35KVV.js → chunk-PEYCLVIO.js} +2 -2
- package/dist/bundle/{chunk-UE4GMPBY.js → chunk-PUTGTW6W.js} +1 -1
- package/dist/bundle/{chunk-G3YSCD77.js → chunk-PYRHU35W.js} +173 -156
- package/dist/bundle/{chunk-DDADFHR7.js → chunk-QCPUC3HW.js} +13 -13
- package/dist/bundle/{chunk-N5QQFDNV.js → chunk-QCRJNWJZ.js} +3 -3
- package/dist/bundle/{chunk-HVTW2M6T.js → chunk-QNM36ARO.js} +8 -2
- package/dist/bundle/{chunk-Y5CAKD4X.js → chunk-QOGYHU3Q.js} +4 -4
- package/dist/bundle/{chunk-MMJDQQFX.js → chunk-RKFKRCOH.js} +310 -279
- package/dist/bundle/{chunk-DMTLG2GD.js → chunk-RYMYE5PF.js} +8 -8
- package/dist/bundle/{chunk-MSBRZ5QD.js → chunk-S7F4ZDFU.js} +3 -3
- package/dist/bundle/{chunk-G4W42RGE.js → chunk-SSPSNSC5.js} +1 -1
- package/dist/bundle/{chunk-ILK5BCBB.js → chunk-TSUNLSIN.js} +2 -2
- package/dist/bundle/{chunk-6IVHND3S.js → chunk-UAR6UMFL.js} +5 -5
- package/dist/bundle/{chunk-HYEYRFWX.js → chunk-UDJTRFRV.js} +1 -1
- package/dist/bundle/{chunk-FSAMZHIM.js → chunk-UG4BO256.js} +6 -6
- package/dist/bundle/{chunk-LE7NROV6.js → chunk-UJLYVXP6.js} +34 -34
- package/dist/bundle/{chunk-EVZI54B5.js → chunk-V2DMJ6ES.js} +6 -6
- package/dist/bundle/{chunk-LER7G4XY.js → chunk-VW6BF6M7.js} +1 -1
- package/dist/bundle/{chunk-V6OYLCCM.js → chunk-W6JQNNJ5.js} +3 -3
- package/dist/bundle/{chunk-DWBTCOF2.js → chunk-WNW6VW27.js} +7 -7
- package/dist/bundle/{chunk-KWM7HLAI.js → chunk-XH6K2B5L.js} +4 -4
- package/dist/bundle/{chunk-GOFPCOEI.js → chunk-XXGBXCBQ.js} +11 -11
- package/dist/bundle/{chunk-GQLSVXS2.js → chunk-XZZFHQGM.js} +22 -22
- package/dist/bundle/{chunk-CODD5SXC.js → chunk-Y6VH7IRN.js} +29 -29
- package/dist/bundle/{chunk-Y4ZXDJQF.js → chunk-ZA7FKGB7.js} +2 -2
- package/dist/bundle/command-contract-MRLLZQ4M.js +32 -0
- package/dist/bundle/{decode-F2A2BLIA.js → decode-IYWZ3X7X.js} +5 -5
- package/dist/bundle/{dispatch-MLRETSNQ.js → dispatch-HCRXCPCF.js} +8 -8
- package/dist/bundle/{echarts-JL55HJCM.js → echarts-5LLJ6JXC.js} +2 -2
- package/dist/bundle/{embed-74KVORNN.js → embed-EGY2R4FN.js} +6 -6
- package/dist/bundle/{embedder-GACNPCZN.js → embedder-K2BGPWNX.js} +9 -9
- package/dist/bundle/{entry-7FI2H4RQ.js → entry-NMAZNDNU.js} +7 -7
- package/dist/bundle/{failure-UJBGB2GP.js → failure-G4DCTWFD.js} +2 -2
- package/dist/bundle/failure-SACX3WGX.js +66 -0
- package/dist/bundle/{first-run-D4VBIJ7H.js → first-run-QDCSWX3N.js} +11 -11
- package/dist/bundle/first-screen-YABO6OZ7.js +30 -0
- package/dist/bundle/{instructions-QNPIVGKX.js → instructions-P72XX4AK.js} +1 -1
- package/dist/bundle/{mcp-YMXA6IH6.js → mcp-M4QN2E7R.js} +2 -2
- package/dist/bundle/mcp-QRZ2HSON.js +90 -0
- package/dist/bundle/memo.js +16 -16
- package/dist/bundle/{node-SPFML2D5.js → node-ZB4RNICS.js} +2 -2
- package/dist/bundle/{node-sqlite-T3KILRCP.js → node-sqlite-7XJ4J4E5.js} +6 -6
- package/dist/bundle/{oauth-ZOGSHZF3.js → oauth-FMH3JIPT.js} +7 -7
- package/dist/bundle/{open-XXFVCGCA.js → open-PRCTOHHL.js} +5 -5
- package/dist/bundle/{openai-JRHZLFKD.js → openai-VW4W6SIO.js} +10 -10
- package/dist/bundle/{process-OGYYVVLG.js → process-XNN4WG6N.js} +1 -1
- package/dist/bundle/{program-EFCQACPD.js → program-OSHEAD76.js} +161 -89
- package/dist/bundle/{prompt-53D5WVD3.js → prompt-RT55UZGB.js} +5 -5
- package/dist/bundle/{recognize-7GYZKJCD.js → recognize-AQ2UXUC2.js} +4 -4
- package/dist/bundle/{remote-V5GUFZCG.js → remote-T3P5OWRR.js} +7 -7
- package/dist/bundle/{rerank-FUNVBYFI.js → rerank-743T3675.js} +7 -7
- package/dist/bundle/{serve-ZLUYFAXC.js → serve-BSKOU4FJ.js} +9 -9
- package/dist/bundle/{server-HJRMD3XD.js → server-7GH6JLM3.js} +57 -57
- package/dist/bundle/server-VMWVYGK7.js +48 -0
- package/dist/bundle/server-ZFHSK6TT.js +61 -0
- package/dist/bundle/{state-4P7H6KBM.js → state-MDMI3I2Z.js} +6 -6
- package/dist/bundle/{store-NILJK24C.js → store-I3DIZALN.js} +13 -13
- package/dist/bundle/store-maintenance-command-HZPQPOK7.js +48 -0
- package/dist/bundle/update-Y3UQ5DQJ.js +69 -0
- package/dist/doctor/command.d.ts +2 -0
- package/dist/doctor/command.d.ts.map +1 -1
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +1 -0
- package/dist/examples.js.map +1 -1
- package/dist/memories/memory.d.ts.map +1 -1
- package/dist/memories/memory.js +3 -1
- package/dist/memories/memory.js.map +1 -1
- package/dist/notes/folders-command.d.ts.map +1 -1
- package/dist/notes/folders-command.js +51 -1
- package/dist/notes/folders-command.js.map +1 -1
- package/dist/notes/folders.d.ts +1 -0
- package/dist/notes/folders.d.ts.map +1 -1
- package/dist/notes/folders.js +1 -0
- package/dist/notes/folders.js.map +1 -1
- package/dist/notes/import.d.ts +3 -1
- package/dist/notes/import.d.ts.map +1 -1
- package/dist/notes/import.js +8 -3
- package/dist/notes/import.js.map +1 -1
- package/dist/notes/state.d.ts +2 -0
- package/dist/notes/state.d.ts.map +1 -1
- package/dist/notes/state.js +3 -1
- package/dist/notes/state.js.map +1 -1
- package/dist/progress.d.ts +12 -0
- package/dist/progress.d.ts.map +1 -0
- package/dist/progress.js +19 -0
- package/dist/progress.js.map +1 -0
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +6 -0
- package/dist/reasons.js.map +1 -1
- package/dist/run/auto.d.ts +3 -0
- package/dist/run/auto.d.ts.map +1 -1
- package/dist/run/auto.js +16 -4
- package/dist/run/auto.js.map +1 -1
- package/dist/run/import.d.ts.map +1 -1
- package/dist/run/import.js +7 -1
- package/dist/run/import.js.map +1 -1
- package/dist/search/answers.d.ts.map +1 -1
- package/dist/search/answers.js +7 -2
- package/dist/search/answers.js.map +1 -1
- package/dist/search/search.d.ts.map +1 -1
- package/dist/search/search.js +4 -3
- package/dist/search/search.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/dist/bundle/auto-GB35FRTV.js +0 -86
- package/dist/bundle/command-contract-YYILWWYQ.js +0 -32
- package/dist/bundle/failure-AHPPXHAW.js +0 -66
- package/dist/bundle/first-screen-D7Q2U7VP.js +0 -30
- package/dist/bundle/mcp-AFXHH33V.js +0 -90
- package/dist/bundle/server-4OJC7ZWM.js +0 -61
- package/dist/bundle/server-CGUUZBLB.js +0 -48
- package/dist/bundle/store-maintenance-command-VP7CIBSS.js +0 -48
- package/dist/bundle/update-NPK4DT2E.js +0 -69
- /package/dist/bundle/{chunk-AT5Y62SD.js → chunk-CDFNOKPG.js} +0 -0
- /package/dist/bundle/{chunk-JPGEFBRW.js → chunk-VOXIGICJ.js} +0 -0
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
autoState,
|
|
7
7
|
lastAutoRun,
|
|
8
8
|
recordAutoRun
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GAKZOX2S.js";
|
|
10
10
|
import {
|
|
11
11
|
installer,
|
|
12
12
|
latest,
|
|
13
13
|
upgradeCommand
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OQTBCPSG.js";
|
|
15
15
|
import {
|
|
16
16
|
mcpOwnerAllowed,
|
|
17
17
|
readOnlyAvailability,
|
|
18
18
|
refuseWritesUnderLock
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-UG4BO256.js";
|
|
20
20
|
import {
|
|
21
21
|
answers,
|
|
22
22
|
atDetail,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
trackAnswers,
|
|
27
27
|
wholeList,
|
|
28
28
|
withStore
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-WNW6VW27.js";
|
|
30
30
|
import {
|
|
31
31
|
ATTACHMENT_CHARS,
|
|
32
32
|
DIALECTS,
|
|
@@ -56,15 +56,15 @@ import {
|
|
|
56
56
|
showMail,
|
|
57
57
|
unsetConfigKey,
|
|
58
58
|
updateConfig
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-UJLYVXP6.js";
|
|
60
60
|
import "./chunk-QP3KNC5D.js";
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-57LMWEDK.js";
|
|
62
|
+
import "./chunk-3BG5VYMV.js";
|
|
63
|
+
import "./chunk-6N6BVPVX.js";
|
|
64
64
|
import {
|
|
65
65
|
errorObject,
|
|
66
66
|
recognisable
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-BYVASZVV.js";
|
|
68
68
|
import {
|
|
69
69
|
DISCOVERY_DESCRIPTIONS,
|
|
70
70
|
DOCTOR_DEEP_OPTION,
|
|
@@ -101,23 +101,23 @@ import {
|
|
|
101
101
|
tasksCommand,
|
|
102
102
|
tasksStatsCommand,
|
|
103
103
|
withSqliteSidecars
|
|
104
|
-
} from "./chunk-
|
|
105
|
-
import "./chunk-
|
|
106
|
-
import "./chunk-
|
|
104
|
+
} from "./chunk-RKFKRCOH.js";
|
|
105
|
+
import "./chunk-355PHJYX.js";
|
|
106
|
+
import "./chunk-SSPSNSC5.js";
|
|
107
107
|
import {
|
|
108
108
|
allHitItem,
|
|
109
109
|
coverageGaps,
|
|
110
110
|
messageHitItem,
|
|
111
111
|
noteHitItem,
|
|
112
112
|
shownOf
|
|
113
|
-
} from "./chunk-
|
|
114
|
-
import "./chunk-
|
|
113
|
+
} from "./chunk-D5KGXYG6.js";
|
|
114
|
+
import "./chunk-IXXBPSXO.js";
|
|
115
115
|
import {
|
|
116
116
|
SKILL_TARGETS,
|
|
117
117
|
skillCommand,
|
|
118
118
|
skillPath,
|
|
119
119
|
skillVersion
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-NJDGZRF5.js";
|
|
121
121
|
import {
|
|
122
122
|
modelGateway,
|
|
123
123
|
recoveryNotes,
|
|
@@ -125,8 +125,8 @@ import {
|
|
|
125
125
|
storeRecoveryCheck,
|
|
126
126
|
storeRecoveryRun,
|
|
127
127
|
storeSummary
|
|
128
|
-
} from "./chunk-
|
|
129
|
-
import "./chunk-
|
|
128
|
+
} from "./chunk-2OIGV355.js";
|
|
129
|
+
import "./chunk-XZZFHQGM.js";
|
|
130
130
|
import {
|
|
131
131
|
LIST_QUERY_GUIDE,
|
|
132
132
|
STATUS_SIGNALS,
|
|
@@ -178,18 +178,18 @@ import {
|
|
|
178
178
|
termField,
|
|
179
179
|
typedQuery,
|
|
180
180
|
withQuery
|
|
181
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-4VQPPX47.js";
|
|
182
182
|
import {
|
|
183
183
|
readBoundedUtf8File,
|
|
184
184
|
writeFileAtomic
|
|
185
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-QCPUC3HW.js";
|
|
186
186
|
import {
|
|
187
187
|
commandsText,
|
|
188
188
|
inSection,
|
|
189
189
|
installHelp
|
|
190
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-O3KOW7RG.js";
|
|
191
191
|
import "./chunk-HTQTIKWP.js";
|
|
192
|
-
import "./chunk-
|
|
192
|
+
import "./chunk-GIDZGGAD.js";
|
|
193
193
|
import {
|
|
194
194
|
Command,
|
|
195
195
|
FETCH,
|
|
@@ -220,22 +220,22 @@ import {
|
|
|
220
220
|
settingRows,
|
|
221
221
|
settingsFor,
|
|
222
222
|
snakeKeys
|
|
223
|
-
} from "./chunk-
|
|
224
|
-
import "./chunk-
|
|
225
|
-
import "./chunk-
|
|
223
|
+
} from "./chunk-PYRHU35W.js";
|
|
224
|
+
import "./chunk-FOM7WE2C.js";
|
|
225
|
+
import "./chunk-GV6XJMUW.js";
|
|
226
226
|
import {
|
|
227
227
|
isNewer
|
|
228
|
-
} from "./chunk-
|
|
229
|
-
import "./chunk-
|
|
230
|
-
import "./chunk-
|
|
231
|
-
import "./chunk-
|
|
232
|
-
import "./chunk-
|
|
233
|
-
import "./chunk-
|
|
228
|
+
} from "./chunk-7RNHFNHX.js";
|
|
229
|
+
import "./chunk-VW6BF6M7.js";
|
|
230
|
+
import "./chunk-DJRBSOWH.js";
|
|
231
|
+
import "./chunk-XXGBXCBQ.js";
|
|
232
|
+
import "./chunk-OT23U5LT.js";
|
|
233
|
+
import "./chunk-2HPYP3ZT.js";
|
|
234
234
|
import {
|
|
235
235
|
releaseLock,
|
|
236
236
|
takeLock
|
|
237
|
-
} from "./chunk-
|
|
238
|
-
import "./chunk-
|
|
237
|
+
} from "./chunk-S7F4ZDFU.js";
|
|
238
|
+
import "./chunk-DVA6MQWK.js";
|
|
239
239
|
import {
|
|
240
240
|
DEAL_KINDS,
|
|
241
241
|
DEAL_ROLES,
|
|
@@ -271,9 +271,10 @@ import {
|
|
|
271
271
|
openStore,
|
|
272
272
|
parseLocator,
|
|
273
273
|
parseReference,
|
|
274
|
+
plainQuery,
|
|
274
275
|
providerNamed,
|
|
275
276
|
refLabel
|
|
276
|
-
} from "./chunk-
|
|
277
|
+
} from "./chunk-P2LMXIHL.js";
|
|
277
278
|
import {
|
|
278
279
|
FACT_STATUSES,
|
|
279
280
|
FACT_TYPES,
|
|
@@ -307,22 +308,22 @@ import {
|
|
|
307
308
|
timezoneOf,
|
|
308
309
|
validateQuery,
|
|
309
310
|
walkQuery
|
|
310
|
-
} from "./chunk-
|
|
311
|
-
import "./chunk-
|
|
312
|
-
import "./chunk-
|
|
313
|
-
import "./chunk-
|
|
314
|
-
import "./chunk-
|
|
315
|
-
import "./chunk-
|
|
316
|
-
import "./chunk-
|
|
317
|
-
import "./chunk-
|
|
318
|
-
import "./chunk-
|
|
319
|
-
import "./chunk-
|
|
311
|
+
} from "./chunk-HCMXUHHF.js";
|
|
312
|
+
import "./chunk-EJDV5IIF.js";
|
|
313
|
+
import "./chunk-RYMYE5PF.js";
|
|
314
|
+
import "./chunk-V2DMJ6ES.js";
|
|
315
|
+
import "./chunk-W6JQNNJ5.js";
|
|
316
|
+
import "./chunk-AKD62EUH.js";
|
|
317
|
+
import "./chunk-ND6D4A6H.js";
|
|
318
|
+
import "./chunk-5RVL7GYA.js";
|
|
319
|
+
import "./chunk-QCRJNWJZ.js";
|
|
320
|
+
import "./chunk-5JVA43HX.js";
|
|
320
321
|
import {
|
|
321
322
|
sharedModelsDirectory
|
|
322
|
-
} from "./chunk-
|
|
323
|
+
} from "./chunk-KVOHC4ZM.js";
|
|
323
324
|
import {
|
|
324
325
|
storePath
|
|
325
|
-
} from "./chunk-
|
|
326
|
+
} from "./chunk-LZWXGO3G.js";
|
|
326
327
|
import {
|
|
327
328
|
provideTerminal,
|
|
328
329
|
terminalOf
|
|
@@ -332,12 +333,12 @@ import {
|
|
|
332
333
|
REASONS,
|
|
333
334
|
STORE_CLIENT,
|
|
334
335
|
VERSION
|
|
335
|
-
} from "./chunk-
|
|
336
|
-
import "./chunk-
|
|
337
|
-
import "./chunk-
|
|
336
|
+
} from "./chunk-QNM36ARO.js";
|
|
337
|
+
import "./chunk-P3ASN72F.js";
|
|
338
|
+
import "./chunk-VOXIGICJ.js";
|
|
338
339
|
import "./chunk-D72URWJE.js";
|
|
339
|
-
import "./chunk-
|
|
340
|
-
import "./chunk-
|
|
340
|
+
import "./chunk-NTQUBSIJ.js";
|
|
341
|
+
import "./chunk-PUTGTW6W.js";
|
|
341
342
|
import {
|
|
342
343
|
createDeadline,
|
|
343
344
|
createRenderer,
|
|
@@ -347,7 +348,7 @@ import {
|
|
|
347
348
|
projectFields,
|
|
348
349
|
readBatchInput,
|
|
349
350
|
resolvePaths
|
|
350
|
-
} from "./chunk-
|
|
351
|
+
} from "./chunk-O3ZOYXH3.js";
|
|
351
352
|
import {
|
|
352
353
|
MAX_NEXT_STEPS,
|
|
353
354
|
array,
|
|
@@ -369,14 +370,14 @@ import {
|
|
|
369
370
|
trim,
|
|
370
371
|
union,
|
|
371
372
|
unknown
|
|
372
|
-
} from "./chunk-
|
|
373
|
+
} from "./chunk-EBNNONF5.js";
|
|
373
374
|
import "./chunk-Y5E2WNWB.js";
|
|
374
375
|
import {
|
|
375
376
|
CliError,
|
|
376
377
|
errorCodes,
|
|
377
378
|
isCliError
|
|
378
|
-
} from "./chunk-
|
|
379
|
-
import "./chunk-
|
|
379
|
+
} from "./chunk-BXTDAGM4.js";
|
|
380
|
+
import "./chunk-P2TISY3R.js";
|
|
380
381
|
import {
|
|
381
382
|
__name
|
|
382
383
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -658,7 +659,7 @@ var collect = /* @__PURE__ */ __name((value, previous = []) => [...previous, val
|
|
|
658
659
|
var readScope = /* @__PURE__ */ __name((command, help = ONE_ACCOUNT_HELP) => sourceOptions(command, help).option("--json", "print JSON; --json=id,title keeps only those fields"), "readScope");
|
|
659
660
|
var writeScope = /* @__PURE__ */ __name((command, help) => writeOptions(command, help).option("--json", "print JSON; --json=id,title keeps only those fields"), "writeScope");
|
|
660
661
|
|
|
661
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
662
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/mail/sender-scores.js
|
|
662
663
|
var SCORED = "mail_sender_scores";
|
|
663
664
|
var DAY = 864e5;
|
|
664
665
|
var RECENT = 2 * 365 * DAY;
|
|
@@ -674,7 +675,7 @@ var demotedSenders = /* @__PURE__ */ __name(async (store) => {
|
|
|
674
675
|
return senders;
|
|
675
676
|
}, "demotedSenders");
|
|
676
677
|
|
|
677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/mail/sync.js
|
|
678
679
|
var DAY2 = 864e5;
|
|
679
680
|
var EDGE = 2 * DAY2;
|
|
680
681
|
|
|
@@ -1696,14 +1697,15 @@ var searchKind = /* @__PURE__ */ __name(async (store, kind, { text: text3, limit
|
|
|
1696
1697
|
...account2 === void 0 ? {} : { mailAccount: account2 },
|
|
1697
1698
|
...plainOrder ? { plainOrder: true } : {}
|
|
1698
1699
|
}, { app: APP });
|
|
1700
|
+
const plain = plainQuery(text3);
|
|
1699
1701
|
return searchStore(store, MEMO, {
|
|
1700
1702
|
text: text3,
|
|
1701
1703
|
kind,
|
|
1702
|
-
...hasSource(parseLucene(
|
|
1704
|
+
...hasSource(parseLucene(plain).root) ? {} : { source: "all" },
|
|
1703
1705
|
limit,
|
|
1704
1706
|
...scope,
|
|
1705
1707
|
// As search all does: a question finds a short reply by the message it answers, and records holding some words.
|
|
1706
|
-
...!exact && questionLookup(
|
|
1708
|
+
...!exact && questionLookup(plain) !== void 0 ? { discover: true } : {}
|
|
1707
1709
|
}, { app: APP });
|
|
1708
1710
|
}, "searchKind");
|
|
1709
1711
|
var keyRefs = /* @__PURE__ */ __name(async (store, project) => new Set((await keyDocuments(store, await projectOf(store, project))).map((item) => item.ref)), "keyRefs");
|
|
@@ -1866,6 +1868,7 @@ var attachFolder = /* @__PURE__ */ __name((config, id, path, format) => {
|
|
|
1866
1868
|
const kept = folders.filter((other) => other.id !== id && other.path !== at);
|
|
1867
1869
|
return { config: withFolders(config, [...kept, folder]), folder };
|
|
1868
1870
|
}, "attachFolder");
|
|
1871
|
+
var unbindFolder = /* @__PURE__ */ __name((config, path) => withFolders(config, noteFolders(config.notes).filter((folder) => folder.path !== resolve(path))), "unbindFolder");
|
|
1869
1872
|
|
|
1870
1873
|
// dist/notes/bound.js
|
|
1871
1874
|
var UNBOUND = "folder.unbound";
|
|
@@ -1911,7 +1914,7 @@ import { createHash } from "node:crypto";
|
|
|
1911
1914
|
import { existsSync, readFileSync as readFileSync2, statSync } from "node:fs";
|
|
1912
1915
|
import { basename, extname, relative, sep } from "node:path";
|
|
1913
1916
|
|
|
1914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/services/documents/extraction.js
|
|
1915
1918
|
var Proposal = object({
|
|
1916
1919
|
kind: picklist(["summary", "digest", "fact", "preference"]),
|
|
1917
1920
|
body: pipe(string(), trim(), minLength(1), maxLength(15e3)),
|
|
@@ -1919,10 +1922,10 @@ var Proposal = object({
|
|
|
1919
1922
|
});
|
|
1920
1923
|
var Proposals = object({ items: pipe(array(Proposal), maxLength(20)) });
|
|
1921
1924
|
|
|
1922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
|
|
1923
1926
|
var ID = pipe(string(), regex(/^[A-Za-z0-9_-]{1,200}$/));
|
|
1924
1927
|
|
|
1925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
|
|
1926
1929
|
var MAX_PICTURE_BYTES = 25 * 1024 * 1024;
|
|
1927
1930
|
|
|
1928
1931
|
// dist/notes/links.js
|
|
@@ -1979,7 +1982,7 @@ var detectRenames = /* @__PURE__ */ __name((before, after) => {
|
|
|
1979
1982
|
}, "detectRenames");
|
|
1980
1983
|
|
|
1981
1984
|
// dist/notes/state.js
|
|
1982
|
-
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
1985
|
+
import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
1983
1986
|
import { join } from "node:path";
|
|
1984
1987
|
var empty = /* @__PURE__ */ __name(() => ({ files: {}, documents: {} }), "empty");
|
|
1985
1988
|
var fileOf = /* @__PURE__ */ __name((env, id) => join(resolvePaths({ appName: "cli-memo", prefix: "MEMO", env }).state, "folders", `${id}.json`), "fileOf");
|
|
@@ -1996,6 +1999,7 @@ var saveFolderState = /* @__PURE__ */ __name((env, id, state) => {
|
|
|
1996
1999
|
writeFileSync(`${file}.tmp`, JSON.stringify(state));
|
|
1997
2000
|
renameSync(`${file}.tmp`, file);
|
|
1998
2001
|
}, "saveFolderState");
|
|
2002
|
+
var dropFolderState = /* @__PURE__ */ __name((env, id) => rmSync(fileOf(env, id), { force: true }), "dropFolderState");
|
|
1999
2003
|
|
|
2000
2004
|
// dist/notes/import.js
|
|
2001
2005
|
var MAX_TEXT = 2e5;
|
|
@@ -2024,7 +2028,8 @@ var storable = /* @__PURE__ */ __name((tags) => [
|
|
|
2024
2028
|
}
|
|
2025
2029
|
}))
|
|
2026
2030
|
].sort(), "storable");
|
|
2027
|
-
var importNotes = /* @__PURE__ */ __name(async (store, folder, { ignore = [], skip = [], env = process.env, loadEngine = importEngine
|
|
2031
|
+
var importNotes = /* @__PURE__ */ __name(async (store, folder, { ignore = [], skip = [], env = process.env, loadEngine = importEngine, onFile = /* @__PURE__ */ __name(() => {
|
|
2032
|
+
}, "onFile") } = {}) => {
|
|
2028
2033
|
if (!existsSync(folder.path))
|
|
2029
2034
|
throw new CliError("not_found", missingFolder(folder.path), {
|
|
2030
2035
|
reason: "notes.folder-missing",
|
|
@@ -2048,7 +2053,10 @@ var importNotes = /* @__PURE__ */ __name(async (store, folder, { ignore = [], sk
|
|
|
2048
2053
|
unreadable.push(path);
|
|
2049
2054
|
}, "notReadAs");
|
|
2050
2055
|
const files = noteFiles(folder.path, ignore, NOTE_EXTENSIONS, { skipExported: false });
|
|
2051
|
-
|
|
2056
|
+
onFile(0, files.length);
|
|
2057
|
+
for (const [index, path] of files.entries()) {
|
|
2058
|
+
if (index > 0)
|
|
2059
|
+
onFile(index - read.length, files.length);
|
|
2052
2060
|
const id = inside(folder.path, path);
|
|
2053
2061
|
const previous = before?.files[id];
|
|
2054
2062
|
const wasNotRead = before?.notRead?.[id];
|
|
@@ -2100,7 +2108,8 @@ var importNotes = /* @__PURE__ */ __name(async (store, folder, { ignore = [], sk
|
|
|
2100
2108
|
const parsed = /* @__PURE__ */ new Map();
|
|
2101
2109
|
let changed = 0;
|
|
2102
2110
|
let added = 0;
|
|
2103
|
-
for (const { id, path, bytes, hash } of read) {
|
|
2111
|
+
for (const [index, { id, path, bytes, hash }] of read.entries()) {
|
|
2112
|
+
onFile(files.length - read.length + index, files.length);
|
|
2104
2113
|
if (stored.get(id)?.contentHash === hash)
|
|
2105
2114
|
continue;
|
|
2106
2115
|
const extraction = await extractText(bytes, { kind: "file", name: basename(path), mime: null, path }, loadEngine);
|
|
@@ -2136,6 +2145,7 @@ var importNotes = /* @__PURE__ */ __name(async (store, folder, { ignore = [], sk
|
|
|
2136
2145
|
if (saved.changed)
|
|
2137
2146
|
changed++;
|
|
2138
2147
|
}
|
|
2148
|
+
onFile(files.length, files.length);
|
|
2139
2149
|
const gone = [...stored.keys()].filter((id) => !listed.has(id));
|
|
2140
2150
|
let deleted = 0;
|
|
2141
2151
|
let deletionsSkipped;
|
|
@@ -4226,6 +4236,7 @@ var EXAMPLES = {
|
|
|
4226
4236
|
"notes export": ["memo notes export --output-dir ~/notes/memo --format obsidian"],
|
|
4227
4237
|
"folders add": ["memo folders add ~/notes"],
|
|
4228
4238
|
"folders update": ["memo folders update 1 ~/notes"],
|
|
4239
|
+
"folders remove": ["memo folders remove 1", "memo folders remove 1 --allow-delete --yes"],
|
|
4229
4240
|
"folders list": ["memo folders list --json"],
|
|
4230
4241
|
"config show": ["memo config show", "memo config show --json"],
|
|
4231
4242
|
"config migrate": ["memo config migrate"],
|
|
@@ -4631,8 +4642,9 @@ var listMemories = /* @__PURE__ */ __name(async (store, query, limit) => {
|
|
|
4631
4642
|
return pageOf("memories list", limit, async (most) => (await store.memories.list({ ...filters, limit: most })).map(memoryItem));
|
|
4632
4643
|
}, "listMemories");
|
|
4633
4644
|
var SEARCH = { command: "search memories", guide: LIST_QUERY_GUIDE };
|
|
4645
|
+
var MEMORY_FIELDS = /* @__PURE__ */ new Set(["text", ...MEMORY_QUERY.fields.map(({ name: name2 }) => name2)]);
|
|
4634
4646
|
var searchMemories = /* @__PURE__ */ __name((store, query, limit) => {
|
|
4635
|
-
const { root } = parseLucene(typedQuery(query), { ...SEARCH, defaultField: "text" });
|
|
4647
|
+
const { root } = parseLucene(plainQuery(typedQuery(query), MEMORY_FIELDS), { ...SEARCH, defaultField: "text" });
|
|
4636
4648
|
const clauses = [];
|
|
4637
4649
|
if (root.kind === "predicate")
|
|
4638
4650
|
clauses.push(root);
|
|
@@ -6867,10 +6879,10 @@ var mcpCommandDefinition = /* @__PURE__ */ __name((program, streams, env, create
|
|
|
6867
6879
|
}).summary("serve this profile's commands to an AI agent").description("serve memo commands over MCP on stdio or authenticated HTTP, limited by saved permissions").option("--permission <key=level>", "tighten one saved permission for this server; repeat for more keys", (value, previous = []) => [...previous, value]).option("--http", "serve on 127.0.0.1 behind an HTTPS tunnel with an owner access-code login").option("--port <port>", `local HTTP port (default ${DEFAULT_PORT}); requires --http`).option("--public-url <url>", "tunnel's HTTPS address without /mcp, or a path of it such as https://<name>.ts.net/memo; requires --http").action(async (options) => {
|
|
6868
6880
|
if (!options.http && (options.port !== void 0 || options.publicUrl !== void 0))
|
|
6869
6881
|
throw new CliError("validation_error", "--port and --public-url require --http");
|
|
6870
|
-
const { createMemoServer } = await import("./server-
|
|
6882
|
+
const { createMemoServer } = await import("./server-7GH6JLM3.js");
|
|
6871
6883
|
const build = /* @__PURE__ */ __name(() => createMemoServer(env, createProgram2, options.permission), "build");
|
|
6872
6884
|
if (options.http) {
|
|
6873
|
-
const { httpLockFile, mcpUrlOf, portOf, publicUrlOf, serveOverHttp } = await import("./mcp-
|
|
6885
|
+
const { httpLockFile, mcpUrlOf, portOf, publicUrlOf, serveOverHttp } = await import("./mcp-QRZ2HSON.js");
|
|
6874
6886
|
const publicUrl = publicUrlOf(options.publicUrl, {
|
|
6875
6887
|
missing: "--http",
|
|
6876
6888
|
reaches: "the browser apps reach memo",
|
|
@@ -6922,7 +6934,7 @@ var mcpCommandDefinition = /* @__PURE__ */ __name((program, streams, env, create
|
|
|
6922
6934
|
});
|
|
6923
6935
|
});
|
|
6924
6936
|
annotate(mcp2.command("revoke"), { effects: LOCAL_WRITE, mcp: false, examples: ["memo mcp revoke --json"] }).summary("forget every login given to a browser app").description("forget every login `memo mcp serve --http` gave a browser app; each app must log in again").option("--json", "print JSON").action(async function() {
|
|
6925
|
-
const { revokeAll } = await import("./mcp-
|
|
6937
|
+
const { revokeAll } = await import("./mcp-QRZ2HSON.js");
|
|
6926
6938
|
revokeAll(httpTokenFile(env));
|
|
6927
6939
|
out.print(this.opts().json, itemAnswer({ revoked: true }));
|
|
6928
6940
|
});
|
|
@@ -7545,6 +7557,25 @@ var notesCommand = /* @__PURE__ */ __name((...args) => {
|
|
|
7545
7557
|
// dist/notes/folders-command.js
|
|
7546
7558
|
import { statSync as statSync4 } from "node:fs";
|
|
7547
7559
|
import { basename as basename2, resolve as resolve4 } from "node:path";
|
|
7560
|
+
|
|
7561
|
+
// dist/run/lock.js
|
|
7562
|
+
import { join as join7 } from "node:path";
|
|
7563
|
+
var withImportLock = /* @__PURE__ */ __name(async (env, work) => {
|
|
7564
|
+
const lock = join7(resolvePaths({ appName: "cli-memo", prefix: "MEMO", env }).state, "import.lock");
|
|
7565
|
+
const holder = takeLock(lock, { pid: process.pid, startedAt: (/* @__PURE__ */ new Date()).toISOString() });
|
|
7566
|
+
if (holder !== void 0)
|
|
7567
|
+
throw new CliError("rate_limited", `another memo sync is running (process ${holder.pid}); try again when it ends`, {
|
|
7568
|
+
reason: "sync.running",
|
|
7569
|
+
pid: holder.pid
|
|
7570
|
+
});
|
|
7571
|
+
try {
|
|
7572
|
+
return await work();
|
|
7573
|
+
} finally {
|
|
7574
|
+
releaseLock(lock, process.pid);
|
|
7575
|
+
}
|
|
7576
|
+
}, "withImportLock");
|
|
7577
|
+
|
|
7578
|
+
// dist/notes/folders-command.js
|
|
7548
7579
|
var formatOf2 = /* @__PURE__ */ __name((value) => {
|
|
7549
7580
|
if (!DIALECTS.includes(value))
|
|
7550
7581
|
throw new InvalidArgumentError(`choose ${DIALECTS.join(", ")}`);
|
|
@@ -7610,6 +7641,39 @@ var foldersCommand = /* @__PURE__ */ __name((program, streams, env) => {
|
|
|
7610
7641
|
});
|
|
7611
7642
|
print(options.json, itemAnswer(folder), line2(folder));
|
|
7612
7643
|
});
|
|
7644
|
+
grantsAuthority(annotate(folders.command("remove"), {
|
|
7645
|
+
effects: LOCAL_WRITE,
|
|
7646
|
+
examples: ["memo folders remove ~/notes", "memo folders remove 3 --allow-delete --yes --json"]
|
|
7647
|
+
})).description("stop reading a notes folder here; its notes stay unless --allow-delete").argument("<folder>", "the folder's id or its path, as memo folders list prints them").option("--allow-delete", "also delete the folder's notes from the store, their text included").option("--yes", "confirm --allow-delete").option("--json", "print JSON; --json=id,title keeps only those fields").action(async (target, options) => {
|
|
7648
|
+
const here = noteFolders(loadConfig(env).notes);
|
|
7649
|
+
const bound = here.find(({ id }) => id !== null && id === target) ?? here.find(({ path }) => path === resolve4(target));
|
|
7650
|
+
const removed = await withImportLock(env, () => withStore(env, async (store) => {
|
|
7651
|
+
const elsewhere = bound ? void 0 : (await store.notes.folders()).find(({ id: id2, name: name2 }) => id2 === target && !keptByDrive(name2));
|
|
7652
|
+
if (!bound && !(elsewhere && options.allowDelete))
|
|
7653
|
+
throw new CliError("not_found", elsewhere ? `folder ${target} is not on this computer; memo folders remove ${target} --allow-delete --yes deletes its notes` : `no notes folder ${target} on this computer \u2014 memo folders list shows them`, { reason: "folder.not-found" });
|
|
7654
|
+
const id = bound ? bound.id : target;
|
|
7655
|
+
let notesDeleted = 0;
|
|
7656
|
+
if (options.allowDelete && id !== null) {
|
|
7657
|
+
const paths = (await folderNotes(store, id)).map((note) => note.path);
|
|
7658
|
+
if (options.yes !== true)
|
|
7659
|
+
throw new CliError("confirmation_required", `this deletes ${paths.length} notes of folder ${id} from the store, their text included; nothing was changed \u2014 add --yes`, { reason: "folder.delete-notes", notes: paths.length });
|
|
7660
|
+
if (paths.length)
|
|
7661
|
+
notesDeleted = await store.notes.deleteFileNotes(id, paths);
|
|
7662
|
+
dropFolderState(env, id);
|
|
7663
|
+
}
|
|
7664
|
+
if (bound)
|
|
7665
|
+
updateConfig((config) => unbindFolder(config, bound.path), env);
|
|
7666
|
+
return {
|
|
7667
|
+
id,
|
|
7668
|
+
path: bound?.path ?? null,
|
|
7669
|
+
format: bound?.format ?? elsewhere?.format ?? "obsidian",
|
|
7670
|
+
removed: true,
|
|
7671
|
+
notesDeleted
|
|
7672
|
+
};
|
|
7673
|
+
}));
|
|
7674
|
+
const kept = removed.id === null ? "" : ` (memo folders remove ${removed.id} --allow-delete --yes deletes them)`;
|
|
7675
|
+
print(options.json, itemAnswer(removed), options.allowDelete ? `${removed.path ?? `folder ${removed.id}`}: ${removed.notesDeleted} notes deleted from the store` : `${removed.path} removed from this computer; its notes stay in the store${kept}`);
|
|
7676
|
+
});
|
|
7613
7677
|
withQuery(annotate(folders.command("list"), { effects: LOCAL_READ, output: { entity: "notes_folder" } }).description("folders of notes on this computer, and those the store knows from another"), FOLDERS_QUERY).option("--json", "print JSON; --json=id,title keeps only those fields").action(async (words, options) => {
|
|
7614
7678
|
queryTerms(words, FOLDERS_QUERY, "folders list");
|
|
7615
7679
|
const here = noteFolders(loadConfig(env).notes);
|
|
@@ -7628,7 +7692,7 @@ var foldersCommand = /* @__PURE__ */ __name((program, streams, env) => {
|
|
|
7628
7692
|
}, "foldersCommand");
|
|
7629
7693
|
|
|
7630
7694
|
// dist/people/command.js
|
|
7631
|
-
import { join as
|
|
7695
|
+
import { join as join8 } from "node:path";
|
|
7632
7696
|
var noteCommand = /* @__PURE__ */ __name((program, streams, env) => {
|
|
7633
7697
|
const notes2 = program.commands.find((command) => command.name() === "notes") ?? program.command("notes");
|
|
7634
7698
|
const links = notes2.command("links").description("imported note files linked to the person behind an identity");
|
|
@@ -7679,7 +7743,7 @@ var noteCommand = /* @__PURE__ */ __name((program, streams, env) => {
|
|
|
7679
7743
|
}
|
|
7680
7744
|
const paths = (await files()).map(({ note }) => {
|
|
7681
7745
|
const folder = folders.find((candidate) => candidate.id === note.folderId);
|
|
7682
|
-
return folder ?
|
|
7746
|
+
return folder ? join8(folder.path, note.path) : note.ref;
|
|
7683
7747
|
});
|
|
7684
7748
|
return { person: to, name: person.name ?? person.uid, files: paths };
|
|
7685
7749
|
});
|
|
@@ -8397,22 +8461,20 @@ var embedMailChunks = /* @__PURE__ */ __name(async (store, { maxChunks = EMBED_P
|
|
|
8397
8461
|
}
|
|
8398
8462
|
}, "embedMailChunks");
|
|
8399
8463
|
|
|
8400
|
-
// dist/
|
|
8401
|
-
|
|
8402
|
-
var
|
|
8403
|
-
|
|
8404
|
-
|
|
8405
|
-
|
|
8406
|
-
|
|
8407
|
-
|
|
8408
|
-
|
|
8409
|
-
|
|
8410
|
-
|
|
8411
|
-
|
|
8412
|
-
}
|
|
8413
|
-
|
|
8414
|
-
}
|
|
8415
|
-
}, "withImportLock");
|
|
8464
|
+
// dist/progress.js
|
|
8465
|
+
var EVERY_MS = 500;
|
|
8466
|
+
var progressLine = /* @__PURE__ */ __name((diagnostic, json7, { step, unit, label }) => {
|
|
8467
|
+
let last = Number.NEGATIVE_INFINITY;
|
|
8468
|
+
return (done, total) => {
|
|
8469
|
+
if (!json7)
|
|
8470
|
+
return;
|
|
8471
|
+
const now = Date.now();
|
|
8472
|
+
if (done !== total && now - last < EVERY_MS)
|
|
8473
|
+
return;
|
|
8474
|
+
last = now;
|
|
8475
|
+
diagnostic(JSON.stringify({ event: "progress", step, done, total, unit, ...label === void 0 ? {} : { label } }));
|
|
8476
|
+
};
|
|
8477
|
+
}, "progressLine");
|
|
8416
8478
|
|
|
8417
8479
|
// dist/run/import.js
|
|
8418
8480
|
var issuesOf = /* @__PURE__ */ __name((failed) => failed.flatMap(({ code, source }) => errorCodes.includes(code) ? [{ code, source }] : []), "issuesOf");
|
|
@@ -8528,7 +8590,12 @@ var syncCommand = /* @__PURE__ */ __name((program, streams, env, signal) => {
|
|
|
8528
8590
|
const skip = options.ignore ?? [];
|
|
8529
8591
|
for (const folder of folders)
|
|
8530
8592
|
await attempt(`notes ${folder.path}`, async () => {
|
|
8531
|
-
|
|
8593
|
+
const onFile = progressLine(streams.diagnostic, Boolean(options.json), {
|
|
8594
|
+
step: "notes",
|
|
8595
|
+
unit: "files",
|
|
8596
|
+
label: folder.id
|
|
8597
|
+
});
|
|
8598
|
+
run.notes.push(await importNotes(store, folder, { ignore, skip, env, onFile }));
|
|
8532
8599
|
});
|
|
8533
8600
|
if (folders.length > 0)
|
|
8534
8601
|
await attempt("notes by meaning", async () => {
|
|
@@ -8662,7 +8729,12 @@ var named3 = /* @__PURE__ */ __name((accounts) => [
|
|
|
8662
8729
|
...new Set(accounts.map(({ provider, account: account2 }) => `${provider}:${account2}`))
|
|
8663
8730
|
], "named");
|
|
8664
8731
|
var metaOf2 = /* @__PURE__ */ __name((accounts, skipped = [], heldInPart = false) => {
|
|
8665
|
-
const issues = skipped.map((one2) => ({
|
|
8732
|
+
const issues = skipped.map((one2) => ({
|
|
8733
|
+
code: one2.code,
|
|
8734
|
+
// The output standard takes a dotted reason only, as cli-core's search all does.
|
|
8735
|
+
...one2.why && /^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)+$/u.test(one2.why) ? { reason: one2.why } : {},
|
|
8736
|
+
source: one2.source ?? one2.resource ?? ""
|
|
8737
|
+
}));
|
|
8666
8738
|
return {
|
|
8667
8739
|
accounts: named3(accounts),
|
|
8668
8740
|
...heldInPart ? { complete: false } : {},
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
readSecret
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-W6JQNNJ5.js";
|
|
6
|
+
import "./chunk-AKD62EUH.js";
|
|
7
|
+
import "./chunk-O3ZOYXH3.js";
|
|
8
|
+
import "./chunk-EBNNONF5.js";
|
|
9
9
|
import "./chunk-Y5E2WNWB.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-BXTDAGM4.js";
|
|
11
11
|
import "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
export {
|
|
13
13
|
readSecret
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
openRecognizer,
|
|
9
9
|
openSpeechCutter,
|
|
10
10
|
toModelRate
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-6N6BVPVX.js";
|
|
12
|
+
import "./chunk-O3ZOYXH3.js";
|
|
13
|
+
import "./chunk-EBNNONF5.js";
|
|
14
14
|
import "./chunk-Y5E2WNWB.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-BXTDAGM4.js";
|
|
16
16
|
import "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
export {
|
|
18
18
|
SAMPLE_RATE,
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
openRemote,
|
|
9
9
|
remoteKey,
|
|
10
10
|
remoteModel
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-QCRJNWJZ.js";
|
|
12
|
+
import "./chunk-5JVA43HX.js";
|
|
13
|
+
import "./chunk-KVOHC4ZM.js";
|
|
14
|
+
import "./chunk-LZWXGO3G.js";
|
|
15
|
+
import "./chunk-O3ZOYXH3.js";
|
|
16
|
+
import "./chunk-EBNNONF5.js";
|
|
17
17
|
import "./chunk-Y5E2WNWB.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-BXTDAGM4.js";
|
|
19
19
|
import "./chunk-ZVVMGPBJ.js";
|
|
20
20
|
export {
|
|
21
21
|
DEFAULT_OPENAI_MODEL,
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
defaultThreads,
|
|
5
5
|
loadModel,
|
|
6
6
|
truncated
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-5JVA43HX.js";
|
|
8
|
+
import "./chunk-KVOHC4ZM.js";
|
|
9
|
+
import "./chunk-LZWXGO3G.js";
|
|
10
|
+
import "./chunk-O3ZOYXH3.js";
|
|
11
|
+
import "./chunk-EBNNONF5.js";
|
|
12
12
|
import "./chunk-Y5E2WNWB.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-BXTDAGM4.js";
|
|
14
14
|
import {
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/embeddings/rerank.js
|
|
19
19
|
var openReranker = /* @__PURE__ */ __name(async (model, directory, { threads = defaultThreads() } = {}) => {
|
|
20
20
|
const { ort, tokenizer, session } = await loadModel(model, directory, threads);
|
|
21
21
|
const typeIds = session.inputNames.includes("token_type_ids");
|