@wirecat/tg-cli 0.132.0 → 0.134.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/README.md +139 -319
- package/contracts/wirecat.json +82 -2
- package/dist/bin/tg.js +2 -2
- package/dist/bot/generated/types.d.ts +188 -0
- package/dist/bot/generated/types.d.ts.map +1 -1
- package/dist/bundle/{adapter-OXVMOWVE.js → adapter-Y4IXTXAG.js} +104 -68
- package/dist/bundle/agent-G7VHOJMS.js +37 -0
- package/dist/bundle/{all-profiles-6OQC7PBL.js → all-profiles-SUGID6CX.js} +62 -20
- package/dist/bundle/{anthropic-YFMIHFW5.js → anthropic-4QKTXT4B.js} +5 -5
- package/dist/bundle/{app-server-S7CJPJXN.js → app-server-TPOD6LIJ.js} +75 -65
- package/dist/bundle/{bot-api-KJ6EZ4R6.js → bot-api-KBESP422.js} +73 -91
- package/dist/bundle/{bot-history-JYCXDFW4.js → bot-history-3EORA23G.js} +23 -22
- package/dist/bundle/{bun-FVTOBYZ2.js → bun-FL76M4M2.js} +2 -2
- package/dist/bundle/{bun-sqlite-KDGWBNOR.js → bun-sqlite-H37OSTAJ.js} +6 -6
- package/dist/bundle/{chunk-JZJV3DYK.js → chunk-2GT563YH.js} +2 -2
- package/dist/bundle/{chunk-EPR67IRV.js → chunk-2JWY7CXJ.js} +4 -4
- package/dist/bundle/{chunk-UGD4SCUI.js → chunk-3O25FAPA.js} +3 -4
- package/dist/bundle/{chunk-AERP2QR6.js → chunk-3PG6QVQZ.js} +11 -25
- package/dist/bundle/{chunk-DXPGMUOR.js → chunk-3QQWTP77.js} +2 -2
- package/dist/bundle/{chunk-FIUH52FE.js → chunk-3ZNO27UE.js} +1 -1
- package/dist/bundle/{chunk-Y57EKZZK.js → chunk-4R2ZJGFF.js} +3274 -1674
- package/dist/bundle/{chunk-6LPUK62N.js → chunk-4S2DHHJM.js} +2 -100
- package/dist/bundle/{chunk-LF6FACSW.js → chunk-4X6BX3XP.js} +144 -10
- package/dist/bundle/{chunk-LZ3HFDYL.js → chunk-6DGVK5KS.js} +2 -2
- package/dist/bundle/chunk-6DJJVFSG.js +388 -0
- package/dist/bundle/{chunk-BSXS7VAC.js → chunk-6MEHKUN6.js} +1 -1
- package/dist/bundle/{chunk-44A2XRDE.js → chunk-6UNLEQA5.js} +31 -20
- package/dist/bundle/{chunk-M2TV6BDB.js → chunk-77E7Q4EQ.js} +7 -7
- package/dist/bundle/chunk-7GGDCQJ5.js +353 -0
- package/dist/bundle/{chunk-OGZZUDJJ.js → chunk-AHVWZDXO.js} +79 -64
- package/dist/bundle/{chunk-YVI5SQPY.js → chunk-ANBI3OXK.js} +1 -1
- package/dist/bundle/{chunk-PR4F3TYK.js → chunk-AYWST6NA.js} +60 -51
- package/dist/bundle/{chunk-7SEVVE3X.js → chunk-CA7DY2YU.js} +3 -3
- package/dist/bundle/{chunk-O43PARFS.js → chunk-CDKXZLMP.js} +273 -176
- package/dist/bundle/{chunk-YAPO7QNO.js → chunk-CNGNR4CY.js} +6 -6
- package/dist/bundle/{chunk-2UGSIHLV.js → chunk-CSXCCK6J.js} +2 -2
- package/dist/bundle/{chunk-N5LZ6L4D.js → chunk-DG35TQ6P.js} +3 -3
- package/dist/bundle/{chunk-LMGVPDXN.js → chunk-EXMAWEHC.js} +2 -2
- package/dist/bundle/{chunk-A5D3J7XZ.js → chunk-FR3ATU5I.js} +4 -4
- package/dist/bundle/{chunk-JDNDWZYS.js → chunk-FR4Y5CGW.js} +4 -4
- package/dist/bundle/{chunk-YSNQGOUI.js → chunk-GIGZTI74.js} +2115 -1975
- package/dist/bundle/{chunk-3QHKZLBU.js → chunk-H3TLAYGY.js} +4 -4
- package/dist/bundle/{chunk-KJICORS4.js → chunk-HD7DV5B2.js} +65 -43
- package/dist/bundle/{chunk-NLRGMP7M.js → chunk-HETHFOHC.js} +3 -3
- package/dist/bundle/{chunk-4YB7JU2W.js → chunk-HEZK4W3U.js} +6 -6
- package/dist/bundle/{chunk-2LZD2VFV.js → chunk-IJ7R2WMK.js} +4 -4
- package/dist/bundle/{chunk-4ZTVJHWU.js → chunk-ITJ7DGNA.js} +4 -4
- package/dist/bundle/{chunk-5UPEEMEF.js → chunk-J5RB4ASI.js} +142 -372
- package/dist/bundle/{chunk-IY7CTAOQ.js → chunk-JAL443BH.js} +9 -9
- package/dist/bundle/{chunk-U7PHJSTX.js → chunk-JCDD5T3A.js} +2 -2
- package/dist/bundle/{chunk-BLZEQVP4.js → chunk-JHZJBNDO.js} +2 -2
- package/dist/bundle/chunk-JWLODUN3.js +555 -0
- package/dist/bundle/{chunk-4CKYANQH.js → chunk-JWNSG5GI.js} +1 -1
- package/dist/bundle/{chunk-YRXSNH3R.js → chunk-JXEO5EIN.js} +2 -2
- package/dist/bundle/{chunk-DSJNZXTP.js → chunk-K5FK6WWN.js} +1 -1
- package/dist/bundle/{chunk-LG3K5NHX.js → chunk-L47PFECD.js} +7 -7
- package/dist/bundle/{chunk-OIRNHSAH.js → chunk-L4PNDW4S.js} +6 -6
- package/dist/bundle/{chunk-WAVRUADL.js → chunk-M323L5SG.js} +30 -15
- package/dist/bundle/{chunk-AUZWIBHJ.js → chunk-MMDFPBFZ.js} +43 -64
- package/dist/bundle/{chunk-FKGYXIN7.js → chunk-MUV73B5A.js} +7 -7
- package/dist/bundle/chunk-MXA3FU2R.js +116 -0
- package/dist/bundle/{chunk-42MXCMW6.js → chunk-NUD4CBHK.js} +3 -3
- package/dist/bundle/{chunk-PG37E63A.js → chunk-NYEVPAF2.js} +511 -472
- package/dist/bundle/{chunk-QS46C5SW.js → chunk-O3QBO6NW.js} +17 -17
- package/dist/bundle/{chunk-CFWFESBO.js → chunk-O4ZOQJ6W.js} +9 -9
- package/dist/bundle/{chunk-74UPKW7H.js → chunk-OJSPB4LA.js} +2 -2
- package/dist/bundle/{chunk-JNWKV3QV.js → chunk-PCBVSHKD.js} +4 -4
- package/dist/bundle/{chunk-5RDNBG7D.js → chunk-PK5WEGPJ.js} +2 -2
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/{chunk-BMI2NWFI.js → chunk-PRI2XTM7.js} +35 -12
- package/dist/bundle/chunk-PRM7GKBV.js +340 -0
- package/dist/bundle/{chunk-ZZ32DXTH.js → chunk-PZ2ZFPGO.js} +1 -1
- package/dist/bundle/chunk-QYRK4XXH.js +727 -0
- package/dist/bundle/{chunk-QNEAPLOP.js → chunk-RVA3CRSY.js} +12 -12
- package/dist/bundle/{chunk-4EDJJQJI.js → chunk-SPXNI53Z.js} +38 -9
- package/dist/bundle/{chunk-ZRW3DF25.js → chunk-TI5U6AUT.js} +34 -28
- package/dist/bundle/{chunk-SMQ45RZX.js → chunk-TKWYXM7L.js} +9 -60
- package/dist/bundle/{chunk-ZJIGVT6Z.js → chunk-TZCFJJEU.js} +6 -6
- package/dist/bundle/chunk-UTTEAOJ3.js +7 -0
- package/dist/bundle/chunk-V6G4LTXU.js +50 -0
- package/dist/bundle/{chunk-JMJOWT4N.js → chunk-VH4J7IIS.js} +1 -1
- package/dist/bundle/{chunk-UAFSDTID.js → chunk-VNJRWFHP.js} +1 -1
- package/dist/bundle/chunk-W2QSDPG6.js +80 -0
- package/dist/bundle/{chunk-ESOFH7PA.js → chunk-WGGUKQE7.js} +134 -558
- package/dist/bundle/{chunk-NWDADTPE.js → chunk-WPXVJGSL.js} +3 -3
- package/dist/bundle/{chunk-NWCFO37P.js → chunk-XLNV3U6N.js} +3 -3
- package/dist/bundle/{chunk-JPSRC732.js → chunk-XS4EE7MO.js} +17 -15
- package/dist/bundle/{chunk-FPSRT2TX.js → chunk-XVRLD3LN.js} +2 -2
- package/dist/bundle/{chunk-O3AM32YN.js → chunk-XZ6XEAJP.js} +18 -18
- package/dist/bundle/{chunk-B4LGDOG5.js → chunk-YHTSJMZ5.js} +3734 -3380
- package/dist/bundle/chunk-YPJCURT6.js +108 -0
- package/dist/bundle/{chunk-HBSKP7OV.js → chunk-Z77R76S2.js} +1 -1
- package/dist/bundle/{chunk-PYECFCPD.js → chunk-ZC7OEYDX.js} +1 -1
- package/dist/bundle/{chunk-IYJ4B632.js → chunk-ZW2N2GI2.js} +12 -12
- package/dist/bundle/command-contract-LEFXJAA3.js +37 -0
- package/dist/bundle/{command-server-entry-TM264M2J.js → command-server-entry-WQAE5UGU.js} +27 -27
- package/dist/bundle/{decode-RJFOSHCE.js → decode-2J2DOVGV.js} +5 -5
- package/dist/bundle/{dispatch-7OZP3X4O.js → dispatch-IZ2TP5GW.js} +8 -8
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/{echarts-PYKF4D7B.js → echarts-GFIIHZ4U.js} +2 -2
- package/dist/bundle/{embed-JFN6Z5TG.js → embed-AGOXADHW.js} +6 -6
- package/dist/bundle/{embedder-WN54JIMY.js → embedder-PCIXGM2Y.js} +9 -9
- package/dist/bundle/{entry-Z6LO6N6S.js → entry-HUQXUV52.js} +9 -9
- package/dist/bundle/{failure-UONA2IA5.js → failure-JSRHZ2S6.js} +2 -2
- package/dist/bundle/{first-run-WQAKES7G.js → first-run-2LXN7B33.js} +12 -12
- package/dist/bundle/first-screen-VUE6RCSF.js +37 -0
- package/dist/bundle/{instructions-PR4BBBTM.js → instructions-RSLTJVFJ.js} +1 -1
- package/dist/bundle/{mcp-O6ACR2DX.js → mcp-MMENCB7I.js} +2 -2
- package/dist/bundle/meeting-combined-PBNPHOM3.js +23 -0
- package/dist/bundle/{meeting-model-YVTUOM4H.js → meeting-model-SI77WMMK.js} +11 -11
- package/dist/bundle/{meeting-semantic-X4KG6RNV.js → meeting-semantic-WRXWUR4M.js} +6 -6
- package/dist/bundle/{node-OVS5LTVZ.js → node-5XGMCUGQ.js} +2 -2
- package/dist/bundle/{node-sqlite-LC44SM4Z.js → node-sqlite-ES7SQSIC.js} +7 -7
- package/dist/bundle/{oauth-NSVUFQCW.js → oauth-QFM4Y6N7.js} +8 -8
- package/dist/bundle/{open-XN5SJFVY.js → open-2MD2DKGQ.js} +5 -5
- package/dist/bundle/{openai-WOYZHJNL.js → openai-6TMKJKYO.js} +15 -15
- package/dist/bundle/{process-UFBRGTQC.js → process-VA2DP7MY.js} +1 -1
- package/dist/bundle/{program-RAGBRRQH.js → program-K3SLEA42.js} +70 -63
- package/dist/bundle/{prompt-6HAKBUQN.js → prompt-VZSPCE6E.js} +5 -5
- package/dist/bundle/{proxy-transport-5EJVFUTC.js → proxy-transport-OJU2EOOC.js} +5 -5
- package/dist/bundle/{recognize-CN5COBVJ.js → recognize-LH3ZZEIL.js} +4 -4
- package/dist/bundle/{remote-STX5AMGE.js → remote-JNW5HN2I.js} +9 -9
- package/dist/bundle/{rerank-ZCOWTXIJ.js → rerank-P23UJMII.js} +7 -7
- package/dist/bundle/{serve-XMQEOIG2.js → serve-VSLLMILH.js} +15 -15
- package/dist/bundle/{server-PGGUD3DM.js → server-FBRRRKCS.js} +68 -57
- package/dist/bundle/server-TA4QP7PG.js +78 -0
- package/dist/bundle/{sqlite-runtime-PS4DSOIU.js → sqlite-runtime-LWATDAAU.js} +6 -6
- package/dist/bundle/{state-GL4ZC57O.js → state-3AFJL2EL.js} +6 -6
- package/dist/bundle/{store-VISFXSHL.js → store-6TLYL2VU.js} +30 -17
- package/dist/bundle/{store-HJ76TLWD.js → store-PEXV5DNA.js} +24 -19
- package/dist/bundle/store-maintenance-command-IYJLUQ5X.js +65 -0
- package/dist/bundle/surface-L4VY4WFG.js +64 -0
- package/dist/bundle/tg.js +13 -13
- package/dist/telegram/adapter.d.ts +9 -2
- package/dist/telegram/adapter.d.ts.map +1 -1
- package/dist/telegram/adapter.js +5 -6
- package/dist/telegram/adapter.js.map +1 -1
- package/dist/telegram/messages.d.ts +12 -0
- package/dist/telegram/messages.d.ts.map +1 -1
- package/dist/telegram/messages.js +40 -0
- package/dist/telegram/messages.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/tg-cli/SKILL.md +80 -576
- package/skills/tg-cli/references/files.md +64 -0
- package/skills/tg-cli/references/history.md +22 -0
- package/skills/tg-cli/references/mcp-and-bots.md +54 -0
- package/skills/tg-cli/references/messages.md +115 -0
- package/skills/tg-cli/references/people.md +85 -0
- package/skills/tg-cli/references/search.md +132 -0
- package/skills/tg-cli/references/setup.md +91 -0
- package/skills/tg-cli/references/stats.md +45 -0
- package/skills/tg-cli/references/tasks.md +54 -0
- package/dist/bundle/chunk-VKE77B3F.js +0 -2
- package/dist/bundle/command-contract-FRH7LBGE.js +0 -37
- package/dist/bundle/first-screen-4RFG22SA.js +0 -35
- package/dist/bundle/meeting-combined-MHWTZOF2.js +0 -23
- package/dist/bundle/server-WTNYWCZ4.js +0 -69
- package/dist/bundle/store-maintenance-command-SMARMN5C.js +0 -60
|
@@ -9,33 +9,33 @@ import {
|
|
|
9
9
|
providerErrorKey,
|
|
10
10
|
renderEvent,
|
|
11
11
|
runContextOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-L47PFECD.js";
|
|
13
13
|
import {
|
|
14
14
|
permissionCeiling
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CA7DY2YU.js";
|
|
16
16
|
import {
|
|
17
17
|
ancestorValue,
|
|
18
18
|
envName,
|
|
19
19
|
readOnlyLockOf,
|
|
20
20
|
readOnlyRefusal
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-OJSPB4LA.js";
|
|
22
22
|
import {
|
|
23
23
|
carries
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-K5FK6WWN.js";
|
|
25
25
|
import {
|
|
26
26
|
note
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-XLNV3U6N.js";
|
|
28
28
|
import {
|
|
29
29
|
DEFAULT_RERANK_MODEL,
|
|
30
30
|
RERANK_MODELS
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-HEZK4W3U.js";
|
|
32
32
|
import {
|
|
33
33
|
endpoint
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-4X6BX3XP.js";
|
|
35
35
|
import {
|
|
36
36
|
filesPresent,
|
|
37
37
|
sharedModelsDirectory
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-2JWY7CXJ.js";
|
|
39
39
|
import {
|
|
40
40
|
BUSINESS_KINDS,
|
|
41
41
|
CATEGORIES,
|
|
@@ -93,18 +93,18 @@ import {
|
|
|
93
93
|
typedCommand,
|
|
94
94
|
untrusted,
|
|
95
95
|
useAsProcessRun
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-HD7DV5B2.js";
|
|
97
97
|
import {
|
|
98
98
|
isCliFailure,
|
|
99
99
|
storeDamaged
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-WPXVJGSL.js";
|
|
101
101
|
import {
|
|
102
102
|
TAG_TYPES
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-JCDD5T3A.js";
|
|
104
104
|
import {
|
|
105
105
|
repairConfigText,
|
|
106
106
|
sharedConfigPath
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-77E7Q4EQ.js";
|
|
108
108
|
import {
|
|
109
109
|
FACT_TYPES,
|
|
110
110
|
FIELD_TYPES,
|
|
@@ -132,10 +132,10 @@ import {
|
|
|
132
132
|
parseLucene,
|
|
133
133
|
readsZone,
|
|
134
134
|
timezoneOf
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-NYEVPAF2.js";
|
|
136
136
|
import {
|
|
137
137
|
storePath
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-XVRLD3LN.js";
|
|
139
139
|
import {
|
|
140
140
|
configFilePath,
|
|
141
141
|
createRecordLog,
|
|
@@ -147,7 +147,7 @@ import {
|
|
|
147
147
|
resolvePaths,
|
|
148
148
|
saveConfigFile,
|
|
149
149
|
writeSecurely
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-6UNLEQA5.js";
|
|
151
151
|
import {
|
|
152
152
|
COMPACT_FLAG,
|
|
153
153
|
MAX_NEXT_STEPS,
|
|
@@ -199,18 +199,18 @@ import {
|
|
|
199
199
|
unwrap,
|
|
200
200
|
variant,
|
|
201
201
|
writes
|
|
202
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-SPXNI53Z.js";
|
|
203
203
|
import {
|
|
204
204
|
CliError,
|
|
205
205
|
isCliError,
|
|
206
206
|
singleLine,
|
|
207
207
|
visibleControls
|
|
208
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-PK5WEGPJ.js";
|
|
209
209
|
import {
|
|
210
210
|
__name
|
|
211
211
|
} from "./chunk-ZVVMGPBJ.js";
|
|
212
212
|
|
|
213
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
213
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.122.0_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
|
|
214
214
|
var labels = /* @__PURE__ */ new WeakMap();
|
|
215
215
|
var annotate = /* @__PURE__ */ __name((command, meta) => {
|
|
216
216
|
labels.set(command, { ...labels.get(command), ...meta });
|
|
@@ -3711,7 +3711,7 @@ __name(useColor, "useColor");
|
|
|
3711
3711
|
// node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
|
|
3712
3712
|
var program = new Command();
|
|
3713
3713
|
|
|
3714
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3714
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.122.0_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
|
|
3715
3715
|
import { isDeepStrictEqual } from "node:util";
|
|
3716
3716
|
var protectedCommands = /* @__PURE__ */ new WeakMap();
|
|
3717
3717
|
var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
|
|
@@ -3913,7 +3913,7 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference2, reason, build,
|
|
|
3913
3913
|
return command;
|
|
3914
3914
|
}, "customizeSharedCommand");
|
|
3915
3915
|
|
|
3916
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3916
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.122.0_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
|
|
3917
3917
|
var argumentInfoSchema = object({
|
|
3918
3918
|
name: string(),
|
|
3919
3919
|
required: boolean(),
|
|
@@ -3987,7 +3987,7 @@ var commandsDocumentSchema = strictObject({
|
|
|
3987
3987
|
exit_codes: record(string(), pipe(number(), integer()))
|
|
3988
3988
|
});
|
|
3989
3989
|
|
|
3990
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3990
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.122.0_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
|
|
3991
3991
|
var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
3992
3992
|
let command = root;
|
|
3993
3993
|
const path2 = [];
|
|
@@ -4005,9 +4005,16 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
4005
4005
|
}
|
|
4006
4006
|
}, "refuseJoinedPath");
|
|
4007
4007
|
|
|
4008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4008
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
4009
4009
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
4010
|
-
var DANGEROUS = /* @__PURE__ */ new Set([
|
|
4010
|
+
var DANGEROUS = /* @__PURE__ */ new Set([
|
|
4011
|
+
"messages.delete",
|
|
4012
|
+
"messages.scheduled.cancel",
|
|
4013
|
+
"bot.messages.delete",
|
|
4014
|
+
"topics.delete",
|
|
4015
|
+
"chats.delete",
|
|
4016
|
+
"chats.clear"
|
|
4017
|
+
]);
|
|
4011
4018
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
4012
4019
|
var DEFAULT_PERMISSIONS = {
|
|
4013
4020
|
// Owner, 2026-11-14: deleting a message does not ask; a profile that wants the question sets `ask`.
|
|
@@ -4228,6 +4235,9 @@ var NAMED_WRITE_KEYS = [
|
|
|
4228
4235
|
"messages.sync-first",
|
|
4229
4236
|
"messages.server-search",
|
|
4230
4237
|
"messages.press",
|
|
4238
|
+
"messages.scheduled.cancel",
|
|
4239
|
+
"messages.scheduled.edit",
|
|
4240
|
+
"messages.scheduled.send",
|
|
4231
4241
|
"chats.start",
|
|
4232
4242
|
"chats.app",
|
|
4233
4243
|
"stats.messages.counters.sync",
|
|
@@ -4431,7 +4441,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
4431
4441
|
}
|
|
4432
4442
|
}, "assertRetentionEvidenceRead");
|
|
4433
4443
|
|
|
4434
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/account.js
|
|
4435
4445
|
var account = strictObject({
|
|
4436
4446
|
provider: text,
|
|
4437
4447
|
id,
|
|
@@ -4441,7 +4451,7 @@ var account = strictObject({
|
|
|
4441
4451
|
scope: optional(picklist(["personal", "work"]))
|
|
4442
4452
|
});
|
|
4443
4453
|
|
|
4444
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4454
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/account-session.js
|
|
4445
4455
|
var accountSession = strictObject({
|
|
4446
4456
|
current: boolean(),
|
|
4447
4457
|
client: nullable(text),
|
|
@@ -4451,7 +4461,7 @@ var accountSession = strictObject({
|
|
|
4451
4461
|
created_at: optional(nullable(time))
|
|
4452
4462
|
});
|
|
4453
4463
|
|
|
4454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4464
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/account-change.js
|
|
4455
4465
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
4456
4466
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
4457
4467
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -4480,7 +4490,7 @@ var accountRemoval = strictObject({
|
|
|
4480
4490
|
kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
|
|
4481
4491
|
});
|
|
4482
4492
|
|
|
4483
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4493
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
|
|
4484
4494
|
var accountProfile = strictObject({
|
|
4485
4495
|
profile: id,
|
|
4486
4496
|
current: boolean(),
|
|
@@ -4492,7 +4502,7 @@ var accountProfile = strictObject({
|
|
|
4492
4502
|
bot: optional(literal(true))
|
|
4493
4503
|
});
|
|
4494
4504
|
|
|
4495
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4505
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
|
|
4496
4506
|
var milliseconds = pipe(number(), minValue(0));
|
|
4497
4507
|
var counterReading = strictObject({
|
|
4498
4508
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -4504,7 +4514,7 @@ var counterReading = strictObject({
|
|
|
4504
4514
|
});
|
|
4505
4515
|
var selection = record(string(), unknown());
|
|
4506
4516
|
|
|
4507
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
|
|
4508
4518
|
var adminRow = strictObject({
|
|
4509
4519
|
ref: reference,
|
|
4510
4520
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -4557,7 +4567,7 @@ var adminReport = strictObject({
|
|
|
4557
4567
|
rows: array(adminRow)
|
|
4558
4568
|
});
|
|
4559
4569
|
|
|
4560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
4561
4571
|
var closeSuggestion = strictObject({
|
|
4562
4572
|
as: picklist(["done", "dismissed"]),
|
|
4563
4573
|
/** The agent's name. */
|
|
@@ -4619,7 +4629,7 @@ var task = strictObject({
|
|
|
4619
4629
|
updated_at: optional(time)
|
|
4620
4630
|
});
|
|
4621
4631
|
|
|
4622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
4623
4633
|
var agendaChat = strictObject({
|
|
4624
4634
|
chat: reference,
|
|
4625
4635
|
title: nullable(text),
|
|
@@ -4689,11 +4699,11 @@ var agenda = strictObject({
|
|
|
4689
4699
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
4690
4700
|
});
|
|
4691
4701
|
|
|
4692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
|
|
4693
4703
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
4694
4704
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
4695
4705
|
|
|
4696
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4706
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
4697
4707
|
var attachment = strictObject({
|
|
4698
4708
|
/** The message it came with, as a locator; absent inside that message. */
|
|
4699
4709
|
message: optional(reference),
|
|
@@ -4738,7 +4748,7 @@ var hitFile = strictObject({
|
|
|
4738
4748
|
local_path: optional(text)
|
|
4739
4749
|
});
|
|
4740
4750
|
|
|
4741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
|
|
4742
4752
|
var actionableError = objectWithRest({
|
|
4743
4753
|
code: text,
|
|
4744
4754
|
message: text,
|
|
@@ -4755,7 +4765,7 @@ var batchResult = strictObject({
|
|
|
4755
4765
|
max_error_percent: count
|
|
4756
4766
|
});
|
|
4757
4767
|
|
|
4758
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4768
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
|
|
4759
4769
|
var extractionItem = strictObject({
|
|
4760
4770
|
ref: reference,
|
|
4761
4771
|
attachment: count,
|
|
@@ -4788,7 +4798,7 @@ var extractionReport = strictObject({
|
|
|
4788
4798
|
cursor: optional(text)
|
|
4789
4799
|
});
|
|
4790
4800
|
|
|
4791
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4801
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
|
|
4792
4802
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
4793
4803
|
var attachmentBytes = strictObject({
|
|
4794
4804
|
ref: reference,
|
|
@@ -4819,7 +4829,7 @@ var attachmentTextChange = strictObject({
|
|
|
4819
4829
|
text: optional(text)
|
|
4820
4830
|
});
|
|
4821
4831
|
|
|
4822
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
4823
4833
|
var WEIGHTS = {
|
|
4824
4834
|
bot: 3,
|
|
4825
4835
|
scam: 3,
|
|
@@ -4844,7 +4854,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
4844
4854
|
var DIGITS = /\d{5,}/;
|
|
4845
4855
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
4846
4856
|
|
|
4847
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4857
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
4848
4858
|
var linkedIdentity = strictObject({
|
|
4849
4859
|
provider: text,
|
|
4850
4860
|
id,
|
|
@@ -4899,7 +4909,7 @@ var contactCheck = strictObject({
|
|
|
4899
4909
|
checked_at: time
|
|
4900
4910
|
});
|
|
4901
4911
|
|
|
4902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4912
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/member.js
|
|
4903
4913
|
var member = strictObject({
|
|
4904
4914
|
id,
|
|
4905
4915
|
name: nullable(text),
|
|
@@ -4922,7 +4932,7 @@ var member = strictObject({
|
|
|
4922
4932
|
check: optional(record(string(), unknown()))
|
|
4923
4933
|
});
|
|
4924
4934
|
|
|
4925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/chat.js
|
|
4926
4936
|
var setting = optional(nullable(boolean()));
|
|
4927
4937
|
var chat = strictObject({
|
|
4928
4938
|
ref: reference,
|
|
@@ -4963,7 +4973,7 @@ var chat = strictObject({
|
|
|
4963
4973
|
members: optional(array(member))
|
|
4964
4974
|
});
|
|
4965
4975
|
|
|
4966
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4976
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
4967
4977
|
var quoted = strictObject({
|
|
4968
4978
|
id,
|
|
4969
4979
|
sender_id: nullable(id),
|
|
@@ -5077,12 +5087,14 @@ var message = strictObject({
|
|
|
5077
5087
|
/** Mail `review`: no earlier stored email, in any account, came from this address. */
|
|
5078
5088
|
new_sender: optional(boolean()),
|
|
5079
5089
|
/** Mail `review`: how many identities the sender's person has; 1 is this address alone. */
|
|
5080
|
-
sender_identities: optional(number())
|
|
5090
|
+
sender_identities: optional(number()),
|
|
5091
|
+
/** Mail `review`: how `inbox` sorted the thread, by the AI model; the reason is untrusted. */
|
|
5092
|
+
inbox: optional(strictObject({ bucket: picklist(["answer", "read", "later"]), reason: text }))
|
|
5081
5093
|
})),
|
|
5082
5094
|
provider_metadata: providerMetadata
|
|
5083
5095
|
});
|
|
5084
5096
|
|
|
5085
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5097
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/recorded-meeting.js
|
|
5086
5098
|
var recordedMeeting = strictObject({
|
|
5087
5099
|
ref: reference,
|
|
5088
5100
|
meeting_id: count,
|
|
@@ -5091,13 +5103,15 @@ var recordedMeeting = strictObject({
|
|
|
5091
5103
|
started_at: nullable(time),
|
|
5092
5104
|
duration_ms: nullable(count),
|
|
5093
5105
|
has_transcript: boolean(),
|
|
5106
|
+
/** The start of its transcript, on one line: what the people said, never instructions. */
|
|
5107
|
+
snippet: optional(nullable(text)),
|
|
5094
5108
|
event: nullable(reference),
|
|
5095
5109
|
people: array(reference),
|
|
5096
5110
|
/** Present only on a phone call: its direction, manager and the other side's number. */
|
|
5097
5111
|
call: optional(meetingCall)
|
|
5098
5112
|
});
|
|
5099
5113
|
|
|
5100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
5101
5115
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
5102
5116
|
var contextMessage = strictObject({
|
|
5103
5117
|
locator: reference,
|
|
@@ -5303,7 +5317,7 @@ var contactPreparation = strictObject({
|
|
|
5303
5317
|
})
|
|
5304
5318
|
});
|
|
5305
5319
|
|
|
5306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5320
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/deal.js
|
|
5307
5321
|
var nullableText = nullable(text);
|
|
5308
5322
|
var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
|
|
5309
5323
|
var outcome = picklist(["open", "won", "lost"]);
|
|
@@ -5321,6 +5335,12 @@ var activity = strictObject({
|
|
|
5321
5335
|
created_at: time,
|
|
5322
5336
|
updated_at: time
|
|
5323
5337
|
});
|
|
5338
|
+
var stageEntry = strictObject({
|
|
5339
|
+
from: nullableText,
|
|
5340
|
+
to: text,
|
|
5341
|
+
at: time,
|
|
5342
|
+
exact: boolean()
|
|
5343
|
+
});
|
|
5324
5344
|
var deal = strictObject({
|
|
5325
5345
|
id,
|
|
5326
5346
|
ref: reference,
|
|
@@ -5379,9 +5399,30 @@ var deal = strictObject({
|
|
|
5379
5399
|
activities: optional(array(activity)),
|
|
5380
5400
|
/** `show` of a CRM copy: the newest recorded meetings and calls of its people, in its account's scope. */
|
|
5381
5401
|
meetings: optional(array(recordedMeeting)),
|
|
5402
|
+
/**
|
|
5403
|
+
* `show` of a CRM copy: every stage it entered, oldest first. Once the CRM's own history names any, it alone is
|
|
5404
|
+
* listed, from as far back as it was read; the copy's changes between syncs are left out.
|
|
5405
|
+
*/
|
|
5406
|
+
stage_history: optional(array(stageEntry)),
|
|
5382
5407
|
untrusted
|
|
5383
5408
|
});
|
|
5384
5409
|
var lead = deal;
|
|
5410
|
+
var amount = strictObject({ amount: text, currency: text, items: count });
|
|
5411
|
+
var winRate = nullable(number());
|
|
5412
|
+
var pipelineOwner = strictObject({
|
|
5413
|
+
assignee: nullableText,
|
|
5414
|
+
name: nullableText,
|
|
5415
|
+
open: count,
|
|
5416
|
+
won: count,
|
|
5417
|
+
lost: count,
|
|
5418
|
+
win_rate: winRate
|
|
5419
|
+
});
|
|
5420
|
+
var pipelineClosed = strictObject({
|
|
5421
|
+
won: count,
|
|
5422
|
+
lost: count,
|
|
5423
|
+
win_rate: winRate,
|
|
5424
|
+
won_amounts: array(amount)
|
|
5425
|
+
});
|
|
5385
5426
|
var pipelineStage = strictObject({
|
|
5386
5427
|
name: text,
|
|
5387
5428
|
position: count,
|
|
@@ -5394,8 +5435,11 @@ var pipelineStage = strictObject({
|
|
|
5394
5435
|
conversion: optional(nullable(number())),
|
|
5395
5436
|
/** With a funnel: rows standing in it now, and their sum per currency, never converted. */
|
|
5396
5437
|
items: optional(count),
|
|
5397
|
-
amounts: optional(array(
|
|
5438
|
+
amounts: optional(array(amount)),
|
|
5439
|
+
/** With a funnel: the median days a row of the window stayed in it before it moved on. */
|
|
5440
|
+
median_days: optional(nullable(number()))
|
|
5398
5441
|
});
|
|
5442
|
+
var pipelineStageAnswer = pipelineStage;
|
|
5399
5443
|
var pipeline = strictObject({
|
|
5400
5444
|
id,
|
|
5401
5445
|
ref: reference,
|
|
@@ -5403,10 +5447,20 @@ var pipeline = strictObject({
|
|
|
5403
5447
|
kind: picklist(["deal", "lead"]),
|
|
5404
5448
|
account: crmAccount,
|
|
5405
5449
|
external_id: nullableText,
|
|
5406
|
-
stages: array(
|
|
5450
|
+
stages: array(pipelineStageAnswer),
|
|
5407
5451
|
created_at: time,
|
|
5408
|
-
|
|
5452
|
+
/** `show`: the rows made in the window. */
|
|
5453
|
+
totals: optional(strictObject({ items: count, open: count, won: count, lost: count, win_rate: winRate })),
|
|
5454
|
+
window: optional(strictObject({ since: nullable(time), until: nullable(time) })),
|
|
5409
5455
|
since: optional(day),
|
|
5456
|
+
/** `show`: rows closed on a day in the window, in the owner's zone. */
|
|
5457
|
+
closed: optional(pipelineClosed),
|
|
5458
|
+
/** `show`: days from made to won, of the rows won in the window. */
|
|
5459
|
+
cycle: optional(strictObject({ median_days: nullable(number()), items: count })),
|
|
5460
|
+
owners: optional(array(pipelineOwner)),
|
|
5461
|
+
lost_reasons: optional(array(strictObject({ reason: text, items: count }))),
|
|
5462
|
+
/** `show`: rows whose stages came from the CRM's own history, and from the copy's diffs. */
|
|
5463
|
+
history: optional(strictObject({ exact: count, copy: count })),
|
|
5410
5464
|
untrusted
|
|
5411
5465
|
});
|
|
5412
5466
|
var stage = strictObject({
|
|
@@ -5414,10 +5468,12 @@ var stage = strictObject({
|
|
|
5414
5468
|
pipeline: reference,
|
|
5415
5469
|
pipeline_name: text,
|
|
5416
5470
|
kind: picklist(["deal", "lead"]),
|
|
5471
|
+
/** A CRM's stage: the task its `stage-tasks` rule opens when a row enters it, or `null`. */
|
|
5472
|
+
stage_task: optional(nullable(strictObject({ title: text, due_days: count }))),
|
|
5417
5473
|
untrusted
|
|
5418
5474
|
});
|
|
5419
5475
|
|
|
5420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5476
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/business-context.js
|
|
5421
5477
|
var nullableText2 = nullable(text);
|
|
5422
5478
|
var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
|
|
5423
5479
|
var standing = picklist(STANDINGS);
|
|
@@ -5503,6 +5559,16 @@ var taskLine = strictObject({
|
|
|
5503
5559
|
due_at: nullable(time)
|
|
5504
5560
|
});
|
|
5505
5561
|
var counts = { messages: count, mail: count, meetings: count };
|
|
5562
|
+
var touch = {
|
|
5563
|
+
kind: picklist(["message", "mail", "meeting"]),
|
|
5564
|
+
ref: reference,
|
|
5565
|
+
title: nullableText2,
|
|
5566
|
+
at: nullable(time),
|
|
5567
|
+
people: array(reference),
|
|
5568
|
+
text: optional(nullableText2),
|
|
5569
|
+
call: optional(meetingCall),
|
|
5570
|
+
duration_ms: optional(nullable(count))
|
|
5571
|
+
};
|
|
5506
5572
|
var personBusiness = strictObject({
|
|
5507
5573
|
organizations: section(strictObject({ ...related.entries, categories })),
|
|
5508
5574
|
reports_to: section(related),
|
|
@@ -5542,13 +5608,15 @@ var organizationContext = strictObject({
|
|
|
5542
5608
|
money,
|
|
5543
5609
|
/** Counts only, through its own people, in the accounts read. */
|
|
5544
5610
|
communications: strictObject({ ...counts, has_more: boolean() }),
|
|
5611
|
+
/** Its people's messages, mail and meetings, newest first. */
|
|
5612
|
+
history: section(strictObject(touch)),
|
|
5545
5613
|
tasks: section(taskLine),
|
|
5546
5614
|
coverage: coverage2
|
|
5547
5615
|
});
|
|
5548
5616
|
var { untrusted: _, ...dealRow } = deal.entries;
|
|
5549
5617
|
var dealContext = strictObject({
|
|
5550
5618
|
deal: strictObject(dealRow),
|
|
5551
|
-
stages: section(strictObject({ from: nullableText2, to: text, pipeline: reference, at: time })),
|
|
5619
|
+
stages: section(strictObject({ from: nullableText2, to: text, pipeline: reference, at: time, exact: boolean() })),
|
|
5552
5620
|
organization: nullable(strictObject({ ref: reference, name: nullableText2, categories })),
|
|
5553
5621
|
participants: section(related),
|
|
5554
5622
|
owner: nullable(related),
|
|
@@ -5557,14 +5625,7 @@ var dealContext = strictObject({
|
|
|
5557
5625
|
window: strictObject({ since: time, until: time }),
|
|
5558
5626
|
/** Shared people within its lifetime: `proposed`, an overlap of people, never a link. */
|
|
5559
5627
|
communications: strictObject({
|
|
5560
|
-
...section(strictObject({
|
|
5561
|
-
kind: picklist(["message", "mail", "meeting"]),
|
|
5562
|
-
ref: reference,
|
|
5563
|
-
title: nullableText2,
|
|
5564
|
-
at: nullable(time),
|
|
5565
|
-
people: array(reference),
|
|
5566
|
-
standing: literal("proposed")
|
|
5567
|
-
})).entries,
|
|
5628
|
+
...section(strictObject({ ...touch, standing: literal("proposed") })).entries,
|
|
5568
5629
|
counts: strictObject(counts)
|
|
5569
5630
|
}),
|
|
5570
5631
|
tasks: section(taskLine),
|
|
@@ -5591,7 +5652,7 @@ var dealBrief = strictObject({
|
|
|
5591
5652
|
not_read: coverage2.entries.not_read
|
|
5592
5653
|
});
|
|
5593
5654
|
|
|
5594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5655
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/chart.js
|
|
5595
5656
|
var chart = strictObject({
|
|
5596
5657
|
version: literal(1),
|
|
5597
5658
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -5606,7 +5667,7 @@ var chart = strictObject({
|
|
|
5606
5667
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
5607
5668
|
});
|
|
5608
5669
|
|
|
5609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5670
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/folder.js
|
|
5610
5671
|
var named = strictObject({
|
|
5611
5672
|
id,
|
|
5612
5673
|
title: nullable(text),
|
|
@@ -5629,7 +5690,7 @@ var folder = strictObject({
|
|
|
5629
5690
|
excluded_chats: optional(array(named))
|
|
5630
5691
|
});
|
|
5631
5692
|
|
|
5632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5693
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
|
|
5633
5694
|
var inviteLink = strictObject({
|
|
5634
5695
|
link: text,
|
|
5635
5696
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -5645,7 +5706,7 @@ var inviteLink = strictObject({
|
|
|
5645
5706
|
joined_count: optional(count)
|
|
5646
5707
|
});
|
|
5647
5708
|
|
|
5648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5709
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
|
|
5649
5710
|
var operated = { operation_id: id, chat_id: id };
|
|
5650
5711
|
var group = strictObject({
|
|
5651
5712
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -5725,7 +5786,7 @@ var chatFolderOrder = strictObject({
|
|
|
5725
5786
|
folders: array(strictObject({ id, title: text }))
|
|
5726
5787
|
});
|
|
5727
5788
|
|
|
5728
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5789
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
|
|
5729
5790
|
var operated2 = { operation_id: id, chat_id: id };
|
|
5730
5791
|
var chatRemoval = strictObject(operated2);
|
|
5731
5792
|
var chatMuting = strictObject({
|
|
@@ -5736,7 +5797,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
5736
5797
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
5737
5798
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
5738
5799
|
|
|
5739
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5800
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
|
|
5740
5801
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
5741
5802
|
var chatEvent = strictObject({
|
|
5742
5803
|
chat_id: id,
|
|
@@ -5753,7 +5814,7 @@ var chatEvent = strictObject({
|
|
|
5753
5814
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
5754
5815
|
});
|
|
5755
5816
|
|
|
5756
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5817
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
|
|
5757
5818
|
var chatMetadata = strictObject({
|
|
5758
5819
|
chat_id: id,
|
|
5759
5820
|
title: nullable(text),
|
|
@@ -5768,7 +5829,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
5768
5829
|
has_more: boolean()
|
|
5769
5830
|
});
|
|
5770
5831
|
|
|
5771
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
|
|
5772
5833
|
var action = picklist(["report", "delete", "remove"]);
|
|
5773
5834
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
5774
5835
|
var chatRules = strictObject({
|
|
@@ -5805,7 +5866,7 @@ var chatModeration = strictObject({
|
|
|
5805
5866
|
}))
|
|
5806
5867
|
});
|
|
5807
5868
|
|
|
5808
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5869
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/chat-sending.js
|
|
5809
5870
|
var chatSending = strictObject({
|
|
5810
5871
|
mode: picklist(["allowed", "ask", "denied"]),
|
|
5811
5872
|
meaning: text,
|
|
@@ -5815,7 +5876,7 @@ var chatSending = strictObject({
|
|
|
5815
5876
|
changed: optional(boolean())
|
|
5816
5877
|
});
|
|
5817
5878
|
|
|
5818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5879
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
|
|
5819
5880
|
var optionalCount = optional(count);
|
|
5820
5881
|
var minutes = nullable(number());
|
|
5821
5882
|
var chatStats = strictObject({
|
|
@@ -5891,7 +5952,7 @@ var taskStats = strictObject({
|
|
|
5891
5952
|
}))
|
|
5892
5953
|
});
|
|
5893
5954
|
|
|
5894
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5955
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
|
|
5895
5956
|
var memberCount = strictObject({
|
|
5896
5957
|
day: pipe(text, isoDate()),
|
|
5897
5958
|
participants: nullable(count),
|
|
@@ -5914,7 +5975,7 @@ var chatTracking = strictObject({
|
|
|
5914
5975
|
tracked: boolean()
|
|
5915
5976
|
});
|
|
5916
5977
|
|
|
5917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5978
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
5918
5979
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
5919
5980
|
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
5920
5981
|
var profileFields = {
|
|
@@ -5952,7 +6013,7 @@ var profileFields = {
|
|
|
5952
6013
|
}))
|
|
5953
6014
|
};
|
|
5954
6015
|
|
|
5955
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6016
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
5956
6017
|
var contact = strictObject({
|
|
5957
6018
|
ref: reference,
|
|
5958
6019
|
id,
|
|
@@ -5983,7 +6044,7 @@ var contact = strictObject({
|
|
|
5983
6044
|
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
5984
6045
|
});
|
|
5985
6046
|
|
|
5986
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6047
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
|
|
5987
6048
|
var contactNote = strictObject({
|
|
5988
6049
|
id,
|
|
5989
6050
|
/** The contact, as a `contact:` reference. */
|
|
@@ -5995,13 +6056,13 @@ var contactNote = strictObject({
|
|
|
5995
6056
|
updated_at: time
|
|
5996
6057
|
});
|
|
5997
6058
|
|
|
5998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6059
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
|
|
5999
6060
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
6000
6061
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
6001
6062
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
6002
6063
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
6003
6064
|
|
|
6004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6065
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
6005
6066
|
var conversation = strictObject({
|
|
6006
6067
|
id,
|
|
6007
6068
|
chat: reference,
|
|
@@ -6016,7 +6077,7 @@ var conversation = strictObject({
|
|
|
6016
6077
|
rules_version: count
|
|
6017
6078
|
});
|
|
6018
6079
|
|
|
6019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6080
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
|
|
6020
6081
|
var conversationBuild = strictObject({
|
|
6021
6082
|
chat: id,
|
|
6022
6083
|
messages: count,
|
|
@@ -6041,7 +6102,7 @@ var catchUpPreparation = strictObject({
|
|
|
6041
6102
|
prepared: optional(conversationPreparation)
|
|
6042
6103
|
});
|
|
6043
6104
|
|
|
6044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
|
|
6045
6106
|
var conversationDetails = union([
|
|
6046
6107
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
6047
6108
|
message
|
|
@@ -6131,7 +6192,7 @@ var conversationHit = strictObject({
|
|
|
6131
6192
|
stale: boolean()
|
|
6132
6193
|
});
|
|
6133
6194
|
|
|
6134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/counters.js
|
|
6135
6196
|
var counters = strictObject({
|
|
6136
6197
|
cutoff: time,
|
|
6137
6198
|
max_age_ms: milliseconds,
|
|
@@ -6161,7 +6222,7 @@ var counterRefresh = strictObject({
|
|
|
6161
6222
|
complete: optional(boolean())
|
|
6162
6223
|
});
|
|
6163
6224
|
|
|
6164
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6225
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
6165
6226
|
var document = strictObject({
|
|
6166
6227
|
ref: reference,
|
|
6167
6228
|
id,
|
|
@@ -6176,7 +6237,7 @@ var document = strictObject({
|
|
|
6176
6237
|
owners: optional(array(text))
|
|
6177
6238
|
});
|
|
6178
6239
|
|
|
6179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6240
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/document-link.js
|
|
6180
6241
|
var documentLink = strictObject({
|
|
6181
6242
|
ref: reference,
|
|
6182
6243
|
url: text,
|
|
@@ -6187,7 +6248,7 @@ var documentLink = strictObject({
|
|
|
6187
6248
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
6188
6249
|
});
|
|
6189
6250
|
|
|
6190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/evidence.js
|
|
6191
6252
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
6192
6253
|
var contribution = strictObject({
|
|
6193
6254
|
message: evidenceMessage,
|
|
@@ -6217,7 +6278,7 @@ var retentionStay = strictObject({
|
|
|
6217
6278
|
});
|
|
6218
6279
|
var evidence = union([contribution, retentionStay]);
|
|
6219
6280
|
|
|
6220
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/fact.js
|
|
6221
6282
|
var fact = strictObject({
|
|
6222
6283
|
ref: reference,
|
|
6223
6284
|
id,
|
|
@@ -6248,9 +6309,20 @@ var fact = strictObject({
|
|
|
6248
6309
|
updated_at: time
|
|
6249
6310
|
});
|
|
6250
6311
|
|
|
6251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6312
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/hit.js
|
|
6252
6313
|
var hit = strictObject({
|
|
6253
|
-
kind: picklist([
|
|
6314
|
+
kind: picklist([
|
|
6315
|
+
"message",
|
|
6316
|
+
"mail",
|
|
6317
|
+
"note",
|
|
6318
|
+
"document",
|
|
6319
|
+
"event",
|
|
6320
|
+
"meeting",
|
|
6321
|
+
"deal",
|
|
6322
|
+
"lead",
|
|
6323
|
+
"crm_file",
|
|
6324
|
+
...BUSINESS_KINDS
|
|
6325
|
+
]),
|
|
6254
6326
|
ref: reference,
|
|
6255
6327
|
provider: text,
|
|
6256
6328
|
url: optional(text),
|
|
@@ -6296,7 +6368,7 @@ var hit = strictObject({
|
|
|
6296
6368
|
untrusted
|
|
6297
6369
|
});
|
|
6298
6370
|
|
|
6299
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/identity.js
|
|
6300
6372
|
var identity = strictObject({
|
|
6301
6373
|
ref: reference,
|
|
6302
6374
|
provider: text,
|
|
@@ -6312,7 +6384,7 @@ var identity = strictObject({
|
|
|
6312
6384
|
person: optional(nullable(reference))
|
|
6313
6385
|
});
|
|
6314
6386
|
|
|
6315
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6387
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
|
|
6316
6388
|
var imageEmbedding = strictObject({
|
|
6317
6389
|
model: text,
|
|
6318
6390
|
embedded: count,
|
|
@@ -6321,13 +6393,13 @@ var imageEmbedding = strictObject({
|
|
|
6321
6393
|
more: boolean()
|
|
6322
6394
|
});
|
|
6323
6395
|
|
|
6324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6396
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
6325
6397
|
import { spawn } from "node:child_process";
|
|
6326
6398
|
import { randomBytes } from "node:crypto";
|
|
6327
6399
|
import { closeSync, existsSync, mkdirSync, openSync, readdirSync, readFileSync, realpathSync, rmSync } from "node:fs";
|
|
6328
6400
|
import { dirname, join } from "node:path";
|
|
6329
6401
|
|
|
6330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
6331
6403
|
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
6332
6404
|
const total = input.total ?? null;
|
|
6333
6405
|
const updated = input.updatedAt ?? null;
|
|
@@ -6343,7 +6415,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
6343
6415
|
};
|
|
6344
6416
|
}, "progressOf");
|
|
6345
6417
|
|
|
6346
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6418
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
6347
6419
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
6348
6420
|
const run = currentRun();
|
|
6349
6421
|
const trace = traceId ?? run.traceId;
|
|
@@ -6357,7 +6429,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
6357
6429
|
}));
|
|
6358
6430
|
}, "recordLogFor");
|
|
6359
6431
|
|
|
6360
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
6361
6433
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
6362
6434
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
6363
6435
|
const out = openSync(log, "a", 384);
|
|
@@ -6512,7 +6584,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
6512
6584
|
return { job: id6, pid, chat: input.chat, log };
|
|
6513
6585
|
}, "startArchiveJob");
|
|
6514
6586
|
|
|
6515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/job.js
|
|
6516
6588
|
var problem = strictObject({ code: text, message: text });
|
|
6517
6589
|
var job = strictObject({
|
|
6518
6590
|
id,
|
|
@@ -6535,7 +6607,7 @@ var job = strictObject({
|
|
|
6535
6607
|
error: optional(problem)
|
|
6536
6608
|
});
|
|
6537
6609
|
|
|
6538
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6610
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/join-request.js
|
|
6539
6611
|
var joinRequest = strictObject({
|
|
6540
6612
|
person_id: id,
|
|
6541
6613
|
name: nullable(text),
|
|
@@ -6546,7 +6618,7 @@ var joinRequest = strictObject({
|
|
|
6546
6618
|
about: optional(text)
|
|
6547
6619
|
});
|
|
6548
6620
|
|
|
6549
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/list-results.js
|
|
6550
6622
|
var botProfile = strictObject({
|
|
6551
6623
|
name: text,
|
|
6552
6624
|
token: text,
|
|
@@ -6670,7 +6742,7 @@ var stickerInventory = strictObject({
|
|
|
6670
6742
|
url: optional(nullable(text))
|
|
6671
6743
|
});
|
|
6672
6744
|
|
|
6673
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6745
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
|
|
6674
6746
|
var pollVote = strictObject({
|
|
6675
6747
|
person_id: id,
|
|
6676
6748
|
name: nullable(text),
|
|
@@ -6680,7 +6752,7 @@ var pollVote = strictObject({
|
|
|
6680
6752
|
voted_at: time
|
|
6681
6753
|
});
|
|
6682
6754
|
|
|
6683
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/listener.js
|
|
6684
6756
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
6685
6757
|
var observation = strictObject({
|
|
6686
6758
|
value: pipe(number(), minValue(0)),
|
|
@@ -6722,7 +6794,7 @@ var serveSummary = strictObject({
|
|
|
6722
6794
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
6723
6795
|
});
|
|
6724
6796
|
|
|
6725
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6797
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
|
|
6726
6798
|
var mailCounts = strictObject({
|
|
6727
6799
|
by: picklist(["day", "week", "sender"]),
|
|
6728
6800
|
received: count,
|
|
@@ -6737,7 +6809,7 @@ var mailCounts = strictObject({
|
|
|
6737
6809
|
}))
|
|
6738
6810
|
});
|
|
6739
6811
|
|
|
6740
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6812
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
|
|
6741
6813
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
6742
6814
|
var base = { id, evidence: array(evidence2) };
|
|
6743
6815
|
var finding = variant("kind", [
|
|
@@ -6881,7 +6953,7 @@ var mailFindings = strictObject({
|
|
|
6881
6953
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
6882
6954
|
});
|
|
6883
6955
|
|
|
6884
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6956
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
6885
6957
|
var mediaArchive = strictObject({
|
|
6886
6958
|
directory: text,
|
|
6887
6959
|
chats: count,
|
|
@@ -6913,7 +6985,7 @@ var mediaArchiveTimer = union([
|
|
|
6913
6985
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
6914
6986
|
]);
|
|
6915
6987
|
|
|
6916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6988
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
6917
6989
|
var preparationId = pipe(string(), minLength(1));
|
|
6918
6990
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
6919
6991
|
var preparationTime = nullable(isoTime);
|
|
@@ -7005,7 +7077,7 @@ var preparationMeeting = strictObject({
|
|
|
7005
7077
|
updated_at: isoTime
|
|
7006
7078
|
});
|
|
7007
7079
|
|
|
7008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7080
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
7009
7081
|
var meetingEvidence = preparationEvidence;
|
|
7010
7082
|
var meetingPersonContext = strictObject({
|
|
7011
7083
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -7027,7 +7099,7 @@ var meetingPersonContext = strictObject({
|
|
|
7027
7099
|
})
|
|
7028
7100
|
});
|
|
7029
7101
|
|
|
7030
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7102
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
7031
7103
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
7032
7104
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
7033
7105
|
var finding2 = variant("kind", [
|
|
@@ -7065,7 +7137,7 @@ var meetingFindings = strictObject({
|
|
|
7065
7137
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
|
|
7066
7138
|
});
|
|
7067
7139
|
|
|
7068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
7069
7141
|
var communicationCoverage = strictObject({
|
|
7070
7142
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
7071
7143
|
query: string(),
|
|
@@ -7110,7 +7182,7 @@ var preparationCommunications = strictObject({
|
|
|
7110
7182
|
}))
|
|
7111
7183
|
});
|
|
7112
7184
|
|
|
7113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7185
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
7114
7186
|
var meetingPreparation = strictObject({
|
|
7115
7187
|
communications: optional(preparationCommunications),
|
|
7116
7188
|
schema_version: literal(1),
|
|
@@ -7223,7 +7295,7 @@ var meetingPreparation = strictObject({
|
|
|
7223
7295
|
})
|
|
7224
7296
|
});
|
|
7225
7297
|
|
|
7226
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7298
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
7227
7299
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
7228
7300
|
var id3 = pipe(string(), minLength(1));
|
|
7229
7301
|
var text3 = string();
|
|
@@ -7287,7 +7359,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
7287
7359
|
})
|
|
7288
7360
|
});
|
|
7289
7361
|
|
|
7290
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7362
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
7291
7363
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
7292
7364
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
7293
7365
|
var meetingSeriesInventory = strictObject({
|
|
@@ -7317,7 +7389,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
7317
7389
|
})
|
|
7318
7390
|
});
|
|
7319
7391
|
|
|
7320
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7392
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
7321
7393
|
var text4 = string();
|
|
7322
7394
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
7323
7395
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -7334,7 +7406,7 @@ var meetingTaskProposal = strictObject({
|
|
|
7334
7406
|
persistence: literal("proposal-only")
|
|
7335
7407
|
});
|
|
7336
7408
|
|
|
7337
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7409
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
7338
7410
|
var memory = strictObject({
|
|
7339
7411
|
ref: reference,
|
|
7340
7412
|
id,
|
|
@@ -7362,7 +7434,7 @@ var memory = strictObject({
|
|
|
7362
7434
|
updated_at: time
|
|
7363
7435
|
});
|
|
7364
7436
|
|
|
7365
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7437
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
7366
7438
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
7367
7439
|
var status = picklist(["found", "linked", "proposed", "dismissed"]);
|
|
7368
7440
|
var mention = strictObject({
|
|
@@ -7406,13 +7478,16 @@ var mentionRebuild = strictObject({
|
|
|
7406
7478
|
mentions: count
|
|
7407
7479
|
});
|
|
7408
7480
|
|
|
7409
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7481
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
7410
7482
|
var operated3 = { operation_id: id, chat_id: id };
|
|
7411
7483
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
7412
7484
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
7413
7485
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
7486
|
+
var scheduledCancellation = strictObject({ ...operated3, cancelled: array(id) });
|
|
7487
|
+
var scheduledSendEntries = { ...operated3, sent: array(id), messages: array(message) };
|
|
7488
|
+
var scheduledSend = strictObject(scheduledSendEntries);
|
|
7414
7489
|
|
|
7415
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7490
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
7416
7491
|
var messageTranscript = strictObject({
|
|
7417
7492
|
message_id: id,
|
|
7418
7493
|
text,
|
|
@@ -7470,7 +7545,7 @@ var evidencePacket = strictObject({
|
|
|
7470
7545
|
}))
|
|
7471
7546
|
});
|
|
7472
7547
|
|
|
7473
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7548
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
7474
7549
|
var messageThread = strictObject({
|
|
7475
7550
|
ref: reference,
|
|
7476
7551
|
chat: id,
|
|
@@ -7487,7 +7562,7 @@ var messageThread = strictObject({
|
|
|
7487
7562
|
});
|
|
7488
7563
|
var messageContext = union([message, messageThread]);
|
|
7489
7564
|
|
|
7490
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7565
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
7491
7566
|
var messageCounts = strictObject({
|
|
7492
7567
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
7493
7568
|
total: count,
|
|
@@ -7500,7 +7575,7 @@ var messageCounts = strictObject({
|
|
|
7500
7575
|
}))
|
|
7501
7576
|
});
|
|
7502
7577
|
|
|
7503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
7504
7579
|
var messageLink = strictObject({
|
|
7505
7580
|
ref: reference,
|
|
7506
7581
|
url: nullable(text),
|
|
@@ -7517,7 +7592,7 @@ var messageLink = strictObject({
|
|
|
7517
7592
|
})))
|
|
7518
7593
|
});
|
|
7519
7594
|
|
|
7520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
7521
7596
|
var savedMessageFile = strictObject({
|
|
7522
7597
|
kind: text,
|
|
7523
7598
|
path: text,
|
|
@@ -7604,7 +7679,7 @@ var messageSyncAll = strictObject({
|
|
|
7604
7679
|
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
7605
7680
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
7606
7681
|
|
|
7607
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7682
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
7608
7683
|
var messageWrite = strictObject({
|
|
7609
7684
|
operation_id: id,
|
|
7610
7685
|
message,
|
|
@@ -7619,7 +7694,7 @@ var draftWrite = strictObject({
|
|
|
7619
7694
|
});
|
|
7620
7695
|
var messageSend = union([messageWrite, draftWrite]);
|
|
7621
7696
|
|
|
7622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7697
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
7623
7698
|
var model = strictObject({
|
|
7624
7699
|
id,
|
|
7625
7700
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -7654,7 +7729,7 @@ var chosenModel = strictObject({
|
|
|
7654
7729
|
estimate_seconds: nullable(count)
|
|
7655
7730
|
});
|
|
7656
7731
|
|
|
7657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7732
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
7658
7733
|
var source = picklist(["environment", "keyring", "file"]);
|
|
7659
7734
|
var modelKey = strictObject({
|
|
7660
7735
|
provider: text,
|
|
@@ -7664,7 +7739,7 @@ var modelKey = strictObject({
|
|
|
7664
7739
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
7665
7740
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
7666
7741
|
|
|
7667
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7742
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
7668
7743
|
var versus = strictObject({ current: number(), previous: number() });
|
|
7669
7744
|
var person = { person_ref: reference, name: nullable(text) };
|
|
7670
7745
|
var graph = strictObject({
|
|
@@ -7698,14 +7773,14 @@ var officialStats = strictObject({
|
|
|
7698
7773
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
7699
7774
|
});
|
|
7700
7775
|
|
|
7701
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
7702
7777
|
var person2 = strictObject({
|
|
7703
7778
|
ref: reference,
|
|
7704
7779
|
name: nullable(text),
|
|
7705
7780
|
identities: optional(array(identity))
|
|
7706
7781
|
});
|
|
7707
7782
|
|
|
7708
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7783
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
7709
7784
|
var poll = strictObject({
|
|
7710
7785
|
chat_id: id,
|
|
7711
7786
|
message_id: id,
|
|
@@ -7721,11 +7796,11 @@ var poll = strictObject({
|
|
|
7721
7796
|
});
|
|
7722
7797
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
7723
7798
|
|
|
7724
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7799
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
7725
7800
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
7726
7801
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
7727
7802
|
|
|
7728
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7803
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
7729
7804
|
var figures = record(string(), number());
|
|
7730
7805
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
7731
7806
|
var rankingRow = strictObject({
|
|
@@ -7772,7 +7847,7 @@ var ranking = strictObject({
|
|
|
7772
7847
|
rows: array(rankingRow)
|
|
7773
7848
|
});
|
|
7774
7849
|
|
|
7775
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7850
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
7776
7851
|
var reaction = strictObject({
|
|
7777
7852
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
7778
7853
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -7780,7 +7855,7 @@ var reaction = strictObject({
|
|
|
7780
7855
|
reacted_at: time
|
|
7781
7856
|
});
|
|
7782
7857
|
|
|
7783
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
7784
7859
|
var reactionChange = strictObject({
|
|
7785
7860
|
operation_id: id,
|
|
7786
7861
|
chat_id: id,
|
|
@@ -7788,7 +7863,7 @@ var reactionChange = strictObject({
|
|
|
7788
7863
|
reaction: nullable(text)
|
|
7789
7864
|
});
|
|
7790
7865
|
|
|
7791
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
7792
7867
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
7793
7868
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
7794
7869
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -7799,7 +7874,7 @@ var recipientChange = strictObject({
|
|
|
7799
7874
|
...partial(recipientOff).entries
|
|
7800
7875
|
});
|
|
7801
7876
|
|
|
7802
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7877
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
7803
7878
|
var events = array(record(string(), unknown()));
|
|
7804
7879
|
var recordedRun = strictObject({
|
|
7805
7880
|
run_id: id,
|
|
@@ -7871,7 +7946,7 @@ var runHit = strictObject({
|
|
|
7871
7946
|
});
|
|
7872
7947
|
var runLocation = strictObject({ path: text });
|
|
7873
7948
|
|
|
7874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7949
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
7875
7950
|
var relationship = strictObject({
|
|
7876
7951
|
id,
|
|
7877
7952
|
from: reference,
|
|
@@ -7898,7 +7973,7 @@ var relationship = strictObject({
|
|
|
7898
7973
|
created_at: time
|
|
7899
7974
|
});
|
|
7900
7975
|
|
|
7901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7976
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
7902
7977
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
7903
7978
|
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
7904
7979
|
var responseTimes = strictObject({
|
|
@@ -7915,7 +7990,7 @@ var waitingChats = strictObject({
|
|
|
7915
7990
|
by_kind: strictObject({ private: count, group: count })
|
|
7916
7991
|
});
|
|
7917
7992
|
|
|
7918
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7993
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
7919
7994
|
var retentionCohort = strictObject({
|
|
7920
7995
|
/** The first day of the joining day or week. */
|
|
7921
7996
|
cohort: text,
|
|
@@ -7963,7 +8038,7 @@ var retention = strictObject({
|
|
|
7963
8038
|
rows: array(retentionCohort)
|
|
7964
8039
|
});
|
|
7965
8040
|
|
|
7966
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8041
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
7967
8042
|
var savedSearch = strictObject({
|
|
7968
8043
|
id,
|
|
7969
8044
|
/** `null` for a run in the history. */
|
|
@@ -7980,7 +8055,7 @@ var savedSearch = strictObject({
|
|
|
7980
8055
|
});
|
|
7981
8056
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
7982
8057
|
|
|
7983
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
7984
8059
|
var sendAttempt = strictObject({
|
|
7985
8060
|
at: time,
|
|
7986
8061
|
profile: text,
|
|
@@ -8008,7 +8083,7 @@ var sendAttempt = strictObject({
|
|
|
8008
8083
|
error_code: optional(text)
|
|
8009
8084
|
});
|
|
8010
8085
|
|
|
8011
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8086
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
8012
8087
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
8013
8088
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
8014
8089
|
var infoSchema = strictObject({
|
|
@@ -8238,7 +8313,7 @@ var storeRepair = union([
|
|
|
8238
8313
|
]);
|
|
8239
8314
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
8240
8315
|
|
|
8241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8316
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
8242
8317
|
var range = strictObject({ from: number(), to: number() });
|
|
8243
8318
|
var storeChatStatus = strictObject({
|
|
8244
8319
|
chat_id: id,
|
|
@@ -8336,7 +8411,7 @@ var storeJobRetry = union([
|
|
|
8336
8411
|
]);
|
|
8337
8412
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
8338
8413
|
|
|
8339
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8414
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
8340
8415
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
8341
8416
|
var storeTable = strictObject({
|
|
8342
8417
|
name: text,
|
|
@@ -8345,7 +8420,7 @@ var storeTable = strictObject({
|
|
|
8345
8420
|
bytes: optional(nullable(count))
|
|
8346
8421
|
});
|
|
8347
8422
|
|
|
8348
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8423
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
8349
8424
|
var tagTarget = variant("type", [
|
|
8350
8425
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
8351
8426
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -8376,7 +8451,7 @@ var automaticTags = strictObject({
|
|
|
8376
8451
|
dry_run: boolean()
|
|
8377
8452
|
});
|
|
8378
8453
|
|
|
8379
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8454
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
8380
8455
|
var tagging = strictObject({
|
|
8381
8456
|
tag: text,
|
|
8382
8457
|
type: picklist(TAG_TYPES),
|
|
@@ -8389,7 +8464,7 @@ var tagging = strictObject({
|
|
|
8389
8464
|
created_at: time
|
|
8390
8465
|
});
|
|
8391
8466
|
|
|
8392
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8467
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
8393
8468
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
8394
8469
|
var taskPair = strictObject({
|
|
8395
8470
|
task: nullable(side),
|
|
@@ -8412,7 +8487,7 @@ var taskPair = strictObject({
|
|
|
8412
8487
|
created_at: time
|
|
8413
8488
|
});
|
|
8414
8489
|
|
|
8415
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8490
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
8416
8491
|
var nullableTime = nullable(time);
|
|
8417
8492
|
var link = strictObject({
|
|
8418
8493
|
id,
|
|
@@ -8586,7 +8661,7 @@ var taskReview = strictObject({
|
|
|
8586
8661
|
untrusted
|
|
8587
8662
|
});
|
|
8588
8663
|
|
|
8589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/template.js
|
|
8590
8665
|
var template = strictObject({
|
|
8591
8666
|
key: text,
|
|
8592
8667
|
channel: picklist(["telegram", "email", "text"]),
|
|
@@ -8598,7 +8673,7 @@ var template = strictObject({
|
|
|
8598
8673
|
updated_by: nullable(text)
|
|
8599
8674
|
});
|
|
8600
8675
|
|
|
8601
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8676
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
8602
8677
|
var topic = strictObject({
|
|
8603
8678
|
id,
|
|
8604
8679
|
title: text,
|
|
@@ -8612,7 +8687,7 @@ var topic = strictObject({
|
|
|
8612
8687
|
untrusted
|
|
8613
8688
|
});
|
|
8614
8689
|
|
|
8615
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
8616
8691
|
var ENTITIES = {
|
|
8617
8692
|
sync_progress: progress,
|
|
8618
8693
|
deal,
|
|
@@ -8646,6 +8721,7 @@ var ENTITIES = {
|
|
|
8646
8721
|
attachments: optional(array(hitFile)),
|
|
8647
8722
|
untrusted
|
|
8648
8723
|
}),
|
|
8724
|
+
// Typed loosely: the inferred type of `ENTITIES` would pass the size the compiler writes out (TS7056).
|
|
8649
8725
|
"message.summary": strictObject({
|
|
8650
8726
|
...pick(message, [
|
|
8651
8727
|
"ref",
|
|
@@ -8668,6 +8744,8 @@ var ENTITIES = {
|
|
|
8668
8744
|
message_pin: messagePin,
|
|
8669
8745
|
message_star: messageStar,
|
|
8670
8746
|
message_deletion: messageDeletion,
|
|
8747
|
+
scheduled_cancellation: scheduledCancellation,
|
|
8748
|
+
scheduled_send: scheduledSend,
|
|
8671
8749
|
message_transcript: messageTranscript,
|
|
8672
8750
|
message_links: messageLinks,
|
|
8673
8751
|
evidence_packet: evidencePacket,
|
|
@@ -8911,7 +8989,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
8911
8989
|
return [name, definition];
|
|
8912
8990
|
})), "entityDefinitions");
|
|
8913
8991
|
|
|
8914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8992
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
8915
8993
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
8916
8994
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
8917
8995
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -8945,7 +9023,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
8945
9023
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
8946
9024
|
}, "answerRow");
|
|
8947
9025
|
|
|
8948
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/command-server-request.js
|
|
8949
9027
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
8950
9028
|
var requests = new AsyncLocalStorage();
|
|
8951
9029
|
var inCommandServerRequest = /* @__PURE__ */ __name((request, work) => requests.run(request, work), "inCommandServerRequest");
|
|
@@ -8960,7 +9038,7 @@ var exitCodeSet = /* @__PURE__ */ __name(() => {
|
|
|
8960
9038
|
return direct;
|
|
8961
9039
|
}, "exitCodeSet");
|
|
8962
9040
|
|
|
8963
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9041
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
8964
9042
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
8965
9043
|
var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
|
|
8966
9044
|
messageId: message2.id,
|
|
@@ -9066,7 +9144,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
9066
9144
|
}, "guardedWrite");
|
|
9067
9145
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
9068
9146
|
|
|
9069
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
9070
9148
|
var named2 = /* @__PURE__ */ __name((work) => {
|
|
9071
9149
|
try {
|
|
9072
9150
|
return work();
|
|
@@ -9093,7 +9171,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named2(() => {
|
|
|
9093
9171
|
return projectFields(value, fields);
|
|
9094
9172
|
}), "projectFields");
|
|
9095
9173
|
|
|
9096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9174
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
9097
9175
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
9098
9176
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
9099
9177
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -9276,7 +9354,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
9276
9354
|
}
|
|
9277
9355
|
}, "withAbort");
|
|
9278
9356
|
|
|
9279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
|
|
9280
9358
|
import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
9281
9359
|
import { join as join2 } from "node:path";
|
|
9282
9360
|
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
|
|
@@ -9365,7 +9443,7 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
|
|
|
9365
9443
|
return readdirSync2(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
|
|
9366
9444
|
}, "registryProfiles");
|
|
9367
9445
|
|
|
9368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9446
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
9369
9447
|
import { existsSync as existsSync3, readdirSync as readdirSync3, readFileSync as readFileSync3 } from "node:fs";
|
|
9370
9448
|
import { join as join3 } from "node:path";
|
|
9371
9449
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -9387,7 +9465,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
9387
9465
|
}, "profilesWithAccounts");
|
|
9388
9466
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
9389
9467
|
|
|
9390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9468
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
9391
9469
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
9392
9470
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
9393
9471
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -9423,7 +9501,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
9423
9501
|
return value;
|
|
9424
9502
|
}, "atDetail");
|
|
9425
9503
|
|
|
9426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9504
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/output.js
|
|
9427
9505
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
9428
9506
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
9429
9507
|
if (other)
|
|
@@ -9487,7 +9565,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
|
|
|
9487
9565
|
}, "warn")
|
|
9488
9566
|
}), "silence");
|
|
9489
9567
|
|
|
9490
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9568
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
9491
9569
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
9492
9570
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
9493
9571
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -9525,7 +9603,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
9525
9603
|
progress: "sync.progress"
|
|
9526
9604
|
};
|
|
9527
9605
|
|
|
9528
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9606
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
9529
9607
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
9530
9608
|
const recording = startRecording(options);
|
|
9531
9609
|
try {
|
|
@@ -9740,7 +9818,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
9740
9818
|
return void 0;
|
|
9741
9819
|
}, "partialOutcome");
|
|
9742
9820
|
|
|
9743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9821
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
9744
9822
|
var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
9745
9823
|
if (ms2 === void 0)
|
|
9746
9824
|
return body();
|
|
@@ -9766,7 +9844,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
|
9766
9844
|
}
|
|
9767
9845
|
}, "withDeadline");
|
|
9768
9846
|
|
|
9769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9847
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
9770
9848
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
9771
9849
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
9772
9850
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -9835,10 +9913,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
9835
9913
|
return void 0;
|
|
9836
9914
|
}, "sampleCommand");
|
|
9837
9915
|
|
|
9838
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9916
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
9839
9917
|
import { existsSync as existsSync5 } from "node:fs";
|
|
9840
9918
|
|
|
9841
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
9842
9920
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
9843
9921
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
9844
9922
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -9907,7 +9985,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
9907
9985
|
};
|
|
9908
9986
|
}, "modelTarget");
|
|
9909
9987
|
|
|
9910
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9988
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
9911
9989
|
var model2 = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
9912
9990
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
9913
9991
|
var AI_FIELDS = {
|
|
@@ -9951,7 +10029,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
9951
10029
|
};
|
|
9952
10030
|
}, "resolveAISettings");
|
|
9953
10031
|
|
|
9954
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
9955
10033
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
9956
10034
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
9957
10035
|
var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
@@ -9965,7 +10043,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
|
9965
10043
|
return ms2;
|
|
9966
10044
|
}, "parseDuration");
|
|
9967
10045
|
|
|
9968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10046
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
9969
10047
|
var HISTORY_MAX_DAYS = 1095;
|
|
9970
10048
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
9971
10049
|
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -10012,7 +10090,7 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
10012
10090
|
return { batch: { ...batch, messages }, skipped };
|
|
10013
10091
|
}, "limitBatch");
|
|
10014
10092
|
|
|
10015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10093
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
10016
10094
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
10017
10095
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
10018
10096
|
var SECTIONS = ["personal", "bot"];
|
|
@@ -10307,7 +10385,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
10307
10385
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
10308
10386
|
}, "readConfigFile");
|
|
10309
10387
|
|
|
10310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10388
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
10311
10389
|
import { existsSync as existsSync4, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync } from "node:fs";
|
|
10312
10390
|
import { dirname as dirname2, join as join4 } from "node:path";
|
|
10313
10391
|
var DEFAULT_CONFIG = {
|
|
@@ -10336,7 +10414,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
10336
10414
|
}
|
|
10337
10415
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
10338
10416
|
|
|
10339
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10417
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
|
|
10340
10418
|
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
10341
10419
|
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
10342
10420
|
const path2 = key.split(".");
|
|
@@ -10358,7 +10436,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
|
|
|
10358
10436
|
return { config, added };
|
|
10359
10437
|
}, "withSettingDefaults");
|
|
10360
10438
|
|
|
10361
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
10362
10440
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
10363
10441
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
10364
10442
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -10886,7 +10964,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
10886
10964
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
10887
10965
|
}, "given");
|
|
10888
10966
|
|
|
10889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10967
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
10890
10968
|
var setExitCode = /* @__PURE__ */ __name((command, code) => {
|
|
10891
10969
|
const slot = environmentOf(command).exit;
|
|
10892
10970
|
const request = commandServerRequest();
|
|
@@ -10902,9 +10980,17 @@ var provide = /* @__PURE__ */ __name((program2, environment) => {
|
|
|
10902
10980
|
environments.set(program2, environment);
|
|
10903
10981
|
}, "provide");
|
|
10904
10982
|
var environmentOf = /* @__PURE__ */ __name((command) => environments.get(rootOf(command)) ?? {}, "environmentOf");
|
|
10983
|
+
var PAGING = ["page", "limit", "all"];
|
|
10984
|
+
var withoutOwnPaging = /* @__PURE__ */ __name((command, flags) => {
|
|
10985
|
+
if (metaOf(command).origin !== "generated")
|
|
10986
|
+
return flags;
|
|
10987
|
+
const own = PAGING.filter((name) => command.options.some((option) => option.attributeName() === name));
|
|
10988
|
+
return own.length > 0 ? Object.fromEntries(Object.entries(flags).filter(([name]) => !own.includes(name))) : flags;
|
|
10989
|
+
}, "withoutOwnPaging");
|
|
10905
10990
|
var withAgentLevels = /* @__PURE__ */ __name((command, flags) => {
|
|
10906
10991
|
const overrides = environmentOf(command).agent?.overrides ?? [];
|
|
10907
|
-
|
|
10992
|
+
const read = withoutOwnPaging(command, flags);
|
|
10993
|
+
return overrides.length > 0 ? { ...read, permission: [...overrides, ...read.permission ?? []] } : read;
|
|
10908
10994
|
}, "withAgentLevels");
|
|
10909
10995
|
var secretInputOf = /* @__PURE__ */ __name((command) => {
|
|
10910
10996
|
const { stdin, stderr } = environmentOf(command);
|
|
@@ -11022,7 +11108,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
11022
11108
|
return words.join(" ");
|
|
11023
11109
|
}, "commandPath");
|
|
11024
11110
|
|
|
11025
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11111
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
11026
11112
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
11027
11113
|
var FETCH = { remote: "read", local: "write" };
|
|
11028
11114
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -11058,7 +11144,12 @@ var destroysNothing = /* @__PURE__ */ __name((command) => {
|
|
|
11058
11144
|
KEPT_UNDER_LOCK.add(command);
|
|
11059
11145
|
return command;
|
|
11060
11146
|
}, "destroysNothing");
|
|
11061
|
-
var PROPOSE_COMMANDS = [
|
|
11147
|
+
var PROPOSE_COMMANDS = [
|
|
11148
|
+
"messages acknowledge",
|
|
11149
|
+
"mail findings add",
|
|
11150
|
+
"projects actions add",
|
|
11151
|
+
"meetings actions add"
|
|
11152
|
+
];
|
|
11062
11153
|
var PROPOSES = /* @__PURE__ */ new WeakSet();
|
|
11063
11154
|
var isProposal = /* @__PURE__ */ __name((command) => {
|
|
11064
11155
|
if (!PROPOSES.has(command))
|
|
@@ -11162,7 +11253,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
11162
11253
|
throw readOnlyRefusal(lock, what);
|
|
11163
11254
|
}, "refuseUnderReadOnly");
|
|
11164
11255
|
|
|
11165
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11256
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
11166
11257
|
import { join as join5 } from "node:path";
|
|
11167
11258
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
11168
11259
|
var IMAGE_MODELS = [
|
|
@@ -11216,7 +11307,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
11216
11307
|
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join5(directory, model3.id, file.name)]), "placedImage");
|
|
11217
11308
|
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
11218
11309
|
|
|
11219
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11310
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
11220
11311
|
var STEPS2 = defineSteps([
|
|
11221
11312
|
...STEPS,
|
|
11222
11313
|
{
|
|
@@ -11506,7 +11597,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
11506
11597
|
].join(" ");
|
|
11507
11598
|
}, "stepLine");
|
|
11508
11599
|
|
|
11509
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11600
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
11510
11601
|
var where = [{ field: "ref" }];
|
|
11511
11602
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
11512
11603
|
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
@@ -11598,7 +11689,7 @@ var STATUS_ROWS = {
|
|
|
11598
11689
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
11599
11690
|
};
|
|
11600
11691
|
|
|
11601
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11692
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
11602
11693
|
var TEXT_CHARS = 400;
|
|
11603
11694
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
11604
11695
|
var messageRow = {
|
|
@@ -11966,7 +12057,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
11966
12057
|
return lines.concat(footerOf(body)).join("\n");
|
|
11967
12058
|
}, "compactText");
|
|
11968
12059
|
|
|
11969
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12060
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
11970
12061
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
11971
12062
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
11972
12063
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -12024,7 +12115,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
12024
12115
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
12025
12116
|
}, "largeAnswerSteps");
|
|
12026
12117
|
|
|
12027
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
12028
12119
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
12029
12120
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
12030
12121
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -12038,7 +12129,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
12038
12129
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
12039
12130
|
}, "strip");
|
|
12040
12131
|
|
|
12041
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/untrusted-marks.js
|
|
12042
12133
|
var OPEN = "\u27E6";
|
|
12043
12134
|
var CLOSE = "\u27E7";
|
|
12044
12135
|
var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -12047,6 +12138,10 @@ var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
|
|
|
12047
12138
|
const mark = ancestorValue(envName(app, "UNTRUSTED_MARK"), env);
|
|
12048
12139
|
return mark && /^[0-9a-f]{16}$/.test(mark) ? mark : void 0;
|
|
12049
12140
|
}, "untrustedMarkOf");
|
|
12141
|
+
var runMarkOf = /* @__PURE__ */ __name((command) => {
|
|
12142
|
+
const { app, env } = environmentOf(command);
|
|
12143
|
+
return app ? untrustedMarkOf(app, env ?? process.env) : void 0;
|
|
12144
|
+
}, "runMarkOf");
|
|
12050
12145
|
var marked = /* @__PURE__ */ __name((text5, mark, source2, id6) => {
|
|
12051
12146
|
const inside = text5.replaceAll(OPEN, "").replaceAll(CLOSE, "").replaceAll(mark, "");
|
|
12052
12147
|
const named3 = id6 === void 0 ? "" : ` id=${id6.replaceAll(OPEN, "").replaceAll(CLOSE, "").replace(/\s/g, "")}`;
|
|
@@ -12122,7 +12217,7 @@ var withFieldsMarked = /* @__PURE__ */ __name((value, fields, mark, id6) => {
|
|
|
12122
12217
|
return result;
|
|
12123
12218
|
}, "withFieldsMarked");
|
|
12124
12219
|
|
|
12125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12220
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
12126
12221
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
12127
12222
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
12128
12223
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -12252,8 +12347,7 @@ var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams,
|
|
|
12252
12347
|
const root = rootOf2(command);
|
|
12253
12348
|
const runnableSteps = runnable(root, body.next);
|
|
12254
12349
|
const next = environmentOf(command).agent ? runnableSteps : withLines(root, runnableSteps);
|
|
12255
|
-
const
|
|
12256
|
-
const mark = app ? untrustedMarkOf(app, env ?? process.env) : void 0;
|
|
12350
|
+
const mark = runMarkOf(command);
|
|
12257
12351
|
const declared = untrustedFieldsOf(command);
|
|
12258
12352
|
const shown = mark === void 0 ? body : withUntrustedMarked(declared ? withFieldsMarked(body, declared, mark) : body, mark);
|
|
12259
12353
|
const kept = withoutProviderRefs({ ...shown, ...next.length > 0 ? { next } : {} });
|
|
@@ -12459,6 +12553,7 @@ export {
|
|
|
12459
12553
|
setExitCode,
|
|
12460
12554
|
provide,
|
|
12461
12555
|
environmentOf,
|
|
12556
|
+
withoutOwnPaging,
|
|
12462
12557
|
withAgentLevels,
|
|
12463
12558
|
secretInputOf,
|
|
12464
12559
|
outputFieldsOf,
|
|
@@ -12512,6 +12607,8 @@ export {
|
|
|
12512
12607
|
stepLine,
|
|
12513
12608
|
tooLargeSteps,
|
|
12514
12609
|
withoutProviderRefs,
|
|
12610
|
+
runMarkOf,
|
|
12611
|
+
withUntrustedMarked,
|
|
12515
12612
|
marksUntrusted,
|
|
12516
12613
|
answerSchema,
|
|
12517
12614
|
listOf,
|