@wirecat/tg-cli 0.116.0 → 0.118.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-4YNP6VCO.js} +70 -61
- package/dist/bundle/{all-profiles-R2UZMH24.js → all-profiles-MIQDYAGO.js} +10 -10
- package/dist/bundle/{anthropic-QKIPHV2Z.js → anthropic-NTASPJYE.js} +6 -6
- package/dist/bundle/{app-server-AZB2MFK6.js → app-server-UJZBJ2SK.js} +49 -46
- package/dist/bundle/{bot-api-2IM243J4.js → bot-api-JZAD4L3N.js} +49 -49
- package/dist/bundle/{bot-history-G6CRVCL2.js → bot-history-OUDHH3NU.js} +18 -18
- package/dist/bundle/{bun-JDKPISPX.js → bun-EC4HDIRD.js} +2 -2
- package/dist/bundle/{bun-sqlite-X5PY5IQT.js → bun-sqlite-A4HJR6KO.js} +5 -5
- package/dist/bundle/{chunk-SD5PUYKF.js → chunk-2KQHUBTV.js} +12 -12
- package/dist/bundle/{chunk-QHBVGKC3.js → chunk-2NA5KVP6.js} +210 -82
- package/dist/bundle/{chunk-PPLFOIYX.js → chunk-3MQOLYAN.js} +4 -4
- package/dist/bundle/{chunk-QGL2UGML.js → chunk-4BV4UMBB.js} +738 -235
- package/dist/bundle/{chunk-Y6VWGJ4Q.js → chunk-57LKX6N2.js} +4 -2
- package/dist/bundle/{chunk-BGMV66FC.js → chunk-5IIU7X4S.js} +1 -1
- package/dist/bundle/{chunk-H72UEHNG.js → chunk-5LDWBEWU.js} +55 -33
- package/dist/bundle/{chunk-XQUTJITP.js → chunk-5QYU7B27.js} +763 -130
- package/dist/bundle/chunk-65XV5PPI.js +64 -0
- package/dist/bundle/{chunk-NUYRMU56.js → chunk-6AXUEJGL.js} +2 -2
- package/dist/bundle/{chunk-N42VUNTO.js → chunk-6RI4TEIC.js} +2 -2
- package/dist/bundle/{chunk-VQPLHOVQ.js → chunk-6ZMTEUVU.js} +6 -6
- package/dist/bundle/{chunk-MQ7MCVZV.js → chunk-76EKXFX2.js} +2 -2
- package/dist/bundle/{chunk-K62YATVD.js → chunk-BNEP5EOV.js} +18 -4
- package/dist/bundle/{chunk-EB2IULWB.js → chunk-BXTDAGM4.js} +2 -2
- package/dist/bundle/{chunk-HBUJNNZD.js → chunk-CEY43D3A.js} +31 -29
- package/dist/bundle/chunk-DKFC5ZZ3.js +208 -0
- package/dist/bundle/{chunk-FDI4GOIP.js → chunk-DSZJREEO.js} +463 -358
- package/dist/bundle/{chunk-76CX2YPT.js → chunk-EPCFXKTX.js} +8 -8
- package/dist/bundle/{chunk-KA6EGOJY.js → chunk-EPXVRJAX.js} +2 -2
- package/dist/bundle/{chunk-4IQZRW4O.js → chunk-EQJ6NLF5.js} +13 -13
- package/dist/bundle/{chunk-4D5AUWAY.js → chunk-FHMK6OK4.js} +43 -25
- package/dist/bundle/{chunk-RSDIPQXP.js → chunk-G3RT2EQI.js} +2 -2
- package/dist/bundle/{chunk-IR4S7POE.js → chunk-GI4MTNA2.js} +8 -8
- package/dist/bundle/{chunk-HK6SIIGG.js → chunk-GIM37COQ.js} +3 -3
- package/dist/bundle/{chunk-UCSFO5GW.js → chunk-GLRRCKP6.js} +3 -3
- package/dist/bundle/{chunk-YYKJN6H5.js → chunk-GXCJ47SJ.js} +1499 -710
- package/dist/bundle/{chunk-GV7ZJ33M.js → chunk-H6S3C3MH.js} +4 -4
- package/dist/bundle/{chunk-LXH3SKY3.js → chunk-HJNRIK5X.js} +8 -8
- package/dist/bundle/{chunk-5VFPUOJO.js → chunk-I4TI5HDJ.js} +11 -11
- package/dist/bundle/{chunk-RSNGMNU5.js → chunk-JLJKGKU2.js} +6 -6
- package/dist/bundle/{chunk-T7CDLV33.js → chunk-JPVFYMSQ.js} +22 -14
- package/dist/bundle/{chunk-B4UOCWM4.js → chunk-JWIUK3SK.js} +2 -2
- package/dist/bundle/{chunk-LSKGCJWD.js → chunk-JWPSVS6C.js} +21246 -4044
- package/dist/bundle/{chunk-JJMQA272.js → chunk-JZETEZHC.js} +8 -21
- package/dist/bundle/{chunk-42GK3XRS.js → chunk-KEDHX6XG.js} +2 -2
- package/dist/bundle/{chunk-QAKL3GXB.js → chunk-MBH7IKLT.js} +1 -1
- package/dist/bundle/{chunk-HLNYJPAB.js → chunk-MZNOASAW.js} +2 -2
- package/dist/bundle/{chunk-YLRTLZF6.js → chunk-NKFTZVQU.js} +1 -1
- package/dist/bundle/{chunk-577MFPCP.js → chunk-NMT2VGEI.js} +3 -3
- package/dist/bundle/{chunk-5ZIBAYIZ.js → chunk-NUCDEOFC.js} +2 -2
- package/dist/bundle/{chunk-NL3PAFAE.js → chunk-OTQDJUES.js} +6 -6
- package/dist/bundle/{chunk-KV4267S4.js → chunk-P3ASN72F.js} +1 -1
- package/dist/bundle/{chunk-TZVL4U7U.js → chunk-PB252TT3.js} +4 -2
- package/dist/bundle/{chunk-HUOXUI2M.js → chunk-PO74BDER.js} +58 -47
- package/dist/bundle/{chunk-LFKEKSI5.js → chunk-PW3HFIJA.js} +523 -239
- package/dist/bundle/{chunk-5FCONCJO.js → chunk-PWCQC56A.js} +1 -1
- package/dist/bundle/{chunk-XBIPSSKI.js → chunk-QOGYHU3Q.js} +4 -4
- package/dist/bundle/{chunk-JFTCOV37.js → chunk-RG2E7ZQZ.js} +180 -25
- package/dist/bundle/{chunk-R52RMHWF.js → chunk-TMTEWOQS.js} +3 -3
- package/dist/bundle/{chunk-I6JF43YP.js → chunk-TSTEZNSX.js} +3 -3
- package/dist/bundle/{chunk-YPF6OS37.js → chunk-VW6BF6M7.js} +1 -1
- package/dist/bundle/{chunk-SKZ2E3WC.js → chunk-Y64SI2RO.js} +47 -1
- package/dist/bundle/{chunk-DP5LRU7K.js → chunk-YEOSV6JC.js} +1 -1
- package/dist/bundle/{chunk-OX6EWGSG.js → chunk-YHZFGUAP.js} +19 -19
- package/dist/bundle/{chunk-N6TIFJHW.js → chunk-YPRUWRKE.js} +1 -1
- package/dist/bundle/{chunk-PPSUA3IZ.js → chunk-ZMUC3UQO.js} +3 -3
- package/dist/bundle/{chunk-PXMHBTK3.js → chunk-ZXXTJF4Z.js} +4 -4
- package/dist/bundle/command-contract-7GZ6HAA6.js +33 -0
- package/dist/bundle/{decode-W6YPTGJA.js → decode-NMNPLKNR.js} +5 -5
- package/dist/bundle/{dispatch-H7EFNBEH.js → dispatch-OP27MWX5.js} +8 -8
- package/dist/bundle/{echarts-YAWDIC5D.js → echarts-S46LEIPS.js} +2 -2
- package/dist/bundle/{embed-EN4UTLV5.js → embed-I5ZYHGYC.js} +6 -6
- package/dist/bundle/{embedder-HEKHRL7E.js → embedder-LTJI67N2.js} +9 -9
- package/dist/bundle/{entry-2KB6MTCG.js → entry-O6BUPXF7.js} +7 -7
- package/dist/bundle/{failure-3DU3HLBQ.js → failure-4JUQFXJT.js} +2 -2
- package/dist/bundle/{first-run-LBG26WWO.js → first-run-PMZNCDGD.js} +11 -11
- package/dist/bundle/first-screen-BGML5DSO.js +31 -0
- package/dist/bundle/{instructions-HA62QNPR.js → instructions-AUEGY3VO.js} +1 -1
- package/dist/bundle/{mcp-PPVOM4SE.js → mcp-M4QN2E7R.js} +2 -2
- package/dist/bundle/{node-MZ2VWSQQ.js → node-XRA7RBCQ.js} +2 -2
- package/dist/bundle/{node-sqlite-KNNS6DCM.js → node-sqlite-DEZO6LRS.js} +6 -6
- package/dist/bundle/{oauth-KWUABBSQ.js → oauth-DAVC7WCD.js} +7 -7
- package/dist/bundle/{open-JXMCYCIV.js → open-DE2YO4T7.js} +5 -5
- package/dist/bundle/{openai-HL3IR4VT.js → openai-5BKGAULH.js} +14 -14
- package/dist/bundle/{process-K2FICLWY.js → process-4ZHPNUIQ.js} +1 -1
- package/dist/bundle/{program-IFOMT4JS.js → program-EGTKSNB4.js} +51 -51
- package/dist/bundle/{prompt-HVD3Q77P.js → prompt-HWCWHHPE.js} +5 -5
- package/dist/bundle/{proxy-transport-PA5SGMRY.js → proxy-transport-4DPZB2W2.js} +5 -5
- package/dist/bundle/{recognize-HHLVETKI.js → recognize-NG6RXNGF.js} +4 -4
- package/dist/bundle/{remote-HUAKXJCS.js → remote-ZKXIIGYH.js} +7 -7
- package/dist/bundle/{rerank-NWFIV7OF.js → rerank-TX5QFURV.js} +7 -7
- package/dist/bundle/{serve-ANUKAJJN.js → serve-XAS6DECW.js} +9 -9
- package/dist/bundle/{server-7Q7WAOHO.js → server-CNPIWBYU.js} +35 -35
- package/dist/bundle/server-FRTKLHZF.js +60 -0
- package/dist/bundle/{state-Y2AJ5XTP.js → state-3HTUETTS.js} +6 -6
- package/dist/bundle/{store-S3IG5KWL.js → store-B5VZWJHN.js} +23 -13
- package/dist/bundle/store-maintenance-command-VG3CLELA.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,54 +1,48 @@
|
|
|
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-65XV5PPI.js";
|
|
17
6
|
import {
|
|
18
7
|
currentCaller,
|
|
19
8
|
endpointTemplate,
|
|
20
9
|
errorDetailOf,
|
|
21
10
|
framesOf,
|
|
22
|
-
isCliFailure,
|
|
23
11
|
keepsSuccess,
|
|
24
12
|
providerErrorKey,
|
|
25
13
|
renderEvent,
|
|
26
14
|
runContextOf
|
|
27
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JZETEZHC.js";
|
|
28
16
|
import {
|
|
29
17
|
permissionCeiling
|
|
30
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZMUC3UQO.js";
|
|
31
19
|
import {
|
|
32
20
|
envName,
|
|
33
21
|
readOnlyLockOf,
|
|
34
22
|
readOnlyRefusal
|
|
35
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-PB252TT3.js";
|
|
36
24
|
import {
|
|
37
25
|
carries
|
|
38
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-YPRUWRKE.js";
|
|
39
27
|
import {
|
|
28
|
+
DEAL_ROLES,
|
|
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,
|
|
45
|
+
STANDINGS,
|
|
52
46
|
TAG_TYPES,
|
|
53
47
|
TASK_KINDS,
|
|
54
48
|
TASK_ORIGINS,
|
|
@@ -56,8 +50,13 @@ import {
|
|
|
56
50
|
TASK_TYPES,
|
|
57
51
|
TASK_VERDICTS,
|
|
58
52
|
WORK_TASK_TYPES,
|
|
53
|
+
author,
|
|
54
|
+
count,
|
|
59
55
|
describeQuery,
|
|
60
56
|
event,
|
|
57
|
+
evidenceSource,
|
|
58
|
+
id,
|
|
59
|
+
markStoreDamaged,
|
|
61
60
|
meeting,
|
|
62
61
|
meetingCounts,
|
|
63
62
|
meetingDetails,
|
|
@@ -70,18 +69,29 @@ import {
|
|
|
70
69
|
meetingSpeaker,
|
|
71
70
|
meetingStats,
|
|
72
71
|
meetingSummary,
|
|
73
|
-
meetingTranscript
|
|
74
|
-
|
|
72
|
+
meetingTranscript,
|
|
73
|
+
organization,
|
|
74
|
+
project,
|
|
75
|
+
providerMetadata,
|
|
76
|
+
reminder,
|
|
77
|
+
text,
|
|
78
|
+
time,
|
|
79
|
+
untrusted
|
|
80
|
+
} from "./chunk-4BV4UMBB.js";
|
|
81
|
+
import {
|
|
82
|
+
isCliFailure,
|
|
83
|
+
storeDamaged
|
|
84
|
+
} from "./chunk-Y64SI2RO.js";
|
|
75
85
|
import {
|
|
76
86
|
sharedConfigPath
|
|
77
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-6ZMTEUVU.js";
|
|
78
88
|
import {
|
|
79
89
|
filesPresent,
|
|
80
90
|
sharedModelsDirectory
|
|
81
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-JPVFYMSQ.js";
|
|
82
92
|
import {
|
|
83
93
|
storePath
|
|
84
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-G3RT2EQI.js";
|
|
85
95
|
import {
|
|
86
96
|
configFilePath,
|
|
87
97
|
createRecordLog,
|
|
@@ -94,7 +104,7 @@ import {
|
|
|
94
104
|
saveConfigFile,
|
|
95
105
|
traceIdOf,
|
|
96
106
|
writeSecurely
|
|
97
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-YHZFGUAP.js";
|
|
98
108
|
import {
|
|
99
109
|
COMPACT_FLAG,
|
|
100
110
|
MAX_NEXT_STEPS,
|
|
@@ -146,18 +156,18 @@ import {
|
|
|
146
156
|
unwrap,
|
|
147
157
|
variant,
|
|
148
158
|
writes
|
|
149
|
-
} from "./chunk-
|
|
159
|
+
} from "./chunk-EPCFXKTX.js";
|
|
150
160
|
import {
|
|
151
161
|
CliError,
|
|
152
162
|
isCliError,
|
|
153
163
|
singleLine,
|
|
154
164
|
visibleControls
|
|
155
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-BXTDAGM4.js";
|
|
156
166
|
import {
|
|
157
167
|
__name
|
|
158
168
|
} from "./chunk-ZVVMGPBJ.js";
|
|
159
169
|
|
|
160
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
170
|
+
// 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
171
|
var labels = /* @__PURE__ */ new WeakMap();
|
|
162
172
|
var annotate = /* @__PURE__ */ __name((command, meta) => {
|
|
163
173
|
labels.set(command, { ...labels.get(command), ...meta });
|
|
@@ -3658,7 +3668,7 @@ __name(useColor, "useColor");
|
|
|
3658
3668
|
// node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
|
|
3659
3669
|
var program = new Command();
|
|
3660
3670
|
|
|
3661
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3671
|
+
// 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
3672
|
import { isDeepStrictEqual } from "node:util";
|
|
3663
3673
|
var protectedCommands = /* @__PURE__ */ new WeakMap();
|
|
3664
3674
|
var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
|
|
@@ -3844,8 +3854,8 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference2, reason, build,
|
|
|
3844
3854
|
}
|
|
3845
3855
|
}, "adopt");
|
|
3846
3856
|
adopt(reference2, command);
|
|
3847
|
-
const
|
|
3848
|
-
if (!Array.isArray(expectedOverrides) || !same(
|
|
3857
|
+
const ordered2 = /* @__PURE__ */ __name((records) => [...records].sort((a, b) => JSON.stringify([a.command, a.field]).localeCompare(JSON.stringify([b.command, b.field]))), "ordered");
|
|
3858
|
+
if (!Array.isArray(expectedOverrides) || !same(ordered2(edits), ordered2(expectedOverrides)))
|
|
3849
3859
|
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
3860
|
for (const { command: own, record: record2 } of pending) {
|
|
3851
3861
|
protectedCommands.set(own, record2);
|
|
@@ -3860,7 +3870,7 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference2, reason, build,
|
|
|
3860
3870
|
return command;
|
|
3861
3871
|
}, "customizeSharedCommand");
|
|
3862
3872
|
|
|
3863
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3873
|
+
// 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
3874
|
var argumentInfoSchema = object({
|
|
3865
3875
|
name: string(),
|
|
3866
3876
|
required: boolean(),
|
|
@@ -3934,7 +3944,7 @@ var commandsDocumentSchema = strictObject({
|
|
|
3934
3944
|
exit_codes: record(string(), pipe(number(), integer()))
|
|
3935
3945
|
});
|
|
3936
3946
|
|
|
3937
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3947
|
+
// 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
3948
|
var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
3939
3949
|
let command = root;
|
|
3940
3950
|
const path2 = [];
|
|
@@ -3952,7 +3962,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3952
3962
|
}
|
|
3953
3963
|
}, "refuseJoinedPath");
|
|
3954
3964
|
|
|
3955
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3965
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
3956
3966
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3957
3967
|
var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
|
|
3958
3968
|
messageId: message2.id,
|
|
@@ -4058,7 +4068,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
4058
4068
|
}, "guardedWrite");
|
|
4059
4069
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
4060
4070
|
|
|
4061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4071
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
4062
4072
|
var named = /* @__PURE__ */ __name((work) => {
|
|
4063
4073
|
try {
|
|
4064
4074
|
return work();
|
|
@@ -4085,7 +4095,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
4085
4095
|
return projectFields(value, fields);
|
|
4086
4096
|
}), "projectFields");
|
|
4087
4097
|
|
|
4088
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4098
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
4089
4099
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
4090
4100
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
4091
4101
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -4268,7 +4278,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4268
4278
|
}
|
|
4269
4279
|
}, "withAbort");
|
|
4270
4280
|
|
|
4271
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
4272
4282
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
4273
4283
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
4274
4284
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -4664,7 +4674,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
4664
4674
|
}
|
|
4665
4675
|
}, "assertRetentionEvidenceRead");
|
|
4666
4676
|
|
|
4667
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
|
|
4668
4678
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
4669
4679
|
import { join } from "node:path";
|
|
4670
4680
|
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
|
|
@@ -4753,7 +4763,7 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
|
|
|
4753
4763
|
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
4764
|
}, "registryProfiles");
|
|
4755
4765
|
|
|
4756
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4766
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
4757
4767
|
import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
4758
4768
|
import { join as join2 } from "node:path";
|
|
4759
4769
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -4775,7 +4785,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4775
4785
|
}, "profilesWithAccounts");
|
|
4776
4786
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4777
4787
|
|
|
4778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4788
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
4779
4789
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
4780
4790
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
4781
4791
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -4811,7 +4821,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
4811
4821
|
return value;
|
|
4812
4822
|
}, "atDetail");
|
|
4813
4823
|
|
|
4814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4824
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/output.js
|
|
4815
4825
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
4816
4826
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
4817
4827
|
if (other)
|
|
@@ -4875,7 +4885,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
|
|
|
4875
4885
|
}, "warn")
|
|
4876
4886
|
}), "silence");
|
|
4877
4887
|
|
|
4878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
4879
4889
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
4880
4890
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
4881
4891
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4909,7 +4919,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4909
4919
|
cache: "cache.answered"
|
|
4910
4920
|
};
|
|
4911
4921
|
|
|
4912
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
4913
4923
|
var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
4914
4924
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
4915
4925
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -4922,13 +4932,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
4922
4932
|
error: /* @__PURE__ */ __name((event2, message2) => logger.error(logAttributes(event2), message2), "error")
|
|
4923
4933
|
}), "snakeLogger");
|
|
4924
4934
|
|
|
4925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4926
4936
|
import { randomUUID } from "node:crypto";
|
|
4927
4937
|
import { appendFileSync, mkdirSync, readdirSync as readdirSync3, readFileSync as readFileSync3, rmSync, statSync, writeFileSync } from "node:fs";
|
|
4928
4938
|
import { userInfo } from "node:os";
|
|
4929
4939
|
import { join as join3, sep } from "node:path";
|
|
4930
4940
|
|
|
4931
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4941
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
4932
4942
|
var diagnostic = {
|
|
4933
4943
|
event: true,
|
|
4934
4944
|
operation: true,
|
|
@@ -4998,7 +5008,7 @@ var LOG_ATTRIBUTES = [
|
|
|
4998
5008
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
4999
5009
|
].sort();
|
|
5000
5010
|
|
|
5001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5011
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
5002
5012
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
5003
5013
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
5004
5014
|
var RUNS_SIZE_LIMIT_MB = 200;
|
|
@@ -5351,7 +5361,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
5351
5361
|
};
|
|
5352
5362
|
}, "metadataOf");
|
|
5353
5363
|
|
|
5354
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5364
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
5355
5365
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
5356
5366
|
import { randomBytes } from "node:crypto";
|
|
5357
5367
|
var scopes = new AsyncLocalStorage2();
|
|
@@ -5389,7 +5399,7 @@ var attempts = new AsyncLocalStorage2();
|
|
|
5389
5399
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
5390
5400
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
5391
5401
|
|
|
5392
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
5393
5403
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
5394
5404
|
const recording = startRecording(options);
|
|
5395
5405
|
try {
|
|
@@ -5480,7 +5490,14 @@ var startRecording = /* @__PURE__ */ __name((options) => {
|
|
|
5480
5490
|
...partial2 ? { partial: partial2 } : {}
|
|
5481
5491
|
});
|
|
5482
5492
|
}, "succeed"),
|
|
5483
|
-
fail: /* @__PURE__ */ __name(async (
|
|
5493
|
+
fail: /* @__PURE__ */ __name(async (thrown) => {
|
|
5494
|
+
const error = storeDamaged(thrown);
|
|
5495
|
+
markStoreDamaged(thrown, {
|
|
5496
|
+
store: storePath(options.env),
|
|
5497
|
+
command: `${options.app.command} ${options.command}`,
|
|
5498
|
+
version: options.app.version,
|
|
5499
|
+
runId
|
|
5500
|
+
});
|
|
5484
5501
|
const failed = run ?? (held ? keep(open({ startedAt })) : void 0);
|
|
5485
5502
|
if (failed) {
|
|
5486
5503
|
if (!isCliFailure(error))
|
|
@@ -5495,8 +5512,8 @@ var startRecording = /* @__PURE__ */ __name((options) => {
|
|
|
5495
5512
|
...run ? {} : { keptBecauseFailed: true }
|
|
5496
5513
|
});
|
|
5497
5514
|
}
|
|
5498
|
-
if (typeof
|
|
5499
|
-
settled.add(
|
|
5515
|
+
if (typeof thrown === "object" && thrown !== null)
|
|
5516
|
+
settled.add(thrown);
|
|
5500
5517
|
}, "fail")
|
|
5501
5518
|
};
|
|
5502
5519
|
}, "startRecording");
|
|
@@ -5574,7 +5591,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
5574
5591
|
return void 0;
|
|
5575
5592
|
}, "partialOutcome");
|
|
5576
5593
|
|
|
5577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5594
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
5578
5595
|
var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
5579
5596
|
if (ms2 === void 0)
|
|
5580
5597
|
return body();
|
|
@@ -5600,7 +5617,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
|
5600
5617
|
}
|
|
5601
5618
|
}, "withDeadline");
|
|
5602
5619
|
|
|
5603
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5620
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
5604
5621
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
5605
5622
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
5606
5623
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -5669,10 +5686,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
5669
5686
|
return void 0;
|
|
5670
5687
|
}, "sampleCommand");
|
|
5671
5688
|
|
|
5672
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5673
5690
|
import { existsSync as existsSync4 } from "node:fs";
|
|
5674
5691
|
|
|
5675
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5692
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
5676
5693
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
5677
5694
|
try {
|
|
5678
5695
|
const url2 = new URL(value);
|
|
@@ -5682,7 +5699,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
|
|
|
5682
5699
|
}
|
|
5683
5700
|
}, "endpoint");
|
|
5684
5701
|
|
|
5685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
5686
5703
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
5687
5704
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
5688
5705
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -5751,7 +5768,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
5751
5768
|
};
|
|
5752
5769
|
}, "modelTarget");
|
|
5753
5770
|
|
|
5754
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5771
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
5755
5772
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
5756
5773
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
5757
5774
|
var AI_FIELDS = {
|
|
@@ -5795,7 +5812,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
5795
5812
|
};
|
|
5796
5813
|
}, "resolveAISettings");
|
|
5797
5814
|
|
|
5798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
5799
5816
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
5800
5817
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
5801
5818
|
var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
@@ -5809,7 +5826,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
|
5809
5826
|
return ms2;
|
|
5810
5827
|
}, "parseDuration");
|
|
5811
5828
|
|
|
5812
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5829
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
5813
5830
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
5814
5831
|
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
5815
5832
|
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
@@ -5968,7 +5985,7 @@ var rerankModel = /* @__PURE__ */ __name((id6) => {
|
|
|
5968
5985
|
var vectorModelKey = /* @__PURE__ */ __name((model3) => `local:${model3.id}:${model3.dims}`, "vectorModelKey");
|
|
5969
5986
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
5970
5987
|
|
|
5971
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5988
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
5972
5989
|
var HISTORY_MAX_DAYS = 1095;
|
|
5973
5990
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
5974
5991
|
var DAY_MS2 = 24 * 60 * 60 * 1e3;
|
|
@@ -6015,10 +6032,10 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
6015
6032
|
return { batch: { ...batch, messages }, skipped };
|
|
6016
6033
|
}, "limitBatch");
|
|
6017
6034
|
|
|
6018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
6019
6036
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
6020
6037
|
|
|
6021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6038
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
|
|
6022
6039
|
var REPAIR_WORDS = {
|
|
6023
6040
|
byte_order_mark: "an invisible byte-order mark at the start",
|
|
6024
6041
|
comment: "a comment, which JSON does not allow",
|
|
@@ -6259,7 +6276,7 @@ ${parts.join(",\n")}
|
|
|
6259
6276
|
${indent}${close}`;
|
|
6260
6277
|
}, "serialise");
|
|
6261
6278
|
|
|
6262
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
6263
6280
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
6264
6281
|
var SECTIONS = ["personal", "bot"];
|
|
6265
6282
|
var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
|
|
@@ -6553,7 +6570,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
6553
6570
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
6554
6571
|
}, "readConfigFile");
|
|
6555
6572
|
|
|
6556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6573
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
6557
6574
|
import { existsSync as existsSync3, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
6558
6575
|
import { dirname, join as join4 } from "node:path";
|
|
6559
6576
|
var DEFAULT_CONFIG = {
|
|
@@ -6582,7 +6599,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
6582
6599
|
}
|
|
6583
6600
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
6584
6601
|
|
|
6585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6602
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
|
|
6586
6603
|
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
6587
6604
|
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
6588
6605
|
const path2 = key.split(".");
|
|
@@ -6604,7 +6621,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
|
|
|
6604
6621
|
return { config, added };
|
|
6605
6622
|
}, "withSettingDefaults");
|
|
6606
6623
|
|
|
6607
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
6608
6625
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
6609
6626
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
6610
6627
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -7114,7 +7131,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
7114
7131
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
7115
7132
|
}, "given");
|
|
7116
7133
|
|
|
7117
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
7118
7135
|
var setExitCode = /* @__PURE__ */ __name((command, code) => {
|
|
7119
7136
|
const slot = environmentOf(command).exit;
|
|
7120
7137
|
if (slot)
|
|
@@ -7127,6 +7144,10 @@ var provide = /* @__PURE__ */ __name((program2, environment) => {
|
|
|
7127
7144
|
environments.set(program2, environment);
|
|
7128
7145
|
}, "provide");
|
|
7129
7146
|
var environmentOf = /* @__PURE__ */ __name((command) => environments.get(rootOf(command)) ?? {}, "environmentOf");
|
|
7147
|
+
var withAgentLevels = /* @__PURE__ */ __name((command, flags) => {
|
|
7148
|
+
const overrides = environmentOf(command).agent?.overrides ?? [];
|
|
7149
|
+
return overrides.length > 0 ? { ...flags, permission: [...overrides, ...flags.permission ?? []] } : flags;
|
|
7150
|
+
}, "withAgentLevels");
|
|
7130
7151
|
var secretInputOf = /* @__PURE__ */ __name((command) => {
|
|
7131
7152
|
const { stdin, stderr } = environmentOf(command);
|
|
7132
7153
|
return { ...stdin ? { input: stdin } : {}, ...stderr ? { output: stderr } : {} };
|
|
@@ -7153,9 +7174,7 @@ var outputFor = /* @__PURE__ */ __name((command) => {
|
|
|
7153
7174
|
var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
|
|
7154
7175
|
const environment = environmentOf(command);
|
|
7155
7176
|
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 });
|
|
7177
|
+
const settings = resolveSettings(withAgentLevels(command, command.optsWithGlobals()), { env });
|
|
7159
7178
|
const { renderer, format, color, streams, compact, full } = resolveOutput({
|
|
7160
7179
|
...settings,
|
|
7161
7180
|
env,
|
|
@@ -7220,6 +7239,13 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
|
|
|
7220
7239
|
}, "track")
|
|
7221
7240
|
};
|
|
7222
7241
|
}, "baseContext");
|
|
7242
|
+
var inCommandRun = /* @__PURE__ */ __name((command, body) => {
|
|
7243
|
+
const { resolveSettings } = environmentOf(command);
|
|
7244
|
+
if (!resolveSettings)
|
|
7245
|
+
return body(() => {
|
|
7246
|
+
});
|
|
7247
|
+
return baseContext(command, (flags, options) => resolveSettings(flags, { ...options, needsProfile: false })).run(body);
|
|
7248
|
+
}, "inCommandRun");
|
|
7223
7249
|
var commandPath = /* @__PURE__ */ __name((command) => {
|
|
7224
7250
|
const words = [];
|
|
7225
7251
|
for (let current2 = command; current2?.parent; current2 = current2.parent)
|
|
@@ -7227,7 +7253,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
7227
7253
|
return words.join(" ");
|
|
7228
7254
|
}, "commandPath");
|
|
7229
7255
|
|
|
7230
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7256
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
7231
7257
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
7232
7258
|
var FETCH = { remote: "read", local: "write" };
|
|
7233
7259
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -7290,6 +7316,14 @@ var fetchesOnly = /* @__PURE__ */ __name((command) => {
|
|
|
7290
7316
|
return effects?.remote === "read" && effects.local === "write" && !STORE_WRITES.has(command) && !changesAuthority(command) && !OTHER_SERVICE.has(command) && !savesFiles(command);
|
|
7291
7317
|
}, "fetchesOnly");
|
|
7292
7318
|
var FILE_OPTION = /* @__PURE__ */ new WeakMap();
|
|
7319
|
+
var writesFileOnlyWith = /* @__PURE__ */ __name((command, option) => {
|
|
7320
|
+
const flag2 = command.options.find((one) => one.attributeName() === option);
|
|
7321
|
+
if (!flag2 || optionMetaOf(flag2).mcp !== false)
|
|
7322
|
+
throw new Error(`${command.name()}: writesFileOnlyWith needs --${option} added first, as an owner-only option`);
|
|
7323
|
+
FILE_OPTION.set(command, option);
|
|
7324
|
+
return command;
|
|
7325
|
+
}, "writesFileOnlyWith");
|
|
7326
|
+
var writesNewFileOnlyWith = /* @__PURE__ */ __name((command, option) => destroysNothing(writesFileOnlyWith(command, option)), "writesNewFileOnlyWith");
|
|
7293
7327
|
var writesFileNow = /* @__PURE__ */ __name((command) => {
|
|
7294
7328
|
const option = FILE_OPTION.get(command);
|
|
7295
7329
|
return option === void 0 || command.opts()[option] !== void 0;
|
|
@@ -7351,7 +7385,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
7351
7385
|
throw readOnlyRefusal(lock, what);
|
|
7352
7386
|
}, "refuseUnderReadOnly");
|
|
7353
7387
|
|
|
7354
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7388
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/account.js
|
|
7355
7389
|
var account = strictObject({
|
|
7356
7390
|
provider: text,
|
|
7357
7391
|
id,
|
|
@@ -7361,7 +7395,7 @@ var account = strictObject({
|
|
|
7361
7395
|
scope: optional(picklist(["personal", "work"]))
|
|
7362
7396
|
});
|
|
7363
7397
|
|
|
7364
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/account-session.js
|
|
7365
7399
|
var accountSession = strictObject({
|
|
7366
7400
|
current: boolean(),
|
|
7367
7401
|
client: nullable(text),
|
|
@@ -7371,7 +7405,7 @@ var accountSession = strictObject({
|
|
|
7371
7405
|
created_at: optional(nullable(time))
|
|
7372
7406
|
});
|
|
7373
7407
|
|
|
7374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7408
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/account-change.js
|
|
7375
7409
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
7376
7410
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
7377
7411
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -7389,7 +7423,7 @@ var accountPrivacy = strictObject({
|
|
|
7389
7423
|
});
|
|
7390
7424
|
var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
|
|
7391
7425
|
|
|
7392
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
|
|
7393
7427
|
var accountProfile = strictObject({
|
|
7394
7428
|
profile: id,
|
|
7395
7429
|
current: boolean(),
|
|
@@ -7401,7 +7435,7 @@ var accountProfile = strictObject({
|
|
|
7401
7435
|
bot: optional(literal(true))
|
|
7402
7436
|
});
|
|
7403
7437
|
|
|
7404
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7438
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
|
|
7405
7439
|
var milliseconds = pipe(number(), minValue(0));
|
|
7406
7440
|
var counterReading = strictObject({
|
|
7407
7441
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -7413,7 +7447,7 @@ var counterReading = strictObject({
|
|
|
7413
7447
|
});
|
|
7414
7448
|
var selection = record(string(), unknown());
|
|
7415
7449
|
|
|
7416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7450
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
|
|
7417
7451
|
var adminRow = strictObject({
|
|
7418
7452
|
ref: reference,
|
|
7419
7453
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -7466,7 +7500,7 @@ var adminReport = strictObject({
|
|
|
7466
7500
|
rows: array(adminRow)
|
|
7467
7501
|
});
|
|
7468
7502
|
|
|
7469
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
7470
7504
|
var closeSuggestion = strictObject({
|
|
7471
7505
|
as: picklist(["done", "dismissed"]),
|
|
7472
7506
|
/** The agent's name. */
|
|
@@ -7497,6 +7531,10 @@ var task = strictObject({
|
|
|
7497
7531
|
chat: optional(nullable(reference)),
|
|
7498
7532
|
/** The message it came from. */
|
|
7499
7533
|
source_message: optional(nullable(reference)),
|
|
7534
|
+
/** `<service>:<id>`, its id in an outside service, such as `avito:4512345678`. */
|
|
7535
|
+
external_id: optional(nullable(text)),
|
|
7536
|
+
/** The http or https page it is about, such as an Avito ad. */
|
|
7537
|
+
source_url: optional(nullable(text)),
|
|
7500
7538
|
/** 0 to 1, higher first; `priority_label` reads it as low, medium, high or critical. */
|
|
7501
7539
|
priority: optional(nullable(number())),
|
|
7502
7540
|
priority_label: optional(nullable(picklist(PRIORITY_LABELS))),
|
|
@@ -7524,7 +7562,7 @@ var task = strictObject({
|
|
|
7524
7562
|
updated_at: optional(time)
|
|
7525
7563
|
});
|
|
7526
7564
|
|
|
7527
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7565
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
7528
7566
|
var agendaChat = strictObject({
|
|
7529
7567
|
chat: reference,
|
|
7530
7568
|
title: nullable(text),
|
|
@@ -7594,11 +7632,11 @@ var agenda = strictObject({
|
|
|
7594
7632
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
7595
7633
|
});
|
|
7596
7634
|
|
|
7597
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
|
|
7598
7636
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
7599
7637
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
7600
7638
|
|
|
7601
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7639
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
7602
7640
|
var attachment = strictObject({
|
|
7603
7641
|
/** The message it came with, as a locator; absent inside that message. */
|
|
7604
7642
|
message: optional(reference),
|
|
@@ -7636,7 +7674,7 @@ var attachment = strictObject({
|
|
|
7636
7674
|
});
|
|
7637
7675
|
var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
|
|
7638
7676
|
|
|
7639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
|
|
7640
7678
|
var actionableError = objectWithRest({
|
|
7641
7679
|
code: text,
|
|
7642
7680
|
message: text,
|
|
@@ -7653,7 +7691,7 @@ var batchResult = strictObject({
|
|
|
7653
7691
|
max_error_percent: count
|
|
7654
7692
|
});
|
|
7655
7693
|
|
|
7656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7694
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
|
|
7657
7695
|
var extractionItem = strictObject({
|
|
7658
7696
|
ref: reference,
|
|
7659
7697
|
attachment: count,
|
|
@@ -7686,7 +7724,7 @@ var extractionReport = strictObject({
|
|
|
7686
7724
|
cursor: optional(text)
|
|
7687
7725
|
});
|
|
7688
7726
|
|
|
7689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7727
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
|
|
7690
7728
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
7691
7729
|
var attachmentBytes = strictObject({
|
|
7692
7730
|
ref: reference,
|
|
@@ -7714,7 +7752,7 @@ var attachmentTextChange = strictObject({
|
|
|
7714
7752
|
replaced: nullable(picklist(["extracted", "agent"]))
|
|
7715
7753
|
});
|
|
7716
7754
|
|
|
7717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/chart.js
|
|
7718
7756
|
var chart = strictObject({
|
|
7719
7757
|
version: literal(1),
|
|
7720
7758
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -7729,7 +7767,7 @@ var chart = strictObject({
|
|
|
7729
7767
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
7730
7768
|
});
|
|
7731
7769
|
|
|
7732
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7770
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/member.js
|
|
7733
7771
|
var member = strictObject({
|
|
7734
7772
|
id,
|
|
7735
7773
|
name: nullable(text),
|
|
@@ -7752,7 +7790,7 @@ var member = strictObject({
|
|
|
7752
7790
|
check: optional(record(string(), unknown()))
|
|
7753
7791
|
});
|
|
7754
7792
|
|
|
7755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7793
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/chat.js
|
|
7756
7794
|
var setting = optional(nullable(boolean()));
|
|
7757
7795
|
var chat = strictObject({
|
|
7758
7796
|
ref: reference,
|
|
@@ -7793,7 +7831,7 @@ var chat = strictObject({
|
|
|
7793
7831
|
members: optional(array(member))
|
|
7794
7832
|
});
|
|
7795
7833
|
|
|
7796
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7834
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/folder.js
|
|
7797
7835
|
var named2 = strictObject({
|
|
7798
7836
|
id,
|
|
7799
7837
|
title: nullable(text),
|
|
@@ -7816,7 +7854,7 @@ var folder = strictObject({
|
|
|
7816
7854
|
excluded_chats: optional(array(named2))
|
|
7817
7855
|
});
|
|
7818
7856
|
|
|
7819
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7857
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
|
|
7820
7858
|
var inviteLink = strictObject({
|
|
7821
7859
|
link: text,
|
|
7822
7860
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -7832,7 +7870,7 @@ var inviteLink = strictObject({
|
|
|
7832
7870
|
joined_count: optional(count)
|
|
7833
7871
|
});
|
|
7834
7872
|
|
|
7835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7873
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
|
|
7836
7874
|
var operated = { operation_id: id, chat_id: id };
|
|
7837
7875
|
var group = strictObject({
|
|
7838
7876
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -7912,7 +7950,7 @@ var chatFolderOrder = strictObject({
|
|
|
7912
7950
|
folders: array(strictObject({ id, title: text }))
|
|
7913
7951
|
});
|
|
7914
7952
|
|
|
7915
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
|
|
7916
7954
|
var operated2 = { operation_id: id, chat_id: id };
|
|
7917
7955
|
var chatRemoval = strictObject(operated2);
|
|
7918
7956
|
var chatMuting = strictObject({
|
|
@@ -7923,7 +7961,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
7923
7961
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
7924
7962
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
7925
7963
|
|
|
7926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7964
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
|
|
7927
7965
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
7928
7966
|
var chatEvent = strictObject({
|
|
7929
7967
|
chat_id: id,
|
|
@@ -7940,7 +7978,7 @@ var chatEvent = strictObject({
|
|
|
7940
7978
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
7941
7979
|
});
|
|
7942
7980
|
|
|
7943
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7981
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
|
|
7944
7982
|
var chatMetadata = strictObject({
|
|
7945
7983
|
chat_id: id,
|
|
7946
7984
|
title: nullable(text),
|
|
@@ -7955,7 +7993,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
7955
7993
|
has_more: boolean()
|
|
7956
7994
|
});
|
|
7957
7995
|
|
|
7958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
|
|
7959
7997
|
var action = picklist(["report", "delete", "remove"]);
|
|
7960
7998
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
7961
7999
|
var chatRules = strictObject({
|
|
@@ -7992,7 +8030,7 @@ var chatModeration = strictObject({
|
|
|
7992
8030
|
}))
|
|
7993
8031
|
});
|
|
7994
8032
|
|
|
7995
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8033
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
|
|
7996
8034
|
var optionalCount = optional(count);
|
|
7997
8035
|
var minutes = nullable(number());
|
|
7998
8036
|
var chatStats = strictObject({
|
|
@@ -8066,7 +8104,7 @@ var taskStats = strictObject({
|
|
|
8066
8104
|
}))
|
|
8067
8105
|
});
|
|
8068
8106
|
|
|
8069
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8107
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
|
|
8070
8108
|
var memberCount = strictObject({
|
|
8071
8109
|
day: pipe(text, isoDate()),
|
|
8072
8110
|
participants: nullable(count),
|
|
@@ -8089,7 +8127,7 @@ var chatTracking = strictObject({
|
|
|
8089
8127
|
tracked: boolean()
|
|
8090
8128
|
});
|
|
8091
8129
|
|
|
8092
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8130
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
8093
8131
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
8094
8132
|
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
8095
8133
|
var profileFields = {
|
|
@@ -8127,7 +8165,7 @@ var profileFields = {
|
|
|
8127
8165
|
}))
|
|
8128
8166
|
};
|
|
8129
8167
|
|
|
8130
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8168
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
8131
8169
|
var contact = strictObject({
|
|
8132
8170
|
ref: reference,
|
|
8133
8171
|
id,
|
|
@@ -8158,7 +8196,7 @@ var contact = strictObject({
|
|
|
8158
8196
|
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
8159
8197
|
});
|
|
8160
8198
|
|
|
8161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8199
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
8162
8200
|
var WEIGHTS = {
|
|
8163
8201
|
bot: 3,
|
|
8164
8202
|
scam: 3,
|
|
@@ -8183,7 +8221,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
8183
8221
|
var DIGITS = /\d{5,}/;
|
|
8184
8222
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
8185
8223
|
|
|
8186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
8187
8225
|
var linkedIdentity = strictObject({
|
|
8188
8226
|
provider: text,
|
|
8189
8227
|
id,
|
|
@@ -8191,6 +8229,7 @@ var linkedIdentity = strictObject({
|
|
|
8191
8229
|
username: nullable(text),
|
|
8192
8230
|
is_bot: nullable(boolean()),
|
|
8193
8231
|
accounts: array(id),
|
|
8232
|
+
seen_in: array(strictObject({ account: id, scope: picklist(["personal", "work"]) })),
|
|
8194
8233
|
method: text,
|
|
8195
8234
|
linked_by: text,
|
|
8196
8235
|
linked_at: time
|
|
@@ -8224,7 +8263,7 @@ var contactCheck = strictObject({
|
|
|
8224
8263
|
checked_at: time
|
|
8225
8264
|
});
|
|
8226
8265
|
|
|
8227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8266
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
8228
8267
|
var quoted = strictObject({
|
|
8229
8268
|
id,
|
|
8230
8269
|
sender_id: nullable(id),
|
|
@@ -8343,7 +8382,7 @@ var message = strictObject({
|
|
|
8343
8382
|
provider_metadata: providerMetadata
|
|
8344
8383
|
});
|
|
8345
8384
|
|
|
8346
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8385
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
8347
8386
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
8348
8387
|
var contextMessage = strictObject({
|
|
8349
8388
|
locator: reference,
|
|
@@ -8377,6 +8416,8 @@ var contextEvent = strictObject({
|
|
|
8377
8416
|
});
|
|
8378
8417
|
var context = strictObject({
|
|
8379
8418
|
person: contextPerson,
|
|
8419
|
+
/** The accounts read: only those of the scopes the caller may read. */
|
|
8420
|
+
accounts: array(strictObject({ provider: text, account: id, scope: picklist(["personal", "work"]) })),
|
|
8380
8421
|
shared: array(sharedChat),
|
|
8381
8422
|
last: strictObject({
|
|
8382
8423
|
from_them: nullable(contextMessage),
|
|
@@ -8541,7 +8582,7 @@ var contactPreparation = strictObject({
|
|
|
8541
8582
|
})
|
|
8542
8583
|
});
|
|
8543
8584
|
|
|
8544
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8585
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
|
|
8545
8586
|
var contactNote = strictObject({
|
|
8546
8587
|
id,
|
|
8547
8588
|
/** The contact, as a `contact:` reference. */
|
|
@@ -8553,13 +8594,13 @@ var contactNote = strictObject({
|
|
|
8553
8594
|
updated_at: time
|
|
8554
8595
|
});
|
|
8555
8596
|
|
|
8556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8597
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
|
|
8557
8598
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
8558
8599
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
8559
8600
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
8560
8601
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
8561
8602
|
|
|
8562
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
8563
8604
|
var conversation = strictObject({
|
|
8564
8605
|
id,
|
|
8565
8606
|
chat: reference,
|
|
@@ -8574,7 +8615,7 @@ var conversation = strictObject({
|
|
|
8574
8615
|
rules_version: count
|
|
8575
8616
|
});
|
|
8576
8617
|
|
|
8577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8618
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
|
|
8578
8619
|
var conversationBuild = strictObject({
|
|
8579
8620
|
chat: id,
|
|
8580
8621
|
messages: count,
|
|
@@ -8599,7 +8640,7 @@ var catchUpPreparation = strictObject({
|
|
|
8599
8640
|
prepared: optional(conversationPreparation)
|
|
8600
8641
|
});
|
|
8601
8642
|
|
|
8602
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8643
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
|
|
8603
8644
|
var conversationDetails = union([
|
|
8604
8645
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
8605
8646
|
message
|
|
@@ -8689,7 +8730,7 @@ var conversationHit = strictObject({
|
|
|
8689
8730
|
stale: boolean()
|
|
8690
8731
|
});
|
|
8691
8732
|
|
|
8692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8733
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/counters.js
|
|
8693
8734
|
var counters = strictObject({
|
|
8694
8735
|
cutoff: time,
|
|
8695
8736
|
max_age_ms: milliseconds,
|
|
@@ -8719,7 +8760,97 @@ var counterRefresh = strictObject({
|
|
|
8719
8760
|
complete: optional(boolean())
|
|
8720
8761
|
});
|
|
8721
8762
|
|
|
8722
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/deal.js
|
|
8764
|
+
var nullableText = nullable(text);
|
|
8765
|
+
var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
|
|
8766
|
+
var outcome = picklist(["open", "won", "lost"]);
|
|
8767
|
+
var crmAccount = nullable(strictObject({ provider: text, account: text }));
|
|
8768
|
+
var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
|
|
8769
|
+
var deal = strictObject({
|
|
8770
|
+
id,
|
|
8771
|
+
ref: reference,
|
|
8772
|
+
kind: picklist(["deal", "lead"]),
|
|
8773
|
+
title: text,
|
|
8774
|
+
/** One line with the stage, amount and status. */
|
|
8775
|
+
summary: text,
|
|
8776
|
+
pipeline: reference,
|
|
8777
|
+
pipeline_name: text,
|
|
8778
|
+
stage: text,
|
|
8779
|
+
status: outcome,
|
|
8780
|
+
organization: nullable(party),
|
|
8781
|
+
currency: nullableText,
|
|
8782
|
+
amount: nullableText,
|
|
8783
|
+
close_date: day2,
|
|
8784
|
+
closed_date: day2,
|
|
8785
|
+
closed_reason: nullableText,
|
|
8786
|
+
rank: nullable(number()),
|
|
8787
|
+
/** A lead's deal, once it became one. */
|
|
8788
|
+
deal: nullable(reference),
|
|
8789
|
+
/** The CRM account it is a copy from; `null` for the owner's own. */
|
|
8790
|
+
account: crmAccount,
|
|
8791
|
+
external_id: nullableText,
|
|
8792
|
+
/** A CRM copy's assignee, the identity `<account>/user/<id>`. */
|
|
8793
|
+
assignee: nullableText,
|
|
8794
|
+
/** A CRM copy's own fields by code; a list field's value is its option's label, `option_id` its id. */
|
|
8795
|
+
provider_metadata: record(string(), strictObject({
|
|
8796
|
+
label: nullable(string()),
|
|
8797
|
+
value: unknown(),
|
|
8798
|
+
option_id: optional(union([string(), array(string())]))
|
|
8799
|
+
})),
|
|
8800
|
+
people: array(strictObject({ ...party.entries, role: picklist(DEAL_ROLES) })),
|
|
8801
|
+
author: strictObject({
|
|
8802
|
+
type: picklist(["person", "bot"]),
|
|
8803
|
+
id,
|
|
8804
|
+
name: nullableText,
|
|
8805
|
+
kind: nullable(picklist(["agent", "rule"]))
|
|
8806
|
+
}),
|
|
8807
|
+
model: nullableText,
|
|
8808
|
+
source: text,
|
|
8809
|
+
reason: nullableText,
|
|
8810
|
+
evidence: array(reference),
|
|
8811
|
+
project: nullable(reference),
|
|
8812
|
+
project_name: nullableText,
|
|
8813
|
+
created_at: time,
|
|
8814
|
+
updated_at: time,
|
|
8815
|
+
untrusted
|
|
8816
|
+
});
|
|
8817
|
+
var lead = deal;
|
|
8818
|
+
var pipelineStage = strictObject({
|
|
8819
|
+
name: text,
|
|
8820
|
+
position: count,
|
|
8821
|
+
outcome,
|
|
8822
|
+
external_id: nullableText,
|
|
8823
|
+
/** Open deals or leads in it now. */
|
|
8824
|
+
open: count,
|
|
8825
|
+
/** With a funnel: rows that got this far, and the share of them that reached the next stage. */
|
|
8826
|
+
reached: optional(count),
|
|
8827
|
+
conversion: optional(nullable(number())),
|
|
8828
|
+
/** With a funnel: rows standing in it now, and their sum per currency, never converted. */
|
|
8829
|
+
items: optional(count),
|
|
8830
|
+
amounts: optional(array(strictObject({ amount: text, currency: text, items: count })))
|
|
8831
|
+
});
|
|
8832
|
+
var pipeline = strictObject({
|
|
8833
|
+
id,
|
|
8834
|
+
ref: reference,
|
|
8835
|
+
name: text,
|
|
8836
|
+
kind: picklist(["deal", "lead"]),
|
|
8837
|
+
account: crmAccount,
|
|
8838
|
+
external_id: nullableText,
|
|
8839
|
+
stages: array(pipelineStage),
|
|
8840
|
+
created_at: time,
|
|
8841
|
+
totals: optional(strictObject({ items: count, open: count, won: count, lost: count, win_rate: nullable(number()) })),
|
|
8842
|
+
since: optional(day2),
|
|
8843
|
+
untrusted
|
|
8844
|
+
});
|
|
8845
|
+
var stage = strictObject({
|
|
8846
|
+
...pipelineStage.entries,
|
|
8847
|
+
pipeline: reference,
|
|
8848
|
+
pipeline_name: text,
|
|
8849
|
+
kind: picklist(["deal", "lead"]),
|
|
8850
|
+
untrusted
|
|
8851
|
+
});
|
|
8852
|
+
|
|
8853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
8723
8854
|
var document = strictObject({
|
|
8724
8855
|
ref: reference,
|
|
8725
8856
|
id,
|
|
@@ -8734,7 +8865,7 @@ var document = strictObject({
|
|
|
8734
8865
|
owners: optional(array(text))
|
|
8735
8866
|
});
|
|
8736
8867
|
|
|
8737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/document-link.js
|
|
8738
8869
|
var documentLink = strictObject({
|
|
8739
8870
|
ref: reference,
|
|
8740
8871
|
url: text,
|
|
@@ -8745,7 +8876,7 @@ var documentLink = strictObject({
|
|
|
8745
8876
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
8746
8877
|
});
|
|
8747
8878
|
|
|
8748
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8879
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/evidence.js
|
|
8749
8880
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
8750
8881
|
var contribution = strictObject({
|
|
8751
8882
|
message: evidenceMessage,
|
|
@@ -8775,7 +8906,7 @@ var retentionStay = strictObject({
|
|
|
8775
8906
|
});
|
|
8776
8907
|
var evidence = union([contribution, retentionStay]);
|
|
8777
8908
|
|
|
8778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8909
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/fact.js
|
|
8779
8910
|
var fact = strictObject({
|
|
8780
8911
|
ref: reference,
|
|
8781
8912
|
id,
|
|
@@ -8805,9 +8936,9 @@ var fact = strictObject({
|
|
|
8805
8936
|
updated_at: time
|
|
8806
8937
|
});
|
|
8807
8938
|
|
|
8808
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8939
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/hit.js
|
|
8809
8940
|
var hit = strictObject({
|
|
8810
|
-
kind: picklist(["message", "mail", "note", "document", "event", "meeting"]),
|
|
8941
|
+
kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead"]),
|
|
8811
8942
|
ref: reference,
|
|
8812
8943
|
provider: text,
|
|
8813
8944
|
url: optional(text),
|
|
@@ -8843,7 +8974,7 @@ var hit = strictObject({
|
|
|
8843
8974
|
untrusted
|
|
8844
8975
|
});
|
|
8845
8976
|
|
|
8846
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8977
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/identity.js
|
|
8847
8978
|
var identity = strictObject({
|
|
8848
8979
|
ref: reference,
|
|
8849
8980
|
provider: text,
|
|
@@ -8856,7 +8987,7 @@ var identity = strictObject({
|
|
|
8856
8987
|
person: optional(nullable(reference))
|
|
8857
8988
|
});
|
|
8858
8989
|
|
|
8859
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
|
|
8860
8991
|
var imageEmbedding = strictObject({
|
|
8861
8992
|
model: text,
|
|
8862
8993
|
embedded: count,
|
|
@@ -8865,13 +8996,13 @@ var imageEmbedding = strictObject({
|
|
|
8865
8996
|
more: boolean()
|
|
8866
8997
|
});
|
|
8867
8998
|
|
|
8868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8869
9000
|
import { spawn } from "node:child_process";
|
|
8870
9001
|
import { randomBytes as randomBytes2 } from "node:crypto";
|
|
8871
9002
|
import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync3, openSync, readdirSync as readdirSync4, readFileSync as readFileSync5, realpathSync, rmSync as rmSync3 } from "node:fs";
|
|
8872
9003
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
8873
9004
|
|
|
8874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
8875
9006
|
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
8876
9007
|
const total = input.total ?? null;
|
|
8877
9008
|
const updated = input.updatedAt ?? null;
|
|
@@ -8887,7 +9018,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
8887
9018
|
};
|
|
8888
9019
|
}, "progressOf");
|
|
8889
9020
|
|
|
8890
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
8891
9022
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
8892
9023
|
const run = currentRun();
|
|
8893
9024
|
const trace = traceId ?? run.traceId;
|
|
@@ -8901,7 +9032,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
8901
9032
|
}));
|
|
8902
9033
|
}, "recordLogFor");
|
|
8903
9034
|
|
|
8904
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8905
9036
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
8906
9037
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
8907
9038
|
const out = openSync(log, "a", 384);
|
|
@@ -8951,11 +9082,11 @@ var finishJob = /* @__PURE__ */ __name((app, dir, id6, change) => {
|
|
|
8951
9082
|
const job2 = readJob(dir, id6);
|
|
8952
9083
|
if (!job2)
|
|
8953
9084
|
return;
|
|
8954
|
-
const
|
|
9085
|
+
const outcome4 = stateOf(job2);
|
|
8955
9086
|
recordLogFor(recordsPath(dir, id6), app, job2.traceId ? { traceId: job2.traceId } : {})[job2.error ? "error" : "info"]({
|
|
8956
9087
|
event: "job.exit",
|
|
8957
9088
|
job: id6,
|
|
8958
|
-
outcome:
|
|
9089
|
+
outcome: outcome4,
|
|
8959
9090
|
...job2.error ? { errorCode: job2.error.code } : {}
|
|
8960
9091
|
});
|
|
8961
9092
|
}, "finishJob");
|
|
@@ -9056,7 +9187,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
9056
9187
|
return { job: id6, pid, chat: input.chat, log };
|
|
9057
9188
|
}, "startArchiveJob");
|
|
9058
9189
|
|
|
9059
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/job.js
|
|
9060
9191
|
var problem = strictObject({ code: text, message: text });
|
|
9061
9192
|
var job = strictObject({
|
|
9062
9193
|
id,
|
|
@@ -9079,7 +9210,7 @@ var job = strictObject({
|
|
|
9079
9210
|
error: optional(problem)
|
|
9080
9211
|
});
|
|
9081
9212
|
|
|
9082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9213
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/join-request.js
|
|
9083
9214
|
var joinRequest = strictObject({
|
|
9084
9215
|
person_id: id,
|
|
9085
9216
|
name: nullable(text),
|
|
@@ -9090,7 +9221,7 @@ var joinRequest = strictObject({
|
|
|
9090
9221
|
about: optional(text)
|
|
9091
9222
|
});
|
|
9092
9223
|
|
|
9093
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/list-results.js
|
|
9094
9225
|
var botProfile = strictObject({
|
|
9095
9226
|
name: text,
|
|
9096
9227
|
token: text,
|
|
@@ -9121,6 +9252,10 @@ var scheduledJob = strictObject({
|
|
|
9121
9252
|
name: text,
|
|
9122
9253
|
kind: picklist(["command", "agent"]),
|
|
9123
9254
|
when: text,
|
|
9255
|
+
/** When a finished run shows a desktop notice: `always`, `failures` or `never`; the default is shown, not left out. */
|
|
9256
|
+
notify: optional(picklist(["always", "failures", "never"])),
|
|
9257
|
+
/** Where a run's result is sent after it: `telegram-bot:<profile>/<chat>` or `email:<profile>/<address>`. */
|
|
9258
|
+
deliver_to: optional(array(text)),
|
|
9124
9259
|
last: nullable(strictObject({
|
|
9125
9260
|
at: time,
|
|
9126
9261
|
exit_code: number(),
|
|
@@ -9129,8 +9264,29 @@ var scheduledJob = strictObject({
|
|
|
9129
9264
|
reason: optional(text),
|
|
9130
9265
|
error_code: optional(text),
|
|
9131
9266
|
failing_since: optional(time),
|
|
9132
|
-
failures: optional(number())
|
|
9133
|
-
|
|
9267
|
+
failures: optional(number()),
|
|
9268
|
+
cost_usd: optional(number()),
|
|
9269
|
+
/** The last time a run did not start, and why: the day's cost cap, or too little new mail. */
|
|
9270
|
+
skipped: optional(strictObject({
|
|
9271
|
+
at: time,
|
|
9272
|
+
why: text,
|
|
9273
|
+
/** A dotted id for `why`, so a client can translate it: `cost.day-cap`, `mail.none-new`, `mail.below-threshold`. */
|
|
9274
|
+
reason: optional(pipe(text, regex(/^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)+$/)))
|
|
9275
|
+
})),
|
|
9276
|
+
/** How the run's result went along each route; `reason` a dotted id, `error` the sending CLI's code and reason id. */
|
|
9277
|
+
deliveries: optional(array(strictObject({
|
|
9278
|
+
to: text,
|
|
9279
|
+
ok: boolean(),
|
|
9280
|
+
reason: optional(pipe(text, regex(/^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)+$/))),
|
|
9281
|
+
error: optional(text)
|
|
9282
|
+
})))
|
|
9283
|
+
})),
|
|
9284
|
+
/** Agent schedules: what today's runs cost, in US dollars. */
|
|
9285
|
+
spent_today_usd: optional(number()),
|
|
9286
|
+
/** Agent schedules: the cap on one run (`--max-cost`), null when none. */
|
|
9287
|
+
max_cost_usd: optional(nullable(number())),
|
|
9288
|
+
/** Agent schedules: the daily cap in force, the schedule's `--max-cost-per-day` or the config's; 0 for none. */
|
|
9289
|
+
max_cost_per_day_usd: optional(number())
|
|
9134
9290
|
});
|
|
9135
9291
|
var botTemplate = strictObject({
|
|
9136
9292
|
name: nullable(text),
|
|
@@ -9158,7 +9314,7 @@ var stickerInventory = strictObject({
|
|
|
9158
9314
|
url: optional(nullable(text))
|
|
9159
9315
|
});
|
|
9160
9316
|
|
|
9161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9317
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
|
|
9162
9318
|
var pollVote = strictObject({
|
|
9163
9319
|
person_id: id,
|
|
9164
9320
|
name: nullable(text),
|
|
@@ -9168,7 +9324,7 @@ var pollVote = strictObject({
|
|
|
9168
9324
|
voted_at: time
|
|
9169
9325
|
});
|
|
9170
9326
|
|
|
9171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/listener.js
|
|
9172
9328
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
9173
9329
|
var observation = strictObject({
|
|
9174
9330
|
value: pipe(number(), minValue(0)),
|
|
@@ -9210,7 +9366,7 @@ var serveSummary = strictObject({
|
|
|
9210
9366
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
9211
9367
|
});
|
|
9212
9368
|
|
|
9213
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
|
|
9214
9370
|
var mailCounts = strictObject({
|
|
9215
9371
|
by: picklist(["day", "week", "sender"]),
|
|
9216
9372
|
received: count,
|
|
@@ -9225,7 +9381,7 @@ var mailCounts = strictObject({
|
|
|
9225
9381
|
}))
|
|
9226
9382
|
});
|
|
9227
9383
|
|
|
9228
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9384
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
|
|
9229
9385
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
9230
9386
|
var base = { id, evidence: array(evidence2) };
|
|
9231
9387
|
var finding = variant("kind", [
|
|
@@ -9240,7 +9396,11 @@ var finding = variant("kind", [
|
|
|
9240
9396
|
due_at: optional(time),
|
|
9241
9397
|
due_evidence: optional(array(reference)),
|
|
9242
9398
|
assignee: optional(reference),
|
|
9243
|
-
assignee_evidence: optional(array(reference))
|
|
9399
|
+
assignee_evidence: optional(array(reference)),
|
|
9400
|
+
/** `<service>:<id>` in the outside service the mail came from, such as `avito:4512345678`. */
|
|
9401
|
+
external_id: optional(text),
|
|
9402
|
+
/** The http or https page the task is about, such as the conversation the mail links to. */
|
|
9403
|
+
source_url: optional(text)
|
|
9244
9404
|
}),
|
|
9245
9405
|
strictObject({
|
|
9246
9406
|
...base,
|
|
@@ -9248,7 +9408,9 @@ var finding = variant("kind", [
|
|
|
9248
9408
|
project: optional(reference),
|
|
9249
9409
|
subject: optional(reference),
|
|
9250
9410
|
type: picklist(FACT_TYPES),
|
|
9251
|
-
statement: text
|
|
9411
|
+
statement: text,
|
|
9412
|
+
/** Every new finding gives one; a batch staged before reason was needed on every kind has none. */
|
|
9413
|
+
reason: optional(text)
|
|
9252
9414
|
}),
|
|
9253
9415
|
strictObject({
|
|
9254
9416
|
...base,
|
|
@@ -9266,12 +9428,84 @@ var finding = variant("kind", [
|
|
|
9266
9428
|
scope: picklist(MEMORY_SCOPES),
|
|
9267
9429
|
body: text,
|
|
9268
9430
|
subject: optional(reference),
|
|
9269
|
-
project: optional(reference)
|
|
9431
|
+
project: optional(reference),
|
|
9432
|
+
reason: optional(text)
|
|
9270
9433
|
}),
|
|
9271
9434
|
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) })
|
|
9435
|
+
strictObject({ ...base, kind: literal("new_contact"), address: text, name: text, reason: optional(text) }),
|
|
9436
|
+
strictObject({
|
|
9437
|
+
...base,
|
|
9438
|
+
kind: literal("invoice"),
|
|
9439
|
+
direction: picklist(INVOICE_DIRECTIONS),
|
|
9440
|
+
counterparty: optional(reference),
|
|
9441
|
+
/** A counterparty the store may not hold yet; the owner's accept finds its organization or makes one. */
|
|
9442
|
+
counterparty_name: optional(text),
|
|
9443
|
+
counterparty_email: optional(text),
|
|
9444
|
+
currency: text,
|
|
9445
|
+
lines: array(strictObject({
|
|
9446
|
+
description: text,
|
|
9447
|
+
quantity: optional(text),
|
|
9448
|
+
unit_price: optional(text),
|
|
9449
|
+
amount: optional(text)
|
|
9450
|
+
})),
|
|
9451
|
+
total: optional(text),
|
|
9452
|
+
number: optional(text),
|
|
9453
|
+
issue_date: optional(text),
|
|
9454
|
+
due_date: optional(text),
|
|
9455
|
+
project: optional(reference),
|
|
9456
|
+
reason: text
|
|
9457
|
+
}),
|
|
9458
|
+
strictObject({
|
|
9459
|
+
...base,
|
|
9460
|
+
kind: literal("payment"),
|
|
9461
|
+
direction: picklist(MONEY_DIRECTIONS),
|
|
9462
|
+
payer: optional(reference),
|
|
9463
|
+
payer_name: optional(text),
|
|
9464
|
+
payer_email: optional(text),
|
|
9465
|
+
payee: optional(reference),
|
|
9466
|
+
payee_name: optional(text),
|
|
9467
|
+
payee_email: optional(text),
|
|
9468
|
+
amount: text,
|
|
9469
|
+
currency: text,
|
|
9470
|
+
date: text,
|
|
9471
|
+
reference: optional(text),
|
|
9472
|
+
allocations: optional(array(strictObject({ invoice: reference, amount: text }))),
|
|
9473
|
+
project: optional(reference),
|
|
9474
|
+
reason: text
|
|
9475
|
+
}),
|
|
9476
|
+
strictObject({
|
|
9477
|
+
...base,
|
|
9478
|
+
kind: literal("order"),
|
|
9479
|
+
purpose: picklist(ORDER_PURPOSES),
|
|
9480
|
+
customer: optional(reference),
|
|
9481
|
+
customer_name: optional(text),
|
|
9482
|
+
customer_email: optional(text),
|
|
9483
|
+
supplier: optional(reference),
|
|
9484
|
+
supplier_name: text,
|
|
9485
|
+
number: optional(text),
|
|
9486
|
+
total: optional(text),
|
|
9487
|
+
currency: optional(text),
|
|
9488
|
+
status: optional(picklist(ORDER_STATUSES)),
|
|
9489
|
+
order_date: optional(text),
|
|
9490
|
+
fulfilled_date: optional(text),
|
|
9491
|
+
invoice: optional(reference),
|
|
9492
|
+
payment: optional(reference),
|
|
9493
|
+
project: optional(reference),
|
|
9494
|
+
/** The order's page at the shop, http or https. */
|
|
9495
|
+
source_url: optional(text),
|
|
9496
|
+
reason: text
|
|
9497
|
+
}),
|
|
9498
|
+
strictObject({
|
|
9499
|
+
...base,
|
|
9500
|
+
kind: literal("order_update"),
|
|
9501
|
+
supplier_name: text,
|
|
9502
|
+
number: text,
|
|
9503
|
+
status: picklist(ORDER_STATUSES),
|
|
9504
|
+
date: optional(text),
|
|
9505
|
+
reason: text
|
|
9506
|
+
})
|
|
9273
9507
|
]);
|
|
9274
|
-
var
|
|
9508
|
+
var outcome2 = strictObject({
|
|
9275
9509
|
id,
|
|
9276
9510
|
fingerprint: text,
|
|
9277
9511
|
status: picklist(["accepted", "rejected"]),
|
|
@@ -9287,11 +9521,11 @@ var mailFindings = strictObject({
|
|
|
9287
9521
|
author,
|
|
9288
9522
|
decided_by: nullable(strictObject({ type: picklist(["person", "bot"]), id })),
|
|
9289
9523
|
decided_at: nullable(time),
|
|
9290
|
-
previous: array(
|
|
9291
|
-
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(
|
|
9524
|
+
previous: array(outcome2),
|
|
9525
|
+
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
9292
9526
|
});
|
|
9293
9527
|
|
|
9294
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9528
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
9295
9529
|
var mediaArchive = strictObject({
|
|
9296
9530
|
directory: text,
|
|
9297
9531
|
chats: count,
|
|
@@ -9323,7 +9557,7 @@ var mediaArchiveTimer = union([
|
|
|
9323
9557
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
9324
9558
|
]);
|
|
9325
9559
|
|
|
9326
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9560
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
9327
9561
|
var preparationId = pipe(string(), minLength(1));
|
|
9328
9562
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
9329
9563
|
var preparationTime = nullable(isoTime);
|
|
@@ -9415,7 +9649,7 @@ var preparationMeeting = strictObject({
|
|
|
9415
9649
|
updated_at: isoTime
|
|
9416
9650
|
});
|
|
9417
9651
|
|
|
9418
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9652
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
9419
9653
|
var meetingEvidence = preparationEvidence;
|
|
9420
9654
|
var meetingPersonContext = strictObject({
|
|
9421
9655
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -9437,7 +9671,7 @@ var meetingPersonContext = strictObject({
|
|
|
9437
9671
|
})
|
|
9438
9672
|
});
|
|
9439
9673
|
|
|
9440
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9674
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
9441
9675
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
9442
9676
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
9443
9677
|
var finding2 = variant("kind", [
|
|
@@ -9455,7 +9689,7 @@ var finding2 = variant("kind", [
|
|
|
9455
9689
|
assignee_evidence: optional(array(reference))
|
|
9456
9690
|
})
|
|
9457
9691
|
]);
|
|
9458
|
-
var
|
|
9692
|
+
var outcome3 = strictObject({
|
|
9459
9693
|
id,
|
|
9460
9694
|
fingerprint: text,
|
|
9461
9695
|
status: picklist(["accepted", "rejected"]),
|
|
@@ -9471,11 +9705,11 @@ var meetingFindings = strictObject({
|
|
|
9471
9705
|
author,
|
|
9472
9706
|
decided_by: nullable(strictObject({ type: picklist(["person", "bot"]), id })),
|
|
9473
9707
|
decided_at: nullable(time),
|
|
9474
|
-
previous: array(
|
|
9475
|
-
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(
|
|
9708
|
+
previous: array(outcome3),
|
|
9709
|
+
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
|
|
9476
9710
|
});
|
|
9477
9711
|
|
|
9478
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9712
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
9479
9713
|
var communicationCoverage = strictObject({
|
|
9480
9714
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
9481
9715
|
query: string(),
|
|
@@ -9520,7 +9754,7 @@ var preparationCommunications = strictObject({
|
|
|
9520
9754
|
}))
|
|
9521
9755
|
});
|
|
9522
9756
|
|
|
9523
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9757
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
9524
9758
|
var meetingPreparation = strictObject({
|
|
9525
9759
|
communications: optional(preparationCommunications),
|
|
9526
9760
|
schema_version: literal(1),
|
|
@@ -9633,7 +9867,7 @@ var meetingPreparation = strictObject({
|
|
|
9633
9867
|
})
|
|
9634
9868
|
});
|
|
9635
9869
|
|
|
9636
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9870
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
9637
9871
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
9638
9872
|
var id3 = pipe(string(), minLength(1));
|
|
9639
9873
|
var text3 = string();
|
|
@@ -9697,7 +9931,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
9697
9931
|
})
|
|
9698
9932
|
});
|
|
9699
9933
|
|
|
9700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9934
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
9701
9935
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
9702
9936
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
9703
9937
|
var meetingSeriesInventory = strictObject({
|
|
@@ -9727,7 +9961,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
9727
9961
|
})
|
|
9728
9962
|
});
|
|
9729
9963
|
|
|
9730
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9964
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
9731
9965
|
var text4 = string();
|
|
9732
9966
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
9733
9967
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -9744,7 +9978,7 @@ var meetingTaskProposal = strictObject({
|
|
|
9744
9978
|
persistence: literal("proposal-only")
|
|
9745
9979
|
});
|
|
9746
9980
|
|
|
9747
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9981
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
9748
9982
|
var memory = strictObject({
|
|
9749
9983
|
ref: reference,
|
|
9750
9984
|
id,
|
|
@@ -9771,7 +10005,7 @@ var memory = strictObject({
|
|
|
9771
10005
|
updated_at: time
|
|
9772
10006
|
});
|
|
9773
10007
|
|
|
9774
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10008
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
9775
10009
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
9776
10010
|
var status = picklist(["found", "linked", "dismissed"]);
|
|
9777
10011
|
var mention = strictObject({
|
|
@@ -9814,13 +10048,13 @@ var mentionRebuild = strictObject({
|
|
|
9814
10048
|
mentions: count
|
|
9815
10049
|
});
|
|
9816
10050
|
|
|
9817
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10051
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
9818
10052
|
var operated3 = { operation_id: id, chat_id: id };
|
|
9819
10053
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
9820
10054
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
9821
10055
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
9822
10056
|
|
|
9823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10057
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
9824
10058
|
var messageTranscript = strictObject({
|
|
9825
10059
|
message_id: id,
|
|
9826
10060
|
text,
|
|
@@ -9878,7 +10112,7 @@ var evidencePacket = strictObject({
|
|
|
9878
10112
|
}))
|
|
9879
10113
|
});
|
|
9880
10114
|
|
|
9881
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
9882
10116
|
var messageThread = strictObject({
|
|
9883
10117
|
ref: reference,
|
|
9884
10118
|
chat: id,
|
|
@@ -9895,7 +10129,7 @@ var messageThread = strictObject({
|
|
|
9895
10129
|
});
|
|
9896
10130
|
var messageContext = union([message, messageThread]);
|
|
9897
10131
|
|
|
9898
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
9899
10133
|
var messageCounts = strictObject({
|
|
9900
10134
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
9901
10135
|
total: count,
|
|
@@ -9908,7 +10142,7 @@ var messageCounts = strictObject({
|
|
|
9908
10142
|
}))
|
|
9909
10143
|
});
|
|
9910
10144
|
|
|
9911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10145
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
9912
10146
|
var messageLink = strictObject({
|
|
9913
10147
|
ref: reference,
|
|
9914
10148
|
url: nullable(text),
|
|
@@ -9925,7 +10159,7 @@ var messageLink = strictObject({
|
|
|
9925
10159
|
})))
|
|
9926
10160
|
});
|
|
9927
10161
|
|
|
9928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
9929
10163
|
var savedMessageFile = strictObject({
|
|
9930
10164
|
kind: text,
|
|
9931
10165
|
path: text,
|
|
@@ -10012,7 +10246,7 @@ var messageSyncAll = strictObject({
|
|
|
10012
10246
|
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
10013
10247
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
10014
10248
|
|
|
10015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10249
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
10016
10250
|
var messageWrite = strictObject({
|
|
10017
10251
|
operation_id: id,
|
|
10018
10252
|
message,
|
|
@@ -10027,7 +10261,7 @@ var draftWrite = strictObject({
|
|
|
10027
10261
|
});
|
|
10028
10262
|
var messageSend = union([messageWrite, draftWrite]);
|
|
10029
10263
|
|
|
10030
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
10031
10265
|
var model2 = strictObject({
|
|
10032
10266
|
id,
|
|
10033
10267
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -10044,7 +10278,7 @@ var model2 = strictObject({
|
|
|
10044
10278
|
path: text
|
|
10045
10279
|
});
|
|
10046
10280
|
|
|
10047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
10048
10282
|
var source = picklist(["environment", "keyring", "file"]);
|
|
10049
10283
|
var modelKey = strictObject({
|
|
10050
10284
|
provider: text,
|
|
@@ -10054,7 +10288,7 @@ var modelKey = strictObject({
|
|
|
10054
10288
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
10055
10289
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
10056
10290
|
|
|
10057
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10291
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
10058
10292
|
var versus = strictObject({ current: number(), previous: number() });
|
|
10059
10293
|
var person = { person_ref: reference, name: nullable(text) };
|
|
10060
10294
|
var graph = strictObject({
|
|
@@ -10088,14 +10322,14 @@ var officialStats = strictObject({
|
|
|
10088
10322
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
10089
10323
|
});
|
|
10090
10324
|
|
|
10091
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10325
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
10092
10326
|
var person2 = strictObject({
|
|
10093
10327
|
ref: reference,
|
|
10094
10328
|
name: nullable(text),
|
|
10095
10329
|
identities: optional(array(identity))
|
|
10096
10330
|
});
|
|
10097
10331
|
|
|
10098
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10332
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
10099
10333
|
var poll = strictObject({
|
|
10100
10334
|
chat_id: id,
|
|
10101
10335
|
message_id: id,
|
|
@@ -10111,11 +10345,11 @@ var poll = strictObject({
|
|
|
10111
10345
|
});
|
|
10112
10346
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
10113
10347
|
|
|
10114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10348
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
10115
10349
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
10116
10350
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
10117
10351
|
|
|
10118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10352
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
10119
10353
|
var figures = record(string(), number());
|
|
10120
10354
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
10121
10355
|
var rankingRow = strictObject({
|
|
@@ -10162,7 +10396,7 @@ var ranking = strictObject({
|
|
|
10162
10396
|
rows: array(rankingRow)
|
|
10163
10397
|
});
|
|
10164
10398
|
|
|
10165
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10399
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
10166
10400
|
var reaction = strictObject({
|
|
10167
10401
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
10168
10402
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -10170,7 +10404,7 @@ var reaction = strictObject({
|
|
|
10170
10404
|
reacted_at: time
|
|
10171
10405
|
});
|
|
10172
10406
|
|
|
10173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10407
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
10174
10408
|
var reactionChange = strictObject({
|
|
10175
10409
|
operation_id: id,
|
|
10176
10410
|
chat_id: id,
|
|
@@ -10178,7 +10412,7 @@ var reactionChange = strictObject({
|
|
|
10178
10412
|
reaction: nullable(text)
|
|
10179
10413
|
});
|
|
10180
10414
|
|
|
10181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10415
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
10182
10416
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
10183
10417
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
10184
10418
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -10189,7 +10423,7 @@ var recipientChange = strictObject({
|
|
|
10189
10423
|
...partial(recipientOff).entries
|
|
10190
10424
|
});
|
|
10191
10425
|
|
|
10192
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
10193
10427
|
var events = array(record(string(), unknown()));
|
|
10194
10428
|
var recordedRun = strictObject({
|
|
10195
10429
|
run_id: id,
|
|
@@ -10261,7 +10495,7 @@ var runHit = strictObject({
|
|
|
10261
10495
|
});
|
|
10262
10496
|
var runLocation = strictObject({ path: text });
|
|
10263
10497
|
|
|
10264
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
10265
10499
|
var relationship = strictObject({
|
|
10266
10500
|
id,
|
|
10267
10501
|
from: reference,
|
|
@@ -10275,10 +10509,16 @@ var relationship = strictObject({
|
|
|
10275
10509
|
confirmed: boolean(),
|
|
10276
10510
|
provenance: nullable(text),
|
|
10277
10511
|
confidence_category: picklist(["owner-confirmed", "weak"]),
|
|
10512
|
+
/** `reported`: a CRM account says so and nobody confirmed it; `ended`: it no longer holds. */
|
|
10513
|
+
standing: picklist(STANDINGS),
|
|
10514
|
+
/** A job title beside it, never its role. */
|
|
10515
|
+
position: nullable(text),
|
|
10516
|
+
starts_at: nullable(time),
|
|
10517
|
+
ends_at: nullable(time),
|
|
10278
10518
|
created_at: time
|
|
10279
10519
|
});
|
|
10280
10520
|
|
|
10281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10521
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
10282
10522
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
10283
10523
|
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
10284
10524
|
var responseTimes = strictObject({
|
|
@@ -10295,7 +10535,7 @@ var waitingChats = strictObject({
|
|
|
10295
10535
|
by_kind: strictObject({ private: count, group: count })
|
|
10296
10536
|
});
|
|
10297
10537
|
|
|
10298
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10538
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
10299
10539
|
var retentionCohort = strictObject({
|
|
10300
10540
|
/** The first day of the joining day or week. */
|
|
10301
10541
|
cohort: text,
|
|
@@ -10343,7 +10583,7 @@ var retention = strictObject({
|
|
|
10343
10583
|
rows: array(retentionCohort)
|
|
10344
10584
|
});
|
|
10345
10585
|
|
|
10346
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
10347
10587
|
var savedSearch = strictObject({
|
|
10348
10588
|
id,
|
|
10349
10589
|
/** `null` for a run in the history. */
|
|
@@ -10360,7 +10600,7 @@ var savedSearch = strictObject({
|
|
|
10360
10600
|
});
|
|
10361
10601
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
10362
10602
|
|
|
10363
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
10364
10604
|
var sendAttempt = strictObject({
|
|
10365
10605
|
at: time,
|
|
10366
10606
|
profile: text,
|
|
@@ -10388,7 +10628,7 @@ var sendAttempt = strictObject({
|
|
|
10388
10628
|
error_code: optional(text)
|
|
10389
10629
|
});
|
|
10390
10630
|
|
|
10391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10631
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
10392
10632
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
10393
10633
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
10394
10634
|
var infoSchema = strictObject({
|
|
@@ -10543,12 +10783,25 @@ var storeBackup = strictObject({
|
|
|
10543
10783
|
encrypted: optional(literal(true))
|
|
10544
10784
|
});
|
|
10545
10785
|
var storeDecrypt = strictObject({ path: text, from: text, bytes: count });
|
|
10546
|
-
var storeRestore =
|
|
10547
|
-
|
|
10548
|
-
|
|
10549
|
-
|
|
10550
|
-
|
|
10551
|
-
|
|
10786
|
+
var storeRestore = union([
|
|
10787
|
+
strictObject({
|
|
10788
|
+
path: text,
|
|
10789
|
+
restored_from: text,
|
|
10790
|
+
kept_at: nullable(text),
|
|
10791
|
+
schema: count
|
|
10792
|
+
}),
|
|
10793
|
+
/** From a rollback copy: its tables put back in place, the store returned to `schema` from `was`. */
|
|
10794
|
+
strictObject({
|
|
10795
|
+
path: text,
|
|
10796
|
+
restored_from: text,
|
|
10797
|
+
rolled_back: literal(true),
|
|
10798
|
+
schema: count,
|
|
10799
|
+
was: count,
|
|
10800
|
+
tables: array(strictObject({ table: text, rows: count })),
|
|
10801
|
+
rebuilt: array(text),
|
|
10802
|
+
foreign_key_violations: count
|
|
10803
|
+
})
|
|
10804
|
+
]);
|
|
10552
10805
|
var storeReset = union([
|
|
10553
10806
|
strictObject({ ...absent.entries, reset: literal(false) }),
|
|
10554
10807
|
strictObject({
|
|
@@ -10596,7 +10849,7 @@ var storeRepair = union([
|
|
|
10596
10849
|
]);
|
|
10597
10850
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
10598
10851
|
|
|
10599
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
10600
10853
|
var range = strictObject({ from: number(), to: number() });
|
|
10601
10854
|
var storeChatStatus = strictObject({
|
|
10602
10855
|
chat_id: id,
|
|
@@ -10694,7 +10947,7 @@ var storeJobRetry = union([
|
|
|
10694
10947
|
]);
|
|
10695
10948
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
10696
10949
|
|
|
10697
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10950
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
10698
10951
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
10699
10952
|
var storeTable = strictObject({
|
|
10700
10953
|
name: text,
|
|
@@ -10703,7 +10956,7 @@ var storeTable = strictObject({
|
|
|
10703
10956
|
bytes: optional(nullable(count))
|
|
10704
10957
|
});
|
|
10705
10958
|
|
|
10706
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10959
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
10707
10960
|
var tagTarget = variant("type", [
|
|
10708
10961
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
10709
10962
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -10734,7 +10987,7 @@ var automaticTags = strictObject({
|
|
|
10734
10987
|
dry_run: boolean()
|
|
10735
10988
|
});
|
|
10736
10989
|
|
|
10737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
10738
10991
|
var tagging = strictObject({
|
|
10739
10992
|
tag: text,
|
|
10740
10993
|
type: picklist(TAG_TYPES),
|
|
@@ -10747,7 +11000,7 @@ var tagging = strictObject({
|
|
|
10747
11000
|
created_at: time
|
|
10748
11001
|
});
|
|
10749
11002
|
|
|
10750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11003
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
10751
11004
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
10752
11005
|
var taskPair = strictObject({
|
|
10753
11006
|
task: nullable(side),
|
|
@@ -10770,7 +11023,7 @@ var taskPair = strictObject({
|
|
|
10770
11023
|
created_at: time
|
|
10771
11024
|
});
|
|
10772
11025
|
|
|
10773
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
10774
11027
|
var nullableTime = nullable(time);
|
|
10775
11028
|
var link = strictObject({
|
|
10776
11029
|
id,
|
|
@@ -10805,6 +11058,10 @@ var taskCard = strictObject({
|
|
|
10805
11058
|
revision: number(),
|
|
10806
11059
|
parent: nullable(reference),
|
|
10807
11060
|
source: nullable(text),
|
|
11061
|
+
/** `<service>:<id>`, its id in an outside service, such as `avito:4512345678`. */
|
|
11062
|
+
external_id: nullable(text),
|
|
11063
|
+
/** The http or https page it is about, such as an Avito ad. */
|
|
11064
|
+
source_url: nullable(text),
|
|
10808
11065
|
due_at: nullableTime,
|
|
10809
11066
|
next_check_at: nullableTime,
|
|
10810
11067
|
closed_at: nullableTime,
|
|
@@ -10940,7 +11197,7 @@ var taskReview = strictObject({
|
|
|
10940
11197
|
untrusted
|
|
10941
11198
|
});
|
|
10942
11199
|
|
|
10943
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11200
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
10944
11201
|
var topic = strictObject({
|
|
10945
11202
|
id,
|
|
10946
11203
|
title: text,
|
|
@@ -10954,9 +11211,13 @@ var topic = strictObject({
|
|
|
10954
11211
|
untrusted
|
|
10955
11212
|
});
|
|
10956
11213
|
|
|
10957
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11214
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
10958
11215
|
var ENTITIES = {
|
|
10959
11216
|
sync_progress: progress,
|
|
11217
|
+
deal,
|
|
11218
|
+
lead,
|
|
11219
|
+
pipeline,
|
|
11220
|
+
stage,
|
|
10960
11221
|
...MEETING_RESULT_ENTITIES,
|
|
10961
11222
|
message,
|
|
10962
11223
|
message_context: messageContext,
|
|
@@ -11236,7 +11497,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
11236
11497
|
return [name, definition];
|
|
11237
11498
|
})), "entityDefinitions");
|
|
11238
11499
|
|
|
11239
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11500
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
11240
11501
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
11241
11502
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
11242
11503
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -11270,7 +11531,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
11270
11531
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
11271
11532
|
}, "answerRow");
|
|
11272
11533
|
|
|
11273
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
11274
11535
|
import { join as join6 } from "node:path";
|
|
11275
11536
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
11276
11537
|
var IMAGE_MODELS = [
|
|
@@ -11324,7 +11585,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
11324
11585
|
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
|
|
11325
11586
|
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
11326
11587
|
|
|
11327
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11588
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
11328
11589
|
var STEPS2 = defineSteps([
|
|
11329
11590
|
...STEPS,
|
|
11330
11591
|
{
|
|
@@ -11538,6 +11799,12 @@ var STEPS2 = defineSteps([
|
|
|
11538
11799
|
],
|
|
11539
11800
|
why: "once the tasks these {shown} messages hold are opened, updated or closed, so the next review starts after them"
|
|
11540
11801
|
},
|
|
11802
|
+
{
|
|
11803
|
+
id: "store.recover",
|
|
11804
|
+
command: "store recover",
|
|
11805
|
+
args: [],
|
|
11806
|
+
why: "the store file is damaged; this says what is lost and the commands that recover it"
|
|
11807
|
+
},
|
|
11541
11808
|
{
|
|
11542
11809
|
id: "search.meetings",
|
|
11543
11810
|
command: "*",
|
|
@@ -11576,7 +11843,7 @@ var failureSteps = /* @__PURE__ */ __name((root, error) => {
|
|
|
11576
11843
|
nextStep(IMAGE_MODELS.some((one) => one.id === model3) ? "models.download-image" : "models.download", {
|
|
11577
11844
|
args: { model: model3 }
|
|
11578
11845
|
})
|
|
11579
|
-
] : [];
|
|
11846
|
+
] : error.reason === "store.damaged" ? [nextStep("store.recover", {})] : [];
|
|
11580
11847
|
return runnable(root, [...error.next ?? [], ...own]);
|
|
11581
11848
|
}, "failureSteps");
|
|
11582
11849
|
var withSafety = /* @__PURE__ */ __name((steps, targets) => steps.map((step2) => {
|
|
@@ -11605,29 +11872,20 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
11605
11872
|
].join(" ");
|
|
11606
11873
|
}, "stepLine");
|
|
11607
11874
|
|
|
11608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11609
|
-
var where = [{ field: "ref" }
|
|
11875
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
11876
|
+
var where = [{ field: "ref" }];
|
|
11610
11877
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
11878
|
+
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
11611
11879
|
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
11880
|
"status.questions": {
|
|
11623
|
-
columns: [...where, { field: "at", as: "day" },
|
|
11881
|
+
columns: [...where, { field: "at", as: "day" }, who2],
|
|
11624
11882
|
text: ["data.excerpt"]
|
|
11625
11883
|
},
|
|
11626
11884
|
"status.promises": {
|
|
11627
11885
|
columns: [
|
|
11628
11886
|
...where,
|
|
11629
11887
|
{ field: "at", as: "day" },
|
|
11630
|
-
{ field: "
|
|
11888
|
+
{ field: "basis" },
|
|
11631
11889
|
{ field: "data.side" },
|
|
11632
11890
|
{ field: "data.due", as: "day" },
|
|
11633
11891
|
{ field: "data.status" }
|
|
@@ -11654,21 +11912,10 @@ var STATUS_SIGNAL_ROWS = {
|
|
|
11654
11912
|
columns: [
|
|
11655
11913
|
...where,
|
|
11656
11914
|
{ field: "data.query" },
|
|
11657
|
-
{ field: "data.theirs_last", as: "day" },
|
|
11658
11915
|
{ field: "data.yours_last", as: "day" },
|
|
11659
11916
|
{ field: "data.silent_since", as: "day" }
|
|
11660
11917
|
]
|
|
11661
11918
|
},
|
|
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
11919
|
"status.children": {
|
|
11673
11920
|
columns: [
|
|
11674
11921
|
{ field: "data.child" },
|
|
@@ -11685,10 +11932,14 @@ var STATUS_ROWS = {
|
|
|
11685
11932
|
columns: [
|
|
11686
11933
|
{ field: "chat" },
|
|
11687
11934
|
{ field: "title" },
|
|
11688
|
-
{ field: "kind" },
|
|
11689
11935
|
{ field: "role" },
|
|
11690
|
-
{ field: "
|
|
11691
|
-
{ field: "
|
|
11936
|
+
{ field: "next", prefix: "next" },
|
|
11937
|
+
{ field: "addressed.name" },
|
|
11938
|
+
{ field: "waiting_since", as: "day" },
|
|
11939
|
+
{ field: "overdue", tag: "overdue" },
|
|
11940
|
+
{ field: "held.messages", as: "count", tag: "held" },
|
|
11941
|
+
{ field: "unlisted.questions", as: "count", tag: "questions unlisted" },
|
|
11942
|
+
{ field: "unlisted.promises", as: "count", tag: "promises unlisted" }
|
|
11692
11943
|
]
|
|
11693
11944
|
},
|
|
11694
11945
|
"status.money": {
|
|
@@ -11699,7 +11950,6 @@ var STATUS_ROWS = {
|
|
|
11699
11950
|
{ field: "rows", as: "count", tag: "rows" }
|
|
11700
11951
|
]
|
|
11701
11952
|
},
|
|
11702
|
-
"status.signal": { columns: [{ field: "id" }, { field: "version" }] },
|
|
11703
11953
|
"status.out-of-scope": {
|
|
11704
11954
|
columns: [
|
|
11705
11955
|
{ field: "chat" },
|
|
@@ -11714,7 +11964,7 @@ var STATUS_ROWS = {
|
|
|
11714
11964
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
11715
11965
|
};
|
|
11716
11966
|
|
|
11717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11967
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
11718
11968
|
var TEXT_CHARS = 400;
|
|
11719
11969
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
11720
11970
|
var messageRow = {
|
|
@@ -11899,8 +12149,8 @@ var cellOf = /* @__PURE__ */ __name((item, column, clock) => {
|
|
|
11899
12149
|
const parts = clock.parts(iso);
|
|
11900
12150
|
if (!parts)
|
|
11901
12151
|
return { text: clean(iso) };
|
|
11902
|
-
const
|
|
11903
|
-
return
|
|
12152
|
+
const day3 = parts.date.slice(5);
|
|
12153
|
+
return column.as === "day" ? { text: day3, date: parts.date } : { text: `${day3} ${parts.time}`, date: parts.date, time: parts.time };
|
|
11904
12154
|
}
|
|
11905
12155
|
case "count":
|
|
11906
12156
|
return typeof value === "number" && value !== 0 ? { text: column.tag ? `${value} ${column.tag}` : String(value) } : void 0;
|
|
@@ -11948,6 +12198,17 @@ var sameEverywhere = /* @__PURE__ */ __name((rows2, index) => {
|
|
|
11948
12198
|
const first2 = rows2[0]?.cells[index]?.text;
|
|
11949
12199
|
return first2 !== void 0 && rows2.every(({ cells }) => cells[index]?.text === first2);
|
|
11950
12200
|
}, "sameEverywhere");
|
|
12201
|
+
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");
|
|
12202
|
+
var dayColumn = /* @__PURE__ */ __name((rows2, shape, hoisted) => {
|
|
12203
|
+
const index = shape.columns.findIndex((column, at2) => column.as === "time" && !hoisted[at2]);
|
|
12204
|
+
if (index < 0)
|
|
12205
|
+
return -1;
|
|
12206
|
+
const dates = rows2.map(({ cells }) => cells[index]?.date);
|
|
12207
|
+
if (dates.some((one) => one === void 0))
|
|
12208
|
+
return -1;
|
|
12209
|
+
const days2 = dates;
|
|
12210
|
+
return ordered(days2) && new Set(days2).size * 3 <= days2.length ? index : -1;
|
|
12211
|
+
}, "dayColumn");
|
|
11951
12212
|
var rowsOfItems = /* @__PURE__ */ __name((items, shape, clock, chars) => {
|
|
11952
12213
|
const dates = [];
|
|
11953
12214
|
const rows2 = items.map((item) => {
|
|
@@ -11970,18 +12231,31 @@ var rowsOfItems = /* @__PURE__ */ __name((items, shape, clock, chars) => {
|
|
|
11970
12231
|
return [];
|
|
11971
12232
|
return [`${sourceOf(item, column) ?? fieldsOfColumn(column.field)[0]}: ${rows2[0]?.cells[index]?.text}`];
|
|
11972
12233
|
});
|
|
11973
|
-
const
|
|
11974
|
-
|
|
12234
|
+
const byDay = dayColumn(rows2, shape, hoisted);
|
|
12235
|
+
let shownDay;
|
|
12236
|
+
const lines = rows2.flatMap(({ cells, text: text5, item }) => {
|
|
12237
|
+
const parts = cells.map((cell2, index) => hoisted[index] ? void 0 : cell2?.text);
|
|
12238
|
+
const dayLine = [];
|
|
12239
|
+
const cell = cells[byDay];
|
|
12240
|
+
if (byDay >= 0 && cell?.date && cell.time) {
|
|
12241
|
+
if (cell.date !== shownDay)
|
|
12242
|
+
dayLine.push(`# ${cell.date}`);
|
|
12243
|
+
shownDay = cell.date;
|
|
12244
|
+
parts[byDay] = cell.time;
|
|
12245
|
+
}
|
|
11975
12246
|
const shortened = prefix ? clean(prefix) : void 0;
|
|
11976
12247
|
if (shortened && parts[0]?.startsWith(shortened))
|
|
11977
12248
|
parts[0] = `#${parts[0].slice(shortened.length)}`;
|
|
11978
12249
|
const shown = [...parts, text5].filter((part) => part !== void 0 && part !== "");
|
|
11979
|
-
return guarded(shown.length ? shown.join(" \xB7 ") : item ? blockLine(item, chars) : "");
|
|
12250
|
+
return [...dayLine, guarded(shown.length ? shown.join(" \xB7 ") : item ? blockLine(item, chars) : "")];
|
|
11980
12251
|
});
|
|
11981
|
-
const
|
|
11982
|
-
|
|
11983
|
-
return { header, lines };
|
|
12252
|
+
const header = [...prefix ? [`ref: ${clean(prefix)}<id>`] : [], ...named3];
|
|
12253
|
+
return { header, lines, dates };
|
|
11984
12254
|
}, "rowsOfItems");
|
|
12255
|
+
var spanOf = /* @__PURE__ */ __name((dates, clock) => {
|
|
12256
|
+
const when = span(dates);
|
|
12257
|
+
return when ? [when, clock.zone] : [];
|
|
12258
|
+
}, "spanOf");
|
|
11985
12259
|
var blockLine = /* @__PURE__ */ __name((fields, chars) => blockOf(fields, chars).join(" "), "blockLine");
|
|
11986
12260
|
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
12261
|
const label = `${indent}${clean(name)}:`;
|
|
@@ -12032,25 +12306,31 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
12032
12306
|
const chars = options.textChars ?? TEXT_CHARS;
|
|
12033
12307
|
let lines = [];
|
|
12034
12308
|
if ("items" in body) {
|
|
12035
|
-
const { header, lines: rows2 } = rowsOfItems(body.items, shape, clock, chars);
|
|
12036
|
-
|
|
12309
|
+
const { header, lines: rows2, dates } = rowsOfItems(body.items, shape, clock, chars);
|
|
12310
|
+
const head = [...header, ...spanOf(dates, clock)];
|
|
12311
|
+
lines = (head.length ? [`# ${head.join(" \xB7 ")}`] : []).concat(rows2.length ? rows2 : ["# nothing found"]);
|
|
12037
12312
|
} else if (isFields(body.item)) {
|
|
12038
12313
|
const sections = shape.sections ?? {};
|
|
12039
|
-
const rest = Object.fromEntries(Object.entries(body.item).filter(([name]) => !Object.hasOwn(sections, name)));
|
|
12314
|
+
const rest = Object.fromEntries(Object.entries(body.item).filter(([name]) => !Object.hasOwn(sections, name) && !shape.hidden?.includes(name)));
|
|
12040
12315
|
lines = blockOf(rest, chars, "", shape.whole).map(guarded);
|
|
12316
|
+
let dates = [];
|
|
12317
|
+
let drawn = [];
|
|
12041
12318
|
for (const [name, entity] of Object.entries(sections)) {
|
|
12042
12319
|
const list = body.item[name];
|
|
12043
12320
|
if (!Array.isArray(list))
|
|
12044
12321
|
continue;
|
|
12045
|
-
const { header, lines: rows2 } = rowsOfItems(list, rowsOf(entity), clock, chars);
|
|
12046
|
-
|
|
12322
|
+
const { header, lines: rows2, dates: more } = rowsOfItems(list, rowsOf(entity), clock, chars);
|
|
12323
|
+
dates = dates.concat(more);
|
|
12324
|
+
drawn = drawn.concat([`# ${[`${clean(name)}: ${list.length}`, ...header].join(" \xB7 ")}`], rows2);
|
|
12047
12325
|
}
|
|
12326
|
+
const when = spanOf(dates, clock);
|
|
12327
|
+
lines = lines.concat(when.length ? [`# ${when.join(" \xB7 ")}`] : [], drawn);
|
|
12048
12328
|
} else if (present(body.item))
|
|
12049
12329
|
lines = [guarded(cut(clean(String(body.item)), chars))];
|
|
12050
12330
|
return lines.concat(footerOf(body)).join("\n");
|
|
12051
12331
|
}, "compactText");
|
|
12052
12332
|
|
|
12053
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
12054
12334
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
12055
12335
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
12056
12336
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -12108,7 +12388,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
12108
12388
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
12109
12389
|
}, "largeAnswerSteps");
|
|
12110
12390
|
|
|
12111
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
12112
12392
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
12113
12393
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
12114
12394
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -12122,7 +12402,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
12122
12402
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
12123
12403
|
}, "strip");
|
|
12124
12404
|
|
|
12125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12405
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
12126
12406
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
12127
12407
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
12128
12408
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -12388,9 +12668,11 @@ export {
|
|
|
12388
12668
|
setExitCode,
|
|
12389
12669
|
provide,
|
|
12390
12670
|
environmentOf,
|
|
12671
|
+
withAgentLevels,
|
|
12391
12672
|
secretInputOf,
|
|
12392
12673
|
outputFor,
|
|
12393
12674
|
baseContext,
|
|
12675
|
+
inCommandRun,
|
|
12394
12676
|
REMOTE_READ,
|
|
12395
12677
|
FETCH,
|
|
12396
12678
|
REMOTE_WRITE,
|
|
@@ -12406,6 +12688,7 @@ export {
|
|
|
12406
12688
|
destroysNothing,
|
|
12407
12689
|
admittedUnderLock,
|
|
12408
12690
|
changesStore,
|
|
12691
|
+
writesNewFileOnlyWith,
|
|
12409
12692
|
readsOverMcpAt,
|
|
12410
12693
|
isStoreChange,
|
|
12411
12694
|
previewFlag,
|
|
@@ -12481,6 +12764,7 @@ export {
|
|
|
12481
12764
|
answerEntity,
|
|
12482
12765
|
answerEntitySchema,
|
|
12483
12766
|
answerProjectionSchema,
|
|
12767
|
+
ON_CHAT_ROW,
|
|
12484
12768
|
STATUS_SIGNAL_ROWS,
|
|
12485
12769
|
entityRows,
|
|
12486
12770
|
IMAGE_MODELS,
|