@wirecat/cli-memo 0.131.43 → 0.131.44
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-NL4TH4VM.js → all-profiles-MFZPFIHO.js} +5 -5
- package/dist/bundle/{anthropic-JTVP4FKR.js → anthropic-KJBO3FCU.js} +3 -3
- package/dist/bundle/{app-server-FF6PISNB.js → app-server-A2XCJDGI.js} +35 -35
- package/dist/bundle/auto-W3BUP6YI.js +86 -0
- package/dist/bundle/{bun-OTDLXIRE.js → bun-BT7YVHDQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-HXOV4SGX.js → bun-sqlite-EG4TSO2G.js} +2 -2
- package/dist/bundle/{chunk-TVWO7K4U.js → chunk-2HHWU7GF.js} +5 -5
- package/dist/bundle/{chunk-NYJHYLKS.js → chunk-45LXRNPA.js} +56 -56
- package/dist/bundle/{chunk-RJM4D644.js → chunk-4J6U4RIU.js} +280 -280
- package/dist/bundle/{chunk-K44PG5V3.js → chunk-5HODYN65.js} +31 -31
- package/dist/bundle/{chunk-MLVYZIXB.js → chunk-5OOASLTP.js} +8 -8
- package/dist/bundle/{chunk-GPT5MFYG.js → chunk-5Q5JMJKP.js} +9 -9
- package/dist/bundle/{chunk-DTODXX7Y.js → chunk-6LXBT4F3.js} +1 -1
- package/dist/bundle/{chunk-BGNGOAG6.js → chunk-7VXPMICZ.js} +6 -6
- package/dist/bundle/{chunk-RCCKUVQP.js → chunk-BBT2TWCN.js} +1 -1
- package/dist/bundle/{chunk-PIQUCN4T.js → chunk-BJS2EWG5.js} +2 -2
- package/dist/bundle/{chunk-DYX5ATS5.js → chunk-CJQYTFN6.js} +3 -3
- package/dist/bundle/{chunk-U3VDEHXY.js → chunk-E454LAVZ.js} +1 -1
- package/dist/bundle/{chunk-WCFGYCVN.js → chunk-EYKJXPDD.js} +7 -7
- package/dist/bundle/{chunk-J3V25QFZ.js → chunk-GTN4Z7XH.js} +3 -3
- package/dist/bundle/{chunk-CIN7A3OM.js → chunk-GURLGLGY.js} +11 -11
- package/dist/bundle/{chunk-U7MRZIBF.js → chunk-GWI3XFJR.js} +3 -3
- package/dist/bundle/{chunk-TYIENI7Z.js → chunk-GZCZKPUM.js} +248 -248
- package/dist/bundle/{chunk-N5K6NZ2F.js → chunk-GZTKZRWO.js} +2 -2
- package/dist/bundle/{chunk-6WDOIKM6.js → chunk-HQXTNBEY.js} +7 -7
- package/dist/bundle/{chunk-MISLCCYA.js → chunk-I6JHSNDD.js} +1 -1
- package/dist/bundle/{chunk-2A42QHPZ.js → chunk-IKLSYWX7.js} +4 -4
- package/dist/bundle/{chunk-5HCWKNSM.js → chunk-IXAHSLWQ.js} +43 -43
- package/dist/bundle/{chunk-LDQYIKJH.js → chunk-JFGPXSHH.js} +4 -4
- package/dist/bundle/{chunk-FJVQDWVV.js → chunk-K6UTFYOL.js} +4 -4
- package/dist/bundle/{chunk-L5NN6UER.js → chunk-KD4A5HF6.js} +1 -1
- package/dist/bundle/{chunk-SKV7GYNB.js → chunk-KKDTX2LO.js} +4 -4
- package/dist/bundle/{chunk-LSGFFIMA.js → chunk-MEO3B2OF.js} +12 -12
- package/dist/bundle/{chunk-PFWAQGHE.js → chunk-MQ66CMD3.js} +2 -2
- package/dist/bundle/{chunk-2LHLMF3R.js → chunk-N4XNQ67E.js} +1 -1
- package/dist/bundle/{chunk-YXPAEW6N.js → chunk-N6XUB5Z6.js} +20 -20
- package/dist/bundle/{chunk-C67763MQ.js → chunk-NEQGFKOR.js} +1 -1
- package/dist/bundle/{chunk-AH7TKAUY.js → chunk-NKAXCQNN.js} +20 -20
- package/dist/bundle/{chunk-LUTZSIA6.js → chunk-NXCYAOYY.js} +1 -1
- package/dist/bundle/{chunk-LAMKU426.js → chunk-NXJZMS35.js} +5 -5
- package/dist/bundle/{chunk-YHQ2XNNJ.js → chunk-O4VDVY67.js} +1 -1
- package/dist/bundle/{chunk-LUHQEQA4.js → chunk-OBFWJJFV.js} +2 -2
- package/dist/bundle/{chunk-5MP7XPIP.js → chunk-OEOU4MLY.js} +2 -2
- package/dist/bundle/{chunk-MYOXBUSI.js → chunk-OK372VP3.js} +10 -10
- package/dist/bundle/{chunk-LGQZNRNK.js → chunk-POSVGIP5.js} +148 -148
- package/dist/bundle/{chunk-WVZIP7Z5.js → chunk-Q2SZI7LP.js} +2 -2
- package/dist/bundle/{chunk-USAH53BQ.js → chunk-Q2XEAF7Q.js} +9 -9
- package/dist/bundle/{chunk-VJ34VFZ5.js → chunk-QNLXDR4W.js} +2 -2
- package/dist/bundle/{chunk-TBHX7VF5.js → chunk-QZDSHJMZ.js} +27 -27
- package/dist/bundle/{chunk-XFSE3ZGY.js → chunk-R2YMI2ZV.js} +1 -1
- package/dist/bundle/{chunk-3Z4BMSVX.js → chunk-S4PKJOJP.js} +3 -3
- package/dist/bundle/{chunk-Q52KLN53.js → chunk-SP7FRSAG.js} +5 -5
- package/dist/bundle/{chunk-VQPUADFF.js → chunk-SWE4LSXN.js} +1 -1
- package/dist/bundle/{chunk-XCFGMQBF.js → chunk-T2NE3S47.js} +1 -1
- package/dist/bundle/{chunk-ELAZVPZT.js → chunk-T3ZQDLBU.js} +1 -1
- package/dist/bundle/{chunk-G7QBCTF6.js → chunk-TK6P24AN.js} +338 -351
- package/dist/bundle/{chunk-O5FX3Q4U.js → chunk-WJBLLOBC.js} +1 -1
- package/dist/bundle/{chunk-RENUU3BQ.js → chunk-WNZVZE3L.js} +4 -4
- package/dist/bundle/{chunk-GCTZK5QV.js → chunk-X3PFDJSJ.js} +4 -4
- package/dist/bundle/{chunk-IRHRNK2E.js → chunk-XIZPBRIW.js} +1 -1
- package/dist/bundle/{chunk-IJC57CPU.js → chunk-XTLFCF35.js} +7 -7
- package/dist/bundle/{chunk-WBNWH2D5.js → chunk-YGNKWWOX.js} +1 -1
- package/dist/bundle/{chunk-BIVHDUAX.js → chunk-ZIRR4BJ5.js} +5 -5
- package/dist/bundle/{command-contract-7LYHZI4Y.js → command-contract-JJQE3MCP.js} +11 -11
- package/dist/bundle/{decode-7PFJ3AKS.js → decode-AMWZXLFS.js} +2 -2
- package/dist/bundle/{echarts-YDLD5JI2.js → echarts-UCAIOY4N.js} +2 -2
- package/dist/bundle/{embed-YDR7WSPK.js → embed-DYNZ4223.js} +3 -3
- package/dist/bundle/{embedder-KQYPQKZA.js → embedder-XG344VNB.js} +6 -6
- package/dist/bundle/{entry-FD4B2GID.js → entry-CIUBRSDD.js} +4 -4
- package/dist/bundle/failure-JTQUF4RT.js +66 -0
- package/dist/bundle/{first-run-C6HSAXYV.js → first-run-DFXU6DO2.js} +5 -5
- package/dist/bundle/{first-screen-ZM3LZRP4.js → first-screen-QDTJRHSS.js} +12 -12
- package/dist/bundle/{instructions-O7YN5F6D.js → instructions-MFAYYVVL.js} +1 -1
- package/dist/bundle/{mcp-X5XYKVTY.js → mcp-5GUDJIDV.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-YP265UUP.js → node-UILGGXFZ.js} +2 -2
- package/dist/bundle/{node-sqlite-K3PWKXTB.js → node-sqlite-FJR5DRBC.js} +3 -3
- package/dist/bundle/{oauth-CUIDTJ5Z.js → oauth-2WCGPG4N.js} +4 -4
- package/dist/bundle/{open-SHUV2BPO.js → open-I7ZYXOHK.js} +2 -2
- package/dist/bundle/{openai-LSBA5CCQ.js → openai-4GB2FGUR.js} +7 -7
- package/dist/bundle/{process-POGO7VDZ.js → process-NRZZD4IS.js} +1 -1
- package/dist/bundle/{program-DZ4TM3PS.js → program-HYJUSSU4.js} +566 -197
- package/dist/bundle/{prompt-V7SEBV7G.js → prompt-F5RHTE7V.js} +2 -2
- package/dist/bundle/{recognize-DK3N2GVZ.js → recognize-UXXDJQEW.js} +1 -1
- package/dist/bundle/{remote-XYFCKYIQ.js → remote-IW5FTICS.js} +4 -4
- package/dist/bundle/{rerank-COKJGAIB.js → rerank-RRLNQ5C2.js} +4 -4
- package/dist/bundle/{serve-KW3AGGTZ.js → serve-GXJLUYCV.js} +6 -6
- package/dist/bundle/{server-72N5XGA6.js → server-646V4VPF.js} +50 -50
- package/dist/bundle/server-DJUCOKNC.js +48 -0
- package/dist/bundle/server-ITBSOGIC.js +61 -0
- package/dist/bundle/{state-KHK3S4AC.js → state-3NLLRTD2.js} +3 -3
- package/dist/bundle/{store-GGUL63V7.js → store-3DFD7E66.js} +9 -9
- package/dist/bundle/store-maintenance-command-D7O6QCVF.js +48 -0
- package/dist/bundle/update-GQFRQVAV.js +69 -0
- package/dist/context/command.d.ts +4 -0
- package/dist/context/command.d.ts.map +1 -1
- package/dist/context/command.js +7 -5
- package/dist/context/command.js.map +1 -1
- package/dist/context/context.d.ts.map +1 -1
- package/dist/context/context.js +4 -3
- package/dist/context/context.js.map +1 -1
- package/dist/contract-overrides/skill.js +1 -1
- package/dist/contract-overrides/skill.js.map +1 -1
- package/dist/digest/command.d.ts +9 -0
- package/dist/digest/command.d.ts.map +1 -0
- package/dist/digest/command.js +58 -0
- package/dist/digest/command.js.map +1 -0
- package/dist/digest/digest.d.ts +57 -0
- package/dist/digest/digest.d.ts.map +1 -0
- package/dist/digest/digest.js +333 -0
- package/dist/digest/digest.js.map +1 -0
- package/dist/digest/text.d.ts +8 -0
- package/dist/digest/text.d.ts.map +1 -0
- package/dist/digest/text.js +35 -0
- package/dist/digest/text.js.map +1 -0
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +3 -2
- package/dist/examples.js.map +1 -1
- package/dist/knowledge/command.d.ts.map +1 -1
- package/dist/knowledge/command.js +17 -33
- package/dist/knowledge/command.js.map +1 -1
- package/dist/knowledge/project-context.d.ts +1 -0
- package/dist/knowledge/project-context.d.ts.map +1 -1
- package/dist/knowledge/project-context.js +6 -3
- package/dist/knowledge/project-context.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/review/command.d.ts.map +1 -1
- package/dist/review/command.js +4 -8
- package/dist/review/command.js.map +1 -1
- package/dist/review/status.d.ts +9 -0
- package/dist/review/status.d.ts.map +1 -1
- package/dist/review/status.js +11 -6
- package/dist/review/status.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/cli-memo/topics/projects.md +2 -1
- package/skills/morning-digest/SKILL.md +49 -0
- package/dist/bundle/auto-KUNM4M5S.js +0 -86
- package/dist/bundle/failure-FOZGSUOL.js +0 -66
- package/dist/bundle/server-QZPRR4H3.js +0 -48
- package/dist/bundle/server-VPEPJSQM.js +0 -61
- package/dist/bundle/store-maintenance-command-3KI6LYZB.js +0 -48
- package/dist/bundle/update-OLU3IRV6.js +0 -69
- /package/dist/bundle/{chunk-SWSCSMAU.js → chunk-NJG67ZXD.js} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MEO3B2OF.js";
|
|
12
12
|
import {
|
|
13
13
|
Command,
|
|
14
14
|
DEFAULT_IMAGE_MODEL,
|
|
@@ -48,17 +48,17 @@ import {
|
|
|
48
48
|
typedCommand,
|
|
49
49
|
vectorModelKey,
|
|
50
50
|
withAttempt
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-POSVGIP5.js";
|
|
52
52
|
import {
|
|
53
53
|
isCliFailure
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-EYKJXPDD.js";
|
|
55
55
|
import {
|
|
56
56
|
isNewer,
|
|
57
57
|
updateCommand
|
|
58
58
|
} from "./chunk-JY34MQW4.js";
|
|
59
59
|
import {
|
|
60
60
|
readOnlyLockOf
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-BBT2TWCN.js";
|
|
62
62
|
import {
|
|
63
63
|
AGENDA_COLUMNS,
|
|
64
64
|
CHAT_COLUMNS,
|
|
@@ -160,7 +160,7 @@ import {
|
|
|
160
160
|
validateAst,
|
|
161
161
|
validateFields,
|
|
162
162
|
withoutField
|
|
163
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-4J6U4RIU.js";
|
|
164
164
|
import {
|
|
165
165
|
EVENT_QUERY,
|
|
166
166
|
MEETING_FINDINGS_KIND,
|
|
@@ -214,23 +214,23 @@ import {
|
|
|
214
214
|
validateQuery,
|
|
215
215
|
walkQuery,
|
|
216
216
|
zonedMoment
|
|
217
|
-
} from "./chunk-
|
|
217
|
+
} from "./chunk-45LXRNPA.js";
|
|
218
218
|
import {
|
|
219
219
|
DEFAULT_STEMMERS,
|
|
220
220
|
createStemmer,
|
|
221
221
|
fold,
|
|
222
222
|
normalize
|
|
223
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-HQXTNBEY.js";
|
|
224
224
|
import {
|
|
225
225
|
DEFAULT_TASK_CATEGORIES,
|
|
226
226
|
FALLBACK_CATEGORY
|
|
227
|
-
} from "./chunk-
|
|
227
|
+
} from "./chunk-X3PFDJSJ.js";
|
|
228
228
|
import {
|
|
229
229
|
MAX_MODEL_IMAGE_BYTES
|
|
230
|
-
} from "./chunk-
|
|
230
|
+
} from "./chunk-KD4A5HF6.js";
|
|
231
231
|
import {
|
|
232
232
|
remoteKey
|
|
233
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-BJS2EWG5.js";
|
|
234
234
|
import {
|
|
235
235
|
Unzip,
|
|
236
236
|
UnzipInflate,
|
|
@@ -241,15 +241,15 @@ import {
|
|
|
241
241
|
placedText,
|
|
242
242
|
runEmbedders,
|
|
243
243
|
textModelsDirectory
|
|
244
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-NXJZMS35.js";
|
|
245
245
|
import {
|
|
246
246
|
installFiles,
|
|
247
247
|
megabytes
|
|
248
|
-
} from "./chunk-
|
|
248
|
+
} from "./chunk-CJQYTFN6.js";
|
|
249
249
|
import {
|
|
250
250
|
storePath,
|
|
251
251
|
wirecatDirectory
|
|
252
|
-
} from "./chunk-
|
|
252
|
+
} from "./chunk-R2YMI2ZV.js";
|
|
253
253
|
import {
|
|
254
254
|
resolvePaths,
|
|
255
255
|
writeSecurely
|
|
@@ -16902,7 +16902,7 @@ var require_lib3 = __commonJS({
|
|
|
16902
16902
|
}
|
|
16903
16903
|
});
|
|
16904
16904
|
|
|
16905
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16905
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16906
16906
|
var RULES_VERSION = 5;
|
|
16907
16907
|
var LOOK_BACK = 50;
|
|
16908
16908
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -16992,13 +16992,13 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
16992
16992
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
16993
16993
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
16994
16994
|
|
|
16995
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16995
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16996
16996
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
16997
16997
|
|
|
16998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16998
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
|
|
16999
16999
|
var MAX_BYTES = 16 * 1024 * 1024;
|
|
17000
17000
|
|
|
17001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
|
|
17002
17002
|
var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
|
|
17003
17003
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
17004
17004
|
throw new CliError("validation_error", "project preview options are required");
|
|
@@ -17020,7 +17020,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
|
|
|
17020
17020
|
}
|
|
17021
17021
|
}, "previewProjectAnnotationSnapshot");
|
|
17022
17022
|
|
|
17023
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17023
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
|
|
17024
17024
|
var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
17025
17025
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
17026
17026
|
throw new CliError("validation_error", "snapshot options are required");
|
|
@@ -17041,7 +17041,7 @@ var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
|
17041
17041
|
}
|
|
17042
17042
|
}, "snapshotProjectAnnotations");
|
|
17043
17043
|
|
|
17044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17045
17045
|
var COMMAND_NEEDS = {
|
|
17046
17046
|
"account update": ["updateProfile", "change the profile"],
|
|
17047
17047
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17091,7 +17091,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17091
17091
|
return group;
|
|
17092
17092
|
}, "hideNever");
|
|
17093
17093
|
|
|
17094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17094
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17095
17095
|
var AUDIT_PAGE = 200;
|
|
17096
17096
|
var AUDIT_BUDGET = 10;
|
|
17097
17097
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17171,7 +17171,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17171
17171
|
return found;
|
|
17172
17172
|
}, "burstJoins");
|
|
17173
17173
|
|
|
17174
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17174
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17175
17175
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17176
17176
|
command.allowUnknownOption();
|
|
17177
17177
|
const parse = command.parseOptions.bind(command);
|
|
@@ -17191,7 +17191,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17191
17191
|
return command;
|
|
17192
17192
|
}, "queryWordsAfterOptions");
|
|
17193
17193
|
|
|
17194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17195
17195
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17196
17196
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17197
17197
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -17233,7 +17233,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
17233
17233
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
17234
17234
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
17235
17235
|
|
|
17236
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17236
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
17237
17237
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
17238
17238
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17239
17239
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -17256,7 +17256,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
17256
17256
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
17257
17257
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
17258
17258
|
|
|
17259
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17259
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
17260
17260
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
17261
17261
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
17262
17262
|
const zone = timezoneOf();
|
|
@@ -17342,7 +17342,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
17342
17342
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
17343
17343
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
17344
17344
|
|
|
17345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
17346
17346
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
17347
17347
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
17348
17348
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -17474,7 +17474,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17474
17474
|
}, "addMeetingCommandsDefinition");
|
|
17475
17475
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
17476
17476
|
|
|
17477
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17477
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
17478
17478
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
17479
17479
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
17480
17480
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -17607,7 +17607,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
17607
17607
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
17608
17608
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
17609
17609
|
|
|
17610
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17610
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
17611
17611
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
17612
17612
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
17613
17613
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -17616,7 +17616,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
17616
17616
|
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");
|
|
17617
17617
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
17618
17618
|
|
|
17619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17619
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
17620
17620
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
17621
17621
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
17622
17622
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -17878,7 +17878,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
17878
17878
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
17879
17879
|
}), "sessionAnswer");
|
|
17880
17880
|
|
|
17881
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17881
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
17882
17882
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
17883
17883
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
17884
17884
|
if (key in own)
|
|
@@ -17895,12 +17895,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
17895
17895
|
return found.bind(adapter);
|
|
17896
17896
|
}, "capability");
|
|
17897
17897
|
|
|
17898
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17898
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17899
17899
|
import { randomBytes } from "node:crypto";
|
|
17900
17900
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17901
17901
|
var newOperationId = newSendId;
|
|
17902
17902
|
|
|
17903
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17903
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17904
17904
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17905
17905
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17906
17906
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -17977,7 +17977,7 @@ var storeOnlyDeps = /* @__PURE__ */ __name((store, account, { app, env }) => {
|
|
|
17977
17977
|
return { ...storedDeps(messenger, store, account, guard), ...env === void 0 ? {} : { env } };
|
|
17978
17978
|
}, "storeOnlyDeps");
|
|
17979
17979
|
|
|
17980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
17981
17981
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
17982
17982
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
17983
17983
|
var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
@@ -18000,10 +18000,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
|
18000
18000
|
}
|
|
18001
18001
|
}, "patiently");
|
|
18002
18002
|
|
|
18003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18003
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18004
18004
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18005
18005
|
|
|
18006
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18007
18007
|
var REQUEST_MS = 400;
|
|
18008
18008
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18009
18009
|
const lowest = ranges[0];
|
|
@@ -18026,13 +18026,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18026
18026
|
};
|
|
18027
18027
|
}, "estimateBackfill");
|
|
18028
18028
|
|
|
18029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18030
18030
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18031
18031
|
...error,
|
|
18032
18032
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18033
18033
|
}), "withRecovery");
|
|
18034
18034
|
|
|
18035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18036
18036
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18037
18037
|
if (isCliFailure(error))
|
|
18038
18038
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18115,7 +18115,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18115
18115
|
};
|
|
18116
18116
|
}, "mergeBatches");
|
|
18117
18117
|
|
|
18118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/domain/ref-arguments.js
|
|
18119
18119
|
var TAKES = {
|
|
18120
18120
|
chat: "a chat: chat:<provider>/<account>/<chat>, its id or its title",
|
|
18121
18121
|
message: "a message: msg:<provider>/<account>/<chat>/<message>, or a chat and the message's id"
|
|
@@ -18175,7 +18175,7 @@ var ensureAccount = /* @__PURE__ */ __name(async (reference, scope, profilesOn)
|
|
|
18175
18175
|
throw wrongAccount(reference, scope, profiles);
|
|
18176
18176
|
}, "ensureAccount");
|
|
18177
18177
|
|
|
18178
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
18179
18179
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
18180
18180
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase(), "foldName");
|
|
18181
18181
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -18220,7 +18220,7 @@ ${lines3}`, { candidates });
|
|
|
18220
18220
|
}, "ambiguous");
|
|
18221
18221
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
18222
18222
|
|
|
18223
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18223
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18224
18224
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18225
18225
|
if (deps.reads !== "store")
|
|
18226
18226
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18379,7 +18379,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18379
18379
|
}
|
|
18380
18380
|
}, "senderAmong");
|
|
18381
18381
|
|
|
18382
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
18383
18383
|
var CONTEXT_MESSAGES = 3;
|
|
18384
18384
|
var CONTEXT_MINUTES = 10;
|
|
18385
18385
|
var MAX_CHARS = 1200;
|
|
@@ -18403,12 +18403,12 @@ var context = {
|
|
|
18403
18403
|
}, "describe")
|
|
18404
18404
|
};
|
|
18405
18405
|
|
|
18406
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18406
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
18407
18407
|
var BUILT_INS = [context];
|
|
18408
18408
|
var providers = [...BUILT_INS];
|
|
18409
18409
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18410
18410
|
|
|
18411
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18411
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
18412
18412
|
var READ_PAGE = 5e3;
|
|
18413
18413
|
var CHAIN = 50;
|
|
18414
18414
|
var CONVERSATION_QUERY = {
|
|
@@ -18560,7 +18560,7 @@ var sized = /* @__PURE__ */ __name((size4) => {
|
|
|
18560
18560
|
return size4;
|
|
18561
18561
|
}, "sized");
|
|
18562
18562
|
|
|
18563
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18563
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
18564
18564
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
18565
18565
|
var MESSAGE_PAGE = 5e3;
|
|
18566
18566
|
var PER_SESSION = 8;
|
|
@@ -18579,7 +18579,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18579
18579
|
price: remote.price,
|
|
18580
18580
|
installed: true,
|
|
18581
18581
|
perBatch: PER_REQUEST * concurrency,
|
|
18582
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
18582
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-IW5FTICS.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
18583
18583
|
};
|
|
18584
18584
|
}
|
|
18585
18585
|
const model = textModel(choice);
|
|
@@ -18596,7 +18596,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18596
18596
|
if (!isTextModelInstalled(model, directory2))
|
|
18597
18597
|
throw notDownloaded(model.id);
|
|
18598
18598
|
if (apart) {
|
|
18599
|
-
const { openProcess } = await import("./process-
|
|
18599
|
+
const { openProcess } = await import("./process-NRZZD4IS.js");
|
|
18600
18600
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
18601
18601
|
}
|
|
18602
18602
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -18885,7 +18885,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
18885
18885
|
return { ...one2, state };
|
|
18886
18886
|
}, "shaped");
|
|
18887
18887
|
|
|
18888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
18889
18889
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
18890
18890
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
18891
18891
|
for (const [key, value, maximum] of [
|
|
@@ -18938,7 +18938,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
18938
18938
|
}
|
|
18939
18939
|
}, "catchUpSearch");
|
|
18940
18940
|
|
|
18941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18941
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18942
18942
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
18943
18943
|
if (deps.reads === "store") {
|
|
18944
18944
|
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`);
|
|
@@ -19304,7 +19304,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19304
19304
|
return message?.timestamp ?? fallback;
|
|
19305
19305
|
}, "timeOfKey");
|
|
19306
19306
|
|
|
19307
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19307
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
19308
19308
|
var LINKS = /https?:\/\/\S+/g;
|
|
19309
19309
|
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");
|
|
19310
19310
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -19334,7 +19334,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
19334
19334
|
});
|
|
19335
19335
|
}, "questions");
|
|
19336
19336
|
|
|
19337
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19337
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
19338
19338
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
19339
19339
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
19340
19340
|
const name = typed.trim().toLowerCase();
|
|
@@ -19391,7 +19391,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
19391
19391
|
return best.name;
|
|
19392
19392
|
}, "categorize");
|
|
19393
19393
|
|
|
19394
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19394
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
19395
19395
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
19396
19396
|
var RULES_IN = {
|
|
19397
19397
|
dialog: "all",
|
|
@@ -19597,7 +19597,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
19597
19597
|
return passes;
|
|
19598
19598
|
}, "applyTaskRulesToChats");
|
|
19599
19599
|
|
|
19600
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19600
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
19601
19601
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
19602
19602
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
19603
19603
|
const fail3 = /* @__PURE__ */ __name(() => {
|
|
@@ -19661,7 +19661,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
19661
19661
|
}
|
|
19662
19662
|
}, "validateContextEvidencePage");
|
|
19663
19663
|
|
|
19664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
19665
19665
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
19666
19666
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
19667
19667
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -19714,7 +19714,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
19714
19714
|
};
|
|
19715
19715
|
}, "contextReadBudget");
|
|
19716
19716
|
|
|
19717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19717
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
19718
19718
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
19719
19719
|
if (!port || typeof port.read !== "function")
|
|
19720
19720
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -19758,7 +19758,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
19758
19758
|
};
|
|
19759
19759
|
}, "createContextEvidenceReader");
|
|
19760
19760
|
|
|
19761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19761
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/ingest.js
|
|
19762
19762
|
var emptyReceipt = /* @__PURE__ */ __name((dryRun) => ({
|
|
19763
19763
|
dryRun,
|
|
19764
19764
|
source: null,
|
|
@@ -19833,7 +19833,7 @@ var ingest = /* @__PURE__ */ __name(async (store, envelope, { account, dryRun =
|
|
|
19833
19833
|
return receipt;
|
|
19834
19834
|
}, "ingest");
|
|
19835
19835
|
|
|
19836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
19837
19837
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
19838
19838
|
var DEFAULT_PURPOSES = ["work"];
|
|
19839
19839
|
var LINK_PURPOSE = "work";
|
|
@@ -19863,7 +19863,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
19863
19863
|
...value.split(",").map((one2) => one2.trim()).filter(Boolean)
|
|
19864
19864
|
], "purposeList");
|
|
19865
19865
|
|
|
19866
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
19867
19867
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
19868
19868
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
19869
19869
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -19903,7 +19903,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
19903
19903
|
};
|
|
19904
19904
|
}, "dateWindow");
|
|
19905
19905
|
|
|
19906
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19906
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
19907
19907
|
var DAY_MS = 864e5;
|
|
19908
19908
|
var NEW_DAYS = 30;
|
|
19909
19909
|
var SAME_TEXT_MIN = 20;
|
|
@@ -19980,7 +19980,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
19980
19980
|
};
|
|
19981
19981
|
}, "scorePerson");
|
|
19982
19982
|
|
|
19983
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19983
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
19984
19984
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
19985
19985
|
const controller = new AbortController();
|
|
19986
19986
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -19996,7 +19996,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run) => {
|
|
|
19996
19996
|
}
|
|
19997
19997
|
}, "withTimeLimit");
|
|
19998
19998
|
|
|
19999
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
20000
20000
|
var REGISTRIES = {
|
|
20001
20001
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
20002
20002
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -20083,7 +20083,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
20083
20083
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
20084
20084
|
})), "notCovered");
|
|
20085
20085
|
|
|
20086
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20086
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
20087
20087
|
var ACTIVITY_MESSAGES = 1e3;
|
|
20088
20088
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
20089
20089
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20171,7 +20171,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
20171
20171
|
};
|
|
20172
20172
|
}, "botCheckService");
|
|
20173
20173
|
|
|
20174
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20174
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
20175
20175
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
20176
20176
|
if (value === void 0)
|
|
20177
20177
|
return void 0;
|
|
@@ -20181,7 +20181,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
20181
20181
|
return id2;
|
|
20182
20182
|
}, "threadIdOf");
|
|
20183
20183
|
|
|
20184
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20184
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
20185
20185
|
var TOP_POSTS = 5;
|
|
20186
20186
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
20187
20187
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20298,7 +20298,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20298
20298
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20299
20299
|
}, "median");
|
|
20300
20300
|
|
|
20301
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20301
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20302
20302
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20303
20303
|
const events = [];
|
|
20304
20304
|
for (const stay of stays) {
|
|
@@ -20330,7 +20330,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20330
20330
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
20331
20331
|
}, "memberEvents");
|
|
20332
20332
|
|
|
20333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20334
20334
|
var EVENTS_DAYS = 7;
|
|
20335
20335
|
var TRACKED_DAYS = 30;
|
|
20336
20336
|
var STATS_PAGE = 1e3;
|
|
@@ -20625,7 +20625,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20625
20625
|
return members.length === 0 ? null : members;
|
|
20626
20626
|
}, "storedMembers");
|
|
20627
20627
|
|
|
20628
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
20629
20629
|
var INBOX_CHATS = 20;
|
|
20630
20630
|
var REVIEW_DAYS = 3;
|
|
20631
20631
|
var UNANSWERED_HOURS = 24;
|
|
@@ -20833,7 +20833,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20833
20833
|
};
|
|
20834
20834
|
}, "inboxService");
|
|
20835
20835
|
|
|
20836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
20837
20837
|
var CONTEXT_MESSAGES2 = 10;
|
|
20838
20838
|
var CONTEXT_BYTES = 64 * 1024;
|
|
20839
20839
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -21094,10 +21094,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
21094
21094
|
};
|
|
21095
21095
|
}, "personMessages");
|
|
21096
21096
|
|
|
21097
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21097
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21098
21098
|
import { createHash } from "node:crypto";
|
|
21099
21099
|
|
|
21100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
21101
21101
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
21102
21102
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
21103
21103
|
const parsed = parseMeetingReference(reference);
|
|
@@ -21115,7 +21115,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
21115
21115
|
return { parsed, meeting };
|
|
21116
21116
|
}, "authorizedMeetingMetadata");
|
|
21117
21117
|
|
|
21118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21119
21119
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
21120
21120
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
21121
21121
|
if (signal?.aborted)
|
|
@@ -21314,7 +21314,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
21314
21314
|
return { ...packet, fingerprint: hash(packet) };
|
|
21315
21315
|
}, "readMeetingEvidence");
|
|
21316
21316
|
|
|
21317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21317
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
21318
21318
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
21319
21319
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
21320
21320
|
const requestedAccounts = options.accountIds;
|
|
@@ -21413,7 +21413,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
21413
21413
|
};
|
|
21414
21414
|
}, "personMeetingContext");
|
|
21415
21415
|
|
|
21416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21416
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
21417
21417
|
var PREPARE_BYTES = 96 * 1024;
|
|
21418
21418
|
var MEETINGS = 5;
|
|
21419
21419
|
var CUES = 3;
|
|
@@ -21530,7 +21530,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
21530
21530
|
}
|
|
21531
21531
|
}, "meetingsOf");
|
|
21532
21532
|
|
|
21533
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21533
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
21534
21534
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
21535
21535
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
21536
21536
|
const held = await storeIfOpen(deps);
|
|
@@ -21600,7 +21600,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
21600
21600
|
complete: false
|
|
21601
21601
|
})), "quiet");
|
|
21602
21602
|
|
|
21603
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
21604
21604
|
var TIMELINE_ITEMS = 50;
|
|
21605
21605
|
var TIMELINE_MAX = 500;
|
|
21606
21606
|
var SCOPES2 = ["personal", "work"];
|
|
@@ -21655,7 +21655,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
21655
21655
|
};
|
|
21656
21656
|
}, "personTimeline");
|
|
21657
21657
|
|
|
21658
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21658
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
21659
21659
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
21660
21660
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
21661
21661
|
const held = await storeIfOpen(deps);
|
|
@@ -21882,7 +21882,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
21882
21882
|
return rest;
|
|
21883
21883
|
}, "withoutPhone");
|
|
21884
21884
|
|
|
21885
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21885
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
21886
21886
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
21887
21887
|
var PERIOD_FIELD = "created";
|
|
21888
21888
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -21985,7 +21985,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
21985
21985
|
}));
|
|
21986
21986
|
}, "meetingNames");
|
|
21987
21987
|
|
|
21988
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21988
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
21989
21989
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
21990
21990
|
const tags = /* @__PURE__ */ new Map();
|
|
21991
21991
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -21994,7 +21994,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
21994
21994
|
return tags;
|
|
21995
21995
|
}, "taskTagFilters");
|
|
21996
21996
|
|
|
21997
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21997
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
21998
21998
|
var TASK_QUERY = {
|
|
21999
21999
|
entity: "task",
|
|
22000
22000
|
backend: "sql",
|
|
@@ -22486,7 +22486,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
22486
22486
|
};
|
|
22487
22487
|
}, "taskView");
|
|
22488
22488
|
|
|
22489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22489
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposal-tasks.js
|
|
22490
22490
|
var proposalSource = /* @__PURE__ */ __name((id2) => `proposed-action:${id2}`, "proposalSource");
|
|
22491
22491
|
var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
22492
22492
|
const proposal = await store.proposedActions.get(id2);
|
|
@@ -22509,7 +22509,7 @@ var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
|
22509
22509
|
return { proposal: await store.proposedActions.approve(proposal.id, by, { task: task2.id }), task: task2 };
|
|
22510
22510
|
}, "approveAsTask");
|
|
22511
22511
|
|
|
22512
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22512
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/ids.js
|
|
22513
22513
|
var MAX_IDS = 500;
|
|
22514
22514
|
var refuse = /* @__PURE__ */ __name((message) => {
|
|
22515
22515
|
throw new CliError("validation_error", message, { reason: "proposal.ids" });
|
|
@@ -22551,7 +22551,7 @@ var parseProposalIds = /* @__PURE__ */ __name((text2) => {
|
|
|
22551
22551
|
return ids;
|
|
22552
22552
|
}, "parseProposalIds");
|
|
22553
22553
|
|
|
22554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22554
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/shared.js
|
|
22555
22555
|
var proposerOfAuthor = /* @__PURE__ */ __name((author) => {
|
|
22556
22556
|
if (author.type === "person")
|
|
22557
22557
|
return { type: "person", id: author.id };
|
|
@@ -22593,76 +22593,8 @@ var storedStatus = /* @__PURE__ */ __name((filter) => {
|
|
|
22593
22593
|
return status === "proposed" || status === "rejected" ? status : void 0;
|
|
22594
22594
|
}, "storedStatus");
|
|
22595
22595
|
|
|
22596
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22597
|
-
var
|
|
22598
|
-
var ORGANIZATION_RENAME_KIND = "organization_rename";
|
|
22599
|
-
var rowOf = /* @__PURE__ */ __name((action2) => {
|
|
22600
|
-
const renamed2 = action2.kind === ORGANIZATION_RENAME_KIND;
|
|
22601
|
-
const { name, kind } = action2.payload;
|
|
22602
|
-
const { organization: organization2 } = action2.payload;
|
|
22603
|
-
return {
|
|
22604
|
-
id: action2.id,
|
|
22605
|
-
kind: "organization",
|
|
22606
|
-
status: actionStatus(action2.status),
|
|
22607
|
-
project: null,
|
|
22608
|
-
subject: renamed2 ? organization2 : "organization:new",
|
|
22609
|
-
object: null,
|
|
22610
|
-
summary: renamed2 ? `rename ${organization2} to ${name}` : `add ${kind} ${name}`,
|
|
22611
|
-
proposedBy: proposerOfAction(action2),
|
|
22612
|
-
reason: action2.reason,
|
|
22613
|
-
evidence: [],
|
|
22614
|
-
score: null,
|
|
22615
|
-
signals: null,
|
|
22616
|
-
parts: null,
|
|
22617
|
-
createdAt: action2.createdAt
|
|
22618
|
-
};
|
|
22619
|
-
}, "rowOf");
|
|
22620
|
-
var proposeOrganization = /* @__PURE__ */ __name((store, input, by, reason) => store.proposedActions.propose({
|
|
22621
|
-
kind: ORGANIZATION_ADD_KIND,
|
|
22622
|
-
by,
|
|
22623
|
-
payload: input,
|
|
22624
|
-
...reason === void 0 ? {} : { reason }
|
|
22625
|
-
}), "proposeOrganization");
|
|
22626
|
-
var proposeOrganizationRename = /* @__PURE__ */ __name((store, input, by, reason) => store.proposedActions.propose({
|
|
22627
|
-
kind: ORGANIZATION_RENAME_KIND,
|
|
22628
|
-
by,
|
|
22629
|
-
payload: input,
|
|
22630
|
-
...reason === void 0 ? {} : { reason }
|
|
22631
|
-
}), "proposeOrganizationRename");
|
|
22632
|
-
var organizationKind = /* @__PURE__ */ __name((store) => ({
|
|
22633
|
-
kind: "organization",
|
|
22634
|
-
stored: [ORGANIZATION_ADD_KIND, ORGANIZATION_RENAME_KIND],
|
|
22635
|
-
list: /* @__PURE__ */ __name(async (filter) => {
|
|
22636
|
-
const status = storedStatus(filter);
|
|
22637
|
-
const actions = await store.proposedActions.list({
|
|
22638
|
-
kinds: [ORGANIZATION_ADD_KIND, ORGANIZATION_RENAME_KIND],
|
|
22639
|
-
...status === void 0 ? {} : { status },
|
|
22640
|
-
...pushed2(filter)
|
|
22641
|
-
});
|
|
22642
|
-
return kept(actions.map(rowOf), filter);
|
|
22643
|
-
}, "list"),
|
|
22644
|
-
get: /* @__PURE__ */ __name(async (id2) => rowOf(await store.proposedActions.get(id2)), "get"),
|
|
22645
|
-
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
22646
|
-
if (!confirm) {
|
|
22647
|
-
await store.proposedActions.reject(id2, by, reason);
|
|
22648
|
-
return { id: id2, kind: "organization", status: "rejected", made: [] };
|
|
22649
|
-
}
|
|
22650
|
-
const action2 = await store.proposedActions.get(id2);
|
|
22651
|
-
if (action2.kind === ORGANIZATION_RENAME_KIND) {
|
|
22652
|
-
const { organization: organization2, name: name2 } = action2.payload;
|
|
22653
|
-
const renamed2 = await store.knowledge.updateOrganization(organization2, { name: name2 });
|
|
22654
|
-
await store.proposedActions.approve(id2, by, { organization: renamed2.ref });
|
|
22655
|
-
return { id: id2, kind: "organization", status: "confirmed", made: [] };
|
|
22656
|
-
}
|
|
22657
|
-
const { name, kind, scope } = action2.payload;
|
|
22658
|
-
const made = await store.knowledge.addOrganization({ name, kind, ...scope === void 0 ? {} : { scope } });
|
|
22659
|
-
await store.proposedActions.approve(id2, by, { organization: made.ref });
|
|
22660
|
-
return { id: id2, kind: "organization", status: "confirmed", made: [made.ref] };
|
|
22661
|
-
}, "decide")
|
|
22662
|
-
}), "organizationKind");
|
|
22663
|
-
|
|
22664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/action.js
|
|
22665
|
-
var rowOf2 = /* @__PURE__ */ __name((action2) => ({
|
|
22596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/action.js
|
|
22597
|
+
var rowOf = /* @__PURE__ */ __name((action2) => ({
|
|
22666
22598
|
id: action2.id,
|
|
22667
22599
|
kind: "action",
|
|
22668
22600
|
status: actionStatus(action2.status),
|
|
@@ -22688,9 +22620,9 @@ var actionKind = /* @__PURE__ */ __name((store, claimed) => ({
|
|
|
22688
22620
|
...status === void 0 ? {} : { status },
|
|
22689
22621
|
...pushed2(filter)
|
|
22690
22622
|
});
|
|
22691
|
-
return kept(actions.map(
|
|
22623
|
+
return kept(actions.map(rowOf), filter);
|
|
22692
22624
|
}, "list"),
|
|
22693
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
22625
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf(await store.proposedActions.get(id2)), "get"),
|
|
22694
22626
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
22695
22627
|
if (!confirm) {
|
|
22696
22628
|
await store.proposedActions.reject(id2, by, reason);
|
|
@@ -22701,7 +22633,7 @@ var actionKind = /* @__PURE__ */ __name((store, claimed) => ({
|
|
|
22701
22633
|
}, "decide")
|
|
22702
22634
|
}), "actionKind");
|
|
22703
22635
|
|
|
22704
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/fact.js
|
|
22705
22637
|
var STATUS = {
|
|
22706
22638
|
proposed: "proposed",
|
|
22707
22639
|
accepted: "confirmed",
|
|
@@ -22709,7 +22641,7 @@ var STATUS = {
|
|
|
22709
22641
|
reversed: "confirmed",
|
|
22710
22642
|
rejected: "rejected"
|
|
22711
22643
|
};
|
|
22712
|
-
var
|
|
22644
|
+
var rowOf2 = /* @__PURE__ */ __name((fact) => ({
|
|
22713
22645
|
id: fact.ref,
|
|
22714
22646
|
kind: "fact",
|
|
22715
22647
|
status: STATUS[fact.status],
|
|
@@ -22735,17 +22667,17 @@ var factKind = /* @__PURE__ */ __name((store) => ({
|
|
|
22735
22667
|
...status === "all" ? {} : { status: status === "confirmed" ? "accepted" : status },
|
|
22736
22668
|
order: "created"
|
|
22737
22669
|
});
|
|
22738
|
-
return kept(facts.map(
|
|
22670
|
+
return kept(facts.map(rowOf2), filter);
|
|
22739
22671
|
}, "list"),
|
|
22740
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
22672
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf2(await store.facts.get(id2)), "get"),
|
|
22741
22673
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
22742
22674
|
const fact = confirm ? await store.facts.accept(id2, by, reason) : await store.facts.reject(id2, by, reason);
|
|
22743
22675
|
return { id: id2, kind: "fact", status: confirm ? "confirmed" : "rejected", made: confirm ? [fact.ref] : [] };
|
|
22744
22676
|
}, "decide")
|
|
22745
22677
|
}), "factKind");
|
|
22746
22678
|
|
|
22747
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22748
|
-
var
|
|
22679
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/finance.js
|
|
22680
|
+
var rowOf3 = /* @__PURE__ */ __name((kind, entry) => ({
|
|
22749
22681
|
id: entry.ref,
|
|
22750
22682
|
kind,
|
|
22751
22683
|
status: entry.review,
|
|
@@ -22768,9 +22700,9 @@ var financeKind = /* @__PURE__ */ __name((store, kind) => ({
|
|
|
22768
22700
|
const status = filter.status ?? "proposed";
|
|
22769
22701
|
const options = { ...pushed2(filter), ...status === "all" ? {} : { review: status } };
|
|
22770
22702
|
const entries = kind === "invoice" ? await store.finance.invoices(options) : await store.finance.payments(options);
|
|
22771
|
-
return kept(entries.map((entry) =>
|
|
22703
|
+
return kept(entries.map((entry) => rowOf3(kind, entry)), filter);
|
|
22772
22704
|
}, "list"),
|
|
22773
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
22705
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf3(kind, kind === "invoice" ? await store.finance.invoice(id2) : await store.finance.payment(id2)), "get"),
|
|
22774
22706
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
22775
22707
|
const entry = confirm ? await store.finance.confirm(id2, by, reason) : await store.finance.reject(id2, by, reason);
|
|
22776
22708
|
return { id: id2, kind, status: confirm ? "confirmed" : "rejected", made: confirm ? [entry.ref] : [] };
|
|
@@ -22779,14 +22711,14 @@ var financeKind = /* @__PURE__ */ __name((store, kind) => ({
|
|
|
22779
22711
|
var invoiceKind = /* @__PURE__ */ __name((store) => financeKind(store, "invoice"), "invoiceKind");
|
|
22780
22712
|
var paymentKind = /* @__PURE__ */ __name((store) => financeKind(store, "payment"), "paymentKind");
|
|
22781
22713
|
|
|
22782
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22714
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/findings.js
|
|
22783
22715
|
var FACT_SUMMARIES = {
|
|
22784
22716
|
fact: /* @__PURE__ */ __name((finding) => finding.statement, "fact"),
|
|
22785
22717
|
task: /* @__PURE__ */ __name((finding) => finding.title, "task"),
|
|
22786
22718
|
payment: /* @__PURE__ */ __name((finding) => paymentTitle(finding), "payment")
|
|
22787
22719
|
};
|
|
22788
22720
|
var statusOf = /* @__PURE__ */ __name((batch) => batch.status === "proposed" ? "proposed" : batch.receipt?.accepted.length ? "confirmed" : "rejected", "statusOf");
|
|
22789
|
-
var
|
|
22721
|
+
var rowOf4 = /* @__PURE__ */ __name((batch, createdAt) => {
|
|
22790
22722
|
const findings = batch.input.findings;
|
|
22791
22723
|
const outcome2 = /* @__PURE__ */ __name((id2) => batch.receipt?.items.find((item2) => item2.id === id2)?.status ?? null, "outcome");
|
|
22792
22724
|
return {
|
|
@@ -22812,7 +22744,7 @@ var rowOf5 = /* @__PURE__ */ __name((batch, createdAt) => {
|
|
|
22812
22744
|
};
|
|
22813
22745
|
}, "rowOf");
|
|
22814
22746
|
var findingsKind = /* @__PURE__ */ __name((store) => {
|
|
22815
|
-
const created = /* @__PURE__ */ __name(async (batch) =>
|
|
22747
|
+
const created = /* @__PURE__ */ __name(async (batch) => rowOf4(batch, (await store.proposedActions.get(batch.id)).createdAt), "created");
|
|
22816
22748
|
return {
|
|
22817
22749
|
kind: "findings",
|
|
22818
22750
|
stored: [EVIDENCE_FINDINGS_KIND],
|
|
@@ -22851,7 +22783,7 @@ var findingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
22851
22783
|
};
|
|
22852
22784
|
}, "findingsKind");
|
|
22853
22785
|
|
|
22854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22786
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/key-document.js
|
|
22855
22787
|
var linkRow = /* @__PURE__ */ __name((link4) => ({
|
|
22856
22788
|
id: `key:${link4.id}`,
|
|
22857
22789
|
kind: "key_document",
|
|
@@ -22919,7 +22851,7 @@ var keyDocumentKind = /* @__PURE__ */ __name((store) => {
|
|
|
22919
22851
|
};
|
|
22920
22852
|
}, "keyDocumentKind");
|
|
22921
22853
|
|
|
22922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22854
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/mail-findings.js
|
|
22923
22855
|
var words = /* @__PURE__ */ __name((...parts) => parts.filter(Boolean).join(" "), "words");
|
|
22924
22856
|
var summaryOf = /* @__PURE__ */ __name((finding) => {
|
|
22925
22857
|
switch (finding.kind) {
|
|
@@ -22945,7 +22877,7 @@ var summaryOf = /* @__PURE__ */ __name((finding) => {
|
|
|
22945
22877
|
return words("order", finding.number, finding.supplierName, finding.status, `\xB7 ${finding.reason}`);
|
|
22946
22878
|
}
|
|
22947
22879
|
}, "summaryOf");
|
|
22948
|
-
var
|
|
22880
|
+
var rowOf5 = /* @__PURE__ */ __name((batch, createdAt) => {
|
|
22949
22881
|
const findings = batch.input.findings;
|
|
22950
22882
|
const outcome2 = /* @__PURE__ */ __name((id2) => batch.receipt?.items.find((item2) => item2.id === id2)?.status ?? null, "outcome");
|
|
22951
22883
|
const project2 = findings.flatMap((finding) => "project" in finding && finding.project ? [finding.project] : [])[0] ?? null;
|
|
@@ -22972,7 +22904,7 @@ var rowOf6 = /* @__PURE__ */ __name((batch, createdAt) => {
|
|
|
22972
22904
|
};
|
|
22973
22905
|
}, "rowOf");
|
|
22974
22906
|
var mailFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
22975
|
-
const created = /* @__PURE__ */ __name(async (batch) =>
|
|
22907
|
+
const created = /* @__PURE__ */ __name(async (batch) => rowOf5(batch, (await store.proposedActions.get(batch.id)).createdAt), "created");
|
|
22976
22908
|
return {
|
|
22977
22909
|
kind: "mail_findings",
|
|
22978
22910
|
stored: [MAIL_FINDINGS_KIND],
|
|
@@ -23007,8 +22939,8 @@ var mailFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
23007
22939
|
};
|
|
23008
22940
|
}, "mailFindingsKind");
|
|
23009
22941
|
|
|
23010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23011
|
-
var
|
|
22942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/meeting-findings.js
|
|
22943
|
+
var rowOf6 = /* @__PURE__ */ __name((action2, batch) => {
|
|
23012
22944
|
const findings = batch.input.findings;
|
|
23013
22945
|
const projects = [...new Set(findings.map((one2) => "project" in one2 ? one2.project : void 0))];
|
|
23014
22946
|
const outcome2 = /* @__PURE__ */ __name((id2) => batch.receipt?.items.find((item2) => item2.id === id2)?.status ?? null, "outcome");
|
|
@@ -23053,12 +22985,12 @@ var meetingFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
23053
22985
|
...filter.by === void 0 ? {} : { proposedBy: filter.by },
|
|
23054
22986
|
limit: Math.min(filter.offset + filter.limit, 500)
|
|
23055
22987
|
});
|
|
23056
|
-
const rows = await Promise.all(actions.map(async (action2) =>
|
|
22988
|
+
const rows = await Promise.all(actions.map(async (action2) => rowOf6(action2, (await batchOf(action2)).batch)));
|
|
23057
22989
|
return kept(rows, { ...filter, limit: filter.offset + filter.limit });
|
|
23058
22990
|
}, "list"),
|
|
23059
22991
|
get: /* @__PURE__ */ __name(async (id2) => {
|
|
23060
22992
|
const action2 = await store.proposedActions.get(id2);
|
|
23061
|
-
return
|
|
22993
|
+
return rowOf6(action2, (await batchOf(action2)).batch);
|
|
23062
22994
|
}, "get"),
|
|
23063
22995
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, parts }) => {
|
|
23064
22996
|
const { account, batch } = await batchOf(await store.proposedActions.get(id2));
|
|
@@ -23071,14 +23003,14 @@ var meetingFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
23071
23003
|
};
|
|
23072
23004
|
}, "meetingFindingsKind");
|
|
23073
23005
|
|
|
23074
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/memory.js
|
|
23075
23007
|
var STATUS2 = {
|
|
23076
23008
|
proposed: "proposed",
|
|
23077
23009
|
confirmed: "confirmed",
|
|
23078
23010
|
superseded: "confirmed",
|
|
23079
23011
|
stale: "rejected"
|
|
23080
23012
|
};
|
|
23081
|
-
var
|
|
23013
|
+
var rowOf7 = /* @__PURE__ */ __name((memory) => ({
|
|
23082
23014
|
id: memory.ref,
|
|
23083
23015
|
kind: "memory",
|
|
23084
23016
|
status: STATUS2[memory.status],
|
|
@@ -23103,17 +23035,17 @@ var memoryKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23103
23035
|
...pushed2(filter),
|
|
23104
23036
|
...status === "all" ? {} : { status: status === "rejected" ? "stale" : status }
|
|
23105
23037
|
});
|
|
23106
|
-
return kept(memories.map(
|
|
23038
|
+
return kept(memories.map(rowOf7), filter);
|
|
23107
23039
|
}, "list"),
|
|
23108
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
23040
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf7(await store.memories.get(id2)), "get"),
|
|
23109
23041
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by }) => {
|
|
23110
23042
|
const memory = confirm ? await store.memories.confirm(id2, by) : await store.memories.markStale(id2, by);
|
|
23111
23043
|
return { id: id2, kind: "memory", status: confirm ? "confirmed" : "rejected", made: confirm ? [memory.ref] : [] };
|
|
23112
23044
|
}, "decide")
|
|
23113
23045
|
}), "memoryKind");
|
|
23114
23046
|
|
|
23115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23116
|
-
var
|
|
23047
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/orders.js
|
|
23048
|
+
var rowOf8 = /* @__PURE__ */ __name((order) => ({
|
|
23117
23049
|
id: order.ref,
|
|
23118
23050
|
kind: "order",
|
|
23119
23051
|
status: order.review,
|
|
@@ -23135,16 +23067,72 @@ var orderKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23135
23067
|
list: /* @__PURE__ */ __name(async (filter) => {
|
|
23136
23068
|
const status = filter.status ?? "proposed";
|
|
23137
23069
|
const orders = await store.orders.list({ ...pushed2(filter), ...status === "all" ? {} : { review: status } });
|
|
23138
|
-
return kept(orders.map(
|
|
23070
|
+
return kept(orders.map(rowOf8), filter);
|
|
23139
23071
|
}, "list"),
|
|
23140
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
23072
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf8(await store.orders.get(id2)), "get"),
|
|
23141
23073
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
23142
23074
|
const order = confirm ? await store.orders.confirm(id2, by, reason) : await store.orders.reject(id2, by, reason);
|
|
23143
23075
|
return { id: id2, kind: "order", status: confirm ? "confirmed" : "rejected", made: confirm ? [order.ref] : [] };
|
|
23144
23076
|
}, "decide")
|
|
23145
23077
|
}), "orderKind");
|
|
23146
23078
|
|
|
23147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23079
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/organization.js
|
|
23080
|
+
var ORGANIZATION_ADD_KIND = "organization_add";
|
|
23081
|
+
var ORGANIZATION_RENAME_KIND = "organization_rename";
|
|
23082
|
+
var rowOf9 = /* @__PURE__ */ __name((action2) => {
|
|
23083
|
+
const renamed2 = action2.kind === ORGANIZATION_RENAME_KIND;
|
|
23084
|
+
const { name, kind } = action2.payload;
|
|
23085
|
+
const { organization: organization2 } = action2.payload;
|
|
23086
|
+
return {
|
|
23087
|
+
id: action2.id,
|
|
23088
|
+
kind: "organization",
|
|
23089
|
+
status: actionStatus(action2.status),
|
|
23090
|
+
project: null,
|
|
23091
|
+
subject: renamed2 ? organization2 : "organization:new",
|
|
23092
|
+
object: null,
|
|
23093
|
+
summary: renamed2 ? `rename ${organization2} to ${name}` : `add ${kind} ${name}`,
|
|
23094
|
+
proposedBy: proposerOfAction(action2),
|
|
23095
|
+
reason: action2.reason,
|
|
23096
|
+
evidence: [],
|
|
23097
|
+
score: null,
|
|
23098
|
+
signals: null,
|
|
23099
|
+
parts: null,
|
|
23100
|
+
createdAt: action2.createdAt
|
|
23101
|
+
};
|
|
23102
|
+
}, "rowOf");
|
|
23103
|
+
var organizationKind = /* @__PURE__ */ __name((store) => ({
|
|
23104
|
+
kind: "organization",
|
|
23105
|
+
stored: [ORGANIZATION_ADD_KIND, ORGANIZATION_RENAME_KIND],
|
|
23106
|
+
list: /* @__PURE__ */ __name(async (filter) => {
|
|
23107
|
+
const status = storedStatus(filter);
|
|
23108
|
+
const actions = await store.proposedActions.list({
|
|
23109
|
+
kinds: [ORGANIZATION_ADD_KIND, ORGANIZATION_RENAME_KIND],
|
|
23110
|
+
...status === void 0 ? {} : { status },
|
|
23111
|
+
...pushed2(filter)
|
|
23112
|
+
});
|
|
23113
|
+
return kept(actions.map(rowOf9), filter);
|
|
23114
|
+
}, "list"),
|
|
23115
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf9(await store.proposedActions.get(id2)), "get"),
|
|
23116
|
+
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
23117
|
+
if (!confirm) {
|
|
23118
|
+
await store.proposedActions.reject(id2, by, reason);
|
|
23119
|
+
return { id: id2, kind: "organization", status: "rejected", made: [] };
|
|
23120
|
+
}
|
|
23121
|
+
const action2 = await store.proposedActions.get(id2);
|
|
23122
|
+
if (action2.kind === ORGANIZATION_RENAME_KIND) {
|
|
23123
|
+
const { organization: organization2, name: name2 } = action2.payload;
|
|
23124
|
+
const renamed2 = await store.knowledge.updateOrganization(organization2, { name: name2 });
|
|
23125
|
+
await store.proposedActions.approve(id2, by, { organization: renamed2.ref });
|
|
23126
|
+
return { id: id2, kind: "organization", status: "confirmed", made: [] };
|
|
23127
|
+
}
|
|
23128
|
+
const { name, kind, scope } = action2.payload;
|
|
23129
|
+
const made = await store.knowledge.addOrganization({ name, kind, ...scope === void 0 ? {} : { scope } });
|
|
23130
|
+
await store.proposedActions.approve(id2, by, { organization: made.ref });
|
|
23131
|
+
return { id: id2, kind: "organization", status: "confirmed", made: [made.ref] };
|
|
23132
|
+
}, "decide")
|
|
23133
|
+
}), "organizationKind");
|
|
23134
|
+
|
|
23135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship.js
|
|
23148
23136
|
var linkRow2 = /* @__PURE__ */ __name((link4) => ({
|
|
23149
23137
|
id: `link:${link4.id}`,
|
|
23150
23138
|
kind: "relationship",
|
|
@@ -23218,7 +23206,7 @@ var relationshipKind = /* @__PURE__ */ __name((store) => {
|
|
|
23218
23206
|
};
|
|
23219
23207
|
}, "relationshipKind");
|
|
23220
23208
|
|
|
23221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship-update.js
|
|
23222
23210
|
var KIND = "relationship_update";
|
|
23223
23211
|
var summaryOf2 = /* @__PURE__ */ __name(({ changes }) => Object.entries(changes).map(([field, value]) => `${field} ${value ?? "cleared"}`).join(", "), "summaryOf");
|
|
23224
23212
|
var rowOf10 = /* @__PURE__ */ __name((action2) => {
|
|
@@ -23268,7 +23256,7 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23268
23256
|
}, "decide")
|
|
23269
23257
|
}), "relationshipUpdateKind");
|
|
23270
23258
|
|
|
23271
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23259
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/task-close.js
|
|
23272
23260
|
var rowOf11 = /* @__PURE__ */ __name((task2) => {
|
|
23273
23261
|
const suggestion = task2.closeSuggestion;
|
|
23274
23262
|
if (suggestion === null)
|
|
@@ -23336,7 +23324,7 @@ var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
|
23336
23324
|
};
|
|
23337
23325
|
}, "taskCloseKind");
|
|
23338
23326
|
|
|
23339
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/proposals/registry.js
|
|
23340
23328
|
var PREFIX = /^([a-z][a-z_]*):/;
|
|
23341
23329
|
var marked = /* @__PURE__ */ __name((kind, row) => kind.ownerOnly ? { ...row, ownerOnly: true } : row, "marked");
|
|
23342
23330
|
var refusalOf = /* @__PURE__ */ __name((id2, error) => {
|
|
@@ -23464,7 +23452,7 @@ var proposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
23464
23452
|
return registry;
|
|
23465
23453
|
}, "proposalRegistry");
|
|
23466
23454
|
|
|
23467
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23455
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
23468
23456
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
23469
23457
|
if (newest === null)
|
|
23470
23458
|
return null;
|
|
@@ -23473,7 +23461,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
23473
23461
|
return newest.addressed ? "owed" : null;
|
|
23474
23462
|
}, "mailTurn");
|
|
23475
23463
|
|
|
23476
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23464
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
23477
23465
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
23478
23466
|
if (error instanceof CliError && error.code === "not_found")
|
|
23479
23467
|
return void 0;
|
|
@@ -23531,7 +23519,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
23531
23519
|
};
|
|
23532
23520
|
}, "mailActivity");
|
|
23533
23521
|
|
|
23534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
23535
23523
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
23536
23524
|
const ids = [...new Set(chatIds)];
|
|
23537
23525
|
if (ids.length === 0)
|
|
@@ -23557,7 +23545,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
23557
23545
|
}));
|
|
23558
23546
|
}, "chatCoverage");
|
|
23559
23547
|
|
|
23560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23548
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
23561
23549
|
var DAY = 864e5;
|
|
23562
23550
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
23563
23551
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -23804,7 +23792,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
23804
23792
|
};
|
|
23805
23793
|
}, "agendaItem");
|
|
23806
23794
|
|
|
23807
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23795
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
23808
23796
|
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");
|
|
23809
23797
|
var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) => {
|
|
23810
23798
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -23820,7 +23808,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) =
|
|
|
23820
23808
|
}, "excerpt");
|
|
23821
23809
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
23822
23810
|
|
|
23823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23811
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/link-scorers/shared.js
|
|
23824
23812
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
23825
23813
|
var folded = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "folded");
|
|
23826
23814
|
var wholeWords = /* @__PURE__ */ __name((term) => new RegExp(`(?<![\\p{L}\\p{N}\\p{M}_])${escaped(normalizeVocabularyName(term))}(?![\\p{L}\\p{N}\\p{M}_])`, "u"), "wholeWords");
|
|
@@ -23859,7 +23847,7 @@ var identitiesIn = /* @__PURE__ */ __name(async (store, people, provider) => {
|
|
|
23859
23847
|
return found;
|
|
23860
23848
|
}, "identitiesIn");
|
|
23861
23849
|
|
|
23862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23850
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/link-scorers/alias-hits.js
|
|
23863
23851
|
var SEARCH_LIMIT = 500;
|
|
23864
23852
|
var aliasWeight = /* @__PURE__ */ __name((hits) => hits >= 10 ? 0.55 : hits >= 3 ? 0.35 : 0, "aliasWeight");
|
|
23865
23853
|
var aliasHits = {
|
|
@@ -23908,7 +23896,7 @@ var aliasHits = {
|
|
|
23908
23896
|
}, "candidates")
|
|
23909
23897
|
};
|
|
23910
23898
|
|
|
23911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-senders.js
|
|
23912
23900
|
var WEIGHT = 0.5;
|
|
23913
23901
|
var LARGE_GROUP_WEIGHT = 0.2;
|
|
23914
23902
|
var LARGE_GROUP = 30;
|
|
@@ -23960,7 +23948,7 @@ var chatSenders = {
|
|
|
23960
23948
|
}, "candidates")
|
|
23961
23949
|
};
|
|
23962
23950
|
|
|
23963
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23951
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-title.js
|
|
23964
23952
|
var WEIGHT2 = 0.7;
|
|
23965
23953
|
var chatTitle = {
|
|
23966
23954
|
id: "chat-title",
|
|
@@ -23999,7 +23987,7 @@ var chatTitle = {
|
|
|
23999
23987
|
}, "candidates")
|
|
24000
23988
|
};
|
|
24001
23989
|
|
|
24002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/link-scorers/email-domain.js
|
|
24003
23991
|
var WEIGHT3 = 0.3;
|
|
24004
23992
|
var CONTACTS = 500;
|
|
24005
23993
|
var MOST_PAIRS = 200;
|
|
@@ -24060,7 +24048,7 @@ var emailDomain = {
|
|
|
24060
24048
|
}, "candidates")
|
|
24061
24049
|
};
|
|
24062
24050
|
|
|
24063
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24051
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/link-scorers/mail-thread.js
|
|
24064
24052
|
var NAMED = 0.7;
|
|
24065
24053
|
var MEMBER_ONLY = 0.3;
|
|
24066
24054
|
var READ_LIMIT2 = 500;
|
|
@@ -24133,7 +24121,7 @@ var mailThread = {
|
|
|
24133
24121
|
}, "candidates")
|
|
24134
24122
|
};
|
|
24135
24123
|
|
|
24136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-chats.js
|
|
24137
24125
|
var WEIGHT4 = 0.5;
|
|
24138
24126
|
var memberChats = {
|
|
24139
24127
|
id: "member-chats",
|
|
@@ -24173,7 +24161,7 @@ var memberChats = {
|
|
|
24173
24161
|
}, "candidates")
|
|
24174
24162
|
};
|
|
24175
24163
|
|
|
24176
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-dialog.js
|
|
24177
24165
|
var WEIGHT5 = 0.6;
|
|
24178
24166
|
var memberDialog = {
|
|
24179
24167
|
id: "member-dialog",
|
|
@@ -24207,7 +24195,7 @@ var memberDialog = {
|
|
|
24207
24195
|
}, "candidates")
|
|
24208
24196
|
};
|
|
24209
24197
|
|
|
24210
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24198
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
24211
24199
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
24212
24200
|
async around(ref, window3) {
|
|
24213
24201
|
const at = parseLocator(ref);
|
|
@@ -24303,7 +24291,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
24303
24291
|
};
|
|
24304
24292
|
}, "storedNeighbours");
|
|
24305
24293
|
|
|
24306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24294
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
24307
24295
|
import { createHash as createHash2 } from "node:crypto";
|
|
24308
24296
|
var DAY2 = 864e5;
|
|
24309
24297
|
var MAX_TIME = 864e13;
|
|
@@ -24619,7 +24607,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
24619
24607
|
return value;
|
|
24620
24608
|
}, "decodeCheckpoint");
|
|
24621
24609
|
|
|
24622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24610
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
24623
24611
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
24624
24612
|
var PAGE2 = 20;
|
|
24625
24613
|
var PEOPLE = 20;
|
|
@@ -25023,7 +25011,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
25023
25011
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
25024
25012
|
}, "peopleOf");
|
|
25025
25013
|
|
|
25026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25014
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
25027
25015
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
25028
25016
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
25029
25017
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -25067,7 +25055,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
25067
25055
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
25068
25056
|
}, "matchVocabularyTerms");
|
|
25069
25057
|
|
|
25070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
25071
25059
|
var KINDS = ["project", "tag", "topic"];
|
|
25072
25060
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
25073
25061
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -25122,7 +25110,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
25122
25110
|
};
|
|
25123
25111
|
}, "findEvidenceMentions");
|
|
25124
25112
|
|
|
25125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
25126
25114
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
25127
25115
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
25128
25116
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -25428,7 +25416,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
25428
25416
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
25429
25417
|
}, "purposeHintOf");
|
|
25430
25418
|
|
|
25431
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/link-scorers/scan.js
|
|
25432
25420
|
var SCORERS = [chatTitle, aliasHits, memberChats, memberDialog, chatSenders, mailThread];
|
|
25433
25421
|
var PERSON_SCORERS = [emailDomain];
|
|
25434
25422
|
var SCAN_BOT = { bot: "memo-scan", kind: "rule" };
|
|
@@ -25636,18 +25624,18 @@ var referenceOf = /* @__PURE__ */ __name((text2) => {
|
|
|
25636
25624
|
}, "referenceOf");
|
|
25637
25625
|
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");
|
|
25638
25626
|
|
|
25639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25627
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
25640
25628
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
25641
25629
|
|
|
25642
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25643
25631
|
import { lstat } from "node:fs/promises";
|
|
25644
25632
|
|
|
25645
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25646
25634
|
import { createHash as createHash4, randomUUID as randomUUID2 } from "node:crypto";
|
|
25647
25635
|
import { open as open2, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
25648
25636
|
import { join as join2 } from "node:path";
|
|
25649
25637
|
|
|
25650
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
25651
25639
|
import { createHash as createHash3 } from "node:crypto";
|
|
25652
25640
|
var metadataLimit = 16384;
|
|
25653
25641
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -25707,7 +25695,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
25707
25695
|
}
|
|
25708
25696
|
}, "readPartialMetadata");
|
|
25709
25697
|
|
|
25710
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25698
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
25711
25699
|
import { randomUUID } from "node:crypto";
|
|
25712
25700
|
import { open, rename, unlink } from "node:fs/promises";
|
|
25713
25701
|
import { join } from "node:path";
|
|
@@ -25799,7 +25787,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
25799
25787
|
};
|
|
25800
25788
|
}, "partialWriter");
|
|
25801
25789
|
|
|
25802
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25790
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25803
25791
|
var NativeRecordingPartialStore = class {
|
|
25804
25792
|
static {
|
|
25805
25793
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -25906,12 +25894,12 @@ var NativeRecordingPartialStore = class {
|
|
|
25906
25894
|
}
|
|
25907
25895
|
};
|
|
25908
25896
|
|
|
25909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25910
25898
|
import { createHash as createHash5 } from "node:crypto";
|
|
25911
25899
|
import { link as link2 } from "node:fs/promises";
|
|
25912
25900
|
import { basename, dirname, join as join4, resolve } from "node:path";
|
|
25913
25901
|
|
|
25914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
25915
25903
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
25916
25904
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
25917
25905
|
signal?.throwIfAborted();
|
|
@@ -25946,7 +25934,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
25946
25934
|
signal?.throwIfAborted();
|
|
25947
25935
|
}, "commitPublication");
|
|
25948
25936
|
|
|
25949
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
25950
25938
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
25951
25939
|
import { open as open3, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
25952
25940
|
import { join as join3 } from "node:path";
|
|
@@ -26019,7 +26007,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
26019
26007
|
}
|
|
26020
26008
|
}, "writePublicationJournal");
|
|
26021
26009
|
|
|
26022
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
26023
26011
|
var NativeRecordingPublication = class {
|
|
26024
26012
|
static {
|
|
26025
26013
|
__name(this, "NativeRecordingPublication");
|
|
@@ -26092,7 +26080,7 @@ var NativeRecordingPublication = class {
|
|
|
26092
26080
|
}
|
|
26093
26081
|
};
|
|
26094
26082
|
|
|
26095
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26083
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
26096
26084
|
import { createHash as createHash6 } from "node:crypto";
|
|
26097
26085
|
import { readdir } from "node:fs/promises";
|
|
26098
26086
|
import { isAbsolute, join as join5, resolve as resolve2 } from "node:path";
|
|
@@ -26179,7 +26167,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one2, beforePublish) => wri
|
|
|
26179
26167
|
beforePublish
|
|
26180
26168
|
}), "commitMediaEntry");
|
|
26181
26169
|
|
|
26182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26170
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
26183
26171
|
var validator = '"media-completed-v1"';
|
|
26184
26172
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
26185
26173
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -26280,7 +26268,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
26280
26268
|
return entry;
|
|
26281
26269
|
}, "archiveMediaFile");
|
|
26282
26270
|
|
|
26283
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26271
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
26284
26272
|
import { mkdir, realpath } from "node:fs/promises";
|
|
26285
26273
|
import { join as join6, resolve as resolve3 } from "node:path";
|
|
26286
26274
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -26347,7 +26335,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
26347
26335
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
26348
26336
|
}, "withMediaArchiveLocks");
|
|
26349
26337
|
|
|
26350
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
26351
26339
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
26352
26340
|
if (value === void 0)
|
|
26353
26341
|
return void 0;
|
|
@@ -26500,7 +26488,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
26500
26488
|
}, { create: true });
|
|
26501
26489
|
}, "archiveMedia");
|
|
26502
26490
|
|
|
26503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26491
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
26504
26492
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
26505
26493
|
import { basename as basename2, dirname as dirname2, join as join7, resolve as resolve4 } from "node:path";
|
|
26506
26494
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -26653,7 +26641,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
26653
26641
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
26654
26642
|
}, "moveMediaArchive");
|
|
26655
26643
|
|
|
26656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26644
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
26657
26645
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
26658
26646
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
26659
26647
|
}, "progress") }) => {
|
|
@@ -26676,7 +26664,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26676
26664
|
}
|
|
26677
26665
|
await nativeRuntime({ env, progress });
|
|
26678
26666
|
progress(`${model.id}: loading it once to check it works`);
|
|
26679
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
26667
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-DYNZ4223.js");
|
|
26680
26668
|
const embedder = await openEmbedder2(model, directory2);
|
|
26681
26669
|
try {
|
|
26682
26670
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -26697,7 +26685,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
26697
26685
|
}
|
|
26698
26686
|
await nativeRuntime({ env, progress });
|
|
26699
26687
|
progress(`${model.id}: loading it once to check it works`);
|
|
26700
|
-
const { openReranker } = await import("./rerank-
|
|
26688
|
+
const { openReranker } = await import("./rerank-RRLNQ5C2.js");
|
|
26701
26689
|
const reranker = await openReranker(model, directory2);
|
|
26702
26690
|
try {
|
|
26703
26691
|
await reranker.score("check", ["check"]);
|
|
@@ -26715,7 +26703,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26715
26703
|
await installFiles(placedImage(model, directory2), { progress });
|
|
26716
26704
|
}
|
|
26717
26705
|
progress(`${model.id}: loading it once to check it works`);
|
|
26718
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
26706
|
+
const { openPictureEmbedder } = await import("./embedder-XG344VNB.js");
|
|
26719
26707
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
26720
26708
|
try {
|
|
26721
26709
|
const vector = await embedder.embedQuery("check");
|
|
@@ -26727,7 +26715,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26727
26715
|
return { model, directory: directory2 };
|
|
26728
26716
|
}, "downloadImageModel");
|
|
26729
26717
|
|
|
26730
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26718
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
26731
26719
|
var MONEY_REQUEST = "money-request";
|
|
26732
26720
|
var MONEY_DONE = "money-done";
|
|
26733
26721
|
var PROMISE = "promise";
|
|
@@ -26761,10 +26749,10 @@ var MONEY_WORDS = [
|
|
|
26761
26749
|
}
|
|
26762
26750
|
];
|
|
26763
26751
|
|
|
26764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
26765
26753
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
26766
26754
|
|
|
26767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
26768
26756
|
var words2 = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
26769
26757
|
var MONEY_DONE_FORMS = words2([
|
|
26770
26758
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -26804,7 +26792,7 @@ var PROMISE_FORMS = words2([
|
|
|
26804
26792
|
"estar\xE1 listo"
|
|
26805
26793
|
]);
|
|
26806
26794
|
|
|
26807
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26795
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
26808
26796
|
var EXCERPT_CHARS = 80;
|
|
26809
26797
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
26810
26798
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -26826,7 +26814,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
26826
26814
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
26827
26815
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
26828
26816
|
|
|
26829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26817
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
26830
26818
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
26831
26819
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
26832
26820
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -26866,7 +26854,7 @@ var rowsOf = /* @__PURE__ */ __name((chat) => chat.messages.flatMap((message) =>
|
|
|
26866
26854
|
var centsText = /* @__PURE__ */ __name((cents) => `${Math.floor(cents / 100)}.${String(cents % 100).padStart(2, "0")}`, "centsText");
|
|
26867
26855
|
var amounts = {
|
|
26868
26856
|
id: "amounts",
|
|
26869
|
-
version:
|
|
26857
|
+
version: 3,
|
|
26870
26858
|
scope: "chat",
|
|
26871
26859
|
read: /* @__PURE__ */ __name(async (context2, chat) => {
|
|
26872
26860
|
if (!chat || context2.books)
|
|
@@ -26882,7 +26870,8 @@ var amounts = {
|
|
|
26882
26870
|
const lastAsk = asks.at(-1);
|
|
26883
26871
|
const first2 = asks[0] ?? done2[0] ?? rows[0];
|
|
26884
26872
|
const paidAfter = done2.some((row) => !lastAsk || Date.parse(row.message.timestamp) >= Date.parse(lastAsk.message.timestamp));
|
|
26885
|
-
const
|
|
26873
|
+
const paid2 = asks.length ? paidAfter : done2.length > 0;
|
|
26874
|
+
const state = paid2 ? "paid-mentioned" : asks.length ? "asked" : "mentioned";
|
|
26886
26875
|
const cited2 = asks.length ? [...asks, ...paidAfter ? done2.slice(-1) : []] : rows;
|
|
26887
26876
|
return {
|
|
26888
26877
|
signal: "amounts",
|
|
@@ -26903,10 +26892,10 @@ var amounts = {
|
|
|
26903
26892
|
};
|
|
26904
26893
|
});
|
|
26905
26894
|
}, "read"),
|
|
26906
|
-
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "
|
|
26895
|
+
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
26907
26896
|
};
|
|
26908
26897
|
|
|
26909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26898
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
26910
26899
|
var children = {
|
|
26911
26900
|
id: "children",
|
|
26912
26901
|
version: 1,
|
|
@@ -26935,7 +26924,7 @@ var children = {
|
|
|
26935
26924
|
}, "read")
|
|
26936
26925
|
};
|
|
26937
26926
|
|
|
26938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26927
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
26939
26928
|
var coverage = {
|
|
26940
26929
|
id: "coverage",
|
|
26941
26930
|
version: 1,
|
|
@@ -26964,7 +26953,7 @@ var coverage = {
|
|
|
26964
26953
|
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")
|
|
26965
26954
|
};
|
|
26966
26955
|
|
|
26967
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26956
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
26968
26957
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
26969
26958
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
26970
26959
|
signal: "payments",
|
|
@@ -27014,7 +27003,7 @@ var payments = {
|
|
|
27014
27003
|
}, "read")
|
|
27015
27004
|
};
|
|
27016
27005
|
|
|
27017
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
27018
27007
|
var PATTERNS_PER_CHAT = 3;
|
|
27019
27008
|
var DAY3 = 864e5;
|
|
27020
27009
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -27103,7 +27092,7 @@ var promises = {
|
|
|
27103
27092
|
}, "read")
|
|
27104
27093
|
};
|
|
27105
27094
|
|
|
27106
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27095
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
27107
27096
|
var PER_SIDE = 5;
|
|
27108
27097
|
var WEEK = 7 * 864e5;
|
|
27109
27098
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -27134,7 +27123,7 @@ var questions2 = {
|
|
|
27134
27123
|
}, "attention")
|
|
27135
27124
|
};
|
|
27136
27125
|
|
|
27137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
27138
27127
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
27139
27128
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one2) => one2.id === id2), "byId");
|
|
27140
27129
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -27202,7 +27191,7 @@ var replyNext = {
|
|
|
27202
27191
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
27203
27192
|
};
|
|
27204
27193
|
|
|
27205
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
27206
27195
|
var escaped2 = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
27207
27196
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped2(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
27208
27197
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -27248,7 +27237,7 @@ var topics = {
|
|
|
27248
27237
|
}, "read")
|
|
27249
27238
|
};
|
|
27250
27239
|
|
|
27251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27240
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
27252
27241
|
var STATUS_SIGNALS = [
|
|
27253
27242
|
replyNext,
|
|
27254
27243
|
questions2,
|
|
@@ -27260,7 +27249,7 @@ var STATUS_SIGNALS = [
|
|
|
27260
27249
|
children
|
|
27261
27250
|
];
|
|
27262
27251
|
|
|
27263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
27264
27253
|
var DAY4 = 864e5;
|
|
27265
27254
|
var STATUS_WINDOW = 300;
|
|
27266
27255
|
var STATUS_CHATS = 16;
|
|
@@ -27449,7 +27438,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
27449
27438
|
};
|
|
27450
27439
|
}, "projectStatus");
|
|
27451
27440
|
|
|
27452
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27441
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
27453
27442
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
27454
27443
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
27455
27444
|
if (deps.offline)
|
|
@@ -27521,7 +27510,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
27521
27510
|
};
|
|
27522
27511
|
}, "accountService");
|
|
27523
27512
|
|
|
27524
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27513
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
27525
27514
|
var MINUTE = 6e4;
|
|
27526
27515
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
27527
27516
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -27540,7 +27529,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
27540
27529
|
return new Date(at - at % MINUTE).toISOString();
|
|
27541
27530
|
}, "sendTime");
|
|
27542
27531
|
|
|
27543
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27532
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
27544
27533
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write2) => {
|
|
27545
27534
|
try {
|
|
27546
27535
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -27787,7 +27776,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
27787
27776
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
27788
27777
|
}, "linkLimits");
|
|
27789
27778
|
|
|
27790
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27779
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
27791
27780
|
var THREADS_PAGE = 500;
|
|
27792
27781
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
27793
27782
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -27866,7 +27855,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
27866
27855
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
27867
27856
|
}, "readMail");
|
|
27868
27857
|
|
|
27869
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
27870
27859
|
var NO_MAIL = "no_mail";
|
|
27871
27860
|
var MAIL = "email";
|
|
27872
27861
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -27913,7 +27902,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
27913
27902
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
27914
27903
|
}, "accountsOfKind");
|
|
27915
27904
|
|
|
27916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27905
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
27917
27906
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
27918
27907
|
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");
|
|
27919
27908
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -28261,7 +28250,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
28261
28250
|
};
|
|
28262
28251
|
}, "statsLucene");
|
|
28263
28252
|
|
|
28264
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
28265
28254
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
28266
28255
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
28267
28256
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -28430,7 +28419,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
28430
28419
|
};
|
|
28431
28420
|
}, "readRankingSelection");
|
|
28432
28421
|
|
|
28433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
28434
28423
|
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");
|
|
28435
28424
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
28436
28425
|
command,
|
|
@@ -28440,7 +28429,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
28440
28429
|
fieldsVersion: FIELD_VERSION
|
|
28441
28430
|
}), "searchRecordOf");
|
|
28442
28431
|
|
|
28443
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
28444
28433
|
function invalid2(message) {
|
|
28445
28434
|
throw new CliError("validation_error", message);
|
|
28446
28435
|
}
|
|
@@ -28734,7 +28723,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
28734
28723
|
}, "evidence")
|
|
28735
28724
|
}), "adminStatisticsService");
|
|
28736
28725
|
|
|
28737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28726
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
28738
28727
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
28739
28728
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
28740
28729
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -28871,16 +28860,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
28871
28860
|
return { plan, repair };
|
|
28872
28861
|
}, "gapsService");
|
|
28873
28862
|
|
|
28874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28863
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
28875
28864
|
import { createHash as createHash9 } from "node:crypto";
|
|
28876
28865
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
28877
28866
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
28878
28867
|
|
|
28879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
28880
28869
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
28881
28870
|
import { basename as basename4, join as join8, relative as relative2, sep as sep2 } from "node:path";
|
|
28882
28871
|
|
|
28883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28872
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
28884
28873
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
28885
28874
|
import { open as open4, stat } from "node:fs/promises";
|
|
28886
28875
|
import { basename as basename3, dirname as dirname3, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -29082,7 +29071,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read2) => {
|
|
|
29082
29071
|
return { name, source };
|
|
29083
29072
|
}, "readStickerFile");
|
|
29084
29073
|
|
|
29085
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29074
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
29086
29075
|
var MAX_FILES = 1e4;
|
|
29087
29076
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app, env) => {
|
|
29088
29077
|
if (refusedPlace(directory2, app, env))
|
|
@@ -29151,15 +29140,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
29151
29140
|
return choices;
|
|
29152
29141
|
}, "directoryPaths");
|
|
29153
29142
|
|
|
29154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
29155
29144
|
import { posix } from "node:path";
|
|
29156
29145
|
|
|
29157
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29146
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
29158
29147
|
import { setImmediate as tick } from "node:timers/promises";
|
|
29159
29148
|
import { crc32 } from "node:zlib";
|
|
29160
29149
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
29161
29150
|
|
|
29162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
29163
29152
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
29164
29153
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
29165
29154
|
var SAMPLE = 65536;
|
|
@@ -29261,7 +29250,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
29261
29250
|
return result.text;
|
|
29262
29251
|
}, "decodeXml");
|
|
29263
29252
|
|
|
29264
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
29265
29254
|
var MAX_PART = 10 * 1024 * 1024;
|
|
29266
29255
|
var MAX_ENTRIES = 1e3;
|
|
29267
29256
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -29476,7 +29465,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
29476
29465
|
return found;
|
|
29477
29466
|
}, "elements");
|
|
29478
29467
|
|
|
29479
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29468
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
29480
29469
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
29481
29470
|
let name = "";
|
|
29482
29471
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -29531,7 +29520,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
29531
29520
|
return { text: parts.join("").trim(), truncated: false };
|
|
29532
29521
|
}, "sheetText");
|
|
29533
29522
|
|
|
29534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29523
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
29535
29524
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
29536
29525
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
29537
29526
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -29931,10 +29920,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
29931
29920
|
}
|
|
29932
29921
|
}, "readDocument");
|
|
29933
29922
|
|
|
29934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
29935
29924
|
import { extname as extname3 } from "node:path";
|
|
29936
29925
|
|
|
29937
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
29938
29927
|
import { readFileSync } from "node:fs";
|
|
29939
29928
|
import { dirname as dirname4, extname as extname2, join as join9 } from "node:path";
|
|
29940
29929
|
import { fileURLToPath } from "node:url";
|
|
@@ -29995,7 +29984,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
29995
29984
|
}
|
|
29996
29985
|
}, "derived");
|
|
29997
29986
|
|
|
29998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29987
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
29999
29988
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
30000
29989
|
var image2 = {
|
|
30001
29990
|
id: "image",
|
|
@@ -30004,7 +29993,7 @@ var image2 = {
|
|
|
30004
29993
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
30005
29994
|
};
|
|
30006
29995
|
|
|
30007
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
30008
29997
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
30009
29998
|
var doc = {
|
|
30010
29999
|
id: "doc",
|
|
@@ -30016,7 +30005,7 @@ var doc = {
|
|
|
30016
30005
|
}), "read")
|
|
30017
30006
|
};
|
|
30018
30007
|
|
|
30019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30008
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
30020
30009
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
30021
30010
|
var docx = {
|
|
30022
30011
|
id: "docx",
|
|
@@ -30029,7 +30018,7 @@ var docx = {
|
|
|
30029
30018
|
}), "read")
|
|
30030
30019
|
};
|
|
30031
30020
|
|
|
30032
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
30033
30022
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
30034
30023
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
30035
30024
|
"fonttbl",
|
|
@@ -30205,7 +30194,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
30205
30194
|
}, "htmlText");
|
|
30206
30195
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
30207
30196
|
|
|
30208
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30197
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
30209
30198
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
30210
30199
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
30211
30200
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -30261,7 +30250,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
30261
30250
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
30262
30251
|
}, "markdownSections");
|
|
30263
30252
|
|
|
30264
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
30265
30254
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
30266
30255
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
30267
30256
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -30332,7 +30321,7 @@ var html = {
|
|
|
30332
30321
|
}, "read")
|
|
30333
30322
|
};
|
|
30334
30323
|
|
|
30335
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
30336
30325
|
var office = {
|
|
30337
30326
|
id: "office",
|
|
30338
30327
|
version: documentExtractor("odt"),
|
|
@@ -30343,7 +30332,7 @@ var office = {
|
|
|
30343
30332
|
}, "read")
|
|
30344
30333
|
};
|
|
30345
30334
|
|
|
30346
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30335
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
30347
30336
|
var pdf = {
|
|
30348
30337
|
id: "pdf",
|
|
30349
30338
|
version: "unpdf",
|
|
@@ -30410,7 +30399,7 @@ var pdf = {
|
|
|
30410
30399
|
}), "read")
|
|
30411
30400
|
};
|
|
30412
30401
|
|
|
30413
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
30414
30403
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
30415
30404
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
30416
30405
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -30430,7 +30419,7 @@ var plain = {
|
|
|
30430
30419
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
30431
30420
|
};
|
|
30432
30421
|
|
|
30433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
30434
30423
|
var rtf = {
|
|
30435
30424
|
id: "rtf",
|
|
30436
30425
|
version: "v1",
|
|
@@ -30438,10 +30427,10 @@ var rtf = {
|
|
|
30438
30427
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
30439
30428
|
};
|
|
30440
30429
|
|
|
30441
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
30442
30431
|
import { basename as basename5 } from "node:path";
|
|
30443
30432
|
|
|
30444
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
30445
30434
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
30446
30435
|
const cells = [];
|
|
30447
30436
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -30479,7 +30468,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
30479
30468
|
return { cells, truncated };
|
|
30480
30469
|
}, "delimitedSpans");
|
|
30481
30470
|
|
|
30482
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
30483
30472
|
var DELIMITED = {
|
|
30484
30473
|
".csv": ",",
|
|
30485
30474
|
".tsv": " ",
|
|
@@ -30518,7 +30507,7 @@ var sheets = {
|
|
|
30518
30507
|
}, "read")
|
|
30519
30508
|
};
|
|
30520
30509
|
|
|
30521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30510
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
30522
30511
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
30523
30512
|
var HEAD_BYTES = 1024;
|
|
30524
30513
|
var readers = [...BUILT_INS2];
|
|
@@ -30528,7 +30517,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
30528
30517
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
30529
30518
|
}, "readWithRegistry");
|
|
30530
30519
|
|
|
30531
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
30532
30521
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
30533
30522
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
30534
30523
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -31607,7 +31596,7 @@ function imageSize(input) {
|
|
|
31607
31596
|
}
|
|
31608
31597
|
__name(imageSize, "imageSize");
|
|
31609
31598
|
|
|
31610
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31599
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
31611
31600
|
var MAX_PAGES = 20;
|
|
31612
31601
|
var MAX_PIXELS = 2e7;
|
|
31613
31602
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -31758,7 +31747,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
31758
31747
|
}
|
|
31759
31748
|
}, "ocrPdf");
|
|
31760
31749
|
|
|
31761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
31762
31751
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
31763
31752
|
const limits = pdfPreviewLimits(env);
|
|
31764
31753
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -31835,7 +31824,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
31835
31824
|
}
|
|
31836
31825
|
}, "pdfPreview");
|
|
31837
31826
|
|
|
31838
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31827
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
31839
31828
|
import { createHash as createHash8 } from "node:crypto";
|
|
31840
31829
|
import { constants } from "node:fs";
|
|
31841
31830
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -31943,7 +31932,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
31943
31932
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
31944
31933
|
}, "transferMime");
|
|
31945
31934
|
|
|
31946
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
31947
31936
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
31948
31937
|
import { link as link3, rm } from "node:fs/promises";
|
|
31949
31938
|
import { join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -32057,7 +32046,7 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
32057
32046
|
}
|
|
32058
32047
|
}, "save");
|
|
32059
32048
|
|
|
32060
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32049
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
32061
32050
|
var ATTACHMENT_QUERY = {
|
|
32062
32051
|
entity: "attachment",
|
|
32063
32052
|
backend: "sql",
|
|
@@ -32480,7 +32469,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32480
32469
|
}, "setText")
|
|
32481
32470
|
}), "attachmentsService");
|
|
32482
32471
|
|
|
32483
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32472
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
32484
32473
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
32485
32474
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
32486
32475
|
const store = await accountStore(deps);
|
|
@@ -32510,7 +32499,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32510
32499
|
}, "list")
|
|
32511
32500
|
}), "chatDocumentsService");
|
|
32512
32501
|
|
|
32513
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32502
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
32514
32503
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
32515
32504
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
32516
32505
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -32597,7 +32586,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
32597
32586
|
}
|
|
32598
32587
|
}, "isRetentionSelection");
|
|
32599
32588
|
|
|
32600
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32589
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
32601
32590
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
32602
32591
|
const fields = text2.split(",").map((one2) => one2.trim());
|
|
32603
32592
|
if (!fields.length || fields.some((one2) => !COUNTER_FIELDS.includes(one2)) || new Set(fields).size !== fields.length)
|
|
@@ -32804,7 +32793,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
32804
32793
|
};
|
|
32805
32794
|
}, "countersService");
|
|
32806
32795
|
|
|
32807
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32796
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
32808
32797
|
var SYNC_KEY = "messages.sync-first";
|
|
32809
32798
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
32810
32799
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -32936,7 +32925,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
32936
32925
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
32937
32926
|
}), "withRefresh");
|
|
32938
32927
|
|
|
32939
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
32940
32929
|
var CANDIDATES = 50;
|
|
32941
32930
|
var WORD_HITS = 200;
|
|
32942
32931
|
var RRF_K = 60;
|
|
@@ -33211,13 +33200,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
33211
33200
|
return mean2.map((value) => value / length);
|
|
33212
33201
|
}, "meanOf");
|
|
33213
33202
|
|
|
33214
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33203
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
33215
33204
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
33216
33205
|
...embeddingsMaintenance(deps),
|
|
33217
33206
|
...embeddingsSearch(deps)
|
|
33218
33207
|
}), "embeddingsService");
|
|
33219
33208
|
|
|
33220
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
33221
33210
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
33222
33211
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
33223
33212
|
if (deps.offline)
|
|
@@ -33358,7 +33347,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
33358
33347
|
};
|
|
33359
33348
|
}, "foldersService");
|
|
33360
33349
|
|
|
33361
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33350
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
33362
33351
|
var REVIEW_COUNT = 500;
|
|
33363
33352
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
33364
33353
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -33437,7 +33426,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
33437
33426
|
};
|
|
33438
33427
|
}, "mentionsService");
|
|
33439
33428
|
|
|
33440
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33429
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
33441
33430
|
var invalid3 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
33442
33431
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
33443
33432
|
const { text: text2, spans } = formatted2;
|
|
@@ -33497,7 +33486,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
33497
33486
|
};
|
|
33498
33487
|
}, "visibleFormattedText");
|
|
33499
33488
|
|
|
33500
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33489
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
33501
33490
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
33502
33491
|
position,
|
|
33503
33492
|
kind,
|
|
@@ -33546,7 +33535,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
33546
33535
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
33547
33536
|
}, "validatePermalink");
|
|
33548
33537
|
|
|
33549
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33538
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
33550
33539
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
33551
33540
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
33552
33541
|
return `${seconds / 86400}d`;
|
|
@@ -33578,7 +33567,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
33578
33567
|
return seconds;
|
|
33579
33568
|
}, "pinDurationOf");
|
|
33580
33569
|
|
|
33581
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
33582
33571
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
33583
33572
|
if (sendAs === void 0) {
|
|
33584
33573
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -33603,7 +33592,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
33603
33592
|
return sendAs;
|
|
33604
33593
|
}, "typedSendAs");
|
|
33605
33594
|
|
|
33606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
33607
33596
|
var TOTAL_CAP = 1e4;
|
|
33608
33597
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
33609
33598
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -33614,7 +33603,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
33614
33603
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
33615
33604
|
}, "totalOf");
|
|
33616
33605
|
|
|
33617
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33606
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
33618
33607
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
33619
33608
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
33620
33609
|
let narrows = false;
|
|
@@ -33643,7 +33632,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
33643
33632
|
return wanted(root).join(" ").trim();
|
|
33644
33633
|
}, "meaningWords");
|
|
33645
33634
|
|
|
33646
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
33647
33636
|
var words3 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
33648
33637
|
var scaffolding = new Set(words3("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"));
|
|
33649
33638
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -33775,7 +33764,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
33775
33764
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
33776
33765
|
}, "questionLookup");
|
|
33777
33766
|
|
|
33778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33767
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
33779
33768
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
33780
33769
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
33781
33770
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -33968,7 +33957,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
33968
33957
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage2 * 4 + proximity + phrase;
|
|
33969
33958
|
}, "signals");
|
|
33970
33959
|
|
|
33971
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33960
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
33972
33961
|
var MEANING_DEPTH = 100;
|
|
33973
33962
|
var RRF_K2 = 60;
|
|
33974
33963
|
var RERANK_DEPTH = 50;
|
|
@@ -34293,7 +34282,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
34293
34282
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
34294
34283
|
}, "mixedWithReranker");
|
|
34295
34284
|
|
|
34296
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
34297
34286
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
34298
34287
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
34299
34288
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -34492,7 +34481,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
34492
34481
|
return result;
|
|
34493
34482
|
}, "readThreadContext");
|
|
34494
34483
|
|
|
34495
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34484
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
34496
34485
|
var SEARCH_FILL_MS = 200;
|
|
34497
34486
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
34498
34487
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -34559,12 +34548,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
34559
34548
|
}, "accountOf");
|
|
34560
34549
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
34561
34550
|
|
|
34562
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34551
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
34563
34552
|
import { createHash as createHash10 } from "node:crypto";
|
|
34564
34553
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
34565
34554
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
34566
34555
|
|
|
34567
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
34568
34557
|
var GROUP_SETTINGS = [
|
|
34569
34558
|
"allCanPin",
|
|
34570
34559
|
"onlyAdminsAdd",
|
|
@@ -34578,7 +34567,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
34578
34567
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
34579
34568
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
34580
34569
|
|
|
34581
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
34582
34571
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
34583
34572
|
var PICTURE_FLOOR = 0.25;
|
|
34584
34573
|
var PAGE4 = 50;
|
|
@@ -34595,7 +34584,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
34595
34584
|
const directory2 = imageModelsDirectory(deps.env);
|
|
34596
34585
|
if (!isImageModelInstalled(model2, directory2))
|
|
34597
34586
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
34598
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34587
|
+
const { openPictureEmbedder } = await import("./embedder-XG344VNB.js");
|
|
34599
34588
|
return openPictureEmbedder(model2, directory2);
|
|
34600
34589
|
}, "open");
|
|
34601
34590
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -34792,7 +34781,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
34792
34781
|
}, "search")
|
|
34793
34782
|
}), "withPictures");
|
|
34794
34783
|
|
|
34795
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34784
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
34796
34785
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
|
|
34797
34786
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
34798
34787
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -34860,7 +34849,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
34860
34849
|
}
|
|
34861
34850
|
}, "meaningLane");
|
|
34862
34851
|
|
|
34863
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
34864
34853
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
34865
34854
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
34866
34855
|
if (choice === "off")
|
|
@@ -34872,9 +34861,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34872
34861
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
34873
34862
|
try {
|
|
34874
34863
|
const warm = deps.embedders;
|
|
34875
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
34864
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-NRZZD4IS.js")).openRerankerProcess(model, directory2, {
|
|
34876
34865
|
threads: defaultThreads()
|
|
34877
|
-
})) : await (await import("./rerank-
|
|
34866
|
+
})) : await (await import("./rerank-RRLNQ5C2.js")).openReranker(model, directory2);
|
|
34878
34867
|
return {
|
|
34879
34868
|
model: model.id,
|
|
34880
34869
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -34894,17 +34883,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34894
34883
|
};
|
|
34895
34884
|
}, "rerankLane");
|
|
34896
34885
|
|
|
34897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34886
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
34898
34887
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
34899
34888
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
34900
34889
|
const directory2 = imageModelsDirectory(env);
|
|
34901
34890
|
if (!isImageModelInstalled(model, directory2))
|
|
34902
34891
|
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 });
|
|
34903
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34892
|
+
const { openPictureEmbedder } = await import("./embedder-XG344VNB.js");
|
|
34904
34893
|
return openPictureEmbedder(model, directory2);
|
|
34905
34894
|
}, "openPictureEmbedderFor");
|
|
34906
34895
|
|
|
34907
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
34908
34897
|
var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) => {
|
|
34909
34898
|
const metadata = note2.frontMatter;
|
|
34910
34899
|
const account = accounts.find(({ id: id2 }) => String(id2) === note2.folderId);
|
|
@@ -34919,7 +34908,7 @@ var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) =
|
|
|
34919
34908
|
};
|
|
34920
34909
|
}, "documentSource");
|
|
34921
34910
|
|
|
34922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
34923
34912
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
34924
34913
|
let root;
|
|
34925
34914
|
try {
|
|
@@ -34946,7 +34935,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words4) => {
|
|
|
34946
34935
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
34947
34936
|
}, "titleTiers");
|
|
34948
34937
|
|
|
34949
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34938
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
34950
34939
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
34951
34940
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
34952
34941
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -35389,7 +35378,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
35389
35378
|
};
|
|
35390
35379
|
}, "searchNotesOf");
|
|
35391
35380
|
|
|
35392
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35381
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
35393
35382
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
35394
35383
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
35395
35384
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -35506,7 +35495,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
35506
35495
|
};
|
|
35507
35496
|
}, "searchEvents");
|
|
35508
35497
|
|
|
35509
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
35510
35499
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm"];
|
|
35511
35500
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
35512
35501
|
var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
@@ -35767,7 +35756,7 @@ var oneList = /* @__PURE__ */ __name((lists, cosines) => {
|
|
|
35767
35756
|
return [...place.values()].sort((a, b) => a.rank - b.rank || cosine(b.item.ref) - cosine(a.item.ref)).map(({ item: item2 }) => item2);
|
|
35768
35757
|
}, "oneList");
|
|
35769
35758
|
|
|
35770
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35759
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
35771
35760
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
35772
35761
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
35773
35762
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -36021,7 +36010,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
36021
36010
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
36022
36011
|
}, "searchAllOfSource");
|
|
36023
36012
|
|
|
36024
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36013
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
36025
36014
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
36026
36015
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
36027
36016
|
var DEFAULT_BACKEND = "both";
|
|
@@ -36210,7 +36199,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
36210
36199
|
return { report, sources };
|
|
36211
36200
|
}, "searchServer");
|
|
36212
36201
|
|
|
36213
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
36214
36203
|
var DELETE_AT_ONCE = 10;
|
|
36215
36204
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
36216
36205
|
const files = fileLinks(attachments);
|
|
@@ -36651,7 +36640,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
36651
36640
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
36652
36641
|
}, "checkMediaOptions");
|
|
36653
36642
|
|
|
36654
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36643
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
36655
36644
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
36656
36645
|
var RULES = {
|
|
36657
36646
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -36666,7 +36655,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
36666
36655
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
36667
36656
|
}), "classifyChannel");
|
|
36668
36657
|
|
|
36669
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36658
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
36670
36659
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
36671
36660
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
36672
36661
|
const store = await deps.store();
|
|
@@ -36752,7 +36741,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
36752
36741
|
};
|
|
36753
36742
|
}, "metadataService");
|
|
36754
36743
|
|
|
36755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36744
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
36756
36745
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
36757
36746
|
var LINK2 = /https?:\/\/\S+/i;
|
|
36758
36747
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -36940,7 +36929,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
36940
36929
|
}, "nextPoint");
|
|
36941
36930
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
36942
36931
|
|
|
36943
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
36944
36933
|
import { existsSync, readFileSync as readFileSync2 } from "node:fs";
|
|
36945
36934
|
import { join as join11 } from "node:path";
|
|
36946
36935
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -37083,7 +37072,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
37083
37072
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
37084
37073
|
}, "assign");
|
|
37085
37074
|
|
|
37086
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
37087
37076
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
37088
37077
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
37089
37078
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -37120,7 +37109,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
37120
37109
|
return { chatId, rows, notes };
|
|
37121
37110
|
}, "moderateWith");
|
|
37122
37111
|
|
|
37123
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
37124
37113
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
37125
37114
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
37126
37115
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -37198,7 +37187,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
37198
37187
|
}, "removePerson")
|
|
37199
37188
|
}), "moderatorOf");
|
|
37200
37189
|
|
|
37201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
37202
37191
|
var noteItem = /* @__PURE__ */ __name((provider, note2) => ({
|
|
37203
37192
|
id: note2.id,
|
|
37204
37193
|
contact: formatReference({ type: "contact", provider, id: note2.personId }),
|
|
@@ -37242,7 +37231,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
37242
37231
|
};
|
|
37243
37232
|
}, "privatePeopleService");
|
|
37244
37233
|
|
|
37245
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37234
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
37246
37235
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
37247
37236
|
total: 0,
|
|
37248
37237
|
population: 0,
|
|
@@ -37498,7 +37487,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
37498
37487
|
}, "evidence")
|
|
37499
37488
|
}), "rankingsService");
|
|
37500
37489
|
|
|
37501
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37490
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
37502
37491
|
var FIELDS = ["date", "chat", "kind"];
|
|
37503
37492
|
var WAITING_TAIL = 100;
|
|
37504
37493
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -37625,7 +37614,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37625
37614
|
};
|
|
37626
37615
|
}, "replyStatsService");
|
|
37627
37616
|
|
|
37628
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37617
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
37629
37618
|
var savedSearchItem = /* @__PURE__ */ __name((one2) => ({
|
|
37630
37619
|
id: one2.id,
|
|
37631
37620
|
name: one2.name,
|
|
@@ -37754,7 +37743,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
37754
37743
|
};
|
|
37755
37744
|
}, "searchesService");
|
|
37756
37745
|
|
|
37757
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37746
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
37758
37747
|
var TAGGING_QUERY = {
|
|
37759
37748
|
entity: "tagging",
|
|
37760
37749
|
backend: "sql",
|
|
@@ -37838,7 +37827,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37838
37827
|
};
|
|
37839
37828
|
}, "tagsService");
|
|
37840
37829
|
|
|
37841
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37830
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
37842
37831
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
37843
37832
|
const set = [closed, pinned, hidden].filter((one2) => one2 !== void 0).length;
|
|
37844
37833
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -38037,7 +38026,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
38037
38026
|
};
|
|
38038
38027
|
}, "topicsService");
|
|
38039
38028
|
|
|
38040
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
38041
38030
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
38042
38031
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
38043
38032
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -38111,7 +38100,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
38111
38100
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
38112
38101
|
}, "prepareEvidencePacket");
|
|
38113
38102
|
|
|
38114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38103
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
38115
38104
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
38116
38105
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
38117
38106
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -38131,7 +38120,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
38131
38120
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
38132
38121
|
}, "readEvidencePacket");
|
|
38133
38122
|
|
|
38134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38123
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
38135
38124
|
var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
|
|
38136
38125
|
let before2 = Number.POSITIVE_INFINITY;
|
|
38137
38126
|
for (; ; ) {
|
|
@@ -38193,7 +38182,7 @@ var searchMeetingHits = /* @__PURE__ */ __name(async (store, query, request, opt
|
|
|
38193
38182
|
return { ...result, selection };
|
|
38194
38183
|
}, "searchMeetingHits");
|
|
38195
38184
|
|
|
38196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38185
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
38197
38186
|
import { createHash as createHash12 } from "node:crypto";
|
|
38198
38187
|
var scopeKeys = [
|
|
38199
38188
|
"accountId",
|
|
@@ -38328,7 +38317,7 @@ var readMeetingProjectDiscovery = /* @__PURE__ */ __name(async (ports, projectNa
|
|
|
38328
38317
|
};
|
|
38329
38318
|
}, "readMeetingProjectDiscovery");
|
|
38330
38319
|
|
|
38331
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38320
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-hit-context.js
|
|
38332
38321
|
import { createHash as createHash13 } from "node:crypto";
|
|
38333
38322
|
var contextCue = /* @__PURE__ */ __name((cue) => ({
|
|
38334
38323
|
ref: cue.reference,
|
|
@@ -38446,7 +38435,7 @@ var readMeetingHitContext = /* @__PURE__ */ __name(async (store, accountId, refe
|
|
|
38446
38435
|
return { ...packet, fingerprint: createHash13("sha256").update(JSON.stringify(packet)).digest("hex") };
|
|
38447
38436
|
}, "readMeetingHitContext");
|
|
38448
38437
|
|
|
38449
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38438
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-passage-format.js
|
|
38450
38439
|
var visible = /* @__PURE__ */ __name((text2) => text2.replace(/[\p{Cc}\p{Cf}]/gu, (value) => value === "\n" || value === " " ? value : `\\u{${value.codePointAt(0)?.toString(16)}}`), "visible");
|
|
38451
38440
|
var markdown = /* @__PURE__ */ __name((text2) => visible(text2).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replace(/[\\`*_[\]#|~]/g, "\\$&"), "markdown");
|
|
38452
38441
|
var timestamp = /* @__PURE__ */ __name((ms) => {
|
|
@@ -38522,7 +38511,7 @@ var readMeetingPassage = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
38522
38511
|
return { packet, content };
|
|
38523
38512
|
}, "readMeetingPassage");
|
|
38524
38513
|
|
|
38525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38514
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
38526
38515
|
var communicationFields = {
|
|
38527
38516
|
sources: pipe(array(strictObject({
|
|
38528
38517
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -38554,7 +38543,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
38554
38543
|
return { ...input, after, before: before2 };
|
|
38555
38544
|
}, "communicationRequest");
|
|
38556
38545
|
|
|
38557
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38546
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
38558
38547
|
var MEETING_PREPARATION_LIMITS = {
|
|
38559
38548
|
meetings: { min: 1, max: 20, default: 5 },
|
|
38560
38549
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -38640,7 +38629,7 @@ var preparationRequest = /* @__PURE__ */ __name((accountId, externalId, original
|
|
|
38640
38629
|
return { ...input, history };
|
|
38641
38630
|
}, "preparationRequest");
|
|
38642
38631
|
|
|
38643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-communications-preparation.js
|
|
38644
38633
|
var readPreparationCommunications = /* @__PURE__ */ __name(async (plan, signal) => {
|
|
38645
38634
|
const section = {
|
|
38646
38635
|
readUsage: plan.reader.usage(),
|
|
@@ -38745,7 +38734,7 @@ var appendPreparationCommunications = /* @__PURE__ */ __name((result, read2) =>
|
|
|
38745
38734
|
result.knowledge.coverage.otherSources = "see-communications";
|
|
38746
38735
|
}, "appendPreparationCommunications");
|
|
38747
38736
|
|
|
38748
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38737
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
38749
38738
|
var captureCommunicationSelections = /* @__PURE__ */ __name((port) => {
|
|
38750
38739
|
if (port === void 0)
|
|
38751
38740
|
return void 0;
|
|
@@ -38850,7 +38839,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
38850
38839
|
}
|
|
38851
38840
|
}, "validatePreparationCommunications");
|
|
38852
38841
|
|
|
38853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38842
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-knowledge-preparation.js
|
|
38854
38843
|
var invalid5 = /* @__PURE__ */ __name(() => {
|
|
38855
38844
|
throw new CliError("invalid_response", "Preparation knowledge returned an invalid selection");
|
|
38856
38845
|
}, "invalid");
|
|
@@ -38919,7 +38908,7 @@ var appendKnowledgePreparation = /* @__PURE__ */ __name(async (store, result, in
|
|
|
38919
38908
|
}
|
|
38920
38909
|
}, "appendKnowledgePreparation");
|
|
38921
38910
|
|
|
38922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-notes-preparation.js
|
|
38923
38912
|
var invalid6 = /* @__PURE__ */ __name(() => {
|
|
38924
38913
|
throw new CliError("invalid_response", "Preparation notes returned an invalid selection");
|
|
38925
38914
|
}, "invalid");
|
|
@@ -38993,7 +38982,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
38993
38982
|
}
|
|
38994
38983
|
}, "appendNotesPreparation");
|
|
38995
38984
|
|
|
38996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38985
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-project-preparation.js
|
|
38997
38986
|
var PAGE_LIMIT = 4;
|
|
38998
38987
|
var size2 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
38999
38988
|
var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, input) => {
|
|
@@ -39043,7 +39032,7 @@ var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, inpu
|
|
|
39043
39032
|
}
|
|
39044
39033
|
}, "appendProjectPreparation");
|
|
39045
39034
|
|
|
39046
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-related-preparation.js
|
|
39047
39036
|
var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, input) => {
|
|
39048
39037
|
if (!result.series || !result.items.length || result.coverage.outputLimited)
|
|
39049
39038
|
return;
|
|
@@ -39115,7 +39104,7 @@ var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, inpu
|
|
|
39115
39104
|
}
|
|
39116
39105
|
}, "appendRelatedPreparation");
|
|
39117
39106
|
|
|
39118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39107
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/meeting-preparation.js
|
|
39119
39108
|
var size3 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
39120
39109
|
var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
39121
39110
|
const fixed = snapshotMeetingScope(scope);
|
|
@@ -39253,7 +39242,7 @@ var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId,
|
|
|
39253
39242
|
};
|
|
39254
39243
|
}, "createMeetingPreparationService");
|
|
39255
39244
|
|
|
39256
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39245
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
39257
39246
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
39258
39247
|
const installer = ports.installer();
|
|
39259
39248
|
const argv = updateCommand(installer, packageName);
|
|
@@ -39318,7 +39307,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
39318
39307
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
39319
39308
|
}, "dayAfter");
|
|
39320
39309
|
|
|
39321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39310
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
39322
39311
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
39323
39312
|
const pictures = picturesService(deps);
|
|
39324
39313
|
const base = {
|
|
@@ -39355,7 +39344,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
39355
39344
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
39356
39345
|
}, "servicesFor");
|
|
39357
39346
|
|
|
39358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39347
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
39359
39348
|
import { createHash as createHash14 } from "node:crypto";
|
|
39360
39349
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync3, rmSync } from "node:fs";
|
|
39361
39350
|
import { createConnection, createServer } from "node:net";
|
|
@@ -39503,7 +39492,7 @@ var serve = /* @__PURE__ */ __name(async (socket, request, stdin, signal, run) =
|
|
|
39503
39492
|
}
|
|
39504
39493
|
}, "serve");
|
|
39505
39494
|
|
|
39506
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39495
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.590.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_4d927264f4292101afd5535290652319/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
39507
39496
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
39508
39497
|
close: /* @__PURE__ */ __name(async () => {
|
|
39509
39498
|
}, "close"),
|
|
@@ -39757,8 +39746,6 @@ export {
|
|
|
39757
39746
|
upgradePackage,
|
|
39758
39747
|
approveAsTask,
|
|
39759
39748
|
parseProposalIds,
|
|
39760
|
-
proposeOrganization,
|
|
39761
|
-
proposeOrganizationRename,
|
|
39762
39749
|
proposalRegistry,
|
|
39763
39750
|
servicesFor,
|
|
39764
39751
|
lackedNeed,
|