@wirecat/tg-cli 0.116.0 → 0.117.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/bot/transport.d.ts +1 -1
- package/dist/bot/transport.d.ts.map +1 -1
- package/dist/bot/transport.js +42 -30
- package/dist/bot/transport.js.map +1 -1
- package/dist/bundle/{adapter-6CLMTQOV.js → adapter-VNQ72MBK.js} +70 -61
- package/dist/bundle/{all-profiles-R2UZMH24.js → all-profiles-3W2UQTCK.js} +10 -10
- package/dist/bundle/{anthropic-QKIPHV2Z.js → anthropic-DFUW2KTG.js} +6 -6
- package/dist/bundle/{app-server-AZB2MFK6.js → app-server-5XJIMLHB.js} +49 -46
- package/dist/bundle/{bot-api-2IM243J4.js → bot-api-HRRBF3W6.js} +49 -49
- package/dist/bundle/{bot-history-G6CRVCL2.js → bot-history-GBH5XE4N.js} +18 -18
- package/dist/bundle/{bun-JDKPISPX.js → bun-ZMOYGG6F.js} +2 -2
- package/dist/bundle/{bun-sqlite-X5PY5IQT.js → bun-sqlite-6FZFMA7K.js} +5 -5
- package/dist/bundle/{chunk-577MFPCP.js → chunk-2452HCIV.js} +3 -3
- package/dist/bundle/{chunk-H72UEHNG.js → chunk-2XLKZL6K.js} +34 -28
- package/dist/bundle/{chunk-RSDIPQXP.js → chunk-3GRX7WP6.js} +2 -2
- package/dist/bundle/{chunk-PPLFOIYX.js → chunk-3MQOLYAN.js} +4 -4
- package/dist/bundle/{chunk-JFTCOV37.js → chunk-3RJYLN5V.js} +73 -21
- package/dist/bundle/{chunk-BGMV66FC.js → chunk-4JDGN6OD.js} +1 -1
- package/dist/bundle/{chunk-MQ7MCVZV.js → chunk-56Q5JV3Z.js} +2 -2
- package/dist/bundle/{chunk-4IQZRW4O.js → chunk-66FZBLRJ.js} +13 -13
- package/dist/bundle/{chunk-QHBVGKC3.js → chunk-6GFUL4OU.js} +206 -81
- package/dist/bundle/{chunk-5FCONCJO.js → chunk-6HRN7BW6.js} +1 -1
- package/dist/bundle/{chunk-I6JF43YP.js → chunk-7NBUT62O.js} +3 -3
- package/dist/bundle/{chunk-VQPLHOVQ.js → chunk-7Y3RUEVY.js} +6 -6
- package/dist/bundle/chunk-AG6HWPQP.js +64 -0
- package/dist/bundle/{chunk-HK6SIIGG.js → chunk-AUBRELCM.js} +3 -3
- package/dist/bundle/{chunk-4D5AUWAY.js → chunk-B2YPB5AE.js} +43 -25
- package/dist/bundle/{chunk-EB2IULWB.js → chunk-BXTDAGM4.js} +2 -2
- package/dist/bundle/{chunk-QGL2UGML.js → chunk-C6TUVV7E.js} +466 -224
- package/dist/bundle/{chunk-42GK3XRS.js → chunk-EA2PGDER.js} +2 -2
- package/dist/bundle/{chunk-N6TIFJHW.js → chunk-EL6I4WTB.js} +1 -1
- package/dist/bundle/{chunk-76CX2YPT.js → chunk-EPCFXKTX.js} +8 -8
- package/dist/bundle/{chunk-Y6VWGJ4Q.js → chunk-EZTYJ43A.js} +4 -2
- package/dist/bundle/{chunk-T7CDLV33.js → chunk-F6KBVIJP.js} +4 -4
- package/dist/bundle/{chunk-PXMHBTK3.js → chunk-FAHHERJ7.js} +4 -4
- package/dist/bundle/{chunk-DP5LRU7K.js → chunk-FEKXHILZ.js} +1 -1
- package/dist/bundle/chunk-G7B5UIE7.js +182 -0
- package/dist/bundle/{chunk-YLRTLZF6.js → chunk-GFHNQBD2.js} +1 -1
- package/dist/bundle/{chunk-SD5PUYKF.js → chunk-HORGORHK.js} +12 -12
- package/dist/bundle/{chunk-N42VUNTO.js → chunk-HWYSRB64.js} +2 -2
- package/dist/bundle/{chunk-5VFPUOJO.js → chunk-HZZGOLGP.js} +11 -11
- package/dist/bundle/{chunk-B4UOCWM4.js → chunk-JWIUK3SK.js} +2 -2
- package/dist/bundle/{chunk-NL3PAFAE.js → chunk-KVTLT4V7.js} +6 -6
- package/dist/bundle/{chunk-KA6EGOJY.js → chunk-L5WNE4WS.js} +2 -2
- package/dist/bundle/{chunk-PPSUA3IZ.js → chunk-M7V5XRM6.js} +3 -3
- package/dist/bundle/{chunk-XQUTJITP.js → chunk-MLHKQDUN.js} +647 -129
- package/dist/bundle/{chunk-RSNGMNU5.js → chunk-MP7M6FFU.js} +6 -6
- package/dist/bundle/{chunk-5ZIBAYIZ.js → chunk-NUCDEOFC.js} +2 -2
- package/dist/bundle/{chunk-KV4267S4.js → chunk-P3ASN72F.js} +1 -1
- package/dist/bundle/{chunk-QAKL3GXB.js → chunk-PTIB7NEE.js} +1 -1
- package/dist/bundle/{chunk-TZVL4U7U.js → chunk-Q7O4CQDO.js} +4 -2
- package/dist/bundle/{chunk-XBIPSSKI.js → chunk-QOGYHU3Q.js} +4 -4
- package/dist/bundle/{chunk-R52RMHWF.js → chunk-RDH2QBUE.js} +3 -3
- package/dist/bundle/{chunk-NUYRMU56.js → chunk-RDSLSV4M.js} +2 -2
- package/dist/bundle/{chunk-UCSFO5GW.js → chunk-SQXB5ZUZ.js} +3 -3
- package/dist/bundle/{chunk-K62YATVD.js → chunk-TFBHDIGY.js} +4 -4
- package/dist/bundle/{chunk-IR4S7POE.js → chunk-TG6ZYL4B.js} +8 -8
- package/dist/bundle/{chunk-FDI4GOIP.js → chunk-UGPZCNYC.js} +329 -291
- package/dist/bundle/{chunk-GV7ZJ33M.js → chunk-UYK5AXSW.js} +4 -4
- package/dist/bundle/{chunk-HUOXUI2M.js → chunk-V2T7NYNU.js} +55 -46
- package/dist/bundle/{chunk-HBUJNNZD.js → chunk-V47NPSSV.js} +28 -28
- package/dist/bundle/{chunk-YYKJN6H5.js → chunk-VMCQGZIA.js} +1390 -690
- package/dist/bundle/{chunk-LXH3SKY3.js → chunk-VRDVXXXD.js} +8 -8
- package/dist/bundle/{chunk-YPF6OS37.js → chunk-VW6BF6M7.js} +1 -1
- package/dist/bundle/{chunk-LFKEKSI5.js → chunk-X3CD475M.js} +470 -234
- package/dist/bundle/{chunk-SKZ2E3WC.js → chunk-XW5C4TI7.js} +1 -1
- package/dist/bundle/{chunk-OX6EWGSG.js → chunk-YHZFGUAP.js} +19 -19
- package/dist/bundle/{chunk-HLNYJPAB.js → chunk-YIXXH74F.js} +2 -2
- package/dist/bundle/{chunk-LSKGCJWD.js → chunk-Z4QKLHJW.js} +13617 -1795
- package/dist/bundle/{chunk-JJMQA272.js → chunk-ZPILMEFY.js} +9 -9
- package/dist/bundle/command-contract-KMMHARMR.js +33 -0
- package/dist/bundle/{decode-W6YPTGJA.js → decode-YMSOY2AY.js} +5 -5
- package/dist/bundle/{dispatch-H7EFNBEH.js → dispatch-OP27MWX5.js} +8 -8
- package/dist/bundle/{echarts-YAWDIC5D.js → echarts-7XS55TQY.js} +2 -2
- package/dist/bundle/{embed-EN4UTLV5.js → embed-QTOE7NN3.js} +6 -6
- package/dist/bundle/{embedder-HEKHRL7E.js → embedder-KBBRYSNH.js} +9 -9
- package/dist/bundle/{entry-2KB6MTCG.js → entry-HGEUYYMX.js} +7 -7
- package/dist/bundle/{failure-3DU3HLBQ.js → failure-4JUQFXJT.js} +2 -2
- package/dist/bundle/{first-run-LBG26WWO.js → first-run-CSGMEJXY.js} +11 -11
- package/dist/bundle/first-screen-K2PBNJNE.js +31 -0
- package/dist/bundle/{instructions-HA62QNPR.js → instructions-S6ZXCTFH.js} +1 -1
- package/dist/bundle/{mcp-PPVOM4SE.js → mcp-M4QN2E7R.js} +2 -2
- package/dist/bundle/{node-MZ2VWSQQ.js → node-LCIUWXXG.js} +2 -2
- package/dist/bundle/{node-sqlite-KNNS6DCM.js → node-sqlite-HL4WY4N2.js} +6 -6
- package/dist/bundle/{oauth-KWUABBSQ.js → oauth-U4KIMDKG.js} +7 -7
- package/dist/bundle/{open-JXMCYCIV.js → open-EH7OS7M7.js} +5 -5
- package/dist/bundle/{openai-HL3IR4VT.js → openai-W5TB3NA5.js} +14 -14
- package/dist/bundle/{process-K2FICLWY.js → process-3CVLTCTA.js} +1 -1
- package/dist/bundle/{program-IFOMT4JS.js → program-LOIZTK2P.js} +51 -51
- package/dist/bundle/{prompt-HVD3Q77P.js → prompt-IDNH7N3W.js} +5 -5
- package/dist/bundle/{proxy-transport-PA5SGMRY.js → proxy-transport-4DPZB2W2.js} +5 -5
- package/dist/bundle/{recognize-HHLVETKI.js → recognize-G5EWYXIF.js} +4 -4
- package/dist/bundle/{remote-HUAKXJCS.js → remote-4XTBZVZD.js} +7 -7
- package/dist/bundle/{rerank-NWFIV7OF.js → rerank-OWSTDLZN.js} +7 -7
- package/dist/bundle/{serve-ANUKAJJN.js → serve-YCPSEWP3.js} +9 -9
- package/dist/bundle/server-KELKX6S3.js +60 -0
- package/dist/bundle/{server-7Q7WAOHO.js → server-ODG4A2KK.js} +35 -35
- package/dist/bundle/{state-Y2AJ5XTP.js → state-OL2235G5.js} +6 -6
- package/dist/bundle/{store-S3IG5KWL.js → store-5AACYNDM.js} +15 -13
- package/dist/bundle/store-maintenance-command-3J7WZYVN.js +50 -0
- package/dist/bundle/tg.js +13 -13
- package/dist/telegram/account.d.ts.map +1 -1
- package/dist/telegram/account.js +4 -1
- package/dist/telegram/account.js.map +1 -1
- package/dist/telegram/errors.d.ts.map +1 -1
- package/dist/telegram/errors.js +2 -1
- package/dist/telegram/errors.js.map +1 -1
- package/dist/telegram/feature.d.ts +4 -1
- package/dist/telegram/feature.d.ts.map +1 -1
- package/dist/telegram/feature.js +5 -2
- package/dist/telegram/feature.js.map +1 -1
- package/dist/telegram/sending.d.ts.map +1 -1
- package/dist/telegram/sending.js +24 -10
- package/dist/telegram/sending.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-K2RYCCTP.js +0 -48
- package/dist/bundle/chunk-ZDIAPICE.js +0 -132
- package/dist/bundle/command-contract-DPXM4SZT.js +0 -33
- package/dist/bundle/first-screen-TGTSLUI6.js +0 -31
- package/dist/bundle/server-HCQS4YDQ.js +0 -60
- package/dist/bundle/store-maintenance-command-V2WC4G6J.js +0 -50
- /package/dist/bundle/{chunk-LU3WKZBA.js → chunk-VOXIGICJ.js} +0 -0
|
@@ -1,19 +1,8 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
evidenceSource,
|
|
7
|
-
id,
|
|
8
|
-
note,
|
|
9
|
-
organization,
|
|
10
|
-
project,
|
|
11
|
-
providerMetadata,
|
|
12
|
-
reminder,
|
|
13
|
-
text,
|
|
14
|
-
time,
|
|
15
|
-
untrusted
|
|
16
|
-
} from "./chunk-ZDIAPICE.js";
|
|
4
|
+
note
|
|
5
|
+
} from "./chunk-AG6HWPQP.js";
|
|
17
6
|
import {
|
|
18
7
|
currentCaller,
|
|
19
8
|
endpointTemplate,
|
|
@@ -24,28 +13,32 @@ import {
|
|
|
24
13
|
providerErrorKey,
|
|
25
14
|
renderEvent,
|
|
26
15
|
runContextOf
|
|
27
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZPILMEFY.js";
|
|
28
17
|
import {
|
|
29
18
|
permissionCeiling
|
|
30
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-M7V5XRM6.js";
|
|
31
20
|
import {
|
|
32
21
|
envName,
|
|
33
22
|
readOnlyLockOf,
|
|
34
23
|
readOnlyRefusal
|
|
35
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-Q7O4CQDO.js";
|
|
36
25
|
import {
|
|
37
26
|
carries
|
|
38
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-EL6I4WTB.js";
|
|
39
28
|
import {
|
|
40
29
|
FACT_STATUSES,
|
|
41
30
|
FACT_TYPES,
|
|
42
31
|
FIELD_TYPES,
|
|
32
|
+
INVOICE_DIRECTIONS,
|
|
43
33
|
LINK_KINDS,
|
|
44
34
|
LINK_SOURCES,
|
|
45
35
|
MEETING_RESULT_ENTITIES,
|
|
46
36
|
MEMORY_KINDS,
|
|
47
37
|
MEMORY_SCOPES,
|
|
48
38
|
MEMORY_STATUSES,
|
|
39
|
+
MONEY_DIRECTIONS,
|
|
40
|
+
ORDER_PURPOSES,
|
|
41
|
+
ORDER_STATUSES,
|
|
49
42
|
PRIORITY_LABELS,
|
|
50
43
|
QUERY_BACKENDS,
|
|
51
44
|
RELATION_KINDS,
|
|
@@ -56,8 +49,12 @@ import {
|
|
|
56
49
|
TASK_TYPES,
|
|
57
50
|
TASK_VERDICTS,
|
|
58
51
|
WORK_TASK_TYPES,
|
|
52
|
+
author,
|
|
53
|
+
count,
|
|
59
54
|
describeQuery,
|
|
60
55
|
event,
|
|
56
|
+
evidenceSource,
|
|
57
|
+
id,
|
|
61
58
|
meeting,
|
|
62
59
|
meetingCounts,
|
|
63
60
|
meetingDetails,
|
|
@@ -70,18 +67,25 @@ import {
|
|
|
70
67
|
meetingSpeaker,
|
|
71
68
|
meetingStats,
|
|
72
69
|
meetingSummary,
|
|
73
|
-
meetingTranscript
|
|
74
|
-
|
|
70
|
+
meetingTranscript,
|
|
71
|
+
organization,
|
|
72
|
+
project,
|
|
73
|
+
providerMetadata,
|
|
74
|
+
reminder,
|
|
75
|
+
text,
|
|
76
|
+
time,
|
|
77
|
+
untrusted
|
|
78
|
+
} from "./chunk-C6TUVV7E.js";
|
|
75
79
|
import {
|
|
76
80
|
sharedConfigPath
|
|
77
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-7Y3RUEVY.js";
|
|
78
82
|
import {
|
|
79
83
|
filesPresent,
|
|
80
84
|
sharedModelsDirectory
|
|
81
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-F6KBVIJP.js";
|
|
82
86
|
import {
|
|
83
87
|
storePath
|
|
84
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-3GRX7WP6.js";
|
|
85
89
|
import {
|
|
86
90
|
configFilePath,
|
|
87
91
|
createRecordLog,
|
|
@@ -94,7 +98,7 @@ import {
|
|
|
94
98
|
saveConfigFile,
|
|
95
99
|
traceIdOf,
|
|
96
100
|
writeSecurely
|
|
97
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-YHZFGUAP.js";
|
|
98
102
|
import {
|
|
99
103
|
COMPACT_FLAG,
|
|
100
104
|
MAX_NEXT_STEPS,
|
|
@@ -146,18 +150,18 @@ import {
|
|
|
146
150
|
unwrap,
|
|
147
151
|
variant,
|
|
148
152
|
writes
|
|
149
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-EPCFXKTX.js";
|
|
150
154
|
import {
|
|
151
155
|
CliError,
|
|
152
156
|
isCliError,
|
|
153
157
|
singleLine,
|
|
154
158
|
visibleControls
|
|
155
|
-
} from "./chunk-
|
|
159
|
+
} from "./chunk-BXTDAGM4.js";
|
|
156
160
|
import {
|
|
157
161
|
__name
|
|
158
162
|
} from "./chunk-ZVVMGPBJ.js";
|
|
159
163
|
|
|
160
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
164
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
|
|
161
165
|
var labels = /* @__PURE__ */ new WeakMap();
|
|
162
166
|
var annotate = /* @__PURE__ */ __name((command, meta) => {
|
|
163
167
|
labels.set(command, { ...labels.get(command), ...meta });
|
|
@@ -3658,7 +3662,7 @@ __name(useColor, "useColor");
|
|
|
3658
3662
|
// node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
|
|
3659
3663
|
var program = new Command();
|
|
3660
3664
|
|
|
3661
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3665
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
|
|
3662
3666
|
import { isDeepStrictEqual } from "node:util";
|
|
3663
3667
|
var protectedCommands = /* @__PURE__ */ new WeakMap();
|
|
3664
3668
|
var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
|
|
@@ -3844,8 +3848,8 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference2, reason, build,
|
|
|
3844
3848
|
}
|
|
3845
3849
|
}, "adopt");
|
|
3846
3850
|
adopt(reference2, command);
|
|
3847
|
-
const
|
|
3848
|
-
if (!Array.isArray(expectedOverrides) || !same(
|
|
3851
|
+
const ordered2 = /* @__PURE__ */ __name((records) => [...records].sort((a, b) => JSON.stringify([a.command, a.field]).localeCompare(JSON.stringify([b.command, b.field]))), "ordered");
|
|
3852
|
+
if (!Array.isArray(expectedOverrides) || !same(ordered2(edits), ordered2(expectedOverrides)))
|
|
3849
3853
|
throw new CliError("configuration_error", `provider shell ${command.name()} differs from its reviewed shared contract overrides; review Core and provider definitions before updating the explicit declarations`, { reason: "contract.unacknowledged-override", expected: expectedOverrides ?? null, actual: edits });
|
|
3850
3854
|
for (const { command: own, record: record2 } of pending) {
|
|
3851
3855
|
protectedCommands.set(own, record2);
|
|
@@ -3860,7 +3864,7 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference2, reason, build,
|
|
|
3860
3864
|
return command;
|
|
3861
3865
|
}, "customizeSharedCommand");
|
|
3862
3866
|
|
|
3863
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3867
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
|
|
3864
3868
|
var argumentInfoSchema = object({
|
|
3865
3869
|
name: string(),
|
|
3866
3870
|
required: boolean(),
|
|
@@ -3934,7 +3938,7 @@ var commandsDocumentSchema = strictObject({
|
|
|
3934
3938
|
exit_codes: record(string(), pipe(number(), integer()))
|
|
3935
3939
|
});
|
|
3936
3940
|
|
|
3937
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3941
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
|
|
3938
3942
|
var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
3939
3943
|
let command = root;
|
|
3940
3944
|
const path2 = [];
|
|
@@ -3952,7 +3956,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3952
3956
|
}
|
|
3953
3957
|
}, "refuseJoinedPath");
|
|
3954
3958
|
|
|
3955
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3959
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
3956
3960
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3957
3961
|
var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
|
|
3958
3962
|
messageId: message2.id,
|
|
@@ -4058,7 +4062,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
4058
4062
|
}, "guardedWrite");
|
|
4059
4063
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
4060
4064
|
|
|
4061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4065
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
4062
4066
|
var named = /* @__PURE__ */ __name((work) => {
|
|
4063
4067
|
try {
|
|
4064
4068
|
return work();
|
|
@@ -4085,7 +4089,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
4085
4089
|
return projectFields(value, fields);
|
|
4086
4090
|
}), "projectFields");
|
|
4087
4091
|
|
|
4088
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4092
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
4089
4093
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
4090
4094
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
4091
4095
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -4268,7 +4272,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4268
4272
|
}
|
|
4269
4273
|
}, "withAbort");
|
|
4270
4274
|
|
|
4271
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4275
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
4272
4276
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
4273
4277
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
4274
4278
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -4664,7 +4668,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
4664
4668
|
}
|
|
4665
4669
|
}, "assertRetentionEvidenceRead");
|
|
4666
4670
|
|
|
4667
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4671
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
|
|
4668
4672
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
4669
4673
|
import { join } from "node:path";
|
|
4670
4674
|
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
|
|
@@ -4753,7 +4757,7 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
|
|
|
4753
4757
|
return readdirSync(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
|
|
4754
4758
|
}, "registryProfiles");
|
|
4755
4759
|
|
|
4756
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4760
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
4757
4761
|
import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
4758
4762
|
import { join as join2 } from "node:path";
|
|
4759
4763
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -4775,7 +4779,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4775
4779
|
}, "profilesWithAccounts");
|
|
4776
4780
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4777
4781
|
|
|
4778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4782
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
4779
4783
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
4780
4784
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
4781
4785
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -4811,7 +4815,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
4811
4815
|
return value;
|
|
4812
4816
|
}, "atDetail");
|
|
4813
4817
|
|
|
4814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/output.js
|
|
4815
4819
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
4816
4820
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
4817
4821
|
if (other)
|
|
@@ -4875,7 +4879,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
|
|
|
4875
4879
|
}, "warn")
|
|
4876
4880
|
}), "silence");
|
|
4877
4881
|
|
|
4878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
4879
4883
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
4880
4884
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
4881
4885
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4909,7 +4913,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4909
4913
|
cache: "cache.answered"
|
|
4910
4914
|
};
|
|
4911
4915
|
|
|
4912
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4916
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
4913
4917
|
var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
4914
4918
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
4915
4919
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -4922,13 +4926,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
4922
4926
|
error: /* @__PURE__ */ __name((event2, message2) => logger.error(logAttributes(event2), message2), "error")
|
|
4923
4927
|
}), "snakeLogger");
|
|
4924
4928
|
|
|
4925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4926
4930
|
import { randomUUID } from "node:crypto";
|
|
4927
4931
|
import { appendFileSync, mkdirSync, readdirSync as readdirSync3, readFileSync as readFileSync3, rmSync, statSync, writeFileSync } from "node:fs";
|
|
4928
4932
|
import { userInfo } from "node:os";
|
|
4929
4933
|
import { join as join3, sep } from "node:path";
|
|
4930
4934
|
|
|
4931
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
4932
4936
|
var diagnostic = {
|
|
4933
4937
|
event: true,
|
|
4934
4938
|
operation: true,
|
|
@@ -4998,7 +5002,7 @@ var LOG_ATTRIBUTES = [
|
|
|
4998
5002
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
4999
5003
|
].sort();
|
|
5000
5004
|
|
|
5001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
5002
5006
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
5003
5007
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
5004
5008
|
var RUNS_SIZE_LIMIT_MB = 200;
|
|
@@ -5351,7 +5355,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
5351
5355
|
};
|
|
5352
5356
|
}, "metadataOf");
|
|
5353
5357
|
|
|
5354
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5358
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
5355
5359
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
5356
5360
|
import { randomBytes } from "node:crypto";
|
|
5357
5361
|
var scopes = new AsyncLocalStorage2();
|
|
@@ -5389,7 +5393,7 @@ var attempts = new AsyncLocalStorage2();
|
|
|
5389
5393
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
5390
5394
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
5391
5395
|
|
|
5392
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5396
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
5393
5397
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
5394
5398
|
const recording = startRecording(options);
|
|
5395
5399
|
try {
|
|
@@ -5574,7 +5578,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
5574
5578
|
return void 0;
|
|
5575
5579
|
}, "partialOutcome");
|
|
5576
5580
|
|
|
5577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5581
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
5578
5582
|
var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
5579
5583
|
if (ms2 === void 0)
|
|
5580
5584
|
return body();
|
|
@@ -5600,7 +5604,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
|
5600
5604
|
}
|
|
5601
5605
|
}, "withDeadline");
|
|
5602
5606
|
|
|
5603
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5607
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
5604
5608
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
5605
5609
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
5606
5610
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -5669,10 +5673,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
5669
5673
|
return void 0;
|
|
5670
5674
|
}, "sampleCommand");
|
|
5671
5675
|
|
|
5672
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5676
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5673
5677
|
import { existsSync as existsSync4 } from "node:fs";
|
|
5674
5678
|
|
|
5675
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5679
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
5676
5680
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
5677
5681
|
try {
|
|
5678
5682
|
const url2 = new URL(value);
|
|
@@ -5682,7 +5686,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
|
|
|
5682
5686
|
}
|
|
5683
5687
|
}, "endpoint");
|
|
5684
5688
|
|
|
5685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
5686
5690
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
5687
5691
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
5688
5692
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -5751,7 +5755,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
5751
5755
|
};
|
|
5752
5756
|
}, "modelTarget");
|
|
5753
5757
|
|
|
5754
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5758
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
5755
5759
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
5756
5760
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
5757
5761
|
var AI_FIELDS = {
|
|
@@ -5795,7 +5799,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
5795
5799
|
};
|
|
5796
5800
|
}, "resolveAISettings");
|
|
5797
5801
|
|
|
5798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5802
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
5799
5803
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
5800
5804
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
5801
5805
|
var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
@@ -5809,7 +5813,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
|
5809
5813
|
return ms2;
|
|
5810
5814
|
}, "parseDuration");
|
|
5811
5815
|
|
|
5812
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
5813
5817
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
5814
5818
|
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
5815
5819
|
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
@@ -5968,7 +5972,7 @@ var rerankModel = /* @__PURE__ */ __name((id6) => {
|
|
|
5968
5972
|
var vectorModelKey = /* @__PURE__ */ __name((model3) => `local:${model3.id}:${model3.dims}`, "vectorModelKey");
|
|
5969
5973
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
5970
5974
|
|
|
5971
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
5972
5976
|
var HISTORY_MAX_DAYS = 1095;
|
|
5973
5977
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
5974
5978
|
var DAY_MS2 = 24 * 60 * 60 * 1e3;
|
|
@@ -6015,10 +6019,10 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
6015
6019
|
return { batch: { ...batch, messages }, skipped };
|
|
6016
6020
|
}, "limitBatch");
|
|
6017
6021
|
|
|
6018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
6019
6023
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
6020
6024
|
|
|
6021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6025
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
|
|
6022
6026
|
var REPAIR_WORDS = {
|
|
6023
6027
|
byte_order_mark: "an invisible byte-order mark at the start",
|
|
6024
6028
|
comment: "a comment, which JSON does not allow",
|
|
@@ -6259,7 +6263,7 @@ ${parts.join(",\n")}
|
|
|
6259
6263
|
${indent}${close}`;
|
|
6260
6264
|
}, "serialise");
|
|
6261
6265
|
|
|
6262
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6266
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
6263
6267
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
6264
6268
|
var SECTIONS = ["personal", "bot"];
|
|
6265
6269
|
var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
|
|
@@ -6553,7 +6557,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
6553
6557
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
6554
6558
|
}, "readConfigFile");
|
|
6555
6559
|
|
|
6556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6560
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
6557
6561
|
import { existsSync as existsSync3, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
6558
6562
|
import { dirname, join as join4 } from "node:path";
|
|
6559
6563
|
var DEFAULT_CONFIG = {
|
|
@@ -6582,7 +6586,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
6582
6586
|
}
|
|
6583
6587
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
6584
6588
|
|
|
6585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6589
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
|
|
6586
6590
|
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
6587
6591
|
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
6588
6592
|
const path2 = key.split(".");
|
|
@@ -6604,7 +6608,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
|
|
|
6604
6608
|
return { config, added };
|
|
6605
6609
|
}, "withSettingDefaults");
|
|
6606
6610
|
|
|
6607
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6611
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
6608
6612
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
6609
6613
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
6610
6614
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -7114,7 +7118,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
7114
7118
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
7115
7119
|
}, "given");
|
|
7116
7120
|
|
|
7117
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7121
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
7118
7122
|
var setExitCode = /* @__PURE__ */ __name((command, code) => {
|
|
7119
7123
|
const slot = environmentOf(command).exit;
|
|
7120
7124
|
if (slot)
|
|
@@ -7127,6 +7131,10 @@ var provide = /* @__PURE__ */ __name((program2, environment) => {
|
|
|
7127
7131
|
environments.set(program2, environment);
|
|
7128
7132
|
}, "provide");
|
|
7129
7133
|
var environmentOf = /* @__PURE__ */ __name((command) => environments.get(rootOf(command)) ?? {}, "environmentOf");
|
|
7134
|
+
var withAgentLevels = /* @__PURE__ */ __name((command, flags) => {
|
|
7135
|
+
const overrides = environmentOf(command).agent?.overrides ?? [];
|
|
7136
|
+
return overrides.length > 0 ? { ...flags, permission: [...overrides, ...flags.permission ?? []] } : flags;
|
|
7137
|
+
}, "withAgentLevels");
|
|
7130
7138
|
var secretInputOf = /* @__PURE__ */ __name((command) => {
|
|
7131
7139
|
const { stdin, stderr } = environmentOf(command);
|
|
7132
7140
|
return { ...stdin ? { input: stdin } : {}, ...stderr ? { output: stderr } : {} };
|
|
@@ -7153,9 +7161,7 @@ var outputFor = /* @__PURE__ */ __name((command) => {
|
|
|
7153
7161
|
var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
|
|
7154
7162
|
const environment = environmentOf(command);
|
|
7155
7163
|
const env = environment.env ?? process.env;
|
|
7156
|
-
const
|
|
7157
|
-
const overrides = environment.agent?.overrides ?? [];
|
|
7158
|
-
const settings = resolveSettings(overrides.length > 0 ? { ...flags, permission: [...overrides, ...flags.permission ?? []] } : flags, { env });
|
|
7164
|
+
const settings = resolveSettings(withAgentLevels(command, command.optsWithGlobals()), { env });
|
|
7159
7165
|
const { renderer, format, color, streams, compact, full } = resolveOutput({
|
|
7160
7166
|
...settings,
|
|
7161
7167
|
env,
|
|
@@ -7227,7 +7233,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
7227
7233
|
return words.join(" ");
|
|
7228
7234
|
}, "commandPath");
|
|
7229
7235
|
|
|
7230
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7236
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
7231
7237
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
7232
7238
|
var FETCH = { remote: "read", local: "write" };
|
|
7233
7239
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -7351,7 +7357,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
7351
7357
|
throw readOnlyRefusal(lock, what);
|
|
7352
7358
|
}, "refuseUnderReadOnly");
|
|
7353
7359
|
|
|
7354
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7360
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/account.js
|
|
7355
7361
|
var account = strictObject({
|
|
7356
7362
|
provider: text,
|
|
7357
7363
|
id,
|
|
@@ -7361,7 +7367,7 @@ var account = strictObject({
|
|
|
7361
7367
|
scope: optional(picklist(["personal", "work"]))
|
|
7362
7368
|
});
|
|
7363
7369
|
|
|
7364
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7370
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/account-session.js
|
|
7365
7371
|
var accountSession = strictObject({
|
|
7366
7372
|
current: boolean(),
|
|
7367
7373
|
client: nullable(text),
|
|
@@ -7371,7 +7377,7 @@ var accountSession = strictObject({
|
|
|
7371
7377
|
created_at: optional(nullable(time))
|
|
7372
7378
|
});
|
|
7373
7379
|
|
|
7374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7380
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/account-change.js
|
|
7375
7381
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
7376
7382
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
7377
7383
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -7389,7 +7395,7 @@ var accountPrivacy = strictObject({
|
|
|
7389
7395
|
});
|
|
7390
7396
|
var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
|
|
7391
7397
|
|
|
7392
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
|
|
7393
7399
|
var accountProfile = strictObject({
|
|
7394
7400
|
profile: id,
|
|
7395
7401
|
current: boolean(),
|
|
@@ -7401,7 +7407,7 @@ var accountProfile = strictObject({
|
|
|
7401
7407
|
bot: optional(literal(true))
|
|
7402
7408
|
});
|
|
7403
7409
|
|
|
7404
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
|
|
7405
7411
|
var milliseconds = pipe(number(), minValue(0));
|
|
7406
7412
|
var counterReading = strictObject({
|
|
7407
7413
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -7413,7 +7419,7 @@ var counterReading = strictObject({
|
|
|
7413
7419
|
});
|
|
7414
7420
|
var selection = record(string(), unknown());
|
|
7415
7421
|
|
|
7416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
|
|
7417
7423
|
var adminRow = strictObject({
|
|
7418
7424
|
ref: reference,
|
|
7419
7425
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -7466,7 +7472,7 @@ var adminReport = strictObject({
|
|
|
7466
7472
|
rows: array(adminRow)
|
|
7467
7473
|
});
|
|
7468
7474
|
|
|
7469
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7475
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
7470
7476
|
var closeSuggestion = strictObject({
|
|
7471
7477
|
as: picklist(["done", "dismissed"]),
|
|
7472
7478
|
/** The agent's name. */
|
|
@@ -7497,6 +7503,10 @@ var task = strictObject({
|
|
|
7497
7503
|
chat: optional(nullable(reference)),
|
|
7498
7504
|
/** The message it came from. */
|
|
7499
7505
|
source_message: optional(nullable(reference)),
|
|
7506
|
+
/** `<service>:<id>`, its id in an outside service, such as `avito:4512345678`. */
|
|
7507
|
+
external_id: optional(nullable(text)),
|
|
7508
|
+
/** The http or https page it is about, such as an Avito ad. */
|
|
7509
|
+
source_url: optional(nullable(text)),
|
|
7500
7510
|
/** 0 to 1, higher first; `priority_label` reads it as low, medium, high or critical. */
|
|
7501
7511
|
priority: optional(nullable(number())),
|
|
7502
7512
|
priority_label: optional(nullable(picklist(PRIORITY_LABELS))),
|
|
@@ -7524,7 +7534,7 @@ var task = strictObject({
|
|
|
7524
7534
|
updated_at: optional(time)
|
|
7525
7535
|
});
|
|
7526
7536
|
|
|
7527
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7537
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
7528
7538
|
var agendaChat = strictObject({
|
|
7529
7539
|
chat: reference,
|
|
7530
7540
|
title: nullable(text),
|
|
@@ -7594,11 +7604,11 @@ var agenda = strictObject({
|
|
|
7594
7604
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
7595
7605
|
});
|
|
7596
7606
|
|
|
7597
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7607
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
|
|
7598
7608
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
7599
7609
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
7600
7610
|
|
|
7601
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7611
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
7602
7612
|
var attachment = strictObject({
|
|
7603
7613
|
/** The message it came with, as a locator; absent inside that message. */
|
|
7604
7614
|
message: optional(reference),
|
|
@@ -7636,7 +7646,7 @@ var attachment = strictObject({
|
|
|
7636
7646
|
});
|
|
7637
7647
|
var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
|
|
7638
7648
|
|
|
7639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7649
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
|
|
7640
7650
|
var actionableError = objectWithRest({
|
|
7641
7651
|
code: text,
|
|
7642
7652
|
message: text,
|
|
@@ -7653,7 +7663,7 @@ var batchResult = strictObject({
|
|
|
7653
7663
|
max_error_percent: count
|
|
7654
7664
|
});
|
|
7655
7665
|
|
|
7656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7666
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
|
|
7657
7667
|
var extractionItem = strictObject({
|
|
7658
7668
|
ref: reference,
|
|
7659
7669
|
attachment: count,
|
|
@@ -7686,7 +7696,7 @@ var extractionReport = strictObject({
|
|
|
7686
7696
|
cursor: optional(text)
|
|
7687
7697
|
});
|
|
7688
7698
|
|
|
7689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7699
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
|
|
7690
7700
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
7691
7701
|
var attachmentBytes = strictObject({
|
|
7692
7702
|
ref: reference,
|
|
@@ -7714,7 +7724,7 @@ var attachmentTextChange = strictObject({
|
|
|
7714
7724
|
replaced: nullable(picklist(["extracted", "agent"]))
|
|
7715
7725
|
});
|
|
7716
7726
|
|
|
7717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7727
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/chart.js
|
|
7718
7728
|
var chart = strictObject({
|
|
7719
7729
|
version: literal(1),
|
|
7720
7730
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -7729,7 +7739,7 @@ var chart = strictObject({
|
|
|
7729
7739
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
7730
7740
|
});
|
|
7731
7741
|
|
|
7732
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7742
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/member.js
|
|
7733
7743
|
var member = strictObject({
|
|
7734
7744
|
id,
|
|
7735
7745
|
name: nullable(text),
|
|
@@ -7752,7 +7762,7 @@ var member = strictObject({
|
|
|
7752
7762
|
check: optional(record(string(), unknown()))
|
|
7753
7763
|
});
|
|
7754
7764
|
|
|
7755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7765
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/chat.js
|
|
7756
7766
|
var setting = optional(nullable(boolean()));
|
|
7757
7767
|
var chat = strictObject({
|
|
7758
7768
|
ref: reference,
|
|
@@ -7793,7 +7803,7 @@ var chat = strictObject({
|
|
|
7793
7803
|
members: optional(array(member))
|
|
7794
7804
|
});
|
|
7795
7805
|
|
|
7796
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/folder.js
|
|
7797
7807
|
var named2 = strictObject({
|
|
7798
7808
|
id,
|
|
7799
7809
|
title: nullable(text),
|
|
@@ -7816,7 +7826,7 @@ var folder = strictObject({
|
|
|
7816
7826
|
excluded_chats: optional(array(named2))
|
|
7817
7827
|
});
|
|
7818
7828
|
|
|
7819
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7829
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
|
|
7820
7830
|
var inviteLink = strictObject({
|
|
7821
7831
|
link: text,
|
|
7822
7832
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -7832,7 +7842,7 @@ var inviteLink = strictObject({
|
|
|
7832
7842
|
joined_count: optional(count)
|
|
7833
7843
|
});
|
|
7834
7844
|
|
|
7835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
|
|
7836
7846
|
var operated = { operation_id: id, chat_id: id };
|
|
7837
7847
|
var group = strictObject({
|
|
7838
7848
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -7912,7 +7922,7 @@ var chatFolderOrder = strictObject({
|
|
|
7912
7922
|
folders: array(strictObject({ id, title: text }))
|
|
7913
7923
|
});
|
|
7914
7924
|
|
|
7915
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
|
|
7916
7926
|
var operated2 = { operation_id: id, chat_id: id };
|
|
7917
7927
|
var chatRemoval = strictObject(operated2);
|
|
7918
7928
|
var chatMuting = strictObject({
|
|
@@ -7923,7 +7933,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
7923
7933
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
7924
7934
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
7925
7935
|
|
|
7926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
|
|
7927
7937
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
7928
7938
|
var chatEvent = strictObject({
|
|
7929
7939
|
chat_id: id,
|
|
@@ -7940,7 +7950,7 @@ var chatEvent = strictObject({
|
|
|
7940
7950
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
7941
7951
|
});
|
|
7942
7952
|
|
|
7943
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
|
|
7944
7954
|
var chatMetadata = strictObject({
|
|
7945
7955
|
chat_id: id,
|
|
7946
7956
|
title: nullable(text),
|
|
@@ -7955,7 +7965,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
7955
7965
|
has_more: boolean()
|
|
7956
7966
|
});
|
|
7957
7967
|
|
|
7958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7968
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
|
|
7959
7969
|
var action = picklist(["report", "delete", "remove"]);
|
|
7960
7970
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
7961
7971
|
var chatRules = strictObject({
|
|
@@ -7992,7 +8002,7 @@ var chatModeration = strictObject({
|
|
|
7992
8002
|
}))
|
|
7993
8003
|
});
|
|
7994
8004
|
|
|
7995
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
|
|
7996
8006
|
var optionalCount = optional(count);
|
|
7997
8007
|
var minutes = nullable(number());
|
|
7998
8008
|
var chatStats = strictObject({
|
|
@@ -8066,7 +8076,7 @@ var taskStats = strictObject({
|
|
|
8066
8076
|
}))
|
|
8067
8077
|
});
|
|
8068
8078
|
|
|
8069
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8079
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
|
|
8070
8080
|
var memberCount = strictObject({
|
|
8071
8081
|
day: pipe(text, isoDate()),
|
|
8072
8082
|
participants: nullable(count),
|
|
@@ -8089,7 +8099,7 @@ var chatTracking = strictObject({
|
|
|
8089
8099
|
tracked: boolean()
|
|
8090
8100
|
});
|
|
8091
8101
|
|
|
8092
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8102
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
8093
8103
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
8094
8104
|
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
8095
8105
|
var profileFields = {
|
|
@@ -8127,7 +8137,7 @@ var profileFields = {
|
|
|
8127
8137
|
}))
|
|
8128
8138
|
};
|
|
8129
8139
|
|
|
8130
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
8131
8141
|
var contact = strictObject({
|
|
8132
8142
|
ref: reference,
|
|
8133
8143
|
id,
|
|
@@ -8158,7 +8168,7 @@ var contact = strictObject({
|
|
|
8158
8168
|
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
8159
8169
|
});
|
|
8160
8170
|
|
|
8161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8171
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
8162
8172
|
var WEIGHTS = {
|
|
8163
8173
|
bot: 3,
|
|
8164
8174
|
scam: 3,
|
|
@@ -8183,7 +8193,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
8183
8193
|
var DIGITS = /\d{5,}/;
|
|
8184
8194
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
8185
8195
|
|
|
8186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
8187
8197
|
var linkedIdentity = strictObject({
|
|
8188
8198
|
provider: text,
|
|
8189
8199
|
id,
|
|
@@ -8224,7 +8234,7 @@ var contactCheck = strictObject({
|
|
|
8224
8234
|
checked_at: time
|
|
8225
8235
|
});
|
|
8226
8236
|
|
|
8227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8237
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
8228
8238
|
var quoted = strictObject({
|
|
8229
8239
|
id,
|
|
8230
8240
|
sender_id: nullable(id),
|
|
@@ -8343,7 +8353,7 @@ var message = strictObject({
|
|
|
8343
8353
|
provider_metadata: providerMetadata
|
|
8344
8354
|
});
|
|
8345
8355
|
|
|
8346
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8356
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
8347
8357
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
8348
8358
|
var contextMessage = strictObject({
|
|
8349
8359
|
locator: reference,
|
|
@@ -8541,7 +8551,7 @@ var contactPreparation = strictObject({
|
|
|
8541
8551
|
})
|
|
8542
8552
|
});
|
|
8543
8553
|
|
|
8544
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8554
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
|
|
8545
8555
|
var contactNote = strictObject({
|
|
8546
8556
|
id,
|
|
8547
8557
|
/** The contact, as a `contact:` reference. */
|
|
@@ -8553,13 +8563,13 @@ var contactNote = strictObject({
|
|
|
8553
8563
|
updated_at: time
|
|
8554
8564
|
});
|
|
8555
8565
|
|
|
8556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8566
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
|
|
8557
8567
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
8558
8568
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
8559
8569
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
8560
8570
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
8561
8571
|
|
|
8562
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
8563
8573
|
var conversation = strictObject({
|
|
8564
8574
|
id,
|
|
8565
8575
|
chat: reference,
|
|
@@ -8574,7 +8584,7 @@ var conversation = strictObject({
|
|
|
8574
8584
|
rules_version: count
|
|
8575
8585
|
});
|
|
8576
8586
|
|
|
8577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
|
|
8578
8588
|
var conversationBuild = strictObject({
|
|
8579
8589
|
chat: id,
|
|
8580
8590
|
messages: count,
|
|
@@ -8599,7 +8609,7 @@ var catchUpPreparation = strictObject({
|
|
|
8599
8609
|
prepared: optional(conversationPreparation)
|
|
8600
8610
|
});
|
|
8601
8611
|
|
|
8602
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8612
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
|
|
8603
8613
|
var conversationDetails = union([
|
|
8604
8614
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
8605
8615
|
message
|
|
@@ -8689,7 +8699,7 @@ var conversationHit = strictObject({
|
|
|
8689
8699
|
stale: boolean()
|
|
8690
8700
|
});
|
|
8691
8701
|
|
|
8692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/counters.js
|
|
8693
8703
|
var counters = strictObject({
|
|
8694
8704
|
cutoff: time,
|
|
8695
8705
|
max_age_ms: milliseconds,
|
|
@@ -8719,7 +8729,94 @@ var counterRefresh = strictObject({
|
|
|
8719
8729
|
complete: optional(boolean())
|
|
8720
8730
|
});
|
|
8721
8731
|
|
|
8722
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8732
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/deal.js
|
|
8733
|
+
var nullableText = nullable(text);
|
|
8734
|
+
var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
|
|
8735
|
+
var outcome = picklist(["open", "won", "lost"]);
|
|
8736
|
+
var crmAccount = nullable(strictObject({ provider: text, account: text }));
|
|
8737
|
+
var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
|
|
8738
|
+
var deal = strictObject({
|
|
8739
|
+
id,
|
|
8740
|
+
ref: reference,
|
|
8741
|
+
kind: picklist(["deal", "lead"]),
|
|
8742
|
+
title: text,
|
|
8743
|
+
/** One line with the stage, amount and status. */
|
|
8744
|
+
summary: text,
|
|
8745
|
+
pipeline: reference,
|
|
8746
|
+
pipeline_name: text,
|
|
8747
|
+
stage: text,
|
|
8748
|
+
status: outcome,
|
|
8749
|
+
organization: nullable(party),
|
|
8750
|
+
currency: nullableText,
|
|
8751
|
+
amount: nullableText,
|
|
8752
|
+
close_date: day2,
|
|
8753
|
+
closed_date: day2,
|
|
8754
|
+
closed_reason: nullableText,
|
|
8755
|
+
rank: nullable(number()),
|
|
8756
|
+
/** A lead's deal, once it became one. */
|
|
8757
|
+
deal: nullable(reference),
|
|
8758
|
+
/** The CRM account it is a copy from; `null` for the owner's own. */
|
|
8759
|
+
account: crmAccount,
|
|
8760
|
+
external_id: nullableText,
|
|
8761
|
+
/** A CRM copy's assignee, the identity `<account>/user/<id>`. */
|
|
8762
|
+
assignee: nullableText,
|
|
8763
|
+
/** A CRM copy's own fields by code; a list field's value is its option's label, `option_id` its id. */
|
|
8764
|
+
provider_metadata: record(string(), strictObject({
|
|
8765
|
+
label: nullable(string()),
|
|
8766
|
+
value: unknown(),
|
|
8767
|
+
option_id: optional(union([string(), array(string())]))
|
|
8768
|
+
})),
|
|
8769
|
+
people: array(strictObject({ ...party.entries, role: picklist(["owner", "contact", "decision-maker"]) })),
|
|
8770
|
+
author: strictObject({
|
|
8771
|
+
type: picklist(["person", "bot"]),
|
|
8772
|
+
id,
|
|
8773
|
+
name: nullableText,
|
|
8774
|
+
kind: nullable(picklist(["agent", "rule"]))
|
|
8775
|
+
}),
|
|
8776
|
+
model: nullableText,
|
|
8777
|
+
source: text,
|
|
8778
|
+
reason: nullableText,
|
|
8779
|
+
evidence: array(reference),
|
|
8780
|
+
project: nullable(reference),
|
|
8781
|
+
project_name: nullableText,
|
|
8782
|
+
created_at: time,
|
|
8783
|
+
updated_at: time,
|
|
8784
|
+
untrusted
|
|
8785
|
+
});
|
|
8786
|
+
var lead = deal;
|
|
8787
|
+
var pipelineStage = strictObject({
|
|
8788
|
+
name: text,
|
|
8789
|
+
position: count,
|
|
8790
|
+
outcome,
|
|
8791
|
+
external_id: nullableText,
|
|
8792
|
+
/** Open deals or leads in it now. */
|
|
8793
|
+
open: count,
|
|
8794
|
+
/** With a funnel: rows that got this far, and the share of them that reached the next stage. */
|
|
8795
|
+
reached: optional(count),
|
|
8796
|
+
conversion: optional(nullable(number()))
|
|
8797
|
+
});
|
|
8798
|
+
var pipeline = strictObject({
|
|
8799
|
+
id,
|
|
8800
|
+
ref: reference,
|
|
8801
|
+
name: text,
|
|
8802
|
+
kind: picklist(["deal", "lead"]),
|
|
8803
|
+
account: crmAccount,
|
|
8804
|
+
external_id: nullableText,
|
|
8805
|
+
stages: array(pipelineStage),
|
|
8806
|
+
created_at: time,
|
|
8807
|
+
totals: optional(strictObject({ items: count, open: count, won: count, lost: count, win_rate: nullable(number()) })),
|
|
8808
|
+
since: optional(day2),
|
|
8809
|
+
untrusted
|
|
8810
|
+
});
|
|
8811
|
+
var stage = strictObject({
|
|
8812
|
+
...pipelineStage.entries,
|
|
8813
|
+
pipeline: reference,
|
|
8814
|
+
pipeline_name: text,
|
|
8815
|
+
kind: picklist(["deal", "lead"]),
|
|
8816
|
+
untrusted
|
|
8817
|
+
});
|
|
8818
|
+
|
|
8819
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
8723
8820
|
var document = strictObject({
|
|
8724
8821
|
ref: reference,
|
|
8725
8822
|
id,
|
|
@@ -8734,7 +8831,7 @@ var document = strictObject({
|
|
|
8734
8831
|
owners: optional(array(text))
|
|
8735
8832
|
});
|
|
8736
8833
|
|
|
8737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8834
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/document-link.js
|
|
8738
8835
|
var documentLink = strictObject({
|
|
8739
8836
|
ref: reference,
|
|
8740
8837
|
url: text,
|
|
@@ -8745,7 +8842,7 @@ var documentLink = strictObject({
|
|
|
8745
8842
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
8746
8843
|
});
|
|
8747
8844
|
|
|
8748
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/evidence.js
|
|
8749
8846
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
8750
8847
|
var contribution = strictObject({
|
|
8751
8848
|
message: evidenceMessage,
|
|
@@ -8775,7 +8872,7 @@ var retentionStay = strictObject({
|
|
|
8775
8872
|
});
|
|
8776
8873
|
var evidence = union([contribution, retentionStay]);
|
|
8777
8874
|
|
|
8778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8875
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/fact.js
|
|
8779
8876
|
var fact = strictObject({
|
|
8780
8877
|
ref: reference,
|
|
8781
8878
|
id,
|
|
@@ -8805,9 +8902,9 @@ var fact = strictObject({
|
|
|
8805
8902
|
updated_at: time
|
|
8806
8903
|
});
|
|
8807
8904
|
|
|
8808
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8905
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/hit.js
|
|
8809
8906
|
var hit = strictObject({
|
|
8810
|
-
kind: picklist(["message", "mail", "note", "document", "event", "meeting"]),
|
|
8907
|
+
kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead"]),
|
|
8811
8908
|
ref: reference,
|
|
8812
8909
|
provider: text,
|
|
8813
8910
|
url: optional(text),
|
|
@@ -8843,7 +8940,7 @@ var hit = strictObject({
|
|
|
8843
8940
|
untrusted
|
|
8844
8941
|
});
|
|
8845
8942
|
|
|
8846
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8943
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/identity.js
|
|
8847
8944
|
var identity = strictObject({
|
|
8848
8945
|
ref: reference,
|
|
8849
8946
|
provider: text,
|
|
@@ -8856,7 +8953,7 @@ var identity = strictObject({
|
|
|
8856
8953
|
person: optional(nullable(reference))
|
|
8857
8954
|
});
|
|
8858
8955
|
|
|
8859
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8956
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
|
|
8860
8957
|
var imageEmbedding = strictObject({
|
|
8861
8958
|
model: text,
|
|
8862
8959
|
embedded: count,
|
|
@@ -8865,13 +8962,13 @@ var imageEmbedding = strictObject({
|
|
|
8865
8962
|
more: boolean()
|
|
8866
8963
|
});
|
|
8867
8964
|
|
|
8868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8965
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8869
8966
|
import { spawn } from "node:child_process";
|
|
8870
8967
|
import { randomBytes as randomBytes2 } from "node:crypto";
|
|
8871
8968
|
import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync3, openSync, readdirSync as readdirSync4, readFileSync as readFileSync5, realpathSync, rmSync as rmSync3 } from "node:fs";
|
|
8872
8969
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
8873
8970
|
|
|
8874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
8875
8972
|
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
8876
8973
|
const total = input.total ?? null;
|
|
8877
8974
|
const updated = input.updatedAt ?? null;
|
|
@@ -8887,7 +8984,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
8887
8984
|
};
|
|
8888
8985
|
}, "progressOf");
|
|
8889
8986
|
|
|
8890
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8987
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
8891
8988
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
8892
8989
|
const run = currentRun();
|
|
8893
8990
|
const trace = traceId ?? run.traceId;
|
|
@@ -8901,7 +8998,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
8901
8998
|
}));
|
|
8902
8999
|
}, "recordLogFor");
|
|
8903
9000
|
|
|
8904
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8905
9002
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
8906
9003
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
8907
9004
|
const out = openSync(log, "a", 384);
|
|
@@ -8951,11 +9048,11 @@ var finishJob = /* @__PURE__ */ __name((app, dir, id6, change) => {
|
|
|
8951
9048
|
const job2 = readJob(dir, id6);
|
|
8952
9049
|
if (!job2)
|
|
8953
9050
|
return;
|
|
8954
|
-
const
|
|
9051
|
+
const outcome4 = stateOf(job2);
|
|
8955
9052
|
recordLogFor(recordsPath(dir, id6), app, job2.traceId ? { traceId: job2.traceId } : {})[job2.error ? "error" : "info"]({
|
|
8956
9053
|
event: "job.exit",
|
|
8957
9054
|
job: id6,
|
|
8958
|
-
outcome:
|
|
9055
|
+
outcome: outcome4,
|
|
8959
9056
|
...job2.error ? { errorCode: job2.error.code } : {}
|
|
8960
9057
|
});
|
|
8961
9058
|
}, "finishJob");
|
|
@@ -9056,7 +9153,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
9056
9153
|
return { job: id6, pid, chat: input.chat, log };
|
|
9057
9154
|
}, "startArchiveJob");
|
|
9058
9155
|
|
|
9059
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/job.js
|
|
9060
9157
|
var problem = strictObject({ code: text, message: text });
|
|
9061
9158
|
var job = strictObject({
|
|
9062
9159
|
id,
|
|
@@ -9079,7 +9176,7 @@ var job = strictObject({
|
|
|
9079
9176
|
error: optional(problem)
|
|
9080
9177
|
});
|
|
9081
9178
|
|
|
9082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/join-request.js
|
|
9083
9180
|
var joinRequest = strictObject({
|
|
9084
9181
|
person_id: id,
|
|
9085
9182
|
name: nullable(text),
|
|
@@ -9090,7 +9187,7 @@ var joinRequest = strictObject({
|
|
|
9090
9187
|
about: optional(text)
|
|
9091
9188
|
});
|
|
9092
9189
|
|
|
9093
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/list-results.js
|
|
9094
9191
|
var botProfile = strictObject({
|
|
9095
9192
|
name: text,
|
|
9096
9193
|
token: text,
|
|
@@ -9121,6 +9218,10 @@ var scheduledJob = strictObject({
|
|
|
9121
9218
|
name: text,
|
|
9122
9219
|
kind: picklist(["command", "agent"]),
|
|
9123
9220
|
when: text,
|
|
9221
|
+
/** When a finished run shows a desktop notice: `always`, `failures` or `never`; the default is shown, not left out. */
|
|
9222
|
+
notify: optional(picklist(["always", "failures", "never"])),
|
|
9223
|
+
/** Where a run's result is sent after it: `telegram-bot:<profile>/<chat>` or `email:<profile>/<address>`. */
|
|
9224
|
+
deliver_to: optional(array(text)),
|
|
9124
9225
|
last: nullable(strictObject({
|
|
9125
9226
|
at: time,
|
|
9126
9227
|
exit_code: number(),
|
|
@@ -9129,8 +9230,29 @@ var scheduledJob = strictObject({
|
|
|
9129
9230
|
reason: optional(text),
|
|
9130
9231
|
error_code: optional(text),
|
|
9131
9232
|
failing_since: optional(time),
|
|
9132
|
-
failures: optional(number())
|
|
9133
|
-
|
|
9233
|
+
failures: optional(number()),
|
|
9234
|
+
cost_usd: optional(number()),
|
|
9235
|
+
/** The last time a run did not start, and why: the day's cost cap, or too little new mail. */
|
|
9236
|
+
skipped: optional(strictObject({
|
|
9237
|
+
at: time,
|
|
9238
|
+
why: text,
|
|
9239
|
+
/** A dotted id for `why`, so a client can translate it: `cost.day-cap`, `mail.none-new`, `mail.below-threshold`. */
|
|
9240
|
+
reason: optional(pipe(text, regex(/^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)+$/)))
|
|
9241
|
+
})),
|
|
9242
|
+
/** How the run's result went along each route; `reason` a dotted id, `error` the sending CLI's code and reason id. */
|
|
9243
|
+
deliveries: optional(array(strictObject({
|
|
9244
|
+
to: text,
|
|
9245
|
+
ok: boolean(),
|
|
9246
|
+
reason: optional(pipe(text, regex(/^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)+$/))),
|
|
9247
|
+
error: optional(text)
|
|
9248
|
+
})))
|
|
9249
|
+
})),
|
|
9250
|
+
/** Agent schedules: what today's runs cost, in US dollars. */
|
|
9251
|
+
spent_today_usd: optional(number()),
|
|
9252
|
+
/** Agent schedules: the cap on one run (`--max-cost`), null when none. */
|
|
9253
|
+
max_cost_usd: optional(nullable(number())),
|
|
9254
|
+
/** Agent schedules: the daily cap in force, the schedule's `--max-cost-per-day` or the config's; 0 for none. */
|
|
9255
|
+
max_cost_per_day_usd: optional(number())
|
|
9134
9256
|
});
|
|
9135
9257
|
var botTemplate = strictObject({
|
|
9136
9258
|
name: nullable(text),
|
|
@@ -9158,7 +9280,7 @@ var stickerInventory = strictObject({
|
|
|
9158
9280
|
url: optional(nullable(text))
|
|
9159
9281
|
});
|
|
9160
9282
|
|
|
9161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9283
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
|
|
9162
9284
|
var pollVote = strictObject({
|
|
9163
9285
|
person_id: id,
|
|
9164
9286
|
name: nullable(text),
|
|
@@ -9168,7 +9290,7 @@ var pollVote = strictObject({
|
|
|
9168
9290
|
voted_at: time
|
|
9169
9291
|
});
|
|
9170
9292
|
|
|
9171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9293
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/listener.js
|
|
9172
9294
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
9173
9295
|
var observation = strictObject({
|
|
9174
9296
|
value: pipe(number(), minValue(0)),
|
|
@@ -9210,7 +9332,7 @@ var serveSummary = strictObject({
|
|
|
9210
9332
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
9211
9333
|
});
|
|
9212
9334
|
|
|
9213
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9335
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
|
|
9214
9336
|
var mailCounts = strictObject({
|
|
9215
9337
|
by: picklist(["day", "week", "sender"]),
|
|
9216
9338
|
received: count,
|
|
@@ -9225,7 +9347,7 @@ var mailCounts = strictObject({
|
|
|
9225
9347
|
}))
|
|
9226
9348
|
});
|
|
9227
9349
|
|
|
9228
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9350
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
|
|
9229
9351
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
9230
9352
|
var base = { id, evidence: array(evidence2) };
|
|
9231
9353
|
var finding = variant("kind", [
|
|
@@ -9240,7 +9362,11 @@ var finding = variant("kind", [
|
|
|
9240
9362
|
due_at: optional(time),
|
|
9241
9363
|
due_evidence: optional(array(reference)),
|
|
9242
9364
|
assignee: optional(reference),
|
|
9243
|
-
assignee_evidence: optional(array(reference))
|
|
9365
|
+
assignee_evidence: optional(array(reference)),
|
|
9366
|
+
/** `<service>:<id>` in the outside service the mail came from, such as `avito:4512345678`. */
|
|
9367
|
+
external_id: optional(text),
|
|
9368
|
+
/** The http or https page the task is about, such as the conversation the mail links to. */
|
|
9369
|
+
source_url: optional(text)
|
|
9244
9370
|
}),
|
|
9245
9371
|
strictObject({
|
|
9246
9372
|
...base,
|
|
@@ -9248,7 +9374,9 @@ var finding = variant("kind", [
|
|
|
9248
9374
|
project: optional(reference),
|
|
9249
9375
|
subject: optional(reference),
|
|
9250
9376
|
type: picklist(FACT_TYPES),
|
|
9251
|
-
statement: text
|
|
9377
|
+
statement: text,
|
|
9378
|
+
/** Every new finding gives one; a batch staged before reason was needed on every kind has none. */
|
|
9379
|
+
reason: optional(text)
|
|
9252
9380
|
}),
|
|
9253
9381
|
strictObject({
|
|
9254
9382
|
...base,
|
|
@@ -9266,12 +9394,84 @@ var finding = variant("kind", [
|
|
|
9266
9394
|
scope: picklist(MEMORY_SCOPES),
|
|
9267
9395
|
body: text,
|
|
9268
9396
|
subject: optional(reference),
|
|
9269
|
-
project: optional(reference)
|
|
9397
|
+
project: optional(reference),
|
|
9398
|
+
reason: optional(text)
|
|
9270
9399
|
}),
|
|
9271
9400
|
strictObject({ ...base, kind: literal("link"), from: reference, to: reference, reason: text }),
|
|
9272
|
-
strictObject({ ...base, kind: literal("new_contact"), address: text, name: text, reason: optional(text) })
|
|
9401
|
+
strictObject({ ...base, kind: literal("new_contact"), address: text, name: text, reason: optional(text) }),
|
|
9402
|
+
strictObject({
|
|
9403
|
+
...base,
|
|
9404
|
+
kind: literal("invoice"),
|
|
9405
|
+
direction: picklist(INVOICE_DIRECTIONS),
|
|
9406
|
+
counterparty: optional(reference),
|
|
9407
|
+
/** A counterparty the store may not hold yet; the owner's accept finds its organization or makes one. */
|
|
9408
|
+
counterparty_name: optional(text),
|
|
9409
|
+
counterparty_email: optional(text),
|
|
9410
|
+
currency: text,
|
|
9411
|
+
lines: array(strictObject({
|
|
9412
|
+
description: text,
|
|
9413
|
+
quantity: optional(text),
|
|
9414
|
+
unit_price: optional(text),
|
|
9415
|
+
amount: optional(text)
|
|
9416
|
+
})),
|
|
9417
|
+
total: optional(text),
|
|
9418
|
+
number: optional(text),
|
|
9419
|
+
issue_date: optional(text),
|
|
9420
|
+
due_date: optional(text),
|
|
9421
|
+
project: optional(reference),
|
|
9422
|
+
reason: text
|
|
9423
|
+
}),
|
|
9424
|
+
strictObject({
|
|
9425
|
+
...base,
|
|
9426
|
+
kind: literal("payment"),
|
|
9427
|
+
direction: picklist(MONEY_DIRECTIONS),
|
|
9428
|
+
payer: optional(reference),
|
|
9429
|
+
payer_name: optional(text),
|
|
9430
|
+
payer_email: optional(text),
|
|
9431
|
+
payee: optional(reference),
|
|
9432
|
+
payee_name: optional(text),
|
|
9433
|
+
payee_email: optional(text),
|
|
9434
|
+
amount: text,
|
|
9435
|
+
currency: text,
|
|
9436
|
+
date: text,
|
|
9437
|
+
reference: optional(text),
|
|
9438
|
+
allocations: optional(array(strictObject({ invoice: reference, amount: text }))),
|
|
9439
|
+
project: optional(reference),
|
|
9440
|
+
reason: text
|
|
9441
|
+
}),
|
|
9442
|
+
strictObject({
|
|
9443
|
+
...base,
|
|
9444
|
+
kind: literal("order"),
|
|
9445
|
+
purpose: picklist(ORDER_PURPOSES),
|
|
9446
|
+
customer: optional(reference),
|
|
9447
|
+
customer_name: optional(text),
|
|
9448
|
+
customer_email: optional(text),
|
|
9449
|
+
supplier: optional(reference),
|
|
9450
|
+
supplier_name: text,
|
|
9451
|
+
number: optional(text),
|
|
9452
|
+
total: optional(text),
|
|
9453
|
+
currency: optional(text),
|
|
9454
|
+
status: optional(picklist(ORDER_STATUSES)),
|
|
9455
|
+
order_date: optional(text),
|
|
9456
|
+
fulfilled_date: optional(text),
|
|
9457
|
+
invoice: optional(reference),
|
|
9458
|
+
payment: optional(reference),
|
|
9459
|
+
project: optional(reference),
|
|
9460
|
+
/** The order's page at the shop, http or https. */
|
|
9461
|
+
source_url: optional(text),
|
|
9462
|
+
reason: text
|
|
9463
|
+
}),
|
|
9464
|
+
strictObject({
|
|
9465
|
+
...base,
|
|
9466
|
+
kind: literal("order_update"),
|
|
9467
|
+
supplier_name: text,
|
|
9468
|
+
number: text,
|
|
9469
|
+
status: picklist(ORDER_STATUSES),
|
|
9470
|
+
date: optional(text),
|
|
9471
|
+
reason: text
|
|
9472
|
+
})
|
|
9273
9473
|
]);
|
|
9274
|
-
var
|
|
9474
|
+
var outcome2 = strictObject({
|
|
9275
9475
|
id,
|
|
9276
9476
|
fingerprint: text,
|
|
9277
9477
|
status: picklist(["accepted", "rejected"]),
|
|
@@ -9287,11 +9487,11 @@ var mailFindings = strictObject({
|
|
|
9287
9487
|
author,
|
|
9288
9488
|
decided_by: nullable(strictObject({ type: picklist(["person", "bot"]), id })),
|
|
9289
9489
|
decided_at: nullable(time),
|
|
9290
|
-
previous: array(
|
|
9291
|
-
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(
|
|
9490
|
+
previous: array(outcome2),
|
|
9491
|
+
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
9292
9492
|
});
|
|
9293
9493
|
|
|
9294
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9494
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
9295
9495
|
var mediaArchive = strictObject({
|
|
9296
9496
|
directory: text,
|
|
9297
9497
|
chats: count,
|
|
@@ -9323,7 +9523,7 @@ var mediaArchiveTimer = union([
|
|
|
9323
9523
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
9324
9524
|
]);
|
|
9325
9525
|
|
|
9326
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9526
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
9327
9527
|
var preparationId = pipe(string(), minLength(1));
|
|
9328
9528
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
9329
9529
|
var preparationTime = nullable(isoTime);
|
|
@@ -9415,7 +9615,7 @@ var preparationMeeting = strictObject({
|
|
|
9415
9615
|
updated_at: isoTime
|
|
9416
9616
|
});
|
|
9417
9617
|
|
|
9418
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9618
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
9419
9619
|
var meetingEvidence = preparationEvidence;
|
|
9420
9620
|
var meetingPersonContext = strictObject({
|
|
9421
9621
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -9437,7 +9637,7 @@ var meetingPersonContext = strictObject({
|
|
|
9437
9637
|
})
|
|
9438
9638
|
});
|
|
9439
9639
|
|
|
9440
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9640
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
9441
9641
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
9442
9642
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
9443
9643
|
var finding2 = variant("kind", [
|
|
@@ -9455,7 +9655,7 @@ var finding2 = variant("kind", [
|
|
|
9455
9655
|
assignee_evidence: optional(array(reference))
|
|
9456
9656
|
})
|
|
9457
9657
|
]);
|
|
9458
|
-
var
|
|
9658
|
+
var outcome3 = strictObject({
|
|
9459
9659
|
id,
|
|
9460
9660
|
fingerprint: text,
|
|
9461
9661
|
status: picklist(["accepted", "rejected"]),
|
|
@@ -9471,11 +9671,11 @@ var meetingFindings = strictObject({
|
|
|
9471
9671
|
author,
|
|
9472
9672
|
decided_by: nullable(strictObject({ type: picklist(["person", "bot"]), id })),
|
|
9473
9673
|
decided_at: nullable(time),
|
|
9474
|
-
previous: array(
|
|
9475
|
-
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(
|
|
9674
|
+
previous: array(outcome3),
|
|
9675
|
+
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
|
|
9476
9676
|
});
|
|
9477
9677
|
|
|
9478
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
9479
9679
|
var communicationCoverage = strictObject({
|
|
9480
9680
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
9481
9681
|
query: string(),
|
|
@@ -9520,7 +9720,7 @@ var preparationCommunications = strictObject({
|
|
|
9520
9720
|
}))
|
|
9521
9721
|
});
|
|
9522
9722
|
|
|
9523
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
9524
9724
|
var meetingPreparation = strictObject({
|
|
9525
9725
|
communications: optional(preparationCommunications),
|
|
9526
9726
|
schema_version: literal(1),
|
|
@@ -9633,7 +9833,7 @@ var meetingPreparation = strictObject({
|
|
|
9633
9833
|
})
|
|
9634
9834
|
});
|
|
9635
9835
|
|
|
9636
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
9637
9837
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
9638
9838
|
var id3 = pipe(string(), minLength(1));
|
|
9639
9839
|
var text3 = string();
|
|
@@ -9697,7 +9897,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
9697
9897
|
})
|
|
9698
9898
|
});
|
|
9699
9899
|
|
|
9700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9900
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
9701
9901
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
9702
9902
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
9703
9903
|
var meetingSeriesInventory = strictObject({
|
|
@@ -9727,7 +9927,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
9727
9927
|
})
|
|
9728
9928
|
});
|
|
9729
9929
|
|
|
9730
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9930
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
9731
9931
|
var text4 = string();
|
|
9732
9932
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
9733
9933
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -9744,7 +9944,7 @@ var meetingTaskProposal = strictObject({
|
|
|
9744
9944
|
persistence: literal("proposal-only")
|
|
9745
9945
|
});
|
|
9746
9946
|
|
|
9747
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9947
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
9748
9948
|
var memory = strictObject({
|
|
9749
9949
|
ref: reference,
|
|
9750
9950
|
id,
|
|
@@ -9771,7 +9971,7 @@ var memory = strictObject({
|
|
|
9771
9971
|
updated_at: time
|
|
9772
9972
|
});
|
|
9773
9973
|
|
|
9774
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9974
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
9775
9975
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
9776
9976
|
var status = picklist(["found", "linked", "dismissed"]);
|
|
9777
9977
|
var mention = strictObject({
|
|
@@ -9814,13 +10014,13 @@ var mentionRebuild = strictObject({
|
|
|
9814
10014
|
mentions: count
|
|
9815
10015
|
});
|
|
9816
10016
|
|
|
9817
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10017
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
9818
10018
|
var operated3 = { operation_id: id, chat_id: id };
|
|
9819
10019
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
9820
10020
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
9821
10021
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
9822
10022
|
|
|
9823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10023
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
9824
10024
|
var messageTranscript = strictObject({
|
|
9825
10025
|
message_id: id,
|
|
9826
10026
|
text,
|
|
@@ -9878,7 +10078,7 @@ var evidencePacket = strictObject({
|
|
|
9878
10078
|
}))
|
|
9879
10079
|
});
|
|
9880
10080
|
|
|
9881
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10081
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
9882
10082
|
var messageThread = strictObject({
|
|
9883
10083
|
ref: reference,
|
|
9884
10084
|
chat: id,
|
|
@@ -9895,7 +10095,7 @@ var messageThread = strictObject({
|
|
|
9895
10095
|
});
|
|
9896
10096
|
var messageContext = union([message, messageThread]);
|
|
9897
10097
|
|
|
9898
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10098
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
9899
10099
|
var messageCounts = strictObject({
|
|
9900
10100
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
9901
10101
|
total: count,
|
|
@@ -9908,7 +10108,7 @@ var messageCounts = strictObject({
|
|
|
9908
10108
|
}))
|
|
9909
10109
|
});
|
|
9910
10110
|
|
|
9911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10111
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
9912
10112
|
var messageLink = strictObject({
|
|
9913
10113
|
ref: reference,
|
|
9914
10114
|
url: nullable(text),
|
|
@@ -9925,7 +10125,7 @@ var messageLink = strictObject({
|
|
|
9925
10125
|
})))
|
|
9926
10126
|
});
|
|
9927
10127
|
|
|
9928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10128
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
9929
10129
|
var savedMessageFile = strictObject({
|
|
9930
10130
|
kind: text,
|
|
9931
10131
|
path: text,
|
|
@@ -10012,7 +10212,7 @@ var messageSyncAll = strictObject({
|
|
|
10012
10212
|
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
10013
10213
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
10014
10214
|
|
|
10015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10215
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
10016
10216
|
var messageWrite = strictObject({
|
|
10017
10217
|
operation_id: id,
|
|
10018
10218
|
message,
|
|
@@ -10027,7 +10227,7 @@ var draftWrite = strictObject({
|
|
|
10027
10227
|
});
|
|
10028
10228
|
var messageSend = union([messageWrite, draftWrite]);
|
|
10029
10229
|
|
|
10030
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10230
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
10031
10231
|
var model2 = strictObject({
|
|
10032
10232
|
id,
|
|
10033
10233
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -10044,7 +10244,7 @@ var model2 = strictObject({
|
|
|
10044
10244
|
path: text
|
|
10045
10245
|
});
|
|
10046
10246
|
|
|
10047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10247
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
10048
10248
|
var source = picklist(["environment", "keyring", "file"]);
|
|
10049
10249
|
var modelKey = strictObject({
|
|
10050
10250
|
provider: text,
|
|
@@ -10054,7 +10254,7 @@ var modelKey = strictObject({
|
|
|
10054
10254
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
10055
10255
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
10056
10256
|
|
|
10057
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10257
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
10058
10258
|
var versus = strictObject({ current: number(), previous: number() });
|
|
10059
10259
|
var person = { person_ref: reference, name: nullable(text) };
|
|
10060
10260
|
var graph = strictObject({
|
|
@@ -10088,14 +10288,14 @@ var officialStats = strictObject({
|
|
|
10088
10288
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
10089
10289
|
});
|
|
10090
10290
|
|
|
10091
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10291
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
10092
10292
|
var person2 = strictObject({
|
|
10093
10293
|
ref: reference,
|
|
10094
10294
|
name: nullable(text),
|
|
10095
10295
|
identities: optional(array(identity))
|
|
10096
10296
|
});
|
|
10097
10297
|
|
|
10098
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10298
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
10099
10299
|
var poll = strictObject({
|
|
10100
10300
|
chat_id: id,
|
|
10101
10301
|
message_id: id,
|
|
@@ -10111,11 +10311,11 @@ var poll = strictObject({
|
|
|
10111
10311
|
});
|
|
10112
10312
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
10113
10313
|
|
|
10114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10314
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
10115
10315
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
10116
10316
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
10117
10317
|
|
|
10118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10318
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
10119
10319
|
var figures = record(string(), number());
|
|
10120
10320
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
10121
10321
|
var rankingRow = strictObject({
|
|
@@ -10162,7 +10362,7 @@ var ranking = strictObject({
|
|
|
10162
10362
|
rows: array(rankingRow)
|
|
10163
10363
|
});
|
|
10164
10364
|
|
|
10165
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10365
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
10166
10366
|
var reaction = strictObject({
|
|
10167
10367
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
10168
10368
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -10170,7 +10370,7 @@ var reaction = strictObject({
|
|
|
10170
10370
|
reacted_at: time
|
|
10171
10371
|
});
|
|
10172
10372
|
|
|
10173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
10174
10374
|
var reactionChange = strictObject({
|
|
10175
10375
|
operation_id: id,
|
|
10176
10376
|
chat_id: id,
|
|
@@ -10178,7 +10378,7 @@ var reactionChange = strictObject({
|
|
|
10178
10378
|
reaction: nullable(text)
|
|
10179
10379
|
});
|
|
10180
10380
|
|
|
10181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10381
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
10182
10382
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
10183
10383
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
10184
10384
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -10189,7 +10389,7 @@ var recipientChange = strictObject({
|
|
|
10189
10389
|
...partial(recipientOff).entries
|
|
10190
10390
|
});
|
|
10191
10391
|
|
|
10192
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10392
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
10193
10393
|
var events = array(record(string(), unknown()));
|
|
10194
10394
|
var recordedRun = strictObject({
|
|
10195
10395
|
run_id: id,
|
|
@@ -10261,7 +10461,7 @@ var runHit = strictObject({
|
|
|
10261
10461
|
});
|
|
10262
10462
|
var runLocation = strictObject({ path: text });
|
|
10263
10463
|
|
|
10264
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10464
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
10265
10465
|
var relationship = strictObject({
|
|
10266
10466
|
id,
|
|
10267
10467
|
from: reference,
|
|
@@ -10278,7 +10478,7 @@ var relationship = strictObject({
|
|
|
10278
10478
|
created_at: time
|
|
10279
10479
|
});
|
|
10280
10480
|
|
|
10281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10481
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
10282
10482
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
10283
10483
|
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
10284
10484
|
var responseTimes = strictObject({
|
|
@@ -10295,7 +10495,7 @@ var waitingChats = strictObject({
|
|
|
10295
10495
|
by_kind: strictObject({ private: count, group: count })
|
|
10296
10496
|
});
|
|
10297
10497
|
|
|
10298
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
10299
10499
|
var retentionCohort = strictObject({
|
|
10300
10500
|
/** The first day of the joining day or week. */
|
|
10301
10501
|
cohort: text,
|
|
@@ -10343,7 +10543,7 @@ var retention = strictObject({
|
|
|
10343
10543
|
rows: array(retentionCohort)
|
|
10344
10544
|
});
|
|
10345
10545
|
|
|
10346
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10546
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
10347
10547
|
var savedSearch = strictObject({
|
|
10348
10548
|
id,
|
|
10349
10549
|
/** `null` for a run in the history. */
|
|
@@ -10360,7 +10560,7 @@ var savedSearch = strictObject({
|
|
|
10360
10560
|
});
|
|
10361
10561
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
10362
10562
|
|
|
10363
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10563
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
10364
10564
|
var sendAttempt = strictObject({
|
|
10365
10565
|
at: time,
|
|
10366
10566
|
profile: text,
|
|
@@ -10388,7 +10588,7 @@ var sendAttempt = strictObject({
|
|
|
10388
10588
|
error_code: optional(text)
|
|
10389
10589
|
});
|
|
10390
10590
|
|
|
10391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10591
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
10392
10592
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
10393
10593
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
10394
10594
|
var infoSchema = strictObject({
|
|
@@ -10543,12 +10743,25 @@ var storeBackup = strictObject({
|
|
|
10543
10743
|
encrypted: optional(literal(true))
|
|
10544
10744
|
});
|
|
10545
10745
|
var storeDecrypt = strictObject({ path: text, from: text, bytes: count });
|
|
10546
|
-
var storeRestore =
|
|
10547
|
-
|
|
10548
|
-
|
|
10549
|
-
|
|
10550
|
-
|
|
10551
|
-
|
|
10746
|
+
var storeRestore = union([
|
|
10747
|
+
strictObject({
|
|
10748
|
+
path: text,
|
|
10749
|
+
restored_from: text,
|
|
10750
|
+
kept_at: nullable(text),
|
|
10751
|
+
schema: count
|
|
10752
|
+
}),
|
|
10753
|
+
/** From a rollback copy: its tables put back in place, the store returned to `schema` from `was`. */
|
|
10754
|
+
strictObject({
|
|
10755
|
+
path: text,
|
|
10756
|
+
restored_from: text,
|
|
10757
|
+
rolled_back: literal(true),
|
|
10758
|
+
schema: count,
|
|
10759
|
+
was: count,
|
|
10760
|
+
tables: array(strictObject({ table: text, rows: count })),
|
|
10761
|
+
rebuilt: array(text),
|
|
10762
|
+
foreign_key_violations: count
|
|
10763
|
+
})
|
|
10764
|
+
]);
|
|
10552
10765
|
var storeReset = union([
|
|
10553
10766
|
strictObject({ ...absent.entries, reset: literal(false) }),
|
|
10554
10767
|
strictObject({
|
|
@@ -10596,7 +10809,7 @@ var storeRepair = union([
|
|
|
10596
10809
|
]);
|
|
10597
10810
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
10598
10811
|
|
|
10599
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10812
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
10600
10813
|
var range = strictObject({ from: number(), to: number() });
|
|
10601
10814
|
var storeChatStatus = strictObject({
|
|
10602
10815
|
chat_id: id,
|
|
@@ -10694,7 +10907,7 @@ var storeJobRetry = union([
|
|
|
10694
10907
|
]);
|
|
10695
10908
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
10696
10909
|
|
|
10697
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10910
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
10698
10911
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
10699
10912
|
var storeTable = strictObject({
|
|
10700
10913
|
name: text,
|
|
@@ -10703,7 +10916,7 @@ var storeTable = strictObject({
|
|
|
10703
10916
|
bytes: optional(nullable(count))
|
|
10704
10917
|
});
|
|
10705
10918
|
|
|
10706
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
10707
10920
|
var tagTarget = variant("type", [
|
|
10708
10921
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
10709
10922
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -10734,7 +10947,7 @@ var automaticTags = strictObject({
|
|
|
10734
10947
|
dry_run: boolean()
|
|
10735
10948
|
});
|
|
10736
10949
|
|
|
10737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10950
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
10738
10951
|
var tagging = strictObject({
|
|
10739
10952
|
tag: text,
|
|
10740
10953
|
type: picklist(TAG_TYPES),
|
|
@@ -10747,7 +10960,7 @@ var tagging = strictObject({
|
|
|
10747
10960
|
created_at: time
|
|
10748
10961
|
});
|
|
10749
10962
|
|
|
10750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10963
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
10751
10964
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
10752
10965
|
var taskPair = strictObject({
|
|
10753
10966
|
task: nullable(side),
|
|
@@ -10770,7 +10983,7 @@ var taskPair = strictObject({
|
|
|
10770
10983
|
created_at: time
|
|
10771
10984
|
});
|
|
10772
10985
|
|
|
10773
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10986
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
10774
10987
|
var nullableTime = nullable(time);
|
|
10775
10988
|
var link = strictObject({
|
|
10776
10989
|
id,
|
|
@@ -10805,6 +11018,10 @@ var taskCard = strictObject({
|
|
|
10805
11018
|
revision: number(),
|
|
10806
11019
|
parent: nullable(reference),
|
|
10807
11020
|
source: nullable(text),
|
|
11021
|
+
/** `<service>:<id>`, its id in an outside service, such as `avito:4512345678`. */
|
|
11022
|
+
external_id: nullable(text),
|
|
11023
|
+
/** The http or https page it is about, such as an Avito ad. */
|
|
11024
|
+
source_url: nullable(text),
|
|
10808
11025
|
due_at: nullableTime,
|
|
10809
11026
|
next_check_at: nullableTime,
|
|
10810
11027
|
closed_at: nullableTime,
|
|
@@ -10940,7 +11157,7 @@ var taskReview = strictObject({
|
|
|
10940
11157
|
untrusted
|
|
10941
11158
|
});
|
|
10942
11159
|
|
|
10943
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11160
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
10944
11161
|
var topic = strictObject({
|
|
10945
11162
|
id,
|
|
10946
11163
|
title: text,
|
|
@@ -10954,9 +11171,13 @@ var topic = strictObject({
|
|
|
10954
11171
|
untrusted
|
|
10955
11172
|
});
|
|
10956
11173
|
|
|
10957
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11174
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
10958
11175
|
var ENTITIES = {
|
|
10959
11176
|
sync_progress: progress,
|
|
11177
|
+
deal,
|
|
11178
|
+
lead,
|
|
11179
|
+
pipeline,
|
|
11180
|
+
stage,
|
|
10960
11181
|
...MEETING_RESULT_ENTITIES,
|
|
10961
11182
|
message,
|
|
10962
11183
|
message_context: messageContext,
|
|
@@ -11236,7 +11457,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
11236
11457
|
return [name, definition];
|
|
11237
11458
|
})), "entityDefinitions");
|
|
11238
11459
|
|
|
11239
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11460
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
11240
11461
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
11241
11462
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
11242
11463
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -11270,7 +11491,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
11270
11491
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
11271
11492
|
}, "answerRow");
|
|
11272
11493
|
|
|
11273
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11494
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
11274
11495
|
import { join as join6 } from "node:path";
|
|
11275
11496
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
11276
11497
|
var IMAGE_MODELS = [
|
|
@@ -11324,7 +11545,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
11324
11545
|
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
|
|
11325
11546
|
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
11326
11547
|
|
|
11327
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11548
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
11328
11549
|
var STEPS2 = defineSteps([
|
|
11329
11550
|
...STEPS,
|
|
11330
11551
|
{
|
|
@@ -11605,29 +11826,20 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
11605
11826
|
].join(" ");
|
|
11606
11827
|
}, "stepLine");
|
|
11607
11828
|
|
|
11608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11609
|
-
var where = [{ field: "ref" }
|
|
11829
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
11830
|
+
var where = [{ field: "ref" }];
|
|
11610
11831
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
11832
|
+
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
11611
11833
|
var STATUS_SIGNAL_ROWS = {
|
|
11612
|
-
"status.last-message": { columns: [...where, { field: "at", as: "time" }, who2] },
|
|
11613
|
-
"status.reply-next": {
|
|
11614
|
-
columns: [
|
|
11615
|
-
...where,
|
|
11616
|
-
{ field: "data.next" },
|
|
11617
|
-
{ field: "data.addressed.name" },
|
|
11618
|
-
{ field: "data.waiting_since", as: "day" },
|
|
11619
|
-
{ field: "data.overdue", tag: "overdue" }
|
|
11620
|
-
]
|
|
11621
|
-
},
|
|
11622
11834
|
"status.questions": {
|
|
11623
|
-
columns: [...where, { field: "at", as: "day" },
|
|
11835
|
+
columns: [...where, { field: "at", as: "day" }, who2],
|
|
11624
11836
|
text: ["data.excerpt"]
|
|
11625
11837
|
},
|
|
11626
11838
|
"status.promises": {
|
|
11627
11839
|
columns: [
|
|
11628
11840
|
...where,
|
|
11629
11841
|
{ field: "at", as: "day" },
|
|
11630
|
-
{ field: "
|
|
11842
|
+
{ field: "basis" },
|
|
11631
11843
|
{ field: "data.side" },
|
|
11632
11844
|
{ field: "data.due", as: "day" },
|
|
11633
11845
|
{ field: "data.status" }
|
|
@@ -11654,21 +11866,10 @@ var STATUS_SIGNAL_ROWS = {
|
|
|
11654
11866
|
columns: [
|
|
11655
11867
|
...where,
|
|
11656
11868
|
{ field: "data.query" },
|
|
11657
|
-
{ field: "data.theirs_last", as: "day" },
|
|
11658
11869
|
{ field: "data.yours_last", as: "day" },
|
|
11659
11870
|
{ field: "data.silent_since", as: "day" }
|
|
11660
11871
|
]
|
|
11661
11872
|
},
|
|
11662
|
-
"status.coverage": {
|
|
11663
|
-
columns: [
|
|
11664
|
-
{ field: "chat" },
|
|
11665
|
-
{ field: "chat_title" },
|
|
11666
|
-
{ field: "data.state" },
|
|
11667
|
-
{ field: "data.held.messages", as: "count", tag: "held" },
|
|
11668
|
-
{ field: "data.held.oldest_at", as: "day" },
|
|
11669
|
-
{ field: "sync_command" }
|
|
11670
|
-
]
|
|
11671
|
-
},
|
|
11672
11873
|
"status.children": {
|
|
11673
11874
|
columns: [
|
|
11674
11875
|
{ field: "data.child" },
|
|
@@ -11685,10 +11886,14 @@ var STATUS_ROWS = {
|
|
|
11685
11886
|
columns: [
|
|
11686
11887
|
{ field: "chat" },
|
|
11687
11888
|
{ field: "title" },
|
|
11688
|
-
{ field: "kind" },
|
|
11689
11889
|
{ field: "role" },
|
|
11690
|
-
{ field: "
|
|
11691
|
-
{ field: "
|
|
11890
|
+
{ field: "next", prefix: "next" },
|
|
11891
|
+
{ field: "addressed.name" },
|
|
11892
|
+
{ field: "waiting_since", as: "day" },
|
|
11893
|
+
{ field: "overdue", tag: "overdue" },
|
|
11894
|
+
{ field: "held.messages", as: "count", tag: "held" },
|
|
11895
|
+
{ field: "unlisted.questions", as: "count", tag: "questions unlisted" },
|
|
11896
|
+
{ field: "unlisted.promises", as: "count", tag: "promises unlisted" }
|
|
11692
11897
|
]
|
|
11693
11898
|
},
|
|
11694
11899
|
"status.money": {
|
|
@@ -11699,7 +11904,6 @@ var STATUS_ROWS = {
|
|
|
11699
11904
|
{ field: "rows", as: "count", tag: "rows" }
|
|
11700
11905
|
]
|
|
11701
11906
|
},
|
|
11702
|
-
"status.signal": { columns: [{ field: "id" }, { field: "version" }] },
|
|
11703
11907
|
"status.out-of-scope": {
|
|
11704
11908
|
columns: [
|
|
11705
11909
|
{ field: "chat" },
|
|
@@ -11714,7 +11918,7 @@ var STATUS_ROWS = {
|
|
|
11714
11918
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
11715
11919
|
};
|
|
11716
11920
|
|
|
11717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11921
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
11718
11922
|
var TEXT_CHARS = 400;
|
|
11719
11923
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
11720
11924
|
var messageRow = {
|
|
@@ -11899,8 +12103,8 @@ var cellOf = /* @__PURE__ */ __name((item, column, clock) => {
|
|
|
11899
12103
|
const parts = clock.parts(iso);
|
|
11900
12104
|
if (!parts)
|
|
11901
12105
|
return { text: clean(iso) };
|
|
11902
|
-
const
|
|
11903
|
-
return
|
|
12106
|
+
const day3 = parts.date.slice(5);
|
|
12107
|
+
return column.as === "day" ? { text: day3, date: parts.date } : { text: `${day3} ${parts.time}`, date: parts.date, time: parts.time };
|
|
11904
12108
|
}
|
|
11905
12109
|
case "count":
|
|
11906
12110
|
return typeof value === "number" && value !== 0 ? { text: column.tag ? `${value} ${column.tag}` : String(value) } : void 0;
|
|
@@ -11948,6 +12152,17 @@ var sameEverywhere = /* @__PURE__ */ __name((rows2, index) => {
|
|
|
11948
12152
|
const first2 = rows2[0]?.cells[index]?.text;
|
|
11949
12153
|
return first2 !== void 0 && rows2.every(({ cells }) => cells[index]?.text === first2);
|
|
11950
12154
|
}, "sameEverywhere");
|
|
12155
|
+
var ordered = /* @__PURE__ */ __name((dates) => dates.every((one, at2) => at2 === 0 || one >= dates[at2 - 1]) || dates.every((one, at2) => at2 === 0 || one <= dates[at2 - 1]), "ordered");
|
|
12156
|
+
var dayColumn = /* @__PURE__ */ __name((rows2, shape, hoisted) => {
|
|
12157
|
+
const index = shape.columns.findIndex((column, at2) => column.as === "time" && !hoisted[at2]);
|
|
12158
|
+
if (index < 0)
|
|
12159
|
+
return -1;
|
|
12160
|
+
const dates = rows2.map(({ cells }) => cells[index]?.date);
|
|
12161
|
+
if (dates.some((one) => one === void 0))
|
|
12162
|
+
return -1;
|
|
12163
|
+
const days2 = dates;
|
|
12164
|
+
return ordered(days2) && new Set(days2).size * 3 <= days2.length ? index : -1;
|
|
12165
|
+
}, "dayColumn");
|
|
11951
12166
|
var rowsOfItems = /* @__PURE__ */ __name((items, shape, clock, chars) => {
|
|
11952
12167
|
const dates = [];
|
|
11953
12168
|
const rows2 = items.map((item) => {
|
|
@@ -11970,18 +12185,31 @@ var rowsOfItems = /* @__PURE__ */ __name((items, shape, clock, chars) => {
|
|
|
11970
12185
|
return [];
|
|
11971
12186
|
return [`${sourceOf(item, column) ?? fieldsOfColumn(column.field)[0]}: ${rows2[0]?.cells[index]?.text}`];
|
|
11972
12187
|
});
|
|
11973
|
-
const
|
|
11974
|
-
|
|
12188
|
+
const byDay = dayColumn(rows2, shape, hoisted);
|
|
12189
|
+
let shownDay;
|
|
12190
|
+
const lines = rows2.flatMap(({ cells, text: text5, item }) => {
|
|
12191
|
+
const parts = cells.map((cell2, index) => hoisted[index] ? void 0 : cell2?.text);
|
|
12192
|
+
const dayLine = [];
|
|
12193
|
+
const cell = cells[byDay];
|
|
12194
|
+
if (byDay >= 0 && cell?.date && cell.time) {
|
|
12195
|
+
if (cell.date !== shownDay)
|
|
12196
|
+
dayLine.push(`# ${cell.date}`);
|
|
12197
|
+
shownDay = cell.date;
|
|
12198
|
+
parts[byDay] = cell.time;
|
|
12199
|
+
}
|
|
11975
12200
|
const shortened = prefix ? clean(prefix) : void 0;
|
|
11976
12201
|
if (shortened && parts[0]?.startsWith(shortened))
|
|
11977
12202
|
parts[0] = `#${parts[0].slice(shortened.length)}`;
|
|
11978
12203
|
const shown = [...parts, text5].filter((part) => part !== void 0 && part !== "");
|
|
11979
|
-
return guarded(shown.length ? shown.join(" \xB7 ") : item ? blockLine(item, chars) : "");
|
|
12204
|
+
return [...dayLine, guarded(shown.length ? shown.join(" \xB7 ") : item ? blockLine(item, chars) : "")];
|
|
11980
12205
|
});
|
|
11981
|
-
const
|
|
11982
|
-
|
|
11983
|
-
return { header, lines };
|
|
12206
|
+
const header = [...prefix ? [`ref: ${clean(prefix)}<id>`] : [], ...named3];
|
|
12207
|
+
return { header, lines, dates };
|
|
11984
12208
|
}, "rowsOfItems");
|
|
12209
|
+
var spanOf = /* @__PURE__ */ __name((dates, clock) => {
|
|
12210
|
+
const when = span(dates);
|
|
12211
|
+
return when ? [when, clock.zone] : [];
|
|
12212
|
+
}, "spanOf");
|
|
11985
12213
|
var blockLine = /* @__PURE__ */ __name((fields, chars) => blockOf(fields, chars).join(" "), "blockLine");
|
|
11986
12214
|
var blockOf = /* @__PURE__ */ __name((fields, chars, indent = "", whole = []) => Object.entries(fields).filter(([name]) => !(name === "priority" && "priority_label" in fields)).filter(([, value]) => present(value) || value === false).flatMap(([name, value]) => {
|
|
11987
12215
|
const label = `${indent}${clean(name)}:`;
|
|
@@ -12032,25 +12260,31 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
12032
12260
|
const chars = options.textChars ?? TEXT_CHARS;
|
|
12033
12261
|
let lines = [];
|
|
12034
12262
|
if ("items" in body) {
|
|
12035
|
-
const { header, lines: rows2 } = rowsOfItems(body.items, shape, clock, chars);
|
|
12036
|
-
|
|
12263
|
+
const { header, lines: rows2, dates } = rowsOfItems(body.items, shape, clock, chars);
|
|
12264
|
+
const head = [...header, ...spanOf(dates, clock)];
|
|
12265
|
+
lines = (head.length ? [`# ${head.join(" \xB7 ")}`] : []).concat(rows2.length ? rows2 : ["# nothing found"]);
|
|
12037
12266
|
} else if (isFields(body.item)) {
|
|
12038
12267
|
const sections = shape.sections ?? {};
|
|
12039
|
-
const rest = Object.fromEntries(Object.entries(body.item).filter(([name]) => !Object.hasOwn(sections, name)));
|
|
12268
|
+
const rest = Object.fromEntries(Object.entries(body.item).filter(([name]) => !Object.hasOwn(sections, name) && !shape.hidden?.includes(name)));
|
|
12040
12269
|
lines = blockOf(rest, chars, "", shape.whole).map(guarded);
|
|
12270
|
+
let dates = [];
|
|
12271
|
+
let drawn = [];
|
|
12041
12272
|
for (const [name, entity] of Object.entries(sections)) {
|
|
12042
12273
|
const list = body.item[name];
|
|
12043
12274
|
if (!Array.isArray(list))
|
|
12044
12275
|
continue;
|
|
12045
|
-
const { header, lines: rows2 } = rowsOfItems(list, rowsOf(entity), clock, chars);
|
|
12046
|
-
|
|
12276
|
+
const { header, lines: rows2, dates: more } = rowsOfItems(list, rowsOf(entity), clock, chars);
|
|
12277
|
+
dates = dates.concat(more);
|
|
12278
|
+
drawn = drawn.concat([`# ${[`${clean(name)}: ${list.length}`, ...header].join(" \xB7 ")}`], rows2);
|
|
12047
12279
|
}
|
|
12280
|
+
const when = spanOf(dates, clock);
|
|
12281
|
+
lines = lines.concat(when.length ? [`# ${when.join(" \xB7 ")}`] : [], drawn);
|
|
12048
12282
|
} else if (present(body.item))
|
|
12049
12283
|
lines = [guarded(cut(clean(String(body.item)), chars))];
|
|
12050
12284
|
return lines.concat(footerOf(body)).join("\n");
|
|
12051
12285
|
}, "compactText");
|
|
12052
12286
|
|
|
12053
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12287
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
12054
12288
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
12055
12289
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
12056
12290
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -12108,7 +12342,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
12108
12342
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
12109
12343
|
}, "largeAnswerSteps");
|
|
12110
12344
|
|
|
12111
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
12112
12346
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
12113
12347
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
12114
12348
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -12122,7 +12356,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
12122
12356
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
12123
12357
|
}, "strip");
|
|
12124
12358
|
|
|
12125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12359
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._6a3165a3e9bffd3483d86046d9ef2956/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
12126
12360
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
12127
12361
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
12128
12362
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -12388,6 +12622,7 @@ export {
|
|
|
12388
12622
|
setExitCode,
|
|
12389
12623
|
provide,
|
|
12390
12624
|
environmentOf,
|
|
12625
|
+
withAgentLevels,
|
|
12391
12626
|
secretInputOf,
|
|
12392
12627
|
outputFor,
|
|
12393
12628
|
baseContext,
|
|
@@ -12481,6 +12716,7 @@ export {
|
|
|
12481
12716
|
answerEntity,
|
|
12482
12717
|
answerEntitySchema,
|
|
12483
12718
|
answerProjectionSchema,
|
|
12719
|
+
ON_CHAT_ROW,
|
|
12484
12720
|
STATUS_SIGNAL_ROWS,
|
|
12485
12721
|
entityRows,
|
|
12486
12722
|
IMAGE_MODELS,
|