@wirecat/cli-memo 0.131.41 → 0.131.43
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-ZTYUFM24.js → all-profiles-NL4TH4VM.js} +5 -5
- package/dist/bundle/{anthropic-BLXCM7J2.js → anthropic-JTVP4FKR.js} +3 -3
- package/dist/bundle/{app-server-MXYDSTTW.js → app-server-FF6PISNB.js} +35 -35
- package/dist/bundle/auto-KUNM4M5S.js +86 -0
- package/dist/bundle/{bun-GFMA4TKJ.js → bun-OTDLXIRE.js} +2 -2
- package/dist/bundle/{bun-sqlite-3V6EB3XP.js → bun-sqlite-HXOV4SGX.js} +2 -2
- package/dist/bundle/{chunk-RMJLG2D6.js → chunk-2A42QHPZ.js} +4 -4
- package/dist/bundle/{chunk-2G66FZPO.js → chunk-2LHLMF3R.js} +1 -1
- package/dist/bundle/{chunk-OY2CMEUW.js → chunk-3Z4BMSVX.js} +3 -3
- package/dist/bundle/{chunk-IJS2X4AZ.js → chunk-5HCWKNSM.js} +43 -43
- package/dist/bundle/{chunk-RZUSWGAC.js → chunk-5MP7XPIP.js} +2 -2
- package/dist/bundle/{chunk-Y4B4273X.js → chunk-6WDOIKM6.js} +7 -7
- package/dist/bundle/{chunk-ARNYYXLO.js → chunk-AH7TKAUY.js} +20 -20
- package/dist/bundle/{chunk-Y7XDV4GQ.js → chunk-BGNGOAG6.js} +6 -6
- package/dist/bundle/{chunk-DYSWDGOU.js → chunk-BIVHDUAX.js} +5 -5
- package/dist/bundle/{chunk-776YSJJY.js → chunk-C67763MQ.js} +1 -1
- package/dist/bundle/{chunk-LLL4RBDU.js → chunk-CIN7A3OM.js} +11 -11
- package/dist/bundle/{chunk-UA2H5FRV.js → chunk-DTODXX7Y.js} +1 -1
- package/dist/bundle/{chunk-3MVDNB6Y.js → chunk-DYX5ATS5.js} +3 -3
- package/dist/bundle/{chunk-ZETAM63O.js → chunk-ELAZVPZT.js} +1 -1
- package/dist/bundle/{chunk-BA3HPVBN.js → chunk-FJVQDWVV.js} +4 -4
- package/dist/bundle/{chunk-BFN5KXGH.js → chunk-G7QBCTF6.js} +333 -293
- package/dist/bundle/{chunk-ISVO2PHD.js → chunk-GCTZK5QV.js} +4 -4
- package/dist/bundle/{chunk-PPSIMMJM.js → chunk-GPT5MFYG.js} +17 -9
- package/dist/bundle/{chunk-JO3FC5B4.js → chunk-IJC57CPU.js} +7 -7
- package/dist/bundle/{chunk-WG3JJ7D5.js → chunk-IRHRNK2E.js} +1 -1
- package/dist/bundle/{chunk-SCIU5WHL.js → chunk-J3V25QFZ.js} +3 -3
- package/dist/bundle/{chunk-ULDE2Y7M.js → chunk-K44PG5V3.js} +49 -48
- package/dist/bundle/{chunk-2O2BSM4K.js → chunk-L5NN6UER.js} +1 -1
- package/dist/bundle/{chunk-WFME7ILV.js → chunk-LAMKU426.js} +5 -5
- package/dist/bundle/{chunk-NYNUDUFA.js → chunk-LDQYIKJH.js} +4 -4
- package/dist/bundle/{chunk-YNYOWOKD.js → chunk-LGQZNRNK.js} +149 -149
- package/dist/bundle/{chunk-NFN3JTGD.js → chunk-LSGFFIMA.js} +12 -12
- package/dist/bundle/{chunk-7GEK5BE5.js → chunk-LUHQEQA4.js} +2 -2
- package/dist/bundle/{chunk-XXDWCZRM.js → chunk-LUTZSIA6.js} +1 -1
- package/dist/bundle/{chunk-IJJ4OEXK.js → chunk-MISLCCYA.js} +1 -1
- package/dist/bundle/{chunk-J364I2EL.js → chunk-MLVYZIXB.js} +8 -8
- package/dist/bundle/{chunk-QUA7EHLA.js → chunk-MYOXBUSI.js} +10 -10
- package/dist/bundle/{chunk-OLVBY6N6.js → chunk-N5K6NZ2F.js} +2 -2
- package/dist/bundle/{chunk-A6HC2DWU.js → chunk-NYJHYLKS.js} +56 -56
- package/dist/bundle/{chunk-RNINC74Q.js → chunk-O5FX3Q4U.js} +1 -1
- package/dist/bundle/{chunk-QCE6BNKK.js → chunk-PFWAQGHE.js} +2 -2
- package/dist/bundle/{chunk-G6EOW6PY.js → chunk-PIQUCN4T.js} +2 -2
- package/dist/bundle/{chunk-F3OGJQWY.js → chunk-Q52KLN53.js} +5 -5
- package/dist/bundle/{chunk-B5LF2FVU.js → chunk-RCCKUVQP.js} +1 -1
- package/dist/bundle/{chunk-AYOFFZMO.js → chunk-RENUU3BQ.js} +22 -4
- package/dist/bundle/{chunk-V5TOZXBU.js → chunk-RJM4D644.js} +1283 -767
- package/dist/bundle/{chunk-7EOGXNLO.js → chunk-SKV7GYNB.js} +4 -4
- package/dist/bundle/{chunk-2E4N5DVE.js → chunk-TBHX7VF5.js} +27 -27
- package/dist/bundle/{chunk-7AS5QFWJ.js → chunk-TVWO7K4U.js} +5 -5
- package/dist/bundle/{chunk-S7TVQ7ES.js → chunk-TYIENI7Z.js} +305 -248
- package/dist/bundle/{chunk-VT4PCMY2.js → chunk-U3VDEHXY.js} +1 -1
- package/dist/bundle/{chunk-6V6VCYOS.js → chunk-U7MRZIBF.js} +3 -3
- package/dist/bundle/{chunk-NP7Y3JQ7.js → chunk-USAH53BQ.js} +9 -9
- package/dist/bundle/{chunk-BJWDBPLF.js → chunk-VJ34VFZ5.js} +2 -2
- package/dist/bundle/{chunk-NKKC6SLX.js → chunk-VQPUADFF.js} +1 -1
- package/dist/bundle/{chunk-VF24JTL4.js → chunk-WBNWH2D5.js} +1 -1
- package/dist/bundle/{chunk-ONJAEHOD.js → chunk-WCFGYCVN.js} +7 -7
- package/dist/bundle/{chunk-LGILT5CA.js → chunk-WVZIP7Z5.js} +2 -2
- package/dist/bundle/{chunk-5KL7T2EP.js → chunk-XCFGMQBF.js} +1 -1
- package/dist/bundle/{chunk-FVN42IND.js → chunk-XFSE3ZGY.js} +1 -1
- package/dist/bundle/{chunk-N2EY7NT3.js → chunk-YHQ2XNNJ.js} +1 -1
- package/dist/bundle/{chunk-RMMYPYNA.js → chunk-YXPAEW6N.js} +24 -21
- package/dist/bundle/{command-contract-KCV6NNGF.js → command-contract-7LYHZI4Y.js} +11 -11
- package/dist/bundle/{decode-SU7TIUXV.js → decode-7PFJ3AKS.js} +2 -2
- package/dist/bundle/{echarts-CJG2WVOX.js → echarts-YDLD5JI2.js} +2 -2
- package/dist/bundle/{embed-IBURCPTK.js → embed-YDR7WSPK.js} +3 -3
- package/dist/bundle/{embedder-SK773RJG.js → embedder-KQYPQKZA.js} +6 -6
- package/dist/bundle/{entry-6WOJUMZN.js → entry-FD4B2GID.js} +4 -4
- package/dist/bundle/failure-FOZGSUOL.js +66 -0
- package/dist/bundle/{first-run-CMSDLJGE.js → first-run-C6HSAXYV.js} +5 -5
- package/dist/bundle/{first-screen-6IZLOQ3Q.js → first-screen-ZM3LZRP4.js} +12 -12
- package/dist/bundle/{instructions-RHGGUIBR.js → instructions-O7YN5F6D.js} +1 -1
- package/dist/bundle/{mcp-HBKMY35O.js → mcp-X5XYKVTY.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-NBXEN7JU.js → node-YP265UUP.js} +2 -2
- package/dist/bundle/{node-sqlite-WAGIYOYR.js → node-sqlite-K3PWKXTB.js} +3 -3
- package/dist/bundle/{oauth-INSEXJD2.js → oauth-CUIDTJ5Z.js} +4 -4
- package/dist/bundle/{open-LXFV2C67.js → open-SHUV2BPO.js} +2 -2
- package/dist/bundle/{openai-OCWAXC7E.js → openai-LSBA5CCQ.js} +7 -7
- package/dist/bundle/{process-MRPJP32M.js → process-POGO7VDZ.js} +1 -1
- package/dist/bundle/{program-XKO4X6BB.js → program-DZ4TM3PS.js} +342 -90
- package/dist/bundle/{prompt-ROLOHFNO.js → prompt-V7SEBV7G.js} +2 -2
- package/dist/bundle/{recognize-63ZLC4DN.js → recognize-DK3N2GVZ.js} +1 -1
- package/dist/bundle/{remote-J4ZBFG3Y.js → remote-XYFCKYIQ.js} +4 -4
- package/dist/bundle/{rerank-HUQCCGYO.js → rerank-COKJGAIB.js} +4 -4
- package/dist/bundle/{serve-MFJYL4AB.js → serve-KW3AGGTZ.js} +6 -6
- package/dist/bundle/{server-2JQ5K33G.js → server-72N5XGA6.js} +50 -50
- package/dist/bundle/server-QZPRR4H3.js +48 -0
- package/dist/bundle/server-VPEPJSQM.js +61 -0
- package/dist/bundle/{state-AV5MO77W.js → state-KHK3S4AC.js} +3 -3
- package/dist/bundle/{store-H4HCVN4H.js → store-GGUL63V7.js} +9 -9
- package/dist/bundle/store-maintenance-command-3KI6LYZB.js +48 -0
- package/dist/bundle/update-OLU3IRV6.js +69 -0
- package/dist/discovery/command.d.ts.map +1 -1
- package/dist/discovery/command.js +3 -0
- package/dist/discovery/command.js.map +1 -1
- package/dist/doctor/command.d.ts +1 -1
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +19 -0
- package/dist/examples.js.map +1 -1
- package/dist/finance/deals-command.d.ts +22 -0
- package/dist/finance/deals-command.d.ts.map +1 -0
- package/dist/finance/deals-command.js +235 -0
- package/dist/finance/deals-command.js.map +1 -0
- package/dist/knowledge/project-status-command.d.ts.map +1 -1
- package/dist/knowledge/project-status-command.js +16 -8
- package/dist/knowledge/project-status-command.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +65 -0
- package/dist/program.js.map +1 -1
- package/dist/rows.d.ts.map +1 -1
- package/dist/rows.js +18 -0
- package/dist/rows.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/money.md +6 -0
- package/skills/cli-memo/topics/projects.md +2 -1
- package/dist/bundle/auto-2RK6FE5A.js +0 -86
- package/dist/bundle/failure-4N6GOEGN.js +0 -66
- package/dist/bundle/server-RKPGL53W.js +0 -48
- package/dist/bundle/server-ZN2KC4EE.js +0 -61
- package/dist/bundle/store-maintenance-command-4GYOMUXE.js +0 -48
- package/dist/bundle/update-ATXEHV72.js +0 -69
- /package/dist/bundle/{chunk-VVDYRHYP.js → chunk-SWSCSMAU.js} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LSGFFIMA.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-LGQZNRNK.js";
|
|
52
52
|
import {
|
|
53
53
|
isCliFailure
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-WCFGYCVN.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-RCCKUVQP.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-RJM4D644.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-NYJHYLKS.js";
|
|
218
218
|
import {
|
|
219
219
|
DEFAULT_STEMMERS,
|
|
220
220
|
createStemmer,
|
|
221
221
|
fold,
|
|
222
222
|
normalize
|
|
223
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-6WDOIKM6.js";
|
|
224
224
|
import {
|
|
225
225
|
DEFAULT_TASK_CATEGORIES,
|
|
226
226
|
FALLBACK_CATEGORY
|
|
227
|
-
} from "./chunk-
|
|
227
|
+
} from "./chunk-GCTZK5QV.js";
|
|
228
228
|
import {
|
|
229
229
|
MAX_MODEL_IMAGE_BYTES
|
|
230
|
-
} from "./chunk-
|
|
230
|
+
} from "./chunk-L5NN6UER.js";
|
|
231
231
|
import {
|
|
232
232
|
remoteKey
|
|
233
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-PIQUCN4T.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-LAMKU426.js";
|
|
245
245
|
import {
|
|
246
246
|
installFiles,
|
|
247
247
|
megabytes
|
|
248
|
-
} from "./chunk-
|
|
248
|
+
} from "./chunk-DYX5ATS5.js";
|
|
249
249
|
import {
|
|
250
250
|
storePath,
|
|
251
251
|
wirecatDirectory
|
|
252
|
-
} from "./chunk-
|
|
252
|
+
} from "./chunk-XFSE3ZGY.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.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/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.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/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.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/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.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/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.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/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.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/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.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/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.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/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.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/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.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/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.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/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.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/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.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/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.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/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.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/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.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/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.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/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.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/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.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/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.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/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.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/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.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/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.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/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.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/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.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/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.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/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.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/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.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/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.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/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.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/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-XYFCKYIQ.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-POGO7VDZ.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.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/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.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/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.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/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.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/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();
|
|
@@ -19368,7 +19368,7 @@ var hitsByList = /* @__PURE__ */ __name((text2, categories) => {
|
|
|
19368
19368
|
const stem = stemmersOf();
|
|
19369
19369
|
const english = stem.english.stemTokens(text2);
|
|
19370
19370
|
const spanish = readsSpanish(text2) ? stem.spanish.stemTokens(text2) : [];
|
|
19371
|
-
const
|
|
19371
|
+
const counted2 = [];
|
|
19372
19372
|
for (const triggers of triggerStems(categories)) {
|
|
19373
19373
|
const hit = /* @__PURE__ */ new Set();
|
|
19374
19374
|
english.forEach((word, at) => {
|
|
@@ -19378,20 +19378,20 @@ var hitsByList = /* @__PURE__ */ __name((text2, categories) => {
|
|
|
19378
19378
|
else if (other !== void 0 && triggers.spanish.has(other))
|
|
19379
19379
|
hit.add(other);
|
|
19380
19380
|
});
|
|
19381
|
-
|
|
19381
|
+
counted2.push({ name: triggers.name, hits: hit.size });
|
|
19382
19382
|
}
|
|
19383
|
-
return
|
|
19383
|
+
return counted2;
|
|
19384
19384
|
}, "hitsByList");
|
|
19385
19385
|
var listsHit = /* @__PURE__ */ __name((text2, categories) => hitsByList(text2, categories).filter(({ hits }) => hits > 0).map(({ name }) => name), "listsHit");
|
|
19386
19386
|
var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGORIES) => {
|
|
19387
19387
|
let best = { name: FALLBACK_CATEGORY, hits: 0 };
|
|
19388
|
-
for (const
|
|
19389
|
-
if (
|
|
19390
|
-
best =
|
|
19388
|
+
for (const counted2 of hitsByList(text2, categories))
|
|
19389
|
+
if (counted2.hits > best.hits)
|
|
19390
|
+
best = counted2;
|
|
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.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/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.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/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.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/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.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/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.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/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.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/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.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/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.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/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.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/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.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/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.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/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.589.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_0ee3f6df6a9715cc0d8fd3b6006034a9/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.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/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.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/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.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/chats.js
|
|
20334
20334
|
var EVENTS_DAYS = 7;
|
|
20335
20335
|
var TRACKED_DAYS = 30;
|
|
20336
20336
|
var STATS_PAGE = 1e3;
|
|
@@ -20448,8 +20448,8 @@ var chatsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
20448
20448
|
});
|
|
20449
20449
|
const counts = await store.roster.memberCounts(chatId, { since: new Date(from).toISOString().slice(0, 10) });
|
|
20450
20450
|
const known2 = unrecorded ? { ...stats, complete: false, membersUnrecorded: true } : stats;
|
|
20451
|
-
const
|
|
20452
|
-
return completeness.state === "complete" || !syncsOneChat(deps.messenger) ?
|
|
20451
|
+
const counted2 = counts.length > 0 ? { ...known2, memberCounts: counts } : known2;
|
|
20452
|
+
return completeness.state === "complete" || !syncsOneChat(deps.messenger) ? counted2 : { ...counted2, fetch: typedCommand(deps.messenger.app.command, `messages sync ${chatId}`) };
|
|
20453
20453
|
}, "stats"),
|
|
20454
20454
|
sendAs: /* @__PURE__ */ __name(async (chat) => {
|
|
20455
20455
|
if (deps.offline) {
|
|
@@ -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.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/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.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/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.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/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.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/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.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/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.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/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.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/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.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/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.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/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.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/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.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/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.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/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.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/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.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/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.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/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.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/shared.js
|
|
22555
22555
|
var proposerOfAuthor = /* @__PURE__ */ __name((author) => {
|
|
22556
22556
|
if (author.type === "person")
|
|
22557
22557
|
return { type: "person", id: author.id };
|
|
@@ -22593,7 +22593,7 @@ 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.
|
|
22596
|
+
// 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/organization.js
|
|
22597
22597
|
var ORGANIZATION_ADD_KIND = "organization_add";
|
|
22598
22598
|
var ORGANIZATION_RENAME_KIND = "organization_rename";
|
|
22599
22599
|
var rowOf = /* @__PURE__ */ __name((action2) => {
|
|
@@ -22661,7 +22661,7 @@ var organizationKind = /* @__PURE__ */ __name((store) => ({
|
|
|
22661
22661
|
}, "decide")
|
|
22662
22662
|
}), "organizationKind");
|
|
22663
22663
|
|
|
22664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
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
22665
|
var rowOf2 = /* @__PURE__ */ __name((action2) => ({
|
|
22666
22666
|
id: action2.id,
|
|
22667
22667
|
kind: "action",
|
|
@@ -22701,7 +22701,7 @@ var actionKind = /* @__PURE__ */ __name((store, claimed) => ({
|
|
|
22701
22701
|
}, "decide")
|
|
22702
22702
|
}), "actionKind");
|
|
22703
22703
|
|
|
22704
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22704
|
+
// 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/fact.js
|
|
22705
22705
|
var STATUS = {
|
|
22706
22706
|
proposed: "proposed",
|
|
22707
22707
|
accepted: "confirmed",
|
|
@@ -22744,7 +22744,7 @@ var factKind = /* @__PURE__ */ __name((store) => ({
|
|
|
22744
22744
|
}, "decide")
|
|
22745
22745
|
}), "factKind");
|
|
22746
22746
|
|
|
22747
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22747
|
+
// 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/finance.js
|
|
22748
22748
|
var rowOf4 = /* @__PURE__ */ __name((kind, entry) => ({
|
|
22749
22749
|
id: entry.ref,
|
|
22750
22750
|
kind,
|
|
@@ -22779,7 +22779,7 @@ var financeKind = /* @__PURE__ */ __name((store, kind) => ({
|
|
|
22779
22779
|
var invoiceKind = /* @__PURE__ */ __name((store) => financeKind(store, "invoice"), "invoiceKind");
|
|
22780
22780
|
var paymentKind = /* @__PURE__ */ __name((store) => financeKind(store, "payment"), "paymentKind");
|
|
22781
22781
|
|
|
22782
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22782
|
+
// 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/findings.js
|
|
22783
22783
|
var FACT_SUMMARIES = {
|
|
22784
22784
|
fact: /* @__PURE__ */ __name((finding) => finding.statement, "fact"),
|
|
22785
22785
|
task: /* @__PURE__ */ __name((finding) => finding.title, "task"),
|
|
@@ -22851,7 +22851,7 @@ var findingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
22851
22851
|
};
|
|
22852
22852
|
}, "findingsKind");
|
|
22853
22853
|
|
|
22854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22854
|
+
// 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/key-document.js
|
|
22855
22855
|
var linkRow = /* @__PURE__ */ __name((link4) => ({
|
|
22856
22856
|
id: `key:${link4.id}`,
|
|
22857
22857
|
kind: "key_document",
|
|
@@ -22919,7 +22919,7 @@ var keyDocumentKind = /* @__PURE__ */ __name((store) => {
|
|
|
22919
22919
|
};
|
|
22920
22920
|
}, "keyDocumentKind");
|
|
22921
22921
|
|
|
22922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22922
|
+
// 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/mail-findings.js
|
|
22923
22923
|
var words = /* @__PURE__ */ __name((...parts) => parts.filter(Boolean).join(" "), "words");
|
|
22924
22924
|
var summaryOf = /* @__PURE__ */ __name((finding) => {
|
|
22925
22925
|
switch (finding.kind) {
|
|
@@ -23007,7 +23007,7 @@ var mailFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
23007
23007
|
};
|
|
23008
23008
|
}, "mailFindingsKind");
|
|
23009
23009
|
|
|
23010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23010
|
+
// 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/meeting-findings.js
|
|
23011
23011
|
var rowOf7 = /* @__PURE__ */ __name((action2, batch) => {
|
|
23012
23012
|
const findings = batch.input.findings;
|
|
23013
23013
|
const projects = [...new Set(findings.map((one2) => "project" in one2 ? one2.project : void 0))];
|
|
@@ -23071,7 +23071,7 @@ var meetingFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
23071
23071
|
};
|
|
23072
23072
|
}, "meetingFindingsKind");
|
|
23073
23073
|
|
|
23074
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23074
|
+
// 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/memory.js
|
|
23075
23075
|
var STATUS2 = {
|
|
23076
23076
|
proposed: "proposed",
|
|
23077
23077
|
confirmed: "confirmed",
|
|
@@ -23112,7 +23112,7 @@ var memoryKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23112
23112
|
}, "decide")
|
|
23113
23113
|
}), "memoryKind");
|
|
23114
23114
|
|
|
23115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23115
|
+
// 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/orders.js
|
|
23116
23116
|
var rowOf9 = /* @__PURE__ */ __name((order) => ({
|
|
23117
23117
|
id: order.ref,
|
|
23118
23118
|
kind: "order",
|
|
@@ -23144,7 +23144,7 @@ var orderKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23144
23144
|
}, "decide")
|
|
23145
23145
|
}), "orderKind");
|
|
23146
23146
|
|
|
23147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23147
|
+
// 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/relationship.js
|
|
23148
23148
|
var linkRow2 = /* @__PURE__ */ __name((link4) => ({
|
|
23149
23149
|
id: `link:${link4.id}`,
|
|
23150
23150
|
kind: "relationship",
|
|
@@ -23218,7 +23218,7 @@ var relationshipKind = /* @__PURE__ */ __name((store) => {
|
|
|
23218
23218
|
};
|
|
23219
23219
|
}, "relationshipKind");
|
|
23220
23220
|
|
|
23221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23221
|
+
// 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/relationship-update.js
|
|
23222
23222
|
var KIND = "relationship_update";
|
|
23223
23223
|
var summaryOf2 = /* @__PURE__ */ __name(({ changes }) => Object.entries(changes).map(([field, value]) => `${field} ${value ?? "cleared"}`).join(", "), "summaryOf");
|
|
23224
23224
|
var rowOf10 = /* @__PURE__ */ __name((action2) => {
|
|
@@ -23268,7 +23268,7 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23268
23268
|
}, "decide")
|
|
23269
23269
|
}), "relationshipUpdateKind");
|
|
23270
23270
|
|
|
23271
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23271
|
+
// 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/task-close.js
|
|
23272
23272
|
var rowOf11 = /* @__PURE__ */ __name((task2) => {
|
|
23273
23273
|
const suggestion = task2.closeSuggestion;
|
|
23274
23274
|
if (suggestion === null)
|
|
@@ -23336,7 +23336,7 @@ var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
|
23336
23336
|
};
|
|
23337
23337
|
}, "taskCloseKind");
|
|
23338
23338
|
|
|
23339
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23339
|
+
// 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/registry.js
|
|
23340
23340
|
var PREFIX = /^([a-z][a-z_]*):/;
|
|
23341
23341
|
var marked = /* @__PURE__ */ __name((kind, row) => kind.ownerOnly ? { ...row, ownerOnly: true } : row, "marked");
|
|
23342
23342
|
var refusalOf = /* @__PURE__ */ __name((id2, error) => {
|
|
@@ -23464,7 +23464,7 @@ var proposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
23464
23464
|
return registry;
|
|
23465
23465
|
}, "proposalRegistry");
|
|
23466
23466
|
|
|
23467
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23467
|
+
// 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/mail/owed.js
|
|
23468
23468
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
23469
23469
|
if (newest === null)
|
|
23470
23470
|
return null;
|
|
@@ -23473,7 +23473,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
23473
23473
|
return newest.addressed ? "owed" : null;
|
|
23474
23474
|
}, "mailTurn");
|
|
23475
23475
|
|
|
23476
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23476
|
+
// 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/agenda-mail.js
|
|
23477
23477
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
23478
23478
|
if (error instanceof CliError && error.code === "not_found")
|
|
23479
23479
|
return void 0;
|
|
@@ -23531,7 +23531,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
23531
23531
|
};
|
|
23532
23532
|
}, "mailActivity");
|
|
23533
23533
|
|
|
23534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23534
|
+
// 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/chat-coverage.js
|
|
23535
23535
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
23536
23536
|
const ids = [...new Set(chatIds)];
|
|
23537
23537
|
if (ids.length === 0)
|
|
@@ -23557,7 +23557,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
23557
23557
|
}));
|
|
23558
23558
|
}, "chatCoverage");
|
|
23559
23559
|
|
|
23560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23560
|
+
// 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/agenda.js
|
|
23561
23561
|
var DAY = 864e5;
|
|
23562
23562
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
23563
23563
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -23804,7 +23804,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
23804
23804
|
};
|
|
23805
23805
|
}, "agendaItem");
|
|
23806
23806
|
|
|
23807
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23807
|
+
// 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/excerpt.js
|
|
23808
23808
|
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
23809
|
var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) => {
|
|
23810
23810
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -23820,7 +23820,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) =
|
|
|
23820
23820
|
}, "excerpt");
|
|
23821
23821
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
23822
23822
|
|
|
23823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23823
|
+
// 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/link-scorers/shared.js
|
|
23824
23824
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
23825
23825
|
var folded = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "folded");
|
|
23826
23826
|
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 +23859,7 @@ var identitiesIn = /* @__PURE__ */ __name(async (store, people, provider) => {
|
|
|
23859
23859
|
return found;
|
|
23860
23860
|
}, "identitiesIn");
|
|
23861
23861
|
|
|
23862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23862
|
+
// 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/link-scorers/alias-hits.js
|
|
23863
23863
|
var SEARCH_LIMIT = 500;
|
|
23864
23864
|
var aliasWeight = /* @__PURE__ */ __name((hits) => hits >= 10 ? 0.55 : hits >= 3 ? 0.35 : 0, "aliasWeight");
|
|
23865
23865
|
var aliasHits = {
|
|
@@ -23908,7 +23908,7 @@ var aliasHits = {
|
|
|
23908
23908
|
}, "candidates")
|
|
23909
23909
|
};
|
|
23910
23910
|
|
|
23911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23911
|
+
// 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/link-scorers/chat-senders.js
|
|
23912
23912
|
var WEIGHT = 0.5;
|
|
23913
23913
|
var LARGE_GROUP_WEIGHT = 0.2;
|
|
23914
23914
|
var LARGE_GROUP = 30;
|
|
@@ -23960,7 +23960,7 @@ var chatSenders = {
|
|
|
23960
23960
|
}, "candidates")
|
|
23961
23961
|
};
|
|
23962
23962
|
|
|
23963
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23963
|
+
// 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/link-scorers/chat-title.js
|
|
23964
23964
|
var WEIGHT2 = 0.7;
|
|
23965
23965
|
var chatTitle = {
|
|
23966
23966
|
id: "chat-title",
|
|
@@ -23999,7 +23999,7 @@ var chatTitle = {
|
|
|
23999
23999
|
}, "candidates")
|
|
24000
24000
|
};
|
|
24001
24001
|
|
|
24002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24002
|
+
// 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/link-scorers/email-domain.js
|
|
24003
24003
|
var WEIGHT3 = 0.3;
|
|
24004
24004
|
var CONTACTS = 500;
|
|
24005
24005
|
var MOST_PAIRS = 200;
|
|
@@ -24060,7 +24060,7 @@ var emailDomain = {
|
|
|
24060
24060
|
}, "candidates")
|
|
24061
24061
|
};
|
|
24062
24062
|
|
|
24063
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24063
|
+
// 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/link-scorers/mail-thread.js
|
|
24064
24064
|
var NAMED = 0.7;
|
|
24065
24065
|
var MEMBER_ONLY = 0.3;
|
|
24066
24066
|
var READ_LIMIT2 = 500;
|
|
@@ -24133,7 +24133,7 @@ var mailThread = {
|
|
|
24133
24133
|
}, "candidates")
|
|
24134
24134
|
};
|
|
24135
24135
|
|
|
24136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24136
|
+
// 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/link-scorers/member-chats.js
|
|
24137
24137
|
var WEIGHT4 = 0.5;
|
|
24138
24138
|
var memberChats = {
|
|
24139
24139
|
id: "member-chats",
|
|
@@ -24173,7 +24173,7 @@ var memberChats = {
|
|
|
24173
24173
|
}, "candidates")
|
|
24174
24174
|
};
|
|
24175
24175
|
|
|
24176
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24176
|
+
// 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/link-scorers/member-dialog.js
|
|
24177
24177
|
var WEIGHT5 = 0.6;
|
|
24178
24178
|
var memberDialog = {
|
|
24179
24179
|
id: "member-dialog",
|
|
@@ -24207,7 +24207,7 @@ var memberDialog = {
|
|
|
24207
24207
|
}, "candidates")
|
|
24208
24208
|
};
|
|
24209
24209
|
|
|
24210
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24210
|
+
// 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/project-gathering-around.js
|
|
24211
24211
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
24212
24212
|
async around(ref, window3) {
|
|
24213
24213
|
const at = parseLocator(ref);
|
|
@@ -24303,7 +24303,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
24303
24303
|
};
|
|
24304
24304
|
}, "storedNeighbours");
|
|
24305
24305
|
|
|
24306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24306
|
+
// 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/project-gathering-request.js
|
|
24307
24307
|
import { createHash as createHash2 } from "node:crypto";
|
|
24308
24308
|
var DAY2 = 864e5;
|
|
24309
24309
|
var MAX_TIME = 864e13;
|
|
@@ -24619,7 +24619,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
24619
24619
|
return value;
|
|
24620
24620
|
}, "decodeCheckpoint");
|
|
24621
24621
|
|
|
24622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24622
|
+
// 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/project-gathering.js
|
|
24623
24623
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
24624
24624
|
var PAGE2 = 20;
|
|
24625
24625
|
var PEOPLE = 20;
|
|
@@ -25023,7 +25023,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
25023
25023
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
25024
25024
|
}, "peopleOf");
|
|
25025
25025
|
|
|
25026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25026
|
+
// 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/meeting-project-candidate-matching.js
|
|
25027
25027
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
25028
25028
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
25029
25029
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -25067,7 +25067,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
25067
25067
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
25068
25068
|
}, "matchVocabularyTerms");
|
|
25069
25069
|
|
|
25070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25070
|
+
// 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/project-gathering-mentions.js
|
|
25071
25071
|
var KINDS = ["project", "tag", "topic"];
|
|
25072
25072
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
25073
25073
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -25122,7 +25122,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
25122
25122
|
};
|
|
25123
25123
|
}, "findEvidenceMentions");
|
|
25124
25124
|
|
|
25125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25125
|
+
// 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/stored-project-gathering.js
|
|
25126
25126
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
25127
25127
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
25128
25128
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -25390,7 +25390,7 @@ var gatherStoredProject = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
25390
25390
|
const leftOut = [];
|
|
25391
25391
|
for (const one2 of all.filter((chat) => !purposeRead(purposes, chat.purpose))) {
|
|
25392
25392
|
const account = { provider: one2.provider, account: one2.account };
|
|
25393
|
-
const [
|
|
25393
|
+
const [counted2, [held]] = await Promise.all([
|
|
25394
25394
|
count4(account, one2.chat, { since: gathered.window.after, until: gathered.window.before }),
|
|
25395
25395
|
chatCoverage(store, account, [one2.chat])
|
|
25396
25396
|
]);
|
|
@@ -25403,7 +25403,7 @@ var gatherStoredProject = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
25403
25403
|
purpose: one2.purpose ?? LINK_PURPOSE,
|
|
25404
25404
|
relationship: one2.relationship,
|
|
25405
25405
|
...one2.proposed ? { proposed: one2.proposed } : {},
|
|
25406
|
-
...
|
|
25406
|
+
...counted2
|
|
25407
25407
|
});
|
|
25408
25408
|
}
|
|
25409
25409
|
return {
|
|
@@ -25428,7 +25428,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
25428
25428
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
25429
25429
|
}, "purposeHintOf");
|
|
25430
25430
|
|
|
25431
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25431
|
+
// 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/link-scorers/scan.js
|
|
25432
25432
|
var SCORERS = [chatTitle, aliasHits, memberChats, memberDialog, chatSenders, mailThread];
|
|
25433
25433
|
var PERSON_SCORERS = [emailDomain];
|
|
25434
25434
|
var SCAN_BOT = { bot: "memo-scan", kind: "rule" };
|
|
@@ -25636,18 +25636,18 @@ var referenceOf = /* @__PURE__ */ __name((text2) => {
|
|
|
25636
25636
|
}, "referenceOf");
|
|
25637
25637
|
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
25638
|
|
|
25639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25639
|
+
// 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/media-archive.js
|
|
25640
25640
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
25641
25641
|
|
|
25642
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25642
|
+
// 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/media-archive-files.js
|
|
25643
25643
|
import { lstat } from "node:fs/promises";
|
|
25644
25644
|
|
|
25645
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25645
|
+
// 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/persistence/native/recording-partial-store.js
|
|
25646
25646
|
import { createHash as createHash4, randomUUID as randomUUID2 } from "node:crypto";
|
|
25647
25647
|
import { open as open2, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
25648
25648
|
import { join as join2 } from "node:path";
|
|
25649
25649
|
|
|
25650
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25650
|
+
// 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/persistence/native/recording-partial-metadata.js
|
|
25651
25651
|
import { createHash as createHash3 } from "node:crypto";
|
|
25652
25652
|
var metadataLimit = 16384;
|
|
25653
25653
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -25707,7 +25707,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
25707
25707
|
}
|
|
25708
25708
|
}, "readPartialMetadata");
|
|
25709
25709
|
|
|
25710
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25710
|
+
// 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/persistence/native/recording-partial-writer.js
|
|
25711
25711
|
import { randomUUID } from "node:crypto";
|
|
25712
25712
|
import { open, rename, unlink } from "node:fs/promises";
|
|
25713
25713
|
import { join } from "node:path";
|
|
@@ -25799,7 +25799,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
25799
25799
|
};
|
|
25800
25800
|
}, "partialWriter");
|
|
25801
25801
|
|
|
25802
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25802
|
+
// 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/persistence/native/recording-partial-store.js
|
|
25803
25803
|
var NativeRecordingPartialStore = class {
|
|
25804
25804
|
static {
|
|
25805
25805
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -25906,12 +25906,12 @@ var NativeRecordingPartialStore = class {
|
|
|
25906
25906
|
}
|
|
25907
25907
|
};
|
|
25908
25908
|
|
|
25909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25909
|
+
// 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/persistence/native/recording-publication.js
|
|
25910
25910
|
import { createHash as createHash5 } from "node:crypto";
|
|
25911
25911
|
import { link as link2 } from "node:fs/promises";
|
|
25912
25912
|
import { basename, dirname, join as join4, resolve } from "node:path";
|
|
25913
25913
|
|
|
25914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25914
|
+
// 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/persistence/native/recording-publication-files.js
|
|
25915
25915
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
25916
25916
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
25917
25917
|
signal?.throwIfAborted();
|
|
@@ -25946,7 +25946,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
25946
25946
|
signal?.throwIfAborted();
|
|
25947
25947
|
}, "commitPublication");
|
|
25948
25948
|
|
|
25949
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25949
|
+
// 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/persistence/native/recording-publication-journal.js
|
|
25950
25950
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
25951
25951
|
import { open as open3, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
25952
25952
|
import { join as join3 } from "node:path";
|
|
@@ -26019,7 +26019,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
26019
26019
|
}
|
|
26020
26020
|
}, "writePublicationJournal");
|
|
26021
26021
|
|
|
26022
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26022
|
+
// 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/persistence/native/recording-publication.js
|
|
26023
26023
|
var NativeRecordingPublication = class {
|
|
26024
26024
|
static {
|
|
26025
26025
|
__name(this, "NativeRecordingPublication");
|
|
@@ -26092,7 +26092,7 @@ var NativeRecordingPublication = class {
|
|
|
26092
26092
|
}
|
|
26093
26093
|
};
|
|
26094
26094
|
|
|
26095
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26095
|
+
// 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/media-archive-manifest.js
|
|
26096
26096
|
import { createHash as createHash6 } from "node:crypto";
|
|
26097
26097
|
import { readdir } from "node:fs/promises";
|
|
26098
26098
|
import { isAbsolute, join as join5, resolve as resolve2 } from "node:path";
|
|
@@ -26179,7 +26179,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one2, beforePublish) => wri
|
|
|
26179
26179
|
beforePublish
|
|
26180
26180
|
}), "commitMediaEntry");
|
|
26181
26181
|
|
|
26182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26182
|
+
// 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/media-archive-files.js
|
|
26183
26183
|
var validator = '"media-completed-v1"';
|
|
26184
26184
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
26185
26185
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -26280,7 +26280,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
26280
26280
|
return entry;
|
|
26281
26281
|
}, "archiveMediaFile");
|
|
26282
26282
|
|
|
26283
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26283
|
+
// 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/media-archive-locks.js
|
|
26284
26284
|
import { mkdir, realpath } from "node:fs/promises";
|
|
26285
26285
|
import { join as join6, resolve as resolve3 } from "node:path";
|
|
26286
26286
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -26347,7 +26347,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
26347
26347
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
26348
26348
|
}, "withMediaArchiveLocks");
|
|
26349
26349
|
|
|
26350
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26350
|
+
// 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/media-archive.js
|
|
26351
26351
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
26352
26352
|
if (value === void 0)
|
|
26353
26353
|
return void 0;
|
|
@@ -26500,7 +26500,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
26500
26500
|
}, { create: true });
|
|
26501
26501
|
}, "archiveMedia");
|
|
26502
26502
|
|
|
26503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26503
|
+
// 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/media-archive-move.js
|
|
26504
26504
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
26505
26505
|
import { basename as basename2, dirname as dirname2, join as join7, resolve as resolve4 } from "node:path";
|
|
26506
26506
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -26653,7 +26653,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
26653
26653
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
26654
26654
|
}, "moveMediaArchive");
|
|
26655
26655
|
|
|
26656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26656
|
+
// 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/model-downloads.js
|
|
26657
26657
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
26658
26658
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
26659
26659
|
}, "progress") }) => {
|
|
@@ -26676,7 +26676,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26676
26676
|
}
|
|
26677
26677
|
await nativeRuntime({ env, progress });
|
|
26678
26678
|
progress(`${model.id}: loading it once to check it works`);
|
|
26679
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
26679
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-YDR7WSPK.js");
|
|
26680
26680
|
const embedder = await openEmbedder2(model, directory2);
|
|
26681
26681
|
try {
|
|
26682
26682
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -26697,7 +26697,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
26697
26697
|
}
|
|
26698
26698
|
await nativeRuntime({ env, progress });
|
|
26699
26699
|
progress(`${model.id}: loading it once to check it works`);
|
|
26700
|
-
const { openReranker } = await import("./rerank-
|
|
26700
|
+
const { openReranker } = await import("./rerank-COKJGAIB.js");
|
|
26701
26701
|
const reranker = await openReranker(model, directory2);
|
|
26702
26702
|
try {
|
|
26703
26703
|
await reranker.score("check", ["check"]);
|
|
@@ -26715,7 +26715,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26715
26715
|
await installFiles(placedImage(model, directory2), { progress });
|
|
26716
26716
|
}
|
|
26717
26717
|
progress(`${model.id}: loading it once to check it works`);
|
|
26718
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
26718
|
+
const { openPictureEmbedder } = await import("./embedder-KQYPQKZA.js");
|
|
26719
26719
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
26720
26720
|
try {
|
|
26721
26721
|
const vector = await embedder.embedQuery("check");
|
|
@@ -26727,7 +26727,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26727
26727
|
return { model, directory: directory2 };
|
|
26728
26728
|
}, "downloadImageModel");
|
|
26729
26729
|
|
|
26730
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26730
|
+
// 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/domain/money-words.js
|
|
26731
26731
|
var MONEY_REQUEST = "money-request";
|
|
26732
26732
|
var MONEY_DONE = "money-done";
|
|
26733
26733
|
var PROMISE = "promise";
|
|
@@ -26761,10 +26761,10 @@ var MONEY_WORDS = [
|
|
|
26761
26761
|
}
|
|
26762
26762
|
];
|
|
26763
26763
|
|
|
26764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26764
|
+
// 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/money-words.js
|
|
26765
26765
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
26766
26766
|
|
|
26767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26767
|
+
// 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/domain/status-words.js
|
|
26768
26768
|
var words2 = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
26769
26769
|
var MONEY_DONE_FORMS = words2([
|
|
26770
26770
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -26804,7 +26804,7 @@ var PROMISE_FORMS = words2([
|
|
|
26804
26804
|
"estar\xE1 listo"
|
|
26805
26805
|
]);
|
|
26806
26806
|
|
|
26807
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26807
|
+
// 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/project-status/items.js
|
|
26808
26808
|
var EXCERPT_CHARS = 80;
|
|
26809
26809
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
26810
26810
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -26826,7 +26826,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
26826
26826
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
26827
26827
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
26828
26828
|
|
|
26829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26829
|
+
// 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/project-status/signals/amounts.js
|
|
26830
26830
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
26831
26831
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
26832
26832
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -26866,10 +26866,10 @@ var rowsOf = /* @__PURE__ */ __name((chat) => chat.messages.flatMap((message) =>
|
|
|
26866
26866
|
var centsText = /* @__PURE__ */ __name((cents) => `${Math.floor(cents / 100)}.${String(cents % 100).padStart(2, "0")}`, "centsText");
|
|
26867
26867
|
var amounts = {
|
|
26868
26868
|
id: "amounts",
|
|
26869
|
-
version:
|
|
26869
|
+
version: 2,
|
|
26870
26870
|
scope: "chat",
|
|
26871
|
-
read: /* @__PURE__ */ __name(async (
|
|
26872
|
-
if (!chat)
|
|
26871
|
+
read: /* @__PURE__ */ __name(async (context2, chat) => {
|
|
26872
|
+
if (!chat || context2.books)
|
|
26873
26873
|
return [];
|
|
26874
26874
|
const groups = /* @__PURE__ */ new Map();
|
|
26875
26875
|
for (const row of rowsOf(chat)) {
|
|
@@ -26906,7 +26906,7 @@ var amounts = {
|
|
|
26906
26906
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "open" ? [{ chat: item2.chat, weight: 2, why: "money open" }] : []), "attention")
|
|
26907
26907
|
};
|
|
26908
26908
|
|
|
26909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26909
|
+
// 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/project-status/signals/children.js
|
|
26910
26910
|
var children = {
|
|
26911
26911
|
id: "children",
|
|
26912
26912
|
version: 1,
|
|
@@ -26935,7 +26935,7 @@ var children = {
|
|
|
26935
26935
|
}, "read")
|
|
26936
26936
|
};
|
|
26937
26937
|
|
|
26938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26938
|
+
// 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/project-status/signals/coverage.js
|
|
26939
26939
|
var coverage = {
|
|
26940
26940
|
id: "coverage",
|
|
26941
26941
|
version: 1,
|
|
@@ -26964,7 +26964,7 @@ var coverage = {
|
|
|
26964
26964
|
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
26965
|
};
|
|
26966
26966
|
|
|
26967
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26967
|
+
// 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/project-status/signals/payments.js
|
|
26968
26968
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
26969
26969
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
26970
26970
|
signal: "payments",
|
|
@@ -27014,7 +27014,7 @@ var payments = {
|
|
|
27014
27014
|
}, "read")
|
|
27015
27015
|
};
|
|
27016
27016
|
|
|
27017
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27017
|
+
// 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/project-status/signals/promises.js
|
|
27018
27018
|
var PATTERNS_PER_CHAT = 3;
|
|
27019
27019
|
var DAY3 = 864e5;
|
|
27020
27020
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -27103,7 +27103,7 @@ var promises = {
|
|
|
27103
27103
|
}, "read")
|
|
27104
27104
|
};
|
|
27105
27105
|
|
|
27106
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27106
|
+
// 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/project-status/signals/questions.js
|
|
27107
27107
|
var PER_SIDE = 5;
|
|
27108
27108
|
var WEEK = 7 * 864e5;
|
|
27109
27109
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -27134,7 +27134,7 @@ var questions2 = {
|
|
|
27134
27134
|
}, "attention")
|
|
27135
27135
|
};
|
|
27136
27136
|
|
|
27137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27137
|
+
// 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/project-status/signals/reply-next.js
|
|
27138
27138
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
27139
27139
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one2) => one2.id === id2), "byId");
|
|
27140
27140
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -27202,7 +27202,7 @@ var replyNext = {
|
|
|
27202
27202
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
27203
27203
|
};
|
|
27204
27204
|
|
|
27205
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27205
|
+
// 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/project-status/signals/topics.js
|
|
27206
27206
|
var escaped2 = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
27207
27207
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped2(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
27208
27208
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -27248,7 +27248,7 @@ var topics = {
|
|
|
27248
27248
|
}, "read")
|
|
27249
27249
|
};
|
|
27250
27250
|
|
|
27251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27251
|
+
// 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/project-status/signals/index.js
|
|
27252
27252
|
var STATUS_SIGNALS = [
|
|
27253
27253
|
replyNext,
|
|
27254
27254
|
questions2,
|
|
@@ -27260,7 +27260,7 @@ var STATUS_SIGNALS = [
|
|
|
27260
27260
|
children
|
|
27261
27261
|
];
|
|
27262
27262
|
|
|
27263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27263
|
+
// 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/project-status/index.js
|
|
27264
27264
|
var DAY4 = 864e5;
|
|
27265
27265
|
var STATUS_WINDOW = 300;
|
|
27266
27266
|
var STATUS_CHATS = 16;
|
|
@@ -27305,17 +27305,23 @@ var childrenOf = /* @__PURE__ */ __name(async (store, root, catalog) => {
|
|
|
27305
27305
|
}, "childrenOf");
|
|
27306
27306
|
var inAccounts = /* @__PURE__ */ __name((accounts, provider, account) => accounts === void 0 || accounts.some((one2) => one2.provider === provider && one2.account === account), "inAccounts");
|
|
27307
27307
|
var failure = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "failure");
|
|
27308
|
-
var
|
|
27309
|
-
const
|
|
27310
|
-
|
|
27311
|
-
|
|
27312
|
-
|
|
27308
|
+
var owed = /* @__PURE__ */ __name((item2) => {
|
|
27309
|
+
const data = item2.data;
|
|
27310
|
+
return item2.signal === "payments" && data.state === "expected" && data.status === "confirmed";
|
|
27311
|
+
}, "owed");
|
|
27312
|
+
var keepsBooks = /* @__PURE__ */ __name(async (store, projects) => {
|
|
27313
|
+
for (const project2 of projects) {
|
|
27314
|
+
const filter = { project: project2, review: "confirmed", limit: 1 };
|
|
27315
|
+
if ((await store.finance.invoices(filter)).length || (await store.finance.payments(filter)).length)
|
|
27316
|
+
return true;
|
|
27317
|
+
}
|
|
27318
|
+
return false;
|
|
27319
|
+
}, "keepsBooks");
|
|
27313
27320
|
var totalsOf = /* @__PURE__ */ __name((items) => {
|
|
27314
27321
|
const totals = /* @__PURE__ */ new Map();
|
|
27315
|
-
const open7 = counted2(items);
|
|
27316
27322
|
for (const item2 of items) {
|
|
27317
27323
|
const data = item2.data;
|
|
27318
|
-
if (!
|
|
27324
|
+
if (!owed(item2) || data.amount === void 0)
|
|
27319
27325
|
continue;
|
|
27320
27326
|
const key = `${data.direction}|${data.currency ?? ""}`;
|
|
27321
27327
|
const total = totals.get(key) ?? {
|
|
@@ -27398,6 +27404,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
27398
27404
|
chats,
|
|
27399
27405
|
project: { ...root, children: children2, cut },
|
|
27400
27406
|
store,
|
|
27407
|
+
books: await keepsBooks(store, [root.ref, ...children2.map((child) => child.ref)]),
|
|
27401
27408
|
contextQueries: input.contextQueries ?? []
|
|
27402
27409
|
};
|
|
27403
27410
|
const items = [];
|
|
@@ -27442,7 +27449,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
27442
27449
|
};
|
|
27443
27450
|
}, "projectStatus");
|
|
27444
27451
|
|
|
27445
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27452
|
+
// 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/account.js
|
|
27446
27453
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
27447
27454
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
27448
27455
|
if (deps.offline)
|
|
@@ -27514,7 +27521,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
27514
27521
|
};
|
|
27515
27522
|
}, "accountService");
|
|
27516
27523
|
|
|
27517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27524
|
+
// 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/domain/send-time.js
|
|
27518
27525
|
var MINUTE = 6e4;
|
|
27519
27526
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
27520
27527
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -27533,7 +27540,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
27533
27540
|
return new Date(at - at % MINUTE).toISOString();
|
|
27534
27541
|
}, "sendTime");
|
|
27535
27542
|
|
|
27536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27543
|
+
// 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/admin.js
|
|
27537
27544
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write2) => {
|
|
27538
27545
|
try {
|
|
27539
27546
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -27679,21 +27686,21 @@ var adminService = /* @__PURE__ */ __name((deps) => {
|
|
|
27679
27686
|
const answerAll = capability(connection, "answerAllJoinRequests", "answer every join request at once");
|
|
27680
27687
|
const { id: chatId } = await connection.resolve(chat);
|
|
27681
27688
|
const page = await list3(chatId, { limit: 100, ...link4 === void 0 ? {} : { link: link4 } });
|
|
27682
|
-
const
|
|
27689
|
+
const counted2 = page.total ?? page.items.length;
|
|
27683
27690
|
if (page.total === void 0 && page.hasMore)
|
|
27684
27691
|
throw new CliError("validation_error", "too many requests to count; answer them by person, or by --link");
|
|
27685
|
-
if (
|
|
27686
|
-
return { chatId, accepted: accept, counted:
|
|
27692
|
+
if (counted2 === 0)
|
|
27693
|
+
return { chatId, accepted: accept, counted: counted2 };
|
|
27687
27694
|
const operationId = newOperationId();
|
|
27688
27695
|
await guardedWrite(deps.guard, {
|
|
27689
27696
|
operationId,
|
|
27690
27697
|
chatId,
|
|
27691
27698
|
kind: "chat",
|
|
27692
27699
|
action: accept ? "requests.accept" : "requests.decline",
|
|
27693
|
-
count:
|
|
27694
|
-
people:
|
|
27700
|
+
count: counted2,
|
|
27701
|
+
people: counted2
|
|
27695
27702
|
}, () => answerAll(chatId, accept, link4));
|
|
27696
|
-
return { operationId, chatId, accepted: accept, counted:
|
|
27703
|
+
return { operationId, chatId, accepted: accept, counted: counted2 };
|
|
27697
27704
|
}, "answerAllRequests"),
|
|
27698
27705
|
links: /* @__PURE__ */ __name(async (chat, window3) => {
|
|
27699
27706
|
if (deps.offline)
|
|
@@ -27780,7 +27787,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
27780
27787
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
27781
27788
|
}, "linkLimits");
|
|
27782
27789
|
|
|
27783
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27790
|
+
// 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/mail-search.js
|
|
27784
27791
|
var THREADS_PAGE = 500;
|
|
27785
27792
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
27786
27793
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -27859,7 +27866,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
27859
27866
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
27860
27867
|
}, "readMail");
|
|
27861
27868
|
|
|
27862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27869
|
+
// 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/search-kind.js
|
|
27863
27870
|
var NO_MAIL = "no_mail";
|
|
27864
27871
|
var MAIL = "email";
|
|
27865
27872
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -27906,7 +27913,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
27906
27913
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
27907
27914
|
}, "accountsOfKind");
|
|
27908
27915
|
|
|
27909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27916
|
+
// 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/messages-search.js
|
|
27910
27917
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
27911
27918
|
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");
|
|
27912
27919
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -28254,7 +28261,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
28254
28261
|
};
|
|
28255
28262
|
}, "statsLucene");
|
|
28256
28263
|
|
|
28257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28264
|
+
// 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/rankings-selection.js
|
|
28258
28265
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
28259
28266
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
28260
28267
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -28423,7 +28430,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
28423
28430
|
};
|
|
28424
28431
|
}, "readRankingSelection");
|
|
28425
28432
|
|
|
28426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28433
|
+
// 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/search-record.js
|
|
28427
28434
|
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");
|
|
28428
28435
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
28429
28436
|
command,
|
|
@@ -28433,7 +28440,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
28433
28440
|
fieldsVersion: FIELD_VERSION
|
|
28434
28441
|
}), "searchRecordOf");
|
|
28435
28442
|
|
|
28436
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28443
|
+
// 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/admin-statistics.js
|
|
28437
28444
|
function invalid2(message) {
|
|
28438
28445
|
throw new CliError("validation_error", message);
|
|
28439
28446
|
}
|
|
@@ -28727,7 +28734,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
28727
28734
|
}, "evidence")
|
|
28728
28735
|
}), "adminStatisticsService");
|
|
28729
28736
|
|
|
28730
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28737
|
+
// 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/archive-gaps.js
|
|
28731
28738
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
28732
28739
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
28733
28740
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -28864,16 +28871,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
28864
28871
|
return { plan, repair };
|
|
28865
28872
|
}, "gapsService");
|
|
28866
28873
|
|
|
28867
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28874
|
+
// 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/attachments.js
|
|
28868
28875
|
import { createHash as createHash9 } from "node:crypto";
|
|
28869
28876
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
28870
28877
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
28871
28878
|
|
|
28872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28879
|
+
// 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/attachments/directory.js
|
|
28873
28880
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
28874
28881
|
import { basename as basename4, join as join8, relative as relative2, sep as sep2 } from "node:path";
|
|
28875
28882
|
|
|
28876
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28883
|
+
// 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/sends/upload.js
|
|
28877
28884
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
28878
28885
|
import { open as open4, stat } from "node:fs/promises";
|
|
28879
28886
|
import { basename as basename3, dirname as dirname3, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -29075,7 +29082,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read2) => {
|
|
|
29075
29082
|
return { name, source };
|
|
29076
29083
|
}, "readStickerFile");
|
|
29077
29084
|
|
|
29078
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29085
|
+
// 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/attachments/directory.js
|
|
29079
29086
|
var MAX_FILES = 1e4;
|
|
29080
29087
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app, env) => {
|
|
29081
29088
|
if (refusedPlace(directory2, app, env))
|
|
@@ -29144,15 +29151,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
29144
29151
|
return choices;
|
|
29145
29152
|
}, "directoryPaths");
|
|
29146
29153
|
|
|
29147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29154
|
+
// 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/attachments/documents.js
|
|
29148
29155
|
import { posix } from "node:path";
|
|
29149
29156
|
|
|
29150
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29157
|
+
// 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/attachments/container.js
|
|
29151
29158
|
import { setImmediate as tick } from "node:timers/promises";
|
|
29152
29159
|
import { crc32 } from "node:zlib";
|
|
29153
29160
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
29154
29161
|
|
|
29155
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29162
|
+
// 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/attachments/encoding.js
|
|
29156
29163
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
29157
29164
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
29158
29165
|
var SAMPLE = 65536;
|
|
@@ -29254,7 +29261,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
29254
29261
|
return result.text;
|
|
29255
29262
|
}, "decodeXml");
|
|
29256
29263
|
|
|
29257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29264
|
+
// 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/attachments/container.js
|
|
29258
29265
|
var MAX_PART = 10 * 1024 * 1024;
|
|
29259
29266
|
var MAX_ENTRIES = 1e3;
|
|
29260
29267
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -29469,7 +29476,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
29469
29476
|
return found;
|
|
29470
29477
|
}, "elements");
|
|
29471
29478
|
|
|
29472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29479
|
+
// 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/attachments/sheets.js
|
|
29473
29480
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
29474
29481
|
let name = "";
|
|
29475
29482
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -29524,7 +29531,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
29524
29531
|
return { text: parts.join("").trim(), truncated: false };
|
|
29525
29532
|
}, "sheetText");
|
|
29526
29533
|
|
|
29527
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29534
|
+
// 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/attachments/documents.js
|
|
29528
29535
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
29529
29536
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
29530
29537
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -29924,10 +29931,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
29924
29931
|
}
|
|
29925
29932
|
}, "readDocument");
|
|
29926
29933
|
|
|
29927
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29934
|
+
// 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/attachments/extract.js
|
|
29928
29935
|
import { extname as extname3 } from "node:path";
|
|
29929
29936
|
|
|
29930
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29937
|
+
// 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/readers/engine.js
|
|
29931
29938
|
import { readFileSync } from "node:fs";
|
|
29932
29939
|
import { dirname as dirname4, extname as extname2, join as join9 } from "node:path";
|
|
29933
29940
|
import { fileURLToPath } from "node:url";
|
|
@@ -29988,7 +29995,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
29988
29995
|
}
|
|
29989
29996
|
}, "derived");
|
|
29990
29997
|
|
|
29991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29998
|
+
// 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/readers/image/index.js
|
|
29992
29999
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
29993
30000
|
var image2 = {
|
|
29994
30001
|
id: "image",
|
|
@@ -29997,7 +30004,7 @@ var image2 = {
|
|
|
29997
30004
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
29998
30005
|
};
|
|
29999
30006
|
|
|
30000
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30007
|
+
// 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/readers/doc/index.js
|
|
30001
30008
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
30002
30009
|
var doc = {
|
|
30003
30010
|
id: "doc",
|
|
@@ -30009,7 +30016,7 @@ var doc = {
|
|
|
30009
30016
|
}), "read")
|
|
30010
30017
|
};
|
|
30011
30018
|
|
|
30012
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30019
|
+
// 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/readers/docx/index.js
|
|
30013
30020
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
30014
30021
|
var docx = {
|
|
30015
30022
|
id: "docx",
|
|
@@ -30022,7 +30029,7 @@ var docx = {
|
|
|
30022
30029
|
}), "read")
|
|
30023
30030
|
};
|
|
30024
30031
|
|
|
30025
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30032
|
+
// 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/attachments/markup.js
|
|
30026
30033
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
30027
30034
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
30028
30035
|
"fonttbl",
|
|
@@ -30198,7 +30205,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
30198
30205
|
}, "htmlText");
|
|
30199
30206
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
30200
30207
|
|
|
30201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30208
|
+
// 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/readers/html/page.js
|
|
30202
30209
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
30203
30210
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
30204
30211
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -30254,7 +30261,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
30254
30261
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
30255
30262
|
}, "markdownSections");
|
|
30256
30263
|
|
|
30257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30264
|
+
// 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/readers/html/index.js
|
|
30258
30265
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
30259
30266
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
30260
30267
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -30325,7 +30332,7 @@ var html = {
|
|
|
30325
30332
|
}, "read")
|
|
30326
30333
|
};
|
|
30327
30334
|
|
|
30328
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30335
|
+
// 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/readers/office/index.js
|
|
30329
30336
|
var office = {
|
|
30330
30337
|
id: "office",
|
|
30331
30338
|
version: documentExtractor("odt"),
|
|
@@ -30336,7 +30343,7 @@ var office = {
|
|
|
30336
30343
|
}, "read")
|
|
30337
30344
|
};
|
|
30338
30345
|
|
|
30339
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30346
|
+
// 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/readers/pdf/index.js
|
|
30340
30347
|
var pdf = {
|
|
30341
30348
|
id: "pdf",
|
|
30342
30349
|
version: "unpdf",
|
|
@@ -30403,7 +30410,7 @@ var pdf = {
|
|
|
30403
30410
|
}), "read")
|
|
30404
30411
|
};
|
|
30405
30412
|
|
|
30406
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30413
|
+
// 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/readers/plain/index.js
|
|
30407
30414
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
30408
30415
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
30409
30416
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -30423,7 +30430,7 @@ var plain = {
|
|
|
30423
30430
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
30424
30431
|
};
|
|
30425
30432
|
|
|
30426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30433
|
+
// 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/readers/rtf/index.js
|
|
30427
30434
|
var rtf = {
|
|
30428
30435
|
id: "rtf",
|
|
30429
30436
|
version: "v1",
|
|
@@ -30431,10 +30438,10 @@ var rtf = {
|
|
|
30431
30438
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
30432
30439
|
};
|
|
30433
30440
|
|
|
30434
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30441
|
+
// 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/readers/sheets/index.js
|
|
30435
30442
|
import { basename as basename5 } from "node:path";
|
|
30436
30443
|
|
|
30437
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30444
|
+
// 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/attachments/csv-spans.js
|
|
30438
30445
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
30439
30446
|
const cells = [];
|
|
30440
30447
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -30472,7 +30479,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
30472
30479
|
return { cells, truncated };
|
|
30473
30480
|
}, "delimitedSpans");
|
|
30474
30481
|
|
|
30475
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30482
|
+
// 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/readers/sheets/index.js
|
|
30476
30483
|
var DELIMITED = {
|
|
30477
30484
|
".csv": ",",
|
|
30478
30485
|
".tsv": " ",
|
|
@@ -30511,7 +30518,7 @@ var sheets = {
|
|
|
30511
30518
|
}, "read")
|
|
30512
30519
|
};
|
|
30513
30520
|
|
|
30514
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30521
|
+
// 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/readers/registry.js
|
|
30515
30522
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
30516
30523
|
var HEAD_BYTES = 1024;
|
|
30517
30524
|
var readers = [...BUILT_INS2];
|
|
@@ -30521,7 +30528,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
30521
30528
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
30522
30529
|
}, "readWithRegistry");
|
|
30523
30530
|
|
|
30524
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30531
|
+
// 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/attachments/extract.js
|
|
30525
30532
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
30526
30533
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
30527
30534
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -31600,7 +31607,7 @@ function imageSize(input) {
|
|
|
31600
31607
|
}
|
|
31601
31608
|
__name(imageSize, "imageSize");
|
|
31602
31609
|
|
|
31603
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31610
|
+
// 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/attachments/ocr.js
|
|
31604
31611
|
var MAX_PAGES = 20;
|
|
31605
31612
|
var MAX_PIXELS = 2e7;
|
|
31606
31613
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -31751,7 +31758,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
31751
31758
|
}
|
|
31752
31759
|
}, "ocrPdf");
|
|
31753
31760
|
|
|
31754
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31761
|
+
// 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/attachments/pdf-preview.js
|
|
31755
31762
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
31756
31763
|
const limits = pdfPreviewLimits(env);
|
|
31757
31764
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -31828,7 +31835,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
31828
31835
|
}
|
|
31829
31836
|
}, "pdfPreview");
|
|
31830
31837
|
|
|
31831
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31838
|
+
// 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/attachments/transfer.js
|
|
31832
31839
|
import { createHash as createHash8 } from "node:crypto";
|
|
31833
31840
|
import { constants } from "node:fs";
|
|
31834
31841
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -31936,7 +31943,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
31936
31943
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
31937
31944
|
}, "transferMime");
|
|
31938
31945
|
|
|
31939
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31946
|
+
// 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/file-download.js
|
|
31940
31947
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
31941
31948
|
import { link as link3, rm } from "node:fs/promises";
|
|
31942
31949
|
import { join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -32050,7 +32057,7 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
32050
32057
|
}
|
|
32051
32058
|
}, "save");
|
|
32052
32059
|
|
|
32053
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32060
|
+
// 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/attachments.js
|
|
32054
32061
|
var ATTACHMENT_QUERY = {
|
|
32055
32062
|
entity: "attachment",
|
|
32056
32063
|
backend: "sql",
|
|
@@ -32473,7 +32480,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32473
32480
|
}, "setText")
|
|
32474
32481
|
}), "attachmentsService");
|
|
32475
32482
|
|
|
32476
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32483
|
+
// 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/chat-documents.js
|
|
32477
32484
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
32478
32485
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
32479
32486
|
const store = await accountStore(deps);
|
|
@@ -32503,7 +32510,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32503
32510
|
}, "list")
|
|
32504
32511
|
}), "chatDocumentsService");
|
|
32505
32512
|
|
|
32506
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32513
|
+
// 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/retention.js
|
|
32507
32514
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
32508
32515
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
32509
32516
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -32590,7 +32597,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
32590
32597
|
}
|
|
32591
32598
|
}, "isRetentionSelection");
|
|
32592
32599
|
|
|
32593
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32600
|
+
// 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/counters.js
|
|
32594
32601
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
32595
32602
|
const fields = text2.split(",").map((one2) => one2.trim());
|
|
32596
32603
|
if (!fields.length || fields.some((one2) => !COUNTER_FIELDS.includes(one2)) || new Set(fields).size !== fields.length)
|
|
@@ -32797,7 +32804,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
32797
32804
|
};
|
|
32798
32805
|
}, "countersService");
|
|
32799
32806
|
|
|
32800
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32807
|
+
// 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/search-refresh.js
|
|
32801
32808
|
var SYNC_KEY = "messages.sync-first";
|
|
32802
32809
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
32803
32810
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -32889,7 +32896,7 @@ var refreshSearch = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
32889
32896
|
}
|
|
32890
32897
|
try {
|
|
32891
32898
|
const newest = (await store.messages.messages(account, chatId, { limit: 1 })).items[0];
|
|
32892
|
-
let
|
|
32899
|
+
let counted2 = 0;
|
|
32893
32900
|
const fetched = await archiveService(deps).fetch(chatId, {
|
|
32894
32901
|
limit: options.maxMessages - result.messages,
|
|
32895
32902
|
pageSize: Math.min(100, deps.messenger.fetching?.maxPageSize ?? 100),
|
|
@@ -32898,11 +32905,11 @@ var refreshSearch = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
32898
32905
|
stop,
|
|
32899
32906
|
note: note2,
|
|
32900
32907
|
onPage: /* @__PURE__ */ __name(({ fetched: fetched2 }) => {
|
|
32901
|
-
result.messages += fetched2 -
|
|
32902
|
-
|
|
32908
|
+
result.messages += fetched2 - counted2;
|
|
32909
|
+
counted2 = fetched2;
|
|
32903
32910
|
}, "onPage")
|
|
32904
32911
|
});
|
|
32905
|
-
result.messages += fetched.fetched -
|
|
32912
|
+
result.messages += fetched.fetched - counted2;
|
|
32906
32913
|
if (fetched.stopped || !fetched.complete && !fetched.reachedSince) {
|
|
32907
32914
|
result.complete = false;
|
|
32908
32915
|
result.failed.push({
|
|
@@ -32929,7 +32936,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
32929
32936
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
32930
32937
|
}), "withRefresh");
|
|
32931
32938
|
|
|
32932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32939
|
+
// 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/embeddings-search.js
|
|
32933
32940
|
var CANDIDATES = 50;
|
|
32934
32941
|
var WORD_HITS = 200;
|
|
32935
32942
|
var RRF_K = 60;
|
|
@@ -33204,13 +33211,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
33204
33211
|
return mean2.map((value) => value / length);
|
|
33205
33212
|
}, "meanOf");
|
|
33206
33213
|
|
|
33207
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33214
|
+
// 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/embeddings.js
|
|
33208
33215
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
33209
33216
|
...embeddingsMaintenance(deps),
|
|
33210
33217
|
...embeddingsSearch(deps)
|
|
33211
33218
|
}), "embeddingsService");
|
|
33212
33219
|
|
|
33213
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33220
|
+
// 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/folders.js
|
|
33214
33221
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
33215
33222
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
33216
33223
|
if (deps.offline)
|
|
@@ -33351,7 +33358,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
33351
33358
|
};
|
|
33352
33359
|
}, "foldersService");
|
|
33353
33360
|
|
|
33354
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33361
|
+
// 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/mentions.js
|
|
33355
33362
|
var REVIEW_COUNT = 500;
|
|
33356
33363
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
33357
33364
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -33430,7 +33437,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
33430
33437
|
};
|
|
33431
33438
|
}, "mentionsService");
|
|
33432
33439
|
|
|
33433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33440
|
+
// 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/domain/formatting.js
|
|
33434
33441
|
var invalid3 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
33435
33442
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
33436
33443
|
const { text: text2, spans } = formatted2;
|
|
@@ -33490,7 +33497,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
33490
33497
|
};
|
|
33491
33498
|
}, "visibleFormattedText");
|
|
33492
33499
|
|
|
33493
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33500
|
+
// 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/domain/message-link.js
|
|
33494
33501
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
33495
33502
|
position,
|
|
33496
33503
|
kind,
|
|
@@ -33539,7 +33546,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
33539
33546
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
33540
33547
|
}, "validatePermalink");
|
|
33541
33548
|
|
|
33542
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33549
|
+
// 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/domain/pin-duration.js
|
|
33543
33550
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
33544
33551
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
33545
33552
|
return `${seconds / 86400}d`;
|
|
@@ -33571,7 +33578,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
33571
33578
|
return seconds;
|
|
33572
33579
|
}, "pinDurationOf");
|
|
33573
33580
|
|
|
33574
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33581
|
+
// 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/sends/send-as.js
|
|
33575
33582
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
33576
33583
|
if (sendAs === void 0) {
|
|
33577
33584
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -33596,7 +33603,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
33596
33603
|
return sendAs;
|
|
33597
33604
|
}, "typedSendAs");
|
|
33598
33605
|
|
|
33599
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33606
|
+
// 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/search/total.js
|
|
33600
33607
|
var TOTAL_CAP = 1e4;
|
|
33601
33608
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
33602
33609
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -33607,7 +33614,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
33607
33614
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
33608
33615
|
}, "totalOf");
|
|
33609
33616
|
|
|
33610
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33617
|
+
// 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/search/lucene/meaning-parts.js
|
|
33611
33618
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
33612
33619
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
33613
33620
|
let narrows = false;
|
|
@@ -33636,7 +33643,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
33636
33643
|
return wanted(root).join(" ").trim();
|
|
33637
33644
|
}, "meaningWords");
|
|
33638
33645
|
|
|
33639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33646
|
+
// 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/search/question-plan.js
|
|
33640
33647
|
var words3 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
33641
33648
|
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"));
|
|
33642
33649
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -33768,7 +33775,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
33768
33775
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
33769
33776
|
}, "questionLookup");
|
|
33770
33777
|
|
|
33771
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33778
|
+
// 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/messages-combined.js
|
|
33772
33779
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
33773
33780
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
33774
33781
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -33961,7 +33968,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
33961
33968
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage2 * 4 + proximity + phrase;
|
|
33962
33969
|
}, "signals");
|
|
33963
33970
|
|
|
33964
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33971
|
+
// 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/messages-discovery.js
|
|
33965
33972
|
var MEANING_DEPTH = 100;
|
|
33966
33973
|
var RRF_K2 = 60;
|
|
33967
33974
|
var RERANK_DEPTH = 50;
|
|
@@ -34286,7 +34293,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
34286
34293
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
34287
34294
|
}, "mixedWithReranker");
|
|
34288
34295
|
|
|
34289
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34296
|
+
// 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/thread-context.js
|
|
34290
34297
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
34291
34298
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
34292
34299
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -34485,7 +34492,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
34485
34492
|
return result;
|
|
34486
34493
|
}, "readThreadContext");
|
|
34487
34494
|
|
|
34488
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34495
|
+
// 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/messages-archive-search.js
|
|
34489
34496
|
var SEARCH_FILL_MS = 200;
|
|
34490
34497
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
34491
34498
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -34552,12 +34559,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
34552
34559
|
}, "accountOf");
|
|
34553
34560
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
34554
34561
|
|
|
34555
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34562
|
+
// 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/pictures.js
|
|
34556
34563
|
import { createHash as createHash10 } from "node:crypto";
|
|
34557
34564
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
34558
34565
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
34559
34566
|
|
|
34560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34567
|
+
// 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/domain/models.js
|
|
34561
34568
|
var GROUP_SETTINGS = [
|
|
34562
34569
|
"allCanPin",
|
|
34563
34570
|
"onlyAdminsAdd",
|
|
@@ -34571,7 +34578,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
34571
34578
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
34572
34579
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
34573
34580
|
|
|
34574
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34581
|
+
// 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/pictures.js
|
|
34575
34582
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
34576
34583
|
var PICTURE_FLOOR = 0.25;
|
|
34577
34584
|
var PAGE4 = 50;
|
|
@@ -34588,7 +34595,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
34588
34595
|
const directory2 = imageModelsDirectory(deps.env);
|
|
34589
34596
|
if (!isImageModelInstalled(model2, directory2))
|
|
34590
34597
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
34591
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34598
|
+
const { openPictureEmbedder } = await import("./embedder-KQYPQKZA.js");
|
|
34592
34599
|
return openPictureEmbedder(model2, directory2);
|
|
34593
34600
|
}, "open");
|
|
34594
34601
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -34785,7 +34792,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
34785
34792
|
}, "search")
|
|
34786
34793
|
}), "withPictures");
|
|
34787
34794
|
|
|
34788
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34795
|
+
// 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/messages-meaning.js
|
|
34789
34796
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
|
|
34790
34797
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
34791
34798
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -34853,7 +34860,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
34853
34860
|
}
|
|
34854
34861
|
}, "meaningLane");
|
|
34855
34862
|
|
|
34856
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34863
|
+
// 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/messages-rerank.js
|
|
34857
34864
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
34858
34865
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
34859
34866
|
if (choice === "off")
|
|
@@ -34865,9 +34872,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34865
34872
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
34866
34873
|
try {
|
|
34867
34874
|
const warm = deps.embedders;
|
|
34868
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
34875
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-POGO7VDZ.js")).openRerankerProcess(model, directory2, {
|
|
34869
34876
|
threads: defaultThreads()
|
|
34870
|
-
})) : await (await import("./rerank-
|
|
34877
|
+
})) : await (await import("./rerank-COKJGAIB.js")).openReranker(model, directory2);
|
|
34871
34878
|
return {
|
|
34872
34879
|
model: model.id,
|
|
34873
34880
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -34887,17 +34894,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34887
34894
|
};
|
|
34888
34895
|
}, "rerankLane");
|
|
34889
34896
|
|
|
34890
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34897
|
+
// 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/document-pictures.js
|
|
34891
34898
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
34892
34899
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
34893
34900
|
const directory2 = imageModelsDirectory(env);
|
|
34894
34901
|
if (!isImageModelInstalled(model, directory2))
|
|
34895
34902
|
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 });
|
|
34896
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34903
|
+
const { openPictureEmbedder } = await import("./embedder-KQYPQKZA.js");
|
|
34897
34904
|
return openPictureEmbedder(model, directory2);
|
|
34898
34905
|
}, "openPictureEmbedderFor");
|
|
34899
34906
|
|
|
34900
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34907
|
+
// 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/document-source.js
|
|
34901
34908
|
var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) => {
|
|
34902
34909
|
const metadata = note2.frontMatter;
|
|
34903
34910
|
const account = accounts.find(({ id: id2 }) => String(id2) === note2.folderId);
|
|
@@ -34912,7 +34919,7 @@ var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) =
|
|
|
34912
34919
|
};
|
|
34913
34920
|
}, "documentSource");
|
|
34914
34921
|
|
|
34915
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34922
|
+
// 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/notes-title-tier.js
|
|
34916
34923
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
34917
34924
|
let root;
|
|
34918
34925
|
try {
|
|
@@ -34939,7 +34946,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words4) => {
|
|
|
34939
34946
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
34940
34947
|
}, "titleTiers");
|
|
34941
34948
|
|
|
34942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34949
|
+
// 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/notes-search.js
|
|
34943
34950
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
34944
34951
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
34945
34952
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -35244,13 +35251,13 @@ var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offs
|
|
|
35244
35251
|
meaningSkipped = error.message;
|
|
35245
35252
|
}
|
|
35246
35253
|
}
|
|
35247
|
-
const
|
|
35248
|
-
const titled =
|
|
35249
|
-
text: [titleQuery(
|
|
35254
|
+
const titleWords2 = plainQueryWords(rest);
|
|
35255
|
+
const titled = titleWords2 === void 0 ? { items: [], hasMore: false } : await searchNotesQuery(store, {
|
|
35256
|
+
text: [titleQuery(titleWords2), filter ?? ""].filter(Boolean).join(" AND "),
|
|
35250
35257
|
limit: Math.max(window3, CANDIDATES2),
|
|
35251
35258
|
...scope
|
|
35252
35259
|
});
|
|
35253
|
-
const tier =
|
|
35260
|
+
const tier = titleWords2 === void 0 ? [] : titleTiers(titled.items, titleWords2);
|
|
35254
35261
|
const tierRefs = new Set(tier.map(({ ref }) => ref));
|
|
35255
35262
|
const slice = meaning === void 0 && tier.length === 0;
|
|
35256
35263
|
const matched = await searchNotesQuery(store, {
|
|
@@ -35382,7 +35389,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
35382
35389
|
};
|
|
35383
35390
|
}, "searchNotesOf");
|
|
35384
35391
|
|
|
35385
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35392
|
+
// 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/events-search.js
|
|
35386
35393
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
35387
35394
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
35388
35395
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -35499,8 +35506,8 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
35499
35506
|
};
|
|
35500
35507
|
}, "searchEvents");
|
|
35501
35508
|
|
|
35502
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35503
|
-
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events"];
|
|
35509
|
+
// 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/search-all.js
|
|
35510
|
+
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm"];
|
|
35504
35511
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
35505
35512
|
var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
35506
35513
|
const { root } = parseLucene(text2, MESSAGE_PARSING);
|
|
@@ -35508,6 +35515,15 @@ var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
|
35508
35515
|
const top = root.kind === "boolean" ? root.clauses : [{ node: root, occur: "must" }];
|
|
35509
35516
|
return top.every(({ node, occur }) => occur !== "must_not" && followable(node, occur === "must")) ? planQuestion(text2).scope : void 0;
|
|
35510
35517
|
}, "filtersBeside");
|
|
35518
|
+
var titleWords = /* @__PURE__ */ __name((text2) => {
|
|
35519
|
+
const { root } = parseLucene(text2, SEARCH_QUERY);
|
|
35520
|
+
const clauses = root.kind === "boolean" ? root.clauses : [{ node: root, occur: "must" }];
|
|
35521
|
+
const words4 = clauses.map(({ node, occur }) => occur !== "must_not" && node.kind === "predicate" && node.field === "text" && (node.operator === "term" || node.operator === "phrase") ? node.value : (() => {
|
|
35522
|
+
throw new CliError("validation_error", "deals and leads are found by the words of their title only");
|
|
35523
|
+
})());
|
|
35524
|
+
return { words: words4, anyWord: clauses.length > 1 && clauses.every(({ occur }) => occur === "should") };
|
|
35525
|
+
}, "titleWords");
|
|
35526
|
+
var crmAccounts = /* @__PURE__ */ __name(async (store) => (await store.accounts.accounts()).filter(({ provider }) => kindIn(provider) === "crm"), "crmAccounts");
|
|
35511
35527
|
var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, searchMessages = (query) => searchStore(store, account, query, messenger), meaning) => {
|
|
35512
35528
|
if (!request.text.trim())
|
|
35513
35529
|
throw new CliError("validation_error", "say what to find");
|
|
@@ -35686,6 +35702,29 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
35686
35702
|
foundBy: hit.found_by
|
|
35687
35703
|
})));
|
|
35688
35704
|
accounts.push(...read2.map(({ provider, account: account2 }) => ({ resource, provider, account: account2 })));
|
|
35705
|
+
} else if (resource === "crm") {
|
|
35706
|
+
const { words: words4, anyWord } = titleWords(request.text);
|
|
35707
|
+
const chosen = request.scope?.crm;
|
|
35708
|
+
const found = await store.deals.find({
|
|
35709
|
+
words: words4,
|
|
35710
|
+
anyWord: anyWord || discover,
|
|
35711
|
+
limit: Math.min(window3 + 1, 500),
|
|
35712
|
+
...chosen === void 0 ? {} : { accounts: chosen }
|
|
35713
|
+
});
|
|
35714
|
+
hasMore ||= found.length > window3;
|
|
35715
|
+
lists.push(found.slice(0, window3).map((deal) => ({
|
|
35716
|
+
kind: deal.kind,
|
|
35717
|
+
ref: deal.ref,
|
|
35718
|
+
provider: deal.account?.provider ?? "crm",
|
|
35719
|
+
account: deal.account?.account ?? INTERNAL_NOTES,
|
|
35720
|
+
title: deal.title,
|
|
35721
|
+
timestamp: deal.updatedAt,
|
|
35722
|
+
text: deal.summary,
|
|
35723
|
+
foundBy: ["title"]
|
|
35724
|
+
})));
|
|
35725
|
+
const read2 = chosen ?? [...await crmAccounts(store), { provider: "crm", account: INTERNAL_NOTES }];
|
|
35726
|
+
for (const { provider, account: account2 } of read2)
|
|
35727
|
+
accounts.push({ resource, provider, account: account2 });
|
|
35689
35728
|
} else
|
|
35690
35729
|
lists.push(await messagesOf(resource));
|
|
35691
35730
|
searched.push(resource);
|
|
@@ -35728,7 +35767,7 @@ var oneList = /* @__PURE__ */ __name((lists, cosines) => {
|
|
|
35728
35767
|
return [...place.values()].sort((a, b) => a.rank - b.rank || cosine(b.item.ref) - cosine(a.item.ref)).map(({ item: item2 }) => item2);
|
|
35729
35768
|
}, "oneList");
|
|
35730
35769
|
|
|
35731
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35770
|
+
// 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/search-all-meetings.js
|
|
35732
35771
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
35733
35772
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
35734
35773
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -35973,7 +36012,8 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
35973
36012
|
messages: named2("messages"),
|
|
35974
36013
|
mail: named2("mail"),
|
|
35975
36014
|
notes: named2("notes"),
|
|
35976
|
-
events: named2("events")
|
|
36015
|
+
events: named2("events"),
|
|
36016
|
+
crm: named2("crm")
|
|
35977
36017
|
},
|
|
35978
36018
|
...meetings[0] ? { meetingAccount: meetings[0] } : {}
|
|
35979
36019
|
}, messenger, searchMessages, meaning);
|
|
@@ -35981,7 +36021,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
35981
36021
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
35982
36022
|
}, "searchAllOfSource");
|
|
35983
36023
|
|
|
35984
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36024
|
+
// 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/server-search.js
|
|
35985
36025
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
35986
36026
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
35987
36027
|
var DEFAULT_BACKEND = "both";
|
|
@@ -36170,7 +36210,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
36170
36210
|
return { report, sources };
|
|
36171
36211
|
}, "searchServer");
|
|
36172
36212
|
|
|
36173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36213
|
+
// 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/messages.js
|
|
36174
36214
|
var DELETE_AT_ONCE = 10;
|
|
36175
36215
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
36176
36216
|
const files = fileLinks(attachments);
|
|
@@ -36611,7 +36651,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
36611
36651
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
36612
36652
|
}, "checkMediaOptions");
|
|
36613
36653
|
|
|
36614
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36654
|
+
// 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/domain/channel-tags.js
|
|
36615
36655
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
36616
36656
|
var RULES = {
|
|
36617
36657
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -36626,7 +36666,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
36626
36666
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
36627
36667
|
}), "classifyChannel");
|
|
36628
36668
|
|
|
36629
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36669
|
+
// 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/metadata.js
|
|
36630
36670
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
36631
36671
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
36632
36672
|
const store = await deps.store();
|
|
@@ -36712,7 +36752,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
36712
36752
|
};
|
|
36713
36753
|
}, "metadataService");
|
|
36714
36754
|
|
|
36715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36755
|
+
// 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/moderation/check.js
|
|
36716
36756
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
36717
36757
|
var LINK2 = /https?:\/\/\S+/i;
|
|
36718
36758
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -36900,7 +36940,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
36900
36940
|
}, "nextPoint");
|
|
36901
36941
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
36902
36942
|
|
|
36903
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36943
|
+
// 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/moderation/rules.js
|
|
36904
36944
|
import { existsSync, readFileSync as readFileSync2 } from "node:fs";
|
|
36905
36945
|
import { join as join11 } from "node:path";
|
|
36906
36946
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -37043,7 +37083,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
37043
37083
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
37044
37084
|
}, "assign");
|
|
37045
37085
|
|
|
37046
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37086
|
+
// 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/moderation/run.js
|
|
37047
37087
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
37048
37088
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
37049
37089
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -37080,7 +37120,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
37080
37120
|
return { chatId, rows, notes };
|
|
37081
37121
|
}, "moderateWith");
|
|
37082
37122
|
|
|
37083
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37123
|
+
// 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/moderation.js
|
|
37084
37124
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
37085
37125
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
37086
37126
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -37158,7 +37198,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
37158
37198
|
}, "removePerson")
|
|
37159
37199
|
}), "moderatorOf");
|
|
37160
37200
|
|
|
37161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37201
|
+
// 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/private-people.js
|
|
37162
37202
|
var noteItem = /* @__PURE__ */ __name((provider, note2) => ({
|
|
37163
37203
|
id: note2.id,
|
|
37164
37204
|
contact: formatReference({ type: "contact", provider, id: note2.personId }),
|
|
@@ -37202,7 +37242,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
37202
37242
|
};
|
|
37203
37243
|
}, "privatePeopleService");
|
|
37204
37244
|
|
|
37205
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37245
|
+
// 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/rankings.js
|
|
37206
37246
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
37207
37247
|
total: 0,
|
|
37208
37248
|
population: 0,
|
|
@@ -37458,7 +37498,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
37458
37498
|
}, "evidence")
|
|
37459
37499
|
}), "rankingsService");
|
|
37460
37500
|
|
|
37461
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37501
|
+
// 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/reply-stats.js
|
|
37462
37502
|
var FIELDS = ["date", "chat", "kind"];
|
|
37463
37503
|
var WAITING_TAIL = 100;
|
|
37464
37504
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -37585,7 +37625,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37585
37625
|
};
|
|
37586
37626
|
}, "replyStatsService");
|
|
37587
37627
|
|
|
37588
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37628
|
+
// 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/searches.js
|
|
37589
37629
|
var savedSearchItem = /* @__PURE__ */ __name((one2) => ({
|
|
37590
37630
|
id: one2.id,
|
|
37591
37631
|
name: one2.name,
|
|
@@ -37714,7 +37754,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
37714
37754
|
};
|
|
37715
37755
|
}, "searchesService");
|
|
37716
37756
|
|
|
37717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37757
|
+
// 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/tags.js
|
|
37718
37758
|
var TAGGING_QUERY = {
|
|
37719
37759
|
entity: "tagging",
|
|
37720
37760
|
backend: "sql",
|
|
@@ -37798,7 +37838,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37798
37838
|
};
|
|
37799
37839
|
}, "tagsService");
|
|
37800
37840
|
|
|
37801
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37841
|
+
// 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/topics.js
|
|
37802
37842
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
37803
37843
|
const set = [closed, pinned, hidden].filter((one2) => one2 !== void 0).length;
|
|
37804
37844
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -37997,7 +38037,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37997
38037
|
};
|
|
37998
38038
|
}, "topicsService");
|
|
37999
38039
|
|
|
38000
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38040
|
+
// 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/evidence.js
|
|
38001
38041
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
38002
38042
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
38003
38043
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -38071,7 +38111,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
38071
38111
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
38072
38112
|
}, "prepareEvidencePacket");
|
|
38073
38113
|
|
|
38074
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38114
|
+
// 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/evidence-read.js
|
|
38075
38115
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
38076
38116
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
38077
38117
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -38091,7 +38131,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
38091
38131
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
38092
38132
|
}, "readEvidencePacket");
|
|
38093
38133
|
|
|
38094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38134
|
+
// 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/meeting-hit-search.js
|
|
38095
38135
|
var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
|
|
38096
38136
|
let before2 = Number.POSITIVE_INFINITY;
|
|
38097
38137
|
for (; ; ) {
|
|
@@ -38153,7 +38193,7 @@ var searchMeetingHits = /* @__PURE__ */ __name(async (store, query, request, opt
|
|
|
38153
38193
|
return { ...result, selection };
|
|
38154
38194
|
}, "searchMeetingHits");
|
|
38155
38195
|
|
|
38156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38196
|
+
// 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/meeting-project-discovery.js
|
|
38157
38197
|
import { createHash as createHash12 } from "node:crypto";
|
|
38158
38198
|
var scopeKeys = [
|
|
38159
38199
|
"accountId",
|
|
@@ -38288,7 +38328,7 @@ var readMeetingProjectDiscovery = /* @__PURE__ */ __name(async (ports, projectNa
|
|
|
38288
38328
|
};
|
|
38289
38329
|
}, "readMeetingProjectDiscovery");
|
|
38290
38330
|
|
|
38291
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38331
|
+
// 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/meeting-hit-context.js
|
|
38292
38332
|
import { createHash as createHash13 } from "node:crypto";
|
|
38293
38333
|
var contextCue = /* @__PURE__ */ __name((cue) => ({
|
|
38294
38334
|
ref: cue.reference,
|
|
@@ -38406,7 +38446,7 @@ var readMeetingHitContext = /* @__PURE__ */ __name(async (store, accountId, refe
|
|
|
38406
38446
|
return { ...packet, fingerprint: createHash13("sha256").update(JSON.stringify(packet)).digest("hex") };
|
|
38407
38447
|
}, "readMeetingHitContext");
|
|
38408
38448
|
|
|
38409
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38449
|
+
// 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/meeting-passage-format.js
|
|
38410
38450
|
var visible = /* @__PURE__ */ __name((text2) => text2.replace(/[\p{Cc}\p{Cf}]/gu, (value) => value === "\n" || value === " " ? value : `\\u{${value.codePointAt(0)?.toString(16)}}`), "visible");
|
|
38411
38451
|
var markdown = /* @__PURE__ */ __name((text2) => visible(text2).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replace(/[\\`*_[\]#|~]/g, "\\$&"), "markdown");
|
|
38412
38452
|
var timestamp = /* @__PURE__ */ __name((ms) => {
|
|
@@ -38482,7 +38522,7 @@ var readMeetingPassage = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
38482
38522
|
return { packet, content };
|
|
38483
38523
|
}, "readMeetingPassage");
|
|
38484
38524
|
|
|
38485
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38525
|
+
// 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/context/communication-selection.js
|
|
38486
38526
|
var communicationFields = {
|
|
38487
38527
|
sources: pipe(array(strictObject({
|
|
38488
38528
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -38514,7 +38554,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
38514
38554
|
return { ...input, after, before: before2 };
|
|
38515
38555
|
}, "communicationRequest");
|
|
38516
38556
|
|
|
38517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38557
|
+
// 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/meeting-preparation-validation.js
|
|
38518
38558
|
var MEETING_PREPARATION_LIMITS = {
|
|
38519
38559
|
meetings: { min: 1, max: 20, default: 5 },
|
|
38520
38560
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -38600,7 +38640,7 @@ var preparationRequest = /* @__PURE__ */ __name((accountId, externalId, original
|
|
|
38600
38640
|
return { ...input, history };
|
|
38601
38641
|
}, "preparationRequest");
|
|
38602
38642
|
|
|
38603
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38643
|
+
// 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/meeting-communications-preparation.js
|
|
38604
38644
|
var readPreparationCommunications = /* @__PURE__ */ __name(async (plan, signal) => {
|
|
38605
38645
|
const section = {
|
|
38606
38646
|
readUsage: plan.reader.usage(),
|
|
@@ -38705,7 +38745,7 @@ var appendPreparationCommunications = /* @__PURE__ */ __name((result, read2) =>
|
|
|
38705
38745
|
result.knowledge.coverage.otherSources = "see-communications";
|
|
38706
38746
|
}, "appendPreparationCommunications");
|
|
38707
38747
|
|
|
38708
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38748
|
+
// 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/meeting-communications-selection.js
|
|
38709
38749
|
var captureCommunicationSelections = /* @__PURE__ */ __name((port) => {
|
|
38710
38750
|
if (port === void 0)
|
|
38711
38751
|
return void 0;
|
|
@@ -38810,7 +38850,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
38810
38850
|
}
|
|
38811
38851
|
}, "validatePreparationCommunications");
|
|
38812
38852
|
|
|
38813
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38853
|
+
// 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/meeting-knowledge-preparation.js
|
|
38814
38854
|
var invalid5 = /* @__PURE__ */ __name(() => {
|
|
38815
38855
|
throw new CliError("invalid_response", "Preparation knowledge returned an invalid selection");
|
|
38816
38856
|
}, "invalid");
|
|
@@ -38879,7 +38919,7 @@ var appendKnowledgePreparation = /* @__PURE__ */ __name(async (store, result, in
|
|
|
38879
38919
|
}
|
|
38880
38920
|
}, "appendKnowledgePreparation");
|
|
38881
38921
|
|
|
38882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38922
|
+
// 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/meeting-notes-preparation.js
|
|
38883
38923
|
var invalid6 = /* @__PURE__ */ __name(() => {
|
|
38884
38924
|
throw new CliError("invalid_response", "Preparation notes returned an invalid selection");
|
|
38885
38925
|
}, "invalid");
|
|
@@ -38953,7 +38993,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
38953
38993
|
}
|
|
38954
38994
|
}, "appendNotesPreparation");
|
|
38955
38995
|
|
|
38956
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38996
|
+
// 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/meeting-project-preparation.js
|
|
38957
38997
|
var PAGE_LIMIT = 4;
|
|
38958
38998
|
var size2 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
38959
38999
|
var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, input) => {
|
|
@@ -39003,7 +39043,7 @@ var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, inpu
|
|
|
39003
39043
|
}
|
|
39004
39044
|
}, "appendProjectPreparation");
|
|
39005
39045
|
|
|
39006
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39046
|
+
// 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/meeting-related-preparation.js
|
|
39007
39047
|
var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, input) => {
|
|
39008
39048
|
if (!result.series || !result.items.length || result.coverage.outputLimited)
|
|
39009
39049
|
return;
|
|
@@ -39075,7 +39115,7 @@ var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, inpu
|
|
|
39075
39115
|
}
|
|
39076
39116
|
}, "appendRelatedPreparation");
|
|
39077
39117
|
|
|
39078
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39118
|
+
// 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/meeting-preparation.js
|
|
39079
39119
|
var size3 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
39080
39120
|
var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
39081
39121
|
const fixed = snapshotMeetingScope(scope);
|
|
@@ -39213,7 +39253,7 @@ var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId,
|
|
|
39213
39253
|
};
|
|
39214
39254
|
}, "createMeetingPreparationService");
|
|
39215
39255
|
|
|
39216
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39256
|
+
// 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/package-upgrade.js
|
|
39217
39257
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
39218
39258
|
const installer = ports.installer();
|
|
39219
39259
|
const argv = updateCommand(installer, packageName);
|
|
@@ -39278,7 +39318,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
39278
39318
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
39279
39319
|
}, "dayAfter");
|
|
39280
39320
|
|
|
39281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39321
|
+
// 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/index.js
|
|
39282
39322
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
39283
39323
|
const pictures = picturesService(deps);
|
|
39284
39324
|
const base = {
|
|
@@ -39315,7 +39355,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
39315
39355
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
39316
39356
|
}, "servicesFor");
|
|
39317
39357
|
|
|
39318
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39358
|
+
// 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/background/relay.js
|
|
39319
39359
|
import { createHash as createHash14 } from "node:crypto";
|
|
39320
39360
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync3, rmSync } from "node:fs";
|
|
39321
39361
|
import { createConnection, createServer } from "node:net";
|
|
@@ -39463,7 +39503,7 @@ var serve = /* @__PURE__ */ __name(async (socket, request, stdin, signal, run) =
|
|
|
39463
39503
|
}
|
|
39464
39504
|
}, "serve");
|
|
39465
39505
|
|
|
39466
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39506
|
+
// 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/cli/messenger/serve-relay.js
|
|
39467
39507
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
39468
39508
|
close: /* @__PURE__ */ __name(async () => {
|
|
39469
39509
|
}, "close"),
|