@wirecat/cli-template 0.16.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 +18 -0
- package/.github/workflows/release-pr.yml +37 -0
- package/CHANGELOG.md +14 -0
- package/bin/release +10 -3
- package/biome.json +6 -0
- package/contracts/plan.json +2 -1
- package/dist/bin/clidev.js +2 -2
- package/dist/bundle/{all-profiles-FS7AEOE7.js → all-profiles-CCT2XPJL.js} +7 -7
- package/dist/bundle/{anthropic-5RN7BGDI.js → anthropic-QLLP7EE4.js} +4 -4
- package/dist/bundle/{app-server-WGTKZQKJ.js → app-server-ELI5TGL7.js} +36 -36
- package/dist/bundle/{bun-ILPS6AYA.js → bun-C7JS2V7G.js} +2 -2
- package/dist/bundle/{bun-sqlite-WK2IGBGD.js → bun-sqlite-OM72TCYT.js} +3 -3
- package/dist/bundle/{chunk-ADFSSIV4.js → chunk-2Y5NBD7U.js} +4 -4
- package/dist/bundle/{chunk-7EUX7AZV.js → chunk-33JGD2CR.js} +3 -3
- package/dist/bundle/{chunk-JFXWLQ2L.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-6WOJIAYA.js → chunk-AKUMR7PE.js} +2 -2
- package/dist/bundle/{chunk-BPMKAZSS.js → chunk-ASO23RNM.js} +152 -79
- package/dist/bundle/{chunk-VOTEB3AN.js → chunk-AUVPTFUS.js} +1 -1
- package/dist/bundle/{chunk-JJZCPBH3.js → chunk-BOCIYBBO.js} +53 -44
- package/dist/bundle/{chunk-QGOOPPEW.js → chunk-BXZRTMXA.js} +5 -5
- package/dist/bundle/{chunk-SKBRW5U3.js → chunk-DVLM23HB.js} +2 -2
- package/dist/bundle/{chunk-YIVY2WI3.js → chunk-E4KQOKQ5.js} +1 -1
- package/dist/bundle/{chunk-ZSY4WAGI.js → chunk-EQDVQN4E.js} +299 -258
- package/dist/bundle/{chunk-RFJKNFVF.js → chunk-FF3AGTHY.js} +6 -6
- package/dist/bundle/{chunk-TXHCL75B.js → chunk-GG5PXNMH.js} +25 -22
- package/dist/bundle/{chunk-DEHBTFIC.js → chunk-GUCMIUNB.js} +2 -2
- package/dist/bundle/{chunk-RYOAQCVJ.js → chunk-HVAEHUSZ.js} +2 -2
- package/dist/bundle/{chunk-CTBHQRX6.js → chunk-ITPFCKCL.js} +13 -13
- package/dist/bundle/{chunk-Z5NL6YNU.js → chunk-J2RUBXCI.js} +6 -6
- package/dist/bundle/{chunk-7Z4HR6GO.js → chunk-KRXN3FV3.js} +1 -1
- package/dist/bundle/{chunk-OF56L2JU.js → chunk-LFLN6PVS.js} +4 -4
- package/dist/bundle/{chunk-YNROUY3R.js → chunk-LN53L2V5.js} +11 -11
- package/dist/bundle/{chunk-WDWP5N6M.js → chunk-MLSN3UP4.js} +26 -26
- package/dist/bundle/{chunk-3MDNAYQA.js → chunk-O6PBO4BU.js} +1 -1
- package/dist/bundle/{chunk-5KAYQKBK.js → chunk-QJS4WWYK.js} +63 -63
- package/dist/bundle/{chunk-EA3TMI4A.js → chunk-QLBS6OC2.js} +2362 -1225
- package/dist/bundle/{chunk-5HHIPDNW.js → chunk-QVPTZDRA.js} +2 -2
- package/dist/bundle/{chunk-OGTRPW2K.js → chunk-R5CPFSPI.js} +7 -7
- package/dist/bundle/{chunk-2MWNE4L3.js → chunk-R5IY4O25.js} +4 -4
- package/dist/bundle/{chunk-C3GNOEJP.js → chunk-RGKXMVOZ.js} +3 -3
- package/dist/bundle/{chunk-G45R7M42.js → chunk-RT46AWIH.js} +1 -1
- package/dist/bundle/{chunk-MEXT6XDP.js → chunk-RUHNHEAF.js} +3 -3
- package/dist/bundle/{chunk-ORV4EGNC.js → chunk-S465TCR3.js} +8 -8
- package/dist/bundle/{chunk-WM5AMTRY.js → chunk-SQKP6V4S.js} +27 -13
- package/dist/bundle/{chunk-VPCXYY46.js → chunk-SQOXYNKF.js} +1 -1
- package/dist/bundle/{chunk-NVPWZF67.js → chunk-URPKIONS.js} +8 -8
- package/dist/bundle/{chunk-HTYLT6ME.js → chunk-UW4PJZVJ.js} +282 -170
- package/dist/bundle/{chunk-ENDBOYQR.js → chunk-WKUJCPSP.js} +89 -45
- package/dist/bundle/{chunk-FMO6F5Q2.js → chunk-WQBBSVZM.js} +2 -2
- package/dist/bundle/{chunk-LRHX62ZF.js → chunk-WRLOK7XC.js} +3 -3
- package/dist/bundle/{chunk-MBBOINK4.js → chunk-X44ZT64I.js} +3 -3
- package/dist/bundle/{chunk-ATHZEV2Z.js → chunk-XKL5FRH3.js} +3 -3
- package/dist/bundle/{chunk-ETJXPB6A.js → chunk-XS56LIQ7.js} +4 -4
- package/dist/bundle/{chunk-3WDYHOAF.js → chunk-YIH3PYWJ.js} +1 -1
- package/dist/bundle/{chunk-EILS4BTQ.js → chunk-ZRNBKTPP.js} +26 -26
- package/dist/bundle/clidev.js +3 -3
- package/dist/bundle/{command-contract-ZDU73EPH.js → command-contract-RV5ZOEAT.js} +11 -11
- package/dist/bundle/{decode-QMLOGZ6R.js → decode-V7HNHZBC.js} +3 -3
- package/dist/bundle/{echarts-DRDGGHJT.js → echarts-Y42YP2OL.js} +2 -2
- package/dist/bundle/{embed-PIR2LJR2.js → embed-JSQZL7JF.js} +4 -4
- package/dist/bundle/{embedder-6KBRPAEQ.js → embedder-7BHRCXWL.js} +7 -7
- package/dist/bundle/{first-run-JO3CMY3Z.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-LIK6OYNF.js → node-sqlite-4F5NLRNT.js} +4 -4
- package/dist/bundle/{oauth-7FVF7HQQ.js → oauth-VDXNA3DK.js} +5 -5
- package/dist/bundle/{open-CRZDEATN.js → open-EUJRQQNS.js} +3 -3
- package/dist/bundle/{openai-WAJ6WREQ.js → openai-EIBV2K72.js} +12 -12
- package/dist/bundle/{process-YIQPKLZI.js → process-XD5ZIFIL.js} +1 -1
- package/dist/bundle/{program-ZFFFPBRS.js → program-TJTVMIOX.js} +866 -495
- package/dist/bundle/{prompt-QQIVHO3M.js → prompt-LYUZNHDK.js} +3 -3
- package/dist/bundle/{recognize-4KLBZDEC.js → recognize-LQMHLOD5.js} +2 -2
- package/dist/bundle/{remote-BABMZTHA.js → remote-34HUWSZI.js} +5 -5
- package/dist/bundle/{rerank-P3IQQJIL.js → rerank-ONBASQ5Z.js} +5 -5
- package/dist/bundle/{serve-25SSAKRZ.js → serve-UJ7FDYAM.js} +7 -7
- package/dist/bundle/{server-P4XUYY5A.js → server-GNT76BXM.js} +28 -28
- package/dist/bundle/server-J4YIXKMI.js +52 -0
- package/dist/bundle/{state-QCQALQBJ.js → state-IW5OO6IZ.js} +4 -4
- package/dist/bundle/{store-ZECPRGGH.js → store-55UB27H2.js} +12 -10
- package/dist/bundle/store-maintenance-command-BLDKUZ3L.js +42 -0
- package/dist/commands/session.js +1 -1
- package/dist/commands/session.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +1 -0
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/dev/skills/release/SKILL.md +9 -3
- package/docs/dev/skills/release/fresh-audit.md +1 -1
- package/kit/dist/new.js +1 -0
- package/package.json +4 -4
- package/src/commands/session.ts +1 -1
- package/src/program.ts +1 -0
- package/src/version.ts +1 -1
- package/dist/bundle/first-screen-3T5IXTFL.js +0 -26
- package/dist/bundle/server-G4GCDMYI.js +0 -52
- package/dist/bundle/store-maintenance-command-ECUO5G6L.js +0 -42
|
@@ -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) => {
|
|
@@ -17533,7 +17533,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
17533
17533
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
17534
17534
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
17535
17535
|
|
|
17536
|
-
// 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
|
|
17537
17537
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
17538
17538
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
17539
17539
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -17542,7 +17542,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
17542
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");
|
|
17543
17543
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
17544
17544
|
|
|
17545
|
-
// 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
|
|
17546
17546
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
17547
17547
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
17548
17548
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -17804,7 +17804,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
17804
17804
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
17805
17805
|
}), "sessionAnswer");
|
|
17806
17806
|
|
|
17807
|
-
// 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
|
|
17808
17808
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17809
17809
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17810
17810
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -17868,7 +17868,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
17868
17868
|
}), "storedDeps");
|
|
17869
17869
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
17870
17870
|
|
|
17871
|
-
// 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
|
|
17872
17872
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
17873
17873
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
17874
17874
|
if (key in own)
|
|
@@ -17885,12 +17885,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
17885
17885
|
return found.bind(adapter);
|
|
17886
17886
|
}, "capability");
|
|
17887
17887
|
|
|
17888
|
-
// 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
|
|
17889
17889
|
import { randomBytes } from "node:crypto";
|
|
17890
17890
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17891
17891
|
var newOperationId = newSendId;
|
|
17892
17892
|
|
|
17893
|
-
// 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
|
|
17894
17894
|
var LINKS = /https?:\/\/\S+/g;
|
|
17895
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");
|
|
17896
17896
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -17920,7 +17920,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
17920
17920
|
});
|
|
17921
17921
|
}, "questions");
|
|
17922
17922
|
|
|
17923
|
-
// 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
|
|
17924
17924
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
17925
17925
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
17926
17926
|
const name = typed.trim().toLowerCase();
|
|
@@ -17954,7 +17954,7 @@ var hitsByList = /* @__PURE__ */ __name((text2, categories) => {
|
|
|
17954
17954
|
const stem = stemmersOf();
|
|
17955
17955
|
const english = stem.english.stemTokens(text2);
|
|
17956
17956
|
const spanish = readsSpanish(text2) ? stem.spanish.stemTokens(text2) : [];
|
|
17957
|
-
const
|
|
17957
|
+
const counted2 = [];
|
|
17958
17958
|
for (const triggers of triggerStems(categories)) {
|
|
17959
17959
|
const hit = /* @__PURE__ */ new Set();
|
|
17960
17960
|
english.forEach((word, at) => {
|
|
@@ -17964,20 +17964,20 @@ var hitsByList = /* @__PURE__ */ __name((text2, categories) => {
|
|
|
17964
17964
|
else if (other !== void 0 && triggers.spanish.has(other))
|
|
17965
17965
|
hit.add(other);
|
|
17966
17966
|
});
|
|
17967
|
-
|
|
17967
|
+
counted2.push({ name: triggers.name, hits: hit.size });
|
|
17968
17968
|
}
|
|
17969
|
-
return
|
|
17969
|
+
return counted2;
|
|
17970
17970
|
}, "hitsByList");
|
|
17971
17971
|
var listsHit = /* @__PURE__ */ __name((text2, categories) => hitsByList(text2, categories).filter(({ hits }) => hits > 0).map(({ name }) => name), "listsHit");
|
|
17972
17972
|
var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGORIES) => {
|
|
17973
17973
|
let best = { name: FALLBACK_CATEGORY, hits: 0 };
|
|
17974
|
-
for (const
|
|
17975
|
-
if (
|
|
17976
|
-
best =
|
|
17974
|
+
for (const counted2 of hitsByList(text2, categories))
|
|
17975
|
+
if (counted2.hits > best.hits)
|
|
17976
|
+
best = counted2;
|
|
17977
17977
|
return best.name;
|
|
17978
17978
|
}, "categorize");
|
|
17979
17979
|
|
|
17980
|
-
// 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
|
|
17981
17981
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
17982
17982
|
var RULES_IN = {
|
|
17983
17983
|
dialog: "all",
|
|
@@ -18183,7 +18183,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
18183
18183
|
return passes;
|
|
18184
18184
|
}, "applyTaskRulesToChats");
|
|
18185
18185
|
|
|
18186
|
-
// 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
|
|
18187
18187
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
18188
18188
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
18189
18189
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -18223,7 +18223,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
18223
18223
|
};
|
|
18224
18224
|
}, "dateWindow");
|
|
18225
18225
|
|
|
18226
|
-
// 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
|
|
18227
18227
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18228
18228
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18229
18229
|
var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
@@ -18246,10 +18246,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note2, stop) => {
|
|
|
18246
18246
|
}
|
|
18247
18247
|
}, "patiently");
|
|
18248
18248
|
|
|
18249
|
-
// 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
|
|
18250
18250
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18251
18251
|
|
|
18252
|
-
// 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
|
|
18253
18253
|
var REQUEST_MS = 400;
|
|
18254
18254
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18255
18255
|
const lowest = ranges[0];
|
|
@@ -18272,13 +18272,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18272
18272
|
};
|
|
18273
18273
|
}, "estimateBackfill");
|
|
18274
18274
|
|
|
18275
|
-
// 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
|
|
18276
18276
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18277
18277
|
...error,
|
|
18278
18278
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18279
18279
|
}), "withRecovery");
|
|
18280
18280
|
|
|
18281
|
-
// 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
|
|
18282
18282
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18283
18283
|
if (isCliFailure(error))
|
|
18284
18284
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18361,7 +18361,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18361
18361
|
};
|
|
18362
18362
|
}, "mergeBatches");
|
|
18363
18363
|
|
|
18364
|
-
// 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
|
|
18365
18365
|
var TAKES = {
|
|
18366
18366
|
chat: "a chat: chat:<provider>/<account>/<chat>, its id or its title",
|
|
18367
18367
|
message: "a message: msg:<provider>/<account>/<chat>/<message>, or a chat and the message's id"
|
|
@@ -18421,7 +18421,7 @@ var ensureAccount = /* @__PURE__ */ __name(async (reference, scope, profilesOn)
|
|
|
18421
18421
|
throw wrongAccount(reference, scope, profiles);
|
|
18422
18422
|
}, "ensureAccount");
|
|
18423
18423
|
|
|
18424
|
-
// 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
|
|
18425
18425
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
18426
18426
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase(), "foldName");
|
|
18427
18427
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -18466,7 +18466,7 @@ ${lines3}`, { candidates });
|
|
|
18466
18466
|
}, "ambiguous");
|
|
18467
18467
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
18468
18468
|
|
|
18469
|
-
// 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
|
|
18470
18470
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18471
18471
|
if (deps.reads !== "store")
|
|
18472
18472
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18625,7 +18625,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18625
18625
|
}
|
|
18626
18626
|
}, "senderAmong");
|
|
18627
18627
|
|
|
18628
|
-
// 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
|
|
18629
18629
|
var CONTEXT_MESSAGES = 3;
|
|
18630
18630
|
var CONTEXT_MINUTES = 10;
|
|
18631
18631
|
var MAX_CHARS = 1200;
|
|
@@ -18649,12 +18649,12 @@ var context = {
|
|
|
18649
18649
|
}, "describe")
|
|
18650
18650
|
};
|
|
18651
18651
|
|
|
18652
|
-
// 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
|
|
18653
18653
|
var BUILT_INS = [context];
|
|
18654
18654
|
var providers = [...BUILT_INS];
|
|
18655
18655
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18656
18656
|
|
|
18657
|
-
// 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
|
|
18658
18658
|
var READ_PAGE = 5e3;
|
|
18659
18659
|
var CHAIN = 50;
|
|
18660
18660
|
var CONVERSATION_QUERY = {
|
|
@@ -18806,7 +18806,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
18806
18806
|
return size2;
|
|
18807
18807
|
}, "sized");
|
|
18808
18808
|
|
|
18809
|
-
// 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
|
|
18810
18810
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
18811
18811
|
var MESSAGE_PAGE = 5e3;
|
|
18812
18812
|
var PER_SESSION = 8;
|
|
@@ -18825,7 +18825,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18825
18825
|
price: remote.price,
|
|
18826
18826
|
installed: true,
|
|
18827
18827
|
perBatch: PER_REQUEST * concurrency,
|
|
18828
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
18828
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-34HUWSZI.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
18829
18829
|
};
|
|
18830
18830
|
}
|
|
18831
18831
|
const model = textModel(choice);
|
|
@@ -18842,7 +18842,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18842
18842
|
if (!isTextModelInstalled(model, directory2))
|
|
18843
18843
|
throw notDownloaded(model.id);
|
|
18844
18844
|
if (apart) {
|
|
18845
|
-
const { openProcess } = await import("./process-
|
|
18845
|
+
const { openProcess } = await import("./process-XD5ZIFIL.js");
|
|
18846
18846
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
18847
18847
|
}
|
|
18848
18848
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -19131,7 +19131,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
19131
19131
|
return { ...one, state };
|
|
19132
19132
|
}, "shaped");
|
|
19133
19133
|
|
|
19134
|
-
// 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
|
|
19135
19135
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
19136
19136
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
19137
19137
|
for (const [key, value, maximum] of [
|
|
@@ -19184,7 +19184,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
19184
19184
|
}
|
|
19185
19185
|
}, "catchUpSearch");
|
|
19186
19186
|
|
|
19187
|
-
// 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
|
|
19188
19188
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
19189
19189
|
if (deps.reads === "store") {
|
|
19190
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`);
|
|
@@ -19550,7 +19550,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19550
19550
|
return message?.timestamp ?? fallback;
|
|
19551
19551
|
}, "timeOfKey");
|
|
19552
19552
|
|
|
19553
|
-
// 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
|
|
19554
19554
|
var DAY_MS = 864e5;
|
|
19555
19555
|
var NEW_DAYS = 30;
|
|
19556
19556
|
var SAME_TEXT_MIN = 20;
|
|
@@ -19627,7 +19627,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
19627
19627
|
};
|
|
19628
19628
|
}, "scorePerson");
|
|
19629
19629
|
|
|
19630
|
-
// 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
|
|
19631
19631
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
19632
19632
|
const controller = new AbortController();
|
|
19633
19633
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -19643,7 +19643,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run) => {
|
|
|
19643
19643
|
}
|
|
19644
19644
|
}, "withTimeLimit");
|
|
19645
19645
|
|
|
19646
|
-
// 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
|
|
19647
19647
|
var REGISTRIES = {
|
|
19648
19648
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
19649
19649
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -19730,7 +19730,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
19730
19730
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
19731
19731
|
})), "notCovered");
|
|
19732
19732
|
|
|
19733
|
-
// 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
|
|
19734
19734
|
var ACTIVITY_MESSAGES = 1e3;
|
|
19735
19735
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
19736
19736
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -19818,7 +19818,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
19818
19818
|
};
|
|
19819
19819
|
}, "botCheckService");
|
|
19820
19820
|
|
|
19821
|
-
// 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
|
|
19822
19822
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
19823
19823
|
if (value === void 0)
|
|
19824
19824
|
return void 0;
|
|
@@ -19828,7 +19828,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
19828
19828
|
return id2;
|
|
19829
19829
|
}, "threadIdOf");
|
|
19830
19830
|
|
|
19831
|
-
// 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
|
|
19832
19832
|
var TOP_POSTS = 5;
|
|
19833
19833
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
19834
19834
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -19945,7 +19945,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
19945
19945
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
19946
19946
|
}, "median");
|
|
19947
19947
|
|
|
19948
|
-
// 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
|
|
19949
19949
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
19950
19950
|
const events = [];
|
|
19951
19951
|
for (const stay of stays) {
|
|
@@ -19977,7 +19977,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
19977
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));
|
|
19978
19978
|
}, "memberEvents");
|
|
19979
19979
|
|
|
19980
|
-
// 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
|
|
19981
19981
|
var EVENTS_DAYS = 7;
|
|
19982
19982
|
var TRACKED_DAYS = 30;
|
|
19983
19983
|
var STATS_PAGE = 1e3;
|
|
@@ -20095,8 +20095,8 @@ var chatsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
20095
20095
|
});
|
|
20096
20096
|
const counts = await store.roster.memberCounts(chatId, { since: new Date(from).toISOString().slice(0, 10) });
|
|
20097
20097
|
const known2 = unrecorded ? { ...stats, complete: false, membersUnrecorded: true } : stats;
|
|
20098
|
-
const
|
|
20099
|
-
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}`) };
|
|
20100
20100
|
}, "stats"),
|
|
20101
20101
|
sendAs: /* @__PURE__ */ __name(async (chat) => {
|
|
20102
20102
|
if (deps.offline) {
|
|
@@ -20272,7 +20272,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20272
20272
|
return members.length === 0 ? null : members;
|
|
20273
20273
|
}, "storedMembers");
|
|
20274
20274
|
|
|
20275
|
-
// 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
|
|
20276
20276
|
var INBOX_CHATS = 20;
|
|
20277
20277
|
var REVIEW_DAYS = 3;
|
|
20278
20278
|
var UNANSWERED_HOURS = 24;
|
|
@@ -20480,7 +20480,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20480
20480
|
};
|
|
20481
20481
|
}, "inboxService");
|
|
20482
20482
|
|
|
20483
|
-
// 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
|
|
20484
20484
|
var CONTEXT_MESSAGES2 = 10;
|
|
20485
20485
|
var CONTEXT_BYTES = 64 * 1024;
|
|
20486
20486
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -20741,10 +20741,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
20741
20741
|
};
|
|
20742
20742
|
}, "personMessages");
|
|
20743
20743
|
|
|
20744
|
-
// 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
|
|
20745
20745
|
import { createHash } from "node:crypto";
|
|
20746
20746
|
|
|
20747
|
-
// 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
|
|
20748
20748
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
20749
20749
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
20750
20750
|
const parsed = parseMeetingReference(reference);
|
|
@@ -20762,7 +20762,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
20762
20762
|
return { parsed, meeting };
|
|
20763
20763
|
}, "authorizedMeetingMetadata");
|
|
20764
20764
|
|
|
20765
|
-
// 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
|
|
20766
20766
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
20767
20767
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
20768
20768
|
if (signal?.aborted)
|
|
@@ -20961,7 +20961,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
20961
20961
|
return { ...packet, fingerprint: hash(packet) };
|
|
20962
20962
|
}, "readMeetingEvidence");
|
|
20963
20963
|
|
|
20964
|
-
// 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
|
|
20965
20965
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
20966
20966
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
20967
20967
|
const requestedAccounts = options.accountIds;
|
|
@@ -21060,7 +21060,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
21060
21060
|
};
|
|
21061
21061
|
}, "personMeetingContext");
|
|
21062
21062
|
|
|
21063
|
-
// 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
|
|
21064
21064
|
var PREPARE_BYTES = 96 * 1024;
|
|
21065
21065
|
var MEETINGS = 5;
|
|
21066
21066
|
var CUES = 3;
|
|
@@ -21177,7 +21177,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
21177
21177
|
}
|
|
21178
21178
|
}, "meetingsOf");
|
|
21179
21179
|
|
|
21180
|
-
// 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
|
|
21181
21181
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
21182
21182
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
21183
21183
|
const held = await storeIfOpen(deps);
|
|
@@ -21247,7 +21247,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
21247
21247
|
complete: false
|
|
21248
21248
|
})), "quiet");
|
|
21249
21249
|
|
|
21250
|
-
// 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
|
|
21251
21251
|
var TIMELINE_ITEMS = 50;
|
|
21252
21252
|
var TIMELINE_MAX = 500;
|
|
21253
21253
|
var SCOPES = ["personal", "work"];
|
|
@@ -21302,7 +21302,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
21302
21302
|
};
|
|
21303
21303
|
}, "personTimeline");
|
|
21304
21304
|
|
|
21305
|
-
// 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
|
|
21306
21306
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
21307
21307
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
21308
21308
|
const held = await storeIfOpen(deps);
|
|
@@ -21529,10 +21529,10 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
21529
21529
|
return rest;
|
|
21530
21530
|
}, "withoutPhone");
|
|
21531
21531
|
|
|
21532
|
-
// 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
|
|
21533
21533
|
var MAX_BYTES = 16 * 1024 * 1024;
|
|
21534
21534
|
|
|
21535
|
-
// 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
|
|
21536
21536
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
21537
21537
|
var PERIOD_FIELD = "created";
|
|
21538
21538
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -21635,7 +21635,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
21635
21635
|
}));
|
|
21636
21636
|
}, "meetingNames");
|
|
21637
21637
|
|
|
21638
|
-
// 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
|
|
21639
21639
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
21640
21640
|
const tags = /* @__PURE__ */ new Map();
|
|
21641
21641
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -21644,7 +21644,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
21644
21644
|
return tags;
|
|
21645
21645
|
}, "taskTagFilters");
|
|
21646
21646
|
|
|
21647
|
-
// 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
|
|
21648
21648
|
var TASK_QUERY = {
|
|
21649
21649
|
entity: "task",
|
|
21650
21650
|
backend: "sql",
|
|
@@ -22136,7 +22136,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
22136
22136
|
};
|
|
22137
22137
|
}, "taskView");
|
|
22138
22138
|
|
|
22139
|
-
// 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
|
|
22140
22140
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
22141
22141
|
if (newest === null)
|
|
22142
22142
|
return null;
|
|
@@ -22145,7 +22145,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
22145
22145
|
return newest.addressed ? "owed" : null;
|
|
22146
22146
|
}, "mailTurn");
|
|
22147
22147
|
|
|
22148
|
-
// 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
|
|
22149
22149
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
22150
22150
|
if (error instanceof CliError && error.code === "not_found")
|
|
22151
22151
|
return void 0;
|
|
@@ -22203,7 +22203,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
22203
22203
|
};
|
|
22204
22204
|
}, "mailActivity");
|
|
22205
22205
|
|
|
22206
|
-
// 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
|
|
22207
22207
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
22208
22208
|
const ids = [...new Set(chatIds)];
|
|
22209
22209
|
if (ids.length === 0)
|
|
@@ -22229,7 +22229,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
22229
22229
|
}));
|
|
22230
22230
|
}, "chatCoverage");
|
|
22231
22231
|
|
|
22232
|
-
// 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
|
|
22233
22233
|
var DAY = 864e5;
|
|
22234
22234
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
22235
22235
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -22476,7 +22476,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
22476
22476
|
};
|
|
22477
22477
|
}, "agendaItem");
|
|
22478
22478
|
|
|
22479
|
-
// 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
|
|
22480
22480
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
22481
22481
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
22482
22482
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -22540,7 +22540,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
22540
22540
|
}
|
|
22541
22541
|
}, "validateContextEvidencePage");
|
|
22542
22542
|
|
|
22543
|
-
// 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
|
|
22544
22544
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
22545
22545
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
22546
22546
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -22593,7 +22593,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
22593
22593
|
};
|
|
22594
22594
|
}, "contextReadBudget");
|
|
22595
22595
|
|
|
22596
|
-
// 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
|
|
22597
22597
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
22598
22598
|
if (!port || typeof port.read !== "function")
|
|
22599
22599
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -22637,7 +22637,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
22637
22637
|
};
|
|
22638
22638
|
}, "createContextEvidenceReader");
|
|
22639
22639
|
|
|
22640
|
-
// 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
|
|
22641
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");
|
|
22642
22642
|
var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) => {
|
|
22643
22643
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -22653,7 +22653,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) =
|
|
|
22653
22653
|
}, "excerpt");
|
|
22654
22654
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
22655
22655
|
|
|
22656
|
-
// 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
|
|
22657
22657
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
22658
22658
|
var DEFAULT_PURPOSES = ["work"];
|
|
22659
22659
|
var LINK_PURPOSE = "work";
|
|
@@ -22683,7 +22683,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
22683
22683
|
...value.split(",").map((one) => one.trim()).filter(Boolean)
|
|
22684
22684
|
], "purposeList");
|
|
22685
22685
|
|
|
22686
|
-
// 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
|
|
22687
22687
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
22688
22688
|
async around(ref, window3) {
|
|
22689
22689
|
const at = parseLocator(ref);
|
|
@@ -22778,7 +22778,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
22778
22778
|
};
|
|
22779
22779
|
}, "storedNeighbours");
|
|
22780
22780
|
|
|
22781
|
-
// 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
|
|
22782
22782
|
import { createHash as createHash2 } from "node:crypto";
|
|
22783
22783
|
var DAY2 = 864e5;
|
|
22784
22784
|
var MAX_TIME = 864e13;
|
|
@@ -23094,7 +23094,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
23094
23094
|
return value;
|
|
23095
23095
|
}, "decodeCheckpoint");
|
|
23096
23096
|
|
|
23097
|
-
// 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
|
|
23098
23098
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
23099
23099
|
var PAGE2 = 20;
|
|
23100
23100
|
var PEOPLE = 20;
|
|
@@ -23498,7 +23498,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
23498
23498
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
23499
23499
|
}, "peopleOf");
|
|
23500
23500
|
|
|
23501
|
-
// 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
|
|
23502
23502
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
23503
23503
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
23504
23504
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -23542,7 +23542,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
23542
23542
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
23543
23543
|
}, "matchVocabularyTerms");
|
|
23544
23544
|
|
|
23545
|
-
// 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
|
|
23546
23546
|
var KINDS = ["project", "tag", "topic"];
|
|
23547
23547
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
23548
23548
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -23597,7 +23597,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
23597
23597
|
};
|
|
23598
23598
|
}, "findEvidenceMentions");
|
|
23599
23599
|
|
|
23600
|
-
// 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
|
|
23601
23601
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
23602
23602
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
23603
23603
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -23865,7 +23865,7 @@ var gatherStoredProject = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
23865
23865
|
const leftOut = [];
|
|
23866
23866
|
for (const one of all.filter((chat) => !purposeRead(purposes, chat.purpose))) {
|
|
23867
23867
|
const account = { provider: one.provider, account: one.account };
|
|
23868
|
-
const [
|
|
23868
|
+
const [counted2, [held]] = await Promise.all([
|
|
23869
23869
|
count4(account, one.chat, { since: gathered.window.after, until: gathered.window.before }),
|
|
23870
23870
|
chatCoverage(store, account, [one.chat])
|
|
23871
23871
|
]);
|
|
@@ -23878,7 +23878,7 @@ var gatherStoredProject = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
23878
23878
|
purpose: one.purpose ?? LINK_PURPOSE,
|
|
23879
23879
|
relationship: one.relationship,
|
|
23880
23880
|
...one.proposed ? { proposed: one.proposed } : {},
|
|
23881
|
-
...
|
|
23881
|
+
...counted2
|
|
23882
23882
|
});
|
|
23883
23883
|
}
|
|
23884
23884
|
return {
|
|
@@ -23903,18 +23903,18 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
23903
23903
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
23904
23904
|
}, "purposeHintOf");
|
|
23905
23905
|
|
|
23906
|
-
// 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
|
|
23907
23907
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
23908
23908
|
|
|
23909
|
-
// 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
|
|
23910
23910
|
import { lstat } from "node:fs/promises";
|
|
23911
23911
|
|
|
23912
|
-
// 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
|
|
23913
23913
|
import { createHash as createHash4, randomUUID as randomUUID2 } from "node:crypto";
|
|
23914
23914
|
import { open as open2, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
23915
23915
|
import { join as join2 } from "node:path";
|
|
23916
23916
|
|
|
23917
|
-
// 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
|
|
23918
23918
|
import { createHash as createHash3 } from "node:crypto";
|
|
23919
23919
|
var metadataLimit = 16384;
|
|
23920
23920
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -23974,7 +23974,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
23974
23974
|
}
|
|
23975
23975
|
}, "readPartialMetadata");
|
|
23976
23976
|
|
|
23977
|
-
// 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
|
|
23978
23978
|
import { randomUUID } from "node:crypto";
|
|
23979
23979
|
import { open, rename, unlink } from "node:fs/promises";
|
|
23980
23980
|
import { join } from "node:path";
|
|
@@ -24066,7 +24066,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
24066
24066
|
};
|
|
24067
24067
|
}, "partialWriter");
|
|
24068
24068
|
|
|
24069
|
-
// 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
|
|
24070
24070
|
var NativeRecordingPartialStore = class {
|
|
24071
24071
|
static {
|
|
24072
24072
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -24173,12 +24173,12 @@ var NativeRecordingPartialStore = class {
|
|
|
24173
24173
|
}
|
|
24174
24174
|
};
|
|
24175
24175
|
|
|
24176
|
-
// 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
|
|
24177
24177
|
import { createHash as createHash5 } from "node:crypto";
|
|
24178
24178
|
import { link as link2 } from "node:fs/promises";
|
|
24179
24179
|
import { basename, dirname, join as join4, resolve } from "node:path";
|
|
24180
24180
|
|
|
24181
|
-
// 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
|
|
24182
24182
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
24183
24183
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
24184
24184
|
signal?.throwIfAborted();
|
|
@@ -24213,7 +24213,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
24213
24213
|
signal?.throwIfAborted();
|
|
24214
24214
|
}, "commitPublication");
|
|
24215
24215
|
|
|
24216
|
-
// 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
|
|
24217
24217
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
24218
24218
|
import { open as open3, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
24219
24219
|
import { join as join3 } from "node:path";
|
|
@@ -24286,7 +24286,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
24286
24286
|
}
|
|
24287
24287
|
}, "writePublicationJournal");
|
|
24288
24288
|
|
|
24289
|
-
// 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
|
|
24290
24290
|
var NativeRecordingPublication = class {
|
|
24291
24291
|
static {
|
|
24292
24292
|
__name(this, "NativeRecordingPublication");
|
|
@@ -24359,7 +24359,7 @@ var NativeRecordingPublication = class {
|
|
|
24359
24359
|
}
|
|
24360
24360
|
};
|
|
24361
24361
|
|
|
24362
|
-
// 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
|
|
24363
24363
|
import { createHash as createHash6 } from "node:crypto";
|
|
24364
24364
|
import { readdir } from "node:fs/promises";
|
|
24365
24365
|
import { isAbsolute, join as join5, resolve as resolve2 } from "node:path";
|
|
@@ -24446,7 +24446,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
24446
24446
|
beforePublish
|
|
24447
24447
|
}), "commitMediaEntry");
|
|
24448
24448
|
|
|
24449
|
-
// 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
|
|
24450
24450
|
var validator = '"media-completed-v1"';
|
|
24451
24451
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
24452
24452
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -24547,7 +24547,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
24547
24547
|
return entry;
|
|
24548
24548
|
}, "archiveMediaFile");
|
|
24549
24549
|
|
|
24550
|
-
// 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
|
|
24551
24551
|
import { mkdir, realpath } from "node:fs/promises";
|
|
24552
24552
|
import { join as join6, resolve as resolve3 } from "node:path";
|
|
24553
24553
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -24614,7 +24614,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
24614
24614
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
24615
24615
|
}, "withMediaArchiveLocks");
|
|
24616
24616
|
|
|
24617
|
-
// 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
|
|
24618
24618
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
24619
24619
|
if (value === void 0)
|
|
24620
24620
|
return void 0;
|
|
@@ -24767,7 +24767,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
24767
24767
|
}, { create: true });
|
|
24768
24768
|
}, "archiveMedia");
|
|
24769
24769
|
|
|
24770
|
-
// 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
|
|
24771
24771
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
24772
24772
|
import { basename as basename2, dirname as dirname2, join as join7, resolve as resolve4 } from "node:path";
|
|
24773
24773
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -24920,7 +24920,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
24920
24920
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
24921
24921
|
}, "moveMediaArchive");
|
|
24922
24922
|
|
|
24923
|
-
// 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
|
|
24924
24924
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
24925
24925
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
24926
24926
|
}, "progress") }) => {
|
|
@@ -24943,7 +24943,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
24943
24943
|
}
|
|
24944
24944
|
await nativeRuntime({ env, progress });
|
|
24945
24945
|
progress(`${model.id}: loading it once to check it works`);
|
|
24946
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
24946
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-JSQZL7JF.js");
|
|
24947
24947
|
const embedder = await openEmbedder2(model, directory2);
|
|
24948
24948
|
try {
|
|
24949
24949
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -24964,7 +24964,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
24964
24964
|
}
|
|
24965
24965
|
await nativeRuntime({ env, progress });
|
|
24966
24966
|
progress(`${model.id}: loading it once to check it works`);
|
|
24967
|
-
const { openReranker } = await import("./rerank-
|
|
24967
|
+
const { openReranker } = await import("./rerank-ONBASQ5Z.js");
|
|
24968
24968
|
const reranker = await openReranker(model, directory2);
|
|
24969
24969
|
try {
|
|
24970
24970
|
await reranker.score("check", ["check"]);
|
|
@@ -24982,7 +24982,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
24982
24982
|
await installFiles(placedImage(model, directory2), { progress });
|
|
24983
24983
|
}
|
|
24984
24984
|
progress(`${model.id}: loading it once to check it works`);
|
|
24985
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
24985
|
+
const { openPictureEmbedder } = await import("./embedder-7BHRCXWL.js");
|
|
24986
24986
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
24987
24987
|
try {
|
|
24988
24988
|
const vector = await embedder.embedQuery("check");
|
|
@@ -24994,7 +24994,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
24994
24994
|
return { model, directory: directory2 };
|
|
24995
24995
|
}, "downloadImageModel");
|
|
24996
24996
|
|
|
24997
|
-
// 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
|
|
24998
24998
|
var MONEY_REQUEST = "money-request";
|
|
24999
24999
|
var MONEY_DONE = "money-done";
|
|
25000
25000
|
var PROMISE = "promise";
|
|
@@ -25028,10 +25028,10 @@ var MONEY_WORDS = [
|
|
|
25028
25028
|
}
|
|
25029
25029
|
];
|
|
25030
25030
|
|
|
25031
|
-
// 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
|
|
25032
25032
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
25033
25033
|
|
|
25034
|
-
// 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
|
|
25035
25035
|
var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
25036
25036
|
var MONEY_DONE_FORMS = words([
|
|
25037
25037
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -25071,7 +25071,7 @@ var PROMISE_FORMS = words([
|
|
|
25071
25071
|
"estar\xE1 listo"
|
|
25072
25072
|
]);
|
|
25073
25073
|
|
|
25074
|
-
// 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
|
|
25075
25075
|
var EXCERPT_CHARS = 80;
|
|
25076
25076
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
25077
25077
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -25093,7 +25093,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
25093
25093
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
25094
25094
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
25095
25095
|
|
|
25096
|
-
// 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
|
|
25097
25097
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
25098
25098
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
25099
25099
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -25133,10 +25133,10 @@ var rowsOf = /* @__PURE__ */ __name((chat) => chat.messages.flatMap((message) =>
|
|
|
25133
25133
|
var centsText = /* @__PURE__ */ __name((cents) => `${Math.floor(cents / 100)}.${String(cents % 100).padStart(2, "0")}`, "centsText");
|
|
25134
25134
|
var amounts = {
|
|
25135
25135
|
id: "amounts",
|
|
25136
|
-
version:
|
|
25136
|
+
version: 3,
|
|
25137
25137
|
scope: "chat",
|
|
25138
|
-
read: /* @__PURE__ */ __name(async (
|
|
25139
|
-
if (!chat)
|
|
25138
|
+
read: /* @__PURE__ */ __name(async (context2, chat) => {
|
|
25139
|
+
if (!chat || context2.books)
|
|
25140
25140
|
return [];
|
|
25141
25141
|
const groups = /* @__PURE__ */ new Map();
|
|
25142
25142
|
for (const row of rowsOf(chat)) {
|
|
@@ -25149,7 +25149,8 @@ var amounts = {
|
|
|
25149
25149
|
const lastAsk = asks.at(-1);
|
|
25150
25150
|
const first2 = asks[0] ?? done2[0] ?? rows[0];
|
|
25151
25151
|
const paidAfter = done2.some((row) => !lastAsk || Date.parse(row.message.timestamp) >= Date.parse(lastAsk.message.timestamp));
|
|
25152
|
-
const
|
|
25152
|
+
const paid2 = asks.length ? paidAfter : done2.length > 0;
|
|
25153
|
+
const state = paid2 ? "paid-mentioned" : asks.length ? "asked" : "mentioned";
|
|
25153
25154
|
const cited = asks.length ? [...asks, ...paidAfter ? done2.slice(-1) : []] : rows;
|
|
25154
25155
|
return {
|
|
25155
25156
|
signal: "amounts",
|
|
@@ -25170,10 +25171,10 @@ var amounts = {
|
|
|
25170
25171
|
};
|
|
25171
25172
|
});
|
|
25172
25173
|
}, "read"),
|
|
25173
|
-
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")
|
|
25174
25175
|
};
|
|
25175
25176
|
|
|
25176
|
-
// 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
|
|
25177
25178
|
var children = {
|
|
25178
25179
|
id: "children",
|
|
25179
25180
|
version: 1,
|
|
@@ -25202,7 +25203,7 @@ var children = {
|
|
|
25202
25203
|
}, "read")
|
|
25203
25204
|
};
|
|
25204
25205
|
|
|
25205
|
-
// 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
|
|
25206
25207
|
var coverage = {
|
|
25207
25208
|
id: "coverage",
|
|
25208
25209
|
version: 1,
|
|
@@ -25231,7 +25232,7 @@ var coverage = {
|
|
|
25231
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")
|
|
25232
25233
|
};
|
|
25233
25234
|
|
|
25234
|
-
// 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
|
|
25235
25236
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
25236
25237
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
25237
25238
|
signal: "payments",
|
|
@@ -25281,7 +25282,7 @@ var payments = {
|
|
|
25281
25282
|
}, "read")
|
|
25282
25283
|
};
|
|
25283
25284
|
|
|
25284
|
-
// 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
|
|
25285
25286
|
var PATTERNS_PER_CHAT = 3;
|
|
25286
25287
|
var DAY3 = 864e5;
|
|
25287
25288
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -25370,7 +25371,7 @@ var promises = {
|
|
|
25370
25371
|
}, "read")
|
|
25371
25372
|
};
|
|
25372
25373
|
|
|
25373
|
-
// 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
|
|
25374
25375
|
var PER_SIDE = 5;
|
|
25375
25376
|
var WEEK = 7 * 864e5;
|
|
25376
25377
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -25401,7 +25402,7 @@ var questions2 = {
|
|
|
25401
25402
|
}, "attention")
|
|
25402
25403
|
};
|
|
25403
25404
|
|
|
25404
|
-
// 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
|
|
25405
25406
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
25406
25407
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one) => one.id === id2), "byId");
|
|
25407
25408
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -25469,7 +25470,7 @@ var replyNext = {
|
|
|
25469
25470
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
25470
25471
|
};
|
|
25471
25472
|
|
|
25472
|
-
// 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
|
|
25473
25474
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
25474
25475
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
25475
25476
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -25515,7 +25516,7 @@ var topics = {
|
|
|
25515
25516
|
}, "read")
|
|
25516
25517
|
};
|
|
25517
25518
|
|
|
25518
|
-
// 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
|
|
25519
25520
|
var STATUS_SIGNALS = [
|
|
25520
25521
|
replyNext,
|
|
25521
25522
|
questions2,
|
|
@@ -25527,7 +25528,7 @@ var STATUS_SIGNALS = [
|
|
|
25527
25528
|
children
|
|
25528
25529
|
];
|
|
25529
25530
|
|
|
25530
|
-
// 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
|
|
25531
25532
|
var DAY4 = 864e5;
|
|
25532
25533
|
var STATUS_WINDOW = 300;
|
|
25533
25534
|
var STATUS_CHATS = 16;
|
|
@@ -25572,17 +25573,23 @@ var childrenOf = /* @__PURE__ */ __name(async (store, root, catalog) => {
|
|
|
25572
25573
|
}, "childrenOf");
|
|
25573
25574
|
var inAccounts = /* @__PURE__ */ __name((accounts, provider, account) => accounts === void 0 || accounts.some((one) => one.provider === provider && one.account === account), "inAccounts");
|
|
25574
25575
|
var failure = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "failure");
|
|
25575
|
-
var
|
|
25576
|
-
const
|
|
25577
|
-
|
|
25578
|
-
|
|
25579
|
-
|
|
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");
|
|
25580
25588
|
var totalsOf = /* @__PURE__ */ __name((items) => {
|
|
25581
25589
|
const totals = /* @__PURE__ */ new Map();
|
|
25582
|
-
const open7 = counted2(items);
|
|
25583
25590
|
for (const item2 of items) {
|
|
25584
25591
|
const data = item2.data;
|
|
25585
|
-
if (!
|
|
25592
|
+
if (!owed(item2) || data.amount === void 0)
|
|
25586
25593
|
continue;
|
|
25587
25594
|
const key = `${data.direction}|${data.currency ?? ""}`;
|
|
25588
25595
|
const total = totals.get(key) ?? {
|
|
@@ -25665,6 +25672,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
25665
25672
|
chats,
|
|
25666
25673
|
project: { ...root, children: children2, cut },
|
|
25667
25674
|
store,
|
|
25675
|
+
books: await keepsBooks(store, [root.ref, ...children2.map((child) => child.ref)]),
|
|
25668
25676
|
contextQueries: input.contextQueries ?? []
|
|
25669
25677
|
};
|
|
25670
25678
|
const items = [];
|
|
@@ -25709,7 +25717,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
25709
25717
|
};
|
|
25710
25718
|
}, "projectStatus");
|
|
25711
25719
|
|
|
25712
|
-
// 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
|
|
25713
25721
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
25714
25722
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
25715
25723
|
if (deps.offline)
|
|
@@ -25781,7 +25789,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
25781
25789
|
};
|
|
25782
25790
|
}, "accountService");
|
|
25783
25791
|
|
|
25784
|
-
// 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
|
|
25785
25793
|
var MINUTE = 6e4;
|
|
25786
25794
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
25787
25795
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -25800,7 +25808,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
25800
25808
|
return new Date(at - at % MINUTE).toISOString();
|
|
25801
25809
|
}, "sendTime");
|
|
25802
25810
|
|
|
25803
|
-
// 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
|
|
25804
25812
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write2) => {
|
|
25805
25813
|
try {
|
|
25806
25814
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -25946,21 +25954,21 @@ var adminService = /* @__PURE__ */ __name((deps) => {
|
|
|
25946
25954
|
const answerAll = capability(connection, "answerAllJoinRequests", "answer every join request at once");
|
|
25947
25955
|
const { id: chatId } = await connection.resolve(chat);
|
|
25948
25956
|
const page = await list3(chatId, { limit: 100, ...link4 === void 0 ? {} : { link: link4 } });
|
|
25949
|
-
const
|
|
25957
|
+
const counted2 = page.total ?? page.items.length;
|
|
25950
25958
|
if (page.total === void 0 && page.hasMore)
|
|
25951
25959
|
throw new CliError("validation_error", "too many requests to count; answer them by person, or by --link");
|
|
25952
|
-
if (
|
|
25953
|
-
return { chatId, accepted: accept, counted:
|
|
25960
|
+
if (counted2 === 0)
|
|
25961
|
+
return { chatId, accepted: accept, counted: counted2 };
|
|
25954
25962
|
const operationId = newOperationId();
|
|
25955
25963
|
await guardedWrite(deps.guard, {
|
|
25956
25964
|
operationId,
|
|
25957
25965
|
chatId,
|
|
25958
25966
|
kind: "chat",
|
|
25959
25967
|
action: accept ? "requests.accept" : "requests.decline",
|
|
25960
|
-
count:
|
|
25961
|
-
people:
|
|
25968
|
+
count: counted2,
|
|
25969
|
+
people: counted2
|
|
25962
25970
|
}, () => answerAll(chatId, accept, link4));
|
|
25963
|
-
return { operationId, chatId, accepted: accept, counted:
|
|
25971
|
+
return { operationId, chatId, accepted: accept, counted: counted2 };
|
|
25964
25972
|
}, "answerAllRequests"),
|
|
25965
25973
|
links: /* @__PURE__ */ __name(async (chat, window3) => {
|
|
25966
25974
|
if (deps.offline)
|
|
@@ -26047,7 +26055,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
26047
26055
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
26048
26056
|
}, "linkLimits");
|
|
26049
26057
|
|
|
26050
|
-
// 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
|
|
26051
26059
|
var THREADS_PAGE = 500;
|
|
26052
26060
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
26053
26061
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -26126,7 +26134,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
26126
26134
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
26127
26135
|
}, "readMail");
|
|
26128
26136
|
|
|
26129
|
-
// 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
|
|
26130
26138
|
var NO_MAIL = "no_mail";
|
|
26131
26139
|
var MAIL = "email";
|
|
26132
26140
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -26173,7 +26181,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
26173
26181
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
26174
26182
|
}, "accountsOfKind");
|
|
26175
26183
|
|
|
26176
|
-
// 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
|
|
26177
26185
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
26178
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");
|
|
26179
26187
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -26521,7 +26529,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
26521
26529
|
};
|
|
26522
26530
|
}, "statsLucene");
|
|
26523
26531
|
|
|
26524
|
-
// 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
|
|
26525
26533
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
26526
26534
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
26527
26535
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -26690,7 +26698,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
26690
26698
|
};
|
|
26691
26699
|
}, "readRankingSelection");
|
|
26692
26700
|
|
|
26693
|
-
// 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
|
|
26694
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");
|
|
26695
26703
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
26696
26704
|
command,
|
|
@@ -26700,7 +26708,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
26700
26708
|
fieldsVersion: FIELD_VERSION
|
|
26701
26709
|
}), "searchRecordOf");
|
|
26702
26710
|
|
|
26703
|
-
// 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
|
|
26704
26712
|
function invalid2(message) {
|
|
26705
26713
|
throw new CliError("validation_error", message);
|
|
26706
26714
|
}
|
|
@@ -26994,7 +27002,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
26994
27002
|
}, "evidence")
|
|
26995
27003
|
}), "adminStatisticsService");
|
|
26996
27004
|
|
|
26997
|
-
// 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
|
|
26998
27006
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
26999
27007
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
27000
27008
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -27131,16 +27139,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
27131
27139
|
return { plan, repair };
|
|
27132
27140
|
}, "gapsService");
|
|
27133
27141
|
|
|
27134
|
-
// 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
|
|
27135
27143
|
import { createHash as createHash9 } from "node:crypto";
|
|
27136
27144
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
27137
27145
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
27138
27146
|
|
|
27139
|
-
// 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
|
|
27140
27148
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
27141
27149
|
import { basename as basename4, join as join8, relative as relative2, sep as sep2 } from "node:path";
|
|
27142
27150
|
|
|
27143
|
-
// 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
|
|
27144
27152
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
27145
27153
|
import { open as open4, stat } from "node:fs/promises";
|
|
27146
27154
|
import { basename as basename3, dirname as dirname3, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -27342,7 +27350,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read2) => {
|
|
|
27342
27350
|
return { name, source };
|
|
27343
27351
|
}, "readStickerFile");
|
|
27344
27352
|
|
|
27345
|
-
// 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
|
|
27346
27354
|
var MAX_FILES = 1e4;
|
|
27347
27355
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app, env) => {
|
|
27348
27356
|
if (refusedPlace(directory2, app, env))
|
|
@@ -27411,15 +27419,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
27411
27419
|
return choices;
|
|
27412
27420
|
}, "directoryPaths");
|
|
27413
27421
|
|
|
27414
|
-
// 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
|
|
27415
27423
|
import { posix } from "node:path";
|
|
27416
27424
|
|
|
27417
|
-
// 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
|
|
27418
27426
|
import { setImmediate as tick } from "node:timers/promises";
|
|
27419
27427
|
import { crc32 } from "node:zlib";
|
|
27420
27428
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
27421
27429
|
|
|
27422
|
-
// 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
|
|
27423
27431
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
27424
27432
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
27425
27433
|
var SAMPLE = 65536;
|
|
@@ -27521,7 +27529,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
27521
27529
|
return result.text;
|
|
27522
27530
|
}, "decodeXml");
|
|
27523
27531
|
|
|
27524
|
-
// 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
|
|
27525
27533
|
var MAX_PART = 10 * 1024 * 1024;
|
|
27526
27534
|
var MAX_ENTRIES = 1e3;
|
|
27527
27535
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -27736,7 +27744,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
27736
27744
|
return found;
|
|
27737
27745
|
}, "elements");
|
|
27738
27746
|
|
|
27739
|
-
// 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
|
|
27740
27748
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
27741
27749
|
let name = "";
|
|
27742
27750
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -27791,7 +27799,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
27791
27799
|
return { text: parts.join("").trim(), truncated: false };
|
|
27792
27800
|
}, "sheetText");
|
|
27793
27801
|
|
|
27794
|
-
// 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
|
|
27795
27803
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
27796
27804
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
27797
27805
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -28191,10 +28199,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
28191
28199
|
}
|
|
28192
28200
|
}, "readDocument");
|
|
28193
28201
|
|
|
28194
|
-
// 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
|
|
28195
28203
|
import { extname as extname3 } from "node:path";
|
|
28196
28204
|
|
|
28197
|
-
// 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
|
|
28198
28206
|
import { readFileSync } from "node:fs";
|
|
28199
28207
|
import { dirname as dirname4, extname as extname2, join as join9 } from "node:path";
|
|
28200
28208
|
import { fileURLToPath } from "node:url";
|
|
@@ -28255,7 +28263,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
28255
28263
|
}
|
|
28256
28264
|
}, "derived");
|
|
28257
28265
|
|
|
28258
|
-
// 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
|
|
28259
28267
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
28260
28268
|
var image2 = {
|
|
28261
28269
|
id: "image",
|
|
@@ -28264,7 +28272,7 @@ var image2 = {
|
|
|
28264
28272
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
28265
28273
|
};
|
|
28266
28274
|
|
|
28267
|
-
// 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
|
|
28268
28276
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
28269
28277
|
var doc = {
|
|
28270
28278
|
id: "doc",
|
|
@@ -28276,7 +28284,7 @@ var doc = {
|
|
|
28276
28284
|
}), "read")
|
|
28277
28285
|
};
|
|
28278
28286
|
|
|
28279
|
-
// 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
|
|
28280
28288
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
28281
28289
|
var docx = {
|
|
28282
28290
|
id: "docx",
|
|
@@ -28289,7 +28297,7 @@ var docx = {
|
|
|
28289
28297
|
}), "read")
|
|
28290
28298
|
};
|
|
28291
28299
|
|
|
28292
|
-
// 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
|
|
28293
28301
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
28294
28302
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
28295
28303
|
"fonttbl",
|
|
@@ -28465,7 +28473,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
28465
28473
|
}, "htmlText");
|
|
28466
28474
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
28467
28475
|
|
|
28468
|
-
// 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
|
|
28469
28477
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
28470
28478
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
28471
28479
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -28521,7 +28529,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
28521
28529
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
28522
28530
|
}, "markdownSections");
|
|
28523
28531
|
|
|
28524
|
-
// 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
|
|
28525
28533
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
28526
28534
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
28527
28535
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -28592,7 +28600,7 @@ var html = {
|
|
|
28592
28600
|
}, "read")
|
|
28593
28601
|
};
|
|
28594
28602
|
|
|
28595
|
-
// 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
|
|
28596
28604
|
var office = {
|
|
28597
28605
|
id: "office",
|
|
28598
28606
|
version: documentExtractor("odt"),
|
|
@@ -28603,7 +28611,7 @@ var office = {
|
|
|
28603
28611
|
}, "read")
|
|
28604
28612
|
};
|
|
28605
28613
|
|
|
28606
|
-
// 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
|
|
28607
28615
|
var pdf = {
|
|
28608
28616
|
id: "pdf",
|
|
28609
28617
|
version: "unpdf",
|
|
@@ -28670,7 +28678,7 @@ var pdf = {
|
|
|
28670
28678
|
}), "read")
|
|
28671
28679
|
};
|
|
28672
28680
|
|
|
28673
|
-
// 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
|
|
28674
28682
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
28675
28683
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
28676
28684
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -28690,7 +28698,7 @@ var plain = {
|
|
|
28690
28698
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
28691
28699
|
};
|
|
28692
28700
|
|
|
28693
|
-
// 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
|
|
28694
28702
|
var rtf = {
|
|
28695
28703
|
id: "rtf",
|
|
28696
28704
|
version: "v1",
|
|
@@ -28698,10 +28706,10 @@ var rtf = {
|
|
|
28698
28706
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
28699
28707
|
};
|
|
28700
28708
|
|
|
28701
|
-
// 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
|
|
28702
28710
|
import { basename as basename5 } from "node:path";
|
|
28703
28711
|
|
|
28704
|
-
// 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
|
|
28705
28713
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
28706
28714
|
const cells = [];
|
|
28707
28715
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -28739,7 +28747,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
28739
28747
|
return { cells, truncated };
|
|
28740
28748
|
}, "delimitedSpans");
|
|
28741
28749
|
|
|
28742
|
-
// 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
|
|
28743
28751
|
var DELIMITED = {
|
|
28744
28752
|
".csv": ",",
|
|
28745
28753
|
".tsv": " ",
|
|
@@ -28778,7 +28786,7 @@ var sheets = {
|
|
|
28778
28786
|
}, "read")
|
|
28779
28787
|
};
|
|
28780
28788
|
|
|
28781
|
-
// 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
|
|
28782
28790
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
28783
28791
|
var HEAD_BYTES = 1024;
|
|
28784
28792
|
var readers = [...BUILT_INS2];
|
|
@@ -28788,7 +28796,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
28788
28796
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
28789
28797
|
}, "readWithRegistry");
|
|
28790
28798
|
|
|
28791
|
-
// 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
|
|
28792
28800
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
28793
28801
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
28794
28802
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -29867,7 +29875,7 @@ function imageSize(input) {
|
|
|
29867
29875
|
}
|
|
29868
29876
|
__name(imageSize, "imageSize");
|
|
29869
29877
|
|
|
29870
|
-
// 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
|
|
29871
29879
|
var MAX_PAGES = 20;
|
|
29872
29880
|
var MAX_PIXELS = 2e7;
|
|
29873
29881
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -30018,7 +30026,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
30018
30026
|
}
|
|
30019
30027
|
}, "ocrPdf");
|
|
30020
30028
|
|
|
30021
|
-
// 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
|
|
30022
30030
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
30023
30031
|
const limits = pdfPreviewLimits(env);
|
|
30024
30032
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -30095,7 +30103,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
30095
30103
|
}
|
|
30096
30104
|
}, "pdfPreview");
|
|
30097
30105
|
|
|
30098
|
-
// 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
|
|
30099
30107
|
import { createHash as createHash8 } from "node:crypto";
|
|
30100
30108
|
import { constants } from "node:fs";
|
|
30101
30109
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -30203,7 +30211,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
30203
30211
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
30204
30212
|
}, "transferMime");
|
|
30205
30213
|
|
|
30206
|
-
// 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
|
|
30207
30215
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
30208
30216
|
import { link as link3, rm } from "node:fs/promises";
|
|
30209
30217
|
import { join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -30317,7 +30325,7 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
30317
30325
|
}
|
|
30318
30326
|
}, "save");
|
|
30319
30327
|
|
|
30320
|
-
// 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
|
|
30321
30329
|
var ATTACHMENT_QUERY = {
|
|
30322
30330
|
entity: "attachment",
|
|
30323
30331
|
backend: "sql",
|
|
@@ -30740,7 +30748,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30740
30748
|
}, "setText")
|
|
30741
30749
|
}), "attachmentsService");
|
|
30742
30750
|
|
|
30743
|
-
// 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
|
|
30744
30752
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
30745
30753
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
30746
30754
|
const store = await accountStore(deps);
|
|
@@ -30770,7 +30778,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30770
30778
|
}, "list")
|
|
30771
30779
|
}), "chatDocumentsService");
|
|
30772
30780
|
|
|
30773
|
-
// 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
|
|
30774
30782
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
30775
30783
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
30776
30784
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -30857,7 +30865,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
30857
30865
|
}
|
|
30858
30866
|
}, "isRetentionSelection");
|
|
30859
30867
|
|
|
30860
|
-
// 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
|
|
30861
30869
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
30862
30870
|
const fields = text2.split(",").map((one) => one.trim());
|
|
30863
30871
|
if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
|
|
@@ -31064,7 +31072,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
31064
31072
|
};
|
|
31065
31073
|
}, "countersService");
|
|
31066
31074
|
|
|
31067
|
-
// 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
|
|
31068
31076
|
var SYNC_KEY = "messages.sync-first";
|
|
31069
31077
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
31070
31078
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -31156,7 +31164,7 @@ var refreshSearch = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
31156
31164
|
}
|
|
31157
31165
|
try {
|
|
31158
31166
|
const newest = (await store.messages.messages(account, chatId, { limit: 1 })).items[0];
|
|
31159
|
-
let
|
|
31167
|
+
let counted2 = 0;
|
|
31160
31168
|
const fetched = await archiveService(deps).fetch(chatId, {
|
|
31161
31169
|
limit: options.maxMessages - result.messages,
|
|
31162
31170
|
pageSize: Math.min(100, deps.messenger.fetching?.maxPageSize ?? 100),
|
|
@@ -31165,11 +31173,11 @@ var refreshSearch = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
31165
31173
|
stop,
|
|
31166
31174
|
note: note2,
|
|
31167
31175
|
onPage: /* @__PURE__ */ __name(({ fetched: fetched2 }) => {
|
|
31168
|
-
result.messages += fetched2 -
|
|
31169
|
-
|
|
31176
|
+
result.messages += fetched2 - counted2;
|
|
31177
|
+
counted2 = fetched2;
|
|
31170
31178
|
}, "onPage")
|
|
31171
31179
|
});
|
|
31172
|
-
result.messages += fetched.fetched -
|
|
31180
|
+
result.messages += fetched.fetched - counted2;
|
|
31173
31181
|
if (fetched.stopped || !fetched.complete && !fetched.reachedSince) {
|
|
31174
31182
|
result.complete = false;
|
|
31175
31183
|
result.failed.push({
|
|
@@ -31196,7 +31204,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
31196
31204
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
31197
31205
|
}), "withRefresh");
|
|
31198
31206
|
|
|
31199
|
-
// 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
|
|
31200
31208
|
var CANDIDATES = 50;
|
|
31201
31209
|
var WORD_HITS = 200;
|
|
31202
31210
|
var RRF_K = 60;
|
|
@@ -31471,13 +31479,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
31471
31479
|
return mean2.map((value) => value / length);
|
|
31472
31480
|
}, "meanOf");
|
|
31473
31481
|
|
|
31474
|
-
// 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
|
|
31475
31483
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
31476
31484
|
...embeddingsMaintenance(deps),
|
|
31477
31485
|
...embeddingsSearch(deps)
|
|
31478
31486
|
}), "embeddingsService");
|
|
31479
31487
|
|
|
31480
|
-
// 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
|
|
31481
31489
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
31482
31490
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
31483
31491
|
if (deps.offline)
|
|
@@ -31618,7 +31626,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
31618
31626
|
};
|
|
31619
31627
|
}, "foldersService");
|
|
31620
31628
|
|
|
31621
|
-
// 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
|
|
31622
31630
|
var REVIEW_COUNT = 500;
|
|
31623
31631
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
31624
31632
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -31697,7 +31705,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
31697
31705
|
};
|
|
31698
31706
|
}, "mentionsService");
|
|
31699
31707
|
|
|
31700
|
-
// 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
|
|
31701
31709
|
var invalid3 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
31702
31710
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
31703
31711
|
const { text: text2, spans } = formatted2;
|
|
@@ -31757,7 +31765,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
31757
31765
|
};
|
|
31758
31766
|
}, "visibleFormattedText");
|
|
31759
31767
|
|
|
31760
|
-
// 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
|
|
31761
31769
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
31762
31770
|
position,
|
|
31763
31771
|
kind,
|
|
@@ -31806,7 +31814,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
31806
31814
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
31807
31815
|
}, "validatePermalink");
|
|
31808
31816
|
|
|
31809
|
-
// 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
|
|
31810
31818
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
31811
31819
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
31812
31820
|
return `${seconds / 86400}d`;
|
|
@@ -31838,7 +31846,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
31838
31846
|
return seconds;
|
|
31839
31847
|
}, "pinDurationOf");
|
|
31840
31848
|
|
|
31841
|
-
// 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
|
|
31842
31850
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
31843
31851
|
if (sendAs === void 0) {
|
|
31844
31852
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -31863,7 +31871,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
31863
31871
|
return sendAs;
|
|
31864
31872
|
}, "typedSendAs");
|
|
31865
31873
|
|
|
31866
|
-
// 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
|
|
31867
31875
|
var TOTAL_CAP = 1e4;
|
|
31868
31876
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
31869
31877
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -31874,7 +31882,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
31874
31882
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
31875
31883
|
}, "totalOf");
|
|
31876
31884
|
|
|
31877
|
-
// 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
|
|
31878
31886
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
31879
31887
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
31880
31888
|
let narrows = false;
|
|
@@ -31903,7 +31911,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
31903
31911
|
return wanted(root).join(" ").trim();
|
|
31904
31912
|
}, "meaningWords");
|
|
31905
31913
|
|
|
31906
|
-
// 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
|
|
31907
31915
|
var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
31908
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"));
|
|
31909
31917
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -32035,7 +32043,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
32035
32043
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
32036
32044
|
}, "questionLookup");
|
|
32037
32045
|
|
|
32038
|
-
// 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
|
|
32039
32047
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
32040
32048
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
32041
32049
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -32228,7 +32236,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
32228
32236
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage2 * 4 + proximity + phrase;
|
|
32229
32237
|
}, "signals");
|
|
32230
32238
|
|
|
32231
|
-
// 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
|
|
32232
32240
|
var MEANING_DEPTH = 100;
|
|
32233
32241
|
var RRF_K2 = 60;
|
|
32234
32242
|
var RERANK_DEPTH = 50;
|
|
@@ -32553,7 +32561,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
32553
32561
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
32554
32562
|
}, "mixedWithReranker");
|
|
32555
32563
|
|
|
32556
|
-
// 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
|
|
32557
32565
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
32558
32566
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
32559
32567
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -32752,7 +32760,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
32752
32760
|
return result;
|
|
32753
32761
|
}, "readThreadContext");
|
|
32754
32762
|
|
|
32755
|
-
// 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
|
|
32756
32764
|
var SEARCH_FILL_MS = 200;
|
|
32757
32765
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
32758
32766
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -32819,12 +32827,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
32819
32827
|
}, "accountOf");
|
|
32820
32828
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
32821
32829
|
|
|
32822
|
-
// 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
|
|
32823
32831
|
import { createHash as createHash10 } from "node:crypto";
|
|
32824
32832
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
32825
32833
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
32826
32834
|
|
|
32827
|
-
// 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
|
|
32828
32836
|
var GROUP_SETTINGS = [
|
|
32829
32837
|
"allCanPin",
|
|
32830
32838
|
"onlyAdminsAdd",
|
|
@@ -32838,7 +32846,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
32838
32846
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
32839
32847
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
32840
32848
|
|
|
32841
|
-
// 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
|
|
32842
32850
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
32843
32851
|
var PICTURE_FLOOR = 0.25;
|
|
32844
32852
|
var PAGE4 = 50;
|
|
@@ -32855,7 +32863,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
32855
32863
|
const directory2 = imageModelsDirectory(deps.env);
|
|
32856
32864
|
if (!isImageModelInstalled(model2, directory2))
|
|
32857
32865
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
32858
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
32866
|
+
const { openPictureEmbedder } = await import("./embedder-7BHRCXWL.js");
|
|
32859
32867
|
return openPictureEmbedder(model2, directory2);
|
|
32860
32868
|
}, "open");
|
|
32861
32869
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -33052,7 +33060,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
33052
33060
|
}, "search")
|
|
33053
33061
|
}), "withPictures");
|
|
33054
33062
|
|
|
33055
|
-
// 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
|
|
33056
33064
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
|
|
33057
33065
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
33058
33066
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -33120,7 +33128,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
33120
33128
|
}
|
|
33121
33129
|
}, "meaningLane");
|
|
33122
33130
|
|
|
33123
|
-
// 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
|
|
33124
33132
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
33125
33133
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
33126
33134
|
if (choice === "off")
|
|
@@ -33132,9 +33140,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
33132
33140
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
33133
33141
|
try {
|
|
33134
33142
|
const warm = deps.embedders;
|
|
33135
|
-
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, {
|
|
33136
33144
|
threads: defaultThreads()
|
|
33137
|
-
})) : await (await import("./rerank-
|
|
33145
|
+
})) : await (await import("./rerank-ONBASQ5Z.js")).openReranker(model, directory2);
|
|
33138
33146
|
return {
|
|
33139
33147
|
model: model.id,
|
|
33140
33148
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -33154,17 +33162,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
33154
33162
|
};
|
|
33155
33163
|
}, "rerankLane");
|
|
33156
33164
|
|
|
33157
|
-
// 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
|
|
33158
33166
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
33159
33167
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
33160
33168
|
const directory2 = imageModelsDirectory(env);
|
|
33161
33169
|
if (!isImageModelInstalled(model, directory2))
|
|
33162
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 });
|
|
33163
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
33171
|
+
const { openPictureEmbedder } = await import("./embedder-7BHRCXWL.js");
|
|
33164
33172
|
return openPictureEmbedder(model, directory2);
|
|
33165
33173
|
}, "openPictureEmbedderFor");
|
|
33166
33174
|
|
|
33167
|
-
// 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
|
|
33168
33176
|
var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) => {
|
|
33169
33177
|
const metadata = note2.frontMatter;
|
|
33170
33178
|
const account = accounts.find(({ id: id2 }) => String(id2) === note2.folderId);
|
|
@@ -33179,7 +33187,7 @@ var documentSource = /* @__PURE__ */ __name((note2, accounts, profiles, file2) =
|
|
|
33179
33187
|
};
|
|
33180
33188
|
}, "documentSource");
|
|
33181
33189
|
|
|
33182
|
-
// 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
|
|
33183
33191
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
33184
33192
|
let root;
|
|
33185
33193
|
try {
|
|
@@ -33206,7 +33214,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
33206
33214
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
33207
33215
|
}, "titleTiers");
|
|
33208
33216
|
|
|
33209
|
-
// 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
|
|
33210
33218
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
33211
33219
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
33212
33220
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -33485,13 +33493,13 @@ var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offs
|
|
|
33485
33493
|
meaningSkipped = error.message;
|
|
33486
33494
|
}
|
|
33487
33495
|
}
|
|
33488
|
-
const
|
|
33489
|
-
const titled =
|
|
33490
|
-
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 "),
|
|
33491
33499
|
limit: Math.max(window3, CANDIDATES2),
|
|
33492
33500
|
...scope
|
|
33493
33501
|
});
|
|
33494
|
-
const tier =
|
|
33502
|
+
const tier = titleWords2 === void 0 ? [] : titleTiers(titled.items, titleWords2);
|
|
33495
33503
|
const tierRefs = new Set(tier.map(({ ref }) => ref));
|
|
33496
33504
|
const slice = meaning === void 0 && tier.length === 0;
|
|
33497
33505
|
const matched = await searchNotesQuery(store, {
|
|
@@ -33623,7 +33631,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
33623
33631
|
};
|
|
33624
33632
|
}, "searchNotesOf");
|
|
33625
33633
|
|
|
33626
|
-
// 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
|
|
33627
33635
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
33628
33636
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
33629
33637
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -33740,8 +33748,8 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
33740
33748
|
};
|
|
33741
33749
|
}, "searchEvents");
|
|
33742
33750
|
|
|
33743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33744
|
-
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"];
|
|
33745
33753
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
33746
33754
|
var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
33747
33755
|
const { root } = parseLucene(text2, MESSAGE_PARSING);
|
|
@@ -33749,6 +33757,15 @@ var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
|
33749
33757
|
const top = root.kind === "boolean" ? root.clauses : [{ node: root, occur: "must" }];
|
|
33750
33758
|
return top.every(({ node, occur }) => occur !== "must_not" && followable(node, occur === "must")) ? planQuestion(text2).scope : void 0;
|
|
33751
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");
|
|
33752
33769
|
var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, searchMessages = (query) => searchStore(store, account, query, messenger), meaning) => {
|
|
33753
33770
|
if (!request.text.trim())
|
|
33754
33771
|
throw new CliError("validation_error", "say what to find");
|
|
@@ -33927,6 +33944,29 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
33927
33944
|
foundBy: hit.found_by
|
|
33928
33945
|
})));
|
|
33929
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 });
|
|
33930
33970
|
} else
|
|
33931
33971
|
lists.push(await messagesOf(resource));
|
|
33932
33972
|
searched.push(resource);
|
|
@@ -33969,7 +34009,7 @@ var oneList = /* @__PURE__ */ __name((lists, cosines) => {
|
|
|
33969
34009
|
return [...place.values()].sort((a, b) => a.rank - b.rank || cosine(b.item.ref) - cosine(a.item.ref)).map(({ item: item2 }) => item2);
|
|
33970
34010
|
}, "oneList");
|
|
33971
34011
|
|
|
33972
|
-
// 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
|
|
33973
34013
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
33974
34014
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
33975
34015
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -34214,7 +34254,8 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
34214
34254
|
messages: named2("messages"),
|
|
34215
34255
|
mail: named2("mail"),
|
|
34216
34256
|
notes: named2("notes"),
|
|
34217
|
-
events: named2("events")
|
|
34257
|
+
events: named2("events"),
|
|
34258
|
+
crm: named2("crm")
|
|
34218
34259
|
},
|
|
34219
34260
|
...meetings[0] ? { meetingAccount: meetings[0] } : {}
|
|
34220
34261
|
}, messenger, searchMessages, meaning);
|
|
@@ -34222,7 +34263,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
34222
34263
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
34223
34264
|
}, "searchAllOfSource");
|
|
34224
34265
|
|
|
34225
|
-
// 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
|
|
34226
34267
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
34227
34268
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
34228
34269
|
var DEFAULT_BACKEND = "both";
|
|
@@ -34411,7 +34452,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
34411
34452
|
return { report, sources };
|
|
34412
34453
|
}, "searchServer");
|
|
34413
34454
|
|
|
34414
|
-
// 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
|
|
34415
34456
|
var DELETE_AT_ONCE = 10;
|
|
34416
34457
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
34417
34458
|
const files = fileLinks(attachments);
|
|
@@ -34852,7 +34893,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
34852
34893
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
34853
34894
|
}, "checkMediaOptions");
|
|
34854
34895
|
|
|
34855
|
-
// 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
|
|
34856
34897
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
34857
34898
|
var RULES = {
|
|
34858
34899
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -34867,7 +34908,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
34867
34908
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
34868
34909
|
}), "classifyChannel");
|
|
34869
34910
|
|
|
34870
|
-
// 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
|
|
34871
34912
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
34872
34913
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
34873
34914
|
const store = await deps.store();
|
|
@@ -34953,7 +34994,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
34953
34994
|
};
|
|
34954
34995
|
}, "metadataService");
|
|
34955
34996
|
|
|
34956
|
-
// 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
|
|
34957
34998
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
34958
34999
|
var LINK2 = /https?:\/\/\S+/i;
|
|
34959
35000
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -35141,7 +35182,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
35141
35182
|
}, "nextPoint");
|
|
35142
35183
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
35143
35184
|
|
|
35144
|
-
// 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
|
|
35145
35186
|
import { existsSync, readFileSync as readFileSync2 } from "node:fs";
|
|
35146
35187
|
import { join as join11 } from "node:path";
|
|
35147
35188
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -35284,7 +35325,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
35284
35325
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
35285
35326
|
}, "assign");
|
|
35286
35327
|
|
|
35287
|
-
// 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
|
|
35288
35329
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
35289
35330
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
35290
35331
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -35321,7 +35362,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
35321
35362
|
return { chatId, rows, notes };
|
|
35322
35363
|
}, "moderateWith");
|
|
35323
35364
|
|
|
35324
|
-
// 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
|
|
35325
35366
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
35326
35367
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
35327
35368
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -35399,7 +35440,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
35399
35440
|
}, "removePerson")
|
|
35400
35441
|
}), "moderatorOf");
|
|
35401
35442
|
|
|
35402
|
-
// 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
|
|
35403
35444
|
var noteItem = /* @__PURE__ */ __name((provider, note2) => ({
|
|
35404
35445
|
id: note2.id,
|
|
35405
35446
|
contact: formatReference({ type: "contact", provider, id: note2.personId }),
|
|
@@ -35443,7 +35484,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
35443
35484
|
};
|
|
35444
35485
|
}, "privatePeopleService");
|
|
35445
35486
|
|
|
35446
|
-
// 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
|
|
35447
35488
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
35448
35489
|
total: 0,
|
|
35449
35490
|
population: 0,
|
|
@@ -35699,7 +35740,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
35699
35740
|
}, "evidence")
|
|
35700
35741
|
}), "rankingsService");
|
|
35701
35742
|
|
|
35702
|
-
// 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
|
|
35703
35744
|
var FIELDS = ["date", "chat", "kind"];
|
|
35704
35745
|
var WAITING_TAIL = 100;
|
|
35705
35746
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -35826,7 +35867,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
35826
35867
|
};
|
|
35827
35868
|
}, "replyStatsService");
|
|
35828
35869
|
|
|
35829
|
-
// 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
|
|
35830
35871
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
35831
35872
|
id: one.id,
|
|
35832
35873
|
name: one.name,
|
|
@@ -35955,7 +35996,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
35955
35996
|
};
|
|
35956
35997
|
}, "searchesService");
|
|
35957
35998
|
|
|
35958
|
-
// 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
|
|
35959
36000
|
var TAGGING_QUERY = {
|
|
35960
36001
|
entity: "tagging",
|
|
35961
36002
|
backend: "sql",
|
|
@@ -36039,7 +36080,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
36039
36080
|
};
|
|
36040
36081
|
}, "tagsService");
|
|
36041
36082
|
|
|
36042
|
-
// 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
|
|
36043
36084
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
36044
36085
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
36045
36086
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -36238,7 +36279,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
36238
36279
|
};
|
|
36239
36280
|
}, "topicsService");
|
|
36240
36281
|
|
|
36241
|
-
// 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
|
|
36242
36283
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
36243
36284
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
36244
36285
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -36312,7 +36353,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
36312
36353
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
36313
36354
|
}, "prepareEvidencePacket");
|
|
36314
36355
|
|
|
36315
|
-
// 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
|
|
36316
36357
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
36317
36358
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
36318
36359
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -36332,7 +36373,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
36332
36373
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
36333
36374
|
}, "readEvidencePacket");
|
|
36334
36375
|
|
|
36335
|
-
// 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
|
|
36336
36377
|
var scopeKeys = [
|
|
36337
36378
|
"accountId",
|
|
36338
36379
|
"meetingId",
|
|
@@ -36354,7 +36395,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
36354
36395
|
"maxVocabularyReadBytes"
|
|
36355
36396
|
]);
|
|
36356
36397
|
|
|
36357
|
-
// 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
|
|
36358
36399
|
var communicationFields = {
|
|
36359
36400
|
sources: pipe(array(strictObject({
|
|
36360
36401
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -36386,7 +36427,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
36386
36427
|
return { ...input, after, before: before2 };
|
|
36387
36428
|
}, "communicationRequest");
|
|
36388
36429
|
|
|
36389
|
-
// 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
|
|
36390
36431
|
var MEETING_PREPARATION_LIMITS = {
|
|
36391
36432
|
meetings: { min: 1, max: 20, default: 5 },
|
|
36392
36433
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -36459,7 +36500,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
36459
36500
|
};
|
|
36460
36501
|
}, "validateMeetingPreparationRequest");
|
|
36461
36502
|
|
|
36462
|
-
// 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
|
|
36463
36504
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
36464
36505
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
36465
36506
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -36507,7 +36548,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
36507
36548
|
}
|
|
36508
36549
|
}, "validatePreparationCommunications");
|
|
36509
36550
|
|
|
36510
|
-
// 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
|
|
36511
36552
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
36512
36553
|
const installer = ports.installer();
|
|
36513
36554
|
const argv = updateCommand(installer, packageName);
|
|
@@ -36572,7 +36613,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
36572
36613
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
36573
36614
|
}, "dayAfter");
|
|
36574
36615
|
|
|
36575
|
-
// 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
|
|
36576
36617
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
36577
36618
|
const pictures = picturesService(deps);
|
|
36578
36619
|
const base = {
|
|
@@ -36609,7 +36650,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
36609
36650
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
36610
36651
|
}, "servicesFor");
|
|
36611
36652
|
|
|
36612
|
-
// 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
|
|
36613
36654
|
import { createHash as createHash12 } from "node:crypto";
|
|
36614
36655
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync3, rmSync } from "node:fs";
|
|
36615
36656
|
import { createConnection, createServer } from "node:net";
|
|
@@ -36830,7 +36871,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
|
|
|
36830
36871
|
}, () => finish({ error: stopped() }));
|
|
36831
36872
|
}), "relayCommand");
|
|
36832
36873
|
|
|
36833
|
-
// 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
|
|
36834
36875
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
36835
36876
|
close: /* @__PURE__ */ __name(async () => {
|
|
36836
36877
|
}, "close"),
|