@wirecat/cli-memo 0.131.78 → 0.131.79
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-ZMIHTBZD.js} +9 -9
- package/dist/bundle/{anthropic-VF75LSDZ.js → anthropic-PNRUKJHS.js} +6 -6
- package/dist/bundle/{app-server-Z4TY5VP5.js → app-server-RNASTWZO.js} +41 -41
- package/dist/bundle/auto-TRSJQGJH.js +91 -0
- package/dist/bundle/{bun-OUR5UZAI.js → bun-QU4I5GWB.js} +2 -2
- package/dist/bundle/{bun-sqlite-26ZGEVH3.js → bun-sqlite-J4KG5VML.js} +10 -6
- package/dist/bundle/{chunk-EIQ6HCIB.js → chunk-24FOGKJI.js} +7 -7
- package/dist/bundle/{chunk-YOM4PA3A.js → chunk-2C536VQW.js} +1 -1
- package/dist/bundle/{chunk-3QBRLN6T.js → chunk-2EGS6BXF.js} +2 -2
- package/dist/bundle/{chunk-QEJHNTCX.js → chunk-2TIK6LHL.js} +443 -344
- package/dist/bundle/{chunk-XTCN3VUP.js → chunk-3GOMBG55.js} +8 -8
- package/dist/bundle/{chunk-ZKCAR2OL.js → chunk-3HCGK4FN.js} +1 -1
- package/dist/bundle/{chunk-Q2CQNT3A.js → chunk-46Z7UUCG.js} +1 -1
- package/dist/bundle/{chunk-7ENXMVT5.js → chunk-4BSNHOEV.js} +20 -11
- package/dist/bundle/{chunk-WETWQO6X.js → chunk-4FPSZCWN.js} +2 -2
- package/dist/bundle/{chunk-P3UQGKGY.js → chunk-4XOAQ5EQ.js} +10 -10
- package/dist/bundle/{chunk-6A37YXAL.js → chunk-5LEIPSJG.js} +24 -0
- package/dist/bundle/{chunk-VJLJFLKZ.js → chunk-5YS4WS74.js} +1 -1
- package/dist/bundle/{chunk-DAEPTQ6N.js → chunk-6ZO2ZVKV.js} +5 -5
- package/dist/bundle/{chunk-TWWYDJBW.js → chunk-7SGURCSQ.js} +1 -1
- package/dist/bundle/chunk-A5TSIMI2.js +53 -0
- package/dist/bundle/{chunk-NGWKI3E6.js → chunk-AWUANCLC.js} +1 -1
- package/dist/bundle/{chunk-6GHBGGN7.js → chunk-BBJBWSGN.js} +2 -2
- package/dist/bundle/{chunk-PTKJIA7M.js → chunk-CLZHPHKI.js} +3 -3
- package/dist/bundle/{chunk-MW6IAMUI.js → chunk-CQPXUMIS.js} +1 -1
- package/dist/bundle/{chunk-T6LXUBXY.js → chunk-CX3D6D43.js} +3 -3
- package/dist/bundle/{chunk-5PCPPT43.js → chunk-CY7WACM7.js} +31 -31
- package/dist/bundle/{chunk-D67YDJ35.js → chunk-DAJEINOF.js} +1049 -902
- package/dist/bundle/{chunk-EXFRC4OT.js → chunk-DCK5AT3D.js} +1 -1
- package/dist/bundle/{chunk-Y2J52Y3A.js → chunk-DP2RZ6FO.js} +3 -3
- package/dist/bundle/{chunk-N7CHOWDF.js → chunk-FCHVDLEL.js} +3 -3
- package/dist/bundle/{chunk-T37LLOZR.js → chunk-GDSCR5BG.js} +1 -1
- package/dist/bundle/{chunk-DDPZY27T.js → chunk-GJ7KTKIP.js} +16 -16
- package/dist/bundle/{chunk-4LZLU2V3.js → chunk-GTYESBB2.js} +3 -3
- package/dist/bundle/{chunk-XC26CUGL.js → chunk-H6QELEPY.js} +6 -6
- package/dist/bundle/{chunk-UWF6WXM7.js → chunk-HKOHKYDY.js} +7 -7
- package/dist/bundle/{chunk-H2AQV772.js → chunk-IE6AEPW3.js} +10 -10
- package/dist/bundle/{chunk-NXQFVHG4.js → chunk-IHWPNLCI.js} +165 -152
- package/dist/bundle/{chunk-OHMF7LWW.js → chunk-IU2QDYBO.js} +5 -5
- package/dist/bundle/{chunk-OMGNXKSH.js → chunk-J2KPUG2X.js} +4 -4
- package/dist/bundle/{chunk-KUY35N7Q.js → chunk-JDI7CKLO.js} +7 -7
- package/dist/bundle/{chunk-I6CZU7X7.js → chunk-JX4YNSYT.js} +1 -1
- package/dist/bundle/{chunk-QU7UPCW2.js → chunk-LQBVQX47.js} +80 -80
- package/dist/bundle/{chunk-7DKS4GIW.js → chunk-MQ6XB6BV.js} +5 -5
- package/dist/bundle/{chunk-OUATPEPP.js → chunk-O4ZIN4AY.js} +6 -6
- package/dist/bundle/{chunk-EF33DKMR.js → chunk-OP5MKU7T.js} +1 -1
- package/dist/bundle/{chunk-6ABWVQ4T.js → chunk-PB4ZGGR4.js} +1 -1
- package/dist/bundle/{chunk-UIJBGS6K.js → chunk-PI42ZHZQ.js} +2 -2
- package/dist/bundle/{chunk-MUFU4LNS.js → chunk-Q5YM3JWV.js} +2 -2
- package/dist/bundle/{chunk-B2ZAEF5Z.js → chunk-QNI3Q7XS.js} +2 -2
- package/dist/bundle/{chunk-Z4TPRASF.js → chunk-QOFD6JSB.js} +5 -5
- package/dist/bundle/{chunk-5NBQOU5V.js → chunk-R24Q24U5.js} +26 -23
- package/dist/bundle/{chunk-X2SA73EE.js → chunk-RK24IARI.js} +1 -1
- package/dist/bundle/{chunk-OMCET4QP.js → chunk-RMKJWDVT.js} +47 -47
- package/dist/bundle/{chunk-F7MKFYYP.js → chunk-RUHFWDHD.js} +3 -3
- package/dist/bundle/{chunk-2IQWMWMC.js → chunk-SB3AOH3M.js} +3 -3
- package/dist/bundle/{chunk-LJRXD44C.js → chunk-SEIRBXJT.js} +7 -7
- package/dist/bundle/{chunk-AZIXZIXT.js → chunk-SM7PB5CU.js} +7 -7
- package/dist/bundle/{chunk-22RYCAAO.js → chunk-TBCHID7L.js} +9263 -8766
- package/dist/bundle/{chunk-3QV5JWFN.js → chunk-TH3LLEA2.js} +3 -3
- package/dist/bundle/{chunk-ELKRFQ5Y.js → chunk-U3VXKVKI.js} +12 -12
- package/dist/bundle/{chunk-E5JVYVRX.js → chunk-UC5YCXKS.js} +15 -14
- package/dist/bundle/{chunk-EI7LYQQA.js → chunk-UYKKJOND.js} +4 -4
- package/dist/bundle/{chunk-WYSFOL74.js → chunk-VIZBCX3C.js} +4 -4
- package/dist/bundle/{chunk-GXHPPHGB.js → chunk-VSSWVVOZ.js} +11 -11
- package/dist/bundle/{chunk-WHMKYJZR.js → chunk-WN7BSOD2.js} +1 -1
- package/dist/bundle/{chunk-IFANDP3T.js → chunk-XO6RP5FV.js} +14 -2
- package/dist/bundle/{chunk-TT5RMHM6.js → chunk-YJUVVYS6.js} +5 -5
- package/dist/bundle/{chunk-JHW2ARPA.js → chunk-ZFUYVQII.js} +34 -34
- package/dist/bundle/{chunk-WHZJHUK6.js → chunk-ZIDR2CSX.js} +2 -2
- package/dist/bundle/command-contract-4ZJOMSQ2.js +34 -0
- package/dist/bundle/{command-server-entry-A7ZCZWHH.js → command-server-entry-VSWZ5K2Q.js} +21 -21
- package/dist/bundle/{decode-FO2ELPW6.js → decode-OPD4OHCW.js} +6 -6
- package/dist/bundle/{dispatch-N73TJNYM.js → dispatch-BRRZ6TLX.js} +1 -1
- package/dist/bundle/{echarts-HTY3OB2X.js → echarts-AXYKRYU7.js} +2 -2
- package/dist/bundle/{embed-2DTGMR7Z.js → embed-6DBZRTQ7.js} +7 -7
- package/dist/bundle/{embedder-N3IGQ2M6.js → embedder-SQI6IDZC.js} +10 -10
- package/dist/bundle/{entry-Q7CIJ3TU.js → entry-2GKNMGW6.js} +9 -9
- package/dist/bundle/{entry-YDEKGRCA.js → entry-RV5QAV44.js} +9 -9
- package/dist/bundle/failure-7RJ4HOL4.js +71 -0
- package/dist/bundle/{failure-IPHFR3KW.js → failure-ECNGLVHX.js} +2 -2
- package/dist/bundle/{first-run-SAADMYEA.js → first-run-BBMUDHYX.js} +10 -10
- package/dist/bundle/first-screen-4BS5M4JW.js +32 -0
- package/dist/bundle/{instructions-XB5Y5DFA.js → instructions-JNAROG65.js} +1 -1
- package/dist/bundle/mcp-3MBYSBNS.js +92 -0
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-4ZOD7X75.js → node-6OTEDFSP.js} +2 -2
- package/dist/bundle/{node-sqlite-DWXKYFW6.js → node-sqlite-HBHJOJX6.js} +11 -7
- package/dist/bundle/{oauth-GMIBNJQB.js → oauth-PVQSSPPE.js} +8 -8
- package/dist/bundle/{open-3DBI3MHV.js → open-ARBTD4LX.js} +6 -6
- package/dist/bundle/{openai-HFJAR7W5.js → openai-2JRFTWUA.js} +11 -11
- package/dist/bundle/{process-2H5HNPHH.js → process-4ERCV4WX.js} +1 -1
- package/dist/bundle/{program-VXKN6DLP.js → program-5KVHPFJU.js} +294 -129
- package/dist/bundle/{prompt-WETKFAQS.js → prompt-4I34VBPK.js} +6 -6
- package/dist/bundle/{recognize-5LC3DQ2W.js → recognize-22BJ7RWB.js} +5 -5
- package/dist/bundle/{remote-FURTWZ25.js → remote-BON3MKY5.js} +8 -8
- package/dist/bundle/{rerank-CMQWT3WC.js → rerank-6CCCIZDS.js} +8 -8
- package/dist/bundle/{serve-LEF3PX34.js → serve-FB54DFIV.js} +10 -10
- package/dist/bundle/server-SG4BOF6U.js +64 -0
- package/dist/bundle/{server-GYLFN6Y7.js → server-TL5WPR3I.js} +59 -59
- package/dist/bundle/server-UYEXFEEB.js +50 -0
- package/dist/bundle/{state-OVZT24JF.js → state-23IF45K6.js} +7 -7
- package/dist/bundle/{store-SV46T732.js → store-FGNXSGJU.js} +13 -13
- package/dist/bundle/store-maintenance-command-PDLIZ4J2.js +49 -0
- package/dist/bundle/update-QTZREQD6.js +74 -0
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +12 -3
- package/dist/examples.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/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-2AFREBSM.js} +0 -0
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-U3VXKVKI.js";
|
|
12
12
|
import {
|
|
13
13
|
remoteKey
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BBJBWSGN.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-TBCHID7L.js";
|
|
118
119
|
import {
|
|
119
120
|
DEFAULT_STEMMERS,
|
|
120
121
|
createStemmer,
|
|
121
122
|
fold,
|
|
122
123
|
normalize
|
|
123
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-JDI7CKLO.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-GTYESBB2.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-QOFD6JSB.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-IHWPNLCI.js";
|
|
193
194
|
import {
|
|
194
195
|
MESSENGER_CHANGE_REFUSAL,
|
|
195
196
|
envName,
|
|
196
197
|
readOnlyLockOf,
|
|
197
198
|
readOnlyRefusal
|
|
198
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-AWUANCLC.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-LQBVQX47.js";
|
|
297
298
|
import {
|
|
298
299
|
damagedFile,
|
|
299
300
|
isCliFailure,
|
|
300
301
|
sqliteCode
|
|
301
|
-
} from "./chunk-
|
|
302
|
+
} from "./chunk-ZIDR2CSX.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-YJUVVYS6.js";
|
|
309
310
|
import {
|
|
310
311
|
installFiles,
|
|
311
312
|
megabytes
|
|
312
|
-
} from "./chunk-
|
|
313
|
+
} from "./chunk-CX3D6D43.js";
|
|
313
314
|
import {
|
|
314
315
|
storePath,
|
|
315
316
|
wirecatDirectory
|
|
316
|
-
} from "./chunk-
|
|
317
|
+
} from "./chunk-A5TSIMI2.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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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([
|
|
@@ -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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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-6DBZRTQ7.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-6CCCIZDS.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-SQI6IDZC.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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/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,7 @@ 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.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
24063
24064
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
24064
24065
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
24065
24066
|
if (deps.offline)
|
|
@@ -24131,7 +24132,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
24131
24132
|
};
|
|
24132
24133
|
}, "accountService");
|
|
24133
24134
|
|
|
24134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
24135
24136
|
var MINUTE = 6e4;
|
|
24136
24137
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
24137
24138
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -24150,7 +24151,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
24150
24151
|
return new Date(at - at % MINUTE).toISOString();
|
|
24151
24152
|
}, "sendTime");
|
|
24152
24153
|
|
|
24153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
24154
24155
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write2) => {
|
|
24155
24156
|
try {
|
|
24156
24157
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -24397,7 +24398,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
24397
24398
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
24398
24399
|
}, "linkLimits");
|
|
24399
24400
|
|
|
24400
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24401
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
24401
24402
|
var THREADS_PAGE = 500;
|
|
24402
24403
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
24403
24404
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -24476,7 +24477,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
24476
24477
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
24477
24478
|
}, "readMail");
|
|
24478
24479
|
|
|
24479
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24480
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
24480
24481
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
24481
24482
|
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
24483
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -24825,7 +24826,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
24825
24826
|
};
|
|
24826
24827
|
}, "statsLucene");
|
|
24827
24828
|
|
|
24828
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24829
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
24829
24830
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
24830
24831
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
24831
24832
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -24865,7 +24866,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
24865
24866
|
};
|
|
24866
24867
|
}, "dateWindow");
|
|
24867
24868
|
|
|
24868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24869
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
24869
24870
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
24870
24871
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
24871
24872
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -25034,7 +25035,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
25034
25035
|
};
|
|
25035
25036
|
}, "readRankingSelection");
|
|
25036
25037
|
|
|
25037
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25038
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
25038
25039
|
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
25040
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
25040
25041
|
command,
|
|
@@ -25044,7 +25045,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
25044
25045
|
fieldsVersion: FIELD_VERSION
|
|
25045
25046
|
}), "searchRecordOf");
|
|
25046
25047
|
|
|
25047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25048
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
25048
25049
|
function invalid2(message) {
|
|
25049
25050
|
throw new CliError("validation_error", message);
|
|
25050
25051
|
}
|
|
@@ -25338,10 +25339,10 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
25338
25339
|
}, "evidence")
|
|
25339
25340
|
}), "adminStatisticsService");
|
|
25340
25341
|
|
|
25341
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25342
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
25342
25343
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
25343
25344
|
|
|
25344
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
25345
25346
|
var REQUEST_MS = 400;
|
|
25346
25347
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
25347
25348
|
const lowest = ranges[0];
|
|
@@ -25364,13 +25365,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
25364
25365
|
};
|
|
25365
25366
|
}, "estimateBackfill");
|
|
25366
25367
|
|
|
25367
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
25368
25369
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
25369
25370
|
...error,
|
|
25370
25371
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
25371
25372
|
}), "withRecovery");
|
|
25372
25373
|
|
|
25373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
25374
25375
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
25375
25376
|
if (isCliFailure(error))
|
|
25376
25377
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -25453,7 +25454,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
25453
25454
|
};
|
|
25454
25455
|
}, "mergeBatches");
|
|
25455
25456
|
|
|
25456
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
25457
25458
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
25458
25459
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
25459
25460
|
var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
@@ -25476,7 +25477,7 @@ var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
|
25476
25477
|
}
|
|
25477
25478
|
}, "patiently");
|
|
25478
25479
|
|
|
25479
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25480
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
25480
25481
|
var CONTEXT_MESSAGES = 3;
|
|
25481
25482
|
var CONTEXT_MINUTES = 10;
|
|
25482
25483
|
var MAX_CHARS = 1200;
|
|
@@ -25500,12 +25501,12 @@ var context = {
|
|
|
25500
25501
|
}, "describe")
|
|
25501
25502
|
};
|
|
25502
25503
|
|
|
25503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25504
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
25504
25505
|
var BUILT_INS = [context];
|
|
25505
25506
|
var providers = [...BUILT_INS];
|
|
25506
25507
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
25507
25508
|
|
|
25508
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
25509
25510
|
var READ_PAGE = 5e3;
|
|
25510
25511
|
var CHAIN = 50;
|
|
25511
25512
|
var CONVERSATION_QUERY = {
|
|
@@ -25657,7 +25658,7 @@ var sized = /* @__PURE__ */ __name((size4) => {
|
|
|
25657
25658
|
return size4;
|
|
25658
25659
|
}, "sized");
|
|
25659
25660
|
|
|
25660
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
25661
25662
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
25662
25663
|
var MESSAGE_PAGE = 5e3;
|
|
25663
25664
|
var PER_SESSION = 8;
|
|
@@ -25676,7 +25677,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
25676
25677
|
price: remote.price,
|
|
25677
25678
|
installed: true,
|
|
25678
25679
|
perBatch: PER_REQUEST * concurrency,
|
|
25679
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
25680
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-BON3MKY5.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
25680
25681
|
};
|
|
25681
25682
|
}
|
|
25682
25683
|
const model = textModel(choice, deps.env);
|
|
@@ -25693,7 +25694,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
25693
25694
|
if (!isTextModelInstalled(model, directory2))
|
|
25694
25695
|
throw notDownloaded(model.id);
|
|
25695
25696
|
if (apart) {
|
|
25696
|
-
const { openProcess } = await import("./process-
|
|
25697
|
+
const { openProcess } = await import("./process-4ERCV4WX.js");
|
|
25697
25698
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
25698
25699
|
}
|
|
25699
25700
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -25982,7 +25983,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
25982
25983
|
return { ...one2, state };
|
|
25983
25984
|
}, "shaped");
|
|
25984
25985
|
|
|
25985
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25986
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
25986
25987
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
25987
25988
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
|
|
25988
25989
|
for (const [key, value, maximum] of [
|
|
@@ -26035,7 +26036,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
|
|
|
26035
26036
|
}
|
|
26036
26037
|
}, "catchUpSearch");
|
|
26037
26038
|
|
|
26038
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26039
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
26039
26040
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
26040
26041
|
if (deps.reads === "store") {
|
|
26041
26042
|
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 +26417,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
26416
26417
|
return message?.timestamp ?? fallback;
|
|
26417
26418
|
}, "timeOfKey");
|
|
26418
26419
|
|
|
26419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
26420
26421
|
import { createHash as createHash7, randomUUID as randomUUID5 } from "node:crypto";
|
|
26421
26422
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
26422
26423
|
var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
|
|
@@ -26553,16 +26554,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
26553
26554
|
return { plan, repair };
|
|
26554
26555
|
}, "gapsService");
|
|
26555
26556
|
|
|
26556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26557
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
26557
26558
|
import { createHash as createHash9 } from "node:crypto";
|
|
26558
26559
|
import { constants as constants2, mkdirSync as mkdirSync5 } from "node:fs";
|
|
26559
26560
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
26560
26561
|
|
|
26561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
26562
26563
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
26563
26564
|
import { basename as basename4, join as join12, relative as relative2, sep as sep2 } from "node:path";
|
|
26564
26565
|
|
|
26565
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26566
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
26566
26567
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
26567
26568
|
import { open as open4, stat } from "node:fs/promises";
|
|
26568
26569
|
import { basename as basename3, dirname as dirname6, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -26764,7 +26765,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read2) => {
|
|
|
26764
26765
|
return { name, source };
|
|
26765
26766
|
}, "readStickerFile");
|
|
26766
26767
|
|
|
26767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26768
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
26768
26769
|
var MAX_FILES = 1e4;
|
|
26769
26770
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app, env) => {
|
|
26770
26771
|
if (refusedPlace(directory2, app, env))
|
|
@@ -26833,15 +26834,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
26833
26834
|
return choices;
|
|
26834
26835
|
}, "directoryPaths");
|
|
26835
26836
|
|
|
26836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26837
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
26837
26838
|
import { posix } from "node:path";
|
|
26838
26839
|
|
|
26839
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
26840
26841
|
import { setImmediate as tick } from "node:timers/promises";
|
|
26841
26842
|
import { crc32 } from "node:zlib";
|
|
26842
26843
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
26843
26844
|
|
|
26844
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
26845
26846
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
26846
26847
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
26847
26848
|
var SAMPLE = 65536;
|
|
@@ -26943,7 +26944,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
26943
26944
|
return result.text;
|
|
26944
26945
|
}, "decodeXml");
|
|
26945
26946
|
|
|
26946
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26947
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
26947
26948
|
var MAX_PART = 10 * 1024 * 1024;
|
|
26948
26949
|
var MAX_ENTRIES = 1e3;
|
|
26949
26950
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -27158,7 +27159,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
27158
27159
|
return found;
|
|
27159
27160
|
}, "elements");
|
|
27160
27161
|
|
|
27161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
27162
27163
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
27163
27164
|
let name = "";
|
|
27164
27165
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -27213,7 +27214,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
27213
27214
|
return { text: parts.join("").trim(), truncated: false };
|
|
27214
27215
|
}, "sheetText");
|
|
27215
27216
|
|
|
27216
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27217
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
27217
27218
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
27218
27219
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
27219
27220
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -27613,10 +27614,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
27613
27614
|
}
|
|
27614
27615
|
}, "readDocument");
|
|
27615
27616
|
|
|
27616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27617
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
27617
27618
|
import { extname as extname3 } from "node:path";
|
|
27618
27619
|
|
|
27619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27620
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
27620
27621
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
27621
27622
|
import { dirname as dirname7, extname as extname2, join as join13 } from "node:path";
|
|
27622
27623
|
import { fileURLToPath } from "node:url";
|
|
@@ -27677,7 +27678,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
27677
27678
|
}
|
|
27678
27679
|
}, "derived");
|
|
27679
27680
|
|
|
27680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
27681
27682
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
27682
27683
|
var image2 = {
|
|
27683
27684
|
id: "image",
|
|
@@ -27686,7 +27687,7 @@ var image2 = {
|
|
|
27686
27687
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
27687
27688
|
};
|
|
27688
27689
|
|
|
27689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
27690
27691
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
27691
27692
|
var doc = {
|
|
27692
27693
|
id: "doc",
|
|
@@ -27698,7 +27699,7 @@ var doc = {
|
|
|
27698
27699
|
}), "read")
|
|
27699
27700
|
};
|
|
27700
27701
|
|
|
27701
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
27702
27703
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
27703
27704
|
var docx = {
|
|
27704
27705
|
id: "docx",
|
|
@@ -27711,7 +27712,7 @@ var docx = {
|
|
|
27711
27712
|
}), "read")
|
|
27712
27713
|
};
|
|
27713
27714
|
|
|
27714
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
27715
27716
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
27716
27717
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
27717
27718
|
"fonttbl",
|
|
@@ -27887,7 +27888,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
27887
27888
|
}, "htmlText");
|
|
27888
27889
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
27889
27890
|
|
|
27890
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27891
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
27891
27892
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
27892
27893
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
27893
27894
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -27943,7 +27944,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
27943
27944
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
27944
27945
|
}, "markdownSections");
|
|
27945
27946
|
|
|
27946
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27947
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
27947
27948
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
27948
27949
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
27949
27950
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -28014,7 +28015,7 @@ var html = {
|
|
|
28014
28015
|
}, "read")
|
|
28015
28016
|
};
|
|
28016
28017
|
|
|
28017
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
28018
28019
|
var office = {
|
|
28019
28020
|
id: "office",
|
|
28020
28021
|
version: documentExtractor("odt"),
|
|
@@ -28025,7 +28026,7 @@ var office = {
|
|
|
28025
28026
|
}, "read")
|
|
28026
28027
|
};
|
|
28027
28028
|
|
|
28028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
28029
28030
|
var pdf = {
|
|
28030
28031
|
id: "pdf",
|
|
28031
28032
|
version: "unpdf",
|
|
@@ -28092,7 +28093,7 @@ var pdf = {
|
|
|
28092
28093
|
}), "read")
|
|
28093
28094
|
};
|
|
28094
28095
|
|
|
28095
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28096
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
28096
28097
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
28097
28098
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
28098
28099
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -28112,7 +28113,7 @@ var plain = {
|
|
|
28112
28113
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
28113
28114
|
};
|
|
28114
28115
|
|
|
28115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
28116
28117
|
var rtf = {
|
|
28117
28118
|
id: "rtf",
|
|
28118
28119
|
version: "v1",
|
|
@@ -28120,10 +28121,10 @@ var rtf = {
|
|
|
28120
28121
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
28121
28122
|
};
|
|
28122
28123
|
|
|
28123
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
28124
28125
|
import { basename as basename5 } from "node:path";
|
|
28125
28126
|
|
|
28126
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28127
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
28127
28128
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
28128
28129
|
const cells = [];
|
|
28129
28130
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -28161,7 +28162,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
28161
28162
|
return { cells, truncated };
|
|
28162
28163
|
}, "delimitedSpans");
|
|
28163
28164
|
|
|
28164
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28165
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
28165
28166
|
var DELIMITED = {
|
|
28166
28167
|
".csv": ",",
|
|
28167
28168
|
".tsv": " ",
|
|
@@ -28200,7 +28201,7 @@ var sheets = {
|
|
|
28200
28201
|
}, "read")
|
|
28201
28202
|
};
|
|
28202
28203
|
|
|
28203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
28204
28205
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
28205
28206
|
var HEAD_BYTES = 1024;
|
|
28206
28207
|
var readers = [...BUILT_INS2];
|
|
@@ -28210,7 +28211,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
28210
28211
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
28211
28212
|
}, "readWithRegistry");
|
|
28212
28213
|
|
|
28213
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28214
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
28214
28215
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
28215
28216
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
28216
28217
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -29289,7 +29290,7 @@ function imageSize(input) {
|
|
|
29289
29290
|
}
|
|
29290
29291
|
__name(imageSize, "imageSize");
|
|
29291
29292
|
|
|
29292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29293
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
29293
29294
|
var MAX_PAGES = 20;
|
|
29294
29295
|
var MAX_PIXELS = 2e7;
|
|
29295
29296
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -29440,7 +29441,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
29440
29441
|
}
|
|
29441
29442
|
}, "ocrPdf");
|
|
29442
29443
|
|
|
29443
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
29444
29445
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
29445
29446
|
const limits = pdfPreviewLimits(env);
|
|
29446
29447
|
const cancelled3 = /* @__PURE__ */ __name(() => {
|
|
@@ -29517,7 +29518,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
29517
29518
|
}
|
|
29518
29519
|
}, "pdfPreview");
|
|
29519
29520
|
|
|
29520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29521
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
29521
29522
|
import { createHash as createHash8 } from "node:crypto";
|
|
29522
29523
|
import { constants } from "node:fs";
|
|
29523
29524
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -29625,7 +29626,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
29625
29626
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
29626
29627
|
}, "transferMime");
|
|
29627
29628
|
|
|
29628
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29629
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
29629
29630
|
import { createWriteStream, mkdirSync as mkdirSync4 } from "node:fs";
|
|
29630
29631
|
import { link as link3, rm } from "node:fs/promises";
|
|
29631
29632
|
import { join as join14, resolve as resolve6 } from "node:path";
|
|
@@ -29739,7 +29740,7 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
29739
29740
|
}
|
|
29740
29741
|
}, "save");
|
|
29741
29742
|
|
|
29742
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29743
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
29743
29744
|
var ATTACHMENT_QUERY = {
|
|
29744
29745
|
entity: "attachment",
|
|
29745
29746
|
backend: "sql",
|
|
@@ -30162,7 +30163,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30162
30163
|
}, "setText")
|
|
30163
30164
|
}), "attachmentsService");
|
|
30164
30165
|
|
|
30165
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
30166
30167
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
30167
30168
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
30168
30169
|
const store = await accountStore(deps);
|
|
@@ -30192,7 +30193,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30192
30193
|
}, "list")
|
|
30193
30194
|
}), "chatDocumentsService");
|
|
30194
30195
|
|
|
30195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
30196
30197
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
30197
30198
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
30198
30199
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -30279,7 +30280,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
30279
30280
|
}
|
|
30280
30281
|
}, "isRetentionSelection");
|
|
30281
30282
|
|
|
30282
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30283
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
30283
30284
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
30284
30285
|
const fields = text2.split(",").map((one2) => one2.trim());
|
|
30285
30286
|
if (!fields.length || fields.some((one2) => !COUNTER_FIELDS.includes(one2)) || new Set(fields).size !== fields.length)
|
|
@@ -30486,7 +30487,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
30486
30487
|
};
|
|
30487
30488
|
}, "countersService");
|
|
30488
30489
|
|
|
30489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30490
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
30490
30491
|
var SYNC_KEY = "messages.sync-first";
|
|
30491
30492
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
30492
30493
|
var keyOf3 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -30618,7 +30619,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
30618
30619
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
30619
30620
|
}), "withRefresh");
|
|
30620
30621
|
|
|
30621
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30622
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
30622
30623
|
var CANDIDATES = 50;
|
|
30623
30624
|
var WORD_HITS = 200;
|
|
30624
30625
|
var RRF_K = 60;
|
|
@@ -30893,13 +30894,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
30893
30894
|
return mean2.map((value) => value / length);
|
|
30894
30895
|
}, "meanOf");
|
|
30895
30896
|
|
|
30896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
30897
30898
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
30898
30899
|
...embeddingsMaintenance(deps),
|
|
30899
30900
|
...embeddingsSearch(deps)
|
|
30900
30901
|
}), "embeddingsService");
|
|
30901
30902
|
|
|
30902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30903
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
30903
30904
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
30904
30905
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
30905
30906
|
if (deps.offline)
|
|
@@ -31040,7 +31041,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
31040
31041
|
};
|
|
31041
31042
|
}, "foldersService");
|
|
31042
31043
|
|
|
31043
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
31044
31045
|
var INBOX_CHATS = 20;
|
|
31045
31046
|
var REVIEW_DAYS = 3;
|
|
31046
31047
|
var UNANSWERED_HOURS = 24;
|
|
@@ -31248,7 +31249,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
31248
31249
|
};
|
|
31249
31250
|
}, "inboxService");
|
|
31250
31251
|
|
|
31251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
31252
31253
|
var REVIEW_COUNT = 500;
|
|
31253
31254
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
31254
31255
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -31327,7 +31328,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
31327
31328
|
};
|
|
31328
31329
|
}, "mentionsService");
|
|
31329
31330
|
|
|
31330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31331
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
31331
31332
|
var invalid3 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
31332
31333
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
31333
31334
|
const { text: text2, spans } = formatted2;
|
|
@@ -31387,7 +31388,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
31387
31388
|
};
|
|
31388
31389
|
}, "visibleFormattedText");
|
|
31389
31390
|
|
|
31390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
31391
31392
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
31392
31393
|
position,
|
|
31393
31394
|
kind,
|
|
@@ -31436,7 +31437,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
31436
31437
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
31437
31438
|
}, "validatePermalink");
|
|
31438
31439
|
|
|
31439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31440
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
31440
31441
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
31441
31442
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
31442
31443
|
return `${seconds / 86400}d`;
|
|
@@ -31468,7 +31469,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
31468
31469
|
return seconds;
|
|
31469
31470
|
}, "pinDurationOf");
|
|
31470
31471
|
|
|
31471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31472
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
31472
31473
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
31473
31474
|
if (sendAs === void 0) {
|
|
31474
31475
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -31493,7 +31494,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
31493
31494
|
return sendAs;
|
|
31494
31495
|
}, "typedSendAs");
|
|
31495
31496
|
|
|
31496
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31497
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
31497
31498
|
var TOTAL_CAP = 1e4;
|
|
31498
31499
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
31499
31500
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -31504,7 +31505,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
31504
31505
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
31505
31506
|
}, "totalOf");
|
|
31506
31507
|
|
|
31507
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31508
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
31508
31509
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
31509
31510
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
31510
31511
|
let narrows = false;
|
|
@@ -31533,7 +31534,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
31533
31534
|
return wanted(root).join(" ").trim();
|
|
31534
31535
|
}, "meaningWords");
|
|
31535
31536
|
|
|
31536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31537
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
31537
31538
|
var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
31538
31539
|
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
31540
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -31666,7 +31667,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
31666
31667
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
31667
31668
|
}, "questionLookup");
|
|
31668
31669
|
|
|
31669
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31670
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
31670
31671
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
31671
31672
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
31672
31673
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
|
|
@@ -31860,7 +31861,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
31860
31861
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
|
|
31861
31862
|
}, "signals");
|
|
31862
31863
|
|
|
31863
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31864
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
31864
31865
|
var MEANING_DEPTH = 100;
|
|
31865
31866
|
var RRF_K2 = 60;
|
|
31866
31867
|
var RERANK_DEPTH = 50;
|
|
@@ -32186,7 +32187,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
32186
32187
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
32187
32188
|
}, "mixedWithReranker");
|
|
32188
32189
|
|
|
32189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
32190
32191
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
32191
32192
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
32192
32193
|
var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
|
|
@@ -32385,7 +32386,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
32385
32386
|
return result;
|
|
32386
32387
|
}, "readThreadContext");
|
|
32387
32388
|
|
|
32388
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32389
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
32389
32390
|
var SEARCH_FILL_MS = 200;
|
|
32390
32391
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
32391
32392
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -32454,7 +32455,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
32454
32455
|
}, "accountOf");
|
|
32455
32456
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
32456
32457
|
|
|
32457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32458
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
|
|
32458
32459
|
var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
32459
32460
|
const chosen = chosenTextModel(env);
|
|
32460
32461
|
if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
|
|
@@ -32469,12 +32470,12 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
|
32469
32470
|
return (counts.get(before2) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
|
|
32470
32471
|
}, "meaningModel");
|
|
32471
32472
|
|
|
32472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32473
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32473
32474
|
import { createHash as createHash10 } from "node:crypto";
|
|
32474
32475
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
32475
32476
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
32476
32477
|
|
|
32477
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32478
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
32478
32479
|
var GROUP_SETTINGS = [
|
|
32479
32480
|
"allCanPin",
|
|
32480
32481
|
"onlyAdminsAdd",
|
|
@@ -32488,7 +32489,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
32488
32489
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
32489
32490
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
32490
32491
|
|
|
32491
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32492
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32492
32493
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
32493
32494
|
var PICTURE_FLOOR = 0.25;
|
|
32494
32495
|
var PAGE4 = 50;
|
|
@@ -32505,7 +32506,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
32505
32506
|
const directory2 = imageModelsDirectory(deps.env);
|
|
32506
32507
|
if (!isImageModelInstalled(model2, directory2))
|
|
32507
32508
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
32508
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
32509
|
+
const { openPictureEmbedder } = await import("./embedder-SQI6IDZC.js");
|
|
32509
32510
|
return openPictureEmbedder(model2, directory2);
|
|
32510
32511
|
}, "open");
|
|
32511
32512
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -32702,7 +32703,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
32702
32703
|
}, "search")
|
|
32703
32704
|
}), "withPictures");
|
|
32704
32705
|
|
|
32705
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32706
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
32706
32707
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
32707
32708
|
try {
|
|
32708
32709
|
const text2 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -32781,7 +32782,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
32781
32782
|
}
|
|
32782
32783
|
}, "meaningLane");
|
|
32783
32784
|
|
|
32784
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32785
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
32785
32786
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
32786
32787
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
32787
32788
|
if (choice === "off")
|
|
@@ -32793,9 +32794,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32793
32794
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
32794
32795
|
try {
|
|
32795
32796
|
const warm = deps.embedders;
|
|
32796
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
32797
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-4ERCV4WX.js")).openRerankerProcess(model, directory2, {
|
|
32797
32798
|
threads: defaultThreads()
|
|
32798
|
-
})) : await (await import("./rerank-
|
|
32799
|
+
})) : await (await import("./rerank-6CCCIZDS.js")).openReranker(model, directory2);
|
|
32799
32800
|
return {
|
|
32800
32801
|
model: model.id,
|
|
32801
32802
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -32815,7 +32816,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32815
32816
|
};
|
|
32816
32817
|
}, "rerankLane");
|
|
32817
32818
|
|
|
32818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32819
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/search/question-period.js
|
|
32819
32820
|
var DAY5 = 864e5;
|
|
32820
32821
|
var SPAN = { start: 0, end: 0 };
|
|
32821
32822
|
var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
|
|
@@ -32940,17 +32941,17 @@ var questionPeriod = /* @__PURE__ */ __name((text2, now, zone) => {
|
|
|
32940
32941
|
};
|
|
32941
32942
|
}, "questionPeriod");
|
|
32942
32943
|
|
|
32943
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
32944
32945
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
32945
32946
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
32946
32947
|
const directory2 = imageModelsDirectory(env);
|
|
32947
32948
|
if (!isImageModelInstalled(model, directory2))
|
|
32948
32949
|
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-
|
|
32950
|
+
const { openPictureEmbedder } = await import("./embedder-SQI6IDZC.js");
|
|
32950
32951
|
return openPictureEmbedder(model, directory2);
|
|
32951
32952
|
}, "openPictureEmbedderFor");
|
|
32952
32953
|
|
|
32953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32954
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
32954
32955
|
var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) => {
|
|
32955
32956
|
const metadata = note2.frontMatter;
|
|
32956
32957
|
const account = accounts.find(({ id: id2 }) => String(id2) === note2.folderId);
|
|
@@ -32965,7 +32966,7 @@ var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) =
|
|
|
32965
32966
|
};
|
|
32966
32967
|
}, "documentSource");
|
|
32967
32968
|
|
|
32968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32969
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
32969
32970
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
32970
32971
|
const host = new URL(baseUrl).host;
|
|
32971
32972
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -32998,7 +32999,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
32998
32999
|
};
|
|
32999
33000
|
}, "embeddingKeys");
|
|
33000
33001
|
|
|
33001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33002
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
33002
33003
|
var options = strictObject({
|
|
33003
33004
|
temperature: range(0, 2),
|
|
33004
33005
|
top_p: range(0, 1),
|
|
@@ -33052,7 +33053,7 @@ var openai = {
|
|
|
33052
33053
|
}), "complete")
|
|
33053
33054
|
};
|
|
33054
33055
|
|
|
33055
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33056
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
33056
33057
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
33057
33058
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
33058
33059
|
if (deps.signal?.aborted)
|
|
@@ -33067,7 +33068,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
33067
33068
|
if (!adapter && target2.provider === "openai")
|
|
33068
33069
|
adapter = openai;
|
|
33069
33070
|
if (!adapter && target2.provider === "anthropic")
|
|
33070
|
-
adapter = (await import("./anthropic-
|
|
33071
|
+
adapter = (await import("./anthropic-PNRUKJHS.js")).anthropic;
|
|
33071
33072
|
if (!adapter)
|
|
33072
33073
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
33073
33074
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -33122,7 +33123,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
33122
33123
|
}, "complete")
|
|
33123
33124
|
}), "modelGateway");
|
|
33124
33125
|
|
|
33125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
|
|
33126
33127
|
var SECTION = "enrichment";
|
|
33127
33128
|
var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
|
|
33128
33129
|
var DEFAULT_BASE_URLS = {
|
|
@@ -33197,7 +33198,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
|
|
|
33197
33198
|
return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
|
|
33198
33199
|
}, "costOf");
|
|
33199
33200
|
|
|
33200
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33201
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/enrichment.js
|
|
33201
33202
|
var ENRICH_PER_RUN = 600;
|
|
33202
33203
|
var BATCH = 20;
|
|
33203
33204
|
var CONCURRENCY = 4;
|
|
@@ -33444,7 +33445,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
|
|
|
33444
33445
|
};
|
|
33445
33446
|
}, "enrichmentState");
|
|
33446
33447
|
|
|
33447
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33448
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
33448
33449
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
33449
33450
|
let root;
|
|
33450
33451
|
try {
|
|
@@ -33471,7 +33472,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words4) => {
|
|
|
33471
33472
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
33472
33473
|
}, "titleTiers");
|
|
33473
33474
|
|
|
33474
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33475
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
33475
33476
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
33476
33477
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
33477
33478
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -33954,7 +33955,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
33954
33955
|
};
|
|
33955
33956
|
}, "searchNotesOf");
|
|
33956
33957
|
|
|
33957
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
33958
33959
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
33959
33960
|
var iso = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
33960
33961
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -34072,7 +34073,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
34072
34073
|
};
|
|
34073
34074
|
}, "searchEvents");
|
|
34074
34075
|
|
|
34075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34076
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
|
|
34076
34077
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
34077
34078
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
34078
34079
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -34103,7 +34104,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words4, anyWo
|
|
|
34103
34104
|
};
|
|
34104
34105
|
}, "searchBusiness");
|
|
34105
34106
|
|
|
34106
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34107
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
34107
34108
|
var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
|
|
34108
34109
|
let before2 = Number.POSITIVE_INFINITY;
|
|
34109
34110
|
for (; ; ) {
|
|
@@ -34165,7 +34166,7 @@ var searchMeetingHits = /* @__PURE__ */ __name(async (store, query, request, opt
|
|
|
34165
34166
|
return { ...result, selection };
|
|
34166
34167
|
}, "searchMeetingHits");
|
|
34167
34168
|
|
|
34168
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
34169
34170
|
var MOST_HITS_PER_MEETING = 3;
|
|
34170
34171
|
var PAGE_ROWS = 200;
|
|
34171
34172
|
var MOST_PAGES = 25;
|
|
@@ -34393,7 +34394,7 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
|
|
|
34393
34394
|
foundBy: ["title"]
|
|
34394
34395
|
}), "titleItem");
|
|
34395
34396
|
|
|
34396
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34397
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/search-harder.js
|
|
34397
34398
|
var SECTION2 = "search_harder";
|
|
34398
34399
|
var HARDER_MODELS = {
|
|
34399
34400
|
anthropic: "claude-haiku-5-5",
|
|
@@ -34614,7 +34615,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
|
|
|
34614
34615
|
};
|
|
34615
34616
|
}, "reorderHarder");
|
|
34616
34617
|
|
|
34617
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34618
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
34618
34619
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm", "business", "meetings"];
|
|
34619
34620
|
var refusal = /* @__PURE__ */ __name((error, text2) => {
|
|
34620
34621
|
const { reason, span } = error.details ?? {};
|
|
@@ -34988,7 +34989,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
|
|
|
34988
34989
|
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
34990
|
}, "insidePeriodFirst");
|
|
34990
34991
|
|
|
34991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34992
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
34992
34993
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
34993
34994
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
34994
34995
|
var DEFAULT_BACKEND = "both";
|
|
@@ -35177,7 +35178,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
35177
35178
|
return { report, sources };
|
|
35178
35179
|
}, "searchServer");
|
|
35179
35180
|
|
|
35180
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
35181
35182
|
var DELETE_AT_ONCE = 10;
|
|
35182
35183
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
35183
35184
|
const files = fileLinks(attachments);
|
|
@@ -35617,7 +35618,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
35617
35618
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
35618
35619
|
}, "checkMediaOptions");
|
|
35619
35620
|
|
|
35620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
35621
35622
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
35622
35623
|
var RULES2 = {
|
|
35623
35624
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -35632,7 +35633,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
|
|
|
35632
35633
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
35633
35634
|
}), "classifyChannel");
|
|
35634
35635
|
|
|
35635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
35636
35637
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
35637
35638
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
35638
35639
|
const store = await deps.store();
|
|
@@ -35718,7 +35719,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
35718
35719
|
};
|
|
35719
35720
|
}, "metadataService");
|
|
35720
35721
|
|
|
35721
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35722
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
35722
35723
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
35723
35724
|
var LINK2 = /https?:\/\/\S+/i;
|
|
35724
35725
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -35906,7 +35907,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
35906
35907
|
}, "nextPoint");
|
|
35907
35908
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
35908
35909
|
|
|
35909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35910
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
35910
35911
|
import { existsSync as existsSync3, readFileSync as readFileSync5 } from "node:fs";
|
|
35911
35912
|
import { join as join15 } from "node:path";
|
|
35912
35913
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -36049,7 +36050,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
36049
36050
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
36050
36051
|
}, "assign");
|
|
36051
36052
|
|
|
36052
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36053
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
36053
36054
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
36054
36055
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
36055
36056
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -36086,7 +36087,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
36086
36087
|
return { chatId, rows, notes };
|
|
36087
36088
|
}, "moderateWith");
|
|
36088
36089
|
|
|
36089
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36090
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
36090
36091
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
36091
36092
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
36092
36093
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -36164,7 +36165,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
36164
36165
|
}, "removePerson")
|
|
36165
36166
|
}), "moderatorOf");
|
|
36166
36167
|
|
|
36167
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36168
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
36168
36169
|
var CONTEXT_MESSAGES2 = 10;
|
|
36169
36170
|
var CONTEXT_BYTES = 64 * 1024;
|
|
36170
36171
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -36463,10 +36464,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
36463
36464
|
};
|
|
36464
36465
|
}, "personMessages");
|
|
36465
36466
|
|
|
36466
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36467
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
36467
36468
|
import { createHash as createHash11 } from "node:crypto";
|
|
36468
36469
|
|
|
36469
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36470
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
36470
36471
|
var missing3 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
36471
36472
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
|
|
36472
36473
|
const parsed = parseMeetingReference(reference);
|
|
@@ -36484,7 +36485,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
36484
36485
|
return { parsed, meeting };
|
|
36485
36486
|
}, "authorizedMeetingMetadata");
|
|
36486
36487
|
|
|
36487
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36488
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
36488
36489
|
var hash = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
36489
36490
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
36490
36491
|
if (signal?.aborted)
|
|
@@ -36683,7 +36684,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
36683
36684
|
return { ...packet, fingerprint: hash(packet) };
|
|
36684
36685
|
}, "readMeetingEvidence");
|
|
36685
36686
|
|
|
36686
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36687
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
36687
36688
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
|
|
36688
36689
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
|
|
36689
36690
|
const requestedAccounts = options2.accountIds;
|
|
@@ -36782,7 +36783,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
36782
36783
|
};
|
|
36783
36784
|
}, "personMeetingContext");
|
|
36784
36785
|
|
|
36785
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36786
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
36786
36787
|
var PREPARE_BYTES = 96 * 1024;
|
|
36787
36788
|
var MEETINGS = 5;
|
|
36788
36789
|
var CUES = 3;
|
|
@@ -36905,7 +36906,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
36905
36906
|
}
|
|
36906
36907
|
}, "meetingsOf");
|
|
36907
36908
|
|
|
36908
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36909
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
36909
36910
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
36910
36911
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
36911
36912
|
const held = await storeIfOpen(deps);
|
|
@@ -36975,7 +36976,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
36975
36976
|
complete: false
|
|
36976
36977
|
})), "quiet");
|
|
36977
36978
|
|
|
36978
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
36979
36980
|
var TIMELINE_ITEMS = 50;
|
|
36980
36981
|
var TIMELINE_MAX = 500;
|
|
36981
36982
|
var SCOPES2 = ["personal", "work"];
|
|
@@ -37037,7 +37038,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
37037
37038
|
};
|
|
37038
37039
|
}, "personTimeline");
|
|
37039
37040
|
|
|
37040
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37041
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
37041
37042
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
37042
37043
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
37043
37044
|
const held = await storeIfOpen(deps);
|
|
@@ -37291,7 +37292,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
37291
37292
|
return rest;
|
|
37292
37293
|
}, "withoutPhone");
|
|
37293
37294
|
|
|
37294
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37295
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
37295
37296
|
var noteItem = /* @__PURE__ */ __name((provider, note2) => ({
|
|
37296
37297
|
id: note2.id,
|
|
37297
37298
|
contact: formatReference({ type: "contact", provider, id: note2.personId }),
|
|
@@ -37335,7 +37336,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
37335
37336
|
};
|
|
37336
37337
|
}, "privatePeopleService");
|
|
37337
37338
|
|
|
37338
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37339
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
37339
37340
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
37340
37341
|
total: 0,
|
|
37341
37342
|
population: 0,
|
|
@@ -37591,14 +37592,14 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
37591
37592
|
}, "evidence")
|
|
37592
37593
|
}), "rankingsService");
|
|
37593
37594
|
|
|
37594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37595
|
-
var FIELDS = ["date", "chat", "kind"];
|
|
37595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
37596
|
+
var FIELDS = ["date", "chat", "kind", "muted"];
|
|
37596
37597
|
var WAITING_TAIL = 100;
|
|
37597
37598
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
37598
37599
|
if (text2 === void 0)
|
|
37599
37600
|
return;
|
|
37600
37601
|
const refuse2 = /* @__PURE__ */ __name(() => {
|
|
37601
|
-
throw new CliError("validation_error", `${command} reads date:, chat: and
|
|
37602
|
+
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
37603
|
}, "refuse");
|
|
37603
37604
|
const visit = /* @__PURE__ */ __name((node) => {
|
|
37604
37605
|
if (node.kind === "boolean")
|
|
@@ -37625,7 +37626,14 @@ var scopeOf3 = /* @__PURE__ */ __name((root, accounts) => {
|
|
|
37625
37626
|
scope.chats.push(chat);
|
|
37626
37627
|
else if (node.field === "kind")
|
|
37627
37628
|
scope.kinds.push(node.value.toLowerCase());
|
|
37628
|
-
else if (
|
|
37629
|
+
else if (node.field === "muted") {
|
|
37630
|
+
const muted = node.value.toLowerCase() === "true";
|
|
37631
|
+
if (scope.muted !== void 0 && scope.muted !== muted)
|
|
37632
|
+
throw new CliError("validation_error", "muted:true and muted:false cannot both hold", {
|
|
37633
|
+
reason: "query.conflict"
|
|
37634
|
+
});
|
|
37635
|
+
scope.muted = muted;
|
|
37636
|
+
} else if (date2) {
|
|
37629
37637
|
if (date2.lower !== void 0) {
|
|
37630
37638
|
const lower = date2.lower + (date2.lower_inclusive ? 0 : 1);
|
|
37631
37639
|
scope.since = Math.max(scope.since ?? lower, lower);
|
|
@@ -37718,7 +37726,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37718
37726
|
};
|
|
37719
37727
|
}, "replyStatsService");
|
|
37720
37728
|
|
|
37721
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37729
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
37722
37730
|
var savedSearchItem = /* @__PURE__ */ __name((one2) => ({
|
|
37723
37731
|
id: one2.id,
|
|
37724
37732
|
name: one2.name,
|
|
@@ -37847,7 +37855,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
37847
37855
|
};
|
|
37848
37856
|
}, "searchesService");
|
|
37849
37857
|
|
|
37850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
37851
37859
|
var TAGGING_QUERY = {
|
|
37852
37860
|
entity: "tagging",
|
|
37853
37861
|
backend: "sql",
|
|
@@ -37931,7 +37939,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37931
37939
|
};
|
|
37932
37940
|
}, "tagsService");
|
|
37933
37941
|
|
|
37934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
37935
37943
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
37936
37944
|
var PERIOD_FIELD = "created";
|
|
37937
37945
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -37959,9 +37967,11 @@ var spread = /* @__PURE__ */ __name((open7, closeMs, now) => ({
|
|
|
37959
37967
|
...open7.length > 0 ? { meanOpenAgeMs: mean(open7.map(({ createdAt }) => now - createdAt)) } : {}
|
|
37960
37968
|
}), "spread");
|
|
37961
37969
|
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,
|
|
37970
|
+
var taskStatsOf = /* @__PURE__ */ __name(async (store, accounts, { by = "chat", query, timezone, group, kind }, columns, now = Date.now()) => {
|
|
37963
37971
|
if (query)
|
|
37964
37972
|
refuseNestedPeriod(query.root);
|
|
37973
|
+
const several = Array.isArray(accounts);
|
|
37974
|
+
const list3 = several ? [...new Map(accounts.map((one2) => [taskAccount(one2), one2])).values()] : [accounts];
|
|
37965
37975
|
const time = /* @__PURE__ */ __name((sql) => ({ type: "time", sql }), "time");
|
|
37966
37976
|
const read2 = { ...columns, [PERIOD_FIELD]: time("t.created_at"), closed: time("t.closed_at") };
|
|
37967
37977
|
const fixed = [
|
|
@@ -37971,17 +37981,26 @@ var taskStatsOf = /* @__PURE__ */ __name(async (store, account, { by = "chat", q
|
|
|
37971
37981
|
];
|
|
37972
37982
|
const options2 = { command: "stats tasks show", now, ...timezone === void 0 ? {} : { zone: timezone } };
|
|
37973
37983
|
const where = /* @__PURE__ */ __name((ast, more = []) => and([...fixed, ...more, ...ast ? [queryFilter(ast, read2, options2)] : []]), "where");
|
|
37974
|
-
const
|
|
37975
|
-
const
|
|
37976
|
-
const
|
|
37977
|
-
const
|
|
37984
|
+
const scopes = by === "project" ? [{ scope: { board: true } }] : list3.map((one2) => ({ account: one2, scope: { account: taskAccount(one2) } }));
|
|
37985
|
+
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");
|
|
37986
|
+
const all = await rowsOf2(where(withoutField(query, PERIOD_FIELD)));
|
|
37987
|
+
const created = await rowsOf2(where(query));
|
|
37988
|
+
const closed = await rowsOf2(where(query && { ...query, root: renamed(query.root, PERIOD_FIELD, "closed") }, [
|
|
37978
37989
|
{ sql: "t.closed_at IS NOT NULL", params: [] }
|
|
37979
37990
|
]));
|
|
37980
|
-
const keyOf7 = /* @__PURE__ */ __name((row) => by === "project" ? String(row.projectId) : row.group ?? ""
|
|
37991
|
+
const keyOf7 = /* @__PURE__ */ __name((row) => by === "project" ? String(row.projectId) : `${row.account ? taskAccount(row.account) : ""} ${row.group ?? ""}`, "keyOf");
|
|
37981
37992
|
const groups = /* @__PURE__ */ new Map();
|
|
37982
37993
|
const slot = /* @__PURE__ */ __name((row) => {
|
|
37983
37994
|
const key = keyOf7(row);
|
|
37984
|
-
const found = groups.get(key) ?? {
|
|
37995
|
+
const found = groups.get(key) ?? {
|
|
37996
|
+
group: by === "project" ? String(row.projectId) : row.group ?? "",
|
|
37997
|
+
...row.account ? { account: row.account } : {},
|
|
37998
|
+
first: row.createdAt,
|
|
37999
|
+
open: [],
|
|
38000
|
+
created: 0,
|
|
38001
|
+
closeMs: []
|
|
38002
|
+
};
|
|
38003
|
+
found.first = Math.min(found.first, row.createdAt);
|
|
37985
38004
|
groups.set(key, found);
|
|
37986
38005
|
return found;
|
|
37987
38006
|
}, "slot");
|
|
@@ -37992,22 +38011,25 @@ var taskStatsOf = /* @__PURE__ */ __name(async (store, account, { by = "chat", q
|
|
|
37992
38011
|
slot(row).created++;
|
|
37993
38012
|
for (const row of closed)
|
|
37994
38013
|
slot(row).closeMs.push((row.closedAt ?? row.createdAt) - row.createdAt);
|
|
37995
|
-
const kept2 = [...groups].filter((
|
|
37996
|
-
|
|
37997
|
-
|
|
37998
|
-
const
|
|
37999
|
-
|
|
38000
|
-
|
|
38014
|
+
const kept2 = [...groups.values()].filter((one2) => one2.open.length + one2.created + one2.closeMs.length > 0);
|
|
38015
|
+
if (several)
|
|
38016
|
+
kept2.sort((a, b) => a.first - b.first);
|
|
38017
|
+
const nameOf4 = await namesOf(store, by, kept2);
|
|
38018
|
+
const rows = kept2.map((one2) => ({
|
|
38019
|
+
group: one2.group,
|
|
38020
|
+
...several && one2.account ? { account: one2.account } : {},
|
|
38021
|
+
name: nameOf4(one2) ?? null,
|
|
38001
38022
|
open: one2.open.length,
|
|
38002
38023
|
created: one2.created,
|
|
38003
38024
|
closed: one2.closeMs.length,
|
|
38004
38025
|
...one2.open[0] ? { oldestOpenAt: new Date(one2.open[0].createdAt) } : {},
|
|
38005
38026
|
...spread(one2.open, one2.closeMs, now)
|
|
38006
38027
|
}));
|
|
38007
|
-
const open7 = kept2.flatMap((
|
|
38008
|
-
const closeMs = kept2.flatMap((
|
|
38028
|
+
const open7 = kept2.flatMap((one2) => one2.open);
|
|
38029
|
+
const closeMs = kept2.flatMap((one2) => one2.closeMs);
|
|
38009
38030
|
return {
|
|
38010
38031
|
by,
|
|
38032
|
+
...several ? { accounts: [...list3] } : {},
|
|
38011
38033
|
open: open7.length,
|
|
38012
38034
|
created: created.length,
|
|
38013
38035
|
closed: closeMs.length,
|
|
@@ -38015,6 +38037,20 @@ var taskStatsOf = /* @__PURE__ */ __name(async (store, account, { by = "chat", q
|
|
|
38015
38037
|
rows
|
|
38016
38038
|
};
|
|
38017
38039
|
}, "taskStatsOf");
|
|
38040
|
+
var namesOf = /* @__PURE__ */ __name(async (store, by, groups) => {
|
|
38041
|
+
if (by === "project") {
|
|
38042
|
+
const names2 = await store.tasks.statNames("project", groups.map(({ group }) => group));
|
|
38043
|
+
return ({ group }) => names2.get(group);
|
|
38044
|
+
}
|
|
38045
|
+
if (by === "meeting") {
|
|
38046
|
+
const names2 = await meetingNames(store, groups.map(({ group }) => group));
|
|
38047
|
+
return ({ group }) => names2.get(group);
|
|
38048
|
+
}
|
|
38049
|
+
const byAccount = /* @__PURE__ */ new Map();
|
|
38050
|
+
for (const account of new Set(groups.flatMap(({ account: account2 }) => account2 ? [taskAccount(account2)] : [])))
|
|
38051
|
+
byAccount.set(account, await store.tasks.statNames("chat", groups.filter((one2) => one2.account && taskAccount(one2.account) === account).map(({ group }) => group), account));
|
|
38052
|
+
return ({ group, account }) => account ? byAccount.get(taskAccount(account))?.get(group) : void 0;
|
|
38053
|
+
}, "namesOf");
|
|
38018
38054
|
var meetingIdOf = /* @__PURE__ */ __name((group) => {
|
|
38019
38055
|
try {
|
|
38020
38056
|
return String(parseMeetingReference(group).meetingId);
|
|
@@ -38034,7 +38070,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
38034
38070
|
}));
|
|
38035
38071
|
}, "meetingNames");
|
|
38036
38072
|
|
|
38037
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38073
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
38038
38074
|
var TASK_QUERY = {
|
|
38039
38075
|
entity: "task",
|
|
38040
38076
|
backend: "sql",
|
|
@@ -38473,7 +38509,14 @@ var tasksService = /* @__PURE__ */ __name((deps, categories) => {
|
|
|
38473
38509
|
await owned(store, account, subject);
|
|
38474
38510
|
return store.tasks.similar({ task: subject }, options2);
|
|
38475
38511
|
}), "similar"),
|
|
38476
|
-
stats: /* @__PURE__ */ __name(({ chat, ...request } = {}) =>
|
|
38512
|
+
stats: /* @__PURE__ */ __name(({ chat, accounts, ...request } = {}) => accounts ? (async () => {
|
|
38513
|
+
const store = await deps.store();
|
|
38514
|
+
const named4 = request.query ? walkQuery(request.query.root).some(({ field, operator }) => field === "chat" && operator !== "wildcard") : false;
|
|
38515
|
+
if (chat !== void 0 || named4)
|
|
38516
|
+
throw new CliError("validation_error", "a chat belongs to one account: name the account as well");
|
|
38517
|
+
const columns = taskColumns2(/* @__PURE__ */ new Map(), await taskTagFilters(store, request.query));
|
|
38518
|
+
return taskStatsOf(store, accounts, request, columns);
|
|
38519
|
+
})() : inStore(async (store, account) => {
|
|
38477
38520
|
const group = await groupOf(store, account, chat);
|
|
38478
38521
|
return taskStatsOf(store, account, { ...request, ...group === void 0 ? {} : { group } }, await queryColumns(store, account, request.query));
|
|
38479
38522
|
}), "stats")
|
|
@@ -38526,7 +38569,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
38526
38569
|
};
|
|
38527
38570
|
}, "taskView");
|
|
38528
38571
|
|
|
38529
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
38530
38573
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
38531
38574
|
const set = [closed, pinned, hidden].filter((one2) => one2 !== void 0).length;
|
|
38532
38575
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -38725,7 +38768,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
38725
38768
|
};
|
|
38726
38769
|
}, "topicsService");
|
|
38727
38770
|
|
|
38728
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38771
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/crm/sync.js
|
|
38729
38772
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
38730
38773
|
var GAPS = "crm:gaps";
|
|
38731
38774
|
var crmGapsOf = /* @__PURE__ */ __name(async (store, account) => {
|
|
@@ -38737,7 +38780,7 @@ var crmGapsOf = /* @__PURE__ */ __name(async (store, account) => {
|
|
|
38737
38780
|
}
|
|
38738
38781
|
}, "crmGapsOf");
|
|
38739
38782
|
|
|
38740
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38783
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/crm/writer.js
|
|
38741
38784
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
38742
38785
|
var CRM_WRITE_DEFAULTS = {
|
|
38743
38786
|
"deals.delete": "ask",
|
|
@@ -38745,7 +38788,7 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
38745
38788
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
38746
38789
|
};
|
|
38747
38790
|
|
|
38748
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38791
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/business-context.js
|
|
38749
38792
|
var SECTION_LIMIT = 20;
|
|
38750
38793
|
var STORE_PAGE = 500;
|
|
38751
38794
|
var sectionOf = /* @__PURE__ */ __name((all, limit, next, { more = false, total = all.length, newest = false } = {}) => {
|
|
@@ -38805,7 +38848,7 @@ var edgesOf = /* @__PURE__ */ __name(async (store, ref, scope) => {
|
|
|
38805
38848
|
}));
|
|
38806
38849
|
return { edges, full: hasMore };
|
|
38807
38850
|
}, "edgesOf");
|
|
38808
|
-
var
|
|
38851
|
+
var namesOf2 = /* @__PURE__ */ __name(async (store, refs) => {
|
|
38809
38852
|
const summaries = await store.refs.summaries([...new Set(refs)]);
|
|
38810
38853
|
return new Map([...summaries].map(([ref, summary]) => [ref, summary.title]));
|
|
38811
38854
|
}, "namesOf");
|
|
@@ -38869,7 +38912,7 @@ var coverageFor = /* @__PURE__ */ __name(async (store, base, scope) => {
|
|
|
38869
38912
|
}, "coverageFor");
|
|
38870
38913
|
var newestFirst2 = /* @__PURE__ */ __name((a, b) => (b.at ?? "").localeCompare(a.at ?? "") || a.ref.localeCompare(b.ref), "newestFirst");
|
|
38871
38914
|
|
|
38872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38915
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/communications.js
|
|
38873
38916
|
var MAIL_ROWS = 500;
|
|
38874
38917
|
var EVENT_ROWS2 = 1e3;
|
|
38875
38918
|
var calendarsOf = /* @__PURE__ */ __name(async (store, stored) => {
|
|
@@ -38995,7 +39038,7 @@ var communicationsOf = /* @__PURE__ */ __name(async (store, asked, scope, { sinc
|
|
|
38995
39038
|
};
|
|
38996
39039
|
}, "communicationsOf");
|
|
38997
39040
|
|
|
38998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39041
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/money-context.js
|
|
38999
39042
|
var invoiceLine = /* @__PURE__ */ __name((invoice, linkedBy) => ({
|
|
39000
39043
|
ref: invoice.ref,
|
|
39001
39044
|
title: invoice.title,
|
|
@@ -39067,7 +39110,7 @@ var moneyOf = /* @__PURE__ */ __name((rows, limit, next, complete) => {
|
|
|
39067
39110
|
};
|
|
39068
39111
|
}, "moneyOf");
|
|
39069
39112
|
|
|
39070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/organization-context.js
|
|
39071
39114
|
var dealLine = /* @__PURE__ */ __name((deal) => ({
|
|
39072
39115
|
ref: deal.ref,
|
|
39073
39116
|
kind: deal.kind,
|
|
@@ -39116,7 +39159,7 @@ var organizationContext = /* @__PURE__ */ __name(async (store, reference, { acco
|
|
|
39116
39159
|
const scope = scopeOf4(accounts, deniedKinds);
|
|
39117
39160
|
const own = (await store.knowledge.ownOrganizations()).some((one2) => one2.ref === ref);
|
|
39118
39161
|
const { edges, full } = await edgesOf(store, ref, scope);
|
|
39119
|
-
const names2 = await
|
|
39162
|
+
const names2 = await namesOf2(store, edges.flatMap(({ from, to }) => [from, to]));
|
|
39120
39163
|
const into = /* @__PURE__ */ __name((kind, from) => (edge) => edge.role.kind === kind && edge.to === ref && edge.from.startsWith(from) ? edge.from : void 0, "into");
|
|
39121
39164
|
const people = grouped(edges, into("member-of", "person:"), names2);
|
|
39122
39165
|
const customers = grouped(edges, into("customer-of", ""), names2);
|
|
@@ -39207,7 +39250,7 @@ var organizationContext = /* @__PURE__ */ __name(async (store, reference, { acco
|
|
|
39207
39250
|
};
|
|
39208
39251
|
}, "organizationContext");
|
|
39209
39252
|
|
|
39210
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/deal-context.js
|
|
39211
39254
|
var DAY6 = 864e5;
|
|
39212
39255
|
var dealContext = /* @__PURE__ */ __name(async (store, reference, { accounts, limit = SECTION_LIMIT, now = Date.now(), deniedKinds = [] } = {}) => {
|
|
39213
39256
|
const scope = scopeOf4(accounts, deniedKinds);
|
|
@@ -39224,7 +39267,7 @@ var dealContext = /* @__PURE__ */ __name(async (store, reference, { accounts, li
|
|
|
39224
39267
|
});
|
|
39225
39268
|
const { edges, full } = await edgesOf(store, deal.ref, scope);
|
|
39226
39269
|
const people = edges.filter((edge) => edge.role.kind === "related-to" && edge.from === deal.ref && edge.to.startsWith("person:"));
|
|
39227
|
-
const names2 = await
|
|
39270
|
+
const names2 = await namesOf2(store, people.map(({ to }) => to));
|
|
39228
39271
|
const participants = grouped(people, (edge) => edge.to, names2);
|
|
39229
39272
|
const owner = participants.find((one2) => one2.roles.some((role) => role.role === "owner" && isUsable(role.standing))) ?? null;
|
|
39230
39273
|
const organization2 = deal.organization;
|
|
@@ -39316,7 +39359,7 @@ var dealBrief = /* @__PURE__ */ __name((context2) => ({
|
|
|
39316
39359
|
notRead: context2.coverage.notRead
|
|
39317
39360
|
}), "dealBrief");
|
|
39318
39361
|
|
|
39319
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39362
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
39320
39363
|
import { createHash as createHash12, randomUUID as randomUUID6 } from "node:crypto";
|
|
39321
39364
|
var hash2 = /* @__PURE__ */ __name((value) => createHash12("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
39322
39365
|
var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -39390,7 +39433,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
39390
39433
|
return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
|
|
39391
39434
|
}, "prepareEvidencePacket");
|
|
39392
39435
|
|
|
39393
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39436
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
39394
39437
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
39395
39438
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
39396
39439
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -39410,7 +39453,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
39410
39453
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
39411
39454
|
}, "readEvidencePacket");
|
|
39412
39455
|
|
|
39413
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39456
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
39414
39457
|
import { createHash as createHash13 } from "node:crypto";
|
|
39415
39458
|
var scopeKeys = [
|
|
39416
39459
|
"accountId",
|
|
@@ -39545,11 +39588,11 @@ var readMeetingProjectDiscovery = /* @__PURE__ */ __name(async (ports, projectNa
|
|
|
39545
39588
|
};
|
|
39546
39589
|
}, "readMeetingProjectDiscovery");
|
|
39547
39590
|
|
|
39548
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39591
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/person-business.js
|
|
39549
39592
|
var personBusiness = /* @__PURE__ */ __name(async (store, uid, { limit = SECTION_LIMIT, scope = scopeOf4(void 0) } = {}) => {
|
|
39550
39593
|
const ref = `person:${uid}`;
|
|
39551
39594
|
const { edges, full } = await edgesOf(store, ref, scope);
|
|
39552
|
-
const names2 = await
|
|
39595
|
+
const names2 = await namesOf2(store, edges.flatMap(({ from, to }) => [from, to]));
|
|
39553
39596
|
const outward = /* @__PURE__ */ __name((kind, to) => (edge) => edge.role.kind === kind && edge.from === ref && edge.to.startsWith(to) ? edge.to : void 0, "outward");
|
|
39554
39597
|
const categories = await organizationCategories(store, scope);
|
|
39555
39598
|
const own = new Set((await store.knowledge.ownOrganizations()).map((one2) => one2.ref));
|
|
@@ -39603,7 +39646,7 @@ var canonicalPersonContext = /* @__PURE__ */ __name(async (store, reference, { a
|
|
|
39603
39646
|
};
|
|
39604
39647
|
}, "canonicalPersonContext");
|
|
39605
39648
|
|
|
39606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39649
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
|
|
39607
39650
|
import { createHash as createHash14 } from "node:crypto";
|
|
39608
39651
|
import { existsSync as existsSync4 } from "node:fs";
|
|
39609
39652
|
var useTextModel = /* @__PURE__ */ __name(async (id2, { env, command }) => {
|
|
@@ -39734,7 +39777,7 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id2, payload, { env, fetc
|
|
|
39734
39777
|
return { ...checked2.output, custom: true };
|
|
39735
39778
|
}, "addCustomTextModel");
|
|
39736
39779
|
|
|
39737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39780
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/account-groups.js
|
|
39738
39781
|
var fail4 = /* @__PURE__ */ __name((code, message) => {
|
|
39739
39782
|
throw new CliError(code, message);
|
|
39740
39783
|
}, "fail");
|
|
@@ -39811,7 +39854,7 @@ var moveGroupMember = /* @__PURE__ */ __name(async (at, move) => {
|
|
|
39811
39854
|
return listAccountGroups(at);
|
|
39812
39855
|
}, "moveGroupMember");
|
|
39813
39856
|
|
|
39814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39857
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/group-guard.js
|
|
39815
39858
|
var refOf = /* @__PURE__ */ __name((item2) => typeof item2 === "string" ? item2 : typeof item2 === "object" && item2 !== null && "ref" in item2 ? item2.ref : void 0, "refOf");
|
|
39816
39859
|
var groupGuardOf = /* @__PURE__ */ __name(async (store, app, env) => {
|
|
39817
39860
|
const group = groupLockOf(app, env);
|
|
@@ -39830,7 +39873,7 @@ var groupGuardOf = /* @__PURE__ */ __name(async (store, app, env) => {
|
|
|
39830
39873
|
return { kept: kept2, out_of_scope: refs.length - kept2.length };
|
|
39831
39874
|
}, "keep");
|
|
39832
39875
|
const strip = /* @__PURE__ */ __name(async (value) => {
|
|
39833
|
-
let
|
|
39876
|
+
let dropped2 = 0;
|
|
39834
39877
|
const plain2 = /* @__PURE__ */ __name((node) => {
|
|
39835
39878
|
const prototype = Object.getPrototypeOf(node);
|
|
39836
39879
|
return prototype === Object.prototype || prototype === null;
|
|
@@ -39845,7 +39888,7 @@ var groupGuardOf = /* @__PURE__ */ __name(async (store, app, env) => {
|
|
|
39845
39888
|
for (const item2 of items) {
|
|
39846
39889
|
const ref = refOf(item2);
|
|
39847
39890
|
if (typeof ref === "string" && !await visible2(ref)) {
|
|
39848
|
-
|
|
39891
|
+
dropped2 += 1;
|
|
39849
39892
|
changed2 = true;
|
|
39850
39893
|
} else
|
|
39851
39894
|
shown.push(item2);
|
|
@@ -39865,7 +39908,7 @@ var groupGuardOf = /* @__PURE__ */ __name(async (store, app, env) => {
|
|
|
39865
39908
|
return changed ? { ...node, ...Object.fromEntries(entries) } : node;
|
|
39866
39909
|
}, "walk");
|
|
39867
39910
|
const walked = await walk(value);
|
|
39868
|
-
return { value: walked, out_of_scope:
|
|
39911
|
+
return { value: walked, out_of_scope: dropped2 };
|
|
39869
39912
|
}, "strip");
|
|
39870
39913
|
const proposal = /* @__PURE__ */ __name(async (row) => {
|
|
39871
39914
|
const stored = /^([1-9]\d*)(\/|$)/.exec(row.id)?.[1];
|
|
@@ -39922,7 +39965,7 @@ var lockedRegistry = /* @__PURE__ */ __name((registry, guard) => {
|
|
|
39922
39965
|
};
|
|
39923
39966
|
}, "lockedRegistry");
|
|
39924
39967
|
|
|
39925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39968
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/meeting-hit-context.js
|
|
39926
39969
|
import { createHash as createHash15 } from "node:crypto";
|
|
39927
39970
|
var contextCue = /* @__PURE__ */ __name((cue) => ({
|
|
39928
39971
|
ref: cue.reference,
|
|
@@ -40040,7 +40083,7 @@ var readMeetingHitContext = /* @__PURE__ */ __name(async (store, accountId, refe
|
|
|
40040
40083
|
return { ...packet, fingerprint: createHash15("sha256").update(JSON.stringify(packet)).digest("hex") };
|
|
40041
40084
|
}, "readMeetingHitContext");
|
|
40042
40085
|
|
|
40043
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40086
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/meeting-passage-format.js
|
|
40044
40087
|
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
40088
|
var markdown = /* @__PURE__ */ __name((text2) => visible(text2).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replace(/[\\`*_[\]#|~]/g, "\\$&"), "markdown");
|
|
40046
40089
|
var timestamp = /* @__PURE__ */ __name((ms) => {
|
|
@@ -40116,7 +40159,7 @@ var readMeetingPassage = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
40116
40159
|
return { packet, content };
|
|
40117
40160
|
}, "readMeetingPassage");
|
|
40118
40161
|
|
|
40119
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
40120
40163
|
var communicationFields = {
|
|
40121
40164
|
sources: pipe(array(strictObject({
|
|
40122
40165
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -40148,7 +40191,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
40148
40191
|
return { ...input, after, before: before2 };
|
|
40149
40192
|
}, "communicationRequest");
|
|
40150
40193
|
|
|
40151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
40152
40195
|
var MEETING_PREPARATION_LIMITS = {
|
|
40153
40196
|
meetings: { min: 1, max: 20, default: 5 },
|
|
40154
40197
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -40234,7 +40277,7 @@ var preparationRequest = /* @__PURE__ */ __name((accountId, externalId, original
|
|
|
40234
40277
|
return { ...input, history };
|
|
40235
40278
|
}, "preparationRequest");
|
|
40236
40279
|
|
|
40237
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40280
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/meeting-communications-preparation.js
|
|
40238
40281
|
var readPreparationCommunications = /* @__PURE__ */ __name(async (plan, signal) => {
|
|
40239
40282
|
const section = {
|
|
40240
40283
|
readUsage: plan.reader.usage(),
|
|
@@ -40339,7 +40382,7 @@ var appendPreparationCommunications = /* @__PURE__ */ __name((result, read2) =>
|
|
|
40339
40382
|
result.knowledge.coverage.otherSources = "see-communications";
|
|
40340
40383
|
}, "appendPreparationCommunications");
|
|
40341
40384
|
|
|
40342
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40385
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
40343
40386
|
var captureCommunicationSelections = /* @__PURE__ */ __name((port) => {
|
|
40344
40387
|
if (port === void 0)
|
|
40345
40388
|
return void 0;
|
|
@@ -40444,7 +40487,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
40444
40487
|
}
|
|
40445
40488
|
}, "validatePreparationCommunications");
|
|
40446
40489
|
|
|
40447
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40490
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/meeting-knowledge-preparation.js
|
|
40448
40491
|
var invalid6 = /* @__PURE__ */ __name(() => {
|
|
40449
40492
|
throw new CliError("invalid_response", "Preparation knowledge returned an invalid selection");
|
|
40450
40493
|
}, "invalid");
|
|
@@ -40513,7 +40556,7 @@ var appendKnowledgePreparation = /* @__PURE__ */ __name(async (store, result, in
|
|
|
40513
40556
|
}
|
|
40514
40557
|
}, "appendKnowledgePreparation");
|
|
40515
40558
|
|
|
40516
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40559
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/meeting-notes-preparation.js
|
|
40517
40560
|
var invalid7 = /* @__PURE__ */ __name(() => {
|
|
40518
40561
|
throw new CliError("invalid_response", "Preparation notes returned an invalid selection");
|
|
40519
40562
|
}, "invalid");
|
|
@@ -40587,7 +40630,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
40587
40630
|
}
|
|
40588
40631
|
}, "appendNotesPreparation");
|
|
40589
40632
|
|
|
40590
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/meeting-project-preparation.js
|
|
40591
40634
|
var PAGE_LIMIT = 4;
|
|
40592
40635
|
var size2 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
40593
40636
|
var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, input) => {
|
|
@@ -40637,7 +40680,7 @@ var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, inpu
|
|
|
40637
40680
|
}
|
|
40638
40681
|
}, "appendProjectPreparation");
|
|
40639
40682
|
|
|
40640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40683
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/meeting-related-preparation.js
|
|
40641
40684
|
var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, input) => {
|
|
40642
40685
|
if (!result.series || !result.items.length || result.coverage.outputLimited)
|
|
40643
40686
|
return;
|
|
@@ -40709,7 +40752,7 @@ var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, inpu
|
|
|
40709
40752
|
}
|
|
40710
40753
|
}, "appendRelatedPreparation");
|
|
40711
40754
|
|
|
40712
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/meeting-preparation.js
|
|
40713
40756
|
var size3 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
40714
40757
|
var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
40715
40758
|
const fixed = snapshotMeetingScope(scope);
|
|
@@ -40847,7 +40890,7 @@ var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId,
|
|
|
40847
40890
|
};
|
|
40848
40891
|
}, "createMeetingPreparationService");
|
|
40849
40892
|
|
|
40850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40893
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
40851
40894
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
40852
40895
|
const installer = ports.installer();
|
|
40853
40896
|
const argv = updateCommand(installer, packageName);
|
|
@@ -40912,7 +40955,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
40912
40955
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
40913
40956
|
}, "dayAfter");
|
|
40914
40957
|
|
|
40915
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/proposal-tasks.js
|
|
40916
40959
|
var proposalSource = /* @__PURE__ */ __name((id2) => `proposed-action:${id2}`, "proposalSource");
|
|
40917
40960
|
var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
40918
40961
|
const proposal = await store.proposedActions.get(id2);
|
|
@@ -40935,7 +40978,7 @@ var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
|
40935
40978
|
return { proposal: await store.proposedActions.approve(proposal.id, by, { task: task2.id }), task: task2 };
|
|
40936
40979
|
}, "approveAsTask");
|
|
40937
40980
|
|
|
40938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40981
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/proposals/ids.js
|
|
40939
40982
|
var MAX_IDS = 500;
|
|
40940
40983
|
var refuse = /* @__PURE__ */ __name((message) => {
|
|
40941
40984
|
throw new CliError("validation_error", message, { reason: "proposal.ids" });
|
|
@@ -40977,7 +41020,7 @@ var parseProposalIds = /* @__PURE__ */ __name((text2) => {
|
|
|
40977
41020
|
return ids;
|
|
40978
41021
|
}, "parseProposalIds");
|
|
40979
41022
|
|
|
40980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41023
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/shared.js
|
|
40981
41024
|
var proposerOfAuthor = /* @__PURE__ */ __name((author) => {
|
|
40982
41025
|
if (author.type === "person")
|
|
40983
41026
|
return { type: "person", id: author.id };
|
|
@@ -41049,7 +41092,7 @@ var reviewedKind = /* @__PURE__ */ __name((spec) => ({
|
|
|
41049
41092
|
}, "decide")
|
|
41050
41093
|
}), "reviewedKind");
|
|
41051
41094
|
|
|
41052
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41095
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/findings.js
|
|
41053
41096
|
var FACT_SUMMARIES = {
|
|
41054
41097
|
fact: /* @__PURE__ */ __name((finding) => finding.statement, "fact"),
|
|
41055
41098
|
task: /* @__PURE__ */ __name((finding) => finding.title, "task"),
|
|
@@ -41121,7 +41164,7 @@ var findingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
41121
41164
|
};
|
|
41122
41165
|
}, "findingsKind");
|
|
41123
41166
|
|
|
41124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41167
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/organization.js
|
|
41125
41168
|
var ORGANIZATION_ADD_KIND = "organization_add";
|
|
41126
41169
|
var ORGANIZATION_RENAME_KIND = "organization_rename";
|
|
41127
41170
|
var rowOf2 = /* @__PURE__ */ __name((action2) => {
|
|
@@ -41177,7 +41220,7 @@ var organizationKind = /* @__PURE__ */ __name((store) => ({
|
|
|
41177
41220
|
}, "decide")
|
|
41178
41221
|
}), "organizationKind");
|
|
41179
41222
|
|
|
41180
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41223
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/action.js
|
|
41181
41224
|
var rowOf3 = /* @__PURE__ */ __name((action2) => ({
|
|
41182
41225
|
id: action2.id,
|
|
41183
41226
|
kind: "action",
|
|
@@ -41217,7 +41260,7 @@ var actionKind = /* @__PURE__ */ __name((store, claimed) => ({
|
|
|
41217
41260
|
}, "decide")
|
|
41218
41261
|
}), "actionKind");
|
|
41219
41262
|
|
|
41220
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41263
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/contracts.js
|
|
41221
41264
|
var contractKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
41222
41265
|
type: "contract",
|
|
41223
41266
|
list: /* @__PURE__ */ __name((options2) => store.contracts.list(options2), "list"),
|
|
@@ -41226,7 +41269,7 @@ var contractKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
41226
41269
|
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
41270
|
}), "contractKind");
|
|
41228
41271
|
|
|
41229
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41272
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/fact.js
|
|
41230
41273
|
var STATUS = {
|
|
41231
41274
|
proposed: "proposed",
|
|
41232
41275
|
accepted: "confirmed",
|
|
@@ -41269,7 +41312,7 @@ var factKind = /* @__PURE__ */ __name((store) => ({
|
|
|
41269
41312
|
}, "decide")
|
|
41270
41313
|
}), "factKind");
|
|
41271
41314
|
|
|
41272
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41315
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/finance.js
|
|
41273
41316
|
var invoiceKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
41274
41317
|
type: "invoice",
|
|
41275
41318
|
list: /* @__PURE__ */ __name((options2) => store.finance.invoices(options2), "list"),
|
|
@@ -41285,7 +41328,7 @@ var paymentKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
41285
41328
|
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
41329
|
}), "paymentKind");
|
|
41287
41330
|
|
|
41288
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41331
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/identity-link.js
|
|
41289
41332
|
var rowOf5 = /* @__PURE__ */ __name((action2) => {
|
|
41290
41333
|
const payload = action2.payload;
|
|
41291
41334
|
const [from, to] = payload.persons;
|
|
@@ -41332,7 +41375,62 @@ var identityLinkKind = /* @__PURE__ */ __name((store) => ({
|
|
|
41332
41375
|
}, "decide")
|
|
41333
41376
|
}), "identityLinkKind");
|
|
41334
41377
|
|
|
41335
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41378
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/identity-split.js
|
|
41379
|
+
var summaryOf = /* @__PURE__ */ __name((payload, person) => payload.split === "unmerge" ? `undo ${payload.merge}: ${payload.identities.join(", ")} go back to their own person` : `${payload.identities.join(", ")} may not be ${person}: they would move to a person of their own`, "summaryOf");
|
|
41380
|
+
var dropped = /* @__PURE__ */ __name((action2) => action2.status !== "proposed" && action2.status !== "rejected" && typeof action2.result?.person !== "string", "dropped");
|
|
41381
|
+
var rowOf6 = /* @__PURE__ */ __name((store) => async (action2) => {
|
|
41382
|
+
const payload = action2.payload;
|
|
41383
|
+
const [first2] = payload.identities;
|
|
41384
|
+
const now = first2 === void 0 ? void 0 : await store.people.personOf({
|
|
41385
|
+
provider: first2.slice(0, first2.indexOf(":")),
|
|
41386
|
+
id: first2.slice(first2.indexOf(":") + 1)
|
|
41387
|
+
});
|
|
41388
|
+
const person = `person:${now?.uid ?? payload.person}`;
|
|
41389
|
+
const summary = summaryOf(payload, person);
|
|
41390
|
+
return {
|
|
41391
|
+
id: action2.id,
|
|
41392
|
+
kind: IDENTITY_SPLIT_KIND,
|
|
41393
|
+
status: dropped(action2) ? "rejected" : actionStatus(action2.status),
|
|
41394
|
+
project: null,
|
|
41395
|
+
subject: person,
|
|
41396
|
+
object: null,
|
|
41397
|
+
summary: dropped(action2) ? `not carried out: an older version approved it without splitting; ${summary}` : summary,
|
|
41398
|
+
proposedBy: proposerOfAction(action2),
|
|
41399
|
+
reason: action2.reason,
|
|
41400
|
+
evidence: payload.evidence.slice(0, 5),
|
|
41401
|
+
score: null,
|
|
41402
|
+
signals: null,
|
|
41403
|
+
parts: null,
|
|
41404
|
+
createdAt: action2.createdAt
|
|
41405
|
+
};
|
|
41406
|
+
}, "rowOf");
|
|
41407
|
+
var identitySplitKind = /* @__PURE__ */ __name((store) => ({
|
|
41408
|
+
kind: IDENTITY_SPLIT_KIND,
|
|
41409
|
+
stored: [IDENTITY_SPLIT_KIND],
|
|
41410
|
+
ownerOnly: true,
|
|
41411
|
+
list: /* @__PURE__ */ __name(async (filter) => {
|
|
41412
|
+
const status = storedStatus(filter);
|
|
41413
|
+
const stored = await store.proposedActions.list({
|
|
41414
|
+
kinds: [IDENTITY_SPLIT_KIND],
|
|
41415
|
+
...status === void 0 ? {} : { status },
|
|
41416
|
+
...pushed2(filter)
|
|
41417
|
+
});
|
|
41418
|
+
return kept(await Promise.all(stored.map(rowOf6(store))), filter);
|
|
41419
|
+
}, "list"),
|
|
41420
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf6(store)(await store.proposedActions.get(id2)), "get"),
|
|
41421
|
+
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
41422
|
+
const decided = await store.people.decideSplit(id2, { confirm, by, ...reason === void 0 ? {} : { reason } });
|
|
41423
|
+
const person = decided.result?.person;
|
|
41424
|
+
return {
|
|
41425
|
+
id: id2,
|
|
41426
|
+
kind: IDENTITY_SPLIT_KIND,
|
|
41427
|
+
status: confirm ? "confirmed" : "rejected",
|
|
41428
|
+
made: person === void 0 ? [] : [`person:${person}`]
|
|
41429
|
+
};
|
|
41430
|
+
}, "decide")
|
|
41431
|
+
}), "identitySplitKind");
|
|
41432
|
+
|
|
41433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/key-document.js
|
|
41336
41434
|
var linkRow = /* @__PURE__ */ __name((link4) => ({
|
|
41337
41435
|
id: `key:${link4.id}`,
|
|
41338
41436
|
kind: "key_document",
|
|
@@ -41400,9 +41498,9 @@ var keyDocumentKind = /* @__PURE__ */ __name((store) => {
|
|
|
41400
41498
|
};
|
|
41401
41499
|
}, "keyDocumentKind");
|
|
41402
41500
|
|
|
41403
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41501
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/mail-findings.js
|
|
41404
41502
|
var words3 = /* @__PURE__ */ __name((...parts) => parts.filter(Boolean).join(" "), "words");
|
|
41405
|
-
var
|
|
41503
|
+
var summaryOf2 = /* @__PURE__ */ __name((finding) => {
|
|
41406
41504
|
switch (finding.kind) {
|
|
41407
41505
|
case "task":
|
|
41408
41506
|
return finding.title;
|
|
@@ -41426,7 +41524,7 @@ var summaryOf = /* @__PURE__ */ __name((finding) => {
|
|
|
41426
41524
|
return words3("order", finding.number, finding.supplierName, finding.status, `\xB7 ${finding.reason}`);
|
|
41427
41525
|
}
|
|
41428
41526
|
}, "summaryOf");
|
|
41429
|
-
var
|
|
41527
|
+
var rowOf7 = /* @__PURE__ */ __name((batch, createdAt) => {
|
|
41430
41528
|
const findings = batch.input.findings;
|
|
41431
41529
|
const outcome2 = /* @__PURE__ */ __name((id2) => batch.receipt?.items.find((item2) => item2.id === id2)?.status ?? null, "outcome");
|
|
41432
41530
|
const project2 = findings.flatMap((finding) => "project" in finding && finding.project ? [finding.project] : [])[0] ?? null;
|
|
@@ -41446,14 +41544,14 @@ var rowOf6 = /* @__PURE__ */ __name((batch, createdAt) => {
|
|
|
41446
41544
|
parts: findings.map((finding) => ({
|
|
41447
41545
|
id: finding.id,
|
|
41448
41546
|
kind: finding.kind,
|
|
41449
|
-
summary:
|
|
41547
|
+
summary: summaryOf2(finding),
|
|
41450
41548
|
outcome: outcome2(finding.id)
|
|
41451
41549
|
})),
|
|
41452
41550
|
createdAt
|
|
41453
41551
|
};
|
|
41454
41552
|
}, "rowOf");
|
|
41455
41553
|
var mailFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
41456
|
-
const created = /* @__PURE__ */ __name(async (batch) =>
|
|
41554
|
+
const created = /* @__PURE__ */ __name(async (batch) => rowOf7(batch, (await store.proposedActions.get(batch.id)).createdAt), "created");
|
|
41457
41555
|
return {
|
|
41458
41556
|
kind: "mail_findings",
|
|
41459
41557
|
stored: [MAIL_FINDINGS_KIND],
|
|
@@ -41488,8 +41586,8 @@ var mailFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
41488
41586
|
};
|
|
41489
41587
|
}, "mailFindingsKind");
|
|
41490
41588
|
|
|
41491
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41492
|
-
var
|
|
41589
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/meeting-findings.js
|
|
41590
|
+
var rowOf8 = /* @__PURE__ */ __name((action2, batch) => {
|
|
41493
41591
|
const findings = batch.input.findings;
|
|
41494
41592
|
const projects = [...new Set(findings.map((one2) => "project" in one2 ? one2.project : void 0))];
|
|
41495
41593
|
const outcome2 = /* @__PURE__ */ __name((id2) => batch.receipt?.items.find((item2) => item2.id === id2)?.status ?? null, "outcome");
|
|
@@ -41534,12 +41632,12 @@ var meetingFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
41534
41632
|
...filter.by === void 0 ? {} : { proposedBy: filter.by },
|
|
41535
41633
|
limit: Math.min(filter.offset + filter.limit, 500)
|
|
41536
41634
|
});
|
|
41537
|
-
const rows = await Promise.all(actions.map(async (action2) =>
|
|
41635
|
+
const rows = await Promise.all(actions.map(async (action2) => rowOf8(action2, (await batchOf(action2)).batch)));
|
|
41538
41636
|
return kept(rows, { ...filter, limit: filter.offset + filter.limit });
|
|
41539
41637
|
}, "list"),
|
|
41540
41638
|
get: /* @__PURE__ */ __name(async (id2) => {
|
|
41541
41639
|
const action2 = await store.proposedActions.get(id2);
|
|
41542
|
-
return
|
|
41640
|
+
return rowOf8(action2, (await batchOf(action2)).batch);
|
|
41543
41641
|
}, "get"),
|
|
41544
41642
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, parts }) => {
|
|
41545
41643
|
const { account, batch } = await batchOf(await store.proposedActions.get(id2));
|
|
@@ -41552,14 +41650,14 @@ var meetingFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
41552
41650
|
};
|
|
41553
41651
|
}, "meetingFindingsKind");
|
|
41554
41652
|
|
|
41555
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41653
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/memory.js
|
|
41556
41654
|
var STATUS2 = {
|
|
41557
41655
|
proposed: "proposed",
|
|
41558
41656
|
confirmed: "confirmed",
|
|
41559
41657
|
superseded: "confirmed",
|
|
41560
41658
|
stale: "rejected"
|
|
41561
41659
|
};
|
|
41562
|
-
var
|
|
41660
|
+
var rowOf9 = /* @__PURE__ */ __name((memory) => ({
|
|
41563
41661
|
id: memory.ref,
|
|
41564
41662
|
kind: "memory",
|
|
41565
41663
|
status: STATUS2[memory.status],
|
|
@@ -41584,16 +41682,16 @@ var memoryKind = /* @__PURE__ */ __name((store) => ({
|
|
|
41584
41682
|
...pushed2(filter),
|
|
41585
41683
|
...status === "all" ? {} : { status: status === "rejected" ? "stale" : status }
|
|
41586
41684
|
});
|
|
41587
|
-
return kept(memories.map(
|
|
41685
|
+
return kept(memories.map(rowOf9), filter);
|
|
41588
41686
|
}, "list"),
|
|
41589
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
41687
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf9(await store.memories.get(id2)), "get"),
|
|
41590
41688
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by }) => {
|
|
41591
41689
|
const memory = confirm ? await store.memories.confirm(id2, by) : await store.memories.markStale(id2, by);
|
|
41592
41690
|
return { id: id2, kind: "memory", status: confirm ? "confirmed" : "rejected", made: confirm ? [memory.ref] : [] };
|
|
41593
41691
|
}, "decide")
|
|
41594
41692
|
}), "memoryKind");
|
|
41595
41693
|
|
|
41596
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41694
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/orders.js
|
|
41597
41695
|
var orderKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
41598
41696
|
type: "order",
|
|
41599
41697
|
list: /* @__PURE__ */ __name((options2) => store.orders.list(options2), "list"),
|
|
@@ -41602,7 +41700,7 @@ var orderKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
41602
41700
|
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
41701
|
}), "orderKind");
|
|
41604
41702
|
|
|
41605
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41703
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship.js
|
|
41606
41704
|
var linkRow2 = /* @__PURE__ */ __name((link4) => ({
|
|
41607
41705
|
id: `link:${link4.id}`,
|
|
41608
41706
|
kind: "relationship",
|
|
@@ -41677,10 +41775,10 @@ var relationshipKind = /* @__PURE__ */ __name((store) => {
|
|
|
41677
41775
|
};
|
|
41678
41776
|
}, "relationshipKind");
|
|
41679
41777
|
|
|
41680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41778
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship-update.js
|
|
41681
41779
|
var KIND = "relationship_update";
|
|
41682
|
-
var
|
|
41683
|
-
var
|
|
41780
|
+
var summaryOf3 = /* @__PURE__ */ __name(({ changes }) => Object.entries(changes).map(([field, value]) => `${field} ${value ?? "cleared"}`).join(", "), "summaryOf");
|
|
41781
|
+
var rowOf10 = /* @__PURE__ */ __name((action2) => {
|
|
41684
41782
|
const payload = action2.payload;
|
|
41685
41783
|
return {
|
|
41686
41784
|
id: action2.id,
|
|
@@ -41689,7 +41787,7 @@ var rowOf9 = /* @__PURE__ */ __name((action2) => {
|
|
|
41689
41787
|
project: projectOf3(payload.to, payload.from),
|
|
41690
41788
|
subject: `relationship:${payload.relationship}`,
|
|
41691
41789
|
object: payload.to,
|
|
41692
|
-
summary:
|
|
41790
|
+
summary: summaryOf3(payload),
|
|
41693
41791
|
proposedBy: proposerOfAction(action2),
|
|
41694
41792
|
reason: action2.reason,
|
|
41695
41793
|
evidence: [],
|
|
@@ -41709,9 +41807,9 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
41709
41807
|
...status === void 0 ? {} : { status },
|
|
41710
41808
|
...pushed2(filter)
|
|
41711
41809
|
});
|
|
41712
|
-
return kept(stored.map(
|
|
41810
|
+
return kept(stored.map(rowOf10), filter);
|
|
41713
41811
|
}, "list"),
|
|
41714
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
41812
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf10(await store.proposedActions.get(id2)), "get"),
|
|
41715
41813
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
41716
41814
|
const { relation } = await store.knowledge.decideRelationUpdate(id2, {
|
|
41717
41815
|
confirm,
|
|
@@ -41727,8 +41825,8 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
41727
41825
|
}, "decide")
|
|
41728
41826
|
}), "relationshipUpdateKind");
|
|
41729
41827
|
|
|
41730
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41731
|
-
var
|
|
41828
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/source-review.js
|
|
41829
|
+
var rowOf11 = /* @__PURE__ */ __name((action2) => {
|
|
41732
41830
|
const payload = action2.payload;
|
|
41733
41831
|
const sources = payload.sources.flatMap((source) => source.ref ?? []);
|
|
41734
41832
|
const contradicting = payload.challenges.flatMap((challenge) => challenge.evidence);
|
|
@@ -41761,16 +41859,16 @@ var sourceReviewKind = /* @__PURE__ */ __name((store) => ({
|
|
|
41761
41859
|
...status === void 0 ? {} : { status },
|
|
41762
41860
|
...pushed2(filter)
|
|
41763
41861
|
});
|
|
41764
|
-
return kept(stored.map(
|
|
41862
|
+
return kept(stored.map(rowOf11), filter);
|
|
41765
41863
|
}, "list"),
|
|
41766
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
41864
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf11(await store.proposedActions.get(id2)), "get"),
|
|
41767
41865
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
41768
41866
|
await store.knowledge.decideSourceReview(id2, { confirm, by, ...reason === void 0 ? {} : { reason } });
|
|
41769
41867
|
return { id: id2, kind: SOURCE_REVIEW_KIND, status: confirm ? "confirmed" : "rejected", made: [] };
|
|
41770
41868
|
}, "decide")
|
|
41771
41869
|
}), "sourceReviewKind");
|
|
41772
41870
|
|
|
41773
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41871
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/subscriptions.js
|
|
41774
41872
|
var subscriptionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
41775
41873
|
type: "subscription",
|
|
41776
41874
|
list: /* @__PURE__ */ __name((options2) => store.subscriptions.list(options2), "list"),
|
|
@@ -41789,8 +41887,8 @@ var subscriptionPriceKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
41789
41887
|
}, "decide")
|
|
41790
41888
|
}), "subscriptionPriceKind");
|
|
41791
41889
|
|
|
41792
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41793
|
-
var
|
|
41890
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/task-close.js
|
|
41891
|
+
var rowOf12 = /* @__PURE__ */ __name((task2) => {
|
|
41794
41892
|
const suggestion = task2.closeSuggestion;
|
|
41795
41893
|
if (suggestion === null)
|
|
41796
41894
|
return void 0;
|
|
@@ -41815,7 +41913,7 @@ var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
|
41815
41913
|
const taskOf = /* @__PURE__ */ __name(async (id2) => {
|
|
41816
41914
|
const key = id2.slice("close:".length);
|
|
41817
41915
|
const task2 = await store.tasks.details(key).catch(() => void 0);
|
|
41818
|
-
const row = task2 &&
|
|
41916
|
+
const row = task2 && rowOf12(task2);
|
|
41819
41917
|
if (!task2 || !row)
|
|
41820
41918
|
throw new CliError("not_found", `no close waits on task ${key}`);
|
|
41821
41919
|
return { task: task2, row };
|
|
@@ -41832,7 +41930,7 @@ var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
|
41832
41930
|
where: { sql: "t.close_suggested_as IS NOT NULL", params: [] },
|
|
41833
41931
|
limit: filter.offset + filter.limit
|
|
41834
41932
|
});
|
|
41835
|
-
return kept(tasks.flatMap((task2) =>
|
|
41933
|
+
return kept(tasks.flatMap((task2) => rowOf12(task2) ?? []), { ...filter, limit: filter.offset + filter.limit });
|
|
41836
41934
|
}, "list"),
|
|
41837
41935
|
get: /* @__PURE__ */ __name(async (id2) => (await taskOf(id2)).row, "get"),
|
|
41838
41936
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
@@ -41857,7 +41955,7 @@ var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
|
41857
41955
|
};
|
|
41858
41956
|
}, "taskCloseKind");
|
|
41859
41957
|
|
|
41860
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/transactions.js
|
|
41861
41959
|
var transactionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
41862
41960
|
type: "transaction",
|
|
41863
41961
|
list: /* @__PURE__ */ __name((options2) => store.transactions.list(options2), "list"),
|
|
@@ -41866,7 +41964,7 @@ var transactionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
41866
41964
|
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
41965
|
}), "transactionKind");
|
|
41868
41966
|
|
|
41869
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41967
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/proposals/registry.js
|
|
41870
41968
|
var PREFIX = /^([a-z][a-z_]*):/;
|
|
41871
41969
|
var marked = /* @__PURE__ */ __name((kind, row) => kind.ownerOnly ? { ...row, ownerOnly: true } : row, "marked");
|
|
41872
41970
|
var refusalOf = /* @__PURE__ */ __name((id2, error) => {
|
|
@@ -41993,14 +42091,15 @@ var proposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
41993
42091
|
meetingFindingsKind(store),
|
|
41994
42092
|
taskCloseKind(store),
|
|
41995
42093
|
sourceReviewKind(store),
|
|
41996
|
-
identityLinkKind(store)
|
|
42094
|
+
identityLinkKind(store),
|
|
42095
|
+
identitySplitKind(store)
|
|
41997
42096
|
])
|
|
41998
42097
|
registry.register(kind);
|
|
41999
42098
|
registry.register(actionKind(store, registry.claimed));
|
|
42000
42099
|
return registry;
|
|
42001
42100
|
}, "proposalRegistry");
|
|
42002
42101
|
|
|
42003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42102
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
42004
42103
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
42005
42104
|
const pictures = picturesService(deps);
|
|
42006
42105
|
const base = {
|
|
@@ -42037,7 +42136,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
42037
42136
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
42038
42137
|
}, "servicesFor");
|
|
42039
42138
|
|
|
42040
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
42041
42140
|
var COMMAND_NEEDS = {
|
|
42042
42141
|
"account update": ["updateProfile", "change the profile"],
|
|
42043
42142
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -42087,7 +42186,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
42087
42186
|
return group;
|
|
42088
42187
|
}, "hideNever");
|
|
42089
42188
|
|
|
42090
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42189
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
42091
42190
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
42092
42191
|
command.allowUnknownOption();
|
|
42093
42192
|
const parse2 = command.parseOptions.bind(command);
|
|
@@ -42107,7 +42206,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
42107
42206
|
return command;
|
|
42108
42207
|
}, "queryWordsAfterOptions");
|
|
42109
42208
|
|
|
42110
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
42111
42210
|
var count3 = /* @__PURE__ */ __name((value) => {
|
|
42112
42211
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
42113
42212
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -42149,7 +42248,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
42149
42248
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
42150
42249
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
42151
42250
|
|
|
42152
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
42153
42252
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
42154
42253
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
42155
42254
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -42172,7 +42271,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
42172
42271
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
42173
42272
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
42174
42273
|
|
|
42175
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42274
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
42176
42275
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
42177
42276
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
42178
42277
|
const zone = timezoneOf();
|
|
@@ -42258,7 +42357,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
42258
42357
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
42259
42358
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
42260
42359
|
|
|
42261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42360
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
42262
42361
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
42263
42362
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
42264
42363
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -42402,7 +42501,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
42402
42501
|
}, "addMeetingCommandsDefinition");
|
|
42403
42502
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
42404
42503
|
|
|
42405
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42504
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
42406
42505
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
42407
42506
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
42408
42507
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -42535,7 +42634,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
42535
42634
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
42536
42635
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
42537
42636
|
|
|
42538
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42637
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
42539
42638
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
42540
42639
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
42541
42640
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -42544,7 +42643,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
42544
42643
|
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
42644
|
var window2 = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
42546
42645
|
|
|
42547
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42646
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
42548
42647
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
42549
42648
|
var chatRef2 = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
42550
42649
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -42806,7 +42905,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
42806
42905
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
42807
42906
|
}), "sessionAnswer");
|
|
42808
42907
|
|
|
42809
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42908
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
42810
42909
|
import { createHash as createHash16 } from "node:crypto";
|
|
42811
42910
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync6, rmSync as rmSync2 } from "node:fs";
|
|
42812
42911
|
import { createConnection, createServer } from "node:net";
|
|
@@ -42954,7 +43053,7 @@ var serve = /* @__PURE__ */ __name(async (socket, request, stdin, signal, run) =
|
|
|
42954
43053
|
}
|
|
42955
43054
|
}, "serve");
|
|
42956
43055
|
|
|
42957
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43056
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.633.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_6b55a08b64e6f66e5ab3a99b7d6b1e87/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
42958
43057
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
42959
43058
|
close: /* @__PURE__ */ __name(async () => {
|
|
42960
43059
|
}, "close"),
|