@wirecat/tg-cli 0.126.0 → 0.127.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-BXU3AVB7.js → adapter-EZFS2UR6.js} +43 -43
- package/dist/bundle/{all-profiles-G5A6IROO.js → all-profiles-TNIUBQK6.js} +6 -6
- package/dist/bundle/{anthropic-SINVEVEM.js → anthropic-NGIS5LTL.js} +2 -2
- package/dist/bundle/{app-server-IHIQXPJF.js → app-server-RPU76G7D.js} +38 -38
- package/dist/bundle/{bot-api-LGAVVYRM.js → bot-api-QJ6U6BLG.js} +44 -44
- package/dist/bundle/{bot-history-5C35FGCD.js → bot-history-THULK2C6.js} +12 -12
- package/dist/bundle/{bun-2GK3YOP3.js → bun-QLSLLP27.js} +2 -2
- package/dist/bundle/{bun-sqlite-7DGADK3E.js → bun-sqlite-SH5245ZY.js} +3 -3
- package/dist/bundle/{chunk-4GR5YYGA.js → chunk-2R6ZSE3O.js} +2 -2
- package/dist/bundle/{chunk-F34EE5Y2.js → chunk-3CV5TBBR.js} +2 -2
- package/dist/bundle/{chunk-MP47TE77.js → chunk-3I3TGKVG.js} +3 -3
- package/dist/bundle/{chunk-JQ2RKLPU.js → chunk-3WI53AA4.js} +76 -76
- package/dist/bundle/{chunk-AYEQMXRE.js → chunk-45URY64S.js} +1 -1
- package/dist/bundle/{chunk-Y5DGB7GP.js → chunk-4CQ3PV3V.js} +7 -7
- package/dist/bundle/{chunk-N2JSMP4N.js → chunk-4FFKCC7Y.js} +12 -12
- package/dist/bundle/{chunk-G4RCT5RH.js → chunk-4MKRKW6V.js} +12 -12
- package/dist/bundle/{chunk-GI2ZUNOH.js → chunk-5AOFOJQA.js} +4 -4
- package/dist/bundle/{chunk-QOINWAQD.js → chunk-5FDYMMEQ.js} +2 -2
- package/dist/bundle/{chunk-P2GNIWGG.js → chunk-5KZKVKWU.js} +6 -6
- package/dist/bundle/{chunk-QMEPKUG3.js → chunk-5SN6KFPC.js} +50 -50
- package/dist/bundle/{chunk-QYLYMOXN.js → chunk-7GE6KMLB.js} +11 -11
- package/dist/bundle/{chunk-PJ6FZXUR.js → chunk-APSMQIA4.js} +2 -2
- package/dist/bundle/{chunk-HPFB4Y7P.js → chunk-BNM6KNUQ.js} +1 -1
- package/dist/bundle/{chunk-63DSHUNP.js → chunk-BWHVHPAQ.js} +5 -5
- package/dist/bundle/{chunk-XGBXRDJP.js → chunk-CXWAKV2O.js} +5 -5
- package/dist/bundle/{chunk-FYOHGIQP.js → chunk-DNNYE6PS.js} +13 -13
- package/dist/bundle/{chunk-QGLB4D7J.js → chunk-EGNQSWPH.js} +1 -1
- package/dist/bundle/{chunk-CK7DSGIK.js → chunk-ERUB3KU3.js} +322 -11
- package/dist/bundle/{chunk-OXB5P37M.js → chunk-FD44T7HC.js} +1 -1
- package/dist/bundle/{chunk-2LN6OJUB.js → chunk-FSDLSEZA.js} +1 -1
- package/dist/bundle/{chunk-SL4S5GFR.js → chunk-GHVRCLJI.js} +1 -1
- package/dist/bundle/{chunk-KSLZEXRF.js → chunk-H7GAFD4N.js} +1 -1
- package/dist/bundle/{chunk-JAKP5RWM.js → chunk-HPM47WO3.js} +1537 -923
- package/dist/bundle/{chunk-L5PYWQDA.js → chunk-IWJ5OLU6.js} +2 -2
- package/dist/bundle/{chunk-ACLUVZ4I.js → chunk-J6FHZXNS.js} +28 -28
- package/dist/bundle/{chunk-7UACPXDC.js → chunk-JF7D2Y4K.js} +941 -749
- package/dist/bundle/{chunk-W35POPPX.js → chunk-JFQZ6BWI.js} +16 -16
- package/dist/bundle/{chunk-K4DXGJK4.js → chunk-JWEKUAVZ.js} +10 -10
- package/dist/bundle/{chunk-AKUBJHE5.js → chunk-K4VO7S6Q.js} +1 -1
- package/dist/bundle/{chunk-GIY56MIB.js → chunk-LOG65WHO.js} +1 -1
- package/dist/bundle/{chunk-AA2NZAUT.js → chunk-MTU3UP5U.js} +1 -1
- package/dist/bundle/{chunk-G4VVBR6U.js → chunk-NBN5OYXH.js} +3 -3
- package/dist/bundle/{chunk-MA2XHO4O.js → chunk-P5NJECXX.js} +379 -294
- package/dist/bundle/{chunk-QCLMP635.js → chunk-QPVCFSVU.js} +5 -5
- package/dist/bundle/{chunk-GOGGRLS6.js → chunk-R52ZZZKZ.js} +13 -9
- package/dist/bundle/{chunk-RFDPU4NO.js → chunk-S3XUJPPL.js} +4 -4
- package/dist/bundle/{chunk-Y4724JRR.js → chunk-SN52ZGFN.js} +2 -2
- package/dist/bundle/{chunk-2F2UMQMB.js → chunk-TGKTIDYS.js} +153 -396
- package/dist/bundle/{chunk-AZ7DSHQO.js → chunk-UIQMBOXU.js} +1 -1
- package/dist/bundle/{chunk-UIFQEXVP.js → chunk-UW34Z7J3.js} +1 -1
- package/dist/bundle/{chunk-ZXCQF6XV.js → chunk-UY2TRFYN.js} +10 -10
- package/dist/bundle/{chunk-5GINYFD4.js → chunk-VMV5CMLH.js} +1 -1
- package/dist/bundle/{chunk-J2BUWK5U.js → chunk-X4ECHJNG.js} +2 -2
- package/dist/bundle/{chunk-5NLAGTWU.js → chunk-XUAVZ6YX.js} +7 -7
- package/dist/bundle/{chunk-W725T2V7.js → chunk-Y62I2T36.js} +1 -1
- package/dist/bundle/{chunk-NJ3FSKSU.js → chunk-Y65BQJOY.js} +2 -2
- package/dist/bundle/{chunk-W75SKUY4.js → chunk-Y7UA7HGL.js} +2 -2
- package/dist/bundle/{chunk-7FL2N6DM.js → chunk-YIPOWJPN.js} +1 -1
- package/dist/bundle/{chunk-DGGAYHLN.js → chunk-YZGIQY2R.js} +21 -21
- package/dist/bundle/{chunk-BSKYPHLB.js → chunk-ZIPUVOGT.js} +1 -1
- package/dist/bundle/{chunk-SXVB2CVR.js → chunk-ZSS3BH6Z.js} +2 -2
- package/dist/bundle/{command-contract-ZEYY3ZXK.js → command-contract-DY6Y4TES.js} +13 -13
- package/dist/bundle/{command-server-entry-UWY6PQIV.js → command-server-entry-UG2CLYXI.js} +20 -20
- package/dist/bundle/{decode-QGMFQ6XX.js → decode-3NEUZJ2N.js} +2 -2
- package/dist/bundle/{echarts-GHU3GEWV.js → echarts-CN6ZVAJZ.js} +2 -2
- package/dist/bundle/{embed-6DMEWQDO.js → embed-M4EHIKA5.js} +3 -3
- package/dist/bundle/{embedder-W2L7YZPW.js → embedder-K2XL2UB4.js} +6 -6
- package/dist/bundle/{entry-LPEXVFQC.js → entry-6M55YL2H.js} +6 -6
- package/dist/bundle/{first-run-3UJ6SJF5.js → first-run-TLJILIOF.js} +5 -5
- package/dist/bundle/{first-screen-VCSY5QH5.js → first-screen-WME7ILW2.js} +14 -14
- package/dist/bundle/{instructions-RUVAH2IS.js → instructions-QLC2AXAB.js} +1 -1
- package/dist/bundle/{node-RYSNHVBX.js → node-BAA3T4CH.js} +2 -2
- package/dist/bundle/{node-sqlite-J6ZL4LUY.js → node-sqlite-FNYVHQCO.js} +4 -4
- package/dist/bundle/{oauth-B2QNZNSC.js → oauth-32T5KL5E.js} +4 -4
- package/dist/bundle/{open-OMUP5P6V.js → open-4VQ6FUEI.js} +2 -2
- package/dist/bundle/{openai-BT4BP4VQ.js → openai-HDOKCN3Z.js} +12 -12
- package/dist/bundle/{process-HG3QDD54.js → process-GOUBIWKC.js} +1 -1
- package/dist/bundle/{program-P2VATMKJ.js → program-QFXJL2R5.js} +46 -46
- package/dist/bundle/{prompt-BTIHH3Z4.js → prompt-YYODWYFO.js} +2 -2
- package/dist/bundle/{recognize-CTSJXPIG.js → recognize-7ZULX5HL.js} +1 -1
- package/dist/bundle/{remote-2FIGCMKL.js → remote-TUG7M5Y5.js} +6 -6
- package/dist/bundle/{rerank-TI5SLEF4.js → rerank-D2EZWG66.js} +4 -4
- package/dist/bundle/{serve-IO3IM5C7.js → serve-MP3GA2XX.js} +6 -6
- package/dist/bundle/{server-WEPFFTYA.js → server-D277L3H3.js} +29 -29
- package/dist/bundle/server-GEP7QXGI.js +62 -0
- package/dist/bundle/{sqlite-runtime-CTEYXX7L.js → sqlite-runtime-XHZXEOLY.js} +3 -3
- package/dist/bundle/{state-GFHVDGHM.js → state-YI3W6HGO.js} +3 -3
- package/dist/bundle/{store-RCK6HT4F.js → store-C4RFPYPK.js} +9 -9
- package/dist/bundle/{store-Y5XC4LEM.js → store-CIZPJFWE.js} +15 -11
- package/dist/bundle/store-maintenance-command-JNDYWFD2.js +52 -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/server-RIGXUTKZ.js +0 -62
- package/dist/bundle/store-maintenance-command-XH6VMCDU.js +0 -52
|
@@ -9,29 +9,29 @@ import {
|
|
|
9
9
|
providerErrorKey,
|
|
10
10
|
renderEvent,
|
|
11
11
|
runContextOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5KZKVKWU.js";
|
|
13
13
|
import {
|
|
14
14
|
permissionCeiling
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-Y65BQJOY.js";
|
|
16
16
|
import {
|
|
17
17
|
ancestorValue,
|
|
18
18
|
envName,
|
|
19
19
|
readOnlyLockOf,
|
|
20
20
|
readOnlyRefusal
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-45URY64S.js";
|
|
22
22
|
import {
|
|
23
23
|
carries
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-FD44T7HC.js";
|
|
25
25
|
import {
|
|
26
26
|
endpoint
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-UIQMBOXU.js";
|
|
28
28
|
import {
|
|
29
29
|
note
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-IWJ5OLU6.js";
|
|
31
31
|
import {
|
|
32
32
|
filesPresent,
|
|
33
33
|
sharedModelsDirectory
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-3I3TGKVG.js";
|
|
35
35
|
import {
|
|
36
36
|
BUSINESS_KINDS,
|
|
37
37
|
CATEGORIES,
|
|
@@ -109,19 +109,20 @@ import {
|
|
|
109
109
|
typedCommand,
|
|
110
110
|
untrusted,
|
|
111
111
|
useAsProcessRun
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-3WI53AA4.js";
|
|
113
113
|
import {
|
|
114
114
|
isCliFailure,
|
|
115
115
|
storeDamaged
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-APSMQIA4.js";
|
|
117
117
|
import {
|
|
118
118
|
readSharedSection,
|
|
119
|
+
repairConfigText,
|
|
119
120
|
sharedConfigPath,
|
|
120
121
|
writeSharedSection
|
|
121
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-ERUB3KU3.js";
|
|
122
123
|
import {
|
|
123
124
|
storePath
|
|
124
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-Y62I2T36.js";
|
|
125
126
|
import {
|
|
126
127
|
configFilePath,
|
|
127
128
|
createRecordLog,
|
|
@@ -3993,20 +3994,21 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3993
3994
|
}
|
|
3994
3995
|
}, "refuseJoinedPath");
|
|
3995
3996
|
|
|
3996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3997
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
3997
3998
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
3998
3999
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
3999
4000
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
4000
4001
|
var DEFAULT_PERMISSIONS = {
|
|
4001
|
-
|
|
4002
|
+
// Owner, 2026-11-14: deleting a message does not ask; a profile that wants the question sets `ask`.
|
|
4003
|
+
"messages.delete": "allow",
|
|
4002
4004
|
"account.sessions.end": "ask",
|
|
4003
|
-
"bot.messages.delete": "
|
|
4005
|
+
"bot.messages.delete": "allow",
|
|
4004
4006
|
"topics.enable": "ask",
|
|
4005
4007
|
"topics.delete": "ask",
|
|
4006
4008
|
"chats.delete": "ask",
|
|
4007
4009
|
"chats.clear": "ask",
|
|
4008
|
-
// NEED-568: a rule
|
|
4009
|
-
"replies.send": "
|
|
4010
|
+
// Owner, 2026-11-14 (replaces NEED-568): a rule the owner enabled may send; `deny` stops every automatic reply.
|
|
4011
|
+
"replies.send": "allow",
|
|
4010
4012
|
// NEED-1662: an agent that changes settings, schedules or recipients could lift its own limits; the owner opts in.
|
|
4011
4013
|
"mcp.authority": "deny",
|
|
4012
4014
|
// NEED-1663: writes no level stopped before, so MCP could not offer them; over MCP `ask` goes ahead.
|
|
@@ -4397,7 +4399,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
4397
4399
|
}
|
|
4398
4400
|
}, "assertRetentionEvidenceRead");
|
|
4399
4401
|
|
|
4400
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/account.js
|
|
4401
4403
|
var account = strictObject({
|
|
4402
4404
|
provider: text,
|
|
4403
4405
|
id,
|
|
@@ -4407,7 +4409,7 @@ var account = strictObject({
|
|
|
4407
4409
|
scope: optional(picklist(["personal", "work"]))
|
|
4408
4410
|
});
|
|
4409
4411
|
|
|
4410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4412
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/account-session.js
|
|
4411
4413
|
var accountSession = strictObject({
|
|
4412
4414
|
current: boolean(),
|
|
4413
4415
|
client: nullable(text),
|
|
@@ -4417,7 +4419,7 @@ var accountSession = strictObject({
|
|
|
4417
4419
|
created_at: optional(nullable(time))
|
|
4418
4420
|
});
|
|
4419
4421
|
|
|
4420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/account-change.js
|
|
4421
4423
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
4422
4424
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
4423
4425
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -4446,7 +4448,7 @@ var accountRemoval = strictObject({
|
|
|
4446
4448
|
kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
|
|
4447
4449
|
});
|
|
4448
4450
|
|
|
4449
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4451
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
|
|
4450
4452
|
var accountProfile = strictObject({
|
|
4451
4453
|
profile: id,
|
|
4452
4454
|
current: boolean(),
|
|
@@ -4458,7 +4460,7 @@ var accountProfile = strictObject({
|
|
|
4458
4460
|
bot: optional(literal(true))
|
|
4459
4461
|
});
|
|
4460
4462
|
|
|
4461
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4463
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
|
|
4462
4464
|
var milliseconds = pipe(number(), minValue(0));
|
|
4463
4465
|
var counterReading = strictObject({
|
|
4464
4466
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -4470,7 +4472,7 @@ var counterReading = strictObject({
|
|
|
4470
4472
|
});
|
|
4471
4473
|
var selection = record(string(), unknown());
|
|
4472
4474
|
|
|
4473
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4475
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
|
|
4474
4476
|
var adminRow = strictObject({
|
|
4475
4477
|
ref: reference,
|
|
4476
4478
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -4523,7 +4525,7 @@ var adminReport = strictObject({
|
|
|
4523
4525
|
rows: array(adminRow)
|
|
4524
4526
|
});
|
|
4525
4527
|
|
|
4526
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4528
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
4527
4529
|
var closeSuggestion = strictObject({
|
|
4528
4530
|
as: picklist(["done", "dismissed"]),
|
|
4529
4531
|
/** The agent's name. */
|
|
@@ -4585,7 +4587,7 @@ var task = strictObject({
|
|
|
4585
4587
|
updated_at: optional(time)
|
|
4586
4588
|
});
|
|
4587
4589
|
|
|
4588
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4590
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
4589
4591
|
var agendaChat = strictObject({
|
|
4590
4592
|
chat: reference,
|
|
4591
4593
|
title: nullable(text),
|
|
@@ -4655,11 +4657,11 @@ var agenda = strictObject({
|
|
|
4655
4657
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
4656
4658
|
});
|
|
4657
4659
|
|
|
4658
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4660
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
|
|
4659
4661
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
4660
4662
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
4661
4663
|
|
|
4662
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
4663
4665
|
var attachment = strictObject({
|
|
4664
4666
|
/** The message it came with, as a locator; absent inside that message. */
|
|
4665
4667
|
message: optional(reference),
|
|
@@ -4704,7 +4706,7 @@ var hitFile = strictObject({
|
|
|
4704
4706
|
local_path: optional(text)
|
|
4705
4707
|
});
|
|
4706
4708
|
|
|
4707
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4709
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
|
|
4708
4710
|
var actionableError = objectWithRest({
|
|
4709
4711
|
code: text,
|
|
4710
4712
|
message: text,
|
|
@@ -4721,7 +4723,7 @@ var batchResult = strictObject({
|
|
|
4721
4723
|
max_error_percent: count
|
|
4722
4724
|
});
|
|
4723
4725
|
|
|
4724
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4726
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
|
|
4725
4727
|
var extractionItem = strictObject({
|
|
4726
4728
|
ref: reference,
|
|
4727
4729
|
attachment: count,
|
|
@@ -4754,7 +4756,7 @@ var extractionReport = strictObject({
|
|
|
4754
4756
|
cursor: optional(text)
|
|
4755
4757
|
});
|
|
4756
4758
|
|
|
4757
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4759
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
|
|
4758
4760
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
4759
4761
|
var attachmentBytes = strictObject({
|
|
4760
4762
|
ref: reference,
|
|
@@ -4785,7 +4787,7 @@ var attachmentTextChange = strictObject({
|
|
|
4785
4787
|
text: optional(text)
|
|
4786
4788
|
});
|
|
4787
4789
|
|
|
4788
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4790
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
4789
4791
|
var WEIGHTS = {
|
|
4790
4792
|
bot: 3,
|
|
4791
4793
|
scam: 3,
|
|
@@ -4810,7 +4812,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
4810
4812
|
var DIGITS = /\d{5,}/;
|
|
4811
4813
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
4812
4814
|
|
|
4813
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
4814
4816
|
var linkedIdentity = strictObject({
|
|
4815
4817
|
provider: text,
|
|
4816
4818
|
id,
|
|
@@ -4865,7 +4867,7 @@ var contactCheck = strictObject({
|
|
|
4865
4867
|
checked_at: time
|
|
4866
4868
|
});
|
|
4867
4869
|
|
|
4868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4870
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/member.js
|
|
4869
4871
|
var member = strictObject({
|
|
4870
4872
|
id,
|
|
4871
4873
|
name: nullable(text),
|
|
@@ -4888,7 +4890,7 @@ var member = strictObject({
|
|
|
4888
4890
|
check: optional(record(string(), unknown()))
|
|
4889
4891
|
});
|
|
4890
4892
|
|
|
4891
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4893
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/chat.js
|
|
4892
4894
|
var setting = optional(nullable(boolean()));
|
|
4893
4895
|
var chat = strictObject({
|
|
4894
4896
|
ref: reference,
|
|
@@ -4929,7 +4931,7 @@ var chat = strictObject({
|
|
|
4929
4931
|
members: optional(array(member))
|
|
4930
4932
|
});
|
|
4931
4933
|
|
|
4932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4934
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
4933
4935
|
var quoted = strictObject({
|
|
4934
4936
|
id,
|
|
4935
4937
|
sender_id: nullable(id),
|
|
@@ -5048,7 +5050,7 @@ var message = strictObject({
|
|
|
5048
5050
|
provider_metadata: providerMetadata
|
|
5049
5051
|
});
|
|
5050
5052
|
|
|
5051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5053
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/recorded-meeting.js
|
|
5052
5054
|
var recordedMeeting = strictObject({
|
|
5053
5055
|
ref: reference,
|
|
5054
5056
|
meeting_id: count,
|
|
@@ -5061,7 +5063,7 @@ var recordedMeeting = strictObject({
|
|
|
5061
5063
|
people: array(reference)
|
|
5062
5064
|
});
|
|
5063
5065
|
|
|
5064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5066
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
5065
5067
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
5066
5068
|
var contextMessage = strictObject({
|
|
5067
5069
|
locator: reference,
|
|
@@ -5267,7 +5269,7 @@ var contactPreparation = strictObject({
|
|
|
5267
5269
|
})
|
|
5268
5270
|
});
|
|
5269
5271
|
|
|
5270
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5272
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/deal.js
|
|
5271
5273
|
var nullableText = nullable(text);
|
|
5272
5274
|
var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
|
|
5273
5275
|
var outcome = picklist(["open", "won", "lost"]);
|
|
@@ -5378,7 +5380,7 @@ var stage = strictObject({
|
|
|
5378
5380
|
untrusted
|
|
5379
5381
|
});
|
|
5380
5382
|
|
|
5381
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5383
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/business-context.js
|
|
5382
5384
|
var nullableText2 = nullable(text);
|
|
5383
5385
|
var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
|
|
5384
5386
|
var standing = picklist(STANDINGS);
|
|
@@ -5552,7 +5554,7 @@ var dealBrief = strictObject({
|
|
|
5552
5554
|
not_read: coverage2.entries.not_read
|
|
5553
5555
|
});
|
|
5554
5556
|
|
|
5555
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5557
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/chart.js
|
|
5556
5558
|
var chart = strictObject({
|
|
5557
5559
|
version: literal(1),
|
|
5558
5560
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -5567,7 +5569,7 @@ var chart = strictObject({
|
|
|
5567
5569
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
5568
5570
|
});
|
|
5569
5571
|
|
|
5570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/folder.js
|
|
5571
5573
|
var named = strictObject({
|
|
5572
5574
|
id,
|
|
5573
5575
|
title: nullable(text),
|
|
@@ -5590,7 +5592,7 @@ var folder = strictObject({
|
|
|
5590
5592
|
excluded_chats: optional(array(named))
|
|
5591
5593
|
});
|
|
5592
5594
|
|
|
5593
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
|
|
5594
5596
|
var inviteLink = strictObject({
|
|
5595
5597
|
link: text,
|
|
5596
5598
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -5606,7 +5608,7 @@ var inviteLink = strictObject({
|
|
|
5606
5608
|
joined_count: optional(count)
|
|
5607
5609
|
});
|
|
5608
5610
|
|
|
5609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5611
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
|
|
5610
5612
|
var operated = { operation_id: id, chat_id: id };
|
|
5611
5613
|
var group = strictObject({
|
|
5612
5614
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -5686,7 +5688,7 @@ var chatFolderOrder = strictObject({
|
|
|
5686
5688
|
folders: array(strictObject({ id, title: text }))
|
|
5687
5689
|
});
|
|
5688
5690
|
|
|
5689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5691
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
|
|
5690
5692
|
var operated2 = { operation_id: id, chat_id: id };
|
|
5691
5693
|
var chatRemoval = strictObject(operated2);
|
|
5692
5694
|
var chatMuting = strictObject({
|
|
@@ -5697,7 +5699,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
5697
5699
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
5698
5700
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
5699
5701
|
|
|
5700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
|
|
5701
5703
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
5702
5704
|
var chatEvent = strictObject({
|
|
5703
5705
|
chat_id: id,
|
|
@@ -5714,7 +5716,7 @@ var chatEvent = strictObject({
|
|
|
5714
5716
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
5715
5717
|
});
|
|
5716
5718
|
|
|
5717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5719
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
|
|
5718
5720
|
var chatMetadata = strictObject({
|
|
5719
5721
|
chat_id: id,
|
|
5720
5722
|
title: nullable(text),
|
|
@@ -5729,7 +5731,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
5729
5731
|
has_more: boolean()
|
|
5730
5732
|
});
|
|
5731
5733
|
|
|
5732
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5734
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
|
|
5733
5735
|
var action = picklist(["report", "delete", "remove"]);
|
|
5734
5736
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
5735
5737
|
var chatRules = strictObject({
|
|
@@ -5766,7 +5768,7 @@ var chatModeration = strictObject({
|
|
|
5766
5768
|
}))
|
|
5767
5769
|
});
|
|
5768
5770
|
|
|
5769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5771
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
|
|
5770
5772
|
var optionalCount = optional(count);
|
|
5771
5773
|
var minutes = nullable(number());
|
|
5772
5774
|
var chatStats = strictObject({
|
|
@@ -5842,7 +5844,7 @@ var taskStats = strictObject({
|
|
|
5842
5844
|
}))
|
|
5843
5845
|
});
|
|
5844
5846
|
|
|
5845
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5847
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
|
|
5846
5848
|
var memberCount = strictObject({
|
|
5847
5849
|
day: pipe(text, isoDate()),
|
|
5848
5850
|
participants: nullable(count),
|
|
@@ -5865,7 +5867,7 @@ var chatTracking = strictObject({
|
|
|
5865
5867
|
tracked: boolean()
|
|
5866
5868
|
});
|
|
5867
5869
|
|
|
5868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5870
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
5869
5871
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
5870
5872
|
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
5871
5873
|
var profileFields = {
|
|
@@ -5903,7 +5905,7 @@ var profileFields = {
|
|
|
5903
5905
|
}))
|
|
5904
5906
|
};
|
|
5905
5907
|
|
|
5906
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5908
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
5907
5909
|
var contact = strictObject({
|
|
5908
5910
|
ref: reference,
|
|
5909
5911
|
id,
|
|
@@ -5934,7 +5936,7 @@ var contact = strictObject({
|
|
|
5934
5936
|
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
5935
5937
|
});
|
|
5936
5938
|
|
|
5937
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5939
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
|
|
5938
5940
|
var contactNote = strictObject({
|
|
5939
5941
|
id,
|
|
5940
5942
|
/** The contact, as a `contact:` reference. */
|
|
@@ -5946,13 +5948,13 @@ var contactNote = strictObject({
|
|
|
5946
5948
|
updated_at: time
|
|
5947
5949
|
});
|
|
5948
5950
|
|
|
5949
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5951
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
|
|
5950
5952
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
5951
5953
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
5952
5954
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
5953
5955
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
5954
5956
|
|
|
5955
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5957
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
5956
5958
|
var conversation = strictObject({
|
|
5957
5959
|
id,
|
|
5958
5960
|
chat: reference,
|
|
@@ -5967,7 +5969,7 @@ var conversation = strictObject({
|
|
|
5967
5969
|
rules_version: count
|
|
5968
5970
|
});
|
|
5969
5971
|
|
|
5970
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5972
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
|
|
5971
5973
|
var conversationBuild = strictObject({
|
|
5972
5974
|
chat: id,
|
|
5973
5975
|
messages: count,
|
|
@@ -5992,7 +5994,7 @@ var catchUpPreparation = strictObject({
|
|
|
5992
5994
|
prepared: optional(conversationPreparation)
|
|
5993
5995
|
});
|
|
5994
5996
|
|
|
5995
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5997
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
|
|
5996
5998
|
var conversationDetails = union([
|
|
5997
5999
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
5998
6000
|
message
|
|
@@ -6082,7 +6084,7 @@ var conversationHit = strictObject({
|
|
|
6082
6084
|
stale: boolean()
|
|
6083
6085
|
});
|
|
6084
6086
|
|
|
6085
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6087
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/counters.js
|
|
6086
6088
|
var counters = strictObject({
|
|
6087
6089
|
cutoff: time,
|
|
6088
6090
|
max_age_ms: milliseconds,
|
|
@@ -6112,7 +6114,7 @@ var counterRefresh = strictObject({
|
|
|
6112
6114
|
complete: optional(boolean())
|
|
6113
6115
|
});
|
|
6114
6116
|
|
|
6115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6117
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
6116
6118
|
var document = strictObject({
|
|
6117
6119
|
ref: reference,
|
|
6118
6120
|
id,
|
|
@@ -6127,7 +6129,7 @@ var document = strictObject({
|
|
|
6127
6129
|
owners: optional(array(text))
|
|
6128
6130
|
});
|
|
6129
6131
|
|
|
6130
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/document-link.js
|
|
6131
6133
|
var documentLink = strictObject({
|
|
6132
6134
|
ref: reference,
|
|
6133
6135
|
url: text,
|
|
@@ -6138,7 +6140,7 @@ var documentLink = strictObject({
|
|
|
6138
6140
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
6139
6141
|
});
|
|
6140
6142
|
|
|
6141
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/evidence.js
|
|
6142
6144
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
6143
6145
|
var contribution = strictObject({
|
|
6144
6146
|
message: evidenceMessage,
|
|
@@ -6168,7 +6170,7 @@ var retentionStay = strictObject({
|
|
|
6168
6170
|
});
|
|
6169
6171
|
var evidence = union([contribution, retentionStay]);
|
|
6170
6172
|
|
|
6171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/fact.js
|
|
6172
6174
|
var fact = strictObject({
|
|
6173
6175
|
ref: reference,
|
|
6174
6176
|
id,
|
|
@@ -6199,7 +6201,7 @@ var fact = strictObject({
|
|
|
6199
6201
|
updated_at: time
|
|
6200
6202
|
});
|
|
6201
6203
|
|
|
6202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/hit.js
|
|
6203
6205
|
var hit = strictObject({
|
|
6204
6206
|
kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead", ...BUSINESS_KINDS]),
|
|
6205
6207
|
ref: reference,
|
|
@@ -6247,7 +6249,7 @@ var hit = strictObject({
|
|
|
6247
6249
|
untrusted
|
|
6248
6250
|
});
|
|
6249
6251
|
|
|
6250
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/identity.js
|
|
6251
6253
|
var identity = strictObject({
|
|
6252
6254
|
ref: reference,
|
|
6253
6255
|
provider: text,
|
|
@@ -6263,7 +6265,7 @@ var identity = strictObject({
|
|
|
6263
6265
|
person: optional(nullable(reference))
|
|
6264
6266
|
});
|
|
6265
6267
|
|
|
6266
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6268
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
|
|
6267
6269
|
var imageEmbedding = strictObject({
|
|
6268
6270
|
model: text,
|
|
6269
6271
|
embedded: count,
|
|
@@ -6272,13 +6274,13 @@ var imageEmbedding = strictObject({
|
|
|
6272
6274
|
more: boolean()
|
|
6273
6275
|
});
|
|
6274
6276
|
|
|
6275
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6277
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
6276
6278
|
import { spawn } from "node:child_process";
|
|
6277
6279
|
import { randomBytes } from "node:crypto";
|
|
6278
6280
|
import { closeSync, existsSync, mkdirSync, openSync, readdirSync, readFileSync, realpathSync, rmSync } from "node:fs";
|
|
6279
6281
|
import { dirname, join } from "node:path";
|
|
6280
6282
|
|
|
6281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6283
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
6282
6284
|
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
6283
6285
|
const total = input.total ?? null;
|
|
6284
6286
|
const updated = input.updatedAt ?? null;
|
|
@@ -6294,7 +6296,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
6294
6296
|
};
|
|
6295
6297
|
}, "progressOf");
|
|
6296
6298
|
|
|
6297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6299
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
6298
6300
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
6299
6301
|
const run = currentRun();
|
|
6300
6302
|
const trace = traceId ?? run.traceId;
|
|
@@ -6308,7 +6310,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
6308
6310
|
}));
|
|
6309
6311
|
}, "recordLogFor");
|
|
6310
6312
|
|
|
6311
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6313
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
6312
6314
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
6313
6315
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
6314
6316
|
const out = openSync(log, "a", 384);
|
|
@@ -6463,7 +6465,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
6463
6465
|
return { job: id6, pid, chat: input.chat, log };
|
|
6464
6466
|
}, "startArchiveJob");
|
|
6465
6467
|
|
|
6466
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6468
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/job.js
|
|
6467
6469
|
var problem = strictObject({ code: text, message: text });
|
|
6468
6470
|
var job = strictObject({
|
|
6469
6471
|
id,
|
|
@@ -6486,7 +6488,7 @@ var job = strictObject({
|
|
|
6486
6488
|
error: optional(problem)
|
|
6487
6489
|
});
|
|
6488
6490
|
|
|
6489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6491
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/join-request.js
|
|
6490
6492
|
var joinRequest = strictObject({
|
|
6491
6493
|
person_id: id,
|
|
6492
6494
|
name: nullable(text),
|
|
@@ -6497,7 +6499,7 @@ var joinRequest = strictObject({
|
|
|
6497
6499
|
about: optional(text)
|
|
6498
6500
|
});
|
|
6499
6501
|
|
|
6500
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6502
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/list-results.js
|
|
6501
6503
|
var botProfile = strictObject({
|
|
6502
6504
|
name: text,
|
|
6503
6505
|
token: text,
|
|
@@ -6621,7 +6623,7 @@ var stickerInventory = strictObject({
|
|
|
6621
6623
|
url: optional(nullable(text))
|
|
6622
6624
|
});
|
|
6623
6625
|
|
|
6624
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6626
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
|
|
6625
6627
|
var pollVote = strictObject({
|
|
6626
6628
|
person_id: id,
|
|
6627
6629
|
name: nullable(text),
|
|
@@ -6631,7 +6633,7 @@ var pollVote = strictObject({
|
|
|
6631
6633
|
voted_at: time
|
|
6632
6634
|
});
|
|
6633
6635
|
|
|
6634
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/listener.js
|
|
6635
6637
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
6636
6638
|
var observation = strictObject({
|
|
6637
6639
|
value: pipe(number(), minValue(0)),
|
|
@@ -6673,7 +6675,7 @@ var serveSummary = strictObject({
|
|
|
6673
6675
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
6674
6676
|
});
|
|
6675
6677
|
|
|
6676
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
|
|
6677
6679
|
var mailCounts = strictObject({
|
|
6678
6680
|
by: picklist(["day", "week", "sender"]),
|
|
6679
6681
|
received: count,
|
|
@@ -6688,7 +6690,7 @@ var mailCounts = strictObject({
|
|
|
6688
6690
|
}))
|
|
6689
6691
|
});
|
|
6690
6692
|
|
|
6691
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6693
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
|
|
6692
6694
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
6693
6695
|
var base = { id, evidence: array(evidence2) };
|
|
6694
6696
|
var finding = variant("kind", [
|
|
@@ -6832,7 +6834,7 @@ var mailFindings = strictObject({
|
|
|
6832
6834
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
6833
6835
|
});
|
|
6834
6836
|
|
|
6835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6837
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
6836
6838
|
var mediaArchive = strictObject({
|
|
6837
6839
|
directory: text,
|
|
6838
6840
|
chats: count,
|
|
@@ -6864,7 +6866,7 @@ var mediaArchiveTimer = union([
|
|
|
6864
6866
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
6865
6867
|
]);
|
|
6866
6868
|
|
|
6867
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6869
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
6868
6870
|
var preparationId = pipe(string(), minLength(1));
|
|
6869
6871
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
6870
6872
|
var preparationTime = nullable(isoTime);
|
|
@@ -6956,7 +6958,7 @@ var preparationMeeting = strictObject({
|
|
|
6956
6958
|
updated_at: isoTime
|
|
6957
6959
|
});
|
|
6958
6960
|
|
|
6959
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6961
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
6960
6962
|
var meetingEvidence = preparationEvidence;
|
|
6961
6963
|
var meetingPersonContext = strictObject({
|
|
6962
6964
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -6978,7 +6980,7 @@ var meetingPersonContext = strictObject({
|
|
|
6978
6980
|
})
|
|
6979
6981
|
});
|
|
6980
6982
|
|
|
6981
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6983
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
6982
6984
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
6983
6985
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
6984
6986
|
var finding2 = variant("kind", [
|
|
@@ -7016,7 +7018,7 @@ var meetingFindings = strictObject({
|
|
|
7016
7018
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
|
|
7017
7019
|
});
|
|
7018
7020
|
|
|
7019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
7020
7022
|
var communicationCoverage = strictObject({
|
|
7021
7023
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
7022
7024
|
query: string(),
|
|
@@ -7061,7 +7063,7 @@ var preparationCommunications = strictObject({
|
|
|
7061
7063
|
}))
|
|
7062
7064
|
});
|
|
7063
7065
|
|
|
7064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7066
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
7065
7067
|
var meetingPreparation = strictObject({
|
|
7066
7068
|
communications: optional(preparationCommunications),
|
|
7067
7069
|
schema_version: literal(1),
|
|
@@ -7174,7 +7176,7 @@ var meetingPreparation = strictObject({
|
|
|
7174
7176
|
})
|
|
7175
7177
|
});
|
|
7176
7178
|
|
|
7177
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
7178
7180
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
7179
7181
|
var id3 = pipe(string(), minLength(1));
|
|
7180
7182
|
var text3 = string();
|
|
@@ -7238,7 +7240,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
7238
7240
|
})
|
|
7239
7241
|
});
|
|
7240
7242
|
|
|
7241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7243
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
7242
7244
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
7243
7245
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
7244
7246
|
var meetingSeriesInventory = strictObject({
|
|
@@ -7268,7 +7270,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
7268
7270
|
})
|
|
7269
7271
|
});
|
|
7270
7272
|
|
|
7271
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7273
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
7272
7274
|
var text4 = string();
|
|
7273
7275
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
7274
7276
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -7285,7 +7287,7 @@ var meetingTaskProposal = strictObject({
|
|
|
7285
7287
|
persistence: literal("proposal-only")
|
|
7286
7288
|
});
|
|
7287
7289
|
|
|
7288
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7290
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
7289
7291
|
var memory = strictObject({
|
|
7290
7292
|
ref: reference,
|
|
7291
7293
|
id,
|
|
@@ -7313,7 +7315,7 @@ var memory = strictObject({
|
|
|
7313
7315
|
updated_at: time
|
|
7314
7316
|
});
|
|
7315
7317
|
|
|
7316
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7318
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
7317
7319
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
7318
7320
|
var status = picklist(["found", "linked", "proposed", "dismissed"]);
|
|
7319
7321
|
var mention = strictObject({
|
|
@@ -7357,13 +7359,13 @@ var mentionRebuild = strictObject({
|
|
|
7357
7359
|
mentions: count
|
|
7358
7360
|
});
|
|
7359
7361
|
|
|
7360
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7362
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
7361
7363
|
var operated3 = { operation_id: id, chat_id: id };
|
|
7362
7364
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
7363
7365
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
7364
7366
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
7365
7367
|
|
|
7366
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
7367
7369
|
var messageTranscript = strictObject({
|
|
7368
7370
|
message_id: id,
|
|
7369
7371
|
text,
|
|
@@ -7421,7 +7423,7 @@ var evidencePacket = strictObject({
|
|
|
7421
7423
|
}))
|
|
7422
7424
|
});
|
|
7423
7425
|
|
|
7424
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
7425
7427
|
var messageThread = strictObject({
|
|
7426
7428
|
ref: reference,
|
|
7427
7429
|
chat: id,
|
|
@@ -7438,7 +7440,7 @@ var messageThread = strictObject({
|
|
|
7438
7440
|
});
|
|
7439
7441
|
var messageContext = union([message, messageThread]);
|
|
7440
7442
|
|
|
7441
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7443
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
7442
7444
|
var messageCounts = strictObject({
|
|
7443
7445
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
7444
7446
|
total: count,
|
|
@@ -7451,7 +7453,7 @@ var messageCounts = strictObject({
|
|
|
7451
7453
|
}))
|
|
7452
7454
|
});
|
|
7453
7455
|
|
|
7454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7456
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
7455
7457
|
var messageLink = strictObject({
|
|
7456
7458
|
ref: reference,
|
|
7457
7459
|
url: nullable(text),
|
|
@@ -7468,7 +7470,7 @@ var messageLink = strictObject({
|
|
|
7468
7470
|
})))
|
|
7469
7471
|
});
|
|
7470
7472
|
|
|
7471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7473
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
7472
7474
|
var savedMessageFile = strictObject({
|
|
7473
7475
|
kind: text,
|
|
7474
7476
|
path: text,
|
|
@@ -7555,7 +7557,7 @@ var messageSyncAll = strictObject({
|
|
|
7555
7557
|
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
7556
7558
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
7557
7559
|
|
|
7558
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7560
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
7559
7561
|
var messageWrite = strictObject({
|
|
7560
7562
|
operation_id: id,
|
|
7561
7563
|
message,
|
|
@@ -7570,7 +7572,7 @@ var draftWrite = strictObject({
|
|
|
7570
7572
|
});
|
|
7571
7573
|
var messageSend = union([messageWrite, draftWrite]);
|
|
7572
7574
|
|
|
7573
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7575
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
7574
7576
|
var model = strictObject({
|
|
7575
7577
|
id,
|
|
7576
7578
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -7605,7 +7607,7 @@ var chosenModel = strictObject({
|
|
|
7605
7607
|
estimate_seconds: nullable(count)
|
|
7606
7608
|
});
|
|
7607
7609
|
|
|
7608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7610
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
7609
7611
|
var source = picklist(["environment", "keyring", "file"]);
|
|
7610
7612
|
var modelKey = strictObject({
|
|
7611
7613
|
provider: text,
|
|
@@ -7615,7 +7617,7 @@ var modelKey = strictObject({
|
|
|
7615
7617
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
7616
7618
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
7617
7619
|
|
|
7618
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7620
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
7619
7621
|
var versus = strictObject({ current: number(), previous: number() });
|
|
7620
7622
|
var person = { person_ref: reference, name: nullable(text) };
|
|
7621
7623
|
var graph = strictObject({
|
|
@@ -7649,14 +7651,14 @@ var officialStats = strictObject({
|
|
|
7649
7651
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
7650
7652
|
});
|
|
7651
7653
|
|
|
7652
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7654
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
7653
7655
|
var person2 = strictObject({
|
|
7654
7656
|
ref: reference,
|
|
7655
7657
|
name: nullable(text),
|
|
7656
7658
|
identities: optional(array(identity))
|
|
7657
7659
|
});
|
|
7658
7660
|
|
|
7659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
7660
7662
|
var poll = strictObject({
|
|
7661
7663
|
chat_id: id,
|
|
7662
7664
|
message_id: id,
|
|
@@ -7672,11 +7674,11 @@ var poll = strictObject({
|
|
|
7672
7674
|
});
|
|
7673
7675
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
7674
7676
|
|
|
7675
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
7676
7678
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
7677
7679
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
7678
7680
|
|
|
7679
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
7680
7682
|
var figures = record(string(), number());
|
|
7681
7683
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
7682
7684
|
var rankingRow = strictObject({
|
|
@@ -7723,7 +7725,7 @@ var ranking = strictObject({
|
|
|
7723
7725
|
rows: array(rankingRow)
|
|
7724
7726
|
});
|
|
7725
7727
|
|
|
7726
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7728
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
7727
7729
|
var reaction = strictObject({
|
|
7728
7730
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
7729
7731
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -7731,7 +7733,7 @@ var reaction = strictObject({
|
|
|
7731
7733
|
reacted_at: time
|
|
7732
7734
|
});
|
|
7733
7735
|
|
|
7734
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
7735
7737
|
var reactionChange = strictObject({
|
|
7736
7738
|
operation_id: id,
|
|
7737
7739
|
chat_id: id,
|
|
@@ -7739,7 +7741,7 @@ var reactionChange = strictObject({
|
|
|
7739
7741
|
reaction: nullable(text)
|
|
7740
7742
|
});
|
|
7741
7743
|
|
|
7742
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7744
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
7743
7745
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
7744
7746
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
7745
7747
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -7750,7 +7752,7 @@ var recipientChange = strictObject({
|
|
|
7750
7752
|
...partial(recipientOff).entries
|
|
7751
7753
|
});
|
|
7752
7754
|
|
|
7753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
7754
7756
|
var events = array(record(string(), unknown()));
|
|
7755
7757
|
var recordedRun = strictObject({
|
|
7756
7758
|
run_id: id,
|
|
@@ -7822,7 +7824,7 @@ var runHit = strictObject({
|
|
|
7822
7824
|
});
|
|
7823
7825
|
var runLocation = strictObject({ path: text });
|
|
7824
7826
|
|
|
7825
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7827
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
7826
7828
|
var relationship = strictObject({
|
|
7827
7829
|
id,
|
|
7828
7830
|
from: reference,
|
|
@@ -7849,7 +7851,7 @@ var relationship = strictObject({
|
|
|
7849
7851
|
created_at: time
|
|
7850
7852
|
});
|
|
7851
7853
|
|
|
7852
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7854
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
7853
7855
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
7854
7856
|
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
7855
7857
|
var responseTimes = strictObject({
|
|
@@ -7866,7 +7868,7 @@ var waitingChats = strictObject({
|
|
|
7866
7868
|
by_kind: strictObject({ private: count, group: count })
|
|
7867
7869
|
});
|
|
7868
7870
|
|
|
7869
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7871
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
7870
7872
|
var retentionCohort = strictObject({
|
|
7871
7873
|
/** The first day of the joining day or week. */
|
|
7872
7874
|
cohort: text,
|
|
@@ -7914,7 +7916,7 @@ var retention = strictObject({
|
|
|
7914
7916
|
rows: array(retentionCohort)
|
|
7915
7917
|
});
|
|
7916
7918
|
|
|
7917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
7918
7920
|
var savedSearch = strictObject({
|
|
7919
7921
|
id,
|
|
7920
7922
|
/** `null` for a run in the history. */
|
|
@@ -7931,7 +7933,7 @@ var savedSearch = strictObject({
|
|
|
7931
7933
|
});
|
|
7932
7934
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
7933
7935
|
|
|
7934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
7935
7937
|
var sendAttempt = strictObject({
|
|
7936
7938
|
at: time,
|
|
7937
7939
|
profile: text,
|
|
@@ -7959,7 +7961,7 @@ var sendAttempt = strictObject({
|
|
|
7959
7961
|
error_code: optional(text)
|
|
7960
7962
|
});
|
|
7961
7963
|
|
|
7962
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7964
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
7963
7965
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
7964
7966
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
7965
7967
|
var infoSchema = strictObject({
|
|
@@ -8189,7 +8191,7 @@ var storeRepair = union([
|
|
|
8189
8191
|
]);
|
|
8190
8192
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
8191
8193
|
|
|
8192
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
8193
8195
|
var range = strictObject({ from: number(), to: number() });
|
|
8194
8196
|
var storeChatStatus = strictObject({
|
|
8195
8197
|
chat_id: id,
|
|
@@ -8287,7 +8289,7 @@ var storeJobRetry = union([
|
|
|
8287
8289
|
]);
|
|
8288
8290
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
8289
8291
|
|
|
8290
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8292
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
8291
8293
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
8292
8294
|
var storeTable = strictObject({
|
|
8293
8295
|
name: text,
|
|
@@ -8296,7 +8298,7 @@ var storeTable = strictObject({
|
|
|
8296
8298
|
bytes: optional(nullable(count))
|
|
8297
8299
|
});
|
|
8298
8300
|
|
|
8299
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8301
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
8300
8302
|
var tagTarget = variant("type", [
|
|
8301
8303
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
8302
8304
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -8327,7 +8329,7 @@ var automaticTags = strictObject({
|
|
|
8327
8329
|
dry_run: boolean()
|
|
8328
8330
|
});
|
|
8329
8331
|
|
|
8330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8332
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
8331
8333
|
var tagging = strictObject({
|
|
8332
8334
|
tag: text,
|
|
8333
8335
|
type: picklist(TAG_TYPES),
|
|
@@ -8340,7 +8342,7 @@ var tagging = strictObject({
|
|
|
8340
8342
|
created_at: time
|
|
8341
8343
|
});
|
|
8342
8344
|
|
|
8343
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
8344
8346
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
8345
8347
|
var taskPair = strictObject({
|
|
8346
8348
|
task: nullable(side),
|
|
@@ -8363,7 +8365,7 @@ var taskPair = strictObject({
|
|
|
8363
8365
|
created_at: time
|
|
8364
8366
|
});
|
|
8365
8367
|
|
|
8366
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
8367
8369
|
var nullableTime = nullable(time);
|
|
8368
8370
|
var link = strictObject({
|
|
8369
8371
|
id,
|
|
@@ -8537,7 +8539,7 @@ var taskReview = strictObject({
|
|
|
8537
8539
|
untrusted
|
|
8538
8540
|
});
|
|
8539
8541
|
|
|
8540
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8542
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/template.js
|
|
8541
8543
|
var template = strictObject({
|
|
8542
8544
|
key: text,
|
|
8543
8545
|
channel: picklist(["telegram", "email", "text"]),
|
|
@@ -8549,7 +8551,7 @@ var template = strictObject({
|
|
|
8549
8551
|
updated_by: nullable(text)
|
|
8550
8552
|
});
|
|
8551
8553
|
|
|
8552
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8554
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
8553
8555
|
var topic = strictObject({
|
|
8554
8556
|
id,
|
|
8555
8557
|
title: text,
|
|
@@ -8563,7 +8565,7 @@ var topic = strictObject({
|
|
|
8563
8565
|
untrusted
|
|
8564
8566
|
});
|
|
8565
8567
|
|
|
8566
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8568
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
8567
8569
|
var ENTITIES = {
|
|
8568
8570
|
sync_progress: progress,
|
|
8569
8571
|
deal,
|
|
@@ -8858,7 +8860,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
8858
8860
|
return [name, definition];
|
|
8859
8861
|
})), "entityDefinitions");
|
|
8860
8862
|
|
|
8861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8863
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
8862
8864
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
8863
8865
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
8864
8866
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -8892,7 +8894,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
8892
8894
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
8893
8895
|
}, "answerRow");
|
|
8894
8896
|
|
|
8895
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/command-server-request.js
|
|
8896
8898
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
8897
8899
|
var requests = new AsyncLocalStorage();
|
|
8898
8900
|
var inCommandServerRequest = /* @__PURE__ */ __name((request, work) => requests.run(request, work), "inCommandServerRequest");
|
|
@@ -8907,7 +8909,7 @@ var exitCodeSet = /* @__PURE__ */ __name(() => {
|
|
|
8907
8909
|
return direct;
|
|
8908
8910
|
}, "exitCodeSet");
|
|
8909
8911
|
|
|
8910
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8912
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
8911
8913
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
8912
8914
|
var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
|
|
8913
8915
|
messageId: message2.id,
|
|
@@ -9013,7 +9015,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
9013
9015
|
}, "guardedWrite");
|
|
9014
9016
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
9015
9017
|
|
|
9016
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
9017
9019
|
var named2 = /* @__PURE__ */ __name((work) => {
|
|
9018
9020
|
try {
|
|
9019
9021
|
return work();
|
|
@@ -9040,7 +9042,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named2(() => {
|
|
|
9040
9042
|
return projectFields(value, fields);
|
|
9041
9043
|
}), "projectFields");
|
|
9042
9044
|
|
|
9043
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9045
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
9044
9046
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
9045
9047
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
9046
9048
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -9223,7 +9225,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
9223
9225
|
}
|
|
9224
9226
|
}, "withAbort");
|
|
9225
9227
|
|
|
9226
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9228
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
|
|
9227
9229
|
import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
9228
9230
|
import { join as join2 } from "node:path";
|
|
9229
9231
|
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
|
|
@@ -9312,7 +9314,7 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
|
|
|
9312
9314
|
return readdirSync2(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
|
|
9313
9315
|
}, "registryProfiles");
|
|
9314
9316
|
|
|
9315
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9317
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
9316
9318
|
import { existsSync as existsSync3, readdirSync as readdirSync3, readFileSync as readFileSync3 } from "node:fs";
|
|
9317
9319
|
import { join as join3 } from "node:path";
|
|
9318
9320
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -9334,7 +9336,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
9334
9336
|
}, "profilesWithAccounts");
|
|
9335
9337
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
9336
9338
|
|
|
9337
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9339
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
9338
9340
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
9339
9341
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
9340
9342
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -9370,7 +9372,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
9370
9372
|
return value;
|
|
9371
9373
|
}, "atDetail");
|
|
9372
9374
|
|
|
9373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9375
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/output.js
|
|
9374
9376
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
9375
9377
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
9376
9378
|
if (other)
|
|
@@ -9434,7 +9436,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
|
|
|
9434
9436
|
}, "warn")
|
|
9435
9437
|
}), "silence");
|
|
9436
9438
|
|
|
9437
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
9438
9440
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
9439
9441
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
9440
9442
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -9472,7 +9474,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
9472
9474
|
progress: "sync.progress"
|
|
9473
9475
|
};
|
|
9474
9476
|
|
|
9475
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9477
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
9476
9478
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
9477
9479
|
const recording = startRecording(options);
|
|
9478
9480
|
try {
|
|
@@ -9687,7 +9689,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
9687
9689
|
return void 0;
|
|
9688
9690
|
}, "partialOutcome");
|
|
9689
9691
|
|
|
9690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9692
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
9691
9693
|
var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
9692
9694
|
if (ms2 === void 0)
|
|
9693
9695
|
return body();
|
|
@@ -9713,7 +9715,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
|
9713
9715
|
}
|
|
9714
9716
|
}, "withDeadline");
|
|
9715
9717
|
|
|
9716
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9718
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
9717
9719
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
9718
9720
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
9719
9721
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -9782,10 +9784,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
9782
9784
|
return void 0;
|
|
9783
9785
|
}, "sampleCommand");
|
|
9784
9786
|
|
|
9785
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9787
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
9786
9788
|
import { existsSync as existsSync6 } from "node:fs";
|
|
9787
9789
|
|
|
9788
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9790
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
9789
9791
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
9790
9792
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
9791
9793
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -9854,7 +9856,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
9854
9856
|
};
|
|
9855
9857
|
}, "modelTarget");
|
|
9856
9858
|
|
|
9857
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9859
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
9858
9860
|
var model2 = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
9859
9861
|
var url2 = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
9860
9862
|
var AI_FIELDS = {
|
|
@@ -9898,7 +9900,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
9898
9900
|
};
|
|
9899
9901
|
}, "resolveAISettings");
|
|
9900
9902
|
|
|
9901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9903
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
9902
9904
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
9903
9905
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
9904
9906
|
var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
@@ -9912,7 +9914,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
|
9912
9914
|
return ms2;
|
|
9913
9915
|
}, "parseDuration");
|
|
9914
9916
|
|
|
9915
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
9916
9918
|
import { existsSync as existsSync4 } from "node:fs";
|
|
9917
9919
|
import { join as join4 } from "node:path";
|
|
9918
9920
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
@@ -10189,7 +10191,7 @@ var vectorModelKey = /* @__PURE__ */ __name((model3) => {
|
|
|
10189
10191
|
}, "vectorModelKey");
|
|
10190
10192
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
10191
10193
|
|
|
10192
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
10193
10195
|
var HISTORY_MAX_DAYS = 1095;
|
|
10194
10196
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
10195
10197
|
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -10236,251 +10238,8 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
10236
10238
|
return { batch: { ...batch, messages }, skipped };
|
|
10237
10239
|
}, "limitBatch");
|
|
10238
10240
|
|
|
10239
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10241
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
10240
10242
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
10241
|
-
|
|
10242
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
|
|
10243
|
-
var REPAIR_WORDS = {
|
|
10244
|
-
byte_order_mark: "an invisible byte-order mark at the start",
|
|
10245
|
-
comment: "a comment, which JSON does not allow",
|
|
10246
|
-
trailing_comma: "a comma before a closing bracket",
|
|
10247
|
-
missing_comma: "a missing comma",
|
|
10248
|
-
unquoted_key: "a key without double quotes",
|
|
10249
|
-
single_quotes: "text in single quotes",
|
|
10250
|
-
missing_closer: "the file stops before its closing brackets \u2014 whatever followed this line was already lost"
|
|
10251
|
-
};
|
|
10252
|
-
var GiveUp = class {
|
|
10253
|
-
static {
|
|
10254
|
-
__name(this, "GiveUp");
|
|
10255
|
-
}
|
|
10256
|
-
at;
|
|
10257
|
-
why;
|
|
10258
|
-
constructor(at2, why) {
|
|
10259
|
-
this.at = at2;
|
|
10260
|
-
this.why = why;
|
|
10261
|
-
}
|
|
10262
|
-
};
|
|
10263
|
-
var NUMBER = /^-?(0|[1-9]\d*)(\.\d+)?([eE][+-]?\d+)?/;
|
|
10264
|
-
var LITERAL = /^(true|false|null)/;
|
|
10265
|
-
var KEY = /^[A-Za-z_$][\w$.-]*/;
|
|
10266
|
-
var ENDS_VALUE = /^[\s,\]}/]?$/;
|
|
10267
|
-
var repairConfigText = /* @__PURE__ */ __name((text5) => {
|
|
10268
|
-
try {
|
|
10269
|
-
JSON.parse(text5);
|
|
10270
|
-
return { state: "valid" };
|
|
10271
|
-
} catch {
|
|
10272
|
-
}
|
|
10273
|
-
const fixes = [];
|
|
10274
|
-
const lineAt = /* @__PURE__ */ __name((offset) => text5.slice(0, offset).split("\n").length, "lineAt");
|
|
10275
|
-
const fix = /* @__PURE__ */ __name((kind2, offset) => fixes.push({ kind: kind2, line: lineAt(offset) }), "fix");
|
|
10276
|
-
const giveUp = /* @__PURE__ */ __name((why, offset = at2) => {
|
|
10277
|
-
throw new GiveUp(offset, why);
|
|
10278
|
-
}, "giveUp");
|
|
10279
|
-
let at2 = 0;
|
|
10280
|
-
let truncated = false;
|
|
10281
|
-
let last = "open";
|
|
10282
|
-
let lastEnd = 0;
|
|
10283
|
-
const previous = /* @__PURE__ */ __name(() => last, "previous");
|
|
10284
|
-
const skip = /* @__PURE__ */ __name(() => {
|
|
10285
|
-
for (; ; ) {
|
|
10286
|
-
while (/\s/.test(text5[at2] ?? ""))
|
|
10287
|
-
at2++;
|
|
10288
|
-
if (text5.startsWith("//", at2)) {
|
|
10289
|
-
fix("comment", at2);
|
|
10290
|
-
while (at2 < text5.length && text5[at2] !== "\n")
|
|
10291
|
-
at2++;
|
|
10292
|
-
} else if (text5.startsWith("/*", at2)) {
|
|
10293
|
-
const end = text5.indexOf("*/", at2 + 2);
|
|
10294
|
-
if (end < 0)
|
|
10295
|
-
giveUp("a /* comment is never closed");
|
|
10296
|
-
fix("comment", at2);
|
|
10297
|
-
at2 = end + 2;
|
|
10298
|
-
} else
|
|
10299
|
-
return;
|
|
10300
|
-
}
|
|
10301
|
-
}, "skip");
|
|
10302
|
-
const string2 = /* @__PURE__ */ __name(() => {
|
|
10303
|
-
const quote = text5[at2];
|
|
10304
|
-
const start = at2;
|
|
10305
|
-
if (quote === "'")
|
|
10306
|
-
fix("single_quotes", at2);
|
|
10307
|
-
at2++;
|
|
10308
|
-
let body = "";
|
|
10309
|
-
for (; ; ) {
|
|
10310
|
-
if (at2 >= text5.length)
|
|
10311
|
-
giveUp("the file stops inside a quoted text", start);
|
|
10312
|
-
const char = text5[at2];
|
|
10313
|
-
if (char === quote)
|
|
10314
|
-
break;
|
|
10315
|
-
if (text5.charCodeAt(at2) < 32)
|
|
10316
|
-
giveUp("a line break inside a quoted text");
|
|
10317
|
-
if (char === "\\") {
|
|
10318
|
-
const next = text5[at2 + 1] ?? "";
|
|
10319
|
-
if (quote === "'" && next === "'")
|
|
10320
|
-
body += "'";
|
|
10321
|
-
else if (/^["\\/bfnrt]$/.test(next))
|
|
10322
|
-
body += `\\${next}`;
|
|
10323
|
-
else if (next === "u" && /^[0-9a-fA-F]{4}$/.test(text5.slice(at2 + 2, at2 + 6))) {
|
|
10324
|
-
body += text5.slice(at2, at2 + 6);
|
|
10325
|
-
at2 += 4;
|
|
10326
|
-
} else
|
|
10327
|
-
giveUp("an escape JSON has no meaning for");
|
|
10328
|
-
at2 += 2;
|
|
10329
|
-
continue;
|
|
10330
|
-
}
|
|
10331
|
-
body += char === '"' ? '\\"' : char;
|
|
10332
|
-
at2++;
|
|
10333
|
-
}
|
|
10334
|
-
at2++;
|
|
10335
|
-
return JSON.parse(`"${body}"`);
|
|
10336
|
-
}, "string");
|
|
10337
|
-
const key = /* @__PURE__ */ __name(() => {
|
|
10338
|
-
const char = text5[at2] ?? "";
|
|
10339
|
-
if (char === '"' || char === "'")
|
|
10340
|
-
return string2();
|
|
10341
|
-
const word = KEY.exec(text5.slice(at2))?.[0];
|
|
10342
|
-
if (!word)
|
|
10343
|
-
return giveUp("something other than a key where a key should be");
|
|
10344
|
-
fix("unquoted_key", at2);
|
|
10345
|
-
at2 += word.length;
|
|
10346
|
-
return word;
|
|
10347
|
-
}, "key");
|
|
10348
|
-
const scalar = /* @__PURE__ */ __name(() => {
|
|
10349
|
-
const char = text5[at2] ?? "";
|
|
10350
|
-
if (char === '"' || char === "'")
|
|
10351
|
-
return { json: JSON.stringify(string2()) };
|
|
10352
|
-
const word = (NUMBER.exec(text5.slice(at2)) ?? LITERAL.exec(text5.slice(at2)))?.[0];
|
|
10353
|
-
if (!word || !ENDS_VALUE.test(text5[at2 + word.length] ?? ""))
|
|
10354
|
-
return giveUp("a value that is not JSON \u2014 text needs quotes, and only true, false and null go without");
|
|
10355
|
-
if (at2 + word.length === text5.length && NUMBER.test(word))
|
|
10356
|
-
giveUp("the file stops inside a number");
|
|
10357
|
-
at2 += word.length;
|
|
10358
|
-
return { json: word };
|
|
10359
|
-
}, "scalar");
|
|
10360
|
-
const members = /* @__PURE__ */ __name((close, one) => {
|
|
10361
|
-
const out = [];
|
|
10362
|
-
at2++;
|
|
10363
|
-
last = "open";
|
|
10364
|
-
let comma = -1;
|
|
10365
|
-
for (; ; ) {
|
|
10366
|
-
skip();
|
|
10367
|
-
if (truncated)
|
|
10368
|
-
return out;
|
|
10369
|
-
if (at2 >= text5.length) {
|
|
10370
|
-
if (previous() === "close")
|
|
10371
|
-
giveUp("the file stops after a closing bracket, so which brackets are missing has two readings");
|
|
10372
|
-
if (previous() === "comma")
|
|
10373
|
-
fix("trailing_comma", comma);
|
|
10374
|
-
fix("missing_closer", text5.length);
|
|
10375
|
-
truncated = true;
|
|
10376
|
-
return out;
|
|
10377
|
-
}
|
|
10378
|
-
const char = text5[at2];
|
|
10379
|
-
if (char === close) {
|
|
10380
|
-
if (previous() === "comma")
|
|
10381
|
-
fix("trailing_comma", comma);
|
|
10382
|
-
at2++;
|
|
10383
|
-
last = "close";
|
|
10384
|
-
return out;
|
|
10385
|
-
}
|
|
10386
|
-
if (char === "}" || char === "]")
|
|
10387
|
-
giveUp(`a ${char} where ${close} should close`);
|
|
10388
|
-
if (char === ",") {
|
|
10389
|
-
if (previous() !== "value" && previous() !== "close")
|
|
10390
|
-
giveUp("a comma with nothing before it");
|
|
10391
|
-
comma = at2;
|
|
10392
|
-
at2++;
|
|
10393
|
-
last = "comma";
|
|
10394
|
-
continue;
|
|
10395
|
-
}
|
|
10396
|
-
if (previous() === "value" || previous() === "close") {
|
|
10397
|
-
if (lineAt(at2) === lineAt(lastEnd))
|
|
10398
|
-
giveUp("two entries on one line with no comma between them");
|
|
10399
|
-
fix("missing_comma", lastEnd);
|
|
10400
|
-
}
|
|
10401
|
-
out.push(one());
|
|
10402
|
-
}
|
|
10403
|
-
}, "members");
|
|
10404
|
-
const value = /* @__PURE__ */ __name(() => {
|
|
10405
|
-
const char = text5[at2] ?? "";
|
|
10406
|
-
let node;
|
|
10407
|
-
if (char === "{") {
|
|
10408
|
-
const seen = /* @__PURE__ */ new Set();
|
|
10409
|
-
node = {
|
|
10410
|
-
object: members("}", () => {
|
|
10411
|
-
const start = at2;
|
|
10412
|
-
const name = key();
|
|
10413
|
-
if (seen.has(name))
|
|
10414
|
-
giveUp("a key appears twice in one object", start);
|
|
10415
|
-
seen.add(name);
|
|
10416
|
-
skip();
|
|
10417
|
-
if (at2 >= text5.length)
|
|
10418
|
-
giveUp("the file stops after a key, before its value");
|
|
10419
|
-
if (text5[at2] !== ":")
|
|
10420
|
-
giveUp("a key with no colon after it");
|
|
10421
|
-
at2++;
|
|
10422
|
-
skip();
|
|
10423
|
-
if (at2 >= text5.length)
|
|
10424
|
-
giveUp("the file stops after a key, before its value");
|
|
10425
|
-
return [name, value()];
|
|
10426
|
-
})
|
|
10427
|
-
};
|
|
10428
|
-
} else if (char === "[") {
|
|
10429
|
-
node = {
|
|
10430
|
-
array: members("]", () => {
|
|
10431
|
-
return value();
|
|
10432
|
-
})
|
|
10433
|
-
};
|
|
10434
|
-
} else
|
|
10435
|
-
node = scalar();
|
|
10436
|
-
if (!truncated) {
|
|
10437
|
-
last = "json" in node ? "value" : "close";
|
|
10438
|
-
lastEnd = at2;
|
|
10439
|
-
}
|
|
10440
|
-
return node;
|
|
10441
|
-
}, "value");
|
|
10442
|
-
try {
|
|
10443
|
-
if (text5.includes("\0") || text5.includes(String.fromCharCode(65533)))
|
|
10444
|
-
giveUp("the file is not text", 0);
|
|
10445
|
-
if (text5.charCodeAt(0) === 65279) {
|
|
10446
|
-
fix("byte_order_mark", 0);
|
|
10447
|
-
at2 = 1;
|
|
10448
|
-
}
|
|
10449
|
-
skip();
|
|
10450
|
-
if (text5[at2] !== "{")
|
|
10451
|
-
giveUp(at2 >= text5.length ? "the file is empty" : "the file does not start with {");
|
|
10452
|
-
const root = value();
|
|
10453
|
-
skip();
|
|
10454
|
-
if (at2 < text5.length)
|
|
10455
|
-
giveUp("more text after the closing }");
|
|
10456
|
-
const repaired = `${serialise(root, "")}
|
|
10457
|
-
`;
|
|
10458
|
-
JSON.parse(repaired);
|
|
10459
|
-
return { state: "repaired", text: repaired, fixes };
|
|
10460
|
-
} catch (error) {
|
|
10461
|
-
if (!(error instanceof GiveUp))
|
|
10462
|
-
throw error;
|
|
10463
|
-
const before = text5.slice(0, error.at).split("\n");
|
|
10464
|
-
return {
|
|
10465
|
-
state: "refused",
|
|
10466
|
-
line: before.length,
|
|
10467
|
-
column: (before.at(-1)?.length ?? 0) + 1,
|
|
10468
|
-
why: error.why
|
|
10469
|
-
};
|
|
10470
|
-
}
|
|
10471
|
-
}, "repairConfigText");
|
|
10472
|
-
var serialise = /* @__PURE__ */ __name((node, indent) => {
|
|
10473
|
-
if ("json" in node)
|
|
10474
|
-
return node.json;
|
|
10475
|
-
const inner = `${indent} `;
|
|
10476
|
-
const parts = "object" in node ? node.object.map(([name, item]) => `${inner}${JSON.stringify(name)}: ${serialise(item, inner)}`) : node.array.map((item) => `${inner}${serialise(item, inner)}`);
|
|
10477
|
-
const [open, close] = "object" in node ? ["{", "}"] : ["[", "]"];
|
|
10478
|
-
return parts.length === 0 ? `${open}${close}` : `${open}
|
|
10479
|
-
${parts.join(",\n")}
|
|
10480
|
-
${indent}${close}`;
|
|
10481
|
-
}, "serialise");
|
|
10482
|
-
|
|
10483
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
10484
10243
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
10485
10244
|
var SECTIONS = ["personal", "bot"];
|
|
10486
10245
|
var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
|
|
@@ -10774,7 +10533,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
10774
10533
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
10775
10534
|
}, "readConfigFile");
|
|
10776
10535
|
|
|
10777
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10536
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
10778
10537
|
import { existsSync as existsSync5, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync } from "node:fs";
|
|
10779
10538
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
10780
10539
|
var DEFAULT_CONFIG = {
|
|
@@ -10803,7 +10562,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
10803
10562
|
}
|
|
10804
10563
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
10805
10564
|
|
|
10806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10565
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
|
|
10807
10566
|
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
10808
10567
|
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
10809
10568
|
const path2 = key.split(".");
|
|
@@ -10825,7 +10584,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
|
|
|
10825
10584
|
return { config, added };
|
|
10826
10585
|
}, "withSettingDefaults");
|
|
10827
10586
|
|
|
10828
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
10829
10588
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
10830
10589
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
10831
10590
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -11351,7 +11110,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
11351
11110
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
11352
11111
|
}, "given");
|
|
11353
11112
|
|
|
11354
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
11355
11114
|
var setExitCode = /* @__PURE__ */ __name((command, code) => {
|
|
11356
11115
|
const slot = environmentOf(command).exit;
|
|
11357
11116
|
const request = commandServerRequest();
|
|
@@ -11481,7 +11240,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
11481
11240
|
return words2.join(" ");
|
|
11482
11241
|
}, "commandPath");
|
|
11483
11242
|
|
|
11484
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11243
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
11485
11244
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
11486
11245
|
var FETCH = { remote: "read", local: "write" };
|
|
11487
11246
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -11620,7 +11379,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
11620
11379
|
throw readOnlyRefusal(lock, what);
|
|
11621
11380
|
}, "refuseUnderReadOnly");
|
|
11622
11381
|
|
|
11623
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
11624
11383
|
import { join as join6 } from "node:path";
|
|
11625
11384
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
11626
11385
|
var IMAGE_MODELS = [
|
|
@@ -11674,7 +11433,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
11674
11433
|
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
|
|
11675
11434
|
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
11676
11435
|
|
|
11677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11436
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
11678
11437
|
var STEPS2 = defineSteps([
|
|
11679
11438
|
...STEPS,
|
|
11680
11439
|
{
|
|
@@ -11964,7 +11723,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
11964
11723
|
].join(" ");
|
|
11965
11724
|
}, "stepLine");
|
|
11966
11725
|
|
|
11967
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11726
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
11968
11727
|
var where = [{ field: "ref" }];
|
|
11969
11728
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
11970
11729
|
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
@@ -12056,7 +11815,7 @@ var STATUS_ROWS = {
|
|
|
12056
11815
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
12057
11816
|
};
|
|
12058
11817
|
|
|
12059
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
12060
11819
|
var TEXT_CHARS = 400;
|
|
12061
11820
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
12062
11821
|
var messageRow = {
|
|
@@ -12424,7 +12183,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
12424
12183
|
return lines.concat(footerOf(body)).join("\n");
|
|
12425
12184
|
}, "compactText");
|
|
12426
12185
|
|
|
12427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12186
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
12428
12187
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
12429
12188
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
12430
12189
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -12482,7 +12241,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
12482
12241
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
12483
12242
|
}, "largeAnswerSteps");
|
|
12484
12243
|
|
|
12485
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12244
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
12486
12245
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
12487
12246
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
12488
12247
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -12496,7 +12255,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
12496
12255
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
12497
12256
|
}, "strip");
|
|
12498
12257
|
|
|
12499
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/untrusted-marks.js
|
|
12500
12259
|
var OPEN = "\u27E6";
|
|
12501
12260
|
var CLOSE = "\u27E7";
|
|
12502
12261
|
var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -12580,7 +12339,7 @@ var withFieldsMarked = /* @__PURE__ */ __name((value, fields, mark, id6) => {
|
|
|
12580
12339
|
return result;
|
|
12581
12340
|
}, "withFieldsMarked");
|
|
12582
12341
|
|
|
12583
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12342
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
12584
12343
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
12585
12344
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
12586
12345
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -12890,8 +12649,6 @@ export {
|
|
|
12890
12649
|
botFiles,
|
|
12891
12650
|
ChatRegistry,
|
|
12892
12651
|
registryProfiles,
|
|
12893
|
-
REPAIR_WORDS,
|
|
12894
|
-
repairConfigText,
|
|
12895
12652
|
permissionIssues,
|
|
12896
12653
|
withoutPath,
|
|
12897
12654
|
publicIssue,
|