@wirecat/tg-cli 0.127.0 → 0.128.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/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-EZFS2UR6.js → adapter-JOI34QLS.js} +43 -43
- package/dist/bundle/{all-profiles-TNIUBQK6.js → all-profiles-2BZEE7J2.js} +18 -28
- package/dist/bundle/{anthropic-NGIS5LTL.js → anthropic-NW7DL3S3.js} +2 -2
- package/dist/bundle/{app-server-RPU76G7D.js → app-server-RUTYKELF.js} +39 -54
- package/dist/bundle/{bot-api-QJ6U6BLG.js → bot-api-DW6NAZAQ.js} +44 -44
- package/dist/bundle/{bot-history-THULK2C6.js → bot-history-FAJ2W42U.js} +12 -12
- package/dist/bundle/{bun-QLSLLP27.js → bun-IVP5LSVI.js} +2 -2
- package/dist/bundle/{bun-sqlite-SH5245ZY.js → bun-sqlite-ATPCJ4CT.js} +3 -3
- package/dist/bundle/{chunk-4CQ3PV3V.js → chunk-2A3TC52A.js} +7 -7
- package/dist/bundle/{chunk-SN52ZGFN.js → chunk-2IL4YDGG.js} +2 -2
- package/dist/bundle/{chunk-TGKTIDYS.js → chunk-2QHIOPSA.js} +176 -150
- package/dist/bundle/{chunk-ZSS3BH6Z.js → chunk-3UGRMFWK.js} +2 -2
- package/dist/bundle/{chunk-QPVCFSVU.js → chunk-4DSIGS2E.js} +5 -5
- package/dist/bundle/{chunk-BNM6KNUQ.js → chunk-5AP25FMW.js} +1 -1
- package/dist/bundle/{chunk-ERUB3KU3.js → chunk-7D6LI2N7.js} +5 -5
- package/dist/bundle/{chunk-FSDLSEZA.js → chunk-7I5NMVX7.js} +1 -1
- package/dist/bundle/{chunk-3WI53AA4.js → chunk-AF2XVV5P.js} +648 -239
- package/dist/bundle/{chunk-3I3TGKVG.js → chunk-BVCRDHI2.js} +3 -3
- package/dist/bundle/{chunk-JF7D2Y4K.js → chunk-E56QE3UC.js} +352 -325
- package/dist/bundle/{chunk-J6FHZXNS.js → chunk-EAUHYQUK.js} +40 -48
- package/dist/bundle/{chunk-IWJ5OLU6.js → chunk-F4UIBEQK.js} +2 -2
- package/dist/bundle/{chunk-DNNYE6PS.js → chunk-FHGAJK4I.js} +16 -13
- package/dist/bundle/{chunk-MTU3UP5U.js → chunk-G3PL3R45.js} +1 -1
- package/dist/bundle/{chunk-Y7UA7HGL.js → chunk-GYO4WXLG.js} +2 -2
- package/dist/bundle/{chunk-LOG65WHO.js → chunk-IHLNXL2D.js} +1 -1
- package/dist/bundle/{chunk-P5NJECXX.js → chunk-IIHCSJV2.js} +507 -340
- package/dist/bundle/{chunk-4FFKCC7Y.js → chunk-IV2KJQ5F.js} +16 -15
- package/dist/bundle/{chunk-EGNQSWPH.js → chunk-J3SX36NE.js} +1 -1
- package/dist/bundle/{chunk-CXWAKV2O.js → chunk-JI2PFQFL.js} +5 -5
- package/dist/bundle/{chunk-S3XUJPPL.js → chunk-JJGPU24U.js} +4 -4
- package/dist/bundle/{chunk-XUAVZ6YX.js → chunk-KF2Q776U.js} +7 -7
- package/dist/bundle/{chunk-3CV5TBBR.js → chunk-KKZQK6IK.js} +2 -2
- package/dist/bundle/{chunk-VMV5CMLH.js → chunk-LTADKMP5.js} +1 -1
- package/dist/bundle/{chunk-X4ECHJNG.js → chunk-MC6FOTCV.js} +98 -6
- package/dist/bundle/{chunk-BWHVHPAQ.js → chunk-MDGLKMLD.js} +5 -5
- package/dist/bundle/{chunk-APSMQIA4.js → chunk-MGBVVQTU.js} +2 -2
- package/dist/bundle/{chunk-JWEKUAVZ.js → chunk-MOUPWPNL.js} +10 -10
- package/dist/bundle/{chunk-NBN5OYXH.js → chunk-NXDQXDRN.js} +3 -3
- package/dist/bundle/{chunk-GHVRCLJI.js → chunk-ODBK56ZR.js} +1 -1
- package/dist/bundle/{chunk-7GE6KMLB.js → chunk-OX6574YV.js} +11 -11
- package/dist/bundle/{chunk-2R6ZSE3O.js → chunk-PJA43HVE.js} +2 -2
- package/dist/bundle/{chunk-5AOFOJQA.js → chunk-Q3ZO6Q3M.js} +4 -4
- package/dist/bundle/{chunk-FD44T7HC.js → chunk-QO4ON2X7.js} +1 -1
- package/dist/bundle/{chunk-Y65BQJOY.js → chunk-QYN5RDTZ.js} +2 -2
- package/dist/bundle/{chunk-R52ZZZKZ.js → chunk-R4QVV3LN.js} +23 -12
- package/dist/bundle/{chunk-UIQMBOXU.js → chunk-RIGNCUZD.js} +1 -1
- package/dist/bundle/{chunk-5SN6KFPC.js → chunk-RZFIQMOA.js} +55 -52
- package/dist/bundle/{chunk-4MKRKW6V.js → chunk-SDLJJF7E.js} +12 -12
- package/dist/bundle/{chunk-HPM47WO3.js → chunk-T2CWSFGY.js} +394 -378
- package/dist/bundle/{chunk-JFQZ6BWI.js → chunk-TGUXKG4B.js} +16 -16
- package/dist/bundle/{chunk-Y62I2T36.js → chunk-TQFUAKU6.js} +1 -1
- package/dist/bundle/{chunk-UW34Z7J3.js → chunk-UURJO46N.js} +1 -1
- package/dist/bundle/{chunk-K4VO7S6Q.js → chunk-WG3BF7SA.js} +1 -1
- package/dist/bundle/{chunk-YIPOWJPN.js → chunk-WMF6SL5D.js} +1 -1
- package/dist/bundle/{chunk-UY2TRFYN.js → chunk-WMUPZ3IY.js} +10 -10
- package/dist/bundle/{chunk-H7GAFD4N.js → chunk-WPMJQIEU.js} +1 -1
- package/dist/bundle/{chunk-5FDYMMEQ.js → chunk-XYAH6QQO.js} +2 -2
- package/dist/bundle/{chunk-YZGIQY2R.js → chunk-YSXDCSBP.js} +33 -23
- package/dist/bundle/{chunk-45URY64S.js → chunk-YVV5S2QA.js} +1 -1
- package/dist/bundle/{chunk-5KZKVKWU.js → chunk-ZVLYK6CZ.js} +6 -6
- package/dist/bundle/{command-contract-DY6Y4TES.js → command-contract-3BSXDYBC.js} +13 -13
- package/dist/bundle/{command-server-entry-UG2CLYXI.js → command-server-entry-BU3X4XNL.js} +20 -20
- package/dist/bundle/{decode-3NEUZJ2N.js → decode-NXB7E46F.js} +2 -2
- package/dist/bundle/{echarts-CN6ZVAJZ.js → echarts-NAXLKJLA.js} +2 -2
- package/dist/bundle/{embed-M4EHIKA5.js → embed-LB6ONWHX.js} +3 -3
- package/dist/bundle/{embedder-K2XL2UB4.js → embedder-WE7B2RU5.js} +6 -6
- package/dist/bundle/{entry-6M55YL2H.js → entry-W6Y52ZRN.js} +6 -6
- package/dist/bundle/{first-run-TLJILIOF.js → first-run-NVYNZZA6.js} +5 -5
- package/dist/bundle/{first-screen-WME7ILW2.js → first-screen-Z6TVHK6I.js} +14 -14
- package/dist/bundle/{instructions-QLC2AXAB.js → instructions-MRUC57NS.js} +1 -1
- package/dist/bundle/{node-BAA3T4CH.js → node-G7PMDYQV.js} +2 -2
- package/dist/bundle/{node-sqlite-FNYVHQCO.js → node-sqlite-RXWQ3SES.js} +4 -4
- package/dist/bundle/{oauth-32T5KL5E.js → oauth-6ZWOL6KX.js} +4 -4
- package/dist/bundle/{open-4VQ6FUEI.js → open-V7LMZCFI.js} +2 -2
- package/dist/bundle/{openai-HDOKCN3Z.js → openai-P472V4ZM.js} +12 -12
- package/dist/bundle/{process-GOUBIWKC.js → process-GSNPENHL.js} +1 -1
- package/dist/bundle/{program-QFXJL2R5.js → program-IELITPKT.js} +46 -46
- package/dist/bundle/{prompt-YYODWYFO.js → prompt-2CP6CQ5N.js} +2 -2
- package/dist/bundle/{recognize-7ZULX5HL.js → recognize-R2DEQ5TC.js} +1 -1
- package/dist/bundle/{remote-TUG7M5Y5.js → remote-JG3POFES.js} +6 -6
- package/dist/bundle/{rerank-D2EZWG66.js → rerank-TVMR3OLL.js} +4 -4
- package/dist/bundle/{serve-MP3GA2XX.js → serve-DBWSMLPH.js} +6 -6
- package/dist/bundle/{server-D277L3H3.js → server-EXJ2WNZY.js} +37 -35
- package/dist/bundle/server-SXNFFAIR.js +61 -0
- package/dist/bundle/{sqlite-runtime-XHZXEOLY.js → sqlite-runtime-AWMY7W4Q.js} +3 -3
- package/dist/bundle/{state-YI3W6HGO.js → state-HN44BWNQ.js} +3 -3
- package/dist/bundle/{store-C4RFPYPK.js → store-GIYS3LHV.js} +9 -9
- package/dist/bundle/{store-CIZPJFWE.js → store-LOVKYQDC.js} +11 -11
- package/dist/bundle/store-maintenance-command-X3VOYNCG.js +52 -0
- package/dist/bundle/tg.js +3 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/chunk-ZIPUVOGT.js +0 -76
- package/dist/bundle/server-GEP7QXGI.js +0 -62
- package/dist/bundle/store-maintenance-command-JNDYWFD2.js +0 -52
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SDLJJF7E.js";
|
|
12
12
|
import {
|
|
13
13
|
isNewer,
|
|
14
14
|
updateCommand
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
localOnly,
|
|
18
18
|
refuseOffComputer,
|
|
19
19
|
remoteKey
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KF2Q776U.js";
|
|
21
21
|
import {
|
|
22
22
|
Unzip,
|
|
23
23
|
UnzipInflate,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
placedText,
|
|
29
29
|
runEmbedders,
|
|
30
30
|
textModelsDirectory
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-4DSIGS2E.js";
|
|
32
32
|
import {
|
|
33
33
|
AGENDA_COLUMNS,
|
|
34
34
|
BUSINESS_FIND_MAX,
|
|
@@ -108,13 +108,13 @@ import {
|
|
|
108
108
|
validateAst,
|
|
109
109
|
validateFields,
|
|
110
110
|
withoutField
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-T2CWSFGY.js";
|
|
112
112
|
import {
|
|
113
113
|
DEFAULT_STEMMERS,
|
|
114
114
|
createStemmer,
|
|
115
115
|
fold,
|
|
116
116
|
normalize
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-2A3TC52A.js";
|
|
118
118
|
import {
|
|
119
119
|
EmptyAnswer,
|
|
120
120
|
MAX_MODEL_IMAGE_BYTES,
|
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
range,
|
|
124
124
|
systemFor,
|
|
125
125
|
validateImages
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-3UGRMFWK.js";
|
|
127
127
|
import {
|
|
128
128
|
CEILING_KEY,
|
|
129
129
|
Command,
|
|
@@ -136,6 +136,7 @@ import {
|
|
|
136
136
|
LINK,
|
|
137
137
|
Option,
|
|
138
138
|
PREVIOUS_DEFAULT_TEXT_MODEL,
|
|
139
|
+
STORE_ONLY_KEYS,
|
|
139
140
|
WEIGHTS,
|
|
140
141
|
agenda,
|
|
141
142
|
annotate,
|
|
@@ -166,32 +167,34 @@ import {
|
|
|
166
167
|
sharedCommand,
|
|
167
168
|
skipFlagFor,
|
|
168
169
|
snakeKeys,
|
|
170
|
+
stops,
|
|
169
171
|
tagging,
|
|
170
172
|
task,
|
|
171
173
|
textModel,
|
|
172
174
|
textModels,
|
|
173
175
|
vectorModelKey,
|
|
174
176
|
writeTextModelsSection
|
|
175
|
-
} from "./chunk-
|
|
177
|
+
} from "./chunk-2QHIOPSA.js";
|
|
176
178
|
import {
|
|
177
179
|
MESSENGER_CHANGE_REFUSAL,
|
|
178
180
|
ancestorValue,
|
|
179
181
|
envName,
|
|
180
182
|
readOnlyLockOf,
|
|
181
183
|
readOnlyRefusal
|
|
182
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-YVV5S2QA.js";
|
|
183
185
|
import {
|
|
184
186
|
PLAIN_HTTP_REFUSED,
|
|
185
187
|
endpoint,
|
|
186
188
|
endpointFetch,
|
|
187
189
|
modelAddressAllowed,
|
|
188
190
|
onThisComputer
|
|
189
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-RIGNCUZD.js";
|
|
190
192
|
import {
|
|
191
193
|
installFiles,
|
|
192
194
|
megabytes
|
|
193
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-BVCRDHI2.js";
|
|
194
196
|
import {
|
|
197
|
+
BACKENDS,
|
|
195
198
|
EVENT_QUERY,
|
|
196
199
|
INTERNAL_NOTES,
|
|
197
200
|
LOG_ATTRIBUTES,
|
|
@@ -243,12 +246,13 @@ import {
|
|
|
243
246
|
listedHolds,
|
|
244
247
|
logAttributes,
|
|
245
248
|
meetingCueFingerprint,
|
|
246
|
-
|
|
249
|
+
meetingDetailsBody,
|
|
247
250
|
meetingHitsList,
|
|
248
251
|
meetingPeople,
|
|
252
|
+
meetingShowThrough,
|
|
249
253
|
meetingSummaryAnswer,
|
|
250
254
|
meetingTranscriptAnswer,
|
|
251
|
-
|
|
255
|
+
meetingsListThrough,
|
|
252
256
|
meetingsQuery,
|
|
253
257
|
normalizeTag,
|
|
254
258
|
parseLocator,
|
|
@@ -260,8 +264,10 @@ import {
|
|
|
260
264
|
pull,
|
|
261
265
|
queryError,
|
|
262
266
|
queryFieldsOf,
|
|
267
|
+
rangeOf,
|
|
263
268
|
readMeetingProjectEvidence,
|
|
264
269
|
sameAs,
|
|
270
|
+
serviceCallsOf,
|
|
265
271
|
sourceOf2 as sourceOf,
|
|
266
272
|
sourceOf3 as sourceOf2,
|
|
267
273
|
strongRecordingValidator,
|
|
@@ -271,24 +277,25 @@ import {
|
|
|
271
277
|
validateMeetingPassage,
|
|
272
278
|
validateQuery,
|
|
273
279
|
walkQuery,
|
|
280
|
+
windowOf,
|
|
274
281
|
withAttempt,
|
|
275
282
|
zonedMoment
|
|
276
|
-
} from "./chunk-
|
|
283
|
+
} from "./chunk-AF2XVV5P.js";
|
|
277
284
|
import {
|
|
278
285
|
isCliFailure,
|
|
279
286
|
sqliteCode
|
|
280
|
-
} from "./chunk-
|
|
287
|
+
} from "./chunk-MGBVVQTU.js";
|
|
281
288
|
import {
|
|
282
289
|
DEFAULT_TASK_CATEGORIES,
|
|
283
290
|
FALLBACK_CATEGORY,
|
|
284
291
|
readSharedSection,
|
|
285
292
|
sharedConfigPath,
|
|
286
293
|
writeSharedSection
|
|
287
|
-
} from "./chunk-
|
|
294
|
+
} from "./chunk-7D6LI2N7.js";
|
|
288
295
|
import {
|
|
289
296
|
storePath,
|
|
290
297
|
wirecatDirectory
|
|
291
|
-
} from "./chunk-
|
|
298
|
+
} from "./chunk-TQFUAKU6.js";
|
|
292
299
|
import {
|
|
293
300
|
Credentials,
|
|
294
301
|
logRecordOf,
|
|
@@ -16951,7 +16958,7 @@ var require_lib3 = __commonJS({
|
|
|
16951
16958
|
}
|
|
16952
16959
|
});
|
|
16953
16960
|
|
|
16954
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16961
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16955
16962
|
var RULES_VERSION = 5;
|
|
16956
16963
|
var LOOK_BACK = 50;
|
|
16957
16964
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -17041,10 +17048,10 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
17041
17048
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
17042
17049
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
17043
17050
|
|
|
17044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17051
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
17045
17052
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
17046
17053
|
|
|
17047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17054
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
17048
17055
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
17049
17056
|
import { open, stat } from "node:fs/promises";
|
|
17050
17057
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -17277,15 +17284,15 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read) => {
|
|
|
17277
17284
|
return { name, source };
|
|
17278
17285
|
}, "readStickerFile");
|
|
17279
17286
|
|
|
17280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17287
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17281
17288
|
import { randomBytes } from "node:crypto";
|
|
17282
17289
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17283
17290
|
var newOperationId = newSendId;
|
|
17284
17291
|
|
|
17285
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17292
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17286
17293
|
import { randomUUID } from "node:crypto";
|
|
17287
17294
|
|
|
17288
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17295
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
17289
17296
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
17290
17297
|
import { dirname as dirname2, join } from "node:path";
|
|
17291
17298
|
var MOST_DEADLINES = 50;
|
|
@@ -17369,11 +17376,11 @@ var FloodMemory = class {
|
|
|
17369
17376
|
}
|
|
17370
17377
|
};
|
|
17371
17378
|
|
|
17372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17379
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17373
17380
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
17374
17381
|
import { dirname as dirname4, join as join2 } from "node:path";
|
|
17375
17382
|
|
|
17376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17383
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
17377
17384
|
import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
|
|
17378
17385
|
import { dirname as dirname3 } from "node:path";
|
|
17379
17386
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -17440,7 +17447,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
17440
17447
|
}
|
|
17441
17448
|
}, "lockTime");
|
|
17442
17449
|
|
|
17443
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17450
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17444
17451
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
17445
17452
|
var SendJournal = class {
|
|
17446
17453
|
static {
|
|
@@ -17517,7 +17524,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
17517
17524
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
17518
17525
|
}, "withSendId");
|
|
17519
17526
|
|
|
17520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17527
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
17521
17528
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
17522
17529
|
import { join as join3 } from "node:path";
|
|
17523
17530
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -17629,23 +17636,14 @@ var RecipientList = class {
|
|
|
17629
17636
|
}
|
|
17630
17637
|
};
|
|
17631
17638
|
|
|
17632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17639
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17633
17640
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
17634
|
-
var READS = /* @__PURE__ */ new Set([
|
|
17635
|
-
"attachments.extract",
|
|
17636
|
-
"conversations.embeddings",
|
|
17637
|
-
"conversations.links",
|
|
17638
|
-
"messages.server-search",
|
|
17639
|
-
"messages.sync-first",
|
|
17640
|
-
"stats.contacts.top.sync-first",
|
|
17641
|
-
"stats.messages.counters.sync",
|
|
17642
|
-
"stats.messages.show.sync-first",
|
|
17643
|
-
"stats.messages.top.sync-first",
|
|
17644
|
-
"store.gaps.repair"
|
|
17645
|
-
]);
|
|
17646
17641
|
var countsTowardLimit = /* @__PURE__ */ __name(({ kind = "message", action: action2, notify }) => kind === "message" || kind === "forward" || kind === "edit" || kind === "delete" || kind === "pin" && notify === true || action2 === "create" || action2 === "members.add" || action2 === "requests.accept" || action2 === "join" || action2 === "contact-import", "countsTowardLimit");
|
|
17647
17642
|
var weightOf = /* @__PURE__ */ __name(({ kind = "message", action: action2, count: count4, people }) => kind === "delete" || kind === "message" && action2 === void 0 ? Math.max(1, count4 ?? 1) : action2 === "create" || action2 === "members.add" || action2 === "requests.accept" || action2 === "contact-import" ? Math.max(1, people ?? count4 ?? 1) : 1, "weightOf");
|
|
17648
|
-
var timeOf = /* @__PURE__ */ __name((entry) =>
|
|
17643
|
+
var timeOf = /* @__PURE__ */ __name((entry) => {
|
|
17644
|
+
const scheduled = entry.scheduledFor === void 0 ? Number.NaN : Date.parse(entry.scheduledFor);
|
|
17645
|
+
return Number.isNaN(scheduled) ? Date.parse(entry.at) : scheduled;
|
|
17646
|
+
}, "timeOf");
|
|
17649
17647
|
var ceilingRefusal = /* @__PURE__ */ __name((key, command) => new CliError("permission_error", `${key} is not allowed: setup's answer keeps every WireCat tool read-only; the owner changes it at a terminal with \`${command} setup\``, { permission: key }), "ceilingRefusal");
|
|
17650
17648
|
var levelRefusal = /* @__PURE__ */ __name((refused, fix = `${refused.command} ${refused.profile} config set permissions.${refused.key} allow`) => refused.named === CEILING_KEY ? ceilingRefusal(refused.key, refused.command) : new CliError("permission_error", `profile ${refused.profile} does not let ${refused.key} write (permissions.${refused.named} is ${refused.level}, from the ${refused.permissionSources[refused.named ?? ""] ?? "default"}); to allow it: ${fix}`, { permission: refused.key }), "levelRefusal");
|
|
17651
17649
|
var sendGuard = /* @__PURE__ */ __name(({ profile, recipients, command = recipients.command, readOnlyLock, permissions, permissionSources = {}, permissionDefaults, permissionFix, ask: ask2 = refuseToAsk, sendsPerHour, journal, flood, warn, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now") }) => {
|
|
@@ -17653,13 +17651,13 @@ var sendGuard = /* @__PURE__ */ __name(({ profile, recipients, command = recipie
|
|
|
17653
17651
|
let reservation;
|
|
17654
17652
|
const answered = /* @__PURE__ */ new WeakSet();
|
|
17655
17653
|
const refuseReadOnly = /* @__PURE__ */ __name(({ key }) => {
|
|
17656
|
-
if (key !== void 0 &&
|
|
17654
|
+
if (key !== void 0 && STORE_ONLY_KEYS.has(key))
|
|
17657
17655
|
return;
|
|
17658
17656
|
if (readOnlyLock)
|
|
17659
17657
|
throw readOnlyRefusal(readOnlyLock, MESSENGER_CHANGE_REFUSAL);
|
|
17660
17658
|
}, "refuseReadOnly");
|
|
17661
17659
|
const refuseHeld = /* @__PURE__ */ __name(({ key }) => {
|
|
17662
|
-
if (key !== void 0 &&
|
|
17660
|
+
if (key !== void 0 && STORE_ONLY_KEYS.has(key))
|
|
17663
17661
|
return;
|
|
17664
17662
|
const block = flood?.sendBlock();
|
|
17665
17663
|
if (!block)
|
|
@@ -17673,7 +17671,7 @@ var sendGuard = /* @__PURE__ */ __name(({ profile, recipients, command = recipie
|
|
|
17673
17671
|
if (levels !== void 0) {
|
|
17674
17672
|
const key = request.key ?? keyForWrite(kind, action2);
|
|
17675
17673
|
const { level: level2, key: named2 } = levelFor(levels, key, permissionDefaults);
|
|
17676
|
-
if (level2
|
|
17674
|
+
if (stops(level2, key))
|
|
17677
17675
|
throw levelRefusal({ profile, command, key, level: level2, named: named2, permissionSources }, permissionFix?.(request, key));
|
|
17678
17676
|
if (level2 === "ask" && !answered.has(request)) {
|
|
17679
17677
|
throw new CliError("confirmation_required", `${key} asks before it acts, and it was not asked`);
|
|
@@ -17696,6 +17694,8 @@ var sendGuard = /* @__PURE__ */ __name(({ profile, recipients, command = recipie
|
|
|
17696
17694
|
throw new CliError("rate_limited", `${count4} at once is more than the hourly limit of profile ${profile} (sendsPerHour ${sendsPerHour}) \u2014 do fewer at a time`);
|
|
17697
17695
|
}
|
|
17698
17696
|
const at = request.scheduledFor ? Date.parse(request.scheduledFor) : now().getTime();
|
|
17697
|
+
if (Number.isNaN(at))
|
|
17698
|
+
throw new CliError("validation_error", `"${request.scheduledFor}" is not a time to send at \u2014 use ISO 8601`);
|
|
17699
17699
|
const counted2 = entries.filter(countsTowardLimit).filter((entry) => entry.outcome === "sent" || entry.outcome === "outcome_unknown" || entry.outcome === "reserved").filter((entry) => Math.abs(timeOf(entry) - at) < HOUR_MS);
|
|
17700
17700
|
const unsure = /* @__PURE__ */ __name((entry) => entry.outcome === "outcome_unknown", "unsure");
|
|
17701
17701
|
const same2 = /* @__PURE__ */ __name((a, b) => a.sendId !== void 0 && a.sendId === b.sendId && a.chatId === b.chatId, "same");
|
|
@@ -17824,7 +17824,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
17824
17824
|
}), "guardFor");
|
|
17825
17825
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
17826
17826
|
|
|
17827
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17827
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17828
17828
|
var COMMAND_NEEDS = {
|
|
17829
17829
|
"account update": ["updateProfile", "change the profile"],
|
|
17830
17830
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17874,7 +17874,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17874
17874
|
return group;
|
|
17875
17875
|
}, "hideNever");
|
|
17876
17876
|
|
|
17877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17877
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17878
17878
|
var AUDIT_PAGE = 200;
|
|
17879
17879
|
var AUDIT_BUDGET = 10;
|
|
17880
17880
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17954,7 +17954,82 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17954
17954
|
return found;
|
|
17955
17955
|
}, "burstJoins");
|
|
17956
17956
|
|
|
17957
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17957
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/meetings/cli/management.js
|
|
17958
|
+
var REMOTE_READ = { remote: "read", local: "read" };
|
|
17959
|
+
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
17960
|
+
var minutes = /* @__PURE__ */ __name((text2) => {
|
|
17961
|
+
if (!/^[1-9]\d*$/.test(text2))
|
|
17962
|
+
throw new InvalidArgumentError("expected whole minutes");
|
|
17963
|
+
return Number(text2);
|
|
17964
|
+
}, "minutes");
|
|
17965
|
+
var changeOptions = /* @__PURE__ */ __name((command) => command.option("--title <title>", "the meeting's title").addOption(new Option("--kind <kind>", "an instant or a scheduled meeting").choices(["instant", "scheduled"])).option("--start-time <time>", "when it starts: an ISO time with its offset, 2026-11-20T10:00:00+01:00").option("--duration-minutes <minutes>", "how long it lasts, 1\u20131440", minutes).option("--timezone <zone>", "its IANA time zone, Europe/Madrid").option("--agenda <text>", "its agenda"), "changeOptions");
|
|
17966
|
+
var changeOf = /* @__PURE__ */ __name((flags) => Object.fromEntries(["title", "kind", "startTime", "durationMinutes", "timezone", "agenda"].flatMap((key) => flags[key] === void 0 ? [] : [[key, flags[key]]])), "changeOf");
|
|
17967
|
+
var meetingOf = /* @__PURE__ */ __name((one) => ({
|
|
17968
|
+
id: one.id,
|
|
17969
|
+
title: one.title,
|
|
17970
|
+
kind: one.kind,
|
|
17971
|
+
start_time: one.startTime,
|
|
17972
|
+
duration_minutes: one.durationMinutes,
|
|
17973
|
+
timezone: one.timezone,
|
|
17974
|
+
agenda: one.agenda,
|
|
17975
|
+
join_url: one.joinUrl
|
|
17976
|
+
}), "meetingOf");
|
|
17977
|
+
var receiptItem = /* @__PURE__ */ __name((receipt) => {
|
|
17978
|
+
const { change } = receipt;
|
|
17979
|
+
return {
|
|
17980
|
+
action: receipt.action,
|
|
17981
|
+
provider: receipt.scope.provider,
|
|
17982
|
+
account: receipt.scope.account,
|
|
17983
|
+
...receipt.id === void 0 ? {} : { id: receipt.id },
|
|
17984
|
+
...receipt.occurrenceId === void 0 ? {} : { occurrence_id: receipt.occurrenceId },
|
|
17985
|
+
...change ? {
|
|
17986
|
+
change: {
|
|
17987
|
+
...change.title === void 0 ? {} : { title: change.title },
|
|
17988
|
+
...change.kind === void 0 ? {} : { kind: change.kind },
|
|
17989
|
+
...change.startTime === void 0 ? {} : { start_time: change.startTime },
|
|
17990
|
+
...change.durationMinutes === void 0 ? {} : { duration_minutes: change.durationMinutes },
|
|
17991
|
+
...change.timezone === void 0 ? {} : { timezone: change.timezone },
|
|
17992
|
+
...change.agenda === void 0 ? {} : { agenda: change.agenda }
|
|
17993
|
+
}
|
|
17994
|
+
} : {},
|
|
17995
|
+
applied: receipt.applied,
|
|
17996
|
+
...receipt.meeting ? { meeting: meetingOf(receipt.meeting) } : {}
|
|
17997
|
+
};
|
|
17998
|
+
}, "receiptItem");
|
|
17999
|
+
var addMeetingManagementCommands = /* @__PURE__ */ __name((group, deps) => {
|
|
18000
|
+
const { management, print, output, inRun, askFirst } = deps;
|
|
18001
|
+
const has = /* @__PURE__ */ __name((name) => management.capabilities.includes(name), "has");
|
|
18002
|
+
const mutation = /* @__PURE__ */ __name(async (command) => {
|
|
18003
|
+
const dryRun = command.optsWithGlobals().dryRun === true;
|
|
18004
|
+
if (!dryRun) {
|
|
18005
|
+
if (!askFirst)
|
|
18006
|
+
throw new CliError("configuration_error", "this tool cannot ask before it changes a meeting on the service");
|
|
18007
|
+
await askFirst(command);
|
|
18008
|
+
}
|
|
18009
|
+
return { apply: true, dryRun };
|
|
18010
|
+
}, "mutation");
|
|
18011
|
+
const write = /* @__PURE__ */ __name((name) => annotate(group.command(name), { effects: REMOTE_WRITE, offline: false, output: { entity: "meeting_change" } }), "write");
|
|
18012
|
+
const target2 = /* @__PURE__ */ __name((command) => command.argument("<meeting>", "the service's id of the meeting"), "target");
|
|
18013
|
+
if (has("create"))
|
|
18014
|
+
output(changeOptions(write("create").description("create a meeting on the service"))).action(async (flags, command) => inRun(command, async () => print({ item: receiptItem(await management.create(changeOf(flags), await mutation(command))) }, command)));
|
|
18015
|
+
if (has("update"))
|
|
18016
|
+
output(changeOptions(target2(write("update").description("change a meeting on the service")))).action(async (id2, flags, command) => inRun(command, async () => print({ item: receiptItem(await management.update(id2, changeOf(flags), await mutation(command))) }, command)));
|
|
18017
|
+
if (has("cancel"))
|
|
18018
|
+
output(target2(write("cancel").description("cancel a meeting on the service")).option("--occurrence-id <id>", "cancel only this occurrence of a repeating meeting")).action(async (id2, flags, command) => inRun(command, async () => print({
|
|
18019
|
+
item: receiptItem(await management.cancel(id2, {
|
|
18020
|
+
...await mutation(command),
|
|
18021
|
+
...flags.occurrenceId === void 0 ? {} : { occurrenceId: flags.occurrenceId }
|
|
18022
|
+
}))
|
|
18023
|
+
}, command)));
|
|
18024
|
+
if (has("invitation"))
|
|
18025
|
+
output(target2(annotate(group.command("invitation"), {
|
|
18026
|
+
effects: REMOTE_READ,
|
|
18027
|
+
offline: false,
|
|
18028
|
+
output: { entity: "meeting_invitation" }
|
|
18029
|
+
}).description("the invitation text the service writes for a meeting"))).action(async (id2, _flags, command) => inRun(command, async () => print({ item: { ...await management.invitation(id2), untrusted: ["invitation"] } }, command)));
|
|
18030
|
+
}, "addMeetingManagementCommands");
|
|
18031
|
+
|
|
18032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17958
18033
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17959
18034
|
command.allowUnknownOption();
|
|
17960
18035
|
const parse2 = command.parseOptions.bind(command);
|
|
@@ -17974,7 +18049,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17974
18049
|
return command;
|
|
17975
18050
|
}, "queryWordsAfterOptions");
|
|
17976
18051
|
|
|
17977
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18052
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17978
18053
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17979
18054
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17980
18055
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -18016,7 +18091,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
18016
18091
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
18017
18092
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
18018
18093
|
|
|
18019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18094
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
18020
18095
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
18021
18096
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
18022
18097
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -18039,15 +18114,20 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
18039
18114
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
18040
18115
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
18041
18116
|
|
|
18042
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18117
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
18043
18118
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
18119
|
+
var AGO = /^(\d+)(m|h|d)$/;
|
|
18120
|
+
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
18044
18121
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
18122
|
+
const [, amount, unit] = AGO.exec(value.trim()) ?? [];
|
|
18123
|
+
if (amount && unit)
|
|
18124
|
+
return Date.now() - Number(amount) * (AGO_MS[unit] ?? 0);
|
|
18045
18125
|
const zone = timezoneOf();
|
|
18046
18126
|
let time;
|
|
18047
18127
|
try {
|
|
18048
18128
|
time = zonedMoment(value, zone, { start: 0, end: value.length }, { end });
|
|
18049
18129
|
} catch {
|
|
18050
|
-
throw new CliError("validation_error", `${flag} takes an ISO date,
|
|
18130
|
+
throw new CliError("validation_error", `${flag} takes an ISO date, a time with or without an offset, or 30m, 2h, 7d ago`);
|
|
18051
18131
|
}
|
|
18052
18132
|
if (!ZONED.test(value.trim()))
|
|
18053
18133
|
readIn(zone);
|
|
@@ -18065,7 +18145,7 @@ var createMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program) => {
|
|
|
18065
18145
|
program.addCommand(search);
|
|
18066
18146
|
}
|
|
18067
18147
|
const readIn = /* @__PURE__ */ __name((zone) => command.setOptionValue("timesReadIn", zone), "readIn");
|
|
18068
|
-
const command = search.command("meetings").description("find words in stored meetings, indexing new ones first").argument("<query>", 'words, OR, (groups), -word, "a phrase", "a b"~N (within N lines), exact:word, from:"Name" (who said the line); date>=30d, project:, tag:, topic: choose meetings; a word also matches its other forms and spellings speech recognition garbled').option("--meeting-id <id>", "only this stored meeting", integer3).option("--identity-id <id>", "meetings with this participant identity; does not say who spoke a hit", integer3).option("--person-id <id>", "meetings with a participant linked to this person", integer3).option("--event-id <id>", "only meetings linked to this stored event", integer3).option("--series-id <id>", "only meetings in this stored series", integer3).option("--project <project>", "meetings confirmed in this project, by name, key or alias").option("--tag <name>", "meetings with this tag, by name or alias").option("--topic-name <name>", "meetings with this topic, by name or alias").option("--since-time <time>", "meetings starting at or after this ISO 8601 date or time", moment("--since-time", false, readIn)).option("--until-time <time>", "meetings starting at or before this ISO 8601 date or time; a date alone covers that whole local day", moment("--until-time", true, readIn)).option("--limit <n>", "how many hits, 1 through 1000 (default 100)", integer3).option("--cursor <cursor>", "continue from the previous page's page.next_cursor, with the same query and filters").option("--max-read-bytes <bytes>", "most stored bytes to read, 1 through 67108864 (default 4194304)", integer3);
|
|
18148
|
+
const command = search.command("meetings").description("find words in stored meetings, indexing new ones first").argument("<query>", 'words, OR, (groups), -word, "a phrase", "a b"~N (within N lines), exact:word, from:"Name" (who said the line); date>=30d, project:, tag:, topic: choose meetings; a word also matches its other forms and spellings speech recognition garbled').option("--meeting-id <id>", "only this stored meeting", integer3).option("--identity-id <id>", "meetings with this participant identity; does not say who spoke a hit", integer3).option("--person-id <id>", "meetings with a participant linked to this person", integer3).option("--event-id <id>", "only meetings linked to this stored event", integer3).option("--series-id <id>", "only meetings in this stored series", integer3).option("--project <project>", "meetings confirmed in this project, by name, key or alias").option("--tag <name>", "meetings with this tag, by name or alias").option("--topic-name <name>", "meetings with this topic, by name or alias").option("--since-time <time>", "meetings starting at or after this ISO 8601 date or time, or 30m, 2h, 7d ago", moment("--since-time", false, readIn)).option("--until-time <time>", "meetings starting at or before this ISO 8601 date or time; a date alone covers that whole local day", moment("--until-time", true, readIn)).option("--limit <n>", "how many hits, 1 through 1000 (default 100)", integer3).option("--cursor <cursor>", "continue from the previous page's page.next_cursor, with the same query and filters").option("--max-read-bytes <bytes>", "most stored bytes to read, 1 through 67108864 (default 4194304)", integer3);
|
|
18069
18149
|
annotate(command, {
|
|
18070
18150
|
origin: "handwritten",
|
|
18071
18151
|
effects: { remote: "none", local: "read" },
|
|
@@ -18125,7 +18205,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
18125
18205
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
18126
18206
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
18127
18207
|
|
|
18128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18208
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
18129
18209
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
18130
18210
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
18131
18211
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -18144,6 +18224,14 @@ var date = /* @__PURE__ */ __name((text2) => {
|
|
|
18144
18224
|
}
|
|
18145
18225
|
}, "date");
|
|
18146
18226
|
var LOCAL_READ = { remote: "none", local: "read" };
|
|
18227
|
+
var REMOTE_READ2 = { remote: "read", local: "read" };
|
|
18228
|
+
var backendOf = /* @__PURE__ */ __name((value) => {
|
|
18229
|
+
if (!BACKENDS.includes(value))
|
|
18230
|
+
throw new InvalidArgumentError("expected archive, server or both");
|
|
18231
|
+
return value;
|
|
18232
|
+
}, "backendOf");
|
|
18233
|
+
var backendOption = /* @__PURE__ */ __name((command) => command.option("--backend <archive|server|both>", "where to read: the store (archive), the service (server), or both, kept in the store (default: both)", backendOf), "backendOption");
|
|
18234
|
+
var BACKEND_HELP = "--backend both asks the service with the part of the query it can filter, keeps what it returns, then runs the whole query over the store; each item says found_in archive, server or both. --offline reads the store only.";
|
|
18147
18235
|
var LOCAL_WRITE = { remote: "none", local: "write" };
|
|
18148
18236
|
var FETCH = { remote: "read", local: "write" };
|
|
18149
18237
|
var addMeetingCommandsDefinition = /* @__PURE__ */ __name((program, deps) => {
|
|
@@ -18159,20 +18247,44 @@ var addMeetingCommandsDefinition = /* @__PURE__ */ __name((program, deps) => {
|
|
|
18159
18247
|
const opts = command.optsWithGlobals();
|
|
18160
18248
|
deps.write(value, opts.json ? "json" : opts.jsonl ? "jsonl" : "text");
|
|
18161
18249
|
}, "print");
|
|
18162
|
-
const
|
|
18163
|
-
|
|
18164
|
-
|
|
18165
|
-
|
|
18250
|
+
const access = /* @__PURE__ */ __name((command, backend) => ({
|
|
18251
|
+
...backend === void 0 ? {} : { backend },
|
|
18252
|
+
offline: command.optsWithGlobals().offline === true,
|
|
18253
|
+
timezone: timezoneOf(deps.timezone),
|
|
18254
|
+
...deps.now ? { now: deps.now() } : {}
|
|
18255
|
+
}), "access");
|
|
18256
|
+
const list3 = queryWordsAfterOptions(group.command("list").description("meetings, newest first: the service's and the stored ones, kept in the store")).argument("[query...]", "field:value terms that narrow the list \u2014 the fields are below").addHelpText("after", `
|
|
18257
|
+
${fieldsHelp(MEETING_QUERY, MEETING_QUERY_GUIDE)}
|
|
18258
|
+
${BACKEND_HELP}`);
|
|
18259
|
+
annotate(list3, {
|
|
18260
|
+
effects: REMOTE_READ2,
|
|
18261
|
+
partial: true,
|
|
18262
|
+
query: defineQuery(MEETING_QUERY),
|
|
18263
|
+
output: { entity: "meeting" }
|
|
18264
|
+
});
|
|
18265
|
+
backendOption(output(list3)).option("--limit <n>", "meetings per page", integer4, 100).option("--page <n>", "page number", integer4, 1).action(async (words3, opts, command) => {
|
|
18166
18266
|
const query = meetingsQuery(words3.join(" "));
|
|
18167
|
-
|
|
18168
|
-
|
|
18169
|
-
|
|
18170
|
-
|
|
18171
|
-
|
|
18172
|
-
|
|
18267
|
+
await deps.inRun(command, async () => {
|
|
18268
|
+
const { server: _server, ...answer } = await meetingsListThrough(deps.source, deps.store, {
|
|
18269
|
+
accountId: deps.accountId,
|
|
18270
|
+
limit: opts.limit,
|
|
18271
|
+
offset: (opts.page - 1) * opts.limit,
|
|
18272
|
+
...query ? { query } : {}
|
|
18273
|
+
}, access(command, opts.backend));
|
|
18274
|
+
print(answer, command);
|
|
18275
|
+
});
|
|
18173
18276
|
});
|
|
18174
|
-
output(annotate(group.command("show"), { effects:
|
|
18175
|
-
|
|
18277
|
+
backendOption(output(annotate(group.command("show"), { effects: REMOTE_READ2, partial: true, output: { entity: "meeting_details" } }).description("show a meeting, read again from the service with its people, transcript and documents").argument("<meeting>", "the stored meeting's number, its meeting: ref, or the service's id (provider_id)").addHelpText("after", `${SAVE_HELP}
|
|
18278
|
+
${BACKEND_HELP}`))).action(async (meeting, opts, command) => {
|
|
18279
|
+
await deps.inRun(command, async () => {
|
|
18280
|
+
const shown = await meetingShowThrough(deps.source, deps.store, deps.accountId, meeting, access(command, opts.backend));
|
|
18281
|
+
const { item: item2 } = await meetingDetailsBody(deps.store, shown.details);
|
|
18282
|
+
print({
|
|
18283
|
+
item: shown.foundIn ? { ...item2, found_in: shown.foundIn } : item2,
|
|
18284
|
+
...shown.missing ? { missing: shown.missing } : {},
|
|
18285
|
+
...shown.meta ? { meta: shown.meta } : {}
|
|
18286
|
+
}, command);
|
|
18287
|
+
});
|
|
18176
18288
|
});
|
|
18177
18289
|
output(annotate(group.command("transcript"), { effects: LOCAL_READ, output: { entity: "meeting_transcript" } }).description("show current meeting transcripts").argument("<meeting>", "stored meeting id", integer4).option("--history", "include superseded transcript versions").addHelpText("after", SAVE_HELP)).action(async (id2, opts, command) => {
|
|
18178
18290
|
print(await meetingTranscriptAnswer(deps.store, id2, deps.accountId, { history: opts.history }), command);
|
|
@@ -18257,6 +18369,14 @@ ${deps.importHelp}`);
|
|
|
18257
18369
|
now: deps.now?.() ?? Date.now()
|
|
18258
18370
|
}), command);
|
|
18259
18371
|
});
|
|
18372
|
+
if (deps.management)
|
|
18373
|
+
addMeetingManagementCommands(group, {
|
|
18374
|
+
management: deps.management,
|
|
18375
|
+
print,
|
|
18376
|
+
output,
|
|
18377
|
+
inRun: deps.inRun,
|
|
18378
|
+
...deps.askFirst ? { askFirst: deps.askFirst } : {}
|
|
18379
|
+
});
|
|
18260
18380
|
const eventList = queryWordsAfterOptions(annotate(program.command("events").description("the owner's stored events"), {
|
|
18261
18381
|
effects: { remote: "none", local: "none" }
|
|
18262
18382
|
}).command("list")).description("list stored events").argument("[query...]", "event id, origin or time fields that narrow the list").addHelpText("after", `
|
|
@@ -18274,7 +18394,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
18274
18394
|
}, "addMeetingCommandsDefinition");
|
|
18275
18395
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
18276
18396
|
|
|
18277
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18397
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
18278
18398
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
18279
18399
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
18280
18400
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -18408,7 +18528,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
18408
18528
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
18409
18529
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
18410
18530
|
|
|
18411
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18531
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
18412
18532
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
18413
18533
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
18414
18534
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -18417,7 +18537,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
18417
18537
|
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");
|
|
18418
18538
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
18419
18539
|
|
|
18420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18540
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
18421
18541
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
18422
18542
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
18423
18543
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -18679,7 +18799,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
18679
18799
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
18680
18800
|
}), "sessionAnswer");
|
|
18681
18801
|
|
|
18682
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18802
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
18683
18803
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
18684
18804
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
18685
18805
|
if (key in own)
|
|
@@ -18696,7 +18816,7 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
18696
18816
|
return found.bind(adapter);
|
|
18697
18817
|
}, "capability");
|
|
18698
18818
|
|
|
18699
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18819
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
18700
18820
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
18701
18821
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
18702
18822
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -18758,7 +18878,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
18758
18878
|
}), "storedDeps");
|
|
18759
18879
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
18760
18880
|
|
|
18761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18881
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18762
18882
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18763
18883
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18764
18884
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -18781,10 +18901,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
18781
18901
|
}
|
|
18782
18902
|
}, "patiently");
|
|
18783
18903
|
|
|
18784
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18904
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18785
18905
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18786
18906
|
|
|
18787
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18788
18908
|
var REQUEST_MS = 400;
|
|
18789
18909
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18790
18910
|
const lowest = ranges[0];
|
|
@@ -18807,13 +18927,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18807
18927
|
};
|
|
18808
18928
|
}, "estimateBackfill");
|
|
18809
18929
|
|
|
18810
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18930
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18811
18931
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18812
18932
|
...error,
|
|
18813
18933
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18814
18934
|
}), "withRecovery");
|
|
18815
18935
|
|
|
18816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18817
18937
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18818
18938
|
if (isCliFailure(error))
|
|
18819
18939
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18896,7 +19016,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18896
19016
|
};
|
|
18897
19017
|
}, "mergeBatches");
|
|
18898
19018
|
|
|
18899
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19019
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/search/groups.js
|
|
18900
19020
|
var ALL = "all";
|
|
18901
19021
|
var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
|
|
18902
19022
|
var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
|
|
@@ -18968,7 +19088,7 @@ var groupEntries = /* @__PURE__ */ __name((saved) => ({
|
|
|
18968
19088
|
[ALL]: [ALL]
|
|
18969
19089
|
}), "groupEntries");
|
|
18970
19090
|
|
|
18971
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19091
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
18972
19092
|
var NO_MAIL = "no_mail";
|
|
18973
19093
|
var MAIL = "email";
|
|
18974
19094
|
var groupLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -19042,7 +19162,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
19042
19162
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
19043
19163
|
}, "accountsOfKind");
|
|
19044
19164
|
|
|
19045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19165
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
19046
19166
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
19047
19167
|
if (deps.reads !== "store")
|
|
19048
19168
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -19156,12 +19276,14 @@ var chatAmong = /* @__PURE__ */ __name(async (messenger, store, accounts, refere
|
|
|
19156
19276
|
const [only] = accounts;
|
|
19157
19277
|
if (accounts.length === 1 && only)
|
|
19158
19278
|
return { account: only, chatId: await storedChatId(messenger, reference, store, only, { includeLeft: true }) };
|
|
19159
|
-
const
|
|
19160
|
-
const held = (await store.chats.chats(account, {})).items;
|
|
19161
|
-
const chatId = await storedChatId(messenger, reference, store, account).catch(missing);
|
|
19279
|
+
const among = /* @__PURE__ */ __name(async (includeLeft) => (await Promise.all(accounts.map(async (account) => {
|
|
19280
|
+
const held = (await store.chats.chats(account, includeLeft ? { includeLeft } : {})).items;
|
|
19281
|
+
const chatId = await storedChatId(messenger, reference, store, account, { includeLeft }).catch(missing);
|
|
19162
19282
|
const chat = held.find((one2) => one2.id === chatId);
|
|
19163
19283
|
return chat ? [{ account, chat }] : [];
|
|
19164
|
-
}))).flat();
|
|
19284
|
+
}))).flat(), "among");
|
|
19285
|
+
const current = await among(false);
|
|
19286
|
+
const found = current.length > 0 ? current : await among(true);
|
|
19165
19287
|
const [one] = found;
|
|
19166
19288
|
if (found.length === 1 && one)
|
|
19167
19289
|
return { account: one.account, chatId: one.chat.id };
|
|
@@ -19241,7 +19363,7 @@ var chatsMatchingIn = /* @__PURE__ */ __name(async (store, accounts, pattern) =>
|
|
|
19241
19363
|
}, "chatsMatchingIn");
|
|
19242
19364
|
var isText = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "", "isText");
|
|
19243
19365
|
|
|
19244
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19366
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
19245
19367
|
var CONTEXT_MESSAGES = 3;
|
|
19246
19368
|
var CONTEXT_MINUTES = 10;
|
|
19247
19369
|
var MAX_CHARS = 1200;
|
|
@@ -19265,12 +19387,12 @@ var context = {
|
|
|
19265
19387
|
}, "describe")
|
|
19266
19388
|
};
|
|
19267
19389
|
|
|
19268
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19390
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
19269
19391
|
var BUILT_INS = [context];
|
|
19270
19392
|
var providers = [...BUILT_INS];
|
|
19271
19393
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
19272
19394
|
|
|
19273
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19395
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
19274
19396
|
var READ_PAGE = 5e3;
|
|
19275
19397
|
var CHAIN = 50;
|
|
19276
19398
|
var CONVERSATION_QUERY = {
|
|
@@ -19422,7 +19544,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
19422
19544
|
return size2;
|
|
19423
19545
|
}, "sized");
|
|
19424
19546
|
|
|
19425
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19547
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
19426
19548
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
19427
19549
|
var MESSAGE_PAGE = 5e3;
|
|
19428
19550
|
var PER_SESSION = 8;
|
|
@@ -19441,7 +19563,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19441
19563
|
price: remote.price,
|
|
19442
19564
|
installed: true,
|
|
19443
19565
|
perBatch: PER_REQUEST * concurrency,
|
|
19444
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
19566
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-JG3POFES.js")).openRemote(remote, apiKey, {
|
|
19445
19567
|
concurrency,
|
|
19446
19568
|
env: deps.env ?? process.env
|
|
19447
19569
|
}), "open")
|
|
@@ -19461,7 +19583,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19461
19583
|
if (!isTextModelInstalled(model, directory2))
|
|
19462
19584
|
throw notDownloaded(model.id);
|
|
19463
19585
|
if (apart) {
|
|
19464
|
-
const { openProcess } = await import("./process-
|
|
19586
|
+
const { openProcess } = await import("./process-GSNPENHL.js");
|
|
19465
19587
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
19466
19588
|
}
|
|
19467
19589
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -19750,7 +19872,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
19750
19872
|
return { ...one, state };
|
|
19751
19873
|
}, "shaped");
|
|
19752
19874
|
|
|
19753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19875
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
19754
19876
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
19755
19877
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
|
|
19756
19878
|
for (const [key, value, maximum] of [
|
|
@@ -19803,7 +19925,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
|
|
|
19803
19925
|
}
|
|
19804
19926
|
}, "catchUpSearch");
|
|
19805
19927
|
|
|
19806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
19807
19929
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
19808
19930
|
if (deps.reads === "store") {
|
|
19809
19931
|
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`);
|
|
@@ -20184,7 +20306,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
20184
20306
|
return message?.timestamp ?? fallback;
|
|
20185
20307
|
}, "timeOfKey");
|
|
20186
20308
|
|
|
20187
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20309
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
20188
20310
|
var LINKS = /https?:\/\/\S+/g;
|
|
20189
20311
|
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");
|
|
20190
20312
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -20214,7 +20336,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
20214
20336
|
});
|
|
20215
20337
|
}, "questions");
|
|
20216
20338
|
|
|
20217
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20339
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
20218
20340
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
20219
20341
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
20220
20342
|
const name = typed.trim().toLowerCase();
|
|
@@ -20271,7 +20393,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
20271
20393
|
return best.name;
|
|
20272
20394
|
}, "categorize");
|
|
20273
20395
|
|
|
20274
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20396
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
20275
20397
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
20276
20398
|
var RULES_IN = {
|
|
20277
20399
|
dialog: "all",
|
|
@@ -20477,18 +20599,18 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
20477
20599
|
return passes;
|
|
20478
20600
|
}, "applyTaskRulesToChats");
|
|
20479
20601
|
|
|
20480
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20602
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/domain/vcard.js
|
|
20481
20603
|
var AS_WORD = new RegExp(`^${WORD_BODY}$`);
|
|
20482
20604
|
var encoder = new TextEncoder();
|
|
20483
20605
|
|
|
20484
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20485
|
-
var
|
|
20486
|
-
var
|
|
20606
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
20607
|
+
var AGO2 = /^(\d+)(m|h|d)$/;
|
|
20608
|
+
var AGO_MS2 = { m: 6e4, h: 36e5, d: 864e5 };
|
|
20487
20609
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
20488
20610
|
var momentOf = /* @__PURE__ */ __name((reference, flag = "--since", now = Date.now(), at = {}) => {
|
|
20489
20611
|
const wanted = reference.trim();
|
|
20490
|
-
const [, amount, unit] =
|
|
20491
|
-
const time = amount && unit ? now - Number(amount) * (
|
|
20612
|
+
const [, amount, unit] = AGO2.exec(wanted) ?? [];
|
|
20613
|
+
const time = amount && unit ? now - Number(amount) * (AGO_MS2[unit] ?? 0) : DATE.test(wanted) ? calendarMoment(wanted, flag, at) : Number.NaN;
|
|
20492
20614
|
if (Number.isNaN(time)) {
|
|
20493
20615
|
throw new CliError("validation_error", `${flag} takes an ISO 8601 time or 30m, 2h, 1d ago \u2014 not "${wanted}"`);
|
|
20494
20616
|
}
|
|
@@ -20496,8 +20618,8 @@ var momentOf = /* @__PURE__ */ __name((reference, flag = "--since", now = Date.n
|
|
|
20496
20618
|
}, "momentOf");
|
|
20497
20619
|
var aheadOf = /* @__PURE__ */ __name((reference, flag, now = Date.now(), at = {}) => {
|
|
20498
20620
|
const wanted = reference.trim();
|
|
20499
|
-
const [, amount, unit] =
|
|
20500
|
-
const time = amount && unit ? now + Number(amount) * (
|
|
20621
|
+
const [, amount, unit] = AGO2.exec(wanted) ?? [];
|
|
20622
|
+
const time = amount && unit ? now + Number(amount) * (AGO_MS2[unit] ?? 0) : DATE.test(wanted) ? calendarMoment(wanted, flag, at) : Number.NaN;
|
|
20501
20623
|
if (Number.isNaN(time)) {
|
|
20502
20624
|
throw new CliError("validation_error", `${flag} takes an ISO 8601 time or 30m, 2h, 3d from now \u2014 not "${wanted}"`);
|
|
20503
20625
|
}
|
|
@@ -20521,7 +20643,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
20521
20643
|
};
|
|
20522
20644
|
}, "dateWindow");
|
|
20523
20645
|
|
|
20524
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20646
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
20525
20647
|
var DAY_MS = 864e5;
|
|
20526
20648
|
var NEW_DAYS = 30;
|
|
20527
20649
|
var SAME_TEXT_MIN = 20;
|
|
@@ -20598,7 +20720,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
20598
20720
|
};
|
|
20599
20721
|
}, "scorePerson");
|
|
20600
20722
|
|
|
20601
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
20602
20724
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
20603
20725
|
const controller = new AbortController();
|
|
20604
20726
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -20614,7 +20736,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run2) => {
|
|
|
20614
20736
|
}
|
|
20615
20737
|
}, "withTimeLimit");
|
|
20616
20738
|
|
|
20617
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20739
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
20618
20740
|
var REGISTRIES = {
|
|
20619
20741
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
20620
20742
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -20701,7 +20823,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
20701
20823
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
20702
20824
|
})), "notCovered");
|
|
20703
20825
|
|
|
20704
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20826
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
20705
20827
|
var ACTIVITY_MESSAGES = 1e3;
|
|
20706
20828
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
20707
20829
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20789,7 +20911,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
20789
20911
|
};
|
|
20790
20912
|
}, "botCheckService");
|
|
20791
20913
|
|
|
20792
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20914
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
20793
20915
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
20794
20916
|
if (value === void 0)
|
|
20795
20917
|
return void 0;
|
|
@@ -20799,7 +20921,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
20799
20921
|
return id2;
|
|
20800
20922
|
}, "threadIdOf");
|
|
20801
20923
|
|
|
20802
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20924
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
20803
20925
|
var TOP_POSTS = 5;
|
|
20804
20926
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
20805
20927
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20916,7 +21038,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20916
21038
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20917
21039
|
}, "median");
|
|
20918
21040
|
|
|
20919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21041
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20920
21042
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20921
21043
|
const events = [];
|
|
20922
21044
|
for (const stay of stays) {
|
|
@@ -20948,7 +21070,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20948
21070
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
20949
21071
|
}, "memberEvents");
|
|
20950
21072
|
|
|
20951
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21073
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20952
21074
|
var EVENTS_DAYS = 7;
|
|
20953
21075
|
var TRACKED_DAYS = 30;
|
|
20954
21076
|
var STATS_PAGE = 1e3;
|
|
@@ -21243,7 +21365,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
21243
21365
|
return members.length === 0 ? null : members;
|
|
21244
21366
|
}, "storedMembers");
|
|
21245
21367
|
|
|
21246
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
21247
21369
|
var INBOX_CHATS = 20;
|
|
21248
21370
|
var REVIEW_DAYS = 3;
|
|
21249
21371
|
var UNANSWERED_HOURS = 24;
|
|
@@ -21451,7 +21573,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
21451
21573
|
};
|
|
21452
21574
|
}, "inboxService");
|
|
21453
21575
|
|
|
21454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21576
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
21455
21577
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
21456
21578
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
21457
21579
|
const { text: text2, spans } = formatted2;
|
|
@@ -21494,9 +21616,9 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
21494
21616
|
const positions = /* @__PURE__ */ new Map([[0, 0]]);
|
|
21495
21617
|
let original = 0;
|
|
21496
21618
|
let visible = 0;
|
|
21497
|
-
for (const
|
|
21498
|
-
const rendered = text2.startsWith(
|
|
21499
|
-
original +=
|
|
21619
|
+
for (const character2 of formatted2.text) {
|
|
21620
|
+
const rendered = text2.startsWith(character2, visible) ? character2 : visibleControls(character2);
|
|
21621
|
+
original += character2.length;
|
|
21500
21622
|
visible += rendered.length;
|
|
21501
21623
|
positions.set(original, visible);
|
|
21502
21624
|
}
|
|
@@ -21511,7 +21633,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
21511
21633
|
};
|
|
21512
21634
|
}, "visibleFormattedText");
|
|
21513
21635
|
|
|
21514
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
21515
21637
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
21516
21638
|
var LINK2 = /https?:\/\/\S+/i;
|
|
21517
21639
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -21699,7 +21821,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
21699
21821
|
}, "nextPoint");
|
|
21700
21822
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
21701
21823
|
|
|
21702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21824
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
21703
21825
|
import { existsSync as existsSync2, readFileSync as readFileSync4 } from "node:fs";
|
|
21704
21826
|
import { join as join4 } from "node:path";
|
|
21705
21827
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -21842,7 +21964,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
21842
21964
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
21843
21965
|
}, "assign");
|
|
21844
21966
|
|
|
21845
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21967
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
|
|
21846
21968
|
var SCAN = 1e3;
|
|
21847
21969
|
var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { limit = 10, since, until } = {}) => {
|
|
21848
21970
|
const byId2 = new Map(accounts.map((one) => [one.id, one]));
|
|
@@ -21894,7 +22016,7 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
|
|
|
21894
22016
|
return { items, total: newest.length, hasMore: cut || newest.length > limit };
|
|
21895
22017
|
}, "personMeetings");
|
|
21896
22018
|
|
|
21897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22019
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
21898
22020
|
var CONTEXT_MESSAGES2 = 10;
|
|
21899
22021
|
var CONTEXT_BYTES = 64 * 1024;
|
|
21900
22022
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -22200,10 +22322,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
22200
22322
|
};
|
|
22201
22323
|
}, "personMessages");
|
|
22202
22324
|
|
|
22203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22325
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
22204
22326
|
import { createHash } from "node:crypto";
|
|
22205
22327
|
|
|
22206
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22328
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
22207
22329
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
22208
22330
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
|
|
22209
22331
|
const parsed = parseMeetingReference(reference);
|
|
@@ -22221,7 +22343,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
22221
22343
|
return { parsed, meeting };
|
|
22222
22344
|
}, "authorizedMeetingMetadata");
|
|
22223
22345
|
|
|
22224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22346
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
22225
22347
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
22226
22348
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
22227
22349
|
if (signal?.aborted)
|
|
@@ -22420,7 +22542,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
22420
22542
|
return { ...packet, fingerprint: hash(packet) };
|
|
22421
22543
|
}, "readMeetingEvidence");
|
|
22422
22544
|
|
|
22423
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
22424
22546
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
|
|
22425
22547
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
|
|
22426
22548
|
const requestedAccounts = options2.accountIds;
|
|
@@ -22519,7 +22641,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
22519
22641
|
};
|
|
22520
22642
|
}, "personMeetingContext");
|
|
22521
22643
|
|
|
22522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22644
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
22523
22645
|
var PREPARE_BYTES = 96 * 1024;
|
|
22524
22646
|
var MEETINGS = 5;
|
|
22525
22647
|
var CUES = 3;
|
|
@@ -22642,7 +22764,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
22642
22764
|
}
|
|
22643
22765
|
}, "meetingsOf");
|
|
22644
22766
|
|
|
22645
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22767
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
22646
22768
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
22647
22769
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
22648
22770
|
const held = await storeIfOpen(deps);
|
|
@@ -22712,7 +22834,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
22712
22834
|
complete: false
|
|
22713
22835
|
})), "quiet");
|
|
22714
22836
|
|
|
22715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22837
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
22716
22838
|
var TIMELINE_ITEMS = 50;
|
|
22717
22839
|
var TIMELINE_MAX = 500;
|
|
22718
22840
|
var SCOPES = ["personal", "work"];
|
|
@@ -22774,7 +22896,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
22774
22896
|
};
|
|
22775
22897
|
}, "personTimeline");
|
|
22776
22898
|
|
|
22777
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
22778
22900
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
22779
22901
|
const ids = [...new Set(chatIds)];
|
|
22780
22902
|
if (ids.length === 0)
|
|
@@ -22800,7 +22922,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
22800
22922
|
}));
|
|
22801
22923
|
}, "chatCoverage");
|
|
22802
22924
|
|
|
22803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
22804
22926
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
22805
22927
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
22806
22928
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -22864,7 +22986,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
22864
22986
|
}
|
|
22865
22987
|
}, "validateContextEvidencePage");
|
|
22866
22988
|
|
|
22867
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22989
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
22868
22990
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
22869
22991
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
22870
22992
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -22917,7 +23039,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
22917
23039
|
};
|
|
22918
23040
|
}, "contextReadBudget");
|
|
22919
23041
|
|
|
22920
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23042
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
22921
23043
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
22922
23044
|
if (!port || typeof port.read !== "function")
|
|
22923
23045
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -22961,7 +23083,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
22961
23083
|
};
|
|
22962
23084
|
}, "createContextEvidenceReader");
|
|
22963
23085
|
|
|
22964
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23086
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
22965
23087
|
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");
|
|
22966
23088
|
var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options2 = {}) => {
|
|
22967
23089
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -22977,7 +23099,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options2 = {})
|
|
|
22977
23099
|
}, "excerpt");
|
|
22978
23100
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
22979
23101
|
|
|
22980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23102
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
22981
23103
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
22982
23104
|
async around(ref, window3) {
|
|
22983
23105
|
const at = parseLocator(ref);
|
|
@@ -23072,7 +23194,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
23072
23194
|
};
|
|
23073
23195
|
}, "storedNeighbours");
|
|
23074
23196
|
|
|
23075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23197
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
23076
23198
|
import { createHash as createHash2 } from "node:crypto";
|
|
23077
23199
|
var DAY = 864e5;
|
|
23078
23200
|
var MAX_TIME = 864e13;
|
|
@@ -23388,7 +23510,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
23388
23510
|
return value;
|
|
23389
23511
|
}, "decodeCheckpoint");
|
|
23390
23512
|
|
|
23391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23513
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
23392
23514
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
23393
23515
|
var PAGE3 = 20;
|
|
23394
23516
|
var PEOPLE = 20;
|
|
@@ -23792,7 +23914,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
23792
23914
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
23793
23915
|
}, "peopleOf");
|
|
23794
23916
|
|
|
23795
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
23796
23918
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
23797
23919
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
23798
23920
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -23836,7 +23958,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
23836
23958
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
23837
23959
|
}, "matchVocabularyTerms");
|
|
23838
23960
|
|
|
23839
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23961
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
23840
23962
|
var KINDS = ["project", "tag", "topic"];
|
|
23841
23963
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
|
|
23842
23964
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -23891,7 +24013,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
23891
24013
|
};
|
|
23892
24014
|
}, "findEvidenceMentions");
|
|
23893
24015
|
|
|
23894
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24016
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
23895
24017
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
23896
24018
|
var DEFAULT_PURPOSES = ["work"];
|
|
23897
24019
|
var LINK_PURPOSE = "work";
|
|
@@ -23921,7 +24043,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
23921
24043
|
...value.split(",").map((one) => one.trim()).filter(Boolean)
|
|
23922
24044
|
], "purposeList");
|
|
23923
24045
|
|
|
23924
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24046
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
23925
24047
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
23926
24048
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
23927
24049
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -24232,7 +24354,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
24232
24354
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
24233
24355
|
}, "purposeHintOf");
|
|
24234
24356
|
|
|
24235
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
24236
24358
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
24237
24359
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
24238
24360
|
const held = await storeIfOpen(deps);
|
|
@@ -24497,7 +24619,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
24497
24619
|
return rest;
|
|
24498
24620
|
}, "withoutPhone");
|
|
24499
24621
|
|
|
24500
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24622
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
24501
24623
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
24502
24624
|
var PERIOD_FIELD = "created";
|
|
24503
24625
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -24617,18 +24739,18 @@ var meetingIdOf = /* @__PURE__ */ __name((group) => {
|
|
|
24617
24739
|
}
|
|
24618
24740
|
}, "meetingIdOf");
|
|
24619
24741
|
var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
24620
|
-
const
|
|
24742
|
+
const meetingOf2 = new Map(groups.flatMap((group) => {
|
|
24621
24743
|
const id2 = meetingIdOf(group);
|
|
24622
24744
|
return id2 === void 0 ? [] : [[group, id2]];
|
|
24623
24745
|
}));
|
|
24624
|
-
const titles = await store.tasks.statNames("meeting", [...new Set(
|
|
24625
|
-
return new Map([...
|
|
24746
|
+
const titles = await store.tasks.statNames("meeting", [...new Set(meetingOf2.values())]);
|
|
24747
|
+
return new Map([...meetingOf2].flatMap(([group, id2]) => {
|
|
24626
24748
|
const title = titles.get(id2);
|
|
24627
24749
|
return title === void 0 ? [] : [[group, title]];
|
|
24628
24750
|
}));
|
|
24629
24751
|
}, "meetingNames");
|
|
24630
24752
|
|
|
24631
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
24632
24754
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
24633
24755
|
const tags = /* @__PURE__ */ new Map();
|
|
24634
24756
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -24637,7 +24759,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
24637
24759
|
return tags;
|
|
24638
24760
|
}, "taskTagFilters");
|
|
24639
24761
|
|
|
24640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24762
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
24641
24763
|
var TASK_QUERY = {
|
|
24642
24764
|
entity: "task",
|
|
24643
24765
|
backend: "sql",
|
|
@@ -25137,7 +25259,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
25137
25259
|
};
|
|
25138
25260
|
}, "taskView");
|
|
25139
25261
|
|
|
25140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25262
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
25141
25263
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
25142
25264
|
if (newest === null)
|
|
25143
25265
|
return null;
|
|
@@ -25146,7 +25268,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
25146
25268
|
return newest.addressed ? "owed" : null;
|
|
25147
25269
|
}, "mailTurn");
|
|
25148
25270
|
|
|
25149
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25271
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
25150
25272
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
25151
25273
|
if (error instanceof CliError && error.code === "not_found")
|
|
25152
25274
|
return void 0;
|
|
@@ -25204,7 +25326,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
25204
25326
|
};
|
|
25205
25327
|
}, "mailActivity");
|
|
25206
25328
|
|
|
25207
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25329
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
25208
25330
|
var DAY2 = 864e5;
|
|
25209
25331
|
var AGENDA_DEFAULTS = { unanswered: DAY2, waiting: 7 * DAY2 };
|
|
25210
25332
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -25458,18 +25580,18 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
25458
25580
|
};
|
|
25459
25581
|
}, "agendaItem");
|
|
25460
25582
|
|
|
25461
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25583
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
25462
25584
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
25463
25585
|
|
|
25464
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25465
25587
|
import { lstat } from "node:fs/promises";
|
|
25466
25588
|
|
|
25467
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25589
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25468
25590
|
import { createHash as createHash4, randomUUID as randomUUID3 } from "node:crypto";
|
|
25469
25591
|
import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
25470
25592
|
import { join as join6 } from "node:path";
|
|
25471
25593
|
|
|
25472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25594
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
25473
25595
|
import { createHash as createHash3 } from "node:crypto";
|
|
25474
25596
|
var metadataLimit = 16384;
|
|
25475
25597
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -25529,7 +25651,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
25529
25651
|
}
|
|
25530
25652
|
}, "readPartialMetadata");
|
|
25531
25653
|
|
|
25532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25654
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
25533
25655
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
25534
25656
|
import { open as open2, rename, unlink } from "node:fs/promises";
|
|
25535
25657
|
import { join as join5 } from "node:path";
|
|
@@ -25621,7 +25743,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
25621
25743
|
};
|
|
25622
25744
|
}, "partialWriter");
|
|
25623
25745
|
|
|
25624
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25746
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25625
25747
|
var NativeRecordingPartialStore = class {
|
|
25626
25748
|
static {
|
|
25627
25749
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -25728,12 +25850,12 @@ var NativeRecordingPartialStore = class {
|
|
|
25728
25850
|
}
|
|
25729
25851
|
};
|
|
25730
25852
|
|
|
25731
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25732
25854
|
import { createHash as createHash5 } from "node:crypto";
|
|
25733
25855
|
import { link as link2 } from "node:fs/promises";
|
|
25734
25856
|
import { basename as basename2, dirname as dirname5, join as join8, resolve as resolve2 } from "node:path";
|
|
25735
25857
|
|
|
25736
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
25737
25859
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
25738
25860
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
25739
25861
|
signal?.throwIfAborted();
|
|
@@ -25768,7 +25890,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
25768
25890
|
signal?.throwIfAborted();
|
|
25769
25891
|
}, "commitPublication");
|
|
25770
25892
|
|
|
25771
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25893
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
25772
25894
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
25773
25895
|
import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
25774
25896
|
import { join as join7 } from "node:path";
|
|
@@ -25841,7 +25963,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
25841
25963
|
}
|
|
25842
25964
|
}, "writePublicationJournal");
|
|
25843
25965
|
|
|
25844
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25966
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25845
25967
|
var NativeRecordingPublication = class {
|
|
25846
25968
|
static {
|
|
25847
25969
|
__name(this, "NativeRecordingPublication");
|
|
@@ -25914,7 +26036,7 @@ var NativeRecordingPublication = class {
|
|
|
25914
26036
|
}
|
|
25915
26037
|
};
|
|
25916
26038
|
|
|
25917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26039
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
25918
26040
|
import { createHash as createHash6 } from "node:crypto";
|
|
25919
26041
|
import { readdir } from "node:fs/promises";
|
|
25920
26042
|
import { isAbsolute as isAbsolute2, join as join9, resolve as resolve3 } from "node:path";
|
|
@@ -26001,7 +26123,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
26001
26123
|
beforePublish
|
|
26002
26124
|
}), "commitMediaEntry");
|
|
26003
26125
|
|
|
26004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
26005
26127
|
var validator = '"media-completed-v1"';
|
|
26006
26128
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
26007
26129
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -26102,7 +26224,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
26102
26224
|
return entry;
|
|
26103
26225
|
}, "archiveMediaFile");
|
|
26104
26226
|
|
|
26105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
26106
26228
|
import { mkdir, realpath } from "node:fs/promises";
|
|
26107
26229
|
import { join as join10, resolve as resolve4 } from "node:path";
|
|
26108
26230
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -26169,7 +26291,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
26169
26291
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
26170
26292
|
}, "withMediaArchiveLocks");
|
|
26171
26293
|
|
|
26172
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26294
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
26173
26295
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
26174
26296
|
if (value === void 0)
|
|
26175
26297
|
return void 0;
|
|
@@ -26322,7 +26444,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
|
|
|
26322
26444
|
}, { create: true });
|
|
26323
26445
|
}, "archiveMedia");
|
|
26324
26446
|
|
|
26325
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26447
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
26326
26448
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
26327
26449
|
import { basename as basename3, dirname as dirname6, join as join11, resolve as resolve5 } from "node:path";
|
|
26328
26450
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -26475,7 +26597,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
|
|
|
26475
26597
|
}, { additional: [target2], createAdditional: !options2.dryRun });
|
|
26476
26598
|
}, "moveMediaArchive");
|
|
26477
26599
|
|
|
26478
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26600
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
26479
26601
|
import { writeFileSync as writeFileSync2 } from "node:fs";
|
|
26480
26602
|
import { join as join12 } from "node:path";
|
|
26481
26603
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
@@ -26500,7 +26622,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26500
26622
|
`);
|
|
26501
26623
|
await nativeRuntime({ env, progress });
|
|
26502
26624
|
progress(`${model.id}: loading it once to check it works`);
|
|
26503
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
26625
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-LB6ONWHX.js");
|
|
26504
26626
|
const embedder = await openEmbedder2(model, directory2);
|
|
26505
26627
|
try {
|
|
26506
26628
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -26521,7 +26643,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
26521
26643
|
}
|
|
26522
26644
|
await nativeRuntime({ env, progress });
|
|
26523
26645
|
progress(`${model.id}: loading it once to check it works`);
|
|
26524
|
-
const { openReranker } = await import("./rerank-
|
|
26646
|
+
const { openReranker } = await import("./rerank-TVMR3OLL.js");
|
|
26525
26647
|
const reranker = await openReranker(model, directory2);
|
|
26526
26648
|
try {
|
|
26527
26649
|
await reranker.score("check", ["check"]);
|
|
@@ -26539,7 +26661,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26539
26661
|
await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
26540
26662
|
}
|
|
26541
26663
|
progress(`${model.id}: loading it once to check it works`);
|
|
26542
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
26664
|
+
const { openPictureEmbedder } = await import("./embedder-WE7B2RU5.js");
|
|
26543
26665
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
26544
26666
|
try {
|
|
26545
26667
|
const vector = await embedder.embedQuery("check");
|
|
@@ -26551,7 +26673,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26551
26673
|
return { model, directory: directory2 };
|
|
26552
26674
|
}, "downloadImageModel");
|
|
26553
26675
|
|
|
26554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26676
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
26555
26677
|
var MONEY_REQUEST = "money-request";
|
|
26556
26678
|
var MONEY_DONE = "money-done";
|
|
26557
26679
|
var PROMISE = "promise";
|
|
@@ -26585,10 +26707,10 @@ var MONEY_WORDS = [
|
|
|
26585
26707
|
}
|
|
26586
26708
|
];
|
|
26587
26709
|
|
|
26588
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26710
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
26589
26711
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
26590
26712
|
|
|
26591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26713
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
26592
26714
|
var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
26593
26715
|
var MONEY_DONE_FORMS = words([
|
|
26594
26716
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -26628,7 +26750,7 @@ var PROMISE_FORMS = words([
|
|
|
26628
26750
|
"estar\xE1 listo"
|
|
26629
26751
|
]);
|
|
26630
26752
|
|
|
26631
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
26632
26754
|
var EXCERPT_CHARS = 80;
|
|
26633
26755
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
26634
26756
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -26650,7 +26772,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
26650
26772
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
26651
26773
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
26652
26774
|
|
|
26653
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26775
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
26654
26776
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
26655
26777
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
26656
26778
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -26731,7 +26853,7 @@ var amounts = {
|
|
|
26731
26853
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
26732
26854
|
};
|
|
26733
26855
|
|
|
26734
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26856
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
26735
26857
|
var children = {
|
|
26736
26858
|
id: "children",
|
|
26737
26859
|
version: 1,
|
|
@@ -26760,7 +26882,7 @@ var children = {
|
|
|
26760
26882
|
}, "read")
|
|
26761
26883
|
};
|
|
26762
26884
|
|
|
26763
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26885
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
26764
26886
|
var coverage = {
|
|
26765
26887
|
id: "coverage",
|
|
26766
26888
|
version: 1,
|
|
@@ -26789,7 +26911,7 @@ var coverage = {
|
|
|
26789
26911
|
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")
|
|
26790
26912
|
};
|
|
26791
26913
|
|
|
26792
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26914
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
26793
26915
|
var holding2 = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
26794
26916
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
26795
26917
|
signal: "payments",
|
|
@@ -26839,7 +26961,7 @@ var payments = {
|
|
|
26839
26961
|
}, "read")
|
|
26840
26962
|
};
|
|
26841
26963
|
|
|
26842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26964
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
26843
26965
|
var PATTERNS_PER_CHAT = 3;
|
|
26844
26966
|
var DAY3 = 864e5;
|
|
26845
26967
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -26928,7 +27050,7 @@ var promises = {
|
|
|
26928
27050
|
}, "read")
|
|
26929
27051
|
};
|
|
26930
27052
|
|
|
26931
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27053
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
26932
27054
|
var PER_SIDE = 5;
|
|
26933
27055
|
var WEEK = 7 * 864e5;
|
|
26934
27056
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -26959,7 +27081,7 @@ var questions2 = {
|
|
|
26959
27081
|
}, "attention")
|
|
26960
27082
|
};
|
|
26961
27083
|
|
|
26962
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27084
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
26963
27085
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
26964
27086
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one) => one.id === id2), "byId");
|
|
26965
27087
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -27027,7 +27149,7 @@ var replyNext = {
|
|
|
27027
27149
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
27028
27150
|
};
|
|
27029
27151
|
|
|
27030
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27152
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
27031
27153
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
27032
27154
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
27033
27155
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -27073,7 +27195,7 @@ var topics = {
|
|
|
27073
27195
|
}, "read")
|
|
27074
27196
|
};
|
|
27075
27197
|
|
|
27076
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27198
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
27077
27199
|
var STATUS_SIGNALS = [
|
|
27078
27200
|
replyNext,
|
|
27079
27201
|
questions2,
|
|
@@ -27085,7 +27207,7 @@ var STATUS_SIGNALS = [
|
|
|
27085
27207
|
children
|
|
27086
27208
|
];
|
|
27087
27209
|
|
|
27088
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27210
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
27089
27211
|
var DAY4 = 864e5;
|
|
27090
27212
|
var STATUS_WINDOW = 300;
|
|
27091
27213
|
var STATUS_CHATS = 16;
|
|
@@ -27274,7 +27396,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
27274
27396
|
};
|
|
27275
27397
|
}, "projectStatus");
|
|
27276
27398
|
|
|
27277
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27399
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
27278
27400
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
27279
27401
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
27280
27402
|
if (deps.offline)
|
|
@@ -27346,7 +27468,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
27346
27468
|
};
|
|
27347
27469
|
}, "accountService");
|
|
27348
27470
|
|
|
27349
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
27350
27472
|
var MINUTE = 6e4;
|
|
27351
27473
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
27352
27474
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -27365,7 +27487,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
27365
27487
|
return new Date(at - at % MINUTE).toISOString();
|
|
27366
27488
|
}, "sendTime");
|
|
27367
27489
|
|
|
27368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27490
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
27369
27491
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
27370
27492
|
try {
|
|
27371
27493
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -27612,7 +27734,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
27612
27734
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
27613
27735
|
}, "linkLimits");
|
|
27614
27736
|
|
|
27615
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27737
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
27616
27738
|
var THREADS_PAGE = 500;
|
|
27617
27739
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
27618
27740
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -27691,7 +27813,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
27691
27813
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
27692
27814
|
}, "readMail");
|
|
27693
27815
|
|
|
27694
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
27695
27817
|
var PERSON_FIELDS = /* @__PURE__ */ new Set(["from", "to", "cc", "bcc"]);
|
|
27696
27818
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is", "list"]);
|
|
27697
27819
|
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");
|
|
@@ -27775,9 +27897,7 @@ var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messe
|
|
|
27775
27897
|
if (node.field === "date")
|
|
27776
27898
|
return {
|
|
27777
27899
|
...node,
|
|
27778
|
-
resolution: {
|
|
27779
|
-
date: dateRange(node.value, node.operator === "range" ? node.upper ?? "*" : node.value, node.operator === "range" ? node.lower_inclusive === true : true, node.operator === "range" ? node.upper_inclusive === true : true, timezone, node.span)
|
|
27780
|
-
}
|
|
27900
|
+
resolution: { date: rangeOf(node, timezone) }
|
|
27781
27901
|
};
|
|
27782
27902
|
return node;
|
|
27783
27903
|
}, "resolve");
|
|
@@ -28060,7 +28180,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
28060
28180
|
};
|
|
28061
28181
|
}, "statsLucene");
|
|
28062
28182
|
|
|
28063
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28183
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
28064
28184
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
28065
28185
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
28066
28186
|
function invalid3(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -28229,7 +28349,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
28229
28349
|
};
|
|
28230
28350
|
}, "readRankingSelection");
|
|
28231
28351
|
|
|
28232
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28352
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
28233
28353
|
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");
|
|
28234
28354
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
28235
28355
|
command,
|
|
@@ -28239,7 +28359,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
28239
28359
|
fieldsVersion: FIELD_VERSION
|
|
28240
28360
|
}), "searchRecordOf");
|
|
28241
28361
|
|
|
28242
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28362
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
28243
28363
|
function invalid4(message) {
|
|
28244
28364
|
throw new CliError("validation_error", message);
|
|
28245
28365
|
}
|
|
@@ -28533,7 +28653,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
28533
28653
|
}, "evidence")
|
|
28534
28654
|
}), "adminStatisticsService");
|
|
28535
28655
|
|
|
28536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28656
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
28537
28657
|
import { createHash as createHash7, randomUUID as randomUUID5 } from "node:crypto";
|
|
28538
28658
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
28539
28659
|
var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
|
|
@@ -28670,12 +28790,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
28670
28790
|
return { plan, repair };
|
|
28671
28791
|
}, "gapsService");
|
|
28672
28792
|
|
|
28673
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28793
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
28674
28794
|
import { createHash as createHash10 } from "node:crypto";
|
|
28675
28795
|
import { constants as constants2, mkdirSync as mkdirSync5 } from "node:fs";
|
|
28676
28796
|
import { lstat as lstat5, open as open6, readFile as readFile2, stat as stat2 } from "node:fs/promises";
|
|
28677
28797
|
|
|
28678
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
28679
28799
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
28680
28800
|
import { basename as basename4, join as join13, relative as relative2, sep as sep2 } from "node:path";
|
|
28681
28801
|
var MAX_FILES = 1e4;
|
|
@@ -28746,21 +28866,21 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
28746
28866
|
return choices;
|
|
28747
28867
|
}, "directoryPaths");
|
|
28748
28868
|
|
|
28749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28869
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
28750
28870
|
import { posix } from "node:path";
|
|
28751
28871
|
|
|
28752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28872
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
28753
28873
|
import { setImmediate as tick } from "node:timers/promises";
|
|
28754
28874
|
import { crc32 } from "node:zlib";
|
|
28755
28875
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
28756
28876
|
|
|
28757
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28877
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
28758
28878
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
28759
28879
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
28760
28880
|
var SAMPLE = 65536;
|
|
28761
28881
|
var invalidText = /* @__PURE__ */ __name((text2) => {
|
|
28762
|
-
for (const
|
|
28763
|
-
const code =
|
|
28882
|
+
for (const character2 of text2) {
|
|
28883
|
+
const code = character2.charCodeAt(0);
|
|
28764
28884
|
if (code < 9 || code === 11 || code > 13 && code < 32 || code >= 127 && code <= 159)
|
|
28765
28885
|
return true;
|
|
28766
28886
|
}
|
|
@@ -28856,7 +28976,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
28856
28976
|
return result.text;
|
|
28857
28977
|
}, "decodeXml");
|
|
28858
28978
|
|
|
28859
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
28860
28980
|
var MAX_PART = 10 * 1024 * 1024;
|
|
28861
28981
|
var MAX_ENTRIES = 1e3;
|
|
28862
28982
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -28869,7 +28989,7 @@ var cancelled = /* @__PURE__ */ __name((signal) => {
|
|
|
28869
28989
|
if (signal?.aborted)
|
|
28870
28990
|
throw new CliError("cancelled", "document extraction cancelled");
|
|
28871
28991
|
}, "cancelled");
|
|
28872
|
-
var safeName2 = /* @__PURE__ */ __name((name) => name.length > 0 && name.length <= 512 && !/^[\\/]|\\/.test(name) && ![...name].some((
|
|
28992
|
+
var safeName2 = /* @__PURE__ */ __name((name) => name.length > 0 && name.length <= 512 && !/^[\\/]|\\/.test(name) && ![...name].some((character2) => character2.charCodeAt(0) < 32) && !name.split("/").includes(".."), "safeName");
|
|
28873
28993
|
var directory = /* @__PURE__ */ __name((bytes2) => {
|
|
28874
28994
|
const view = new DataView(bytes2.buffer, bytes2.byteOffset, bytes2.byteLength);
|
|
28875
28995
|
let end = -1;
|
|
@@ -29071,7 +29191,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
29071
29191
|
return found;
|
|
29072
29192
|
}, "elements");
|
|
29073
29193
|
|
|
29074
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
29075
29195
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
29076
29196
|
let name = "";
|
|
29077
29197
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -29126,7 +29246,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
29126
29246
|
return { text: parts.join("").trim(), truncated: false };
|
|
29127
29247
|
}, "sheetText");
|
|
29128
29248
|
|
|
29129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29249
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
29130
29250
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
29131
29251
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
29132
29252
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -29201,7 +29321,7 @@ var rootIs = /* @__PURE__ */ __name((node, name, namespaces) => {
|
|
|
29201
29321
|
}, "rootIs");
|
|
29202
29322
|
var target = /* @__PURE__ */ __name((owner, reference) => {
|
|
29203
29323
|
const decoded = decodeURIComponent(reference.split(/[?#]/)[0] ?? "");
|
|
29204
|
-
if (/^[a-z][a-z0-9+.-]*:|^[\\/]|\\/i.test(decoded) || [...decoded].some((
|
|
29324
|
+
if (/^[a-z][a-z0-9+.-]*:|^[\\/]|\\/i.test(decoded) || [...decoded].some((character2) => character2.charCodeAt(0) < 32))
|
|
29205
29325
|
throw new Error("external_part");
|
|
29206
29326
|
const path = posix.normalize(posix.join(posix.dirname(owner), decoded));
|
|
29207
29327
|
if (path.startsWith("../") || !path || path === ".")
|
|
@@ -29526,10 +29646,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
29526
29646
|
}
|
|
29527
29647
|
}, "readDocument");
|
|
29528
29648
|
|
|
29529
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29649
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
29530
29650
|
import { extname as extname3 } from "node:path";
|
|
29531
29651
|
|
|
29532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29652
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
29533
29653
|
import { readFileSync as readFileSync5 } from "node:fs";
|
|
29534
29654
|
import { dirname as dirname7, extname as extname2, join as join14 } from "node:path";
|
|
29535
29655
|
import { fileURLToPath } from "node:url";
|
|
@@ -29590,7 +29710,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
|
|
|
29590
29710
|
}
|
|
29591
29711
|
}, "derived");
|
|
29592
29712
|
|
|
29593
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29713
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
29594
29714
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
29595
29715
|
var image2 = {
|
|
29596
29716
|
id: "image",
|
|
@@ -29599,7 +29719,7 @@ var image2 = {
|
|
|
29599
29719
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
29600
29720
|
};
|
|
29601
29721
|
|
|
29602
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29722
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
29603
29723
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
29604
29724
|
var doc = {
|
|
29605
29725
|
id: "doc",
|
|
@@ -29611,7 +29731,7 @@ var doc = {
|
|
|
29611
29731
|
}), "read")
|
|
29612
29732
|
};
|
|
29613
29733
|
|
|
29614
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29734
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
29615
29735
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
29616
29736
|
var docx = {
|
|
29617
29737
|
id: "docx",
|
|
@@ -29624,8 +29744,62 @@ var docx = {
|
|
|
29624
29744
|
}), "read")
|
|
29625
29745
|
};
|
|
29626
29746
|
|
|
29627
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29747
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
29628
29748
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
29749
|
+
|
|
29750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/domain/html-entities.js
|
|
29751
|
+
var NAMED = {
|
|
29752
|
+
amp: "&",
|
|
29753
|
+
lt: "<",
|
|
29754
|
+
gt: ">",
|
|
29755
|
+
quot: '"',
|
|
29756
|
+
apos: "'",
|
|
29757
|
+
nbsp: "\xA0",
|
|
29758
|
+
shy: "\xAD",
|
|
29759
|
+
ensp: "\u2002",
|
|
29760
|
+
emsp: "\u2003",
|
|
29761
|
+
thinsp: "\u2009",
|
|
29762
|
+
zwnj: "\u200C",
|
|
29763
|
+
zwj: "\u200D",
|
|
29764
|
+
lsquo: "\u2018",
|
|
29765
|
+
rsquo: "\u2019",
|
|
29766
|
+
sbquo: "\u201A",
|
|
29767
|
+
ldquo: "\u201C",
|
|
29768
|
+
rdquo: "\u201D",
|
|
29769
|
+
bdquo: "\u201E",
|
|
29770
|
+
laquo: "\xAB",
|
|
29771
|
+
raquo: "\xBB",
|
|
29772
|
+
lsaquo: "\u2039",
|
|
29773
|
+
rsaquo: "\u203A",
|
|
29774
|
+
ndash: "\u2013",
|
|
29775
|
+
mdash: "\u2014",
|
|
29776
|
+
hellip: "\u2026",
|
|
29777
|
+
bull: "\u2022",
|
|
29778
|
+
middot: "\xB7",
|
|
29779
|
+
copy: "\xA9",
|
|
29780
|
+
reg: "\xAE",
|
|
29781
|
+
trade: "\u2122",
|
|
29782
|
+
euro: "\u20AC",
|
|
29783
|
+
pound: "\xA3",
|
|
29784
|
+
yen: "\xA5",
|
|
29785
|
+
cent: "\xA2",
|
|
29786
|
+
deg: "\xB0",
|
|
29787
|
+
plusmn: "\xB1",
|
|
29788
|
+
times: "\xD7",
|
|
29789
|
+
divide: "\xF7",
|
|
29790
|
+
sect: "\xA7",
|
|
29791
|
+
para: "\xB6",
|
|
29792
|
+
iexcl: "\xA1",
|
|
29793
|
+
iquest: "\xBF"
|
|
29794
|
+
};
|
|
29795
|
+
var character = /* @__PURE__ */ __name((code, entity) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : entity, "character");
|
|
29796
|
+
var decodeEntities = /* @__PURE__ */ __name((text2) => text2.replace(/&(#x[0-9a-f]{1,6}|#\d{1,7}|[a-z]{2,8});/gi, (entity, body) => {
|
|
29797
|
+
if (body[0] !== "#")
|
|
29798
|
+
return NAMED[body] ?? NAMED[body.toLowerCase()] ?? entity;
|
|
29799
|
+
return body[1] === "x" || body[1] === "X" ? character(Number.parseInt(body.slice(2), 16), entity) : character(Number(body.slice(1)), entity);
|
|
29800
|
+
}), "decodeEntities");
|
|
29801
|
+
|
|
29802
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
29629
29803
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
29630
29804
|
"fonttbl",
|
|
29631
29805
|
"colortbl",
|
|
@@ -29758,7 +29932,6 @@ var HTML_DROPPED_CLOSE = new Map(["script", "style", "head", "noscript", "templa
|
|
|
29758
29932
|
new RegExp(`<\\/${name}\\s*>`, "gi")
|
|
29759
29933
|
]));
|
|
29760
29934
|
var HTML_BLOCK = /<\/?(p|div|br|li|ul|ol|tr|h[1-6]|blockquote|pre|section|article|header|footer|table|hr)\b[^>]*>/gi;
|
|
29761
|
-
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', apos: "'", nbsp: "\xA0" };
|
|
29762
29935
|
var replaceTags = /* @__PURE__ */ __name((source, tag, replacement) => {
|
|
29763
29936
|
const end = source.lastIndexOf(">") + 1;
|
|
29764
29937
|
return source.slice(0, end).replace(tag, replacement) + source.slice(end);
|
|
@@ -29789,18 +29962,10 @@ var dropHidden = /* @__PURE__ */ __name((source) => {
|
|
|
29789
29962
|
var htmlText = /* @__PURE__ */ __name((source) => {
|
|
29790
29963
|
const uncommented = source.replace(/<!--[\s\S]*?(-->|$)/g, (comment, close) => close ? "" : comment);
|
|
29791
29964
|
const blocks = replaceTags(dropHidden(uncommented).replace(/<\/t[dh]\s*>/gi, " "), HTML_BLOCK, "\n");
|
|
29792
|
-
return replaceTags(blocks, /<[^>]*>/g, "").replace(
|
|
29793
|
-
const lower = body.toLowerCase();
|
|
29794
|
-
if (lower.startsWith("#x"))
|
|
29795
|
-
return safeChar(Number.parseInt(lower.slice(2), 16), entity);
|
|
29796
|
-
if (lower.startsWith("#"))
|
|
29797
|
-
return safeChar(Number(lower.slice(1)), entity);
|
|
29798
|
-
return ENTITIES[lower] ?? entity;
|
|
29799
|
-
}).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
29965
|
+
return decodeEntities(replaceTags(blocks, /<[^>]*>/g, "")).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
29800
29966
|
}, "htmlText");
|
|
29801
|
-
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
29802
29967
|
|
|
29803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29968
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
29804
29969
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
29805
29970
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
29806
29971
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -29856,7 +30021,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
29856
30021
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
29857
30022
|
}, "markdownSections");
|
|
29858
30023
|
|
|
29859
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30024
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
29860
30025
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
29861
30026
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
29862
30027
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -29927,7 +30092,7 @@ var html = {
|
|
|
29927
30092
|
}, "read")
|
|
29928
30093
|
};
|
|
29929
30094
|
|
|
29930
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30095
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
29931
30096
|
var office = {
|
|
29932
30097
|
id: "office",
|
|
29933
30098
|
version: documentExtractor("odt"),
|
|
@@ -29938,7 +30103,7 @@ var office = {
|
|
|
29938
30103
|
}, "read")
|
|
29939
30104
|
};
|
|
29940
30105
|
|
|
29941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30106
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
29942
30107
|
var pdf = {
|
|
29943
30108
|
id: "pdf",
|
|
29944
30109
|
version: "unpdf",
|
|
@@ -30005,7 +30170,7 @@ var pdf = {
|
|
|
30005
30170
|
}), "read")
|
|
30006
30171
|
};
|
|
30007
30172
|
|
|
30008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
30009
30174
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
30010
30175
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
30011
30176
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -30025,7 +30190,7 @@ var plain = {
|
|
|
30025
30190
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
30026
30191
|
};
|
|
30027
30192
|
|
|
30028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30193
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
30029
30194
|
var rtf = {
|
|
30030
30195
|
id: "rtf",
|
|
30031
30196
|
version: "v1",
|
|
@@ -30033,10 +30198,10 @@ var rtf = {
|
|
|
30033
30198
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
30034
30199
|
};
|
|
30035
30200
|
|
|
30036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30201
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
30037
30202
|
import { basename as basename5 } from "node:path";
|
|
30038
30203
|
|
|
30039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
30040
30205
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
30041
30206
|
const cells = [];
|
|
30042
30207
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -30074,7 +30239,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
30074
30239
|
return { cells, truncated };
|
|
30075
30240
|
}, "delimitedSpans");
|
|
30076
30241
|
|
|
30077
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30242
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
30078
30243
|
var DELIMITED = {
|
|
30079
30244
|
".csv": ",",
|
|
30080
30245
|
".tsv": " ",
|
|
@@ -30113,7 +30278,7 @@ var sheets = {
|
|
|
30113
30278
|
}, "read")
|
|
30114
30279
|
};
|
|
30115
30280
|
|
|
30116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
30117
30282
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
30118
30283
|
var HEAD_BYTES = 1024;
|
|
30119
30284
|
var readers = [...BUILT_INS2];
|
|
@@ -30123,7 +30288,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
30123
30288
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
30124
30289
|
}, "readWithRegistry");
|
|
30125
30290
|
|
|
30126
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30291
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
30127
30292
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
30128
30293
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
30129
30294
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -31202,7 +31367,7 @@ function imageSize(input) {
|
|
|
31202
31367
|
}
|
|
31203
31368
|
__name(imageSize, "imageSize");
|
|
31204
31369
|
|
|
31205
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31370
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
31206
31371
|
var MAX_PAGES = 20;
|
|
31207
31372
|
var MAX_PIXELS = 2e7;
|
|
31208
31373
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -31362,7 +31527,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
31362
31527
|
}
|
|
31363
31528
|
}, "ocrPdf");
|
|
31364
31529
|
|
|
31365
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31530
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
31366
31531
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
31367
31532
|
const limits = pdfPreviewLimits(env);
|
|
31368
31533
|
const cancelled3 = /* @__PURE__ */ __name(() => {
|
|
@@ -31439,7 +31604,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
31439
31604
|
}
|
|
31440
31605
|
}, "pdfPreview");
|
|
31441
31606
|
|
|
31442
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31607
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
|
|
31443
31608
|
import { spawn } from "node:child_process";
|
|
31444
31609
|
import { mkdtempSync, readFileSync as readFileSync6, rmSync as rmSync2, writeFileSync as writeFileSync3 } from "node:fs";
|
|
31445
31610
|
import { tmpdir } from "node:os";
|
|
@@ -31602,7 +31767,7 @@ Read the attached picture.`,
|
|
|
31602
31767
|
}
|
|
31603
31768
|
}, "readPictureWithAgent");
|
|
31604
31769
|
|
|
31605
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31770
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
31606
31771
|
import { createHash as createHash8 } from "node:crypto";
|
|
31607
31772
|
import { constants } from "node:fs";
|
|
31608
31773
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -31710,7 +31875,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
31710
31875
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
31711
31876
|
}, "transferMime");
|
|
31712
31877
|
|
|
31713
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
31714
31879
|
import { createWriteStream, mkdirSync as mkdirSync4 } from "node:fs";
|
|
31715
31880
|
import { link as link3, rm } from "node:fs/promises";
|
|
31716
31881
|
import { join as join16, resolve as resolve6 } from "node:path";
|
|
@@ -31824,12 +31989,12 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
31824
31989
|
}
|
|
31825
31990
|
}, "save");
|
|
31826
31991
|
|
|
31827
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31992
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
31828
31993
|
import { createHash as createHash9 } from "node:crypto";
|
|
31829
31994
|
import { lstat as lstat4, readFile } from "node:fs/promises";
|
|
31830
31995
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
31831
31996
|
|
|
31832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31997
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
31833
31998
|
var GROUP_SETTINGS = [
|
|
31834
31999
|
"allCanPin",
|
|
31835
32000
|
"onlyAdminsAdd",
|
|
@@ -31843,7 +32008,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
31843
32008
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
31844
32009
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
31845
32010
|
|
|
31846
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32011
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
31847
32012
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
31848
32013
|
var PICTURE_FLOOR = 0.25;
|
|
31849
32014
|
var PAGE4 = 50;
|
|
@@ -31884,7 +32049,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
31884
32049
|
const directory2 = imageModelsDirectory(deps.env);
|
|
31885
32050
|
if (!isImageModelInstalled(model2, directory2))
|
|
31886
32051
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
31887
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
32052
|
+
const { openPictureEmbedder } = await import("./embedder-WE7B2RU5.js");
|
|
31888
32053
|
return openPictureEmbedder(model2, directory2);
|
|
31889
32054
|
}, "open");
|
|
31890
32055
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -32058,7 +32223,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
32058
32223
|
}, "search")
|
|
32059
32224
|
}), "withPictures");
|
|
32060
32225
|
|
|
32061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32226
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
32062
32227
|
var ATTACHMENT_QUERY = {
|
|
32063
32228
|
entity: "attachment",
|
|
32064
32229
|
backend: "sql",
|
|
@@ -32529,7 +32694,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32529
32694
|
}, "readPicture")
|
|
32530
32695
|
}), "attachmentsService");
|
|
32531
32696
|
|
|
32532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32697
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
32533
32698
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
32534
32699
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
32535
32700
|
const store = await accountStore(deps);
|
|
@@ -32559,7 +32724,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32559
32724
|
}, "list")
|
|
32560
32725
|
}), "chatDocumentsService");
|
|
32561
32726
|
|
|
32562
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32727
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
32563
32728
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
32564
32729
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
32565
32730
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -32646,7 +32811,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
32646
32811
|
}
|
|
32647
32812
|
}, "isRetentionSelection");
|
|
32648
32813
|
|
|
32649
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32814
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
32650
32815
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
32651
32816
|
const fields = text2.split(",").map((one) => one.trim());
|
|
32652
32817
|
if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
|
|
@@ -32853,7 +33018,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
32853
33018
|
};
|
|
32854
33019
|
}, "countersService");
|
|
32855
33020
|
|
|
32856
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
32857
33022
|
var SYNC_KEY = "messages.sync-first";
|
|
32858
33023
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
32859
33024
|
var keyOf3 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -32985,7 +33150,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
32985
33150
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
32986
33151
|
}), "withRefresh");
|
|
32987
33152
|
|
|
32988
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
32989
33154
|
var CANDIDATES = 50;
|
|
32990
33155
|
var WORD_HITS = 200;
|
|
32991
33156
|
var RRF_K = 60;
|
|
@@ -33260,13 +33425,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
33260
33425
|
return mean2.map((value) => value / length);
|
|
33261
33426
|
}, "meanOf");
|
|
33262
33427
|
|
|
33263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33428
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
33264
33429
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
33265
33430
|
...embeddingsMaintenance(deps),
|
|
33266
33431
|
...embeddingsSearch(deps)
|
|
33267
33432
|
}), "embeddingsService");
|
|
33268
33433
|
|
|
33269
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33434
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
33270
33435
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
33271
33436
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
33272
33437
|
if (deps.offline)
|
|
@@ -33407,7 +33572,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
33407
33572
|
};
|
|
33408
33573
|
}, "foldersService");
|
|
33409
33574
|
|
|
33410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33575
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
33411
33576
|
var REVIEW_COUNT = 500;
|
|
33412
33577
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
33413
33578
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -33486,7 +33651,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
33486
33651
|
};
|
|
33487
33652
|
}, "mentionsService");
|
|
33488
33653
|
|
|
33489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33654
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
33490
33655
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
33491
33656
|
position,
|
|
33492
33657
|
kind,
|
|
@@ -33535,7 +33700,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
33535
33700
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
33536
33701
|
}, "validatePermalink");
|
|
33537
33702
|
|
|
33538
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33703
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
33539
33704
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
33540
33705
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
33541
33706
|
return `${seconds / 86400}d`;
|
|
@@ -33567,7 +33732,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
33567
33732
|
return seconds;
|
|
33568
33733
|
}, "pinDurationOf");
|
|
33569
33734
|
|
|
33570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33735
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
33571
33736
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
33572
33737
|
if (sendAs === void 0) {
|
|
33573
33738
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -33592,7 +33757,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
33592
33757
|
return sendAs;
|
|
33593
33758
|
}, "typedSendAs");
|
|
33594
33759
|
|
|
33595
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33760
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
33596
33761
|
var TOTAL_CAP = 1e4;
|
|
33597
33762
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
33598
33763
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -33603,7 +33768,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
33603
33768
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
33604
33769
|
}, "totalOf");
|
|
33605
33770
|
|
|
33606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33771
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
33607
33772
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
33608
33773
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
33609
33774
|
let narrows = false;
|
|
@@ -33632,7 +33797,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
33632
33797
|
return wanted(root).join(" ").trim();
|
|
33633
33798
|
}, "meaningWords");
|
|
33634
33799
|
|
|
33635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33800
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
33636
33801
|
var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
33637
33802
|
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"));
|
|
33638
33803
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -33765,7 +33930,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
33765
33930
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
33766
33931
|
}, "questionLookup");
|
|
33767
33932
|
|
|
33768
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
33769
33934
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
33770
33935
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
33771
33936
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
|
|
@@ -33959,7 +34124,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
33959
34124
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
|
|
33960
34125
|
}, "signals");
|
|
33961
34126
|
|
|
33962
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34127
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
33963
34128
|
var MEANING_DEPTH = 100;
|
|
33964
34129
|
var RRF_K2 = 60;
|
|
33965
34130
|
var RERANK_DEPTH = 50;
|
|
@@ -34285,7 +34450,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
34285
34450
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
34286
34451
|
}, "mixedWithReranker");
|
|
34287
34452
|
|
|
34288
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34453
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
34289
34454
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
34290
34455
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
34291
34456
|
var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
|
|
@@ -34484,7 +34649,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
34484
34649
|
return result;
|
|
34485
34650
|
}, "readThreadContext");
|
|
34486
34651
|
|
|
34487
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34652
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
34488
34653
|
var SEARCH_FILL_MS = 200;
|
|
34489
34654
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
34490
34655
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -34553,7 +34718,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
34553
34718
|
}, "accountOf");
|
|
34554
34719
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
34555
34720
|
|
|
34556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34721
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
|
|
34557
34722
|
var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
34558
34723
|
const chosen = chosenTextModel(env);
|
|
34559
34724
|
if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
|
|
@@ -34568,7 +34733,7 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
|
34568
34733
|
return (counts.get(before2) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
|
|
34569
34734
|
}, "meaningModel");
|
|
34570
34735
|
|
|
34571
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
34572
34737
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
34573
34738
|
try {
|
|
34574
34739
|
const text2 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -34647,7 +34812,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
34647
34812
|
}
|
|
34648
34813
|
}, "meaningLane");
|
|
34649
34814
|
|
|
34650
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
34651
34816
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
34652
34817
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
34653
34818
|
if (choice === "off")
|
|
@@ -34659,9 +34824,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34659
34824
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
34660
34825
|
try {
|
|
34661
34826
|
const warm = deps.embedders;
|
|
34662
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
34827
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-GSNPENHL.js")).openRerankerProcess(model, directory2, {
|
|
34663
34828
|
threads: defaultThreads()
|
|
34664
|
-
})) : await (await import("./rerank-
|
|
34829
|
+
})) : await (await import("./rerank-TVMR3OLL.js")).openReranker(model, directory2);
|
|
34665
34830
|
return {
|
|
34666
34831
|
model: model.id,
|
|
34667
34832
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -34681,7 +34846,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34681
34846
|
};
|
|
34682
34847
|
}, "rerankLane");
|
|
34683
34848
|
|
|
34684
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34849
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/search/question-period.js
|
|
34685
34850
|
var DAY5 = 864e5;
|
|
34686
34851
|
var SPAN = { start: 0, end: 0 };
|
|
34687
34852
|
var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
|
|
@@ -34806,17 +34971,17 @@ var questionPeriod = /* @__PURE__ */ __name((text2, now, zone) => {
|
|
|
34806
34971
|
};
|
|
34807
34972
|
}, "questionPeriod");
|
|
34808
34973
|
|
|
34809
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34974
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
34810
34975
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
34811
34976
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
34812
34977
|
const directory2 = imageModelsDirectory(env);
|
|
34813
34978
|
if (!isImageModelInstalled(model, directory2))
|
|
34814
34979
|
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 });
|
|
34815
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34980
|
+
const { openPictureEmbedder } = await import("./embedder-WE7B2RU5.js");
|
|
34816
34981
|
return openPictureEmbedder(model, directory2);
|
|
34817
34982
|
}, "openPictureEmbedderFor");
|
|
34818
34983
|
|
|
34819
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34984
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
34820
34985
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) => {
|
|
34821
34986
|
const metadata = note.frontMatter;
|
|
34822
34987
|
const account = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
@@ -34838,7 +35003,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) =>
|
|
|
34838
35003
|
};
|
|
34839
35004
|
}, "documentSource");
|
|
34840
35005
|
|
|
34841
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
34842
35007
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
34843
35008
|
const host = new URL(baseUrl).host;
|
|
34844
35009
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -34871,7 +35036,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
34871
35036
|
};
|
|
34872
35037
|
}, "embeddingKeys");
|
|
34873
35038
|
|
|
34874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35039
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
34875
35040
|
var options = strictObject({
|
|
34876
35041
|
temperature: range(0, 2),
|
|
34877
35042
|
top_p: range(0, 1),
|
|
@@ -34938,7 +35103,7 @@ var openai = {
|
|
|
34938
35103
|
}), "complete")
|
|
34939
35104
|
};
|
|
34940
35105
|
|
|
34941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35106
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
34942
35107
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
34943
35108
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
34944
35109
|
if (deps.signal?.aborted)
|
|
@@ -34953,7 +35118,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
34953
35118
|
if (!adapter && target2.provider === "openai")
|
|
34954
35119
|
adapter = openai;
|
|
34955
35120
|
if (!adapter && target2.provider === "anthropic")
|
|
34956
|
-
adapter = (await import("./anthropic-
|
|
35121
|
+
adapter = (await import("./anthropic-NW7DL3S3.js")).anthropic;
|
|
34957
35122
|
if (!adapter)
|
|
34958
35123
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
34959
35124
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -35013,7 +35178,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
35013
35178
|
}, "complete")
|
|
35014
35179
|
}), "modelGateway");
|
|
35015
35180
|
|
|
35016
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
|
|
35017
35182
|
var SECTION2 = "enrichment";
|
|
35018
35183
|
var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
|
|
35019
35184
|
var DEFAULT_BASE_URLS = {
|
|
@@ -35088,7 +35253,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
|
|
|
35088
35253
|
return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
|
|
35089
35254
|
}, "costOf");
|
|
35090
35255
|
|
|
35091
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35256
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/enrichment.js
|
|
35092
35257
|
var ENRICH_PER_RUN = 600;
|
|
35093
35258
|
var MAX_LINE = 400;
|
|
35094
35259
|
var line2 = pipe(unknown(), transform((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim().slice(0, MAX_LINE) : ""));
|
|
@@ -35164,7 +35329,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
|
|
|
35164
35329
|
};
|
|
35165
35330
|
}, "enrichmentState");
|
|
35166
35331
|
|
|
35167
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35332
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
35168
35333
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
35169
35334
|
let root;
|
|
35170
35335
|
try {
|
|
@@ -35191,7 +35356,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
35191
35356
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
35192
35357
|
}, "titleTiers");
|
|
35193
35358
|
|
|
35194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35359
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
35195
35360
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
35196
35361
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
35197
35362
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -35620,7 +35785,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
35620
35785
|
};
|
|
35621
35786
|
}, "searchNotesOf");
|
|
35622
35787
|
|
|
35623
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35788
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
35624
35789
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
35625
35790
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
35626
35791
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -35738,7 +35903,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
35738
35903
|
};
|
|
35739
35904
|
}, "searchEvents");
|
|
35740
35905
|
|
|
35741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35906
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
|
|
35742
35907
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
35743
35908
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
35744
35909
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -35768,7 +35933,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words3, anyWo
|
|
|
35768
35933
|
};
|
|
35769
35934
|
}, "searchBusiness");
|
|
35770
35935
|
|
|
35771
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
35772
35937
|
var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
|
|
35773
35938
|
const { project, tag, topic, ...input } = request;
|
|
35774
35939
|
input.signal?.throwIfAborted();
|
|
@@ -35806,7 +35971,7 @@ var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
35806
35971
|
return { input, selection };
|
|
35807
35972
|
}, "resolveMeetingSelection");
|
|
35808
35973
|
|
|
35809
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35974
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
35810
35975
|
var MOST_HITS_PER_MEETING = 3;
|
|
35811
35976
|
var PAGE_ROWS = 200;
|
|
35812
35977
|
var MOST_PAGES = 25;
|
|
@@ -36034,7 +36199,7 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
|
|
|
36034
36199
|
foundBy: ["title"]
|
|
36035
36200
|
}), "titleItem");
|
|
36036
36201
|
|
|
36037
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/search-harder.js
|
|
36038
36203
|
var SECTION3 = "search_harder";
|
|
36039
36204
|
var HARDER_MODELS = {
|
|
36040
36205
|
anthropic: "claude-haiku-5-5",
|
|
@@ -36280,7 +36445,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
|
|
|
36280
36445
|
};
|
|
36281
36446
|
}, "reorderHarder");
|
|
36282
36447
|
|
|
36283
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36448
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
36284
36449
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm", "business", "meetings"];
|
|
36285
36450
|
var refusal = /* @__PURE__ */ __name((error, text2) => {
|
|
36286
36451
|
const { reason, span } = error.details ?? {};
|
|
@@ -36693,7 +36858,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
|
|
|
36693
36858
|
return ordered.map((item2, rank) => ({ item: item2, score: 1 - rank / PERIOD_DEPTH + (inside2(item2) ? PERIOD_BOOST : 0) })).sort((a, b) => b.score - a.score).map(({ item: item2 }) => item2);
|
|
36694
36859
|
}, "insidePeriodFirst");
|
|
36695
36860
|
|
|
36696
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
36697
36862
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
36698
36863
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
36699
36864
|
var DEFAULT_BACKEND = "both";
|
|
@@ -36716,31 +36881,37 @@ var merge = /* @__PURE__ */ __name((one, other) => {
|
|
|
36716
36881
|
};
|
|
36717
36882
|
}, "merge");
|
|
36718
36883
|
var sameAccount4 = /* @__PURE__ */ __name((one, other) => one.provider === other.provider && one.account === other.account, "sameAccount");
|
|
36719
|
-
var
|
|
36720
|
-
|
|
36721
|
-
|
|
36722
|
-
|
|
36884
|
+
var serverReads = /* @__PURE__ */ __name((account) => ({
|
|
36885
|
+
fields: {
|
|
36886
|
+
text: ["term", "phrase"],
|
|
36887
|
+
exact: ["term", "phrase"],
|
|
36888
|
+
chat: ["term", "phrase"],
|
|
36889
|
+
from: ["term", "phrase"],
|
|
36890
|
+
date: ["term", "range"]
|
|
36891
|
+
},
|
|
36892
|
+
maxCalls: SERVER_BOUNDS.maxCalls,
|
|
36893
|
+
all: { words: [] },
|
|
36894
|
+
leaf: /* @__PURE__ */ __name((node) => {
|
|
36895
|
+
if (node.field === "text" || node.field === "exact")
|
|
36896
|
+
return { words: node.value === "" ? [] : [node.value] };
|
|
36723
36897
|
const { chat, sender, date: date2 } = node.resolution ?? {};
|
|
36724
36898
|
if (chat)
|
|
36725
|
-
return sameAccount4(chat.account, account) ?
|
|
36899
|
+
return sameAccount4(chat.account, account) ? { words: [], chat: chat.chatId } : void 0;
|
|
36726
36900
|
if (sender?.provider === account.provider)
|
|
36727
|
-
return
|
|
36728
|
-
if (date2)
|
|
36729
|
-
|
|
36730
|
-
|
|
36731
|
-
|
|
36732
|
-
|
|
36733
|
-
|
|
36734
|
-
|
|
36735
|
-
|
|
36736
|
-
return
|
|
36737
|
-
}
|
|
36738
|
-
|
|
36739
|
-
|
|
36740
|
-
|
|
36741
|
-
const should = node.clauses.filter(({ occur }) => occur === "should");
|
|
36742
|
-
return should.length ? should.flatMap(({ node: node2 }) => branchesOf(node2, account)) : [{ words: [] }];
|
|
36743
|
-
}, "branchesOf");
|
|
36901
|
+
return { words: [], from: sender.id };
|
|
36902
|
+
if (date2) {
|
|
36903
|
+
const { from, to } = windowOf(date2);
|
|
36904
|
+
return {
|
|
36905
|
+
words: [],
|
|
36906
|
+
...from === void 0 ? {} : { minDate: from },
|
|
36907
|
+
...to === void 0 ? {} : { maxDate: to }
|
|
36908
|
+
};
|
|
36909
|
+
}
|
|
36910
|
+
return { words: [] };
|
|
36911
|
+
}, "leaf"),
|
|
36912
|
+
both: merge,
|
|
36913
|
+
sends: /* @__PURE__ */ __name(({ words: words3 }) => words3.length > 0, "sends")
|
|
36914
|
+
}), "serverReads");
|
|
36744
36915
|
var asQuery = /* @__PURE__ */ __name(({ words: words3, from, ...rest }) => ({
|
|
36745
36916
|
text: words3.join(" "),
|
|
36746
36917
|
...rest,
|
|
@@ -36797,15 +36968,12 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
36797
36968
|
const scoped = execution.chat ? sameAccount4(execution.chat.account, account) ? { words: [], chat: execution.chat.chatId } : void 0 : { words: [] };
|
|
36798
36969
|
if (!scoped)
|
|
36799
36970
|
return skip("other_accounts");
|
|
36800
|
-
const
|
|
36801
|
-
|
|
36802
|
-
...new Map(all.filter(({ words: words3 }) => words3.length).map((branch) => [JSON.stringify(branch), branch])).values()
|
|
36803
|
-
];
|
|
36804
|
-
if (!unique.length)
|
|
36971
|
+
const { calls, complete } = serviceCallsOf(execution.root, serverReads(account), scoped);
|
|
36972
|
+
if (!calls.length)
|
|
36805
36973
|
return skip("no_words");
|
|
36806
|
-
if (deps.messenger.serverSearch === "chat" &&
|
|
36974
|
+
if (deps.messenger.serverSearch === "chat" && calls.some(({ chat }) => chat === void 0))
|
|
36807
36975
|
return skip("needs_chat");
|
|
36808
|
-
if (
|
|
36976
|
+
if (!complete)
|
|
36809
36977
|
report.complete = false;
|
|
36810
36978
|
const controller = new AbortController();
|
|
36811
36979
|
const timer = setTimeout(() => controller.abort(), timeMs);
|
|
@@ -36815,7 +36983,6 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
36815
36983
|
resolve7(BOUND);
|
|
36816
36984
|
stop.addEventListener("abort", () => resolve7(BOUND), { once: true });
|
|
36817
36985
|
});
|
|
36818
|
-
const calls = unique.slice(0, SERVER_BOUNDS.maxCalls);
|
|
36819
36986
|
const pending = new Set(calls);
|
|
36820
36987
|
const found = [];
|
|
36821
36988
|
let open7 = true;
|
|
@@ -36882,7 +37049,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
36882
37049
|
return { report, sources };
|
|
36883
37050
|
}, "searchServer");
|
|
36884
37051
|
|
|
36885
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37052
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
36886
37053
|
var DELETE_AT_ONCE = 10;
|
|
36887
37054
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
36888
37055
|
const files = fileLinks(attachments);
|
|
@@ -37322,7 +37489,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
37322
37489
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
37323
37490
|
}, "checkMediaOptions");
|
|
37324
37491
|
|
|
37325
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37492
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
37326
37493
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
37327
37494
|
var RULES2 = {
|
|
37328
37495
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -37337,7 +37504,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
|
|
|
37337
37504
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
37338
37505
|
}), "classifyChannel");
|
|
37339
37506
|
|
|
37340
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37507
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
37341
37508
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
37342
37509
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
37343
37510
|
const store = await deps.store();
|
|
@@ -37423,7 +37590,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
37423
37590
|
};
|
|
37424
37591
|
}, "metadataService");
|
|
37425
37592
|
|
|
37426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37593
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
37427
37594
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
37428
37595
|
var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
37429
37596
|
const { chatId, title, rules, point, since, dryRun } = run2;
|
|
@@ -37460,7 +37627,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
|
37460
37627
|
return { chatId, rows, notes };
|
|
37461
37628
|
}, "moderateWith");
|
|
37462
37629
|
|
|
37463
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
37464
37631
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
37465
37632
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
37466
37633
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -37538,7 +37705,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
37538
37705
|
}, "removePerson")
|
|
37539
37706
|
}), "moderatorOf");
|
|
37540
37707
|
|
|
37541
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37708
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
37542
37709
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
37543
37710
|
id: note.id,
|
|
37544
37711
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -37582,7 +37749,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
37582
37749
|
};
|
|
37583
37750
|
}, "privatePeopleService");
|
|
37584
37751
|
|
|
37585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
37586
37753
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
37587
37754
|
total: 0,
|
|
37588
37755
|
population: 0,
|
|
@@ -37838,7 +38005,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
37838
38005
|
}, "evidence")
|
|
37839
38006
|
}), "rankingsService");
|
|
37840
38007
|
|
|
37841
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38008
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
37842
38009
|
var FIELDS = ["date", "chat", "kind", "muted"];
|
|
37843
38010
|
var WAITING_TAIL = 100;
|
|
37844
38011
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -37972,7 +38139,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37972
38139
|
};
|
|
37973
38140
|
}, "replyStatsService");
|
|
37974
38141
|
|
|
37975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38142
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
37976
38143
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
37977
38144
|
id: one.id,
|
|
37978
38145
|
name: one.name,
|
|
@@ -38098,7 +38265,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
38098
38265
|
};
|
|
38099
38266
|
}, "searchesService");
|
|
38100
38267
|
|
|
38101
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38268
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
38102
38269
|
var TAGGING_QUERY = {
|
|
38103
38270
|
entity: "tagging",
|
|
38104
38271
|
backend: "sql",
|
|
@@ -38182,7 +38349,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
38182
38349
|
};
|
|
38183
38350
|
}, "tagsService");
|
|
38184
38351
|
|
|
38185
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38352
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
38186
38353
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
38187
38354
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
38188
38355
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -38381,10 +38548,10 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
38381
38548
|
};
|
|
38382
38549
|
}, "topicsService");
|
|
38383
38550
|
|
|
38384
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38551
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/crm/sync.js
|
|
38385
38552
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
38386
38553
|
|
|
38387
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38554
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/crm/writer.js
|
|
38388
38555
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
38389
38556
|
var CRM_WRITE_DEFAULTS = {
|
|
38390
38557
|
"deals.delete": "ask",
|
|
@@ -38392,7 +38559,7 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
38392
38559
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
38393
38560
|
};
|
|
38394
38561
|
|
|
38395
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
38396
38563
|
import { createHash as createHash11, randomUUID as randomUUID6 } from "node:crypto";
|
|
38397
38564
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
38398
38565
|
var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -38466,7 +38633,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
38466
38633
|
return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
|
|
38467
38634
|
}, "prepareEvidencePacket");
|
|
38468
38635
|
|
|
38469
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
38470
38637
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
38471
38638
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
38472
38639
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -38486,7 +38653,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
38486
38653
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
38487
38654
|
}, "readEvidencePacket");
|
|
38488
38655
|
|
|
38489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38656
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
38490
38657
|
var scopeKeys = [
|
|
38491
38658
|
"accountId",
|
|
38492
38659
|
"meetingId",
|
|
@@ -38508,7 +38675,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
38508
38675
|
"maxVocabularyReadBytes"
|
|
38509
38676
|
]);
|
|
38510
38677
|
|
|
38511
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
|
|
38512
38679
|
import { createHash as createHash12 } from "node:crypto";
|
|
38513
38680
|
import { existsSync as existsSync3 } from "node:fs";
|
|
38514
38681
|
var useTextModel = /* @__PURE__ */ __name(async (id2, { env, command }) => {
|
|
@@ -38639,14 +38806,14 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id2, payload, { env, fetc
|
|
|
38639
38806
|
return { ...checked2.output, custom: true };
|
|
38640
38807
|
}, "addCustomTextModel");
|
|
38641
38808
|
|
|
38642
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38809
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/calendar/sync.js
|
|
38643
38810
|
var DAY6 = 864e5;
|
|
38644
38811
|
var SLOTS_EVERY = 7 * DAY6;
|
|
38645
38812
|
|
|
38646
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38813
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/calendar/feeds.js
|
|
38647
38814
|
var FEED_LIMITS = { maxBytes: 10 * 1024 * 1024, timeoutMs: 3e4, redirects: 5 };
|
|
38648
38815
|
|
|
38649
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/calendar/reads.js
|
|
38650
38817
|
var LIST = "events list";
|
|
38651
38818
|
var EVENT_TYPES = [
|
|
38652
38819
|
"default",
|
|
@@ -38705,7 +38872,7 @@ var EVENTS_QUERY = {
|
|
|
38705
38872
|
} : field)
|
|
38706
38873
|
};
|
|
38707
38874
|
|
|
38708
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38875
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/calendar/writer.js
|
|
38709
38876
|
var EVENTS_NOTIFY_KEY = "events.notify";
|
|
38710
38877
|
var EVENTS_DELETE_SERIES_KEY = "events.delete.series";
|
|
38711
38878
|
var EVENTS_REMIND_HOOK_KEY = "events.remind.hook";
|
|
@@ -38723,7 +38890,7 @@ var CALENDAR_WRITE_DEFAULTS = {
|
|
|
38723
38890
|
[EVENTS_REMIND_HOOK_KEY]: "deny"
|
|
38724
38891
|
};
|
|
38725
38892
|
|
|
38726
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38893
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
38727
38894
|
var communicationFields = {
|
|
38728
38895
|
sources: pipe(array(strictObject({
|
|
38729
38896
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -38755,7 +38922,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
38755
38922
|
return { ...input, after, before: before2 };
|
|
38756
38923
|
}, "communicationRequest");
|
|
38757
38924
|
|
|
38758
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
38759
38926
|
var MEETING_PREPARATION_LIMITS = {
|
|
38760
38927
|
meetings: { min: 1, max: 20, default: 5 },
|
|
38761
38928
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -38828,7 +38995,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
38828
38995
|
};
|
|
38829
38996
|
}, "validateMeetingPreparationRequest");
|
|
38830
38997
|
|
|
38831
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38998
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
38832
38999
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
38833
39000
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
38834
39001
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -38876,7 +39043,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
38876
39043
|
}
|
|
38877
39044
|
}, "validatePreparationCommunications");
|
|
38878
39045
|
|
|
38879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39046
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
38880
39047
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
38881
39048
|
const installer = ports.installer();
|
|
38882
39049
|
const argv = updateCommand(installer, packageName);
|
|
@@ -38941,7 +39108,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
38941
39108
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
38942
39109
|
}, "dayAfter");
|
|
38943
39110
|
|
|
38944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39111
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
38945
39112
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
38946
39113
|
const pictures = picturesService(deps);
|
|
38947
39114
|
const base = {
|
|
@@ -38978,7 +39145,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
38978
39145
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
38979
39146
|
}, "servicesFor");
|
|
38980
39147
|
|
|
38981
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39148
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
38982
39149
|
import { createHash as createHash13 } from "node:crypto";
|
|
38983
39150
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync6, rmSync as rmSync3 } from "node:fs";
|
|
38984
39151
|
import { createConnection, createServer } from "node:net";
|
|
@@ -39199,7 +39366,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options2) => new Promi
|
|
|
39199
39366
|
}, () => finish({ error: stopped() }));
|
|
39200
39367
|
}), "relayCommand");
|
|
39201
39368
|
|
|
39202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
39203
39370
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
39204
39371
|
close: /* @__PURE__ */ __name(async () => {
|
|
39205
39372
|
}, "close"),
|