@wirecat/mail-cli 0.23.0 → 0.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-CI32WFEV.js → all-profiles-FJHJCGRU.js} +7 -7
- package/dist/bundle/{anthropic-ICSOMJIN.js → anthropic-AFL7NKVZ.js} +2 -2
- package/dist/bundle/{app-server-3F4ZB7DH.js → app-server-WKCBJMHI.js} +41 -41
- package/dist/bundle/{bun-7AHNFZMZ.js → bun-HQATAQJQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-UIWRS4HI.js → bun-sqlite-4ECAV7OU.js} +2 -2
- package/dist/bundle/{chunk-D6WTKSRA.js → chunk-2HXHAFRP.js} +2 -2
- package/dist/bundle/{chunk-XP5FBDIG.js → chunk-34743C4C.js} +1 -1
- package/dist/bundle/{chunk-SETCGPFG.js → chunk-3OZKDC6Y.js} +7 -6
- package/dist/bundle/{chunk-ETIUB2DF.js → chunk-3UFD76IR.js} +4 -4
- package/dist/bundle/{chunk-UA4BOLIY.js → chunk-4IFX4HV2.js} +4 -4
- package/dist/bundle/{chunk-7SIWMF77.js → chunk-4IWJARFA.js} +1 -1
- package/dist/bundle/{chunk-WQRX4RQS.js → chunk-4YJJQNNJ.js} +3 -3
- package/dist/bundle/{chunk-5Y2WRUYP.js → chunk-5UKBUI4I.js} +1 -1
- package/dist/bundle/{chunk-7OVVX4F4.js → chunk-76RTQYJQ.js} +1 -1
- package/dist/bundle/{chunk-TEL2OMS5.js → chunk-7YRKUEYE.js} +70 -49
- package/dist/bundle/{chunk-I3YNNSGB.js → chunk-AGNAT7CM.js} +1 -1
- package/dist/bundle/{chunk-4YTX5YAU.js → chunk-B6QMMRIM.js} +175 -151
- package/dist/bundle/{chunk-5J4WNTTM.js → chunk-BVJQBAGL.js} +9 -9
- package/dist/bundle/{chunk-NEDYKKJJ.js → chunk-CBWA2T3N.js} +2 -2
- package/dist/bundle/{chunk-R4RAWEMV.js → chunk-CCYHBNRL.js} +14 -14
- package/dist/bundle/{chunk-ZYHBMDNU.js → chunk-CUOCDJFI.js} +7 -7
- package/dist/bundle/{chunk-HN6PB7F5.js → chunk-CYQVWITQ.js} +16 -16
- package/dist/bundle/{chunk-SCH3NC5X.js → chunk-E7ZVKQHG.js} +2 -2
- package/dist/bundle/{chunk-B4MWHI2V.js → chunk-EXPR6QAX.js} +25 -11
- package/dist/bundle/{chunk-5AQ4S4TZ.js → chunk-FWFNUJQD.js} +17 -17
- package/dist/bundle/{chunk-UTLJQG6Q.js → chunk-GJNFNC76.js} +7 -7
- package/dist/bundle/{chunk-S2U5BXWS.js → chunk-HOKGIYUO.js} +22 -2
- package/dist/bundle/{chunk-HGV7DSSA.js → chunk-KKGX7JMX.js} +2 -2
- package/dist/bundle/{chunk-7DFWXIY5.js → chunk-LQDMUMA2.js} +222 -222
- package/dist/bundle/{chunk-FIZWQTUC.js → chunk-M7RGG3UU.js} +2 -2
- package/dist/bundle/{chunk-HRIYU2HJ.js → chunk-MBKNL5TX.js} +433 -94
- package/dist/bundle/{chunk-5Z7LZAVP.js → chunk-MUDHCYN4.js} +5 -5
- package/dist/bundle/{chunk-KNRONMVG.js → chunk-NKBAZ4VC.js} +1 -1
- package/dist/bundle/{chunk-JDKC7EXM.js → chunk-NMGF3UOZ.js} +27 -27
- package/dist/bundle/{chunk-FVKZ55I2.js → chunk-NOA6E6MM.js} +1652 -1216
- package/dist/bundle/{chunk-7ZDH2XEY.js → chunk-OJCUSHZG.js} +3 -3
- package/dist/bundle/{chunk-JO4BJYVE.js → chunk-OU5CWCG2.js} +1 -1
- package/dist/bundle/{chunk-NKDYHAHP.js → chunk-PMIKRELC.js} +2 -2
- package/dist/bundle/{chunk-XV3M3NAN.js → chunk-QR7JZM3D.js} +1 -1
- package/dist/bundle/{chunk-KJQZXCNK.js → chunk-QUKD5SO2.js} +3 -3
- package/dist/bundle/{chunk-AFPETMXZ.js → chunk-QV3M2MHG.js} +8 -8
- package/dist/bundle/{chunk-6FSLEARF.js → chunk-R554W7ZO.js} +1 -1
- package/dist/bundle/{chunk-2BAO4T4Z.js → chunk-R5MYOLQP.js} +12 -12
- package/dist/bundle/{chunk-ELGEHZK2.js → chunk-ROKTS7WM.js} +1 -1
- package/dist/bundle/{chunk-5QQOUYNA.js → chunk-S5OTP7XS.js} +2 -2
- package/dist/bundle/{chunk-B6GITVDX.js → chunk-SBGXKM4U.js} +4 -4
- package/dist/bundle/{chunk-5AS5N7V5.js → chunk-SNTLN2QT.js} +1 -1
- package/dist/bundle/{chunk-FHCOGR7S.js → chunk-SR3ADLGX.js} +2 -2
- package/dist/bundle/{chunk-SGMENSI6.js → chunk-UMXVQIGD.js} +24 -14
- package/dist/bundle/{chunk-4PNIZUEC.js → chunk-V3TDQUXD.js} +23 -23
- package/dist/bundle/{chunk-BT7UUI6E.js → chunk-V7CFZ773.js} +2 -2
- package/dist/bundle/{chunk-4TKQIXND.js → chunk-VAMCRP47.js} +1 -1
- package/dist/bundle/{chunk-AHRHP2H2.js → chunk-VFKX5UMJ.js} +5 -5
- package/dist/bundle/{chunk-CNYQ3TTZ.js → chunk-VYHIX3OP.js} +22 -22
- package/dist/bundle/{chunk-OMW37FXK.js → chunk-VYIIX6VN.js} +1 -1
- package/dist/bundle/{chunk-RIAZTS6C.js → chunk-WN4HP7IZ.js} +10 -10
- package/dist/bundle/{chunk-IMIY7HQB.js → chunk-ZXIPJF3Y.js} +1 -1
- package/dist/bundle/{command-contract-UIRWJVEY.js → command-contract-IIHBNF7J.js} +14 -14
- package/dist/bundle/{decode-BJXABRAN.js → decode-QXKTMOTH.js} +2 -2
- package/dist/bundle/{dist-LLEA6R4V.js → dist-5FX36DAW.js} +18 -10
- package/dist/bundle/{echarts-YPTKBOZV.js → echarts-HHUM43TU.js} +2 -2
- package/dist/bundle/{embed-DMROTI5M.js → embed-SRZSDZVI.js} +3 -3
- package/dist/bundle/{embedder-DWMHXCHJ.js → embedder-WZIZCWLX.js} +6 -6
- package/dist/bundle/{first-run-FQOEF2IO.js → first-run-6DVWZ3JQ.js} +5 -5
- package/dist/bundle/first-screen-SRZ7NYHZ.js +33 -0
- package/dist/bundle/{instructions-OGKMROLD.js → instructions-UWONE6UT.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-HIKYE546.js → node-HLAOYJDB.js} +2 -2
- package/dist/bundle/{node-sqlite-3GJAG7VO.js → node-sqlite-RO66I7W6.js} +3 -3
- package/dist/bundle/{oauth-H3DB6IHI.js → oauth-VNLB2TET.js} +4 -4
- package/dist/bundle/{open-DJ2PRG74.js → open-QQSG343L.js} +2 -2
- package/dist/bundle/{openai-MDBRYB55.js → openai-JTFC7OGF.js} +10 -10
- package/dist/bundle/{process-4LBD72JH.js → process-3CZAXR6P.js} +1 -1
- package/dist/bundle/{program-F6WK6RX4.js → program-XTOS4RAM.js} +1504 -817
- package/dist/bundle/{prompt-UNPUG6SO.js → prompt-HGQ6GPYL.js} +2 -2
- package/dist/bundle/{recognize-DMIO4PDB.js → recognize-2SHMNEIZ.js} +1 -1
- package/dist/bundle/{remote-24HJA72D.js → remote-GBQC3433.js} +4 -4
- package/dist/bundle/{rerank-PTNCHHIU.js → rerank-FQHQXFNR.js} +4 -4
- package/dist/bundle/{serve-T6JHM2YD.js → serve-THU67QUZ.js} +6 -6
- package/dist/bundle/{server-BWEYRUR3.js → server-LOT3CLYX.js} +33 -33
- package/dist/bundle/server-VKMUX7ZT.js +65 -0
- package/dist/bundle/{sqlite-runtime-ZJ4EH5ZM.js → sqlite-runtime-NOOUMBC4.js} +3 -3
- package/dist/bundle/{state-KSN4OFYW.js → state-KSKZCV2U.js} +3 -3
- package/dist/bundle/{store-OIEZJEA7.js → store-BAKSHTKF.js} +18 -12
- package/dist/bundle/{store-GVBW2ZFK.js → store-OHNZOQ7U.js} +20 -16
- package/dist/bundle/store-maintenance-command-ROQHJVEA.js +54 -0
- package/dist/commands/rules.d.ts.map +1 -1
- package/dist/commands/rules.js +29 -7
- package/dist/commands/rules.js.map +1 -1
- package/dist/commands/sync.d.ts +0 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +8 -2
- package/dist/commands/sync.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/first-screen-B6LF5464.js +0 -33
- package/dist/bundle/server-VUQNR5ZD.js +0 -65
- package/dist/bundle/store-maintenance-command-KJ54HLUQ.js +0 -54
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-R5MYOLQP.js";
|
|
12
12
|
import {
|
|
13
13
|
MAX_ACTIONS,
|
|
14
14
|
ModerationRules,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
someUndone,
|
|
27
27
|
validateFormattedText,
|
|
28
28
|
visibleFormattedText
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-QV3M2MHG.js";
|
|
30
30
|
import {
|
|
31
31
|
MAX_MODEL_IMAGE_BYTES,
|
|
32
32
|
checkedOptions,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
range,
|
|
35
35
|
systemFor,
|
|
36
36
|
validateImages
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-CBWA2T3N.js";
|
|
38
38
|
import {
|
|
39
39
|
Command,
|
|
40
40
|
CustomTextModelShape,
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
vectorModelKey,
|
|
82
82
|
withAttempt,
|
|
83
83
|
writeTextModelsSection
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-B6QMMRIM.js";
|
|
85
85
|
import {
|
|
86
86
|
isNewer,
|
|
87
87
|
updateCommand
|
|
@@ -151,7 +151,7 @@ import {
|
|
|
151
151
|
validateAst,
|
|
152
152
|
validateFields,
|
|
153
153
|
withoutField
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-NOA6E6MM.js";
|
|
155
155
|
import {
|
|
156
156
|
COUNTER_FIELDS,
|
|
157
157
|
INTERNAL_NOTES,
|
|
@@ -174,13 +174,13 @@ import {
|
|
|
174
174
|
providerNamed,
|
|
175
175
|
rankingOptions,
|
|
176
176
|
rankingQuestion
|
|
177
|
-
} from "./chunk-
|
|
177
|
+
} from "./chunk-FWFNUJQD.js";
|
|
178
178
|
import {
|
|
179
179
|
TASK_KINDS,
|
|
180
180
|
TASK_STATES,
|
|
181
181
|
createTaskService,
|
|
182
182
|
isClosedState
|
|
183
|
-
} from "./chunk-
|
|
183
|
+
} from "./chunk-EXPR6QAX.js";
|
|
184
184
|
import {
|
|
185
185
|
EVENT_QUERY,
|
|
186
186
|
MEETING_PROJECT_EVIDENCE_QUERY,
|
|
@@ -222,27 +222,27 @@ import {
|
|
|
222
222
|
validateQuery,
|
|
223
223
|
walkQuery,
|
|
224
224
|
zonedMoment
|
|
225
|
-
} from "./chunk-
|
|
225
|
+
} from "./chunk-7YRKUEYE.js";
|
|
226
226
|
import {
|
|
227
227
|
isCliFailure,
|
|
228
228
|
sqliteCode
|
|
229
|
-
} from "./chunk-
|
|
229
|
+
} from "./chunk-R554W7ZO.js";
|
|
230
230
|
import {
|
|
231
231
|
DEFAULT_STEMMERS,
|
|
232
232
|
createStemmer,
|
|
233
233
|
fold,
|
|
234
234
|
normalize
|
|
235
|
-
} from "./chunk-
|
|
235
|
+
} from "./chunk-GJNFNC76.js";
|
|
236
236
|
import {
|
|
237
237
|
DEFAULT_TASK_CATEGORIES,
|
|
238
238
|
FALLBACK_CATEGORY,
|
|
239
239
|
readSharedSection,
|
|
240
240
|
sharedConfigPath,
|
|
241
241
|
writeSharedSection
|
|
242
|
-
} from "./chunk-
|
|
242
|
+
} from "./chunk-3UFD76IR.js";
|
|
243
243
|
import {
|
|
244
244
|
remoteKey
|
|
245
|
-
} from "./chunk-
|
|
245
|
+
} from "./chunk-PMIKRELC.js";
|
|
246
246
|
import {
|
|
247
247
|
Unzip,
|
|
248
248
|
UnzipInflate,
|
|
@@ -253,15 +253,15 @@ import {
|
|
|
253
253
|
placedText,
|
|
254
254
|
runEmbedders,
|
|
255
255
|
textModelsDirectory
|
|
256
|
-
} from "./chunk-
|
|
256
|
+
} from "./chunk-VFKX5UMJ.js";
|
|
257
257
|
import {
|
|
258
258
|
installFiles,
|
|
259
259
|
megabytes
|
|
260
|
-
} from "./chunk-
|
|
260
|
+
} from "./chunk-QUKD5SO2.js";
|
|
261
261
|
import {
|
|
262
262
|
storePath,
|
|
263
263
|
wirecatDirectory
|
|
264
|
-
} from "./chunk-
|
|
264
|
+
} from "./chunk-5UKBUI4I.js";
|
|
265
265
|
import {
|
|
266
266
|
Credentials,
|
|
267
267
|
pathsAreOverridden,
|
|
@@ -16918,10 +16918,10 @@ var require_lib3 = __commonJS({
|
|
|
16918
16918
|
}
|
|
16919
16919
|
});
|
|
16920
16920
|
|
|
16921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16921
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16922
16922
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
16923
16923
|
|
|
16924
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16924
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16925
16925
|
var RULES_VERSION = 5;
|
|
16926
16926
|
var LOOK_BACK = 50;
|
|
16927
16927
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -17011,7 +17011,7 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
17011
17011
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
17012
17012
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
17013
17013
|
|
|
17014
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17014
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17015
17015
|
var COMMAND_NEEDS = {
|
|
17016
17016
|
"account update": ["updateProfile", "change the profile"],
|
|
17017
17017
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17061,7 +17061,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17061
17061
|
return group;
|
|
17062
17062
|
}, "hideNever");
|
|
17063
17063
|
|
|
17064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17065
17065
|
var AUDIT_PAGE = 200;
|
|
17066
17066
|
var AUDIT_BUDGET = 10;
|
|
17067
17067
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17141,7 +17141,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17141
17141
|
return found;
|
|
17142
17142
|
}, "burstJoins");
|
|
17143
17143
|
|
|
17144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17144
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17145
17145
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17146
17146
|
command.allowUnknownOption();
|
|
17147
17147
|
const parse2 = command.parseOptions.bind(command);
|
|
@@ -17161,7 +17161,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17161
17161
|
return command;
|
|
17162
17162
|
}, "queryWordsAfterOptions");
|
|
17163
17163
|
|
|
17164
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17165
17165
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17166
17166
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17167
17167
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -17203,7 +17203,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
17203
17203
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
17204
17204
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
17205
17205
|
|
|
17206
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17206
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
17207
17207
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
17208
17208
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17209
17209
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -17226,7 +17226,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
17226
17226
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
17227
17227
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
17228
17228
|
|
|
17229
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17229
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
17230
17230
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
17231
17231
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
17232
17232
|
const zone = timezoneOf();
|
|
@@ -17312,7 +17312,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
17312
17312
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
17313
17313
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
17314
17314
|
|
|
17315
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17315
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
17316
17316
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
17317
17317
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
17318
17318
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -17456,7 +17456,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17456
17456
|
}, "addMeetingCommandsDefinition");
|
|
17457
17457
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
17458
17458
|
|
|
17459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
17460
17460
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
17461
17461
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
17462
17462
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -17589,7 +17589,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
17589
17589
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
17590
17590
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
17591
17591
|
|
|
17592
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17592
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
17593
17593
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
17594
17594
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
17595
17595
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -17598,7 +17598,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
17598
17598
|
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");
|
|
17599
17599
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
17600
17600
|
|
|
17601
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17601
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
17602
17602
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
17603
17603
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
17604
17604
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -17860,7 +17860,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
17860
17860
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
17861
17861
|
}), "sessionAnswer");
|
|
17862
17862
|
|
|
17863
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17863
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17864
17864
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17865
17865
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17866
17866
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -17922,7 +17922,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
17922
17922
|
}), "storedDeps");
|
|
17923
17923
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
17924
17924
|
|
|
17925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
17926
17926
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
17927
17927
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
17928
17928
|
if (key in own)
|
|
@@ -17939,12 +17939,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
17939
17939
|
return found.bind(adapter);
|
|
17940
17940
|
}, "capability");
|
|
17941
17941
|
|
|
17942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17943
17943
|
import { randomBytes } from "node:crypto";
|
|
17944
17944
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17945
17945
|
var newOperationId = newSendId;
|
|
17946
17946
|
|
|
17947
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17947
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
17948
17948
|
var LINKS = /https?:\/\/\S+/g;
|
|
17949
17949
|
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");
|
|
17950
17950
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -17974,7 +17974,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
17974
17974
|
});
|
|
17975
17975
|
}, "questions");
|
|
17976
17976
|
|
|
17977
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17977
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
17978
17978
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
17979
17979
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
17980
17980
|
const name = typed.trim().toLowerCase();
|
|
@@ -18031,7 +18031,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
18031
18031
|
return best.name;
|
|
18032
18032
|
}, "categorize");
|
|
18033
18033
|
|
|
18034
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18034
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
18035
18035
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
18036
18036
|
var RULES_IN = {
|
|
18037
18037
|
dialog: "all",
|
|
@@ -18237,7 +18237,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
18237
18237
|
return passes;
|
|
18238
18238
|
}, "applyTaskRulesToChats");
|
|
18239
18239
|
|
|
18240
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18240
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
18241
18241
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
18242
18242
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
18243
18243
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -18277,7 +18277,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
18277
18277
|
};
|
|
18278
18278
|
}, "dateWindow");
|
|
18279
18279
|
|
|
18280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18280
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18281
18281
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18282
18282
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18283
18283
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -18300,10 +18300,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
18300
18300
|
}
|
|
18301
18301
|
}, "patiently");
|
|
18302
18302
|
|
|
18303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18304
18304
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18305
18305
|
|
|
18306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18306
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18307
18307
|
var REQUEST_MS = 400;
|
|
18308
18308
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18309
18309
|
const lowest = ranges[0];
|
|
@@ -18326,13 +18326,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18326
18326
|
};
|
|
18327
18327
|
}, "estimateBackfill");
|
|
18328
18328
|
|
|
18329
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18329
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18330
18330
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18331
18331
|
...error,
|
|
18332
18332
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18333
18333
|
}), "withRecovery");
|
|
18334
18334
|
|
|
18335
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18335
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18336
18336
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18337
18337
|
if (isCliFailure(error))
|
|
18338
18338
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18415,7 +18415,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18415
18415
|
};
|
|
18416
18416
|
}, "mergeBatches");
|
|
18417
18417
|
|
|
18418
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18418
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18419
18419
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18420
18420
|
if (deps.reads !== "store")
|
|
18421
18421
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18574,7 +18574,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18574
18574
|
}
|
|
18575
18575
|
}, "senderAmong");
|
|
18576
18576
|
|
|
18577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18577
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
18578
18578
|
var CONTEXT_MESSAGES = 3;
|
|
18579
18579
|
var CONTEXT_MINUTES = 10;
|
|
18580
18580
|
var MAX_CHARS = 1200;
|
|
@@ -18598,12 +18598,12 @@ var context = {
|
|
|
18598
18598
|
}, "describe")
|
|
18599
18599
|
};
|
|
18600
18600
|
|
|
18601
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18601
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
18602
18602
|
var BUILT_INS = [context];
|
|
18603
18603
|
var providers = [...BUILT_INS];
|
|
18604
18604
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18605
18605
|
|
|
18606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18606
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
18607
18607
|
var READ_PAGE = 5e3;
|
|
18608
18608
|
var CHAIN = 50;
|
|
18609
18609
|
var CONVERSATION_QUERY = {
|
|
@@ -18755,7 +18755,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
18755
18755
|
return size2;
|
|
18756
18756
|
}, "sized");
|
|
18757
18757
|
|
|
18758
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18758
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
18759
18759
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
18760
18760
|
var MESSAGE_PAGE = 5e3;
|
|
18761
18761
|
var PER_SESSION = 8;
|
|
@@ -18774,7 +18774,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
18774
18774
|
price: remote.price,
|
|
18775
18775
|
installed: true,
|
|
18776
18776
|
perBatch: PER_REQUEST * concurrency,
|
|
18777
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
18777
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-GBQC3433.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
18778
18778
|
};
|
|
18779
18779
|
}
|
|
18780
18780
|
const model = textModel(choice, deps.env);
|
|
@@ -18791,7 +18791,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
18791
18791
|
if (!isTextModelInstalled(model, directory2))
|
|
18792
18792
|
throw notDownloaded(model.id);
|
|
18793
18793
|
if (apart) {
|
|
18794
|
-
const { openProcess } = await import("./process-
|
|
18794
|
+
const { openProcess } = await import("./process-3CZAXR6P.js");
|
|
18795
18795
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
18796
18796
|
}
|
|
18797
18797
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -19080,7 +19080,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
19080
19080
|
return { ...one, state };
|
|
19081
19081
|
}, "shaped");
|
|
19082
19082
|
|
|
19083
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19083
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
19084
19084
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
19085
19085
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
|
|
19086
19086
|
for (const [key, value, maximum] of [
|
|
@@ -19133,7 +19133,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
|
|
|
19133
19133
|
}
|
|
19134
19134
|
}, "catchUpSearch");
|
|
19135
19135
|
|
|
19136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19136
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
19137
19137
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
19138
19138
|
if (deps.reads === "store") {
|
|
19139
19139
|
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`);
|
|
@@ -19499,7 +19499,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19499
19499
|
return message?.timestamp ?? fallback;
|
|
19500
19500
|
}, "timeOfKey");
|
|
19501
19501
|
|
|
19502
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19502
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
19503
19503
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
19504
19504
|
import { open, stat } from "node:fs/promises";
|
|
19505
19505
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -19701,7 +19701,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read) => {
|
|
|
19701
19701
|
return { name, source };
|
|
19702
19702
|
}, "readStickerFile");
|
|
19703
19703
|
|
|
19704
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19704
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
19705
19705
|
var DAY_MS = 864e5;
|
|
19706
19706
|
var NEW_DAYS = 30;
|
|
19707
19707
|
var SAME_TEXT_MIN = 20;
|
|
@@ -19778,7 +19778,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
19778
19778
|
};
|
|
19779
19779
|
}, "scorePerson");
|
|
19780
19780
|
|
|
19781
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19781
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
19782
19782
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
19783
19783
|
const controller = new AbortController();
|
|
19784
19784
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -19794,7 +19794,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run) => {
|
|
|
19794
19794
|
}
|
|
19795
19795
|
}, "withTimeLimit");
|
|
19796
19796
|
|
|
19797
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19797
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
19798
19798
|
var REGISTRIES = {
|
|
19799
19799
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
19800
19800
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -19881,7 +19881,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
19881
19881
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
19882
19882
|
})), "notCovered");
|
|
19883
19883
|
|
|
19884
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
19885
19885
|
var ACTIVITY_MESSAGES = 1e3;
|
|
19886
19886
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
19887
19887
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -19969,7 +19969,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
19969
19969
|
};
|
|
19970
19970
|
}, "botCheckService");
|
|
19971
19971
|
|
|
19972
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19972
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
19973
19973
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
19974
19974
|
if (value === void 0)
|
|
19975
19975
|
return void 0;
|
|
@@ -19979,7 +19979,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
19979
19979
|
return id2;
|
|
19980
19980
|
}, "threadIdOf");
|
|
19981
19981
|
|
|
19982
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19982
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
19983
19983
|
var TOP_POSTS = 5;
|
|
19984
19984
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
19985
19985
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20096,7 +20096,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20096
20096
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20097
20097
|
}, "median");
|
|
20098
20098
|
|
|
20099
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20099
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20100
20100
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20101
20101
|
const events = [];
|
|
20102
20102
|
for (const stay of stays) {
|
|
@@ -20128,7 +20128,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20128
20128
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
20129
20129
|
}, "memberEvents");
|
|
20130
20130
|
|
|
20131
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20131
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20132
20132
|
var EVENTS_DAYS = 7;
|
|
20133
20133
|
var TRACKED_DAYS = 30;
|
|
20134
20134
|
var STATS_PAGE = 1e3;
|
|
@@ -20423,7 +20423,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20423
20423
|
return members.length === 0 ? null : members;
|
|
20424
20424
|
}, "storedMembers");
|
|
20425
20425
|
|
|
20426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
20427
20427
|
var INBOX_CHATS = 20;
|
|
20428
20428
|
var REVIEW_DAYS = 3;
|
|
20429
20429
|
var UNANSWERED_HOURS = 24;
|
|
@@ -20631,7 +20631,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20631
20631
|
};
|
|
20632
20632
|
}, "inboxService");
|
|
20633
20633
|
|
|
20634
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20634
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
20635
20635
|
var CONTEXT_MESSAGES2 = 10;
|
|
20636
20636
|
var CONTEXT_BYTES = 64 * 1024;
|
|
20637
20637
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -20920,10 +20920,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
20920
20920
|
};
|
|
20921
20921
|
}, "personMessages");
|
|
20922
20922
|
|
|
20923
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
20924
20924
|
import { createHash } from "node:crypto";
|
|
20925
20925
|
|
|
20926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
20927
20927
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
20928
20928
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
|
|
20929
20929
|
const parsed = parseMeetingReference(reference);
|
|
@@ -20941,7 +20941,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
20941
20941
|
return { parsed, meeting };
|
|
20942
20942
|
}, "authorizedMeetingMetadata");
|
|
20943
20943
|
|
|
20944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
20945
20945
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
20946
20946
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
20947
20947
|
if (signal?.aborted)
|
|
@@ -21140,7 +21140,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
21140
21140
|
return { ...packet, fingerprint: hash(packet) };
|
|
21141
21141
|
}, "readMeetingEvidence");
|
|
21142
21142
|
|
|
21143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
21144
21144
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
|
|
21145
21145
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
|
|
21146
21146
|
const requestedAccounts = options2.accountIds;
|
|
@@ -21239,7 +21239,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
21239
21239
|
};
|
|
21240
21240
|
}, "personMeetingContext");
|
|
21241
21241
|
|
|
21242
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21242
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
21243
21243
|
var PREPARE_BYTES = 96 * 1024;
|
|
21244
21244
|
var MEETINGS = 5;
|
|
21245
21245
|
var CUES = 3;
|
|
@@ -21355,7 +21355,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
21355
21355
|
}
|
|
21356
21356
|
}, "meetingsOf");
|
|
21357
21357
|
|
|
21358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21358
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
21359
21359
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
21360
21360
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
21361
21361
|
const held = await storeIfOpen(deps);
|
|
@@ -21425,7 +21425,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
21425
21425
|
complete: false
|
|
21426
21426
|
})), "quiet");
|
|
21427
21427
|
|
|
21428
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21428
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
21429
21429
|
var TIMELINE_ITEMS = 50;
|
|
21430
21430
|
var TIMELINE_MAX = 500;
|
|
21431
21431
|
var SCOPES = ["personal", "work"];
|
|
@@ -21480,7 +21480,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
21480
21480
|
};
|
|
21481
21481
|
}, "personTimeline");
|
|
21482
21482
|
|
|
21483
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21483
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
21484
21484
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
21485
21485
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
21486
21486
|
const held = await storeIfOpen(deps);
|
|
@@ -21707,7 +21707,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
21707
21707
|
return rest;
|
|
21708
21708
|
}, "withoutPhone");
|
|
21709
21709
|
|
|
21710
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21710
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
21711
21711
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
21712
21712
|
var PERIOD_FIELD = "created";
|
|
21713
21713
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -21810,7 +21810,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
21810
21810
|
}));
|
|
21811
21811
|
}, "meetingNames");
|
|
21812
21812
|
|
|
21813
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21813
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
21814
21814
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
21815
21815
|
const tags = /* @__PURE__ */ new Map();
|
|
21816
21816
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -21819,7 +21819,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
21819
21819
|
return tags;
|
|
21820
21820
|
}, "taskTagFilters");
|
|
21821
21821
|
|
|
21822
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21822
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
21823
21823
|
var TASK_QUERY = {
|
|
21824
21824
|
entity: "task",
|
|
21825
21825
|
backend: "sql",
|
|
@@ -22311,7 +22311,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
22311
22311
|
};
|
|
22312
22312
|
}, "taskView");
|
|
22313
22313
|
|
|
22314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22314
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
22315
22315
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
22316
22316
|
if (newest === null)
|
|
22317
22317
|
return null;
|
|
@@ -22320,7 +22320,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
22320
22320
|
return newest.addressed ? "owed" : null;
|
|
22321
22321
|
}, "mailTurn");
|
|
22322
22322
|
|
|
22323
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22323
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
22324
22324
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
22325
22325
|
if (error instanceof CliError && error.code === "not_found")
|
|
22326
22326
|
return void 0;
|
|
@@ -22378,7 +22378,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
22378
22378
|
};
|
|
22379
22379
|
}, "mailActivity");
|
|
22380
22380
|
|
|
22381
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22381
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
22382
22382
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
22383
22383
|
const ids = [...new Set(chatIds)];
|
|
22384
22384
|
if (ids.length === 0)
|
|
@@ -22404,7 +22404,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
22404
22404
|
}));
|
|
22405
22405
|
}, "chatCoverage");
|
|
22406
22406
|
|
|
22407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22407
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
22408
22408
|
var DAY = 864e5;
|
|
22409
22409
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
22410
22410
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -22651,7 +22651,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
22651
22651
|
};
|
|
22652
22652
|
}, "agendaItem");
|
|
22653
22653
|
|
|
22654
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22654
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
22655
22655
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
22656
22656
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
22657
22657
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -22715,7 +22715,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
22715
22715
|
}
|
|
22716
22716
|
}, "validateContextEvidencePage");
|
|
22717
22717
|
|
|
22718
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22718
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
22719
22719
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
22720
22720
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
22721
22721
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -22768,7 +22768,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
22768
22768
|
};
|
|
22769
22769
|
}, "contextReadBudget");
|
|
22770
22770
|
|
|
22771
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22771
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
22772
22772
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
22773
22773
|
if (!port || typeof port.read !== "function")
|
|
22774
22774
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -22812,7 +22812,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
22812
22812
|
};
|
|
22813
22813
|
}, "createContextEvidenceReader");
|
|
22814
22814
|
|
|
22815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
22816
22816
|
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");
|
|
22817
22817
|
var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options2 = {}) => {
|
|
22818
22818
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -22828,7 +22828,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options2 = {})
|
|
|
22828
22828
|
}, "excerpt");
|
|
22829
22829
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
22830
22830
|
|
|
22831
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22831
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
22832
22832
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
22833
22833
|
var DEFAULT_PURPOSES = ["work"];
|
|
22834
22834
|
var LINK_PURPOSE = "work";
|
|
@@ -22858,7 +22858,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
22858
22858
|
...value.split(",").map((one) => one.trim()).filter(Boolean)
|
|
22859
22859
|
], "purposeList");
|
|
22860
22860
|
|
|
22861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
22862
22862
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
22863
22863
|
async around(ref, window3) {
|
|
22864
22864
|
const at = parseLocator(ref);
|
|
@@ -22953,7 +22953,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
22953
22953
|
};
|
|
22954
22954
|
}, "storedNeighbours");
|
|
22955
22955
|
|
|
22956
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22956
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
22957
22957
|
import { createHash as createHash2 } from "node:crypto";
|
|
22958
22958
|
var DAY2 = 864e5;
|
|
22959
22959
|
var MAX_TIME = 864e13;
|
|
@@ -23269,7 +23269,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
23269
23269
|
return value;
|
|
23270
23270
|
}, "decodeCheckpoint");
|
|
23271
23271
|
|
|
23272
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23272
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
23273
23273
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
23274
23274
|
var PAGE2 = 20;
|
|
23275
23275
|
var PEOPLE = 20;
|
|
@@ -23673,7 +23673,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
23673
23673
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
23674
23674
|
}, "peopleOf");
|
|
23675
23675
|
|
|
23676
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23676
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
23677
23677
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
23678
23678
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
23679
23679
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -23717,7 +23717,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
23717
23717
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
23718
23718
|
}, "matchVocabularyTerms");
|
|
23719
23719
|
|
|
23720
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
23721
23721
|
var KINDS = ["project", "tag", "topic"];
|
|
23722
23722
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
|
|
23723
23723
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -23772,7 +23772,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
23772
23772
|
};
|
|
23773
23773
|
}, "findEvidenceMentions");
|
|
23774
23774
|
|
|
23775
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23775
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
23776
23776
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
23777
23777
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
23778
23778
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -24078,18 +24078,18 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
24078
24078
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
24079
24079
|
}, "purposeHintOf");
|
|
24080
24080
|
|
|
24081
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24081
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
24082
24082
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
24083
24083
|
|
|
24084
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24084
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
24085
24085
|
import { lstat } from "node:fs/promises";
|
|
24086
24086
|
|
|
24087
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24087
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
24088
24088
|
import { createHash as createHash4, randomUUID as randomUUID2 } from "node:crypto";
|
|
24089
24089
|
import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
24090
24090
|
import { join as join2 } from "node:path";
|
|
24091
24091
|
|
|
24092
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24092
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
24093
24093
|
import { createHash as createHash3 } from "node:crypto";
|
|
24094
24094
|
var metadataLimit = 16384;
|
|
24095
24095
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -24149,7 +24149,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
24149
24149
|
}
|
|
24150
24150
|
}, "readPartialMetadata");
|
|
24151
24151
|
|
|
24152
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24152
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
24153
24153
|
import { randomUUID } from "node:crypto";
|
|
24154
24154
|
import { open as open2, rename, unlink } from "node:fs/promises";
|
|
24155
24155
|
import { join } from "node:path";
|
|
@@ -24241,7 +24241,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
24241
24241
|
};
|
|
24242
24242
|
}, "partialWriter");
|
|
24243
24243
|
|
|
24244
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24244
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
24245
24245
|
var NativeRecordingPartialStore = class {
|
|
24246
24246
|
static {
|
|
24247
24247
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -24348,12 +24348,12 @@ var NativeRecordingPartialStore = class {
|
|
|
24348
24348
|
}
|
|
24349
24349
|
};
|
|
24350
24350
|
|
|
24351
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24351
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
24352
24352
|
import { createHash as createHash5 } from "node:crypto";
|
|
24353
24353
|
import { link as link2 } from "node:fs/promises";
|
|
24354
24354
|
import { basename as basename2, dirname as dirname2, join as join4, resolve as resolve2 } from "node:path";
|
|
24355
24355
|
|
|
24356
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24356
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
24357
24357
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
24358
24358
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
24359
24359
|
signal?.throwIfAborted();
|
|
@@ -24388,7 +24388,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
24388
24388
|
signal?.throwIfAborted();
|
|
24389
24389
|
}, "commitPublication");
|
|
24390
24390
|
|
|
24391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
24392
24392
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
24393
24393
|
import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
24394
24394
|
import { join as join3 } from "node:path";
|
|
@@ -24461,7 +24461,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
24461
24461
|
}
|
|
24462
24462
|
}, "writePublicationJournal");
|
|
24463
24463
|
|
|
24464
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24464
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
24465
24465
|
var NativeRecordingPublication = class {
|
|
24466
24466
|
static {
|
|
24467
24467
|
__name(this, "NativeRecordingPublication");
|
|
@@ -24534,7 +24534,7 @@ var NativeRecordingPublication = class {
|
|
|
24534
24534
|
}
|
|
24535
24535
|
};
|
|
24536
24536
|
|
|
24537
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24537
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
24538
24538
|
import { createHash as createHash6 } from "node:crypto";
|
|
24539
24539
|
import { readdir } from "node:fs/promises";
|
|
24540
24540
|
import { isAbsolute as isAbsolute2, join as join5, resolve as resolve3 } from "node:path";
|
|
@@ -24621,7 +24621,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
24621
24621
|
beforePublish
|
|
24622
24622
|
}), "commitMediaEntry");
|
|
24623
24623
|
|
|
24624
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
24625
24625
|
var validator = '"media-completed-v1"';
|
|
24626
24626
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
24627
24627
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file, beforeWrite, signal, metadata = {}) => {
|
|
@@ -24722,7 +24722,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file,
|
|
|
24722
24722
|
return entry;
|
|
24723
24723
|
}, "archiveMediaFile");
|
|
24724
24724
|
|
|
24725
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24725
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
24726
24726
|
import { mkdir, realpath } from "node:fs/promises";
|
|
24727
24727
|
import { join as join6, resolve as resolve4 } from "node:path";
|
|
24728
24728
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -24789,7 +24789,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
24789
24789
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
24790
24790
|
}, "withMediaArchiveLocks");
|
|
24791
24791
|
|
|
24792
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24792
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
24793
24793
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
24794
24794
|
if (value === void 0)
|
|
24795
24795
|
return void 0;
|
|
@@ -24942,7 +24942,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
|
|
|
24942
24942
|
}, { create: true });
|
|
24943
24943
|
}, "archiveMedia");
|
|
24944
24944
|
|
|
24945
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24945
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
24946
24946
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
24947
24947
|
import { basename as basename3, dirname as dirname3, join as join7, resolve as resolve5 } from "node:path";
|
|
24948
24948
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -25095,7 +25095,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
|
|
|
25095
25095
|
}, { additional: [target2], createAdditional: !options2.dryRun });
|
|
25096
25096
|
}, "moveMediaArchive");
|
|
25097
25097
|
|
|
25098
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25098
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
25099
25099
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file) => sum2 + file.bytes, 0), "bytesOf");
|
|
25100
25100
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
25101
25101
|
}, "progress") }) => {
|
|
@@ -25118,7 +25118,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
25118
25118
|
}
|
|
25119
25119
|
await nativeRuntime({ env, progress });
|
|
25120
25120
|
progress(`${model.id}: loading it once to check it works`);
|
|
25121
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
25121
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-SRZSDZVI.js");
|
|
25122
25122
|
const embedder = await openEmbedder2(model, directory2);
|
|
25123
25123
|
try {
|
|
25124
25124
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -25139,7 +25139,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
25139
25139
|
}
|
|
25140
25140
|
await nativeRuntime({ env, progress });
|
|
25141
25141
|
progress(`${model.id}: loading it once to check it works`);
|
|
25142
|
-
const { openReranker } = await import("./rerank-
|
|
25142
|
+
const { openReranker } = await import("./rerank-FQHQXFNR.js");
|
|
25143
25143
|
const reranker = await openReranker(model, directory2);
|
|
25144
25144
|
try {
|
|
25145
25145
|
await reranker.score("check", ["check"]);
|
|
@@ -25157,7 +25157,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
25157
25157
|
await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
25158
25158
|
}
|
|
25159
25159
|
progress(`${model.id}: loading it once to check it works`);
|
|
25160
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
25160
|
+
const { openPictureEmbedder } = await import("./embedder-WZIZCWLX.js");
|
|
25161
25161
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
25162
25162
|
try {
|
|
25163
25163
|
const vector = await embedder.embedQuery("check");
|
|
@@ -25169,7 +25169,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
25169
25169
|
return { model, directory: directory2 };
|
|
25170
25170
|
}, "downloadImageModel");
|
|
25171
25171
|
|
|
25172
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25172
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
25173
25173
|
var MONEY_REQUEST = "money-request";
|
|
25174
25174
|
var MONEY_DONE = "money-done";
|
|
25175
25175
|
var PROMISE = "promise";
|
|
@@ -25203,10 +25203,10 @@ var MONEY_WORDS = [
|
|
|
25203
25203
|
}
|
|
25204
25204
|
];
|
|
25205
25205
|
|
|
25206
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25206
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
25207
25207
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
25208
25208
|
|
|
25209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
25210
25210
|
var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
25211
25211
|
var MONEY_DONE_FORMS = words([
|
|
25212
25212
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -25246,7 +25246,7 @@ var PROMISE_FORMS = words([
|
|
|
25246
25246
|
"estar\xE1 listo"
|
|
25247
25247
|
]);
|
|
25248
25248
|
|
|
25249
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25249
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
25250
25250
|
var EXCERPT_CHARS = 80;
|
|
25251
25251
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
25252
25252
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -25268,7 +25268,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
25268
25268
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
25269
25269
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
25270
25270
|
|
|
25271
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25271
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
25272
25272
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
25273
25273
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
25274
25274
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -25349,7 +25349,7 @@ var amounts = {
|
|
|
25349
25349
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
25350
25350
|
};
|
|
25351
25351
|
|
|
25352
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25352
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
25353
25353
|
var children = {
|
|
25354
25354
|
id: "children",
|
|
25355
25355
|
version: 1,
|
|
@@ -25378,7 +25378,7 @@ var children = {
|
|
|
25378
25378
|
}, "read")
|
|
25379
25379
|
};
|
|
25380
25380
|
|
|
25381
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25381
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
25382
25382
|
var coverage = {
|
|
25383
25383
|
id: "coverage",
|
|
25384
25384
|
version: 1,
|
|
@@ -25407,7 +25407,7 @@ var coverage = {
|
|
|
25407
25407
|
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")
|
|
25408
25408
|
};
|
|
25409
25409
|
|
|
25410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
25411
25411
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
25412
25412
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
25413
25413
|
signal: "payments",
|
|
@@ -25457,7 +25457,7 @@ var payments = {
|
|
|
25457
25457
|
}, "read")
|
|
25458
25458
|
};
|
|
25459
25459
|
|
|
25460
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25460
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
25461
25461
|
var PATTERNS_PER_CHAT = 3;
|
|
25462
25462
|
var DAY3 = 864e5;
|
|
25463
25463
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -25546,7 +25546,7 @@ var promises = {
|
|
|
25546
25546
|
}, "read")
|
|
25547
25547
|
};
|
|
25548
25548
|
|
|
25549
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25549
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
25550
25550
|
var PER_SIDE = 5;
|
|
25551
25551
|
var WEEK = 7 * 864e5;
|
|
25552
25552
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -25577,7 +25577,7 @@ var questions2 = {
|
|
|
25577
25577
|
}, "attention")
|
|
25578
25578
|
};
|
|
25579
25579
|
|
|
25580
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25580
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
25581
25581
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
25582
25582
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one) => one.id === id2), "byId");
|
|
25583
25583
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -25645,7 +25645,7 @@ var replyNext = {
|
|
|
25645
25645
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
25646
25646
|
};
|
|
25647
25647
|
|
|
25648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
25649
25649
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
25650
25650
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
25651
25651
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -25691,7 +25691,7 @@ var topics = {
|
|
|
25691
25691
|
}, "read")
|
|
25692
25692
|
};
|
|
25693
25693
|
|
|
25694
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25694
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
25695
25695
|
var STATUS_SIGNALS = [
|
|
25696
25696
|
replyNext,
|
|
25697
25697
|
questions2,
|
|
@@ -25703,7 +25703,7 @@ var STATUS_SIGNALS = [
|
|
|
25703
25703
|
children
|
|
25704
25704
|
];
|
|
25705
25705
|
|
|
25706
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25706
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
25707
25707
|
var DAY4 = 864e5;
|
|
25708
25708
|
var STATUS_WINDOW = 300;
|
|
25709
25709
|
var STATUS_CHATS = 16;
|
|
@@ -25892,7 +25892,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
25892
25892
|
};
|
|
25893
25893
|
}, "projectStatus");
|
|
25894
25894
|
|
|
25895
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25895
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
25896
25896
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
25897
25897
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
25898
25898
|
if (deps.offline)
|
|
@@ -25964,7 +25964,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
25964
25964
|
};
|
|
25965
25965
|
}, "accountService");
|
|
25966
25966
|
|
|
25967
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25967
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
25968
25968
|
var MINUTE = 6e4;
|
|
25969
25969
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
25970
25970
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -25983,7 +25983,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
25983
25983
|
return new Date(at - at % MINUTE).toISOString();
|
|
25984
25984
|
}, "sendTime");
|
|
25985
25985
|
|
|
25986
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25986
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
25987
25987
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
25988
25988
|
try {
|
|
25989
25989
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -26230,7 +26230,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
26230
26230
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
26231
26231
|
}, "linkLimits");
|
|
26232
26232
|
|
|
26233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26233
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
26234
26234
|
var THREADS_PAGE = 500;
|
|
26235
26235
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
26236
26236
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -26309,7 +26309,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
26309
26309
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
26310
26310
|
}, "readMail");
|
|
26311
26311
|
|
|
26312
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26312
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
26313
26313
|
var NO_MAIL = "no_mail";
|
|
26314
26314
|
var MAIL = "email";
|
|
26315
26315
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -26356,7 +26356,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
26356
26356
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
26357
26357
|
}, "accountsOfKind");
|
|
26358
26358
|
|
|
26359
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26359
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
26360
26360
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
26361
26361
|
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");
|
|
26362
26362
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -26704,7 +26704,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
26704
26704
|
};
|
|
26705
26705
|
}, "statsLucene");
|
|
26706
26706
|
|
|
26707
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26707
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
26708
26708
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
26709
26709
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
26710
26710
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -26873,7 +26873,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
26873
26873
|
};
|
|
26874
26874
|
}, "readRankingSelection");
|
|
26875
26875
|
|
|
26876
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26876
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
26877
26877
|
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");
|
|
26878
26878
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
26879
26879
|
command,
|
|
@@ -26883,7 +26883,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
26883
26883
|
fieldsVersion: FIELD_VERSION
|
|
26884
26884
|
}), "searchRecordOf");
|
|
26885
26885
|
|
|
26886
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26886
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
26887
26887
|
function invalid2(message) {
|
|
26888
26888
|
throw new CliError("validation_error", message);
|
|
26889
26889
|
}
|
|
@@ -27177,7 +27177,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
27177
27177
|
}, "evidence")
|
|
27178
27178
|
}), "adminStatisticsService");
|
|
27179
27179
|
|
|
27180
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27180
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
27181
27181
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
27182
27182
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
27183
27183
|
var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
|
|
@@ -27314,12 +27314,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
27314
27314
|
return { plan, repair };
|
|
27315
27315
|
}, "gapsService");
|
|
27316
27316
|
|
|
27317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27317
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
27318
27318
|
import { createHash as createHash9 } from "node:crypto";
|
|
27319
27319
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
27320
27320
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
27321
27321
|
|
|
27322
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27322
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
27323
27323
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
27324
27324
|
import { basename as basename4, join as join8, relative as relative2, sep as sep2 } from "node:path";
|
|
27325
27325
|
var MAX_FILES = 1e4;
|
|
@@ -27390,15 +27390,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
27390
27390
|
return choices;
|
|
27391
27391
|
}, "directoryPaths");
|
|
27392
27392
|
|
|
27393
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27393
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
27394
27394
|
import { posix } from "node:path";
|
|
27395
27395
|
|
|
27396
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27396
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
27397
27397
|
import { setImmediate as tick } from "node:timers/promises";
|
|
27398
27398
|
import { crc32 } from "node:zlib";
|
|
27399
27399
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
27400
27400
|
|
|
27401
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27401
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
27402
27402
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
27403
27403
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
27404
27404
|
var SAMPLE = 65536;
|
|
@@ -27500,7 +27500,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
27500
27500
|
return result.text;
|
|
27501
27501
|
}, "decodeXml");
|
|
27502
27502
|
|
|
27503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
27504
27504
|
var MAX_PART = 10 * 1024 * 1024;
|
|
27505
27505
|
var MAX_ENTRIES = 1e3;
|
|
27506
27506
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -27715,7 +27715,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
27715
27715
|
return found;
|
|
27716
27716
|
}, "elements");
|
|
27717
27717
|
|
|
27718
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27718
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
27719
27719
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
27720
27720
|
let name = "";
|
|
27721
27721
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -27770,7 +27770,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
27770
27770
|
return { text: parts.join("").trim(), truncated: false };
|
|
27771
27771
|
}, "sheetText");
|
|
27772
27772
|
|
|
27773
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27773
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
27774
27774
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
27775
27775
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
27776
27776
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -28170,10 +28170,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
28170
28170
|
}
|
|
28171
28171
|
}, "readDocument");
|
|
28172
28172
|
|
|
28173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
28174
28174
|
import { extname as extname3 } from "node:path";
|
|
28175
28175
|
|
|
28176
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28176
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
28177
28177
|
import { readFileSync } from "node:fs";
|
|
28178
28178
|
import { dirname as dirname4, extname as extname2, join as join9 } from "node:path";
|
|
28179
28179
|
import { fileURLToPath } from "node:url";
|
|
@@ -28234,7 +28234,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
|
|
|
28234
28234
|
}
|
|
28235
28235
|
}, "derived");
|
|
28236
28236
|
|
|
28237
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28237
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
28238
28238
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
28239
28239
|
var image2 = {
|
|
28240
28240
|
id: "image",
|
|
@@ -28243,7 +28243,7 @@ var image2 = {
|
|
|
28243
28243
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
28244
28244
|
};
|
|
28245
28245
|
|
|
28246
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28246
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
28247
28247
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
28248
28248
|
var doc = {
|
|
28249
28249
|
id: "doc",
|
|
@@ -28255,7 +28255,7 @@ var doc = {
|
|
|
28255
28255
|
}), "read")
|
|
28256
28256
|
};
|
|
28257
28257
|
|
|
28258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
28259
28259
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
28260
28260
|
var docx = {
|
|
28261
28261
|
id: "docx",
|
|
@@ -28268,7 +28268,7 @@ var docx = {
|
|
|
28268
28268
|
}), "read")
|
|
28269
28269
|
};
|
|
28270
28270
|
|
|
28271
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28271
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
28272
28272
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
28273
28273
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
28274
28274
|
"fonttbl",
|
|
@@ -28444,7 +28444,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
28444
28444
|
}, "htmlText");
|
|
28445
28445
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
28446
28446
|
|
|
28447
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28447
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
28448
28448
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
28449
28449
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
28450
28450
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -28500,7 +28500,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
28500
28500
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
28501
28501
|
}, "markdownSections");
|
|
28502
28502
|
|
|
28503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
28504
28504
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
28505
28505
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
28506
28506
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -28571,7 +28571,7 @@ var html = {
|
|
|
28571
28571
|
}, "read")
|
|
28572
28572
|
};
|
|
28573
28573
|
|
|
28574
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28574
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
28575
28575
|
var office = {
|
|
28576
28576
|
id: "office",
|
|
28577
28577
|
version: documentExtractor("odt"),
|
|
@@ -28582,7 +28582,7 @@ var office = {
|
|
|
28582
28582
|
}, "read")
|
|
28583
28583
|
};
|
|
28584
28584
|
|
|
28585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28585
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
28586
28586
|
var pdf = {
|
|
28587
28587
|
id: "pdf",
|
|
28588
28588
|
version: "unpdf",
|
|
@@ -28649,7 +28649,7 @@ var pdf = {
|
|
|
28649
28649
|
}), "read")
|
|
28650
28650
|
};
|
|
28651
28651
|
|
|
28652
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28652
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
28653
28653
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
28654
28654
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
28655
28655
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -28669,7 +28669,7 @@ var plain = {
|
|
|
28669
28669
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
28670
28670
|
};
|
|
28671
28671
|
|
|
28672
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28672
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
28673
28673
|
var rtf = {
|
|
28674
28674
|
id: "rtf",
|
|
28675
28675
|
version: "v1",
|
|
@@ -28677,10 +28677,10 @@ var rtf = {
|
|
|
28677
28677
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
28678
28678
|
};
|
|
28679
28679
|
|
|
28680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28680
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
28681
28681
|
import { basename as basename5 } from "node:path";
|
|
28682
28682
|
|
|
28683
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28683
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
28684
28684
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
28685
28685
|
const cells = [];
|
|
28686
28686
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -28718,7 +28718,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
28718
28718
|
return { cells, truncated };
|
|
28719
28719
|
}, "delimitedSpans");
|
|
28720
28720
|
|
|
28721
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28721
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
28722
28722
|
var DELIMITED = {
|
|
28723
28723
|
".csv": ",",
|
|
28724
28724
|
".tsv": " ",
|
|
@@ -28757,7 +28757,7 @@ var sheets = {
|
|
|
28757
28757
|
}, "read")
|
|
28758
28758
|
};
|
|
28759
28759
|
|
|
28760
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28760
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
28761
28761
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
28762
28762
|
var HEAD_BYTES = 1024;
|
|
28763
28763
|
var readers = [...BUILT_INS2];
|
|
@@ -28767,7 +28767,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
28767
28767
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
28768
28768
|
}, "readWithRegistry");
|
|
28769
28769
|
|
|
28770
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28770
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
28771
28771
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
28772
28772
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
28773
28773
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -29846,7 +29846,7 @@ function imageSize(input) {
|
|
|
29846
29846
|
}
|
|
29847
29847
|
__name(imageSize, "imageSize");
|
|
29848
29848
|
|
|
29849
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29849
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
29850
29850
|
var MAX_PAGES = 20;
|
|
29851
29851
|
var MAX_PIXELS = 2e7;
|
|
29852
29852
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -29997,7 +29997,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
29997
29997
|
}
|
|
29998
29998
|
}, "ocrPdf");
|
|
29999
29999
|
|
|
30000
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30000
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
30001
30001
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
30002
30002
|
const limits = pdfPreviewLimits(env);
|
|
30003
30003
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -30074,7 +30074,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
30074
30074
|
}
|
|
30075
30075
|
}, "pdfPreview");
|
|
30076
30076
|
|
|
30077
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30077
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
30078
30078
|
import { createHash as createHash8 } from "node:crypto";
|
|
30079
30079
|
import { constants } from "node:fs";
|
|
30080
30080
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -30182,7 +30182,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
30182
30182
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
30183
30183
|
}, "transferMime");
|
|
30184
30184
|
|
|
30185
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30185
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
30186
30186
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
30187
30187
|
import { link as link3, rm } from "node:fs/promises";
|
|
30188
30188
|
import { join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -30296,7 +30296,7 @@ var save = /* @__PURE__ */ __name(async (file, directory2, fallbackName, { uniqu
|
|
|
30296
30296
|
}
|
|
30297
30297
|
}, "save");
|
|
30298
30298
|
|
|
30299
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30299
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
30300
30300
|
var ATTACHMENT_QUERY = {
|
|
30301
30301
|
entity: "attachment",
|
|
30302
30302
|
backend: "sql",
|
|
@@ -30719,7 +30719,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30719
30719
|
}, "setText")
|
|
30720
30720
|
}), "attachmentsService");
|
|
30721
30721
|
|
|
30722
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30722
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
30723
30723
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
30724
30724
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
30725
30725
|
const store = await accountStore(deps);
|
|
@@ -30749,7 +30749,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30749
30749
|
}, "list")
|
|
30750
30750
|
}), "chatDocumentsService");
|
|
30751
30751
|
|
|
30752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
30753
30753
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
30754
30754
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
30755
30755
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -30836,7 +30836,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
30836
30836
|
}
|
|
30837
30837
|
}, "isRetentionSelection");
|
|
30838
30838
|
|
|
30839
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30839
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
30840
30840
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
30841
30841
|
const fields = text2.split(",").map((one) => one.trim());
|
|
30842
30842
|
if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
|
|
@@ -31043,7 +31043,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
31043
31043
|
};
|
|
31044
31044
|
}, "countersService");
|
|
31045
31045
|
|
|
31046
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31046
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
31047
31047
|
var SYNC_KEY = "messages.sync-first";
|
|
31048
31048
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
31049
31049
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -31175,7 +31175,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
31175
31175
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
31176
31176
|
}), "withRefresh");
|
|
31177
31177
|
|
|
31178
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
31179
31179
|
var CANDIDATES = 50;
|
|
31180
31180
|
var WORD_HITS = 200;
|
|
31181
31181
|
var RRF_K = 60;
|
|
@@ -31450,13 +31450,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
31450
31450
|
return mean2.map((value) => value / length);
|
|
31451
31451
|
}, "meanOf");
|
|
31452
31452
|
|
|
31453
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31453
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
31454
31454
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
31455
31455
|
...embeddingsMaintenance(deps),
|
|
31456
31456
|
...embeddingsSearch(deps)
|
|
31457
31457
|
}), "embeddingsService");
|
|
31458
31458
|
|
|
31459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
31460
31460
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
31461
31461
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
31462
31462
|
if (deps.offline)
|
|
@@ -31597,7 +31597,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
31597
31597
|
};
|
|
31598
31598
|
}, "foldersService");
|
|
31599
31599
|
|
|
31600
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31600
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
31601
31601
|
var REVIEW_COUNT = 500;
|
|
31602
31602
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
31603
31603
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -31676,7 +31676,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
31676
31676
|
};
|
|
31677
31677
|
}, "mentionsService");
|
|
31678
31678
|
|
|
31679
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31679
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
31680
31680
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
31681
31681
|
position,
|
|
31682
31682
|
kind,
|
|
@@ -31725,7 +31725,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
31725
31725
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
31726
31726
|
}, "validatePermalink");
|
|
31727
31727
|
|
|
31728
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31728
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
31729
31729
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
31730
31730
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
31731
31731
|
return `${seconds / 86400}d`;
|
|
@@ -31757,7 +31757,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
31757
31757
|
return seconds;
|
|
31758
31758
|
}, "pinDurationOf");
|
|
31759
31759
|
|
|
31760
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31760
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
31761
31761
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
31762
31762
|
if (sendAs === void 0) {
|
|
31763
31763
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -31782,7 +31782,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
31782
31782
|
return sendAs;
|
|
31783
31783
|
}, "typedSendAs");
|
|
31784
31784
|
|
|
31785
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31785
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
31786
31786
|
var TOTAL_CAP = 1e4;
|
|
31787
31787
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
31788
31788
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -31793,7 +31793,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
31793
31793
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
31794
31794
|
}, "totalOf");
|
|
31795
31795
|
|
|
31796
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31796
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
31797
31797
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
31798
31798
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
31799
31799
|
let narrows = false;
|
|
@@ -31822,7 +31822,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
31822
31822
|
return wanted(root).join(" ").trim();
|
|
31823
31823
|
}, "meaningWords");
|
|
31824
31824
|
|
|
31825
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31825
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
31826
31826
|
var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
31827
31827
|
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"));
|
|
31828
31828
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -31955,7 +31955,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
31955
31955
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
31956
31956
|
}, "questionLookup");
|
|
31957
31957
|
|
|
31958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
31959
31959
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
31960
31960
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
31961
31961
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
|
|
@@ -32148,7 +32148,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
32148
32148
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage2 * 4 + proximity + phrase;
|
|
32149
32149
|
}, "signals");
|
|
32150
32150
|
|
|
32151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
32152
32152
|
var MEANING_DEPTH = 100;
|
|
32153
32153
|
var RRF_K2 = 60;
|
|
32154
32154
|
var RERANK_DEPTH = 50;
|
|
@@ -32473,7 +32473,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
32473
32473
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
32474
32474
|
}, "mixedWithReranker");
|
|
32475
32475
|
|
|
32476
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32476
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
32477
32477
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
32478
32478
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
32479
32479
|
var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
|
|
@@ -32672,7 +32672,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
32672
32672
|
return result;
|
|
32673
32673
|
}, "readThreadContext");
|
|
32674
32674
|
|
|
32675
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32675
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
32676
32676
|
var SEARCH_FILL_MS = 200;
|
|
32677
32677
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
32678
32678
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -32741,12 +32741,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
32741
32741
|
}, "accountOf");
|
|
32742
32742
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
32743
32743
|
|
|
32744
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32744
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32745
32745
|
import { createHash as createHash10 } from "node:crypto";
|
|
32746
32746
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
32747
32747
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
32748
32748
|
|
|
32749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32749
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
32750
32750
|
var GROUP_SETTINGS = [
|
|
32751
32751
|
"allCanPin",
|
|
32752
32752
|
"onlyAdminsAdd",
|
|
@@ -32760,7 +32760,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
32760
32760
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
32761
32761
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
32762
32762
|
|
|
32763
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32764
32764
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
32765
32765
|
var PICTURE_FLOOR = 0.25;
|
|
32766
32766
|
var PAGE4 = 50;
|
|
@@ -32777,7 +32777,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
32777
32777
|
const directory2 = imageModelsDirectory(deps.env);
|
|
32778
32778
|
if (!isImageModelInstalled(model2, directory2))
|
|
32779
32779
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
32780
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
32780
|
+
const { openPictureEmbedder } = await import("./embedder-WZIZCWLX.js");
|
|
32781
32781
|
return openPictureEmbedder(model2, directory2);
|
|
32782
32782
|
}, "open");
|
|
32783
32783
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -32974,7 +32974,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
32974
32974
|
}, "search")
|
|
32975
32975
|
}), "withPictures");
|
|
32976
32976
|
|
|
32977
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32977
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
32978
32978
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
32979
32979
|
try {
|
|
32980
32980
|
const text2 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -33054,7 +33054,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
33054
33054
|
}
|
|
33055
33055
|
}, "meaningLane");
|
|
33056
33056
|
|
|
33057
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33057
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
33058
33058
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
33059
33059
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
33060
33060
|
if (choice === "off")
|
|
@@ -33066,9 +33066,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
33066
33066
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
33067
33067
|
try {
|
|
33068
33068
|
const warm = deps.embedders;
|
|
33069
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
33069
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-3CZAXR6P.js")).openRerankerProcess(model, directory2, {
|
|
33070
33070
|
threads: defaultThreads()
|
|
33071
|
-
})) : await (await import("./rerank-
|
|
33071
|
+
})) : await (await import("./rerank-FQHQXFNR.js")).openReranker(model, directory2);
|
|
33072
33072
|
return {
|
|
33073
33073
|
model: model.id,
|
|
33074
33074
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -33088,17 +33088,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
33088
33088
|
};
|
|
33089
33089
|
}, "rerankLane");
|
|
33090
33090
|
|
|
33091
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33091
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
33092
33092
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
33093
33093
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
33094
33094
|
const directory2 = imageModelsDirectory(env);
|
|
33095
33095
|
if (!isImageModelInstalled(model, directory2))
|
|
33096
33096
|
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 });
|
|
33097
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
33097
|
+
const { openPictureEmbedder } = await import("./embedder-WZIZCWLX.js");
|
|
33098
33098
|
return openPictureEmbedder(model, directory2);
|
|
33099
33099
|
}, "openPictureEmbedderFor");
|
|
33100
33100
|
|
|
33101
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33101
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
33102
33102
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) => {
|
|
33103
33103
|
const metadata = note.frontMatter;
|
|
33104
33104
|
const account = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
@@ -33113,7 +33113,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) =>
|
|
|
33113
33113
|
};
|
|
33114
33114
|
}, "documentSource");
|
|
33115
33115
|
|
|
33116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
33117
33117
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
33118
33118
|
const host = new URL(baseUrl).host;
|
|
33119
33119
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -33146,7 +33146,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
33146
33146
|
};
|
|
33147
33147
|
}, "embeddingKeys");
|
|
33148
33148
|
|
|
33149
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33149
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
33150
33150
|
var options = strictObject({
|
|
33151
33151
|
temperature: range(0, 2),
|
|
33152
33152
|
top_p: range(0, 1),
|
|
@@ -33200,7 +33200,7 @@ var openai = {
|
|
|
33200
33200
|
}), "complete")
|
|
33201
33201
|
};
|
|
33202
33202
|
|
|
33203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33203
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
33204
33204
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
33205
33205
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
33206
33206
|
if (deps.signal?.aborted)
|
|
@@ -33215,7 +33215,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
33215
33215
|
if (!adapter && target2.provider === "openai")
|
|
33216
33216
|
adapter = openai;
|
|
33217
33217
|
if (!adapter && target2.provider === "anthropic")
|
|
33218
|
-
adapter = (await import("./anthropic-
|
|
33218
|
+
adapter = (await import("./anthropic-AFL7NKVZ.js")).anthropic;
|
|
33219
33219
|
if (!adapter)
|
|
33220
33220
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
33221
33221
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -33256,7 +33256,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
33256
33256
|
}, "complete")
|
|
33257
33257
|
}), "modelGateway");
|
|
33258
33258
|
|
|
33259
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33259
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
|
|
33260
33260
|
var SECTION = "enrichment";
|
|
33261
33261
|
var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
|
|
33262
33262
|
var DEFAULT_BASE_URLS = {
|
|
@@ -33324,7 +33324,7 @@ var estimateEnrichment = /* @__PURE__ */ __name((records, chars, setting) => {
|
|
|
33324
33324
|
};
|
|
33325
33325
|
}, "estimateEnrichment");
|
|
33326
33326
|
|
|
33327
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/enrichment.js
|
|
33328
33328
|
var ENRICH_PER_RUN = 600;
|
|
33329
33329
|
var MAX_LINE = 400;
|
|
33330
33330
|
var line2 = pipe(unknown(), transform((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim().slice(0, MAX_LINE) : ""));
|
|
@@ -33400,7 +33400,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
|
|
|
33400
33400
|
};
|
|
33401
33401
|
}, "enrichmentState");
|
|
33402
33402
|
|
|
33403
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33403
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
33404
33404
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
33405
33405
|
let root;
|
|
33406
33406
|
try {
|
|
@@ -33427,7 +33427,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
33427
33427
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
33428
33428
|
}, "titleTiers");
|
|
33429
33429
|
|
|
33430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
33431
33431
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
33432
33432
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
33433
33433
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -33849,7 +33849,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
33849
33849
|
};
|
|
33850
33850
|
}, "searchNotesOf");
|
|
33851
33851
|
|
|
33852
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
33853
33853
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
33854
33854
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
33855
33855
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -33967,7 +33967,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
33967
33967
|
};
|
|
33968
33968
|
}, "searchEvents");
|
|
33969
33969
|
|
|
33970
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33970
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
|
|
33971
33971
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
33972
33972
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
33973
33973
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -33998,7 +33998,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words3, anyWo
|
|
|
33998
33998
|
};
|
|
33999
33999
|
}, "searchBusiness");
|
|
34000
34000
|
|
|
34001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
34002
34002
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm", "business"];
|
|
34003
34003
|
var refusal = /* @__PURE__ */ __name((error, text2) => {
|
|
34004
34004
|
const { reason, span } = error.details ?? {};
|
|
@@ -34305,7 +34305,7 @@ var oneList = /* @__PURE__ */ __name((lists, cosines) => {
|
|
|
34305
34305
|
return [...place.values()].sort((a, b) => head(a.rank) - head(b.rank) || b.cosine - a.cosine || a.rank - b.rank).map(({ item: item2 }) => item2);
|
|
34306
34306
|
}, "oneList");
|
|
34307
34307
|
|
|
34308
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34308
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
34309
34309
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
34310
34310
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
34311
34311
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -34563,7 +34563,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
34563
34563
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
34564
34564
|
}, "searchAllOfSource");
|
|
34565
34565
|
|
|
34566
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34566
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
34567
34567
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
34568
34568
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
34569
34569
|
var DEFAULT_BACKEND = "both";
|
|
@@ -34752,7 +34752,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
34752
34752
|
return { report, sources };
|
|
34753
34753
|
}, "searchServer");
|
|
34754
34754
|
|
|
34755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
34756
34756
|
var DELETE_AT_ONCE = 10;
|
|
34757
34757
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
34758
34758
|
const files = fileLinks(attachments);
|
|
@@ -35193,7 +35193,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
35193
35193
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
35194
35194
|
}, "checkMediaOptions");
|
|
35195
35195
|
|
|
35196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
35197
35197
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
35198
35198
|
var RULES = {
|
|
35199
35199
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -35208,7 +35208,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
35208
35208
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
35209
35209
|
}), "classifyChannel");
|
|
35210
35210
|
|
|
35211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
35212
35212
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
35213
35213
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
35214
35214
|
const store = await deps.store();
|
|
@@ -35294,7 +35294,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
35294
35294
|
};
|
|
35295
35295
|
}, "metadataService");
|
|
35296
35296
|
|
|
35297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35297
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
35298
35298
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
35299
35299
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
35300
35300
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -35331,7 +35331,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
35331
35331
|
return { chatId, rows, notes };
|
|
35332
35332
|
}, "moderateWith");
|
|
35333
35333
|
|
|
35334
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35334
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
35335
35335
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
35336
35336
|
const file = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
35337
35337
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -35409,7 +35409,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
35409
35409
|
}, "removePerson")
|
|
35410
35410
|
}), "moderatorOf");
|
|
35411
35411
|
|
|
35412
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35412
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
35413
35413
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
35414
35414
|
id: note.id,
|
|
35415
35415
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -35453,7 +35453,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
35453
35453
|
};
|
|
35454
35454
|
}, "privatePeopleService");
|
|
35455
35455
|
|
|
35456
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35456
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
35457
35457
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
35458
35458
|
total: 0,
|
|
35459
35459
|
population: 0,
|
|
@@ -35709,7 +35709,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
35709
35709
|
}, "evidence")
|
|
35710
35710
|
}), "rankingsService");
|
|
35711
35711
|
|
|
35712
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35712
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
35713
35713
|
var FIELDS = ["date", "chat", "kind"];
|
|
35714
35714
|
var WAITING_TAIL = 100;
|
|
35715
35715
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -35836,7 +35836,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
35836
35836
|
};
|
|
35837
35837
|
}, "replyStatsService");
|
|
35838
35838
|
|
|
35839
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35839
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
35840
35840
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
35841
35841
|
id: one.id,
|
|
35842
35842
|
name: one.name,
|
|
@@ -35965,7 +35965,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
35965
35965
|
};
|
|
35966
35966
|
}, "searchesService");
|
|
35967
35967
|
|
|
35968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35968
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
35969
35969
|
var TAGGING_QUERY = {
|
|
35970
35970
|
entity: "tagging",
|
|
35971
35971
|
backend: "sql",
|
|
@@ -36049,7 +36049,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
36049
36049
|
};
|
|
36050
36050
|
}, "tagsService");
|
|
36051
36051
|
|
|
36052
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36052
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
36053
36053
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
36054
36054
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
36055
36055
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -36248,7 +36248,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
36248
36248
|
};
|
|
36249
36249
|
}, "topicsService");
|
|
36250
36250
|
|
|
36251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
36252
36252
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
36253
36253
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
36254
36254
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -36322,7 +36322,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
36322
36322
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
36323
36323
|
}, "prepareEvidencePacket");
|
|
36324
36324
|
|
|
36325
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36325
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
36326
36326
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
36327
36327
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
36328
36328
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -36342,7 +36342,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
36342
36342
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
36343
36343
|
}, "readEvidencePacket");
|
|
36344
36344
|
|
|
36345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
36346
36346
|
var scopeKeys = [
|
|
36347
36347
|
"accountId",
|
|
36348
36348
|
"meetingId",
|
|
@@ -36364,7 +36364,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
36364
36364
|
"maxVocabularyReadBytes"
|
|
36365
36365
|
]);
|
|
36366
36366
|
|
|
36367
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36367
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
|
|
36368
36368
|
import { createHash as createHash12 } from "node:crypto";
|
|
36369
36369
|
import { existsSync } from "node:fs";
|
|
36370
36370
|
var useTextModel = /* @__PURE__ */ __name(async (id2, { env, command }) => {
|
|
@@ -36495,7 +36495,7 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id2, payload, { env, fetc
|
|
|
36495
36495
|
return { ...checked2.output, custom: true };
|
|
36496
36496
|
}, "addCustomTextModel");
|
|
36497
36497
|
|
|
36498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
36499
36499
|
var communicationFields = {
|
|
36500
36500
|
sources: pipe(array(strictObject({
|
|
36501
36501
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -36527,7 +36527,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
36527
36527
|
return { ...input, after, before: before2 };
|
|
36528
36528
|
}, "communicationRequest");
|
|
36529
36529
|
|
|
36530
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36530
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
36531
36531
|
var MEETING_PREPARATION_LIMITS = {
|
|
36532
36532
|
meetings: { min: 1, max: 20, default: 5 },
|
|
36533
36533
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -36600,7 +36600,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
36600
36600
|
};
|
|
36601
36601
|
}, "validateMeetingPreparationRequest");
|
|
36602
36602
|
|
|
36603
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
36604
36604
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
36605
36605
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
36606
36606
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -36648,7 +36648,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
36648
36648
|
}
|
|
36649
36649
|
}, "validatePreparationCommunications");
|
|
36650
36650
|
|
|
36651
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36651
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
36652
36652
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
36653
36653
|
const installer = ports.installer();
|
|
36654
36654
|
const argv = updateCommand(installer, packageName);
|
|
@@ -36713,7 +36713,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
36713
36713
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
36714
36714
|
}, "dayAfter");
|
|
36715
36715
|
|
|
36716
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36716
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
36717
36717
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
36718
36718
|
const pictures = picturesService(deps);
|
|
36719
36719
|
const base = {
|
|
@@ -36750,7 +36750,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
36750
36750
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
36751
36751
|
}, "servicesFor");
|
|
36752
36752
|
|
|
36753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
36754
36754
|
import { createHash as createHash13 } from "node:crypto";
|
|
36755
36755
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync3, rmSync } from "node:fs";
|
|
36756
36756
|
import { createConnection, createServer } from "node:net";
|
|
@@ -36971,7 +36971,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options2) => new Promi
|
|
|
36971
36971
|
}, () => finish({ error: stopped() }));
|
|
36972
36972
|
}), "relayCommand");
|
|
36973
36973
|
|
|
36974
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36974
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
36975
36975
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
36976
36976
|
close: /* @__PURE__ */ __name(async () => {
|
|
36977
36977
|
}, "close"),
|