@wirecat/cli-memo 0.131.79 → 0.131.80
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/memo.js +2 -2
- package/dist/bundle/{all-profiles-ZMIHTBZD.js → all-profiles-RVKEGURX.js} +5 -5
- package/dist/bundle/{anthropic-PNRUKJHS.js → anthropic-FC6XUSWM.js} +2 -2
- package/dist/bundle/{app-server-RNASTWZO.js → app-server-IRNKU3IF.js} +36 -36
- package/dist/bundle/auto-GTL4YGZX.js +91 -0
- package/dist/bundle/{bun-QU4I5GWB.js → bun-TYBGE5BX.js} +2 -2
- package/dist/bundle/{bun-sqlite-J4KG5VML.js → bun-sqlite-YENHHNPL.js} +3 -3
- package/dist/bundle/{chunk-GJ7KTKIP.js → chunk-2CJIZZSI.js} +12 -12
- package/dist/bundle/{chunk-XO6RP5FV.js → chunk-2FICCBKH.js} +1 -1
- package/dist/bundle/{chunk-IU2QDYBO.js → chunk-3H56E3VI.js} +4 -4
- package/dist/bundle/{chunk-VIZBCX3C.js → chunk-4IKO3JAA.js} +4 -4
- package/dist/bundle/{chunk-5YS4WS74.js → chunk-666J5H2Z.js} +1 -1
- package/dist/bundle/{chunk-U3VXKVKI.js → chunk-6W6CLZKX.js} +12 -12
- package/dist/bundle/{chunk-TBCHID7L.js → chunk-BS5JBNGX.js} +591 -509
- package/dist/bundle/{chunk-CY7WACM7.js → chunk-C2FE62E5.js} +29 -29
- package/dist/bundle/{chunk-QOFD6JSB.js → chunk-C4TAEYDQ.js} +5 -5
- package/dist/bundle/{chunk-PI42ZHZQ.js → chunk-CEGA7A35.js} +2 -2
- package/dist/bundle/{chunk-Q5YM3JWV.js → chunk-CUWTYE5A.js} +2 -2
- package/dist/bundle/{chunk-UYKKJOND.js → chunk-CVQJ7L4C.js} +4 -4
- package/dist/bundle/{chunk-6ZO2ZVKV.js → chunk-DS5SA5QP.js} +5 -5
- package/dist/bundle/{chunk-J2KPUG2X.js → chunk-EOXWI2EX.js} +4 -4
- package/dist/bundle/{chunk-OP5MKU7T.js → chunk-F62N6QMI.js} +1 -1
- package/dist/bundle/{chunk-4XOAQ5EQ.js → chunk-FIJTCBPQ.js} +8 -8
- package/dist/bundle/{chunk-GDSCR5BG.js → chunk-FR646D4S.js} +1 -1
- package/dist/bundle/{chunk-BBJBWSGN.js → chunk-GHYJW4ZH.js} +2 -2
- package/dist/bundle/{chunk-PB4ZGGR4.js → chunk-GNII3UL7.js} +1 -1
- package/dist/bundle/{chunk-2C536VQW.js → chunk-HFQXEMRG.js} +1 -1
- package/dist/bundle/{chunk-RMKJWDVT.js → chunk-HHZMDFE2.js} +45 -45
- package/dist/bundle/{chunk-4FPSZCWN.js → chunk-HKXACNLD.js} +2 -2
- package/dist/bundle/{chunk-2TIK6LHL.js → chunk-HXPU3ABX.js} +362 -299
- package/dist/bundle/{chunk-GTYESBB2.js → chunk-IJUXHUNZ.js} +2 -2
- package/dist/bundle/{chunk-VSSWVVOZ.js → chunk-IW6O2SAG.js} +10 -10
- package/dist/bundle/{chunk-FCHVDLEL.js → chunk-JDQSL2EY.js} +2 -2
- package/dist/bundle/{chunk-ZIDR2CSX.js → chunk-JJ6ODCVQ.js} +2 -2
- package/dist/bundle/{chunk-4BSNHOEV.js → chunk-JPC7GSJO.js} +9 -9
- package/dist/bundle/{chunk-UC5YCXKS.js → chunk-JTQAMVZH.js} +13 -13
- package/dist/bundle/{chunk-46Z7UUCG.js → chunk-K3JEAMTT.js} +1 -1
- package/dist/bundle/{chunk-SM7PB5CU.js → chunk-KDLOSANT.js} +5 -5
- package/dist/bundle/{chunk-DAJEINOF.js → chunk-KNRYIHUJ.js} +281 -281
- package/dist/bundle/{chunk-QNI3Q7XS.js → chunk-KVQY7R66.js} +2 -2
- package/dist/bundle/{chunk-IE6AEPW3.js → chunk-MDIXXKVU.js} +9 -9
- package/dist/bundle/{chunk-SEIRBXJT.js → chunk-MLYPJ4EC.js} +6 -6
- package/dist/bundle/{chunk-DP2RZ6FO.js → chunk-NH7KIGIS.js} +2 -2
- package/dist/bundle/{chunk-H6QELEPY.js → chunk-NUKMYB65.js} +4 -4
- package/dist/bundle/{chunk-CLZHPHKI.js → chunk-OFRIG3CX.js} +3 -3
- package/dist/bundle/{chunk-WN7BSOD2.js → chunk-OH4AIBZF.js} +1 -1
- package/dist/bundle/{chunk-7SGURCSQ.js → chunk-OSE7GXAR.js} +1 -1
- package/dist/bundle/{chunk-LQBVQX47.js → chunk-PX55CRD3.js} +83 -78
- package/dist/bundle/{chunk-MQ6XB6BV.js → chunk-Q46O7KXY.js} +5 -5
- package/dist/bundle/{chunk-A5TSIMI2.js → chunk-R4XCBPD2.js} +1 -1
- package/dist/bundle/{chunk-YJUVVYS6.js → chunk-RUM4GGHP.js} +4 -4
- package/dist/bundle/{chunk-R24Q24U5.js → chunk-RWVB7SLQ.js} +20 -20
- package/dist/bundle/{chunk-CQPXUMIS.js → chunk-S2KXO7MO.js} +1 -1
- package/dist/bundle/{chunk-IHWPNLCI.js → chunk-SGV2Z4BO.js} +148 -148
- package/dist/bundle/{chunk-3GOMBG55.js → chunk-SKX3BNTE.js} +7 -7
- package/dist/bundle/{chunk-O4ZIN4AY.js → chunk-SULQCO3Y.js} +5 -5
- package/dist/bundle/{chunk-JDI7CKLO.js → chunk-TJ2B36VK.js} +7 -7
- package/dist/bundle/{chunk-3HCGK4FN.js → chunk-UBUCTVHB.js} +1 -1
- package/dist/bundle/{chunk-CX3D6D43.js → chunk-UTYGPWUY.js} +3 -3
- package/dist/bundle/{chunk-ZFUYVQII.js → chunk-VQJDYQ55.js} +32 -32
- package/dist/bundle/{chunk-RUHFWDHD.js → chunk-VTBIVTS5.js} +3 -3
- package/dist/bundle/{chunk-24FOGKJI.js → chunk-W26VONC6.js} +5 -5
- package/dist/bundle/{chunk-JX4YNSYT.js → chunk-X3NHAO6T.js} +1 -1
- package/dist/bundle/{chunk-TH3LLEA2.js → chunk-XZJUAG7B.js} +3 -3
- package/dist/bundle/{chunk-HKOHKYDY.js → chunk-ZMLDVE22.js} +6 -6
- package/dist/bundle/{chunk-AWUANCLC.js → chunk-ZMSEKQQQ.js} +1 -1
- package/dist/bundle/{command-contract-4ZJOMSQ2.js → command-contract-SR6ONYV4.js} +11 -11
- package/dist/bundle/{command-server-entry-VSWZ5K2Q.js → command-server-entry-2WXZVYIX.js} +17 -17
- package/dist/bundle/{decode-OPD4OHCW.js → decode-U7VFYQAA.js} +2 -2
- package/dist/bundle/{echarts-AXYKRYU7.js → echarts-2PXBBLLJ.js} +2 -2
- package/dist/bundle/{embed-6DBZRTQ7.js → embed-DPA5QOIR.js} +3 -3
- package/dist/bundle/{embedder-SQI6IDZC.js → embedder-IGI2UTFK.js} +6 -6
- package/dist/bundle/{entry-RV5QAV44.js → entry-7PAYGIQO.js} +5 -5
- package/dist/bundle/{entry-2GKNMGW6.js → entry-IFOQTBXC.js} +5 -5
- package/dist/bundle/failure-NAM37T2T.js +71 -0
- package/dist/bundle/{first-run-BBMUDHYX.js → first-run-WHDDKA4V.js} +5 -5
- package/dist/bundle/{first-screen-4BS5M4JW.js → first-screen-P5C57USR.js} +12 -12
- package/dist/bundle/{instructions-JNAROG65.js → instructions-W7F7OQZS.js} +1 -1
- package/dist/bundle/{mcp-3MBYSBNS.js → mcp-3LAFWOGW.js} +35 -35
- package/dist/bundle/memo.js +3 -3
- package/dist/bundle/{node-6OTEDFSP.js → node-K6MWX3SW.js} +2 -2
- package/dist/bundle/{node-sqlite-HBHJOJX6.js → node-sqlite-WV6GCPEC.js} +4 -4
- package/dist/bundle/{oauth-PVQSSPPE.js → oauth-EH2Y54DG.js} +4 -4
- package/dist/bundle/{open-ARBTD4LX.js → open-PB4W3UAM.js} +2 -2
- package/dist/bundle/{openai-2JRFTWUA.js → openai-76OKHXWR.js} +7 -7
- package/dist/bundle/{process-4ERCV4WX.js → process-FMQ7Q7AI.js} +1 -1
- package/dist/bundle/{program-5KVHPFJU.js → program-BR2QHF36.js} +174 -78
- package/dist/bundle/{prompt-4I34VBPK.js → prompt-AW4T6CC2.js} +2 -2
- package/dist/bundle/{recognize-22BJ7RWB.js → recognize-X5DMT3HH.js} +1 -1
- package/dist/bundle/{remote-BON3MKY5.js → remote-HVKKXNYZ.js} +4 -4
- package/dist/bundle/{rerank-6CCCIZDS.js → rerank-IXMWD7JV.js} +4 -4
- package/dist/bundle/{serve-FB54DFIV.js → serve-42XTYB26.js} +6 -6
- package/dist/bundle/server-HUEXB5QL.js +64 -0
- package/dist/bundle/{server-TL5WPR3I.js → server-NNE7MUYT.js} +52 -52
- package/dist/bundle/server-YLXOJOTR.js +50 -0
- package/dist/bundle/{state-23IF45K6.js → state-EOU37GAH.js} +3 -3
- package/dist/bundle/{store-FGNXSGJU.js → store-F3REYMA6.js} +9 -9
- package/dist/bundle/store-maintenance-command-TOBBH3ZK.js +49 -0
- package/dist/bundle/update-3QB752NL.js +74 -0
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +1 -0
- package/dist/examples.js.map +1 -1
- package/dist/knowledge/command.d.ts.map +1 -1
- package/dist/knowledge/command.js +2 -0
- package/dist/knowledge/command.js.map +1 -1
- package/dist/knowledge/document-context.d.ts +14 -0
- package/dist/knowledge/document-context.d.ts.map +1 -0
- package/dist/knowledge/document-context.js +33 -0
- package/dist/knowledge/document-context.js.map +1 -0
- package/dist/knowledge/project-activity-command.d.ts +5 -0
- package/dist/knowledge/project-activity-command.d.ts.map +1 -0
- package/dist/knowledge/project-activity-command.js +71 -0
- package/dist/knowledge/project-activity-command.js.map +1 -0
- package/dist/knowledge/relationships.d.ts +4 -0
- package/dist/knowledge/relationships.d.ts.map +1 -1
- package/dist/knowledge/relationships.js +14 -0
- package/dist/knowledge/relationships.js.map +1 -1
- package/dist/knowledge/roles-command.d.ts.map +1 -1
- package/dist/knowledge/roles-command.js +7 -4
- package/dist/knowledge/roles-command.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +1 -0
- 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/auto-TRSJQGJH.js +0 -91
- package/dist/bundle/failure-7RJ4HOL4.js +0 -71
- package/dist/bundle/server-SG4BOF6U.js +0 -64
- package/dist/bundle/server-UYEXFEEB.js +0 -50
- package/dist/bundle/store-maintenance-command-PDLIZ4J2.js +0 -49
- package/dist/bundle/update-QTZREQD6.js +0 -74
- /package/dist/bundle/{chunk-2AFREBSM.js → chunk-ID2I2X2Z.js} +0 -0
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6W6CLZKX.js";
|
|
12
12
|
import {
|
|
13
13
|
remoteKey
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GHYJW4ZH.js";
|
|
15
15
|
import {
|
|
16
16
|
isNewer,
|
|
17
17
|
updateCommand
|
|
@@ -115,13 +115,13 @@ import {
|
|
|
115
115
|
validateFields,
|
|
116
116
|
waitingPointer,
|
|
117
117
|
withoutField
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-BS5JBNGX.js";
|
|
119
119
|
import {
|
|
120
120
|
DEFAULT_STEMMERS,
|
|
121
121
|
createStemmer,
|
|
122
122
|
fold,
|
|
123
123
|
normalize
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-TJ2B36VK.js";
|
|
125
125
|
import {
|
|
126
126
|
MAX_MODEL_IMAGE_BYTES,
|
|
127
127
|
checkedOptions,
|
|
@@ -129,7 +129,7 @@ import {
|
|
|
129
129
|
range,
|
|
130
130
|
systemFor,
|
|
131
131
|
validateImages
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-IJUXHUNZ.js";
|
|
133
133
|
import {
|
|
134
134
|
Unzip,
|
|
135
135
|
UnzipInflate,
|
|
@@ -140,7 +140,7 @@ import {
|
|
|
140
140
|
placedText,
|
|
141
141
|
runEmbedders,
|
|
142
142
|
textModelsDirectory
|
|
143
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-C4TAEYDQ.js";
|
|
144
144
|
import {
|
|
145
145
|
CEILING_KEY,
|
|
146
146
|
Command,
|
|
@@ -190,13 +190,13 @@ import {
|
|
|
190
190
|
textModels,
|
|
191
191
|
vectorModelKey,
|
|
192
192
|
writeTextModelsSection
|
|
193
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-SGV2Z4BO.js";
|
|
194
194
|
import {
|
|
195
195
|
MESSENGER_CHANGE_REFUSAL,
|
|
196
196
|
envName,
|
|
197
197
|
readOnlyLockOf,
|
|
198
198
|
readOnlyRefusal
|
|
199
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-ZMSEKQQQ.js";
|
|
200
200
|
import {
|
|
201
201
|
CATEGORIES,
|
|
202
202
|
DEAL_KINDS,
|
|
@@ -294,27 +294,27 @@ import {
|
|
|
294
294
|
walkQuery,
|
|
295
295
|
withAttempt,
|
|
296
296
|
zonedMoment
|
|
297
|
-
} from "./chunk-
|
|
297
|
+
} from "./chunk-PX55CRD3.js";
|
|
298
298
|
import {
|
|
299
299
|
damagedFile,
|
|
300
300
|
isCliFailure,
|
|
301
301
|
sqliteCode
|
|
302
|
-
} from "./chunk-
|
|
302
|
+
} from "./chunk-JJ6ODCVQ.js";
|
|
303
303
|
import {
|
|
304
304
|
DEFAULT_TASK_CATEGORIES,
|
|
305
305
|
FALLBACK_CATEGORY,
|
|
306
306
|
readSharedSection,
|
|
307
307
|
sharedConfigPath,
|
|
308
308
|
writeSharedSection
|
|
309
|
-
} from "./chunk-
|
|
309
|
+
} from "./chunk-RUM4GGHP.js";
|
|
310
310
|
import {
|
|
311
311
|
installFiles,
|
|
312
312
|
megabytes
|
|
313
|
-
} from "./chunk-
|
|
313
|
+
} from "./chunk-UTYGPWUY.js";
|
|
314
314
|
import {
|
|
315
315
|
storePath,
|
|
316
316
|
wirecatDirectory
|
|
317
|
-
} from "./chunk-
|
|
317
|
+
} from "./chunk-R4XCBPD2.js";
|
|
318
318
|
import {
|
|
319
319
|
Credentials,
|
|
320
320
|
logRecordOf,
|
|
@@ -16976,7 +16976,7 @@ var require_lib3 = __commonJS({
|
|
|
16976
16976
|
}
|
|
16977
16977
|
});
|
|
16978
16978
|
|
|
16979
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16980
16980
|
var RULES_VERSION = 5;
|
|
16981
16981
|
var LOOK_BACK = 50;
|
|
16982
16982
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -17066,10 +17066,10 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
17066
17066
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
17067
17067
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
17068
17068
|
|
|
17069
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17069
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
17070
17070
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
17071
17071
|
|
|
17072
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17072
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/store/damage.js
|
|
17073
17073
|
var DERIVED = /* @__PURE__ */ new Set(["mentions", "involvements", "embeddings"]);
|
|
17074
17074
|
var named = /* @__PURE__ */ __name((tables) => tables.length <= 5 ? tables.join(", ") : `${tables.slice(0, 5).join(", ")} and ${tables.length - 5} more`, "named");
|
|
17075
17075
|
var isDerivedTable = /* @__PURE__ */ __name((table, searchIndexes) => DERIVED.has(table) || table.startsWith("vector_index_") || searchIndexes.some((index) => table === index || table.startsWith(`${index}_`)), "isDerivedTable");
|
|
@@ -17172,7 +17172,7 @@ var storeDamageReport = /* @__PURE__ */ __name(({ health, command, mark = null,
|
|
|
17172
17172
|
};
|
|
17173
17173
|
}, "storeDamageReport");
|
|
17174
17174
|
|
|
17175
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17175
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/store/health.js
|
|
17176
17176
|
import { existsSync, statSync } from "node:fs";
|
|
17177
17177
|
var JSON_COLUMNS = {
|
|
17178
17178
|
accounts: ["settings"],
|
|
@@ -17314,10 +17314,10 @@ var storeHealth = /* @__PURE__ */ __name(async (path, { deep = false } = {}) =>
|
|
|
17314
17314
|
}
|
|
17315
17315
|
}, "storeHealth");
|
|
17316
17316
|
|
|
17317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17317
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
|
|
17318
17318
|
var MAX_BYTES = 16 * 1024 * 1024;
|
|
17319
17319
|
|
|
17320
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17320
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
|
|
17321
17321
|
var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options2) => {
|
|
17322
17322
|
if (!options2 || typeof options2 !== "object" || Array.isArray(options2))
|
|
17323
17323
|
throw new CliError("validation_error", "project preview options are required");
|
|
@@ -17343,7 +17343,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options2) =
|
|
|
17343
17343
|
});
|
|
17344
17344
|
}, "previewProjectAnnotationSnapshot");
|
|
17345
17345
|
|
|
17346
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17346
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
|
|
17347
17347
|
var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options2) => {
|
|
17348
17348
|
if (!options2 || typeof options2 !== "object" || Array.isArray(options2))
|
|
17349
17349
|
throw new CliError("validation_error", "snapshot options are required");
|
|
@@ -17364,7 +17364,7 @@ var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options2) => {
|
|
|
17364
17364
|
}
|
|
17365
17365
|
}, "snapshotProjectAnnotations");
|
|
17366
17366
|
|
|
17367
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17367
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/search/groups.js
|
|
17368
17368
|
var ALL = "all";
|
|
17369
17369
|
var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
|
|
17370
17370
|
var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
|
|
@@ -17498,7 +17498,7 @@ var scopeToGroup = /* @__PURE__ */ __name((run, request, context2) => {
|
|
|
17498
17498
|
return scoped;
|
|
17499
17499
|
}, "scopeToGroup");
|
|
17500
17500
|
|
|
17501
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17501
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
17502
17502
|
var NO_MAIL = "no_mail";
|
|
17503
17503
|
var MAIL = "email";
|
|
17504
17504
|
var groupLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -17572,10 +17572,10 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
17572
17572
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
17573
17573
|
}, "accountsOfKind");
|
|
17574
17574
|
|
|
17575
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17575
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17576
17576
|
import { randomUUID } from "node:crypto";
|
|
17577
17577
|
|
|
17578
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
17579
17579
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
17580
17580
|
import { dirname, join } from "node:path";
|
|
17581
17581
|
var MOST_DEADLINES = 50;
|
|
@@ -17659,11 +17659,11 @@ var FloodMemory = class {
|
|
|
17659
17659
|
}
|
|
17660
17660
|
};
|
|
17661
17661
|
|
|
17662
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17662
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17663
17663
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
17664
17664
|
import { dirname as dirname3, join as join2 } from "node:path";
|
|
17665
17665
|
|
|
17666
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17666
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
17667
17667
|
import { closeSync, mkdirSync as mkdirSync2, openSync, statSync as statSync2, unlinkSync } from "node:fs";
|
|
17668
17668
|
import { dirname as dirname2 } from "node:path";
|
|
17669
17669
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -17730,7 +17730,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
17730
17730
|
}
|
|
17731
17731
|
}, "lockTime");
|
|
17732
17732
|
|
|
17733
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17733
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17734
17734
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
17735
17735
|
var SendJournal = class {
|
|
17736
17736
|
static {
|
|
@@ -17807,7 +17807,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
17807
17807
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
17808
17808
|
}, "withSendId");
|
|
17809
17809
|
|
|
17810
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17810
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
17811
17811
|
import { existsSync as existsSync2, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
17812
17812
|
import { join as join3 } from "node:path";
|
|
17813
17813
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -17919,7 +17919,7 @@ var RecipientList = class {
|
|
|
17919
17919
|
}
|
|
17920
17920
|
};
|
|
17921
17921
|
|
|
17922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17923
17923
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
17924
17924
|
var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
|
|
17925
17925
|
"attachments.extract",
|
|
@@ -18112,7 +18112,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
18112
18112
|
}), "guardFor");
|
|
18113
18113
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
18114
18114
|
|
|
18115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
18116
18116
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
18117
18117
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
18118
18118
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -18187,7 +18187,7 @@ var storeOnlyDeps = /* @__PURE__ */ __name((store, account, { app, env }) => {
|
|
|
18187
18187
|
return { ...storedDeps(messenger, store, account, guard), ...env === void 0 ? {} : { env } };
|
|
18188
18188
|
}, "storeOnlyDeps");
|
|
18189
18189
|
|
|
18190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
18191
18191
|
var DAY_MS = 864e5;
|
|
18192
18192
|
var NEW_DAYS = 30;
|
|
18193
18193
|
var SAME_TEXT_MIN = 20;
|
|
@@ -18264,7 +18264,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
18264
18264
|
};
|
|
18265
18265
|
}, "scorePerson");
|
|
18266
18266
|
|
|
18267
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18267
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
18268
18268
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
18269
18269
|
const controller = new AbortController();
|
|
18270
18270
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -18280,7 +18280,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run) => {
|
|
|
18280
18280
|
}
|
|
18281
18281
|
}, "withTimeLimit");
|
|
18282
18282
|
|
|
18283
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18283
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
18284
18284
|
var REGISTRIES = {
|
|
18285
18285
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
18286
18286
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -18367,7 +18367,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
18367
18367
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
18368
18368
|
})), "notCovered");
|
|
18369
18369
|
|
|
18370
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18370
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
18371
18371
|
var ACTIVITY_MESSAGES = 1e3;
|
|
18372
18372
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
18373
18373
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -18455,7 +18455,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
18455
18455
|
};
|
|
18456
18456
|
}, "botCheckService");
|
|
18457
18457
|
|
|
18458
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18458
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
18459
18459
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
18460
18460
|
if (newest === null)
|
|
18461
18461
|
return null;
|
|
@@ -18464,7 +18464,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
18464
18464
|
return newest.addressed ? "owed" : null;
|
|
18465
18465
|
}, "mailTurn");
|
|
18466
18466
|
|
|
18467
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18467
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
18468
18468
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
18469
18469
|
if (error instanceof CliError && error.code === "not_found")
|
|
18470
18470
|
return void 0;
|
|
@@ -18522,7 +18522,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
18522
18522
|
};
|
|
18523
18523
|
}, "mailActivity");
|
|
18524
18524
|
|
|
18525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
18526
18526
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
18527
18527
|
const ids = [...new Set(chatIds)];
|
|
18528
18528
|
if (ids.length === 0)
|
|
@@ -18548,7 +18548,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
18548
18548
|
}));
|
|
18549
18549
|
}, "chatCoverage");
|
|
18550
18550
|
|
|
18551
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18551
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
18552
18552
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
18553
18553
|
if (value === void 0)
|
|
18554
18554
|
return void 0;
|
|
@@ -18558,7 +18558,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
18558
18558
|
return id2;
|
|
18559
18559
|
}, "threadIdOf");
|
|
18560
18560
|
|
|
18561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18561
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
18562
18562
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
18563
18563
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
18564
18564
|
if (key in own)
|
|
@@ -18575,12 +18575,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
18575
18575
|
return found.bind(adapter);
|
|
18576
18576
|
}, "capability");
|
|
18577
18577
|
|
|
18578
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
18579
18579
|
import { randomBytes } from "node:crypto";
|
|
18580
18580
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
18581
18581
|
var newOperationId = newSendId;
|
|
18582
18582
|
|
|
18583
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18583
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
18584
18584
|
var LINKS = /https?:\/\/\S+/g;
|
|
18585
18585
|
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");
|
|
18586
18586
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -18610,7 +18610,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
18610
18610
|
});
|
|
18611
18611
|
}, "questions");
|
|
18612
18612
|
|
|
18613
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18613
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
18614
18614
|
var TOP_POSTS = 5;
|
|
18615
18615
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
18616
18616
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -18727,7 +18727,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
18727
18727
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
18728
18728
|
}, "median");
|
|
18729
18729
|
|
|
18730
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18730
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
18731
18731
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
18732
18732
|
const events = [];
|
|
18733
18733
|
for (const stay of stays) {
|
|
@@ -18759,7 +18759,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
18759
18759
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
18760
18760
|
}, "memberEvents");
|
|
18761
18761
|
|
|
18762
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18762
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
18763
18763
|
var AUDIT_PAGE = 200;
|
|
18764
18764
|
var AUDIT_BUDGET = 10;
|
|
18765
18765
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -18839,7 +18839,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
18839
18839
|
return found;
|
|
18840
18840
|
}, "burstJoins");
|
|
18841
18841
|
|
|
18842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18842
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18843
18843
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18844
18844
|
if (deps.reads !== "store")
|
|
18845
18845
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18998,7 +18998,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18998
18998
|
}
|
|
18999
18999
|
}, "senderAmong");
|
|
19000
19000
|
|
|
19001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
19002
19002
|
var EVENTS_DAYS = 7;
|
|
19003
19003
|
var TRACKED_DAYS = 30;
|
|
19004
19004
|
var STATS_PAGE = 1e3;
|
|
@@ -19293,7 +19293,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
19293
19293
|
return members.length === 0 ? null : members;
|
|
19294
19294
|
}, "storedMembers");
|
|
19295
19295
|
|
|
19296
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19296
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
19297
19297
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
19298
19298
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
19299
19299
|
const name = typed.trim().toLowerCase();
|
|
@@ -19350,7 +19350,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
19350
19350
|
return best.name;
|
|
19351
19351
|
}, "categorize");
|
|
19352
19352
|
|
|
19353
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19353
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
19354
19354
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
19355
19355
|
var RULES_IN = {
|
|
19356
19356
|
dialog: "all",
|
|
@@ -19556,7 +19556,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
19556
19556
|
return passes;
|
|
19557
19557
|
}, "applyTaskRulesToChats");
|
|
19558
19558
|
|
|
19559
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19559
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
19560
19560
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
19561
19561
|
const tags = /* @__PURE__ */ new Map();
|
|
19562
19562
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -19565,7 +19565,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
19565
19565
|
return tags;
|
|
19566
19566
|
}, "taskTagFilters");
|
|
19567
19567
|
|
|
19568
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19568
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
19569
19569
|
var DAY = 864e5;
|
|
19570
19570
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
19571
19571
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -19812,7 +19812,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
19812
19812
|
};
|
|
19813
19813
|
}, "agendaItem");
|
|
19814
19814
|
|
|
19815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
19816
19816
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
19817
19817
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
19818
19818
|
const fail5 = /* @__PURE__ */ __name(() => {
|
|
@@ -19876,7 +19876,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
19876
19876
|
}
|
|
19877
19877
|
}, "validateContextEvidencePage");
|
|
19878
19878
|
|
|
19879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19879
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
19880
19880
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
19881
19881
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
19882
19882
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -19929,7 +19929,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
19929
19929
|
};
|
|
19930
19930
|
}, "contextReadBudget");
|
|
19931
19931
|
|
|
19932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
19933
19933
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
19934
19934
|
if (!port || typeof port.read !== "function")
|
|
19935
19935
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -19973,7 +19973,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
19973
19973
|
};
|
|
19974
19974
|
}, "createContextEvidenceReader");
|
|
19975
19975
|
|
|
19976
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19976
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
19977
19977
|
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");
|
|
19978
19978
|
var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options2 = {}) => {
|
|
19979
19979
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -19989,10 +19989,10 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options2 = {})
|
|
|
19989
19989
|
}, "excerpt");
|
|
19990
19990
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
19991
19991
|
|
|
19992
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19992
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/ingest.js
|
|
19993
19993
|
import { createInterface } from "node:readline";
|
|
19994
19994
|
|
|
19995
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19995
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/domain/vcard.js
|
|
19996
19996
|
import { createHash } from "node:crypto";
|
|
19997
19997
|
var MAX_ID = 512;
|
|
19998
19998
|
var AS_WORD = new RegExp(`^${WORD_BODY}$`);
|
|
@@ -20223,7 +20223,7 @@ var envelopeOfVcard = /* @__PURE__ */ __name((text2, { provider, account, batchI
|
|
|
20223
20223
|
};
|
|
20224
20224
|
}, "envelopeOfVcard");
|
|
20225
20225
|
|
|
20226
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20226
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/ingest.js
|
|
20227
20227
|
var emptyReceipt = /* @__PURE__ */ __name((dryRun, errors) => ({
|
|
20228
20228
|
dryRun,
|
|
20229
20229
|
source: null,
|
|
@@ -20323,7 +20323,7 @@ var ingestVcard = /* @__PURE__ */ __name(async (store, text2, { provider, batchI
|
|
|
20323
20323
|
return { ...await ingest(store, envelope, options2), vcard: issues };
|
|
20324
20324
|
}, "ingestVcard");
|
|
20325
20325
|
|
|
20326
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20326
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/link-scorers/shared.js
|
|
20327
20327
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
20328
20328
|
var folded = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "folded");
|
|
20329
20329
|
var wholeWords = /* @__PURE__ */ __name((term) => new RegExp(`(?<![\\p{L}\\p{N}\\p{M}_])${escaped(normalizeVocabularyName(term))}(?![\\p{L}\\p{N}\\p{M}_])`, "u"), "wholeWords");
|
|
@@ -20367,7 +20367,7 @@ var identitiesIn = /* @__PURE__ */ __name(async (store, people, provider) => {
|
|
|
20367
20367
|
var remembered = /* @__PURE__ */ __name((input, key, read2) => input.remember ? input.remember(key, read2) : read2(), "remembered");
|
|
20368
20368
|
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");
|
|
20369
20369
|
|
|
20370
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20370
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/link-scorers/alias-hits.js
|
|
20371
20371
|
var SEARCH_LIMIT = 500;
|
|
20372
20372
|
var aliasWeight = /* @__PURE__ */ __name((hits) => hits >= 10 ? 0.55 : hits >= 3 ? 0.35 : 0, "aliasWeight");
|
|
20373
20373
|
var aliasHits = {
|
|
@@ -20416,7 +20416,7 @@ var aliasHits = {
|
|
|
20416
20416
|
}, "candidates")
|
|
20417
20417
|
};
|
|
20418
20418
|
|
|
20419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-senders.js
|
|
20420
20420
|
var WEIGHT = 0.5;
|
|
20421
20421
|
var LARGE_GROUP_WEIGHT = 0.2;
|
|
20422
20422
|
var LARGE_GROUP = 30;
|
|
@@ -20488,7 +20488,7 @@ var sendersOf2 = /* @__PURE__ */ __name(async (input, chat, reference, key) => {
|
|
|
20488
20488
|
return found;
|
|
20489
20489
|
}, "sendersOf");
|
|
20490
20490
|
|
|
20491
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20491
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-title.js
|
|
20492
20492
|
var WEIGHT2 = 0.7;
|
|
20493
20493
|
var chatTitle = {
|
|
20494
20494
|
id: "chat-title",
|
|
@@ -20527,7 +20527,7 @@ var chatTitle = {
|
|
|
20527
20527
|
}, "candidates")
|
|
20528
20528
|
};
|
|
20529
20529
|
|
|
20530
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20530
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/link-scorers/email-domain.js
|
|
20531
20531
|
var WEIGHT3 = 0.3;
|
|
20532
20532
|
var CONTACTS = 500;
|
|
20533
20533
|
var MOST_PAIRS = 200;
|
|
@@ -20588,7 +20588,7 @@ var emailDomain = {
|
|
|
20588
20588
|
}, "candidates")
|
|
20589
20589
|
};
|
|
20590
20590
|
|
|
20591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20591
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/link-scorers/mail-thread.js
|
|
20592
20592
|
var NAMED = 0.7;
|
|
20593
20593
|
var MEMBER_ONLY = 0.3;
|
|
20594
20594
|
var READ_LIMIT2 = 500;
|
|
@@ -20662,7 +20662,7 @@ var mailThread = {
|
|
|
20662
20662
|
}, "candidates")
|
|
20663
20663
|
};
|
|
20664
20664
|
|
|
20665
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20665
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-chats.js
|
|
20666
20666
|
var WEIGHT4 = 0.5;
|
|
20667
20667
|
var memberChats = {
|
|
20668
20668
|
id: "member-chats",
|
|
@@ -20704,7 +20704,7 @@ var memberChats = {
|
|
|
20704
20704
|
}, "candidates")
|
|
20705
20705
|
};
|
|
20706
20706
|
|
|
20707
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20707
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-dialog.js
|
|
20708
20708
|
var WEIGHT5 = 0.6;
|
|
20709
20709
|
var memberDialog = {
|
|
20710
20710
|
id: "member-dialog",
|
|
@@ -20737,7 +20737,7 @@ var memberDialog = {
|
|
|
20737
20737
|
}, "candidates")
|
|
20738
20738
|
};
|
|
20739
20739
|
|
|
20740
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20740
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
20741
20741
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
20742
20742
|
var DEFAULT_PURPOSES = ["work"];
|
|
20743
20743
|
var LINK_PURPOSE = "work";
|
|
@@ -20767,7 +20767,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
20767
20767
|
...value.split(",").map((one2) => one2.trim()).filter(Boolean)
|
|
20768
20768
|
], "purposeList");
|
|
20769
20769
|
|
|
20770
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20770
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
20771
20771
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
20772
20772
|
async around(ref, window3) {
|
|
20773
20773
|
const at = parseLocator(ref);
|
|
@@ -20863,7 +20863,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
20863
20863
|
};
|
|
20864
20864
|
}, "storedNeighbours");
|
|
20865
20865
|
|
|
20866
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
20867
20867
|
import { createHash as createHash2 } from "node:crypto";
|
|
20868
20868
|
var DAY2 = 864e5;
|
|
20869
20869
|
var MAX_TIME = 864e13;
|
|
@@ -21179,7 +21179,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
21179
21179
|
return value;
|
|
21180
21180
|
}, "decodeCheckpoint");
|
|
21181
21181
|
|
|
21182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21182
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
21183
21183
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
21184
21184
|
var PAGE = 20;
|
|
21185
21185
|
var PEOPLE = 20;
|
|
@@ -21583,7 +21583,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
21583
21583
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
21584
21584
|
}, "peopleOf");
|
|
21585
21585
|
|
|
21586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
21587
21587
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
21588
21588
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
21589
21589
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -21627,7 +21627,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
21627
21627
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
21628
21628
|
}, "matchVocabularyTerms");
|
|
21629
21629
|
|
|
21630
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
21631
21631
|
var KINDS = ["project", "tag", "topic"];
|
|
21632
21632
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
|
|
21633
21633
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -21682,7 +21682,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
21682
21682
|
};
|
|
21683
21683
|
}, "findEvidenceMentions");
|
|
21684
21684
|
|
|
21685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21685
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
21686
21686
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
21687
21687
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
21688
21688
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -21920,8 +21920,8 @@ var gatherStoredProject = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
21920
21920
|
reason: "linked-chat-limit"
|
|
21921
21921
|
}))
|
|
21922
21922
|
];
|
|
21923
|
-
const
|
|
21924
|
-
const byRef = new Map(linked.map((one2) => [
|
|
21923
|
+
const refOf3 = /* @__PURE__ */ __name((one2) => formatReference({ type: "chat", ...one2 }), "refOf");
|
|
21924
|
+
const byRef = new Map(linked.map((one2) => [refOf3(one2), one2]));
|
|
21925
21925
|
const proposedLanes = /* @__PURE__ */ new Map();
|
|
21926
21926
|
for (const row of gathered.linkedChats) {
|
|
21927
21927
|
const proposed = byRef.get(row.ref)?.proposed;
|
|
@@ -21955,7 +21955,7 @@ var gatherStoredProject = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
21955
21955
|
chatCoverage(store, account, [one2.chat])
|
|
21956
21956
|
]);
|
|
21957
21957
|
leftOut.push({
|
|
21958
|
-
ref:
|
|
21958
|
+
ref: refOf3(one2),
|
|
21959
21959
|
provider: one2.provider,
|
|
21960
21960
|
account: one2.account,
|
|
21961
21961
|
chat: one2.chat,
|
|
@@ -21988,7 +21988,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
21988
21988
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
21989
21989
|
}, "purposeHintOf");
|
|
21990
21990
|
|
|
21991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/link-scorers/scan.js
|
|
21992
21992
|
var SCORERS = [chatTitle, aliasHits, memberChats, memberDialog, chatSenders, mailThread];
|
|
21993
21993
|
var PERSON_SCORERS = [emailDomain];
|
|
21994
21994
|
var SCAN_BOT = { bot: "memo-scan", kind: "rule" };
|
|
@@ -22244,18 +22244,18 @@ var referenceOf = /* @__PURE__ */ __name((text2) => {
|
|
|
22244
22244
|
}, "referenceOf");
|
|
22245
22245
|
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");
|
|
22246
22246
|
|
|
22247
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22247
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
22248
22248
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
22249
22249
|
|
|
22250
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22250
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
22251
22251
|
import { lstat } from "node:fs/promises";
|
|
22252
22252
|
|
|
22253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
22254
22254
|
import { createHash as createHash4, randomUUID as randomUUID3 } from "node:crypto";
|
|
22255
22255
|
import { open as open2, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
22256
22256
|
import { join as join5 } from "node:path";
|
|
22257
22257
|
|
|
22258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
22259
22259
|
import { createHash as createHash3 } from "node:crypto";
|
|
22260
22260
|
var metadataLimit = 16384;
|
|
22261
22261
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -22315,7 +22315,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
22315
22315
|
}
|
|
22316
22316
|
}, "readPartialMetadata");
|
|
22317
22317
|
|
|
22318
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22318
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
22319
22319
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
22320
22320
|
import { open, rename, unlink } from "node:fs/promises";
|
|
22321
22321
|
import { join as join4 } from "node:path";
|
|
@@ -22407,7 +22407,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
22407
22407
|
};
|
|
22408
22408
|
}, "partialWriter");
|
|
22409
22409
|
|
|
22410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
22411
22411
|
var NativeRecordingPartialStore = class {
|
|
22412
22412
|
static {
|
|
22413
22413
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -22514,12 +22514,12 @@ var NativeRecordingPartialStore = class {
|
|
|
22514
22514
|
}
|
|
22515
22515
|
};
|
|
22516
22516
|
|
|
22517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
22518
22518
|
import { createHash as createHash5 } from "node:crypto";
|
|
22519
22519
|
import { link as link2 } from "node:fs/promises";
|
|
22520
22520
|
import { basename, dirname as dirname4, join as join7, resolve } from "node:path";
|
|
22521
22521
|
|
|
22522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
22523
22523
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
22524
22524
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
22525
22525
|
signal?.throwIfAborted();
|
|
@@ -22554,7 +22554,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
22554
22554
|
signal?.throwIfAborted();
|
|
22555
22555
|
}, "commitPublication");
|
|
22556
22556
|
|
|
22557
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22557
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
22558
22558
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
22559
22559
|
import { open as open3, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
22560
22560
|
import { join as join6 } from "node:path";
|
|
@@ -22627,7 +22627,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
22627
22627
|
}
|
|
22628
22628
|
}, "writePublicationJournal");
|
|
22629
22629
|
|
|
22630
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
22631
22631
|
var NativeRecordingPublication = class {
|
|
22632
22632
|
static {
|
|
22633
22633
|
__name(this, "NativeRecordingPublication");
|
|
@@ -22700,7 +22700,7 @@ var NativeRecordingPublication = class {
|
|
|
22700
22700
|
}
|
|
22701
22701
|
};
|
|
22702
22702
|
|
|
22703
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22703
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
22704
22704
|
import { createHash as createHash6 } from "node:crypto";
|
|
22705
22705
|
import { readdir } from "node:fs/promises";
|
|
22706
22706
|
import { isAbsolute, join as join8, resolve as resolve2 } from "node:path";
|
|
@@ -22787,7 +22787,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one2, beforePublish) => wri
|
|
|
22787
22787
|
beforePublish
|
|
22788
22788
|
}), "commitMediaEntry");
|
|
22789
22789
|
|
|
22790
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22790
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
22791
22791
|
var validator = '"media-completed-v1"';
|
|
22792
22792
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
22793
22793
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -22888,7 +22888,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
22888
22888
|
return entry;
|
|
22889
22889
|
}, "archiveMediaFile");
|
|
22890
22890
|
|
|
22891
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22891
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
22892
22892
|
import { mkdir, realpath } from "node:fs/promises";
|
|
22893
22893
|
import { join as join9, resolve as resolve3 } from "node:path";
|
|
22894
22894
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -22955,7 +22955,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
22955
22955
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
22956
22956
|
}, "withMediaArchiveLocks");
|
|
22957
22957
|
|
|
22958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
22959
22959
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
22960
22960
|
if (value === void 0)
|
|
22961
22961
|
return void 0;
|
|
@@ -23108,7 +23108,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
|
|
|
23108
23108
|
}, { create: true });
|
|
23109
23109
|
}, "archiveMedia");
|
|
23110
23110
|
|
|
23111
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23111
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
23112
23112
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
23113
23113
|
import { basename as basename2, dirname as dirname5, join as join10, resolve as resolve4 } from "node:path";
|
|
23114
23114
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -23261,7 +23261,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
|
|
|
23261
23261
|
}, { additional: [target2], createAdditional: !options2.dryRun });
|
|
23262
23262
|
}, "moveMediaArchive");
|
|
23263
23263
|
|
|
23264
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
23265
23265
|
import { writeFileSync as writeFileSync2 } from "node:fs";
|
|
23266
23266
|
import { join as join11 } from "node:path";
|
|
23267
23267
|
var bytesOf2 = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
@@ -23286,7 +23286,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
23286
23286
|
`);
|
|
23287
23287
|
await nativeRuntime({ env, progress });
|
|
23288
23288
|
progress(`${model.id}: loading it once to check it works`);
|
|
23289
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
23289
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-DPA5QOIR.js");
|
|
23290
23290
|
const embedder = await openEmbedder2(model, directory2);
|
|
23291
23291
|
try {
|
|
23292
23292
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -23307,7 +23307,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
23307
23307
|
}
|
|
23308
23308
|
await nativeRuntime({ env, progress });
|
|
23309
23309
|
progress(`${model.id}: loading it once to check it works`);
|
|
23310
|
-
const { openReranker } = await import("./rerank-
|
|
23310
|
+
const { openReranker } = await import("./rerank-IXMWD7JV.js");
|
|
23311
23311
|
const reranker = await openReranker(model, directory2);
|
|
23312
23312
|
try {
|
|
23313
23313
|
await reranker.score("check", ["check"]);
|
|
@@ -23325,7 +23325,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
23325
23325
|
await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
23326
23326
|
}
|
|
23327
23327
|
progress(`${model.id}: loading it once to check it works`);
|
|
23328
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
23328
|
+
const { openPictureEmbedder } = await import("./embedder-IGI2UTFK.js");
|
|
23329
23329
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
23330
23330
|
try {
|
|
23331
23331
|
const vector = await embedder.embedQuery("check");
|
|
@@ -23337,7 +23337,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
23337
23337
|
return { model, directory: directory2 };
|
|
23338
23338
|
}, "downloadImageModel");
|
|
23339
23339
|
|
|
23340
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
23341
23341
|
var MONEY_REQUEST = "money-request";
|
|
23342
23342
|
var MONEY_DONE = "money-done";
|
|
23343
23343
|
var PROMISE = "promise";
|
|
@@ -23371,10 +23371,10 @@ var MONEY_WORDS = [
|
|
|
23371
23371
|
}
|
|
23372
23372
|
];
|
|
23373
23373
|
|
|
23374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
23375
23375
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
23376
23376
|
|
|
23377
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
23378
23378
|
var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
23379
23379
|
var MONEY_DONE_FORMS = words([
|
|
23380
23380
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -23414,7 +23414,7 @@ var PROMISE_FORMS = words([
|
|
|
23414
23414
|
"estar\xE1 listo"
|
|
23415
23415
|
]);
|
|
23416
23416
|
|
|
23417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23417
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
23418
23418
|
var EXCERPT_CHARS = 80;
|
|
23419
23419
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
23420
23420
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -23436,7 +23436,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
23436
23436
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
23437
23437
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
23438
23438
|
|
|
23439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
23440
23440
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
23441
23441
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
23442
23442
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -23517,7 +23517,7 @@ var amounts = {
|
|
|
23517
23517
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
23518
23518
|
};
|
|
23519
23519
|
|
|
23520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
23521
23521
|
var children = {
|
|
23522
23522
|
id: "children",
|
|
23523
23523
|
version: 1,
|
|
@@ -23546,7 +23546,7 @@ var children = {
|
|
|
23546
23546
|
}, "read")
|
|
23547
23547
|
};
|
|
23548
23548
|
|
|
23549
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23549
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
23550
23550
|
var coverage = {
|
|
23551
23551
|
id: "coverage",
|
|
23552
23552
|
version: 1,
|
|
@@ -23575,7 +23575,7 @@ var coverage = {
|
|
|
23575
23575
|
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")
|
|
23576
23576
|
};
|
|
23577
23577
|
|
|
23578
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
23579
23579
|
var holding2 = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
23580
23580
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
23581
23581
|
signal: "payments",
|
|
@@ -23625,7 +23625,7 @@ var payments = {
|
|
|
23625
23625
|
}, "read")
|
|
23626
23626
|
};
|
|
23627
23627
|
|
|
23628
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
23629
23629
|
var PATTERNS_PER_CHAT = 3;
|
|
23630
23630
|
var DAY3 = 864e5;
|
|
23631
23631
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -23714,7 +23714,7 @@ var promises = {
|
|
|
23714
23714
|
}, "read")
|
|
23715
23715
|
};
|
|
23716
23716
|
|
|
23717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23717
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
23718
23718
|
var PER_SIDE = 5;
|
|
23719
23719
|
var WEEK = 7 * 864e5;
|
|
23720
23720
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -23745,7 +23745,7 @@ var questions2 = {
|
|
|
23745
23745
|
}, "attention")
|
|
23746
23746
|
};
|
|
23747
23747
|
|
|
23748
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23748
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
23749
23749
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
23750
23750
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one2) => one2.id === id2), "byId");
|
|
23751
23751
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -23813,7 +23813,7 @@ var replyNext = {
|
|
|
23813
23813
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
23814
23814
|
};
|
|
23815
23815
|
|
|
23816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
23817
23817
|
var escaped2 = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
23818
23818
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped2(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
23819
23819
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -23859,7 +23859,7 @@ var topics = {
|
|
|
23859
23859
|
}, "read")
|
|
23860
23860
|
};
|
|
23861
23861
|
|
|
23862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23862
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
23863
23863
|
var STATUS_SIGNALS = [
|
|
23864
23864
|
replyNext,
|
|
23865
23865
|
questions2,
|
|
@@ -23871,7 +23871,7 @@ var STATUS_SIGNALS = [
|
|
|
23871
23871
|
children
|
|
23872
23872
|
];
|
|
23873
23873
|
|
|
23874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
23875
23875
|
var DAY4 = 864e5;
|
|
23876
23876
|
var STATUS_WINDOW = 300;
|
|
23877
23877
|
var STATUS_CHATS = 16;
|
|
@@ -24060,7 +24060,69 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
24060
24060
|
};
|
|
24061
24061
|
}, "projectStatus");
|
|
24062
24062
|
|
|
24063
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24063
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-activity.js
|
|
24064
|
+
var TOP = 3;
|
|
24065
|
+
var projectActivity = /* @__PURE__ */ __name(async (store, input) => {
|
|
24066
|
+
const until = input.until ?? Date.now();
|
|
24067
|
+
if (!(input.since < until))
|
|
24068
|
+
throw new CliError("validation_error", "the window must start before it ends");
|
|
24069
|
+
const whole3 = /* @__PURE__ */ __name((n) => n === void 0 || Number.isInteger(n) && n >= 0, "whole");
|
|
24070
|
+
if (!(input.limit >= 1 && whole3(input.limit) && whole3(input.offset) && whole3(input.top)))
|
|
24071
|
+
throw new CliError("validation_error", "limit must be at least 1; offset and top whole numbers from 0");
|
|
24072
|
+
const catalog = await projectsCatalog(store);
|
|
24073
|
+
const linked = [];
|
|
24074
|
+
for (const [ref, entry] of catalog) {
|
|
24075
|
+
const root = { ref, key: entry.key ?? null, name: entry.name };
|
|
24076
|
+
const { children: children2, cut } = await childrenOf(store, root, catalog);
|
|
24077
|
+
const chats = /* @__PURE__ */ new Map();
|
|
24078
|
+
for (const project2 of [root, ...children2])
|
|
24079
|
+
for (const link4 of await linkedChatsOf(store, project2.ref)) {
|
|
24080
|
+
if (!inAccounts(input.accounts, link4.provider, link4.account))
|
|
24081
|
+
continue;
|
|
24082
|
+
chats.set(refOf(link4), link4);
|
|
24083
|
+
}
|
|
24084
|
+
linked.push({
|
|
24085
|
+
project: ref,
|
|
24086
|
+
key: root.key,
|
|
24087
|
+
name: root.name,
|
|
24088
|
+
chats: [...chats.values()],
|
|
24089
|
+
partial: cut.some((one2) => one2.reason !== "cycle")
|
|
24090
|
+
});
|
|
24091
|
+
}
|
|
24092
|
+
const unique = new Map(linked.flatMap(({ chats }) => chats.map((chat) => [refOf(chat), chat])));
|
|
24093
|
+
const asked = [...unique.values()];
|
|
24094
|
+
const counts = await store.messages.chatActivityCounts(asked.map((chat) => ({ account: { provider: chat.provider, account: chat.account }, chatId: chat.chat })), { since: input.since, until, now: Date.now() });
|
|
24095
|
+
const countOf = new Map(asked.map((chat, index) => [refOf(chat), counts[index]]));
|
|
24096
|
+
const all = linked.map(({ project: project2, key, name, chats, partial }) => {
|
|
24097
|
+
const known2 = chats.flatMap((chat) => {
|
|
24098
|
+
const count4 = countOf.get(refOf(chat));
|
|
24099
|
+
return count4 ? [{ ref: refOf(chat), ...count4 }] : [];
|
|
24100
|
+
});
|
|
24101
|
+
const counted2 = known2.filter((chat) => !chat.muted);
|
|
24102
|
+
const last = counted2.map((chat) => chat.lastAt).filter((at) => at !== null);
|
|
24103
|
+
return {
|
|
24104
|
+
ref: project2,
|
|
24105
|
+
key,
|
|
24106
|
+
name,
|
|
24107
|
+
chats: chats.length,
|
|
24108
|
+
muted: known2.length - counted2.length,
|
|
24109
|
+
messages: counted2.reduce((sum2, chat) => sum2 + chat.messages, 0),
|
|
24110
|
+
sent: counted2.reduce((sum2, chat) => sum2 + chat.sent, 0),
|
|
24111
|
+
lastAt: last.sort().at(-1) ?? null,
|
|
24112
|
+
top: counted2.filter((chat) => chat.messages > 0).sort((a, b) => b.messages - a.messages || a.ref.localeCompare(b.ref, void 0, { numeric: true })).slice(0, input.top ?? TOP).map(({ ref, title, messages }) => ({ ref, title, messages })),
|
|
24113
|
+
partial
|
|
24114
|
+
};
|
|
24115
|
+
});
|
|
24116
|
+
all.sort((a, b) => b.messages - a.messages || (b.lastAt ?? "").localeCompare(a.lastAt ?? "") || b.chats - a.chats || a.ref.localeCompare(b.ref, void 0, { numeric: true }));
|
|
24117
|
+
return {
|
|
24118
|
+
items: all.slice(input.offset, input.offset + input.limit),
|
|
24119
|
+
total: all.length,
|
|
24120
|
+
hasMore: input.offset + input.limit < all.length
|
|
24121
|
+
};
|
|
24122
|
+
}, "projectActivity");
|
|
24123
|
+
var refOf = /* @__PURE__ */ __name((chat) => formatReference({ type: "chat", provider: chat.provider, account: chat.account, chat: chat.chat }), "refOf");
|
|
24124
|
+
|
|
24125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
24064
24126
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
24065
24127
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
24066
24128
|
if (deps.offline)
|
|
@@ -24132,7 +24194,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
24132
24194
|
};
|
|
24133
24195
|
}, "accountService");
|
|
24134
24196
|
|
|
24135
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24197
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
24136
24198
|
var MINUTE = 6e4;
|
|
24137
24199
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
24138
24200
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -24151,7 +24213,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
24151
24213
|
return new Date(at - at % MINUTE).toISOString();
|
|
24152
24214
|
}, "sendTime");
|
|
24153
24215
|
|
|
24154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24216
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
24155
24217
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write2) => {
|
|
24156
24218
|
try {
|
|
24157
24219
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -24398,7 +24460,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
24398
24460
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
24399
24461
|
}, "linkLimits");
|
|
24400
24462
|
|
|
24401
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24463
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
24402
24464
|
var THREADS_PAGE = 500;
|
|
24403
24465
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
24404
24466
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -24477,7 +24539,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
24477
24539
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
24478
24540
|
}, "readMail");
|
|
24479
24541
|
|
|
24480
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24542
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
24481
24543
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
24482
24544
|
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");
|
|
24483
24545
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -24826,7 +24888,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
24826
24888
|
};
|
|
24827
24889
|
}, "statsLucene");
|
|
24828
24890
|
|
|
24829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24891
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
24830
24892
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
24831
24893
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
24832
24894
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -24866,7 +24928,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
24866
24928
|
};
|
|
24867
24929
|
}, "dateWindow");
|
|
24868
24930
|
|
|
24869
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
24870
24932
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
24871
24933
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
24872
24934
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -25035,7 +25097,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
25035
25097
|
};
|
|
25036
25098
|
}, "readRankingSelection");
|
|
25037
25099
|
|
|
25038
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
25039
25101
|
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");
|
|
25040
25102
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
25041
25103
|
command,
|
|
@@ -25045,7 +25107,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
25045
25107
|
fieldsVersion: FIELD_VERSION
|
|
25046
25108
|
}), "searchRecordOf");
|
|
25047
25109
|
|
|
25048
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25110
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
25049
25111
|
function invalid2(message) {
|
|
25050
25112
|
throw new CliError("validation_error", message);
|
|
25051
25113
|
}
|
|
@@ -25339,10 +25401,10 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
25339
25401
|
}, "evidence")
|
|
25340
25402
|
}), "adminStatisticsService");
|
|
25341
25403
|
|
|
25342
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25404
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
25343
25405
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
25344
25406
|
|
|
25345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25407
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
25346
25408
|
var REQUEST_MS = 400;
|
|
25347
25409
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
25348
25410
|
const lowest = ranges[0];
|
|
@@ -25365,13 +25427,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
25365
25427
|
};
|
|
25366
25428
|
}, "estimateBackfill");
|
|
25367
25429
|
|
|
25368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
25369
25431
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
25370
25432
|
...error,
|
|
25371
25433
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
25372
25434
|
}), "withRecovery");
|
|
25373
25435
|
|
|
25374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25436
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
25375
25437
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
25376
25438
|
if (isCliFailure(error))
|
|
25377
25439
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -25454,7 +25516,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
25454
25516
|
};
|
|
25455
25517
|
}, "mergeBatches");
|
|
25456
25518
|
|
|
25457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25519
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
25458
25520
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
25459
25521
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
25460
25522
|
var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
@@ -25477,7 +25539,7 @@ var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
|
25477
25539
|
}
|
|
25478
25540
|
}, "patiently");
|
|
25479
25541
|
|
|
25480
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25542
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
25481
25543
|
var CONTEXT_MESSAGES = 3;
|
|
25482
25544
|
var CONTEXT_MINUTES = 10;
|
|
25483
25545
|
var MAX_CHARS = 1200;
|
|
@@ -25501,12 +25563,12 @@ var context = {
|
|
|
25501
25563
|
}, "describe")
|
|
25502
25564
|
};
|
|
25503
25565
|
|
|
25504
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25566
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
25505
25567
|
var BUILT_INS = [context];
|
|
25506
25568
|
var providers = [...BUILT_INS];
|
|
25507
25569
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
25508
25570
|
|
|
25509
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25571
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
25510
25572
|
var READ_PAGE = 5e3;
|
|
25511
25573
|
var CHAIN = 50;
|
|
25512
25574
|
var CONVERSATION_QUERY = {
|
|
@@ -25658,7 +25720,7 @@ var sized = /* @__PURE__ */ __name((size4) => {
|
|
|
25658
25720
|
return size4;
|
|
25659
25721
|
}, "sized");
|
|
25660
25722
|
|
|
25661
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
25662
25724
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
25663
25725
|
var MESSAGE_PAGE = 5e3;
|
|
25664
25726
|
var PER_SESSION = 8;
|
|
@@ -25677,7 +25739,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
25677
25739
|
price: remote.price,
|
|
25678
25740
|
installed: true,
|
|
25679
25741
|
perBatch: PER_REQUEST * concurrency,
|
|
25680
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
25742
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-HVKKXNYZ.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
25681
25743
|
};
|
|
25682
25744
|
}
|
|
25683
25745
|
const model = textModel(choice, deps.env);
|
|
@@ -25694,7 +25756,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
25694
25756
|
if (!isTextModelInstalled(model, directory2))
|
|
25695
25757
|
throw notDownloaded(model.id);
|
|
25696
25758
|
if (apart) {
|
|
25697
|
-
const { openProcess } = await import("./process-
|
|
25759
|
+
const { openProcess } = await import("./process-FMQ7Q7AI.js");
|
|
25698
25760
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
25699
25761
|
}
|
|
25700
25762
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -25983,7 +26045,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
25983
26045
|
return { ...one2, state };
|
|
25984
26046
|
}, "shaped");
|
|
25985
26047
|
|
|
25986
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26048
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
25987
26049
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
25988
26050
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
|
|
25989
26051
|
for (const [key, value, maximum] of [
|
|
@@ -26036,7 +26098,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
|
|
|
26036
26098
|
}
|
|
26037
26099
|
}, "catchUpSearch");
|
|
26038
26100
|
|
|
26039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26101
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
26040
26102
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
26041
26103
|
if (deps.reads === "store") {
|
|
26042
26104
|
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`);
|
|
@@ -26417,7 +26479,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
26417
26479
|
return message?.timestamp ?? fallback;
|
|
26418
26480
|
}, "timeOfKey");
|
|
26419
26481
|
|
|
26420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
26421
26483
|
import { createHash as createHash7, randomUUID as randomUUID5 } from "node:crypto";
|
|
26422
26484
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
26423
26485
|
var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
|
|
@@ -26554,16 +26616,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
26554
26616
|
return { plan, repair };
|
|
26555
26617
|
}, "gapsService");
|
|
26556
26618
|
|
|
26557
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26619
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
26558
26620
|
import { createHash as createHash9 } from "node:crypto";
|
|
26559
26621
|
import { constants as constants2, mkdirSync as mkdirSync5 } from "node:fs";
|
|
26560
26622
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
26561
26623
|
|
|
26562
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
26563
26625
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
26564
26626
|
import { basename as basename4, join as join12, relative as relative2, sep as sep2 } from "node:path";
|
|
26565
26627
|
|
|
26566
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
26567
26629
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
26568
26630
|
import { open as open4, stat } from "node:fs/promises";
|
|
26569
26631
|
import { basename as basename3, dirname as dirname6, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -26765,7 +26827,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read2) => {
|
|
|
26765
26827
|
return { name, source };
|
|
26766
26828
|
}, "readStickerFile");
|
|
26767
26829
|
|
|
26768
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26830
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
26769
26831
|
var MAX_FILES = 1e4;
|
|
26770
26832
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app, env) => {
|
|
26771
26833
|
if (refusedPlace(directory2, app, env))
|
|
@@ -26834,15 +26896,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
26834
26896
|
return choices;
|
|
26835
26897
|
}, "directoryPaths");
|
|
26836
26898
|
|
|
26837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
26838
26900
|
import { posix } from "node:path";
|
|
26839
26901
|
|
|
26840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
26841
26903
|
import { setImmediate as tick } from "node:timers/promises";
|
|
26842
26904
|
import { crc32 } from "node:zlib";
|
|
26843
26905
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
26844
26906
|
|
|
26845
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
26846
26908
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
26847
26909
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
26848
26910
|
var SAMPLE = 65536;
|
|
@@ -26944,7 +27006,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
26944
27006
|
return result.text;
|
|
26945
27007
|
}, "decodeXml");
|
|
26946
27008
|
|
|
26947
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27009
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
26948
27010
|
var MAX_PART = 10 * 1024 * 1024;
|
|
26949
27011
|
var MAX_ENTRIES = 1e3;
|
|
26950
27012
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -27159,7 +27221,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
27159
27221
|
return found;
|
|
27160
27222
|
}, "elements");
|
|
27161
27223
|
|
|
27162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
27163
27225
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
27164
27226
|
let name = "";
|
|
27165
27227
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -27214,7 +27276,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
27214
27276
|
return { text: parts.join("").trim(), truncated: false };
|
|
27215
27277
|
}, "sheetText");
|
|
27216
27278
|
|
|
27217
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
27218
27280
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
27219
27281
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
27220
27282
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -27614,10 +27676,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
27614
27676
|
}
|
|
27615
27677
|
}, "readDocument");
|
|
27616
27678
|
|
|
27617
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27679
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
27618
27680
|
import { extname as extname3 } from "node:path";
|
|
27619
27681
|
|
|
27620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27682
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
27621
27683
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
27622
27684
|
import { dirname as dirname7, extname as extname2, join as join13 } from "node:path";
|
|
27623
27685
|
import { fileURLToPath } from "node:url";
|
|
@@ -27678,7 +27740,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
27678
27740
|
}
|
|
27679
27741
|
}, "derived");
|
|
27680
27742
|
|
|
27681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27743
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
27682
27744
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
27683
27745
|
var image2 = {
|
|
27684
27746
|
id: "image",
|
|
@@ -27687,7 +27749,7 @@ var image2 = {
|
|
|
27687
27749
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
27688
27750
|
};
|
|
27689
27751
|
|
|
27690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
27691
27753
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
27692
27754
|
var doc = {
|
|
27693
27755
|
id: "doc",
|
|
@@ -27699,7 +27761,7 @@ var doc = {
|
|
|
27699
27761
|
}), "read")
|
|
27700
27762
|
};
|
|
27701
27763
|
|
|
27702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27764
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
27703
27765
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
27704
27766
|
var docx = {
|
|
27705
27767
|
id: "docx",
|
|
@@ -27712,7 +27774,7 @@ var docx = {
|
|
|
27712
27774
|
}), "read")
|
|
27713
27775
|
};
|
|
27714
27776
|
|
|
27715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27777
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
27716
27778
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
27717
27779
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
27718
27780
|
"fonttbl",
|
|
@@ -27888,7 +27950,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
27888
27950
|
}, "htmlText");
|
|
27889
27951
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
27890
27952
|
|
|
27891
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
27892
27954
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
27893
27955
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
27894
27956
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -27944,7 +28006,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
27944
28006
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
27945
28007
|
}, "markdownSections");
|
|
27946
28008
|
|
|
27947
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28009
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
27948
28010
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
27949
28011
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
27950
28012
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -28015,7 +28077,7 @@ var html = {
|
|
|
28015
28077
|
}, "read")
|
|
28016
28078
|
};
|
|
28017
28079
|
|
|
28018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28080
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
28019
28081
|
var office = {
|
|
28020
28082
|
id: "office",
|
|
28021
28083
|
version: documentExtractor("odt"),
|
|
@@ -28026,7 +28088,7 @@ var office = {
|
|
|
28026
28088
|
}, "read")
|
|
28027
28089
|
};
|
|
28028
28090
|
|
|
28029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28091
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
28030
28092
|
var pdf = {
|
|
28031
28093
|
id: "pdf",
|
|
28032
28094
|
version: "unpdf",
|
|
@@ -28093,7 +28155,7 @@ var pdf = {
|
|
|
28093
28155
|
}), "read")
|
|
28094
28156
|
};
|
|
28095
28157
|
|
|
28096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
28097
28159
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
28098
28160
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
28099
28161
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -28113,7 +28175,7 @@ var plain = {
|
|
|
28113
28175
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
28114
28176
|
};
|
|
28115
28177
|
|
|
28116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
28117
28179
|
var rtf = {
|
|
28118
28180
|
id: "rtf",
|
|
28119
28181
|
version: "v1",
|
|
@@ -28121,10 +28183,10 @@ var rtf = {
|
|
|
28121
28183
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
28122
28184
|
};
|
|
28123
28185
|
|
|
28124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28186
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
28125
28187
|
import { basename as basename5 } from "node:path";
|
|
28126
28188
|
|
|
28127
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28189
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
28128
28190
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
28129
28191
|
const cells = [];
|
|
28130
28192
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -28162,7 +28224,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
28162
28224
|
return { cells, truncated };
|
|
28163
28225
|
}, "delimitedSpans");
|
|
28164
28226
|
|
|
28165
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
28166
28228
|
var DELIMITED = {
|
|
28167
28229
|
".csv": ",",
|
|
28168
28230
|
".tsv": " ",
|
|
@@ -28201,7 +28263,7 @@ var sheets = {
|
|
|
28201
28263
|
}, "read")
|
|
28202
28264
|
};
|
|
28203
28265
|
|
|
28204
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28266
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
28205
28267
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
28206
28268
|
var HEAD_BYTES = 1024;
|
|
28207
28269
|
var readers = [...BUILT_INS2];
|
|
@@ -28211,7 +28273,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
28211
28273
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
28212
28274
|
}, "readWithRegistry");
|
|
28213
28275
|
|
|
28214
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28276
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
28215
28277
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
28216
28278
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
28217
28279
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -29290,7 +29352,7 @@ function imageSize(input) {
|
|
|
29290
29352
|
}
|
|
29291
29353
|
__name(imageSize, "imageSize");
|
|
29292
29354
|
|
|
29293
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29355
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
29294
29356
|
var MAX_PAGES = 20;
|
|
29295
29357
|
var MAX_PIXELS = 2e7;
|
|
29296
29358
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -29441,7 +29503,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
29441
29503
|
}
|
|
29442
29504
|
}, "ocrPdf");
|
|
29443
29505
|
|
|
29444
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
29445
29507
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
29446
29508
|
const limits = pdfPreviewLimits(env);
|
|
29447
29509
|
const cancelled3 = /* @__PURE__ */ __name(() => {
|
|
@@ -29518,7 +29580,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
29518
29580
|
}
|
|
29519
29581
|
}, "pdfPreview");
|
|
29520
29582
|
|
|
29521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29583
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
29522
29584
|
import { createHash as createHash8 } from "node:crypto";
|
|
29523
29585
|
import { constants } from "node:fs";
|
|
29524
29586
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -29626,7 +29688,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
29626
29688
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
29627
29689
|
}, "transferMime");
|
|
29628
29690
|
|
|
29629
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29691
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
29630
29692
|
import { createWriteStream, mkdirSync as mkdirSync4 } from "node:fs";
|
|
29631
29693
|
import { link as link3, rm } from "node:fs/promises";
|
|
29632
29694
|
import { join as join14, resolve as resolve6 } from "node:path";
|
|
@@ -29740,7 +29802,7 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
29740
29802
|
}
|
|
29741
29803
|
}, "save");
|
|
29742
29804
|
|
|
29743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
29744
29806
|
var ATTACHMENT_QUERY = {
|
|
29745
29807
|
entity: "attachment",
|
|
29746
29808
|
backend: "sql",
|
|
@@ -30163,7 +30225,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30163
30225
|
}, "setText")
|
|
30164
30226
|
}), "attachmentsService");
|
|
30165
30227
|
|
|
30166
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30228
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
30167
30229
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
30168
30230
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
30169
30231
|
const store = await accountStore(deps);
|
|
@@ -30193,7 +30255,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30193
30255
|
}, "list")
|
|
30194
30256
|
}), "chatDocumentsService");
|
|
30195
30257
|
|
|
30196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
30197
30259
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
30198
30260
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
30199
30261
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -30280,7 +30342,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
30280
30342
|
}
|
|
30281
30343
|
}, "isRetentionSelection");
|
|
30282
30344
|
|
|
30283
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
30284
30346
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
30285
30347
|
const fields = text2.split(",").map((one2) => one2.trim());
|
|
30286
30348
|
if (!fields.length || fields.some((one2) => !COUNTER_FIELDS.includes(one2)) || new Set(fields).size !== fields.length)
|
|
@@ -30487,7 +30549,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
30487
30549
|
};
|
|
30488
30550
|
}, "countersService");
|
|
30489
30551
|
|
|
30490
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30552
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
30491
30553
|
var SYNC_KEY = "messages.sync-first";
|
|
30492
30554
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
30493
30555
|
var keyOf3 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -30619,7 +30681,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
30619
30681
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
30620
30682
|
}), "withRefresh");
|
|
30621
30683
|
|
|
30622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30684
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
30623
30685
|
var CANDIDATES = 50;
|
|
30624
30686
|
var WORD_HITS = 200;
|
|
30625
30687
|
var RRF_K = 60;
|
|
@@ -30894,13 +30956,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
30894
30956
|
return mean2.map((value) => value / length);
|
|
30895
30957
|
}, "meanOf");
|
|
30896
30958
|
|
|
30897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30959
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
30898
30960
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
30899
30961
|
...embeddingsMaintenance(deps),
|
|
30900
30962
|
...embeddingsSearch(deps)
|
|
30901
30963
|
}), "embeddingsService");
|
|
30902
30964
|
|
|
30903
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30965
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
30904
30966
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
30905
30967
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
30906
30968
|
if (deps.offline)
|
|
@@ -31041,7 +31103,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
31041
31103
|
};
|
|
31042
31104
|
}, "foldersService");
|
|
31043
31105
|
|
|
31044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31106
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
31045
31107
|
var INBOX_CHATS = 20;
|
|
31046
31108
|
var REVIEW_DAYS = 3;
|
|
31047
31109
|
var UNANSWERED_HOURS = 24;
|
|
@@ -31249,7 +31311,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
31249
31311
|
};
|
|
31250
31312
|
}, "inboxService");
|
|
31251
31313
|
|
|
31252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31314
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
31253
31315
|
var REVIEW_COUNT = 500;
|
|
31254
31316
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
31255
31317
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -31328,7 +31390,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
31328
31390
|
};
|
|
31329
31391
|
}, "mentionsService");
|
|
31330
31392
|
|
|
31331
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31393
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
31332
31394
|
var invalid3 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
31333
31395
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
31334
31396
|
const { text: text2, spans } = formatted2;
|
|
@@ -31388,7 +31450,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
31388
31450
|
};
|
|
31389
31451
|
}, "visibleFormattedText");
|
|
31390
31452
|
|
|
31391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31453
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
31392
31454
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
31393
31455
|
position,
|
|
31394
31456
|
kind,
|
|
@@ -31437,7 +31499,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
31437
31499
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
31438
31500
|
}, "validatePermalink");
|
|
31439
31501
|
|
|
31440
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31502
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
31441
31503
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
31442
31504
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
31443
31505
|
return `${seconds / 86400}d`;
|
|
@@ -31469,7 +31531,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
31469
31531
|
return seconds;
|
|
31470
31532
|
}, "pinDurationOf");
|
|
31471
31533
|
|
|
31472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
31473
31535
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
31474
31536
|
if (sendAs === void 0) {
|
|
31475
31537
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -31494,7 +31556,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
31494
31556
|
return sendAs;
|
|
31495
31557
|
}, "typedSendAs");
|
|
31496
31558
|
|
|
31497
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31559
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
31498
31560
|
var TOTAL_CAP = 1e4;
|
|
31499
31561
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
31500
31562
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -31505,7 +31567,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
31505
31567
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
31506
31568
|
}, "totalOf");
|
|
31507
31569
|
|
|
31508
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
31509
31571
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
31510
31572
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
31511
31573
|
let narrows = false;
|
|
@@ -31534,7 +31596,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
31534
31596
|
return wanted(root).join(" ").trim();
|
|
31535
31597
|
}, "meaningWords");
|
|
31536
31598
|
|
|
31537
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31599
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
31538
31600
|
var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
31539
31601
|
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"));
|
|
31540
31602
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -31667,7 +31729,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
31667
31729
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
31668
31730
|
}, "questionLookup");
|
|
31669
31731
|
|
|
31670
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31732
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
31671
31733
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
31672
31734
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
31673
31735
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
|
|
@@ -31861,7 +31923,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
31861
31923
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
|
|
31862
31924
|
}, "signals");
|
|
31863
31925
|
|
|
31864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
31865
31927
|
var MEANING_DEPTH = 100;
|
|
31866
31928
|
var RRF_K2 = 60;
|
|
31867
31929
|
var RERANK_DEPTH = 50;
|
|
@@ -32187,7 +32249,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
32187
32249
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
32188
32250
|
}, "mixedWithReranker");
|
|
32189
32251
|
|
|
32190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
32191
32253
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
32192
32254
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
32193
32255
|
var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
|
|
@@ -32386,7 +32448,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
32386
32448
|
return result;
|
|
32387
32449
|
}, "readThreadContext");
|
|
32388
32450
|
|
|
32389
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32451
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
32390
32452
|
var SEARCH_FILL_MS = 200;
|
|
32391
32453
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
32392
32454
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -32455,7 +32517,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
32455
32517
|
}, "accountOf");
|
|
32456
32518
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
32457
32519
|
|
|
32458
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
|
|
32459
32521
|
var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
32460
32522
|
const chosen = chosenTextModel(env);
|
|
32461
32523
|
if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
|
|
@@ -32470,12 +32532,12 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
|
32470
32532
|
return (counts.get(before2) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
|
|
32471
32533
|
}, "meaningModel");
|
|
32472
32534
|
|
|
32473
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32474
32536
|
import { createHash as createHash10 } from "node:crypto";
|
|
32475
32537
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
32476
32538
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
32477
32539
|
|
|
32478
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32540
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
32479
32541
|
var GROUP_SETTINGS = [
|
|
32480
32542
|
"allCanPin",
|
|
32481
32543
|
"onlyAdminsAdd",
|
|
@@ -32489,7 +32551,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
32489
32551
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
32490
32552
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
32491
32553
|
|
|
32492
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32554
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32493
32555
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
32494
32556
|
var PICTURE_FLOOR = 0.25;
|
|
32495
32557
|
var PAGE4 = 50;
|
|
@@ -32506,7 +32568,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
32506
32568
|
const directory2 = imageModelsDirectory(deps.env);
|
|
32507
32569
|
if (!isImageModelInstalled(model2, directory2))
|
|
32508
32570
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
32509
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
32571
|
+
const { openPictureEmbedder } = await import("./embedder-IGI2UTFK.js");
|
|
32510
32572
|
return openPictureEmbedder(model2, directory2);
|
|
32511
32573
|
}, "open");
|
|
32512
32574
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -32703,7 +32765,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
32703
32765
|
}, "search")
|
|
32704
32766
|
}), "withPictures");
|
|
32705
32767
|
|
|
32706
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32768
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
32707
32769
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
32708
32770
|
try {
|
|
32709
32771
|
const text2 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -32782,7 +32844,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
32782
32844
|
}
|
|
32783
32845
|
}, "meaningLane");
|
|
32784
32846
|
|
|
32785
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32847
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
32786
32848
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
32787
32849
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
32788
32850
|
if (choice === "off")
|
|
@@ -32794,9 +32856,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32794
32856
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
32795
32857
|
try {
|
|
32796
32858
|
const warm = deps.embedders;
|
|
32797
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
32859
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-FMQ7Q7AI.js")).openRerankerProcess(model, directory2, {
|
|
32798
32860
|
threads: defaultThreads()
|
|
32799
|
-
})) : await (await import("./rerank-
|
|
32861
|
+
})) : await (await import("./rerank-IXMWD7JV.js")).openReranker(model, directory2);
|
|
32800
32862
|
return {
|
|
32801
32863
|
model: model.id,
|
|
32802
32864
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -32816,7 +32878,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32816
32878
|
};
|
|
32817
32879
|
}, "rerankLane");
|
|
32818
32880
|
|
|
32819
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32881
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/search/question-period.js
|
|
32820
32882
|
var DAY5 = 864e5;
|
|
32821
32883
|
var SPAN = { start: 0, end: 0 };
|
|
32822
32884
|
var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
|
|
@@ -32941,17 +33003,17 @@ var questionPeriod = /* @__PURE__ */ __name((text2, now, zone) => {
|
|
|
32941
33003
|
};
|
|
32942
33004
|
}, "questionPeriod");
|
|
32943
33005
|
|
|
32944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
32945
33007
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
32946
33008
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
32947
33009
|
const directory2 = imageModelsDirectory(env);
|
|
32948
33010
|
if (!isImageModelInstalled(model, directory2))
|
|
32949
33011
|
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 });
|
|
32950
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
33012
|
+
const { openPictureEmbedder } = await import("./embedder-IGI2UTFK.js");
|
|
32951
33013
|
return openPictureEmbedder(model, directory2);
|
|
32952
33014
|
}, "openPictureEmbedderFor");
|
|
32953
33015
|
|
|
32954
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33016
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
32955
33017
|
var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) => {
|
|
32956
33018
|
const metadata = note2.frontMatter;
|
|
32957
33019
|
const account = accounts.find(({ id: id2 }) => String(id2) === note2.folderId);
|
|
@@ -32966,7 +33028,7 @@ var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) =
|
|
|
32966
33028
|
};
|
|
32967
33029
|
}, "documentSource");
|
|
32968
33030
|
|
|
32969
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33031
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
32970
33032
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
32971
33033
|
const host = new URL(baseUrl).host;
|
|
32972
33034
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -32999,7 +33061,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
32999
33061
|
};
|
|
33000
33062
|
}, "embeddingKeys");
|
|
33001
33063
|
|
|
33002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
33003
33065
|
var options = strictObject({
|
|
33004
33066
|
temperature: range(0, 2),
|
|
33005
33067
|
top_p: range(0, 1),
|
|
@@ -33053,7 +33115,7 @@ var openai = {
|
|
|
33053
33115
|
}), "complete")
|
|
33054
33116
|
};
|
|
33055
33117
|
|
|
33056
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
33057
33119
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
33058
33120
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
33059
33121
|
if (deps.signal?.aborted)
|
|
@@ -33068,7 +33130,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
33068
33130
|
if (!adapter && target2.provider === "openai")
|
|
33069
33131
|
adapter = openai;
|
|
33070
33132
|
if (!adapter && target2.provider === "anthropic")
|
|
33071
|
-
adapter = (await import("./anthropic-
|
|
33133
|
+
adapter = (await import("./anthropic-FC6XUSWM.js")).anthropic;
|
|
33072
33134
|
if (!adapter)
|
|
33073
33135
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
33074
33136
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -33123,7 +33185,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
33123
33185
|
}, "complete")
|
|
33124
33186
|
}), "modelGateway");
|
|
33125
33187
|
|
|
33126
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33188
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
|
|
33127
33189
|
var SECTION = "enrichment";
|
|
33128
33190
|
var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
|
|
33129
33191
|
var DEFAULT_BASE_URLS = {
|
|
@@ -33198,7 +33260,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
|
|
|
33198
33260
|
return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
|
|
33199
33261
|
}, "costOf");
|
|
33200
33262
|
|
|
33201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33263
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/enrichment.js
|
|
33202
33264
|
var ENRICH_PER_RUN = 600;
|
|
33203
33265
|
var BATCH = 20;
|
|
33204
33266
|
var CONCURRENCY = 4;
|
|
@@ -33445,7 +33507,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
|
|
|
33445
33507
|
};
|
|
33446
33508
|
}, "enrichmentState");
|
|
33447
33509
|
|
|
33448
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33510
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
33449
33511
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
33450
33512
|
let root;
|
|
33451
33513
|
try {
|
|
@@ -33472,7 +33534,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words4) => {
|
|
|
33472
33534
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
33473
33535
|
}, "titleTiers");
|
|
33474
33536
|
|
|
33475
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33537
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
33476
33538
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
33477
33539
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
33478
33540
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -33955,7 +34017,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
33955
34017
|
};
|
|
33956
34018
|
}, "searchNotesOf");
|
|
33957
34019
|
|
|
33958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
33959
34021
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
33960
34022
|
var iso = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
33961
34023
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -34073,7 +34135,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
34073
34135
|
};
|
|
34074
34136
|
}, "searchEvents");
|
|
34075
34137
|
|
|
34076
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
|
|
34077
34139
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
34078
34140
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
34079
34141
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -34104,7 +34166,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words4, anyWo
|
|
|
34104
34166
|
};
|
|
34105
34167
|
}, "searchBusiness");
|
|
34106
34168
|
|
|
34107
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
34108
34170
|
var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
|
|
34109
34171
|
let before2 = Number.POSITIVE_INFINITY;
|
|
34110
34172
|
for (; ; ) {
|
|
@@ -34166,7 +34228,7 @@ var searchMeetingHits = /* @__PURE__ */ __name(async (store, query, request, opt
|
|
|
34166
34228
|
return { ...result, selection };
|
|
34167
34229
|
}, "searchMeetingHits");
|
|
34168
34230
|
|
|
34169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34231
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
34170
34232
|
var MOST_HITS_PER_MEETING = 3;
|
|
34171
34233
|
var PAGE_ROWS = 200;
|
|
34172
34234
|
var MOST_PAGES = 25;
|
|
@@ -34394,7 +34456,7 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
|
|
|
34394
34456
|
foundBy: ["title"]
|
|
34395
34457
|
}), "titleItem");
|
|
34396
34458
|
|
|
34397
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/search-harder.js
|
|
34398
34460
|
var SECTION2 = "search_harder";
|
|
34399
34461
|
var HARDER_MODELS = {
|
|
34400
34462
|
anthropic: "claude-haiku-5-5",
|
|
@@ -34615,7 +34677,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
|
|
|
34615
34677
|
};
|
|
34616
34678
|
}, "reorderHarder");
|
|
34617
34679
|
|
|
34618
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34680
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
34619
34681
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm", "business", "meetings"];
|
|
34620
34682
|
var refusal = /* @__PURE__ */ __name((error, text2) => {
|
|
34621
34683
|
const { reason, span } = error.details ?? {};
|
|
@@ -34989,7 +35051,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
|
|
|
34989
35051
|
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);
|
|
34990
35052
|
}, "insidePeriodFirst");
|
|
34991
35053
|
|
|
34992
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35054
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
34993
35055
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
34994
35056
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
34995
35057
|
var DEFAULT_BACKEND = "both";
|
|
@@ -35178,7 +35240,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
35178
35240
|
return { report, sources };
|
|
35179
35241
|
}, "searchServer");
|
|
35180
35242
|
|
|
35181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35243
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
35182
35244
|
var DELETE_AT_ONCE = 10;
|
|
35183
35245
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
35184
35246
|
const files = fileLinks(attachments);
|
|
@@ -35618,7 +35680,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
35618
35680
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
35619
35681
|
}, "checkMediaOptions");
|
|
35620
35682
|
|
|
35621
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35683
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
35622
35684
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
35623
35685
|
var RULES2 = {
|
|
35624
35686
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -35633,7 +35695,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
|
|
|
35633
35695
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
35634
35696
|
}), "classifyChannel");
|
|
35635
35697
|
|
|
35636
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35698
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
35637
35699
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
35638
35700
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
35639
35701
|
const store = await deps.store();
|
|
@@ -35719,7 +35781,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
35719
35781
|
};
|
|
35720
35782
|
}, "metadataService");
|
|
35721
35783
|
|
|
35722
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35784
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
35723
35785
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
35724
35786
|
var LINK2 = /https?:\/\/\S+/i;
|
|
35725
35787
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -35907,7 +35969,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
35907
35969
|
}, "nextPoint");
|
|
35908
35970
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
35909
35971
|
|
|
35910
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35972
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
35911
35973
|
import { existsSync as existsSync3, readFileSync as readFileSync5 } from "node:fs";
|
|
35912
35974
|
import { join as join15 } from "node:path";
|
|
35913
35975
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -36050,7 +36112,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
36050
36112
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
36051
36113
|
}, "assign");
|
|
36052
36114
|
|
|
36053
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
36054
36116
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
36055
36117
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
36056
36118
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -36087,7 +36149,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
36087
36149
|
return { chatId, rows, notes };
|
|
36088
36150
|
}, "moderateWith");
|
|
36089
36151
|
|
|
36090
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36152
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
36091
36153
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
36092
36154
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
36093
36155
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -36165,7 +36227,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
36165
36227
|
}, "removePerson")
|
|
36166
36228
|
}), "moderatorOf");
|
|
36167
36229
|
|
|
36168
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36230
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
36169
36231
|
var CONTEXT_MESSAGES2 = 10;
|
|
36170
36232
|
var CONTEXT_BYTES = 64 * 1024;
|
|
36171
36233
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -36464,10 +36526,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
36464
36526
|
};
|
|
36465
36527
|
}, "personMessages");
|
|
36466
36528
|
|
|
36467
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36529
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
36468
36530
|
import { createHash as createHash11 } from "node:crypto";
|
|
36469
36531
|
|
|
36470
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36532
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
36471
36533
|
var missing3 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
36472
36534
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
|
|
36473
36535
|
const parsed = parseMeetingReference(reference);
|
|
@@ -36485,7 +36547,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
36485
36547
|
return { parsed, meeting };
|
|
36486
36548
|
}, "authorizedMeetingMetadata");
|
|
36487
36549
|
|
|
36488
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
36489
36551
|
var hash = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
36490
36552
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
36491
36553
|
if (signal?.aborted)
|
|
@@ -36684,7 +36746,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
36684
36746
|
return { ...packet, fingerprint: hash(packet) };
|
|
36685
36747
|
}, "readMeetingEvidence");
|
|
36686
36748
|
|
|
36687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36749
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
36688
36750
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
|
|
36689
36751
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
|
|
36690
36752
|
const requestedAccounts = options2.accountIds;
|
|
@@ -36783,7 +36845,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
36783
36845
|
};
|
|
36784
36846
|
}, "personMeetingContext");
|
|
36785
36847
|
|
|
36786
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
36787
36849
|
var PREPARE_BYTES = 96 * 1024;
|
|
36788
36850
|
var MEETINGS = 5;
|
|
36789
36851
|
var CUES = 3;
|
|
@@ -36906,7 +36968,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
36906
36968
|
}
|
|
36907
36969
|
}, "meetingsOf");
|
|
36908
36970
|
|
|
36909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
36910
36972
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
36911
36973
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
36912
36974
|
const held = await storeIfOpen(deps);
|
|
@@ -36976,7 +37038,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
36976
37038
|
complete: false
|
|
36977
37039
|
})), "quiet");
|
|
36978
37040
|
|
|
36979
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37041
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
36980
37042
|
var TIMELINE_ITEMS = 50;
|
|
36981
37043
|
var TIMELINE_MAX = 500;
|
|
36982
37044
|
var SCOPES2 = ["personal", "work"];
|
|
@@ -37038,7 +37100,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
37038
37100
|
};
|
|
37039
37101
|
}, "personTimeline");
|
|
37040
37102
|
|
|
37041
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37103
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
37042
37104
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
37043
37105
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
37044
37106
|
const held = await storeIfOpen(deps);
|
|
@@ -37292,7 +37354,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
37292
37354
|
return rest;
|
|
37293
37355
|
}, "withoutPhone");
|
|
37294
37356
|
|
|
37295
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
37296
37358
|
var noteItem = /* @__PURE__ */ __name((provider, note2) => ({
|
|
37297
37359
|
id: note2.id,
|
|
37298
37360
|
contact: formatReference({ type: "contact", provider, id: note2.personId }),
|
|
@@ -37336,7 +37398,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
37336
37398
|
};
|
|
37337
37399
|
}, "privatePeopleService");
|
|
37338
37400
|
|
|
37339
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37401
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
37340
37402
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
37341
37403
|
total: 0,
|
|
37342
37404
|
population: 0,
|
|
@@ -37592,7 +37654,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
37592
37654
|
}, "evidence")
|
|
37593
37655
|
}), "rankingsService");
|
|
37594
37656
|
|
|
37595
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
37596
37658
|
var FIELDS = ["date", "chat", "kind", "muted"];
|
|
37597
37659
|
var WAITING_TAIL = 100;
|
|
37598
37660
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -37726,7 +37788,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37726
37788
|
};
|
|
37727
37789
|
}, "replyStatsService");
|
|
37728
37790
|
|
|
37729
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37791
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
37730
37792
|
var savedSearchItem = /* @__PURE__ */ __name((one2) => ({
|
|
37731
37793
|
id: one2.id,
|
|
37732
37794
|
name: one2.name,
|
|
@@ -37855,7 +37917,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
37855
37917
|
};
|
|
37856
37918
|
}, "searchesService");
|
|
37857
37919
|
|
|
37858
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37920
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
37859
37921
|
var TAGGING_QUERY = {
|
|
37860
37922
|
entity: "tagging",
|
|
37861
37923
|
backend: "sql",
|
|
@@ -37939,7 +38001,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37939
38001
|
};
|
|
37940
38002
|
}, "tagsService");
|
|
37941
38003
|
|
|
37942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
37943
38005
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
37944
38006
|
var PERIOD_FIELD = "created";
|
|
37945
38007
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -38070,7 +38132,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
38070
38132
|
}));
|
|
38071
38133
|
}, "meetingNames");
|
|
38072
38134
|
|
|
38073
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
38074
38136
|
var TASK_QUERY = {
|
|
38075
38137
|
entity: "task",
|
|
38076
38138
|
backend: "sql",
|
|
@@ -38569,7 +38631,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
38569
38631
|
};
|
|
38570
38632
|
}, "taskView");
|
|
38571
38633
|
|
|
38572
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38634
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
38573
38635
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
38574
38636
|
const set = [closed, pinned, hidden].filter((one2) => one2 !== void 0).length;
|
|
38575
38637
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -38768,7 +38830,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
38768
38830
|
};
|
|
38769
38831
|
}, "topicsService");
|
|
38770
38832
|
|
|
38771
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/crm/sync.js
|
|
38772
38834
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
38773
38835
|
var GAPS = "crm:gaps";
|
|
38774
38836
|
var crmGapsOf = /* @__PURE__ */ __name(async (store, account) => {
|
|
@@ -38780,7 +38842,7 @@ var crmGapsOf = /* @__PURE__ */ __name(async (store, account) => {
|
|
|
38780
38842
|
}
|
|
38781
38843
|
}, "crmGapsOf");
|
|
38782
38844
|
|
|
38783
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/crm/writer.js
|
|
38784
38846
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
38785
38847
|
var CRM_WRITE_DEFAULTS = {
|
|
38786
38848
|
"deals.delete": "ask",
|
|
@@ -38788,7 +38850,7 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
38788
38850
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
38789
38851
|
};
|
|
38790
38852
|
|
|
38791
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/business-context.js
|
|
38792
38854
|
var SECTION_LIMIT = 20;
|
|
38793
38855
|
var STORE_PAGE = 500;
|
|
38794
38856
|
var sectionOf = /* @__PURE__ */ __name((all, limit, next, { more = false, total = all.length, newest = false } = {}) => {
|
|
@@ -38912,7 +38974,7 @@ var coverageFor = /* @__PURE__ */ __name(async (store, base, scope) => {
|
|
|
38912
38974
|
}, "coverageFor");
|
|
38913
38975
|
var newestFirst2 = /* @__PURE__ */ __name((a, b) => (b.at ?? "").localeCompare(a.at ?? "") || a.ref.localeCompare(b.ref), "newestFirst");
|
|
38914
38976
|
|
|
38915
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38977
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/communications.js
|
|
38916
38978
|
var MAIL_ROWS = 500;
|
|
38917
38979
|
var EVENT_ROWS2 = 1e3;
|
|
38918
38980
|
var calendarsOf = /* @__PURE__ */ __name(async (store, stored) => {
|
|
@@ -39038,7 +39100,7 @@ var communicationsOf = /* @__PURE__ */ __name(async (store, asked, scope, { sinc
|
|
|
39038
39100
|
};
|
|
39039
39101
|
}, "communicationsOf");
|
|
39040
39102
|
|
|
39041
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39103
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/money-context.js
|
|
39042
39104
|
var invoiceLine = /* @__PURE__ */ __name((invoice, linkedBy) => ({
|
|
39043
39105
|
ref: invoice.ref,
|
|
39044
39106
|
title: invoice.title,
|
|
@@ -39110,7 +39172,7 @@ var moneyOf = /* @__PURE__ */ __name((rows, limit, next, complete) => {
|
|
|
39110
39172
|
};
|
|
39111
39173
|
}, "moneyOf");
|
|
39112
39174
|
|
|
39113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39175
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/organization-context.js
|
|
39114
39176
|
var dealLine = /* @__PURE__ */ __name((deal) => ({
|
|
39115
39177
|
ref: deal.ref,
|
|
39116
39178
|
kind: deal.kind,
|
|
@@ -39250,7 +39312,7 @@ var organizationContext = /* @__PURE__ */ __name(async (store, reference, { acco
|
|
|
39250
39312
|
};
|
|
39251
39313
|
}, "organizationContext");
|
|
39252
39314
|
|
|
39253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39315
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/deal-context.js
|
|
39254
39316
|
var DAY6 = 864e5;
|
|
39255
39317
|
var dealContext = /* @__PURE__ */ __name(async (store, reference, { accounts, limit = SECTION_LIMIT, now = Date.now(), deniedKinds = [] } = {}) => {
|
|
39256
39318
|
const scope = scopeOf4(accounts, deniedKinds);
|
|
@@ -39359,7 +39421,7 @@ var dealBrief = /* @__PURE__ */ __name((context2) => ({
|
|
|
39359
39421
|
notRead: context2.coverage.notRead
|
|
39360
39422
|
}), "dealBrief");
|
|
39361
39423
|
|
|
39362
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39424
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
39363
39425
|
import { createHash as createHash12, randomUUID as randomUUID6 } from "node:crypto";
|
|
39364
39426
|
var hash2 = /* @__PURE__ */ __name((value) => createHash12("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
39365
39427
|
var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -39433,7 +39495,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
39433
39495
|
return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
|
|
39434
39496
|
}, "prepareEvidencePacket");
|
|
39435
39497
|
|
|
39436
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
39437
39499
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
39438
39500
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
39439
39501
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -39453,7 +39515,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
39453
39515
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
39454
39516
|
}, "readEvidencePacket");
|
|
39455
39517
|
|
|
39456
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39518
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
39457
39519
|
import { createHash as createHash13 } from "node:crypto";
|
|
39458
39520
|
var scopeKeys = [
|
|
39459
39521
|
"accountId",
|
|
@@ -39588,7 +39650,7 @@ var readMeetingProjectDiscovery = /* @__PURE__ */ __name(async (ports, projectNa
|
|
|
39588
39650
|
};
|
|
39589
39651
|
}, "readMeetingProjectDiscovery");
|
|
39590
39652
|
|
|
39591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39653
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/person-business.js
|
|
39592
39654
|
var personBusiness = /* @__PURE__ */ __name(async (store, uid, { limit = SECTION_LIMIT, scope = scopeOf4(void 0) } = {}) => {
|
|
39593
39655
|
const ref = `person:${uid}`;
|
|
39594
39656
|
const { edges, full } = await edgesOf(store, ref, scope);
|
|
@@ -39646,7 +39708,7 @@ var canonicalPersonContext = /* @__PURE__ */ __name(async (store, reference, { a
|
|
|
39646
39708
|
};
|
|
39647
39709
|
}, "canonicalPersonContext");
|
|
39648
39710
|
|
|
39649
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39711
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
|
|
39650
39712
|
import { createHash as createHash14 } from "node:crypto";
|
|
39651
39713
|
import { existsSync as existsSync4 } from "node:fs";
|
|
39652
39714
|
var useTextModel = /* @__PURE__ */ __name(async (id2, { env, command }) => {
|
|
@@ -39777,7 +39839,7 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id2, payload, { env, fetc
|
|
|
39777
39839
|
return { ...checked2.output, custom: true };
|
|
39778
39840
|
}, "addCustomTextModel");
|
|
39779
39841
|
|
|
39780
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39842
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/account-groups.js
|
|
39781
39843
|
var fail4 = /* @__PURE__ */ __name((code, message) => {
|
|
39782
39844
|
throw new CliError(code, message);
|
|
39783
39845
|
}, "fail");
|
|
@@ -39854,8 +39916,8 @@ var moveGroupMember = /* @__PURE__ */ __name(async (at, move) => {
|
|
|
39854
39916
|
return listAccountGroups(at);
|
|
39855
39917
|
}, "moveGroupMember");
|
|
39856
39918
|
|
|
39857
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39858
|
-
var
|
|
39919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/group-guard.js
|
|
39920
|
+
var refOf2 = /* @__PURE__ */ __name((item2) => typeof item2 === "string" ? item2 : typeof item2 === "object" && item2 !== null && "ref" in item2 ? item2.ref : void 0, "refOf");
|
|
39859
39921
|
var groupGuardOf = /* @__PURE__ */ __name(async (store, app, env) => {
|
|
39860
39922
|
const group = groupLockOf(app, env);
|
|
39861
39923
|
if (group === void 0)
|
|
@@ -39886,7 +39948,7 @@ var groupGuardOf = /* @__PURE__ */ __name(async (store, app, env) => {
|
|
|
39886
39948
|
if (key === "evidence" || key === "sources") {
|
|
39887
39949
|
shown = [];
|
|
39888
39950
|
for (const item2 of items) {
|
|
39889
|
-
const ref =
|
|
39951
|
+
const ref = refOf2(item2);
|
|
39890
39952
|
if (typeof ref === "string" && !await visible2(ref)) {
|
|
39891
39953
|
dropped2 += 1;
|
|
39892
39954
|
changed2 = true;
|
|
@@ -39965,7 +40027,7 @@ var lockedRegistry = /* @__PURE__ */ __name((registry, guard) => {
|
|
|
39965
40027
|
};
|
|
39966
40028
|
}, "lockedRegistry");
|
|
39967
40029
|
|
|
39968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40030
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-hit-context.js
|
|
39969
40031
|
import { createHash as createHash15 } from "node:crypto";
|
|
39970
40032
|
var contextCue = /* @__PURE__ */ __name((cue) => ({
|
|
39971
40033
|
ref: cue.reference,
|
|
@@ -40083,7 +40145,7 @@ var readMeetingHitContext = /* @__PURE__ */ __name(async (store, accountId, refe
|
|
|
40083
40145
|
return { ...packet, fingerprint: createHash15("sha256").update(JSON.stringify(packet)).digest("hex") };
|
|
40084
40146
|
}, "readMeetingHitContext");
|
|
40085
40147
|
|
|
40086
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40148
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-passage-format.js
|
|
40087
40149
|
var visible = /* @__PURE__ */ __name((text2) => text2.replace(/[\p{Cc}\p{Cf}]/gu, (value) => value === "\n" || value === " " ? value : `\\u{${value.codePointAt(0)?.toString(16)}}`), "visible");
|
|
40088
40150
|
var markdown = /* @__PURE__ */ __name((text2) => visible(text2).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replace(/[\\`*_[\]#|~]/g, "\\$&"), "markdown");
|
|
40089
40151
|
var timestamp = /* @__PURE__ */ __name((ms) => {
|
|
@@ -40159,7 +40221,7 @@ var readMeetingPassage = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
40159
40221
|
return { packet, content };
|
|
40160
40222
|
}, "readMeetingPassage");
|
|
40161
40223
|
|
|
40162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
40163
40225
|
var communicationFields = {
|
|
40164
40226
|
sources: pipe(array(strictObject({
|
|
40165
40227
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -40191,7 +40253,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
40191
40253
|
return { ...input, after, before: before2 };
|
|
40192
40254
|
}, "communicationRequest");
|
|
40193
40255
|
|
|
40194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40256
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
40195
40257
|
var MEETING_PREPARATION_LIMITS = {
|
|
40196
40258
|
meetings: { min: 1, max: 20, default: 5 },
|
|
40197
40259
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -40277,7 +40339,7 @@ var preparationRequest = /* @__PURE__ */ __name((accountId, externalId, original
|
|
|
40277
40339
|
return { ...input, history };
|
|
40278
40340
|
}, "preparationRequest");
|
|
40279
40341
|
|
|
40280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40342
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-communications-preparation.js
|
|
40281
40343
|
var readPreparationCommunications = /* @__PURE__ */ __name(async (plan, signal) => {
|
|
40282
40344
|
const section = {
|
|
40283
40345
|
readUsage: plan.reader.usage(),
|
|
@@ -40382,7 +40444,7 @@ var appendPreparationCommunications = /* @__PURE__ */ __name((result, read2) =>
|
|
|
40382
40444
|
result.knowledge.coverage.otherSources = "see-communications";
|
|
40383
40445
|
}, "appendPreparationCommunications");
|
|
40384
40446
|
|
|
40385
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40447
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
40386
40448
|
var captureCommunicationSelections = /* @__PURE__ */ __name((port) => {
|
|
40387
40449
|
if (port === void 0)
|
|
40388
40450
|
return void 0;
|
|
@@ -40487,7 +40549,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
40487
40549
|
}
|
|
40488
40550
|
}, "validatePreparationCommunications");
|
|
40489
40551
|
|
|
40490
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40552
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-knowledge-preparation.js
|
|
40491
40553
|
var invalid6 = /* @__PURE__ */ __name(() => {
|
|
40492
40554
|
throw new CliError("invalid_response", "Preparation knowledge returned an invalid selection");
|
|
40493
40555
|
}, "invalid");
|
|
@@ -40556,7 +40618,7 @@ var appendKnowledgePreparation = /* @__PURE__ */ __name(async (store, result, in
|
|
|
40556
40618
|
}
|
|
40557
40619
|
}, "appendKnowledgePreparation");
|
|
40558
40620
|
|
|
40559
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-notes-preparation.js
|
|
40560
40622
|
var invalid7 = /* @__PURE__ */ __name(() => {
|
|
40561
40623
|
throw new CliError("invalid_response", "Preparation notes returned an invalid selection");
|
|
40562
40624
|
}, "invalid");
|
|
@@ -40630,7 +40692,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
40630
40692
|
}
|
|
40631
40693
|
}, "appendNotesPreparation");
|
|
40632
40694
|
|
|
40633
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-project-preparation.js
|
|
40634
40696
|
var PAGE_LIMIT = 4;
|
|
40635
40697
|
var size2 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
40636
40698
|
var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, input) => {
|
|
@@ -40680,7 +40742,7 @@ var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, inpu
|
|
|
40680
40742
|
}
|
|
40681
40743
|
}, "appendProjectPreparation");
|
|
40682
40744
|
|
|
40683
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40745
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-related-preparation.js
|
|
40684
40746
|
var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, input) => {
|
|
40685
40747
|
if (!result.series || !result.items.length || result.coverage.outputLimited)
|
|
40686
40748
|
return;
|
|
@@ -40752,7 +40814,7 @@ var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, inpu
|
|
|
40752
40814
|
}
|
|
40753
40815
|
}, "appendRelatedPreparation");
|
|
40754
40816
|
|
|
40755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40817
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-preparation.js
|
|
40756
40818
|
var size3 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
40757
40819
|
var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
40758
40820
|
const fixed = snapshotMeetingScope(scope);
|
|
@@ -40890,7 +40952,7 @@ var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId,
|
|
|
40890
40952
|
};
|
|
40891
40953
|
}, "createMeetingPreparationService");
|
|
40892
40954
|
|
|
40893
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40955
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
40894
40956
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
40895
40957
|
const installer = ports.installer();
|
|
40896
40958
|
const argv = updateCommand(installer, packageName);
|
|
@@ -40955,7 +41017,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
40955
41017
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
40956
41018
|
}, "dayAfter");
|
|
40957
41019
|
|
|
40958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposal-tasks.js
|
|
40959
41021
|
var proposalSource = /* @__PURE__ */ __name((id2) => `proposed-action:${id2}`, "proposalSource");
|
|
40960
41022
|
var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
40961
41023
|
const proposal = await store.proposedActions.get(id2);
|
|
@@ -40978,7 +41040,7 @@ var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
|
40978
41040
|
return { proposal: await store.proposedActions.approve(proposal.id, by, { task: task2.id }), task: task2 };
|
|
40979
41041
|
}, "approveAsTask");
|
|
40980
41042
|
|
|
40981
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41043
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/ids.js
|
|
40982
41044
|
var MAX_IDS = 500;
|
|
40983
41045
|
var refuse = /* @__PURE__ */ __name((message) => {
|
|
40984
41046
|
throw new CliError("validation_error", message, { reason: "proposal.ids" });
|
|
@@ -41020,7 +41082,7 @@ var parseProposalIds = /* @__PURE__ */ __name((text2) => {
|
|
|
41020
41082
|
return ids;
|
|
41021
41083
|
}, "parseProposalIds");
|
|
41022
41084
|
|
|
41023
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/shared.js
|
|
41024
41086
|
var proposerOfAuthor = /* @__PURE__ */ __name((author) => {
|
|
41025
41087
|
if (author.type === "person")
|
|
41026
41088
|
return { type: "person", id: author.id };
|
|
@@ -41092,7 +41154,7 @@ var reviewedKind = /* @__PURE__ */ __name((spec) => ({
|
|
|
41092
41154
|
}, "decide")
|
|
41093
41155
|
}), "reviewedKind");
|
|
41094
41156
|
|
|
41095
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/findings.js
|
|
41096
41158
|
var FACT_SUMMARIES = {
|
|
41097
41159
|
fact: /* @__PURE__ */ __name((finding) => finding.statement, "fact"),
|
|
41098
41160
|
task: /* @__PURE__ */ __name((finding) => finding.title, "task"),
|
|
@@ -41164,7 +41226,7 @@ var findingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
41164
41226
|
};
|
|
41165
41227
|
}, "findingsKind");
|
|
41166
41228
|
|
|
41167
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41229
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/organization.js
|
|
41168
41230
|
var ORGANIZATION_ADD_KIND = "organization_add";
|
|
41169
41231
|
var ORGANIZATION_RENAME_KIND = "organization_rename";
|
|
41170
41232
|
var rowOf2 = /* @__PURE__ */ __name((action2) => {
|
|
@@ -41220,7 +41282,7 @@ var organizationKind = /* @__PURE__ */ __name((store) => ({
|
|
|
41220
41282
|
}, "decide")
|
|
41221
41283
|
}), "organizationKind");
|
|
41222
41284
|
|
|
41223
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/action.js
|
|
41224
41286
|
var rowOf3 = /* @__PURE__ */ __name((action2) => ({
|
|
41225
41287
|
id: action2.id,
|
|
41226
41288
|
kind: "action",
|
|
@@ -41260,7 +41322,7 @@ var actionKind = /* @__PURE__ */ __name((store, claimed) => ({
|
|
|
41260
41322
|
}, "decide")
|
|
41261
41323
|
}), "actionKind");
|
|
41262
41324
|
|
|
41263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41325
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/contracts.js
|
|
41264
41326
|
var contractKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
41265
41327
|
type: "contract",
|
|
41266
41328
|
list: /* @__PURE__ */ __name((options2) => store.contracts.list(options2), "list"),
|
|
@@ -41269,7 +41331,7 @@ var contractKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
41269
41331
|
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")
|
|
41270
41332
|
}), "contractKind");
|
|
41271
41333
|
|
|
41272
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41334
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/fact.js
|
|
41273
41335
|
var STATUS = {
|
|
41274
41336
|
proposed: "proposed",
|
|
41275
41337
|
accepted: "confirmed",
|
|
@@ -41312,7 +41374,7 @@ var factKind = /* @__PURE__ */ __name((store) => ({
|
|
|
41312
41374
|
}, "decide")
|
|
41313
41375
|
}), "factKind");
|
|
41314
41376
|
|
|
41315
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/finance.js
|
|
41316
41378
|
var invoiceKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
41317
41379
|
type: "invoice",
|
|
41318
41380
|
list: /* @__PURE__ */ __name((options2) => store.finance.invoices(options2), "list"),
|
|
@@ -41328,7 +41390,7 @@ var paymentKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
41328
41390
|
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")
|
|
41329
41391
|
}), "paymentKind");
|
|
41330
41392
|
|
|
41331
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41393
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/identity-link.js
|
|
41332
41394
|
var rowOf5 = /* @__PURE__ */ __name((action2) => {
|
|
41333
41395
|
const payload = action2.payload;
|
|
41334
41396
|
const [from, to] = payload.persons;
|
|
@@ -41375,7 +41437,7 @@ var identityLinkKind = /* @__PURE__ */ __name((store) => ({
|
|
|
41375
41437
|
}, "decide")
|
|
41376
41438
|
}), "identityLinkKind");
|
|
41377
41439
|
|
|
41378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41440
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/identity-split.js
|
|
41379
41441
|
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");
|
|
41380
41442
|
var dropped = /* @__PURE__ */ __name((action2) => action2.status !== "proposed" && action2.status !== "rejected" && typeof action2.result?.person !== "string", "dropped");
|
|
41381
41443
|
var rowOf6 = /* @__PURE__ */ __name((store) => async (action2) => {
|
|
@@ -41430,7 +41492,7 @@ var identitySplitKind = /* @__PURE__ */ __name((store) => ({
|
|
|
41430
41492
|
}, "decide")
|
|
41431
41493
|
}), "identitySplitKind");
|
|
41432
41494
|
|
|
41433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41495
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/key-document.js
|
|
41434
41496
|
var linkRow = /* @__PURE__ */ __name((link4) => ({
|
|
41435
41497
|
id: `key:${link4.id}`,
|
|
41436
41498
|
kind: "key_document",
|
|
@@ -41498,7 +41560,7 @@ var keyDocumentKind = /* @__PURE__ */ __name((store) => {
|
|
|
41498
41560
|
};
|
|
41499
41561
|
}, "keyDocumentKind");
|
|
41500
41562
|
|
|
41501
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41563
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/mail-findings.js
|
|
41502
41564
|
var words3 = /* @__PURE__ */ __name((...parts) => parts.filter(Boolean).join(" "), "words");
|
|
41503
41565
|
var summaryOf2 = /* @__PURE__ */ __name((finding) => {
|
|
41504
41566
|
switch (finding.kind) {
|
|
@@ -41586,7 +41648,7 @@ var mailFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
41586
41648
|
};
|
|
41587
41649
|
}, "mailFindingsKind");
|
|
41588
41650
|
|
|
41589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41651
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/meeting-findings.js
|
|
41590
41652
|
var rowOf8 = /* @__PURE__ */ __name((action2, batch) => {
|
|
41591
41653
|
const findings = batch.input.findings;
|
|
41592
41654
|
const projects = [...new Set(findings.map((one2) => "project" in one2 ? one2.project : void 0))];
|
|
@@ -41650,7 +41712,7 @@ var meetingFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
41650
41712
|
};
|
|
41651
41713
|
}, "meetingFindingsKind");
|
|
41652
41714
|
|
|
41653
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/memory.js
|
|
41654
41716
|
var STATUS2 = {
|
|
41655
41717
|
proposed: "proposed",
|
|
41656
41718
|
confirmed: "confirmed",
|
|
@@ -41691,7 +41753,7 @@ var memoryKind = /* @__PURE__ */ __name((store) => ({
|
|
|
41691
41753
|
}, "decide")
|
|
41692
41754
|
}), "memoryKind");
|
|
41693
41755
|
|
|
41694
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41756
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/orders.js
|
|
41695
41757
|
var orderKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
41696
41758
|
type: "order",
|
|
41697
41759
|
list: /* @__PURE__ */ __name((options2) => store.orders.list(options2), "list"),
|
|
@@ -41700,7 +41762,7 @@ var orderKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
41700
41762
|
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")
|
|
41701
41763
|
}), "orderKind");
|
|
41702
41764
|
|
|
41703
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41765
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship.js
|
|
41704
41766
|
var linkRow2 = /* @__PURE__ */ __name((link4) => ({
|
|
41705
41767
|
id: `link:${link4.id}`,
|
|
41706
41768
|
kind: "relationship",
|
|
@@ -41775,7 +41837,7 @@ var relationshipKind = /* @__PURE__ */ __name((store) => {
|
|
|
41775
41837
|
};
|
|
41776
41838
|
}, "relationshipKind");
|
|
41777
41839
|
|
|
41778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship-update.js
|
|
41779
41841
|
var KIND = "relationship_update";
|
|
41780
41842
|
var summaryOf3 = /* @__PURE__ */ __name(({ changes }) => Object.entries(changes).map(([field, value]) => `${field} ${value ?? "cleared"}`).join(", "), "summaryOf");
|
|
41781
41843
|
var rowOf10 = /* @__PURE__ */ __name((action2) => {
|
|
@@ -41825,7 +41887,7 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
41825
41887
|
}, "decide")
|
|
41826
41888
|
}), "relationshipUpdateKind");
|
|
41827
41889
|
|
|
41828
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41890
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/source-review.js
|
|
41829
41891
|
var rowOf11 = /* @__PURE__ */ __name((action2) => {
|
|
41830
41892
|
const payload = action2.payload;
|
|
41831
41893
|
const sources = payload.sources.flatMap((source) => source.ref ?? []);
|
|
@@ -41868,7 +41930,7 @@ var sourceReviewKind = /* @__PURE__ */ __name((store) => ({
|
|
|
41868
41930
|
}, "decide")
|
|
41869
41931
|
}), "sourceReviewKind");
|
|
41870
41932
|
|
|
41871
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/subscriptions.js
|
|
41872
41934
|
var subscriptionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
41873
41935
|
type: "subscription",
|
|
41874
41936
|
list: /* @__PURE__ */ __name((options2) => store.subscriptions.list(options2), "list"),
|
|
@@ -41887,7 +41949,7 @@ var subscriptionPriceKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
41887
41949
|
}, "decide")
|
|
41888
41950
|
}), "subscriptionPriceKind");
|
|
41889
41951
|
|
|
41890
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41952
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/task-close.js
|
|
41891
41953
|
var rowOf12 = /* @__PURE__ */ __name((task2) => {
|
|
41892
41954
|
const suggestion = task2.closeSuggestion;
|
|
41893
41955
|
if (suggestion === null)
|
|
@@ -41955,7 +42017,7 @@ var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
|
41955
42017
|
};
|
|
41956
42018
|
}, "taskCloseKind");
|
|
41957
42019
|
|
|
41958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/transactions.js
|
|
41959
42021
|
var transactionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
41960
42022
|
type: "transaction",
|
|
41961
42023
|
list: /* @__PURE__ */ __name((options2) => store.transactions.list(options2), "list"),
|
|
@@ -41964,7 +42026,7 @@ var transactionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
41964
42026
|
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")
|
|
41965
42027
|
}), "transactionKind");
|
|
41966
42028
|
|
|
41967
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/registry.js
|
|
41968
42030
|
var PREFIX = /^([a-z][a-z_]*):/;
|
|
41969
42031
|
var marked = /* @__PURE__ */ __name((kind, row) => kind.ownerOnly ? { ...row, ownerOnly: true } : row, "marked");
|
|
41970
42032
|
var refusalOf = /* @__PURE__ */ __name((id2, error) => {
|
|
@@ -42099,7 +42161,7 @@ var proposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
42099
42161
|
return registry;
|
|
42100
42162
|
}, "proposalRegistry");
|
|
42101
42163
|
|
|
42102
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
42103
42165
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
42104
42166
|
const pictures = picturesService(deps);
|
|
42105
42167
|
const base = {
|
|
@@ -42136,7 +42198,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
42136
42198
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
42137
42199
|
}, "servicesFor");
|
|
42138
42200
|
|
|
42139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42201
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
42140
42202
|
var COMMAND_NEEDS = {
|
|
42141
42203
|
"account update": ["updateProfile", "change the profile"],
|
|
42142
42204
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -42186,7 +42248,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
42186
42248
|
return group;
|
|
42187
42249
|
}, "hideNever");
|
|
42188
42250
|
|
|
42189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
42190
42252
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
42191
42253
|
command.allowUnknownOption();
|
|
42192
42254
|
const parse2 = command.parseOptions.bind(command);
|
|
@@ -42206,7 +42268,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
42206
42268
|
return command;
|
|
42207
42269
|
}, "queryWordsAfterOptions");
|
|
42208
42270
|
|
|
42209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42271
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
42210
42272
|
var count3 = /* @__PURE__ */ __name((value) => {
|
|
42211
42273
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
42212
42274
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -42248,7 +42310,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
42248
42310
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
42249
42311
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
42250
42312
|
|
|
42251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42313
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
42252
42314
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
42253
42315
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
42254
42316
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -42271,7 +42333,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
42271
42333
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
42272
42334
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
42273
42335
|
|
|
42274
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42336
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
42275
42337
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
42276
42338
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
42277
42339
|
const zone = timezoneOf();
|
|
@@ -42357,7 +42419,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
42357
42419
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
42358
42420
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
42359
42421
|
|
|
42360
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
42361
42423
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
42362
42424
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
42363
42425
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -42501,7 +42563,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
42501
42563
|
}, "addMeetingCommandsDefinition");
|
|
42502
42564
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
42503
42565
|
|
|
42504
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42566
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
42505
42567
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
42506
42568
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
42507
42569
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -42634,7 +42696,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
42634
42696
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
42635
42697
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
42636
42698
|
|
|
42637
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42699
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
42638
42700
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
42639
42701
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
42640
42702
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -42643,7 +42705,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
42643
42705
|
var withPaging = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many to show", positiveCount("--limit")).option("--page <n>", "which page, starting at 1", positiveCount("--page")).option("--all", "every row, no paging"), "withPaging");
|
|
42644
42706
|
var window2 = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
42645
42707
|
|
|
42646
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42708
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
42647
42709
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
42648
42710
|
var chatRef2 = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
42649
42711
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -42905,7 +42967,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
42905
42967
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
42906
42968
|
}), "sessionAnswer");
|
|
42907
42969
|
|
|
42908
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42970
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
42909
42971
|
import { createHash as createHash16 } from "node:crypto";
|
|
42910
42972
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync6, rmSync as rmSync2 } from "node:fs";
|
|
42911
42973
|
import { createConnection, createServer } from "node:net";
|
|
@@ -43053,7 +43115,7 @@ var serve = /* @__PURE__ */ __name(async (socket, request, stdin, signal, run) =
|
|
|
43053
43115
|
}
|
|
43054
43116
|
}, "serve");
|
|
43055
43117
|
|
|
43056
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
43057
43119
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
43058
43120
|
close: /* @__PURE__ */ __name(async () => {
|
|
43059
43121
|
}, "close"),
|
|
@@ -43221,6 +43283,7 @@ export {
|
|
|
43221
43283
|
downloadImageModel,
|
|
43222
43284
|
STATUS_SIGNALS,
|
|
43223
43285
|
projectStatus,
|
|
43286
|
+
projectActivity,
|
|
43224
43287
|
sendTime,
|
|
43225
43288
|
readMail,
|
|
43226
43289
|
NOT_GROUP_NAMES,
|