@wirecat/cli-template 0.15.0 → 0.17.0
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/.github/workflows/ci.yml +35 -0
- package/.github/workflows/release-pr.yml +37 -0
- package/AGENTS.md +56 -2
- package/CHANGELOG.md +50 -0
- package/README.md +12 -4
- package/bin/release +10 -3
- package/biome.json +8 -2
- package/contracts/mcp-tools.json +2 -2
- package/contracts/plan.json +2 -1
- package/dist/bin/clidev.js +2 -2
- package/dist/bundle/{chunk-LU4A2T7Y.js → all-profiles-CCT2XPJL.js} +10 -7
- package/dist/bundle/{anthropic-ICTW7CNQ.js → anthropic-QLLP7EE4.js} +4 -4
- package/dist/bundle/{app-server-OW5LT5XV.js → app-server-ELI5TGL7.js} +36 -37
- package/dist/bundle/{bun-ILPS6AYA.js → bun-C7JS2V7G.js} +2 -2
- package/dist/bundle/{bun-sqlite-JE6FJFQT.js → bun-sqlite-OM72TCYT.js} +3 -3
- package/dist/bundle/{chunk-7F5VMLVK.js → chunk-2Y5NBD7U.js} +4 -4
- package/dist/bundle/chunk-33JGD2CR.js +141 -0
- package/dist/bundle/{chunk-F34HGYWF.js → chunk-3VVIEZRY.js} +2 -2
- package/dist/bundle/{chunk-CGFQT3LQ.js → chunk-6PHTRAZA.js} +1 -1
- package/dist/bundle/{chunk-VS5LGSTM.js → chunk-6VCFDEHT.js} +1 -1
- package/dist/bundle/{chunk-NENYWEXF.js → chunk-7OQF5ZMN.js} +1 -1
- package/dist/bundle/{chunk-62JRF2JA.js → chunk-AKUMR7PE.js} +2 -2
- package/dist/bundle/{chunk-7UPBPE3Z.js → chunk-ASO23RNM.js} +152 -79
- package/dist/bundle/{chunk-VOTEB3AN.js → chunk-AUVPTFUS.js} +1 -1
- package/dist/bundle/{chunk-KLFYY7KC.js → chunk-BOCIYBBO.js} +53 -44
- package/dist/bundle/{chunk-TJJ2XSJP.js → chunk-BXZRTMXA.js} +5 -5
- package/dist/bundle/{chunk-66VMJGV6.js → chunk-DVLM23HB.js} +2 -2
- package/dist/bundle/{chunk-YIVY2WI3.js → chunk-E4KQOKQ5.js} +1 -1
- package/dist/bundle/{chunk-GHF72SHT.js → chunk-EQDVQN4E.js} +306 -258
- package/dist/bundle/{chunk-NH6LZ3H3.js → chunk-FF3AGTHY.js} +6 -6
- package/dist/bundle/{chunk-NG7MOJBT.js → chunk-GG5PXNMH.js} +61 -21
- package/dist/bundle/{chunk-LFLSV353.js → chunk-GUCMIUNB.js} +2 -2
- package/dist/bundle/{chunk-R5RYPD23.js → chunk-HVAEHUSZ.js} +2 -2
- package/dist/bundle/{chunk-PIJUGF5F.js → chunk-ITPFCKCL.js} +13 -13
- package/dist/bundle/{chunk-DQIBGCF3.js → chunk-J2RUBXCI.js} +6 -6
- package/dist/bundle/{chunk-7Z4HR6GO.js → chunk-KRXN3FV3.js} +1 -1
- package/dist/bundle/{chunk-45244QQ6.js → chunk-LFLN6PVS.js} +4 -4
- package/dist/bundle/{chunk-MWUHBEDN.js → chunk-LN53L2V5.js} +11 -11
- package/dist/bundle/{chunk-IOJ2DTCY.js → chunk-MLSN3UP4.js} +28 -26
- package/dist/bundle/{chunk-3MDNAYQA.js → chunk-O6PBO4BU.js} +1 -1
- package/dist/bundle/{chunk-YOJLIVGO.js → chunk-QJS4WWYK.js} +63 -63
- package/dist/bundle/{chunk-NVNUUHT5.js → chunk-QLBS6OC2.js} +2362 -1225
- package/dist/bundle/{chunk-2DAXUNTS.js → chunk-QVPTZDRA.js} +2 -2
- package/dist/bundle/{chunk-4MU2UM4C.js → chunk-R5CPFSPI.js} +7 -7
- package/dist/bundle/{chunk-AS2PJNQ2.js → chunk-R5IY4O25.js} +4 -4
- package/dist/bundle/{chunk-DZLHY4IA.js → chunk-RGKXMVOZ.js} +3 -3
- package/dist/bundle/{chunk-G45R7M42.js → chunk-RT46AWIH.js} +1 -1
- package/dist/bundle/{chunk-NRZV7K4M.js → chunk-RUHNHEAF.js} +3 -3
- package/dist/bundle/{chunk-VXOR76ZL.js → chunk-S465TCR3.js} +8 -8
- package/dist/bundle/{chunk-NVGOHYTE.js → chunk-SQKP6V4S.js} +27 -13
- package/dist/bundle/{chunk-FC53WQHG.js → chunk-SQOXYNKF.js} +1 -1
- package/dist/bundle/{chunk-R2JKPHH5.js → chunk-URPKIONS.js} +8 -8
- package/dist/bundle/{chunk-VVGPAHUN.js → chunk-UW4PJZVJ.js} +298 -170
- package/dist/bundle/{chunk-EX2FV7YJ.js → chunk-WKUJCPSP.js} +89 -45
- package/dist/bundle/{chunk-LATYBJ4T.js → chunk-WQBBSVZM.js} +2 -2
- package/dist/bundle/{chunk-G7W53MQP.js → chunk-WRLOK7XC.js} +3 -3
- package/dist/bundle/{chunk-SOYOOU2D.js → chunk-X44ZT64I.js} +3 -3
- package/dist/bundle/{chunk-U6QD3J3F.js → chunk-XKL5FRH3.js} +3 -3
- package/dist/bundle/{chunk-6AW4DDK4.js → chunk-XS56LIQ7.js} +4 -4
- package/dist/bundle/{chunk-3WDYHOAF.js → chunk-YIH3PYWJ.js} +1 -1
- package/dist/bundle/{chunk-5GTMQTQH.js → chunk-ZRNBKTPP.js} +27 -29
- package/dist/bundle/clidev.js +3 -3
- package/dist/bundle/{command-contract-3MPKXBVL.js → command-contract-RV5ZOEAT.js} +11 -11
- package/dist/bundle/{decode-NXB5UKMO.js → decode-V7HNHZBC.js} +3 -3
- package/dist/bundle/{echarts-DRDGGHJT.js → echarts-Y42YP2OL.js} +2 -2
- package/dist/bundle/{embed-IKZ24BMC.js → embed-JSQZL7JF.js} +4 -4
- package/dist/bundle/{embedder-GMQ24DOQ.js → embedder-7BHRCXWL.js} +7 -7
- package/dist/bundle/{first-run-PURIGDLD.js → first-run-BJ36KGST.js} +8 -8
- package/dist/bundle/first-screen-5YHQVNY4.js +26 -0
- package/dist/bundle/{instructions-EOQOXY6V.js → instructions-UWERND54.js} +1 -1
- package/dist/bundle/{mcp-7HBLFGCW.js → mcp-P4FSBSRS.js} +2 -2
- package/dist/bundle/{node-52WF2326.js → node-PZDNPKN7.js} +2 -2
- package/dist/bundle/{node-sqlite-73Z4SFOA.js → node-sqlite-4F5NLRNT.js} +4 -4
- package/dist/bundle/{oauth-EVTPAMZP.js → oauth-VDXNA3DK.js} +5 -5
- package/dist/bundle/{open-46WZAPJ3.js → open-EUJRQQNS.js} +3 -3
- package/dist/bundle/{openai-GWRDAHDU.js → openai-EIBV2K72.js} +14 -35
- package/dist/bundle/{process-YIQPKLZI.js → process-XD5ZIFIL.js} +1 -1
- package/dist/bundle/{program-37NVH5YJ.js → program-TJTVMIOX.js} +3067 -736
- package/dist/bundle/{prompt-IVEYRLS5.js → prompt-LYUZNHDK.js} +3 -3
- package/dist/bundle/{recognize-WVEKHODM.js → recognize-LQMHLOD5.js} +2 -2
- package/dist/bundle/{remote-4K5VPMC7.js → remote-34HUWSZI.js} +5 -5
- package/dist/bundle/{rerank-V24UJZYJ.js → rerank-ONBASQ5Z.js} +5 -5
- package/dist/bundle/{chunk-EMHCXXNJ.js → serve-UJ7FDYAM.js} +8 -6
- package/dist/bundle/{chunk-KJ3UADR3.js → server-GNT76BXM.js} +29 -9
- package/dist/bundle/server-J4YIXKMI.js +52 -0
- package/dist/bundle/{state-ZPYGECVP.js → state-IW5OO6IZ.js} +4 -4
- package/dist/bundle/{store-6JQCLPQF.js → store-55UB27H2.js} +12 -10
- package/dist/bundle/store-maintenance-command-BLDKUZ3L.js +42 -0
- package/dist/commands/comments.d.ts +3 -0
- package/dist/commands/comments.d.ts.map +1 -0
- package/dist/commands/comments.js +114 -0
- package/dist/commands/comments.js.map +1 -0
- package/dist/commands/session.d.ts +3 -0
- package/dist/commands/session.d.ts.map +1 -0
- package/dist/commands/session.js +96 -0
- package/dist/commands/session.js.map +1 -0
- package/dist/context.d.ts +83 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +58 -0
- package/dist/context.js.map +1 -0
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +25 -4
- package/dist/program.js.map +1 -1
- package/dist/sample/comments.d.ts +61 -0
- package/dist/sample/comments.d.ts.map +1 -0
- package/dist/sample/comments.js +39 -0
- package/dist/sample/comments.js.map +1 -0
- package/dist/sample/transport.d.ts +42 -0
- package/dist/sample/transport.d.ts.map +1 -0
- package/dist/sample/transport.js +152 -0
- package/dist/sample/transport.js.map +1 -0
- package/dist/token.d.ts +16 -0
- package/dist/token.d.ts.map +1 -0
- package/dist/token.js +32 -0
- package/dist/token.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/commands.md +234 -12
- package/docs/configuration.md +1 -1
- package/docs/dev/reference-clis.md +3 -2
- package/docs/dev/skills/release/SKILL.md +9 -3
- package/docs/dev/skills/release/fresh-audit.md +1 -1
- package/docs/dev/test-matrix.md +36 -5
- package/docs/index.md +4 -3
- package/docs/security.md +4 -2
- package/kit/dist/new.js +7 -3
- package/lint/overrides.json +9 -1
- package/package.json +6 -7
- package/scripts/test-matrix-untested.ts +19 -0
- package/skills/clidev-cli/SKILL.md +1 -1
- package/src/commands/comments.ts +167 -0
- package/src/commands/session.ts +144 -0
- package/src/comments.test.ts +258 -0
- package/src/context.ts +78 -0
- package/src/mcp.test.ts +71 -76
- package/src/program.test.ts +9 -16
- package/src/program.ts +29 -4
- package/src/sample/comments.ts +51 -0
- package/src/sample/transport.test.ts +117 -0
- package/src/sample/transport.ts +184 -0
- package/src/testing/fake-comments.ts +167 -0
- package/src/testing/harness.ts +51 -0
- package/src/token.ts +42 -0
- package/src/version.ts +1 -1
- package/dist/bundle/all-profiles-NVB2HT2S.js +0 -24
- package/dist/bundle/chunk-GUFPQZUA.js +0 -48
- package/dist/bundle/chunk-NL2DQPT7.js +0 -2
- package/dist/bundle/first-screen-B2CF2CET.js +0 -26
- package/dist/bundle/mcp-ASNYBQ5B.js +0 -152
- package/dist/bundle/mcp-EY2NUYDQ.js +0 -82
- package/dist/bundle/serve-PJWSOV7F.js +0 -19
- package/dist/bundle/server-3TPCEZ6P.js +0 -40
- package/dist/bundle/server-GQX5MZTT.js +0 -53
- package/dist/bundle/store-maintenance-command-ND4ADMGC.js +0 -42
- package/dist/commands/doctor.d.ts +0 -77
- package/dist/commands/doctor.d.ts.map +0 -1
- package/dist/commands/doctor.js +0 -74
- package/dist/commands/doctor.js.map +0 -1
- package/dist/commands/mcp.d.ts +0 -3
- package/dist/commands/mcp.d.ts.map +0 -1
- package/dist/commands/mcp.js +0 -97
- package/dist/commands/mcp.js.map +0 -1
- package/dist/mcp.d.ts +0 -29
- package/dist/mcp.d.ts.map +0 -1
- package/dist/mcp.js +0 -98
- package/dist/mcp.js.map +0 -1
- package/src/commands/doctor.ts +0 -86
- package/src/commands/mcp.ts +0 -130
- package/src/mcp-http.test.ts +0 -172
- package/src/mcp.ts +0 -140
|
@@ -8,17 +8,17 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ITPFCKCL.js";
|
|
12
12
|
import {
|
|
13
13
|
isNewer,
|
|
14
14
|
updateCommand
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-R5IY4O25.js";
|
|
16
16
|
import {
|
|
17
17
|
remoteKey
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-X44ZT64I.js";
|
|
19
19
|
import {
|
|
20
20
|
MAX_MODEL_IMAGE_BYTES
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-WQBBSVZM.js";
|
|
22
22
|
import {
|
|
23
23
|
Command,
|
|
24
24
|
DEFAULT_IMAGE_MODEL,
|
|
@@ -59,10 +59,10 @@ import {
|
|
|
59
59
|
typedCommand,
|
|
60
60
|
vectorModelKey,
|
|
61
61
|
withAttempt
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-UW4PJZVJ.js";
|
|
63
63
|
import {
|
|
64
64
|
isCliFailure
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-S465TCR3.js";
|
|
66
66
|
import {
|
|
67
67
|
AGENDA_COLUMNS,
|
|
68
68
|
CHAT_COLUMNS,
|
|
@@ -145,13 +145,13 @@ import {
|
|
|
145
145
|
validateAst,
|
|
146
146
|
validateFields,
|
|
147
147
|
withoutField
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-QLBS6OC2.js";
|
|
149
149
|
import {
|
|
150
150
|
DEFAULT_STEMMERS,
|
|
151
151
|
createStemmer,
|
|
152
152
|
fold,
|
|
153
153
|
normalize
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-URPKIONS.js";
|
|
155
155
|
import {
|
|
156
156
|
EVENT_QUERY,
|
|
157
157
|
MEETING_PROJECT_EVIDENCE_QUERY,
|
|
@@ -196,11 +196,11 @@ import {
|
|
|
196
196
|
validateQuery,
|
|
197
197
|
walkQuery,
|
|
198
198
|
zonedMoment
|
|
199
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-QJS4WWYK.js";
|
|
200
200
|
import {
|
|
201
201
|
DEFAULT_TASK_CATEGORIES,
|
|
202
202
|
FALLBACK_CATEGORY
|
|
203
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-BXZRTMXA.js";
|
|
204
204
|
import {
|
|
205
205
|
Unzip,
|
|
206
206
|
UnzipInflate,
|
|
@@ -211,15 +211,15 @@ import {
|
|
|
211
211
|
placedText,
|
|
212
212
|
runEmbedders,
|
|
213
213
|
textModelsDirectory
|
|
214
|
-
} from "./chunk-
|
|
214
|
+
} from "./chunk-J2RUBXCI.js";
|
|
215
215
|
import {
|
|
216
216
|
installFiles,
|
|
217
217
|
megabytes
|
|
218
|
-
} from "./chunk-
|
|
218
|
+
} from "./chunk-LFLN6PVS.js";
|
|
219
219
|
import {
|
|
220
220
|
storePath,
|
|
221
221
|
wirecatDirectory
|
|
222
|
-
} from "./chunk-
|
|
222
|
+
} from "./chunk-AKUMR7PE.js";
|
|
223
223
|
import {
|
|
224
224
|
CliError,
|
|
225
225
|
array,
|
|
@@ -248,7 +248,7 @@ import {
|
|
|
248
248
|
unknown,
|
|
249
249
|
visibleControls,
|
|
250
250
|
writeSecurely
|
|
251
|
-
} from "./chunk-
|
|
251
|
+
} from "./chunk-MLSN3UP4.js";
|
|
252
252
|
import {
|
|
253
253
|
importFrom,
|
|
254
254
|
resolveFrom
|
|
@@ -16868,10 +16868,10 @@ var require_lib3 = __commonJS({
|
|
|
16868
16868
|
}
|
|
16869
16869
|
});
|
|
16870
16870
|
|
|
16871
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16871
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16872
16872
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
16873
16873
|
|
|
16874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16875
16875
|
var RULES_VERSION = 5;
|
|
16876
16876
|
var LOOK_BACK = 50;
|
|
16877
16877
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -16961,7 +16961,7 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
16961
16961
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
16962
16962
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
16963
16963
|
|
|
16964
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16964
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
16965
16965
|
var COMMAND_NEEDS = {
|
|
16966
16966
|
"account update": ["updateProfile", "change the profile"],
|
|
16967
16967
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17011,7 +17011,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17011
17011
|
return group;
|
|
17012
17012
|
}, "hideNever");
|
|
17013
17013
|
|
|
17014
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17014
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17015
17015
|
var AUDIT_PAGE = 200;
|
|
17016
17016
|
var AUDIT_BUDGET = 10;
|
|
17017
17017
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17091,7 +17091,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17091
17091
|
return found;
|
|
17092
17092
|
}, "burstJoins");
|
|
17093
17093
|
|
|
17094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17094
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17095
17095
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17096
17096
|
command.allowUnknownOption();
|
|
17097
17097
|
const parse = command.parseOptions.bind(command);
|
|
@@ -17111,7 +17111,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17111
17111
|
return command;
|
|
17112
17112
|
}, "queryWordsAfterOptions");
|
|
17113
17113
|
|
|
17114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17115
17115
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17116
17116
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17117
17117
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -17153,7 +17153,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
17153
17153
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
17154
17154
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
17155
17155
|
|
|
17156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
17157
17157
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
17158
17158
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17159
17159
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -17176,7 +17176,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
17176
17176
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
17177
17177
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
17178
17178
|
|
|
17179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
17180
17180
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
17181
17181
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
17182
17182
|
const zone = timezoneOf();
|
|
@@ -17262,7 +17262,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
17262
17262
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
17263
17263
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
17264
17264
|
|
|
17265
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17265
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
17266
17266
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
17267
17267
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
17268
17268
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -17394,7 +17394,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17394
17394
|
}, "addMeetingCommandsDefinition");
|
|
17395
17395
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
17396
17396
|
|
|
17397
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17397
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
17398
17398
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
17399
17399
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
17400
17400
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -17412,6 +17412,12 @@ var unfilteredQuery = /* @__PURE__ */ __name((entity, schema2) => ({
|
|
|
17412
17412
|
backend: "native",
|
|
17413
17413
|
fields: queryFieldsOf(schema2, {})
|
|
17414
17414
|
}), "unfilteredQuery");
|
|
17415
|
+
var commandPath = /* @__PURE__ */ __name((command) => {
|
|
17416
|
+
const words3 = [];
|
|
17417
|
+
for (let at = command; at?.parent; at = at.parent)
|
|
17418
|
+
words3.unshift(at.name());
|
|
17419
|
+
return words3.join(" ");
|
|
17420
|
+
}, "commandPath");
|
|
17415
17421
|
var withTomorrow = /* @__PURE__ */ __name((query, registry, zone = timezoneOf(), now = Date.now()) => {
|
|
17416
17422
|
const times = new Set(registry.fields.filter(({ type }) => type === "time").map(({ name }) => name));
|
|
17417
17423
|
const date2 = /* @__PURE__ */ new Date(`${new Intl.DateTimeFormat("en-CA", { timeZone: zone }).format(now)}T00:00:00Z`);
|
|
@@ -17527,7 +17533,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
17527
17533
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
17528
17534
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
17529
17535
|
|
|
17530
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17536
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
17531
17537
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
17532
17538
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
17533
17539
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -17536,7 +17542,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
17536
17542
|
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");
|
|
17537
17543
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
17538
17544
|
|
|
17539
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
17540
17546
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
17541
17547
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
17542
17548
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -17798,7 +17804,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
17798
17804
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
17799
17805
|
}), "sessionAnswer");
|
|
17800
17806
|
|
|
17801
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17807
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17802
17808
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17803
17809
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17804
17810
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -17862,7 +17868,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
17862
17868
|
}), "storedDeps");
|
|
17863
17869
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
17864
17870
|
|
|
17865
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17871
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
17866
17872
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
17867
17873
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
17868
17874
|
if (key in own)
|
|
@@ -17879,12 +17885,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
17879
17885
|
return found.bind(adapter);
|
|
17880
17886
|
}, "capability");
|
|
17881
17887
|
|
|
17882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17883
17889
|
import { randomBytes } from "node:crypto";
|
|
17884
17890
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17885
17891
|
var newOperationId = newSendId;
|
|
17886
17892
|
|
|
17887
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17893
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
17888
17894
|
var LINKS = /https?:\/\/\S+/g;
|
|
17889
17895
|
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");
|
|
17890
17896
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -17914,7 +17920,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
17914
17920
|
});
|
|
17915
17921
|
}, "questions");
|
|
17916
17922
|
|
|
17917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
17918
17924
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
17919
17925
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
17920
17926
|
const name = typed.trim().toLowerCase();
|
|
@@ -17948,7 +17954,7 @@ var hitsByList = /* @__PURE__ */ __name((text2, categories) => {
|
|
|
17948
17954
|
const stem = stemmersOf();
|
|
17949
17955
|
const english = stem.english.stemTokens(text2);
|
|
17950
17956
|
const spanish = readsSpanish(text2) ? stem.spanish.stemTokens(text2) : [];
|
|
17951
|
-
const
|
|
17957
|
+
const counted2 = [];
|
|
17952
17958
|
for (const triggers of triggerStems(categories)) {
|
|
17953
17959
|
const hit = /* @__PURE__ */ new Set();
|
|
17954
17960
|
english.forEach((word, at) => {
|
|
@@ -17958,20 +17964,20 @@ var hitsByList = /* @__PURE__ */ __name((text2, categories) => {
|
|
|
17958
17964
|
else if (other !== void 0 && triggers.spanish.has(other))
|
|
17959
17965
|
hit.add(other);
|
|
17960
17966
|
});
|
|
17961
|
-
|
|
17967
|
+
counted2.push({ name: triggers.name, hits: hit.size });
|
|
17962
17968
|
}
|
|
17963
|
-
return
|
|
17969
|
+
return counted2;
|
|
17964
17970
|
}, "hitsByList");
|
|
17965
17971
|
var listsHit = /* @__PURE__ */ __name((text2, categories) => hitsByList(text2, categories).filter(({ hits }) => hits > 0).map(({ name }) => name), "listsHit");
|
|
17966
17972
|
var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGORIES) => {
|
|
17967
17973
|
let best = { name: FALLBACK_CATEGORY, hits: 0 };
|
|
17968
|
-
for (const
|
|
17969
|
-
if (
|
|
17970
|
-
best =
|
|
17974
|
+
for (const counted2 of hitsByList(text2, categories))
|
|
17975
|
+
if (counted2.hits > best.hits)
|
|
17976
|
+
best = counted2;
|
|
17971
17977
|
return best.name;
|
|
17972
17978
|
}, "categorize");
|
|
17973
17979
|
|
|
17974
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
17975
17981
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
17976
17982
|
var RULES_IN = {
|
|
17977
17983
|
dialog: "all",
|
|
@@ -18177,7 +18183,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
18177
18183
|
return passes;
|
|
18178
18184
|
}, "applyTaskRulesToChats");
|
|
18179
18185
|
|
|
18180
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18186
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
18181
18187
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
18182
18188
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
18183
18189
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -18217,7 +18223,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
18217
18223
|
};
|
|
18218
18224
|
}, "dateWindow");
|
|
18219
18225
|
|
|
18220
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18226
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18221
18227
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18222
18228
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18223
18229
|
var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
@@ -18240,10 +18246,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
|
18240
18246
|
}
|
|
18241
18247
|
}, "patiently");
|
|
18242
18248
|
|
|
18243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18249
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18244
18250
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18245
18251
|
|
|
18246
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18247
18253
|
var REQUEST_MS = 400;
|
|
18248
18254
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18249
18255
|
const lowest = ranges[0];
|
|
@@ -18266,13 +18272,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18266
18272
|
};
|
|
18267
18273
|
}, "estimateBackfill");
|
|
18268
18274
|
|
|
18269
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18275
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18270
18276
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18271
18277
|
...error,
|
|
18272
18278
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18273
18279
|
}), "withRecovery");
|
|
18274
18280
|
|
|
18275
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18276
18282
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18277
18283
|
if (isCliFailure(error))
|
|
18278
18284
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18355,7 +18361,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18355
18361
|
};
|
|
18356
18362
|
}, "mergeBatches");
|
|
18357
18363
|
|
|
18358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18364
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/domain/ref-arguments.js
|
|
18359
18365
|
var TAKES = {
|
|
18360
18366
|
chat: "a chat: chat:<provider>/<account>/<chat>, its id or its title",
|
|
18361
18367
|
message: "a message: msg:<provider>/<account>/<chat>/<message>, or a chat and the message's id"
|
|
@@ -18415,7 +18421,7 @@ var ensureAccount = /* @__PURE__ */ __name(async (reference, scope, profilesOn)
|
|
|
18415
18421
|
throw wrongAccount(reference, scope, profiles);
|
|
18416
18422
|
}, "ensureAccount");
|
|
18417
18423
|
|
|
18418
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18424
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
18419
18425
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
18420
18426
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase(), "foldName");
|
|
18421
18427
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -18460,7 +18466,7 @@ ${lines3}`, { candidates });
|
|
|
18460
18466
|
}, "ambiguous");
|
|
18461
18467
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
18462
18468
|
|
|
18463
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18469
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18464
18470
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18465
18471
|
if (deps.reads !== "store")
|
|
18466
18472
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18619,7 +18625,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18619
18625
|
}
|
|
18620
18626
|
}, "senderAmong");
|
|
18621
18627
|
|
|
18622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
18623
18629
|
var CONTEXT_MESSAGES = 3;
|
|
18624
18630
|
var CONTEXT_MINUTES = 10;
|
|
18625
18631
|
var MAX_CHARS = 1200;
|
|
@@ -18643,12 +18649,12 @@ var context = {
|
|
|
18643
18649
|
}, "describe")
|
|
18644
18650
|
};
|
|
18645
18651
|
|
|
18646
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18652
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
18647
18653
|
var BUILT_INS = [context];
|
|
18648
18654
|
var providers = [...BUILT_INS];
|
|
18649
18655
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18650
18656
|
|
|
18651
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
18652
18658
|
var READ_PAGE = 5e3;
|
|
18653
18659
|
var CHAIN = 50;
|
|
18654
18660
|
var CONVERSATION_QUERY = {
|
|
@@ -18800,7 +18806,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
18800
18806
|
return size2;
|
|
18801
18807
|
}, "sized");
|
|
18802
18808
|
|
|
18803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18809
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
18804
18810
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
18805
18811
|
var MESSAGE_PAGE = 5e3;
|
|
18806
18812
|
var PER_SESSION = 8;
|
|
@@ -18819,7 +18825,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18819
18825
|
price: remote.price,
|
|
18820
18826
|
installed: true,
|
|
18821
18827
|
perBatch: PER_REQUEST * concurrency,
|
|
18822
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
18828
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-34HUWSZI.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
18823
18829
|
};
|
|
18824
18830
|
}
|
|
18825
18831
|
const model = textModel(choice);
|
|
@@ -18836,7 +18842,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18836
18842
|
if (!isTextModelInstalled(model, directory2))
|
|
18837
18843
|
throw notDownloaded(model.id);
|
|
18838
18844
|
if (apart) {
|
|
18839
|
-
const { openProcess } = await import("./process-
|
|
18845
|
+
const { openProcess } = await import("./process-XD5ZIFIL.js");
|
|
18840
18846
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
18841
18847
|
}
|
|
18842
18848
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -19125,7 +19131,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
19125
19131
|
return { ...one, state };
|
|
19126
19132
|
}, "shaped");
|
|
19127
19133
|
|
|
19128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
19129
19135
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
19130
19136
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
19131
19137
|
for (const [key, value, maximum] of [
|
|
@@ -19178,7 +19184,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
19178
19184
|
}
|
|
19179
19185
|
}, "catchUpSearch");
|
|
19180
19186
|
|
|
19181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
19182
19188
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
19183
19189
|
if (deps.reads === "store") {
|
|
19184
19190
|
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`);
|
|
@@ -19544,7 +19550,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19544
19550
|
return message?.timestamp ?? fallback;
|
|
19545
19551
|
}, "timeOfKey");
|
|
19546
19552
|
|
|
19547
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19553
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
19548
19554
|
var DAY_MS = 864e5;
|
|
19549
19555
|
var NEW_DAYS = 30;
|
|
19550
19556
|
var SAME_TEXT_MIN = 20;
|
|
@@ -19621,7 +19627,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
19621
19627
|
};
|
|
19622
19628
|
}, "scorePerson");
|
|
19623
19629
|
|
|
19624
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
19625
19631
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
19626
19632
|
const controller = new AbortController();
|
|
19627
19633
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -19637,7 +19643,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run) => {
|
|
|
19637
19643
|
}
|
|
19638
19644
|
}, "withTimeLimit");
|
|
19639
19645
|
|
|
19640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19646
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
19641
19647
|
var REGISTRIES = {
|
|
19642
19648
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
19643
19649
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -19724,7 +19730,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
19724
19730
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
19725
19731
|
})), "notCovered");
|
|
19726
19732
|
|
|
19727
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19733
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
19728
19734
|
var ACTIVITY_MESSAGES = 1e3;
|
|
19729
19735
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
19730
19736
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -19812,7 +19818,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
19812
19818
|
};
|
|
19813
19819
|
}, "botCheckService");
|
|
19814
19820
|
|
|
19815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19821
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
19816
19822
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
19817
19823
|
if (value === void 0)
|
|
19818
19824
|
return void 0;
|
|
@@ -19822,7 +19828,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
19822
19828
|
return id2;
|
|
19823
19829
|
}, "threadIdOf");
|
|
19824
19830
|
|
|
19825
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19831
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
19826
19832
|
var TOP_POSTS = 5;
|
|
19827
19833
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
19828
19834
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -19939,7 +19945,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
19939
19945
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
19940
19946
|
}, "median");
|
|
19941
19947
|
|
|
19942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19948
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
19943
19949
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
19944
19950
|
const events = [];
|
|
19945
19951
|
for (const stay of stays) {
|
|
@@ -19971,7 +19977,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
19971
19977
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
19972
19978
|
}, "memberEvents");
|
|
19973
19979
|
|
|
19974
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
19975
19981
|
var EVENTS_DAYS = 7;
|
|
19976
19982
|
var TRACKED_DAYS = 30;
|
|
19977
19983
|
var STATS_PAGE = 1e3;
|
|
@@ -20089,8 +20095,8 @@ var chatsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
20089
20095
|
});
|
|
20090
20096
|
const counts = await store.roster.memberCounts(chatId, { since: new Date(from).toISOString().slice(0, 10) });
|
|
20091
20097
|
const known2 = unrecorded ? { ...stats, complete: false, membersUnrecorded: true } : stats;
|
|
20092
|
-
const
|
|
20093
|
-
return completeness.state === "complete" || !syncsOneChat(deps.messenger) ?
|
|
20098
|
+
const counted2 = counts.length > 0 ? { ...known2, memberCounts: counts } : known2;
|
|
20099
|
+
return completeness.state === "complete" || !syncsOneChat(deps.messenger) ? counted2 : { ...counted2, fetch: typedCommand(deps.messenger.app.command, `messages sync ${chatId}`) };
|
|
20094
20100
|
}, "stats"),
|
|
20095
20101
|
sendAs: /* @__PURE__ */ __name(async (chat) => {
|
|
20096
20102
|
if (deps.offline) {
|
|
@@ -20266,7 +20272,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20266
20272
|
return members.length === 0 ? null : members;
|
|
20267
20273
|
}, "storedMembers");
|
|
20268
20274
|
|
|
20269
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20275
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
20270
20276
|
var INBOX_CHATS = 20;
|
|
20271
20277
|
var REVIEW_DAYS = 3;
|
|
20272
20278
|
var UNANSWERED_HOURS = 24;
|
|
@@ -20474,7 +20480,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20474
20480
|
};
|
|
20475
20481
|
}, "inboxService");
|
|
20476
20482
|
|
|
20477
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20483
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
20478
20484
|
var CONTEXT_MESSAGES2 = 10;
|
|
20479
20485
|
var CONTEXT_BYTES = 64 * 1024;
|
|
20480
20486
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -20735,10 +20741,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
20735
20741
|
};
|
|
20736
20742
|
}, "personMessages");
|
|
20737
20743
|
|
|
20738
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20744
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
20739
20745
|
import { createHash } from "node:crypto";
|
|
20740
20746
|
|
|
20741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20747
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
20742
20748
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
20743
20749
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
20744
20750
|
const parsed = parseMeetingReference(reference);
|
|
@@ -20756,7 +20762,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
20756
20762
|
return { parsed, meeting };
|
|
20757
20763
|
}, "authorizedMeetingMetadata");
|
|
20758
20764
|
|
|
20759
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20765
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
20760
20766
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
20761
20767
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
20762
20768
|
if (signal?.aborted)
|
|
@@ -20955,7 +20961,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
20955
20961
|
return { ...packet, fingerprint: hash(packet) };
|
|
20956
20962
|
}, "readMeetingEvidence");
|
|
20957
20963
|
|
|
20958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20964
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
20959
20965
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
20960
20966
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
20961
20967
|
const requestedAccounts = options.accountIds;
|
|
@@ -21054,7 +21060,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
21054
21060
|
};
|
|
21055
21061
|
}, "personMeetingContext");
|
|
21056
21062
|
|
|
21057
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21063
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
21058
21064
|
var PREPARE_BYTES = 96 * 1024;
|
|
21059
21065
|
var MEETINGS = 5;
|
|
21060
21066
|
var CUES = 3;
|
|
@@ -21171,7 +21177,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
21171
21177
|
}
|
|
21172
21178
|
}, "meetingsOf");
|
|
21173
21179
|
|
|
21174
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21180
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
21175
21181
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
21176
21182
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
21177
21183
|
const held = await storeIfOpen(deps);
|
|
@@ -21241,7 +21247,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
21241
21247
|
complete: false
|
|
21242
21248
|
})), "quiet");
|
|
21243
21249
|
|
|
21244
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21250
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
21245
21251
|
var TIMELINE_ITEMS = 50;
|
|
21246
21252
|
var TIMELINE_MAX = 500;
|
|
21247
21253
|
var SCOPES = ["personal", "work"];
|
|
@@ -21296,7 +21302,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
21296
21302
|
};
|
|
21297
21303
|
}, "personTimeline");
|
|
21298
21304
|
|
|
21299
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21305
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
21300
21306
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
21301
21307
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
21302
21308
|
const held = await storeIfOpen(deps);
|
|
@@ -21523,10 +21529,10 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
21523
21529
|
return rest;
|
|
21524
21530
|
}, "withoutPhone");
|
|
21525
21531
|
|
|
21526
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21532
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
|
|
21527
21533
|
var MAX_BYTES = 16 * 1024 * 1024;
|
|
21528
21534
|
|
|
21529
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
21530
21536
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
21531
21537
|
var PERIOD_FIELD = "created";
|
|
21532
21538
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -21629,7 +21635,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
21629
21635
|
}));
|
|
21630
21636
|
}, "meetingNames");
|
|
21631
21637
|
|
|
21632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
21633
21639
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
21634
21640
|
const tags = /* @__PURE__ */ new Map();
|
|
21635
21641
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -21638,7 +21644,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
21638
21644
|
return tags;
|
|
21639
21645
|
}, "taskTagFilters");
|
|
21640
21646
|
|
|
21641
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
21642
21648
|
var TASK_QUERY = {
|
|
21643
21649
|
entity: "task",
|
|
21644
21650
|
backend: "sql",
|
|
@@ -22130,7 +22136,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
22130
22136
|
};
|
|
22131
22137
|
}, "taskView");
|
|
22132
22138
|
|
|
22133
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
22134
22140
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
22135
22141
|
if (newest === null)
|
|
22136
22142
|
return null;
|
|
@@ -22139,7 +22145,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
22139
22145
|
return newest.addressed ? "owed" : null;
|
|
22140
22146
|
}, "mailTurn");
|
|
22141
22147
|
|
|
22142
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22148
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
22143
22149
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
22144
22150
|
if (error instanceof CliError && error.code === "not_found")
|
|
22145
22151
|
return void 0;
|
|
@@ -22197,7 +22203,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
22197
22203
|
};
|
|
22198
22204
|
}, "mailActivity");
|
|
22199
22205
|
|
|
22200
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22206
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
22201
22207
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
22202
22208
|
const ids = [...new Set(chatIds)];
|
|
22203
22209
|
if (ids.length === 0)
|
|
@@ -22223,7 +22229,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
22223
22229
|
}));
|
|
22224
22230
|
}, "chatCoverage");
|
|
22225
22231
|
|
|
22226
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22232
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
22227
22233
|
var DAY = 864e5;
|
|
22228
22234
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
22229
22235
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -22470,7 +22476,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
22470
22476
|
};
|
|
22471
22477
|
}, "agendaItem");
|
|
22472
22478
|
|
|
22473
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22479
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
22474
22480
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
22475
22481
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
22476
22482
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -22534,7 +22540,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
22534
22540
|
}
|
|
22535
22541
|
}, "validateContextEvidencePage");
|
|
22536
22542
|
|
|
22537
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22543
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
22538
22544
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
22539
22545
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
22540
22546
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -22587,7 +22593,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
22587
22593
|
};
|
|
22588
22594
|
}, "contextReadBudget");
|
|
22589
22595
|
|
|
22590
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
22591
22597
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
22592
22598
|
if (!port || typeof port.read !== "function")
|
|
22593
22599
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -22631,7 +22637,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
22631
22637
|
};
|
|
22632
22638
|
}, "createContextEvidenceReader");
|
|
22633
22639
|
|
|
22634
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22640
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
22635
22641
|
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");
|
|
22636
22642
|
var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) => {
|
|
22637
22643
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -22647,7 +22653,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) =
|
|
|
22647
22653
|
}, "excerpt");
|
|
22648
22654
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
22649
22655
|
|
|
22650
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22656
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
22651
22657
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
22652
22658
|
var DEFAULT_PURPOSES = ["work"];
|
|
22653
22659
|
var LINK_PURPOSE = "work";
|
|
@@ -22677,7 +22683,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
22677
22683
|
...value.split(",").map((one) => one.trim()).filter(Boolean)
|
|
22678
22684
|
], "purposeList");
|
|
22679
22685
|
|
|
22680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22686
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
22681
22687
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
22682
22688
|
async around(ref, window3) {
|
|
22683
22689
|
const at = parseLocator(ref);
|
|
@@ -22772,7 +22778,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
22772
22778
|
};
|
|
22773
22779
|
}, "storedNeighbours");
|
|
22774
22780
|
|
|
22775
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22781
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
22776
22782
|
import { createHash as createHash2 } from "node:crypto";
|
|
22777
22783
|
var DAY2 = 864e5;
|
|
22778
22784
|
var MAX_TIME = 864e13;
|
|
@@ -23088,7 +23094,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
23088
23094
|
return value;
|
|
23089
23095
|
}, "decodeCheckpoint");
|
|
23090
23096
|
|
|
23091
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23097
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
23092
23098
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
23093
23099
|
var PAGE2 = 20;
|
|
23094
23100
|
var PEOPLE = 20;
|
|
@@ -23492,7 +23498,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
23492
23498
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
23493
23499
|
}, "peopleOf");
|
|
23494
23500
|
|
|
23495
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23501
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
23496
23502
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
23497
23503
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
23498
23504
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -23536,7 +23542,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
23536
23542
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
23537
23543
|
}, "matchVocabularyTerms");
|
|
23538
23544
|
|
|
23539
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
23540
23546
|
var KINDS = ["project", "tag", "topic"];
|
|
23541
23547
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
23542
23548
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -23591,7 +23597,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
23591
23597
|
};
|
|
23592
23598
|
}, "findEvidenceMentions");
|
|
23593
23599
|
|
|
23594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23600
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
23595
23601
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
23596
23602
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
23597
23603
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -23859,7 +23865,7 @@ var gatherStoredProject = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
23859
23865
|
const leftOut = [];
|
|
23860
23866
|
for (const one of all.filter((chat) => !purposeRead(purposes, chat.purpose))) {
|
|
23861
23867
|
const account = { provider: one.provider, account: one.account };
|
|
23862
|
-
const [
|
|
23868
|
+
const [counted2, [held]] = await Promise.all([
|
|
23863
23869
|
count4(account, one.chat, { since: gathered.window.after, until: gathered.window.before }),
|
|
23864
23870
|
chatCoverage(store, account, [one.chat])
|
|
23865
23871
|
]);
|
|
@@ -23872,7 +23878,7 @@ var gatherStoredProject = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
23872
23878
|
purpose: one.purpose ?? LINK_PURPOSE,
|
|
23873
23879
|
relationship: one.relationship,
|
|
23874
23880
|
...one.proposed ? { proposed: one.proposed } : {},
|
|
23875
|
-
...
|
|
23881
|
+
...counted2
|
|
23876
23882
|
});
|
|
23877
23883
|
}
|
|
23878
23884
|
return {
|
|
@@ -23897,18 +23903,18 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
23897
23903
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
23898
23904
|
}, "purposeHintOf");
|
|
23899
23905
|
|
|
23900
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23906
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
23901
23907
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
23902
23908
|
|
|
23903
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23909
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
23904
23910
|
import { lstat } from "node:fs/promises";
|
|
23905
23911
|
|
|
23906
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23912
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
23907
23913
|
import { createHash as createHash4, randomUUID as randomUUID2 } from "node:crypto";
|
|
23908
23914
|
import { open as open2, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
23909
23915
|
import { join as join2 } from "node:path";
|
|
23910
23916
|
|
|
23911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
23912
23918
|
import { createHash as createHash3 } from "node:crypto";
|
|
23913
23919
|
var metadataLimit = 16384;
|
|
23914
23920
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -23968,7 +23974,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
23968
23974
|
}
|
|
23969
23975
|
}, "readPartialMetadata");
|
|
23970
23976
|
|
|
23971
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23977
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
23972
23978
|
import { randomUUID } from "node:crypto";
|
|
23973
23979
|
import { open, rename, unlink } from "node:fs/promises";
|
|
23974
23980
|
import { join } from "node:path";
|
|
@@ -24060,7 +24066,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
24060
24066
|
};
|
|
24061
24067
|
}, "partialWriter");
|
|
24062
24068
|
|
|
24063
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24069
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
24064
24070
|
var NativeRecordingPartialStore = class {
|
|
24065
24071
|
static {
|
|
24066
24072
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -24167,12 +24173,12 @@ var NativeRecordingPartialStore = class {
|
|
|
24167
24173
|
}
|
|
24168
24174
|
};
|
|
24169
24175
|
|
|
24170
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24176
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
24171
24177
|
import { createHash as createHash5 } from "node:crypto";
|
|
24172
24178
|
import { link as link2 } from "node:fs/promises";
|
|
24173
24179
|
import { basename, dirname, join as join4, resolve } from "node:path";
|
|
24174
24180
|
|
|
24175
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
24176
24182
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
24177
24183
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
24178
24184
|
signal?.throwIfAborted();
|
|
@@ -24207,7 +24213,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
24207
24213
|
signal?.throwIfAborted();
|
|
24208
24214
|
}, "commitPublication");
|
|
24209
24215
|
|
|
24210
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24216
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
24211
24217
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
24212
24218
|
import { open as open3, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
24213
24219
|
import { join as join3 } from "node:path";
|
|
@@ -24280,7 +24286,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
24280
24286
|
}
|
|
24281
24287
|
}, "writePublicationJournal");
|
|
24282
24288
|
|
|
24283
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24289
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
24284
24290
|
var NativeRecordingPublication = class {
|
|
24285
24291
|
static {
|
|
24286
24292
|
__name(this, "NativeRecordingPublication");
|
|
@@ -24353,7 +24359,7 @@ var NativeRecordingPublication = class {
|
|
|
24353
24359
|
}
|
|
24354
24360
|
};
|
|
24355
24361
|
|
|
24356
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24362
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
24357
24363
|
import { createHash as createHash6 } from "node:crypto";
|
|
24358
24364
|
import { readdir } from "node:fs/promises";
|
|
24359
24365
|
import { isAbsolute, join as join5, resolve as resolve2 } from "node:path";
|
|
@@ -24440,7 +24446,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
24440
24446
|
beforePublish
|
|
24441
24447
|
}), "commitMediaEntry");
|
|
24442
24448
|
|
|
24443
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24449
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
24444
24450
|
var validator = '"media-completed-v1"';
|
|
24445
24451
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
24446
24452
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -24541,7 +24547,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
24541
24547
|
return entry;
|
|
24542
24548
|
}, "archiveMediaFile");
|
|
24543
24549
|
|
|
24544
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
24545
24551
|
import { mkdir, realpath } from "node:fs/promises";
|
|
24546
24552
|
import { join as join6, resolve as resolve3 } from "node:path";
|
|
24547
24553
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -24608,7 +24614,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
24608
24614
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
24609
24615
|
}, "withMediaArchiveLocks");
|
|
24610
24616
|
|
|
24611
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24617
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
24612
24618
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
24613
24619
|
if (value === void 0)
|
|
24614
24620
|
return void 0;
|
|
@@ -24761,7 +24767,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
24761
24767
|
}, { create: true });
|
|
24762
24768
|
}, "archiveMedia");
|
|
24763
24769
|
|
|
24764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24770
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
24765
24771
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
24766
24772
|
import { basename as basename2, dirname as dirname2, join as join7, resolve as resolve4 } from "node:path";
|
|
24767
24773
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -24914,7 +24920,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
24914
24920
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
24915
24921
|
}, "moveMediaArchive");
|
|
24916
24922
|
|
|
24917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
24918
24924
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
24919
24925
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
24920
24926
|
}, "progress") }) => {
|
|
@@ -24937,7 +24943,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
24937
24943
|
}
|
|
24938
24944
|
await nativeRuntime({ env, progress });
|
|
24939
24945
|
progress(`${model.id}: loading it once to check it works`);
|
|
24940
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
24946
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-JSQZL7JF.js");
|
|
24941
24947
|
const embedder = await openEmbedder2(model, directory2);
|
|
24942
24948
|
try {
|
|
24943
24949
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -24958,7 +24964,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
24958
24964
|
}
|
|
24959
24965
|
await nativeRuntime({ env, progress });
|
|
24960
24966
|
progress(`${model.id}: loading it once to check it works`);
|
|
24961
|
-
const { openReranker } = await import("./rerank-
|
|
24967
|
+
const { openReranker } = await import("./rerank-ONBASQ5Z.js");
|
|
24962
24968
|
const reranker = await openReranker(model, directory2);
|
|
24963
24969
|
try {
|
|
24964
24970
|
await reranker.score("check", ["check"]);
|
|
@@ -24976,7 +24982,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
24976
24982
|
await installFiles(placedImage(model, directory2), { progress });
|
|
24977
24983
|
}
|
|
24978
24984
|
progress(`${model.id}: loading it once to check it works`);
|
|
24979
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
24985
|
+
const { openPictureEmbedder } = await import("./embedder-7BHRCXWL.js");
|
|
24980
24986
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
24981
24987
|
try {
|
|
24982
24988
|
const vector = await embedder.embedQuery("check");
|
|
@@ -24988,7 +24994,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
24988
24994
|
return { model, directory: directory2 };
|
|
24989
24995
|
}, "downloadImageModel");
|
|
24990
24996
|
|
|
24991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24997
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
24992
24998
|
var MONEY_REQUEST = "money-request";
|
|
24993
24999
|
var MONEY_DONE = "money-done";
|
|
24994
25000
|
var PROMISE = "promise";
|
|
@@ -25022,10 +25028,10 @@ var MONEY_WORDS = [
|
|
|
25022
25028
|
}
|
|
25023
25029
|
];
|
|
25024
25030
|
|
|
25025
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25031
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
25026
25032
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
25027
25033
|
|
|
25028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25034
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
25029
25035
|
var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
25030
25036
|
var MONEY_DONE_FORMS = words([
|
|
25031
25037
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -25065,7 +25071,7 @@ var PROMISE_FORMS = words([
|
|
|
25065
25071
|
"estar\xE1 listo"
|
|
25066
25072
|
]);
|
|
25067
25073
|
|
|
25068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25074
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
25069
25075
|
var EXCERPT_CHARS = 80;
|
|
25070
25076
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
25071
25077
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -25087,7 +25093,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
25087
25093
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
25088
25094
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
25089
25095
|
|
|
25090
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25096
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
25091
25097
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
25092
25098
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
25093
25099
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -25127,10 +25133,10 @@ var rowsOf = /* @__PURE__ */ __name((chat) => chat.messages.flatMap((message) =>
|
|
|
25127
25133
|
var centsText = /* @__PURE__ */ __name((cents) => `${Math.floor(cents / 100)}.${String(cents % 100).padStart(2, "0")}`, "centsText");
|
|
25128
25134
|
var amounts = {
|
|
25129
25135
|
id: "amounts",
|
|
25130
|
-
version:
|
|
25136
|
+
version: 3,
|
|
25131
25137
|
scope: "chat",
|
|
25132
|
-
read: /* @__PURE__ */ __name(async (
|
|
25133
|
-
if (!chat)
|
|
25138
|
+
read: /* @__PURE__ */ __name(async (context2, chat) => {
|
|
25139
|
+
if (!chat || context2.books)
|
|
25134
25140
|
return [];
|
|
25135
25141
|
const groups = /* @__PURE__ */ new Map();
|
|
25136
25142
|
for (const row of rowsOf(chat)) {
|
|
@@ -25143,7 +25149,8 @@ var amounts = {
|
|
|
25143
25149
|
const lastAsk = asks.at(-1);
|
|
25144
25150
|
const first2 = asks[0] ?? done2[0] ?? rows[0];
|
|
25145
25151
|
const paidAfter = done2.some((row) => !lastAsk || Date.parse(row.message.timestamp) >= Date.parse(lastAsk.message.timestamp));
|
|
25146
|
-
const
|
|
25152
|
+
const paid2 = asks.length ? paidAfter : done2.length > 0;
|
|
25153
|
+
const state = paid2 ? "paid-mentioned" : asks.length ? "asked" : "mentioned";
|
|
25147
25154
|
const cited = asks.length ? [...asks, ...paidAfter ? done2.slice(-1) : []] : rows;
|
|
25148
25155
|
return {
|
|
25149
25156
|
signal: "amounts",
|
|
@@ -25164,10 +25171,10 @@ var amounts = {
|
|
|
25164
25171
|
};
|
|
25165
25172
|
});
|
|
25166
25173
|
}, "read"),
|
|
25167
|
-
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "
|
|
25174
|
+
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
25168
25175
|
};
|
|
25169
25176
|
|
|
25170
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25177
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
25171
25178
|
var children = {
|
|
25172
25179
|
id: "children",
|
|
25173
25180
|
version: 1,
|
|
@@ -25196,7 +25203,7 @@ var children = {
|
|
|
25196
25203
|
}, "read")
|
|
25197
25204
|
};
|
|
25198
25205
|
|
|
25199
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25206
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
25200
25207
|
var coverage = {
|
|
25201
25208
|
id: "coverage",
|
|
25202
25209
|
version: 1,
|
|
@@ -25225,7 +25232,7 @@ var coverage = {
|
|
|
25225
25232
|
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")
|
|
25226
25233
|
};
|
|
25227
25234
|
|
|
25228
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25235
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
25229
25236
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
25230
25237
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
25231
25238
|
signal: "payments",
|
|
@@ -25275,7 +25282,7 @@ var payments = {
|
|
|
25275
25282
|
}, "read")
|
|
25276
25283
|
};
|
|
25277
25284
|
|
|
25278
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
25279
25286
|
var PATTERNS_PER_CHAT = 3;
|
|
25280
25287
|
var DAY3 = 864e5;
|
|
25281
25288
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -25364,7 +25371,7 @@ var promises = {
|
|
|
25364
25371
|
}, "read")
|
|
25365
25372
|
};
|
|
25366
25373
|
|
|
25367
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
25368
25375
|
var PER_SIDE = 5;
|
|
25369
25376
|
var WEEK = 7 * 864e5;
|
|
25370
25377
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -25395,7 +25402,7 @@ var questions2 = {
|
|
|
25395
25402
|
}, "attention")
|
|
25396
25403
|
};
|
|
25397
25404
|
|
|
25398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25405
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
25399
25406
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
25400
25407
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one) => one.id === id2), "byId");
|
|
25401
25408
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -25463,7 +25470,7 @@ var replyNext = {
|
|
|
25463
25470
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
25464
25471
|
};
|
|
25465
25472
|
|
|
25466
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25473
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
25467
25474
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
25468
25475
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
25469
25476
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -25509,7 +25516,7 @@ var topics = {
|
|
|
25509
25516
|
}, "read")
|
|
25510
25517
|
};
|
|
25511
25518
|
|
|
25512
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25519
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
25513
25520
|
var STATUS_SIGNALS = [
|
|
25514
25521
|
replyNext,
|
|
25515
25522
|
questions2,
|
|
@@ -25521,7 +25528,7 @@ var STATUS_SIGNALS = [
|
|
|
25521
25528
|
children
|
|
25522
25529
|
];
|
|
25523
25530
|
|
|
25524
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25531
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
25525
25532
|
var DAY4 = 864e5;
|
|
25526
25533
|
var STATUS_WINDOW = 300;
|
|
25527
25534
|
var STATUS_CHATS = 16;
|
|
@@ -25566,17 +25573,23 @@ var childrenOf = /* @__PURE__ */ __name(async (store, root, catalog) => {
|
|
|
25566
25573
|
}, "childrenOf");
|
|
25567
25574
|
var inAccounts = /* @__PURE__ */ __name((accounts, provider, account) => accounts === void 0 || accounts.some((one) => one.provider === provider && one.account === account), "inAccounts");
|
|
25568
25575
|
var failure = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "failure");
|
|
25569
|
-
var
|
|
25570
|
-
const
|
|
25571
|
-
|
|
25572
|
-
|
|
25573
|
-
|
|
25576
|
+
var owed = /* @__PURE__ */ __name((item2) => {
|
|
25577
|
+
const data = item2.data;
|
|
25578
|
+
return item2.signal === "payments" && data.state === "expected" && data.status === "confirmed";
|
|
25579
|
+
}, "owed");
|
|
25580
|
+
var keepsBooks = /* @__PURE__ */ __name(async (store, projects) => {
|
|
25581
|
+
for (const project2 of projects) {
|
|
25582
|
+
const filter = { project: project2, review: "confirmed", limit: 1 };
|
|
25583
|
+
if ((await store.finance.invoices(filter)).length || (await store.finance.payments(filter)).length)
|
|
25584
|
+
return true;
|
|
25585
|
+
}
|
|
25586
|
+
return false;
|
|
25587
|
+
}, "keepsBooks");
|
|
25574
25588
|
var totalsOf = /* @__PURE__ */ __name((items) => {
|
|
25575
25589
|
const totals = /* @__PURE__ */ new Map();
|
|
25576
|
-
const open7 = counted2(items);
|
|
25577
25590
|
for (const item2 of items) {
|
|
25578
25591
|
const data = item2.data;
|
|
25579
|
-
if (!
|
|
25592
|
+
if (!owed(item2) || data.amount === void 0)
|
|
25580
25593
|
continue;
|
|
25581
25594
|
const key = `${data.direction}|${data.currency ?? ""}`;
|
|
25582
25595
|
const total = totals.get(key) ?? {
|
|
@@ -25659,6 +25672,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
25659
25672
|
chats,
|
|
25660
25673
|
project: { ...root, children: children2, cut },
|
|
25661
25674
|
store,
|
|
25675
|
+
books: await keepsBooks(store, [root.ref, ...children2.map((child) => child.ref)]),
|
|
25662
25676
|
contextQueries: input.contextQueries ?? []
|
|
25663
25677
|
};
|
|
25664
25678
|
const items = [];
|
|
@@ -25703,7 +25717,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
25703
25717
|
};
|
|
25704
25718
|
}, "projectStatus");
|
|
25705
25719
|
|
|
25706
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
25707
25721
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
25708
25722
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
25709
25723
|
if (deps.offline)
|
|
@@ -25775,7 +25789,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
25775
25789
|
};
|
|
25776
25790
|
}, "accountService");
|
|
25777
25791
|
|
|
25778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25792
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
25779
25793
|
var MINUTE = 6e4;
|
|
25780
25794
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
25781
25795
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -25794,7 +25808,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
25794
25808
|
return new Date(at - at % MINUTE).toISOString();
|
|
25795
25809
|
}, "sendTime");
|
|
25796
25810
|
|
|
25797
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25811
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
25798
25812
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write2) => {
|
|
25799
25813
|
try {
|
|
25800
25814
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -25940,21 +25954,21 @@ var adminService = /* @__PURE__ */ __name((deps) => {
|
|
|
25940
25954
|
const answerAll = capability(connection, "answerAllJoinRequests", "answer every join request at once");
|
|
25941
25955
|
const { id: chatId } = await connection.resolve(chat);
|
|
25942
25956
|
const page = await list3(chatId, { limit: 100, ...link4 === void 0 ? {} : { link: link4 } });
|
|
25943
|
-
const
|
|
25957
|
+
const counted2 = page.total ?? page.items.length;
|
|
25944
25958
|
if (page.total === void 0 && page.hasMore)
|
|
25945
25959
|
throw new CliError("validation_error", "too many requests to count; answer them by person, or by --link");
|
|
25946
|
-
if (
|
|
25947
|
-
return { chatId, accepted: accept, counted:
|
|
25960
|
+
if (counted2 === 0)
|
|
25961
|
+
return { chatId, accepted: accept, counted: counted2 };
|
|
25948
25962
|
const operationId = newOperationId();
|
|
25949
25963
|
await guardedWrite(deps.guard, {
|
|
25950
25964
|
operationId,
|
|
25951
25965
|
chatId,
|
|
25952
25966
|
kind: "chat",
|
|
25953
25967
|
action: accept ? "requests.accept" : "requests.decline",
|
|
25954
|
-
count:
|
|
25955
|
-
people:
|
|
25968
|
+
count: counted2,
|
|
25969
|
+
people: counted2
|
|
25956
25970
|
}, () => answerAll(chatId, accept, link4));
|
|
25957
|
-
return { operationId, chatId, accepted: accept, counted:
|
|
25971
|
+
return { operationId, chatId, accepted: accept, counted: counted2 };
|
|
25958
25972
|
}, "answerAllRequests"),
|
|
25959
25973
|
links: /* @__PURE__ */ __name(async (chat, window3) => {
|
|
25960
25974
|
if (deps.offline)
|
|
@@ -26041,7 +26055,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
26041
26055
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
26042
26056
|
}, "linkLimits");
|
|
26043
26057
|
|
|
26044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
26045
26059
|
var THREADS_PAGE = 500;
|
|
26046
26060
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
26047
26061
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -26120,7 +26134,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
26120
26134
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
26121
26135
|
}, "readMail");
|
|
26122
26136
|
|
|
26123
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
26124
26138
|
var NO_MAIL = "no_mail";
|
|
26125
26139
|
var MAIL = "email";
|
|
26126
26140
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -26167,7 +26181,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
26167
26181
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
26168
26182
|
}, "accountsOfKind");
|
|
26169
26183
|
|
|
26170
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26184
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
26171
26185
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
26172
26186
|
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");
|
|
26173
26187
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -26515,7 +26529,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
26515
26529
|
};
|
|
26516
26530
|
}, "statsLucene");
|
|
26517
26531
|
|
|
26518
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26532
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
26519
26533
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
26520
26534
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
26521
26535
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -26684,7 +26698,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
26684
26698
|
};
|
|
26685
26699
|
}, "readRankingSelection");
|
|
26686
26700
|
|
|
26687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26701
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
26688
26702
|
var canonical = /* @__PURE__ */ __name((value, nested = false) => Array.isArray(value) ? value.map((one) => canonical(one, true)) : value !== null && typeof value === "object" ? Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0 && (nested || one !== false)).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(([key, one]) => [key, canonical(one, true)])) : value, "canonical");
|
|
26689
26703
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
26690
26704
|
command,
|
|
@@ -26694,7 +26708,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
26694
26708
|
fieldsVersion: FIELD_VERSION
|
|
26695
26709
|
}), "searchRecordOf");
|
|
26696
26710
|
|
|
26697
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26711
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
26698
26712
|
function invalid2(message) {
|
|
26699
26713
|
throw new CliError("validation_error", message);
|
|
26700
26714
|
}
|
|
@@ -26988,7 +27002,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
26988
27002
|
}, "evidence")
|
|
26989
27003
|
}), "adminStatisticsService");
|
|
26990
27004
|
|
|
26991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
26992
27006
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
26993
27007
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
26994
27008
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -27125,16 +27139,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
27125
27139
|
return { plan, repair };
|
|
27126
27140
|
}, "gapsService");
|
|
27127
27141
|
|
|
27128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27142
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
27129
27143
|
import { createHash as createHash9 } from "node:crypto";
|
|
27130
27144
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
27131
27145
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
27132
27146
|
|
|
27133
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
27134
27148
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
27135
27149
|
import { basename as basename4, join as join8, relative as relative2, sep as sep2 } from "node:path";
|
|
27136
27150
|
|
|
27137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
27138
27152
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
27139
27153
|
import { open as open4, stat } from "node:fs/promises";
|
|
27140
27154
|
import { basename as basename3, dirname as dirname3, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -27336,7 +27350,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read2) => {
|
|
|
27336
27350
|
return { name, source };
|
|
27337
27351
|
}, "readStickerFile");
|
|
27338
27352
|
|
|
27339
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27353
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
27340
27354
|
var MAX_FILES = 1e4;
|
|
27341
27355
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app, env) => {
|
|
27342
27356
|
if (refusedPlace(directory2, app, env))
|
|
@@ -27405,15 +27419,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
27405
27419
|
return choices;
|
|
27406
27420
|
}, "directoryPaths");
|
|
27407
27421
|
|
|
27408
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
27409
27423
|
import { posix } from "node:path";
|
|
27410
27424
|
|
|
27411
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27425
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
27412
27426
|
import { setImmediate as tick } from "node:timers/promises";
|
|
27413
27427
|
import { crc32 } from "node:zlib";
|
|
27414
27428
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
27415
27429
|
|
|
27416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
27417
27431
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
27418
27432
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
27419
27433
|
var SAMPLE = 65536;
|
|
@@ -27515,7 +27529,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
27515
27529
|
return result.text;
|
|
27516
27530
|
}, "decodeXml");
|
|
27517
27531
|
|
|
27518
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27532
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
27519
27533
|
var MAX_PART = 10 * 1024 * 1024;
|
|
27520
27534
|
var MAX_ENTRIES = 1e3;
|
|
27521
27535
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -27730,7 +27744,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
27730
27744
|
return found;
|
|
27731
27745
|
}, "elements");
|
|
27732
27746
|
|
|
27733
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27747
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
27734
27748
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
27735
27749
|
let name = "";
|
|
27736
27750
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -27785,7 +27799,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
27785
27799
|
return { text: parts.join("").trim(), truncated: false };
|
|
27786
27800
|
}, "sheetText");
|
|
27787
27801
|
|
|
27788
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27802
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
27789
27803
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
27790
27804
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
27791
27805
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -28185,10 +28199,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
28185
28199
|
}
|
|
28186
28200
|
}, "readDocument");
|
|
28187
28201
|
|
|
28188
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
28189
28203
|
import { extname as extname3 } from "node:path";
|
|
28190
28204
|
|
|
28191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28205
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
28192
28206
|
import { readFileSync } from "node:fs";
|
|
28193
28207
|
import { dirname as dirname4, extname as extname2, join as join9 } from "node:path";
|
|
28194
28208
|
import { fileURLToPath } from "node:url";
|
|
@@ -28249,7 +28263,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
28249
28263
|
}
|
|
28250
28264
|
}, "derived");
|
|
28251
28265
|
|
|
28252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28266
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
28253
28267
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
28254
28268
|
var image2 = {
|
|
28255
28269
|
id: "image",
|
|
@@ -28258,7 +28272,7 @@ var image2 = {
|
|
|
28258
28272
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
28259
28273
|
};
|
|
28260
28274
|
|
|
28261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28275
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
28262
28276
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
28263
28277
|
var doc = {
|
|
28264
28278
|
id: "doc",
|
|
@@ -28270,7 +28284,7 @@ var doc = {
|
|
|
28270
28284
|
}), "read")
|
|
28271
28285
|
};
|
|
28272
28286
|
|
|
28273
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28287
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
28274
28288
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
28275
28289
|
var docx = {
|
|
28276
28290
|
id: "docx",
|
|
@@ -28283,7 +28297,7 @@ var docx = {
|
|
|
28283
28297
|
}), "read")
|
|
28284
28298
|
};
|
|
28285
28299
|
|
|
28286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28300
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
28287
28301
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
28288
28302
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
28289
28303
|
"fonttbl",
|
|
@@ -28459,7 +28473,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
28459
28473
|
}, "htmlText");
|
|
28460
28474
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
28461
28475
|
|
|
28462
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28476
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
28463
28477
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
28464
28478
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
28465
28479
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -28515,7 +28529,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
28515
28529
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
28516
28530
|
}, "markdownSections");
|
|
28517
28531
|
|
|
28518
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28532
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
28519
28533
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
28520
28534
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
28521
28535
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -28586,7 +28600,7 @@ var html = {
|
|
|
28586
28600
|
}, "read")
|
|
28587
28601
|
};
|
|
28588
28602
|
|
|
28589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
28590
28604
|
var office = {
|
|
28591
28605
|
id: "office",
|
|
28592
28606
|
version: documentExtractor("odt"),
|
|
@@ -28597,7 +28611,7 @@ var office = {
|
|
|
28597
28611
|
}, "read")
|
|
28598
28612
|
};
|
|
28599
28613
|
|
|
28600
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28614
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
28601
28615
|
var pdf = {
|
|
28602
28616
|
id: "pdf",
|
|
28603
28617
|
version: "unpdf",
|
|
@@ -28664,7 +28678,7 @@ var pdf = {
|
|
|
28664
28678
|
}), "read")
|
|
28665
28679
|
};
|
|
28666
28680
|
|
|
28667
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
28668
28682
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
28669
28683
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
28670
28684
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -28684,7 +28698,7 @@ var plain = {
|
|
|
28684
28698
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
28685
28699
|
};
|
|
28686
28700
|
|
|
28687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28701
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
28688
28702
|
var rtf = {
|
|
28689
28703
|
id: "rtf",
|
|
28690
28704
|
version: "v1",
|
|
@@ -28692,10 +28706,10 @@ var rtf = {
|
|
|
28692
28706
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
28693
28707
|
};
|
|
28694
28708
|
|
|
28695
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28709
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
28696
28710
|
import { basename as basename5 } from "node:path";
|
|
28697
28711
|
|
|
28698
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28712
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
28699
28713
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
28700
28714
|
const cells = [];
|
|
28701
28715
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -28733,7 +28747,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
28733
28747
|
return { cells, truncated };
|
|
28734
28748
|
}, "delimitedSpans");
|
|
28735
28749
|
|
|
28736
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
28737
28751
|
var DELIMITED = {
|
|
28738
28752
|
".csv": ",",
|
|
28739
28753
|
".tsv": " ",
|
|
@@ -28772,7 +28786,7 @@ var sheets = {
|
|
|
28772
28786
|
}, "read")
|
|
28773
28787
|
};
|
|
28774
28788
|
|
|
28775
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28789
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
28776
28790
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
28777
28791
|
var HEAD_BYTES = 1024;
|
|
28778
28792
|
var readers = [...BUILT_INS2];
|
|
@@ -28782,7 +28796,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
28782
28796
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
28783
28797
|
}, "readWithRegistry");
|
|
28784
28798
|
|
|
28785
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28799
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
28786
28800
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
28787
28801
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
28788
28802
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -29861,7 +29875,7 @@ function imageSize(input) {
|
|
|
29861
29875
|
}
|
|
29862
29876
|
__name(imageSize, "imageSize");
|
|
29863
29877
|
|
|
29864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
29865
29879
|
var MAX_PAGES = 20;
|
|
29866
29880
|
var MAX_PIXELS = 2e7;
|
|
29867
29881
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -30012,7 +30026,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
30012
30026
|
}
|
|
30013
30027
|
}, "ocrPdf");
|
|
30014
30028
|
|
|
30015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
30016
30030
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
30017
30031
|
const limits = pdfPreviewLimits(env);
|
|
30018
30032
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -30089,7 +30103,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
30089
30103
|
}
|
|
30090
30104
|
}, "pdfPreview");
|
|
30091
30105
|
|
|
30092
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30106
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
30093
30107
|
import { createHash as createHash8 } from "node:crypto";
|
|
30094
30108
|
import { constants } from "node:fs";
|
|
30095
30109
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -30197,7 +30211,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
30197
30211
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
30198
30212
|
}, "transferMime");
|
|
30199
30213
|
|
|
30200
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30214
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
30201
30215
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
30202
30216
|
import { link as link3, rm } from "node:fs/promises";
|
|
30203
30217
|
import { join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -30311,7 +30325,7 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
30311
30325
|
}
|
|
30312
30326
|
}, "save");
|
|
30313
30327
|
|
|
30314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30328
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
30315
30329
|
var ATTACHMENT_QUERY = {
|
|
30316
30330
|
entity: "attachment",
|
|
30317
30331
|
backend: "sql",
|
|
@@ -30734,7 +30748,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30734
30748
|
}, "setText")
|
|
30735
30749
|
}), "attachmentsService");
|
|
30736
30750
|
|
|
30737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
30738
30752
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
30739
30753
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
30740
30754
|
const store = await accountStore(deps);
|
|
@@ -30764,7 +30778,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30764
30778
|
}, "list")
|
|
30765
30779
|
}), "chatDocumentsService");
|
|
30766
30780
|
|
|
30767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30781
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
30768
30782
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
30769
30783
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
30770
30784
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -30851,7 +30865,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
30851
30865
|
}
|
|
30852
30866
|
}, "isRetentionSelection");
|
|
30853
30867
|
|
|
30854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
30855
30869
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
30856
30870
|
const fields = text2.split(",").map((one) => one.trim());
|
|
30857
30871
|
if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
|
|
@@ -31058,7 +31072,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
31058
31072
|
};
|
|
31059
31073
|
}, "countersService");
|
|
31060
31074
|
|
|
31061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
31062
31076
|
var SYNC_KEY = "messages.sync-first";
|
|
31063
31077
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
31064
31078
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -31150,7 +31164,7 @@ var refreshSearch = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
31150
31164
|
}
|
|
31151
31165
|
try {
|
|
31152
31166
|
const newest = (await store.messages.messages(account, chatId, { limit: 1 })).items[0];
|
|
31153
|
-
let
|
|
31167
|
+
let counted2 = 0;
|
|
31154
31168
|
const fetched = await archiveService(deps).fetch(chatId, {
|
|
31155
31169
|
limit: options.maxMessages - result.messages,
|
|
31156
31170
|
pageSize: Math.min(100, deps.messenger.fetching?.maxPageSize ?? 100),
|
|
@@ -31159,11 +31173,11 @@ var refreshSearch = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
31159
31173
|
stop,
|
|
31160
31174
|
note: note2,
|
|
31161
31175
|
onPage: /* @__PURE__ */ __name(({ fetched: fetched2 }) => {
|
|
31162
|
-
result.messages += fetched2 -
|
|
31163
|
-
|
|
31176
|
+
result.messages += fetched2 - counted2;
|
|
31177
|
+
counted2 = fetched2;
|
|
31164
31178
|
}, "onPage")
|
|
31165
31179
|
});
|
|
31166
|
-
result.messages += fetched.fetched -
|
|
31180
|
+
result.messages += fetched.fetched - counted2;
|
|
31167
31181
|
if (fetched.stopped || !fetched.complete && !fetched.reachedSince) {
|
|
31168
31182
|
result.complete = false;
|
|
31169
31183
|
result.failed.push({
|
|
@@ -31190,7 +31204,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
31190
31204
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
31191
31205
|
}), "withRefresh");
|
|
31192
31206
|
|
|
31193
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31207
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
31194
31208
|
var CANDIDATES = 50;
|
|
31195
31209
|
var WORD_HITS = 200;
|
|
31196
31210
|
var RRF_K = 60;
|
|
@@ -31465,13 +31479,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
31465
31479
|
return mean2.map((value) => value / length);
|
|
31466
31480
|
}, "meanOf");
|
|
31467
31481
|
|
|
31468
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
31469
31483
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
31470
31484
|
...embeddingsMaintenance(deps),
|
|
31471
31485
|
...embeddingsSearch(deps)
|
|
31472
31486
|
}), "embeddingsService");
|
|
31473
31487
|
|
|
31474
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31488
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
31475
31489
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
31476
31490
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
31477
31491
|
if (deps.offline)
|
|
@@ -31612,7 +31626,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
31612
31626
|
};
|
|
31613
31627
|
}, "foldersService");
|
|
31614
31628
|
|
|
31615
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31629
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
31616
31630
|
var REVIEW_COUNT = 500;
|
|
31617
31631
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
31618
31632
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -31691,7 +31705,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
31691
31705
|
};
|
|
31692
31706
|
}, "mentionsService");
|
|
31693
31707
|
|
|
31694
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31708
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
31695
31709
|
var invalid3 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
31696
31710
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
31697
31711
|
const { text: text2, spans } = formatted2;
|
|
@@ -31751,7 +31765,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
31751
31765
|
};
|
|
31752
31766
|
}, "visibleFormattedText");
|
|
31753
31767
|
|
|
31754
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31768
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
31755
31769
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
31756
31770
|
position,
|
|
31757
31771
|
kind,
|
|
@@ -31800,7 +31814,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
31800
31814
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
31801
31815
|
}, "validatePermalink");
|
|
31802
31816
|
|
|
31803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31817
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
31804
31818
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
31805
31819
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
31806
31820
|
return `${seconds / 86400}d`;
|
|
@@ -31832,7 +31846,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
31832
31846
|
return seconds;
|
|
31833
31847
|
}, "pinDurationOf");
|
|
31834
31848
|
|
|
31835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31849
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
31836
31850
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
31837
31851
|
if (sendAs === void 0) {
|
|
31838
31852
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -31857,7 +31871,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
31857
31871
|
return sendAs;
|
|
31858
31872
|
}, "typedSendAs");
|
|
31859
31873
|
|
|
31860
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
31861
31875
|
var TOTAL_CAP = 1e4;
|
|
31862
31876
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
31863
31877
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -31868,7 +31882,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
31868
31882
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
31869
31883
|
}, "totalOf");
|
|
31870
31884
|
|
|
31871
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31885
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
31872
31886
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
31873
31887
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
31874
31888
|
let narrows = false;
|
|
@@ -31897,7 +31911,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
31897
31911
|
return wanted(root).join(" ").trim();
|
|
31898
31912
|
}, "meaningWords");
|
|
31899
31913
|
|
|
31900
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31914
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
31901
31915
|
var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
31902
31916
|
var scaffolding = new Set(words2("what which how many much who where when is are was were do does did can could should we the a an for of to under from in on at has have \u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043A\u0430\u043A\u043E\u0439 \u043A\u0430\u043A\u0430\u044F \u043A\u0430\u043A\u0438\u0435 \u043A\u0430\u043A\u043E\u0435 \u043A\u0442\u043E \u043A\u043E\u043C\u0443 \u043A\u0435\u043C \u0433\u0434\u0435 \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043A \u0447\u0442\u043E \u0432\u043E \u043F\u043E \u043D\u0430 \u0432 \u043A \u0441 \u0443 \u0447\u0435\u0440\u0435\u0437 \u043B\u0438 \u0434\u043E\u043B\u0436\u0435\u043D \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0443\u0436\u043D\u043E \u0438\u0434\u0451\u0442 \u0438\u0434\u0435\u0442 \u043C\u043E\u0436\u043D\u043E \u043C\u043E\u0436\u0435\u0442 \u043C\u043E\u0433\u0443\u0442"));
|
|
31903
31917
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -32029,7 +32043,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
32029
32043
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
32030
32044
|
}, "questionLookup");
|
|
32031
32045
|
|
|
32032
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32046
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
32033
32047
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
32034
32048
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
32035
32049
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -32222,7 +32236,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
32222
32236
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage2 * 4 + proximity + phrase;
|
|
32223
32237
|
}, "signals");
|
|
32224
32238
|
|
|
32225
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32239
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
32226
32240
|
var MEANING_DEPTH = 100;
|
|
32227
32241
|
var RRF_K2 = 60;
|
|
32228
32242
|
var RERANK_DEPTH = 50;
|
|
@@ -32547,7 +32561,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
32547
32561
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
32548
32562
|
}, "mixedWithReranker");
|
|
32549
32563
|
|
|
32550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32564
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
32551
32565
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
32552
32566
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
32553
32567
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -32746,7 +32760,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
32746
32760
|
return result;
|
|
32747
32761
|
}, "readThreadContext");
|
|
32748
32762
|
|
|
32749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
32750
32764
|
var SEARCH_FILL_MS = 200;
|
|
32751
32765
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
32752
32766
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -32813,12 +32827,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
32813
32827
|
}, "accountOf");
|
|
32814
32828
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
32815
32829
|
|
|
32816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32830
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32817
32831
|
import { createHash as createHash10 } from "node:crypto";
|
|
32818
32832
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
32819
32833
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
32820
32834
|
|
|
32821
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
32822
32836
|
var GROUP_SETTINGS = [
|
|
32823
32837
|
"allCanPin",
|
|
32824
32838
|
"onlyAdminsAdd",
|
|
@@ -32832,7 +32846,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
32832
32846
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
32833
32847
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
32834
32848
|
|
|
32835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32849
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32836
32850
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
32837
32851
|
var PICTURE_FLOOR = 0.25;
|
|
32838
32852
|
var PAGE4 = 50;
|
|
@@ -32849,7 +32863,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
32849
32863
|
const directory2 = imageModelsDirectory(deps.env);
|
|
32850
32864
|
if (!isImageModelInstalled(model2, directory2))
|
|
32851
32865
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
32852
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
32866
|
+
const { openPictureEmbedder } = await import("./embedder-7BHRCXWL.js");
|
|
32853
32867
|
return openPictureEmbedder(model2, directory2);
|
|
32854
32868
|
}, "open");
|
|
32855
32869
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -33046,7 +33060,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
33046
33060
|
}, "search")
|
|
33047
33061
|
}), "withPictures");
|
|
33048
33062
|
|
|
33049
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33063
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
33050
33064
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
|
|
33051
33065
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
33052
33066
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -33114,7 +33128,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
33114
33128
|
}
|
|
33115
33129
|
}, "meaningLane");
|
|
33116
33130
|
|
|
33117
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33131
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
33118
33132
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
33119
33133
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
33120
33134
|
if (choice === "off")
|
|
@@ -33126,9 +33140,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
33126
33140
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
33127
33141
|
try {
|
|
33128
33142
|
const warm = deps.embedders;
|
|
33129
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
33143
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-XD5ZIFIL.js")).openRerankerProcess(model, directory2, {
|
|
33130
33144
|
threads: defaultThreads()
|
|
33131
|
-
})) : await (await import("./rerank-
|
|
33145
|
+
})) : await (await import("./rerank-ONBASQ5Z.js")).openReranker(model, directory2);
|
|
33132
33146
|
return {
|
|
33133
33147
|
model: model.id,
|
|
33134
33148
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -33148,17 +33162,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
33148
33162
|
};
|
|
33149
33163
|
}, "rerankLane");
|
|
33150
33164
|
|
|
33151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33165
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
33152
33166
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
33153
33167
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
33154
33168
|
const directory2 = imageModelsDirectory(env);
|
|
33155
33169
|
if (!isImageModelInstalled(model, directory2))
|
|
33156
33170
|
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 });
|
|
33157
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
33171
|
+
const { openPictureEmbedder } = await import("./embedder-7BHRCXWL.js");
|
|
33158
33172
|
return openPictureEmbedder(model, directory2);
|
|
33159
33173
|
}, "openPictureEmbedderFor");
|
|
33160
33174
|
|
|
33161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33175
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
33162
33176
|
var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) => {
|
|
33163
33177
|
const metadata = note2.frontMatter;
|
|
33164
33178
|
const account = accounts.find(({ id: id2 }) => String(id2) === note2.folderId);
|
|
@@ -33173,7 +33187,7 @@ var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) =
|
|
|
33173
33187
|
};
|
|
33174
33188
|
}, "documentSource");
|
|
33175
33189
|
|
|
33176
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
33177
33191
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
33178
33192
|
let root;
|
|
33179
33193
|
try {
|
|
@@ -33200,7 +33214,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
33200
33214
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
33201
33215
|
}, "titleTiers");
|
|
33202
33216
|
|
|
33203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33217
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
33204
33218
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
33205
33219
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
33206
33220
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -33479,13 +33493,13 @@ var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offs
|
|
|
33479
33493
|
meaningSkipped = error.message;
|
|
33480
33494
|
}
|
|
33481
33495
|
}
|
|
33482
|
-
const
|
|
33483
|
-
const titled =
|
|
33484
|
-
text: [titleQuery(
|
|
33496
|
+
const titleWords2 = plainQueryWords(rest);
|
|
33497
|
+
const titled = titleWords2 === void 0 ? { items: [], hasMore: false } : await searchNotesQuery(store, {
|
|
33498
|
+
text: [titleQuery(titleWords2), filter ?? ""].filter(Boolean).join(" AND "),
|
|
33485
33499
|
limit: Math.max(window3, CANDIDATES2),
|
|
33486
33500
|
...scope
|
|
33487
33501
|
});
|
|
33488
|
-
const tier =
|
|
33502
|
+
const tier = titleWords2 === void 0 ? [] : titleTiers(titled.items, titleWords2);
|
|
33489
33503
|
const tierRefs = new Set(tier.map(({ ref }) => ref));
|
|
33490
33504
|
const slice = meaning === void 0 && tier.length === 0;
|
|
33491
33505
|
const matched = await searchNotesQuery(store, {
|
|
@@ -33617,7 +33631,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
33617
33631
|
};
|
|
33618
33632
|
}, "searchNotesOf");
|
|
33619
33633
|
|
|
33620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33634
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
33621
33635
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
33622
33636
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
33623
33637
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -33734,8 +33748,8 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
33734
33748
|
};
|
|
33735
33749
|
}, "searchEvents");
|
|
33736
33750
|
|
|
33737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33738
|
-
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events"];
|
|
33751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
33752
|
+
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm"];
|
|
33739
33753
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
33740
33754
|
var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
33741
33755
|
const { root } = parseLucene(text2, MESSAGE_PARSING);
|
|
@@ -33743,6 +33757,15 @@ var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
|
33743
33757
|
const top = root.kind === "boolean" ? root.clauses : [{ node: root, occur: "must" }];
|
|
33744
33758
|
return top.every(({ node, occur }) => occur !== "must_not" && followable(node, occur === "must")) ? planQuestion(text2).scope : void 0;
|
|
33745
33759
|
}, "filtersBeside");
|
|
33760
|
+
var titleWords = /* @__PURE__ */ __name((text2) => {
|
|
33761
|
+
const { root } = parseLucene(text2, SEARCH_QUERY);
|
|
33762
|
+
const clauses = root.kind === "boolean" ? root.clauses : [{ node: root, occur: "must" }];
|
|
33763
|
+
const words3 = clauses.map(({ node, occur }) => occur !== "must_not" && node.kind === "predicate" && node.field === "text" && (node.operator === "term" || node.operator === "phrase") ? node.value : (() => {
|
|
33764
|
+
throw new CliError("validation_error", "deals and leads are found by the words of their title only");
|
|
33765
|
+
})());
|
|
33766
|
+
return { words: words3, anyWord: clauses.length > 1 && clauses.every(({ occur }) => occur === "should") };
|
|
33767
|
+
}, "titleWords");
|
|
33768
|
+
var crmAccounts = /* @__PURE__ */ __name(async (store) => (await store.accounts.accounts()).filter(({ provider }) => kindIn(provider) === "crm"), "crmAccounts");
|
|
33746
33769
|
var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, searchMessages = (query) => searchStore(store, account, query, messenger), meaning) => {
|
|
33747
33770
|
if (!request.text.trim())
|
|
33748
33771
|
throw new CliError("validation_error", "say what to find");
|
|
@@ -33921,6 +33944,29 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
33921
33944
|
foundBy: hit.found_by
|
|
33922
33945
|
})));
|
|
33923
33946
|
accounts.push(...read2.map(({ provider, account: account2 }) => ({ resource, provider, account: account2 })));
|
|
33947
|
+
} else if (resource === "crm") {
|
|
33948
|
+
const { words: words3, anyWord } = titleWords(request.text);
|
|
33949
|
+
const chosen = request.scope?.crm;
|
|
33950
|
+
const found = await store.deals.find({
|
|
33951
|
+
words: words3,
|
|
33952
|
+
anyWord: anyWord || discover,
|
|
33953
|
+
limit: Math.min(window3 + 1, 500),
|
|
33954
|
+
...chosen === void 0 ? {} : { accounts: chosen }
|
|
33955
|
+
});
|
|
33956
|
+
hasMore ||= found.length > window3;
|
|
33957
|
+
lists.push(found.slice(0, window3).map((deal) => ({
|
|
33958
|
+
kind: deal.kind,
|
|
33959
|
+
ref: deal.ref,
|
|
33960
|
+
provider: deal.account?.provider ?? "crm",
|
|
33961
|
+
account: deal.account?.account ?? INTERNAL_NOTES,
|
|
33962
|
+
title: deal.title,
|
|
33963
|
+
timestamp: deal.updatedAt,
|
|
33964
|
+
text: deal.summary,
|
|
33965
|
+
foundBy: ["title"]
|
|
33966
|
+
})));
|
|
33967
|
+
const read2 = chosen ?? [...await crmAccounts(store), { provider: "crm", account: INTERNAL_NOTES }];
|
|
33968
|
+
for (const { provider, account: account2 } of read2)
|
|
33969
|
+
accounts.push({ resource, provider, account: account2 });
|
|
33924
33970
|
} else
|
|
33925
33971
|
lists.push(await messagesOf(resource));
|
|
33926
33972
|
searched.push(resource);
|
|
@@ -33963,7 +34009,7 @@ var oneList = /* @__PURE__ */ __name((lists, cosines) => {
|
|
|
33963
34009
|
return [...place.values()].sort((a, b) => a.rank - b.rank || cosine(b.item.ref) - cosine(a.item.ref)).map(({ item: item2 }) => item2);
|
|
33964
34010
|
}, "oneList");
|
|
33965
34011
|
|
|
33966
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34012
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
33967
34013
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
33968
34014
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
33969
34015
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -34208,7 +34254,8 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
34208
34254
|
messages: named2("messages"),
|
|
34209
34255
|
mail: named2("mail"),
|
|
34210
34256
|
notes: named2("notes"),
|
|
34211
|
-
events: named2("events")
|
|
34257
|
+
events: named2("events"),
|
|
34258
|
+
crm: named2("crm")
|
|
34212
34259
|
},
|
|
34213
34260
|
...meetings[0] ? { meetingAccount: meetings[0] } : {}
|
|
34214
34261
|
}, messenger, searchMessages, meaning);
|
|
@@ -34216,7 +34263,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
34216
34263
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
34217
34264
|
}, "searchAllOfSource");
|
|
34218
34265
|
|
|
34219
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34266
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
34220
34267
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
34221
34268
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
34222
34269
|
var DEFAULT_BACKEND = "both";
|
|
@@ -34405,7 +34452,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
34405
34452
|
return { report, sources };
|
|
34406
34453
|
}, "searchServer");
|
|
34407
34454
|
|
|
34408
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34455
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
34409
34456
|
var DELETE_AT_ONCE = 10;
|
|
34410
34457
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
34411
34458
|
const files = fileLinks(attachments);
|
|
@@ -34846,7 +34893,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
34846
34893
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
34847
34894
|
}, "checkMediaOptions");
|
|
34848
34895
|
|
|
34849
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
34850
34897
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
34851
34898
|
var RULES = {
|
|
34852
34899
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -34861,7 +34908,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
34861
34908
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
34862
34909
|
}), "classifyChannel");
|
|
34863
34910
|
|
|
34864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
34865
34912
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
34866
34913
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
34867
34914
|
const store = await deps.store();
|
|
@@ -34947,7 +34994,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
34947
34994
|
};
|
|
34948
34995
|
}, "metadataService");
|
|
34949
34996
|
|
|
34950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34997
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
34951
34998
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
34952
34999
|
var LINK2 = /https?:\/\/\S+/i;
|
|
34953
35000
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -35135,7 +35182,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
35135
35182
|
}, "nextPoint");
|
|
35136
35183
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
35137
35184
|
|
|
35138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35185
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
35139
35186
|
import { existsSync, readFileSync as readFileSync2 } from "node:fs";
|
|
35140
35187
|
import { join as join11 } from "node:path";
|
|
35141
35188
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -35278,7 +35325,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
35278
35325
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
35279
35326
|
}, "assign");
|
|
35280
35327
|
|
|
35281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35328
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
35282
35329
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
35283
35330
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
35284
35331
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -35315,7 +35362,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
35315
35362
|
return { chatId, rows, notes };
|
|
35316
35363
|
}, "moderateWith");
|
|
35317
35364
|
|
|
35318
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35365
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
35319
35366
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
35320
35367
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
35321
35368
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -35393,7 +35440,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
35393
35440
|
}, "removePerson")
|
|
35394
35441
|
}), "moderatorOf");
|
|
35395
35442
|
|
|
35396
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35443
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
35397
35444
|
var noteItem = /* @__PURE__ */ __name((provider, note2) => ({
|
|
35398
35445
|
id: note2.id,
|
|
35399
35446
|
contact: formatReference({ type: "contact", provider, id: note2.personId }),
|
|
@@ -35437,7 +35484,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
35437
35484
|
};
|
|
35438
35485
|
}, "privatePeopleService");
|
|
35439
35486
|
|
|
35440
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35487
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
35441
35488
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
35442
35489
|
total: 0,
|
|
35443
35490
|
population: 0,
|
|
@@ -35693,7 +35740,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
35693
35740
|
}, "evidence")
|
|
35694
35741
|
}), "rankingsService");
|
|
35695
35742
|
|
|
35696
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35743
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
35697
35744
|
var FIELDS = ["date", "chat", "kind"];
|
|
35698
35745
|
var WAITING_TAIL = 100;
|
|
35699
35746
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -35820,7 +35867,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
35820
35867
|
};
|
|
35821
35868
|
}, "replyStatsService");
|
|
35822
35869
|
|
|
35823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35870
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
35824
35871
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
35825
35872
|
id: one.id,
|
|
35826
35873
|
name: one.name,
|
|
@@ -35949,7 +35996,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
35949
35996
|
};
|
|
35950
35997
|
}, "searchesService");
|
|
35951
35998
|
|
|
35952
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
35953
36000
|
var TAGGING_QUERY = {
|
|
35954
36001
|
entity: "tagging",
|
|
35955
36002
|
backend: "sql",
|
|
@@ -36033,7 +36080,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
36033
36080
|
};
|
|
36034
36081
|
}, "tagsService");
|
|
36035
36082
|
|
|
36036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36083
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
36037
36084
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
36038
36085
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
36039
36086
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -36232,7 +36279,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
36232
36279
|
};
|
|
36233
36280
|
}, "topicsService");
|
|
36234
36281
|
|
|
36235
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36282
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
36236
36283
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
36237
36284
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
36238
36285
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -36306,7 +36353,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
36306
36353
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
36307
36354
|
}, "prepareEvidencePacket");
|
|
36308
36355
|
|
|
36309
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36356
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
36310
36357
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
36311
36358
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
36312
36359
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -36326,7 +36373,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
36326
36373
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
36327
36374
|
}, "readEvidencePacket");
|
|
36328
36375
|
|
|
36329
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36376
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
36330
36377
|
var scopeKeys = [
|
|
36331
36378
|
"accountId",
|
|
36332
36379
|
"meetingId",
|
|
@@ -36348,7 +36395,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
36348
36395
|
"maxVocabularyReadBytes"
|
|
36349
36396
|
]);
|
|
36350
36397
|
|
|
36351
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
36352
36399
|
var communicationFields = {
|
|
36353
36400
|
sources: pipe(array(strictObject({
|
|
36354
36401
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -36380,7 +36427,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
36380
36427
|
return { ...input, after, before: before2 };
|
|
36381
36428
|
}, "communicationRequest");
|
|
36382
36429
|
|
|
36383
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
36384
36431
|
var MEETING_PREPARATION_LIMITS = {
|
|
36385
36432
|
meetings: { min: 1, max: 20, default: 5 },
|
|
36386
36433
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -36453,7 +36500,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
36453
36500
|
};
|
|
36454
36501
|
}, "validateMeetingPreparationRequest");
|
|
36455
36502
|
|
|
36456
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
36457
36504
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
36458
36505
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
36459
36506
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -36501,7 +36548,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
36501
36548
|
}
|
|
36502
36549
|
}, "validatePreparationCommunications");
|
|
36503
36550
|
|
|
36504
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36551
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
36505
36552
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
36506
36553
|
const installer = ports.installer();
|
|
36507
36554
|
const argv = updateCommand(installer, packageName);
|
|
@@ -36566,7 +36613,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
36566
36613
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
36567
36614
|
}, "dayAfter");
|
|
36568
36615
|
|
|
36569
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36616
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
36570
36617
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
36571
36618
|
const pictures = picturesService(deps);
|
|
36572
36619
|
const base = {
|
|
@@ -36603,7 +36650,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
36603
36650
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
36604
36651
|
}, "servicesFor");
|
|
36605
36652
|
|
|
36606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36653
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
36607
36654
|
import { createHash as createHash12 } from "node:crypto";
|
|
36608
36655
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync3, rmSync } from "node:fs";
|
|
36609
36656
|
import { createConnection, createServer } from "node:net";
|
|
@@ -36824,7 +36871,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
|
|
|
36824
36871
|
}, () => finish({ error: stopped() }));
|
|
36825
36872
|
}), "relayCommand");
|
|
36826
36873
|
|
|
36827
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.595.0_@wirecat+cli-base@0.80.3_commander@15.0.0_esbuild@0.28.2_type_2c96d170c489856a39cafd5889a9e4ba/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
36828
36875
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
36829
36876
|
close: /* @__PURE__ */ __name(async () => {
|
|
36830
36877
|
}, "close"),
|
|
@@ -37066,6 +37113,7 @@ export {
|
|
|
37066
37113
|
QUERY_ARGUMENT,
|
|
37067
37114
|
withQuery,
|
|
37068
37115
|
unfilteredQuery,
|
|
37116
|
+
commandPath,
|
|
37069
37117
|
listQuery,
|
|
37070
37118
|
typedQuery,
|
|
37071
37119
|
pageOf,
|