@wirecat/mail-cli 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-MRNWJSXX.js → all-profiles-DTUWUCQQ.js} +7 -6
- package/dist/bundle/{anthropic-OUV5B4ZR.js → anthropic-YJAEQSNT.js} +3 -3
- package/dist/bundle/{app-server-TLZPGT53.js → app-server-3ZXSTBA3.js} +41 -40
- package/dist/bundle/{bun-IDEPIM6S.js → bun-34VBM7C5.js} +2 -2
- package/dist/bundle/{bun-sqlite-DW4XMJOP.js → bun-sqlite-GCT7ROCK.js} +2 -2
- package/dist/bundle/{chunk-ETZFPIDO.js → chunk-2PPEDB67.js} +31 -29
- package/dist/bundle/{chunk-HUOAAQU7.js → chunk-3DSYLE5N.js} +2 -2
- package/dist/bundle/{chunk-RYRR5NFB.js → chunk-3HDQVTND.js} +4 -4
- package/dist/bundle/{chunk-H3KB77WL.js → chunk-4FWJNIPH.js} +1 -1
- package/dist/bundle/{chunk-NA63ZIYN.js → chunk-4WIEVQ2Q.js} +8 -14
- package/dist/bundle/{chunk-EWXCMKLM.js → chunk-566MEXK5.js} +2 -2
- package/dist/bundle/{chunk-GZAETQ6X.js → chunk-72N26BQM.js} +24 -22
- package/dist/bundle/{chunk-DC6BXHWF.js → chunk-7XLOWYGD.js} +93 -6
- package/dist/bundle/{chunk-RYE5SRUM.js → chunk-AF62BPIW.js} +5 -5
- package/dist/bundle/{chunk-GAPH7GET.js → chunk-B74SOC4R.js} +9 -20
- package/dist/bundle/{chunk-BQM4ROFB.js → chunk-FTI73RLC.js} +2 -2
- package/dist/bundle/{chunk-OUMXW53I.js → chunk-GAPQENMY.js} +2 -2
- package/dist/bundle/{chunk-4EMXLDQ6.js → chunk-HJ2CXDKJ.js} +130 -11
- package/dist/bundle/{chunk-2ZDKZGES.js → chunk-HN43G27G.js} +30 -22
- package/dist/bundle/{chunk-VVHEB3M3.js → chunk-HRRSTIGP.js} +4 -4
- package/dist/bundle/{chunk-QC6QDORL.js → chunk-HSBGNVEL.js} +202 -171
- package/dist/bundle/{chunk-CQVRBZGP.js → chunk-I2SDXWLR.js} +173 -48
- package/dist/bundle/{chunk-3CJVUCDZ.js → chunk-J2U6LUT5.js} +3 -3
- package/dist/bundle/{chunk-WJQWEKZL.js → chunk-J4UZXBEV.js} +1 -1
- package/dist/bundle/{chunk-57KFWOMH.js → chunk-KMQAHDBM.js} +7170 -13496
- package/dist/bundle/{chunk-7H45FPAT.js → chunk-LF5XM4HE.js} +1 -1
- package/dist/bundle/chunk-LTXYJAJK.js +12211 -0
- package/dist/bundle/{chunk-YJMQWOPH.js → chunk-MD64ITYO.js} +1 -1
- package/dist/bundle/{chunk-WELIANTW.js → chunk-MDDB7M7Z.js} +1 -1
- package/dist/bundle/{chunk-ZXQDJMWD.js → chunk-NOVBK4SY.js} +12 -12
- package/dist/bundle/{chunk-YL5WH6XH.js → chunk-O3M2S62X.js} +3 -3
- package/dist/bundle/{chunk-H4MWBB4X.js → chunk-ODFHIXMA.js} +1 -1
- package/dist/bundle/{chunk-HCRMPNSO.js → chunk-OKO2Q6H6.js} +2 -2
- package/dist/bundle/{chunk-FBSDRNW5.js → chunk-P2QJA7S5.js} +1 -1
- package/dist/bundle/{chunk-VIXEQPVE.js → chunk-P6FT6YYT.js} +17 -14
- package/dist/bundle/{chunk-QU3JH3GB.js → chunk-QE72KTS7.js} +1 -1
- package/dist/bundle/{chunk-W3PU5XGE.js → chunk-QPRXTLMD.js} +1 -1
- package/dist/bundle/{chunk-EQWYG3QN.js → chunk-QTMVGOSF.js} +298 -266
- package/dist/bundle/{chunk-HTNWOOA2.js → chunk-R3WPMQYZ.js} +105 -61
- package/dist/bundle/{chunk-SOZXI7I3.js → chunk-RFB27ACZ.js} +2 -2
- package/dist/bundle/{chunk-P2RSKCY4.js → chunk-RPCKBXKN.js} +1 -1
- package/dist/bundle/{chunk-QXZTVB5I.js → chunk-RT6SLZBI.js} +1 -1
- package/dist/bundle/{chunk-TX2TTMK4.js → chunk-RY7PBP4F.js} +45 -29
- package/dist/bundle/{chunk-7ERCJWNL.js → chunk-SCIC2CJS.js} +4 -4
- package/dist/bundle/{chunk-33BOFLDQ.js → chunk-SFC46MP2.js} +249 -8
- package/dist/bundle/chunk-SYEICLTR.js +66 -0
- package/dist/bundle/{chunk-NBHMSEN4.js → chunk-T2GQA2E4.js} +1 -1
- package/dist/bundle/{chunk-HOGJNJ3T.js → chunk-T3DTYJTG.js} +1 -1
- package/dist/bundle/{chunk-MQISDBH2.js → chunk-TCCN5TON.js} +1 -1
- package/dist/bundle/{chunk-KO2DA7CN.js → chunk-V6OIIVH3.js} +10 -10
- package/dist/bundle/{chunk-A5A6MPIX.js → chunk-VDUGE6TH.js} +2 -2
- package/dist/bundle/{chunk-LCP2DMBD.js → chunk-VINSQR4X.js} +7 -7
- package/dist/bundle/{chunk-42QY6DIG.js → chunk-VQZCIDSO.js} +2 -2
- package/dist/bundle/{chunk-OYYEY3UE.js → chunk-WBAA2X3E.js} +9 -9
- package/dist/bundle/{chunk-2WORM2E3.js → chunk-Z75WYAX6.js} +6 -6
- package/dist/bundle/{chunk-POWHDZIC.js → chunk-Z7N4MGOQ.js} +5 -5
- package/dist/bundle/{chunk-R2ETE3SX.js → chunk-ZKLXSVIO.js} +1 -1
- package/dist/bundle/{chunk-OBSV2GUJ.js → chunk-ZZSHGCRC.js} +3 -3
- package/dist/bundle/{command-contract-36ASI4YI.js → command-contract-Y4ZQAJEC.js} +14 -13
- package/dist/bundle/{decode-Z37HTJ53.js → decode-BIOOL5E4.js} +2 -2
- package/dist/bundle/{dist-E3UUAOWA.js → dist-TJVIRLE5.js} +77 -17
- package/dist/bundle/{echarts-TSRD7GVA.js → echarts-ECPGMKXO.js} +2 -2
- package/dist/bundle/{embed-Z5GZUUCK.js → embed-F7JFSLHN.js} +3 -3
- package/dist/bundle/{embedder-SYWZ6JW2.js → embedder-U4G74HV3.js} +6 -6
- package/dist/bundle/{first-run-I5GMVVX5.js → first-run-JTYPUYQP.js} +5 -5
- package/dist/bundle/first-screen-W6RWTAU7.js +33 -0
- package/dist/bundle/{instructions-IMW3LWMS.js → instructions-WNCGZ7OJ.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-V6SRRJ2F.js → node-UIRGGMGT.js} +2 -2
- package/dist/bundle/{node-sqlite-HN2P6PY2.js → node-sqlite-4ZM7OPRF.js} +3 -3
- package/dist/bundle/{oauth-7FIIKNXY.js → oauth-5RAJZPBW.js} +4 -4
- package/dist/bundle/{open-6XPAHITO.js → open-7ORCHOAI.js} +2 -2
- package/dist/bundle/{openai-B5MSVUDL.js → openai-XSJNXJA7.js} +10 -10
- package/dist/bundle/{process-LNEAZMJV.js → process-ZLO72UVZ.js} +1 -1
- package/dist/bundle/{program-BDB3D2HE.js → program-PFVJDKM4.js} +1722 -1650
- package/dist/bundle/{prompt-ZXS7F7OS.js → prompt-IDUPCUGM.js} +2 -2
- package/dist/bundle/{recognize-ONHYBE77.js → recognize-OS3EZKIM.js} +1 -1
- package/dist/bundle/{remote-IBZTKGBQ.js → remote-PF4LZR65.js} +4 -4
- package/dist/bundle/{rerank-TWODAEGK.js → rerank-CQNZF3JI.js} +4 -4
- package/dist/bundle/{serve-PPJIP254.js → serve-Y2DDLGBT.js} +6 -6
- package/dist/bundle/server-I3IALQMC.js +65 -0
- package/dist/bundle/{server-VG7EAG5C.js → server-TVRT7YEY.js} +33 -32
- package/dist/bundle/{sqlite-runtime-JZFSB33U.js → sqlite-runtime-5343C3OE.js} +3 -3
- package/dist/bundle/{state-2FUXS6RU.js → state-4GBTMPIV.js} +3 -3
- package/dist/bundle/{store-VURW3NE7.js → store-OLBLTQPT.js} +44 -13
- package/dist/bundle/{store-PYAP6NYK.js → store-QA6QJ5BB.js} +20 -11
- package/dist/bundle/store-maintenance-command-LB6CMGP4.js +55 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/chunk-IRY3ZFPW.js +0 -656
- package/dist/bundle/first-screen-R3LHPHU3.js +0 -32
- package/dist/bundle/server-JBV7NTAA.js +0 -64
- package/dist/bundle/store-maintenance-command-EHWGMBEA.js +0 -54
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NOVBK4SY.js";
|
|
12
12
|
import {
|
|
13
13
|
MAX_ACTIONS,
|
|
14
14
|
ModerationRules,
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
someUndone,
|
|
27
27
|
validateFormattedText,
|
|
28
28
|
visibleFormattedText
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-SFC46MP2.js";
|
|
30
30
|
import {
|
|
31
31
|
MAX_MODEL_IMAGE_BYTES
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-TCCN5TON.js";
|
|
33
33
|
import {
|
|
34
34
|
Command,
|
|
35
35
|
DEFAULT_IMAGE_MODEL,
|
|
@@ -70,32 +70,11 @@ import {
|
|
|
70
70
|
typedCommand,
|
|
71
71
|
vectorModelKey,
|
|
72
72
|
withAttempt
|
|
73
|
-
} from "./chunk-
|
|
74
|
-
import {
|
|
75
|
-
isCliFailure
|
|
76
|
-
} from "./chunk-GAPH7GET.js";
|
|
73
|
+
} from "./chunk-HSBGNVEL.js";
|
|
77
74
|
import {
|
|
78
75
|
isNewer,
|
|
79
76
|
updateCommand
|
|
80
77
|
} from "./chunk-UWL2IOII.js";
|
|
81
|
-
import {
|
|
82
|
-
remoteKey
|
|
83
|
-
} from "./chunk-HCRMPNSO.js";
|
|
84
|
-
import {
|
|
85
|
-
Unzip,
|
|
86
|
-
UnzipInflate,
|
|
87
|
-
defaultThreads,
|
|
88
|
-
installNativeRuntime,
|
|
89
|
-
isTextModelInstalled,
|
|
90
|
-
openEmbedder,
|
|
91
|
-
placedText,
|
|
92
|
-
runEmbedders,
|
|
93
|
-
textModelsDirectory
|
|
94
|
-
} from "./chunk-POWHDZIC.js";
|
|
95
|
-
import {
|
|
96
|
-
installFiles,
|
|
97
|
-
megabytes
|
|
98
|
-
} from "./chunk-YL5WH6XH.js";
|
|
99
78
|
import {
|
|
100
79
|
AGENDA_COLUMNS,
|
|
101
80
|
CHAT_COLUMNS,
|
|
@@ -135,7 +114,6 @@ import {
|
|
|
135
114
|
exhausted,
|
|
136
115
|
fetchedKey,
|
|
137
116
|
fitting,
|
|
138
|
-
googleDocumentLinks,
|
|
139
117
|
hasStems,
|
|
140
118
|
hasText,
|
|
141
119
|
historyStartKey,
|
|
@@ -145,6 +123,7 @@ import {
|
|
|
145
123
|
isAccountList,
|
|
146
124
|
isQueryLimit,
|
|
147
125
|
isStemmed,
|
|
126
|
+
listedHolds,
|
|
148
127
|
matchDownloads,
|
|
149
128
|
messageOfEmail,
|
|
150
129
|
normalizeVocabularyName,
|
|
@@ -159,7 +138,7 @@ import {
|
|
|
159
138
|
validateAst,
|
|
160
139
|
validateFields,
|
|
161
140
|
withoutField
|
|
162
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-KMQAHDBM.js";
|
|
163
142
|
import {
|
|
164
143
|
COUNTER_FIELDS,
|
|
165
144
|
INTERNAL_NOTES,
|
|
@@ -169,23 +148,26 @@ import {
|
|
|
169
148
|
counterObservationTime,
|
|
170
149
|
formatLocator,
|
|
171
150
|
formatReference,
|
|
151
|
+
googleDocumentLinks,
|
|
152
|
+
holdsKind,
|
|
153
|
+
holdsKindOf,
|
|
172
154
|
isFolderProvider,
|
|
155
|
+
isImportedProvider,
|
|
173
156
|
isKind,
|
|
174
157
|
isLocator,
|
|
175
158
|
kindIn,
|
|
176
|
-
kindOf,
|
|
177
159
|
parseLocator,
|
|
178
160
|
parseReference,
|
|
179
161
|
providerNamed,
|
|
180
162
|
rankingOptions,
|
|
181
163
|
rankingQuestion
|
|
182
|
-
} from "./chunk-
|
|
164
|
+
} from "./chunk-LTXYJAJK.js";
|
|
183
165
|
import {
|
|
184
166
|
TASK_KINDS,
|
|
185
167
|
TASK_STATES,
|
|
186
168
|
createTaskService,
|
|
187
169
|
isClosedState
|
|
188
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-HJ2CXDKJ.js";
|
|
189
171
|
import {
|
|
190
172
|
EVENT_QUERY,
|
|
191
173
|
MEETING_PROJECT_EVIDENCE_QUERY,
|
|
@@ -203,6 +185,7 @@ import {
|
|
|
203
185
|
formatMeetingReference,
|
|
204
186
|
implicitTextTerms,
|
|
205
187
|
importFiles,
|
|
188
|
+
isUsable,
|
|
206
189
|
listed,
|
|
207
190
|
meetingCueFingerprint,
|
|
208
191
|
meetingDetailsAnswer,
|
|
@@ -226,21 +209,43 @@ import {
|
|
|
226
209
|
validateQuery,
|
|
227
210
|
walkQuery,
|
|
228
211
|
zonedMoment
|
|
229
|
-
} from "./chunk-
|
|
212
|
+
} from "./chunk-I2SDXWLR.js";
|
|
213
|
+
import {
|
|
214
|
+
isCliFailure,
|
|
215
|
+
sqliteCode
|
|
216
|
+
} from "./chunk-SYEICLTR.js";
|
|
230
217
|
import {
|
|
231
218
|
DEFAULT_STEMMERS,
|
|
232
219
|
createStemmer,
|
|
233
220
|
fold,
|
|
234
221
|
normalize
|
|
235
|
-
} from "./chunk-
|
|
222
|
+
} from "./chunk-VINSQR4X.js";
|
|
236
223
|
import {
|
|
237
224
|
DEFAULT_TASK_CATEGORIES,
|
|
238
225
|
FALLBACK_CATEGORY
|
|
239
|
-
} from "./chunk-
|
|
226
|
+
} from "./chunk-3HDQVTND.js";
|
|
227
|
+
import {
|
|
228
|
+
remoteKey
|
|
229
|
+
} from "./chunk-OKO2Q6H6.js";
|
|
230
|
+
import {
|
|
231
|
+
Unzip,
|
|
232
|
+
UnzipInflate,
|
|
233
|
+
defaultThreads,
|
|
234
|
+
installNativeRuntime,
|
|
235
|
+
isTextModelInstalled,
|
|
236
|
+
openEmbedder,
|
|
237
|
+
placedText,
|
|
238
|
+
runEmbedders,
|
|
239
|
+
textModelsDirectory
|
|
240
|
+
} from "./chunk-Z7N4MGOQ.js";
|
|
241
|
+
import {
|
|
242
|
+
installFiles,
|
|
243
|
+
megabytes
|
|
244
|
+
} from "./chunk-O3M2S62X.js";
|
|
240
245
|
import {
|
|
241
246
|
storePath,
|
|
242
247
|
wirecatDirectory
|
|
243
|
-
} from "./chunk-
|
|
248
|
+
} from "./chunk-RPCKBXKN.js";
|
|
244
249
|
import {
|
|
245
250
|
resolvePaths
|
|
246
251
|
} from "./chunk-BMV56JCL.js";
|
|
@@ -16885,10 +16890,10 @@ var require_lib3 = __commonJS({
|
|
|
16885
16890
|
}
|
|
16886
16891
|
});
|
|
16887
16892
|
|
|
16888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16893
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16889
16894
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
16890
16895
|
|
|
16891
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16892
16897
|
var RULES_VERSION = 5;
|
|
16893
16898
|
var LOOK_BACK = 50;
|
|
16894
16899
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -16978,7 +16983,7 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
16978
16983
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
16979
16984
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
16980
16985
|
|
|
16981
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16986
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
16982
16987
|
var COMMAND_NEEDS = {
|
|
16983
16988
|
"account update": ["updateProfile", "change the profile"],
|
|
16984
16989
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17028,7 +17033,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17028
17033
|
return group;
|
|
17029
17034
|
}, "hideNever");
|
|
17030
17035
|
|
|
17031
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17032
17037
|
var AUDIT_PAGE = 200;
|
|
17033
17038
|
var AUDIT_BUDGET = 10;
|
|
17034
17039
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17108,7 +17113,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17108
17113
|
return found;
|
|
17109
17114
|
}, "burstJoins");
|
|
17110
17115
|
|
|
17111
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17112
17117
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17113
17118
|
command.allowUnknownOption();
|
|
17114
17119
|
const parse = command.parseOptions.bind(command);
|
|
@@ -17128,7 +17133,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17128
17133
|
return command;
|
|
17129
17134
|
}, "queryWordsAfterOptions");
|
|
17130
17135
|
|
|
17131
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17136
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17132
17137
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17133
17138
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17134
17139
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -17170,7 +17175,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
17170
17175
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
17171
17176
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
17172
17177
|
|
|
17173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
17174
17179
|
var integer = /* @__PURE__ */ __name((value) => {
|
|
17175
17180
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17176
17181
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -17193,7 +17198,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
17193
17198
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
17194
17199
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
17195
17200
|
|
|
17196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17201
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
17197
17202
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
17198
17203
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
17199
17204
|
const zone = timezoneOf();
|
|
@@ -17279,7 +17284,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
17279
17284
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
17280
17285
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
17281
17286
|
|
|
17282
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17287
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
17283
17288
|
var integer3 = /* @__PURE__ */ __name((text2) => {
|
|
17284
17289
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
17285
17290
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -17423,7 +17428,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17423
17428
|
}, "addMeetingCommandsDefinition");
|
|
17424
17429
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
17425
17430
|
|
|
17426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17431
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
17427
17432
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
17428
17433
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
17429
17434
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -17556,7 +17561,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
17556
17561
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
17557
17562
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
17558
17563
|
|
|
17559
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17564
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
17560
17565
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
17561
17566
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
17562
17567
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -17565,7 +17570,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
17565
17570
|
var withPaging = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many to show", positiveCount("--limit")).option("--page <n>", "which page, starting at 1", positiveCount("--page")).option("--all", "every row, no paging"), "withPaging");
|
|
17566
17571
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
17567
17572
|
|
|
17568
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17573
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
17569
17574
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
17570
17575
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
17571
17576
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -17827,7 +17832,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
17827
17832
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
17828
17833
|
}), "sessionAnswer");
|
|
17829
17834
|
|
|
17830
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17831
17836
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17832
17837
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17833
17838
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -17835,9 +17840,7 @@ var SQLITE_BUSY = 5;
|
|
|
17835
17840
|
var storeAbsent = /* @__PURE__ */ __name((error) => {
|
|
17836
17841
|
if (isCliFailure(error))
|
|
17837
17842
|
return error.code === "validation_error" && error.message === NO_LOCAL_STORE;
|
|
17838
|
-
|
|
17839
|
-
const code = errcode ?? errno;
|
|
17840
|
-
return error instanceof Error && typeof code === "number" && (code & 255) === SQLITE_BUSY;
|
|
17843
|
+
return error instanceof Error && sqliteCode(error) === SQLITE_BUSY;
|
|
17841
17844
|
}, "storeAbsent");
|
|
17842
17845
|
var accountUnknown = /* @__PURE__ */ __name((error) => isCliFailure(error) && (error.code === "not_found" || error.code === "authentication_error"), "accountUnknown");
|
|
17843
17846
|
var unless = /* @__PURE__ */ __name(async (work, expected2) => {
|
|
@@ -17891,7 +17894,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
17891
17894
|
}), "storedDeps");
|
|
17892
17895
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
17893
17896
|
|
|
17894
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
17895
17898
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
17896
17899
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
17897
17900
|
if (key in own)
|
|
@@ -17908,12 +17911,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
17908
17911
|
return found.bind(adapter);
|
|
17909
17912
|
}, "capability");
|
|
17910
17913
|
|
|
17911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17914
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17912
17915
|
import { randomBytes } from "node:crypto";
|
|
17913
17916
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17914
17917
|
var newOperationId = newSendId;
|
|
17915
17918
|
|
|
17916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
17917
17920
|
var LINKS = /https?:\/\/\S+/g;
|
|
17918
17921
|
var unanswered = /* @__PURE__ */ __name((messages, { answerers: answerers2, before: before2 }) => questions(messages, { answerers: answerers2 }).filter(({ question, answer }) => answer === void 0 && Date.parse(question.timestamp) < before2).map(({ question }) => question), "unanswered");
|
|
17919
17922
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -17943,7 +17946,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
17943
17946
|
});
|
|
17944
17947
|
}, "questions");
|
|
17945
17948
|
|
|
17946
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17949
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
17947
17950
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
17948
17951
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
17949
17952
|
const name = typed.trim().toLowerCase();
|
|
@@ -18000,7 +18003,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
18000
18003
|
return best.name;
|
|
18001
18004
|
}, "categorize");
|
|
18002
18005
|
|
|
18003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
18004
18007
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
18005
18008
|
var RULES_IN = {
|
|
18006
18009
|
dialog: "all",
|
|
@@ -18097,7 +18100,7 @@ var applyTaskRules = /* @__PURE__ */ __name(async (review, { store, account, now
|
|
|
18097
18100
|
return result;
|
|
18098
18101
|
}, "applyTaskRules");
|
|
18099
18102
|
var ARRIVAL_WINDOW = 50;
|
|
18100
|
-
var
|
|
18103
|
+
var kindOf = /* @__PURE__ */ __name(async (store, account, chat) => await store.chats.chatKind(account, chat) ?? "unknown", "kindOf");
|
|
18101
18104
|
var applyTaskRulesOnArrival = /* @__PURE__ */ __name(async (store, account, message) => {
|
|
18102
18105
|
const page = await store.messages.messages(account, message.chatId, { limit: ARRIVAL_WINDOW });
|
|
18103
18106
|
const messages = [...page.items.filter((one) => one.id !== message.id), message].sort((a, b) => Date.parse(a.timestamp) - Date.parse(b.timestamp));
|
|
@@ -18106,7 +18109,7 @@ var applyTaskRulesOnArrival = /* @__PURE__ */ __name(async (store, account, mess
|
|
|
18106
18109
|
{
|
|
18107
18110
|
id: message.chatId,
|
|
18108
18111
|
messages,
|
|
18109
|
-
kind: await
|
|
18112
|
+
kind: await kindOf(store, account, message.chatId),
|
|
18110
18113
|
watched: (await watchedChats(store, account)).has(message.chatId)
|
|
18111
18114
|
}
|
|
18112
18115
|
]
|
|
@@ -18198,7 +18201,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
18198
18201
|
const tasks = [];
|
|
18199
18202
|
const pass = await applyTaskRules({
|
|
18200
18203
|
chats: [
|
|
18201
|
-
{ id: chat, messages: page.items, kind: await
|
|
18204
|
+
{ id: chat, messages: page.items, kind: await kindOf(store, account, chat), watched: watched.has(chat) }
|
|
18202
18205
|
]
|
|
18203
18206
|
}, { store: store.tasks, account, categories, dryRun: !yes, onHeld: /* @__PURE__ */ __name((task2) => tasks.push(task2), "onHeld") });
|
|
18204
18207
|
passes.push({ chat, messages: page.items.length, ...pass, tasks });
|
|
@@ -18206,7 +18209,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
18206
18209
|
return passes;
|
|
18207
18210
|
}, "applyTaskRulesToChats");
|
|
18208
18211
|
|
|
18209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18212
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
18210
18213
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
18211
18214
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
18212
18215
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -18246,7 +18249,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
18246
18249
|
};
|
|
18247
18250
|
}, "dateWindow");
|
|
18248
18251
|
|
|
18249
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18250
18253
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18251
18254
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18252
18255
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -18269,10 +18272,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
18269
18272
|
}
|
|
18270
18273
|
}, "patiently");
|
|
18271
18274
|
|
|
18272
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18275
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18273
18276
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18274
18277
|
|
|
18275
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18276
18279
|
var REQUEST_MS = 400;
|
|
18277
18280
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18278
18281
|
const lowest = ranges[0];
|
|
@@ -18295,13 +18298,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18295
18298
|
};
|
|
18296
18299
|
}, "estimateBackfill");
|
|
18297
18300
|
|
|
18298
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18301
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18299
18302
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18300
18303
|
...error,
|
|
18301
18304
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18302
18305
|
}), "withRecovery");
|
|
18303
18306
|
|
|
18304
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18307
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18305
18308
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18306
18309
|
if (isCliFailure(error))
|
|
18307
18310
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18384,7 +18387,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18384
18387
|
};
|
|
18385
18388
|
}, "mergeBatches");
|
|
18386
18389
|
|
|
18387
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18390
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18388
18391
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18389
18392
|
if (deps.reads !== "store")
|
|
18390
18393
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18543,7 +18546,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18543
18546
|
}
|
|
18544
18547
|
}, "senderAmong");
|
|
18545
18548
|
|
|
18546
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18549
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
18547
18550
|
var CONTEXT_MESSAGES = 3;
|
|
18548
18551
|
var CONTEXT_MINUTES = 10;
|
|
18549
18552
|
var MAX_CHARS = 1200;
|
|
@@ -18567,12 +18570,12 @@ var context = {
|
|
|
18567
18570
|
}, "describe")
|
|
18568
18571
|
};
|
|
18569
18572
|
|
|
18570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18573
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
18571
18574
|
var BUILT_INS = [context];
|
|
18572
18575
|
var providers = [...BUILT_INS];
|
|
18573
18576
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18574
18577
|
|
|
18575
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
18576
18579
|
var READ_PAGE = 5e3;
|
|
18577
18580
|
var CHAIN = 50;
|
|
18578
18581
|
var CONVERSATION_QUERY = {
|
|
@@ -18724,7 +18727,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
18724
18727
|
return size2;
|
|
18725
18728
|
}, "sized");
|
|
18726
18729
|
|
|
18727
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18730
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
18728
18731
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
18729
18732
|
var MESSAGE_PAGE = 5e3;
|
|
18730
18733
|
var PER_SESSION = 8;
|
|
@@ -18743,7 +18746,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18743
18746
|
price: remote.price,
|
|
18744
18747
|
installed: true,
|
|
18745
18748
|
perBatch: PER_REQUEST * concurrency,
|
|
18746
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
18749
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-PF4LZR65.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
18747
18750
|
};
|
|
18748
18751
|
}
|
|
18749
18752
|
const model = textModel(choice);
|
|
@@ -18760,7 +18763,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18760
18763
|
if (!isTextModelInstalled(model, directory2))
|
|
18761
18764
|
throw notDownloaded(model.id);
|
|
18762
18765
|
if (apart) {
|
|
18763
|
-
const { openProcess } = await import("./process-
|
|
18766
|
+
const { openProcess } = await import("./process-ZLO72UVZ.js");
|
|
18764
18767
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
18765
18768
|
}
|
|
18766
18769
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -19049,7 +19052,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
19049
19052
|
return { ...one, state };
|
|
19050
19053
|
}, "shaped");
|
|
19051
19054
|
|
|
19052
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19055
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
19053
19056
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
19054
19057
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
19055
19058
|
for (const [key, value, maximum] of [
|
|
@@ -19102,7 +19105,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
19102
19105
|
}
|
|
19103
19106
|
}, "catchUpSearch");
|
|
19104
19107
|
|
|
19105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19108
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
19106
19109
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
19107
19110
|
if (deps.reads === "store") {
|
|
19108
19111
|
throw new CliError("validation_error", `${what} asks for older history, and this messenger pushes its history instead \u2014 keep \`${typedCommand(deps.messenger.app.command, "serve")}\` running`);
|
|
@@ -19468,7 +19471,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19468
19471
|
return message?.timestamp ?? fallback;
|
|
19469
19472
|
}, "timeOfKey");
|
|
19470
19473
|
|
|
19471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19474
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
19472
19475
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
19473
19476
|
import { open, stat } from "node:fs/promises";
|
|
19474
19477
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -19670,7 +19673,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read) => {
|
|
|
19670
19673
|
return { name, source };
|
|
19671
19674
|
}, "readStickerFile");
|
|
19672
19675
|
|
|
19673
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19676
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
19674
19677
|
var DAY_MS = 864e5;
|
|
19675
19678
|
var NEW_DAYS = 30;
|
|
19676
19679
|
var SAME_TEXT_MIN = 20;
|
|
@@ -19747,7 +19750,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
19747
19750
|
};
|
|
19748
19751
|
}, "scorePerson");
|
|
19749
19752
|
|
|
19750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
19751
19754
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
19752
19755
|
const controller = new AbortController();
|
|
19753
19756
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -19763,7 +19766,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run) => {
|
|
|
19763
19766
|
}
|
|
19764
19767
|
}, "withTimeLimit");
|
|
19765
19768
|
|
|
19766
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
19767
19770
|
var REGISTRIES = {
|
|
19768
19771
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
19769
19772
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -19850,7 +19853,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
19850
19853
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
19851
19854
|
})), "notCovered");
|
|
19852
19855
|
|
|
19853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19856
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
19854
19857
|
var ACTIVITY_MESSAGES = 1e3;
|
|
19855
19858
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
19856
19859
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -19938,7 +19941,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
19938
19941
|
};
|
|
19939
19942
|
}, "botCheckService");
|
|
19940
19943
|
|
|
19941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
19942
19945
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
19943
19946
|
if (value === void 0)
|
|
19944
19947
|
return void 0;
|
|
@@ -19948,7 +19951,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
19948
19951
|
return id2;
|
|
19949
19952
|
}, "threadIdOf");
|
|
19950
19953
|
|
|
19951
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19954
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
19952
19955
|
var TOP_POSTS = 5;
|
|
19953
19956
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
19954
19957
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20065,7 +20068,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20065
20068
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20066
20069
|
}, "median");
|
|
20067
20070
|
|
|
20068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20071
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20069
20072
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20070
20073
|
const events = [];
|
|
20071
20074
|
for (const stay of stays) {
|
|
@@ -20097,7 +20100,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20097
20100
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
20098
20101
|
}, "memberEvents");
|
|
20099
20102
|
|
|
20100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20103
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20101
20104
|
var EVENTS_DAYS = 7;
|
|
20102
20105
|
var TRACKED_DAYS = 30;
|
|
20103
20106
|
var STATS_PAGE = 1e3;
|
|
@@ -20392,7 +20395,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20392
20395
|
return members.length === 0 ? null : members;
|
|
20393
20396
|
}, "storedMembers");
|
|
20394
20397
|
|
|
20395
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
20396
20399
|
var INBOX_CHATS = 20;
|
|
20397
20400
|
var REVIEW_DAYS = 3;
|
|
20398
20401
|
var UNANSWERED_HOURS = 24;
|
|
@@ -20600,7 +20603,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20600
20603
|
};
|
|
20601
20604
|
}, "inboxService");
|
|
20602
20605
|
|
|
20603
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20606
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
20604
20607
|
var CONTEXT_MESSAGES2 = 10;
|
|
20605
20608
|
var CONTEXT_BYTES = 64 * 1024;
|
|
20606
20609
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -20676,18 +20679,34 @@ var eventsOnce = /* @__PURE__ */ __name(async (store, filter, limit) => {
|
|
|
20676
20679
|
}
|
|
20677
20680
|
return { items, cut: true };
|
|
20678
20681
|
}, "eventsOnce");
|
|
20679
|
-
var
|
|
20682
|
+
var nameOf = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "nameOf");
|
|
20683
|
+
var readableAccounts = /* @__PURE__ */ __name(async (store, asked, scopes) => {
|
|
20684
|
+
const stored = await store.accounts.storedAccounts();
|
|
20685
|
+
const own = stored.find((one) => nameOf(one) === nameOf(asked));
|
|
20686
|
+
if (!own || asked.scope !== void 0 && asked.scope !== own.scope)
|
|
20687
|
+
throw new CliError("not_found", `no ${asked.provider} account ${asked.account} in the store`);
|
|
20688
|
+
const allowed = scopes ?? [own.scope];
|
|
20689
|
+
return stored.filter((one) => allowed.includes(one.scope));
|
|
20690
|
+
}, "readableAccounts");
|
|
20691
|
+
var readsOf = /* @__PURE__ */ __name((record2, asked, readable) => {
|
|
20692
|
+
const scopeOf4 = new Map(readable.map((one) => [nameOf(one), one.scope]));
|
|
20693
|
+
return record2.identities.flatMap((identity) => (identity.provider === asked.provider ? [asked.account] : identity.accounts).flatMap((account) => {
|
|
20694
|
+
const scope = scopeOf4.get(nameOf({ provider: identity.provider, account }));
|
|
20695
|
+
return identity.accounts.includes(account) && scope !== void 0 ? [{ key: { provider: identity.provider, account }, scope, identity }] : [];
|
|
20696
|
+
}));
|
|
20697
|
+
}, "readsOf");
|
|
20680
20698
|
var personContext = /* @__PURE__ */ __name(async (store, asked, reference, options = {}) => {
|
|
20681
20699
|
const found = pickPerson(reference, await store.people.people(asked.provider, { account: asked.account }));
|
|
20682
20700
|
const record2 = await store.people.personOf({ provider: asked.provider, id: found.id });
|
|
20683
20701
|
if (!record2)
|
|
20684
20702
|
throw new CliError("not_found", `no person ${found.id} in the store`);
|
|
20703
|
+
const readable = await readableAccounts(store, asked, options.scopes);
|
|
20685
20704
|
return {
|
|
20686
20705
|
person: { ...record2, provider: asked.provider, id: found.id },
|
|
20687
|
-
...await recordContext(store, record2, readsOf(record2, asked), options)
|
|
20706
|
+
...await recordContext(store, record2, readsOf(record2, asked, readable), readable, options)
|
|
20688
20707
|
};
|
|
20689
20708
|
}, "personContext");
|
|
20690
|
-
var recordContext = /* @__PURE__ */ __name(async (store, record2, reads, { messages = CONTEXT_MESSAGES2, bytes: bytes2 = CONTEXT_BYTES, since, now = Date.now() } = {}) => {
|
|
20709
|
+
var recordContext = /* @__PURE__ */ __name(async (store, record2, reads, readable, { messages = CONTEXT_MESSAGES2, bytes: bytes2 = CONTEXT_BYTES, since, now = Date.now() } = {}) => {
|
|
20691
20710
|
const recent = /* @__PURE__ */ __name((message) => since === void 0 || Date.parse(message.timestamp) >= since, "recent");
|
|
20692
20711
|
const shared = [];
|
|
20693
20712
|
const notRead = [];
|
|
@@ -20745,9 +20764,15 @@ var recordContext = /* @__PURE__ */ __name(async (store, record2, reads, { messa
|
|
|
20745
20764
|
cut ||= named2.hasMore;
|
|
20746
20765
|
}
|
|
20747
20766
|
const personId = Number(record2.uid);
|
|
20748
|
-
const
|
|
20767
|
+
const calendars = [];
|
|
20768
|
+
for (const one of readable)
|
|
20769
|
+
if ((await store.calendar.calendars(one.id)).length)
|
|
20770
|
+
calendars.push(one);
|
|
20771
|
+
const accountIds = calendars.map(({ id: id2 }) => id2);
|
|
20772
|
+
const nothing = { items: [], cut: false };
|
|
20773
|
+
const upcoming = accountIds.length ? await eventsOnce(store, { personId, accountIds, from: now }, messages) : nothing;
|
|
20749
20774
|
const upcomingIds = new Set(upcoming.items.map(({ id: id2 }) => id2));
|
|
20750
|
-
const past = await eventsOnce(store, { personId, to: now, newest: true, ...since === void 0 ? {} : { from: since } }, messages);
|
|
20775
|
+
const past = accountIds.length ? await eventsOnce(store, { personId, accountIds, to: now, newest: true, ...since === void 0 ? {} : { from: since } }, messages) : nothing;
|
|
20751
20776
|
cut ||= upcoming.cut || past.cut;
|
|
20752
20777
|
direct.sort(newestFirst);
|
|
20753
20778
|
const each = [...direct, ...beyond].sort(newestFirst);
|
|
@@ -20763,7 +20788,13 @@ var recordContext = /* @__PURE__ */ __name(async (store, record2, reads, { messa
|
|
|
20763
20788
|
};
|
|
20764
20789
|
cut ||= direct.length > messages || groups.length > messages || mentions.length > messages;
|
|
20765
20790
|
const kept2 = withinBytes(lists, bytes2);
|
|
20791
|
+
const read = [
|
|
20792
|
+
...reads.map(({ key, scope }) => ({ ...key, scope })),
|
|
20793
|
+
...calendars.map(({ provider, account, scope }) => ({ provider, account, scope }))
|
|
20794
|
+
];
|
|
20795
|
+
const accounts = [...new Map(read.map((one) => [nameOf(one), one])).values()].sort((a, b) => nameOf(a).localeCompare(nameOf(b)));
|
|
20766
20796
|
return {
|
|
20797
|
+
accounts,
|
|
20767
20798
|
shared: shared.sort((a, b) => Date.parse(b.lastMessageAt ?? "") - Date.parse(a.lastMessageAt ?? "")),
|
|
20768
20799
|
last: {
|
|
20769
20800
|
fromThem: each.find((message) => !message.outgoing) ?? null,
|
|
@@ -20835,7 +20866,7 @@ var lean = /* @__PURE__ */ __name((key, message, detail) => {
|
|
|
20835
20866
|
replyTo: message.replyTo?.id ?? message.replyToId ?? null
|
|
20836
20867
|
};
|
|
20837
20868
|
}, "lean");
|
|
20838
|
-
var
|
|
20869
|
+
var kindOf2 = /* @__PURE__ */ __name((chat, chatId, person) => chat && chat.kind !== "unknown" ? chat.kind : chatId === person ? "dialog" : chat?.kind ?? "unknown", "kindOf");
|
|
20839
20870
|
var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { chats, limit = CHAT_MESSAGES, detail = 0 }) => {
|
|
20840
20871
|
const found = pickPerson(reference, await store.people.people(asked.provider, { account: asked.account }));
|
|
20841
20872
|
const record2 = await store.people.personOf({ provider: asked.provider, id: found.id });
|
|
@@ -20848,7 +20879,7 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
20848
20879
|
const chat = stored.find((one) => one.id === chatId);
|
|
20849
20880
|
const page = await store.messages.find({ account: asked, senders: [found.id], chatId, limit });
|
|
20850
20881
|
answer.push({
|
|
20851
|
-
chat: { id: chatId, title: chat?.title ?? null, kind:
|
|
20882
|
+
chat: { id: chatId, title: chat?.title ?? null, kind: kindOf2(chat, chatId, found.id) },
|
|
20852
20883
|
messages: page.items.toSorted((a, b) => Date.parse(a.timestamp) - Date.parse(b.timestamp)).map((message) => lean(asked, message, detail)),
|
|
20853
20884
|
complete: held.get(chatId) === "complete",
|
|
20854
20885
|
more: page.hasMore
|
|
@@ -20861,10 +20892,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
20861
20892
|
};
|
|
20862
20893
|
}, "personMessages");
|
|
20863
20894
|
|
|
20864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20895
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
20865
20896
|
import { createHash } from "node:crypto";
|
|
20866
20897
|
|
|
20867
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20898
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
20868
20899
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
20869
20900
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
20870
20901
|
const parsed = parseMeetingReference(reference);
|
|
@@ -20882,7 +20913,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
20882
20913
|
return { parsed, meeting };
|
|
20883
20914
|
}, "authorizedMeetingMetadata");
|
|
20884
20915
|
|
|
20885
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20916
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
20886
20917
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
20887
20918
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
20888
20919
|
if (signal?.aborted)
|
|
@@ -21081,7 +21112,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
21081
21112
|
return { ...packet, fingerprint: hash(packet) };
|
|
21082
21113
|
}, "readMeetingEvidence");
|
|
21083
21114
|
|
|
21084
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
21085
21116
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
21086
21117
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
21087
21118
|
const requestedAccounts = options.accountIds;
|
|
@@ -21180,7 +21211,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
21180
21211
|
};
|
|
21181
21212
|
}, "personMeetingContext");
|
|
21182
21213
|
|
|
21183
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21214
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
21184
21215
|
var PREPARE_BYTES = 96 * 1024;
|
|
21185
21216
|
var MEETINGS = 5;
|
|
21186
21217
|
var CUES = 3;
|
|
@@ -21208,7 +21239,6 @@ var personPreparation = /* @__PURE__ */ __name(async (store, asked, reference, o
|
|
|
21208
21239
|
coverage: { included: items.length, hasMore: over || cut, cutBy: cut ? "bytes" : over ? "limit" : null }
|
|
21209
21240
|
};
|
|
21210
21241
|
}, "budgeted");
|
|
21211
|
-
const reads = readsOf(context2.person, asked);
|
|
21212
21242
|
const partial = new Set(context2.notRead.map((chat) => `${chat.provider}/${chat.account}/${chat.chatId}`));
|
|
21213
21243
|
const waiting = [];
|
|
21214
21244
|
for (const chat of context2.shared.filter((one) => one.kind === "dialog")) {
|
|
@@ -21225,10 +21255,10 @@ var personPreparation = /* @__PURE__ */ __name(async (store, asked, reference, o
|
|
|
21225
21255
|
});
|
|
21226
21256
|
}
|
|
21227
21257
|
waiting.sort((a, b) => Date.parse(b.message.timestamp) - Date.parse(a.message.timestamp));
|
|
21228
|
-
const accounts =
|
|
21258
|
+
const accounts = context2.accounts.map(({ provider, account }) => ({ provider, account }));
|
|
21229
21259
|
const held = await store.people.preparation(context2.person.uid, { accounts, limit });
|
|
21230
|
-
const
|
|
21231
|
-
const meetings = await meetingsOf(store, context2.person.uid,
|
|
21260
|
+
const readable = await readableAccounts(store, asked, options.scopes);
|
|
21261
|
+
const meetings = await meetingsOf(store, context2.person.uid, readable, options.since, () => left);
|
|
21232
21262
|
const sections = {
|
|
21233
21263
|
waiting: budgeted({ items: waiting, hasMore: false }),
|
|
21234
21264
|
tasks: budgeted(held.tasks),
|
|
@@ -21297,7 +21327,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
21297
21327
|
}
|
|
21298
21328
|
}, "meetingsOf");
|
|
21299
21329
|
|
|
21300
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21330
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
21301
21331
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
21302
21332
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
21303
21333
|
const held = await storeIfOpen(deps);
|
|
@@ -21367,7 +21397,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
21367
21397
|
complete: false
|
|
21368
21398
|
})), "quiet");
|
|
21369
21399
|
|
|
21370
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21400
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
21371
21401
|
var TIMELINE_ITEMS = 50;
|
|
21372
21402
|
var TIMELINE_MAX = 500;
|
|
21373
21403
|
var SCOPES = ["personal", "work"];
|
|
@@ -21422,7 +21452,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
21422
21452
|
};
|
|
21423
21453
|
}, "personTimeline");
|
|
21424
21454
|
|
|
21425
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21455
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
21426
21456
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
21427
21457
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
21428
21458
|
const held = await storeIfOpen(deps);
|
|
@@ -21649,7 +21679,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
21649
21679
|
return rest;
|
|
21650
21680
|
}, "withoutPhone");
|
|
21651
21681
|
|
|
21652
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21682
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
21653
21683
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
21654
21684
|
var PERIOD_FIELD = "created";
|
|
21655
21685
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -21752,7 +21782,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
21752
21782
|
}));
|
|
21753
21783
|
}, "meetingNames");
|
|
21754
21784
|
|
|
21755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21785
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
21756
21786
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
21757
21787
|
const tags = /* @__PURE__ */ new Map();
|
|
21758
21788
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -21761,7 +21791,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
21761
21791
|
return tags;
|
|
21762
21792
|
}, "taskTagFilters");
|
|
21763
21793
|
|
|
21764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21794
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
21765
21795
|
var TASK_QUERY = {
|
|
21766
21796
|
entity: "task",
|
|
21767
21797
|
backend: "sql",
|
|
@@ -22253,7 +22283,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
22253
22283
|
};
|
|
22254
22284
|
}, "taskView");
|
|
22255
22285
|
|
|
22256
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
22257
22287
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
22258
22288
|
if (newest === null)
|
|
22259
22289
|
return null;
|
|
@@ -22262,7 +22292,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
22262
22292
|
return newest.addressed ? "owed" : null;
|
|
22263
22293
|
}, "mailTurn");
|
|
22264
22294
|
|
|
22265
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22295
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
22266
22296
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
22267
22297
|
if (error instanceof CliError && error.code === "not_found")
|
|
22268
22298
|
return void 0;
|
|
@@ -22320,7 +22350,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
22320
22350
|
};
|
|
22321
22351
|
}, "mailActivity");
|
|
22322
22352
|
|
|
22323
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22353
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
22324
22354
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
22325
22355
|
const ids = [...new Set(chatIds)];
|
|
22326
22356
|
if (ids.length === 0)
|
|
@@ -22346,7 +22376,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
22346
22376
|
}));
|
|
22347
22377
|
}, "chatCoverage");
|
|
22348
22378
|
|
|
22349
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22379
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
22350
22380
|
var DAY = 864e5;
|
|
22351
22381
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
22352
22382
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -22593,7 +22623,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
22593
22623
|
};
|
|
22594
22624
|
}, "agendaItem");
|
|
22595
22625
|
|
|
22596
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22626
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
22597
22627
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
22598
22628
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
22599
22629
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -22657,7 +22687,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
22657
22687
|
}
|
|
22658
22688
|
}, "validateContextEvidencePage");
|
|
22659
22689
|
|
|
22660
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
22661
22691
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
22662
22692
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
22663
22693
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -22710,7 +22740,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
22710
22740
|
};
|
|
22711
22741
|
}, "contextReadBudget");
|
|
22712
22742
|
|
|
22713
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22743
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
22714
22744
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
22715
22745
|
if (!port || typeof port.read !== "function")
|
|
22716
22746
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -22754,7 +22784,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
22754
22784
|
};
|
|
22755
22785
|
}, "createContextEvidenceReader");
|
|
22756
22786
|
|
|
22757
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22787
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
22758
22788
|
var queryWords = /* @__PURE__ */ __name((query) => query.toLowerCase().split(/\s+/).map((word) => word.replace(/^[\p{L}_]+:/u, "").replace(/~\d+$/u, "").replace(/^[^\p{L}\p{N}]+|[^\p{L}\p{N}]+$/gu, "")).filter((word) => word.length > 2 && !["and", "or", "not"].includes(word)), "queryWords");
|
|
22759
22789
|
var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) => {
|
|
22760
22790
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -22770,7 +22800,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) =
|
|
|
22770
22800
|
}, "excerpt");
|
|
22771
22801
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
22772
22802
|
|
|
22773
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22803
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
22774
22804
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
22775
22805
|
var DEFAULT_PURPOSES = ["work"];
|
|
22776
22806
|
var LINK_PURPOSE = "work";
|
|
@@ -22800,7 +22830,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
22800
22830
|
...value.split(",").map((one) => one.trim()).filter(Boolean)
|
|
22801
22831
|
], "purposeList");
|
|
22802
22832
|
|
|
22803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
22804
22834
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
22805
22835
|
async around(ref, window3) {
|
|
22806
22836
|
const at = parseLocator(ref);
|
|
@@ -22895,7 +22925,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
22895
22925
|
};
|
|
22896
22926
|
}, "storedNeighbours");
|
|
22897
22927
|
|
|
22898
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
22899
22929
|
import { createHash as createHash2 } from "node:crypto";
|
|
22900
22930
|
var DAY2 = 864e5;
|
|
22901
22931
|
var MAX_TIME = 864e13;
|
|
@@ -23211,7 +23241,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
23211
23241
|
return value;
|
|
23212
23242
|
}, "decodeCheckpoint");
|
|
23213
23243
|
|
|
23214
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23244
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
23215
23245
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
23216
23246
|
var PAGE2 = 20;
|
|
23217
23247
|
var PEOPLE = 20;
|
|
@@ -23615,7 +23645,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
23615
23645
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
23616
23646
|
}, "peopleOf");
|
|
23617
23647
|
|
|
23618
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
23619
23649
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
23620
23650
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
23621
23651
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -23659,7 +23689,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
23659
23689
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
23660
23690
|
}, "matchVocabularyTerms");
|
|
23661
23691
|
|
|
23662
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23692
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
23663
23693
|
var KINDS = ["project", "tag", "topic"];
|
|
23664
23694
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
23665
23695
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -23714,7 +23744,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
23714
23744
|
};
|
|
23715
23745
|
}, "findEvidenceMentions");
|
|
23716
23746
|
|
|
23717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23747
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
23718
23748
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
23719
23749
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
23720
23750
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -23809,7 +23839,7 @@ var proposedLinksOf = /* @__PURE__ */ __name(async (store, project) => {
|
|
|
23809
23839
|
}
|
|
23810
23840
|
];
|
|
23811
23841
|
}).sort((a, b) => Number(a.id) - Number(b.id));
|
|
23812
|
-
const legacy = (await store.knowledge.relations(null, project)).filter((one) =>
|
|
23842
|
+
const legacy = (await store.knowledge.relations(null, project)).filter((one) => one.standing === "proposed" && one.kind === "member-of" && one.to === project).map((one) => ({ from: one.from, id: `link:${one.id}`, role: one.role, purpose: one.purpose }));
|
|
23813
23843
|
return [...proposals, ...legacy];
|
|
23814
23844
|
}, "proposedLinksOf");
|
|
23815
23845
|
var memberRefsOf = /* @__PURE__ */ __name(async (store, project, includeProposed) => {
|
|
@@ -23817,7 +23847,7 @@ var memberRefsOf = /* @__PURE__ */ __name(async (store, project, includeProposed
|
|
|
23817
23847
|
return [];
|
|
23818
23848
|
const confirmed = /* @__PURE__ */ new Set();
|
|
23819
23849
|
for (const relation of await store.knowledge.relations(null, project))
|
|
23820
|
-
if (relation.
|
|
23850
|
+
if (isUsable(relation.standing) && relation.kind === "member-of" && relation.to === project && /^person:.+/.test(relation.from))
|
|
23821
23851
|
confirmed.add(relation.from);
|
|
23822
23852
|
const members = [...confirmed].sort().map((ref) => ({ ref }));
|
|
23823
23853
|
if (!includeProposed)
|
|
@@ -23855,7 +23885,7 @@ var linkedChatsOf = /* @__PURE__ */ __name(async (store, project, options = {})
|
|
|
23855
23885
|
return [];
|
|
23856
23886
|
const chats = [];
|
|
23857
23887
|
for (const relation of await store.knowledge.relations(null, project)) {
|
|
23858
|
-
if (!relation.
|
|
23888
|
+
if (!isUsable(relation.standing) || relation.kind !== "member-of" || relation.to !== project)
|
|
23859
23889
|
continue;
|
|
23860
23890
|
const reference = chatOf2(relation.from);
|
|
23861
23891
|
if (reference)
|
|
@@ -24020,18 +24050,18 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
24020
24050
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
24021
24051
|
}, "purposeHintOf");
|
|
24022
24052
|
|
|
24023
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24053
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
24024
24054
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
24025
24055
|
|
|
24026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24056
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
24027
24057
|
import { lstat } from "node:fs/promises";
|
|
24028
24058
|
|
|
24029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24059
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
24030
24060
|
import { createHash as createHash4, randomUUID as randomUUID2 } from "node:crypto";
|
|
24031
24061
|
import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
24032
24062
|
import { join as join2 } from "node:path";
|
|
24033
24063
|
|
|
24034
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
24035
24065
|
import { createHash as createHash3 } from "node:crypto";
|
|
24036
24066
|
var metadataLimit = 16384;
|
|
24037
24067
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -24091,7 +24121,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
24091
24121
|
}
|
|
24092
24122
|
}, "readPartialMetadata");
|
|
24093
24123
|
|
|
24094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
24095
24125
|
import { randomUUID } from "node:crypto";
|
|
24096
24126
|
import { open as open2, rename, unlink } from "node:fs/promises";
|
|
24097
24127
|
import { join } from "node:path";
|
|
@@ -24183,7 +24213,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
24183
24213
|
};
|
|
24184
24214
|
}, "partialWriter");
|
|
24185
24215
|
|
|
24186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24216
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
24187
24217
|
var NativeRecordingPartialStore = class {
|
|
24188
24218
|
static {
|
|
24189
24219
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -24290,12 +24320,12 @@ var NativeRecordingPartialStore = class {
|
|
|
24290
24320
|
}
|
|
24291
24321
|
};
|
|
24292
24322
|
|
|
24293
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24323
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
24294
24324
|
import { createHash as createHash5 } from "node:crypto";
|
|
24295
24325
|
import { link as link2 } from "node:fs/promises";
|
|
24296
24326
|
import { basename as basename2, dirname as dirname2, join as join4, resolve as resolve2 } from "node:path";
|
|
24297
24327
|
|
|
24298
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24328
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
24299
24329
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
24300
24330
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
24301
24331
|
signal?.throwIfAborted();
|
|
@@ -24330,7 +24360,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
24330
24360
|
signal?.throwIfAborted();
|
|
24331
24361
|
}, "commitPublication");
|
|
24332
24362
|
|
|
24333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24363
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
24334
24364
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
24335
24365
|
import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
24336
24366
|
import { join as join3 } from "node:path";
|
|
@@ -24403,7 +24433,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
24403
24433
|
}
|
|
24404
24434
|
}, "writePublicationJournal");
|
|
24405
24435
|
|
|
24406
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24436
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
24407
24437
|
var NativeRecordingPublication = class {
|
|
24408
24438
|
static {
|
|
24409
24439
|
__name(this, "NativeRecordingPublication");
|
|
@@ -24476,7 +24506,7 @@ var NativeRecordingPublication = class {
|
|
|
24476
24506
|
}
|
|
24477
24507
|
};
|
|
24478
24508
|
|
|
24479
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
24480
24510
|
import { createHash as createHash6 } from "node:crypto";
|
|
24481
24511
|
import { readdir } from "node:fs/promises";
|
|
24482
24512
|
import { isAbsolute as isAbsolute2, join as join5, resolve as resolve3 } from "node:path";
|
|
@@ -24563,7 +24593,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
24563
24593
|
beforePublish
|
|
24564
24594
|
}), "commitMediaEntry");
|
|
24565
24595
|
|
|
24566
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
24567
24597
|
var validator = '"media-completed-v1"';
|
|
24568
24598
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
24569
24599
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file, beforeWrite, signal, metadata = {}) => {
|
|
@@ -24664,7 +24694,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file,
|
|
|
24664
24694
|
return entry;
|
|
24665
24695
|
}, "archiveMediaFile");
|
|
24666
24696
|
|
|
24667
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24697
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
24668
24698
|
import { mkdir, realpath } from "node:fs/promises";
|
|
24669
24699
|
import { join as join6, resolve as resolve4 } from "node:path";
|
|
24670
24700
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -24731,7 +24761,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
24731
24761
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
24732
24762
|
}, "withMediaArchiveLocks");
|
|
24733
24763
|
|
|
24734
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24764
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
24735
24765
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
24736
24766
|
if (value === void 0)
|
|
24737
24767
|
return void 0;
|
|
@@ -24884,7 +24914,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
24884
24914
|
}, { create: true });
|
|
24885
24915
|
}, "archiveMedia");
|
|
24886
24916
|
|
|
24887
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
24888
24918
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
24889
24919
|
import { basename as basename3, dirname as dirname3, join as join7, resolve as resolve5 } from "node:path";
|
|
24890
24920
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -25037,7 +25067,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
25037
25067
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
25038
25068
|
}, "moveMediaArchive");
|
|
25039
25069
|
|
|
25040
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
25041
25071
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file) => sum2 + file.bytes, 0), "bytesOf");
|
|
25042
25072
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
25043
25073
|
}, "progress") }) => {
|
|
@@ -25060,7 +25090,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
25060
25090
|
}
|
|
25061
25091
|
await nativeRuntime({ env, progress });
|
|
25062
25092
|
progress(`${model.id}: loading it once to check it works`);
|
|
25063
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
25093
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-F7JFSLHN.js");
|
|
25064
25094
|
const embedder = await openEmbedder2(model, directory2);
|
|
25065
25095
|
try {
|
|
25066
25096
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -25081,7 +25111,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
25081
25111
|
}
|
|
25082
25112
|
await nativeRuntime({ env, progress });
|
|
25083
25113
|
progress(`${model.id}: loading it once to check it works`);
|
|
25084
|
-
const { openReranker } = await import("./rerank-
|
|
25114
|
+
const { openReranker } = await import("./rerank-CQNZF3JI.js");
|
|
25085
25115
|
const reranker = await openReranker(model, directory2);
|
|
25086
25116
|
try {
|
|
25087
25117
|
await reranker.score("check", ["check"]);
|
|
@@ -25099,7 +25129,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
25099
25129
|
await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
25100
25130
|
}
|
|
25101
25131
|
progress(`${model.id}: loading it once to check it works`);
|
|
25102
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
25132
|
+
const { openPictureEmbedder } = await import("./embedder-U4G74HV3.js");
|
|
25103
25133
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
25104
25134
|
try {
|
|
25105
25135
|
const vector = await embedder.embedQuery("check");
|
|
@@ -25111,7 +25141,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
25111
25141
|
return { model, directory: directory2 };
|
|
25112
25142
|
}, "downloadImageModel");
|
|
25113
25143
|
|
|
25114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25144
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
25115
25145
|
var MONEY_REQUEST = "money-request";
|
|
25116
25146
|
var MONEY_DONE = "money-done";
|
|
25117
25147
|
var PROMISE = "promise";
|
|
@@ -25145,10 +25175,10 @@ var MONEY_WORDS = [
|
|
|
25145
25175
|
}
|
|
25146
25176
|
];
|
|
25147
25177
|
|
|
25148
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
25149
25179
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
25150
25180
|
|
|
25151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
25152
25182
|
var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
25153
25183
|
var MONEY_DONE_FORMS = words([
|
|
25154
25184
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -25188,7 +25218,7 @@ var PROMISE_FORMS = words([
|
|
|
25188
25218
|
"estar\xE1 listo"
|
|
25189
25219
|
]);
|
|
25190
25220
|
|
|
25191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25221
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
25192
25222
|
var EXCERPT_CHARS = 80;
|
|
25193
25223
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
25194
25224
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -25210,7 +25240,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
25210
25240
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
25211
25241
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
25212
25242
|
|
|
25213
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25243
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
25214
25244
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
25215
25245
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
25216
25246
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -25291,7 +25321,7 @@ var amounts = {
|
|
|
25291
25321
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
25292
25322
|
};
|
|
25293
25323
|
|
|
25294
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
25295
25325
|
var children = {
|
|
25296
25326
|
id: "children",
|
|
25297
25327
|
version: 1,
|
|
@@ -25320,7 +25350,7 @@ var children = {
|
|
|
25320
25350
|
}, "read")
|
|
25321
25351
|
};
|
|
25322
25352
|
|
|
25323
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25353
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
25324
25354
|
var coverage = {
|
|
25325
25355
|
id: "coverage",
|
|
25326
25356
|
version: 1,
|
|
@@ -25349,7 +25379,7 @@ var coverage = {
|
|
|
25349
25379
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state !== "complete" && item2.data.beforeHeld ? [{ chat: item2.chat, weight: 3, why: "held in part" }] : []), "attention")
|
|
25350
25380
|
};
|
|
25351
25381
|
|
|
25352
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
25353
25383
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
25354
25384
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
25355
25385
|
signal: "payments",
|
|
@@ -25399,7 +25429,7 @@ var payments = {
|
|
|
25399
25429
|
}, "read")
|
|
25400
25430
|
};
|
|
25401
25431
|
|
|
25402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
25403
25433
|
var PATTERNS_PER_CHAT = 3;
|
|
25404
25434
|
var DAY3 = 864e5;
|
|
25405
25435
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -25488,7 +25518,7 @@ var promises = {
|
|
|
25488
25518
|
}, "read")
|
|
25489
25519
|
};
|
|
25490
25520
|
|
|
25491
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25521
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
25492
25522
|
var PER_SIDE = 5;
|
|
25493
25523
|
var WEEK = 7 * 864e5;
|
|
25494
25524
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -25519,7 +25549,7 @@ var questions2 = {
|
|
|
25519
25549
|
}, "attention")
|
|
25520
25550
|
};
|
|
25521
25551
|
|
|
25522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25552
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
25523
25553
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
25524
25554
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one) => one.id === id2), "byId");
|
|
25525
25555
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -25587,7 +25617,7 @@ var replyNext = {
|
|
|
25587
25617
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
25588
25618
|
};
|
|
25589
25619
|
|
|
25590
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25620
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
25591
25621
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
25592
25622
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
25593
25623
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -25633,7 +25663,7 @@ var topics = {
|
|
|
25633
25663
|
}, "read")
|
|
25634
25664
|
};
|
|
25635
25665
|
|
|
25636
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25666
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
25637
25667
|
var STATUS_SIGNALS = [
|
|
25638
25668
|
replyNext,
|
|
25639
25669
|
questions2,
|
|
@@ -25645,7 +25675,7 @@ var STATUS_SIGNALS = [
|
|
|
25645
25675
|
children
|
|
25646
25676
|
];
|
|
25647
25677
|
|
|
25648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
25649
25679
|
var DAY4 = 864e5;
|
|
25650
25680
|
var STATUS_WINDOW = 300;
|
|
25651
25681
|
var STATUS_CHATS = 16;
|
|
@@ -25661,7 +25691,7 @@ var childrenOf = /* @__PURE__ */ __name(async (store, root, catalog) => {
|
|
|
25661
25691
|
const below = [];
|
|
25662
25692
|
for (const parent of level)
|
|
25663
25693
|
for (const relation of await store.knowledge.relations(null, parent)) {
|
|
25664
|
-
if (!relation.
|
|
25694
|
+
if (!isUsable(relation.standing) || relation.kind !== "member-of" || relation.to !== parent)
|
|
25665
25695
|
continue;
|
|
25666
25696
|
if (!relation.from.startsWith("project:"))
|
|
25667
25697
|
continue;
|
|
@@ -25834,7 +25864,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
25834
25864
|
};
|
|
25835
25865
|
}, "projectStatus");
|
|
25836
25866
|
|
|
25837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25867
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
25838
25868
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
25839
25869
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
25840
25870
|
if (deps.offline)
|
|
@@ -25906,7 +25936,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
25906
25936
|
};
|
|
25907
25937
|
}, "accountService");
|
|
25908
25938
|
|
|
25909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25939
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
25910
25940
|
var MINUTE = 6e4;
|
|
25911
25941
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
25912
25942
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -25925,7 +25955,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
25925
25955
|
return new Date(at - at % MINUTE).toISOString();
|
|
25926
25956
|
}, "sendTime");
|
|
25927
25957
|
|
|
25928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
25929
25959
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
25930
25960
|
try {
|
|
25931
25961
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -26172,7 +26202,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
26172
26202
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
26173
26203
|
}, "linkLimits");
|
|
26174
26204
|
|
|
26175
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26205
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
26176
26206
|
var THREADS_PAGE = 500;
|
|
26177
26207
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
26178
26208
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -26251,7 +26281,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
26251
26281
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
26252
26282
|
}, "readMail");
|
|
26253
26283
|
|
|
26254
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
26255
26285
|
var NO_MAIL = "no_mail";
|
|
26256
26286
|
var MAIL = "email";
|
|
26257
26287
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -26282,11 +26312,11 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
26282
26312
|
if (kind === "messages") {
|
|
26283
26313
|
if (explicit === MAIL)
|
|
26284
26314
|
throw new CliError("validation_error", "mail is searched with `memo search mail`, not search messages");
|
|
26285
|
-
return chosen.filter(({ provider }) =>
|
|
26315
|
+
return chosen.filter(({ provider }) => holdsKindOf(provider, "messages"));
|
|
26286
26316
|
}
|
|
26287
26317
|
if (explicit !== void 0 && explicit !== MAIL && explicit !== "all")
|
|
26288
26318
|
throw new CliError("validation_error", `search mail reads mail only \u2014 \`${command === void 0 ? "" : `${command} `}search messages\` searches ${explicit}`);
|
|
26289
|
-
const mail = (listed2 ? chosen : held).filter(({ provider }) =>
|
|
26319
|
+
const mail = (listed2 ? chosen : held).filter(({ provider }) => holdsKindOf(provider, "mail"));
|
|
26290
26320
|
if (mail.length === 0)
|
|
26291
26321
|
throw new CliError("not_found", "no mail in the store yet \u2014 `memo sync --only mail --since-time <time>` imports it", {
|
|
26292
26322
|
reason: NO_MAIL
|
|
@@ -26298,7 +26328,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
26298
26328
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
26299
26329
|
}, "accountsOfKind");
|
|
26300
26330
|
|
|
26301
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26331
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
26302
26332
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
26303
26333
|
var positiveSources = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? node.field === "in" ? [node.value.toLowerCase()] : [] : node.clauses.filter(({ occur }) => occur !== "must_not").flatMap(({ node: node2 }) => positiveSources(node2)), "positiveSources");
|
|
26304
26334
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -26481,7 +26511,7 @@ var coverageOf = /* @__PURE__ */ __name(async (store, { scopeAccounts, selectedC
|
|
|
26481
26511
|
const completeness = [];
|
|
26482
26512
|
const stats = /* @__PURE__ */ new Map();
|
|
26483
26513
|
let inventoryComplete = scopeAccounts.length > 0;
|
|
26484
|
-
for (const selected of scopeAccounts) {
|
|
26514
|
+
for (const selected of scopeAccounts.filter(({ provider }) => !isImportedProvider(provider))) {
|
|
26485
26515
|
if (!await store.sync.syncState(selected, CHAT_LIST_KEY)) {
|
|
26486
26516
|
inventoryComplete = false;
|
|
26487
26517
|
}
|
|
@@ -26646,7 +26676,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
26646
26676
|
};
|
|
26647
26677
|
}, "statsLucene");
|
|
26648
26678
|
|
|
26649
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26679
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
26650
26680
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
26651
26681
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
26652
26682
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -26815,7 +26845,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
26815
26845
|
};
|
|
26816
26846
|
}, "readRankingSelection");
|
|
26817
26847
|
|
|
26818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
26819
26849
|
var canonical = /* @__PURE__ */ __name((value, nested = false) => Array.isArray(value) ? value.map((one) => canonical(one, true)) : value !== null && typeof value === "object" ? Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0 && (nested || one !== false)).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(([key, one]) => [key, canonical(one, true)])) : value, "canonical");
|
|
26820
26850
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
26821
26851
|
command,
|
|
@@ -26825,7 +26855,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
26825
26855
|
fieldsVersion: FIELD_VERSION
|
|
26826
26856
|
}), "searchRecordOf");
|
|
26827
26857
|
|
|
26828
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
26829
26859
|
function invalid2(message) {
|
|
26830
26860
|
throw new CliError("validation_error", message);
|
|
26831
26861
|
}
|
|
@@ -27119,7 +27149,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
27119
27149
|
}, "evidence")
|
|
27120
27150
|
}), "adminStatisticsService");
|
|
27121
27151
|
|
|
27122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27152
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
27123
27153
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
27124
27154
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
27125
27155
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -27256,12 +27286,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
27256
27286
|
return { plan, repair };
|
|
27257
27287
|
}, "gapsService");
|
|
27258
27288
|
|
|
27259
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27289
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
27260
27290
|
import { createHash as createHash9 } from "node:crypto";
|
|
27261
27291
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
27262
27292
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
27263
27293
|
|
|
27264
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27294
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
27265
27295
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
27266
27296
|
import { basename as basename4, join as join8, relative as relative2, sep as sep2 } from "node:path";
|
|
27267
27297
|
var MAX_FILES = 1e4;
|
|
@@ -27332,15 +27362,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
27332
27362
|
return choices;
|
|
27333
27363
|
}, "directoryPaths");
|
|
27334
27364
|
|
|
27335
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27365
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
27336
27366
|
import { posix } from "node:path";
|
|
27337
27367
|
|
|
27338
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
27339
27369
|
import { setImmediate as tick } from "node:timers/promises";
|
|
27340
27370
|
import { crc32 } from "node:zlib";
|
|
27341
27371
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
27342
27372
|
|
|
27343
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
27344
27374
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
27345
27375
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
27346
27376
|
var SAMPLE = 65536;
|
|
@@ -27442,7 +27472,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
27442
27472
|
return result.text;
|
|
27443
27473
|
}, "decodeXml");
|
|
27444
27474
|
|
|
27445
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27475
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
27446
27476
|
var MAX_PART = 10 * 1024 * 1024;
|
|
27447
27477
|
var MAX_ENTRIES = 1e3;
|
|
27448
27478
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -27657,7 +27687,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
27657
27687
|
return found;
|
|
27658
27688
|
}, "elements");
|
|
27659
27689
|
|
|
27660
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
27661
27691
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
27662
27692
|
let name = "";
|
|
27663
27693
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -27712,7 +27742,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
27712
27742
|
return { text: parts.join("").trim(), truncated: false };
|
|
27713
27743
|
}, "sheetText");
|
|
27714
27744
|
|
|
27715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27745
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
27716
27746
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
27717
27747
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
27718
27748
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -28112,10 +28142,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
28112
28142
|
}
|
|
28113
28143
|
}, "readDocument");
|
|
28114
28144
|
|
|
28115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28145
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
28116
28146
|
import { extname as extname3 } from "node:path";
|
|
28117
28147
|
|
|
28118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28148
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
28119
28149
|
import { readFileSync } from "node:fs";
|
|
28120
28150
|
import { dirname as dirname4, extname as extname2, join as join9 } from "node:path";
|
|
28121
28151
|
import { fileURLToPath } from "node:url";
|
|
@@ -28176,7 +28206,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
|
|
|
28176
28206
|
}
|
|
28177
28207
|
}, "derived");
|
|
28178
28208
|
|
|
28179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
28180
28210
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
28181
28211
|
var image2 = {
|
|
28182
28212
|
id: "image",
|
|
@@ -28185,7 +28215,7 @@ var image2 = {
|
|
|
28185
28215
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
28186
28216
|
};
|
|
28187
28217
|
|
|
28188
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28218
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
28189
28219
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
28190
28220
|
var doc = {
|
|
28191
28221
|
id: "doc",
|
|
@@ -28197,7 +28227,7 @@ var doc = {
|
|
|
28197
28227
|
}), "read")
|
|
28198
28228
|
};
|
|
28199
28229
|
|
|
28200
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28230
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
28201
28231
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
28202
28232
|
var docx = {
|
|
28203
28233
|
id: "docx",
|
|
@@ -28210,7 +28240,7 @@ var docx = {
|
|
|
28210
28240
|
}), "read")
|
|
28211
28241
|
};
|
|
28212
28242
|
|
|
28213
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28243
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
28214
28244
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
28215
28245
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
28216
28246
|
"fonttbl",
|
|
@@ -28386,7 +28416,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
28386
28416
|
}, "htmlText");
|
|
28387
28417
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
28388
28418
|
|
|
28389
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
28390
28420
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
28391
28421
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
28392
28422
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -28442,7 +28472,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
28442
28472
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
28443
28473
|
}, "markdownSections");
|
|
28444
28474
|
|
|
28445
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28475
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
28446
28476
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
28447
28477
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
28448
28478
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -28513,7 +28543,7 @@ var html = {
|
|
|
28513
28543
|
}, "read")
|
|
28514
28544
|
};
|
|
28515
28545
|
|
|
28516
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28546
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
28517
28547
|
var office = {
|
|
28518
28548
|
id: "office",
|
|
28519
28549
|
version: documentExtractor("odt"),
|
|
@@ -28524,7 +28554,7 @@ var office = {
|
|
|
28524
28554
|
}, "read")
|
|
28525
28555
|
};
|
|
28526
28556
|
|
|
28527
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28557
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
28528
28558
|
var pdf = {
|
|
28529
28559
|
id: "pdf",
|
|
28530
28560
|
version: "unpdf",
|
|
@@ -28591,7 +28621,7 @@ var pdf = {
|
|
|
28591
28621
|
}), "read")
|
|
28592
28622
|
};
|
|
28593
28623
|
|
|
28594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
28595
28625
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
28596
28626
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
28597
28627
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -28611,7 +28641,7 @@ var plain = {
|
|
|
28611
28641
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
28612
28642
|
};
|
|
28613
28643
|
|
|
28614
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28644
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
28615
28645
|
var rtf = {
|
|
28616
28646
|
id: "rtf",
|
|
28617
28647
|
version: "v1",
|
|
@@ -28619,10 +28649,10 @@ var rtf = {
|
|
|
28619
28649
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
28620
28650
|
};
|
|
28621
28651
|
|
|
28622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28652
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
28623
28653
|
import { basename as basename5 } from "node:path";
|
|
28624
28654
|
|
|
28625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28655
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
28626
28656
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
28627
28657
|
const cells = [];
|
|
28628
28658
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -28660,7 +28690,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
28660
28690
|
return { cells, truncated };
|
|
28661
28691
|
}, "delimitedSpans");
|
|
28662
28692
|
|
|
28663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28693
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
28664
28694
|
var DELIMITED = {
|
|
28665
28695
|
".csv": ",",
|
|
28666
28696
|
".tsv": " ",
|
|
@@ -28699,7 +28729,7 @@ var sheets = {
|
|
|
28699
28729
|
}, "read")
|
|
28700
28730
|
};
|
|
28701
28731
|
|
|
28702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28732
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
28703
28733
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
28704
28734
|
var HEAD_BYTES = 1024;
|
|
28705
28735
|
var readers = [...BUILT_INS2];
|
|
@@ -28709,7 +28739,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
28709
28739
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
28710
28740
|
}, "readWithRegistry");
|
|
28711
28741
|
|
|
28712
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28742
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
28713
28743
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
28714
28744
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
28715
28745
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -29788,7 +29818,7 @@ function imageSize(input) {
|
|
|
29788
29818
|
}
|
|
29789
29819
|
__name(imageSize, "imageSize");
|
|
29790
29820
|
|
|
29791
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29821
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
29792
29822
|
var MAX_PAGES = 20;
|
|
29793
29823
|
var MAX_PIXELS = 2e7;
|
|
29794
29824
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -29939,7 +29969,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
29939
29969
|
}
|
|
29940
29970
|
}, "ocrPdf");
|
|
29941
29971
|
|
|
29942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29972
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
29943
29973
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
29944
29974
|
const limits = pdfPreviewLimits(env);
|
|
29945
29975
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -30016,7 +30046,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
30016
30046
|
}
|
|
30017
30047
|
}, "pdfPreview");
|
|
30018
30048
|
|
|
30019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30049
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
30020
30050
|
import { createHash as createHash8 } from "node:crypto";
|
|
30021
30051
|
import { constants } from "node:fs";
|
|
30022
30052
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -30124,7 +30154,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
30124
30154
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
30125
30155
|
}, "transferMime");
|
|
30126
30156
|
|
|
30127
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
30128
30158
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
30129
30159
|
import { link as link3, rm } from "node:fs/promises";
|
|
30130
30160
|
import { join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -30238,7 +30268,7 @@ var save = /* @__PURE__ */ __name(async (file, directory2, fallbackName, { uniqu
|
|
|
30238
30268
|
}
|
|
30239
30269
|
}, "save");
|
|
30240
30270
|
|
|
30241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30271
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
30242
30272
|
var ATTACHMENT_QUERY = {
|
|
30243
30273
|
entity: "attachment",
|
|
30244
30274
|
backend: "sql",
|
|
@@ -30661,7 +30691,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30661
30691
|
}, "setText")
|
|
30662
30692
|
}), "attachmentsService");
|
|
30663
30693
|
|
|
30664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30694
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
30665
30695
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
30666
30696
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
30667
30697
|
const store = await accountStore(deps);
|
|
@@ -30691,7 +30721,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30691
30721
|
}, "list")
|
|
30692
30722
|
}), "chatDocumentsService");
|
|
30693
30723
|
|
|
30694
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30724
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
30695
30725
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
30696
30726
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
30697
30727
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -30778,7 +30808,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
30778
30808
|
}
|
|
30779
30809
|
}, "isRetentionSelection");
|
|
30780
30810
|
|
|
30781
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30811
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
30782
30812
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
30783
30813
|
const fields = text2.split(",").map((one) => one.trim());
|
|
30784
30814
|
if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
|
|
@@ -30985,7 +31015,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
30985
31015
|
};
|
|
30986
31016
|
}, "countersService");
|
|
30987
31017
|
|
|
30988
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
30989
31019
|
var SYNC_KEY = "messages.sync-first";
|
|
30990
31020
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
30991
31021
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -31117,7 +31147,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
31117
31147
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
31118
31148
|
}), "withRefresh");
|
|
31119
31149
|
|
|
31120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31150
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
31121
31151
|
var CANDIDATES = 50;
|
|
31122
31152
|
var WORD_HITS = 200;
|
|
31123
31153
|
var RRF_K = 60;
|
|
@@ -31392,13 +31422,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
31392
31422
|
return mean2.map((value) => value / length);
|
|
31393
31423
|
}, "meanOf");
|
|
31394
31424
|
|
|
31395
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31425
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
31396
31426
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
31397
31427
|
...embeddingsMaintenance(deps),
|
|
31398
31428
|
...embeddingsSearch(deps)
|
|
31399
31429
|
}), "embeddingsService");
|
|
31400
31430
|
|
|
31401
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31431
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
31402
31432
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
31403
31433
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
31404
31434
|
if (deps.offline)
|
|
@@ -31539,7 +31569,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
31539
31569
|
};
|
|
31540
31570
|
}, "foldersService");
|
|
31541
31571
|
|
|
31542
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
31543
31573
|
var REVIEW_COUNT = 500;
|
|
31544
31574
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
31545
31575
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -31618,7 +31648,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
31618
31648
|
};
|
|
31619
31649
|
}, "mentionsService");
|
|
31620
31650
|
|
|
31621
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31651
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
31622
31652
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
31623
31653
|
position,
|
|
31624
31654
|
kind,
|
|
@@ -31667,7 +31697,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
31667
31697
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
31668
31698
|
}, "validatePermalink");
|
|
31669
31699
|
|
|
31670
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31700
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
31671
31701
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
31672
31702
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
31673
31703
|
return `${seconds / 86400}d`;
|
|
@@ -31699,7 +31729,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
31699
31729
|
return seconds;
|
|
31700
31730
|
}, "pinDurationOf");
|
|
31701
31731
|
|
|
31702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31732
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
31703
31733
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
31704
31734
|
if (sendAs === void 0) {
|
|
31705
31735
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -31724,7 +31754,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
31724
31754
|
return sendAs;
|
|
31725
31755
|
}, "typedSendAs");
|
|
31726
31756
|
|
|
31727
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31757
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
31728
31758
|
var TOTAL_CAP = 1e4;
|
|
31729
31759
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
31730
31760
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -31735,7 +31765,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
31735
31765
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
31736
31766
|
}, "totalOf");
|
|
31737
31767
|
|
|
31738
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31768
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
31739
31769
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
31740
31770
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
31741
31771
|
let narrows = false;
|
|
@@ -31764,7 +31794,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
31764
31794
|
return wanted(root).join(" ").trim();
|
|
31765
31795
|
}, "meaningWords");
|
|
31766
31796
|
|
|
31767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31797
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
31768
31798
|
var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
31769
31799
|
var scaffolding = new Set(words2("what which how many much who where when is are was were do does did can could should we the a an for of to under from in on at has have \u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043A\u0430\u043A\u043E\u0439 \u043A\u0430\u043A\u0430\u044F \u043A\u0430\u043A\u0438\u0435 \u043A\u0430\u043A\u043E\u0435 \u043A\u0442\u043E \u043A\u043E\u043C\u0443 \u043A\u0435\u043C \u0433\u0434\u0435 \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043A \u0447\u0442\u043E \u0432\u043E \u043F\u043E \u043D\u0430 \u0432 \u043A \u0441 \u0443 \u0447\u0435\u0440\u0435\u0437 \u043B\u0438 \u0434\u043E\u043B\u0436\u0435\u043D \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0443\u0436\u043D\u043E \u0438\u0434\u0451\u0442 \u0438\u0434\u0435\u0442 \u043C\u043E\u0436\u043D\u043E \u043C\u043E\u0436\u0435\u0442 \u043C\u043E\u0433\u0443\u0442"));
|
|
31770
31800
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -31896,7 +31926,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
31896
31926
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
31897
31927
|
}, "questionLookup");
|
|
31898
31928
|
|
|
31899
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
31900
31930
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
31901
31931
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
31902
31932
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -32089,7 +32119,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
32089
32119
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage2 * 4 + proximity + phrase;
|
|
32090
32120
|
}, "signals");
|
|
32091
32121
|
|
|
32092
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
32093
32123
|
var MEANING_DEPTH = 100;
|
|
32094
32124
|
var RRF_K2 = 60;
|
|
32095
32125
|
var RERANK_DEPTH = 50;
|
|
@@ -32414,7 +32444,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
32414
32444
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
32415
32445
|
}, "mixedWithReranker");
|
|
32416
32446
|
|
|
32417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32447
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
32418
32448
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
32419
32449
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
32420
32450
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -32613,7 +32643,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
32613
32643
|
return result;
|
|
32614
32644
|
}, "readThreadContext");
|
|
32615
32645
|
|
|
32616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32646
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
32617
32647
|
var SEARCH_FILL_MS = 200;
|
|
32618
32648
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
32619
32649
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -32682,12 +32712,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
32682
32712
|
}, "accountOf");
|
|
32683
32713
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
32684
32714
|
|
|
32685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32686
32716
|
import { createHash as createHash10 } from "node:crypto";
|
|
32687
32717
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
32688
32718
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
32689
32719
|
|
|
32690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
32691
32721
|
var GROUP_SETTINGS = [
|
|
32692
32722
|
"allCanPin",
|
|
32693
32723
|
"onlyAdminsAdd",
|
|
@@ -32701,7 +32731,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
32701
32731
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
32702
32732
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
32703
32733
|
|
|
32704
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32734
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32705
32735
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
32706
32736
|
var PICTURE_FLOOR = 0.25;
|
|
32707
32737
|
var PAGE4 = 50;
|
|
@@ -32718,7 +32748,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
32718
32748
|
const directory2 = imageModelsDirectory(deps.env);
|
|
32719
32749
|
if (!isImageModelInstalled(model2, directory2))
|
|
32720
32750
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
32721
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
32751
|
+
const { openPictureEmbedder } = await import("./embedder-U4G74HV3.js");
|
|
32722
32752
|
return openPictureEmbedder(model2, directory2);
|
|
32723
32753
|
}, "open");
|
|
32724
32754
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -32915,7 +32945,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
32915
32945
|
}, "search")
|
|
32916
32946
|
}), "withPictures");
|
|
32917
32947
|
|
|
32918
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32948
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
32919
32949
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
|
|
32920
32950
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
32921
32951
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -32983,7 +33013,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
32983
33013
|
}
|
|
32984
33014
|
}, "meaningLane");
|
|
32985
33015
|
|
|
32986
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33016
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
32987
33017
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
32988
33018
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
32989
33019
|
if (choice === "off")
|
|
@@ -32995,9 +33025,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32995
33025
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
32996
33026
|
try {
|
|
32997
33027
|
const warm = deps.embedders;
|
|
32998
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
33028
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-ZLO72UVZ.js")).openRerankerProcess(model, directory2, {
|
|
32999
33029
|
threads: defaultThreads()
|
|
33000
|
-
})) : await (await import("./rerank-
|
|
33030
|
+
})) : await (await import("./rerank-CQNZF3JI.js")).openReranker(model, directory2);
|
|
33001
33031
|
return {
|
|
33002
33032
|
model: model.id,
|
|
33003
33033
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -33017,17 +33047,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
33017
33047
|
};
|
|
33018
33048
|
}, "rerankLane");
|
|
33019
33049
|
|
|
33020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33050
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
33021
33051
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
33022
33052
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
33023
33053
|
const directory2 = imageModelsDirectory(env);
|
|
33024
33054
|
if (!isImageModelInstalled(model, directory2))
|
|
33025
33055
|
throw new CliError("not_found", `the picture model is not downloaded \u2014 ${command === void 0 ? "install it with a WireCat CLI that has `images models download` (tg, max or wa); they share the model folder" : `\`${command} images models download ${model.id}\` fetches it`}`, { reason: "model.not-downloaded", model: model.id });
|
|
33026
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
33056
|
+
const { openPictureEmbedder } = await import("./embedder-U4G74HV3.js");
|
|
33027
33057
|
return openPictureEmbedder(model, directory2);
|
|
33028
33058
|
}, "openPictureEmbedderFor");
|
|
33029
33059
|
|
|
33030
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33060
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
33031
33061
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) => {
|
|
33032
33062
|
const metadata = note.frontMatter;
|
|
33033
33063
|
const account = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
@@ -33042,7 +33072,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) =>
|
|
|
33042
33072
|
};
|
|
33043
33073
|
}, "documentSource");
|
|
33044
33074
|
|
|
33045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
33046
33076
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
33047
33077
|
let root;
|
|
33048
33078
|
try {
|
|
@@ -33069,7 +33099,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
33069
33099
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
33070
33100
|
}, "titleTiers");
|
|
33071
33101
|
|
|
33072
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33102
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
33073
33103
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
33074
33104
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
33075
33105
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -33470,7 +33500,8 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
33470
33500
|
const held = [
|
|
33471
33501
|
{ provider: "notes", account: INTERNAL_NOTES },
|
|
33472
33502
|
...(await store.notes.folders()).map(({ id: id2 }) => ({ provider: "notes", account: id2 })),
|
|
33473
|
-
...(await store.notes.documentsAccounts()).map(({ id: id2 }) => ({ provider: "notes", account: id2 }))
|
|
33503
|
+
...(await store.notes.documentsAccounts()).map(({ id: id2 }) => ({ provider: "notes", account: id2 })),
|
|
33504
|
+
...[await store.notes.addedAccount()].flatMap((added) => added ? [{ provider: "notes", account: added.id }] : [])
|
|
33474
33505
|
];
|
|
33475
33506
|
const named2 = list2 === void 0 ? { accounts: held, skipped: [] } : fitting(entriesOfList(list2, await listContextOf(store, account, app)), ["notes", "documents"], what);
|
|
33476
33507
|
const source = query.source ?? noteSourceOfQuery(text2).source;
|
|
@@ -33490,14 +33521,14 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
33490
33521
|
};
|
|
33491
33522
|
}, "searchNotesOf");
|
|
33492
33523
|
|
|
33493
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33524
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
33494
33525
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
33495
33526
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
33496
33527
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
33497
33528
|
const held = await store.accounts.storedAccounts();
|
|
33498
33529
|
return held.filter((one) => accounts.some(({ provider, account }) => one.provider === provider && one.account === account)).map(({ id: id2 }) => String(id2));
|
|
33499
33530
|
}, "accountIdsOf");
|
|
33500
|
-
var calendarAccounts = /* @__PURE__ */ __name(async (store) => (await store.accounts.storedAccounts()).filter(({ provider }) =>
|
|
33531
|
+
var calendarAccounts = /* @__PURE__ */ __name(async (store) => (await store.accounts.storedAccounts()).filter(({ provider }) => holdsKind(provider, "events")).map(({ provider, account }) => ({ provider, account })), "calendarAccounts");
|
|
33501
33532
|
var foundEvent = /* @__PURE__ */ __name((hit, query, foundBy) => ({
|
|
33502
33533
|
ref: hit.ref,
|
|
33503
33534
|
provider: hit.account?.provider ?? null,
|
|
@@ -33608,7 +33639,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
33608
33639
|
};
|
|
33609
33640
|
}, "searchEvents");
|
|
33610
33641
|
|
|
33611
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33642
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
33612
33643
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm"];
|
|
33613
33644
|
var refusal = /* @__PURE__ */ __name((error, text2) => {
|
|
33614
33645
|
const { reason, span } = error.details ?? {};
|
|
@@ -33634,7 +33665,7 @@ var titleWords = /* @__PURE__ */ __name((text2) => {
|
|
|
33634
33665
|
})());
|
|
33635
33666
|
return { words: words3, anyWord: clauses.length > 1 && clauses.every(({ occur }) => occur === "should") };
|
|
33636
33667
|
}, "titleWords");
|
|
33637
|
-
var crmAccounts = /* @__PURE__ */ __name(async (store) => (await store.accounts.accounts()).filter(({ provider }) =>
|
|
33668
|
+
var crmAccounts = /* @__PURE__ */ __name(async (store) => (await store.accounts.accounts()).filter(({ provider }) => holdsKind(provider, "crm")), "crmAccounts");
|
|
33638
33669
|
var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger = {}, searchMessages = (query) => searchStore(store, account, query, messenger), meaning) => {
|
|
33639
33670
|
if (!asked.text.trim())
|
|
33640
33671
|
throw new CliError("validation_error", "say what to find");
|
|
@@ -33682,7 +33713,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
|
|
|
33682
33713
|
if (kind === "messages" && found.coverage)
|
|
33683
33714
|
coverage2 = found.coverage;
|
|
33684
33715
|
hasMore ||= found.hasMore;
|
|
33685
|
-
const read = found.coverage?.accounts ?? given ?? (await store.accounts.accounts()).filter(({ provider }) =>
|
|
33716
|
+
const read = found.coverage?.accounts ?? given ?? (await store.accounts.accounts()).filter(({ provider }) => holdsKind(provider, kind));
|
|
33686
33717
|
for (const one of found.skipped ?? [])
|
|
33687
33718
|
if (!skipped.some(({ source }) => source === one.source))
|
|
33688
33719
|
skipped.push(one);
|
|
@@ -33775,7 +33806,8 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
|
|
|
33775
33806
|
const read = chosen?.map(({ account: account2 }) => account2) ?? [
|
|
33776
33807
|
INTERNAL_NOTES,
|
|
33777
33808
|
...(await store.notes.folders()).map(({ id: id2 }) => id2),
|
|
33778
|
-
...(await store.notes.documentsAccounts()).map(({ id: id2 }) => id2)
|
|
33809
|
+
...(await store.notes.documentsAccounts()).map(({ id: id2 }) => id2),
|
|
33810
|
+
...[await store.notes.addedAccount()].flatMap((added) => added ? [added.id] : [])
|
|
33779
33811
|
];
|
|
33780
33812
|
accounts.push(...read.map((account2) => ({ resource, provider: "notes", account: account2 })));
|
|
33781
33813
|
} else if (resource === "events") {
|
|
@@ -33879,7 +33911,7 @@ var oneList = /* @__PURE__ */ __name((lists, cosines) => {
|
|
|
33879
33911
|
return [...place.values()].sort((a, b) => a.rank - b.rank || cosine(b.item.ref) - cosine(a.item.ref)).map(({ item: item2 }) => item2);
|
|
33880
33912
|
}, "oneList");
|
|
33881
33913
|
|
|
33882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33914
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
33883
33915
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
33884
33916
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
33885
33917
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -34104,7 +34136,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
34104
34136
|
const entries = entriesOfList(source, await listContextOf(store, account, messenger.app));
|
|
34105
34137
|
const { skipped } = fitting(entries, only, "search all", (kind) => `--only leaves ${kind} out`);
|
|
34106
34138
|
const named2 = /* @__PURE__ */ __name((resource) => [
|
|
34107
|
-
...new Map(entries.flatMap(({ accounts }) => accounts).filter((
|
|
34139
|
+
...new Map(entries.flatMap(({ accounts }) => accounts).filter((one) => listedHolds(one, resource)).map(({ provider, account: account2 }) => [`${provider}\0${account2}`, { provider, account: account2 }])).values()
|
|
34108
34140
|
], "named");
|
|
34109
34141
|
const meetings = await holdingMeetings(store, named2("meetings"));
|
|
34110
34142
|
const empty2 = named2("meetings").filter((one) => !meetings.some(({ provider, account: account2 }) => provider === one.provider && account2 === one.account)).map(({ provider, account: account2 }) => ({
|
|
@@ -34133,7 +34165,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
34133
34165
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
34134
34166
|
}, "searchAllOfSource");
|
|
34135
34167
|
|
|
34136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34168
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
34137
34169
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
34138
34170
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
34139
34171
|
var DEFAULT_BACKEND = "both";
|
|
@@ -34322,7 +34354,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
34322
34354
|
return { report, sources };
|
|
34323
34355
|
}, "searchServer");
|
|
34324
34356
|
|
|
34325
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
34326
34358
|
var DELETE_AT_ONCE = 10;
|
|
34327
34359
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
34328
34360
|
const files = fileLinks(attachments);
|
|
@@ -34763,7 +34795,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
34763
34795
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
34764
34796
|
}, "checkMediaOptions");
|
|
34765
34797
|
|
|
34766
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
34767
34799
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
34768
34800
|
var RULES = {
|
|
34769
34801
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -34778,7 +34810,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
34778
34810
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
34779
34811
|
}), "classifyChannel");
|
|
34780
34812
|
|
|
34781
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34813
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
34782
34814
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
34783
34815
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
34784
34816
|
const store = await deps.store();
|
|
@@ -34864,7 +34896,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
34864
34896
|
};
|
|
34865
34897
|
}, "metadataService");
|
|
34866
34898
|
|
|
34867
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
34868
34900
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
34869
34901
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
34870
34902
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -34901,7 +34933,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
34901
34933
|
return { chatId, rows, notes };
|
|
34902
34934
|
}, "moderateWith");
|
|
34903
34935
|
|
|
34904
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
34905
34937
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
34906
34938
|
const file = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
34907
34939
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -34979,7 +35011,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
34979
35011
|
}, "removePerson")
|
|
34980
35012
|
}), "moderatorOf");
|
|
34981
35013
|
|
|
34982
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35014
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
34983
35015
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
34984
35016
|
id: note.id,
|
|
34985
35017
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -35023,7 +35055,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
35023
35055
|
};
|
|
35024
35056
|
}, "privatePeopleService");
|
|
35025
35057
|
|
|
35026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
35027
35059
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
35028
35060
|
total: 0,
|
|
35029
35061
|
population: 0,
|
|
@@ -35279,7 +35311,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
35279
35311
|
}, "evidence")
|
|
35280
35312
|
}), "rankingsService");
|
|
35281
35313
|
|
|
35282
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35314
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
35283
35315
|
var FIELDS = ["date", "chat", "kind"];
|
|
35284
35316
|
var WAITING_TAIL = 100;
|
|
35285
35317
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -35406,7 +35438,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
35406
35438
|
};
|
|
35407
35439
|
}, "replyStatsService");
|
|
35408
35440
|
|
|
35409
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35441
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
35410
35442
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
35411
35443
|
id: one.id,
|
|
35412
35444
|
name: one.name,
|
|
@@ -35427,7 +35459,7 @@ var MESSAGE_SEARCH_COMMANDS = [
|
|
|
35427
35459
|
"admin-statistics"
|
|
35428
35460
|
];
|
|
35429
35461
|
var NAME = /^[a-z0-9][a-z0-9-]{0,63}$/;
|
|
35430
|
-
var
|
|
35462
|
+
var nameOf2 = /* @__PURE__ */ __name((value) => {
|
|
35431
35463
|
const name = value.trim().toLowerCase();
|
|
35432
35464
|
if (!NAME.test(name) || /^\d+$/.test(name))
|
|
35433
35465
|
throw new CliError("validation_error", `"${singleLine(value)}" cannot name a saved search \u2014 use up to 64 letters a\u2013z, digits and hyphens, not only digits`, { reason: "name.invalid" });
|
|
@@ -35482,13 +35514,13 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
35482
35514
|
if (isAdminSelection(params.selection)) {
|
|
35483
35515
|
const selected = await readAdminSelection(store, params.selection);
|
|
35484
35516
|
const normalized2 = typeof params.selection === "string" ? JSON.parse(params.selection) : params.selection;
|
|
35485
|
-
return store.searches.saveSearch(
|
|
35517
|
+
return store.searches.saveSearch(nameOf2(name), searchRecordOf("admin-statistics", {
|
|
35486
35518
|
adminReport: selected.options.report,
|
|
35487
35519
|
selection: normalized2,
|
|
35488
35520
|
timezone: selected.base.timezone
|
|
35489
35521
|
}), { replace });
|
|
35490
35522
|
}
|
|
35491
|
-
return store.searches.saveSearch(
|
|
35523
|
+
return store.searches.saveSearch(nameOf2(name), searchRecordOf(params.target ? params.target === "messages" ? "message-top" : "author-top" : params.by === void 0 ? "search" : "stats", checked(params)), {
|
|
35492
35524
|
replace
|
|
35493
35525
|
});
|
|
35494
35526
|
}), "create"),
|
|
@@ -35535,7 +35567,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
35535
35567
|
};
|
|
35536
35568
|
}, "searchesService");
|
|
35537
35569
|
|
|
35538
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
35539
35571
|
var TAGGING_QUERY = {
|
|
35540
35572
|
entity: "tagging",
|
|
35541
35573
|
backend: "sql",
|
|
@@ -35619,7 +35651,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
35619
35651
|
};
|
|
35620
35652
|
}, "tagsService");
|
|
35621
35653
|
|
|
35622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35654
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
35623
35655
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
35624
35656
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
35625
35657
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -35818,7 +35850,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
35818
35850
|
};
|
|
35819
35851
|
}, "topicsService");
|
|
35820
35852
|
|
|
35821
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
35822
35854
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
35823
35855
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
35824
35856
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -35892,7 +35924,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
35892
35924
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
35893
35925
|
}, "prepareEvidencePacket");
|
|
35894
35926
|
|
|
35895
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35927
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
35896
35928
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
35897
35929
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
35898
35930
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -35912,7 +35944,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
35912
35944
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
35913
35945
|
}, "readEvidencePacket");
|
|
35914
35946
|
|
|
35915
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35947
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
35916
35948
|
var scopeKeys = [
|
|
35917
35949
|
"accountId",
|
|
35918
35950
|
"meetingId",
|
|
@@ -35934,7 +35966,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
35934
35966
|
"maxVocabularyReadBytes"
|
|
35935
35967
|
]);
|
|
35936
35968
|
|
|
35937
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35969
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
35938
35970
|
var communicationFields = {
|
|
35939
35971
|
sources: pipe(array(strictObject({
|
|
35940
35972
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -35966,7 +35998,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
35966
35998
|
return { ...input, after, before: before2 };
|
|
35967
35999
|
}, "communicationRequest");
|
|
35968
36000
|
|
|
35969
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
35970
36002
|
var MEETING_PREPARATION_LIMITS = {
|
|
35971
36003
|
meetings: { min: 1, max: 20, default: 5 },
|
|
35972
36004
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -36039,7 +36071,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
36039
36071
|
};
|
|
36040
36072
|
}, "validateMeetingPreparationRequest");
|
|
36041
36073
|
|
|
36042
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36074
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
36043
36075
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
36044
36076
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
36045
36077
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -36087,7 +36119,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
36087
36119
|
}
|
|
36088
36120
|
}, "validatePreparationCommunications");
|
|
36089
36121
|
|
|
36090
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
36091
36123
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
36092
36124
|
const installer = ports.installer();
|
|
36093
36125
|
const argv = updateCommand(installer, packageName);
|
|
@@ -36152,7 +36184,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
36152
36184
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
36153
36185
|
}, "dayAfter");
|
|
36154
36186
|
|
|
36155
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
36156
36188
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
36157
36189
|
const pictures = picturesService(deps);
|
|
36158
36190
|
const base = {
|
|
@@ -36189,7 +36221,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
36189
36221
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
36190
36222
|
}, "servicesFor");
|
|
36191
36223
|
|
|
36192
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
36193
36225
|
import { createHash as createHash12 } from "node:crypto";
|
|
36194
36226
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync3, rmSync } from "node:fs";
|
|
36195
36227
|
import { createConnection, createServer } from "node:net";
|
|
@@ -36410,7 +36442,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
|
|
|
36410
36442
|
}, () => finish({ error: stopped() }));
|
|
36411
36443
|
}), "relayCommand");
|
|
36412
36444
|
|
|
36413
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36445
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
36414
36446
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
36415
36447
|
close: /* @__PURE__ */ __name(async () => {
|
|
36416
36448
|
}, "close"),
|