@wirecat/cli-memo 0.131.34 → 0.131.35
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-GPFKMOBB.js → all-profiles-6666YYUZ.js} +9 -9
- package/dist/bundle/{anthropic-ASHT7U76.js → anthropic-23OB7KWO.js} +6 -6
- package/dist/bundle/{app-server-D3IL4M6V.js → app-server-2S5OS3OH.js} +42 -42
- package/dist/bundle/auto-XDBIEURD.js +86 -0
- package/dist/bundle/{bun-EIOFQKTA.js → bun-BNVO37ZD.js} +2 -2
- package/dist/bundle/{bun-sqlite-YIX2BVSZ.js → bun-sqlite-USZ27VKM.js} +5 -5
- package/dist/bundle/{chunk-ZWBLSTFE.js → chunk-26PVWAKE.js} +255 -255
- package/dist/bundle/{chunk-XV4E2XGC.js → chunk-2DTUMEN2.js} +4 -4
- package/dist/bundle/{chunk-H7N5JMQN.js → chunk-2PFOLWD3.js} +3 -3
- package/dist/bundle/{chunk-TZ7WDQPD.js → chunk-2R2Z2VWL.js} +20 -20
- package/dist/bundle/{chunk-UW2FRDLZ.js → chunk-2Y4UU4DB.js} +3 -3
- package/dist/bundle/{chunk-3W4HD6ZQ.js → chunk-3ZZ5OCUO.js} +6 -6
- package/dist/bundle/{chunk-EVD3X6HS.js → chunk-4OR4HFSL.js} +8 -8
- package/dist/bundle/{chunk-ZV2K5I2G.js → chunk-6D47X4KD.js} +1 -1
- package/dist/bundle/{chunk-DU6LCIHP.js → chunk-6H6EXCZY.js} +1 -1
- package/dist/bundle/{chunk-KG7APWFM.js → chunk-736NNFPY.js} +1 -1
- package/dist/bundle/{chunk-C7AXGHGM.js → chunk-AYIUZUGD.js} +1 -1
- package/dist/bundle/{chunk-4VJJEIVC.js → chunk-BHDNHN55.js} +8 -8
- package/dist/bundle/{chunk-SMAODNHO.js → chunk-BU4LJSW2.js} +1 -1
- package/dist/bundle/{chunk-BN5H2M75.js → chunk-C2XCIZND.js} +2 -2
- package/dist/bundle/{chunk-KV4267S4.js → chunk-CID4MNRQ.js} +1 -1
- package/dist/bundle/{chunk-EQR2QVP3.js → chunk-CLHGYKYZ.js} +5 -5
- package/dist/bundle/{chunk-ONEW2BND.js → chunk-CMMKWXFG.js} +35 -35
- package/dist/bundle/{chunk-LC5SAWVM.js → chunk-DCBBLYCI.js} +29 -29
- package/dist/bundle/{chunk-GWMA7EU5.js → chunk-DMU5PAKY.js} +1 -1
- package/dist/bundle/{chunk-6PTJTITL.js → chunk-DMUIMBCE.js} +4 -4
- package/dist/bundle/{chunk-26I6JRFH.js → chunk-DQ66H456.js} +4 -4
- package/dist/bundle/{chunk-ZE5HUZJV.js → chunk-DYMUJFDK.js} +14 -14
- package/dist/bundle/{chunk-MQ7IHK4Z.js → chunk-EIYLAELT.js} +343 -289
- package/dist/bundle/{chunk-47KEZ3AX.js → chunk-FXG3SUIQ.js} +13 -13
- package/dist/bundle/{chunk-UBUKFDMN.js → chunk-FYT6A3UY.js} +1 -1
- package/dist/bundle/{chunk-RQVC4ETN.js → chunk-GAWGZN4F.js} +3 -3
- package/dist/bundle/{chunk-CL6MHRXX.js → chunk-GLFFCRRX.js} +2 -2
- package/dist/bundle/{chunk-G7TQ5W5Z.js → chunk-GNLCVNP7.js} +9 -9
- package/dist/bundle/{chunk-WROCO6RJ.js → chunk-I55VXEI2.js} +4 -4
- package/dist/bundle/{chunk-NDEA2YAQ.js → chunk-ICBWD2OL.js} +1 -1
- package/dist/bundle/{chunk-YZU5HNYY.js → chunk-IKDHJLSH.js} +277 -277
- package/dist/bundle/{chunk-XZ3XUN4R.js → chunk-JIWQNA2J.js} +156 -156
- package/dist/bundle/{chunk-I7PL5WX2.js → chunk-JY34MQW4.js} +4 -4
- package/dist/bundle/{chunk-Y3XTA24Z.js → chunk-L3SMTWCF.js} +7 -7
- package/dist/bundle/{chunk-7YECAMPV.js → chunk-L7AB7Y4Z.js} +46 -46
- package/dist/bundle/{chunk-BWVE7V4A.js → chunk-LBDMVVVW.js} +12 -12
- package/dist/bundle/{chunk-YPF6OS37.js → chunk-LER7G4XY.js} +1 -1
- package/dist/bundle/{chunk-IAFUPD2G.js → chunk-LQHW4G6G.js} +6 -6
- package/dist/bundle/{chunk-AQQSOZ57.js → chunk-ME5RGIHV.js} +11 -11
- package/dist/bundle/{chunk-5OCV4UG5.js → chunk-MMRM6ZMM.js} +2 -2
- package/dist/bundle/{chunk-Y3NJODLW.js → chunk-MNKCFCI7.js} +2 -2
- package/dist/bundle/{chunk-E7NEGYRF.js → chunk-N2Y6FTPK.js} +2 -2
- package/dist/bundle/{chunk-I4SJXEDS.js → chunk-NYELWBUA.js} +6 -6
- package/dist/bundle/{chunk-L43BXXBS.js → chunk-OCIE3POS.js} +6 -6
- package/dist/bundle/{chunk-7PQZBIBH.js → chunk-PYQU4GLK.js} +64 -64
- package/dist/bundle/{chunk-DOXKMSML.js → chunk-RUZOQ7QN.js} +4 -4
- package/dist/bundle/{chunk-EB2IULWB.js → chunk-RZ54DSVU.js} +2 -2
- package/dist/bundle/{chunk-BRG5MJLL.js → chunk-SKBMXSQ3.js} +2 -2
- package/dist/bundle/{chunk-JD4EEKNA.js → chunk-SKVRUW57.js} +2 -2
- package/dist/bundle/{chunk-2RDJLWOY.js → chunk-SMJAJWYW.js} +3 -3
- package/dist/bundle/{chunk-G2BB5WY5.js → chunk-SN63VOE6.js} +8 -8
- package/dist/bundle/{chunk-RTPTCTH6.js → chunk-SRHG24V7.js} +4 -4
- package/dist/bundle/{chunk-YJMQBJWU.js → chunk-T3AUEF46.js} +22 -22
- package/dist/bundle/{chunk-D22HTXOR.js → chunk-URQ7ZL5K.js} +10 -10
- package/dist/bundle/{chunk-NECGI52P.js → chunk-V5N65VRU.js} +9 -9
- package/dist/bundle/{chunk-GY27B6XK.js → chunk-VJSWU4JX.js} +3 -3
- package/dist/bundle/{chunk-TVHCOWJD.js → chunk-VMXESPNG.js} +7 -7
- package/dist/bundle/{chunk-D5LDALYF.js → chunk-VYYPW7YP.js} +31 -23
- package/dist/bundle/{chunk-NPLZ67KU.js → chunk-WIK6SGHZ.js} +2 -2
- package/dist/bundle/{chunk-VE2NDXFO.js → chunk-WRUD4OYQ.js} +5 -5
- package/dist/bundle/{chunk-EGB2R53R.js → chunk-XLKJSFQN.js} +2 -2
- package/dist/bundle/{chunk-S62WXHPD.js → chunk-XZPE2E3O.js} +8 -8
- package/dist/bundle/{chunk-XBIPSSKI.js → chunk-Y5CAKD4X.js} +4 -4
- package/dist/bundle/{chunk-5HVQTBDA.js → chunk-YGW3JZVB.js} +22 -22
- package/dist/bundle/command-contract-TBZCPYWZ.js +32 -0
- package/dist/bundle/{decode-BF5RUGSR.js → decode-RMAOEVTY.js} +5 -5
- package/dist/bundle/{dispatch-CU5KGRQL.js → dispatch-MLRETSNQ.js} +8 -8
- package/dist/bundle/{echarts-ADL7T3Q3.js → echarts-R2MI4OEU.js} +2 -2
- package/dist/bundle/{embed-DOTUACTV.js → embed-BG2XPLWM.js} +6 -6
- package/dist/bundle/{embedder-TMR4UP7L.js → embedder-65SA34CZ.js} +9 -9
- package/dist/bundle/{entry-RPG5J5UQ.js → entry-DX3D4TWF.js} +7 -7
- package/dist/bundle/failure-76A5ZD6Y.js +66 -0
- package/dist/bundle/{failure-TUXXI6JT.js → failure-UJBGB2GP.js} +2 -2
- package/dist/bundle/{first-run-ONCIVD42.js → first-run-ZUQRYWEZ.js} +11 -11
- package/dist/bundle/first-screen-O5X3OT77.js +30 -0
- package/dist/bundle/{instructions-QVBHRTPG.js → instructions-ZDWGTLMU.js} +1 -1
- package/dist/bundle/mcp-B5CUHAKS.js +90 -0
- package/dist/bundle/{mcp-PPVOM4SE.js → mcp-YMXA6IH6.js} +2 -2
- package/dist/bundle/memo.js +16 -16
- package/dist/bundle/{node-6OXRSWHH.js → node-43BSSPFC.js} +2 -2
- package/dist/bundle/{node-sqlite-TG4H4T3L.js → node-sqlite-RPWFR6H3.js} +6 -6
- package/dist/bundle/{oauth-OXKNZOKZ.js → oauth-AYAADVSS.js} +7 -7
- package/dist/bundle/{open-WW3W42QS.js → open-XEZ5CPLR.js} +5 -5
- package/dist/bundle/{openai-MNHTZHBT.js → openai-SQS7OBEI.js} +10 -10
- package/dist/bundle/{process-TCXURVHD.js → process-HJWMNCUC.js} +1 -1
- package/dist/bundle/{program-GYW7IHWQ.js → program-RQO3ZNVL.js} +80 -68
- package/dist/bundle/{prompt-TGGJDYAS.js → prompt-STQZGLH7.js} +5 -5
- package/dist/bundle/{recognize-WV4MK35T.js → recognize-HJ6G4OWB.js} +4 -4
- package/dist/bundle/{remote-RQVV5MFO.js → remote-HDTQYFBP.js} +7 -7
- package/dist/bundle/{rerank-OJPVJGX5.js → rerank-GBKN7RN4.js} +7 -7
- package/dist/bundle/{serve-KG7HPG5B.js → serve-KPTYHWUY.js} +9 -9
- package/dist/bundle/{server-ESYNVVQC.js → server-ASCI46TB.js} +57 -57
- package/dist/bundle/server-DJVWUOO7.js +61 -0
- package/dist/bundle/server-TEOK5SHM.js +48 -0
- package/dist/bundle/{state-G7KN3S6X.js → state-22MNHAQY.js} +6 -6
- package/dist/bundle/{store-GI2FLGUI.js → store-R7QBCWWM.js} +13 -13
- package/dist/bundle/store-maintenance-command-BZXFY2NT.js +48 -0
- package/dist/bundle/update-I5HTAMBY.js +69 -0
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +5 -1
- package/dist/examples.js.map +1 -1
- package/dist/knowledge/command.d.ts.map +1 -1
- package/dist/knowledge/command.js +23 -8
- package/dist/knowledge/command.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/auto-BL5FF576.js +0 -86
- package/dist/bundle/command-contract-X3I3J4AF.js +0 -32
- package/dist/bundle/failure-4CTYFX6P.js +0 -66
- package/dist/bundle/first-screen-4LRYED7X.js +0 -30
- package/dist/bundle/mcp-4AFVFHYE.js +0 -90
- package/dist/bundle/server-TQVOXRHP.js +0 -48
- package/dist/bundle/server-YKMBFXQ4.js +0 -61
- package/dist/bundle/store-maintenance-command-CQ3KI7LW.js +0 -48
- package/dist/bundle/update-NP3I4GCG.js +0 -69
- /package/dist/bundle/{chunk-3RFXKBZA.js → chunk-AT5Y62SD.js} +0 -0
- /package/dist/bundle/{chunk-LU3WKZBA.js → chunk-QMNLI4NV.js} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FXG3SUIQ.js";
|
|
12
12
|
import {
|
|
13
13
|
Command,
|
|
14
14
|
DEFAULT_IMAGE_MODEL,
|
|
@@ -51,17 +51,17 @@ import {
|
|
|
51
51
|
typedCommand,
|
|
52
52
|
vectorModelKey,
|
|
53
53
|
withAttempt
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-JIWQNA2J.js";
|
|
55
55
|
import {
|
|
56
56
|
isCliFailure
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-GNLCVNP7.js";
|
|
58
58
|
import {
|
|
59
59
|
isNewer,
|
|
60
60
|
updateCommand
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-JY34MQW4.js";
|
|
62
62
|
import {
|
|
63
63
|
readOnlyLockOf
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-N2Y6FTPK.js";
|
|
65
65
|
import {
|
|
66
66
|
AGENDA_COLUMNS,
|
|
67
67
|
CHAT_COLUMNS,
|
|
@@ -163,7 +163,7 @@ import {
|
|
|
163
163
|
validateAst,
|
|
164
164
|
validateFields,
|
|
165
165
|
withoutField
|
|
166
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-IKDHJLSH.js";
|
|
167
167
|
import {
|
|
168
168
|
EVENT_QUERY,
|
|
169
169
|
MEETING_FINDINGS_KIND,
|
|
@@ -217,23 +217,23 @@ import {
|
|
|
217
217
|
validateQuery,
|
|
218
218
|
walkQuery,
|
|
219
219
|
zonedMoment
|
|
220
|
-
} from "./chunk-
|
|
220
|
+
} from "./chunk-PYQU4GLK.js";
|
|
221
221
|
import {
|
|
222
222
|
DEFAULT_STEMMERS,
|
|
223
223
|
createStemmer,
|
|
224
224
|
fold,
|
|
225
225
|
normalize
|
|
226
|
-
} from "./chunk-
|
|
226
|
+
} from "./chunk-4OR4HFSL.js";
|
|
227
227
|
import {
|
|
228
228
|
DEFAULT_TASK_CATEGORIES,
|
|
229
229
|
FALLBACK_CATEGORY
|
|
230
|
-
} from "./chunk-
|
|
230
|
+
} from "./chunk-OCIE3POS.js";
|
|
231
231
|
import {
|
|
232
232
|
MAX_MODEL_IMAGE_BYTES
|
|
233
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-C2XCIZND.js";
|
|
234
234
|
import {
|
|
235
235
|
remoteKey
|
|
236
|
-
} from "./chunk-
|
|
236
|
+
} from "./chunk-GAWGZN4F.js";
|
|
237
237
|
import {
|
|
238
238
|
Unzip,
|
|
239
239
|
UnzipInflate,
|
|
@@ -244,19 +244,19 @@ import {
|
|
|
244
244
|
placedText,
|
|
245
245
|
runEmbedders,
|
|
246
246
|
textModelsDirectory
|
|
247
|
-
} from "./chunk-
|
|
247
|
+
} from "./chunk-3ZZ5OCUO.js";
|
|
248
248
|
import {
|
|
249
249
|
installFiles,
|
|
250
250
|
megabytes
|
|
251
|
-
} from "./chunk-
|
|
251
|
+
} from "./chunk-DMUIMBCE.js";
|
|
252
252
|
import {
|
|
253
253
|
storePath,
|
|
254
254
|
wirecatDirectory
|
|
255
|
-
} from "./chunk-
|
|
255
|
+
} from "./chunk-WIK6SGHZ.js";
|
|
256
256
|
import {
|
|
257
257
|
resolvePaths,
|
|
258
258
|
writeSecurely
|
|
259
|
-
} from "./chunk-
|
|
259
|
+
} from "./chunk-2R2Z2VWL.js";
|
|
260
260
|
import {
|
|
261
261
|
array,
|
|
262
262
|
boolean,
|
|
@@ -279,7 +279,7 @@ import {
|
|
|
279
279
|
string,
|
|
280
280
|
transform,
|
|
281
281
|
unknown
|
|
282
|
-
} from "./chunk-
|
|
282
|
+
} from "./chunk-SN63VOE6.js";
|
|
283
283
|
import {
|
|
284
284
|
importFrom,
|
|
285
285
|
resolveFrom
|
|
@@ -289,7 +289,7 @@ import {
|
|
|
289
289
|
isCliError,
|
|
290
290
|
singleLine,
|
|
291
291
|
visibleControls
|
|
292
|
-
} from "./chunk-
|
|
292
|
+
} from "./chunk-RZ54DSVU.js";
|
|
293
293
|
import {
|
|
294
294
|
__commonJS,
|
|
295
295
|
__name,
|
|
@@ -16905,7 +16905,7 @@ var require_lib3 = __commonJS({
|
|
|
16905
16905
|
}
|
|
16906
16906
|
});
|
|
16907
16907
|
|
|
16908
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16908
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16909
16909
|
var RULES_VERSION = 5;
|
|
16910
16910
|
var LOOK_BACK = 50;
|
|
16911
16911
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -16995,13 +16995,13 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
16995
16995
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
16996
16996
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
16997
16997
|
|
|
16998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16998
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16999
16999
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
17000
17000
|
|
|
17001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
|
|
17002
17002
|
var MAX_BYTES = 16 * 1024 * 1024;
|
|
17003
17003
|
|
|
17004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
|
|
17005
17005
|
var ORGANIZATIONS_QUERY = {
|
|
17006
17006
|
entity: "organization",
|
|
17007
17007
|
backend: "sql",
|
|
@@ -17036,7 +17036,7 @@ var REMINDERS_QUERY = {
|
|
|
17036
17036
|
})
|
|
17037
17037
|
};
|
|
17038
17038
|
|
|
17039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17039
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
|
|
17040
17040
|
var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
|
|
17041
17041
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
17042
17042
|
throw new CliError("validation_error", "project preview options are required");
|
|
@@ -17058,7 +17058,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
|
|
|
17058
17058
|
}
|
|
17059
17059
|
}, "previewProjectAnnotationSnapshot");
|
|
17060
17060
|
|
|
17061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
|
|
17062
17062
|
var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
17063
17063
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
17064
17064
|
throw new CliError("validation_error", "snapshot options are required");
|
|
@@ -17079,7 +17079,7 @@ var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
|
17079
17079
|
}
|
|
17080
17080
|
}, "snapshotProjectAnnotations");
|
|
17081
17081
|
|
|
17082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17082
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17083
17083
|
var COMMAND_NEEDS = {
|
|
17084
17084
|
"account update": ["updateProfile", "change the profile"],
|
|
17085
17085
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17129,7 +17129,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17129
17129
|
return group;
|
|
17130
17130
|
}, "hideNever");
|
|
17131
17131
|
|
|
17132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17133
17133
|
var AUDIT_PAGE = 200;
|
|
17134
17134
|
var AUDIT_BUDGET = 10;
|
|
17135
17135
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17209,7 +17209,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17209
17209
|
return found;
|
|
17210
17210
|
}, "burstJoins");
|
|
17211
17211
|
|
|
17212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17212
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17213
17213
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17214
17214
|
command.allowUnknownOption();
|
|
17215
17215
|
const parse = command.parseOptions.bind(command);
|
|
@@ -17229,7 +17229,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17229
17229
|
return command;
|
|
17230
17230
|
}, "queryWordsAfterOptions");
|
|
17231
17231
|
|
|
17232
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17232
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17233
17233
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17234
17234
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17235
17235
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -17271,7 +17271,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
17271
17271
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
17272
17272
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
17273
17273
|
|
|
17274
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17274
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
17275
17275
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
17276
17276
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17277
17277
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -17294,7 +17294,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
17294
17294
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
17295
17295
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
17296
17296
|
|
|
17297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17297
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
17298
17298
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
17299
17299
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
17300
17300
|
const zone = timezoneOf();
|
|
@@ -17380,7 +17380,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
17380
17380
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
17381
17381
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
17382
17382
|
|
|
17383
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17383
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
17384
17384
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
17385
17385
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
17386
17386
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -17512,7 +17512,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17512
17512
|
}, "addMeetingCommandsDefinition");
|
|
17513
17513
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
17514
17514
|
|
|
17515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
17516
17516
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
17517
17517
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
17518
17518
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -17645,7 +17645,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
17645
17645
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
17646
17646
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
17647
17647
|
|
|
17648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
17649
17649
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
17650
17650
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
17651
17651
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -17654,7 +17654,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
17654
17654
|
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");
|
|
17655
17655
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
17656
17656
|
|
|
17657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
17658
17658
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
17659
17659
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
17660
17660
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -17916,7 +17916,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
17916
17916
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
17917
17917
|
}), "sessionAnswer");
|
|
17918
17918
|
|
|
17919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
17920
17920
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
17921
17921
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
17922
17922
|
if (key in own)
|
|
@@ -17933,12 +17933,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
17933
17933
|
return found.bind(adapter);
|
|
17934
17934
|
}, "capability");
|
|
17935
17935
|
|
|
17936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17937
17937
|
import { randomBytes } from "node:crypto";
|
|
17938
17938
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17939
17939
|
var newOperationId = newSendId;
|
|
17940
17940
|
|
|
17941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17941
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17942
17942
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17943
17943
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17944
17944
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -18015,7 +18015,7 @@ var storeOnlyDeps = /* @__PURE__ */ __name((store, account, { app, env }) => {
|
|
|
18015
18015
|
return { ...storedDeps(messenger, store, account, guard), ...env === void 0 ? {} : { env } };
|
|
18016
18016
|
}, "storeOnlyDeps");
|
|
18017
18017
|
|
|
18018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18019
18019
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18020
18020
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18021
18021
|
var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
@@ -18038,10 +18038,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
|
18038
18038
|
}
|
|
18039
18039
|
}, "patiently");
|
|
18040
18040
|
|
|
18041
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18041
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18042
18042
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18043
18043
|
|
|
18044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18045
18045
|
var REQUEST_MS = 400;
|
|
18046
18046
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18047
18047
|
const lowest = ranges[0];
|
|
@@ -18064,13 +18064,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18064
18064
|
};
|
|
18065
18065
|
}, "estimateBackfill");
|
|
18066
18066
|
|
|
18067
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18067
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18068
18068
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18069
18069
|
...error,
|
|
18070
18070
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18071
18071
|
}), "withRecovery");
|
|
18072
18072
|
|
|
18073
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18073
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18074
18074
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18075
18075
|
if (isCliFailure(error))
|
|
18076
18076
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18153,7 +18153,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18153
18153
|
};
|
|
18154
18154
|
}, "mergeBatches");
|
|
18155
18155
|
|
|
18156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/domain/ref-arguments.js
|
|
18157
18157
|
var TAKES = {
|
|
18158
18158
|
chat: "a chat: chat:<provider>/<account>/<chat>, its id or its title",
|
|
18159
18159
|
message: "a message: msg:<provider>/<account>/<chat>/<message>, or a chat and the message's id"
|
|
@@ -18213,7 +18213,7 @@ var ensureAccount = /* @__PURE__ */ __name(async (reference, scope, profilesOn)
|
|
|
18213
18213
|
throw wrongAccount(reference, scope, profiles);
|
|
18214
18214
|
}, "ensureAccount");
|
|
18215
18215
|
|
|
18216
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18216
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
18217
18217
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
18218
18218
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase(), "foldName");
|
|
18219
18219
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -18258,7 +18258,7 @@ ${lines3}`, { candidates });
|
|
|
18258
18258
|
}, "ambiguous");
|
|
18259
18259
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
18260
18260
|
|
|
18261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18262
18262
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18263
18263
|
if (deps.reads !== "store")
|
|
18264
18264
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18417,7 +18417,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18417
18417
|
}
|
|
18418
18418
|
}, "senderAmong");
|
|
18419
18419
|
|
|
18420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
18421
18421
|
var CONTEXT_MESSAGES = 3;
|
|
18422
18422
|
var CONTEXT_MINUTES = 10;
|
|
18423
18423
|
var MAX_CHARS = 1200;
|
|
@@ -18441,12 +18441,12 @@ var context = {
|
|
|
18441
18441
|
}, "describe")
|
|
18442
18442
|
};
|
|
18443
18443
|
|
|
18444
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
18445
18445
|
var BUILT_INS = [context];
|
|
18446
18446
|
var providers = [...BUILT_INS];
|
|
18447
18447
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18448
18448
|
|
|
18449
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18449
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
18450
18450
|
var READ_PAGE = 5e3;
|
|
18451
18451
|
var CHAIN = 50;
|
|
18452
18452
|
var CONVERSATION_QUERY = {
|
|
@@ -18598,7 +18598,7 @@ var sized = /* @__PURE__ */ __name((size4) => {
|
|
|
18598
18598
|
return size4;
|
|
18599
18599
|
}, "sized");
|
|
18600
18600
|
|
|
18601
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18601
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
18602
18602
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
18603
18603
|
var MESSAGE_PAGE = 5e3;
|
|
18604
18604
|
var PER_SESSION = 8;
|
|
@@ -18617,7 +18617,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18617
18617
|
price: remote.price,
|
|
18618
18618
|
installed: true,
|
|
18619
18619
|
perBatch: PER_REQUEST * concurrency,
|
|
18620
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
18620
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-HDTQYFBP.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
18621
18621
|
};
|
|
18622
18622
|
}
|
|
18623
18623
|
const model = textModel(choice);
|
|
@@ -18634,7 +18634,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18634
18634
|
if (!isTextModelInstalled(model, directory2))
|
|
18635
18635
|
throw notDownloaded(model.id);
|
|
18636
18636
|
if (apart) {
|
|
18637
|
-
const { openProcess } = await import("./process-
|
|
18637
|
+
const { openProcess } = await import("./process-HJWMNCUC.js");
|
|
18638
18638
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
18639
18639
|
}
|
|
18640
18640
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -18923,7 +18923,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
18923
18923
|
return { ...one2, state };
|
|
18924
18924
|
}, "shaped");
|
|
18925
18925
|
|
|
18926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
18927
18927
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
18928
18928
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
18929
18929
|
for (const [key, value, maximum] of [
|
|
@@ -18976,7 +18976,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
18976
18976
|
}
|
|
18977
18977
|
}, "catchUpSearch");
|
|
18978
18978
|
|
|
18979
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18980
18980
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
18981
18981
|
if (deps.reads === "store") {
|
|
18982
18982
|
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`);
|
|
@@ -19342,7 +19342,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19342
19342
|
return message?.timestamp ?? fallback;
|
|
19343
19343
|
}, "timeOfKey");
|
|
19344
19344
|
|
|
19345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
19346
19346
|
var LINKS = /https?:\/\/\S+/g;
|
|
19347
19347
|
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");
|
|
19348
19348
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -19372,7 +19372,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
19372
19372
|
});
|
|
19373
19373
|
}, "questions");
|
|
19374
19374
|
|
|
19375
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19375
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
19376
19376
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
19377
19377
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
19378
19378
|
const name = typed.trim().toLowerCase();
|
|
@@ -19429,7 +19429,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
19429
19429
|
return best.name;
|
|
19430
19430
|
}, "categorize");
|
|
19431
19431
|
|
|
19432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
19433
19433
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
19434
19434
|
var RULES_IN = {
|
|
19435
19435
|
dialog: "all",
|
|
@@ -19635,7 +19635,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
19635
19635
|
return passes;
|
|
19636
19636
|
}, "applyTaskRulesToChats");
|
|
19637
19637
|
|
|
19638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
19639
19639
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
19640
19640
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
19641
19641
|
const fail3 = /* @__PURE__ */ __name(() => {
|
|
@@ -19699,7 +19699,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
19699
19699
|
}
|
|
19700
19700
|
}, "validateContextEvidencePage");
|
|
19701
19701
|
|
|
19702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
19703
19703
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
19704
19704
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
19705
19705
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -19752,7 +19752,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
19752
19752
|
};
|
|
19753
19753
|
}, "contextReadBudget");
|
|
19754
19754
|
|
|
19755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
19756
19756
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
19757
19757
|
if (!port || typeof port.read !== "function")
|
|
19758
19758
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -19796,7 +19796,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
19796
19796
|
};
|
|
19797
19797
|
}, "createContextEvidenceReader");
|
|
19798
19798
|
|
|
19799
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19799
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/ingest.js
|
|
19800
19800
|
var emptyReceipt = /* @__PURE__ */ __name((dryRun) => ({
|
|
19801
19801
|
dryRun,
|
|
19802
19802
|
source: null,
|
|
@@ -19871,7 +19871,7 @@ var ingest = /* @__PURE__ */ __name(async (store, envelope, { account, dryRun =
|
|
|
19871
19871
|
return receipt;
|
|
19872
19872
|
}, "ingest");
|
|
19873
19873
|
|
|
19874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
19875
19875
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
19876
19876
|
var DEFAULT_PURPOSES = ["work"];
|
|
19877
19877
|
var LINK_PURPOSE = "work";
|
|
@@ -19901,7 +19901,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
19901
19901
|
...value.split(",").map((one2) => one2.trim()).filter(Boolean)
|
|
19902
19902
|
], "purposeList");
|
|
19903
19903
|
|
|
19904
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19904
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
19905
19905
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
19906
19906
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
19907
19907
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -19941,7 +19941,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
19941
19941
|
};
|
|
19942
19942
|
}, "dateWindow");
|
|
19943
19943
|
|
|
19944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
19945
19945
|
var DAY_MS = 864e5;
|
|
19946
19946
|
var NEW_DAYS = 30;
|
|
19947
19947
|
var SAME_TEXT_MIN = 20;
|
|
@@ -20018,7 +20018,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
20018
20018
|
};
|
|
20019
20019
|
}, "scorePerson");
|
|
20020
20020
|
|
|
20021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
20022
20022
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
20023
20023
|
const controller = new AbortController();
|
|
20024
20024
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -20034,7 +20034,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run) => {
|
|
|
20034
20034
|
}
|
|
20035
20035
|
}, "withTimeLimit");
|
|
20036
20036
|
|
|
20037
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20037
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
20038
20038
|
var REGISTRIES = {
|
|
20039
20039
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
20040
20040
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -20121,7 +20121,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
20121
20121
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
20122
20122
|
})), "notCovered");
|
|
20123
20123
|
|
|
20124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
20125
20125
|
var ACTIVITY_MESSAGES = 1e3;
|
|
20126
20126
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
20127
20127
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20209,7 +20209,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
20209
20209
|
};
|
|
20210
20210
|
}, "botCheckService");
|
|
20211
20211
|
|
|
20212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20212
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
20213
20213
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
20214
20214
|
if (value === void 0)
|
|
20215
20215
|
return void 0;
|
|
@@ -20219,7 +20219,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
20219
20219
|
return id2;
|
|
20220
20220
|
}, "threadIdOf");
|
|
20221
20221
|
|
|
20222
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20222
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
20223
20223
|
var TOP_POSTS = 5;
|
|
20224
20224
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
20225
20225
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20336,7 +20336,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20336
20336
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20337
20337
|
}, "median");
|
|
20338
20338
|
|
|
20339
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20339
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20340
20340
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20341
20341
|
const events = [];
|
|
20342
20342
|
for (const stay of stays) {
|
|
@@ -20368,7 +20368,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20368
20368
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
20369
20369
|
}, "memberEvents");
|
|
20370
20370
|
|
|
20371
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20372
20372
|
var EVENTS_DAYS = 7;
|
|
20373
20373
|
var TRACKED_DAYS = 30;
|
|
20374
20374
|
var STATS_PAGE = 1e3;
|
|
@@ -20663,7 +20663,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20663
20663
|
return members.length === 0 ? null : members;
|
|
20664
20664
|
}, "storedMembers");
|
|
20665
20665
|
|
|
20666
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20666
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
20667
20667
|
var INBOX_CHATS = 20;
|
|
20668
20668
|
var REVIEW_DAYS = 3;
|
|
20669
20669
|
var UNANSWERED_HOURS = 24;
|
|
@@ -20871,7 +20871,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20871
20871
|
};
|
|
20872
20872
|
}, "inboxService");
|
|
20873
20873
|
|
|
20874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
20875
20875
|
var CONTEXT_MESSAGES2 = 10;
|
|
20876
20876
|
var CONTEXT_BYTES = 64 * 1024;
|
|
20877
20877
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -21132,10 +21132,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
21132
21132
|
};
|
|
21133
21133
|
}, "personMessages");
|
|
21134
21134
|
|
|
21135
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21136
21136
|
import { createHash } from "node:crypto";
|
|
21137
21137
|
|
|
21138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
21139
21139
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
21140
21140
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
21141
21141
|
const parsed = parseMeetingReference(reference);
|
|
@@ -21153,7 +21153,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
21153
21153
|
return { parsed, meeting };
|
|
21154
21154
|
}, "authorizedMeetingMetadata");
|
|
21155
21155
|
|
|
21156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21157
21157
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
21158
21158
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
21159
21159
|
if (signal?.aborted)
|
|
@@ -21352,7 +21352,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
21352
21352
|
return { ...packet, fingerprint: hash(packet) };
|
|
21353
21353
|
}, "readMeetingEvidence");
|
|
21354
21354
|
|
|
21355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21355
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
21356
21356
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
21357
21357
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
21358
21358
|
const requestedAccounts = options.accountIds;
|
|
@@ -21451,7 +21451,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
21451
21451
|
};
|
|
21452
21452
|
}, "personMeetingContext");
|
|
21453
21453
|
|
|
21454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21454
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
21455
21455
|
var PREPARE_BYTES = 96 * 1024;
|
|
21456
21456
|
var MEETINGS = 5;
|
|
21457
21457
|
var CUES = 3;
|
|
@@ -21568,7 +21568,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
21568
21568
|
}
|
|
21569
21569
|
}, "meetingsOf");
|
|
21570
21570
|
|
|
21571
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21571
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
21572
21572
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
21573
21573
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
21574
21574
|
const held = await storeIfOpen(deps);
|
|
@@ -21638,7 +21638,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
21638
21638
|
complete: false
|
|
21639
21639
|
})), "quiet");
|
|
21640
21640
|
|
|
21641
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21641
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
21642
21642
|
var TIMELINE_ITEMS = 50;
|
|
21643
21643
|
var TIMELINE_MAX = 500;
|
|
21644
21644
|
var SCOPES2 = ["personal", "work"];
|
|
@@ -21693,7 +21693,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
21693
21693
|
};
|
|
21694
21694
|
}, "personTimeline");
|
|
21695
21695
|
|
|
21696
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21696
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
21697
21697
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
21698
21698
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
21699
21699
|
const held = await storeIfOpen(deps);
|
|
@@ -21920,7 +21920,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
21920
21920
|
return rest;
|
|
21921
21921
|
}, "withoutPhone");
|
|
21922
21922
|
|
|
21923
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
21924
21924
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
21925
21925
|
var PERIOD_FIELD = "created";
|
|
21926
21926
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -22023,7 +22023,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
22023
22023
|
}));
|
|
22024
22024
|
}, "meetingNames");
|
|
22025
22025
|
|
|
22026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
22027
22027
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
22028
22028
|
const tags = /* @__PURE__ */ new Map();
|
|
22029
22029
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -22032,7 +22032,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
22032
22032
|
return tags;
|
|
22033
22033
|
}, "taskTagFilters");
|
|
22034
22034
|
|
|
22035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
22036
22036
|
var TASK_QUERY = {
|
|
22037
22037
|
entity: "task",
|
|
22038
22038
|
backend: "sql",
|
|
@@ -22524,7 +22524,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
22524
22524
|
};
|
|
22525
22525
|
}, "taskView");
|
|
22526
22526
|
|
|
22527
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22527
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/proposal-tasks.js
|
|
22528
22528
|
var proposalSource = /* @__PURE__ */ __name((id2) => `proposed-action:${id2}`, "proposalSource");
|
|
22529
22529
|
var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
22530
22530
|
const proposal = await store.proposedActions.get(id2);
|
|
@@ -22547,7 +22547,7 @@ var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
|
22547
22547
|
return { proposal: await store.proposedActions.approve(proposal.id, by, { task: task2.id }), task: task2 };
|
|
22548
22548
|
}, "approveAsTask");
|
|
22549
22549
|
|
|
22550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/proposals/ids.js
|
|
22551
22551
|
var MAX_IDS = 500;
|
|
22552
22552
|
var refuse = /* @__PURE__ */ __name((message) => {
|
|
22553
22553
|
throw new CliError("validation_error", message, { reason: "proposal.ids" });
|
|
@@ -22589,7 +22589,7 @@ var parseProposalIds = /* @__PURE__ */ __name((text2) => {
|
|
|
22589
22589
|
return ids;
|
|
22590
22590
|
}, "parseProposalIds");
|
|
22591
22591
|
|
|
22592
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22592
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/shared.js
|
|
22593
22593
|
var proposerOfAuthor = /* @__PURE__ */ __name((author) => {
|
|
22594
22594
|
if (author.type === "person")
|
|
22595
22595
|
return { type: "person", id: author.id };
|
|
@@ -22631,8 +22631,60 @@ var storedStatus = /* @__PURE__ */ __name((filter) => {
|
|
|
22631
22631
|
return status === "proposed" || status === "rejected" ? status : void 0;
|
|
22632
22632
|
}, "storedStatus");
|
|
22633
22633
|
|
|
22634
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22635
|
-
var
|
|
22634
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/organization.js
|
|
22635
|
+
var ORGANIZATION_ADD_KIND = "organization_add";
|
|
22636
|
+
var rowOf = /* @__PURE__ */ __name((action2) => {
|
|
22637
|
+
const { name, kind } = action2.payload;
|
|
22638
|
+
return {
|
|
22639
|
+
id: action2.id,
|
|
22640
|
+
kind: "organization",
|
|
22641
|
+
status: actionStatus(action2.status),
|
|
22642
|
+
project: null,
|
|
22643
|
+
subject: `organization:new`,
|
|
22644
|
+
object: null,
|
|
22645
|
+
summary: `add ${kind} ${name}`,
|
|
22646
|
+
proposedBy: proposerOfAction(action2),
|
|
22647
|
+
reason: action2.reason,
|
|
22648
|
+
evidence: [],
|
|
22649
|
+
score: null,
|
|
22650
|
+
signals: null,
|
|
22651
|
+
parts: null,
|
|
22652
|
+
createdAt: action2.createdAt
|
|
22653
|
+
};
|
|
22654
|
+
}, "rowOf");
|
|
22655
|
+
var proposeOrganization = /* @__PURE__ */ __name((store, input, by, reason) => store.proposedActions.propose({
|
|
22656
|
+
kind: ORGANIZATION_ADD_KIND,
|
|
22657
|
+
by,
|
|
22658
|
+
payload: input,
|
|
22659
|
+
...reason === void 0 ? {} : { reason }
|
|
22660
|
+
}), "proposeOrganization");
|
|
22661
|
+
var organizationKind = /* @__PURE__ */ __name((store) => ({
|
|
22662
|
+
kind: "organization",
|
|
22663
|
+
stored: [ORGANIZATION_ADD_KIND],
|
|
22664
|
+
list: /* @__PURE__ */ __name(async (filter) => {
|
|
22665
|
+
const status = storedStatus(filter);
|
|
22666
|
+
const actions = await store.proposedActions.list({
|
|
22667
|
+
kinds: [ORGANIZATION_ADD_KIND],
|
|
22668
|
+
...status === void 0 ? {} : { status },
|
|
22669
|
+
...pushed2(filter)
|
|
22670
|
+
});
|
|
22671
|
+
return kept(actions.map(rowOf), filter);
|
|
22672
|
+
}, "list"),
|
|
22673
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf(await store.proposedActions.get(id2)), "get"),
|
|
22674
|
+
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
22675
|
+
if (!confirm) {
|
|
22676
|
+
await store.proposedActions.reject(id2, by, reason);
|
|
22677
|
+
return { id: id2, kind: "organization", status: "rejected", made: [] };
|
|
22678
|
+
}
|
|
22679
|
+
const { name, kind, scope } = (await store.proposedActions.get(id2)).payload;
|
|
22680
|
+
const made = await store.knowledge.addOrganization({ name, kind, ...scope === void 0 ? {} : { scope } });
|
|
22681
|
+
await store.proposedActions.approve(id2, by, { organization: made.ref });
|
|
22682
|
+
return { id: id2, kind: "organization", status: "confirmed", made: [made.ref] };
|
|
22683
|
+
}, "decide")
|
|
22684
|
+
}), "organizationKind");
|
|
22685
|
+
|
|
22686
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/action.js
|
|
22687
|
+
var rowOf2 = /* @__PURE__ */ __name((action2) => ({
|
|
22636
22688
|
id: action2.id,
|
|
22637
22689
|
kind: "action",
|
|
22638
22690
|
status: actionStatus(action2.status),
|
|
@@ -22658,9 +22710,9 @@ var actionKind = /* @__PURE__ */ __name((store, claimed) => ({
|
|
|
22658
22710
|
...status === void 0 ? {} : { status },
|
|
22659
22711
|
...pushed2(filter)
|
|
22660
22712
|
});
|
|
22661
|
-
return kept(actions.map(
|
|
22713
|
+
return kept(actions.map(rowOf2), filter);
|
|
22662
22714
|
}, "list"),
|
|
22663
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
22715
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf2(await store.proposedActions.get(id2)), "get"),
|
|
22664
22716
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
22665
22717
|
if (!confirm) {
|
|
22666
22718
|
await store.proposedActions.reject(id2, by, reason);
|
|
@@ -22671,7 +22723,7 @@ var actionKind = /* @__PURE__ */ __name((store, claimed) => ({
|
|
|
22671
22723
|
}, "decide")
|
|
22672
22724
|
}), "actionKind");
|
|
22673
22725
|
|
|
22674
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22726
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/fact.js
|
|
22675
22727
|
var STATUS = {
|
|
22676
22728
|
proposed: "proposed",
|
|
22677
22729
|
accepted: "confirmed",
|
|
@@ -22679,7 +22731,7 @@ var STATUS = {
|
|
|
22679
22731
|
reversed: "confirmed",
|
|
22680
22732
|
rejected: "rejected"
|
|
22681
22733
|
};
|
|
22682
|
-
var
|
|
22734
|
+
var rowOf3 = /* @__PURE__ */ __name((fact) => ({
|
|
22683
22735
|
id: fact.ref,
|
|
22684
22736
|
kind: "fact",
|
|
22685
22737
|
status: STATUS[fact.status],
|
|
@@ -22705,17 +22757,17 @@ var factKind = /* @__PURE__ */ __name((store) => ({
|
|
|
22705
22757
|
...status === "all" ? {} : { status: status === "confirmed" ? "accepted" : status },
|
|
22706
22758
|
order: "created"
|
|
22707
22759
|
});
|
|
22708
|
-
return kept(facts.map(
|
|
22760
|
+
return kept(facts.map(rowOf3), filter);
|
|
22709
22761
|
}, "list"),
|
|
22710
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
22762
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf3(await store.facts.get(id2)), "get"),
|
|
22711
22763
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
22712
22764
|
const fact = confirm ? await store.facts.accept(id2, by, reason) : await store.facts.reject(id2, by, reason);
|
|
22713
22765
|
return { id: id2, kind: "fact", status: confirm ? "confirmed" : "rejected", made: confirm ? [fact.ref] : [] };
|
|
22714
22766
|
}, "decide")
|
|
22715
22767
|
}), "factKind");
|
|
22716
22768
|
|
|
22717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22718
|
-
var
|
|
22769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/finance.js
|
|
22770
|
+
var rowOf4 = /* @__PURE__ */ __name((kind, entry) => ({
|
|
22719
22771
|
id: entry.ref,
|
|
22720
22772
|
kind,
|
|
22721
22773
|
status: entry.review,
|
|
@@ -22738,9 +22790,9 @@ var financeKind = /* @__PURE__ */ __name((store, kind) => ({
|
|
|
22738
22790
|
const status = filter.status ?? "proposed";
|
|
22739
22791
|
const options = { ...pushed2(filter), ...status === "all" ? {} : { review: status } };
|
|
22740
22792
|
const entries = kind === "invoice" ? await store.finance.invoices(options) : await store.finance.payments(options);
|
|
22741
|
-
return kept(entries.map((entry) =>
|
|
22793
|
+
return kept(entries.map((entry) => rowOf4(kind, entry)), filter);
|
|
22742
22794
|
}, "list"),
|
|
22743
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
22795
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf4(kind, kind === "invoice" ? await store.finance.invoice(id2) : await store.finance.payment(id2)), "get"),
|
|
22744
22796
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
22745
22797
|
const entry = confirm ? await store.finance.confirm(id2, by, reason) : await store.finance.reject(id2, by, reason);
|
|
22746
22798
|
return { id: id2, kind, status: confirm ? "confirmed" : "rejected", made: confirm ? [entry.ref] : [] };
|
|
@@ -22749,14 +22801,14 @@ var financeKind = /* @__PURE__ */ __name((store, kind) => ({
|
|
|
22749
22801
|
var invoiceKind = /* @__PURE__ */ __name((store) => financeKind(store, "invoice"), "invoiceKind");
|
|
22750
22802
|
var paymentKind = /* @__PURE__ */ __name((store) => financeKind(store, "payment"), "paymentKind");
|
|
22751
22803
|
|
|
22752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22804
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/findings.js
|
|
22753
22805
|
var FACT_SUMMARIES = {
|
|
22754
22806
|
fact: /* @__PURE__ */ __name((finding) => finding.statement, "fact"),
|
|
22755
22807
|
task: /* @__PURE__ */ __name((finding) => finding.title, "task"),
|
|
22756
22808
|
payment: /* @__PURE__ */ __name((finding) => paymentTitle(finding), "payment")
|
|
22757
22809
|
};
|
|
22758
22810
|
var statusOf = /* @__PURE__ */ __name((batch) => batch.status === "proposed" ? "proposed" : batch.receipt?.accepted.length ? "confirmed" : "rejected", "statusOf");
|
|
22759
|
-
var
|
|
22811
|
+
var rowOf5 = /* @__PURE__ */ __name((batch, createdAt) => {
|
|
22760
22812
|
const findings = batch.input.findings;
|
|
22761
22813
|
const outcome2 = /* @__PURE__ */ __name((id2) => batch.receipt?.items.find((item2) => item2.id === id2)?.status ?? null, "outcome");
|
|
22762
22814
|
return {
|
|
@@ -22782,7 +22834,7 @@ var rowOf4 = /* @__PURE__ */ __name((batch, createdAt) => {
|
|
|
22782
22834
|
};
|
|
22783
22835
|
}, "rowOf");
|
|
22784
22836
|
var findingsKind = /* @__PURE__ */ __name((store) => {
|
|
22785
|
-
const created = /* @__PURE__ */ __name(async (batch) =>
|
|
22837
|
+
const created = /* @__PURE__ */ __name(async (batch) => rowOf5(batch, (await store.proposedActions.get(batch.id)).createdAt), "created");
|
|
22786
22838
|
return {
|
|
22787
22839
|
kind: "findings",
|
|
22788
22840
|
stored: [EVIDENCE_FINDINGS_KIND],
|
|
@@ -22821,7 +22873,7 @@ var findingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
22821
22873
|
};
|
|
22822
22874
|
}, "findingsKind");
|
|
22823
22875
|
|
|
22824
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22876
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/key-document.js
|
|
22825
22877
|
var linkRow = /* @__PURE__ */ __name((link4) => ({
|
|
22826
22878
|
id: `key:${link4.id}`,
|
|
22827
22879
|
kind: "key_document",
|
|
@@ -22889,7 +22941,7 @@ var keyDocumentKind = /* @__PURE__ */ __name((store) => {
|
|
|
22889
22941
|
};
|
|
22890
22942
|
}, "keyDocumentKind");
|
|
22891
22943
|
|
|
22892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/mail-findings.js
|
|
22893
22945
|
var words = /* @__PURE__ */ __name((...parts) => parts.filter(Boolean).join(" "), "words");
|
|
22894
22946
|
var summaryOf = /* @__PURE__ */ __name((finding) => {
|
|
22895
22947
|
switch (finding.kind) {
|
|
@@ -22915,7 +22967,7 @@ var summaryOf = /* @__PURE__ */ __name((finding) => {
|
|
|
22915
22967
|
return words("order", finding.number, finding.supplierName, finding.status, `\xB7 ${finding.reason}`);
|
|
22916
22968
|
}
|
|
22917
22969
|
}, "summaryOf");
|
|
22918
|
-
var
|
|
22970
|
+
var rowOf6 = /* @__PURE__ */ __name((batch, createdAt) => {
|
|
22919
22971
|
const findings = batch.input.findings;
|
|
22920
22972
|
const outcome2 = /* @__PURE__ */ __name((id2) => batch.receipt?.items.find((item2) => item2.id === id2)?.status ?? null, "outcome");
|
|
22921
22973
|
const project2 = findings.flatMap((finding) => "project" in finding && finding.project ? [finding.project] : [])[0] ?? null;
|
|
@@ -22942,7 +22994,7 @@ var rowOf5 = /* @__PURE__ */ __name((batch, createdAt) => {
|
|
|
22942
22994
|
};
|
|
22943
22995
|
}, "rowOf");
|
|
22944
22996
|
var mailFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
22945
|
-
const created = /* @__PURE__ */ __name(async (batch) =>
|
|
22997
|
+
const created = /* @__PURE__ */ __name(async (batch) => rowOf6(batch, (await store.proposedActions.get(batch.id)).createdAt), "created");
|
|
22946
22998
|
return {
|
|
22947
22999
|
kind: "mail_findings",
|
|
22948
23000
|
stored: [MAIL_FINDINGS_KIND],
|
|
@@ -22977,8 +23029,8 @@ var mailFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
22977
23029
|
};
|
|
22978
23030
|
}, "mailFindingsKind");
|
|
22979
23031
|
|
|
22980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22981
|
-
var
|
|
23032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/meeting-findings.js
|
|
23033
|
+
var rowOf7 = /* @__PURE__ */ __name((action2, batch) => {
|
|
22982
23034
|
const findings = batch.input.findings;
|
|
22983
23035
|
const projects = [...new Set(findings.map((one2) => "project" in one2 ? one2.project : void 0))];
|
|
22984
23036
|
const outcome2 = /* @__PURE__ */ __name((id2) => batch.receipt?.items.find((item2) => item2.id === id2)?.status ?? null, "outcome");
|
|
@@ -23023,12 +23075,12 @@ var meetingFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
23023
23075
|
...filter.by === void 0 ? {} : { proposedBy: filter.by },
|
|
23024
23076
|
limit: Math.min(filter.offset + filter.limit, 500)
|
|
23025
23077
|
});
|
|
23026
|
-
const rows = await Promise.all(actions.map(async (action2) =>
|
|
23078
|
+
const rows = await Promise.all(actions.map(async (action2) => rowOf7(action2, (await batchOf(action2)).batch)));
|
|
23027
23079
|
return kept(rows, { ...filter, limit: filter.offset + filter.limit });
|
|
23028
23080
|
}, "list"),
|
|
23029
23081
|
get: /* @__PURE__ */ __name(async (id2) => {
|
|
23030
23082
|
const action2 = await store.proposedActions.get(id2);
|
|
23031
|
-
return
|
|
23083
|
+
return rowOf7(action2, (await batchOf(action2)).batch);
|
|
23032
23084
|
}, "get"),
|
|
23033
23085
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, parts }) => {
|
|
23034
23086
|
const { account, batch } = await batchOf(await store.proposedActions.get(id2));
|
|
@@ -23041,14 +23093,14 @@ var meetingFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
23041
23093
|
};
|
|
23042
23094
|
}, "meetingFindingsKind");
|
|
23043
23095
|
|
|
23044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23096
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/memory.js
|
|
23045
23097
|
var STATUS2 = {
|
|
23046
23098
|
proposed: "proposed",
|
|
23047
23099
|
confirmed: "confirmed",
|
|
23048
23100
|
superseded: "confirmed",
|
|
23049
23101
|
stale: "rejected"
|
|
23050
23102
|
};
|
|
23051
|
-
var
|
|
23103
|
+
var rowOf8 = /* @__PURE__ */ __name((memory) => ({
|
|
23052
23104
|
id: memory.ref,
|
|
23053
23105
|
kind: "memory",
|
|
23054
23106
|
status: STATUS2[memory.status],
|
|
@@ -23073,17 +23125,17 @@ var memoryKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23073
23125
|
...pushed2(filter),
|
|
23074
23126
|
...status === "all" ? {} : { status: status === "rejected" ? "stale" : status }
|
|
23075
23127
|
});
|
|
23076
|
-
return kept(memories.map(
|
|
23128
|
+
return kept(memories.map(rowOf8), filter);
|
|
23077
23129
|
}, "list"),
|
|
23078
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
23130
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf8(await store.memories.get(id2)), "get"),
|
|
23079
23131
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by }) => {
|
|
23080
23132
|
const memory = confirm ? await store.memories.confirm(id2, by) : await store.memories.markStale(id2, by);
|
|
23081
23133
|
return { id: id2, kind: "memory", status: confirm ? "confirmed" : "rejected", made: confirm ? [memory.ref] : [] };
|
|
23082
23134
|
}, "decide")
|
|
23083
23135
|
}), "memoryKind");
|
|
23084
23136
|
|
|
23085
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23086
|
-
var
|
|
23137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/orders.js
|
|
23138
|
+
var rowOf9 = /* @__PURE__ */ __name((order) => ({
|
|
23087
23139
|
id: order.ref,
|
|
23088
23140
|
kind: "order",
|
|
23089
23141
|
status: order.review,
|
|
@@ -23105,16 +23157,16 @@ var orderKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23105
23157
|
list: /* @__PURE__ */ __name(async (filter) => {
|
|
23106
23158
|
const status = filter.status ?? "proposed";
|
|
23107
23159
|
const orders = await store.orders.list({ ...pushed2(filter), ...status === "all" ? {} : { review: status } });
|
|
23108
|
-
return kept(orders.map(
|
|
23160
|
+
return kept(orders.map(rowOf9), filter);
|
|
23109
23161
|
}, "list"),
|
|
23110
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
23162
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf9(await store.orders.get(id2)), "get"),
|
|
23111
23163
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
23112
23164
|
const order = confirm ? await store.orders.confirm(id2, by, reason) : await store.orders.reject(id2, by, reason);
|
|
23113
23165
|
return { id: id2, kind: "order", status: confirm ? "confirmed" : "rejected", made: confirm ? [order.ref] : [] };
|
|
23114
23166
|
}, "decide")
|
|
23115
23167
|
}), "orderKind");
|
|
23116
23168
|
|
|
23117
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship.js
|
|
23118
23170
|
var linkRow2 = /* @__PURE__ */ __name((link4) => ({
|
|
23119
23171
|
id: `link:${link4.id}`,
|
|
23120
23172
|
kind: "relationship",
|
|
@@ -23188,10 +23240,10 @@ var relationshipKind = /* @__PURE__ */ __name((store) => {
|
|
|
23188
23240
|
};
|
|
23189
23241
|
}, "relationshipKind");
|
|
23190
23242
|
|
|
23191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23243
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship-update.js
|
|
23192
23244
|
var KIND = "relationship_update";
|
|
23193
23245
|
var summaryOf2 = /* @__PURE__ */ __name(({ changes }) => Object.entries(changes).map(([field, value]) => `${field} ${value ?? "cleared"}`).join(", "), "summaryOf");
|
|
23194
|
-
var
|
|
23246
|
+
var rowOf10 = /* @__PURE__ */ __name((action2) => {
|
|
23195
23247
|
const payload = action2.payload;
|
|
23196
23248
|
return {
|
|
23197
23249
|
id: action2.id,
|
|
@@ -23220,9 +23272,9 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23220
23272
|
...status === void 0 ? {} : { status },
|
|
23221
23273
|
...pushed2(filter)
|
|
23222
23274
|
});
|
|
23223
|
-
return kept(stored.map(
|
|
23275
|
+
return kept(stored.map(rowOf10), filter);
|
|
23224
23276
|
}, "list"),
|
|
23225
|
-
get: /* @__PURE__ */ __name(async (id2) =>
|
|
23277
|
+
get: /* @__PURE__ */ __name(async (id2) => rowOf10(await store.proposedActions.get(id2)), "get"),
|
|
23226
23278
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
23227
23279
|
const { relation } = await store.knowledge.decideRelationUpdate(id2, {
|
|
23228
23280
|
confirm,
|
|
@@ -23238,8 +23290,8 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23238
23290
|
}, "decide")
|
|
23239
23291
|
}), "relationshipUpdateKind");
|
|
23240
23292
|
|
|
23241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23242
|
-
var
|
|
23293
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/task-close.js
|
|
23294
|
+
var rowOf11 = /* @__PURE__ */ __name((task2) => {
|
|
23243
23295
|
const suggestion = task2.closeSuggestion;
|
|
23244
23296
|
if (suggestion === null)
|
|
23245
23297
|
return void 0;
|
|
@@ -23264,7 +23316,7 @@ var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
|
23264
23316
|
const taskOf = /* @__PURE__ */ __name(async (id2) => {
|
|
23265
23317
|
const key = id2.slice("close:".length);
|
|
23266
23318
|
const task2 = await store.tasks.details(key).catch(() => void 0);
|
|
23267
|
-
const row = task2 &&
|
|
23319
|
+
const row = task2 && rowOf11(task2);
|
|
23268
23320
|
if (!task2 || !row)
|
|
23269
23321
|
throw new CliError("not_found", `no close waits on task ${key}`);
|
|
23270
23322
|
return { task: task2, row };
|
|
@@ -23281,7 +23333,7 @@ var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
|
23281
23333
|
where: { sql: "t.close_suggested_as IS NOT NULL", params: [] },
|
|
23282
23334
|
limit: filter.offset + filter.limit
|
|
23283
23335
|
});
|
|
23284
|
-
return kept(tasks.flatMap((task2) =>
|
|
23336
|
+
return kept(tasks.flatMap((task2) => rowOf11(task2) ?? []), { ...filter, limit: filter.offset + filter.limit });
|
|
23285
23337
|
}, "list"),
|
|
23286
23338
|
get: /* @__PURE__ */ __name(async (id2) => (await taskOf(id2)).row, "get"),
|
|
23287
23339
|
decide: /* @__PURE__ */ __name(async (id2, { confirm, by, reason }) => {
|
|
@@ -23306,7 +23358,7 @@ var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
|
23306
23358
|
};
|
|
23307
23359
|
}, "taskCloseKind");
|
|
23308
23360
|
|
|
23309
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23361
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/proposals/registry.js
|
|
23310
23362
|
var PREFIX = /^([a-z][a-z_]*):/;
|
|
23311
23363
|
var marked = /* @__PURE__ */ __name((kind, row) => kind.ownerOnly ? { ...row, ownerOnly: true } : row, "marked");
|
|
23312
23364
|
var refusalOf = /* @__PURE__ */ __name((id2, error) => {
|
|
@@ -23422,6 +23474,7 @@ var proposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
23422
23474
|
invoiceKind(store),
|
|
23423
23475
|
paymentKind(store),
|
|
23424
23476
|
orderKind(store),
|
|
23477
|
+
organizationKind(store),
|
|
23425
23478
|
memoryKind(store),
|
|
23426
23479
|
findingsKind(store),
|
|
23427
23480
|
mailFindingsKind(store),
|
|
@@ -23433,7 +23486,7 @@ var proposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
23433
23486
|
return registry;
|
|
23434
23487
|
}, "proposalRegistry");
|
|
23435
23488
|
|
|
23436
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23489
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
23437
23490
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
23438
23491
|
if (newest === null)
|
|
23439
23492
|
return null;
|
|
@@ -23442,7 +23495,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
23442
23495
|
return newest.addressed ? "owed" : null;
|
|
23443
23496
|
}, "mailTurn");
|
|
23444
23497
|
|
|
23445
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
23446
23499
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
23447
23500
|
if (error instanceof CliError && error.code === "not_found")
|
|
23448
23501
|
return void 0;
|
|
@@ -23500,7 +23553,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
23500
23553
|
};
|
|
23501
23554
|
}, "mailActivity");
|
|
23502
23555
|
|
|
23503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
23504
23557
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
23505
23558
|
const ids = [...new Set(chatIds)];
|
|
23506
23559
|
if (ids.length === 0)
|
|
@@ -23526,7 +23579,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
23526
23579
|
}));
|
|
23527
23580
|
}, "chatCoverage");
|
|
23528
23581
|
|
|
23529
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23582
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
23530
23583
|
var DAY = 864e5;
|
|
23531
23584
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
23532
23585
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -23773,7 +23826,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
23773
23826
|
};
|
|
23774
23827
|
}, "agendaItem");
|
|
23775
23828
|
|
|
23776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23829
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
23777
23830
|
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");
|
|
23778
23831
|
var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) => {
|
|
23779
23832
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -23789,7 +23842,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) =
|
|
|
23789
23842
|
}, "excerpt");
|
|
23790
23843
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
23791
23844
|
|
|
23792
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/link-scorers/shared.js
|
|
23793
23846
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
23794
23847
|
var folded = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "folded");
|
|
23795
23848
|
var wholeWords = /* @__PURE__ */ __name((term) => new RegExp(`(?<![\\p{L}\\p{N}\\p{M}_])${escaped(normalizeVocabularyName(term))}(?![\\p{L}\\p{N}\\p{M}_])`, "u"), "wholeWords");
|
|
@@ -23828,7 +23881,7 @@ var identitiesIn = /* @__PURE__ */ __name(async (store, people, provider) => {
|
|
|
23828
23881
|
return found;
|
|
23829
23882
|
}, "identitiesIn");
|
|
23830
23883
|
|
|
23831
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/link-scorers/alias-hits.js
|
|
23832
23885
|
var SEARCH_LIMIT = 500;
|
|
23833
23886
|
var aliasWeight = /* @__PURE__ */ __name((hits) => hits >= 10 ? 0.55 : hits >= 3 ? 0.35 : 0, "aliasWeight");
|
|
23834
23887
|
var aliasHits = {
|
|
@@ -23877,7 +23930,7 @@ var aliasHits = {
|
|
|
23877
23930
|
}, "candidates")
|
|
23878
23931
|
};
|
|
23879
23932
|
|
|
23880
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-senders.js
|
|
23881
23934
|
var WEIGHT = 0.5;
|
|
23882
23935
|
var LARGE_GROUP_WEIGHT = 0.2;
|
|
23883
23936
|
var LARGE_GROUP = 30;
|
|
@@ -23929,7 +23982,7 @@ var chatSenders = {
|
|
|
23929
23982
|
}, "candidates")
|
|
23930
23983
|
};
|
|
23931
23984
|
|
|
23932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23985
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-title.js
|
|
23933
23986
|
var WEIGHT2 = 0.7;
|
|
23934
23987
|
var chatTitle = {
|
|
23935
23988
|
id: "chat-title",
|
|
@@ -23968,7 +24021,7 @@ var chatTitle = {
|
|
|
23968
24021
|
}, "candidates")
|
|
23969
24022
|
};
|
|
23970
24023
|
|
|
23971
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24024
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/link-scorers/email-domain.js
|
|
23972
24025
|
var WEIGHT3 = 0.3;
|
|
23973
24026
|
var CONTACTS = 500;
|
|
23974
24027
|
var MOST_PAIRS = 200;
|
|
@@ -24029,7 +24082,7 @@ var emailDomain = {
|
|
|
24029
24082
|
}, "candidates")
|
|
24030
24083
|
};
|
|
24031
24084
|
|
|
24032
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/link-scorers/mail-thread.js
|
|
24033
24086
|
var NAMED = 0.7;
|
|
24034
24087
|
var MEMBER_ONLY = 0.3;
|
|
24035
24088
|
var READ_LIMIT2 = 500;
|
|
@@ -24102,7 +24155,7 @@ var mailThread = {
|
|
|
24102
24155
|
}, "candidates")
|
|
24103
24156
|
};
|
|
24104
24157
|
|
|
24105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-chats.js
|
|
24106
24159
|
var WEIGHT4 = 0.5;
|
|
24107
24160
|
var memberChats = {
|
|
24108
24161
|
id: "member-chats",
|
|
@@ -24142,7 +24195,7 @@ var memberChats = {
|
|
|
24142
24195
|
}, "candidates")
|
|
24143
24196
|
};
|
|
24144
24197
|
|
|
24145
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24198
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-dialog.js
|
|
24146
24199
|
var WEIGHT5 = 0.6;
|
|
24147
24200
|
var memberDialog = {
|
|
24148
24201
|
id: "member-dialog",
|
|
@@ -24176,7 +24229,7 @@ var memberDialog = {
|
|
|
24176
24229
|
}, "candidates")
|
|
24177
24230
|
};
|
|
24178
24231
|
|
|
24179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24232
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
24180
24233
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
24181
24234
|
async around(ref, window3) {
|
|
24182
24235
|
const at = parseLocator(ref);
|
|
@@ -24272,7 +24325,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
24272
24325
|
};
|
|
24273
24326
|
}, "storedNeighbours");
|
|
24274
24327
|
|
|
24275
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24328
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
24276
24329
|
import { createHash as createHash2 } from "node:crypto";
|
|
24277
24330
|
var DAY2 = 864e5;
|
|
24278
24331
|
var MAX_TIME = 864e13;
|
|
@@ -24588,7 +24641,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
24588
24641
|
return value;
|
|
24589
24642
|
}, "decodeCheckpoint");
|
|
24590
24643
|
|
|
24591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24644
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
24592
24645
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
24593
24646
|
var PAGE2 = 20;
|
|
24594
24647
|
var PEOPLE = 20;
|
|
@@ -24992,7 +25045,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
24992
25045
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
24993
25046
|
}, "peopleOf");
|
|
24994
25047
|
|
|
24995
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25048
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
24996
25049
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
24997
25050
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
24998
25051
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -25036,7 +25089,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
25036
25089
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
25037
25090
|
}, "matchVocabularyTerms");
|
|
25038
25091
|
|
|
25039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25092
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
25040
25093
|
var KINDS = ["project", "tag", "topic"];
|
|
25041
25094
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
25042
25095
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -25091,7 +25144,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
25091
25144
|
};
|
|
25092
25145
|
}, "findEvidenceMentions");
|
|
25093
25146
|
|
|
25094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
25095
25148
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
25096
25149
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
25097
25150
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -25397,7 +25450,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
25397
25450
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
25398
25451
|
}, "purposeHintOf");
|
|
25399
25452
|
|
|
25400
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25453
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/link-scorers/scan.js
|
|
25401
25454
|
var SCORERS = [chatTitle, aliasHits, memberChats, memberDialog, chatSenders, mailThread];
|
|
25402
25455
|
var PERSON_SCORERS = [emailDomain];
|
|
25403
25456
|
var SCAN_BOT = { bot: "memo-scan", kind: "rule" };
|
|
@@ -25605,18 +25658,18 @@ var referenceOf = /* @__PURE__ */ __name((text2) => {
|
|
|
25605
25658
|
}, "referenceOf");
|
|
25606
25659
|
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");
|
|
25607
25660
|
|
|
25608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
25609
25662
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
25610
25663
|
|
|
25611
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25612
25665
|
import { lstat } from "node:fs/promises";
|
|
25613
25666
|
|
|
25614
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25667
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25615
25668
|
import { createHash as createHash4, randomUUID as randomUUID2 } from "node:crypto";
|
|
25616
25669
|
import { open as open2, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
25617
25670
|
import { join as join2 } from "node:path";
|
|
25618
25671
|
|
|
25619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25672
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
25620
25673
|
import { createHash as createHash3 } from "node:crypto";
|
|
25621
25674
|
var metadataLimit = 16384;
|
|
25622
25675
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -25676,7 +25729,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
25676
25729
|
}
|
|
25677
25730
|
}, "readPartialMetadata");
|
|
25678
25731
|
|
|
25679
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25732
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
25680
25733
|
import { randomUUID } from "node:crypto";
|
|
25681
25734
|
import { open, rename, unlink } from "node:fs/promises";
|
|
25682
25735
|
import { join } from "node:path";
|
|
@@ -25768,7 +25821,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
25768
25821
|
};
|
|
25769
25822
|
}, "partialWriter");
|
|
25770
25823
|
|
|
25771
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25824
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25772
25825
|
var NativeRecordingPartialStore = class {
|
|
25773
25826
|
static {
|
|
25774
25827
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -25875,12 +25928,12 @@ var NativeRecordingPartialStore = class {
|
|
|
25875
25928
|
}
|
|
25876
25929
|
};
|
|
25877
25930
|
|
|
25878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25879
25932
|
import { createHash as createHash5 } from "node:crypto";
|
|
25880
25933
|
import { link as link2 } from "node:fs/promises";
|
|
25881
25934
|
import { basename, dirname, join as join4, resolve } from "node:path";
|
|
25882
25935
|
|
|
25883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
25884
25937
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
25885
25938
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
25886
25939
|
signal?.throwIfAborted();
|
|
@@ -25915,7 +25968,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
25915
25968
|
signal?.throwIfAborted();
|
|
25916
25969
|
}, "commitPublication");
|
|
25917
25970
|
|
|
25918
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
25919
25972
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
25920
25973
|
import { open as open3, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
25921
25974
|
import { join as join3 } from "node:path";
|
|
@@ -25988,7 +26041,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
25988
26041
|
}
|
|
25989
26042
|
}, "writePublicationJournal");
|
|
25990
26043
|
|
|
25991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25992
26045
|
var NativeRecordingPublication = class {
|
|
25993
26046
|
static {
|
|
25994
26047
|
__name(this, "NativeRecordingPublication");
|
|
@@ -26061,7 +26114,7 @@ var NativeRecordingPublication = class {
|
|
|
26061
26114
|
}
|
|
26062
26115
|
};
|
|
26063
26116
|
|
|
26064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26117
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
26065
26118
|
import { createHash as createHash6 } from "node:crypto";
|
|
26066
26119
|
import { readdir } from "node:fs/promises";
|
|
26067
26120
|
import { isAbsolute, join as join5, resolve as resolve2 } from "node:path";
|
|
@@ -26148,7 +26201,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one2, beforePublish) => wri
|
|
|
26148
26201
|
beforePublish
|
|
26149
26202
|
}), "commitMediaEntry");
|
|
26150
26203
|
|
|
26151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
26152
26205
|
var validator = '"media-completed-v1"';
|
|
26153
26206
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
26154
26207
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -26249,7 +26302,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
26249
26302
|
return entry;
|
|
26250
26303
|
}, "archiveMediaFile");
|
|
26251
26304
|
|
|
26252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26305
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
26253
26306
|
import { mkdir, realpath } from "node:fs/promises";
|
|
26254
26307
|
import { join as join6, resolve as resolve3 } from "node:path";
|
|
26255
26308
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -26316,7 +26369,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
26316
26369
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
26317
26370
|
}, "withMediaArchiveLocks");
|
|
26318
26371
|
|
|
26319
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
26320
26373
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
26321
26374
|
if (value === void 0)
|
|
26322
26375
|
return void 0;
|
|
@@ -26469,7 +26522,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
26469
26522
|
}, { create: true });
|
|
26470
26523
|
}, "archiveMedia");
|
|
26471
26524
|
|
|
26472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
26473
26526
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
26474
26527
|
import { basename as basename2, dirname as dirname2, join as join7, resolve as resolve4 } from "node:path";
|
|
26475
26528
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -26622,7 +26675,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
26622
26675
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
26623
26676
|
}, "moveMediaArchive");
|
|
26624
26677
|
|
|
26625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
26626
26679
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
26627
26680
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
26628
26681
|
}, "progress") }) => {
|
|
@@ -26645,7 +26698,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26645
26698
|
}
|
|
26646
26699
|
await nativeRuntime({ env, progress });
|
|
26647
26700
|
progress(`${model.id}: loading it once to check it works`);
|
|
26648
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
26701
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-BG2XPLWM.js");
|
|
26649
26702
|
const embedder = await openEmbedder2(model, directory2);
|
|
26650
26703
|
try {
|
|
26651
26704
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -26666,7 +26719,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
26666
26719
|
}
|
|
26667
26720
|
await nativeRuntime({ env, progress });
|
|
26668
26721
|
progress(`${model.id}: loading it once to check it works`);
|
|
26669
|
-
const { openReranker } = await import("./rerank-
|
|
26722
|
+
const { openReranker } = await import("./rerank-GBKN7RN4.js");
|
|
26670
26723
|
const reranker = await openReranker(model, directory2);
|
|
26671
26724
|
try {
|
|
26672
26725
|
await reranker.score("check", ["check"]);
|
|
@@ -26684,7 +26737,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26684
26737
|
await installFiles(placedImage(model, directory2), { progress });
|
|
26685
26738
|
}
|
|
26686
26739
|
progress(`${model.id}: loading it once to check it works`);
|
|
26687
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
26740
|
+
const { openPictureEmbedder } = await import("./embedder-65SA34CZ.js");
|
|
26688
26741
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
26689
26742
|
try {
|
|
26690
26743
|
const vector = await embedder.embedQuery("check");
|
|
@@ -26696,7 +26749,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26696
26749
|
return { model, directory: directory2 };
|
|
26697
26750
|
}, "downloadImageModel");
|
|
26698
26751
|
|
|
26699
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
26700
26753
|
var MONEY_REQUEST = "money-request";
|
|
26701
26754
|
var MONEY_DONE = "money-done";
|
|
26702
26755
|
var PROMISE = "promise";
|
|
@@ -26730,10 +26783,10 @@ var MONEY_WORDS = [
|
|
|
26730
26783
|
}
|
|
26731
26784
|
];
|
|
26732
26785
|
|
|
26733
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26786
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
26734
26787
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
26735
26788
|
|
|
26736
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26789
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
26737
26790
|
var words2 = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
26738
26791
|
var MONEY_DONE_FORMS = words2([
|
|
26739
26792
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -26773,7 +26826,7 @@ var PROMISE_FORMS = words2([
|
|
|
26773
26826
|
"estar\xE1 listo"
|
|
26774
26827
|
]);
|
|
26775
26828
|
|
|
26776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26829
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
26777
26830
|
var EXCERPT_CHARS = 80;
|
|
26778
26831
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
26779
26832
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -26795,7 +26848,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
26795
26848
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
26796
26849
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
26797
26850
|
|
|
26798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26851
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
26799
26852
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
26800
26853
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
26801
26854
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -26875,7 +26928,7 @@ var amounts = {
|
|
|
26875
26928
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "open" ? [{ chat: item2.chat, weight: 2, why: "money open" }] : []), "attention")
|
|
26876
26929
|
};
|
|
26877
26930
|
|
|
26878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
26879
26932
|
var children = {
|
|
26880
26933
|
id: "children",
|
|
26881
26934
|
version: 1,
|
|
@@ -26904,7 +26957,7 @@ var children = {
|
|
|
26904
26957
|
}, "read")
|
|
26905
26958
|
};
|
|
26906
26959
|
|
|
26907
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26960
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
26908
26961
|
var coverage = {
|
|
26909
26962
|
id: "coverage",
|
|
26910
26963
|
version: 1,
|
|
@@ -26933,7 +26986,7 @@ var coverage = {
|
|
|
26933
26986
|
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")
|
|
26934
26987
|
};
|
|
26935
26988
|
|
|
26936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26989
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
26937
26990
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
26938
26991
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
26939
26992
|
signal: "payments",
|
|
@@ -26983,7 +27036,7 @@ var payments = {
|
|
|
26983
27036
|
}, "read")
|
|
26984
27037
|
};
|
|
26985
27038
|
|
|
26986
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27039
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
26987
27040
|
var PATTERNS_PER_CHAT = 3;
|
|
26988
27041
|
var DAY3 = 864e5;
|
|
26989
27042
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -27072,7 +27125,7 @@ var promises = {
|
|
|
27072
27125
|
}, "read")
|
|
27073
27126
|
};
|
|
27074
27127
|
|
|
27075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27128
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
27076
27129
|
var PER_SIDE = 5;
|
|
27077
27130
|
var WEEK = 7 * 864e5;
|
|
27078
27131
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -27103,7 +27156,7 @@ var questions2 = {
|
|
|
27103
27156
|
}, "attention")
|
|
27104
27157
|
};
|
|
27105
27158
|
|
|
27106
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27159
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
27107
27160
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
27108
27161
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one2) => one2.id === id2), "byId");
|
|
27109
27162
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -27171,7 +27224,7 @@ var replyNext = {
|
|
|
27171
27224
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
27172
27225
|
};
|
|
27173
27226
|
|
|
27174
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
27175
27228
|
var escaped2 = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
27176
27229
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped2(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
27177
27230
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -27217,7 +27270,7 @@ var topics = {
|
|
|
27217
27270
|
}, "read")
|
|
27218
27271
|
};
|
|
27219
27272
|
|
|
27220
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27273
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
27221
27274
|
var STATUS_SIGNALS = [
|
|
27222
27275
|
replyNext,
|
|
27223
27276
|
questions2,
|
|
@@ -27229,7 +27282,7 @@ var STATUS_SIGNALS = [
|
|
|
27229
27282
|
children
|
|
27230
27283
|
];
|
|
27231
27284
|
|
|
27232
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
27233
27286
|
var DAY4 = 864e5;
|
|
27234
27287
|
var STATUS_WINDOW = 300;
|
|
27235
27288
|
var STATUS_CHATS = 16;
|
|
@@ -27411,7 +27464,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
27411
27464
|
};
|
|
27412
27465
|
}, "projectStatus");
|
|
27413
27466
|
|
|
27414
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27467
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
27415
27468
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
27416
27469
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
27417
27470
|
if (deps.offline)
|
|
@@ -27483,7 +27536,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
27483
27536
|
};
|
|
27484
27537
|
}, "accountService");
|
|
27485
27538
|
|
|
27486
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27539
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
27487
27540
|
var MINUTE = 6e4;
|
|
27488
27541
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
27489
27542
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -27502,7 +27555,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
27502
27555
|
return new Date(at - at % MINUTE).toISOString();
|
|
27503
27556
|
}, "sendTime");
|
|
27504
27557
|
|
|
27505
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27558
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
27506
27559
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write2) => {
|
|
27507
27560
|
try {
|
|
27508
27561
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -27749,7 +27802,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
27749
27802
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
27750
27803
|
}, "linkLimits");
|
|
27751
27804
|
|
|
27752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
27753
27806
|
var THREADS_PAGE = 500;
|
|
27754
27807
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
27755
27808
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -27828,7 +27881,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
27828
27881
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
27829
27882
|
}, "readMail");
|
|
27830
27883
|
|
|
27831
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
27832
27885
|
var NO_MAIL = "no_mail";
|
|
27833
27886
|
var MAIL = "email";
|
|
27834
27887
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -27875,7 +27928,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
27875
27928
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
27876
27929
|
}, "accountsOfKind");
|
|
27877
27930
|
|
|
27878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
27879
27932
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
27880
27933
|
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");
|
|
27881
27934
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -28223,7 +28276,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
28223
28276
|
};
|
|
28224
28277
|
}, "statsLucene");
|
|
28225
28278
|
|
|
28226
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
28227
28280
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
28228
28281
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
28229
28282
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -28392,7 +28445,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
28392
28445
|
};
|
|
28393
28446
|
}, "readRankingSelection");
|
|
28394
28447
|
|
|
28395
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28448
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
28396
28449
|
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");
|
|
28397
28450
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
28398
28451
|
command,
|
|
@@ -28402,7 +28455,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
28402
28455
|
fieldsVersion: FIELD_VERSION
|
|
28403
28456
|
}), "searchRecordOf");
|
|
28404
28457
|
|
|
28405
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28458
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
28406
28459
|
function invalid2(message) {
|
|
28407
28460
|
throw new CliError("validation_error", message);
|
|
28408
28461
|
}
|
|
@@ -28696,7 +28749,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
28696
28749
|
}, "evidence")
|
|
28697
28750
|
}), "adminStatisticsService");
|
|
28698
28751
|
|
|
28699
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
28700
28753
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
28701
28754
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
28702
28755
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -28833,16 +28886,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
28833
28886
|
return { plan, repair };
|
|
28834
28887
|
}, "gapsService");
|
|
28835
28888
|
|
|
28836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28889
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
28837
28890
|
import { createHash as createHash9 } from "node:crypto";
|
|
28838
28891
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
28839
28892
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
28840
28893
|
|
|
28841
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28894
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
28842
28895
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
28843
28896
|
import { basename as basename4, join as join8, relative as relative2, sep as sep2 } from "node:path";
|
|
28844
28897
|
|
|
28845
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28898
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
28846
28899
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
28847
28900
|
import { open as open4, stat } from "node:fs/promises";
|
|
28848
28901
|
import { basename as basename3, dirname as dirname3, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -29044,7 +29097,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read2) => {
|
|
|
29044
29097
|
return { name, source };
|
|
29045
29098
|
}, "readStickerFile");
|
|
29046
29099
|
|
|
29047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
29048
29101
|
var MAX_FILES = 1e4;
|
|
29049
29102
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app, env) => {
|
|
29050
29103
|
if (refusedPlace(directory2, app, env))
|
|
@@ -29113,15 +29166,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
29113
29166
|
return choices;
|
|
29114
29167
|
}, "directoryPaths");
|
|
29115
29168
|
|
|
29116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
29117
29170
|
import { posix } from "node:path";
|
|
29118
29171
|
|
|
29119
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29172
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
29120
29173
|
import { setImmediate as tick } from "node:timers/promises";
|
|
29121
29174
|
import { crc32 } from "node:zlib";
|
|
29122
29175
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
29123
29176
|
|
|
29124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29177
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
29125
29178
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
29126
29179
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
29127
29180
|
var SAMPLE = 65536;
|
|
@@ -29223,7 +29276,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
29223
29276
|
return result.text;
|
|
29224
29277
|
}, "decodeXml");
|
|
29225
29278
|
|
|
29226
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
29227
29280
|
var MAX_PART = 10 * 1024 * 1024;
|
|
29228
29281
|
var MAX_ENTRIES = 1e3;
|
|
29229
29282
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -29438,7 +29491,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
29438
29491
|
return found;
|
|
29439
29492
|
}, "elements");
|
|
29440
29493
|
|
|
29441
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29494
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
29442
29495
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
29443
29496
|
let name = "";
|
|
29444
29497
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -29493,7 +29546,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
29493
29546
|
return { text: parts.join("").trim(), truncated: false };
|
|
29494
29547
|
}, "sheetText");
|
|
29495
29548
|
|
|
29496
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29549
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
29497
29550
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
29498
29551
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
29499
29552
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -29893,10 +29946,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
29893
29946
|
}
|
|
29894
29947
|
}, "readDocument");
|
|
29895
29948
|
|
|
29896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29949
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
29897
29950
|
import { extname as extname3 } from "node:path";
|
|
29898
29951
|
|
|
29899
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29952
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
29900
29953
|
import { readFileSync } from "node:fs";
|
|
29901
29954
|
import { dirname as dirname4, extname as extname2, join as join9 } from "node:path";
|
|
29902
29955
|
import { fileURLToPath } from "node:url";
|
|
@@ -29957,7 +30010,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
29957
30010
|
}
|
|
29958
30011
|
}, "derived");
|
|
29959
30012
|
|
|
29960
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30013
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
29961
30014
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
29962
30015
|
var image2 = {
|
|
29963
30016
|
id: "image",
|
|
@@ -29966,7 +30019,7 @@ var image2 = {
|
|
|
29966
30019
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
29967
30020
|
};
|
|
29968
30021
|
|
|
29969
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
29970
30023
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
29971
30024
|
var doc = {
|
|
29972
30025
|
id: "doc",
|
|
@@ -29978,7 +30031,7 @@ var doc = {
|
|
|
29978
30031
|
}), "read")
|
|
29979
30032
|
};
|
|
29980
30033
|
|
|
29981
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30034
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
29982
30035
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
29983
30036
|
var docx = {
|
|
29984
30037
|
id: "docx",
|
|
@@ -29991,7 +30044,7 @@ var docx = {
|
|
|
29991
30044
|
}), "read")
|
|
29992
30045
|
};
|
|
29993
30046
|
|
|
29994
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30047
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
29995
30048
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
29996
30049
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
29997
30050
|
"fonttbl",
|
|
@@ -30167,7 +30220,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
30167
30220
|
}, "htmlText");
|
|
30168
30221
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
30169
30222
|
|
|
30170
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30223
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
30171
30224
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
30172
30225
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
30173
30226
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -30223,7 +30276,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
30223
30276
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
30224
30277
|
}, "markdownSections");
|
|
30225
30278
|
|
|
30226
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
30227
30280
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
30228
30281
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
30229
30282
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -30294,7 +30347,7 @@ var html = {
|
|
|
30294
30347
|
}, "read")
|
|
30295
30348
|
};
|
|
30296
30349
|
|
|
30297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30350
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
30298
30351
|
var office = {
|
|
30299
30352
|
id: "office",
|
|
30300
30353
|
version: documentExtractor("odt"),
|
|
@@ -30305,7 +30358,7 @@ var office = {
|
|
|
30305
30358
|
}, "read")
|
|
30306
30359
|
};
|
|
30307
30360
|
|
|
30308
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30361
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
30309
30362
|
var pdf = {
|
|
30310
30363
|
id: "pdf",
|
|
30311
30364
|
version: "unpdf",
|
|
@@ -30372,7 +30425,7 @@ var pdf = {
|
|
|
30372
30425
|
}), "read")
|
|
30373
30426
|
};
|
|
30374
30427
|
|
|
30375
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30428
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
30376
30429
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
30377
30430
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
30378
30431
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -30392,7 +30445,7 @@ var plain = {
|
|
|
30392
30445
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
30393
30446
|
};
|
|
30394
30447
|
|
|
30395
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30448
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
30396
30449
|
var rtf = {
|
|
30397
30450
|
id: "rtf",
|
|
30398
30451
|
version: "v1",
|
|
@@ -30400,10 +30453,10 @@ var rtf = {
|
|
|
30400
30453
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
30401
30454
|
};
|
|
30402
30455
|
|
|
30403
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30456
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
30404
30457
|
import { basename as basename5 } from "node:path";
|
|
30405
30458
|
|
|
30406
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
30407
30460
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
30408
30461
|
const cells = [];
|
|
30409
30462
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -30441,7 +30494,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
30441
30494
|
return { cells, truncated };
|
|
30442
30495
|
}, "delimitedSpans");
|
|
30443
30496
|
|
|
30444
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30497
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
30445
30498
|
var DELIMITED = {
|
|
30446
30499
|
".csv": ",",
|
|
30447
30500
|
".tsv": " ",
|
|
@@ -30480,7 +30533,7 @@ var sheets = {
|
|
|
30480
30533
|
}, "read")
|
|
30481
30534
|
};
|
|
30482
30535
|
|
|
30483
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30536
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
30484
30537
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
30485
30538
|
var HEAD_BYTES = 1024;
|
|
30486
30539
|
var readers = [...BUILT_INS2];
|
|
@@ -30490,7 +30543,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
30490
30543
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
30491
30544
|
}, "readWithRegistry");
|
|
30492
30545
|
|
|
30493
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30546
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
30494
30547
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
30495
30548
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
30496
30549
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -31569,7 +31622,7 @@ function imageSize(input) {
|
|
|
31569
31622
|
}
|
|
31570
31623
|
__name(imageSize, "imageSize");
|
|
31571
31624
|
|
|
31572
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
31573
31626
|
var MAX_PAGES = 20;
|
|
31574
31627
|
var MAX_PIXELS = 2e7;
|
|
31575
31628
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -31720,7 +31773,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
31720
31773
|
}
|
|
31721
31774
|
}, "ocrPdf");
|
|
31722
31775
|
|
|
31723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
31724
31777
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
31725
31778
|
const limits = pdfPreviewLimits(env);
|
|
31726
31779
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -31797,7 +31850,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
31797
31850
|
}
|
|
31798
31851
|
}, "pdfPreview");
|
|
31799
31852
|
|
|
31800
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
31801
31854
|
import { createHash as createHash8 } from "node:crypto";
|
|
31802
31855
|
import { constants } from "node:fs";
|
|
31803
31856
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -31905,7 +31958,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
31905
31958
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
31906
31959
|
}, "transferMime");
|
|
31907
31960
|
|
|
31908
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31961
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
31909
31962
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
31910
31963
|
import { link as link3, rm } from "node:fs/promises";
|
|
31911
31964
|
import { join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -32019,7 +32072,7 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
32019
32072
|
}
|
|
32020
32073
|
}, "save");
|
|
32021
32074
|
|
|
32022
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
32023
32076
|
var ATTACHMENT_QUERY = {
|
|
32024
32077
|
entity: "attachment",
|
|
32025
32078
|
backend: "sql",
|
|
@@ -32442,7 +32495,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32442
32495
|
}, "setText")
|
|
32443
32496
|
}), "attachmentsService");
|
|
32444
32497
|
|
|
32445
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
32446
32499
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
32447
32500
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
32448
32501
|
const store = await accountStore(deps);
|
|
@@ -32472,7 +32525,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32472
32525
|
}, "list")
|
|
32473
32526
|
}), "chatDocumentsService");
|
|
32474
32527
|
|
|
32475
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32528
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
32476
32529
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
32477
32530
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
32478
32531
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -32559,7 +32612,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
32559
32612
|
}
|
|
32560
32613
|
}, "isRetentionSelection");
|
|
32561
32614
|
|
|
32562
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32615
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
32563
32616
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
32564
32617
|
const fields = text2.split(",").map((one2) => one2.trim());
|
|
32565
32618
|
if (!fields.length || fields.some((one2) => !COUNTER_FIELDS.includes(one2)) || new Set(fields).size !== fields.length)
|
|
@@ -32766,7 +32819,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
32766
32819
|
};
|
|
32767
32820
|
}, "countersService");
|
|
32768
32821
|
|
|
32769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32822
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
32770
32823
|
var SYNC_KEY = "messages.sync-first";
|
|
32771
32824
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
32772
32825
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -32898,7 +32951,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
32898
32951
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
32899
32952
|
}), "withRefresh");
|
|
32900
32953
|
|
|
32901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32954
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
32902
32955
|
var CANDIDATES = 50;
|
|
32903
32956
|
var WORD_HITS = 200;
|
|
32904
32957
|
var RRF_K = 60;
|
|
@@ -33173,13 +33226,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
33173
33226
|
return mean2.map((value) => value / length);
|
|
33174
33227
|
}, "meanOf");
|
|
33175
33228
|
|
|
33176
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33229
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
33177
33230
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
33178
33231
|
...embeddingsMaintenance(deps),
|
|
33179
33232
|
...embeddingsSearch(deps)
|
|
33180
33233
|
}), "embeddingsService");
|
|
33181
33234
|
|
|
33182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33235
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
33183
33236
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
33184
33237
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
33185
33238
|
if (deps.offline)
|
|
@@ -33320,7 +33373,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
33320
33373
|
};
|
|
33321
33374
|
}, "foldersService");
|
|
33322
33375
|
|
|
33323
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33376
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
33324
33377
|
var REVIEW_COUNT = 500;
|
|
33325
33378
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
33326
33379
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -33399,7 +33452,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
33399
33452
|
};
|
|
33400
33453
|
}, "mentionsService");
|
|
33401
33454
|
|
|
33402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33455
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
33403
33456
|
var invalid3 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
33404
33457
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
33405
33458
|
const { text: text2, spans } = formatted2;
|
|
@@ -33459,7 +33512,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
33459
33512
|
};
|
|
33460
33513
|
}, "visibleFormattedText");
|
|
33461
33514
|
|
|
33462
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
33463
33516
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
33464
33517
|
position,
|
|
33465
33518
|
kind,
|
|
@@ -33508,7 +33561,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
33508
33561
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
33509
33562
|
}, "validatePermalink");
|
|
33510
33563
|
|
|
33511
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33564
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
33512
33565
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
33513
33566
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
33514
33567
|
return `${seconds / 86400}d`;
|
|
@@ -33540,7 +33593,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
33540
33593
|
return seconds;
|
|
33541
33594
|
}, "pinDurationOf");
|
|
33542
33595
|
|
|
33543
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
33544
33597
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
33545
33598
|
if (sendAs === void 0) {
|
|
33546
33599
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -33565,7 +33618,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
33565
33618
|
return sendAs;
|
|
33566
33619
|
}, "typedSendAs");
|
|
33567
33620
|
|
|
33568
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
33569
33622
|
var TOTAL_CAP = 1e4;
|
|
33570
33623
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
33571
33624
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -33576,7 +33629,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
33576
33629
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
33577
33630
|
}, "totalOf");
|
|
33578
33631
|
|
|
33579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
33580
33633
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
33581
33634
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
33582
33635
|
let narrows = false;
|
|
@@ -33605,7 +33658,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
33605
33658
|
return wanted(root).join(" ").trim();
|
|
33606
33659
|
}, "meaningWords");
|
|
33607
33660
|
|
|
33608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
33609
33662
|
var words3 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
33610
33663
|
var scaffolding = new Set(words3("what which how many much who where when is are was were do does did can could should we the a an for of to under from in on at has have \u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043A\u0430\u043A\u043E\u0439 \u043A\u0430\u043A\u0430\u044F \u043A\u0430\u043A\u0438\u0435 \u043A\u0430\u043A\u043E\u0435 \u043A\u0442\u043E \u043A\u043E\u043C\u0443 \u043A\u0435\u043C \u0433\u0434\u0435 \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043A \u0447\u0442\u043E \u0432\u043E \u043F\u043E \u043D\u0430 \u0432 \u043A \u0441 \u0443 \u0447\u0435\u0440\u0435\u0437 \u043B\u0438 \u0434\u043E\u043B\u0436\u0435\u043D \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0443\u0436\u043D\u043E \u0438\u0434\u0451\u0442 \u0438\u0434\u0435\u0442 \u043C\u043E\u0436\u043D\u043E \u043C\u043E\u0436\u0435\u0442 \u043C\u043E\u0433\u0443\u0442"));
|
|
33611
33664
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -33737,7 +33790,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
33737
33790
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
33738
33791
|
}, "questionLookup");
|
|
33739
33792
|
|
|
33740
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33793
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
33741
33794
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
33742
33795
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
33743
33796
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -33930,7 +33983,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
33930
33983
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage2 * 4 + proximity + phrase;
|
|
33931
33984
|
}, "signals");
|
|
33932
33985
|
|
|
33933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33986
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
33934
33987
|
var MEANING_DEPTH = 100;
|
|
33935
33988
|
var RRF_K2 = 60;
|
|
33936
33989
|
var RERANK_DEPTH = 50;
|
|
@@ -34255,7 +34308,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
34255
34308
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
34256
34309
|
}, "mixedWithReranker");
|
|
34257
34310
|
|
|
34258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34311
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
34259
34312
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
34260
34313
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
34261
34314
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -34454,7 +34507,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
34454
34507
|
return result;
|
|
34455
34508
|
}, "readThreadContext");
|
|
34456
34509
|
|
|
34457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34510
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
34458
34511
|
var SEARCH_FILL_MS = 200;
|
|
34459
34512
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
34460
34513
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -34521,12 +34574,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
34521
34574
|
}, "accountOf");
|
|
34522
34575
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
34523
34576
|
|
|
34524
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34577
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
34525
34578
|
import { createHash as createHash10 } from "node:crypto";
|
|
34526
34579
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
34527
34580
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
34528
34581
|
|
|
34529
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34582
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
34530
34583
|
var GROUP_SETTINGS = [
|
|
34531
34584
|
"allCanPin",
|
|
34532
34585
|
"onlyAdminsAdd",
|
|
@@ -34540,7 +34593,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
34540
34593
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
34541
34594
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
34542
34595
|
|
|
34543
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
34544
34597
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
34545
34598
|
var PICTURE_FLOOR = 0.25;
|
|
34546
34599
|
var PAGE4 = 50;
|
|
@@ -34557,7 +34610,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
34557
34610
|
const directory2 = imageModelsDirectory(deps.env);
|
|
34558
34611
|
if (!isImageModelInstalled(model2, directory2))
|
|
34559
34612
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
34560
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34613
|
+
const { openPictureEmbedder } = await import("./embedder-65SA34CZ.js");
|
|
34561
34614
|
return openPictureEmbedder(model2, directory2);
|
|
34562
34615
|
}, "open");
|
|
34563
34616
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -34754,7 +34807,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
34754
34807
|
}, "search")
|
|
34755
34808
|
}), "withPictures");
|
|
34756
34809
|
|
|
34757
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34810
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
34758
34811
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
|
|
34759
34812
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
34760
34813
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -34822,7 +34875,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
34822
34875
|
}
|
|
34823
34876
|
}, "meaningLane");
|
|
34824
34877
|
|
|
34825
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
34826
34879
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
34827
34880
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
34828
34881
|
if (choice === "off")
|
|
@@ -34834,9 +34887,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34834
34887
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
34835
34888
|
try {
|
|
34836
34889
|
const warm = deps.embedders;
|
|
34837
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
34890
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-HJWMNCUC.js")).openRerankerProcess(model, directory2, {
|
|
34838
34891
|
threads: defaultThreads()
|
|
34839
|
-
})) : await (await import("./rerank-
|
|
34892
|
+
})) : await (await import("./rerank-GBKN7RN4.js")).openReranker(model, directory2);
|
|
34840
34893
|
return {
|
|
34841
34894
|
model: model.id,
|
|
34842
34895
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -34856,17 +34909,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34856
34909
|
};
|
|
34857
34910
|
}, "rerankLane");
|
|
34858
34911
|
|
|
34859
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34912
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
34860
34913
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
34861
34914
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
34862
34915
|
const directory2 = imageModelsDirectory(env);
|
|
34863
34916
|
if (!isImageModelInstalled(model, directory2))
|
|
34864
34917
|
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 });
|
|
34865
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34918
|
+
const { openPictureEmbedder } = await import("./embedder-65SA34CZ.js");
|
|
34866
34919
|
return openPictureEmbedder(model, directory2);
|
|
34867
34920
|
}, "openPictureEmbedderFor");
|
|
34868
34921
|
|
|
34869
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
34870
34923
|
var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) => {
|
|
34871
34924
|
const metadata = note2.frontMatter;
|
|
34872
34925
|
const account = accounts.find(({ id: id2 }) => String(id2) === note2.folderId);
|
|
@@ -34881,7 +34934,7 @@ var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) =
|
|
|
34881
34934
|
};
|
|
34882
34935
|
}, "documentSource");
|
|
34883
34936
|
|
|
34884
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
34885
34938
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
34886
34939
|
let root;
|
|
34887
34940
|
try {
|
|
@@ -34908,7 +34961,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words4) => {
|
|
|
34908
34961
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
34909
34962
|
}, "titleTiers");
|
|
34910
34963
|
|
|
34911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34964
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
34912
34965
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
34913
34966
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
34914
34967
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -35351,7 +35404,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
35351
35404
|
};
|
|
35352
35405
|
}, "searchNotesOf");
|
|
35353
35406
|
|
|
35354
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35407
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
35355
35408
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
35356
35409
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
35357
35410
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -35468,7 +35521,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
35468
35521
|
};
|
|
35469
35522
|
}, "searchEvents");
|
|
35470
35523
|
|
|
35471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35524
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
35472
35525
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events"];
|
|
35473
35526
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
35474
35527
|
var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
@@ -35697,7 +35750,7 @@ var oneList = /* @__PURE__ */ __name((lists, cosines) => {
|
|
|
35697
35750
|
return [...place.values()].sort((a, b) => a.rank - b.rank || cosine(b.item.ref) - cosine(a.item.ref)).map(({ item: item2 }) => item2);
|
|
35698
35751
|
}, "oneList");
|
|
35699
35752
|
|
|
35700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
35701
35754
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
35702
35755
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
35703
35756
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -35950,7 +36003,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
35950
36003
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
35951
36004
|
}, "searchAllOfSource");
|
|
35952
36005
|
|
|
35953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
35954
36007
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
35955
36008
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
35956
36009
|
var DEFAULT_BACKEND = "both";
|
|
@@ -36139,7 +36192,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
36139
36192
|
return { report, sources };
|
|
36140
36193
|
}, "searchServer");
|
|
36141
36194
|
|
|
36142
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
36143
36196
|
var DELETE_AT_ONCE = 10;
|
|
36144
36197
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
36145
36198
|
const files = fileLinks(attachments);
|
|
@@ -36580,7 +36633,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
36580
36633
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
36581
36634
|
}, "checkMediaOptions");
|
|
36582
36635
|
|
|
36583
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
36584
36637
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
36585
36638
|
var RULES = {
|
|
36586
36639
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -36595,7 +36648,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
36595
36648
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
36596
36649
|
}), "classifyChannel");
|
|
36597
36650
|
|
|
36598
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36651
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
36599
36652
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
36600
36653
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
36601
36654
|
const store = await deps.store();
|
|
@@ -36681,7 +36734,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
36681
36734
|
};
|
|
36682
36735
|
}, "metadataService");
|
|
36683
36736
|
|
|
36684
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36737
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
36685
36738
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
36686
36739
|
var LINK2 = /https?:\/\/\S+/i;
|
|
36687
36740
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -36869,7 +36922,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
36869
36922
|
}, "nextPoint");
|
|
36870
36923
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
36871
36924
|
|
|
36872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
36873
36926
|
import { existsSync, readFileSync as readFileSync2 } from "node:fs";
|
|
36874
36927
|
import { join as join11 } from "node:path";
|
|
36875
36928
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -37012,7 +37065,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
37012
37065
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
37013
37066
|
}, "assign");
|
|
37014
37067
|
|
|
37015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37068
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
37016
37069
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
37017
37070
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
37018
37071
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -37049,7 +37102,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
37049
37102
|
return { chatId, rows, notes };
|
|
37050
37103
|
}, "moderateWith");
|
|
37051
37104
|
|
|
37052
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
37053
37106
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
37054
37107
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
37055
37108
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -37127,7 +37180,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
37127
37180
|
}, "removePerson")
|
|
37128
37181
|
}), "moderatorOf");
|
|
37129
37182
|
|
|
37130
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37183
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
37131
37184
|
var noteItem = /* @__PURE__ */ __name((provider, note2) => ({
|
|
37132
37185
|
id: note2.id,
|
|
37133
37186
|
contact: formatReference({ type: "contact", provider, id: note2.personId }),
|
|
@@ -37171,7 +37224,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
37171
37224
|
};
|
|
37172
37225
|
}, "privatePeopleService");
|
|
37173
37226
|
|
|
37174
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
37175
37228
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
37176
37229
|
total: 0,
|
|
37177
37230
|
population: 0,
|
|
@@ -37427,7 +37480,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
37427
37480
|
}, "evidence")
|
|
37428
37481
|
}), "rankingsService");
|
|
37429
37482
|
|
|
37430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37483
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
37431
37484
|
var FIELDS = ["date", "chat", "kind"];
|
|
37432
37485
|
var WAITING_TAIL = 100;
|
|
37433
37486
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -37554,7 +37607,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37554
37607
|
};
|
|
37555
37608
|
}, "replyStatsService");
|
|
37556
37609
|
|
|
37557
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37610
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
37558
37611
|
var savedSearchItem = /* @__PURE__ */ __name((one2) => ({
|
|
37559
37612
|
id: one2.id,
|
|
37560
37613
|
name: one2.name,
|
|
@@ -37683,7 +37736,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
37683
37736
|
};
|
|
37684
37737
|
}, "searchesService");
|
|
37685
37738
|
|
|
37686
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37739
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
37687
37740
|
var TAGGING_QUERY = {
|
|
37688
37741
|
entity: "tagging",
|
|
37689
37742
|
backend: "sql",
|
|
@@ -37767,7 +37820,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37767
37820
|
};
|
|
37768
37821
|
}, "tagsService");
|
|
37769
37822
|
|
|
37770
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37823
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
37771
37824
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
37772
37825
|
const set = [closed, pinned, hidden].filter((one2) => one2 !== void 0).length;
|
|
37773
37826
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -37966,7 +38019,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37966
38019
|
};
|
|
37967
38020
|
}, "topicsService");
|
|
37968
38021
|
|
|
37969
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
37970
38023
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
37971
38024
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
37972
38025
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -38040,7 +38093,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
38040
38093
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
38041
38094
|
}, "prepareEvidencePacket");
|
|
38042
38095
|
|
|
38043
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38096
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
38044
38097
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
38045
38098
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
38046
38099
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -38060,7 +38113,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
38060
38113
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
38061
38114
|
}, "readEvidencePacket");
|
|
38062
38115
|
|
|
38063
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
38064
38117
|
var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
|
|
38065
38118
|
let before2 = Number.POSITIVE_INFINITY;
|
|
38066
38119
|
for (; ; ) {
|
|
@@ -38122,7 +38175,7 @@ var searchMeetingHits = /* @__PURE__ */ __name(async (store, query, request, opt
|
|
|
38122
38175
|
return { ...result, selection };
|
|
38123
38176
|
}, "searchMeetingHits");
|
|
38124
38177
|
|
|
38125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
38126
38179
|
import { createHash as createHash12 } from "node:crypto";
|
|
38127
38180
|
var scopeKeys = [
|
|
38128
38181
|
"accountId",
|
|
@@ -38257,7 +38310,7 @@ var readMeetingProjectDiscovery = /* @__PURE__ */ __name(async (ports, projectNa
|
|
|
38257
38310
|
};
|
|
38258
38311
|
}, "readMeetingProjectDiscovery");
|
|
38259
38312
|
|
|
38260
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38313
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/meeting-hit-context.js
|
|
38261
38314
|
import { createHash as createHash13 } from "node:crypto";
|
|
38262
38315
|
var contextCue = /* @__PURE__ */ __name((cue) => ({
|
|
38263
38316
|
ref: cue.reference,
|
|
@@ -38375,7 +38428,7 @@ var readMeetingHitContext = /* @__PURE__ */ __name(async (store, accountId, refe
|
|
|
38375
38428
|
return { ...packet, fingerprint: createHash13("sha256").update(JSON.stringify(packet)).digest("hex") };
|
|
38376
38429
|
}, "readMeetingHitContext");
|
|
38377
38430
|
|
|
38378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38431
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/meeting-passage-format.js
|
|
38379
38432
|
var visible = /* @__PURE__ */ __name((text2) => text2.replace(/[\p{Cc}\p{Cf}]/gu, (value) => value === "\n" || value === " " ? value : `\\u{${value.codePointAt(0)?.toString(16)}}`), "visible");
|
|
38380
38433
|
var markdown = /* @__PURE__ */ __name((text2) => visible(text2).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replace(/[\\`*_[\]#|~]/g, "\\$&"), "markdown");
|
|
38381
38434
|
var timestamp = /* @__PURE__ */ __name((ms) => {
|
|
@@ -38451,7 +38504,7 @@ var readMeetingPassage = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
38451
38504
|
return { packet, content };
|
|
38452
38505
|
}, "readMeetingPassage");
|
|
38453
38506
|
|
|
38454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38507
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
38455
38508
|
var communicationFields = {
|
|
38456
38509
|
sources: pipe(array(strictObject({
|
|
38457
38510
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -38483,7 +38536,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
38483
38536
|
return { ...input, after, before: before2 };
|
|
38484
38537
|
}, "communicationRequest");
|
|
38485
38538
|
|
|
38486
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38539
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
38487
38540
|
var MEETING_PREPARATION_LIMITS = {
|
|
38488
38541
|
meetings: { min: 1, max: 20, default: 5 },
|
|
38489
38542
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -38569,7 +38622,7 @@ var preparationRequest = /* @__PURE__ */ __name((accountId, externalId, original
|
|
|
38569
38622
|
return { ...input, history };
|
|
38570
38623
|
}, "preparationRequest");
|
|
38571
38624
|
|
|
38572
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/meeting-communications-preparation.js
|
|
38573
38626
|
var readPreparationCommunications = /* @__PURE__ */ __name(async (plan, signal) => {
|
|
38574
38627
|
const section = {
|
|
38575
38628
|
readUsage: plan.reader.usage(),
|
|
@@ -38674,7 +38727,7 @@ var appendPreparationCommunications = /* @__PURE__ */ __name((result, read2) =>
|
|
|
38674
38727
|
result.knowledge.coverage.otherSources = "see-communications";
|
|
38675
38728
|
}, "appendPreparationCommunications");
|
|
38676
38729
|
|
|
38677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38730
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
38678
38731
|
var captureCommunicationSelections = /* @__PURE__ */ __name((port) => {
|
|
38679
38732
|
if (port === void 0)
|
|
38680
38733
|
return void 0;
|
|
@@ -38779,7 +38832,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
38779
38832
|
}
|
|
38780
38833
|
}, "validatePreparationCommunications");
|
|
38781
38834
|
|
|
38782
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/meeting-knowledge-preparation.js
|
|
38783
38836
|
var invalid5 = /* @__PURE__ */ __name(() => {
|
|
38784
38837
|
throw new CliError("invalid_response", "Preparation knowledge returned an invalid selection");
|
|
38785
38838
|
}, "invalid");
|
|
@@ -38848,7 +38901,7 @@ var appendKnowledgePreparation = /* @__PURE__ */ __name(async (store, result, in
|
|
|
38848
38901
|
}
|
|
38849
38902
|
}, "appendKnowledgePreparation");
|
|
38850
38903
|
|
|
38851
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38904
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/meeting-notes-preparation.js
|
|
38852
38905
|
var invalid6 = /* @__PURE__ */ __name(() => {
|
|
38853
38906
|
throw new CliError("invalid_response", "Preparation notes returned an invalid selection");
|
|
38854
38907
|
}, "invalid");
|
|
@@ -38922,7 +38975,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
38922
38975
|
}
|
|
38923
38976
|
}, "appendNotesPreparation");
|
|
38924
38977
|
|
|
38925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38978
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/meeting-project-preparation.js
|
|
38926
38979
|
var PAGE_LIMIT = 4;
|
|
38927
38980
|
var size2 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
38928
38981
|
var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, input) => {
|
|
@@ -38972,7 +39025,7 @@ var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, inpu
|
|
|
38972
39025
|
}
|
|
38973
39026
|
}, "appendProjectPreparation");
|
|
38974
39027
|
|
|
38975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39028
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/meeting-related-preparation.js
|
|
38976
39029
|
var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, input) => {
|
|
38977
39030
|
if (!result.series || !result.items.length || result.coverage.outputLimited)
|
|
38978
39031
|
return;
|
|
@@ -39044,7 +39097,7 @@ var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, inpu
|
|
|
39044
39097
|
}
|
|
39045
39098
|
}, "appendRelatedPreparation");
|
|
39046
39099
|
|
|
39047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/meeting-preparation.js
|
|
39048
39101
|
var size3 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
39049
39102
|
var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
39050
39103
|
const fixed = snapshotMeetingScope(scope);
|
|
@@ -39182,7 +39235,7 @@ var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId,
|
|
|
39182
39235
|
};
|
|
39183
39236
|
}, "createMeetingPreparationService");
|
|
39184
39237
|
|
|
39185
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39238
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
39186
39239
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
39187
39240
|
const installer = ports.installer();
|
|
39188
39241
|
const argv = updateCommand(installer, packageName);
|
|
@@ -39247,7 +39300,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
39247
39300
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
39248
39301
|
}, "dayAfter");
|
|
39249
39302
|
|
|
39250
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
39251
39304
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
39252
39305
|
const pictures = picturesService(deps);
|
|
39253
39306
|
const base = {
|
|
@@ -39284,7 +39337,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
39284
39337
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
39285
39338
|
}, "servicesFor");
|
|
39286
39339
|
|
|
39287
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
39288
39341
|
import { createHash as createHash14 } from "node:crypto";
|
|
39289
39342
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync3, rmSync } from "node:fs";
|
|
39290
39343
|
import { createConnection, createServer } from "node:net";
|
|
@@ -39432,7 +39485,7 @@ var serve = /* @__PURE__ */ __name(async (socket, request, stdin, signal, run) =
|
|
|
39432
39485
|
}
|
|
39433
39486
|
}, "serve");
|
|
39434
39487
|
|
|
39435
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39488
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
39436
39489
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
39437
39490
|
close: /* @__PURE__ */ __name(async () => {
|
|
39438
39491
|
}, "close"),
|
|
@@ -39689,6 +39742,7 @@ export {
|
|
|
39689
39742
|
upgradePackage,
|
|
39690
39743
|
approveAsTask,
|
|
39691
39744
|
parseProposalIds,
|
|
39745
|
+
proposeOrganization,
|
|
39692
39746
|
proposalRegistry,
|
|
39693
39747
|
servicesFor,
|
|
39694
39748
|
lackedNeed,
|