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