@wirecat/drive-cli 0.67.0 → 0.68.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-DVZUVAPQ.js → all-profiles-BU6XUFUP.js} +7 -7
- package/dist/bundle/{anthropic-Y45C45O2.js → anthropic-ZP5B7S2Z.js} +2 -2
- package/dist/bundle/{app-server-GTXUOUGD.js → app-server-EB4DH6T7.js} +49 -45
- package/dist/bundle/{bun-QVJV76QJ.js → bun-PWMM6L45.js} +2 -2
- package/dist/bundle/{bun-sqlite-CC7PIAMH.js → bun-sqlite-6VPR2SVC.js} +3 -3
- package/dist/bundle/{chunk-JO7BJYAP.js → chunk-2UHQVRH2.js} +15 -15
- package/dist/bundle/{chunk-NFIR346J.js → chunk-2VYEGKQ3.js} +1 -1
- package/dist/bundle/{chunk-MEY7URZZ.js → chunk-43NEDPXB.js} +4 -4
- package/dist/bundle/{chunk-YVUAG7RF.js → chunk-5G2BY4B6.js} +15 -15
- package/dist/bundle/{chunk-T2VAEDJS.js → chunk-5W65QTYS.js} +3 -3
- package/dist/bundle/{chunk-LSAIXPAX.js → chunk-6HFZZ2PW.js} +1 -1
- package/dist/bundle/{chunk-AJ3DFPRT.js → chunk-6QR7NKMG.js} +1 -1
- package/dist/bundle/{chunk-NWYVOHIX.js → chunk-6WAC2LOS.js} +459 -419
- package/dist/bundle/{chunk-HJF2QGOX.js → chunk-74NCZKRW.js} +29 -16
- package/dist/bundle/{chunk-4VH7M2OD.js → chunk-7A77GYCE.js} +2 -2
- package/dist/bundle/{chunk-2PIA45FC.js → chunk-7BXVI7XF.js} +1 -1
- package/dist/bundle/{chunk-ETAFFY3J.js → chunk-7TNQZKRD.js} +52 -52
- package/dist/bundle/{chunk-E3XA56TS.js → chunk-AIEMFRBU.js} +1 -1
- package/dist/bundle/{chunk-EXWOOST5.js → chunk-AXYG2DDY.js} +111 -83
- package/dist/bundle/{chunk-LXRBTXCZ.js → chunk-BXHFJTU5.js} +2 -2
- package/dist/bundle/{chunk-OOBSSU2G.js → chunk-CK2SQ2CE.js} +14 -13
- package/dist/bundle/{chunk-MF46W7PQ.js → chunk-CMWFYZ45.js} +1 -1
- package/dist/bundle/{chunk-4G7WQNG7.js → chunk-CRIEW4FP.js} +1 -1
- package/dist/bundle/{chunk-RC72RU66.js → chunk-CVAJMRRD.js} +5 -5
- package/dist/bundle/{chunk-YI4DXASF.js → chunk-DIZBJLPM.js} +36 -32
- package/dist/bundle/{chunk-FS2PG2PE.js → chunk-DU23ET2O.js} +18 -18
- package/dist/bundle/{chunk-JY2GZDJL.js → chunk-DYLYH7VE.js} +3 -3
- package/dist/bundle/{chunk-C72WYRXD.js → chunk-EEE4H2PA.js} +10 -10
- package/dist/bundle/{chunk-2MEVCMBW.js → chunk-EOC7RHJ2.js} +3 -3
- package/dist/bundle/{chunk-ZH4H5XTA.js → chunk-EXWZCI5G.js} +1 -1
- package/dist/bundle/{chunk-VZ5KETIX.js → chunk-F7KAMSXA.js} +2 -2
- package/dist/bundle/{chunk-SJE7UGOW.js → chunk-FAMXUI2X.js} +4 -4
- package/dist/bundle/{chunk-IRULPE5M.js → chunk-GTLXBAJV.js} +297 -281
- package/dist/bundle/{chunk-UFNE57VY.js → chunk-IVOG6T6P.js} +2 -2
- package/dist/bundle/{chunk-MBLB4TQI.js → chunk-J5LXL435.js} +18 -18
- package/dist/bundle/{chunk-XZCF5XU7.js → chunk-JMZQBRRZ.js} +5 -5
- package/dist/bundle/{chunk-PDHN4GHU.js → chunk-JZ3MT7IE.js} +1 -1
- package/dist/bundle/{chunk-P6A77LMP.js → chunk-KPKIHJIT.js} +5 -7
- package/dist/bundle/{chunk-2Y3YBDZX.js → chunk-MLSXHTUB.js} +137 -135
- package/dist/bundle/{chunk-ZEPDEFVT.js → chunk-MOKEB656.js} +1 -1
- package/dist/bundle/{chunk-BHSLMJF7.js → chunk-MWCPKUU4.js} +4 -4
- package/dist/bundle/{chunk-ULH3TNUP.js → chunk-NV75QPML.js} +4 -4
- package/dist/bundle/{chunk-CWDC6QJM.js → chunk-O7T3WGCV.js} +4 -4
- package/dist/bundle/{chunk-JJHDV32D.js → chunk-PGPHEC2X.js} +1 -1
- package/dist/bundle/{chunk-AAZPDWRD.js → chunk-PJ3FKBXG.js} +1 -1
- package/dist/bundle/{chunk-MEQNAZ6R.js → chunk-PWIEOATY.js} +5 -5
- package/dist/bundle/{chunk-6ERQE4FS.js → chunk-Q6BD6RUH.js} +40 -40
- package/dist/bundle/{chunk-3RG6LL25.js → chunk-QKY24RWV.js} +10 -10
- package/dist/bundle/{chunk-ABJQ6IDU.js → chunk-QRSPFCRY.js} +16 -16
- package/dist/bundle/{chunk-U2ERT45N.js → chunk-QTRYJZL7.js} +4 -4
- package/dist/bundle/{chunk-SXJDCRXE.js → chunk-QVJMFZFW.js} +1 -1
- package/dist/bundle/{chunk-WBKYZZQT.js → chunk-QWGEOQHA.js} +1 -1
- package/dist/bundle/{chunk-AZKFZ7J7.js → chunk-R5FTCNLJ.js} +1 -1
- package/dist/bundle/{chunk-DAFKV6DJ.js → chunk-RT5NT62B.js} +12 -12
- package/dist/bundle/{chunk-UOAHZV3K.js → chunk-SOS4U2RF.js} +18 -18
- package/dist/bundle/{chunk-ZU5VQYNY.js → chunk-TI2OANJZ.js} +1 -1
- package/dist/bundle/{chunk-5DMPGTNR.js → chunk-U52QE4QV.js} +2 -2
- package/dist/bundle/{chunk-JLUQZZ26.js → chunk-UFPRP7MG.js} +7 -7
- package/dist/bundle/{chunk-WWW7YTFG.js → chunk-UIKVP23D.js} +1 -1
- package/dist/bundle/{chunk-WKIQKGOF.js → chunk-ULNN3LCY.js} +26 -24
- package/dist/bundle/{chunk-5TSILGTO.js → chunk-UUQJVKPB.js} +323 -323
- package/dist/bundle/{chunk-7AZCAUST.js → chunk-UYBLNGZ2.js} +1 -1
- package/dist/bundle/{chunk-V7E25BUU.js → chunk-WCNTDETD.js} +2 -2
- package/dist/bundle/{chunk-ZK46UHDP.js → chunk-WGX4DZPW.js} +2 -2
- package/dist/bundle/{chunk-7J2IP3WL.js → chunk-WUFZGPXX.js} +6 -6
- package/dist/bundle/{chunk-Y5WSRG3F.js → chunk-YUGTJBV3.js} +2 -2
- package/dist/bundle/{chunk-JCNEPYQZ.js → chunk-YYIWPH53.js} +12 -12
- package/dist/bundle/{chunk-RLH6BOEG.js → chunk-Z5BMYI2V.js} +5 -5
- package/dist/bundle/{chunk-FOMQ4MG3.js → chunk-ZAIE3G5I.js} +2 -2
- package/dist/bundle/{chunk-QOKPRFHM.js → chunk-ZSVMZH5O.js} +2 -2
- package/dist/bundle/{chunk-JEMBW6IO.js → chunk-ZVQDOKDY.js} +1 -1
- package/dist/bundle/{cli-U4LSBYDV.js → cli-L7P36YUH.js} +50 -50
- package/dist/bundle/{command-contract-UU5T24ZZ.js → command-contract-EYFGMKIG.js} +16 -16
- package/dist/bundle/{command-server-entry-PK6FBUPO.js → command-server-entry-H3VGPOLJ.js} +23 -23
- package/dist/bundle/{decode-3ZE6NBKV.js → decode-JEU6JWCV.js} +2 -2
- package/dist/bundle/drive.js +3 -3
- package/dist/bundle/{echarts-6FWNCNXK.js → echarts-SDZA2SWG.js} +2 -2
- package/dist/bundle/{embed-DGYBBZUW.js → embed-WUKOASQG.js} +3 -3
- package/dist/bundle/{embedder-O7A6VMWI.js → embedder-UBRAXRDZ.js} +6 -6
- package/dist/bundle/{entry-CDJ2QSU2.js → entry-C4NUQFTF.js} +6 -6
- package/dist/bundle/{first-run-UOQW7DN5.js → first-run-PKHBS7B4.js} +5 -5
- package/dist/bundle/{first-screen-SNDV4YKF.js → first-screen-QOVOM4BF.js} +17 -17
- package/dist/bundle/{google-HPX52KMC.js → google-XXHSMTVK.js} +14 -14
- package/dist/bundle/{google-api-HIMN4XL5.js → google-api-SQQ4BSNR.js} +51 -51
- package/dist/bundle/{grants-RO42I6E4.js → grants-2U4JVT6O.js} +56 -56
- package/dist/bundle/{identity-NFGHDPLL.js → identity-SRL6RSU2.js} +1 -1
- package/dist/bundle/{instructions-6JAQYCM6.js → instructions-7T6JJIFS.js} +1 -1
- package/dist/bundle/{login-RZOQN63N.js → login-N243GGEE.js} +56 -56
- package/dist/bundle/{node-KSIX3GIH.js → node-BZDMUFTW.js} +2 -2
- package/dist/bundle/{node-sqlite-4FJ6WJXN.js → node-sqlite-SZQCCMV2.js} +4 -4
- package/dist/bundle/{oauth-BKZAMFKK.js → oauth-CMAFXX6A.js} +4 -4
- package/dist/bundle/{open-4AQJGH42.js → open-RVTPKDA3.js} +2 -2
- package/dist/bundle/{openai-24F2OX55.js → openai-6NN63BMH.js} +13 -13
- package/dist/bundle/{process-7NOA2T7H.js → process-756VBE7E.js} +1 -1
- package/dist/bundle/{program-7JHMLDEX.js → program-B4QBJYB5.js} +78 -75
- package/dist/bundle/{prompt-NM66MAZ4.js → prompt-HGP2DSRW.js} +2 -2
- package/dist/bundle/{recognize-DBKV2JYZ.js → recognize-26SHB7HI.js} +1 -1
- package/dist/bundle/{remote-ABWUTBVB.js → remote-Z4PWHZ5N.js} +7 -7
- package/dist/bundle/{rerank-FQAU4ENY.js → rerank-QHJZJK3Q.js} +4 -4
- package/dist/bundle/{serve-QLJG4QZD.js → serve-MYJW5IEM.js} +6 -6
- package/dist/bundle/server-HBZPIHDX.js +74 -0
- package/dist/bundle/{server-VGZNK5XD.js → server-XFW3V7CR.js} +38 -36
- package/dist/bundle/{services-5KARVUHK.js → services-IQG2RVTO.js} +25 -25
- package/dist/bundle/{sqlite-runtime-ILF6EFQJ.js → sqlite-runtime-X4GB5PBV.js} +3 -3
- package/dist/bundle/{state-R2M56GPU.js → state-ATQK2X3W.js} +3 -3
- package/dist/bundle/{store-2OBVMUQL.js → store-MEHEUOJH.js} +11 -11
- package/dist/bundle/{store-DA4K7HWW.js → store-QUBUPK6F.js} +13 -13
- package/dist/bundle/store-maintenance-command-33ULVDWY.js +65 -0
- package/dist/bundle/tokens-A2GP4F34.js +111 -0
- package/dist/policy.d.ts +2 -0
- package/dist/policy.d.ts.map +1 -1
- package/dist/policy.js +3 -2
- package/dist/policy.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +3 -2
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/server-NUBLY5SV.js +0 -74
- package/dist/bundle/store-maintenance-command-KSIPI5B5.js +0 -65
- package/dist/bundle/tokens-VQDGSHRB.js +0 -111
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
readPictureWithAgent,
|
|
20
20
|
withRecovery,
|
|
21
21
|
withTimeLimit
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-Q6BD6RUH.js";
|
|
23
23
|
import {
|
|
24
24
|
acquireLock,
|
|
25
25
|
openOrdinaryFile,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
sameOrdinaryFile,
|
|
29
29
|
syncDirectory,
|
|
30
30
|
writeFileAtomic
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-YYIWPH53.js";
|
|
32
32
|
import {
|
|
33
33
|
isNewer,
|
|
34
34
|
updateCommand
|
|
@@ -38,10 +38,10 @@ import {
|
|
|
38
38
|
openRemote,
|
|
39
39
|
remoteKey,
|
|
40
40
|
remoteModel
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-FAMXUI2X.js";
|
|
42
42
|
import {
|
|
43
43
|
localOnly
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-O7T3WGCV.js";
|
|
45
45
|
import {
|
|
46
46
|
defaultThreads,
|
|
47
47
|
installNativeRuntime,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
placedText,
|
|
51
51
|
runEmbedders,
|
|
52
52
|
textModelsDirectory
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-MWCPKUU4.js";
|
|
54
54
|
import {
|
|
55
55
|
CEILING_KEY,
|
|
56
56
|
CustomTextModelShape,
|
|
@@ -87,24 +87,24 @@ import {
|
|
|
87
87
|
textModels,
|
|
88
88
|
vectorModelKey,
|
|
89
89
|
writeTextModelsSection
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-J5LXL435.js";
|
|
91
91
|
import {
|
|
92
92
|
MESSENGER_CHANGE_REFUSAL,
|
|
93
93
|
ancestorValue,
|
|
94
94
|
envName,
|
|
95
95
|
readOnlyLockOf,
|
|
96
96
|
readOnlyRefusal
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-MOKEB656.js";
|
|
98
98
|
import {
|
|
99
99
|
endpoint,
|
|
100
100
|
endpointFetch,
|
|
101
101
|
modelAddressAllowed,
|
|
102
102
|
onThisComputer
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-6QR7NKMG.js";
|
|
104
104
|
import {
|
|
105
105
|
installFiles,
|
|
106
106
|
megabytes
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-5W65QTYS.js";
|
|
108
108
|
import {
|
|
109
109
|
AGENDA_COLUMNS,
|
|
110
110
|
BUSINESS_FIND_MAX,
|
|
@@ -198,20 +198,20 @@ import {
|
|
|
198
198
|
validateFields,
|
|
199
199
|
waitingPointer,
|
|
200
200
|
withoutField
|
|
201
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-6WAC2LOS.js";
|
|
202
202
|
import {
|
|
203
203
|
MAX_TEXT_CHARS,
|
|
204
204
|
attachmentMaxBytes,
|
|
205
205
|
googleDocumentId,
|
|
206
206
|
googleDocumentLinks,
|
|
207
207
|
pdfPreviewLimits
|
|
208
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-BXHFJTU5.js";
|
|
209
209
|
import {
|
|
210
210
|
DEFAULT_STEMMERS,
|
|
211
211
|
createStemmer,
|
|
212
212
|
fold,
|
|
213
213
|
normalize
|
|
214
|
-
} from "./chunk-
|
|
214
|
+
} from "./chunk-UFPRP7MG.js";
|
|
215
215
|
import {
|
|
216
216
|
CATEGORIES,
|
|
217
217
|
DEAL_KINDS,
|
|
@@ -279,7 +279,7 @@ import {
|
|
|
279
279
|
validateMeetingPassage,
|
|
280
280
|
validateMeetingSeriesHistory,
|
|
281
281
|
withAttempt
|
|
282
|
-
} from "./chunk-
|
|
282
|
+
} from "./chunk-AXYG2DDY.js";
|
|
283
283
|
import {
|
|
284
284
|
OPERATORS_BY_TYPE,
|
|
285
285
|
dateRange,
|
|
@@ -295,18 +295,18 @@ import {
|
|
|
295
295
|
import {
|
|
296
296
|
isCliFailure,
|
|
297
297
|
sqliteCode
|
|
298
|
-
} from "./chunk-
|
|
298
|
+
} from "./chunk-UYBLNGZ2.js";
|
|
299
299
|
import {
|
|
300
300
|
DEFAULT_TASK_CATEGORIES,
|
|
301
301
|
FALLBACK_CATEGORY,
|
|
302
302
|
readSharedSection,
|
|
303
303
|
sharedConfigPath,
|
|
304
304
|
writeSharedSection
|
|
305
|
-
} from "./chunk-
|
|
305
|
+
} from "./chunk-PWIEOATY.js";
|
|
306
306
|
import {
|
|
307
307
|
storePath,
|
|
308
308
|
wirecatDirectory
|
|
309
|
-
} from "./chunk-
|
|
309
|
+
} from "./chunk-CRIEW4FP.js";
|
|
310
310
|
import {
|
|
311
311
|
logRecordOf,
|
|
312
312
|
realSleep,
|
|
@@ -352,7 +352,7 @@ import {
|
|
|
352
352
|
__name
|
|
353
353
|
} from "./chunk-ZVVMGPBJ.js";
|
|
354
354
|
|
|
355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
355
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
356
356
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
357
357
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
358
358
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -427,7 +427,7 @@ var storeOnlyDeps = /* @__PURE__ */ __name((store, account2, { app, env }) => {
|
|
|
427
427
|
return { ...storedDeps(messenger, store, account2, guard), ...env === void 0 ? {} : { env } };
|
|
428
428
|
}, "storeOnlyDeps");
|
|
429
429
|
|
|
430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
431
431
|
var DAY_MS = 864e5;
|
|
432
432
|
var NEW_DAYS = 30;
|
|
433
433
|
var SAME_TEXT_MIN = 20;
|
|
@@ -504,7 +504,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
504
504
|
};
|
|
505
505
|
}, "scorePerson");
|
|
506
506
|
|
|
507
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
507
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
508
508
|
var REGISTRIES = {
|
|
509
509
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
510
510
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -591,7 +591,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
591
591
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
592
592
|
})), "notCovered");
|
|
593
593
|
|
|
594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
594
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
595
595
|
var ACTIVITY_MESSAGES = 1e3;
|
|
596
596
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
597
597
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -679,7 +679,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
679
679
|
};
|
|
680
680
|
}, "botCheckService");
|
|
681
681
|
|
|
682
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
682
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
683
683
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
684
684
|
if (newest === null)
|
|
685
685
|
return null;
|
|
@@ -688,7 +688,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
688
688
|
return newest.addressed ? "owed" : null;
|
|
689
689
|
}, "mailTurn");
|
|
690
690
|
|
|
691
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
691
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
692
692
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
693
693
|
if (error instanceof CliError && error.code === "not_found")
|
|
694
694
|
return void 0;
|
|
@@ -746,7 +746,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account2, since, chats)
|
|
|
746
746
|
};
|
|
747
747
|
}, "mailActivity");
|
|
748
748
|
|
|
749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
749
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
750
750
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account2, chatIds) => {
|
|
751
751
|
const ids = [...new Set(chatIds)];
|
|
752
752
|
if (ids.length === 0)
|
|
@@ -772,7 +772,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account2, chatIds) => {
|
|
|
772
772
|
}));
|
|
773
773
|
}, "chatCoverage");
|
|
774
774
|
|
|
775
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
775
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
776
776
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
777
777
|
if (value === void 0)
|
|
778
778
|
return void 0;
|
|
@@ -782,7 +782,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
782
782
|
return id2;
|
|
783
783
|
}, "threadIdOf");
|
|
784
784
|
|
|
785
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
785
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
786
786
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
787
787
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
788
788
|
if (key in own)
|
|
@@ -799,15 +799,15 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
799
799
|
return found.bind(adapter);
|
|
800
800
|
}, "capability");
|
|
801
801
|
|
|
802
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
802
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
803
803
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
804
804
|
|
|
805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
806
806
|
import { randomBytes } from "node:crypto";
|
|
807
807
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
808
808
|
var newOperationId = newSendId;
|
|
809
809
|
|
|
810
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
810
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
811
811
|
var LINKS = /https?:\/\/\S+/g;
|
|
812
812
|
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");
|
|
813
813
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -837,7 +837,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
837
837
|
});
|
|
838
838
|
}, "questions");
|
|
839
839
|
|
|
840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
841
841
|
var TOP_POSTS = 5;
|
|
842
842
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
843
843
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -954,7 +954,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
954
954
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
955
955
|
}, "median");
|
|
956
956
|
|
|
957
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
957
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
958
958
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
959
959
|
const events = [];
|
|
960
960
|
for (const stay of stays) {
|
|
@@ -986,7 +986,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
986
986
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
987
987
|
}, "memberEvents");
|
|
988
988
|
|
|
989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
989
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
990
990
|
var AUDIT_PAGE = 200;
|
|
991
991
|
var AUDIT_BUDGET = 10;
|
|
992
992
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -1066,7 +1066,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
1066
1066
|
return found;
|
|
1067
1067
|
}, "burstJoins");
|
|
1068
1068
|
|
|
1069
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1069
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/search/groups.js
|
|
1070
1070
|
var ALL = "all";
|
|
1071
1071
|
var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
|
|
1072
1072
|
var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
|
|
@@ -1201,7 +1201,7 @@ var scopeToGroup = /* @__PURE__ */ __name((run, request, context2) => {
|
|
|
1201
1201
|
return scoped;
|
|
1202
1202
|
}, "scopeToGroup");
|
|
1203
1203
|
|
|
1204
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
1205
1205
|
var NO_MAIL = "no_mail";
|
|
1206
1206
|
var MAIL = "email";
|
|
1207
1207
|
var groupLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -1275,7 +1275,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
1275
1275
|
return chosenMail.map(({ provider, account: account2 }) => ({ provider, account: account2 }));
|
|
1276
1276
|
}, "accountsOfKind");
|
|
1277
1277
|
|
|
1278
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
1279
1279
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account2) => {
|
|
1280
1280
|
if (deps.reads !== "store")
|
|
1281
1281
|
return keptChatId(deps.messenger, reference, store, account2);
|
|
@@ -1474,7 +1474,7 @@ var chatsMatchingIn = /* @__PURE__ */ __name(async (store, accounts, pattern) =>
|
|
|
1474
1474
|
}, "chatsMatchingIn");
|
|
1475
1475
|
var isText = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "", "isText");
|
|
1476
1476
|
|
|
1477
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1477
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
1478
1478
|
var EVENTS_DAYS = 7;
|
|
1479
1479
|
var TRACKED_DAYS = 30;
|
|
1480
1480
|
var STATS_PAGE = 1e3;
|
|
@@ -1769,7 +1769,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
1769
1769
|
return members.length === 0 ? null : members;
|
|
1770
1770
|
}, "storedMembers");
|
|
1771
1771
|
|
|
1772
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1772
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
1773
1773
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
1774
1774
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
1775
1775
|
const name = typed.trim().toLowerCase();
|
|
@@ -1826,7 +1826,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
1826
1826
|
return best.name;
|
|
1827
1827
|
}, "categorize");
|
|
1828
1828
|
|
|
1829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1829
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
1830
1830
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account: account2 }) => `${provider}:${account2}`, "taskAccount");
|
|
1831
1831
|
var RULES_IN = {
|
|
1832
1832
|
dialog: "all",
|
|
@@ -2032,7 +2032,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account2, chatI
|
|
|
2032
2032
|
return passes;
|
|
2033
2033
|
}, "applyTaskRulesToChats");
|
|
2034
2034
|
|
|
2035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
2036
2036
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
2037
2037
|
const tags = /* @__PURE__ */ new Map();
|
|
2038
2038
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -2041,7 +2041,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
2041
2041
|
return tags;
|
|
2042
2042
|
}, "taskTagFilters");
|
|
2043
2043
|
|
|
2044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
2045
2045
|
var DAY = 864e5;
|
|
2046
2046
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
2047
2047
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -2295,7 +2295,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
2295
2295
|
};
|
|
2296
2296
|
}, "agendaItem");
|
|
2297
2297
|
|
|
2298
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2298
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
2299
2299
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
2300
2300
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
2301
2301
|
const fail5 = /* @__PURE__ */ __name(() => {
|
|
@@ -2359,7 +2359,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
2359
2359
|
}
|
|
2360
2360
|
}, "validateContextEvidencePage");
|
|
2361
2361
|
|
|
2362
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2362
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
2363
2363
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
2364
2364
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
2365
2365
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -2412,7 +2412,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
2412
2412
|
};
|
|
2413
2413
|
}, "contextReadBudget");
|
|
2414
2414
|
|
|
2415
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2415
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
2416
2416
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
2417
2417
|
if (!port || typeof port.read !== "function")
|
|
2418
2418
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -2456,7 +2456,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
2456
2456
|
};
|
|
2457
2457
|
}, "createContextEvidenceReader");
|
|
2458
2458
|
|
|
2459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
2460
2460
|
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");
|
|
2461
2461
|
var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) => {
|
|
2462
2462
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -2472,10 +2472,10 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) =
|
|
|
2472
2472
|
}, "excerpt");
|
|
2473
2473
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
2474
2474
|
|
|
2475
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2475
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/ingest.js
|
|
2476
2476
|
import { createInterface } from "node:readline";
|
|
2477
2477
|
|
|
2478
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2478
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/vcard.js
|
|
2479
2479
|
import { createHash } from "node:crypto";
|
|
2480
2480
|
var MAX_ID = 512;
|
|
2481
2481
|
var AS_WORD = new RegExp(`^${WORD_BODY}$`);
|
|
@@ -2705,7 +2705,7 @@ var envelopeOfVcard = /* @__PURE__ */ __name((text2, { provider, account: accoun
|
|
|
2705
2705
|
};
|
|
2706
2706
|
}, "envelopeOfVcard");
|
|
2707
2707
|
|
|
2708
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2708
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/ingest.js
|
|
2709
2709
|
var emptyReceipt = /* @__PURE__ */ __name((dryRun, errors) => ({
|
|
2710
2710
|
dryRun,
|
|
2711
2711
|
source: null,
|
|
@@ -2805,7 +2805,7 @@ var ingestVcard = /* @__PURE__ */ __name(async (store, text2, { provider, batchI
|
|
|
2805
2805
|
return { ...await ingest(store, envelope, options), vcard: issues };
|
|
2806
2806
|
}, "ingestVcard");
|
|
2807
2807
|
|
|
2808
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2808
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/link-scorers/shared.js
|
|
2809
2809
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
2810
2810
|
var folded = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "folded");
|
|
2811
2811
|
var wholeWords = /* @__PURE__ */ __name((term) => new RegExp(`(?<![\\p{L}\\p{N}\\p{M}_])${escaped(normalizeVocabularyName(term))}(?![\\p{L}\\p{N}\\p{M}_])`, "u"), "wholeWords");
|
|
@@ -2849,7 +2849,7 @@ var identitiesIn = /* @__PURE__ */ __name(async (store, people, provider) => {
|
|
|
2849
2849
|
var remembered = /* @__PURE__ */ __name((input, key, read) => input.remember ? input.remember(key, read) : read(), "remembered");
|
|
2850
2850
|
var chatsWithOf = /* @__PURE__ */ __name((input, key, id2) => remembered(input, `chats-with\0${key.provider}\0${key.account}\0${id2}`, () => input.store.chats.chatsWith(key, id2)), "chatsWithOf");
|
|
2851
2851
|
|
|
2852
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/link-scorers/alias-hits.js
|
|
2853
2853
|
var SEARCH_LIMIT = 500;
|
|
2854
2854
|
var aliasWeight = /* @__PURE__ */ __name((hits) => hits >= 10 ? 0.55 : hits >= 3 ? 0.35 : 0, "aliasWeight");
|
|
2855
2855
|
var aliasHits = {
|
|
@@ -2898,7 +2898,7 @@ var aliasHits = {
|
|
|
2898
2898
|
}, "candidates")
|
|
2899
2899
|
};
|
|
2900
2900
|
|
|
2901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2901
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-senders.js
|
|
2902
2902
|
var WEIGHT = 0.5;
|
|
2903
2903
|
var LARGE_GROUP_WEIGHT = 0.2;
|
|
2904
2904
|
var LARGE_GROUP = 30;
|
|
@@ -2970,7 +2970,7 @@ var sendersOf2 = /* @__PURE__ */ __name(async (input, chat, reference, key) => {
|
|
|
2970
2970
|
return found;
|
|
2971
2971
|
}, "sendersOf");
|
|
2972
2972
|
|
|
2973
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2973
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-title.js
|
|
2974
2974
|
var WEIGHT2 = 0.7;
|
|
2975
2975
|
var chatTitle = {
|
|
2976
2976
|
id: "chat-title",
|
|
@@ -3009,7 +3009,7 @@ var chatTitle = {
|
|
|
3009
3009
|
}, "candidates")
|
|
3010
3010
|
};
|
|
3011
3011
|
|
|
3012
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3012
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/link-scorers/email-domain.js
|
|
3013
3013
|
var WEIGHT3 = 0.3;
|
|
3014
3014
|
var CONTACTS = 500;
|
|
3015
3015
|
var MOST_PAIRS = 200;
|
|
@@ -3070,7 +3070,7 @@ var emailDomain = {
|
|
|
3070
3070
|
}, "candidates")
|
|
3071
3071
|
};
|
|
3072
3072
|
|
|
3073
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3073
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/link-scorers/mail-thread.js
|
|
3074
3074
|
var NAMED = 0.7;
|
|
3075
3075
|
var MEMBER_ONLY = 0.3;
|
|
3076
3076
|
var READ_LIMIT2 = 500;
|
|
@@ -3144,7 +3144,7 @@ var mailThread = {
|
|
|
3144
3144
|
}, "candidates")
|
|
3145
3145
|
};
|
|
3146
3146
|
|
|
3147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-chats.js
|
|
3148
3148
|
var WEIGHT4 = 0.5;
|
|
3149
3149
|
var memberChats = {
|
|
3150
3150
|
id: "member-chats",
|
|
@@ -3186,7 +3186,7 @@ var memberChats = {
|
|
|
3186
3186
|
}, "candidates")
|
|
3187
3187
|
};
|
|
3188
3188
|
|
|
3189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3189
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-dialog.js
|
|
3190
3190
|
var WEIGHT5 = 0.6;
|
|
3191
3191
|
var memberDialog = {
|
|
3192
3192
|
id: "member-dialog",
|
|
@@ -3219,7 +3219,7 @@ var memberDialog = {
|
|
|
3219
3219
|
}, "candidates")
|
|
3220
3220
|
};
|
|
3221
3221
|
|
|
3222
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3222
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
3223
3223
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
3224
3224
|
var DEFAULT_PURPOSES = ["work"];
|
|
3225
3225
|
var LINK_PURPOSE = "work";
|
|
@@ -3249,7 +3249,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
3249
3249
|
...value.split(",").map((one2) => one2.trim()).filter(Boolean)
|
|
3250
3250
|
], "purposeList");
|
|
3251
3251
|
|
|
3252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
3253
3253
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
3254
3254
|
async around(ref, window2) {
|
|
3255
3255
|
const at = parseLocator(ref);
|
|
@@ -3345,7 +3345,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
3345
3345
|
};
|
|
3346
3346
|
}, "storedNeighbours");
|
|
3347
3347
|
|
|
3348
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3348
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
3349
3349
|
import { createHash as createHash2 } from "node:crypto";
|
|
3350
3350
|
var DAY2 = 864e5;
|
|
3351
3351
|
var MAX_TIME = 864e13;
|
|
@@ -3661,7 +3661,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
3661
3661
|
return value;
|
|
3662
3662
|
}, "decodeCheckpoint");
|
|
3663
3663
|
|
|
3664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
3665
3665
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
3666
3666
|
var PAGE = 20;
|
|
3667
3667
|
var PEOPLE = 20;
|
|
@@ -4065,7 +4065,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
4065
4065
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
4066
4066
|
}, "peopleOf");
|
|
4067
4067
|
|
|
4068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4068
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
4069
4069
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
4070
4070
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
4071
4071
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -4130,7 +4130,7 @@ var matchProjectCandidates = /* @__PURE__ */ __name((catalog, input) => matchVoc
|
|
|
4130
4130
|
omittedMatches: omitted
|
|
4131
4131
|
})), "matchProjectCandidates");
|
|
4132
4132
|
|
|
4133
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4133
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
4134
4134
|
var KINDS = ["project", "tag", "topic"];
|
|
4135
4135
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
4136
4136
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -4185,7 +4185,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
4185
4185
|
};
|
|
4186
4186
|
}, "findEvidenceMentions");
|
|
4187
4187
|
|
|
4188
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4188
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
4189
4189
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account2, chatId, { since, until }) => {
|
|
4190
4190
|
const window2 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
4191
4191
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -4496,7 +4496,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
4496
4496
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
4497
4497
|
}, "purposeHintOf");
|
|
4498
4498
|
|
|
4499
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4499
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/link-scorers/scan.js
|
|
4500
4500
|
var SCORERS = [chatTitle, aliasHits, memberChats, memberDialog, chatSenders, mailThread];
|
|
4501
4501
|
var PERSON_SCORERS = [emailDomain];
|
|
4502
4502
|
var SCAN_BOT = { bot: "memo-scan", kind: "rule" };
|
|
@@ -4752,18 +4752,18 @@ var referenceOf = /* @__PURE__ */ __name((text2) => {
|
|
|
4752
4752
|
}, "referenceOf");
|
|
4753
4753
|
var rejectedReversed = /* @__PURE__ */ __name(async (store, candidate) => candidate.kind === "related-to" && candidate.to.startsWith("person:") && ((await store.knowledge.relationState(null, { from: candidate.to, to: candidate.from, kind: candidate.kind }))?.rejected ?? false), "rejectedReversed");
|
|
4754
4754
|
|
|
4755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
4756
4756
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
4757
4757
|
|
|
4758
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4758
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
4759
4759
|
import { lstat } from "node:fs/promises";
|
|
4760
4760
|
|
|
4761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4761
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
4762
4762
|
import { createHash as createHash4, randomUUID as randomUUID2 } from "node:crypto";
|
|
4763
4763
|
import { open as open2, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
4764
4764
|
import { join as join2 } from "node:path";
|
|
4765
4765
|
|
|
4766
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4766
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
4767
4767
|
import { createHash as createHash3 } from "node:crypto";
|
|
4768
4768
|
var metadataLimit = 16384;
|
|
4769
4769
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -4823,7 +4823,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
4823
4823
|
}
|
|
4824
4824
|
}, "readPartialMetadata");
|
|
4825
4825
|
|
|
4826
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4826
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
4827
4827
|
import { randomUUID } from "node:crypto";
|
|
4828
4828
|
import { open, rename, unlink } from "node:fs/promises";
|
|
4829
4829
|
import { join } from "node:path";
|
|
@@ -4915,7 +4915,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
4915
4915
|
};
|
|
4916
4916
|
}, "partialWriter");
|
|
4917
4917
|
|
|
4918
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4918
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
4919
4919
|
var NativeRecordingPartialStore = class {
|
|
4920
4920
|
static {
|
|
4921
4921
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -5022,12 +5022,12 @@ var NativeRecordingPartialStore = class {
|
|
|
5022
5022
|
}
|
|
5023
5023
|
};
|
|
5024
5024
|
|
|
5025
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5025
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
5026
5026
|
import { createHash as createHash5 } from "node:crypto";
|
|
5027
5027
|
import { link } from "node:fs/promises";
|
|
5028
5028
|
import { basename, dirname, join as join4, resolve } from "node:path";
|
|
5029
5029
|
|
|
5030
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5030
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
5031
5031
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
5032
5032
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
5033
5033
|
signal?.throwIfAborted();
|
|
@@ -5062,7 +5062,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
5062
5062
|
signal?.throwIfAborted();
|
|
5063
5063
|
}, "commitPublication");
|
|
5064
5064
|
|
|
5065
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5065
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
5066
5066
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
5067
5067
|
import { open as open3, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
5068
5068
|
import { join as join3 } from "node:path";
|
|
@@ -5135,7 +5135,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
5135
5135
|
}
|
|
5136
5136
|
}, "writePublicationJournal");
|
|
5137
5137
|
|
|
5138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
5139
5139
|
var NativeRecordingPublication = class {
|
|
5140
5140
|
static {
|
|
5141
5141
|
__name(this, "NativeRecordingPublication");
|
|
@@ -5208,7 +5208,7 @@ var NativeRecordingPublication = class {
|
|
|
5208
5208
|
}
|
|
5209
5209
|
};
|
|
5210
5210
|
|
|
5211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
5212
5212
|
import { createHash as createHash6 } from "node:crypto";
|
|
5213
5213
|
import { readdir } from "node:fs/promises";
|
|
5214
5214
|
import { isAbsolute, join as join5, resolve as resolve2 } from "node:path";
|
|
@@ -5295,7 +5295,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one2, beforePublish) => wri
|
|
|
5295
5295
|
beforePublish
|
|
5296
5296
|
}), "commitMediaEntry");
|
|
5297
5297
|
|
|
5298
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5298
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
5299
5299
|
var validator = '"media-completed-v1"';
|
|
5300
5300
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
5301
5301
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -5396,7 +5396,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
5396
5396
|
return entry;
|
|
5397
5397
|
}, "archiveMediaFile");
|
|
5398
5398
|
|
|
5399
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5399
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
5400
5400
|
import { mkdir, realpath } from "node:fs/promises";
|
|
5401
5401
|
import { join as join6, resolve as resolve3 } from "node:path";
|
|
5402
5402
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -5463,7 +5463,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory, signal, run
|
|
|
5463
5463
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
5464
5464
|
}, "withMediaArchiveLocks");
|
|
5465
5465
|
|
|
5466
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5466
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
5467
5467
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
5468
5468
|
if (value === void 0)
|
|
5469
5469
|
return void 0;
|
|
@@ -5616,7 +5616,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
5616
5616
|
}, { create: true });
|
|
5617
5617
|
}, "archiveMedia");
|
|
5618
5618
|
|
|
5619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5619
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
5620
5620
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
5621
5621
|
import { basename as basename2, dirname as dirname2, join as join7, resolve as resolve4 } from "node:path";
|
|
5622
5622
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory) => {
|
|
@@ -5769,7 +5769,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
5769
5769
|
}, { additional: [target], createAdditional: !options.dryRun });
|
|
5770
5770
|
}, "moveMediaArchive");
|
|
5771
5771
|
|
|
5772
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5772
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
5773
5773
|
import { writeFileSync } from "node:fs";
|
|
5774
5774
|
import { join as join8 } from "node:path";
|
|
5775
5775
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
@@ -5794,7 +5794,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
5794
5794
|
`);
|
|
5795
5795
|
await nativeRuntime({ env, progress });
|
|
5796
5796
|
progress(`${model.id}: loading it once to check it works`);
|
|
5797
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
5797
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-WUKOASQG.js");
|
|
5798
5798
|
const embedder = await openEmbedder2(model, directory);
|
|
5799
5799
|
try {
|
|
5800
5800
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -5815,7 +5815,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
5815
5815
|
}
|
|
5816
5816
|
await nativeRuntime({ env, progress });
|
|
5817
5817
|
progress(`${model.id}: loading it once to check it works`);
|
|
5818
|
-
const { openReranker } = await import("./rerank-
|
|
5818
|
+
const { openReranker } = await import("./rerank-QHJZJK3Q.js");
|
|
5819
5819
|
const reranker = await openReranker(model, directory);
|
|
5820
5820
|
try {
|
|
5821
5821
|
await reranker.score("check", ["check"]);
|
|
@@ -5833,7 +5833,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
5833
5833
|
await installFiles(placedImage(model, directory), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
5834
5834
|
}
|
|
5835
5835
|
progress(`${model.id}: loading it once to check it works`);
|
|
5836
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
5836
|
+
const { openPictureEmbedder } = await import("./embedder-UBRAXRDZ.js");
|
|
5837
5837
|
const embedder = await openPictureEmbedder(model, directory);
|
|
5838
5838
|
try {
|
|
5839
5839
|
const vector = await embedder.embedQuery("check");
|
|
@@ -5845,7 +5845,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
5845
5845
|
return { model, directory };
|
|
5846
5846
|
}, "downloadImageModel");
|
|
5847
5847
|
|
|
5848
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
5849
5849
|
var MONEY_REQUEST = "money-request";
|
|
5850
5850
|
var MONEY_DONE = "money-done";
|
|
5851
5851
|
var PROMISE = "promise";
|
|
@@ -5879,10 +5879,10 @@ var MONEY_WORDS = [
|
|
|
5879
5879
|
}
|
|
5880
5880
|
];
|
|
5881
5881
|
|
|
5882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
5883
5883
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
5884
5884
|
|
|
5885
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5885
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
5886
5886
|
var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
5887
5887
|
var MONEY_DONE_FORMS = words([
|
|
5888
5888
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -5922,7 +5922,7 @@ var PROMISE_FORMS = words([
|
|
|
5922
5922
|
"estar\xE1 listo"
|
|
5923
5923
|
]);
|
|
5924
5924
|
|
|
5925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
5926
5926
|
var EXCERPT_CHARS = 80;
|
|
5927
5927
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
5928
5928
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -5944,7 +5944,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
5944
5944
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
5945
5945
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
5946
5946
|
|
|
5947
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5947
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
5948
5948
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
5949
5949
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
5950
5950
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -6025,7 +6025,7 @@ var amounts = {
|
|
|
6025
6025
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
6026
6026
|
};
|
|
6027
6027
|
|
|
6028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6028
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
6029
6029
|
var children = {
|
|
6030
6030
|
id: "children",
|
|
6031
6031
|
version: 1,
|
|
@@ -6054,7 +6054,7 @@ var children = {
|
|
|
6054
6054
|
}, "read")
|
|
6055
6055
|
};
|
|
6056
6056
|
|
|
6057
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6057
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
6058
6058
|
var coverage = {
|
|
6059
6059
|
id: "coverage",
|
|
6060
6060
|
version: 1,
|
|
@@ -6083,7 +6083,7 @@ var coverage = {
|
|
|
6083
6083
|
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")
|
|
6084
6084
|
};
|
|
6085
6085
|
|
|
6086
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6086
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
6087
6087
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
6088
6088
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
6089
6089
|
signal: "payments",
|
|
@@ -6133,7 +6133,7 @@ var payments = {
|
|
|
6133
6133
|
}, "read")
|
|
6134
6134
|
};
|
|
6135
6135
|
|
|
6136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6136
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
6137
6137
|
var PATTERNS_PER_CHAT = 3;
|
|
6138
6138
|
var DAY3 = 864e5;
|
|
6139
6139
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -6222,7 +6222,7 @@ var promises = {
|
|
|
6222
6222
|
}, "read")
|
|
6223
6223
|
};
|
|
6224
6224
|
|
|
6225
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6225
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
6226
6226
|
var PER_SIDE = 5;
|
|
6227
6227
|
var WEEK = 7 * 864e5;
|
|
6228
6228
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -6253,7 +6253,7 @@ var questions2 = {
|
|
|
6253
6253
|
}, "attention")
|
|
6254
6254
|
};
|
|
6255
6255
|
|
|
6256
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6256
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
6257
6257
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
6258
6258
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one2) => one2.id === id2), "byId");
|
|
6259
6259
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -6321,7 +6321,7 @@ var replyNext = {
|
|
|
6321
6321
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
6322
6322
|
};
|
|
6323
6323
|
|
|
6324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
6325
6325
|
var escaped2 = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
6326
6326
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped2(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
6327
6327
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -6367,7 +6367,7 @@ var topics = {
|
|
|
6367
6367
|
}, "read")
|
|
6368
6368
|
};
|
|
6369
6369
|
|
|
6370
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6370
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
6371
6371
|
var STATUS_SIGNALS = [
|
|
6372
6372
|
replyNext,
|
|
6373
6373
|
questions2,
|
|
@@ -6379,7 +6379,7 @@ var STATUS_SIGNALS = [
|
|
|
6379
6379
|
children
|
|
6380
6380
|
];
|
|
6381
6381
|
|
|
6382
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
6383
6383
|
var DAY4 = 864e5;
|
|
6384
6384
|
var STATUS_WINDOW = 300;
|
|
6385
6385
|
var STATUS_CHATS = 16;
|
|
@@ -6568,7 +6568,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
6568
6568
|
};
|
|
6569
6569
|
}, "projectStatus");
|
|
6570
6570
|
|
|
6571
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6571
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-activity.js
|
|
6572
6572
|
var TOP = 3;
|
|
6573
6573
|
var projectActivity = /* @__PURE__ */ __name(async (store, input) => {
|
|
6574
6574
|
const until = input.until ?? Date.now();
|
|
@@ -6630,7 +6630,7 @@ var projectActivity = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
6630
6630
|
}, "projectActivity");
|
|
6631
6631
|
var refOf = /* @__PURE__ */ __name((chat) => formatReference({ type: "chat", provider: chat.provider, account: chat.account, chat: chat.chat }), "refOf");
|
|
6632
6632
|
|
|
6633
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
6634
6634
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
6635
6635
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
6636
6636
|
if (deps.offline)
|
|
@@ -6702,7 +6702,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
6702
6702
|
};
|
|
6703
6703
|
}, "accountService");
|
|
6704
6704
|
|
|
6705
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6705
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
6706
6706
|
var MINUTE = 6e4;
|
|
6707
6707
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
6708
6708
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -6721,7 +6721,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
6721
6721
|
return new Date(at - at % MINUTE).toISOString();
|
|
6722
6722
|
}, "sendTime");
|
|
6723
6723
|
|
|
6724
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6724
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
6725
6725
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
6726
6726
|
try {
|
|
6727
6727
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -6968,7 +6968,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
6968
6968
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
6969
6969
|
}, "linkLimits");
|
|
6970
6970
|
|
|
6971
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
6972
6972
|
var THREADS_PAGE = 500;
|
|
6973
6973
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
6974
6974
|
const account2 = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -7047,7 +7047,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
7047
7047
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
7048
7048
|
}, "readMail");
|
|
7049
7049
|
|
|
7050
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7050
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
7051
7051
|
var PERSON_FIELDS = /* @__PURE__ */ new Set(["from", "to", "cc", "bcc"]);
|
|
7052
7052
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is", "list"]);
|
|
7053
7053
|
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");
|
|
@@ -7416,7 +7416,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account2, request, messen
|
|
|
7416
7416
|
};
|
|
7417
7417
|
}, "statsLucene");
|
|
7418
7418
|
|
|
7419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
7420
7420
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
7421
7421
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
7422
7422
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -7456,7 +7456,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
7456
7456
|
};
|
|
7457
7457
|
}, "dateWindow");
|
|
7458
7458
|
|
|
7459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
7460
7460
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
7461
7461
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
7462
7462
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -7625,7 +7625,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
7625
7625
|
};
|
|
7626
7626
|
}, "readRankingSelection");
|
|
7627
7627
|
|
|
7628
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
7629
7629
|
var canonical = /* @__PURE__ */ __name((value, nested = false) => Array.isArray(value) ? value.map((one2) => canonical(one2, true)) : value !== null && typeof value === "object" ? Object.fromEntries(Object.entries(value).filter(([, one2]) => one2 !== void 0 && (nested || one2 !== false)).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(([key, one2]) => [key, canonical(one2, true)])) : value, "canonical");
|
|
7630
7630
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
7631
7631
|
command,
|
|
@@ -7635,7 +7635,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
7635
7635
|
fieldsVersion: FIELD_VERSION
|
|
7636
7636
|
}), "searchRecordOf");
|
|
7637
7637
|
|
|
7638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
7639
7639
|
function invalid2(message) {
|
|
7640
7640
|
throw new CliError("validation_error", message);
|
|
7641
7641
|
}
|
|
@@ -7929,10 +7929,10 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
7929
7929
|
}, "evidence")
|
|
7930
7930
|
}), "adminStatisticsService");
|
|
7931
7931
|
|
|
7932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
7933
7933
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
7934
7934
|
|
|
7935
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
7936
7936
|
var REQUEST_MS = 400;
|
|
7937
7937
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
7938
7938
|
const lowest = ranges[0];
|
|
@@ -7955,7 +7955,7 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
7955
7955
|
};
|
|
7956
7956
|
}, "estimateBackfill");
|
|
7957
7957
|
|
|
7958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
7959
7959
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
7960
7960
|
if (isCliFailure(error))
|
|
7961
7961
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -8038,7 +8038,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
8038
8038
|
};
|
|
8039
8039
|
}, "mergeBatches");
|
|
8040
8040
|
|
|
8041
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8041
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
8042
8042
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
8043
8043
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
8044
8044
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -8061,7 +8061,7 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
8061
8061
|
}
|
|
8062
8062
|
}, "patiently");
|
|
8063
8063
|
|
|
8064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
8065
8065
|
var RULES_VERSION = 5;
|
|
8066
8066
|
var LOOK_BACK = 50;
|
|
8067
8067
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -8151,7 +8151,7 @@ var latest = /* @__PURE__ */ __name((window2, matches) => {
|
|
|
8151
8151
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
8152
8152
|
var link2 = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
8153
8153
|
|
|
8154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
8155
8155
|
var CONTEXT_MESSAGES = 3;
|
|
8156
8156
|
var CONTEXT_MINUTES = 10;
|
|
8157
8157
|
var MAX_CHARS = 1200;
|
|
@@ -8175,12 +8175,12 @@ var context = {
|
|
|
8175
8175
|
}, "describe")
|
|
8176
8176
|
};
|
|
8177
8177
|
|
|
8178
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
8179
8179
|
var BUILT_INS = [context];
|
|
8180
8180
|
var providers = [...BUILT_INS];
|
|
8181
8181
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
8182
8182
|
|
|
8183
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8183
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
8184
8184
|
var READ_PAGE = 5e3;
|
|
8185
8185
|
var CHAIN = 50;
|
|
8186
8186
|
var CONVERSATION_QUERY = {
|
|
@@ -8332,7 +8332,7 @@ var sized = /* @__PURE__ */ __name((size4) => {
|
|
|
8332
8332
|
return size4;
|
|
8333
8333
|
}, "sized");
|
|
8334
8334
|
|
|
8335
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8335
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
8336
8336
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
8337
8337
|
var MESSAGE_PAGE = 5e3;
|
|
8338
8338
|
var PER_SESSION = 8;
|
|
@@ -8351,7 +8351,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
8351
8351
|
price: remote.price,
|
|
8352
8352
|
installed: true,
|
|
8353
8353
|
perBatch: PER_REQUEST * concurrency,
|
|
8354
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
8354
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-Z4PWHZ5N.js")).openRemote(remote, apiKey, {
|
|
8355
8355
|
concurrency,
|
|
8356
8356
|
env: deps.env ?? process.env
|
|
8357
8357
|
}), "open")
|
|
@@ -8371,7 +8371,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
8371
8371
|
if (!isTextModelInstalled(model, directory))
|
|
8372
8372
|
throw notDownloaded(model.id);
|
|
8373
8373
|
if (apart) {
|
|
8374
|
-
const { openProcess } = await import("./process-
|
|
8374
|
+
const { openProcess } = await import("./process-756VBE7E.js");
|
|
8375
8375
|
return openProcess(model, directory, { threads: threads ?? defaultThreads() });
|
|
8376
8376
|
}
|
|
8377
8377
|
return openEmbedder(model, directory, { threads: threads ?? defaultThreads() });
|
|
@@ -8660,7 +8660,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
8660
8660
|
return { ...one2, state };
|
|
8661
8661
|
}, "shaped");
|
|
8662
8662
|
|
|
8663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8663
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
8664
8664
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
8665
8665
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
8666
8666
|
for (const [key, value, maximum] of [
|
|
@@ -8713,7 +8713,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
8713
8713
|
}
|
|
8714
8714
|
}, "catchUpSearch");
|
|
8715
8715
|
|
|
8716
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8716
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
8717
8717
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
8718
8718
|
if (deps.reads === "store") {
|
|
8719
8719
|
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`);
|
|
@@ -9094,7 +9094,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account2, chatId, key, byTi
|
|
|
9094
9094
|
return message?.timestamp ?? fallback;
|
|
9095
9095
|
}, "timeOfKey");
|
|
9096
9096
|
|
|
9097
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9097
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
9098
9098
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
9099
9099
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
9100
9100
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -9231,16 +9231,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
9231
9231
|
return { plan, repair };
|
|
9232
9232
|
}, "gapsService");
|
|
9233
9233
|
|
|
9234
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9234
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
9235
9235
|
import { createHash as createHash10 } from "node:crypto";
|
|
9236
9236
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
9237
9237
|
import { lstat as lstat5, open as open6, readFile as readFile2, stat as stat2 } from "node:fs/promises";
|
|
9238
9238
|
|
|
9239
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9239
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
9240
9240
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
9241
9241
|
import { basename as basename4, join as join9, relative as relative2, sep as sep2 } from "node:path";
|
|
9242
9242
|
|
|
9243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9243
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
9244
9244
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
9245
9245
|
import { open as open4, stat } from "node:fs/promises";
|
|
9246
9246
|
import { basename as basename3, dirname as dirname3, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -9454,7 +9454,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read) => {
|
|
|
9454
9454
|
return { name, source };
|
|
9455
9455
|
}, "readStickerFile");
|
|
9456
9456
|
|
|
9457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
9458
9458
|
var MAX_FILES = 1e4;
|
|
9459
9459
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory, app, env) => {
|
|
9460
9460
|
if (refusedPlace(directory, app, env))
|
|
@@ -9523,7 +9523,7 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory, app,
|
|
|
9523
9523
|
return choices;
|
|
9524
9524
|
}, "directoryPaths");
|
|
9525
9525
|
|
|
9526
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9526
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
9527
9527
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
9528
9528
|
const limits = pdfPreviewLimits(env);
|
|
9529
9529
|
const cancelled2 = /* @__PURE__ */ __name(() => {
|
|
@@ -9600,7 +9600,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
9600
9600
|
}
|
|
9601
9601
|
}, "pdfPreview");
|
|
9602
9602
|
|
|
9603
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
9604
9604
|
import { createHash as createHash8 } from "node:crypto";
|
|
9605
9605
|
import { constants } from "node:fs";
|
|
9606
9606
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -9708,7 +9708,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
9708
9708
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
9709
9709
|
}, "transferMime");
|
|
9710
9710
|
|
|
9711
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9711
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
9712
9712
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
9713
9713
|
import { link as link3, rm } from "node:fs/promises";
|
|
9714
9714
|
import { join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -9822,12 +9822,12 @@ var save = /* @__PURE__ */ __name(async (file2, directory, fallbackName, { uniqu
|
|
|
9822
9822
|
}
|
|
9823
9823
|
}, "save");
|
|
9824
9824
|
|
|
9825
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9825
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
9826
9826
|
import { createHash as createHash9 } from "node:crypto";
|
|
9827
9827
|
import { lstat as lstat4, readFile } from "node:fs/promises";
|
|
9828
9828
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
9829
9829
|
|
|
9830
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9830
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
9831
9831
|
var GROUP_SETTINGS = [
|
|
9832
9832
|
"allCanPin",
|
|
9833
9833
|
"onlyAdminsAdd",
|
|
@@ -9841,7 +9841,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
9841
9841
|
var senderIsMe = /* @__PURE__ */ __name((message, account2) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account2, "senderIsMe");
|
|
9842
9842
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
9843
9843
|
|
|
9844
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9844
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
9845
9845
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
9846
9846
|
var PICTURE_FLOOR = 0.25;
|
|
9847
9847
|
var PAGE3 = 50;
|
|
@@ -9882,7 +9882,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
9882
9882
|
const directory = imageModelsDirectory(deps.env);
|
|
9883
9883
|
if (!isImageModelInstalled(model2, directory))
|
|
9884
9884
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
9885
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
9885
|
+
const { openPictureEmbedder } = await import("./embedder-UBRAXRDZ.js");
|
|
9886
9886
|
return openPictureEmbedder(model2, directory);
|
|
9887
9887
|
}, "open");
|
|
9888
9888
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -10056,7 +10056,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
10056
10056
|
}, "search")
|
|
10057
10057
|
}), "withPictures");
|
|
10058
10058
|
|
|
10059
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10059
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
10060
10060
|
var ATTACHMENT_QUERY = {
|
|
10061
10061
|
entity: "attachment",
|
|
10062
10062
|
backend: "sql",
|
|
@@ -10527,7 +10527,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
10527
10527
|
}, "readPicture")
|
|
10528
10528
|
}), "attachmentsService");
|
|
10529
10529
|
|
|
10530
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10530
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
10531
10531
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
10532
10532
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
10533
10533
|
const store = await accountStore(deps);
|
|
@@ -10557,7 +10557,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
10557
10557
|
}, "list")
|
|
10558
10558
|
}), "chatDocumentsService");
|
|
10559
10559
|
|
|
10560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10560
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
10561
10561
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
10562
10562
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
10563
10563
|
const units = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -10644,7 +10644,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
10644
10644
|
}
|
|
10645
10645
|
}, "isRetentionSelection");
|
|
10646
10646
|
|
|
10647
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
10648
10648
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
10649
10649
|
const fields = text2.split(",").map((one2) => one2.trim());
|
|
10650
10650
|
if (!fields.length || fields.some((one2) => !COUNTER_FIELDS.includes(one2)) || new Set(fields).size !== fields.length)
|
|
@@ -10851,7 +10851,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
10851
10851
|
};
|
|
10852
10852
|
}, "countersService");
|
|
10853
10853
|
|
|
10854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10854
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
10855
10855
|
var SYNC_KEY = "messages.sync-first";
|
|
10856
10856
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
10857
10857
|
var keyOf3 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -10983,7 +10983,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
10983
10983
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
10984
10984
|
}), "withRefresh");
|
|
10985
10985
|
|
|
10986
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10986
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
10987
10987
|
var CANDIDATES = 50;
|
|
10988
10988
|
var WORD_HITS = 200;
|
|
10989
10989
|
var RRF_K = 60;
|
|
@@ -11258,13 +11258,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
11258
11258
|
return mean2.map((value) => value / length);
|
|
11259
11259
|
}, "meanOf");
|
|
11260
11260
|
|
|
11261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
11262
11262
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
11263
11263
|
...embeddingsMaintenance(deps),
|
|
11264
11264
|
...embeddingsSearch(deps)
|
|
11265
11265
|
}), "embeddingsService");
|
|
11266
11266
|
|
|
11267
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11267
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
11268
11268
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
11269
11269
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
11270
11270
|
if (deps.offline)
|
|
@@ -11405,7 +11405,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
11405
11405
|
};
|
|
11406
11406
|
}, "foldersService");
|
|
11407
11407
|
|
|
11408
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11408
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
11409
11409
|
var INBOX_CHATS = 20;
|
|
11410
11410
|
var REVIEW_DAYS = 3;
|
|
11411
11411
|
var UNANSWERED_HOURS = 24;
|
|
@@ -11613,7 +11613,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
11613
11613
|
};
|
|
11614
11614
|
}, "inboxService");
|
|
11615
11615
|
|
|
11616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11616
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
11617
11617
|
var REVIEW_COUNT = 500;
|
|
11618
11618
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
11619
11619
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -11692,7 +11692,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
11692
11692
|
};
|
|
11693
11693
|
}, "mentionsService");
|
|
11694
11694
|
|
|
11695
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
11696
11696
|
var invalid3 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
11697
11697
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
11698
11698
|
const { text: text2, spans } = formatted2;
|
|
@@ -11752,7 +11752,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
11752
11752
|
};
|
|
11753
11753
|
}, "visibleFormattedText");
|
|
11754
11754
|
|
|
11755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
11756
11756
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
11757
11757
|
position,
|
|
11758
11758
|
kind,
|
|
@@ -11801,7 +11801,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
11801
11801
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
11802
11802
|
}, "validatePermalink");
|
|
11803
11803
|
|
|
11804
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11804
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
11805
11805
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
11806
11806
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
11807
11807
|
return `${seconds / 86400}d`;
|
|
@@ -11833,7 +11833,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
11833
11833
|
return seconds;
|
|
11834
11834
|
}, "pinDurationOf");
|
|
11835
11835
|
|
|
11836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
11837
11837
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
11838
11838
|
if (sendAs === void 0) {
|
|
11839
11839
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -11858,7 +11858,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
11858
11858
|
return sendAs;
|
|
11859
11859
|
}, "typedSendAs");
|
|
11860
11860
|
|
|
11861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
11862
11862
|
var TOTAL_CAP = 1e4;
|
|
11863
11863
|
var totalOf = /* @__PURE__ */ __name((count2, shown, hasMore, exact = true) => {
|
|
11864
11864
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -11869,7 +11869,7 @@ var totalOf = /* @__PURE__ */ __name((count2, shown, hasMore, exact = true) => {
|
|
|
11869
11869
|
return { value: count2, relation: exact ? "eq" : "gte" };
|
|
11870
11870
|
}, "totalOf");
|
|
11871
11871
|
|
|
11872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11872
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
11873
11873
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
11874
11874
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
11875
11875
|
let narrows = false;
|
|
@@ -11898,7 +11898,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
11898
11898
|
return wanted(root).join(" ").trim();
|
|
11899
11899
|
}, "meaningWords");
|
|
11900
11900
|
|
|
11901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11901
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
11902
11902
|
var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
11903
11903
|
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"));
|
|
11904
11904
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -12032,7 +12032,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
12032
12032
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
12033
12033
|
}, "questionLookup");
|
|
12034
12034
|
|
|
12035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
12036
12036
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
12037
12037
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
12038
12038
|
var searchCombined = /* @__PURE__ */ __name(async (store, account2, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -12226,7 +12226,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
12226
12226
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
|
|
12227
12227
|
}, "signals");
|
|
12228
12228
|
|
|
12229
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12229
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
12230
12230
|
var MEANING_DEPTH = 100;
|
|
12231
12231
|
var RRF_K2 = 60;
|
|
12232
12232
|
var RERANK_DEPTH = 50;
|
|
@@ -12552,7 +12552,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
12552
12552
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
12553
12553
|
}, "mixedWithReranker");
|
|
12554
12554
|
|
|
12555
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12555
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
12556
12556
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
12557
12557
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
12558
12558
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -12751,7 +12751,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account2, chat, mes
|
|
|
12751
12751
|
return result;
|
|
12752
12752
|
}, "readThreadContext");
|
|
12753
12753
|
|
|
12754
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12754
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
12755
12755
|
var SEARCH_FILL_MS = 200;
|
|
12756
12756
|
var statsStore = /* @__PURE__ */ __name(async (store, account2, request, messenger = {}) => {
|
|
12757
12757
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -12820,7 +12820,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
12820
12820
|
}, "accountOf");
|
|
12821
12821
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account: account2 }) => `${provider}/${account2}`, "keyOf");
|
|
12822
12822
|
|
|
12823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12823
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
|
|
12824
12824
|
var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
12825
12825
|
const chosen = chosenTextModel(env);
|
|
12826
12826
|
if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
|
|
@@ -12835,7 +12835,7 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
|
12835
12835
|
return (counts.get(before2) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
|
|
12836
12836
|
}, "meaningModel");
|
|
12837
12837
|
|
|
12838
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12838
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
12839
12839
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
12840
12840
|
try {
|
|
12841
12841
|
const text2 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -12914,7 +12914,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
12914
12914
|
}
|
|
12915
12915
|
}, "meaningLane");
|
|
12916
12916
|
|
|
12917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
12918
12918
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
12919
12919
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
12920
12920
|
if (choice === "off")
|
|
@@ -12926,9 +12926,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
12926
12926
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
12927
12927
|
try {
|
|
12928
12928
|
const warm = deps.embedders;
|
|
12929
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
12929
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-756VBE7E.js")).openRerankerProcess(model, directory, {
|
|
12930
12930
|
threads: defaultThreads()
|
|
12931
|
-
})) : await (await import("./rerank-
|
|
12931
|
+
})) : await (await import("./rerank-QHJZJK3Q.js")).openReranker(model, directory);
|
|
12932
12932
|
return {
|
|
12933
12933
|
model: model.id,
|
|
12934
12934
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -12948,7 +12948,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
12948
12948
|
};
|
|
12949
12949
|
}, "rerankLane");
|
|
12950
12950
|
|
|
12951
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12951
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/search/question-period.js
|
|
12952
12952
|
var DAY5 = 864e5;
|
|
12953
12953
|
var SPAN = { start: 0, end: 0 };
|
|
12954
12954
|
var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
|
|
@@ -13073,7 +13073,7 @@ var questionPeriod = /* @__PURE__ */ __name((text2, now, zone) => {
|
|
|
13073
13073
|
};
|
|
13074
13074
|
}, "questionPeriod");
|
|
13075
13075
|
|
|
13076
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13076
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
13077
13077
|
import { createHash as createHash11 } from "node:crypto";
|
|
13078
13078
|
var refOf2 = /* @__PURE__ */ __name((target) => target.ref ?? `document:${target.documentId}`, "refOf");
|
|
13079
13079
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
@@ -13081,7 +13081,7 @@ var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}
|
|
|
13081
13081
|
const directory = imageModelsDirectory(env);
|
|
13082
13082
|
if (!isImageModelInstalled(model, directory))
|
|
13083
13083
|
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 });
|
|
13084
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
13084
|
+
const { openPictureEmbedder } = await import("./embedder-UBRAXRDZ.js");
|
|
13085
13085
|
return openPictureEmbedder(model, directory);
|
|
13086
13086
|
}, "openPictureEmbedderFor");
|
|
13087
13087
|
var savePicture = /* @__PURE__ */ __name(async (store, target, bytes2, options = {}) => {
|
|
@@ -13102,7 +13102,7 @@ var savePicture = /* @__PURE__ */ __name(async (store, target, bytes2, options =
|
|
|
13102
13102
|
}, "savePicture");
|
|
13103
13103
|
var removePicture = /* @__PURE__ */ __name((store, target) => store.notes.removePicture(refOf2(target)), "removePicture");
|
|
13104
13104
|
|
|
13105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
13106
13106
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) => {
|
|
13107
13107
|
const metadata = note.frontMatter;
|
|
13108
13108
|
const account2 = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
@@ -13124,7 +13124,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) =>
|
|
|
13124
13124
|
};
|
|
13125
13125
|
}, "documentSource");
|
|
13126
13126
|
|
|
13127
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13127
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
|
|
13128
13128
|
var SECTION = "enrichment";
|
|
13129
13129
|
var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
|
|
13130
13130
|
var DEFAULT_BASE_URLS = {
|
|
@@ -13199,7 +13199,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
|
|
|
13199
13199
|
return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
|
|
13200
13200
|
}, "costOf");
|
|
13201
13201
|
|
|
13202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/enrichment.js
|
|
13203
13203
|
var ENRICH_PER_RUN = 600;
|
|
13204
13204
|
var BATCH = 20;
|
|
13205
13205
|
var CONCURRENCY = 4;
|
|
@@ -13463,7 +13463,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
|
|
|
13463
13463
|
};
|
|
13464
13464
|
}, "enrichmentState");
|
|
13465
13465
|
|
|
13466
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13466
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
13467
13467
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
13468
13468
|
let root;
|
|
13469
13469
|
try {
|
|
@@ -13490,7 +13490,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words4) => {
|
|
|
13490
13490
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
13491
13491
|
}, "titleTiers");
|
|
13492
13492
|
|
|
13493
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13493
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
13494
13494
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
13495
13495
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
13496
13496
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -13978,7 +13978,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account2, text2, { acco
|
|
|
13978
13978
|
};
|
|
13979
13979
|
}, "searchNotesOf");
|
|
13980
13980
|
|
|
13981
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13981
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
13982
13982
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
13983
13983
|
var iso = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
13984
13984
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -14096,7 +14096,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
14096
14096
|
};
|
|
14097
14097
|
}, "searchEvents");
|
|
14098
14098
|
|
|
14099
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14099
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
|
|
14100
14100
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
14101
14101
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
14102
14102
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -14126,7 +14126,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words4, anyWo
|
|
|
14126
14126
|
};
|
|
14127
14127
|
}, "searchBusiness");
|
|
14128
14128
|
|
|
14129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
14130
14130
|
var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
|
|
14131
14131
|
let before2 = Number.POSITIVE_INFINITY;
|
|
14132
14132
|
for (; ; ) {
|
|
@@ -14188,7 +14188,7 @@ var searchMeetingHits = /* @__PURE__ */ __name(async (store, query, request, opt
|
|
|
14188
14188
|
return { ...result, selection };
|
|
14189
14189
|
}, "searchMeetingHits");
|
|
14190
14190
|
|
|
14191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
14192
14192
|
var MOST_HITS_PER_MEETING = 3;
|
|
14193
14193
|
var PAGE_ROWS = 200;
|
|
14194
14194
|
var MOST_PAGES = 25;
|
|
@@ -14416,7 +14416,7 @@ var titleItem = /* @__PURE__ */ __name((account2, meeting, query) => ({
|
|
|
14416
14416
|
foundBy: ["title"]
|
|
14417
14417
|
}), "titleItem");
|
|
14418
14418
|
|
|
14419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/search-harder.js
|
|
14420
14420
|
var SECTION2 = "search_harder";
|
|
14421
14421
|
var HARDER_MODELS = {
|
|
14422
14422
|
anthropic: "claude-haiku-5-5",
|
|
@@ -14678,7 +14678,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
|
|
|
14678
14678
|
};
|
|
14679
14679
|
}, "reorderHarder");
|
|
14680
14680
|
|
|
14681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
14682
14682
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm", "business", "meetings"];
|
|
14683
14683
|
var refusal = /* @__PURE__ */ __name((error, text2) => {
|
|
14684
14684
|
const { reason, span } = error.details ?? {};
|
|
@@ -14757,6 +14757,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account2, asked, messenger
|
|
|
14757
14757
|
const discover = !request.exact && questionLookup(request.text) !== void 0;
|
|
14758
14758
|
const cosines = /* @__PURE__ */ new Map();
|
|
14759
14759
|
let coverage2;
|
|
14760
|
+
const meetingAccountsRead = /* @__PURE__ */ new Set();
|
|
14760
14761
|
let meetings;
|
|
14761
14762
|
const messagesOf = /* @__PURE__ */ __name(async (kind) => {
|
|
14762
14763
|
const given = scope?.[kind];
|
|
@@ -14976,6 +14977,8 @@ var searchAll = /* @__PURE__ */ __name(async (store, account2, asked, messenger
|
|
|
14976
14977
|
continue;
|
|
14977
14978
|
hasMore ||= found.hasMore;
|
|
14978
14979
|
meetings = found.coverage;
|
|
14980
|
+
for (const { id: id2 } of found.read)
|
|
14981
|
+
meetingAccountsRead.add(id2);
|
|
14979
14982
|
lists.push(found.items);
|
|
14980
14983
|
for (const { provider, account: account3 } of found.read)
|
|
14981
14984
|
accounts.push({ resource, provider, account: account3 });
|
|
@@ -14991,7 +14994,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account2, asked, messenger
|
|
|
14991
14994
|
} finally {
|
|
14992
14995
|
await embedders.close();
|
|
14993
14996
|
}
|
|
14994
|
-
let ordered = insidePeriodFirst(oneList(await
|
|
14997
|
+
let ordered = insidePeriodFirst(oneList(await withMeetingDocuments(store, lists, meetingAccountsRead), cosines), period);
|
|
14995
14998
|
let harder;
|
|
14996
14999
|
if (request.harder) {
|
|
14997
15000
|
const asking = {
|
|
@@ -15032,21 +15035,34 @@ var searchAll = /* @__PURE__ */ __name(async (store, account2, asked, messenger
|
|
|
15032
15035
|
...harder === void 0 ? {} : { harder }
|
|
15033
15036
|
};
|
|
15034
15037
|
}, "searchAll");
|
|
15035
|
-
var
|
|
15036
|
-
|
|
15037
|
-
if (!meetings.size)
|
|
15038
|
+
var withMeetingDocuments = /* @__PURE__ */ __name(async (store, lists, read) => {
|
|
15039
|
+
if (!read.size)
|
|
15038
15040
|
return lists;
|
|
15039
15041
|
const documentOf = /* @__PURE__ */ __name((item2) => item2.kind === "document" && /^document:\d+$/.test(item2.ref) ? Number(item2.ref.slice("document:".length)) : void 0, "documentOf");
|
|
15040
15042
|
const documents = lists.flat().flatMap((item2) => documentOf(item2) ?? []);
|
|
15041
|
-
|
|
15042
|
-
|
|
15043
|
+
if (!documents.length)
|
|
15044
|
+
return lists;
|
|
15045
|
+
const owners = await store.meetings.documentMeetings(documents);
|
|
15046
|
+
if (!owners.size)
|
|
15043
15047
|
return lists;
|
|
15044
|
-
|
|
15048
|
+
const meetings = new Set(lists.flat().flatMap((item2) => item2.kind === "meeting" ? [item2.meetingId] : []));
|
|
15049
|
+
return lists.map((list3) => list3.flatMap((item2) => {
|
|
15045
15050
|
const document = documentOf(item2);
|
|
15046
|
-
const
|
|
15047
|
-
|
|
15051
|
+
const owner = document === void 0 ? void 0 : owners.get(document);
|
|
15052
|
+
if (owner === void 0 || item2.kind === "meeting")
|
|
15053
|
+
return [item2];
|
|
15054
|
+
if (owner.role === "transcript" && meetings.has(owner.meetingId))
|
|
15055
|
+
return [];
|
|
15056
|
+
if (!read.has(owner.accountId))
|
|
15057
|
+
return [item2];
|
|
15058
|
+
return [
|
|
15059
|
+
{
|
|
15060
|
+
...item2,
|
|
15061
|
+
meeting: formatMeetingReference({ type: "meeting", accountId: owner.accountId, meetingId: owner.meetingId })
|
|
15062
|
+
}
|
|
15063
|
+
];
|
|
15048
15064
|
}));
|
|
15049
|
-
}, "
|
|
15065
|
+
}, "withMeetingDocuments");
|
|
15050
15066
|
var hitKey = /* @__PURE__ */ __name((item2) => item2.kind === "meeting" ? `${item2.ref}\0${item2.scope}\0${item2.id}` : item2.ref, "hitKey");
|
|
15051
15067
|
var oneList = /* @__PURE__ */ __name((lists, cosines) => {
|
|
15052
15068
|
const place = /* @__PURE__ */ new Map();
|
|
@@ -15075,7 +15091,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
|
|
|
15075
15091
|
return ordered.map((item2, rank) => ({ item: item2, score: 1 - rank / PERIOD_DEPTH + (inside2(item2) ? PERIOD_BOOST : 0) })).sort((a, b) => b.score - a.score).map(({ item: item2 }) => item2);
|
|
15076
15092
|
}, "insidePeriodFirst");
|
|
15077
15093
|
|
|
15078
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15094
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
15079
15095
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
15080
15096
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
15081
15097
|
var DEFAULT_BACKEND = "both";
|
|
@@ -15264,7 +15280,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
15264
15280
|
return { report, sources };
|
|
15265
15281
|
}, "searchServer");
|
|
15266
15282
|
|
|
15267
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15283
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
15268
15284
|
var DELETE_AT_ONCE = 10;
|
|
15269
15285
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
15270
15286
|
const files = fileLinks(attachments);
|
|
@@ -15704,7 +15720,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
15704
15720
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first]} needs a --photo or --file`);
|
|
15705
15721
|
}, "checkMediaOptions");
|
|
15706
15722
|
|
|
15707
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
15708
15724
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
15709
15725
|
var RULES2 = {
|
|
15710
15726
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -15719,7 +15735,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
|
|
|
15719
15735
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
15720
15736
|
}), "classifyChannel");
|
|
15721
15737
|
|
|
15722
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15738
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
15723
15739
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
15724
15740
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
15725
15741
|
const store = await deps.store();
|
|
@@ -15805,7 +15821,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
15805
15821
|
};
|
|
15806
15822
|
}, "metadataService");
|
|
15807
15823
|
|
|
15808
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15824
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
15809
15825
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
15810
15826
|
var LINK2 = /https?:\/\/\S+/i;
|
|
15811
15827
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -15993,7 +16009,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
15993
16009
|
}, "nextPoint");
|
|
15994
16010
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
15995
16011
|
|
|
15996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16012
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
15997
16013
|
import { existsSync, readFileSync } from "node:fs";
|
|
15998
16014
|
import { join as join11 } from "node:path";
|
|
15999
16015
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -16136,7 +16152,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
16136
16152
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
16137
16153
|
}, "assign");
|
|
16138
16154
|
|
|
16139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16155
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
16140
16156
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
16141
16157
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
16142
16158
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -16173,7 +16189,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
16173
16189
|
return { chatId, rows, notes };
|
|
16174
16190
|
}, "moderateWith");
|
|
16175
16191
|
|
|
16176
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16192
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
16177
16193
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
16178
16194
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
16179
16195
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -16251,7 +16267,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
16251
16267
|
}, "removePerson")
|
|
16252
16268
|
}), "moderatorOf");
|
|
16253
16269
|
|
|
16254
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16270
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
|
|
16255
16271
|
var SCAN = 1e3;
|
|
16256
16272
|
var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { limit = 10, since, until } = {}) => {
|
|
16257
16273
|
const byId2 = new Map(accounts.map((one2) => [one2.id, one2]));
|
|
@@ -16303,7 +16319,7 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
|
|
|
16303
16319
|
return { items, total: newest.length, hasMore: cut || newest.length > limit };
|
|
16304
16320
|
}, "personMeetings");
|
|
16305
16321
|
|
|
16306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16322
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
16307
16323
|
var CONTEXT_MESSAGES2 = 10;
|
|
16308
16324
|
var CONTEXT_BYTES = 64 * 1024;
|
|
16309
16325
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -16609,10 +16625,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
16609
16625
|
};
|
|
16610
16626
|
}, "personMessages");
|
|
16611
16627
|
|
|
16612
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
16613
16629
|
import { createHash as createHash12 } from "node:crypto";
|
|
16614
16630
|
|
|
16615
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16631
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
16616
16632
|
var missing3 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
16617
16633
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
16618
16634
|
const parsed = parseMeetingReference(reference);
|
|
@@ -16660,7 +16676,7 @@ var resolveMeetingReference = /* @__PURE__ */ __name(async (store, accountId, re
|
|
|
16660
16676
|
};
|
|
16661
16677
|
}, "resolveMeetingReference");
|
|
16662
16678
|
|
|
16663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16679
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
16664
16680
|
var hash = /* @__PURE__ */ __name((value) => createHash12("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
16665
16681
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
16666
16682
|
if (signal?.aborted)
|
|
@@ -16859,7 +16875,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
16859
16875
|
return { ...packet, fingerprint: hash(packet) };
|
|
16860
16876
|
}, "readMeetingEvidence");
|
|
16861
16877
|
|
|
16862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
16863
16879
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
16864
16880
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
16865
16881
|
const requestedAccounts = options.accountIds;
|
|
@@ -16958,7 +16974,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
16958
16974
|
};
|
|
16959
16975
|
}, "personMeetingContext");
|
|
16960
16976
|
|
|
16961
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16977
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
16962
16978
|
var PREPARE_BYTES = 96 * 1024;
|
|
16963
16979
|
var MEETINGS = 5;
|
|
16964
16980
|
var CUES = 3;
|
|
@@ -17081,7 +17097,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
17081
17097
|
}
|
|
17082
17098
|
}, "meetingsOf");
|
|
17083
17099
|
|
|
17084
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
17085
17101
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
17086
17102
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
17087
17103
|
const held = await storeIfOpen(deps);
|
|
@@ -17151,7 +17167,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
17151
17167
|
complete: false
|
|
17152
17168
|
})), "quiet");
|
|
17153
17169
|
|
|
17154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17170
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
17155
17171
|
var TIMELINE_ITEMS = 50;
|
|
17156
17172
|
var TIMELINE_MAX = 500;
|
|
17157
17173
|
var SCOPES = ["personal", "work"];
|
|
@@ -17213,7 +17229,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
17213
17229
|
};
|
|
17214
17230
|
}, "personTimeline");
|
|
17215
17231
|
|
|
17216
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17232
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
17217
17233
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
17218
17234
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
17219
17235
|
const held = await storeIfOpen(deps);
|
|
@@ -17478,7 +17494,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
17478
17494
|
return rest;
|
|
17479
17495
|
}, "withoutPhone");
|
|
17480
17496
|
|
|
17481
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17497
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
17482
17498
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
17483
17499
|
id: note.id,
|
|
17484
17500
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -17522,7 +17538,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
17522
17538
|
};
|
|
17523
17539
|
}, "privatePeopleService");
|
|
17524
17540
|
|
|
17525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17541
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
17526
17542
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
17527
17543
|
total: 0,
|
|
17528
17544
|
population: 0,
|
|
@@ -17778,7 +17794,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
17778
17794
|
}, "evidence")
|
|
17779
17795
|
}), "rankingsService");
|
|
17780
17796
|
|
|
17781
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17797
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
17782
17798
|
var FIELDS = ["date", "chat", "kind", "muted"];
|
|
17783
17799
|
var WAITING_TAIL = 100;
|
|
17784
17800
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -17912,7 +17928,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
17912
17928
|
};
|
|
17913
17929
|
}, "replyStatsService");
|
|
17914
17930
|
|
|
17915
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
17916
17932
|
var savedSearchItem = /* @__PURE__ */ __name((one2) => ({
|
|
17917
17933
|
id: one2.id,
|
|
17918
17934
|
name: one2.name,
|
|
@@ -18038,7 +18054,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
18038
18054
|
};
|
|
18039
18055
|
}, "searchesService");
|
|
18040
18056
|
|
|
18041
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18057
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
18042
18058
|
var TAGGING_QUERY = {
|
|
18043
18059
|
entity: "tagging",
|
|
18044
18060
|
backend: "sql",
|
|
@@ -18122,7 +18138,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
18122
18138
|
};
|
|
18123
18139
|
}, "tagsService");
|
|
18124
18140
|
|
|
18125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18141
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
18126
18142
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
18127
18143
|
var PERIOD_FIELD = "created";
|
|
18128
18144
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -18253,7 +18269,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
18253
18269
|
}));
|
|
18254
18270
|
}, "meetingNames");
|
|
18255
18271
|
|
|
18256
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18272
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
18257
18273
|
var TASK_QUERY = {
|
|
18258
18274
|
entity: "task",
|
|
18259
18275
|
backend: "sql",
|
|
@@ -18753,7 +18769,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account2, task2) => {
|
|
|
18753
18769
|
};
|
|
18754
18770
|
}, "taskView");
|
|
18755
18771
|
|
|
18756
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18772
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
18757
18773
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
18758
18774
|
const set = [closed, pinned, hidden].filter((one2) => one2 !== void 0).length;
|
|
18759
18775
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -18952,7 +18968,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
18952
18968
|
};
|
|
18953
18969
|
}, "topicsService");
|
|
18954
18970
|
|
|
18955
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/crm/sync.js
|
|
18956
18972
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
18957
18973
|
var GAPS = "crm:gaps";
|
|
18958
18974
|
var crmGapsOf = /* @__PURE__ */ __name(async (store, account2) => {
|
|
@@ -18964,7 +18980,7 @@ var crmGapsOf = /* @__PURE__ */ __name(async (store, account2) => {
|
|
|
18964
18980
|
}
|
|
18965
18981
|
}, "crmGapsOf");
|
|
18966
18982
|
|
|
18967
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18983
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/crm/writer.js
|
|
18968
18984
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
18969
18985
|
var CRM_WRITE_DEFAULTS = {
|
|
18970
18986
|
"deals.delete": "ask",
|
|
@@ -18972,10 +18988,10 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
18972
18988
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
18973
18989
|
};
|
|
18974
18990
|
|
|
18975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
18976
18992
|
import { randomUUID as randomUUID5 } from "node:crypto";
|
|
18977
18993
|
|
|
18978
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18994
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
18979
18995
|
import { mkdirSync as mkdirSync3, readFileSync as readFileSync2, renameSync, writeFileSync as writeFileSync2 } from "node:fs";
|
|
18980
18996
|
import { dirname as dirname4, join as join12 } from "node:path";
|
|
18981
18997
|
var MOST_DEADLINES = 50;
|
|
@@ -19059,11 +19075,11 @@ var FloodMemory = class {
|
|
|
19059
19075
|
}
|
|
19060
19076
|
};
|
|
19061
19077
|
|
|
19062
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19078
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
19063
19079
|
import { appendFileSync, mkdirSync as mkdirSync5, readFileSync as readFileSync3 } from "node:fs";
|
|
19064
19080
|
import { dirname as dirname6, join as join13 } from "node:path";
|
|
19065
19081
|
|
|
19066
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19082
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
19067
19083
|
import { closeSync, mkdirSync as mkdirSync4, openSync, statSync, unlinkSync } from "node:fs";
|
|
19068
19084
|
import { dirname as dirname5 } from "node:path";
|
|
19069
19085
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -19130,7 +19146,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
19130
19146
|
}
|
|
19131
19147
|
}, "lockTime");
|
|
19132
19148
|
|
|
19133
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19149
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
19134
19150
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join13(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
19135
19151
|
var SendJournal = class {
|
|
19136
19152
|
static {
|
|
@@ -19207,7 +19223,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
19207
19223
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
19208
19224
|
}, "withSendId");
|
|
19209
19225
|
|
|
19210
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19226
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
19211
19227
|
import { existsSync as existsSync2, readFileSync as readFileSync4, rmSync } from "node:fs";
|
|
19212
19228
|
import { join as join14 } from "node:path";
|
|
19213
19229
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join14(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -19319,7 +19335,7 @@ var RecipientList = class {
|
|
|
19319
19335
|
}
|
|
19320
19336
|
};
|
|
19321
19337
|
|
|
19322
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
19323
19339
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
19324
19340
|
var READS = /* @__PURE__ */ new Set([
|
|
19325
19341
|
"attachments.extract",
|
|
@@ -19514,7 +19530,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
19514
19530
|
}), "guardFor");
|
|
19515
19531
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
19516
19532
|
|
|
19517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19533
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/business-context.js
|
|
19518
19534
|
var SECTION_LIMIT = 20;
|
|
19519
19535
|
var STORE_PAGE = 500;
|
|
19520
19536
|
var sectionOf = /* @__PURE__ */ __name((all, limit, next, { more = false, total = all.length, newest = false } = {}) => {
|
|
@@ -19638,7 +19654,7 @@ var coverageFor = /* @__PURE__ */ __name(async (store, base, scope) => {
|
|
|
19638
19654
|
}, "coverageFor");
|
|
19639
19655
|
var newestFirst2 = /* @__PURE__ */ __name((a, b) => (b.at ?? "").localeCompare(a.at ?? "") || a.ref.localeCompare(b.ref), "newestFirst");
|
|
19640
19656
|
|
|
19641
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/communications.js
|
|
19642
19658
|
var MAIL_ROWS = 500;
|
|
19643
19659
|
var EVENT_ROWS2 = 1e3;
|
|
19644
19660
|
var RECORDED_ROWS = 100;
|
|
@@ -19784,7 +19800,7 @@ var communicationsOf = /* @__PURE__ */ __name(async (store, asked, scope, { sinc
|
|
|
19784
19800
|
};
|
|
19785
19801
|
}, "communicationsOf");
|
|
19786
19802
|
|
|
19787
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19803
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/money-context.js
|
|
19788
19804
|
var invoiceLine = /* @__PURE__ */ __name((invoice, linkedBy) => ({
|
|
19789
19805
|
ref: invoice.ref,
|
|
19790
19806
|
title: invoice.title,
|
|
@@ -19856,7 +19872,7 @@ var moneyOf = /* @__PURE__ */ __name((rows, limit, next, complete) => {
|
|
|
19856
19872
|
};
|
|
19857
19873
|
}, "moneyOf");
|
|
19858
19874
|
|
|
19859
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19875
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/organization-context.js
|
|
19860
19876
|
var dealLine = /* @__PURE__ */ __name((deal) => ({
|
|
19861
19877
|
ref: deal.ref,
|
|
19862
19878
|
kind: deal.kind,
|
|
@@ -19999,7 +20015,7 @@ var organizationContext = /* @__PURE__ */ __name(async (store, reference, { acco
|
|
|
19999
20015
|
};
|
|
20000
20016
|
}, "organizationContext");
|
|
20001
20017
|
|
|
20002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/deal-context.js
|
|
20003
20019
|
var DAY6 = 864e5;
|
|
20004
20020
|
var dealContext = /* @__PURE__ */ __name(async (store, reference, { accounts, limit = SECTION_LIMIT, now = Date.now(), deniedKinds = [] } = {}) => {
|
|
20005
20021
|
const scope = scopeOf4(accounts, deniedKinds);
|
|
@@ -20124,7 +20140,7 @@ var dealBrief = /* @__PURE__ */ __name((context2) => ({
|
|
|
20124
20140
|
notRead: context2.coverage.notRead
|
|
20125
20141
|
}), "dealBrief");
|
|
20126
20142
|
|
|
20127
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
20128
20144
|
import { createHash as createHash13, randomUUID as randomUUID6 } from "node:crypto";
|
|
20129
20145
|
var hash2 = /* @__PURE__ */ __name((value) => createHash13("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
20130
20146
|
var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -20198,7 +20214,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
20198
20214
|
return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
|
|
20199
20215
|
}, "prepareEvidencePacket");
|
|
20200
20216
|
|
|
20201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20217
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
20202
20218
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account2, { chat, limit, before: before2 }, messenger = {}) => {
|
|
20203
20219
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
20204
20220
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -20218,7 +20234,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account2, { chat,
|
|
|
20218
20234
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
20219
20235
|
}, "readEvidencePacket");
|
|
20220
20236
|
|
|
20221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20237
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-links.js
|
|
20222
20238
|
var readMeetingLinks = /* @__PURE__ */ __name(async (store, request) => {
|
|
20223
20239
|
const { maxMessages, url, ...selecting } = request;
|
|
20224
20240
|
const { input, selection } = await resolveMeetingSelection(store, selecting);
|
|
@@ -20257,10 +20273,10 @@ var readMeetingLinks = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
20257
20273
|
};
|
|
20258
20274
|
}, "readMeetingLinks");
|
|
20259
20275
|
|
|
20260
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20276
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidates.js
|
|
20261
20277
|
import { createHash as createHash14 } from "node:crypto";
|
|
20262
20278
|
|
|
20263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-validation.js
|
|
20264
20280
|
function invalid5(field, response = false) {
|
|
20265
20281
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid project candidate ${field}`);
|
|
20266
20282
|
}
|
|
@@ -20379,7 +20395,7 @@ var candidateCatalog = /* @__PURE__ */ __name((catalog, limits) => {
|
|
|
20379
20395
|
}
|
|
20380
20396
|
}, "candidateCatalog");
|
|
20381
20397
|
|
|
20382
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidates.js
|
|
20383
20399
|
var createMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
20384
20400
|
const fixed = snapshotMeetingScope(scope);
|
|
20385
20401
|
if (!Number.isSafeInteger(accountId) || accountId < 1 || typeof ports?.vocabulary?.vocabulary !== "function")
|
|
@@ -20432,7 +20448,7 @@ var createMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, account
|
|
|
20432
20448
|
};
|
|
20433
20449
|
}, "createMeetingProjectCandidateReader");
|
|
20434
20450
|
|
|
20435
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20451
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
20436
20452
|
import { createHash as createHash15 } from "node:crypto";
|
|
20437
20453
|
var scopeKeys = [
|
|
20438
20454
|
"accountId",
|
|
@@ -20567,7 +20583,7 @@ var readMeetingProjectDiscovery = /* @__PURE__ */ __name(async (ports, projectNa
|
|
|
20567
20583
|
};
|
|
20568
20584
|
}, "readMeetingProjectDiscovery");
|
|
20569
20585
|
|
|
20570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-review.js
|
|
20571
20587
|
var readMeetingReview = /* @__PURE__ */ __name(async (store, request) => {
|
|
20572
20588
|
const { limit, ...selecting } = request;
|
|
20573
20589
|
const { input, selection } = await resolveMeetingSelection(store, selecting);
|
|
@@ -20575,7 +20591,7 @@ var readMeetingReview = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
20575
20591
|
return { ...review, selection };
|
|
20576
20592
|
}, "readMeetingReview");
|
|
20577
20593
|
|
|
20578
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20594
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-searches.js
|
|
20579
20595
|
var KIND = ["meetings-search"];
|
|
20580
20596
|
var meetingSearchesService = /* @__PURE__ */ __name((searches) => {
|
|
20581
20597
|
const found = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20605,7 +20621,7 @@ var meetingSearchesService = /* @__PURE__ */ __name((searches) => {
|
|
|
20605
20621
|
};
|
|
20606
20622
|
}, "meetingSearchesService");
|
|
20607
20623
|
|
|
20608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-stats.js
|
|
20609
20625
|
var readMeetingStats = /* @__PURE__ */ __name(async (store, request) => {
|
|
20610
20626
|
const { timeZone, maxRows, ...selecting } = request;
|
|
20611
20627
|
const { input, selection } = await resolveMeetingSelection(store, selecting);
|
|
@@ -20628,7 +20644,7 @@ var readMeetingCounts = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
20628
20644
|
return { ...counts, selection };
|
|
20629
20645
|
}, "readMeetingCounts");
|
|
20630
20646
|
|
|
20631
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/person-business.js
|
|
20632
20648
|
var personBusiness = /* @__PURE__ */ __name(async (store, uid, { limit = SECTION_LIMIT, scope = scopeOf4(void 0) } = {}) => {
|
|
20633
20649
|
const ref = `person:${uid}`;
|
|
20634
20650
|
const { edges, full } = await edgesOf(store, ref, scope);
|
|
@@ -20686,7 +20702,7 @@ var canonicalPersonContext = /* @__PURE__ */ __name(async (store, reference, { a
|
|
|
20686
20702
|
};
|
|
20687
20703
|
}, "canonicalPersonContext");
|
|
20688
20704
|
|
|
20689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20705
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
|
|
20690
20706
|
import { createHash as createHash16 } from "node:crypto";
|
|
20691
20707
|
import { existsSync as existsSync3 } from "node:fs";
|
|
20692
20708
|
var useTextModel = /* @__PURE__ */ __name(async (id2, { env, command }) => {
|
|
@@ -20817,7 +20833,7 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id2, payload, { env, fetc
|
|
|
20817
20833
|
return { ...checked2.output, custom: true };
|
|
20818
20834
|
}, "addCustomTextModel");
|
|
20819
20835
|
|
|
20820
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/account-groups.js
|
|
20821
20837
|
var SCOPES2 = ["personal", "work"];
|
|
20822
20838
|
var scopeOf5 = /* @__PURE__ */ __name((scope) => {
|
|
20823
20839
|
if (!SCOPES2.includes(scope))
|
|
@@ -20939,7 +20955,7 @@ var setChatScope = /* @__PURE__ */ __name(async (at, change) => {
|
|
|
20939
20955
|
return { ...key, chat: change.chat, own: scope, scope: effective };
|
|
20940
20956
|
}, "setChatScope");
|
|
20941
20957
|
|
|
20942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/group-guard.js
|
|
20943
20959
|
var refOf3 = /* @__PURE__ */ __name((item2) => typeof item2 === "string" ? item2 : typeof item2 === "object" && item2 !== null && "ref" in item2 ? item2.ref : void 0, "refOf");
|
|
20944
20960
|
var groupGuardOf = /* @__PURE__ */ __name(async (store, app, env) => {
|
|
20945
20961
|
const group = groupLockOf(app, env);
|
|
@@ -21050,7 +21066,7 @@ var lockedRegistry = /* @__PURE__ */ __name((registry, guard) => {
|
|
|
21050
21066
|
};
|
|
21051
21067
|
}, "lockedRegistry");
|
|
21052
21068
|
|
|
21053
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21069
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-hit-context.js
|
|
21054
21070
|
import { createHash as createHash17 } from "node:crypto";
|
|
21055
21071
|
var contextCue = /* @__PURE__ */ __name((cue) => ({
|
|
21056
21072
|
ref: cue.reference,
|
|
@@ -21168,7 +21184,7 @@ var readMeetingHitContext = /* @__PURE__ */ __name(async (store, accountId, refe
|
|
|
21168
21184
|
return { ...packet, fingerprint: createHash17("sha256").update(JSON.stringify(packet)).digest("hex") };
|
|
21169
21185
|
}, "readMeetingHitContext");
|
|
21170
21186
|
|
|
21171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-passage-format.js
|
|
21172
21188
|
var visible = /* @__PURE__ */ __name((text2) => text2.replace(/[\p{Cc}\p{Cf}]/gu, (value) => value === "\n" || value === " " ? value : `\\u{${value.codePointAt(0)?.toString(16)}}`), "visible");
|
|
21173
21189
|
var markdown = /* @__PURE__ */ __name((text2) => visible(text2).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replace(/[\\`*_[\]#|~]/g, "\\$&"), "markdown");
|
|
21174
21190
|
var timestamp = /* @__PURE__ */ __name((ms) => {
|
|
@@ -21245,7 +21261,7 @@ var readMeetingPassage = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
21245
21261
|
return { packet, content };
|
|
21246
21262
|
}, "readMeetingPassage");
|
|
21247
21263
|
|
|
21248
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-batch.js
|
|
21249
21265
|
var createMeetingBatchReader = /* @__PURE__ */ __name((store, accountId) => {
|
|
21250
21266
|
if (!Number.isSafeInteger(accountId) || accountId < 1)
|
|
21251
21267
|
throw new CliError("validation_error", "choose a positive meeting account");
|
|
@@ -21259,10 +21275,10 @@ var createMeetingBatchReader = /* @__PURE__ */ __name((store, accountId) => {
|
|
|
21259
21275
|
};
|
|
21260
21276
|
}, "createMeetingBatchReader");
|
|
21261
21277
|
|
|
21262
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
|
|
21263
21279
|
import { createHash as createHash18 } from "node:crypto";
|
|
21264
21280
|
|
|
21265
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-semantic.js
|
|
21266
21282
|
var positive3 = /* @__PURE__ */ __name((value, name, max) => {
|
|
21267
21283
|
if (!Number.isSafeInteger(value) || value < 1 || value > max)
|
|
21268
21284
|
throw new CliError("validation_error", `Invalid ${name}`);
|
|
@@ -21414,7 +21430,7 @@ var applyMeetingEmbedding = /* @__PURE__ */ __name(async (store, accountId, embe
|
|
|
21414
21430
|
};
|
|
21415
21431
|
}, "applyMeetingEmbedding");
|
|
21416
21432
|
|
|
21417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
|
|
21418
21434
|
var DEPTH = 200;
|
|
21419
21435
|
var cursorOf3 = /* @__PURE__ */ __name((value, key) => {
|
|
21420
21436
|
if (value === void 0)
|
|
@@ -21551,7 +21567,7 @@ var searchMeetingsCombined = /* @__PURE__ */ __name(async (store, embedder, type
|
|
|
21551
21567
|
};
|
|
21552
21568
|
}, "searchMeetingsCombined");
|
|
21553
21569
|
|
|
21554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-context.js
|
|
21555
21571
|
var meetingReferences = /* @__PURE__ */ __name((values) => values.map((value) => formatMeetingReference(parseMeetingReference(value))), "meetingReferences");
|
|
21556
21572
|
var checkCancelled = /* @__PURE__ */ __name((signal) => {
|
|
21557
21573
|
if (!signal?.aborted)
|
|
@@ -21658,7 +21674,7 @@ var createMeetingContextService = /* @__PURE__ */ __name(async (store, input, op
|
|
|
21658
21674
|
};
|
|
21659
21675
|
}, "createMeetingContextService");
|
|
21660
21676
|
|
|
21661
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-model.js
|
|
21662
21678
|
var integer2 = /* @__PURE__ */ __name((value, name, max) => {
|
|
21663
21679
|
if (!Number.isSafeInteger(value) || value < 1 || value > max)
|
|
21664
21680
|
throw new CliError("validation_error", `Invalid ${name}`);
|
|
@@ -21885,7 +21901,7 @@ var openMeetingEmbedder = /* @__PURE__ */ __name(async (choice, options = {}) =>
|
|
|
21885
21901
|
};
|
|
21886
21902
|
}, "openMeetingEmbedder");
|
|
21887
21903
|
|
|
21888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21904
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
21889
21905
|
var communicationFields = {
|
|
21890
21906
|
sources: pipe(array(strictObject({
|
|
21891
21907
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -21917,7 +21933,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
21917
21933
|
return { ...input, after, before: before2 };
|
|
21918
21934
|
}, "communicationRequest");
|
|
21919
21935
|
|
|
21920
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
21921
21937
|
var MEETING_PREPARATION_LIMITS = {
|
|
21922
21938
|
meetings: { min: 1, max: 20, default: 5 },
|
|
21923
21939
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -22003,7 +22019,7 @@ var preparationRequest = /* @__PURE__ */ __name((accountId, externalId, original
|
|
|
22003
22019
|
return { ...input, history };
|
|
22004
22020
|
}, "preparationRequest");
|
|
22005
22021
|
|
|
22006
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-communications-preparation.js
|
|
22007
22023
|
var readPreparationCommunications = /* @__PURE__ */ __name(async (plan, signal) => {
|
|
22008
22024
|
const section = {
|
|
22009
22025
|
readUsage: plan.reader.usage(),
|
|
@@ -22108,7 +22124,7 @@ var appendPreparationCommunications = /* @__PURE__ */ __name((result, read) => {
|
|
|
22108
22124
|
result.knowledge.coverage.otherSources = "see-communications";
|
|
22109
22125
|
}, "appendPreparationCommunications");
|
|
22110
22126
|
|
|
22111
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22127
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
22112
22128
|
var captureCommunicationSelections = /* @__PURE__ */ __name((port) => {
|
|
22113
22129
|
if (port === void 0)
|
|
22114
22130
|
return void 0;
|
|
@@ -22213,7 +22229,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
22213
22229
|
}
|
|
22214
22230
|
}, "validatePreparationCommunications");
|
|
22215
22231
|
|
|
22216
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22232
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-knowledge-preparation.js
|
|
22217
22233
|
var invalid7 = /* @__PURE__ */ __name(() => {
|
|
22218
22234
|
throw new CliError("invalid_response", "Preparation knowledge returned an invalid selection");
|
|
22219
22235
|
}, "invalid");
|
|
@@ -22282,7 +22298,7 @@ var appendKnowledgePreparation = /* @__PURE__ */ __name(async (store, result, in
|
|
|
22282
22298
|
}
|
|
22283
22299
|
}, "appendKnowledgePreparation");
|
|
22284
22300
|
|
|
22285
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22301
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-notes-preparation.js
|
|
22286
22302
|
var invalid8 = /* @__PURE__ */ __name(() => {
|
|
22287
22303
|
throw new CliError("invalid_response", "Preparation notes returned an invalid selection");
|
|
22288
22304
|
}, "invalid");
|
|
@@ -22356,7 +22372,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
22356
22372
|
}
|
|
22357
22373
|
}, "appendNotesPreparation");
|
|
22358
22374
|
|
|
22359
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22375
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-project-preparation.js
|
|
22360
22376
|
var PAGE_LIMIT = 4;
|
|
22361
22377
|
var size2 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
22362
22378
|
var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, input) => {
|
|
@@ -22406,7 +22422,7 @@ var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, inpu
|
|
|
22406
22422
|
}
|
|
22407
22423
|
}, "appendProjectPreparation");
|
|
22408
22424
|
|
|
22409
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22425
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-related-preparation.js
|
|
22410
22426
|
var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, input) => {
|
|
22411
22427
|
if (!result.series || !result.items.length || result.coverage.outputLimited)
|
|
22412
22428
|
return;
|
|
@@ -22478,7 +22494,7 @@ var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, inpu
|
|
|
22478
22494
|
}
|
|
22479
22495
|
}, "appendRelatedPreparation");
|
|
22480
22496
|
|
|
22481
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22497
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-preparation.js
|
|
22482
22498
|
var size3 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
22483
22499
|
var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
22484
22500
|
const fixed = snapshotMeetingScope(scope);
|
|
@@ -22616,7 +22632,7 @@ var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId,
|
|
|
22616
22632
|
};
|
|
22617
22633
|
}, "createMeetingPreparationService");
|
|
22618
22634
|
|
|
22619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-task-proposal.js
|
|
22620
22636
|
import { createHash as createHash19 } from "node:crypto";
|
|
22621
22637
|
var proposeMeetingTask = /* @__PURE__ */ __name(async (store, accountId, reference, kind) => {
|
|
22622
22638
|
if (!TASK_KINDS.includes(kind))
|
|
@@ -22636,7 +22652,7 @@ var proposeMeetingTask = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
22636
22652
|
};
|
|
22637
22653
|
}, "proposeMeetingTask");
|
|
22638
22654
|
|
|
22639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22655
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-tasks.js
|
|
22640
22656
|
var accountSnapshot = /* @__PURE__ */ __name((key) => {
|
|
22641
22657
|
const { provider, account: account2, scope } = key;
|
|
22642
22658
|
if (!provider.trim() || provider.includes(":") || !account2.trim())
|
|
@@ -22699,7 +22715,7 @@ var readMeetingTask = /* @__PURE__ */ __name(async (store, account2, id2) => {
|
|
|
22699
22715
|
}
|
|
22700
22716
|
}, "readMeetingTask");
|
|
22701
22717
|
|
|
22702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22718
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
22703
22719
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
22704
22720
|
const installer = ports.installer();
|
|
22705
22721
|
const argv = updateCommand(installer, packageName);
|
|
@@ -22764,7 +22780,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
22764
22780
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
22765
22781
|
}, "dayAfter");
|
|
22766
22782
|
|
|
22767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22783
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposal-tasks.js
|
|
22768
22784
|
var proposalSource = /* @__PURE__ */ __name((id2) => `proposed-action:${id2}`, "proposalSource");
|
|
22769
22785
|
var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
22770
22786
|
const proposal = await store.proposedActions.get(id2);
|
|
@@ -22787,7 +22803,7 @@ var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
|
22787
22803
|
return { proposal: await store.proposedActions.approve(proposal.id, by, { task: task2.id }), task: task2 };
|
|
22788
22804
|
}, "approveAsTask");
|
|
22789
22805
|
|
|
22790
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/ids.js
|
|
22791
22807
|
var MAX_IDS = 500;
|
|
22792
22808
|
var refuse = /* @__PURE__ */ __name((message) => {
|
|
22793
22809
|
throw new CliError("validation_error", message, { reason: "proposal.ids" });
|
|
@@ -22829,7 +22845,7 @@ var parseProposalIds = /* @__PURE__ */ __name((text2) => {
|
|
|
22829
22845
|
return ids;
|
|
22830
22846
|
}, "parseProposalIds");
|
|
22831
22847
|
|
|
22832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/shared.js
|
|
22833
22849
|
var proposerOfAuthor = /* @__PURE__ */ __name((author) => {
|
|
22834
22850
|
if (author.type === "person")
|
|
22835
22851
|
return { type: "person", id: author.id };
|
|
@@ -22902,7 +22918,7 @@ var reviewedKind = /* @__PURE__ */ __name((spec) => ({
|
|
|
22902
22918
|
}, "decide")
|
|
22903
22919
|
}), "reviewedKind");
|
|
22904
22920
|
|
|
22905
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22921
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/findings.js
|
|
22906
22922
|
var FACT_SUMMARIES = {
|
|
22907
22923
|
fact: /* @__PURE__ */ __name((finding) => finding.statement, "fact"),
|
|
22908
22924
|
task: /* @__PURE__ */ __name((finding) => finding.title, "task"),
|
|
@@ -22977,7 +22993,7 @@ var findingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
22977
22993
|
};
|
|
22978
22994
|
}, "findingsKind");
|
|
22979
22995
|
|
|
22980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/organization.js
|
|
22981
22997
|
var ORGANIZATION_ADD_KIND = "organization_add";
|
|
22982
22998
|
var ORGANIZATION_RENAME_KIND = "organization_rename";
|
|
22983
22999
|
var rowOf2 = /* @__PURE__ */ __name((action2) => {
|
|
@@ -23033,7 +23049,7 @@ var organizationKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23033
23049
|
}, "decide")
|
|
23034
23050
|
}), "organizationKind");
|
|
23035
23051
|
|
|
23036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23052
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/action.js
|
|
23037
23053
|
var rowOf3 = /* @__PURE__ */ __name((action2) => ({
|
|
23038
23054
|
id: action2.id,
|
|
23039
23055
|
kind: "action",
|
|
@@ -23073,7 +23089,7 @@ var actionKind = /* @__PURE__ */ __name((store, claimed) => ({
|
|
|
23073
23089
|
}, "decide")
|
|
23074
23090
|
}), "actionKind");
|
|
23075
23091
|
|
|
23076
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23092
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/contracts.js
|
|
23077
23093
|
var contractKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
23078
23094
|
type: "contract",
|
|
23079
23095
|
list: /* @__PURE__ */ __name((options) => store.contracts.list(options), "list"),
|
|
@@ -23082,7 +23098,7 @@ var contractKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
23082
23098
|
decide: /* @__PURE__ */ __name(async (id2, confirm, { by, reason }) => (confirm ? await store.contracts.confirm(id2, by, reason) : await store.contracts.reject(id2, by, reason)).ref, "decide")
|
|
23083
23099
|
}), "contractKind");
|
|
23084
23100
|
|
|
23085
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23101
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/fact.js
|
|
23086
23102
|
var STATUS = {
|
|
23087
23103
|
proposed: "proposed",
|
|
23088
23104
|
accepted: "confirmed",
|
|
@@ -23125,7 +23141,7 @@ var factKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23125
23141
|
}, "decide")
|
|
23126
23142
|
}), "factKind");
|
|
23127
23143
|
|
|
23128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23144
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/finance.js
|
|
23129
23145
|
var invoiceKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
23130
23146
|
type: "invoice",
|
|
23131
23147
|
list: /* @__PURE__ */ __name((options) => store.finance.invoices(options), "list"),
|
|
@@ -23141,7 +23157,7 @@ var paymentKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
23141
23157
|
decide: /* @__PURE__ */ __name(async (id2, confirm, { by, reason }) => (confirm ? await store.finance.confirm(id2, by, reason) : await store.finance.reject(id2, by, reason)).ref, "decide")
|
|
23142
23158
|
}), "paymentKind");
|
|
23143
23159
|
|
|
23144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23160
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/identity-link.js
|
|
23145
23161
|
var rowOf5 = /* @__PURE__ */ __name((action2) => {
|
|
23146
23162
|
const payload = action2.payload;
|
|
23147
23163
|
const [from, to] = payload.persons;
|
|
@@ -23188,7 +23204,7 @@ var identityLinkKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23188
23204
|
}, "decide")
|
|
23189
23205
|
}), "identityLinkKind");
|
|
23190
23206
|
|
|
23191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23207
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/identity-split.js
|
|
23192
23208
|
var summaryOf = /* @__PURE__ */ __name((payload, person) => payload.split === "unmerge" ? `undo ${payload.merge}: ${payload.identities.join(", ")} go back to their own person` : `${payload.identities.join(", ")} may not be ${person}: they would move to a person of their own`, "summaryOf");
|
|
23193
23209
|
var dropped = /* @__PURE__ */ __name((action2) => action2.status !== "proposed" && action2.status !== "rejected" && typeof action2.result?.person !== "string", "dropped");
|
|
23194
23210
|
var rowOf6 = /* @__PURE__ */ __name((store) => async (action2) => {
|
|
@@ -23243,7 +23259,7 @@ var identitySplitKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23243
23259
|
}, "decide")
|
|
23244
23260
|
}), "identitySplitKind");
|
|
23245
23261
|
|
|
23246
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23262
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/key-document.js
|
|
23247
23263
|
var linkRow = /* @__PURE__ */ __name((link4) => ({
|
|
23248
23264
|
id: `key:${link4.id}`,
|
|
23249
23265
|
kind: "key_document",
|
|
@@ -23311,7 +23327,7 @@ var keyDocumentKind = /* @__PURE__ */ __name((store) => {
|
|
|
23311
23327
|
};
|
|
23312
23328
|
}, "keyDocumentKind");
|
|
23313
23329
|
|
|
23314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23330
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/mail-findings.js
|
|
23315
23331
|
var words3 = /* @__PURE__ */ __name((...parts) => parts.filter(Boolean).join(" "), "words");
|
|
23316
23332
|
var summaryOf2 = /* @__PURE__ */ __name((finding) => {
|
|
23317
23333
|
switch (finding.kind) {
|
|
@@ -23402,7 +23418,7 @@ var mailFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
23402
23418
|
};
|
|
23403
23419
|
}, "mailFindingsKind");
|
|
23404
23420
|
|
|
23405
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23421
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/meeting-findings.js
|
|
23406
23422
|
var rowOf8 = /* @__PURE__ */ __name((action2, batch) => {
|
|
23407
23423
|
const findings = batch.input.findings;
|
|
23408
23424
|
const projects = [...new Set(findings.map((one2) => "project" in one2 ? one2.project : void 0))];
|
|
@@ -23469,7 +23485,7 @@ var meetingFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
23469
23485
|
};
|
|
23470
23486
|
}, "meetingFindingsKind");
|
|
23471
23487
|
|
|
23472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23488
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/memory.js
|
|
23473
23489
|
var STATUS2 = {
|
|
23474
23490
|
proposed: "proposed",
|
|
23475
23491
|
confirmed: "confirmed",
|
|
@@ -23510,7 +23526,7 @@ var memoryKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23510
23526
|
}, "decide")
|
|
23511
23527
|
}), "memoryKind");
|
|
23512
23528
|
|
|
23513
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23529
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/orders.js
|
|
23514
23530
|
var orderKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
23515
23531
|
type: "order",
|
|
23516
23532
|
list: /* @__PURE__ */ __name((options) => store.orders.list(options), "list"),
|
|
@@ -23519,7 +23535,7 @@ var orderKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
23519
23535
|
decide: /* @__PURE__ */ __name(async (id2, confirm, { by, reason }) => (confirm ? await store.orders.confirm(id2, by, reason) : await store.orders.reject(id2, by, reason)).ref, "decide")
|
|
23520
23536
|
}), "orderKind");
|
|
23521
23537
|
|
|
23522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23538
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship.js
|
|
23523
23539
|
var linkRow2 = /* @__PURE__ */ __name((link4) => ({
|
|
23524
23540
|
id: `link:${link4.id}`,
|
|
23525
23541
|
kind: "relationship",
|
|
@@ -23594,7 +23610,7 @@ var relationshipKind = /* @__PURE__ */ __name((store) => {
|
|
|
23594
23610
|
};
|
|
23595
23611
|
}, "relationshipKind");
|
|
23596
23612
|
|
|
23597
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23613
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship-update.js
|
|
23598
23614
|
var KIND2 = "relationship_update";
|
|
23599
23615
|
var summaryOf3 = /* @__PURE__ */ __name(({ changes }) => Object.entries(changes).map(([field, value]) => `${field} ${value ?? "cleared"}`).join(", "), "summaryOf");
|
|
23600
23616
|
var rowOf10 = /* @__PURE__ */ __name((action2) => {
|
|
@@ -23644,7 +23660,7 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23644
23660
|
}, "decide")
|
|
23645
23661
|
}), "relationshipUpdateKind");
|
|
23646
23662
|
|
|
23647
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23663
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/source-review.js
|
|
23648
23664
|
var rowOf11 = /* @__PURE__ */ __name((action2) => {
|
|
23649
23665
|
const payload = action2.payload;
|
|
23650
23666
|
const sources = payload.sources.flatMap((source) => source.ref ?? []);
|
|
@@ -23687,7 +23703,7 @@ var sourceReviewKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23687
23703
|
}, "decide")
|
|
23688
23704
|
}), "sourceReviewKind");
|
|
23689
23705
|
|
|
23690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23706
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/subscriptions.js
|
|
23691
23707
|
var subscriptionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
23692
23708
|
type: "subscription",
|
|
23693
23709
|
list: /* @__PURE__ */ __name((options) => store.subscriptions.list(options), "list"),
|
|
@@ -23706,7 +23722,7 @@ var subscriptionPriceKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
23706
23722
|
}, "decide")
|
|
23707
23723
|
}), "subscriptionPriceKind");
|
|
23708
23724
|
|
|
23709
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23725
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/task-close.js
|
|
23710
23726
|
var rowOf12 = /* @__PURE__ */ __name((task2) => {
|
|
23711
23727
|
const suggestion = task2.closeSuggestion;
|
|
23712
23728
|
if (suggestion === null)
|
|
@@ -23774,7 +23790,7 @@ var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
|
23774
23790
|
};
|
|
23775
23791
|
}, "taskCloseKind");
|
|
23776
23792
|
|
|
23777
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23793
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/transactions.js
|
|
23778
23794
|
var transactionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
23779
23795
|
type: "transaction",
|
|
23780
23796
|
list: /* @__PURE__ */ __name((options) => store.transactions.list(options), "list"),
|
|
@@ -23783,7 +23799,7 @@ var transactionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
23783
23799
|
decide: /* @__PURE__ */ __name(async (id2, confirm, { by, reason }) => (confirm ? await store.transactions.confirm(id2, by, reason) : await store.transactions.reject(id2, by, reason)).ref, "decide")
|
|
23784
23800
|
}), "transactionKind");
|
|
23785
23801
|
|
|
23786
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23802
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/registry.js
|
|
23787
23803
|
var PREFIX = /^([a-z][a-z_]*):/;
|
|
23788
23804
|
var marked = /* @__PURE__ */ __name((kind, row) => kind.ownerOnly ? { ...row, ownerOnly: true } : row, "marked");
|
|
23789
23805
|
var refusalOf = /* @__PURE__ */ __name((id2, error) => {
|
|
@@ -23918,7 +23934,7 @@ var proposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
23918
23934
|
return registry;
|
|
23919
23935
|
}, "proposalRegistry");
|
|
23920
23936
|
|
|
23921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/search-all-deprecated.js
|
|
23922
23938
|
var searchAllIncludingMeetings = /* @__PURE__ */ __name(async (store, account2, { meetingAccount, maxMeetings: _maxMeetings, meetingCursor: _meetingCursor, ...request }, messenger = {}, searchMessages, meaning) => {
|
|
23923
23939
|
const { meetings: _meetings, ...found } = await searchAll(store, account2, {
|
|
23924
23940
|
...request,
|
|
@@ -23928,7 +23944,7 @@ var searchAllIncludingMeetings = /* @__PURE__ */ __name(async (store, account2,
|
|
|
23928
23944
|
return found;
|
|
23929
23945
|
}, "searchAllIncludingMeetings");
|
|
23930
23946
|
|
|
23931
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23947
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/stored-meeting-project-candidate-validation.js
|
|
23932
23948
|
var storedCandidateRequest = /* @__PURE__ */ __name((reference, accountId, options) => {
|
|
23933
23949
|
const invalid9 = /* @__PURE__ */ __name((field) => {
|
|
23934
23950
|
throw new CliError("validation_error", `invalid stored project candidate ${field}`);
|
|
@@ -23970,7 +23986,7 @@ var storedCandidateRequest = /* @__PURE__ */ __name((reference, accountId, optio
|
|
|
23970
23986
|
return { reference, limits, after, afterTranscriptId, signal };
|
|
23971
23987
|
}, "storedCandidateRequest");
|
|
23972
23988
|
|
|
23973
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23989
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/stored-meeting-project-candidates.js
|
|
23974
23990
|
var createStoredMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
23975
23991
|
const fixed = snapshotMeetingScope(scope);
|
|
23976
23992
|
const store = ports?.meetings;
|
|
@@ -24062,7 +24078,7 @@ var createStoredMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, a
|
|
|
24062
24078
|
};
|
|
24063
24079
|
}, "createStoredMeetingProjectCandidateReader");
|
|
24064
24080
|
|
|
24065
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24081
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
24066
24082
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
24067
24083
|
const pictures = picturesService(deps);
|
|
24068
24084
|
const base = {
|