@wirecat/cli-memo 0.131.33 → 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-I67AQBML.js → all-profiles-6666YYUZ.js} +9 -9
- package/dist/bundle/{anthropic-TAN7BXEI.js → anthropic-23OB7KWO.js} +6 -6
- package/dist/bundle/{app-server-BB6D3T5A.js → app-server-2S5OS3OH.js} +42 -42
- package/dist/bundle/auto-XDBIEURD.js +86 -0
- package/dist/bundle/{bun-UQEFISW2.js → bun-BNVO37ZD.js} +2 -2
- package/dist/bundle/{bun-sqlite-2QF3TO47.js → bun-sqlite-USZ27VKM.js} +5 -5
- package/dist/bundle/{chunk-5M4CW3PM.js → chunk-26PVWAKE.js} +374 -323
- package/dist/bundle/{chunk-KJBKP66D.js → chunk-2DTUMEN2.js} +4 -4
- package/dist/bundle/{chunk-7OSMWDV3.js → chunk-2PFOLWD3.js} +3 -3
- package/dist/bundle/{chunk-TZ7WDQPD.js → chunk-2R2Z2VWL.js} +20 -20
- package/dist/bundle/{chunk-EN3D3M3X.js → chunk-2Y4UU4DB.js} +3 -3
- package/dist/bundle/{chunk-NAKJLG6G.js → chunk-3ZZ5OCUO.js} +6 -6
- package/dist/bundle/{chunk-ABORNS53.js → chunk-4OR4HFSL.js} +8 -8
- package/dist/bundle/{chunk-HU2UNNN5.js → chunk-6D47X4KD.js} +1 -1
- package/dist/bundle/{chunk-LUX5CPKS.js → chunk-6H6EXCZY.js} +1 -1
- package/dist/bundle/{chunk-P7AWDFQW.js → chunk-736NNFPY.js} +1 -1
- package/dist/bundle/{chunk-OGOMIZVL.js → chunk-AYIUZUGD.js} +1 -1
- package/dist/bundle/{chunk-3DDGDOTM.js → chunk-BHDNHN55.js} +8 -8
- package/dist/bundle/{chunk-N75EWKKC.js → chunk-BU4LJSW2.js} +1 -1
- package/dist/bundle/{chunk-5DEHFWR4.js → chunk-C2XCIZND.js} +2 -2
- package/dist/bundle/{chunk-KV4267S4.js → chunk-CID4MNRQ.js} +1 -1
- package/dist/bundle/{chunk-AP3AG2BB.js → chunk-CLHGYKYZ.js} +5 -5
- package/dist/bundle/{chunk-RRLIMG4U.js → chunk-CMMKWXFG.js} +35 -35
- package/dist/bundle/{chunk-LDEPGWLS.js → chunk-DCBBLYCI.js} +29 -29
- package/dist/bundle/{chunk-JCFO4LQL.js → chunk-DMU5PAKY.js} +1 -1
- package/dist/bundle/{chunk-BFLYYQZ7.js → chunk-DMUIMBCE.js} +4 -4
- package/dist/bundle/{chunk-MI6OKBKQ.js → chunk-DQ66H456.js} +4 -4
- package/dist/bundle/{chunk-X5WJDJ7B.js → chunk-DYMUJFDK.js} +14 -14
- package/dist/bundle/{chunk-6MDFXQ3P.js → chunk-EIYLAELT.js} +343 -312
- package/dist/bundle/{chunk-SN3VTCKM.js → chunk-FXG3SUIQ.js} +13 -13
- package/dist/bundle/{chunk-3TEBUFO4.js → chunk-FYT6A3UY.js} +1 -1
- package/dist/bundle/{chunk-QMK5MB3I.js → chunk-GAWGZN4F.js} +3 -3
- package/dist/bundle/{chunk-LJZAVL4S.js → chunk-GLFFCRRX.js} +2 -2
- package/dist/bundle/{chunk-5JAYP233.js → chunk-GNLCVNP7.js} +9 -9
- package/dist/bundle/{chunk-SLY3522P.js → chunk-I55VXEI2.js} +4 -4
- package/dist/bundle/{chunk-536BN5HJ.js → chunk-ICBWD2OL.js} +1 -1
- package/dist/bundle/{chunk-FQ23ENBP.js → chunk-IKDHJLSH.js} +277 -277
- package/dist/bundle/{chunk-JOUN3RQQ.js → chunk-JIWQNA2J.js} +168 -184
- package/dist/bundle/{chunk-I7PL5WX2.js → chunk-JY34MQW4.js} +4 -4
- package/dist/bundle/{chunk-GUCICZ5E.js → chunk-L3SMTWCF.js} +7 -7
- package/dist/bundle/{chunk-WSSMVWI6.js → chunk-L7AB7Y4Z.js} +46 -46
- package/dist/bundle/{chunk-YGKZOBRU.js → chunk-LBDMVVVW.js} +12 -12
- package/dist/bundle/{chunk-YPF6OS37.js → chunk-LER7G4XY.js} +1 -1
- package/dist/bundle/{chunk-PI5XHH3B.js → chunk-LQHW4G6G.js} +6 -6
- package/dist/bundle/{chunk-DUQGOBGY.js → chunk-ME5RGIHV.js} +11 -11
- package/dist/bundle/{chunk-3CVPUL6V.js → chunk-MMRM6ZMM.js} +2 -2
- package/dist/bundle/{chunk-S6HHL43A.js → chunk-MNKCFCI7.js} +2 -2
- package/dist/bundle/{chunk-BUYST3RY.js → chunk-N2Y6FTPK.js} +2 -2
- package/dist/bundle/{chunk-2Y2UWMJX.js → chunk-NYELWBUA.js} +6 -6
- package/dist/bundle/{chunk-YBSILL43.js → chunk-OCIE3POS.js} +6 -6
- package/dist/bundle/{chunk-BT6ZZUXC.js → chunk-PYQU4GLK.js} +64 -64
- package/dist/bundle/{chunk-FZXOHGOA.js → chunk-RUZOQ7QN.js} +4 -4
- package/dist/bundle/{chunk-EB2IULWB.js → chunk-RZ54DSVU.js} +2 -2
- package/dist/bundle/{chunk-4BDZUM4Z.js → chunk-SKBMXSQ3.js} +2 -2
- package/dist/bundle/{chunk-L5XW7SRP.js → chunk-SKVRUW57.js} +2 -2
- package/dist/bundle/{chunk-NOBWIWEE.js → chunk-SMJAJWYW.js} +3 -3
- package/dist/bundle/{chunk-G2BB5WY5.js → chunk-SN63VOE6.js} +8 -8
- package/dist/bundle/{chunk-2S5YZCD4.js → chunk-SRHG24V7.js} +4 -4
- package/dist/bundle/{chunk-AFCZMG3T.js → chunk-T3AUEF46.js} +22 -22
- package/dist/bundle/{chunk-PVKETTTH.js → chunk-URQ7ZL5K.js} +10 -10
- package/dist/bundle/{chunk-MZMKZ3FS.js → chunk-V5N65VRU.js} +9 -9
- package/dist/bundle/{chunk-MF2IXW4D.js → chunk-VJSWU4JX.js} +3 -3
- package/dist/bundle/{chunk-BSPNSDJR.js → chunk-VMXESPNG.js} +7 -7
- package/dist/bundle/{chunk-R37MXUSP.js → chunk-VYYPW7YP.js} +31 -23
- package/dist/bundle/{chunk-IT5OORGL.js → chunk-WIK6SGHZ.js} +2 -2
- package/dist/bundle/{chunk-UMWPJXNA.js → chunk-WRUD4OYQ.js} +5 -5
- package/dist/bundle/{chunk-KTGIARY4.js → chunk-XLKJSFQN.js} +2 -2
- package/dist/bundle/{chunk-62H5HS77.js → chunk-XZPE2E3O.js} +8 -8
- package/dist/bundle/{chunk-XBIPSSKI.js → chunk-Y5CAKD4X.js} +4 -4
- package/dist/bundle/{chunk-KBSN3KOJ.js → chunk-YGW3JZVB.js} +22 -22
- package/dist/bundle/command-contract-TBZCPYWZ.js +32 -0
- package/dist/bundle/{decode-AC2QFP22.js → decode-RMAOEVTY.js} +5 -5
- package/dist/bundle/{dispatch-CU5KGRQL.js → dispatch-MLRETSNQ.js} +8 -8
- package/dist/bundle/{echarts-2LGYCSJM.js → echarts-R2MI4OEU.js} +2 -2
- package/dist/bundle/{embed-5G5NJRTM.js → embed-BG2XPLWM.js} +6 -6
- package/dist/bundle/{embedder-AWGIIEIK.js → embedder-65SA34CZ.js} +9 -9
- package/dist/bundle/{entry-J2G7NST5.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-CIE4REGV.js → first-run-ZUQRYWEZ.js} +11 -11
- package/dist/bundle/first-screen-O5X3OT77.js +30 -0
- package/dist/bundle/{instructions-5236MVDG.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-7746MVI2.js → node-43BSSPFC.js} +2 -2
- package/dist/bundle/{node-sqlite-2JD5RF5A.js → node-sqlite-RPWFR6H3.js} +6 -6
- package/dist/bundle/{oauth-BUMW77DB.js → oauth-AYAADVSS.js} +7 -7
- package/dist/bundle/{open-CXUGW7QC.js → open-XEZ5CPLR.js} +5 -5
- package/dist/bundle/{openai-ORFEPFYD.js → openai-SQS7OBEI.js} +10 -10
- package/dist/bundle/{process-JXXYNYHP.js → process-HJWMNCUC.js} +1 -1
- package/dist/bundle/{program-4RYVZYD2.js → program-RQO3ZNVL.js} +89 -86
- package/dist/bundle/{prompt-EHLY4L77.js → prompt-STQZGLH7.js} +5 -5
- package/dist/bundle/{recognize-ES7MH57V.js → recognize-HJ6G4OWB.js} +4 -4
- package/dist/bundle/{remote-EZ76X2VI.js → remote-HDTQYFBP.js} +7 -7
- package/dist/bundle/{rerank-CDIZ6AA6.js → rerank-GBKN7RN4.js} +7 -7
- package/dist/bundle/{serve-YRSGBTJY.js → serve-KPTYHWUY.js} +9 -9
- package/dist/bundle/{server-MW5247KA.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-S6A5VAWR.js → state-22MNHAQY.js} +6 -6
- package/dist/bundle/{store-O5CDNS3U.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/knowledge/project-status-command.d.ts.map +1 -1
- package/dist/knowledge/project-status-command.js +12 -19
- package/dist/knowledge/project-status-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-6555QOPH.js +0 -86
- package/dist/bundle/command-contract-LRGVHRDS.js +0 -32
- package/dist/bundle/failure-7SDDOWOC.js +0 -66
- package/dist/bundle/first-screen-PLNL6V5J.js +0 -30
- package/dist/bundle/mcp-IRYWZZMF.js +0 -90
- package/dist/bundle/server-EUYRPM4X.js +0 -48
- package/dist/bundle/server-OHIH2CMF.js +0 -61
- package/dist/bundle/store-maintenance-command-3OFVJT4R.js +0 -48
- package/dist/bundle/update-RC5CLYFY.js +0 -69
- /package/dist/bundle/{chunk-JB5P5WSQ.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,29 +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.
|
|
26937
|
-
var lastMessage = {
|
|
26938
|
-
id: "last-message",
|
|
26939
|
-
version: 1,
|
|
26940
|
-
scope: "chat",
|
|
26941
|
-
read: /* @__PURE__ */ __name(async (_context, chat) => {
|
|
26942
|
-
const last = chat?.messages.at(-1);
|
|
26943
|
-
if (!chat || !last)
|
|
26944
|
-
return [];
|
|
26945
|
-
const item2 = {
|
|
26946
|
-
signal: "last-message",
|
|
26947
|
-
chat: chat.ref,
|
|
26948
|
-
at: last.timestamp,
|
|
26949
|
-
who: whoOf(last),
|
|
26950
|
-
evidence: evidenceOf(chat, last),
|
|
26951
|
-
basis: "store",
|
|
26952
|
-
data: {}
|
|
26953
|
-
};
|
|
26954
|
-
return [item2];
|
|
26955
|
-
}, "read")
|
|
26956
|
-
};
|
|
26957
|
-
|
|
26958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
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
|
|
26959
26990
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
26960
26991
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
26961
26992
|
signal: "payments",
|
|
@@ -27005,7 +27036,7 @@ var payments = {
|
|
|
27005
27036
|
}, "read")
|
|
27006
27037
|
};
|
|
27007
27038
|
|
|
27008
|
-
// 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
|
|
27009
27040
|
var PATTERNS_PER_CHAT = 3;
|
|
27010
27041
|
var DAY3 = 864e5;
|
|
27011
27042
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -27094,7 +27125,7 @@ var promises = {
|
|
|
27094
27125
|
}, "read")
|
|
27095
27126
|
};
|
|
27096
27127
|
|
|
27097
|
-
// 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
|
|
27098
27129
|
var PER_SIDE = 5;
|
|
27099
27130
|
var WEEK = 7 * 864e5;
|
|
27100
27131
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -27125,7 +27156,7 @@ var questions2 = {
|
|
|
27125
27156
|
}, "attention")
|
|
27126
27157
|
};
|
|
27127
27158
|
|
|
27128
|
-
// 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
|
|
27129
27160
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
27130
27161
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one2) => one2.id === id2), "byId");
|
|
27131
27162
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -27193,7 +27224,7 @@ var replyNext = {
|
|
|
27193
27224
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
27194
27225
|
};
|
|
27195
27226
|
|
|
27196
|
-
// 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
|
|
27197
27228
|
var escaped2 = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
27198
27229
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped2(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
27199
27230
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -27239,9 +27270,8 @@ var topics = {
|
|
|
27239
27270
|
}, "read")
|
|
27240
27271
|
};
|
|
27241
27272
|
|
|
27242
|
-
// 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
|
|
27243
27274
|
var STATUS_SIGNALS = [
|
|
27244
|
-
lastMessage,
|
|
27245
27275
|
replyNext,
|
|
27246
27276
|
questions2,
|
|
27247
27277
|
promises,
|
|
@@ -27252,7 +27282,7 @@ var STATUS_SIGNALS = [
|
|
|
27252
27282
|
children
|
|
27253
27283
|
];
|
|
27254
27284
|
|
|
27255
|
-
// 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
|
|
27256
27286
|
var DAY4 = 864e5;
|
|
27257
27287
|
var STATUS_WINDOW = 300;
|
|
27258
27288
|
var STATUS_CHATS = 16;
|
|
@@ -27434,7 +27464,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
27434
27464
|
};
|
|
27435
27465
|
}, "projectStatus");
|
|
27436
27466
|
|
|
27437
|
-
// 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
|
|
27438
27468
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
27439
27469
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
27440
27470
|
if (deps.offline)
|
|
@@ -27506,7 +27536,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
27506
27536
|
};
|
|
27507
27537
|
}, "accountService");
|
|
27508
27538
|
|
|
27509
|
-
// 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
|
|
27510
27540
|
var MINUTE = 6e4;
|
|
27511
27541
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
27512
27542
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -27525,7 +27555,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
27525
27555
|
return new Date(at - at % MINUTE).toISOString();
|
|
27526
27556
|
}, "sendTime");
|
|
27527
27557
|
|
|
27528
|
-
// 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
|
|
27529
27559
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write2) => {
|
|
27530
27560
|
try {
|
|
27531
27561
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -27772,7 +27802,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
27772
27802
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
27773
27803
|
}, "linkLimits");
|
|
27774
27804
|
|
|
27775
|
-
// 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
|
|
27776
27806
|
var THREADS_PAGE = 500;
|
|
27777
27807
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
27778
27808
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -27851,7 +27881,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
27851
27881
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
27852
27882
|
}, "readMail");
|
|
27853
27883
|
|
|
27854
|
-
// 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
|
|
27855
27885
|
var NO_MAIL = "no_mail";
|
|
27856
27886
|
var MAIL = "email";
|
|
27857
27887
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -27898,7 +27928,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
27898
27928
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
27899
27929
|
}, "accountsOfKind");
|
|
27900
27930
|
|
|
27901
|
-
// 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
|
|
27902
27932
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
27903
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");
|
|
27904
27934
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -28246,7 +28276,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
28246
28276
|
};
|
|
28247
28277
|
}, "statsLucene");
|
|
28248
28278
|
|
|
28249
|
-
// 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
|
|
28250
28280
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
28251
28281
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
28252
28282
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -28415,7 +28445,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
28415
28445
|
};
|
|
28416
28446
|
}, "readRankingSelection");
|
|
28417
28447
|
|
|
28418
|
-
// 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
|
|
28419
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");
|
|
28420
28450
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
28421
28451
|
command,
|
|
@@ -28425,7 +28455,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
28425
28455
|
fieldsVersion: FIELD_VERSION
|
|
28426
28456
|
}), "searchRecordOf");
|
|
28427
28457
|
|
|
28428
|
-
// 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
|
|
28429
28459
|
function invalid2(message) {
|
|
28430
28460
|
throw new CliError("validation_error", message);
|
|
28431
28461
|
}
|
|
@@ -28719,7 +28749,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
28719
28749
|
}, "evidence")
|
|
28720
28750
|
}), "adminStatisticsService");
|
|
28721
28751
|
|
|
28722
|
-
// 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
|
|
28723
28753
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
28724
28754
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
28725
28755
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -28856,16 +28886,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
28856
28886
|
return { plan, repair };
|
|
28857
28887
|
}, "gapsService");
|
|
28858
28888
|
|
|
28859
|
-
// 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
|
|
28860
28890
|
import { createHash as createHash9 } from "node:crypto";
|
|
28861
28891
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
28862
28892
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
28863
28893
|
|
|
28864
|
-
// 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
|
|
28865
28895
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
28866
28896
|
import { basename as basename4, join as join8, relative as relative2, sep as sep2 } from "node:path";
|
|
28867
28897
|
|
|
28868
|
-
// 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
|
|
28869
28899
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
28870
28900
|
import { open as open4, stat } from "node:fs/promises";
|
|
28871
28901
|
import { basename as basename3, dirname as dirname3, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -29067,7 +29097,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read2) => {
|
|
|
29067
29097
|
return { name, source };
|
|
29068
29098
|
}, "readStickerFile");
|
|
29069
29099
|
|
|
29070
|
-
// 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
|
|
29071
29101
|
var MAX_FILES = 1e4;
|
|
29072
29102
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app, env) => {
|
|
29073
29103
|
if (refusedPlace(directory2, app, env))
|
|
@@ -29136,15 +29166,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
29136
29166
|
return choices;
|
|
29137
29167
|
}, "directoryPaths");
|
|
29138
29168
|
|
|
29139
|
-
// 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
|
|
29140
29170
|
import { posix } from "node:path";
|
|
29141
29171
|
|
|
29142
|
-
// 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
|
|
29143
29173
|
import { setImmediate as tick } from "node:timers/promises";
|
|
29144
29174
|
import { crc32 } from "node:zlib";
|
|
29145
29175
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
29146
29176
|
|
|
29147
|
-
// 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
|
|
29148
29178
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
29149
29179
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
29150
29180
|
var SAMPLE = 65536;
|
|
@@ -29246,7 +29276,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
29246
29276
|
return result.text;
|
|
29247
29277
|
}, "decodeXml");
|
|
29248
29278
|
|
|
29249
|
-
// 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
|
|
29250
29280
|
var MAX_PART = 10 * 1024 * 1024;
|
|
29251
29281
|
var MAX_ENTRIES = 1e3;
|
|
29252
29282
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -29461,7 +29491,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
29461
29491
|
return found;
|
|
29462
29492
|
}, "elements");
|
|
29463
29493
|
|
|
29464
|
-
// 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
|
|
29465
29495
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
29466
29496
|
let name = "";
|
|
29467
29497
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -29516,7 +29546,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
29516
29546
|
return { text: parts.join("").trim(), truncated: false };
|
|
29517
29547
|
}, "sheetText");
|
|
29518
29548
|
|
|
29519
|
-
// 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
|
|
29520
29550
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
29521
29551
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
29522
29552
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -29916,10 +29946,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
29916
29946
|
}
|
|
29917
29947
|
}, "readDocument");
|
|
29918
29948
|
|
|
29919
|
-
// 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
|
|
29920
29950
|
import { extname as extname3 } from "node:path";
|
|
29921
29951
|
|
|
29922
|
-
// 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
|
|
29923
29953
|
import { readFileSync } from "node:fs";
|
|
29924
29954
|
import { dirname as dirname4, extname as extname2, join as join9 } from "node:path";
|
|
29925
29955
|
import { fileURLToPath } from "node:url";
|
|
@@ -29980,7 +30010,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
29980
30010
|
}
|
|
29981
30011
|
}, "derived");
|
|
29982
30012
|
|
|
29983
|
-
// 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
|
|
29984
30014
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
29985
30015
|
var image2 = {
|
|
29986
30016
|
id: "image",
|
|
@@ -29989,7 +30019,7 @@ var image2 = {
|
|
|
29989
30019
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
29990
30020
|
};
|
|
29991
30021
|
|
|
29992
|
-
// 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
|
|
29993
30023
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
29994
30024
|
var doc = {
|
|
29995
30025
|
id: "doc",
|
|
@@ -30001,7 +30031,7 @@ var doc = {
|
|
|
30001
30031
|
}), "read")
|
|
30002
30032
|
};
|
|
30003
30033
|
|
|
30004
|
-
// 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
|
|
30005
30035
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
30006
30036
|
var docx = {
|
|
30007
30037
|
id: "docx",
|
|
@@ -30014,7 +30044,7 @@ var docx = {
|
|
|
30014
30044
|
}), "read")
|
|
30015
30045
|
};
|
|
30016
30046
|
|
|
30017
|
-
// 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
|
|
30018
30048
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
30019
30049
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
30020
30050
|
"fonttbl",
|
|
@@ -30190,7 +30220,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
30190
30220
|
}, "htmlText");
|
|
30191
30221
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
30192
30222
|
|
|
30193
|
-
// 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
|
|
30194
30224
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
30195
30225
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
30196
30226
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -30246,7 +30276,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
30246
30276
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
30247
30277
|
}, "markdownSections");
|
|
30248
30278
|
|
|
30249
|
-
// 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
|
|
30250
30280
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
30251
30281
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
30252
30282
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -30317,7 +30347,7 @@ var html = {
|
|
|
30317
30347
|
}, "read")
|
|
30318
30348
|
};
|
|
30319
30349
|
|
|
30320
|
-
// 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
|
|
30321
30351
|
var office = {
|
|
30322
30352
|
id: "office",
|
|
30323
30353
|
version: documentExtractor("odt"),
|
|
@@ -30328,7 +30358,7 @@ var office = {
|
|
|
30328
30358
|
}, "read")
|
|
30329
30359
|
};
|
|
30330
30360
|
|
|
30331
|
-
// 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
|
|
30332
30362
|
var pdf = {
|
|
30333
30363
|
id: "pdf",
|
|
30334
30364
|
version: "unpdf",
|
|
@@ -30395,7 +30425,7 @@ var pdf = {
|
|
|
30395
30425
|
}), "read")
|
|
30396
30426
|
};
|
|
30397
30427
|
|
|
30398
|
-
// 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
|
|
30399
30429
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
30400
30430
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
30401
30431
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -30415,7 +30445,7 @@ var plain = {
|
|
|
30415
30445
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
30416
30446
|
};
|
|
30417
30447
|
|
|
30418
|
-
// 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
|
|
30419
30449
|
var rtf = {
|
|
30420
30450
|
id: "rtf",
|
|
30421
30451
|
version: "v1",
|
|
@@ -30423,10 +30453,10 @@ var rtf = {
|
|
|
30423
30453
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
30424
30454
|
};
|
|
30425
30455
|
|
|
30426
|
-
// 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
|
|
30427
30457
|
import { basename as basename5 } from "node:path";
|
|
30428
30458
|
|
|
30429
|
-
// 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
|
|
30430
30460
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
30431
30461
|
const cells = [];
|
|
30432
30462
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -30464,7 +30494,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
30464
30494
|
return { cells, truncated };
|
|
30465
30495
|
}, "delimitedSpans");
|
|
30466
30496
|
|
|
30467
|
-
// 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
|
|
30468
30498
|
var DELIMITED = {
|
|
30469
30499
|
".csv": ",",
|
|
30470
30500
|
".tsv": " ",
|
|
@@ -30503,7 +30533,7 @@ var sheets = {
|
|
|
30503
30533
|
}, "read")
|
|
30504
30534
|
};
|
|
30505
30535
|
|
|
30506
|
-
// 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
|
|
30507
30537
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
30508
30538
|
var HEAD_BYTES = 1024;
|
|
30509
30539
|
var readers = [...BUILT_INS2];
|
|
@@ -30513,7 +30543,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
30513
30543
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
30514
30544
|
}, "readWithRegistry");
|
|
30515
30545
|
|
|
30516
|
-
// 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
|
|
30517
30547
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
30518
30548
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
30519
30549
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -31592,7 +31622,7 @@ function imageSize(input) {
|
|
|
31592
31622
|
}
|
|
31593
31623
|
__name(imageSize, "imageSize");
|
|
31594
31624
|
|
|
31595
|
-
// 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
|
|
31596
31626
|
var MAX_PAGES = 20;
|
|
31597
31627
|
var MAX_PIXELS = 2e7;
|
|
31598
31628
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -31743,7 +31773,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
31743
31773
|
}
|
|
31744
31774
|
}, "ocrPdf");
|
|
31745
31775
|
|
|
31746
|
-
// 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
|
|
31747
31777
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
31748
31778
|
const limits = pdfPreviewLimits(env);
|
|
31749
31779
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -31820,7 +31850,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
31820
31850
|
}
|
|
31821
31851
|
}, "pdfPreview");
|
|
31822
31852
|
|
|
31823
|
-
// 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
|
|
31824
31854
|
import { createHash as createHash8 } from "node:crypto";
|
|
31825
31855
|
import { constants } from "node:fs";
|
|
31826
31856
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -31928,7 +31958,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
31928
31958
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
31929
31959
|
}, "transferMime");
|
|
31930
31960
|
|
|
31931
|
-
// 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
|
|
31932
31962
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
31933
31963
|
import { link as link3, rm } from "node:fs/promises";
|
|
31934
31964
|
import { join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -32042,7 +32072,7 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
32042
32072
|
}
|
|
32043
32073
|
}, "save");
|
|
32044
32074
|
|
|
32045
|
-
// 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
|
|
32046
32076
|
var ATTACHMENT_QUERY = {
|
|
32047
32077
|
entity: "attachment",
|
|
32048
32078
|
backend: "sql",
|
|
@@ -32465,7 +32495,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32465
32495
|
}, "setText")
|
|
32466
32496
|
}), "attachmentsService");
|
|
32467
32497
|
|
|
32468
|
-
// 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
|
|
32469
32499
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
32470
32500
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
32471
32501
|
const store = await accountStore(deps);
|
|
@@ -32495,7 +32525,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32495
32525
|
}, "list")
|
|
32496
32526
|
}), "chatDocumentsService");
|
|
32497
32527
|
|
|
32498
|
-
// 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
|
|
32499
32529
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
32500
32530
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
32501
32531
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -32582,7 +32612,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
32582
32612
|
}
|
|
32583
32613
|
}, "isRetentionSelection");
|
|
32584
32614
|
|
|
32585
|
-
// 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
|
|
32586
32616
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
32587
32617
|
const fields = text2.split(",").map((one2) => one2.trim());
|
|
32588
32618
|
if (!fields.length || fields.some((one2) => !COUNTER_FIELDS.includes(one2)) || new Set(fields).size !== fields.length)
|
|
@@ -32789,7 +32819,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
32789
32819
|
};
|
|
32790
32820
|
}, "countersService");
|
|
32791
32821
|
|
|
32792
|
-
// 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
|
|
32793
32823
|
var SYNC_KEY = "messages.sync-first";
|
|
32794
32824
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
32795
32825
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -32921,7 +32951,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
32921
32951
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
32922
32952
|
}), "withRefresh");
|
|
32923
32953
|
|
|
32924
|
-
// 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
|
|
32925
32955
|
var CANDIDATES = 50;
|
|
32926
32956
|
var WORD_HITS = 200;
|
|
32927
32957
|
var RRF_K = 60;
|
|
@@ -33196,13 +33226,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
33196
33226
|
return mean2.map((value) => value / length);
|
|
33197
33227
|
}, "meanOf");
|
|
33198
33228
|
|
|
33199
|
-
// 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
|
|
33200
33230
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
33201
33231
|
...embeddingsMaintenance(deps),
|
|
33202
33232
|
...embeddingsSearch(deps)
|
|
33203
33233
|
}), "embeddingsService");
|
|
33204
33234
|
|
|
33205
|
-
// 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
|
|
33206
33236
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
33207
33237
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
33208
33238
|
if (deps.offline)
|
|
@@ -33343,7 +33373,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
33343
33373
|
};
|
|
33344
33374
|
}, "foldersService");
|
|
33345
33375
|
|
|
33346
|
-
// 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
|
|
33347
33377
|
var REVIEW_COUNT = 500;
|
|
33348
33378
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
33349
33379
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -33422,7 +33452,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
33422
33452
|
};
|
|
33423
33453
|
}, "mentionsService");
|
|
33424
33454
|
|
|
33425
|
-
// 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
|
|
33426
33456
|
var invalid3 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
33427
33457
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
33428
33458
|
const { text: text2, spans } = formatted2;
|
|
@@ -33482,7 +33512,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
33482
33512
|
};
|
|
33483
33513
|
}, "visibleFormattedText");
|
|
33484
33514
|
|
|
33485
|
-
// 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
|
|
33486
33516
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
33487
33517
|
position,
|
|
33488
33518
|
kind,
|
|
@@ -33531,7 +33561,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
33531
33561
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
33532
33562
|
}, "validatePermalink");
|
|
33533
33563
|
|
|
33534
|
-
// 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
|
|
33535
33565
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
33536
33566
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
33537
33567
|
return `${seconds / 86400}d`;
|
|
@@ -33563,7 +33593,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
33563
33593
|
return seconds;
|
|
33564
33594
|
}, "pinDurationOf");
|
|
33565
33595
|
|
|
33566
|
-
// 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
|
|
33567
33597
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
33568
33598
|
if (sendAs === void 0) {
|
|
33569
33599
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -33588,7 +33618,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
33588
33618
|
return sendAs;
|
|
33589
33619
|
}, "typedSendAs");
|
|
33590
33620
|
|
|
33591
|
-
// 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
|
|
33592
33622
|
var TOTAL_CAP = 1e4;
|
|
33593
33623
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
33594
33624
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -33599,7 +33629,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
33599
33629
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
33600
33630
|
}, "totalOf");
|
|
33601
33631
|
|
|
33602
|
-
// 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
|
|
33603
33633
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
33604
33634
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
33605
33635
|
let narrows = false;
|
|
@@ -33628,7 +33658,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
33628
33658
|
return wanted(root).join(" ").trim();
|
|
33629
33659
|
}, "meaningWords");
|
|
33630
33660
|
|
|
33631
|
-
// 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
|
|
33632
33662
|
var words3 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
33633
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"));
|
|
33634
33664
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -33760,7 +33790,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
33760
33790
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
33761
33791
|
}, "questionLookup");
|
|
33762
33792
|
|
|
33763
|
-
// 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
|
|
33764
33794
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
33765
33795
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
33766
33796
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -33953,7 +33983,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
33953
33983
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage2 * 4 + proximity + phrase;
|
|
33954
33984
|
}, "signals");
|
|
33955
33985
|
|
|
33956
|
-
// 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
|
|
33957
33987
|
var MEANING_DEPTH = 100;
|
|
33958
33988
|
var RRF_K2 = 60;
|
|
33959
33989
|
var RERANK_DEPTH = 50;
|
|
@@ -34278,7 +34308,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
34278
34308
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
34279
34309
|
}, "mixedWithReranker");
|
|
34280
34310
|
|
|
34281
|
-
// 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
|
|
34282
34312
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
34283
34313
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
34284
34314
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -34477,7 +34507,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
34477
34507
|
return result;
|
|
34478
34508
|
}, "readThreadContext");
|
|
34479
34509
|
|
|
34480
|
-
// 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
|
|
34481
34511
|
var SEARCH_FILL_MS = 200;
|
|
34482
34512
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
34483
34513
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -34544,12 +34574,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
34544
34574
|
}, "accountOf");
|
|
34545
34575
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
34546
34576
|
|
|
34547
|
-
// 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
|
|
34548
34578
|
import { createHash as createHash10 } from "node:crypto";
|
|
34549
34579
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
34550
34580
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
34551
34581
|
|
|
34552
|
-
// 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
|
|
34553
34583
|
var GROUP_SETTINGS = [
|
|
34554
34584
|
"allCanPin",
|
|
34555
34585
|
"onlyAdminsAdd",
|
|
@@ -34563,7 +34593,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
34563
34593
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
34564
34594
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
34565
34595
|
|
|
34566
|
-
// 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
|
|
34567
34597
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
34568
34598
|
var PICTURE_FLOOR = 0.25;
|
|
34569
34599
|
var PAGE4 = 50;
|
|
@@ -34580,7 +34610,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
34580
34610
|
const directory2 = imageModelsDirectory(deps.env);
|
|
34581
34611
|
if (!isImageModelInstalled(model2, directory2))
|
|
34582
34612
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
34583
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34613
|
+
const { openPictureEmbedder } = await import("./embedder-65SA34CZ.js");
|
|
34584
34614
|
return openPictureEmbedder(model2, directory2);
|
|
34585
34615
|
}, "open");
|
|
34586
34616
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -34777,7 +34807,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
34777
34807
|
}, "search")
|
|
34778
34808
|
}), "withPictures");
|
|
34779
34809
|
|
|
34780
|
-
// 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
|
|
34781
34811
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
|
|
34782
34812
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
34783
34813
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -34845,7 +34875,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
34845
34875
|
}
|
|
34846
34876
|
}, "meaningLane");
|
|
34847
34877
|
|
|
34848
|
-
// 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
|
|
34849
34879
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
34850
34880
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
34851
34881
|
if (choice === "off")
|
|
@@ -34857,9 +34887,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34857
34887
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
34858
34888
|
try {
|
|
34859
34889
|
const warm = deps.embedders;
|
|
34860
|
-
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, {
|
|
34861
34891
|
threads: defaultThreads()
|
|
34862
|
-
})) : await (await import("./rerank-
|
|
34892
|
+
})) : await (await import("./rerank-GBKN7RN4.js")).openReranker(model, directory2);
|
|
34863
34893
|
return {
|
|
34864
34894
|
model: model.id,
|
|
34865
34895
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -34879,17 +34909,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34879
34909
|
};
|
|
34880
34910
|
}, "rerankLane");
|
|
34881
34911
|
|
|
34882
|
-
// 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
|
|
34883
34913
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
34884
34914
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
34885
34915
|
const directory2 = imageModelsDirectory(env);
|
|
34886
34916
|
if (!isImageModelInstalled(model, directory2))
|
|
34887
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 });
|
|
34888
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34918
|
+
const { openPictureEmbedder } = await import("./embedder-65SA34CZ.js");
|
|
34889
34919
|
return openPictureEmbedder(model, directory2);
|
|
34890
34920
|
}, "openPictureEmbedderFor");
|
|
34891
34921
|
|
|
34892
|
-
// 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
|
|
34893
34923
|
var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) => {
|
|
34894
34924
|
const metadata = note2.frontMatter;
|
|
34895
34925
|
const account = accounts.find(({ id: id2 }) => String(id2) === note2.folderId);
|
|
@@ -34904,7 +34934,7 @@ var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) =
|
|
|
34904
34934
|
};
|
|
34905
34935
|
}, "documentSource");
|
|
34906
34936
|
|
|
34907
|
-
// 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
|
|
34908
34938
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
34909
34939
|
let root;
|
|
34910
34940
|
try {
|
|
@@ -34931,7 +34961,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words4) => {
|
|
|
34931
34961
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
34932
34962
|
}, "titleTiers");
|
|
34933
34963
|
|
|
34934
|
-
// 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
|
|
34935
34965
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
34936
34966
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
34937
34967
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -35374,7 +35404,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
35374
35404
|
};
|
|
35375
35405
|
}, "searchNotesOf");
|
|
35376
35406
|
|
|
35377
|
-
// 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
|
|
35378
35408
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
35379
35409
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
35380
35410
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -35491,7 +35521,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
35491
35521
|
};
|
|
35492
35522
|
}, "searchEvents");
|
|
35493
35523
|
|
|
35494
|
-
// 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
|
|
35495
35525
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events"];
|
|
35496
35526
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
35497
35527
|
var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
@@ -35720,7 +35750,7 @@ var oneList = /* @__PURE__ */ __name((lists, cosines) => {
|
|
|
35720
35750
|
return [...place.values()].sort((a, b) => a.rank - b.rank || cosine(b.item.ref) - cosine(a.item.ref)).map(({ item: item2 }) => item2);
|
|
35721
35751
|
}, "oneList");
|
|
35722
35752
|
|
|
35723
|
-
// 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
|
|
35724
35754
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
35725
35755
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
35726
35756
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -35973,7 +36003,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
35973
36003
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
35974
36004
|
}, "searchAllOfSource");
|
|
35975
36005
|
|
|
35976
|
-
// 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
|
|
35977
36007
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
35978
36008
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
35979
36009
|
var DEFAULT_BACKEND = "both";
|
|
@@ -36162,7 +36192,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
36162
36192
|
return { report, sources };
|
|
36163
36193
|
}, "searchServer");
|
|
36164
36194
|
|
|
36165
|
-
// 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
|
|
36166
36196
|
var DELETE_AT_ONCE = 10;
|
|
36167
36197
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
36168
36198
|
const files = fileLinks(attachments);
|
|
@@ -36603,7 +36633,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
36603
36633
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
36604
36634
|
}, "checkMediaOptions");
|
|
36605
36635
|
|
|
36606
|
-
// 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
|
|
36607
36637
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
36608
36638
|
var RULES = {
|
|
36609
36639
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -36618,7 +36648,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
36618
36648
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
36619
36649
|
}), "classifyChannel");
|
|
36620
36650
|
|
|
36621
|
-
// 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
|
|
36622
36652
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
36623
36653
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
36624
36654
|
const store = await deps.store();
|
|
@@ -36704,7 +36734,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
36704
36734
|
};
|
|
36705
36735
|
}, "metadataService");
|
|
36706
36736
|
|
|
36707
|
-
// 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
|
|
36708
36738
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
36709
36739
|
var LINK2 = /https?:\/\/\S+/i;
|
|
36710
36740
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -36892,7 +36922,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
36892
36922
|
}, "nextPoint");
|
|
36893
36923
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
36894
36924
|
|
|
36895
|
-
// 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
|
|
36896
36926
|
import { existsSync, readFileSync as readFileSync2 } from "node:fs";
|
|
36897
36927
|
import { join as join11 } from "node:path";
|
|
36898
36928
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -37035,7 +37065,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
37035
37065
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
37036
37066
|
}, "assign");
|
|
37037
37067
|
|
|
37038
|
-
// 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
|
|
37039
37069
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
37040
37070
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
37041
37071
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -37072,7 +37102,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
37072
37102
|
return { chatId, rows, notes };
|
|
37073
37103
|
}, "moderateWith");
|
|
37074
37104
|
|
|
37075
|
-
// 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
|
|
37076
37106
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
37077
37107
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
37078
37108
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -37150,7 +37180,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
37150
37180
|
}, "removePerson")
|
|
37151
37181
|
}), "moderatorOf");
|
|
37152
37182
|
|
|
37153
|
-
// 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
|
|
37154
37184
|
var noteItem = /* @__PURE__ */ __name((provider, note2) => ({
|
|
37155
37185
|
id: note2.id,
|
|
37156
37186
|
contact: formatReference({ type: "contact", provider, id: note2.personId }),
|
|
@@ -37194,7 +37224,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
37194
37224
|
};
|
|
37195
37225
|
}, "privatePeopleService");
|
|
37196
37226
|
|
|
37197
|
-
// 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
|
|
37198
37228
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
37199
37229
|
total: 0,
|
|
37200
37230
|
population: 0,
|
|
@@ -37450,7 +37480,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
37450
37480
|
}, "evidence")
|
|
37451
37481
|
}), "rankingsService");
|
|
37452
37482
|
|
|
37453
|
-
// 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
|
|
37454
37484
|
var FIELDS = ["date", "chat", "kind"];
|
|
37455
37485
|
var WAITING_TAIL = 100;
|
|
37456
37486
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -37577,7 +37607,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37577
37607
|
};
|
|
37578
37608
|
}, "replyStatsService");
|
|
37579
37609
|
|
|
37580
|
-
// 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
|
|
37581
37611
|
var savedSearchItem = /* @__PURE__ */ __name((one2) => ({
|
|
37582
37612
|
id: one2.id,
|
|
37583
37613
|
name: one2.name,
|
|
@@ -37706,7 +37736,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
37706
37736
|
};
|
|
37707
37737
|
}, "searchesService");
|
|
37708
37738
|
|
|
37709
|
-
// 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
|
|
37710
37740
|
var TAGGING_QUERY = {
|
|
37711
37741
|
entity: "tagging",
|
|
37712
37742
|
backend: "sql",
|
|
@@ -37790,7 +37820,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37790
37820
|
};
|
|
37791
37821
|
}, "tagsService");
|
|
37792
37822
|
|
|
37793
|
-
// 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
|
|
37794
37824
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
37795
37825
|
const set = [closed, pinned, hidden].filter((one2) => one2 !== void 0).length;
|
|
37796
37826
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -37989,7 +38019,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37989
38019
|
};
|
|
37990
38020
|
}, "topicsService");
|
|
37991
38021
|
|
|
37992
|
-
// 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
|
|
37993
38023
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
37994
38024
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
37995
38025
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -38063,7 +38093,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
38063
38093
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
38064
38094
|
}, "prepareEvidencePacket");
|
|
38065
38095
|
|
|
38066
|
-
// 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
|
|
38067
38097
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
38068
38098
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
38069
38099
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -38083,7 +38113,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
38083
38113
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
38084
38114
|
}, "readEvidencePacket");
|
|
38085
38115
|
|
|
38086
|
-
// 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
|
|
38087
38117
|
var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
|
|
38088
38118
|
let before2 = Number.POSITIVE_INFINITY;
|
|
38089
38119
|
for (; ; ) {
|
|
@@ -38145,7 +38175,7 @@ var searchMeetingHits = /* @__PURE__ */ __name(async (store, query, request, opt
|
|
|
38145
38175
|
return { ...result, selection };
|
|
38146
38176
|
}, "searchMeetingHits");
|
|
38147
38177
|
|
|
38148
|
-
// 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
|
|
38149
38179
|
import { createHash as createHash12 } from "node:crypto";
|
|
38150
38180
|
var scopeKeys = [
|
|
38151
38181
|
"accountId",
|
|
@@ -38280,7 +38310,7 @@ var readMeetingProjectDiscovery = /* @__PURE__ */ __name(async (ports, projectNa
|
|
|
38280
38310
|
};
|
|
38281
38311
|
}, "readMeetingProjectDiscovery");
|
|
38282
38312
|
|
|
38283
|
-
// 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
|
|
38284
38314
|
import { createHash as createHash13 } from "node:crypto";
|
|
38285
38315
|
var contextCue = /* @__PURE__ */ __name((cue) => ({
|
|
38286
38316
|
ref: cue.reference,
|
|
@@ -38398,7 +38428,7 @@ var readMeetingHitContext = /* @__PURE__ */ __name(async (store, accountId, refe
|
|
|
38398
38428
|
return { ...packet, fingerprint: createHash13("sha256").update(JSON.stringify(packet)).digest("hex") };
|
|
38399
38429
|
}, "readMeetingHitContext");
|
|
38400
38430
|
|
|
38401
|
-
// 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
|
|
38402
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");
|
|
38403
38433
|
var markdown = /* @__PURE__ */ __name((text2) => visible(text2).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replace(/[\\`*_[\]#|~]/g, "\\$&"), "markdown");
|
|
38404
38434
|
var timestamp = /* @__PURE__ */ __name((ms) => {
|
|
@@ -38474,7 +38504,7 @@ var readMeetingPassage = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
38474
38504
|
return { packet, content };
|
|
38475
38505
|
}, "readMeetingPassage");
|
|
38476
38506
|
|
|
38477
|
-
// 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
|
|
38478
38508
|
var communicationFields = {
|
|
38479
38509
|
sources: pipe(array(strictObject({
|
|
38480
38510
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -38506,7 +38536,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
38506
38536
|
return { ...input, after, before: before2 };
|
|
38507
38537
|
}, "communicationRequest");
|
|
38508
38538
|
|
|
38509
|
-
// 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
|
|
38510
38540
|
var MEETING_PREPARATION_LIMITS = {
|
|
38511
38541
|
meetings: { min: 1, max: 20, default: 5 },
|
|
38512
38542
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -38592,7 +38622,7 @@ var preparationRequest = /* @__PURE__ */ __name((accountId, externalId, original
|
|
|
38592
38622
|
return { ...input, history };
|
|
38593
38623
|
}, "preparationRequest");
|
|
38594
38624
|
|
|
38595
|
-
// 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
|
|
38596
38626
|
var readPreparationCommunications = /* @__PURE__ */ __name(async (plan, signal) => {
|
|
38597
38627
|
const section = {
|
|
38598
38628
|
readUsage: plan.reader.usage(),
|
|
@@ -38697,7 +38727,7 @@ var appendPreparationCommunications = /* @__PURE__ */ __name((result, read2) =>
|
|
|
38697
38727
|
result.knowledge.coverage.otherSources = "see-communications";
|
|
38698
38728
|
}, "appendPreparationCommunications");
|
|
38699
38729
|
|
|
38700
|
-
// 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
|
|
38701
38731
|
var captureCommunicationSelections = /* @__PURE__ */ __name((port) => {
|
|
38702
38732
|
if (port === void 0)
|
|
38703
38733
|
return void 0;
|
|
@@ -38802,7 +38832,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
38802
38832
|
}
|
|
38803
38833
|
}, "validatePreparationCommunications");
|
|
38804
38834
|
|
|
38805
|
-
// 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
|
|
38806
38836
|
var invalid5 = /* @__PURE__ */ __name(() => {
|
|
38807
38837
|
throw new CliError("invalid_response", "Preparation knowledge returned an invalid selection");
|
|
38808
38838
|
}, "invalid");
|
|
@@ -38871,7 +38901,7 @@ var appendKnowledgePreparation = /* @__PURE__ */ __name(async (store, result, in
|
|
|
38871
38901
|
}
|
|
38872
38902
|
}, "appendKnowledgePreparation");
|
|
38873
38903
|
|
|
38874
|
-
// 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
|
|
38875
38905
|
var invalid6 = /* @__PURE__ */ __name(() => {
|
|
38876
38906
|
throw new CliError("invalid_response", "Preparation notes returned an invalid selection");
|
|
38877
38907
|
}, "invalid");
|
|
@@ -38945,7 +38975,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
38945
38975
|
}
|
|
38946
38976
|
}, "appendNotesPreparation");
|
|
38947
38977
|
|
|
38948
|
-
// 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
|
|
38949
38979
|
var PAGE_LIMIT = 4;
|
|
38950
38980
|
var size2 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
38951
38981
|
var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, input) => {
|
|
@@ -38995,7 +39025,7 @@ var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, inpu
|
|
|
38995
39025
|
}
|
|
38996
39026
|
}, "appendProjectPreparation");
|
|
38997
39027
|
|
|
38998
|
-
// 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
|
|
38999
39029
|
var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, input) => {
|
|
39000
39030
|
if (!result.series || !result.items.length || result.coverage.outputLimited)
|
|
39001
39031
|
return;
|
|
@@ -39067,7 +39097,7 @@ var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, inpu
|
|
|
39067
39097
|
}
|
|
39068
39098
|
}, "appendRelatedPreparation");
|
|
39069
39099
|
|
|
39070
|
-
// 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
|
|
39071
39101
|
var size3 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
39072
39102
|
var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
39073
39103
|
const fixed = snapshotMeetingScope(scope);
|
|
@@ -39205,7 +39235,7 @@ var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId,
|
|
|
39205
39235
|
};
|
|
39206
39236
|
}, "createMeetingPreparationService");
|
|
39207
39237
|
|
|
39208
|
-
// 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
|
|
39209
39239
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
39210
39240
|
const installer = ports.installer();
|
|
39211
39241
|
const argv = updateCommand(installer, packageName);
|
|
@@ -39270,7 +39300,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
39270
39300
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
39271
39301
|
}, "dayAfter");
|
|
39272
39302
|
|
|
39273
|
-
// 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
|
|
39274
39304
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
39275
39305
|
const pictures = picturesService(deps);
|
|
39276
39306
|
const base = {
|
|
@@ -39307,7 +39337,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
39307
39337
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
39308
39338
|
}, "servicesFor");
|
|
39309
39339
|
|
|
39310
|
-
// 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
|
|
39311
39341
|
import { createHash as createHash14 } from "node:crypto";
|
|
39312
39342
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync3, rmSync } from "node:fs";
|
|
39313
39343
|
import { createConnection, createServer } from "node:net";
|
|
@@ -39455,7 +39485,7 @@ var serve = /* @__PURE__ */ __name(async (socket, request, stdin, signal, run) =
|
|
|
39455
39485
|
}
|
|
39456
39486
|
}, "serve");
|
|
39457
39487
|
|
|
39458
|
-
// 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
|
|
39459
39489
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
39460
39490
|
close: /* @__PURE__ */ __name(async () => {
|
|
39461
39491
|
}, "close"),
|
|
@@ -39712,6 +39742,7 @@ export {
|
|
|
39712
39742
|
upgradePackage,
|
|
39713
39743
|
approveAsTask,
|
|
39714
39744
|
parseProposalIds,
|
|
39745
|
+
proposeOrganization,
|
|
39715
39746
|
proposalRegistry,
|
|
39716
39747
|
servicesFor,
|
|
39717
39748
|
lackedNeed,
|