@wirecat/tg-cli 0.121.0 → 0.122.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/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-GVSBFSBY.js → adapter-ZI57T2L5.js} +41 -41
- package/dist/bundle/{all-profiles-CTOGU4XR.js → all-profiles-7VXJF42C.js} +6 -6
- package/dist/bundle/{anthropic-7472H6ES.js → anthropic-DKRXIWVV.js} +2 -2
- package/dist/bundle/{app-server-GZWV4NPR.js → app-server-F5MKHZ7S.js} +37 -37
- package/dist/bundle/{bot-api-PPVAKICN.js → bot-api-F24NWJT3.js} +42 -42
- package/dist/bundle/{bot-history-7YY7MCR4.js → bot-history-U3WM3A7S.js} +12 -12
- package/dist/bundle/{bun-KCN62RMD.js → bun-OMTJAXGK.js} +2 -2
- package/dist/bundle/{bun-sqlite-2BNE56MY.js → bun-sqlite-HSYLO46A.js} +2 -2
- package/dist/bundle/{chunk-7MXRFFIT.js → chunk-27SVHRHV.js} +2 -2
- package/dist/bundle/{chunk-6SQAE7NM.js → chunk-2FXA32RJ.js} +6 -6
- package/dist/bundle/{chunk-KPAUPIC3.js → chunk-2UHANFLM.js} +2 -2
- package/dist/bundle/{chunk-24DWSW6H.js → chunk-33ELXJRR.js} +11 -10
- package/dist/bundle/{chunk-3EGVR7OF.js → chunk-4MFMUBHH.js} +95 -79
- package/dist/bundle/{chunk-SHIHW2YN.js → chunk-4N2WJYLE.js} +2 -2
- package/dist/bundle/{chunk-SQWTUENZ.js → chunk-6DLRATDC.js} +242 -239
- package/dist/bundle/{chunk-QQ264PXQ.js → chunk-6LMEIELG.js} +1 -1
- package/dist/bundle/{chunk-AYDLA27G.js → chunk-7FWU4RON.js} +3 -3
- package/dist/bundle/{chunk-KKD5ZPGD.js → chunk-7GCVON7M.js} +5 -5
- package/dist/bundle/{chunk-TEMCXODM.js → chunk-7X6YLKTK.js} +1 -1
- package/dist/bundle/{chunk-ESLV57MC.js → chunk-ALW7ROTM.js} +1 -1
- package/dist/bundle/{chunk-MAPJUOTD.js → chunk-ARKB3M5X.js} +3 -3
- package/dist/bundle/{chunk-GB55EDOF.js → chunk-C5CB6RIX.js} +1 -1
- package/dist/bundle/{chunk-S7P5X23R.js → chunk-CB6AHU6H.js} +27 -9
- package/dist/bundle/{chunk-YMJKHMHX.js → chunk-CW3C7FSO.js} +1 -1
- package/dist/bundle/{chunk-QNNUNGPL.js → chunk-D3ODL4P7.js} +2 -2
- package/dist/bundle/{chunk-T7ONSJAA.js → chunk-DCGGZUNJ.js} +2 -2
- package/dist/bundle/{chunk-3HNI6GI7.js → chunk-DDSAJKPO.js} +4 -4
- package/dist/bundle/{chunk-7UIMMQOV.js → chunk-DTTONQW7.js} +1 -1
- package/dist/bundle/{chunk-VPNLTNQD.js → chunk-E3MFMMVY.js} +5 -5
- package/dist/bundle/{chunk-W77WC6ZK.js → chunk-FHWUOFWX.js} +2 -2
- package/dist/bundle/{chunk-5P43K3GL.js → chunk-FYHFAOPM.js} +1505 -1014
- package/dist/bundle/{chunk-ZSW7LN7T.js → chunk-FZKHFTKH.js} +13 -13
- package/dist/bundle/{chunk-CPDYPZIG.js → chunk-GJBGZQHN.js} +177 -151
- package/dist/bundle/{chunk-3E35VJME.js → chunk-GJFICFQB.js} +1 -1
- package/dist/bundle/{chunk-YRY752BB.js → chunk-HAR76KJG.js} +4 -4
- package/dist/bundle/{chunk-CLMRF6XR.js → chunk-LQRZUNYF.js} +2 -2
- package/dist/bundle/{chunk-LTAHG7BO.js → chunk-MFWWZ6XL.js} +2 -2
- package/dist/bundle/{chunk-NR7PGYPO.js → chunk-N7WDVH2O.js} +28 -28
- package/dist/bundle/{chunk-KVW7LCZK.js → chunk-NE3EGYPD.js} +3 -3
- package/dist/bundle/{chunk-RPBO5XL3.js → chunk-NU4RMUMQ.js} +10 -10
- package/dist/bundle/{chunk-CMEWPXKU.js → chunk-O5A4IS2D.js} +1 -1
- package/dist/bundle/{chunk-M47CXY5J.js → chunk-PG3V225O.js} +21 -21
- package/dist/bundle/{chunk-DAK2J3FG.js → chunk-QROAXWDU.js} +7 -7
- package/dist/bundle/{chunk-4HJCWFPN.js → chunk-R2IW6JBV.js} +46 -46
- package/dist/bundle/{chunk-FERGNQYA.js → chunk-RFFU6KQ5.js} +12 -12
- package/dist/bundle/{chunk-M73VM67N.js → chunk-SODUFMDW.js} +727 -382
- package/dist/bundle/{chunk-4J34T6IQ.js → chunk-TKJZENAZ.js} +1 -1
- package/dist/bundle/{chunk-QMNUQTA2.js → chunk-UGEYQWEO.js} +1 -1
- package/dist/bundle/chunk-V4BPS7MH.js +185 -0
- package/dist/bundle/{chunk-6LRKWXCS.js → chunk-VC6J7X76.js} +10 -10
- package/dist/bundle/{chunk-MKAKM3V7.js → chunk-VDFEWSCS.js} +2 -2
- package/dist/bundle/{chunk-Y4CSR5RP.js → chunk-VQL4RVXZ.js} +1 -1
- package/dist/bundle/{chunk-R6KXHBMW.js → chunk-W34QQMBK.js} +1 -1
- package/dist/bundle/{chunk-54KFRAHF.js → chunk-Y52T5EMB.js} +1 -1
- package/dist/bundle/{chunk-VAAZL6OD.js → chunk-Y74WJL3M.js} +2 -2
- package/dist/bundle/{chunk-PLBEUSZP.js → chunk-YDMKP7PO.js} +1 -1
- package/dist/bundle/{chunk-RZX7RDXY.js → chunk-YFEH7OWG.js} +12 -12
- package/dist/bundle/{chunk-DG44ORQ3.js → chunk-ZKHXWSKD.js} +4 -4
- package/dist/bundle/{chunk-BJTJBNR7.js → chunk-ZNPRTCUO.js} +6 -6
- package/dist/bundle/{command-contract-3W73W27G.js → command-contract-247AKZTE.js} +12 -12
- package/dist/bundle/{command-server-entry-37PKBJ5A.js → command-server-entry-N32NX4QW.js} +67 -51
- package/dist/bundle/{decode-F7KC7WT4.js → decode-ZKJWSFXF.js} +2 -2
- package/dist/bundle/{echarts-4VYG66GX.js → echarts-QLVLIP73.js} +2 -2
- package/dist/bundle/{embed-ENZ6R4HF.js → embed-LC6K7P3S.js} +3 -3
- package/dist/bundle/{embedder-4CBICMFO.js → embedder-6C3OQBOV.js} +6 -6
- package/dist/bundle/{entry-XQ562EDO.js → entry-5H6LB3MP.js} +5 -5
- package/dist/bundle/{first-run-PPXOC6ID.js → first-run-IOYQ4XQK.js} +5 -5
- package/dist/bundle/{first-screen-JC6BYZYD.js → first-screen-NVK7PFX4.js} +13 -13
- package/dist/bundle/{instructions-XLCMJ5PJ.js → instructions-SZUMEDY3.js} +1 -1
- package/dist/bundle/{node-SSAC67R5.js → node-V76RRFIA.js} +2 -2
- package/dist/bundle/{node-sqlite-SUUUSYSZ.js → node-sqlite-2DTVOT7L.js} +3 -3
- package/dist/bundle/{oauth-2ZNHMPEX.js → oauth-CT7EBDRY.js} +4 -4
- package/dist/bundle/{open-EFNT7V2Q.js → open-G3VHOOMV.js} +2 -2
- package/dist/bundle/{openai-7STFVJXA.js → openai-F4K7MVTZ.js} +10 -10
- package/dist/bundle/{process-63F4PNWH.js → process-XH3KEHSF.js} +1 -1
- package/dist/bundle/{program-C2E3TQNK.js → program-FLGIHTHM.js} +44 -44
- package/dist/bundle/{prompt-QPO7EKD5.js → prompt-JWQ6UQ6R.js} +2 -2
- package/dist/bundle/{recognize-MLXEHFYL.js → recognize-Z26T3SYD.js} +1 -1
- package/dist/bundle/{remote-DO7FLJEF.js → remote-7KHT6V3O.js} +4 -4
- package/dist/bundle/{rerank-W3WSBDAM.js → rerank-6QVI74QY.js} +4 -4
- package/dist/bundle/{serve-Z3TOTEMQ.js → serve-WYDZTONY.js} +6 -6
- package/dist/bundle/server-UXQT7LZT.js +61 -0
- package/dist/bundle/{server-BYSOJCUA.js → server-Y4J2NCFA.js} +28 -28
- package/dist/bundle/{state-PKRPBCMY.js → state-YCXBKOD2.js} +3 -3
- package/dist/bundle/{store-Y4G7CNJT.js → store-QECSDJRP.js} +9 -9
- package/dist/bundle/store-maintenance-command-5YW6TRJA.js +49 -0
- package/dist/bundle/tg.js +3 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/chunk-GNGYV5NX.js +0 -116
- package/dist/bundle/server-IRUVLXD4.js +0 -61
- package/dist/bundle/store-maintenance-command-PHK43OSM.js +0 -49
|
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
note
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2UHANFLM.js";
|
|
6
6
|
import {
|
|
7
7
|
carries
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-O5A4IS2D.js";
|
|
9
9
|
import {
|
|
10
10
|
currentCaller,
|
|
11
11
|
endpointTemplate,
|
|
@@ -15,15 +15,15 @@ import {
|
|
|
15
15
|
providerErrorKey,
|
|
16
16
|
renderEvent,
|
|
17
17
|
runContextOf
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2FXA32RJ.js";
|
|
19
19
|
import {
|
|
20
20
|
permissionCeiling
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-4N2WJYLE.js";
|
|
22
22
|
import {
|
|
23
23
|
envName,
|
|
24
24
|
readOnlyLockOf,
|
|
25
25
|
readOnlyRefusal
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-GJFICFQB.js";
|
|
27
27
|
import {
|
|
28
28
|
BUSINESS_KINDS,
|
|
29
29
|
CATEGORIES,
|
|
@@ -100,23 +100,23 @@ import {
|
|
|
100
100
|
typedCommand,
|
|
101
101
|
untrusted,
|
|
102
102
|
useAsProcessRun
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-4MFMUBHH.js";
|
|
104
104
|
import {
|
|
105
105
|
isCliFailure,
|
|
106
106
|
storeDamaged
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-27SVHRHV.js";
|
|
108
108
|
import {
|
|
109
109
|
readSharedSection,
|
|
110
110
|
sharedConfigPath,
|
|
111
111
|
writeSharedSection
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-HAR76KJG.js";
|
|
113
113
|
import {
|
|
114
114
|
filesPresent,
|
|
115
115
|
sharedModelsDirectory
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-7FWU4RON.js";
|
|
117
117
|
import {
|
|
118
118
|
storePath
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-Y52T5EMB.js";
|
|
120
120
|
import {
|
|
121
121
|
configFilePath,
|
|
122
122
|
createRecordLog,
|
|
@@ -3988,7 +3988,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3988
3988
|
}
|
|
3989
3989
|
}, "refuseJoinedPath");
|
|
3990
3990
|
|
|
3991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
3992
3992
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
3993
3993
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
3994
3994
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -4388,7 +4388,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
4388
4388
|
}
|
|
4389
4389
|
}, "assertRetentionEvidenceRead");
|
|
4390
4390
|
|
|
4391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/account.js
|
|
4392
4392
|
var account = strictObject({
|
|
4393
4393
|
provider: text,
|
|
4394
4394
|
id,
|
|
@@ -4398,7 +4398,7 @@ var account = strictObject({
|
|
|
4398
4398
|
scope: optional(picklist(["personal", "work"]))
|
|
4399
4399
|
});
|
|
4400
4400
|
|
|
4401
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4401
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/account-session.js
|
|
4402
4402
|
var accountSession = strictObject({
|
|
4403
4403
|
current: boolean(),
|
|
4404
4404
|
client: nullable(text),
|
|
@@ -4408,7 +4408,7 @@ var accountSession = strictObject({
|
|
|
4408
4408
|
created_at: optional(nullable(time))
|
|
4409
4409
|
});
|
|
4410
4410
|
|
|
4411
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4411
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/account-change.js
|
|
4412
4412
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
4413
4413
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
4414
4414
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -4437,7 +4437,7 @@ var accountRemoval = strictObject({
|
|
|
4437
4437
|
kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
|
|
4438
4438
|
});
|
|
4439
4439
|
|
|
4440
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4440
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
|
|
4441
4441
|
var accountProfile = strictObject({
|
|
4442
4442
|
profile: id,
|
|
4443
4443
|
current: boolean(),
|
|
@@ -4449,7 +4449,7 @@ var accountProfile = strictObject({
|
|
|
4449
4449
|
bot: optional(literal(true))
|
|
4450
4450
|
});
|
|
4451
4451
|
|
|
4452
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4452
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
|
|
4453
4453
|
var milliseconds = pipe(number(), minValue(0));
|
|
4454
4454
|
var counterReading = strictObject({
|
|
4455
4455
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -4461,7 +4461,7 @@ var counterReading = strictObject({
|
|
|
4461
4461
|
});
|
|
4462
4462
|
var selection = record(string(), unknown());
|
|
4463
4463
|
|
|
4464
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4464
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
|
|
4465
4465
|
var adminRow = strictObject({
|
|
4466
4466
|
ref: reference,
|
|
4467
4467
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -4514,7 +4514,7 @@ var adminReport = strictObject({
|
|
|
4514
4514
|
rows: array(adminRow)
|
|
4515
4515
|
});
|
|
4516
4516
|
|
|
4517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
4518
4518
|
var closeSuggestion = strictObject({
|
|
4519
4519
|
as: picklist(["done", "dismissed"]),
|
|
4520
4520
|
/** The agent's name. */
|
|
@@ -4576,7 +4576,7 @@ var task = strictObject({
|
|
|
4576
4576
|
updated_at: optional(time)
|
|
4577
4577
|
});
|
|
4578
4578
|
|
|
4579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4579
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
4580
4580
|
var agendaChat = strictObject({
|
|
4581
4581
|
chat: reference,
|
|
4582
4582
|
title: nullable(text),
|
|
@@ -4646,11 +4646,11 @@ var agenda = strictObject({
|
|
|
4646
4646
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
4647
4647
|
});
|
|
4648
4648
|
|
|
4649
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4649
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
|
|
4650
4650
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
4651
4651
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
4652
4652
|
|
|
4653
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4653
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
4654
4654
|
var attachment = strictObject({
|
|
4655
4655
|
/** The message it came with, as a locator; absent inside that message. */
|
|
4656
4656
|
message: optional(reference),
|
|
@@ -4688,7 +4688,7 @@ var attachment = strictObject({
|
|
|
4688
4688
|
});
|
|
4689
4689
|
var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
|
|
4690
4690
|
|
|
4691
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4691
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
|
|
4692
4692
|
var actionableError = objectWithRest({
|
|
4693
4693
|
code: text,
|
|
4694
4694
|
message: text,
|
|
@@ -4705,7 +4705,7 @@ var batchResult = strictObject({
|
|
|
4705
4705
|
max_error_percent: count
|
|
4706
4706
|
});
|
|
4707
4707
|
|
|
4708
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4708
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
|
|
4709
4709
|
var extractionItem = strictObject({
|
|
4710
4710
|
ref: reference,
|
|
4711
4711
|
attachment: count,
|
|
@@ -4738,7 +4738,7 @@ var extractionReport = strictObject({
|
|
|
4738
4738
|
cursor: optional(text)
|
|
4739
4739
|
});
|
|
4740
4740
|
|
|
4741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4741
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
|
|
4742
4742
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
4743
4743
|
var attachmentBytes = strictObject({
|
|
4744
4744
|
ref: reference,
|
|
@@ -4766,7 +4766,7 @@ var attachmentTextChange = strictObject({
|
|
|
4766
4766
|
replaced: nullable(picklist(["extracted", "agent"]))
|
|
4767
4767
|
});
|
|
4768
4768
|
|
|
4769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
4770
4770
|
var WEIGHTS = {
|
|
4771
4771
|
bot: 3,
|
|
4772
4772
|
scam: 3,
|
|
@@ -4791,12 +4791,14 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
4791
4791
|
var DIGITS = /\d{5,}/;
|
|
4792
4792
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
4793
4793
|
|
|
4794
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4794
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
4795
4795
|
var linkedIdentity = strictObject({
|
|
4796
4796
|
provider: text,
|
|
4797
4797
|
id,
|
|
4798
4798
|
name: nullable(text),
|
|
4799
4799
|
username: nullable(text),
|
|
4800
|
+
phone: optional(nullable(text)),
|
|
4801
|
+
email: optional(nullable(text)),
|
|
4800
4802
|
is_bot: nullable(boolean()),
|
|
4801
4803
|
accounts: array(id),
|
|
4802
4804
|
seen_in: array(strictObject({ account: id, scope: picklist(["personal", "work"]) })),
|
|
@@ -4839,7 +4841,7 @@ var contactCheck = strictObject({
|
|
|
4839
4841
|
checked_at: time
|
|
4840
4842
|
});
|
|
4841
4843
|
|
|
4842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4844
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/member.js
|
|
4843
4845
|
var member = strictObject({
|
|
4844
4846
|
id,
|
|
4845
4847
|
name: nullable(text),
|
|
@@ -4862,7 +4864,7 @@ var member = strictObject({
|
|
|
4862
4864
|
check: optional(record(string(), unknown()))
|
|
4863
4865
|
});
|
|
4864
4866
|
|
|
4865
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4867
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/chat.js
|
|
4866
4868
|
var setting = optional(nullable(boolean()));
|
|
4867
4869
|
var chat = strictObject({
|
|
4868
4870
|
ref: reference,
|
|
@@ -4903,7 +4905,7 @@ var chat = strictObject({
|
|
|
4903
4905
|
members: optional(array(member))
|
|
4904
4906
|
});
|
|
4905
4907
|
|
|
4906
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4908
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
4907
4909
|
var quoted = strictObject({
|
|
4908
4910
|
id,
|
|
4909
4911
|
sender_id: nullable(id),
|
|
@@ -5022,7 +5024,7 @@ var message = strictObject({
|
|
|
5022
5024
|
provider_metadata: providerMetadata
|
|
5023
5025
|
});
|
|
5024
5026
|
|
|
5025
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5027
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
5026
5028
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
5027
5029
|
var contextMessage = strictObject({
|
|
5028
5030
|
locator: reference,
|
|
@@ -5226,7 +5228,7 @@ var contactPreparation = strictObject({
|
|
|
5226
5228
|
})
|
|
5227
5229
|
});
|
|
5228
5230
|
|
|
5229
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5231
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/deal.js
|
|
5230
5232
|
var nullableText = nullable(text);
|
|
5231
5233
|
var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
|
|
5232
5234
|
var outcome = picklist(["open", "won", "lost"]);
|
|
@@ -5318,7 +5320,7 @@ var stage = strictObject({
|
|
|
5318
5320
|
untrusted
|
|
5319
5321
|
});
|
|
5320
5322
|
|
|
5321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5323
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/business-context.js
|
|
5322
5324
|
var nullableText2 = nullable(text);
|
|
5323
5325
|
var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
|
|
5324
5326
|
var standing = picklist(STANDINGS);
|
|
@@ -5492,7 +5494,7 @@ var dealBrief = strictObject({
|
|
|
5492
5494
|
not_read: coverage2.entries.not_read
|
|
5493
5495
|
});
|
|
5494
5496
|
|
|
5495
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5497
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/chart.js
|
|
5496
5498
|
var chart = strictObject({
|
|
5497
5499
|
version: literal(1),
|
|
5498
5500
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -5507,7 +5509,7 @@ var chart = strictObject({
|
|
|
5507
5509
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
5508
5510
|
});
|
|
5509
5511
|
|
|
5510
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5512
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/folder.js
|
|
5511
5513
|
var named = strictObject({
|
|
5512
5514
|
id,
|
|
5513
5515
|
title: nullable(text),
|
|
@@ -5530,7 +5532,7 @@ var folder = strictObject({
|
|
|
5530
5532
|
excluded_chats: optional(array(named))
|
|
5531
5533
|
});
|
|
5532
5534
|
|
|
5533
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
|
|
5534
5536
|
var inviteLink = strictObject({
|
|
5535
5537
|
link: text,
|
|
5536
5538
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -5546,7 +5548,7 @@ var inviteLink = strictObject({
|
|
|
5546
5548
|
joined_count: optional(count)
|
|
5547
5549
|
});
|
|
5548
5550
|
|
|
5549
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5551
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
|
|
5550
5552
|
var operated = { operation_id: id, chat_id: id };
|
|
5551
5553
|
var group = strictObject({
|
|
5552
5554
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -5626,7 +5628,7 @@ var chatFolderOrder = strictObject({
|
|
|
5626
5628
|
folders: array(strictObject({ id, title: text }))
|
|
5627
5629
|
});
|
|
5628
5630
|
|
|
5629
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5631
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
|
|
5630
5632
|
var operated2 = { operation_id: id, chat_id: id };
|
|
5631
5633
|
var chatRemoval = strictObject(operated2);
|
|
5632
5634
|
var chatMuting = strictObject({
|
|
@@ -5637,7 +5639,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
5637
5639
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
5638
5640
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
5639
5641
|
|
|
5640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5642
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
|
|
5641
5643
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
5642
5644
|
var chatEvent = strictObject({
|
|
5643
5645
|
chat_id: id,
|
|
@@ -5654,7 +5656,7 @@ var chatEvent = strictObject({
|
|
|
5654
5656
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
5655
5657
|
});
|
|
5656
5658
|
|
|
5657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5659
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
|
|
5658
5660
|
var chatMetadata = strictObject({
|
|
5659
5661
|
chat_id: id,
|
|
5660
5662
|
title: nullable(text),
|
|
@@ -5669,7 +5671,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
5669
5671
|
has_more: boolean()
|
|
5670
5672
|
});
|
|
5671
5673
|
|
|
5672
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5674
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
|
|
5673
5675
|
var action = picklist(["report", "delete", "remove"]);
|
|
5674
5676
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
5675
5677
|
var chatRules = strictObject({
|
|
@@ -5706,7 +5708,7 @@ var chatModeration = strictObject({
|
|
|
5706
5708
|
}))
|
|
5707
5709
|
});
|
|
5708
5710
|
|
|
5709
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5711
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
|
|
5710
5712
|
var optionalCount = optional(count);
|
|
5711
5713
|
var minutes = nullable(number());
|
|
5712
5714
|
var chatStats = strictObject({
|
|
@@ -5780,7 +5782,7 @@ var taskStats = strictObject({
|
|
|
5780
5782
|
}))
|
|
5781
5783
|
});
|
|
5782
5784
|
|
|
5783
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5785
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
|
|
5784
5786
|
var memberCount = strictObject({
|
|
5785
5787
|
day: pipe(text, isoDate()),
|
|
5786
5788
|
participants: nullable(count),
|
|
@@ -5803,7 +5805,7 @@ var chatTracking = strictObject({
|
|
|
5803
5805
|
tracked: boolean()
|
|
5804
5806
|
});
|
|
5805
5807
|
|
|
5806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5808
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
5807
5809
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
5808
5810
|
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
5809
5811
|
var profileFields = {
|
|
@@ -5841,7 +5843,7 @@ var profileFields = {
|
|
|
5841
5843
|
}))
|
|
5842
5844
|
};
|
|
5843
5845
|
|
|
5844
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5846
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
5845
5847
|
var contact = strictObject({
|
|
5846
5848
|
ref: reference,
|
|
5847
5849
|
id,
|
|
@@ -5872,7 +5874,7 @@ var contact = strictObject({
|
|
|
5872
5874
|
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
5873
5875
|
});
|
|
5874
5876
|
|
|
5875
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5877
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
|
|
5876
5878
|
var contactNote = strictObject({
|
|
5877
5879
|
id,
|
|
5878
5880
|
/** The contact, as a `contact:` reference. */
|
|
@@ -5884,13 +5886,13 @@ var contactNote = strictObject({
|
|
|
5884
5886
|
updated_at: time
|
|
5885
5887
|
});
|
|
5886
5888
|
|
|
5887
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5889
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
|
|
5888
5890
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
5889
5891
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
5890
5892
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
5891
5893
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
5892
5894
|
|
|
5893
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5895
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
5894
5896
|
var conversation = strictObject({
|
|
5895
5897
|
id,
|
|
5896
5898
|
chat: reference,
|
|
@@ -5905,7 +5907,7 @@ var conversation = strictObject({
|
|
|
5905
5907
|
rules_version: count
|
|
5906
5908
|
});
|
|
5907
5909
|
|
|
5908
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5910
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
|
|
5909
5911
|
var conversationBuild = strictObject({
|
|
5910
5912
|
chat: id,
|
|
5911
5913
|
messages: count,
|
|
@@ -5930,7 +5932,7 @@ var catchUpPreparation = strictObject({
|
|
|
5930
5932
|
prepared: optional(conversationPreparation)
|
|
5931
5933
|
});
|
|
5932
5934
|
|
|
5933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
|
|
5934
5936
|
var conversationDetails = union([
|
|
5935
5937
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
5936
5938
|
message
|
|
@@ -6020,7 +6022,7 @@ var conversationHit = strictObject({
|
|
|
6020
6022
|
stale: boolean()
|
|
6021
6023
|
});
|
|
6022
6024
|
|
|
6023
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6025
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/counters.js
|
|
6024
6026
|
var counters = strictObject({
|
|
6025
6027
|
cutoff: time,
|
|
6026
6028
|
max_age_ms: milliseconds,
|
|
@@ -6050,7 +6052,7 @@ var counterRefresh = strictObject({
|
|
|
6050
6052
|
complete: optional(boolean())
|
|
6051
6053
|
});
|
|
6052
6054
|
|
|
6053
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6055
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
6054
6056
|
var document = strictObject({
|
|
6055
6057
|
ref: reference,
|
|
6056
6058
|
id,
|
|
@@ -6065,7 +6067,7 @@ var document = strictObject({
|
|
|
6065
6067
|
owners: optional(array(text))
|
|
6066
6068
|
});
|
|
6067
6069
|
|
|
6068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/document-link.js
|
|
6069
6071
|
var documentLink = strictObject({
|
|
6070
6072
|
ref: reference,
|
|
6071
6073
|
url: text,
|
|
@@ -6076,7 +6078,7 @@ var documentLink = strictObject({
|
|
|
6076
6078
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
6077
6079
|
});
|
|
6078
6080
|
|
|
6079
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6081
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/evidence.js
|
|
6080
6082
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
6081
6083
|
var contribution = strictObject({
|
|
6082
6084
|
message: evidenceMessage,
|
|
@@ -6106,7 +6108,7 @@ var retentionStay = strictObject({
|
|
|
6106
6108
|
});
|
|
6107
6109
|
var evidence = union([contribution, retentionStay]);
|
|
6108
6110
|
|
|
6109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6111
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/fact.js
|
|
6110
6112
|
var fact = strictObject({
|
|
6111
6113
|
ref: reference,
|
|
6112
6114
|
id,
|
|
@@ -6137,7 +6139,7 @@ var fact = strictObject({
|
|
|
6137
6139
|
updated_at: time
|
|
6138
6140
|
});
|
|
6139
6141
|
|
|
6140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6142
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/hit.js
|
|
6141
6143
|
var hit = strictObject({
|
|
6142
6144
|
kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead", ...BUSINESS_KINDS]),
|
|
6143
6145
|
ref: reference,
|
|
@@ -6183,7 +6185,7 @@ var hit = strictObject({
|
|
|
6183
6185
|
untrusted
|
|
6184
6186
|
});
|
|
6185
6187
|
|
|
6186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6188
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/identity.js
|
|
6187
6189
|
var identity = strictObject({
|
|
6188
6190
|
ref: reference,
|
|
6189
6191
|
provider: text,
|
|
@@ -6192,11 +6194,14 @@ var identity = strictObject({
|
|
|
6192
6194
|
id,
|
|
6193
6195
|
name: nullable(text),
|
|
6194
6196
|
username: nullable(text),
|
|
6197
|
+
/** The number or address the source gave for them, when it gave one. */
|
|
6198
|
+
phone: optional(nullable(text)),
|
|
6199
|
+
email: optional(nullable(text)),
|
|
6195
6200
|
/** The `person:` they are linked to, when one is. */
|
|
6196
6201
|
person: optional(nullable(reference))
|
|
6197
6202
|
});
|
|
6198
6203
|
|
|
6199
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
|
|
6200
6205
|
var imageEmbedding = strictObject({
|
|
6201
6206
|
model: text,
|
|
6202
6207
|
embedded: count,
|
|
@@ -6205,13 +6210,13 @@ var imageEmbedding = strictObject({
|
|
|
6205
6210
|
more: boolean()
|
|
6206
6211
|
});
|
|
6207
6212
|
|
|
6208
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6213
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
6209
6214
|
import { spawn } from "node:child_process";
|
|
6210
6215
|
import { randomBytes } from "node:crypto";
|
|
6211
6216
|
import { closeSync, existsSync, mkdirSync, openSync, readdirSync, readFileSync, realpathSync, rmSync } from "node:fs";
|
|
6212
6217
|
import { dirname, join } from "node:path";
|
|
6213
6218
|
|
|
6214
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6219
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
6215
6220
|
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
6216
6221
|
const total = input.total ?? null;
|
|
6217
6222
|
const updated = input.updatedAt ?? null;
|
|
@@ -6227,7 +6232,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
6227
6232
|
};
|
|
6228
6233
|
}, "progressOf");
|
|
6229
6234
|
|
|
6230
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6235
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
6231
6236
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
6232
6237
|
const run = currentRun();
|
|
6233
6238
|
const trace = traceId ?? run.traceId;
|
|
@@ -6241,7 +6246,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
6241
6246
|
}));
|
|
6242
6247
|
}, "recordLogFor");
|
|
6243
6248
|
|
|
6244
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6249
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
6245
6250
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
6246
6251
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
6247
6252
|
const out = openSync(log, "a", 384);
|
|
@@ -6396,7 +6401,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
6396
6401
|
return { job: id6, pid, chat: input.chat, log };
|
|
6397
6402
|
}, "startArchiveJob");
|
|
6398
6403
|
|
|
6399
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6404
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/job.js
|
|
6400
6405
|
var problem = strictObject({ code: text, message: text });
|
|
6401
6406
|
var job = strictObject({
|
|
6402
6407
|
id,
|
|
@@ -6419,7 +6424,7 @@ var job = strictObject({
|
|
|
6419
6424
|
error: optional(problem)
|
|
6420
6425
|
});
|
|
6421
6426
|
|
|
6422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/join-request.js
|
|
6423
6428
|
var joinRequest = strictObject({
|
|
6424
6429
|
person_id: id,
|
|
6425
6430
|
name: nullable(text),
|
|
@@ -6430,7 +6435,7 @@ var joinRequest = strictObject({
|
|
|
6430
6435
|
about: optional(text)
|
|
6431
6436
|
});
|
|
6432
6437
|
|
|
6433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6438
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/list-results.js
|
|
6434
6439
|
var botProfile = strictObject({
|
|
6435
6440
|
name: text,
|
|
6436
6441
|
token: text,
|
|
@@ -6527,7 +6532,7 @@ var stickerInventory = strictObject({
|
|
|
6527
6532
|
url: optional(nullable(text))
|
|
6528
6533
|
});
|
|
6529
6534
|
|
|
6530
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
|
|
6531
6536
|
var pollVote = strictObject({
|
|
6532
6537
|
person_id: id,
|
|
6533
6538
|
name: nullable(text),
|
|
@@ -6537,7 +6542,7 @@ var pollVote = strictObject({
|
|
|
6537
6542
|
voted_at: time
|
|
6538
6543
|
});
|
|
6539
6544
|
|
|
6540
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/listener.js
|
|
6541
6546
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
6542
6547
|
var observation = strictObject({
|
|
6543
6548
|
value: pipe(number(), minValue(0)),
|
|
@@ -6579,7 +6584,7 @@ var serveSummary = strictObject({
|
|
|
6579
6584
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
6580
6585
|
});
|
|
6581
6586
|
|
|
6582
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
|
|
6583
6588
|
var mailCounts = strictObject({
|
|
6584
6589
|
by: picklist(["day", "week", "sender"]),
|
|
6585
6590
|
received: count,
|
|
@@ -6594,7 +6599,7 @@ var mailCounts = strictObject({
|
|
|
6594
6599
|
}))
|
|
6595
6600
|
});
|
|
6596
6601
|
|
|
6597
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6602
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
|
|
6598
6603
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
6599
6604
|
var base = { id, evidence: array(evidence2) };
|
|
6600
6605
|
var finding = variant("kind", [
|
|
@@ -6738,7 +6743,7 @@ var mailFindings = strictObject({
|
|
|
6738
6743
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
6739
6744
|
});
|
|
6740
6745
|
|
|
6741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6746
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
6742
6747
|
var mediaArchive = strictObject({
|
|
6743
6748
|
directory: text,
|
|
6744
6749
|
chats: count,
|
|
@@ -6770,7 +6775,7 @@ var mediaArchiveTimer = union([
|
|
|
6770
6775
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
6771
6776
|
]);
|
|
6772
6777
|
|
|
6773
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6778
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
6774
6779
|
var preparationId = pipe(string(), minLength(1));
|
|
6775
6780
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
6776
6781
|
var preparationTime = nullable(isoTime);
|
|
@@ -6862,7 +6867,7 @@ var preparationMeeting = strictObject({
|
|
|
6862
6867
|
updated_at: isoTime
|
|
6863
6868
|
});
|
|
6864
6869
|
|
|
6865
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6870
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
6866
6871
|
var meetingEvidence = preparationEvidence;
|
|
6867
6872
|
var meetingPersonContext = strictObject({
|
|
6868
6873
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -6884,7 +6889,7 @@ var meetingPersonContext = strictObject({
|
|
|
6884
6889
|
})
|
|
6885
6890
|
});
|
|
6886
6891
|
|
|
6887
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6892
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
6888
6893
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
6889
6894
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
6890
6895
|
var finding2 = variant("kind", [
|
|
@@ -6922,7 +6927,7 @@ var meetingFindings = strictObject({
|
|
|
6922
6927
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
|
|
6923
6928
|
});
|
|
6924
6929
|
|
|
6925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6930
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
6926
6931
|
var communicationCoverage = strictObject({
|
|
6927
6932
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
6928
6933
|
query: string(),
|
|
@@ -6967,7 +6972,7 @@ var preparationCommunications = strictObject({
|
|
|
6967
6972
|
}))
|
|
6968
6973
|
});
|
|
6969
6974
|
|
|
6970
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
6971
6976
|
var meetingPreparation = strictObject({
|
|
6972
6977
|
communications: optional(preparationCommunications),
|
|
6973
6978
|
schema_version: literal(1),
|
|
@@ -7080,7 +7085,7 @@ var meetingPreparation = strictObject({
|
|
|
7080
7085
|
})
|
|
7081
7086
|
});
|
|
7082
7087
|
|
|
7083
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7088
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
7084
7089
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
7085
7090
|
var id3 = pipe(string(), minLength(1));
|
|
7086
7091
|
var text3 = string();
|
|
@@ -7144,7 +7149,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
7144
7149
|
})
|
|
7145
7150
|
});
|
|
7146
7151
|
|
|
7147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7152
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
7148
7153
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
7149
7154
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
7150
7155
|
var meetingSeriesInventory = strictObject({
|
|
@@ -7174,7 +7179,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
7174
7179
|
})
|
|
7175
7180
|
});
|
|
7176
7181
|
|
|
7177
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7182
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
7178
7183
|
var text4 = string();
|
|
7179
7184
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
7180
7185
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -7191,7 +7196,7 @@ var meetingTaskProposal = strictObject({
|
|
|
7191
7196
|
persistence: literal("proposal-only")
|
|
7192
7197
|
});
|
|
7193
7198
|
|
|
7194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7199
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
7195
7200
|
var memory = strictObject({
|
|
7196
7201
|
ref: reference,
|
|
7197
7202
|
id,
|
|
@@ -7219,7 +7224,7 @@ var memory = strictObject({
|
|
|
7219
7224
|
updated_at: time
|
|
7220
7225
|
});
|
|
7221
7226
|
|
|
7222
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
7223
7228
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
7224
7229
|
var status = picklist(["found", "linked", "proposed", "dismissed"]);
|
|
7225
7230
|
var mention = strictObject({
|
|
@@ -7263,13 +7268,13 @@ var mentionRebuild = strictObject({
|
|
|
7263
7268
|
mentions: count
|
|
7264
7269
|
});
|
|
7265
7270
|
|
|
7266
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7271
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
7267
7272
|
var operated3 = { operation_id: id, chat_id: id };
|
|
7268
7273
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
7269
7274
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
7270
7275
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
7271
7276
|
|
|
7272
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7277
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
7273
7278
|
var messageTranscript = strictObject({
|
|
7274
7279
|
message_id: id,
|
|
7275
7280
|
text,
|
|
@@ -7327,7 +7332,7 @@ var evidencePacket = strictObject({
|
|
|
7327
7332
|
}))
|
|
7328
7333
|
});
|
|
7329
7334
|
|
|
7330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7335
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
7331
7336
|
var messageThread = strictObject({
|
|
7332
7337
|
ref: reference,
|
|
7333
7338
|
chat: id,
|
|
@@ -7344,7 +7349,7 @@ var messageThread = strictObject({
|
|
|
7344
7349
|
});
|
|
7345
7350
|
var messageContext = union([message, messageThread]);
|
|
7346
7351
|
|
|
7347
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7352
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
7348
7353
|
var messageCounts = strictObject({
|
|
7349
7354
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
7350
7355
|
total: count,
|
|
@@ -7357,7 +7362,7 @@ var messageCounts = strictObject({
|
|
|
7357
7362
|
}))
|
|
7358
7363
|
});
|
|
7359
7364
|
|
|
7360
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7365
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
7361
7366
|
var messageLink = strictObject({
|
|
7362
7367
|
ref: reference,
|
|
7363
7368
|
url: nullable(text),
|
|
@@ -7374,7 +7379,7 @@ var messageLink = strictObject({
|
|
|
7374
7379
|
})))
|
|
7375
7380
|
});
|
|
7376
7381
|
|
|
7377
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
7378
7383
|
var savedMessageFile = strictObject({
|
|
7379
7384
|
kind: text,
|
|
7380
7385
|
path: text,
|
|
@@ -7461,7 +7466,7 @@ var messageSyncAll = strictObject({
|
|
|
7461
7466
|
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
7462
7467
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
7463
7468
|
|
|
7464
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7469
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
7465
7470
|
var messageWrite = strictObject({
|
|
7466
7471
|
operation_id: id,
|
|
7467
7472
|
message,
|
|
@@ -7476,7 +7481,7 @@ var draftWrite = strictObject({
|
|
|
7476
7481
|
});
|
|
7477
7482
|
var messageSend = union([messageWrite, draftWrite]);
|
|
7478
7483
|
|
|
7479
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7484
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
7480
7485
|
var model = strictObject({
|
|
7481
7486
|
id,
|
|
7482
7487
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -7511,7 +7516,7 @@ var chosenModel = strictObject({
|
|
|
7511
7516
|
estimate_seconds: nullable(count)
|
|
7512
7517
|
});
|
|
7513
7518
|
|
|
7514
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7519
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
7515
7520
|
var source = picklist(["environment", "keyring", "file"]);
|
|
7516
7521
|
var modelKey = strictObject({
|
|
7517
7522
|
provider: text,
|
|
@@ -7521,7 +7526,7 @@ var modelKey = strictObject({
|
|
|
7521
7526
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
7522
7527
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
7523
7528
|
|
|
7524
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7529
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
7525
7530
|
var versus = strictObject({ current: number(), previous: number() });
|
|
7526
7531
|
var person = { person_ref: reference, name: nullable(text) };
|
|
7527
7532
|
var graph = strictObject({
|
|
@@ -7555,14 +7560,14 @@ var officialStats = strictObject({
|
|
|
7555
7560
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
7556
7561
|
});
|
|
7557
7562
|
|
|
7558
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7563
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
7559
7564
|
var person2 = strictObject({
|
|
7560
7565
|
ref: reference,
|
|
7561
7566
|
name: nullable(text),
|
|
7562
7567
|
identities: optional(array(identity))
|
|
7563
7568
|
});
|
|
7564
7569
|
|
|
7565
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
7566
7571
|
var poll = strictObject({
|
|
7567
7572
|
chat_id: id,
|
|
7568
7573
|
message_id: id,
|
|
@@ -7578,11 +7583,11 @@ var poll = strictObject({
|
|
|
7578
7583
|
});
|
|
7579
7584
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
7580
7585
|
|
|
7581
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
7582
7587
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
7583
7588
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
7584
7589
|
|
|
7585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7590
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
7586
7591
|
var figures = record(string(), number());
|
|
7587
7592
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
7588
7593
|
var rankingRow = strictObject({
|
|
@@ -7629,7 +7634,7 @@ var ranking = strictObject({
|
|
|
7629
7634
|
rows: array(rankingRow)
|
|
7630
7635
|
});
|
|
7631
7636
|
|
|
7632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7637
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
7633
7638
|
var reaction = strictObject({
|
|
7634
7639
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
7635
7640
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -7637,7 +7642,7 @@ var reaction = strictObject({
|
|
|
7637
7642
|
reacted_at: time
|
|
7638
7643
|
});
|
|
7639
7644
|
|
|
7640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7645
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
7641
7646
|
var reactionChange = strictObject({
|
|
7642
7647
|
operation_id: id,
|
|
7643
7648
|
chat_id: id,
|
|
@@ -7645,7 +7650,7 @@ var reactionChange = strictObject({
|
|
|
7645
7650
|
reaction: nullable(text)
|
|
7646
7651
|
});
|
|
7647
7652
|
|
|
7648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7653
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
7649
7654
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
7650
7655
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
7651
7656
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -7656,7 +7661,7 @@ var recipientChange = strictObject({
|
|
|
7656
7661
|
...partial(recipientOff).entries
|
|
7657
7662
|
});
|
|
7658
7663
|
|
|
7659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
7660
7665
|
var events = array(record(string(), unknown()));
|
|
7661
7666
|
var recordedRun = strictObject({
|
|
7662
7667
|
run_id: id,
|
|
@@ -7728,7 +7733,7 @@ var runHit = strictObject({
|
|
|
7728
7733
|
});
|
|
7729
7734
|
var runLocation = strictObject({ path: text });
|
|
7730
7735
|
|
|
7731
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
7732
7737
|
var relationship = strictObject({
|
|
7733
7738
|
id,
|
|
7734
7739
|
from: reference,
|
|
@@ -7755,7 +7760,7 @@ var relationship = strictObject({
|
|
|
7755
7760
|
created_at: time
|
|
7756
7761
|
});
|
|
7757
7762
|
|
|
7758
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
7759
7764
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
7760
7765
|
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
7761
7766
|
var responseTimes = strictObject({
|
|
@@ -7772,7 +7777,7 @@ var waitingChats = strictObject({
|
|
|
7772
7777
|
by_kind: strictObject({ private: count, group: count })
|
|
7773
7778
|
});
|
|
7774
7779
|
|
|
7775
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7780
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
7776
7781
|
var retentionCohort = strictObject({
|
|
7777
7782
|
/** The first day of the joining day or week. */
|
|
7778
7783
|
cohort: text,
|
|
@@ -7820,7 +7825,7 @@ var retention = strictObject({
|
|
|
7820
7825
|
rows: array(retentionCohort)
|
|
7821
7826
|
});
|
|
7822
7827
|
|
|
7823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7828
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
7824
7829
|
var savedSearch = strictObject({
|
|
7825
7830
|
id,
|
|
7826
7831
|
/** `null` for a run in the history. */
|
|
@@ -7837,7 +7842,7 @@ var savedSearch = strictObject({
|
|
|
7837
7842
|
});
|
|
7838
7843
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
7839
7844
|
|
|
7840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
7841
7846
|
var sendAttempt = strictObject({
|
|
7842
7847
|
at: time,
|
|
7843
7848
|
profile: text,
|
|
@@ -7865,7 +7870,7 @@ var sendAttempt = strictObject({
|
|
|
7865
7870
|
error_code: optional(text)
|
|
7866
7871
|
});
|
|
7867
7872
|
|
|
7868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7873
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
7869
7874
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
7870
7875
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
7871
7876
|
var infoSchema = strictObject({
|
|
@@ -8086,7 +8091,7 @@ var storeRepair = union([
|
|
|
8086
8091
|
]);
|
|
8087
8092
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
8088
8093
|
|
|
8089
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8094
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
8090
8095
|
var range = strictObject({ from: number(), to: number() });
|
|
8091
8096
|
var storeChatStatus = strictObject({
|
|
8092
8097
|
chat_id: id,
|
|
@@ -8184,7 +8189,7 @@ var storeJobRetry = union([
|
|
|
8184
8189
|
]);
|
|
8185
8190
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
8186
8191
|
|
|
8187
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8192
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
8188
8193
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
8189
8194
|
var storeTable = strictObject({
|
|
8190
8195
|
name: text,
|
|
@@ -8193,7 +8198,7 @@ var storeTable = strictObject({
|
|
|
8193
8198
|
bytes: optional(nullable(count))
|
|
8194
8199
|
});
|
|
8195
8200
|
|
|
8196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8201
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
8197
8202
|
var tagTarget = variant("type", [
|
|
8198
8203
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
8199
8204
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -8224,7 +8229,7 @@ var automaticTags = strictObject({
|
|
|
8224
8229
|
dry_run: boolean()
|
|
8225
8230
|
});
|
|
8226
8231
|
|
|
8227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8232
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
8228
8233
|
var tagging = strictObject({
|
|
8229
8234
|
tag: text,
|
|
8230
8235
|
type: picklist(TAG_TYPES),
|
|
@@ -8237,7 +8242,7 @@ var tagging = strictObject({
|
|
|
8237
8242
|
created_at: time
|
|
8238
8243
|
});
|
|
8239
8244
|
|
|
8240
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8245
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
8241
8246
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
8242
8247
|
var taskPair = strictObject({
|
|
8243
8248
|
task: nullable(side),
|
|
@@ -8260,7 +8265,7 @@ var taskPair = strictObject({
|
|
|
8260
8265
|
created_at: time
|
|
8261
8266
|
});
|
|
8262
8267
|
|
|
8263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8268
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
8264
8269
|
var nullableTime = nullable(time);
|
|
8265
8270
|
var link = strictObject({
|
|
8266
8271
|
id,
|
|
@@ -8434,7 +8439,7 @@ var taskReview = strictObject({
|
|
|
8434
8439
|
untrusted
|
|
8435
8440
|
});
|
|
8436
8441
|
|
|
8437
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8442
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/template.js
|
|
8438
8443
|
var template = strictObject({
|
|
8439
8444
|
key: text,
|
|
8440
8445
|
channel: picklist(["telegram", "email", "text"]),
|
|
@@ -8446,7 +8451,7 @@ var template = strictObject({
|
|
|
8446
8451
|
updated_by: nullable(text)
|
|
8447
8452
|
});
|
|
8448
8453
|
|
|
8449
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8454
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
8450
8455
|
var topic = strictObject({
|
|
8451
8456
|
id,
|
|
8452
8457
|
title: text,
|
|
@@ -8460,7 +8465,7 @@ var topic = strictObject({
|
|
|
8460
8465
|
untrusted
|
|
8461
8466
|
});
|
|
8462
8467
|
|
|
8463
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8468
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
8464
8469
|
var ENTITIES = {
|
|
8465
8470
|
sync_progress: progress,
|
|
8466
8471
|
deal,
|
|
@@ -8753,7 +8758,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
8753
8758
|
return [name, definition];
|
|
8754
8759
|
})), "entityDefinitions");
|
|
8755
8760
|
|
|
8756
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8761
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
8757
8762
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
8758
8763
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
8759
8764
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -8787,14 +8792,29 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
8787
8792
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
8788
8793
|
}, "answerRow");
|
|
8789
8794
|
|
|
8790
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8795
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/command-server-request.js
|
|
8791
8796
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
8797
|
+
var requests = new AsyncLocalStorage();
|
|
8798
|
+
var inCommandServerRequest = /* @__PURE__ */ __name((request, work) => requests.run(request, work), "inCommandServerRequest");
|
|
8799
|
+
var commandServerRequest = /* @__PURE__ */ __name(() => requests.getStore(), "commandServerRequest");
|
|
8800
|
+
var exitCodeSet = /* @__PURE__ */ __name(() => {
|
|
8801
|
+
const request = requests.getStore();
|
|
8802
|
+
if (request?.exitCode !== void 0)
|
|
8803
|
+
return request.exitCode;
|
|
8804
|
+
const direct = process.exitCode === void 0 ? void 0 : Number(process.exitCode);
|
|
8805
|
+
if (request)
|
|
8806
|
+
process.exitCode = void 0;
|
|
8807
|
+
return direct;
|
|
8808
|
+
}, "exitCodeSet");
|
|
8809
|
+
|
|
8810
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
8811
|
+
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
8792
8812
|
var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
|
|
8793
8813
|
messageId: message2.id,
|
|
8794
8814
|
...message2.chatId && message2.chatId !== typed2 ? { resultChatId: message2.chatId } : {}
|
|
8795
8815
|
}), "sentIds");
|
|
8796
|
-
var current = new
|
|
8797
|
-
var writesInFlight = new
|
|
8816
|
+
var current = new AsyncLocalStorage2();
|
|
8817
|
+
var writesInFlight = new AsyncLocalStorage2();
|
|
8798
8818
|
var parents = /* @__PURE__ */ new WeakMap();
|
|
8799
8819
|
var stopped = /* @__PURE__ */ new WeakMap();
|
|
8800
8820
|
var scopesFor = /* @__PURE__ */ __name((scope = writesInFlight.getStore()) => {
|
|
@@ -8893,7 +8913,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
8893
8913
|
}, "guardedWrite");
|
|
8894
8914
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
8895
8915
|
|
|
8896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8916
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
8897
8917
|
var named2 = /* @__PURE__ */ __name((work) => {
|
|
8898
8918
|
try {
|
|
8899
8919
|
return work();
|
|
@@ -8920,7 +8940,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named2(() => {
|
|
|
8920
8940
|
return projectFields(value, fields);
|
|
8921
8941
|
}), "projectFields");
|
|
8922
8942
|
|
|
8923
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8943
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
8924
8944
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
8925
8945
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
8926
8946
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -9103,7 +9123,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
9103
9123
|
}
|
|
9104
9124
|
}, "withAbort");
|
|
9105
9125
|
|
|
9106
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
|
|
9107
9127
|
import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
9108
9128
|
import { join as join2 } from "node:path";
|
|
9109
9129
|
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
|
|
@@ -9192,7 +9212,7 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
|
|
|
9192
9212
|
return readdirSync2(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
|
|
9193
9213
|
}, "registryProfiles");
|
|
9194
9214
|
|
|
9195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9215
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
9196
9216
|
import { existsSync as existsSync3, readdirSync as readdirSync3, readFileSync as readFileSync3 } from "node:fs";
|
|
9197
9217
|
import { join as join3 } from "node:path";
|
|
9198
9218
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -9214,7 +9234,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
9214
9234
|
}, "profilesWithAccounts");
|
|
9215
9235
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
9216
9236
|
|
|
9217
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9237
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
9218
9238
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
9219
9239
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
9220
9240
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -9250,7 +9270,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
9250
9270
|
return value;
|
|
9251
9271
|
}, "atDetail");
|
|
9252
9272
|
|
|
9253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9273
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/output.js
|
|
9254
9274
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
9255
9275
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
9256
9276
|
if (other)
|
|
@@ -9314,7 +9334,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
|
|
|
9314
9334
|
}, "warn")
|
|
9315
9335
|
}), "silence");
|
|
9316
9336
|
|
|
9317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9337
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
9318
9338
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
9319
9339
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
9320
9340
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -9350,7 +9370,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
9350
9370
|
store: "store.write"
|
|
9351
9371
|
};
|
|
9352
9372
|
|
|
9353
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
9354
9374
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
9355
9375
|
const recording = startRecording(options);
|
|
9356
9376
|
try {
|
|
@@ -9407,7 +9427,7 @@ var startRecording = /* @__PURE__ */ __name((options) => {
|
|
|
9407
9427
|
let refused;
|
|
9408
9428
|
let wroteStore = false;
|
|
9409
9429
|
const cap = capped();
|
|
9410
|
-
const
|
|
9430
|
+
const requests2 = /* @__PURE__ */ __name(() => counted.wire > 0 ? counted.wire : counted.operation, "requests");
|
|
9411
9431
|
const events2 = /* @__PURE__ */ __name((event2) => {
|
|
9412
9432
|
if (event2.event === "request")
|
|
9413
9433
|
counted[event2.level === "wire" ? "wire" : "operation"] += 1;
|
|
@@ -9440,7 +9460,7 @@ var startRecording = /* @__PURE__ */ __name((options) => {
|
|
|
9440
9460
|
if (kept)
|
|
9441
9461
|
cap.close(kept);
|
|
9442
9462
|
await kept?.finish(partial2 ? "partial" : "success", {
|
|
9443
|
-
requests:
|
|
9463
|
+
requests: requests2(),
|
|
9444
9464
|
...cap.dropped(),
|
|
9445
9465
|
...partial2 ? { partial: partial2 } : {},
|
|
9446
9466
|
...!run && !partial2 && wroteStore ? { keptBecauseStore: true } : {}
|
|
@@ -9460,7 +9480,7 @@ var startRecording = /* @__PURE__ */ __name((options) => {
|
|
|
9460
9480
|
failed.logger.error(crashOf(error));
|
|
9461
9481
|
cap.close(failed);
|
|
9462
9482
|
await failed.finish("failed", {
|
|
9463
|
-
requests:
|
|
9483
|
+
requests: requests2(),
|
|
9464
9484
|
...cap.dropped(),
|
|
9465
9485
|
...outcomeOf(error),
|
|
9466
9486
|
error: errorDetailOf(error, refused),
|
|
@@ -9565,7 +9585,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
9565
9585
|
return void 0;
|
|
9566
9586
|
}, "partialOutcome");
|
|
9567
9587
|
|
|
9568
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9588
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
9569
9589
|
var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
9570
9590
|
if (ms2 === void 0)
|
|
9571
9591
|
return body();
|
|
@@ -9591,7 +9611,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
|
9591
9611
|
}
|
|
9592
9612
|
}, "withDeadline");
|
|
9593
9613
|
|
|
9594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9614
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
9595
9615
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
9596
9616
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
9597
9617
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -9660,10 +9680,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
9660
9680
|
return void 0;
|
|
9661
9681
|
}, "sampleCommand");
|
|
9662
9682
|
|
|
9663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9683
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
9664
9684
|
import { existsSync as existsSync6 } from "node:fs";
|
|
9665
9685
|
|
|
9666
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9686
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
9667
9687
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
9668
9688
|
try {
|
|
9669
9689
|
const url3 = new URL(value);
|
|
@@ -9673,7 +9693,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
|
|
|
9673
9693
|
}
|
|
9674
9694
|
}, "endpoint");
|
|
9675
9695
|
|
|
9676
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9696
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
9677
9697
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
9678
9698
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
9679
9699
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -9742,7 +9762,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
9742
9762
|
};
|
|
9743
9763
|
}, "modelTarget");
|
|
9744
9764
|
|
|
9745
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9765
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
9746
9766
|
var model2 = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
9747
9767
|
var url2 = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
9748
9768
|
var AI_FIELDS = {
|
|
@@ -9786,7 +9806,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
9786
9806
|
};
|
|
9787
9807
|
}, "resolveAISettings");
|
|
9788
9808
|
|
|
9789
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9809
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
9790
9810
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
9791
9811
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
9792
9812
|
var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
@@ -9800,7 +9820,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
|
9800
9820
|
return ms2;
|
|
9801
9821
|
}, "parseDuration");
|
|
9802
9822
|
|
|
9803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9823
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
9804
9824
|
import { existsSync as existsSync4 } from "node:fs";
|
|
9805
9825
|
import { join as join4 } from "node:path";
|
|
9806
9826
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
@@ -10077,7 +10097,7 @@ var vectorModelKey = /* @__PURE__ */ __name((model3) => {
|
|
|
10077
10097
|
}, "vectorModelKey");
|
|
10078
10098
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
10079
10099
|
|
|
10080
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
10081
10101
|
var HISTORY_MAX_DAYS = 1095;
|
|
10082
10102
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
10083
10103
|
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -10124,10 +10144,10 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
10124
10144
|
return { batch: { ...batch, messages }, skipped };
|
|
10125
10145
|
}, "limitBatch");
|
|
10126
10146
|
|
|
10127
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
10128
10148
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
10129
10149
|
|
|
10130
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10150
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
|
|
10131
10151
|
var REPAIR_WORDS = {
|
|
10132
10152
|
byte_order_mark: "an invisible byte-order mark at the start",
|
|
10133
10153
|
comment: "a comment, which JSON does not allow",
|
|
@@ -10368,7 +10388,7 @@ ${parts.join(",\n")}
|
|
|
10368
10388
|
${indent}${close}`;
|
|
10369
10389
|
}, "serialise");
|
|
10370
10390
|
|
|
10371
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
10372
10392
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
10373
10393
|
var SECTIONS = ["personal", "bot"];
|
|
10374
10394
|
var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
|
|
@@ -10662,7 +10682,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
10662
10682
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
10663
10683
|
}, "readConfigFile");
|
|
10664
10684
|
|
|
10665
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10685
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
10666
10686
|
import { existsSync as existsSync5, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync } from "node:fs";
|
|
10667
10687
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
10668
10688
|
var DEFAULT_CONFIG = {
|
|
@@ -10691,7 +10711,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
10691
10711
|
}
|
|
10692
10712
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
10693
10713
|
|
|
10694
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10714
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
|
|
10695
10715
|
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
10696
10716
|
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
10697
10717
|
const path2 = key.split(".");
|
|
@@ -10713,7 +10733,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
|
|
|
10713
10733
|
return { config, added };
|
|
10714
10734
|
}, "withSettingDefaults");
|
|
10715
10735
|
|
|
10716
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
10717
10737
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
10718
10738
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
10719
10739
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -11238,11 +11258,14 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
11238
11258
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
11239
11259
|
}, "given");
|
|
11240
11260
|
|
|
11241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
11242
11262
|
var setExitCode = /* @__PURE__ */ __name((command, code) => {
|
|
11243
11263
|
const slot = environmentOf(command).exit;
|
|
11264
|
+
const request = commandServerRequest();
|
|
11244
11265
|
if (slot)
|
|
11245
11266
|
slot.code = code;
|
|
11267
|
+
else if (request)
|
|
11268
|
+
request.exitCode = code;
|
|
11246
11269
|
else
|
|
11247
11270
|
process.exitCode = code;
|
|
11248
11271
|
}, "setExitCode");
|
|
@@ -11361,7 +11384,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
11361
11384
|
return words2.join(" ");
|
|
11362
11385
|
}, "commandPath");
|
|
11363
11386
|
|
|
11364
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11387
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
11365
11388
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
11366
11389
|
var FETCH = { remote: "read", local: "write" };
|
|
11367
11390
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -11493,7 +11516,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
11493
11516
|
throw readOnlyRefusal(lock, what);
|
|
11494
11517
|
}, "refuseUnderReadOnly");
|
|
11495
11518
|
|
|
11496
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11519
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
11497
11520
|
import { join as join6 } from "node:path";
|
|
11498
11521
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
11499
11522
|
var IMAGE_MODELS = [
|
|
@@ -11547,7 +11570,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
11547
11570
|
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
|
|
11548
11571
|
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
11549
11572
|
|
|
11550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11573
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
11551
11574
|
var STEPS2 = defineSteps([
|
|
11552
11575
|
...STEPS,
|
|
11553
11576
|
{
|
|
@@ -11828,7 +11851,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
11828
11851
|
].join(" ");
|
|
11829
11852
|
}, "stepLine");
|
|
11830
11853
|
|
|
11831
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11854
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
11832
11855
|
var where = [{ field: "ref" }];
|
|
11833
11856
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
11834
11857
|
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
@@ -11920,7 +11943,7 @@ var STATUS_ROWS = {
|
|
|
11920
11943
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
11921
11944
|
};
|
|
11922
11945
|
|
|
11923
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11946
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
11924
11947
|
var TEXT_CHARS = 400;
|
|
11925
11948
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
11926
11949
|
var messageRow = {
|
|
@@ -12286,7 +12309,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
12286
12309
|
return lines.concat(footerOf(body)).join("\n");
|
|
12287
12310
|
}, "compactText");
|
|
12288
12311
|
|
|
12289
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12312
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
12290
12313
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
12291
12314
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
12292
12315
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -12344,7 +12367,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
12344
12367
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
12345
12368
|
}, "largeAnswerSteps");
|
|
12346
12369
|
|
|
12347
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12370
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
12348
12371
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
12349
12372
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
12350
12373
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -12358,7 +12381,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
12358
12381
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
12359
12382
|
}, "strip");
|
|
12360
12383
|
|
|
12361
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12384
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
12362
12385
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
12363
12386
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
12364
12387
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -12615,6 +12638,9 @@ export {
|
|
|
12615
12638
|
recorded,
|
|
12616
12639
|
startRecording,
|
|
12617
12640
|
wasSettled,
|
|
12641
|
+
inCommandServerRequest,
|
|
12642
|
+
commandServerRequest,
|
|
12643
|
+
exitCodeSet,
|
|
12618
12644
|
sentIds,
|
|
12619
12645
|
currentOperation,
|
|
12620
12646
|
guardedWrite,
|