@wirecat/cli-memo 0.131.78 → 0.131.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/memo.js +2 -2
- package/dist/bundle/{all-profiles-ZEUEPNFD.js → all-profiles-RVKEGURX.js} +9 -9
- package/dist/bundle/{anthropic-VF75LSDZ.js → anthropic-FC6XUSWM.js} +6 -6
- package/dist/bundle/{app-server-Z4TY5VP5.js → app-server-IRNKU3IF.js} +41 -41
- package/dist/bundle/auto-GTL4YGZX.js +91 -0
- package/dist/bundle/{bun-OUR5UZAI.js → bun-TYBGE5BX.js} +2 -2
- package/dist/bundle/{bun-sqlite-26ZGEVH3.js → bun-sqlite-YENHHNPL.js} +10 -6
- package/dist/bundle/{chunk-DDPZY27T.js → chunk-2CJIZZSI.js} +16 -16
- package/dist/bundle/{chunk-3QBRLN6T.js → chunk-2EGS6BXF.js} +2 -2
- package/dist/bundle/{chunk-IFANDP3T.js → chunk-2FICCBKH.js} +14 -2
- package/dist/bundle/{chunk-OHMF7LWW.js → chunk-3H56E3VI.js} +5 -5
- package/dist/bundle/{chunk-WYSFOL74.js → chunk-4IKO3JAA.js} +4 -4
- package/dist/bundle/{chunk-6A37YXAL.js → chunk-5LEIPSJG.js} +24 -0
- package/dist/bundle/{chunk-VJLJFLKZ.js → chunk-666J5H2Z.js} +1 -1
- package/dist/bundle/{chunk-ELKRFQ5Y.js → chunk-6W6CLZKX.js} +12 -12
- package/dist/bundle/{chunk-22RYCAAO.js → chunk-BS5JBNGX.js} +9625 -9046
- package/dist/bundle/{chunk-5PCPPT43.js → chunk-C2FE62E5.js} +31 -31
- package/dist/bundle/{chunk-Z4TPRASF.js → chunk-C4TAEYDQ.js} +5 -5
- package/dist/bundle/{chunk-UIJBGS6K.js → chunk-CEGA7A35.js} +2 -2
- package/dist/bundle/{chunk-MUFU4LNS.js → chunk-CUWTYE5A.js} +2 -2
- package/dist/bundle/{chunk-EI7LYQQA.js → chunk-CVQJ7L4C.js} +4 -4
- package/dist/bundle/{chunk-EXFRC4OT.js → chunk-DCK5AT3D.js} +1 -1
- package/dist/bundle/{chunk-DAEPTQ6N.js → chunk-DS5SA5QP.js} +5 -5
- package/dist/bundle/{chunk-OMGNXKSH.js → chunk-EOXWI2EX.js} +4 -4
- package/dist/bundle/{chunk-EF33DKMR.js → chunk-F62N6QMI.js} +1 -1
- package/dist/bundle/{chunk-P3UQGKGY.js → chunk-FIJTCBPQ.js} +10 -10
- package/dist/bundle/{chunk-T37LLOZR.js → chunk-FR646D4S.js} +1 -1
- package/dist/bundle/{chunk-6GHBGGN7.js → chunk-GHYJW4ZH.js} +2 -2
- package/dist/bundle/{chunk-6ABWVQ4T.js → chunk-GNII3UL7.js} +1 -1
- package/dist/bundle/{chunk-YOM4PA3A.js → chunk-HFQXEMRG.js} +1 -1
- package/dist/bundle/{chunk-OMCET4QP.js → chunk-HHZMDFE2.js} +47 -47
- package/dist/bundle/{chunk-WETWQO6X.js → chunk-HKXACNLD.js} +2 -2
- package/dist/bundle/{chunk-QEJHNTCX.js → chunk-HXPU3ABX.js} +511 -349
- package/dist/bundle/{chunk-4LZLU2V3.js → chunk-IJUXHUNZ.js} +3 -3
- package/dist/bundle/{chunk-GXHPPHGB.js → chunk-IW6O2SAG.js} +11 -11
- package/dist/bundle/{chunk-N7CHOWDF.js → chunk-JDQSL2EY.js} +3 -3
- package/dist/bundle/{chunk-WHZJHUK6.js → chunk-JJ6ODCVQ.js} +2 -2
- package/dist/bundle/{chunk-7ENXMVT5.js → chunk-JPC7GSJO.js} +20 -11
- package/dist/bundle/{chunk-E5JVYVRX.js → chunk-JTQAMVZH.js} +15 -14
- package/dist/bundle/{chunk-Q2CQNT3A.js → chunk-K3JEAMTT.js} +1 -1
- package/dist/bundle/{chunk-AZIXZIXT.js → chunk-KDLOSANT.js} +7 -7
- package/dist/bundle/{chunk-D67YDJ35.js → chunk-KNRYIHUJ.js} +1049 -902
- package/dist/bundle/{chunk-B2ZAEF5Z.js → chunk-KVQY7R66.js} +2 -2
- package/dist/bundle/{chunk-H2AQV772.js → chunk-MDIXXKVU.js} +10 -10
- package/dist/bundle/{chunk-LJRXD44C.js → chunk-MLYPJ4EC.js} +7 -7
- package/dist/bundle/{chunk-Y2J52Y3A.js → chunk-NH7KIGIS.js} +3 -3
- package/dist/bundle/{chunk-XC26CUGL.js → chunk-NUKMYB65.js} +6 -6
- package/dist/bundle/{chunk-PTKJIA7M.js → chunk-OFRIG3CX.js} +3 -3
- package/dist/bundle/{chunk-WHMKYJZR.js → chunk-OH4AIBZF.js} +1 -1
- package/dist/bundle/{chunk-TWWYDJBW.js → chunk-OSE7GXAR.js} +1 -1
- package/dist/bundle/{chunk-QU7UPCW2.js → chunk-PX55CRD3.js} +86 -81
- package/dist/bundle/{chunk-7DKS4GIW.js → chunk-Q46O7KXY.js} +5 -5
- package/dist/bundle/chunk-R4XCBPD2.js +53 -0
- package/dist/bundle/{chunk-X2SA73EE.js → chunk-RK24IARI.js} +1 -1
- package/dist/bundle/{chunk-TT5RMHM6.js → chunk-RUM4GGHP.js} +5 -5
- package/dist/bundle/{chunk-5NBQOU5V.js → chunk-RWVB7SLQ.js} +26 -23
- package/dist/bundle/{chunk-MW6IAMUI.js → chunk-S2KXO7MO.js} +1 -1
- package/dist/bundle/{chunk-2IQWMWMC.js → chunk-SB3AOH3M.js} +3 -3
- package/dist/bundle/{chunk-NXQFVHG4.js → chunk-SGV2Z4BO.js} +165 -152
- package/dist/bundle/{chunk-XTCN3VUP.js → chunk-SKX3BNTE.js} +8 -8
- package/dist/bundle/{chunk-OUATPEPP.js → chunk-SULQCO3Y.js} +6 -6
- package/dist/bundle/{chunk-KUY35N7Q.js → chunk-TJ2B36VK.js} +7 -7
- package/dist/bundle/{chunk-ZKCAR2OL.js → chunk-UBUCTVHB.js} +1 -1
- package/dist/bundle/{chunk-T6LXUBXY.js → chunk-UTYGPWUY.js} +3 -3
- package/dist/bundle/{chunk-JHW2ARPA.js → chunk-VQJDYQ55.js} +34 -34
- package/dist/bundle/{chunk-F7MKFYYP.js → chunk-VTBIVTS5.js} +3 -3
- package/dist/bundle/{chunk-EIQ6HCIB.js → chunk-W26VONC6.js} +7 -7
- package/dist/bundle/{chunk-I6CZU7X7.js → chunk-X3NHAO6T.js} +1 -1
- package/dist/bundle/{chunk-3QV5JWFN.js → chunk-XZJUAG7B.js} +3 -3
- package/dist/bundle/{chunk-UWF6WXM7.js → chunk-ZMLDVE22.js} +7 -7
- package/dist/bundle/{chunk-NGWKI3E6.js → chunk-ZMSEKQQQ.js} +1 -1
- package/dist/bundle/command-contract-SR6ONYV4.js +34 -0
- package/dist/bundle/{command-server-entry-A7ZCZWHH.js → command-server-entry-2WXZVYIX.js} +21 -21
- package/dist/bundle/{decode-FO2ELPW6.js → decode-U7VFYQAA.js} +6 -6
- package/dist/bundle/{dispatch-N73TJNYM.js → dispatch-BRRZ6TLX.js} +1 -1
- package/dist/bundle/{echarts-HTY3OB2X.js → echarts-2PXBBLLJ.js} +2 -2
- package/dist/bundle/{embed-2DTGMR7Z.js → embed-DPA5QOIR.js} +7 -7
- package/dist/bundle/{embedder-N3IGQ2M6.js → embedder-IGI2UTFK.js} +10 -10
- package/dist/bundle/{entry-YDEKGRCA.js → entry-7PAYGIQO.js} +9 -9
- package/dist/bundle/{entry-Q7CIJ3TU.js → entry-IFOQTBXC.js} +9 -9
- package/dist/bundle/{failure-IPHFR3KW.js → failure-ECNGLVHX.js} +2 -2
- package/dist/bundle/failure-NAM37T2T.js +71 -0
- package/dist/bundle/{first-run-SAADMYEA.js → first-run-WHDDKA4V.js} +10 -10
- package/dist/bundle/first-screen-P5C57USR.js +32 -0
- package/dist/bundle/{instructions-XB5Y5DFA.js → instructions-W7F7OQZS.js} +1 -1
- package/dist/bundle/mcp-3LAFWOGW.js +92 -0
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-4ZOD7X75.js → node-K6MWX3SW.js} +2 -2
- package/dist/bundle/{node-sqlite-DWXKYFW6.js → node-sqlite-WV6GCPEC.js} +11 -7
- package/dist/bundle/{oauth-GMIBNJQB.js → oauth-EH2Y54DG.js} +8 -8
- package/dist/bundle/{open-3DBI3MHV.js → open-PB4W3UAM.js} +6 -6
- package/dist/bundle/{openai-HFJAR7W5.js → openai-76OKHXWR.js} +11 -11
- package/dist/bundle/{process-2H5HNPHH.js → process-FMQ7Q7AI.js} +1 -1
- package/dist/bundle/{program-VXKN6DLP.js → program-BR2QHF36.js} +403 -142
- package/dist/bundle/{prompt-WETKFAQS.js → prompt-AW4T6CC2.js} +6 -6
- package/dist/bundle/{recognize-5LC3DQ2W.js → recognize-X5DMT3HH.js} +5 -5
- package/dist/bundle/{remote-FURTWZ25.js → remote-HVKKXNYZ.js} +8 -8
- package/dist/bundle/{rerank-CMQWT3WC.js → rerank-IXMWD7JV.js} +8 -8
- package/dist/bundle/{serve-LEF3PX34.js → serve-42XTYB26.js} +10 -10
- package/dist/bundle/server-HUEXB5QL.js +64 -0
- package/dist/bundle/{server-GYLFN6Y7.js → server-NNE7MUYT.js} +59 -59
- package/dist/bundle/server-YLXOJOTR.js +50 -0
- package/dist/bundle/{state-OVZT24JF.js → state-EOU37GAH.js} +7 -7
- package/dist/bundle/{store-SV46T732.js → store-F3REYMA6.js} +13 -13
- package/dist/bundle/store-maintenance-command-TOBBH3ZK.js +49 -0
- package/dist/bundle/update-3QB752NL.js +74 -0
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +13 -3
- package/dist/examples.js.map +1 -1
- package/dist/knowledge/command.d.ts.map +1 -1
- package/dist/knowledge/command.js +2 -0
- package/dist/knowledge/command.js.map +1 -1
- package/dist/knowledge/document-context.d.ts +14 -0
- package/dist/knowledge/document-context.d.ts.map +1 -0
- package/dist/knowledge/document-context.js +33 -0
- package/dist/knowledge/document-context.js.map +1 -0
- package/dist/knowledge/project-activity-command.d.ts +5 -0
- package/dist/knowledge/project-activity-command.d.ts.map +1 -0
- package/dist/knowledge/project-activity-command.js +71 -0
- package/dist/knowledge/project-activity-command.js.map +1 -0
- package/dist/knowledge/relationships.d.ts +4 -0
- package/dist/knowledge/relationships.d.ts.map +1 -1
- package/dist/knowledge/relationships.js +14 -0
- package/dist/knowledge/relationships.js.map +1 -1
- package/dist/knowledge/roles-command.d.ts.map +1 -1
- package/dist/knowledge/roles-command.js +7 -4
- package/dist/knowledge/roles-command.js.map +1 -1
- package/dist/mcp/catalogue.d.ts +4 -4
- package/dist/mcp/catalogue.d.ts.map +1 -1
- package/dist/mcp/catalogue.js +2 -2
- package/dist/mcp/catalogue.js.map +1 -1
- package/dist/people/doubts-command.d.ts +5 -0
- package/dist/people/doubts-command.d.ts.map +1 -0
- package/dist/people/doubts-command.js +46 -0
- package/dist/people/doubts-command.js.map +1 -0
- package/dist/people/identities-command.d.ts.map +1 -1
- package/dist/people/identities-command.js +52 -57
- package/dist/people/identities-command.js.map +1 -1
- package/dist/people/proposal-rows.d.ts +48 -0
- package/dist/people/proposal-rows.d.ts.map +1 -0
- package/dist/people/proposal-rows.js +61 -0
- package/dist/people/proposal-rows.js.map +1 -0
- package/dist/people/proposals-command.d.ts +5 -0
- package/dist/people/proposals-command.d.ts.map +1 -0
- package/dist/people/proposals-command.js +107 -0
- package/dist/people/proposals-command.js.map +1 -0
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +1 -0
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +12 -0
- package/dist/reasons.js.map +1 -1
- package/dist/review/kinds.d.ts +1 -1
- package/dist/review/kinds.d.ts.map +1 -1
- package/dist/review/kinds.js +1 -0
- package/dist/review/kinds.js.map +1 -1
- package/dist/tasks/shared.d.ts.map +1 -1
- package/dist/tasks/shared.js +14 -2
- package/dist/tasks/shared.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/proposals.md +10 -6
- package/dist/bundle/auto-SA667UAT.js +0 -91
- package/dist/bundle/chunk-VHA3LJQT.js +0 -35
- package/dist/bundle/command-contract-L5GTW74N.js +0 -34
- package/dist/bundle/failure-QL3RJILP.js +0 -71
- package/dist/bundle/first-screen-WXKAIMY6.js +0 -32
- package/dist/bundle/mcp-IRJS472M.js +0 -92
- package/dist/bundle/server-C2EVLJLW.js +0 -64
- package/dist/bundle/server-L7GHFXJF.js +0 -50
- package/dist/bundle/store-maintenance-command-TZYC5HVL.js +0 -49
- package/dist/bundle/update-PRBIV3RG.js +0 -74
- /package/dist/bundle/{chunk-DK3W4FPW.js → chunk-ID2I2X2Z.js} +0 -0
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6W6CLZKX.js";
|
|
12
12
|
import {
|
|
13
13
|
remoteKey
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GHYJW4ZH.js";
|
|
15
15
|
import {
|
|
16
16
|
isNewer,
|
|
17
17
|
updateCommand
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2EGS6BXF.js";
|
|
19
19
|
import {
|
|
20
20
|
AGENDA_COLUMNS,
|
|
21
21
|
BUSINESS_FIND_MAX,
|
|
@@ -28,6 +28,7 @@ import {
|
|
|
28
28
|
EVIDENCE_FINDINGS_KIND,
|
|
29
29
|
FIELD_VERSION,
|
|
30
30
|
IDENTITY_LINK_KIND,
|
|
31
|
+
IDENTITY_SPLIT_KIND,
|
|
31
32
|
MAIL_AGENDA_COLUMNS,
|
|
32
33
|
MAIL_FINDINGS_KIND,
|
|
33
34
|
MAX_FILE_BYTES,
|
|
@@ -114,13 +115,13 @@ import {
|
|
|
114
115
|
validateFields,
|
|
115
116
|
waitingPointer,
|
|
116
117
|
withoutField
|
|
117
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-BS5JBNGX.js";
|
|
118
119
|
import {
|
|
119
120
|
DEFAULT_STEMMERS,
|
|
120
121
|
createStemmer,
|
|
121
122
|
fold,
|
|
122
123
|
normalize
|
|
123
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-TJ2B36VK.js";
|
|
124
125
|
import {
|
|
125
126
|
MAX_MODEL_IMAGE_BYTES,
|
|
126
127
|
checkedOptions,
|
|
@@ -128,7 +129,7 @@ import {
|
|
|
128
129
|
range,
|
|
129
130
|
systemFor,
|
|
130
131
|
validateImages
|
|
131
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-IJUXHUNZ.js";
|
|
132
133
|
import {
|
|
133
134
|
Unzip,
|
|
134
135
|
UnzipInflate,
|
|
@@ -139,7 +140,7 @@ import {
|
|
|
139
140
|
placedText,
|
|
140
141
|
runEmbedders,
|
|
141
142
|
textModelsDirectory
|
|
142
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-C4TAEYDQ.js";
|
|
143
144
|
import {
|
|
144
145
|
CEILING_KEY,
|
|
145
146
|
Command,
|
|
@@ -189,13 +190,13 @@ import {
|
|
|
189
190
|
textModels,
|
|
190
191
|
vectorModelKey,
|
|
191
192
|
writeTextModelsSection
|
|
192
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-SGV2Z4BO.js";
|
|
193
194
|
import {
|
|
194
195
|
MESSENGER_CHANGE_REFUSAL,
|
|
195
196
|
envName,
|
|
196
197
|
readOnlyLockOf,
|
|
197
198
|
readOnlyRefusal
|
|
198
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-ZMSEKQQQ.js";
|
|
199
200
|
import {
|
|
200
201
|
CATEGORIES,
|
|
201
202
|
DEAL_KINDS,
|
|
@@ -293,27 +294,27 @@ import {
|
|
|
293
294
|
walkQuery,
|
|
294
295
|
withAttempt,
|
|
295
296
|
zonedMoment
|
|
296
|
-
} from "./chunk-
|
|
297
|
+
} from "./chunk-PX55CRD3.js";
|
|
297
298
|
import {
|
|
298
299
|
damagedFile,
|
|
299
300
|
isCliFailure,
|
|
300
301
|
sqliteCode
|
|
301
|
-
} from "./chunk-
|
|
302
|
+
} from "./chunk-JJ6ODCVQ.js";
|
|
302
303
|
import {
|
|
303
304
|
DEFAULT_TASK_CATEGORIES,
|
|
304
305
|
FALLBACK_CATEGORY,
|
|
305
306
|
readSharedSection,
|
|
306
307
|
sharedConfigPath,
|
|
307
308
|
writeSharedSection
|
|
308
|
-
} from "./chunk-
|
|
309
|
+
} from "./chunk-RUM4GGHP.js";
|
|
309
310
|
import {
|
|
310
311
|
installFiles,
|
|
311
312
|
megabytes
|
|
312
|
-
} from "./chunk-
|
|
313
|
+
} from "./chunk-UTYGPWUY.js";
|
|
313
314
|
import {
|
|
314
315
|
storePath,
|
|
315
316
|
wirecatDirectory
|
|
316
|
-
} from "./chunk-
|
|
317
|
+
} from "./chunk-R4XCBPD2.js";
|
|
317
318
|
import {
|
|
318
319
|
Credentials,
|
|
319
320
|
logRecordOf,
|
|
@@ -321,7 +322,7 @@ import {
|
|
|
321
322
|
realSleep,
|
|
322
323
|
resolvePaths,
|
|
323
324
|
writeSecurely
|
|
324
|
-
} from "./chunk-
|
|
325
|
+
} from "./chunk-SB3AOH3M.js";
|
|
325
326
|
import {
|
|
326
327
|
array,
|
|
327
328
|
boolean,
|
|
@@ -349,7 +350,7 @@ import {
|
|
|
349
350
|
trim,
|
|
350
351
|
union,
|
|
351
352
|
unknown
|
|
352
|
-
} from "./chunk-
|
|
353
|
+
} from "./chunk-5LEIPSJG.js";
|
|
353
354
|
import {
|
|
354
355
|
importFrom,
|
|
355
356
|
resolveFrom
|
|
@@ -16975,7 +16976,7 @@ var require_lib3 = __commonJS({
|
|
|
16975
16976
|
}
|
|
16976
16977
|
});
|
|
16977
16978
|
|
|
16978
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16979
16980
|
var RULES_VERSION = 5;
|
|
16980
16981
|
var LOOK_BACK = 50;
|
|
16981
16982
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -17065,10 +17066,10 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
17065
17066
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
17066
17067
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
17067
17068
|
|
|
17068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17069
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
17069
17070
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
17070
17071
|
|
|
17071
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17072
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/store/damage.js
|
|
17072
17073
|
var DERIVED = /* @__PURE__ */ new Set(["mentions", "involvements", "embeddings"]);
|
|
17073
17074
|
var named = /* @__PURE__ */ __name((tables) => tables.length <= 5 ? tables.join(", ") : `${tables.slice(0, 5).join(", ")} and ${tables.length - 5} more`, "named");
|
|
17074
17075
|
var isDerivedTable = /* @__PURE__ */ __name((table, searchIndexes) => DERIVED.has(table) || table.startsWith("vector_index_") || searchIndexes.some((index) => table === index || table.startsWith(`${index}_`)), "isDerivedTable");
|
|
@@ -17171,7 +17172,7 @@ var storeDamageReport = /* @__PURE__ */ __name(({ health, command, mark = null,
|
|
|
17171
17172
|
};
|
|
17172
17173
|
}, "storeDamageReport");
|
|
17173
17174
|
|
|
17174
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17175
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/store/health.js
|
|
17175
17176
|
import { existsSync, statSync } from "node:fs";
|
|
17176
17177
|
var JSON_COLUMNS = {
|
|
17177
17178
|
accounts: ["settings"],
|
|
@@ -17313,10 +17314,10 @@ var storeHealth = /* @__PURE__ */ __name(async (path, { deep = false } = {}) =>
|
|
|
17313
17314
|
}
|
|
17314
17315
|
}, "storeHealth");
|
|
17315
17316
|
|
|
17316
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17317
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
|
|
17317
17318
|
var MAX_BYTES = 16 * 1024 * 1024;
|
|
17318
17319
|
|
|
17319
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17320
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
|
|
17320
17321
|
var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options2) => {
|
|
17321
17322
|
if (!options2 || typeof options2 !== "object" || Array.isArray(options2))
|
|
17322
17323
|
throw new CliError("validation_error", "project preview options are required");
|
|
@@ -17342,7 +17343,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options2) =
|
|
|
17342
17343
|
});
|
|
17343
17344
|
}, "previewProjectAnnotationSnapshot");
|
|
17344
17345
|
|
|
17345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17346
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
|
|
17346
17347
|
var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options2) => {
|
|
17347
17348
|
if (!options2 || typeof options2 !== "object" || Array.isArray(options2))
|
|
17348
17349
|
throw new CliError("validation_error", "snapshot options are required");
|
|
@@ -17363,7 +17364,7 @@ var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options2) => {
|
|
|
17363
17364
|
}
|
|
17364
17365
|
}, "snapshotProjectAnnotations");
|
|
17365
17366
|
|
|
17366
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17367
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/search/groups.js
|
|
17367
17368
|
var ALL = "all";
|
|
17368
17369
|
var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
|
|
17369
17370
|
var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
|
|
@@ -17497,7 +17498,7 @@ var scopeToGroup = /* @__PURE__ */ __name((run, request, context2) => {
|
|
|
17497
17498
|
return scoped;
|
|
17498
17499
|
}, "scopeToGroup");
|
|
17499
17500
|
|
|
17500
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17501
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
17501
17502
|
var NO_MAIL = "no_mail";
|
|
17502
17503
|
var MAIL = "email";
|
|
17503
17504
|
var groupLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -17571,10 +17572,10 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
17571
17572
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
17572
17573
|
}, "accountsOfKind");
|
|
17573
17574
|
|
|
17574
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17575
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17575
17576
|
import { randomUUID } from "node:crypto";
|
|
17576
17577
|
|
|
17577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
17578
17579
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
17579
17580
|
import { dirname, join } from "node:path";
|
|
17580
17581
|
var MOST_DEADLINES = 50;
|
|
@@ -17658,11 +17659,11 @@ var FloodMemory = class {
|
|
|
17658
17659
|
}
|
|
17659
17660
|
};
|
|
17660
17661
|
|
|
17661
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17662
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17662
17663
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
17663
17664
|
import { dirname as dirname3, join as join2 } from "node:path";
|
|
17664
17665
|
|
|
17665
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17666
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
17666
17667
|
import { closeSync, mkdirSync as mkdirSync2, openSync, statSync as statSync2, unlinkSync } from "node:fs";
|
|
17667
17668
|
import { dirname as dirname2 } from "node:path";
|
|
17668
17669
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -17729,7 +17730,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
17729
17730
|
}
|
|
17730
17731
|
}, "lockTime");
|
|
17731
17732
|
|
|
17732
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17733
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17733
17734
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
17734
17735
|
var SendJournal = class {
|
|
17735
17736
|
static {
|
|
@@ -17806,7 +17807,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
17806
17807
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
17807
17808
|
}, "withSendId");
|
|
17808
17809
|
|
|
17809
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17810
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
17810
17811
|
import { existsSync as existsSync2, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
17811
17812
|
import { join as join3 } from "node:path";
|
|
17812
17813
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -17918,7 +17919,7 @@ var RecipientList = class {
|
|
|
17918
17919
|
}
|
|
17919
17920
|
};
|
|
17920
17921
|
|
|
17921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17922
17923
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
17923
17924
|
var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
|
|
17924
17925
|
"attachments.extract",
|
|
@@ -18111,7 +18112,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
18111
18112
|
}), "guardFor");
|
|
18112
18113
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
18113
18114
|
|
|
18114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
18115
18116
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
18116
18117
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
18117
18118
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -18186,7 +18187,7 @@ var storeOnlyDeps = /* @__PURE__ */ __name((store, account, { app, env }) => {
|
|
|
18186
18187
|
return { ...storedDeps(messenger, store, account, guard), ...env === void 0 ? {} : { env } };
|
|
18187
18188
|
}, "storeOnlyDeps");
|
|
18188
18189
|
|
|
18189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
18190
18191
|
var DAY_MS = 864e5;
|
|
18191
18192
|
var NEW_DAYS = 30;
|
|
18192
18193
|
var SAME_TEXT_MIN = 20;
|
|
@@ -18263,7 +18264,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
18263
18264
|
};
|
|
18264
18265
|
}, "scorePerson");
|
|
18265
18266
|
|
|
18266
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18267
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
18267
18268
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
18268
18269
|
const controller = new AbortController();
|
|
18269
18270
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -18279,7 +18280,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run) => {
|
|
|
18279
18280
|
}
|
|
18280
18281
|
}, "withTimeLimit");
|
|
18281
18282
|
|
|
18282
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18283
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
18283
18284
|
var REGISTRIES = {
|
|
18284
18285
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
18285
18286
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -18366,7 +18367,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
18366
18367
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
18367
18368
|
})), "notCovered");
|
|
18368
18369
|
|
|
18369
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18370
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
18370
18371
|
var ACTIVITY_MESSAGES = 1e3;
|
|
18371
18372
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
18372
18373
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -18454,7 +18455,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
18454
18455
|
};
|
|
18455
18456
|
}, "botCheckService");
|
|
18456
18457
|
|
|
18457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18458
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
18458
18459
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
18459
18460
|
if (newest === null)
|
|
18460
18461
|
return null;
|
|
@@ -18463,7 +18464,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
18463
18464
|
return newest.addressed ? "owed" : null;
|
|
18464
18465
|
}, "mailTurn");
|
|
18465
18466
|
|
|
18466
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18467
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
18467
18468
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
18468
18469
|
if (error instanceof CliError && error.code === "not_found")
|
|
18469
18470
|
return void 0;
|
|
@@ -18521,7 +18522,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
18521
18522
|
};
|
|
18522
18523
|
}, "mailActivity");
|
|
18523
18524
|
|
|
18524
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
18525
18526
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
18526
18527
|
const ids = [...new Set(chatIds)];
|
|
18527
18528
|
if (ids.length === 0)
|
|
@@ -18547,7 +18548,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
18547
18548
|
}));
|
|
18548
18549
|
}, "chatCoverage");
|
|
18549
18550
|
|
|
18550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18551
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
18551
18552
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
18552
18553
|
if (value === void 0)
|
|
18553
18554
|
return void 0;
|
|
@@ -18557,7 +18558,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
18557
18558
|
return id2;
|
|
18558
18559
|
}, "threadIdOf");
|
|
18559
18560
|
|
|
18560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18561
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
18561
18562
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
18562
18563
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
18563
18564
|
if (key in own)
|
|
@@ -18574,12 +18575,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
18574
18575
|
return found.bind(adapter);
|
|
18575
18576
|
}, "capability");
|
|
18576
18577
|
|
|
18577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
18578
18579
|
import { randomBytes } from "node:crypto";
|
|
18579
18580
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
18580
18581
|
var newOperationId = newSendId;
|
|
18581
18582
|
|
|
18582
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18583
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
18583
18584
|
var LINKS = /https?:\/\/\S+/g;
|
|
18584
18585
|
var unanswered = /* @__PURE__ */ __name((messages, { answerers: answerers2, before: before2 }) => questions(messages, { answerers: answerers2 }).filter(({ question, answer }) => answer === void 0 && Date.parse(question.timestamp) < before2).map(({ question }) => question), "unanswered");
|
|
18585
18586
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -18609,7 +18610,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
18609
18610
|
});
|
|
18610
18611
|
}, "questions");
|
|
18611
18612
|
|
|
18612
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18613
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
18613
18614
|
var TOP_POSTS = 5;
|
|
18614
18615
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
18615
18616
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -18726,7 +18727,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
18726
18727
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
18727
18728
|
}, "median");
|
|
18728
18729
|
|
|
18729
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18730
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
18730
18731
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
18731
18732
|
const events = [];
|
|
18732
18733
|
for (const stay of stays) {
|
|
@@ -18758,7 +18759,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
18758
18759
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
18759
18760
|
}, "memberEvents");
|
|
18760
18761
|
|
|
18761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18762
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
18762
18763
|
var AUDIT_PAGE = 200;
|
|
18763
18764
|
var AUDIT_BUDGET = 10;
|
|
18764
18765
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -18838,7 +18839,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
18838
18839
|
return found;
|
|
18839
18840
|
}, "burstJoins");
|
|
18840
18841
|
|
|
18841
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18842
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18842
18843
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18843
18844
|
if (deps.reads !== "store")
|
|
18844
18845
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18997,7 +18998,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18997
18998
|
}
|
|
18998
18999
|
}, "senderAmong");
|
|
18999
19000
|
|
|
19000
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
19001
19002
|
var EVENTS_DAYS = 7;
|
|
19002
19003
|
var TRACKED_DAYS = 30;
|
|
19003
19004
|
var STATS_PAGE = 1e3;
|
|
@@ -19292,7 +19293,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
19292
19293
|
return members.length === 0 ? null : members;
|
|
19293
19294
|
}, "storedMembers");
|
|
19294
19295
|
|
|
19295
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19296
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
19296
19297
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
19297
19298
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
19298
19299
|
const name = typed.trim().toLowerCase();
|
|
@@ -19349,7 +19350,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
19349
19350
|
return best.name;
|
|
19350
19351
|
}, "categorize");
|
|
19351
19352
|
|
|
19352
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19353
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
19353
19354
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
19354
19355
|
var RULES_IN = {
|
|
19355
19356
|
dialog: "all",
|
|
@@ -19555,7 +19556,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
19555
19556
|
return passes;
|
|
19556
19557
|
}, "applyTaskRulesToChats");
|
|
19557
19558
|
|
|
19558
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19559
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
19559
19560
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
19560
19561
|
const tags = /* @__PURE__ */ new Map();
|
|
19561
19562
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -19564,7 +19565,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
19564
19565
|
return tags;
|
|
19565
19566
|
}, "taskTagFilters");
|
|
19566
19567
|
|
|
19567
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19568
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
19568
19569
|
var DAY = 864e5;
|
|
19569
19570
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
19570
19571
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -19811,7 +19812,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
19811
19812
|
};
|
|
19812
19813
|
}, "agendaItem");
|
|
19813
19814
|
|
|
19814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
19815
19816
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
19816
19817
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
19817
19818
|
const fail5 = /* @__PURE__ */ __name(() => {
|
|
@@ -19875,7 +19876,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
19875
19876
|
}
|
|
19876
19877
|
}, "validateContextEvidencePage");
|
|
19877
19878
|
|
|
19878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19879
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
19879
19880
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
19880
19881
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
19881
19882
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -19928,7 +19929,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
19928
19929
|
};
|
|
19929
19930
|
}, "contextReadBudget");
|
|
19930
19931
|
|
|
19931
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
19932
19933
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
19933
19934
|
if (!port || typeof port.read !== "function")
|
|
19934
19935
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -19972,7 +19973,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
19972
19973
|
};
|
|
19973
19974
|
}, "createContextEvidenceReader");
|
|
19974
19975
|
|
|
19975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19976
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
19976
19977
|
var queryWords = /* @__PURE__ */ __name((query) => query.toLowerCase().split(/\s+/).map((word) => word.replace(/^[\p{L}_]+:/u, "").replace(/~\d+$/u, "").replace(/^[^\p{L}\p{N}]+|[^\p{L}\p{N}]+$/gu, "")).filter((word) => word.length > 2 && !["and", "or", "not"].includes(word)), "queryWords");
|
|
19977
19978
|
var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options2 = {}) => {
|
|
19978
19979
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -19988,10 +19989,10 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options2 = {})
|
|
|
19988
19989
|
}, "excerpt");
|
|
19989
19990
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
19990
19991
|
|
|
19991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19992
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/ingest.js
|
|
19992
19993
|
import { createInterface } from "node:readline";
|
|
19993
19994
|
|
|
19994
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19995
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/domain/vcard.js
|
|
19995
19996
|
import { createHash } from "node:crypto";
|
|
19996
19997
|
var MAX_ID = 512;
|
|
19997
19998
|
var AS_WORD = new RegExp(`^${WORD_BODY}$`);
|
|
@@ -20222,7 +20223,7 @@ var envelopeOfVcard = /* @__PURE__ */ __name((text2, { provider, account, batchI
|
|
|
20222
20223
|
};
|
|
20223
20224
|
}, "envelopeOfVcard");
|
|
20224
20225
|
|
|
20225
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20226
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/ingest.js
|
|
20226
20227
|
var emptyReceipt = /* @__PURE__ */ __name((dryRun, errors) => ({
|
|
20227
20228
|
dryRun,
|
|
20228
20229
|
source: null,
|
|
@@ -20322,7 +20323,7 @@ var ingestVcard = /* @__PURE__ */ __name(async (store, text2, { provider, batchI
|
|
|
20322
20323
|
return { ...await ingest(store, envelope, options2), vcard: issues };
|
|
20323
20324
|
}, "ingestVcard");
|
|
20324
20325
|
|
|
20325
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20326
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/link-scorers/shared.js
|
|
20326
20327
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
20327
20328
|
var folded = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "folded");
|
|
20328
20329
|
var wholeWords = /* @__PURE__ */ __name((term) => new RegExp(`(?<![\\p{L}\\p{N}\\p{M}_])${escaped(normalizeVocabularyName(term))}(?![\\p{L}\\p{N}\\p{M}_])`, "u"), "wholeWords");
|
|
@@ -20366,7 +20367,7 @@ var identitiesIn = /* @__PURE__ */ __name(async (store, people, provider) => {
|
|
|
20366
20367
|
var remembered = /* @__PURE__ */ __name((input, key, read2) => input.remember ? input.remember(key, read2) : read2(), "remembered");
|
|
20367
20368
|
var chatsWithOf = /* @__PURE__ */ __name((input, key, id2) => remembered(input, `chats-with\0${key.provider}\0${key.account}\0${id2}`, () => input.store.chats.chatsWith(key, id2)), "chatsWithOf");
|
|
20368
20369
|
|
|
20369
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20370
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/link-scorers/alias-hits.js
|
|
20370
20371
|
var SEARCH_LIMIT = 500;
|
|
20371
20372
|
var aliasWeight = /* @__PURE__ */ __name((hits) => hits >= 10 ? 0.55 : hits >= 3 ? 0.35 : 0, "aliasWeight");
|
|
20372
20373
|
var aliasHits = {
|
|
@@ -20415,7 +20416,7 @@ var aliasHits = {
|
|
|
20415
20416
|
}, "candidates")
|
|
20416
20417
|
};
|
|
20417
20418
|
|
|
20418
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-senders.js
|
|
20419
20420
|
var WEIGHT = 0.5;
|
|
20420
20421
|
var LARGE_GROUP_WEIGHT = 0.2;
|
|
20421
20422
|
var LARGE_GROUP = 30;
|
|
@@ -20487,7 +20488,7 @@ var sendersOf2 = /* @__PURE__ */ __name(async (input, chat, reference, key) => {
|
|
|
20487
20488
|
return found;
|
|
20488
20489
|
}, "sendersOf");
|
|
20489
20490
|
|
|
20490
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20491
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-title.js
|
|
20491
20492
|
var WEIGHT2 = 0.7;
|
|
20492
20493
|
var chatTitle = {
|
|
20493
20494
|
id: "chat-title",
|
|
@@ -20526,7 +20527,7 @@ var chatTitle = {
|
|
|
20526
20527
|
}, "candidates")
|
|
20527
20528
|
};
|
|
20528
20529
|
|
|
20529
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20530
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/link-scorers/email-domain.js
|
|
20530
20531
|
var WEIGHT3 = 0.3;
|
|
20531
20532
|
var CONTACTS = 500;
|
|
20532
20533
|
var MOST_PAIRS = 200;
|
|
@@ -20587,7 +20588,7 @@ var emailDomain = {
|
|
|
20587
20588
|
}, "candidates")
|
|
20588
20589
|
};
|
|
20589
20590
|
|
|
20590
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20591
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/link-scorers/mail-thread.js
|
|
20591
20592
|
var NAMED = 0.7;
|
|
20592
20593
|
var MEMBER_ONLY = 0.3;
|
|
20593
20594
|
var READ_LIMIT2 = 500;
|
|
@@ -20661,7 +20662,7 @@ var mailThread = {
|
|
|
20661
20662
|
}, "candidates")
|
|
20662
20663
|
};
|
|
20663
20664
|
|
|
20664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20665
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-chats.js
|
|
20665
20666
|
var WEIGHT4 = 0.5;
|
|
20666
20667
|
var memberChats = {
|
|
20667
20668
|
id: "member-chats",
|
|
@@ -20703,7 +20704,7 @@ var memberChats = {
|
|
|
20703
20704
|
}, "candidates")
|
|
20704
20705
|
};
|
|
20705
20706
|
|
|
20706
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20707
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-dialog.js
|
|
20707
20708
|
var WEIGHT5 = 0.6;
|
|
20708
20709
|
var memberDialog = {
|
|
20709
20710
|
id: "member-dialog",
|
|
@@ -20736,7 +20737,7 @@ var memberDialog = {
|
|
|
20736
20737
|
}, "candidates")
|
|
20737
20738
|
};
|
|
20738
20739
|
|
|
20739
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20740
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
20740
20741
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
20741
20742
|
var DEFAULT_PURPOSES = ["work"];
|
|
20742
20743
|
var LINK_PURPOSE = "work";
|
|
@@ -20766,7 +20767,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
20766
20767
|
...value.split(",").map((one2) => one2.trim()).filter(Boolean)
|
|
20767
20768
|
], "purposeList");
|
|
20768
20769
|
|
|
20769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20770
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
20770
20771
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
20771
20772
|
async around(ref, window3) {
|
|
20772
20773
|
const at = parseLocator(ref);
|
|
@@ -20862,7 +20863,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
20862
20863
|
};
|
|
20863
20864
|
}, "storedNeighbours");
|
|
20864
20865
|
|
|
20865
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
20866
20867
|
import { createHash as createHash2 } from "node:crypto";
|
|
20867
20868
|
var DAY2 = 864e5;
|
|
20868
20869
|
var MAX_TIME = 864e13;
|
|
@@ -21178,7 +21179,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
21178
21179
|
return value;
|
|
21179
21180
|
}, "decodeCheckpoint");
|
|
21180
21181
|
|
|
21181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21182
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
21182
21183
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
21183
21184
|
var PAGE = 20;
|
|
21184
21185
|
var PEOPLE = 20;
|
|
@@ -21582,7 +21583,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
21582
21583
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
21583
21584
|
}, "peopleOf");
|
|
21584
21585
|
|
|
21585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
21586
21587
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
21587
21588
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
21588
21589
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -21626,7 +21627,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
21626
21627
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
21627
21628
|
}, "matchVocabularyTerms");
|
|
21628
21629
|
|
|
21629
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
21630
21631
|
var KINDS = ["project", "tag", "topic"];
|
|
21631
21632
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
|
|
21632
21633
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -21681,7 +21682,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
21681
21682
|
};
|
|
21682
21683
|
}, "findEvidenceMentions");
|
|
21683
21684
|
|
|
21684
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21685
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
21685
21686
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
21686
21687
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
21687
21688
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -21919,8 +21920,8 @@ var gatherStoredProject = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
21919
21920
|
reason: "linked-chat-limit"
|
|
21920
21921
|
}))
|
|
21921
21922
|
];
|
|
21922
|
-
const
|
|
21923
|
-
const byRef = new Map(linked.map((one2) => [
|
|
21923
|
+
const refOf3 = /* @__PURE__ */ __name((one2) => formatReference({ type: "chat", ...one2 }), "refOf");
|
|
21924
|
+
const byRef = new Map(linked.map((one2) => [refOf3(one2), one2]));
|
|
21924
21925
|
const proposedLanes = /* @__PURE__ */ new Map();
|
|
21925
21926
|
for (const row of gathered.linkedChats) {
|
|
21926
21927
|
const proposed = byRef.get(row.ref)?.proposed;
|
|
@@ -21954,7 +21955,7 @@ var gatherStoredProject = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
21954
21955
|
chatCoverage(store, account, [one2.chat])
|
|
21955
21956
|
]);
|
|
21956
21957
|
leftOut.push({
|
|
21957
|
-
ref:
|
|
21958
|
+
ref: refOf3(one2),
|
|
21958
21959
|
provider: one2.provider,
|
|
21959
21960
|
account: one2.account,
|
|
21960
21961
|
chat: one2.chat,
|
|
@@ -21987,7 +21988,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
21987
21988
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
21988
21989
|
}, "purposeHintOf");
|
|
21989
21990
|
|
|
21990
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/link-scorers/scan.js
|
|
21991
21992
|
var SCORERS = [chatTitle, aliasHits, memberChats, memberDialog, chatSenders, mailThread];
|
|
21992
21993
|
var PERSON_SCORERS = [emailDomain];
|
|
21993
21994
|
var SCAN_BOT = { bot: "memo-scan", kind: "rule" };
|
|
@@ -22243,18 +22244,18 @@ var referenceOf = /* @__PURE__ */ __name((text2) => {
|
|
|
22243
22244
|
}, "referenceOf");
|
|
22244
22245
|
var rejectedReversed = /* @__PURE__ */ __name(async (store, candidate) => candidate.kind === "related-to" && candidate.to.startsWith("person:") && ((await store.knowledge.relationState(null, { from: candidate.to, to: candidate.from, kind: candidate.kind }))?.rejected ?? false), "rejectedReversed");
|
|
22245
22246
|
|
|
22246
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22247
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
22247
22248
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
22248
22249
|
|
|
22249
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22250
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
22250
22251
|
import { lstat } from "node:fs/promises";
|
|
22251
22252
|
|
|
22252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
22253
22254
|
import { createHash as createHash4, randomUUID as randomUUID3 } from "node:crypto";
|
|
22254
22255
|
import { open as open2, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
22255
22256
|
import { join as join5 } from "node:path";
|
|
22256
22257
|
|
|
22257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
22258
22259
|
import { createHash as createHash3 } from "node:crypto";
|
|
22259
22260
|
var metadataLimit = 16384;
|
|
22260
22261
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -22314,7 +22315,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
22314
22315
|
}
|
|
22315
22316
|
}, "readPartialMetadata");
|
|
22316
22317
|
|
|
22317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22318
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
22318
22319
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
22319
22320
|
import { open, rename, unlink } from "node:fs/promises";
|
|
22320
22321
|
import { join as join4 } from "node:path";
|
|
@@ -22406,7 +22407,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
22406
22407
|
};
|
|
22407
22408
|
}, "partialWriter");
|
|
22408
22409
|
|
|
22409
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
22410
22411
|
var NativeRecordingPartialStore = class {
|
|
22411
22412
|
static {
|
|
22412
22413
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -22513,12 +22514,12 @@ var NativeRecordingPartialStore = class {
|
|
|
22513
22514
|
}
|
|
22514
22515
|
};
|
|
22515
22516
|
|
|
22516
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
22517
22518
|
import { createHash as createHash5 } from "node:crypto";
|
|
22518
22519
|
import { link as link2 } from "node:fs/promises";
|
|
22519
22520
|
import { basename, dirname as dirname4, join as join7, resolve } from "node:path";
|
|
22520
22521
|
|
|
22521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
22522
22523
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
22523
22524
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
22524
22525
|
signal?.throwIfAborted();
|
|
@@ -22553,7 +22554,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
22553
22554
|
signal?.throwIfAborted();
|
|
22554
22555
|
}, "commitPublication");
|
|
22555
22556
|
|
|
22556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22557
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
22557
22558
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
22558
22559
|
import { open as open3, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
22559
22560
|
import { join as join6 } from "node:path";
|
|
@@ -22626,7 +22627,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
22626
22627
|
}
|
|
22627
22628
|
}, "writePublicationJournal");
|
|
22628
22629
|
|
|
22629
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
22630
22631
|
var NativeRecordingPublication = class {
|
|
22631
22632
|
static {
|
|
22632
22633
|
__name(this, "NativeRecordingPublication");
|
|
@@ -22699,7 +22700,7 @@ var NativeRecordingPublication = class {
|
|
|
22699
22700
|
}
|
|
22700
22701
|
};
|
|
22701
22702
|
|
|
22702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22703
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
22703
22704
|
import { createHash as createHash6 } from "node:crypto";
|
|
22704
22705
|
import { readdir } from "node:fs/promises";
|
|
22705
22706
|
import { isAbsolute, join as join8, resolve as resolve2 } from "node:path";
|
|
@@ -22786,7 +22787,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one2, beforePublish) => wri
|
|
|
22786
22787
|
beforePublish
|
|
22787
22788
|
}), "commitMediaEntry");
|
|
22788
22789
|
|
|
22789
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22790
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
22790
22791
|
var validator = '"media-completed-v1"';
|
|
22791
22792
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
22792
22793
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -22887,7 +22888,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
22887
22888
|
return entry;
|
|
22888
22889
|
}, "archiveMediaFile");
|
|
22889
22890
|
|
|
22890
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22891
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
22891
22892
|
import { mkdir, realpath } from "node:fs/promises";
|
|
22892
22893
|
import { join as join9, resolve as resolve3 } from "node:path";
|
|
22893
22894
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -22954,7 +22955,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
22954
22955
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
22955
22956
|
}, "withMediaArchiveLocks");
|
|
22956
22957
|
|
|
22957
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
22958
22959
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
22959
22960
|
if (value === void 0)
|
|
22960
22961
|
return void 0;
|
|
@@ -23107,7 +23108,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
|
|
|
23107
23108
|
}, { create: true });
|
|
23108
23109
|
}, "archiveMedia");
|
|
23109
23110
|
|
|
23110
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23111
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
23111
23112
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
23112
23113
|
import { basename as basename2, dirname as dirname5, join as join10, resolve as resolve4 } from "node:path";
|
|
23113
23114
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -23260,7 +23261,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
|
|
|
23260
23261
|
}, { additional: [target2], createAdditional: !options2.dryRun });
|
|
23261
23262
|
}, "moveMediaArchive");
|
|
23262
23263
|
|
|
23263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
23264
23265
|
import { writeFileSync as writeFileSync2 } from "node:fs";
|
|
23265
23266
|
import { join as join11 } from "node:path";
|
|
23266
23267
|
var bytesOf2 = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
@@ -23285,7 +23286,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
23285
23286
|
`);
|
|
23286
23287
|
await nativeRuntime({ env, progress });
|
|
23287
23288
|
progress(`${model.id}: loading it once to check it works`);
|
|
23288
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
23289
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-DPA5QOIR.js");
|
|
23289
23290
|
const embedder = await openEmbedder2(model, directory2);
|
|
23290
23291
|
try {
|
|
23291
23292
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -23306,7 +23307,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
23306
23307
|
}
|
|
23307
23308
|
await nativeRuntime({ env, progress });
|
|
23308
23309
|
progress(`${model.id}: loading it once to check it works`);
|
|
23309
|
-
const { openReranker } = await import("./rerank-
|
|
23310
|
+
const { openReranker } = await import("./rerank-IXMWD7JV.js");
|
|
23310
23311
|
const reranker = await openReranker(model, directory2);
|
|
23311
23312
|
try {
|
|
23312
23313
|
await reranker.score("check", ["check"]);
|
|
@@ -23324,7 +23325,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
23324
23325
|
await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
23325
23326
|
}
|
|
23326
23327
|
progress(`${model.id}: loading it once to check it works`);
|
|
23327
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
23328
|
+
const { openPictureEmbedder } = await import("./embedder-IGI2UTFK.js");
|
|
23328
23329
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
23329
23330
|
try {
|
|
23330
23331
|
const vector = await embedder.embedQuery("check");
|
|
@@ -23336,7 +23337,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
23336
23337
|
return { model, directory: directory2 };
|
|
23337
23338
|
}, "downloadImageModel");
|
|
23338
23339
|
|
|
23339
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
23340
23341
|
var MONEY_REQUEST = "money-request";
|
|
23341
23342
|
var MONEY_DONE = "money-done";
|
|
23342
23343
|
var PROMISE = "promise";
|
|
@@ -23370,10 +23371,10 @@ var MONEY_WORDS = [
|
|
|
23370
23371
|
}
|
|
23371
23372
|
];
|
|
23372
23373
|
|
|
23373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
23374
23375
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
23375
23376
|
|
|
23376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
23377
23378
|
var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
23378
23379
|
var MONEY_DONE_FORMS = words([
|
|
23379
23380
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -23413,7 +23414,7 @@ var PROMISE_FORMS = words([
|
|
|
23413
23414
|
"estar\xE1 listo"
|
|
23414
23415
|
]);
|
|
23415
23416
|
|
|
23416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23417
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
23417
23418
|
var EXCERPT_CHARS = 80;
|
|
23418
23419
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
23419
23420
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -23435,7 +23436,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
23435
23436
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
23436
23437
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
23437
23438
|
|
|
23438
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
23439
23440
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
23440
23441
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
23441
23442
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -23516,7 +23517,7 @@ var amounts = {
|
|
|
23516
23517
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
23517
23518
|
};
|
|
23518
23519
|
|
|
23519
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
23520
23521
|
var children = {
|
|
23521
23522
|
id: "children",
|
|
23522
23523
|
version: 1,
|
|
@@ -23545,7 +23546,7 @@ var children = {
|
|
|
23545
23546
|
}, "read")
|
|
23546
23547
|
};
|
|
23547
23548
|
|
|
23548
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23549
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
23549
23550
|
var coverage = {
|
|
23550
23551
|
id: "coverage",
|
|
23551
23552
|
version: 1,
|
|
@@ -23574,7 +23575,7 @@ var coverage = {
|
|
|
23574
23575
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state !== "complete" && item2.data.beforeHeld ? [{ chat: item2.chat, weight: 3, why: "held in part" }] : []), "attention")
|
|
23575
23576
|
};
|
|
23576
23577
|
|
|
23577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
23578
23579
|
var holding2 = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
23579
23580
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
23580
23581
|
signal: "payments",
|
|
@@ -23624,7 +23625,7 @@ var payments = {
|
|
|
23624
23625
|
}, "read")
|
|
23625
23626
|
};
|
|
23626
23627
|
|
|
23627
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
23628
23629
|
var PATTERNS_PER_CHAT = 3;
|
|
23629
23630
|
var DAY3 = 864e5;
|
|
23630
23631
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -23713,7 +23714,7 @@ var promises = {
|
|
|
23713
23714
|
}, "read")
|
|
23714
23715
|
};
|
|
23715
23716
|
|
|
23716
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23717
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
23717
23718
|
var PER_SIDE = 5;
|
|
23718
23719
|
var WEEK = 7 * 864e5;
|
|
23719
23720
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -23744,7 +23745,7 @@ var questions2 = {
|
|
|
23744
23745
|
}, "attention")
|
|
23745
23746
|
};
|
|
23746
23747
|
|
|
23747
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23748
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
23748
23749
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
23749
23750
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one2) => one2.id === id2), "byId");
|
|
23750
23751
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -23812,7 +23813,7 @@ var replyNext = {
|
|
|
23812
23813
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
23813
23814
|
};
|
|
23814
23815
|
|
|
23815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
23816
23817
|
var escaped2 = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
23817
23818
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped2(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
23818
23819
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -23858,7 +23859,7 @@ var topics = {
|
|
|
23858
23859
|
}, "read")
|
|
23859
23860
|
};
|
|
23860
23861
|
|
|
23861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23862
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
23862
23863
|
var STATUS_SIGNALS = [
|
|
23863
23864
|
replyNext,
|
|
23864
23865
|
questions2,
|
|
@@ -23870,7 +23871,7 @@ var STATUS_SIGNALS = [
|
|
|
23870
23871
|
children
|
|
23871
23872
|
];
|
|
23872
23873
|
|
|
23873
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
23874
23875
|
var DAY4 = 864e5;
|
|
23875
23876
|
var STATUS_WINDOW = 300;
|
|
23876
23877
|
var STATUS_CHATS = 16;
|
|
@@ -24059,7 +24060,69 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
24059
24060
|
};
|
|
24060
24061
|
}, "projectStatus");
|
|
24061
24062
|
|
|
24062
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24063
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/project-activity.js
|
|
24064
|
+
var TOP = 3;
|
|
24065
|
+
var projectActivity = /* @__PURE__ */ __name(async (store, input) => {
|
|
24066
|
+
const until = input.until ?? Date.now();
|
|
24067
|
+
if (!(input.since < until))
|
|
24068
|
+
throw new CliError("validation_error", "the window must start before it ends");
|
|
24069
|
+
const whole3 = /* @__PURE__ */ __name((n) => n === void 0 || Number.isInteger(n) && n >= 0, "whole");
|
|
24070
|
+
if (!(input.limit >= 1 && whole3(input.limit) && whole3(input.offset) && whole3(input.top)))
|
|
24071
|
+
throw new CliError("validation_error", "limit must be at least 1; offset and top whole numbers from 0");
|
|
24072
|
+
const catalog = await projectsCatalog(store);
|
|
24073
|
+
const linked = [];
|
|
24074
|
+
for (const [ref, entry] of catalog) {
|
|
24075
|
+
const root = { ref, key: entry.key ?? null, name: entry.name };
|
|
24076
|
+
const { children: children2, cut } = await childrenOf(store, root, catalog);
|
|
24077
|
+
const chats = /* @__PURE__ */ new Map();
|
|
24078
|
+
for (const project2 of [root, ...children2])
|
|
24079
|
+
for (const link4 of await linkedChatsOf(store, project2.ref)) {
|
|
24080
|
+
if (!inAccounts(input.accounts, link4.provider, link4.account))
|
|
24081
|
+
continue;
|
|
24082
|
+
chats.set(refOf(link4), link4);
|
|
24083
|
+
}
|
|
24084
|
+
linked.push({
|
|
24085
|
+
project: ref,
|
|
24086
|
+
key: root.key,
|
|
24087
|
+
name: root.name,
|
|
24088
|
+
chats: [...chats.values()],
|
|
24089
|
+
partial: cut.some((one2) => one2.reason !== "cycle")
|
|
24090
|
+
});
|
|
24091
|
+
}
|
|
24092
|
+
const unique = new Map(linked.flatMap(({ chats }) => chats.map((chat) => [refOf(chat), chat])));
|
|
24093
|
+
const asked = [...unique.values()];
|
|
24094
|
+
const counts = await store.messages.chatActivityCounts(asked.map((chat) => ({ account: { provider: chat.provider, account: chat.account }, chatId: chat.chat })), { since: input.since, until, now: Date.now() });
|
|
24095
|
+
const countOf = new Map(asked.map((chat, index) => [refOf(chat), counts[index]]));
|
|
24096
|
+
const all = linked.map(({ project: project2, key, name, chats, partial }) => {
|
|
24097
|
+
const known2 = chats.flatMap((chat) => {
|
|
24098
|
+
const count4 = countOf.get(refOf(chat));
|
|
24099
|
+
return count4 ? [{ ref: refOf(chat), ...count4 }] : [];
|
|
24100
|
+
});
|
|
24101
|
+
const counted2 = known2.filter((chat) => !chat.muted);
|
|
24102
|
+
const last = counted2.map((chat) => chat.lastAt).filter((at) => at !== null);
|
|
24103
|
+
return {
|
|
24104
|
+
ref: project2,
|
|
24105
|
+
key,
|
|
24106
|
+
name,
|
|
24107
|
+
chats: chats.length,
|
|
24108
|
+
muted: known2.length - counted2.length,
|
|
24109
|
+
messages: counted2.reduce((sum2, chat) => sum2 + chat.messages, 0),
|
|
24110
|
+
sent: counted2.reduce((sum2, chat) => sum2 + chat.sent, 0),
|
|
24111
|
+
lastAt: last.sort().at(-1) ?? null,
|
|
24112
|
+
top: counted2.filter((chat) => chat.messages > 0).sort((a, b) => b.messages - a.messages || a.ref.localeCompare(b.ref, void 0, { numeric: true })).slice(0, input.top ?? TOP).map(({ ref, title, messages }) => ({ ref, title, messages })),
|
|
24113
|
+
partial
|
|
24114
|
+
};
|
|
24115
|
+
});
|
|
24116
|
+
all.sort((a, b) => b.messages - a.messages || (b.lastAt ?? "").localeCompare(a.lastAt ?? "") || b.chats - a.chats || a.ref.localeCompare(b.ref, void 0, { numeric: true }));
|
|
24117
|
+
return {
|
|
24118
|
+
items: all.slice(input.offset, input.offset + input.limit),
|
|
24119
|
+
total: all.length,
|
|
24120
|
+
hasMore: input.offset + input.limit < all.length
|
|
24121
|
+
};
|
|
24122
|
+
}, "projectActivity");
|
|
24123
|
+
var refOf = /* @__PURE__ */ __name((chat) => formatReference({ type: "chat", provider: chat.provider, account: chat.account, chat: chat.chat }), "refOf");
|
|
24124
|
+
|
|
24125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
24063
24126
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
24064
24127
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
24065
24128
|
if (deps.offline)
|
|
@@ -24131,7 +24194,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
24131
24194
|
};
|
|
24132
24195
|
}, "accountService");
|
|
24133
24196
|
|
|
24134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24197
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
24135
24198
|
var MINUTE = 6e4;
|
|
24136
24199
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
24137
24200
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -24150,7 +24213,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
24150
24213
|
return new Date(at - at % MINUTE).toISOString();
|
|
24151
24214
|
}, "sendTime");
|
|
24152
24215
|
|
|
24153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24216
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
24154
24217
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write2) => {
|
|
24155
24218
|
try {
|
|
24156
24219
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -24397,7 +24460,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
24397
24460
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
24398
24461
|
}, "linkLimits");
|
|
24399
24462
|
|
|
24400
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24463
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
24401
24464
|
var THREADS_PAGE = 500;
|
|
24402
24465
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
24403
24466
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -24476,7 +24539,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
24476
24539
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
24477
24540
|
}, "readMail");
|
|
24478
24541
|
|
|
24479
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24542
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
24480
24543
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
24481
24544
|
var positiveSources = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? node.field === "in" ? [node.value.toLowerCase()] : [] : node.clauses.filter(({ occur }) => occur !== "must_not").flatMap(({ node: node2 }) => positiveSources(node2)), "positiveSources");
|
|
24482
24545
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -24825,7 +24888,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
24825
24888
|
};
|
|
24826
24889
|
}, "statsLucene");
|
|
24827
24890
|
|
|
24828
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24891
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
24829
24892
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
24830
24893
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
24831
24894
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -24865,7 +24928,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
24865
24928
|
};
|
|
24866
24929
|
}, "dateWindow");
|
|
24867
24930
|
|
|
24868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
24869
24932
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
24870
24933
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
24871
24934
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -25034,7 +25097,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
25034
25097
|
};
|
|
25035
25098
|
}, "readRankingSelection");
|
|
25036
25099
|
|
|
25037
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
25038
25101
|
var canonical = /* @__PURE__ */ __name((value, nested = false) => Array.isArray(value) ? value.map((one2) => canonical(one2, true)) : value !== null && typeof value === "object" ? Object.fromEntries(Object.entries(value).filter(([, one2]) => one2 !== void 0 && (nested || one2 !== false)).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(([key, one2]) => [key, canonical(one2, true)])) : value, "canonical");
|
|
25039
25102
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
25040
25103
|
command,
|
|
@@ -25044,7 +25107,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
25044
25107
|
fieldsVersion: FIELD_VERSION
|
|
25045
25108
|
}), "searchRecordOf");
|
|
25046
25109
|
|
|
25047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25110
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
25048
25111
|
function invalid2(message) {
|
|
25049
25112
|
throw new CliError("validation_error", message);
|
|
25050
25113
|
}
|
|
@@ -25338,10 +25401,10 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
25338
25401
|
}, "evidence")
|
|
25339
25402
|
}), "adminStatisticsService");
|
|
25340
25403
|
|
|
25341
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25404
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
25342
25405
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
25343
25406
|
|
|
25344
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25407
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
25345
25408
|
var REQUEST_MS = 400;
|
|
25346
25409
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
25347
25410
|
const lowest = ranges[0];
|
|
@@ -25364,13 +25427,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
25364
25427
|
};
|
|
25365
25428
|
}, "estimateBackfill");
|
|
25366
25429
|
|
|
25367
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
25368
25431
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
25369
25432
|
...error,
|
|
25370
25433
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
25371
25434
|
}), "withRecovery");
|
|
25372
25435
|
|
|
25373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25436
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
25374
25437
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
25375
25438
|
if (isCliFailure(error))
|
|
25376
25439
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -25453,7 +25516,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
25453
25516
|
};
|
|
25454
25517
|
}, "mergeBatches");
|
|
25455
25518
|
|
|
25456
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25519
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
25457
25520
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
25458
25521
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
25459
25522
|
var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
@@ -25476,7 +25539,7 @@ var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
|
25476
25539
|
}
|
|
25477
25540
|
}, "patiently");
|
|
25478
25541
|
|
|
25479
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25542
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
25480
25543
|
var CONTEXT_MESSAGES = 3;
|
|
25481
25544
|
var CONTEXT_MINUTES = 10;
|
|
25482
25545
|
var MAX_CHARS = 1200;
|
|
@@ -25500,12 +25563,12 @@ var context = {
|
|
|
25500
25563
|
}, "describe")
|
|
25501
25564
|
};
|
|
25502
25565
|
|
|
25503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25566
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
25504
25567
|
var BUILT_INS = [context];
|
|
25505
25568
|
var providers = [...BUILT_INS];
|
|
25506
25569
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
25507
25570
|
|
|
25508
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25571
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
25509
25572
|
var READ_PAGE = 5e3;
|
|
25510
25573
|
var CHAIN = 50;
|
|
25511
25574
|
var CONVERSATION_QUERY = {
|
|
@@ -25657,7 +25720,7 @@ var sized = /* @__PURE__ */ __name((size4) => {
|
|
|
25657
25720
|
return size4;
|
|
25658
25721
|
}, "sized");
|
|
25659
25722
|
|
|
25660
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
25661
25724
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
25662
25725
|
var MESSAGE_PAGE = 5e3;
|
|
25663
25726
|
var PER_SESSION = 8;
|
|
@@ -25676,7 +25739,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
25676
25739
|
price: remote.price,
|
|
25677
25740
|
installed: true,
|
|
25678
25741
|
perBatch: PER_REQUEST * concurrency,
|
|
25679
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
25742
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-HVKKXNYZ.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
25680
25743
|
};
|
|
25681
25744
|
}
|
|
25682
25745
|
const model = textModel(choice, deps.env);
|
|
@@ -25693,7 +25756,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
25693
25756
|
if (!isTextModelInstalled(model, directory2))
|
|
25694
25757
|
throw notDownloaded(model.id);
|
|
25695
25758
|
if (apart) {
|
|
25696
|
-
const { openProcess } = await import("./process-
|
|
25759
|
+
const { openProcess } = await import("./process-FMQ7Q7AI.js");
|
|
25697
25760
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
25698
25761
|
}
|
|
25699
25762
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -25982,7 +26045,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
25982
26045
|
return { ...one2, state };
|
|
25983
26046
|
}, "shaped");
|
|
25984
26047
|
|
|
25985
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26048
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
25986
26049
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
25987
26050
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
|
|
25988
26051
|
for (const [key, value, maximum] of [
|
|
@@ -26035,7 +26098,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
|
|
|
26035
26098
|
}
|
|
26036
26099
|
}, "catchUpSearch");
|
|
26037
26100
|
|
|
26038
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26101
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
26039
26102
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
26040
26103
|
if (deps.reads === "store") {
|
|
26041
26104
|
throw new CliError("validation_error", `${what} asks for older history, and this messenger pushes its history instead \u2014 keep \`${typedCommand(deps.messenger.app.command, "serve")}\` running`);
|
|
@@ -26416,7 +26479,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
26416
26479
|
return message?.timestamp ?? fallback;
|
|
26417
26480
|
}, "timeOfKey");
|
|
26418
26481
|
|
|
26419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
26420
26483
|
import { createHash as createHash7, randomUUID as randomUUID5 } from "node:crypto";
|
|
26421
26484
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
26422
26485
|
var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
|
|
@@ -26553,16 +26616,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
26553
26616
|
return { plan, repair };
|
|
26554
26617
|
}, "gapsService");
|
|
26555
26618
|
|
|
26556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26619
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
26557
26620
|
import { createHash as createHash9 } from "node:crypto";
|
|
26558
26621
|
import { constants as constants2, mkdirSync as mkdirSync5 } from "node:fs";
|
|
26559
26622
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
26560
26623
|
|
|
26561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
26562
26625
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
26563
26626
|
import { basename as basename4, join as join12, relative as relative2, sep as sep2 } from "node:path";
|
|
26564
26627
|
|
|
26565
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
26566
26629
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
26567
26630
|
import { open as open4, stat } from "node:fs/promises";
|
|
26568
26631
|
import { basename as basename3, dirname as dirname6, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -26764,7 +26827,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read2) => {
|
|
|
26764
26827
|
return { name, source };
|
|
26765
26828
|
}, "readStickerFile");
|
|
26766
26829
|
|
|
26767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26830
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
26768
26831
|
var MAX_FILES = 1e4;
|
|
26769
26832
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app, env) => {
|
|
26770
26833
|
if (refusedPlace(directory2, app, env))
|
|
@@ -26833,15 +26896,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
26833
26896
|
return choices;
|
|
26834
26897
|
}, "directoryPaths");
|
|
26835
26898
|
|
|
26836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
26837
26900
|
import { posix } from "node:path";
|
|
26838
26901
|
|
|
26839
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
26840
26903
|
import { setImmediate as tick } from "node:timers/promises";
|
|
26841
26904
|
import { crc32 } from "node:zlib";
|
|
26842
26905
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
26843
26906
|
|
|
26844
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
26845
26908
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
26846
26909
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
26847
26910
|
var SAMPLE = 65536;
|
|
@@ -26943,7 +27006,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
26943
27006
|
return result.text;
|
|
26944
27007
|
}, "decodeXml");
|
|
26945
27008
|
|
|
26946
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27009
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
26947
27010
|
var MAX_PART = 10 * 1024 * 1024;
|
|
26948
27011
|
var MAX_ENTRIES = 1e3;
|
|
26949
27012
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -27158,7 +27221,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
27158
27221
|
return found;
|
|
27159
27222
|
}, "elements");
|
|
27160
27223
|
|
|
27161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
27162
27225
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
27163
27226
|
let name = "";
|
|
27164
27227
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -27213,7 +27276,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
27213
27276
|
return { text: parts.join("").trim(), truncated: false };
|
|
27214
27277
|
}, "sheetText");
|
|
27215
27278
|
|
|
27216
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
27217
27280
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
27218
27281
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
27219
27282
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -27613,10 +27676,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
27613
27676
|
}
|
|
27614
27677
|
}, "readDocument");
|
|
27615
27678
|
|
|
27616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27679
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
27617
27680
|
import { extname as extname3 } from "node:path";
|
|
27618
27681
|
|
|
27619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27682
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
27620
27683
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
27621
27684
|
import { dirname as dirname7, extname as extname2, join as join13 } from "node:path";
|
|
27622
27685
|
import { fileURLToPath } from "node:url";
|
|
@@ -27677,7 +27740,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
27677
27740
|
}
|
|
27678
27741
|
}, "derived");
|
|
27679
27742
|
|
|
27680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27743
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
27681
27744
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
27682
27745
|
var image2 = {
|
|
27683
27746
|
id: "image",
|
|
@@ -27686,7 +27749,7 @@ var image2 = {
|
|
|
27686
27749
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
27687
27750
|
};
|
|
27688
27751
|
|
|
27689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
27690
27753
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
27691
27754
|
var doc = {
|
|
27692
27755
|
id: "doc",
|
|
@@ -27698,7 +27761,7 @@ var doc = {
|
|
|
27698
27761
|
}), "read")
|
|
27699
27762
|
};
|
|
27700
27763
|
|
|
27701
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27764
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
27702
27765
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
27703
27766
|
var docx = {
|
|
27704
27767
|
id: "docx",
|
|
@@ -27711,7 +27774,7 @@ var docx = {
|
|
|
27711
27774
|
}), "read")
|
|
27712
27775
|
};
|
|
27713
27776
|
|
|
27714
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27777
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
27715
27778
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
27716
27779
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
27717
27780
|
"fonttbl",
|
|
@@ -27887,7 +27950,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
27887
27950
|
}, "htmlText");
|
|
27888
27951
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
27889
27952
|
|
|
27890
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
27891
27954
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
27892
27955
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
27893
27956
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -27943,7 +28006,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
27943
28006
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
27944
28007
|
}, "markdownSections");
|
|
27945
28008
|
|
|
27946
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28009
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
27947
28010
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
27948
28011
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
27949
28012
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -28014,7 +28077,7 @@ var html = {
|
|
|
28014
28077
|
}, "read")
|
|
28015
28078
|
};
|
|
28016
28079
|
|
|
28017
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28080
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
28018
28081
|
var office = {
|
|
28019
28082
|
id: "office",
|
|
28020
28083
|
version: documentExtractor("odt"),
|
|
@@ -28025,7 +28088,7 @@ var office = {
|
|
|
28025
28088
|
}, "read")
|
|
28026
28089
|
};
|
|
28027
28090
|
|
|
28028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28091
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
28029
28092
|
var pdf = {
|
|
28030
28093
|
id: "pdf",
|
|
28031
28094
|
version: "unpdf",
|
|
@@ -28092,7 +28155,7 @@ var pdf = {
|
|
|
28092
28155
|
}), "read")
|
|
28093
28156
|
};
|
|
28094
28157
|
|
|
28095
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
28096
28159
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
28097
28160
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
28098
28161
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -28112,7 +28175,7 @@ var plain = {
|
|
|
28112
28175
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
28113
28176
|
};
|
|
28114
28177
|
|
|
28115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
28116
28179
|
var rtf = {
|
|
28117
28180
|
id: "rtf",
|
|
28118
28181
|
version: "v1",
|
|
@@ -28120,10 +28183,10 @@ var rtf = {
|
|
|
28120
28183
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
28121
28184
|
};
|
|
28122
28185
|
|
|
28123
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28186
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
28124
28187
|
import { basename as basename5 } from "node:path";
|
|
28125
28188
|
|
|
28126
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28189
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
28127
28190
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
28128
28191
|
const cells = [];
|
|
28129
28192
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -28161,7 +28224,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
28161
28224
|
return { cells, truncated };
|
|
28162
28225
|
}, "delimitedSpans");
|
|
28163
28226
|
|
|
28164
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
28165
28228
|
var DELIMITED = {
|
|
28166
28229
|
".csv": ",",
|
|
28167
28230
|
".tsv": " ",
|
|
@@ -28200,7 +28263,7 @@ var sheets = {
|
|
|
28200
28263
|
}, "read")
|
|
28201
28264
|
};
|
|
28202
28265
|
|
|
28203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28266
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
28204
28267
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
28205
28268
|
var HEAD_BYTES = 1024;
|
|
28206
28269
|
var readers = [...BUILT_INS2];
|
|
@@ -28210,7 +28273,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
28210
28273
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
28211
28274
|
}, "readWithRegistry");
|
|
28212
28275
|
|
|
28213
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28276
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
28214
28277
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
28215
28278
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
28216
28279
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -29289,7 +29352,7 @@ function imageSize(input) {
|
|
|
29289
29352
|
}
|
|
29290
29353
|
__name(imageSize, "imageSize");
|
|
29291
29354
|
|
|
29292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29355
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
29293
29356
|
var MAX_PAGES = 20;
|
|
29294
29357
|
var MAX_PIXELS = 2e7;
|
|
29295
29358
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -29440,7 +29503,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
29440
29503
|
}
|
|
29441
29504
|
}, "ocrPdf");
|
|
29442
29505
|
|
|
29443
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
29444
29507
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
29445
29508
|
const limits = pdfPreviewLimits(env);
|
|
29446
29509
|
const cancelled3 = /* @__PURE__ */ __name(() => {
|
|
@@ -29517,7 +29580,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
29517
29580
|
}
|
|
29518
29581
|
}, "pdfPreview");
|
|
29519
29582
|
|
|
29520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29583
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
29521
29584
|
import { createHash as createHash8 } from "node:crypto";
|
|
29522
29585
|
import { constants } from "node:fs";
|
|
29523
29586
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -29625,7 +29688,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
29625
29688
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
29626
29689
|
}, "transferMime");
|
|
29627
29690
|
|
|
29628
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29691
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
29629
29692
|
import { createWriteStream, mkdirSync as mkdirSync4 } from "node:fs";
|
|
29630
29693
|
import { link as link3, rm } from "node:fs/promises";
|
|
29631
29694
|
import { join as join14, resolve as resolve6 } from "node:path";
|
|
@@ -29739,7 +29802,7 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
29739
29802
|
}
|
|
29740
29803
|
}, "save");
|
|
29741
29804
|
|
|
29742
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
29743
29806
|
var ATTACHMENT_QUERY = {
|
|
29744
29807
|
entity: "attachment",
|
|
29745
29808
|
backend: "sql",
|
|
@@ -30162,7 +30225,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30162
30225
|
}, "setText")
|
|
30163
30226
|
}), "attachmentsService");
|
|
30164
30227
|
|
|
30165
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30228
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
30166
30229
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
30167
30230
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
30168
30231
|
const store = await accountStore(deps);
|
|
@@ -30192,7 +30255,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30192
30255
|
}, "list")
|
|
30193
30256
|
}), "chatDocumentsService");
|
|
30194
30257
|
|
|
30195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
30196
30259
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
30197
30260
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
30198
30261
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -30279,7 +30342,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
30279
30342
|
}
|
|
30280
30343
|
}, "isRetentionSelection");
|
|
30281
30344
|
|
|
30282
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
30283
30346
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
30284
30347
|
const fields = text2.split(",").map((one2) => one2.trim());
|
|
30285
30348
|
if (!fields.length || fields.some((one2) => !COUNTER_FIELDS.includes(one2)) || new Set(fields).size !== fields.length)
|
|
@@ -30486,7 +30549,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
30486
30549
|
};
|
|
30487
30550
|
}, "countersService");
|
|
30488
30551
|
|
|
30489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30552
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
30490
30553
|
var SYNC_KEY = "messages.sync-first";
|
|
30491
30554
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
30492
30555
|
var keyOf3 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -30618,7 +30681,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
30618
30681
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
30619
30682
|
}), "withRefresh");
|
|
30620
30683
|
|
|
30621
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30684
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
30622
30685
|
var CANDIDATES = 50;
|
|
30623
30686
|
var WORD_HITS = 200;
|
|
30624
30687
|
var RRF_K = 60;
|
|
@@ -30893,13 +30956,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
30893
30956
|
return mean2.map((value) => value / length);
|
|
30894
30957
|
}, "meanOf");
|
|
30895
30958
|
|
|
30896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30959
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
30897
30960
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
30898
30961
|
...embeddingsMaintenance(deps),
|
|
30899
30962
|
...embeddingsSearch(deps)
|
|
30900
30963
|
}), "embeddingsService");
|
|
30901
30964
|
|
|
30902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30965
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
30903
30966
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
30904
30967
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
30905
30968
|
if (deps.offline)
|
|
@@ -31040,7 +31103,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
31040
31103
|
};
|
|
31041
31104
|
}, "foldersService");
|
|
31042
31105
|
|
|
31043
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31106
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
31044
31107
|
var INBOX_CHATS = 20;
|
|
31045
31108
|
var REVIEW_DAYS = 3;
|
|
31046
31109
|
var UNANSWERED_HOURS = 24;
|
|
@@ -31248,7 +31311,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
31248
31311
|
};
|
|
31249
31312
|
}, "inboxService");
|
|
31250
31313
|
|
|
31251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31314
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
31252
31315
|
var REVIEW_COUNT = 500;
|
|
31253
31316
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
31254
31317
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -31327,7 +31390,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
31327
31390
|
};
|
|
31328
31391
|
}, "mentionsService");
|
|
31329
31392
|
|
|
31330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31393
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
31331
31394
|
var invalid3 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
31332
31395
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
31333
31396
|
const { text: text2, spans } = formatted2;
|
|
@@ -31387,7 +31450,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
31387
31450
|
};
|
|
31388
31451
|
}, "visibleFormattedText");
|
|
31389
31452
|
|
|
31390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31453
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
31391
31454
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
31392
31455
|
position,
|
|
31393
31456
|
kind,
|
|
@@ -31436,7 +31499,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
31436
31499
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
31437
31500
|
}, "validatePermalink");
|
|
31438
31501
|
|
|
31439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31502
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
31440
31503
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
31441
31504
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
31442
31505
|
return `${seconds / 86400}d`;
|
|
@@ -31468,7 +31531,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
31468
31531
|
return seconds;
|
|
31469
31532
|
}, "pinDurationOf");
|
|
31470
31533
|
|
|
31471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
31472
31535
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
31473
31536
|
if (sendAs === void 0) {
|
|
31474
31537
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -31493,7 +31556,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
31493
31556
|
return sendAs;
|
|
31494
31557
|
}, "typedSendAs");
|
|
31495
31558
|
|
|
31496
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31559
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
31497
31560
|
var TOTAL_CAP = 1e4;
|
|
31498
31561
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
31499
31562
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -31504,7 +31567,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
31504
31567
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
31505
31568
|
}, "totalOf");
|
|
31506
31569
|
|
|
31507
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
31508
31571
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
31509
31572
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
31510
31573
|
let narrows = false;
|
|
@@ -31533,7 +31596,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
31533
31596
|
return wanted(root).join(" ").trim();
|
|
31534
31597
|
}, "meaningWords");
|
|
31535
31598
|
|
|
31536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31599
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
31537
31600
|
var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
31538
31601
|
var scaffolding = new Set(words2("what which how many much who where when is are was were do does did can could should we the a an for of to under from in on at has have \u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043A\u0430\u043A\u043E\u0439 \u043A\u0430\u043A\u0430\u044F \u043A\u0430\u043A\u0438\u0435 \u043A\u0430\u043A\u043E\u0435 \u043A\u0442\u043E \u043A\u043E\u043C\u0443 \u043A\u0435\u043C \u0433\u0434\u0435 \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043A \u0447\u0442\u043E \u0432\u043E \u043F\u043E \u043D\u0430 \u0432 \u043A \u0441 \u0443 \u0447\u0435\u0440\u0435\u0437 \u043B\u0438 \u0434\u043E\u043B\u0436\u0435\u043D \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0443\u0436\u043D\u043E \u0438\u0434\u0451\u0442 \u0438\u0434\u0435\u0442 \u043C\u043E\u0436\u043D\u043E \u043C\u043E\u0436\u0435\u0442 \u043C\u043E\u0433\u0443\u0442"));
|
|
31539
31602
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -31666,7 +31729,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
31666
31729
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
31667
31730
|
}, "questionLookup");
|
|
31668
31731
|
|
|
31669
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31732
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
31670
31733
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
31671
31734
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
31672
31735
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
|
|
@@ -31860,7 +31923,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
31860
31923
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
|
|
31861
31924
|
}, "signals");
|
|
31862
31925
|
|
|
31863
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
31864
31927
|
var MEANING_DEPTH = 100;
|
|
31865
31928
|
var RRF_K2 = 60;
|
|
31866
31929
|
var RERANK_DEPTH = 50;
|
|
@@ -32186,7 +32249,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
32186
32249
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
32187
32250
|
}, "mixedWithReranker");
|
|
32188
32251
|
|
|
32189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
32190
32253
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
32191
32254
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
32192
32255
|
var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
|
|
@@ -32385,7 +32448,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
32385
32448
|
return result;
|
|
32386
32449
|
}, "readThreadContext");
|
|
32387
32450
|
|
|
32388
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32451
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
32389
32452
|
var SEARCH_FILL_MS = 200;
|
|
32390
32453
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
32391
32454
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -32454,7 +32517,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
32454
32517
|
}, "accountOf");
|
|
32455
32518
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
32456
32519
|
|
|
32457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
|
|
32458
32521
|
var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
32459
32522
|
const chosen = chosenTextModel(env);
|
|
32460
32523
|
if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
|
|
@@ -32469,12 +32532,12 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
|
32469
32532
|
return (counts.get(before2) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
|
|
32470
32533
|
}, "meaningModel");
|
|
32471
32534
|
|
|
32472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32473
32536
|
import { createHash as createHash10 } from "node:crypto";
|
|
32474
32537
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
32475
32538
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
32476
32539
|
|
|
32477
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32540
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
32478
32541
|
var GROUP_SETTINGS = [
|
|
32479
32542
|
"allCanPin",
|
|
32480
32543
|
"onlyAdminsAdd",
|
|
@@ -32488,7 +32551,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
32488
32551
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
32489
32552
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
32490
32553
|
|
|
32491
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32554
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32492
32555
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
32493
32556
|
var PICTURE_FLOOR = 0.25;
|
|
32494
32557
|
var PAGE4 = 50;
|
|
@@ -32505,7 +32568,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
32505
32568
|
const directory2 = imageModelsDirectory(deps.env);
|
|
32506
32569
|
if (!isImageModelInstalled(model2, directory2))
|
|
32507
32570
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
32508
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
32571
|
+
const { openPictureEmbedder } = await import("./embedder-IGI2UTFK.js");
|
|
32509
32572
|
return openPictureEmbedder(model2, directory2);
|
|
32510
32573
|
}, "open");
|
|
32511
32574
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -32702,7 +32765,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
32702
32765
|
}, "search")
|
|
32703
32766
|
}), "withPictures");
|
|
32704
32767
|
|
|
32705
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32768
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
32706
32769
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
32707
32770
|
try {
|
|
32708
32771
|
const text2 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -32781,7 +32844,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
32781
32844
|
}
|
|
32782
32845
|
}, "meaningLane");
|
|
32783
32846
|
|
|
32784
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32847
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
32785
32848
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
32786
32849
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
32787
32850
|
if (choice === "off")
|
|
@@ -32793,9 +32856,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32793
32856
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
32794
32857
|
try {
|
|
32795
32858
|
const warm = deps.embedders;
|
|
32796
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
32859
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-FMQ7Q7AI.js")).openRerankerProcess(model, directory2, {
|
|
32797
32860
|
threads: defaultThreads()
|
|
32798
|
-
})) : await (await import("./rerank-
|
|
32861
|
+
})) : await (await import("./rerank-IXMWD7JV.js")).openReranker(model, directory2);
|
|
32799
32862
|
return {
|
|
32800
32863
|
model: model.id,
|
|
32801
32864
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -32815,7 +32878,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32815
32878
|
};
|
|
32816
32879
|
}, "rerankLane");
|
|
32817
32880
|
|
|
32818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32881
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/search/question-period.js
|
|
32819
32882
|
var DAY5 = 864e5;
|
|
32820
32883
|
var SPAN = { start: 0, end: 0 };
|
|
32821
32884
|
var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
|
|
@@ -32940,17 +33003,17 @@ var questionPeriod = /* @__PURE__ */ __name((text2, now, zone) => {
|
|
|
32940
33003
|
};
|
|
32941
33004
|
}, "questionPeriod");
|
|
32942
33005
|
|
|
32943
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
32944
33007
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
32945
33008
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
32946
33009
|
const directory2 = imageModelsDirectory(env);
|
|
32947
33010
|
if (!isImageModelInstalled(model, directory2))
|
|
32948
33011
|
throw new CliError("not_found", `the picture model is not downloaded \u2014 ${command === void 0 ? "install it with a WireCat CLI that has `images models download` (tg, max or wa); they share the model folder" : `\`${command} images models download ${model.id}\` fetches it`}`, { reason: "model.not-downloaded", model: model.id });
|
|
32949
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
33012
|
+
const { openPictureEmbedder } = await import("./embedder-IGI2UTFK.js");
|
|
32950
33013
|
return openPictureEmbedder(model, directory2);
|
|
32951
33014
|
}, "openPictureEmbedderFor");
|
|
32952
33015
|
|
|
32953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33016
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
32954
33017
|
var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) => {
|
|
32955
33018
|
const metadata = note2.frontMatter;
|
|
32956
33019
|
const account = accounts.find(({ id: id2 }) => String(id2) === note2.folderId);
|
|
@@ -32965,7 +33028,7 @@ var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) =
|
|
|
32965
33028
|
};
|
|
32966
33029
|
}, "documentSource");
|
|
32967
33030
|
|
|
32968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33031
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
32969
33032
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
32970
33033
|
const host = new URL(baseUrl).host;
|
|
32971
33034
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -32998,7 +33061,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
32998
33061
|
};
|
|
32999
33062
|
}, "embeddingKeys");
|
|
33000
33063
|
|
|
33001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
33002
33065
|
var options = strictObject({
|
|
33003
33066
|
temperature: range(0, 2),
|
|
33004
33067
|
top_p: range(0, 1),
|
|
@@ -33052,7 +33115,7 @@ var openai = {
|
|
|
33052
33115
|
}), "complete")
|
|
33053
33116
|
};
|
|
33054
33117
|
|
|
33055
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
33056
33119
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
33057
33120
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
33058
33121
|
if (deps.signal?.aborted)
|
|
@@ -33067,7 +33130,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
33067
33130
|
if (!adapter && target2.provider === "openai")
|
|
33068
33131
|
adapter = openai;
|
|
33069
33132
|
if (!adapter && target2.provider === "anthropic")
|
|
33070
|
-
adapter = (await import("./anthropic-
|
|
33133
|
+
adapter = (await import("./anthropic-FC6XUSWM.js")).anthropic;
|
|
33071
33134
|
if (!adapter)
|
|
33072
33135
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
33073
33136
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -33122,7 +33185,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
33122
33185
|
}, "complete")
|
|
33123
33186
|
}), "modelGateway");
|
|
33124
33187
|
|
|
33125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33188
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
|
|
33126
33189
|
var SECTION = "enrichment";
|
|
33127
33190
|
var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
|
|
33128
33191
|
var DEFAULT_BASE_URLS = {
|
|
@@ -33197,7 +33260,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
|
|
|
33197
33260
|
return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
|
|
33198
33261
|
}, "costOf");
|
|
33199
33262
|
|
|
33200
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33263
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/enrichment.js
|
|
33201
33264
|
var ENRICH_PER_RUN = 600;
|
|
33202
33265
|
var BATCH = 20;
|
|
33203
33266
|
var CONCURRENCY = 4;
|
|
@@ -33444,7 +33507,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
|
|
|
33444
33507
|
};
|
|
33445
33508
|
}, "enrichmentState");
|
|
33446
33509
|
|
|
33447
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33510
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
33448
33511
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
33449
33512
|
let root;
|
|
33450
33513
|
try {
|
|
@@ -33471,7 +33534,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words4) => {
|
|
|
33471
33534
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
33472
33535
|
}, "titleTiers");
|
|
33473
33536
|
|
|
33474
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33537
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
33475
33538
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
33476
33539
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
33477
33540
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -33954,7 +34017,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
33954
34017
|
};
|
|
33955
34018
|
}, "searchNotesOf");
|
|
33956
34019
|
|
|
33957
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
33958
34021
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
33959
34022
|
var iso = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
33960
34023
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -34072,7 +34135,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
34072
34135
|
};
|
|
34073
34136
|
}, "searchEvents");
|
|
34074
34137
|
|
|
34075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
|
|
34076
34139
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
34077
34140
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
34078
34141
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -34103,7 +34166,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words4, anyWo
|
|
|
34103
34166
|
};
|
|
34104
34167
|
}, "searchBusiness");
|
|
34105
34168
|
|
|
34106
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
34107
34170
|
var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
|
|
34108
34171
|
let before2 = Number.POSITIVE_INFINITY;
|
|
34109
34172
|
for (; ; ) {
|
|
@@ -34165,7 +34228,7 @@ var searchMeetingHits = /* @__PURE__ */ __name(async (store, query, request, opt
|
|
|
34165
34228
|
return { ...result, selection };
|
|
34166
34229
|
}, "searchMeetingHits");
|
|
34167
34230
|
|
|
34168
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34231
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
34169
34232
|
var MOST_HITS_PER_MEETING = 3;
|
|
34170
34233
|
var PAGE_ROWS = 200;
|
|
34171
34234
|
var MOST_PAGES = 25;
|
|
@@ -34393,7 +34456,7 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
|
|
|
34393
34456
|
foundBy: ["title"]
|
|
34394
34457
|
}), "titleItem");
|
|
34395
34458
|
|
|
34396
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/search-harder.js
|
|
34397
34460
|
var SECTION2 = "search_harder";
|
|
34398
34461
|
var HARDER_MODELS = {
|
|
34399
34462
|
anthropic: "claude-haiku-5-5",
|
|
@@ -34614,7 +34677,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
|
|
|
34614
34677
|
};
|
|
34615
34678
|
}, "reorderHarder");
|
|
34616
34679
|
|
|
34617
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34680
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
34618
34681
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm", "business", "meetings"];
|
|
34619
34682
|
var refusal = /* @__PURE__ */ __name((error, text2) => {
|
|
34620
34683
|
const { reason, span } = error.details ?? {};
|
|
@@ -34988,7 +35051,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
|
|
|
34988
35051
|
return ordered.map((item2, rank) => ({ item: item2, score: 1 - rank / PERIOD_DEPTH + (inside2(item2) ? PERIOD_BOOST : 0) })).sort((a, b) => b.score - a.score).map(({ item: item2 }) => item2);
|
|
34989
35052
|
}, "insidePeriodFirst");
|
|
34990
35053
|
|
|
34991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35054
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
34992
35055
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
34993
35056
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
34994
35057
|
var DEFAULT_BACKEND = "both";
|
|
@@ -35177,7 +35240,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
35177
35240
|
return { report, sources };
|
|
35178
35241
|
}, "searchServer");
|
|
35179
35242
|
|
|
35180
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35243
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
35181
35244
|
var DELETE_AT_ONCE = 10;
|
|
35182
35245
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
35183
35246
|
const files = fileLinks(attachments);
|
|
@@ -35617,7 +35680,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
35617
35680
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
35618
35681
|
}, "checkMediaOptions");
|
|
35619
35682
|
|
|
35620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35683
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
35621
35684
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
35622
35685
|
var RULES2 = {
|
|
35623
35686
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -35632,7 +35695,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
|
|
|
35632
35695
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
35633
35696
|
}), "classifyChannel");
|
|
35634
35697
|
|
|
35635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35698
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
35636
35699
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
35637
35700
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
35638
35701
|
const store = await deps.store();
|
|
@@ -35718,7 +35781,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
35718
35781
|
};
|
|
35719
35782
|
}, "metadataService");
|
|
35720
35783
|
|
|
35721
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35784
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
35722
35785
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
35723
35786
|
var LINK2 = /https?:\/\/\S+/i;
|
|
35724
35787
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -35906,7 +35969,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
35906
35969
|
}, "nextPoint");
|
|
35907
35970
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
35908
35971
|
|
|
35909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35972
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
35910
35973
|
import { existsSync as existsSync3, readFileSync as readFileSync5 } from "node:fs";
|
|
35911
35974
|
import { join as join15 } from "node:path";
|
|
35912
35975
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -36049,7 +36112,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
36049
36112
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
36050
36113
|
}, "assign");
|
|
36051
36114
|
|
|
36052
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
36053
36116
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
36054
36117
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
36055
36118
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -36086,7 +36149,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
36086
36149
|
return { chatId, rows, notes };
|
|
36087
36150
|
}, "moderateWith");
|
|
36088
36151
|
|
|
36089
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36152
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
36090
36153
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
36091
36154
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
36092
36155
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -36164,7 +36227,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
36164
36227
|
}, "removePerson")
|
|
36165
36228
|
}), "moderatorOf");
|
|
36166
36229
|
|
|
36167
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36230
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
36168
36231
|
var CONTEXT_MESSAGES2 = 10;
|
|
36169
36232
|
var CONTEXT_BYTES = 64 * 1024;
|
|
36170
36233
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -36463,10 +36526,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
36463
36526
|
};
|
|
36464
36527
|
}, "personMessages");
|
|
36465
36528
|
|
|
36466
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36529
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
36467
36530
|
import { createHash as createHash11 } from "node:crypto";
|
|
36468
36531
|
|
|
36469
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36532
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
36470
36533
|
var missing3 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
36471
36534
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
|
|
36472
36535
|
const parsed = parseMeetingReference(reference);
|
|
@@ -36484,7 +36547,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
36484
36547
|
return { parsed, meeting };
|
|
36485
36548
|
}, "authorizedMeetingMetadata");
|
|
36486
36549
|
|
|
36487
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
36488
36551
|
var hash = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
36489
36552
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
36490
36553
|
if (signal?.aborted)
|
|
@@ -36683,7 +36746,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
36683
36746
|
return { ...packet, fingerprint: hash(packet) };
|
|
36684
36747
|
}, "readMeetingEvidence");
|
|
36685
36748
|
|
|
36686
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36749
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
36687
36750
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
|
|
36688
36751
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
|
|
36689
36752
|
const requestedAccounts = options2.accountIds;
|
|
@@ -36782,7 +36845,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
36782
36845
|
};
|
|
36783
36846
|
}, "personMeetingContext");
|
|
36784
36847
|
|
|
36785
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
36786
36849
|
var PREPARE_BYTES = 96 * 1024;
|
|
36787
36850
|
var MEETINGS = 5;
|
|
36788
36851
|
var CUES = 3;
|
|
@@ -36905,7 +36968,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
36905
36968
|
}
|
|
36906
36969
|
}, "meetingsOf");
|
|
36907
36970
|
|
|
36908
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
36909
36972
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
36910
36973
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
36911
36974
|
const held = await storeIfOpen(deps);
|
|
@@ -36975,7 +37038,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
36975
37038
|
complete: false
|
|
36976
37039
|
})), "quiet");
|
|
36977
37040
|
|
|
36978
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37041
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
36979
37042
|
var TIMELINE_ITEMS = 50;
|
|
36980
37043
|
var TIMELINE_MAX = 500;
|
|
36981
37044
|
var SCOPES2 = ["personal", "work"];
|
|
@@ -37037,7 +37100,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
37037
37100
|
};
|
|
37038
37101
|
}, "personTimeline");
|
|
37039
37102
|
|
|
37040
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37103
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
37041
37104
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
37042
37105
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
37043
37106
|
const held = await storeIfOpen(deps);
|
|
@@ -37291,7 +37354,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
37291
37354
|
return rest;
|
|
37292
37355
|
}, "withoutPhone");
|
|
37293
37356
|
|
|
37294
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
37295
37358
|
var noteItem = /* @__PURE__ */ __name((provider, note2) => ({
|
|
37296
37359
|
id: note2.id,
|
|
37297
37360
|
contact: formatReference({ type: "contact", provider, id: note2.personId }),
|
|
@@ -37335,7 +37398,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
37335
37398
|
};
|
|
37336
37399
|
}, "privatePeopleService");
|
|
37337
37400
|
|
|
37338
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37401
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
37339
37402
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
37340
37403
|
total: 0,
|
|
37341
37404
|
population: 0,
|
|
@@ -37591,14 +37654,14 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
37591
37654
|
}, "evidence")
|
|
37592
37655
|
}), "rankingsService");
|
|
37593
37656
|
|
|
37594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37595
|
-
var FIELDS = ["date", "chat", "kind"];
|
|
37657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
37658
|
+
var FIELDS = ["date", "chat", "kind", "muted"];
|
|
37596
37659
|
var WAITING_TAIL = 100;
|
|
37597
37660
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
37598
37661
|
if (text2 === void 0)
|
|
37599
37662
|
return;
|
|
37600
37663
|
const refuse2 = /* @__PURE__ */ __name(() => {
|
|
37601
|
-
throw new CliError("validation_error", `${command} reads date:, chat: and
|
|
37664
|
+
throw new CliError("validation_error", `${command} reads date:, chat:, kind: and muted: terms, AND-ed \u2014 not words, other fields, OR or NOT`, { reason: "query.unsupported-field" });
|
|
37602
37665
|
}, "refuse");
|
|
37603
37666
|
const visit = /* @__PURE__ */ __name((node) => {
|
|
37604
37667
|
if (node.kind === "boolean")
|
|
@@ -37625,7 +37688,14 @@ var scopeOf3 = /* @__PURE__ */ __name((root, accounts) => {
|
|
|
37625
37688
|
scope.chats.push(chat);
|
|
37626
37689
|
else if (node.field === "kind")
|
|
37627
37690
|
scope.kinds.push(node.value.toLowerCase());
|
|
37628
|
-
else if (
|
|
37691
|
+
else if (node.field === "muted") {
|
|
37692
|
+
const muted = node.value.toLowerCase() === "true";
|
|
37693
|
+
if (scope.muted !== void 0 && scope.muted !== muted)
|
|
37694
|
+
throw new CliError("validation_error", "muted:true and muted:false cannot both hold", {
|
|
37695
|
+
reason: "query.conflict"
|
|
37696
|
+
});
|
|
37697
|
+
scope.muted = muted;
|
|
37698
|
+
} else if (date2) {
|
|
37629
37699
|
if (date2.lower !== void 0) {
|
|
37630
37700
|
const lower = date2.lower + (date2.lower_inclusive ? 0 : 1);
|
|
37631
37701
|
scope.since = Math.max(scope.since ?? lower, lower);
|
|
@@ -37718,7 +37788,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37718
37788
|
};
|
|
37719
37789
|
}, "replyStatsService");
|
|
37720
37790
|
|
|
37721
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37791
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
37722
37792
|
var savedSearchItem = /* @__PURE__ */ __name((one2) => ({
|
|
37723
37793
|
id: one2.id,
|
|
37724
37794
|
name: one2.name,
|
|
@@ -37847,7 +37917,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
37847
37917
|
};
|
|
37848
37918
|
}, "searchesService");
|
|
37849
37919
|
|
|
37850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37920
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
37851
37921
|
var TAGGING_QUERY = {
|
|
37852
37922
|
entity: "tagging",
|
|
37853
37923
|
backend: "sql",
|
|
@@ -37931,7 +38001,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37931
38001
|
};
|
|
37932
38002
|
}, "tagsService");
|
|
37933
38003
|
|
|
37934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
37935
38005
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
37936
38006
|
var PERIOD_FIELD = "created";
|
|
37937
38007
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -37959,9 +38029,11 @@ var spread = /* @__PURE__ */ __name((open7, closeMs, now) => ({
|
|
|
37959
38029
|
...open7.length > 0 ? { meanOpenAgeMs: mean(open7.map(({ createdAt }) => now - createdAt)) } : {}
|
|
37960
38030
|
}), "spread");
|
|
37961
38031
|
var and = /* @__PURE__ */ __name((parts) => parts.length === 0 ? void 0 : { sql: parts.map(({ sql }) => `(${sql})`).join(" AND "), params: parts.flatMap(({ params }) => params) }, "and");
|
|
37962
|
-
var taskStatsOf = /* @__PURE__ */ __name(async (store,
|
|
38032
|
+
var taskStatsOf = /* @__PURE__ */ __name(async (store, accounts, { by = "chat", query, timezone, group, kind }, columns, now = Date.now()) => {
|
|
37963
38033
|
if (query)
|
|
37964
38034
|
refuseNestedPeriod(query.root);
|
|
38035
|
+
const several = Array.isArray(accounts);
|
|
38036
|
+
const list3 = several ? [...new Map(accounts.map((one2) => [taskAccount(one2), one2])).values()] : [accounts];
|
|
37965
38037
|
const time = /* @__PURE__ */ __name((sql) => ({ type: "time", sql }), "time");
|
|
37966
38038
|
const read2 = { ...columns, [PERIOD_FIELD]: time("t.created_at"), closed: time("t.closed_at") };
|
|
37967
38039
|
const fixed = [
|
|
@@ -37971,17 +38043,26 @@ var taskStatsOf = /* @__PURE__ */ __name(async (store, account, { by = "chat", q
|
|
|
37971
38043
|
];
|
|
37972
38044
|
const options2 = { command: "stats tasks show", now, ...timezone === void 0 ? {} : { zone: timezone } };
|
|
37973
38045
|
const where = /* @__PURE__ */ __name((ast, more = []) => and([...fixed, ...more, ...ast ? [queryFilter(ast, read2, options2)] : []]), "where");
|
|
37974
|
-
const
|
|
37975
|
-
const
|
|
37976
|
-
const
|
|
37977
|
-
const
|
|
38046
|
+
const scopes = by === "project" ? [{ scope: { board: true } }] : list3.map((one2) => ({ account: one2, scope: { account: taskAccount(one2) } }));
|
|
38047
|
+
const rowsOf2 = /* @__PURE__ */ __name(async (filter) => (await Promise.all(scopes.map(async ({ account, scope }) => (await store.tasks.statRows(scope, filter)).map((row) => account ? { ...row, account } : row)))).flat(), "rowsOf");
|
|
38048
|
+
const all = await rowsOf2(where(withoutField(query, PERIOD_FIELD)));
|
|
38049
|
+
const created = await rowsOf2(where(query));
|
|
38050
|
+
const closed = await rowsOf2(where(query && { ...query, root: renamed(query.root, PERIOD_FIELD, "closed") }, [
|
|
37978
38051
|
{ sql: "t.closed_at IS NOT NULL", params: [] }
|
|
37979
38052
|
]));
|
|
37980
|
-
const keyOf7 = /* @__PURE__ */ __name((row) => by === "project" ? String(row.projectId) : row.group ?? ""
|
|
38053
|
+
const keyOf7 = /* @__PURE__ */ __name((row) => by === "project" ? String(row.projectId) : `${row.account ? taskAccount(row.account) : ""} ${row.group ?? ""}`, "keyOf");
|
|
37981
38054
|
const groups = /* @__PURE__ */ new Map();
|
|
37982
38055
|
const slot = /* @__PURE__ */ __name((row) => {
|
|
37983
38056
|
const key = keyOf7(row);
|
|
37984
|
-
const found = groups.get(key) ?? {
|
|
38057
|
+
const found = groups.get(key) ?? {
|
|
38058
|
+
group: by === "project" ? String(row.projectId) : row.group ?? "",
|
|
38059
|
+
...row.account ? { account: row.account } : {},
|
|
38060
|
+
first: row.createdAt,
|
|
38061
|
+
open: [],
|
|
38062
|
+
created: 0,
|
|
38063
|
+
closeMs: []
|
|
38064
|
+
};
|
|
38065
|
+
found.first = Math.min(found.first, row.createdAt);
|
|
37985
38066
|
groups.set(key, found);
|
|
37986
38067
|
return found;
|
|
37987
38068
|
}, "slot");
|
|
@@ -37992,22 +38073,25 @@ var taskStatsOf = /* @__PURE__ */ __name(async (store, account, { by = "chat", q
|
|
|
37992
38073
|
slot(row).created++;
|
|
37993
38074
|
for (const row of closed)
|
|
37994
38075
|
slot(row).closeMs.push((row.closedAt ?? row.createdAt) - row.createdAt);
|
|
37995
|
-
const kept2 = [...groups].filter((
|
|
37996
|
-
|
|
37997
|
-
|
|
37998
|
-
const
|
|
37999
|
-
|
|
38000
|
-
|
|
38076
|
+
const kept2 = [...groups.values()].filter((one2) => one2.open.length + one2.created + one2.closeMs.length > 0);
|
|
38077
|
+
if (several)
|
|
38078
|
+
kept2.sort((a, b) => a.first - b.first);
|
|
38079
|
+
const nameOf4 = await namesOf(store, by, kept2);
|
|
38080
|
+
const rows = kept2.map((one2) => ({
|
|
38081
|
+
group: one2.group,
|
|
38082
|
+
...several && one2.account ? { account: one2.account } : {},
|
|
38083
|
+
name: nameOf4(one2) ?? null,
|
|
38001
38084
|
open: one2.open.length,
|
|
38002
38085
|
created: one2.created,
|
|
38003
38086
|
closed: one2.closeMs.length,
|
|
38004
38087
|
...one2.open[0] ? { oldestOpenAt: new Date(one2.open[0].createdAt) } : {},
|
|
38005
38088
|
...spread(one2.open, one2.closeMs, now)
|
|
38006
38089
|
}));
|
|
38007
|
-
const open7 = kept2.flatMap((
|
|
38008
|
-
const closeMs = kept2.flatMap((
|
|
38090
|
+
const open7 = kept2.flatMap((one2) => one2.open);
|
|
38091
|
+
const closeMs = kept2.flatMap((one2) => one2.closeMs);
|
|
38009
38092
|
return {
|
|
38010
38093
|
by,
|
|
38094
|
+
...several ? { accounts: [...list3] } : {},
|
|
38011
38095
|
open: open7.length,
|
|
38012
38096
|
created: created.length,
|
|
38013
38097
|
closed: closeMs.length,
|
|
@@ -38015,6 +38099,20 @@ var taskStatsOf = /* @__PURE__ */ __name(async (store, account, { by = "chat", q
|
|
|
38015
38099
|
rows
|
|
38016
38100
|
};
|
|
38017
38101
|
}, "taskStatsOf");
|
|
38102
|
+
var namesOf = /* @__PURE__ */ __name(async (store, by, groups) => {
|
|
38103
|
+
if (by === "project") {
|
|
38104
|
+
const names2 = await store.tasks.statNames("project", groups.map(({ group }) => group));
|
|
38105
|
+
return ({ group }) => names2.get(group);
|
|
38106
|
+
}
|
|
38107
|
+
if (by === "meeting") {
|
|
38108
|
+
const names2 = await meetingNames(store, groups.map(({ group }) => group));
|
|
38109
|
+
return ({ group }) => names2.get(group);
|
|
38110
|
+
}
|
|
38111
|
+
const byAccount = /* @__PURE__ */ new Map();
|
|
38112
|
+
for (const account of new Set(groups.flatMap(({ account: account2 }) => account2 ? [taskAccount(account2)] : [])))
|
|
38113
|
+
byAccount.set(account, await store.tasks.statNames("chat", groups.filter((one2) => one2.account && taskAccount(one2.account) === account).map(({ group }) => group), account));
|
|
38114
|
+
return ({ group, account }) => account ? byAccount.get(taskAccount(account))?.get(group) : void 0;
|
|
38115
|
+
}, "namesOf");
|
|
38018
38116
|
var meetingIdOf = /* @__PURE__ */ __name((group) => {
|
|
38019
38117
|
try {
|
|
38020
38118
|
return String(parseMeetingReference(group).meetingId);
|
|
@@ -38034,7 +38132,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
38034
38132
|
}));
|
|
38035
38133
|
}, "meetingNames");
|
|
38036
38134
|
|
|
38037
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
38038
38136
|
var TASK_QUERY = {
|
|
38039
38137
|
entity: "task",
|
|
38040
38138
|
backend: "sql",
|
|
@@ -38473,7 +38571,14 @@ var tasksService = /* @__PURE__ */ __name((deps, categories) => {
|
|
|
38473
38571
|
await owned(store, account, subject);
|
|
38474
38572
|
return store.tasks.similar({ task: subject }, options2);
|
|
38475
38573
|
}), "similar"),
|
|
38476
|
-
stats: /* @__PURE__ */ __name(({ chat, ...request } = {}) =>
|
|
38574
|
+
stats: /* @__PURE__ */ __name(({ chat, accounts, ...request } = {}) => accounts ? (async () => {
|
|
38575
|
+
const store = await deps.store();
|
|
38576
|
+
const named4 = request.query ? walkQuery(request.query.root).some(({ field, operator }) => field === "chat" && operator !== "wildcard") : false;
|
|
38577
|
+
if (chat !== void 0 || named4)
|
|
38578
|
+
throw new CliError("validation_error", "a chat belongs to one account: name the account as well");
|
|
38579
|
+
const columns = taskColumns2(/* @__PURE__ */ new Map(), await taskTagFilters(store, request.query));
|
|
38580
|
+
return taskStatsOf(store, accounts, request, columns);
|
|
38581
|
+
})() : inStore(async (store, account) => {
|
|
38477
38582
|
const group = await groupOf(store, account, chat);
|
|
38478
38583
|
return taskStatsOf(store, account, { ...request, ...group === void 0 ? {} : { group } }, await queryColumns(store, account, request.query));
|
|
38479
38584
|
}), "stats")
|
|
@@ -38526,7 +38631,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
38526
38631
|
};
|
|
38527
38632
|
}, "taskView");
|
|
38528
38633
|
|
|
38529
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38634
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
38530
38635
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
38531
38636
|
const set = [closed, pinned, hidden].filter((one2) => one2 !== void 0).length;
|
|
38532
38637
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -38725,7 +38830,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
38725
38830
|
};
|
|
38726
38831
|
}, "topicsService");
|
|
38727
38832
|
|
|
38728
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/crm/sync.js
|
|
38729
38834
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
38730
38835
|
var GAPS = "crm:gaps";
|
|
38731
38836
|
var crmGapsOf = /* @__PURE__ */ __name(async (store, account) => {
|
|
@@ -38737,7 +38842,7 @@ var crmGapsOf = /* @__PURE__ */ __name(async (store, account) => {
|
|
|
38737
38842
|
}
|
|
38738
38843
|
}, "crmGapsOf");
|
|
38739
38844
|
|
|
38740
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/crm/writer.js
|
|
38741
38846
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
38742
38847
|
var CRM_WRITE_DEFAULTS = {
|
|
38743
38848
|
"deals.delete": "ask",
|
|
@@ -38745,7 +38850,7 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
38745
38850
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
38746
38851
|
};
|
|
38747
38852
|
|
|
38748
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/business-context.js
|
|
38749
38854
|
var SECTION_LIMIT = 20;
|
|
38750
38855
|
var STORE_PAGE = 500;
|
|
38751
38856
|
var sectionOf = /* @__PURE__ */ __name((all, limit, next, { more = false, total = all.length, newest = false } = {}) => {
|
|
@@ -38805,7 +38910,7 @@ var edgesOf = /* @__PURE__ */ __name(async (store, ref, scope) => {
|
|
|
38805
38910
|
}));
|
|
38806
38911
|
return { edges, full: hasMore };
|
|
38807
38912
|
}, "edgesOf");
|
|
38808
|
-
var
|
|
38913
|
+
var namesOf2 = /* @__PURE__ */ __name(async (store, refs) => {
|
|
38809
38914
|
const summaries = await store.refs.summaries([...new Set(refs)]);
|
|
38810
38915
|
return new Map([...summaries].map(([ref, summary]) => [ref, summary.title]));
|
|
38811
38916
|
}, "namesOf");
|
|
@@ -38869,7 +38974,7 @@ var coverageFor = /* @__PURE__ */ __name(async (store, base, scope) => {
|
|
|
38869
38974
|
}, "coverageFor");
|
|
38870
38975
|
var newestFirst2 = /* @__PURE__ */ __name((a, b) => (b.at ?? "").localeCompare(a.at ?? "") || a.ref.localeCompare(b.ref), "newestFirst");
|
|
38871
38976
|
|
|
38872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38977
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/communications.js
|
|
38873
38978
|
var MAIL_ROWS = 500;
|
|
38874
38979
|
var EVENT_ROWS2 = 1e3;
|
|
38875
38980
|
var calendarsOf = /* @__PURE__ */ __name(async (store, stored) => {
|
|
@@ -38995,7 +39100,7 @@ var communicationsOf = /* @__PURE__ */ __name(async (store, asked, scope, { sinc
|
|
|
38995
39100
|
};
|
|
38996
39101
|
}, "communicationsOf");
|
|
38997
39102
|
|
|
38998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39103
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/money-context.js
|
|
38999
39104
|
var invoiceLine = /* @__PURE__ */ __name((invoice, linkedBy) => ({
|
|
39000
39105
|
ref: invoice.ref,
|
|
39001
39106
|
title: invoice.title,
|
|
@@ -39067,7 +39172,7 @@ var moneyOf = /* @__PURE__ */ __name((rows, limit, next, complete) => {
|
|
|
39067
39172
|
};
|
|
39068
39173
|
}, "moneyOf");
|
|
39069
39174
|
|
|
39070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39175
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/organization-context.js
|
|
39071
39176
|
var dealLine = /* @__PURE__ */ __name((deal) => ({
|
|
39072
39177
|
ref: deal.ref,
|
|
39073
39178
|
kind: deal.kind,
|
|
@@ -39116,7 +39221,7 @@ var organizationContext = /* @__PURE__ */ __name(async (store, reference, { acco
|
|
|
39116
39221
|
const scope = scopeOf4(accounts, deniedKinds);
|
|
39117
39222
|
const own = (await store.knowledge.ownOrganizations()).some((one2) => one2.ref === ref);
|
|
39118
39223
|
const { edges, full } = await edgesOf(store, ref, scope);
|
|
39119
|
-
const names2 = await
|
|
39224
|
+
const names2 = await namesOf2(store, edges.flatMap(({ from, to }) => [from, to]));
|
|
39120
39225
|
const into = /* @__PURE__ */ __name((kind, from) => (edge) => edge.role.kind === kind && edge.to === ref && edge.from.startsWith(from) ? edge.from : void 0, "into");
|
|
39121
39226
|
const people = grouped(edges, into("member-of", "person:"), names2);
|
|
39122
39227
|
const customers = grouped(edges, into("customer-of", ""), names2);
|
|
@@ -39207,7 +39312,7 @@ var organizationContext = /* @__PURE__ */ __name(async (store, reference, { acco
|
|
|
39207
39312
|
};
|
|
39208
39313
|
}, "organizationContext");
|
|
39209
39314
|
|
|
39210
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39315
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/deal-context.js
|
|
39211
39316
|
var DAY6 = 864e5;
|
|
39212
39317
|
var dealContext = /* @__PURE__ */ __name(async (store, reference, { accounts, limit = SECTION_LIMIT, now = Date.now(), deniedKinds = [] } = {}) => {
|
|
39213
39318
|
const scope = scopeOf4(accounts, deniedKinds);
|
|
@@ -39224,7 +39329,7 @@ var dealContext = /* @__PURE__ */ __name(async (store, reference, { accounts, li
|
|
|
39224
39329
|
});
|
|
39225
39330
|
const { edges, full } = await edgesOf(store, deal.ref, scope);
|
|
39226
39331
|
const people = edges.filter((edge) => edge.role.kind === "related-to" && edge.from === deal.ref && edge.to.startsWith("person:"));
|
|
39227
|
-
const names2 = await
|
|
39332
|
+
const names2 = await namesOf2(store, people.map(({ to }) => to));
|
|
39228
39333
|
const participants = grouped(people, (edge) => edge.to, names2);
|
|
39229
39334
|
const owner = participants.find((one2) => one2.roles.some((role) => role.role === "owner" && isUsable(role.standing))) ?? null;
|
|
39230
39335
|
const organization2 = deal.organization;
|
|
@@ -39316,7 +39421,7 @@ var dealBrief = /* @__PURE__ */ __name((context2) => ({
|
|
|
39316
39421
|
notRead: context2.coverage.notRead
|
|
39317
39422
|
}), "dealBrief");
|
|
39318
39423
|
|
|
39319
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39424
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
39320
39425
|
import { createHash as createHash12, randomUUID as randomUUID6 } from "node:crypto";
|
|
39321
39426
|
var hash2 = /* @__PURE__ */ __name((value) => createHash12("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
39322
39427
|
var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -39390,7 +39495,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
39390
39495
|
return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
|
|
39391
39496
|
}, "prepareEvidencePacket");
|
|
39392
39497
|
|
|
39393
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
39394
39499
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
39395
39500
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
39396
39501
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -39410,7 +39515,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
39410
39515
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
39411
39516
|
}, "readEvidencePacket");
|
|
39412
39517
|
|
|
39413
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39518
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
39414
39519
|
import { createHash as createHash13 } from "node:crypto";
|
|
39415
39520
|
var scopeKeys = [
|
|
39416
39521
|
"accountId",
|
|
@@ -39545,11 +39650,11 @@ var readMeetingProjectDiscovery = /* @__PURE__ */ __name(async (ports, projectNa
|
|
|
39545
39650
|
};
|
|
39546
39651
|
}, "readMeetingProjectDiscovery");
|
|
39547
39652
|
|
|
39548
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39653
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/person-business.js
|
|
39549
39654
|
var personBusiness = /* @__PURE__ */ __name(async (store, uid, { limit = SECTION_LIMIT, scope = scopeOf4(void 0) } = {}) => {
|
|
39550
39655
|
const ref = `person:${uid}`;
|
|
39551
39656
|
const { edges, full } = await edgesOf(store, ref, scope);
|
|
39552
|
-
const names2 = await
|
|
39657
|
+
const names2 = await namesOf2(store, edges.flatMap(({ from, to }) => [from, to]));
|
|
39553
39658
|
const outward = /* @__PURE__ */ __name((kind, to) => (edge) => edge.role.kind === kind && edge.from === ref && edge.to.startsWith(to) ? edge.to : void 0, "outward");
|
|
39554
39659
|
const categories = await organizationCategories(store, scope);
|
|
39555
39660
|
const own = new Set((await store.knowledge.ownOrganizations()).map((one2) => one2.ref));
|
|
@@ -39603,7 +39708,7 @@ var canonicalPersonContext = /* @__PURE__ */ __name(async (store, reference, { a
|
|
|
39603
39708
|
};
|
|
39604
39709
|
}, "canonicalPersonContext");
|
|
39605
39710
|
|
|
39606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39711
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
|
|
39607
39712
|
import { createHash as createHash14 } from "node:crypto";
|
|
39608
39713
|
import { existsSync as existsSync4 } from "node:fs";
|
|
39609
39714
|
var useTextModel = /* @__PURE__ */ __name(async (id2, { env, command }) => {
|
|
@@ -39734,7 +39839,7 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id2, payload, { env, fetc
|
|
|
39734
39839
|
return { ...checked2.output, custom: true };
|
|
39735
39840
|
}, "addCustomTextModel");
|
|
39736
39841
|
|
|
39737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39842
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/account-groups.js
|
|
39738
39843
|
var fail4 = /* @__PURE__ */ __name((code, message) => {
|
|
39739
39844
|
throw new CliError(code, message);
|
|
39740
39845
|
}, "fail");
|
|
@@ -39811,8 +39916,8 @@ var moveGroupMember = /* @__PURE__ */ __name(async (at, move) => {
|
|
|
39811
39916
|
return listAccountGroups(at);
|
|
39812
39917
|
}, "moveGroupMember");
|
|
39813
39918
|
|
|
39814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39815
|
-
var
|
|
39919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/group-guard.js
|
|
39920
|
+
var refOf2 = /* @__PURE__ */ __name((item2) => typeof item2 === "string" ? item2 : typeof item2 === "object" && item2 !== null && "ref" in item2 ? item2.ref : void 0, "refOf");
|
|
39816
39921
|
var groupGuardOf = /* @__PURE__ */ __name(async (store, app, env) => {
|
|
39817
39922
|
const group = groupLockOf(app, env);
|
|
39818
39923
|
if (group === void 0)
|
|
@@ -39830,7 +39935,7 @@ var groupGuardOf = /* @__PURE__ */ __name(async (store, app, env) => {
|
|
|
39830
39935
|
return { kept: kept2, out_of_scope: refs.length - kept2.length };
|
|
39831
39936
|
}, "keep");
|
|
39832
39937
|
const strip = /* @__PURE__ */ __name(async (value) => {
|
|
39833
|
-
let
|
|
39938
|
+
let dropped2 = 0;
|
|
39834
39939
|
const plain2 = /* @__PURE__ */ __name((node) => {
|
|
39835
39940
|
const prototype = Object.getPrototypeOf(node);
|
|
39836
39941
|
return prototype === Object.prototype || prototype === null;
|
|
@@ -39843,9 +39948,9 @@ var groupGuardOf = /* @__PURE__ */ __name(async (store, app, env) => {
|
|
|
39843
39948
|
if (key === "evidence" || key === "sources") {
|
|
39844
39949
|
shown = [];
|
|
39845
39950
|
for (const item2 of items) {
|
|
39846
|
-
const ref =
|
|
39951
|
+
const ref = refOf2(item2);
|
|
39847
39952
|
if (typeof ref === "string" && !await visible2(ref)) {
|
|
39848
|
-
|
|
39953
|
+
dropped2 += 1;
|
|
39849
39954
|
changed2 = true;
|
|
39850
39955
|
} else
|
|
39851
39956
|
shown.push(item2);
|
|
@@ -39865,7 +39970,7 @@ var groupGuardOf = /* @__PURE__ */ __name(async (store, app, env) => {
|
|
|
39865
39970
|
return changed ? { ...node, ...Object.fromEntries(entries) } : node;
|
|
39866
39971
|
}, "walk");
|
|
39867
39972
|
const walked = await walk(value);
|
|
39868
|
-
return { value: walked, out_of_scope:
|
|
39973
|
+
return { value: walked, out_of_scope: dropped2 };
|
|
39869
39974
|
}, "strip");
|
|
39870
39975
|
const proposal = /* @__PURE__ */ __name(async (row) => {
|
|
39871
39976
|
const stored = /^([1-9]\d*)(\/|$)/.exec(row.id)?.[1];
|
|
@@ -39922,7 +40027,7 @@ var lockedRegistry = /* @__PURE__ */ __name((registry, guard) => {
|
|
|
39922
40027
|
};
|
|
39923
40028
|
}, "lockedRegistry");
|
|
39924
40029
|
|
|
39925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40030
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-hit-context.js
|
|
39926
40031
|
import { createHash as createHash15 } from "node:crypto";
|
|
39927
40032
|
var contextCue = /* @__PURE__ */ __name((cue) => ({
|
|
39928
40033
|
ref: cue.reference,
|
|
@@ -40040,7 +40145,7 @@ var readMeetingHitContext = /* @__PURE__ */ __name(async (store, accountId, refe
|
|
|
40040
40145
|
return { ...packet, fingerprint: createHash15("sha256").update(JSON.stringify(packet)).digest("hex") };
|
|
40041
40146
|
}, "readMeetingHitContext");
|
|
40042
40147
|
|
|
40043
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40148
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-passage-format.js
|
|
40044
40149
|
var visible = /* @__PURE__ */ __name((text2) => text2.replace(/[\p{Cc}\p{Cf}]/gu, (value) => value === "\n" || value === " " ? value : `\\u{${value.codePointAt(0)?.toString(16)}}`), "visible");
|
|
40045
40150
|
var markdown = /* @__PURE__ */ __name((text2) => visible(text2).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replace(/[\\`*_[\]#|~]/g, "\\$&"), "markdown");
|
|
40046
40151
|
var timestamp = /* @__PURE__ */ __name((ms) => {
|
|
@@ -40116,7 +40221,7 @@ var readMeetingPassage = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
40116
40221
|
return { packet, content };
|
|
40117
40222
|
}, "readMeetingPassage");
|
|
40118
40223
|
|
|
40119
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
40120
40225
|
var communicationFields = {
|
|
40121
40226
|
sources: pipe(array(strictObject({
|
|
40122
40227
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -40148,7 +40253,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
40148
40253
|
return { ...input, after, before: before2 };
|
|
40149
40254
|
}, "communicationRequest");
|
|
40150
40255
|
|
|
40151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40256
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
40152
40257
|
var MEETING_PREPARATION_LIMITS = {
|
|
40153
40258
|
meetings: { min: 1, max: 20, default: 5 },
|
|
40154
40259
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -40234,7 +40339,7 @@ var preparationRequest = /* @__PURE__ */ __name((accountId, externalId, original
|
|
|
40234
40339
|
return { ...input, history };
|
|
40235
40340
|
}, "preparationRequest");
|
|
40236
40341
|
|
|
40237
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40342
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-communications-preparation.js
|
|
40238
40343
|
var readPreparationCommunications = /* @__PURE__ */ __name(async (plan, signal) => {
|
|
40239
40344
|
const section = {
|
|
40240
40345
|
readUsage: plan.reader.usage(),
|
|
@@ -40339,7 +40444,7 @@ var appendPreparationCommunications = /* @__PURE__ */ __name((result, read2) =>
|
|
|
40339
40444
|
result.knowledge.coverage.otherSources = "see-communications";
|
|
40340
40445
|
}, "appendPreparationCommunications");
|
|
40341
40446
|
|
|
40342
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40447
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
40343
40448
|
var captureCommunicationSelections = /* @__PURE__ */ __name((port) => {
|
|
40344
40449
|
if (port === void 0)
|
|
40345
40450
|
return void 0;
|
|
@@ -40444,7 +40549,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
40444
40549
|
}
|
|
40445
40550
|
}, "validatePreparationCommunications");
|
|
40446
40551
|
|
|
40447
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40552
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-knowledge-preparation.js
|
|
40448
40553
|
var invalid6 = /* @__PURE__ */ __name(() => {
|
|
40449
40554
|
throw new CliError("invalid_response", "Preparation knowledge returned an invalid selection");
|
|
40450
40555
|
}, "invalid");
|
|
@@ -40513,7 +40618,7 @@ var appendKnowledgePreparation = /* @__PURE__ */ __name(async (store, result, in
|
|
|
40513
40618
|
}
|
|
40514
40619
|
}, "appendKnowledgePreparation");
|
|
40515
40620
|
|
|
40516
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-notes-preparation.js
|
|
40517
40622
|
var invalid7 = /* @__PURE__ */ __name(() => {
|
|
40518
40623
|
throw new CliError("invalid_response", "Preparation notes returned an invalid selection");
|
|
40519
40624
|
}, "invalid");
|
|
@@ -40587,7 +40692,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
40587
40692
|
}
|
|
40588
40693
|
}, "appendNotesPreparation");
|
|
40589
40694
|
|
|
40590
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-project-preparation.js
|
|
40591
40696
|
var PAGE_LIMIT = 4;
|
|
40592
40697
|
var size2 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
40593
40698
|
var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, input) => {
|
|
@@ -40637,7 +40742,7 @@ var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, inpu
|
|
|
40637
40742
|
}
|
|
40638
40743
|
}, "appendProjectPreparation");
|
|
40639
40744
|
|
|
40640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40745
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-related-preparation.js
|
|
40641
40746
|
var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, input) => {
|
|
40642
40747
|
if (!result.series || !result.items.length || result.coverage.outputLimited)
|
|
40643
40748
|
return;
|
|
@@ -40709,7 +40814,7 @@ var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, inpu
|
|
|
40709
40814
|
}
|
|
40710
40815
|
}, "appendRelatedPreparation");
|
|
40711
40816
|
|
|
40712
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40817
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/meeting-preparation.js
|
|
40713
40818
|
var size3 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
40714
40819
|
var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
40715
40820
|
const fixed = snapshotMeetingScope(scope);
|
|
@@ -40847,7 +40952,7 @@ var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId,
|
|
|
40847
40952
|
};
|
|
40848
40953
|
}, "createMeetingPreparationService");
|
|
40849
40954
|
|
|
40850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40955
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
40851
40956
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
40852
40957
|
const installer = ports.installer();
|
|
40853
40958
|
const argv = updateCommand(installer, packageName);
|
|
@@ -40912,7 +41017,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
40912
41017
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
40913
41018
|
}, "dayAfter");
|
|
40914
41019
|
|
|
40915
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposal-tasks.js
|
|
40916
41021
|
var proposalSource = /* @__PURE__ */ __name((id2) => `proposed-action:${id2}`, "proposalSource");
|
|
40917
41022
|
var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
40918
41023
|
const proposal = await store.proposedActions.get(id2);
|
|
@@ -40935,7 +41040,7 @@ var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
|
40935
41040
|
return { proposal: await store.proposedActions.approve(proposal.id, by, { task: task2.id }), task: task2 };
|
|
40936
41041
|
}, "approveAsTask");
|
|
40937
41042
|
|
|
40938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41043
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/ids.js
|
|
40939
41044
|
var MAX_IDS = 500;
|
|
40940
41045
|
var refuse = /* @__PURE__ */ __name((message) => {
|
|
40941
41046
|
throw new CliError("validation_error", message, { reason: "proposal.ids" });
|
|
@@ -40977,7 +41082,7 @@ var parseProposalIds = /* @__PURE__ */ __name((text2) => {
|
|
|
40977
41082
|
return ids;
|
|
40978
41083
|
}, "parseProposalIds");
|
|
40979
41084
|
|
|
40980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/shared.js
|
|
40981
41086
|
var proposerOfAuthor = /* @__PURE__ */ __name((author) => {
|
|
40982
41087
|
if (author.type === "person")
|
|
40983
41088
|
return { type: "person", id: author.id };
|
|
@@ -41049,7 +41154,7 @@ var reviewedKind = /* @__PURE__ */ __name((spec) => ({
|
|
|
41049
41154
|
}, "decide")
|
|
41050
41155
|
}), "reviewedKind");
|
|
41051
41156
|
|
|
41052
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/findings.js
|
|
41053
41158
|
var FACT_SUMMARIES = {
|
|
41054
41159
|
fact: /* @__PURE__ */ __name((finding) => finding.statement, "fact"),
|
|
41055
41160
|
task: /* @__PURE__ */ __name((finding) => finding.title, "task"),
|
|
@@ -41121,7 +41226,7 @@ var findingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
41121
41226
|
};
|
|
41122
41227
|
}, "findingsKind");
|
|
41123
41228
|
|
|
41124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41229
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/organization.js
|
|
41125
41230
|
var ORGANIZATION_ADD_KIND = "organization_add";
|
|
41126
41231
|
var ORGANIZATION_RENAME_KIND = "organization_rename";
|
|
41127
41232
|
var rowOf2 = /* @__PURE__ */ __name((action2) => {
|
|
@@ -41177,7 +41282,7 @@ var organizationKind = /* @__PURE__ */ __name((store) => ({
|
|
|
41177
41282
|
}, "decide")
|
|
41178
41283
|
}), "organizationKind");
|
|
41179
41284
|
|
|
41180
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/action.js
|
|
41181
41286
|
var rowOf3 = /* @__PURE__ */ __name((action2) => ({
|
|
41182
41287
|
id: action2.id,
|
|
41183
41288
|
kind: "action",
|
|
@@ -41217,7 +41322,7 @@ var actionKind = /* @__PURE__ */ __name((store, claimed) => ({
|
|
|
41217
41322
|
}, "decide")
|
|
41218
41323
|
}), "actionKind");
|
|
41219
41324
|
|
|
41220
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41325
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/contracts.js
|
|
41221
41326
|
var contractKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
41222
41327
|
type: "contract",
|
|
41223
41328
|
list: /* @__PURE__ */ __name((options2) => store.contracts.list(options2), "list"),
|
|
@@ -41226,7 +41331,7 @@ var contractKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
41226
41331
|
decide: /* @__PURE__ */ __name(async (id2, confirm, { by, reason }) => (confirm ? await store.contracts.confirm(id2, by, reason) : await store.contracts.reject(id2, by, reason)).ref, "decide")
|
|
41227
41332
|
}), "contractKind");
|
|
41228
41333
|
|
|
41229
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41334
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/fact.js
|
|
41230
41335
|
var STATUS = {
|
|
41231
41336
|
proposed: "proposed",
|
|
41232
41337
|
accepted: "confirmed",
|
|
@@ -41269,7 +41374,7 @@ var factKind = /* @__PURE__ */ __name((store) => ({
|
|
|
41269
41374
|
}, "decide")
|
|
41270
41375
|
}), "factKind");
|
|
41271
41376
|
|
|
41272
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/finance.js
|
|
41273
41378
|
var invoiceKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
41274
41379
|
type: "invoice",
|
|
41275
41380
|
list: /* @__PURE__ */ __name((options2) => store.finance.invoices(options2), "list"),
|
|
@@ -41285,7 +41390,7 @@ var paymentKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
41285
41390
|
decide: /* @__PURE__ */ __name(async (id2, confirm, { by, reason }) => (confirm ? await store.finance.confirm(id2, by, reason) : await store.finance.reject(id2, by, reason)).ref, "decide")
|
|
41286
41391
|
}), "paymentKind");
|
|
41287
41392
|
|
|
41288
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41393
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/identity-link.js
|
|
41289
41394
|
var rowOf5 = /* @__PURE__ */ __name((action2) => {
|
|
41290
41395
|
const payload = action2.payload;
|
|
41291
41396
|
const [from, to] = payload.persons;
|
|
@@ -41332,7 +41437,62 @@ var identityLinkKind = /* @__PURE__ */ __name((store) => ({
|
|
|
41332
41437
|
}, "decide")
|
|
41333
41438
|
}), "identityLinkKind");
|
|
41334
41439
|
|
|
41335
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41440
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/identity-split.js
|
|
41441
|
+
var summaryOf = /* @__PURE__ */ __name((payload, person) => payload.split === "unmerge" ? `undo ${payload.merge}: ${payload.identities.join(", ")} go back to their own person` : `${payload.identities.join(", ")} may not be ${person}: they would move to a person of their own`, "summaryOf");
|
|
41442
|
+
var dropped = /* @__PURE__ */ __name((action2) => action2.status !== "proposed" && action2.status !== "rejected" && typeof action2.result?.person !== "string", "dropped");
|
|
41443
|
+
var rowOf6 = /* @__PURE__ */ __name((store) => async (action2) => {
|
|
41444
|
+
const payload = action2.payload;
|
|
41445
|
+
const [first2] = payload.identities;
|
|
41446
|
+
const now = first2 === void 0 ? void 0 : await store.people.personOf({
|
|
41447
|
+
provider: first2.slice(0, first2.indexOf(":")),
|
|
41448
|
+
id: first2.slice(first2.indexOf(":") + 1)
|
|
41449
|
+
});
|
|
41450
|
+
const person = `person:${now?.uid ?? payload.person}`;
|
|
41451
|
+
const summary = summaryOf(payload, person);
|
|
41452
|
+
return {
|
|
41453
|
+
id: action2.id,
|
|
41454
|
+
kind: IDENTITY_SPLIT_KIND,
|
|
41455
|
+
status: dropped(action2) ? "rejected" : actionStatus(action2.status),
|
|
41456
|
+
project: null,
|
|
41457
|
+
subject: person,
|
|
41458
|
+
object: null,
|
|
41459
|
+
summary: dropped(action2) ? `not carried out: an older version approved it without splitting; ${summary}` : summary,
|
|
41460
|
+
proposedBy: proposerOfAction(action2),
|
|
41461
|
+
reason: action2.reason,
|
|
41462
|
+
evidence: payload.evidence.slice(0, 5),
|
|
41463
|
+
score: null,
|
|
41464
|
+
signals: null,
|
|
41465
|
+
parts: null,
|
|
41466
|
+
createdAt: action2.createdAt
|
|
41467
|
+
};
|
|
41468
|
+
}, "rowOf");
|
|
41469
|
+
var identitySplitKind = /* @__PURE__ */ __name((store) => ({
|
|
41470
|
+
kind: IDENTITY_SPLIT_KIND,
|
|
41471
|
+
stored: [IDENTITY_SPLIT_KIND],
|
|
41472
|
+
ownerOnly: true,
|
|
41473
|
+
list: /* @__PURE__ */ __name(async (filter) => {
|
|
41474
|
+
const status = storedStatus(filter);
|
|
41475
|
+
const stored = await store.proposedActions.list({
|
|
41476
|
+
kinds: [IDENTITY_SPLIT_KIND],
|
|
41477
|
+
...status === void 0 ? {} : { status },
|
|
41478
|
+
...pushed2(filter)
|
|
41479
|
+
});
|
|
41480
|
+
return kept(await Promise.all(stored.map(rowOf6(store))), filter);
|
|
41481
|
+
}, "list"),
|
|
41482
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf6(store)(await store.proposedActions.get(id2)), "get"),
|
|
41483
|
+
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
41484
|
+
const decided = await store.people.decideSplit(id2, { confirm, by, ...reason === void 0 ? {} : { reason } });
|
|
41485
|
+
const person = decided.result?.person;
|
|
41486
|
+
return {
|
|
41487
|
+
id: id2,
|
|
41488
|
+
kind: IDENTITY_SPLIT_KIND,
|
|
41489
|
+
status: confirm ? "confirmed" : "rejected",
|
|
41490
|
+
made: person === void 0 ? [] : [`person:${person}`]
|
|
41491
|
+
};
|
|
41492
|
+
}, "decide")
|
|
41493
|
+
}), "identitySplitKind");
|
|
41494
|
+
|
|
41495
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/key-document.js
|
|
41336
41496
|
var linkRow = /* @__PURE__ */ __name((link4) => ({
|
|
41337
41497
|
id: `key:${link4.id}`,
|
|
41338
41498
|
kind: "key_document",
|
|
@@ -41400,9 +41560,9 @@ var keyDocumentKind = /* @__PURE__ */ __name((store) => {
|
|
|
41400
41560
|
};
|
|
41401
41561
|
}, "keyDocumentKind");
|
|
41402
41562
|
|
|
41403
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41563
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/mail-findings.js
|
|
41404
41564
|
var words3 = /* @__PURE__ */ __name((...parts) => parts.filter(Boolean).join(" "), "words");
|
|
41405
|
-
var
|
|
41565
|
+
var summaryOf2 = /* @__PURE__ */ __name((finding) => {
|
|
41406
41566
|
switch (finding.kind) {
|
|
41407
41567
|
case "task":
|
|
41408
41568
|
return finding.title;
|
|
@@ -41426,7 +41586,7 @@ var summaryOf = /* @__PURE__ */ __name((finding) => {
|
|
|
41426
41586
|
return words3("order", finding.number, finding.supplierName, finding.status, `\xB7 ${finding.reason}`);
|
|
41427
41587
|
}
|
|
41428
41588
|
}, "summaryOf");
|
|
41429
|
-
var
|
|
41589
|
+
var rowOf7 = /* @__PURE__ */ __name((batch, createdAt) => {
|
|
41430
41590
|
const findings = batch.input.findings;
|
|
41431
41591
|
const outcome2 = /* @__PURE__ */ __name((id2) => batch.receipt?.items.find((item2) => item2.id === id2)?.status ?? null, "outcome");
|
|
41432
41592
|
const project2 = findings.flatMap((finding) => "project" in finding && finding.project ? [finding.project] : [])[0] ?? null;
|
|
@@ -41446,14 +41606,14 @@ var rowOf6 = /* @__PURE__ */ __name((batch, createdAt) => {
|
|
|
41446
41606
|
parts: findings.map((finding) => ({
|
|
41447
41607
|
id: finding.id,
|
|
41448
41608
|
kind: finding.kind,
|
|
41449
|
-
summary:
|
|
41609
|
+
summary: summaryOf2(finding),
|
|
41450
41610
|
outcome: outcome2(finding.id)
|
|
41451
41611
|
})),
|
|
41452
41612
|
createdAt
|
|
41453
41613
|
};
|
|
41454
41614
|
}, "rowOf");
|
|
41455
41615
|
var mailFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
41456
|
-
const created = /* @__PURE__ */ __name(async (batch) =>
|
|
41616
|
+
const created = /* @__PURE__ */ __name(async (batch) => rowOf7(batch, (await store.proposedActions.get(batch.id)).createdAt), "created");
|
|
41457
41617
|
return {
|
|
41458
41618
|
kind: "mail_findings",
|
|
41459
41619
|
stored: [MAIL_FINDINGS_KIND],
|
|
@@ -41488,8 +41648,8 @@ var mailFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
41488
41648
|
};
|
|
41489
41649
|
}, "mailFindingsKind");
|
|
41490
41650
|
|
|
41491
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41492
|
-
var
|
|
41651
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/meeting-findings.js
|
|
41652
|
+
var rowOf8 = /* @__PURE__ */ __name((action2, batch) => {
|
|
41493
41653
|
const findings = batch.input.findings;
|
|
41494
41654
|
const projects = [...new Set(findings.map((one2) => "project" in one2 ? one2.project : void 0))];
|
|
41495
41655
|
const outcome2 = /* @__PURE__ */ __name((id2) => batch.receipt?.items.find((item2) => item2.id === id2)?.status ?? null, "outcome");
|
|
@@ -41534,12 +41694,12 @@ var meetingFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
41534
41694
|
...filter.by === void 0 ? {} : { proposedBy: filter.by },
|
|
41535
41695
|
limit: Math.min(filter.offset + filter.limit, 500)
|
|
41536
41696
|
});
|
|
41537
|
-
const rows = await Promise.all(actions.map(async (action2) =>
|
|
41697
|
+
const rows = await Promise.all(actions.map(async (action2) => rowOf8(action2, (await batchOf(action2)).batch)));
|
|
41538
41698
|
return kept(rows, { ...filter, limit: filter.offset + filter.limit });
|
|
41539
41699
|
}, "list"),
|
|
41540
41700
|
get: /* @__PURE__ */ __name(async (id2) => {
|
|
41541
41701
|
const action2 = await store.proposedActions.get(id2);
|
|
41542
|
-
return
|
|
41702
|
+
return rowOf8(action2, (await batchOf(action2)).batch);
|
|
41543
41703
|
}, "get"),
|
|
41544
41704
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, parts }) => {
|
|
41545
41705
|
const { account, batch } = await batchOf(await store.proposedActions.get(id2));
|
|
@@ -41552,14 +41712,14 @@ var meetingFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
41552
41712
|
};
|
|
41553
41713
|
}, "meetingFindingsKind");
|
|
41554
41714
|
|
|
41555
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/memory.js
|
|
41556
41716
|
var STATUS2 = {
|
|
41557
41717
|
proposed: "proposed",
|
|
41558
41718
|
confirmed: "confirmed",
|
|
41559
41719
|
superseded: "confirmed",
|
|
41560
41720
|
stale: "rejected"
|
|
41561
41721
|
};
|
|
41562
|
-
var
|
|
41722
|
+
var rowOf9 = /* @__PURE__ */ __name((memory) => ({
|
|
41563
41723
|
id: memory.ref,
|
|
41564
41724
|
kind: "memory",
|
|
41565
41725
|
status: STATUS2[memory.status],
|
|
@@ -41584,16 +41744,16 @@ var memoryKind = /* @__PURE__ */ __name((store) => ({
|
|
|
41584
41744
|
...pushed2(filter),
|
|
41585
41745
|
...status === "all" ? {} : { status: status === "rejected" ? "stale" : status }
|
|
41586
41746
|
});
|
|
41587
|
-
return kept(memories.map(
|
|
41747
|
+
return kept(memories.map(rowOf9), filter);
|
|
41588
41748
|
}, "list"),
|
|
41589
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
41749
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf9(await store.memories.get(id2)), "get"),
|
|
41590
41750
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by }) => {
|
|
41591
41751
|
const memory = confirm ? await store.memories.confirm(id2, by) : await store.memories.markStale(id2, by);
|
|
41592
41752
|
return { id: id2, kind: "memory", status: confirm ? "confirmed" : "rejected", made: confirm ? [memory.ref] : [] };
|
|
41593
41753
|
}, "decide")
|
|
41594
41754
|
}), "memoryKind");
|
|
41595
41755
|
|
|
41596
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41756
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/orders.js
|
|
41597
41757
|
var orderKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
41598
41758
|
type: "order",
|
|
41599
41759
|
list: /* @__PURE__ */ __name((options2) => store.orders.list(options2), "list"),
|
|
@@ -41602,7 +41762,7 @@ var orderKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
41602
41762
|
decide: /* @__PURE__ */ __name(async (id2, confirm, { by, reason }) => (confirm ? await store.orders.confirm(id2, by, reason) : await store.orders.reject(id2, by, reason)).ref, "decide")
|
|
41603
41763
|
}), "orderKind");
|
|
41604
41764
|
|
|
41605
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41765
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship.js
|
|
41606
41766
|
var linkRow2 = /* @__PURE__ */ __name((link4) => ({
|
|
41607
41767
|
id: `link:${link4.id}`,
|
|
41608
41768
|
kind: "relationship",
|
|
@@ -41677,10 +41837,10 @@ var relationshipKind = /* @__PURE__ */ __name((store) => {
|
|
|
41677
41837
|
};
|
|
41678
41838
|
}, "relationshipKind");
|
|
41679
41839
|
|
|
41680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship-update.js
|
|
41681
41841
|
var KIND = "relationship_update";
|
|
41682
|
-
var
|
|
41683
|
-
var
|
|
41842
|
+
var summaryOf3 = /* @__PURE__ */ __name(({ changes }) => Object.entries(changes).map(([field, value]) => `${field} ${value ?? "cleared"}`).join(", "), "summaryOf");
|
|
41843
|
+
var rowOf10 = /* @__PURE__ */ __name((action2) => {
|
|
41684
41844
|
const payload = action2.payload;
|
|
41685
41845
|
return {
|
|
41686
41846
|
id: action2.id,
|
|
@@ -41689,7 +41849,7 @@ var rowOf9 = /* @__PURE__ */ __name((action2) => {
|
|
|
41689
41849
|
project: projectOf3(payload.to, payload.from),
|
|
41690
41850
|
subject: `relationship:${payload.relationship}`,
|
|
41691
41851
|
object: payload.to,
|
|
41692
|
-
summary:
|
|
41852
|
+
summary: summaryOf3(payload),
|
|
41693
41853
|
proposedBy: proposerOfAction(action2),
|
|
41694
41854
|
reason: action2.reason,
|
|
41695
41855
|
evidence: [],
|
|
@@ -41709,9 +41869,9 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
41709
41869
|
...status === void 0 ? {} : { status },
|
|
41710
41870
|
...pushed2(filter)
|
|
41711
41871
|
});
|
|
41712
|
-
return kept(stored.map(
|
|
41872
|
+
return kept(stored.map(rowOf10), filter);
|
|
41713
41873
|
}, "list"),
|
|
41714
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
41874
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf10(await store.proposedActions.get(id2)), "get"),
|
|
41715
41875
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
41716
41876
|
const { relation } = await store.knowledge.decideRelationUpdate(id2, {
|
|
41717
41877
|
confirm,
|
|
@@ -41727,8 +41887,8 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
41727
41887
|
}, "decide")
|
|
41728
41888
|
}), "relationshipUpdateKind");
|
|
41729
41889
|
|
|
41730
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41731
|
-
var
|
|
41890
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/source-review.js
|
|
41891
|
+
var rowOf11 = /* @__PURE__ */ __name((action2) => {
|
|
41732
41892
|
const payload = action2.payload;
|
|
41733
41893
|
const sources = payload.sources.flatMap((source) => source.ref ?? []);
|
|
41734
41894
|
const contradicting = payload.challenges.flatMap((challenge) => challenge.evidence);
|
|
@@ -41761,16 +41921,16 @@ var sourceReviewKind = /* @__PURE__ */ __name((store) => ({
|
|
|
41761
41921
|
...status === void 0 ? {} : { status },
|
|
41762
41922
|
...pushed2(filter)
|
|
41763
41923
|
});
|
|
41764
|
-
return kept(stored.map(
|
|
41924
|
+
return kept(stored.map(rowOf11), filter);
|
|
41765
41925
|
}, "list"),
|
|
41766
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
41926
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf11(await store.proposedActions.get(id2)), "get"),
|
|
41767
41927
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
41768
41928
|
await store.knowledge.decideSourceReview(id2, { confirm, by, ...reason === void 0 ? {} : { reason } });
|
|
41769
41929
|
return { id: id2, kind: SOURCE_REVIEW_KIND, status: confirm ? "confirmed" : "rejected", made: [] };
|
|
41770
41930
|
}, "decide")
|
|
41771
41931
|
}), "sourceReviewKind");
|
|
41772
41932
|
|
|
41773
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/subscriptions.js
|
|
41774
41934
|
var subscriptionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
41775
41935
|
type: "subscription",
|
|
41776
41936
|
list: /* @__PURE__ */ __name((options2) => store.subscriptions.list(options2), "list"),
|
|
@@ -41789,8 +41949,8 @@ var subscriptionPriceKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
41789
41949
|
}, "decide")
|
|
41790
41950
|
}), "subscriptionPriceKind");
|
|
41791
41951
|
|
|
41792
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41793
|
-
var
|
|
41952
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/task-close.js
|
|
41953
|
+
var rowOf12 = /* @__PURE__ */ __name((task2) => {
|
|
41794
41954
|
const suggestion = task2.closeSuggestion;
|
|
41795
41955
|
if (suggestion === null)
|
|
41796
41956
|
return void 0;
|
|
@@ -41815,7 +41975,7 @@ var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
|
41815
41975
|
const taskOf = /* @__PURE__ */ __name(async (id2) => {
|
|
41816
41976
|
const key = id2.slice("close:".length);
|
|
41817
41977
|
const task2 = await store.tasks.details(key).catch(() => void 0);
|
|
41818
|
-
const row = task2 &&
|
|
41978
|
+
const row = task2 && rowOf12(task2);
|
|
41819
41979
|
if (!task2 || !row)
|
|
41820
41980
|
throw new CliError("not_found", `no close waits on task ${key}`);
|
|
41821
41981
|
return { task: task2, row };
|
|
@@ -41832,7 +41992,7 @@ var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
|
41832
41992
|
where: { sql: "t.close_suggested_as IS NOT NULL", params: [] },
|
|
41833
41993
|
limit: filter.offset + filter.limit
|
|
41834
41994
|
});
|
|
41835
|
-
return kept(tasks.flatMap((task2) =>
|
|
41995
|
+
return kept(tasks.flatMap((task2) => rowOf12(task2) ?? []), { ...filter, limit: filter.offset + filter.limit });
|
|
41836
41996
|
}, "list"),
|
|
41837
41997
|
get: /* @__PURE__ */ __name(async (id2) => (await taskOf(id2)).row, "get"),
|
|
41838
41998
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
@@ -41857,7 +42017,7 @@ var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
|
41857
42017
|
};
|
|
41858
42018
|
}, "taskCloseKind");
|
|
41859
42019
|
|
|
41860
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/transactions.js
|
|
41861
42021
|
var transactionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
41862
42022
|
type: "transaction",
|
|
41863
42023
|
list: /* @__PURE__ */ __name((options2) => store.transactions.list(options2), "list"),
|
|
@@ -41866,7 +42026,7 @@ var transactionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
41866
42026
|
decide: /* @__PURE__ */ __name(async (id2, confirm, { by, reason }) => (confirm ? await store.transactions.confirm(id2, by, reason) : await store.transactions.reject(id2, by, reason)).ref, "decide")
|
|
41867
42027
|
}), "transactionKind");
|
|
41868
42028
|
|
|
41869
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/proposals/registry.js
|
|
41870
42030
|
var PREFIX = /^([a-z][a-z_]*):/;
|
|
41871
42031
|
var marked = /* @__PURE__ */ __name((kind, row) => kind.ownerOnly ? { ...row, ownerOnly: true } : row, "marked");
|
|
41872
42032
|
var refusalOf = /* @__PURE__ */ __name((id2, error) => {
|
|
@@ -41993,14 +42153,15 @@ var proposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
41993
42153
|
meetingFindingsKind(store),
|
|
41994
42154
|
taskCloseKind(store),
|
|
41995
42155
|
sourceReviewKind(store),
|
|
41996
|
-
identityLinkKind(store)
|
|
42156
|
+
identityLinkKind(store),
|
|
42157
|
+
identitySplitKind(store)
|
|
41997
42158
|
])
|
|
41998
42159
|
registry.register(kind);
|
|
41999
42160
|
registry.register(actionKind(store, registry.claimed));
|
|
42000
42161
|
return registry;
|
|
42001
42162
|
}, "proposalRegistry");
|
|
42002
42163
|
|
|
42003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
42004
42165
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
42005
42166
|
const pictures = picturesService(deps);
|
|
42006
42167
|
const base = {
|
|
@@ -42037,7 +42198,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
42037
42198
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
42038
42199
|
}, "servicesFor");
|
|
42039
42200
|
|
|
42040
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42201
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
42041
42202
|
var COMMAND_NEEDS = {
|
|
42042
42203
|
"account update": ["updateProfile", "change the profile"],
|
|
42043
42204
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -42087,7 +42248,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
42087
42248
|
return group;
|
|
42088
42249
|
}, "hideNever");
|
|
42089
42250
|
|
|
42090
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
42091
42252
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
42092
42253
|
command.allowUnknownOption();
|
|
42093
42254
|
const parse2 = command.parseOptions.bind(command);
|
|
@@ -42107,7 +42268,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
42107
42268
|
return command;
|
|
42108
42269
|
}, "queryWordsAfterOptions");
|
|
42109
42270
|
|
|
42110
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42271
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
42111
42272
|
var count3 = /* @__PURE__ */ __name((value) => {
|
|
42112
42273
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
42113
42274
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -42149,7 +42310,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
42149
42310
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
42150
42311
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
42151
42312
|
|
|
42152
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42313
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
42153
42314
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
42154
42315
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
42155
42316
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -42172,7 +42333,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
42172
42333
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
42173
42334
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
42174
42335
|
|
|
42175
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42336
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
42176
42337
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
42177
42338
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
42178
42339
|
const zone = timezoneOf();
|
|
@@ -42258,7 +42419,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
42258
42419
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
42259
42420
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
42260
42421
|
|
|
42261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
42262
42423
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
42263
42424
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
42264
42425
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -42402,7 +42563,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
42402
42563
|
}, "addMeetingCommandsDefinition");
|
|
42403
42564
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
42404
42565
|
|
|
42405
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42566
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
42406
42567
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
42407
42568
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
42408
42569
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -42535,7 +42696,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
42535
42696
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
42536
42697
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
42537
42698
|
|
|
42538
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42699
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
42539
42700
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
42540
42701
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
42541
42702
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -42544,7 +42705,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
42544
42705
|
var withPaging = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many to show", positiveCount("--limit")).option("--page <n>", "which page, starting at 1", positiveCount("--page")).option("--all", "every row, no paging"), "withPaging");
|
|
42545
42706
|
var window2 = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
42546
42707
|
|
|
42547
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42708
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
42548
42709
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
42549
42710
|
var chatRef2 = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
42550
42711
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -42806,7 +42967,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
42806
42967
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
42807
42968
|
}), "sessionAnswer");
|
|
42808
42969
|
|
|
42809
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42970
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
42810
42971
|
import { createHash as createHash16 } from "node:crypto";
|
|
42811
42972
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync6, rmSync as rmSync2 } from "node:fs";
|
|
42812
42973
|
import { createConnection, createServer } from "node:net";
|
|
@@ -42954,7 +43115,7 @@ var serve = /* @__PURE__ */ __name(async (socket, request, stdin, signal, run) =
|
|
|
42954
43115
|
}
|
|
42955
43116
|
}, "serve");
|
|
42956
43117
|
|
|
42957
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_c47469194f2825719a552db4a380e89c/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
42958
43119
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
42959
43120
|
close: /* @__PURE__ */ __name(async () => {
|
|
42960
43121
|
}, "close"),
|
|
@@ -43122,6 +43283,7 @@ export {
|
|
|
43122
43283
|
downloadImageModel,
|
|
43123
43284
|
STATUS_SIGNALS,
|
|
43124
43285
|
projectStatus,
|
|
43286
|
+
projectActivity,
|
|
43125
43287
|
sendTime,
|
|
43126
43288
|
readMail,
|
|
43127
43289
|
NOT_GROUP_NAMES,
|