@wirecat/notion-cli 0.4.0 → 0.6.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/CHANGELOG.md +58 -0
- package/README.md +5 -0
- package/contracts/wirecat.json +55 -2
- package/dist/bin/notion.js +2 -2
- package/dist/bundle/agent-ILG6AH7S.js +42 -0
- package/dist/bundle/{all-profiles-4IONYZB6.js → all-profiles-AELHUTFU.js} +64 -21
- package/dist/bundle/{anthropic-OXF74J4P.js → anthropic-3CCYAGO3.js} +6 -6
- package/dist/bundle/{app-server-M2VF6ABM.js → app-server-DJ6P4NY4.js} +86 -65
- package/dist/bundle/{bun-DLA6QRLL.js → bun-2FLR4IV4.js} +2 -2
- package/dist/bundle/{bun-sqlite-F4BYLW3F.js → bun-sqlite-QB6CU6TH.js} +7 -7
- package/dist/bundle/chunk-2CMLY2X3.js +72 -0
- package/dist/bundle/{chunk-TZ2QJ53V.js → chunk-2XUV7HNE.js} +2 -2
- package/dist/bundle/{chunk-6JBLIQQN.js → chunk-2Z7UOXFC.js} +1 -1
- package/dist/bundle/{chunk-6GN7KU7X.js → chunk-3LMW7U7F.js} +22 -10
- package/dist/bundle/chunk-3MYN2RMG.js +398 -0
- package/dist/bundle/{chunk-YFWLHTNO.js → chunk-3UX4VJWD.js} +1 -1
- package/dist/bundle/chunk-4HP6KGBI.js +32 -0
- package/dist/bundle/{chunk-4KUJTSHG.js → chunk-4RFR4J2O.js} +2 -2
- package/dist/bundle/{chunk-OCDJ4FFA.js → chunk-4VXXOJ2F.js} +4 -4
- package/dist/bundle/chunk-4ZAQMDLD.js +1308 -0
- package/dist/bundle/chunk-4ZTB7LS3.js +87 -0
- package/dist/bundle/{chunk-P3P6DA6K.js → chunk-5OJLUUOJ.js} +6 -6
- package/dist/bundle/{chunk-T5UNSFES.js → chunk-5XPHFV7H.js} +35 -12
- package/dist/bundle/{chunk-KL3P5TQK.js → chunk-6EJCI47L.js} +4 -4
- package/dist/bundle/chunk-6VPC5Z56.js +2145 -0
- package/dist/bundle/{chunk-IJMFG7HB.js → chunk-6YOMPW7Y.js} +10 -8
- package/dist/bundle/{chunk-7NF3V5L2.js → chunk-7JVKQ6NM.js} +4 -4
- package/dist/bundle/chunk-7L2XOKDZ.js +353 -0
- package/dist/bundle/{chunk-TXONV3HW.js → chunk-A42T4YX7.js} +3 -3
- package/dist/bundle/chunk-AE4VW4NB.js +50 -0
- package/dist/bundle/chunk-AV2ZJ4WX.js +7 -0
- package/dist/bundle/{chunk-L6H7PY4X.js → chunk-AZLDR36U.js} +3 -3
- package/dist/bundle/{chunk-TFNRCCGR.js → chunk-BAXNAOOL.js} +4 -4
- package/dist/bundle/{chunk-QX3TPFEX.js → chunk-BEV5LO4D.js} +110 -862
- package/dist/bundle/{chunk-UROEWCOG.js → chunk-BQBC2WIG.js} +1 -65
- package/dist/bundle/{chunk-NO2LIHWA.js → chunk-CFQQTDSA.js} +1 -1
- package/dist/bundle/chunk-CHPWBQUK.js +39 -0
- package/dist/bundle/chunk-CL3YNUCC.js +388 -0
- package/dist/bundle/{chunk-WHJWURZB.js → chunk-DGMTSDKB.js} +6 -6
- package/dist/bundle/{chunk-HTKSCSJU.js → chunk-DHVVXQEL.js} +4 -4
- package/dist/bundle/chunk-DIU2QJJF.js +785 -0
- package/dist/bundle/chunk-DQSOYH6N.js +20 -0
- package/dist/bundle/chunk-ECYOTDJM.js +14 -0
- package/dist/bundle/{chunk-Z53LYX4M.js → chunk-EHW45LLT.js} +3 -3
- package/dist/bundle/{chunk-XCTOCVMW.js → chunk-ERN53B3Z.js} +32 -24
- package/dist/bundle/{chunk-CDGZZNGY.js → chunk-ESZHGC4Q.js} +38 -8
- package/dist/bundle/{chunk-RMJMID5D.js → chunk-EZMG5QXB.js} +8 -8
- package/dist/bundle/chunk-F4BX7TH2.js +15 -0
- package/dist/bundle/{chunk-Y5LAJWR5.js → chunk-F5ZAN7OC.js} +1 -1
- package/dist/bundle/{chunk-2MHMKNWD.js → chunk-FMMYBVCH.js} +1 -1
- package/dist/bundle/{chunk-WZEEEQGC.js → chunk-FRB2L7OE.js} +3 -3
- package/dist/bundle/chunk-FV4WTZCU.js +561 -0
- package/dist/bundle/{chunk-BEPFGITI.js → chunk-G4ZU73SD.js} +101 -80
- package/dist/bundle/{chunk-5XP4KQ2F.js → chunk-GCAJW4SR.js} +1 -1
- package/dist/bundle/{chunk-FEMHUSGO.js → chunk-GPRJXJC7.js} +15 -1
- package/dist/bundle/chunk-GUIQJUJV.js +340 -0
- package/dist/bundle/{chunk-M2EEIYBU.js → chunk-HHEWTLAT.js} +2 -2
- package/dist/bundle/{chunk-LIQMUDIZ.js → chunk-HM6AMYHR.js} +2 -2
- package/dist/bundle/{chunk-TJCPTRYD.js → chunk-HOVHE3A3.js} +7 -7
- package/dist/bundle/{chunk-YAPDU3SV.js → chunk-HVXOA4FO.js} +1 -1
- package/dist/bundle/{chunk-D6RCRBDH.js → chunk-IJVTN5L3.js} +2 -2
- package/dist/bundle/{chunk-CIVXTBJY.js → chunk-IURYZSG3.js} +39 -52
- package/dist/bundle/chunk-JFSVAOA7.js +108 -0
- package/dist/bundle/{chunk-FSJHASRQ.js → chunk-JVESLS7B.js} +611 -572
- package/dist/bundle/chunk-K5IC4FZN.js +36 -0
- package/dist/bundle/chunk-KB35BVTG.js +30 -0
- package/dist/bundle/chunk-KGAUINBO.js +594 -0
- package/dist/bundle/{chunk-AYU5TFDU.js → chunk-KNCPBX5P.js} +85 -76
- package/dist/bundle/{chunk-GSNE7OB4.js → chunk-KZJQPJK5.js} +4 -4
- package/dist/bundle/chunk-L7P3LUDQ.js +286 -0
- package/dist/bundle/{chunk-M6DGZ2O6.js → chunk-LC6WE6JS.js} +9 -9
- package/dist/bundle/{chunk-YGCI3DHS.js → chunk-LECMHK2F.js} +1 -1
- package/dist/bundle/chunk-LQVDFD65.js +72 -0
- package/dist/bundle/chunk-MEYYH47C.js +25 -0
- package/dist/bundle/chunk-NMQRSEZM.js +37 -0
- package/dist/bundle/{chunk-K5I64ZVI.js → chunk-NSR43UEW.js} +7 -64
- package/dist/bundle/{chunk-GK4GLPG2.js → chunk-OEQNP56V.js} +2 -100
- package/dist/bundle/{chunk-MGUEZYFA.js → chunk-OLAGFJDM.js} +13 -2143
- package/dist/bundle/{chunk-MRA62W5K.js → chunk-P27NDZQR.js} +255 -563
- package/dist/bundle/{chunk-GBFEEHQC.js → chunk-PHKED7AG.js} +8 -225
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/{chunk-JODE2XED.js → chunk-Q7EIL6VU.js} +43 -33
- package/dist/bundle/{chunk-4TQVZXOV.js → chunk-QEJFBORC.js} +3 -3
- package/dist/bundle/{chunk-ZC6ZQQ55.js → chunk-QGGRFRMP.js} +65 -49
- package/dist/bundle/{chunk-JIRRF6BM.js → chunk-RD7BKTWV.js} +4 -4
- package/dist/bundle/chunk-RXU5T5NM.js +714 -0
- package/dist/bundle/{chunk-MVA5HVKL.js → chunk-S4UUN6LD.js} +18 -0
- package/dist/bundle/{chunk-7NGFGFE5.js → chunk-SAPP2LEH.js} +10 -10
- package/dist/bundle/{chunk-COH7OEER.js → chunk-SEAGUFBX.js} +12 -12
- package/dist/bundle/{chunk-5LBJNTEJ.js → chunk-STTO2MSY.js} +43 -64
- package/dist/bundle/{chunk-5UA2TYMI.js → chunk-T37TAXVL.js} +2 -2
- package/dist/bundle/{chunk-R6SDRSZK.js → chunk-T6XIBULH.js} +139 -571
- package/dist/bundle/chunk-TFT4FVRU.js +67 -0
- package/dist/bundle/chunk-TRYYWV7J.js +291 -0
- package/dist/bundle/{chunk-KFVDL2QS.js → chunk-UC7JLE6J.js} +1 -89
- package/dist/bundle/{chunk-SGBS5QCU.js → chunk-UOC52GCB.js} +4 -4
- package/dist/bundle/chunk-UPL474OW.js +94 -0
- package/dist/bundle/chunk-VH7526NL.js +80 -0
- package/dist/bundle/chunk-VNWF4I7E.js +34 -0
- package/dist/bundle/chunk-W2VQDIU5.js +221 -0
- package/dist/bundle/{chunk-EQPAZ33O.js → chunk-WAGADES3.js} +19 -19
- package/dist/bundle/{chunk-WU3XHGOB.js → chunk-WAU5LSHP.js} +81 -438
- package/dist/bundle/{chunk-FIHXADRF.js → chunk-WB2KSQIP.js} +4 -4
- package/dist/bundle/{chunk-OI5DWZJG.js → chunk-WGZH2M64.js} +3 -3
- package/dist/bundle/chunk-WVN2KTNS.js +52 -0
- package/dist/bundle/{chunk-UKE3CGHK.js → chunk-XYQVVW4R.js} +1 -1
- package/dist/bundle/{chunk-7NVPM55S.js → chunk-YDDI4QIT.js} +2203 -1808
- package/dist/bundle/chunk-YHWFF6DN.js +39 -0
- package/dist/bundle/{chunk-7YZPBAQX.js → chunk-YUDVRFXN.js} +1 -1
- package/dist/bundle/{chunk-EY6S7FV3.js → chunk-YXYZAWWW.js} +6 -6
- package/dist/bundle/{chunk-GCCPFKSU.js → chunk-YYQ5GKAI.js} +9532 -10735
- package/dist/bundle/chunk-ZDYEOE7L.js +2366 -0
- package/dist/bundle/command-contract-L2FASWD6.js +41 -0
- package/dist/bundle/{command-server-entry-2SORMVRM.js → command-server-entry-VUR6WL77.js} +30 -27
- package/dist/bundle/{decode-5O7IEFPN.js → decode-I64PF2RM.js} +6 -6
- package/dist/bundle/{definitions-M3U4UYHN.js → definitions-MB65223J.js} +72 -18
- package/dist/bundle/{dispatch-YHQX6FEJ.js → dispatch-JQBAZWCL.js} +8 -8
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/{echarts-ARLMVQC7.js → echarts-YRRVLEX3.js} +2 -2
- package/dist/bundle/{embed-FUDUKQ3K.js → embed-BLXLKMK2.js} +7 -7
- package/dist/bundle/{embedder-HDRV7GX3.js → embedder-JYGF6R7I.js} +10 -10
- package/dist/bundle/{failure-JHXICWIL.js → failure-I6AAF5R5.js} +3 -3
- package/dist/bundle/first-run-YLDOZGY6.js +29 -0
- package/dist/bundle/first-screen-GZH3LMLZ.js +41 -0
- package/dist/bundle/hast-util-from-html-X2DCPS3T.js +10531 -0
- package/dist/bundle/hast-util-to-html-IIFHILP5.js +998 -0
- package/dist/bundle/hast-util-to-mdast-3CSMIWK2.js +2272 -0
- package/dist/bundle/{instructions-MEFIKCDI.js → instructions-AG7SRWTR.js} +1 -1
- package/dist/bundle/{mcp-VMS6PBCU.js → mcp-YGOAUNC3.js} +2 -2
- package/dist/bundle/{mdast-util-from-markdown-R66F4HZA.js → mdast-util-from-markdown-XCR5KW5S.js} +138 -195
- package/dist/bundle/{mdast-util-gfm-LN2ELINH.js → mdast-util-gfm-JO7PHUIB.js} +28 -357
- package/dist/bundle/mdast-util-to-hast-AYJV7KAE.js +879 -0
- package/dist/bundle/mdast-util-to-markdown-DOXGHRI7.js +1854 -0
- package/dist/bundle/meeting-combined-OFQSGKBG.js +25 -0
- package/dist/bundle/meeting-model-K6NSX3O5.js +27 -0
- package/dist/bundle/{meeting-semantic-R4CSLVRG.js → meeting-semantic-3DZPHM7L.js} +7 -7
- package/dist/bundle/{micromark-extension-gfm-5X7YT43T.js → micromark-extension-gfm-PQ7DWZM7.js} +12 -78
- package/dist/bundle/{node-MAQALPLA.js → node-GJQYN4FT.js} +2 -2
- package/dist/bundle/{node-sqlite-J7IJYNBO.js → node-sqlite-7VXIRQPH.js} +8 -8
- package/dist/bundle/notes-search-ACDOPTNH.js +64 -0
- package/dist/bundle/notion.js +14 -14
- package/dist/bundle/oauth-N67CH2TK.js +20 -0
- package/dist/bundle/{open-AB27MTGR.js → open-JGXVHIKO.js} +6 -6
- package/dist/bundle/{openai-D77MU5XV.js → openai-PFQJTF4H.js} +21 -18
- package/dist/bundle/{process-SIOWTRJ6.js → process-MEKCZMX3.js} +1 -1
- package/dist/bundle/{program-7K34KI27.js → program-DUJYLJH5.js} +6947 -6532
- package/dist/bundle/{prompt-W77YDHA6.js → prompt-FW44QDHD.js} +6 -6
- package/dist/bundle/{recognize-3JAXQQ36.js → recognize-62TDQ6A7.js} +5 -5
- package/dist/bundle/{remote-PSOJXCXO.js → remote-7ONFD7GG.js} +12 -11
- package/dist/bundle/{rerank-EE44ZTGL.js → rerank-YOHQQJS4.js} +8 -8
- package/dist/bundle/{schemas-LBYUMBC6.js → schemas-IIGJ7DOP.js} +39 -60
- package/dist/bundle/{serve-XJMGAMFW.js → serve-ZCXGT5RB.js} +11 -11
- package/dist/bundle/{server-ASU6CP5R.js → server-RQ74M637.js} +78 -56
- package/dist/bundle/server-XMZF57WM.js +90 -0
- package/dist/bundle/{services-PT4PA4J6.js → services-FWBRZ57M.js} +105 -90
- package/dist/bundle/{sqlite-runtime-YHXRTVXE.js → sqlite-runtime-ZZBNGV5L.js} +7 -7
- package/dist/bundle/{state-T6ZKFWGD.js → state-GDDFO62Y.js} +7 -7
- package/dist/bundle/{store-E5EE25FY.js → store-D2LRIWEI.js} +24 -20
- package/dist/bundle/{store-3MUCZEI3.js → store-KQCLR57N.js} +32 -18
- package/dist/bundle/store-maintenance-command-CK2MU5M6.js +77 -0
- package/dist/bundle/surface-K4TPIQW7.js +76 -0
- package/dist/commands/account.d.ts +3 -0
- package/dist/commands/account.d.ts.map +1 -0
- package/dist/commands/account.js +22 -0
- package/dist/commands/account.js.map +1 -0
- package/dist/commands/api.d.ts +7 -2
- package/dist/commands/api.d.ts.map +1 -1
- package/dist/commands/api.js +19 -119
- package/dist/commands/api.js.map +1 -1
- package/dist/commands/library.d.ts.map +1 -1
- package/dist/commands/library.js +16 -5
- package/dist/commands/library.js.map +1 -1
- package/dist/config.d.ts +11 -13
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +63 -54
- package/dist/config.js.map +1 -1
- package/dist/generated/definitions.d.ts.map +1 -1
- package/dist/generated/definitions.js +72 -18
- package/dist/generated/definitions.js.map +1 -1
- package/dist/generated/manifest.d.ts +4 -1
- package/dist/generated/manifest.d.ts.map +1 -1
- package/dist/generated/manifest.js +69 -0
- package/dist/generated/manifest.js.map +1 -1
- package/dist/generated/schemas.d.ts.map +1 -1
- package/dist/generated/schemas.js +32 -32
- package/dist/generated/schemas.js.map +1 -1
- package/dist/generated/types.d.ts +125 -25
- package/dist/generated/types.d.ts.map +1 -1
- package/dist/knowledge.d.ts +1 -0
- package/dist/knowledge.d.ts.map +1 -1
- package/dist/knowledge.js +68 -2
- package/dist/knowledge.js.map +1 -1
- package/dist/library.d.ts +12 -1
- package/dist/library.d.ts.map +1 -1
- package/dist/library.js +35 -1
- package/dist/library.js.map +1 -1
- package/dist/notion/port.d.ts.map +1 -1
- package/dist/notion/port.js +1 -0
- package/dist/notion/port.js.map +1 -1
- package/dist/notion/reads.d.ts +13 -1
- package/dist/notion/reads.d.ts.map +1 -1
- package/dist/notion/reads.js +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +19 -2
- package/dist/program.js.map +1 -1
- package/dist/sync/files.d.ts +19 -0
- package/dist/sync/files.d.ts.map +1 -1
- package/dist/sync/files.js.map +1 -1
- package/dist/sync/source.d.ts +1 -1
- package/dist/sync/source.d.ts.map +1 -1
- package/dist/sync/source.js +60 -55
- package/dist/sync/source.js.map +1 -1
- package/dist/sync/users.d.ts +22 -0
- package/dist/sync/users.d.ts.map +1 -0
- package/dist/sync/users.js +111 -0
- package/dist/sync/users.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/dist/bundle/chunk-L62XTC7N.js +0 -726
- package/dist/bundle/chunk-SHTHNBHG.js +0 -2
- package/dist/bundle/command-contract-UBXS6NHI.js +0 -38
- package/dist/bundle/first-run-BGEFTXOE.js +0 -29
- package/dist/bundle/first-screen-F5F3VS6Y.js +0 -38
- package/dist/bundle/meeting-combined-HNSS3FQY.js +0 -24
- package/dist/bundle/meeting-model-REZVYGQW.js +0 -26
- package/dist/bundle/oauth-AMV4YGJD.js +0 -20
- package/dist/bundle/server-WSPQ5EOA.js +0 -72
- package/dist/bundle/store-maintenance-command-ZZ55BBBG.js +0 -63
|
@@ -9,20 +9,32 @@ import {
|
|
|
9
9
|
providerErrorKey,
|
|
10
10
|
renderEvent,
|
|
11
11
|
runContextOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6YOMPW7Y.js";
|
|
13
13
|
import {
|
|
14
14
|
permissionCeiling
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QEJFBORC.js";
|
|
16
|
+
import {
|
|
17
|
+
IMAGE_MODELS,
|
|
18
|
+
ancestorValue,
|
|
19
|
+
envName,
|
|
20
|
+
modelSettingsShape,
|
|
21
|
+
readOnlyLockOf,
|
|
22
|
+
readOnlyRefusal,
|
|
23
|
+
resolveModelSettings,
|
|
24
|
+
runBudget,
|
|
25
|
+
stopWrites,
|
|
26
|
+
withWriteScope
|
|
27
|
+
} from "./chunk-3MYN2RMG.js";
|
|
16
28
|
import {
|
|
17
29
|
DEFAULT_RERANK_MODEL,
|
|
18
30
|
RERANK_MODELS
|
|
19
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-DGMTSDKB.js";
|
|
20
32
|
import {
|
|
21
33
|
carries
|
|
22
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-YUDVRFXN.js";
|
|
23
35
|
import {
|
|
24
36
|
note
|
|
25
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-DHVVXQEL.js";
|
|
26
38
|
import {
|
|
27
39
|
BUSINESS_KINDS,
|
|
28
40
|
CATEGORIES,
|
|
@@ -34,11 +46,8 @@ import {
|
|
|
34
46
|
FINANCE_REVIEWS,
|
|
35
47
|
INVOICE_DIRECTIONS,
|
|
36
48
|
INVOICE_STATUSES,
|
|
37
|
-
KEEP_STORE_RUNS_FOR_DAYS,
|
|
38
|
-
KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
|
|
39
49
|
LINK_KINDS,
|
|
40
50
|
LINK_SOURCES,
|
|
41
|
-
LOG_ATTRIBUTES,
|
|
42
51
|
MEMORY_KINDS,
|
|
43
52
|
MEMORY_SCOPES,
|
|
44
53
|
MEMORY_STATUSES,
|
|
@@ -47,7 +56,6 @@ import {
|
|
|
47
56
|
ORDER_STATUSES,
|
|
48
57
|
PRIORITY_LABELS,
|
|
49
58
|
RELATION_KINDS,
|
|
50
|
-
RUNS_SIZE_LIMIT_MB,
|
|
51
59
|
STANDINGS,
|
|
52
60
|
TASK_KINDS,
|
|
53
61
|
TASK_ORIGINS,
|
|
@@ -56,38 +64,44 @@ import {
|
|
|
56
64
|
TASK_VERDICTS,
|
|
57
65
|
WORK_TASK_TYPES,
|
|
58
66
|
author,
|
|
59
|
-
childTrace,
|
|
60
67
|
count,
|
|
61
|
-
currentRun,
|
|
62
|
-
enclosingTraceId,
|
|
63
68
|
evidenceSource,
|
|
64
69
|
id,
|
|
65
|
-
inRun,
|
|
66
|
-
logAttributes,
|
|
67
70
|
markStoreDamaged,
|
|
68
|
-
newRunId,
|
|
69
71
|
organization,
|
|
70
72
|
project,
|
|
71
73
|
providerMetadata,
|
|
72
74
|
reminder,
|
|
73
|
-
runsDirFor,
|
|
74
|
-
snakeLogger,
|
|
75
75
|
sourceReview,
|
|
76
|
-
startRun,
|
|
77
76
|
text,
|
|
78
77
|
time,
|
|
78
|
+
untrusted
|
|
79
|
+
} from "./chunk-DIU2QJJF.js";
|
|
80
|
+
import {
|
|
81
|
+
KEEP_STORE_RUNS_FOR_DAYS,
|
|
82
|
+
KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
|
|
83
|
+
LOG_ATTRIBUTES,
|
|
84
|
+
RUNS_SIZE_LIMIT_MB,
|
|
85
|
+
childTrace,
|
|
86
|
+
currentRun,
|
|
87
|
+
enclosingTraceId,
|
|
88
|
+
inRun,
|
|
89
|
+
logAttributes,
|
|
90
|
+
newRunId,
|
|
91
|
+
runsDirFor,
|
|
92
|
+
snakeLogger,
|
|
93
|
+
startRun,
|
|
79
94
|
traceOf,
|
|
80
95
|
typedCommand,
|
|
81
|
-
untrusted,
|
|
82
96
|
useAsProcessRun
|
|
83
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-BEV5LO4D.js";
|
|
84
98
|
import {
|
|
85
99
|
isCliFailure,
|
|
86
100
|
storeDamaged
|
|
87
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-LQVDFD65.js";
|
|
88
102
|
import {
|
|
89
103
|
TAG_TYPES
|
|
90
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-T37TAXVL.js";
|
|
91
105
|
import {
|
|
92
106
|
FACT_TYPES,
|
|
93
107
|
FIELD_TYPES,
|
|
@@ -115,21 +129,17 @@ import {
|
|
|
115
129
|
parseLucene,
|
|
116
130
|
readsZone,
|
|
117
131
|
timezoneOf
|
|
118
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-JVESLS7B.js";
|
|
119
133
|
import {
|
|
120
134
|
endpoint
|
|
121
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-FRB2L7OE.js";
|
|
122
136
|
import {
|
|
123
137
|
repairConfigText,
|
|
124
138
|
sharedConfigPath
|
|
125
|
-
} from "./chunk-
|
|
126
|
-
import {
|
|
127
|
-
filesPresent,
|
|
128
|
-
sharedModelsDirectory
|
|
129
|
-
} from "./chunk-JIRRF6BM.js";
|
|
139
|
+
} from "./chunk-HOVHE3A3.js";
|
|
130
140
|
import {
|
|
131
141
|
storePath
|
|
132
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-HHEWTLAT.js";
|
|
133
143
|
import {
|
|
134
144
|
configFilePath,
|
|
135
145
|
createRecordLog,
|
|
@@ -141,7 +151,7 @@ import {
|
|
|
141
151
|
resolvePaths,
|
|
142
152
|
saveConfigFile,
|
|
143
153
|
writeSecurely
|
|
144
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-KNCPBX5P.js";
|
|
145
155
|
import {
|
|
146
156
|
COMPACT_FLAG,
|
|
147
157
|
MAX_NEXT_STEPS,
|
|
@@ -158,12 +168,11 @@ import {
|
|
|
158
168
|
reference,
|
|
159
169
|
stepOf,
|
|
160
170
|
writes
|
|
161
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-3LMW7U7F.js";
|
|
162
172
|
import {
|
|
163
173
|
array,
|
|
164
174
|
boolean,
|
|
165
175
|
check,
|
|
166
|
-
getDotPath,
|
|
167
176
|
integer,
|
|
168
177
|
isoDate,
|
|
169
178
|
lazy,
|
|
@@ -195,72 +204,17 @@ import {
|
|
|
195
204
|
unknown,
|
|
196
205
|
unwrap,
|
|
197
206
|
variant
|
|
198
|
-
} from "./chunk-
|
|
207
|
+
} from "./chunk-S4UUN6LD.js";
|
|
199
208
|
import {
|
|
200
209
|
CliError,
|
|
201
|
-
isCliError,
|
|
202
210
|
singleLine,
|
|
203
211
|
visibleControls
|
|
204
|
-
} from "./chunk-
|
|
212
|
+
} from "./chunk-HM6AMYHR.js";
|
|
205
213
|
import {
|
|
206
214
|
__name
|
|
207
215
|
} from "./chunk-ZVVMGPBJ.js";
|
|
208
216
|
|
|
209
|
-
// node_modules/.pnpm/@wirecat+cli-
|
|
210
|
-
import { readFileSync } from "node:fs";
|
|
211
|
-
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
212
|
-
var locking = /* @__PURE__ */ __name((value) => value !== void 0 && value.trim() !== "" && value !== "0", "locking");
|
|
213
|
-
var ancestries = /* @__PURE__ */ new Map();
|
|
214
|
-
var readable = /* @__PURE__ */ __name((read, path2) => {
|
|
215
|
-
try {
|
|
216
|
-
return read(path2);
|
|
217
|
-
} catch (error) {
|
|
218
|
-
if (error.code === "EACCES")
|
|
219
|
-
return void 0;
|
|
220
|
-
throw error;
|
|
221
|
-
}
|
|
222
|
-
}, "readable");
|
|
223
|
-
var ancestorEnvironments = /* @__PURE__ */ __name(({ read = /* @__PURE__ */ __name((path2) => readFileSync(path2, "utf8"), "read"), from = process.ppid, uid = process.getuid?.() ?? -1, cache = ancestries } = {}) => {
|
|
224
|
-
if (process.platform !== "linux")
|
|
225
|
-
return [];
|
|
226
|
-
const key = `${from}:${uid}`;
|
|
227
|
-
const known = cache.get(key);
|
|
228
|
-
if (known !== void 0)
|
|
229
|
-
return known;
|
|
230
|
-
let found = [];
|
|
231
|
-
try {
|
|
232
|
-
for (let pid = from, depth = 0; pid >= 1 && depth < 64; depth++) {
|
|
233
|
-
const status2 = read(`/proc/${pid}/status`);
|
|
234
|
-
const field = /* @__PURE__ */ __name((name) => new RegExp(`^${name}:\\s*(\\d+)`, "m").exec(status2)?.[1], "field");
|
|
235
|
-
if (Number(field("Uid")) !== uid)
|
|
236
|
-
break;
|
|
237
|
-
const environ = readable(read, `/proc/${pid}/environ`);
|
|
238
|
-
if (environ === void 0)
|
|
239
|
-
break;
|
|
240
|
-
found.push(environ.split("\0"));
|
|
241
|
-
pid = Number(field("PPid"));
|
|
242
|
-
}
|
|
243
|
-
} catch {
|
|
244
|
-
found = null;
|
|
245
|
-
}
|
|
246
|
-
cache.set(key, found);
|
|
247
|
-
return found;
|
|
248
|
-
}, "ancestorEnvironments");
|
|
249
|
-
var valuesOf = /* @__PURE__ */ __name((environments2, name) => environments2.flatMap((environ) => environ.filter((entry) => entry.startsWith(`${name}=`)).map((entry) => entry.slice(name.length + 1))), "valuesOf");
|
|
250
|
-
var lockedByAncestor = /* @__PURE__ */ __name((name, ancestry = {}) => {
|
|
251
|
-
const environments2 = ancestorEnvironments(ancestry);
|
|
252
|
-
return environments2 === null || valuesOf(environments2, name).some(locking);
|
|
253
|
-
}, "lockedByAncestor");
|
|
254
|
-
var ancestorValue = /* @__PURE__ */ __name((name, env, ancestry = {}) => valuesOf(ancestorEnvironments(ancestry) ?? [], name).at(-1) ?? env[name], "ancestorValue");
|
|
255
|
-
var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
256
|
-
const name = envName(app, "READ_ONLY");
|
|
257
|
-
return locking(env[name]) || lockedByAncestor(name) ? name : void 0;
|
|
258
|
-
}, "readOnlyLockOf");
|
|
259
|
-
var mailHolderVariable = /* @__PURE__ */ __name((app) => envName(app, "MAIL_HOLDER"), "mailHolderVariable");
|
|
260
|
-
var MESSENGER_CHANGE_REFUSAL = "send, react, change chats or change the account";
|
|
261
|
-
var readOnlyRefusal = /* @__PURE__ */ __name((lock, what) => new CliError("permission_error", `this process is read-only (${lock}) \u2014 it cannot ${what}`), "readOnlyRefusal");
|
|
262
|
-
|
|
263
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.106.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
|
|
217
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.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
|
|
264
218
|
var labels = /* @__PURE__ */ new WeakMap();
|
|
265
219
|
var annotate = /* @__PURE__ */ __name((command, meta) => {
|
|
266
220
|
labels.set(command, { ...labels.get(command), ...meta });
|
|
@@ -280,8 +234,8 @@ var snake = /* @__PURE__ */ __name((name) => name.replace(/[A-Z]/g, (letter) =>
|
|
|
280
234
|
var stepTargets = /* @__PURE__ */ __name((root) => {
|
|
281
235
|
const found = /* @__PURE__ */ new Map();
|
|
282
236
|
const optionName = /* @__PURE__ */ __name((option) => snake((option.long ?? option.attributeName()).replace(/^--/, "")), "optionName");
|
|
283
|
-
const visit2 = /* @__PURE__ */ __name((command,
|
|
284
|
-
const path2 = [...
|
|
237
|
+
const visit2 = /* @__PURE__ */ __name((command, parents, above) => {
|
|
238
|
+
const path2 = [...parents, command.name()];
|
|
285
239
|
const options = [...above, ...command.options];
|
|
286
240
|
const { effects } = metaOf(command);
|
|
287
241
|
found.set(path2.join(" "), {
|
|
@@ -303,8 +257,8 @@ var describeAlone = /* @__PURE__ */ __name((command, known) => {
|
|
|
303
257
|
}
|
|
304
258
|
return found;
|
|
305
259
|
}, "describeAlone");
|
|
306
|
-
var describe = /* @__PURE__ */ __name((command, cli,
|
|
307
|
-
const path2 = [...
|
|
260
|
+
var describe = /* @__PURE__ */ __name((command, cli, parents, above, known) => {
|
|
261
|
+
const path2 = [...parents, command.name()];
|
|
308
262
|
const args = command.registeredArguments.map(describeArgument);
|
|
309
263
|
const options = describeOptions(command);
|
|
310
264
|
const { origin = "handwritten", query, mcp, offline, ...meta } = metaOf(command);
|
|
@@ -3761,7 +3715,7 @@ __name(useColor, "useColor");
|
|
|
3761
3715
|
// node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
|
|
3762
3716
|
var program = new Command();
|
|
3763
3717
|
|
|
3764
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3718
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.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
|
|
3765
3719
|
var argumentInfoSchema = object({
|
|
3766
3720
|
name: string(),
|
|
3767
3721
|
required: boolean(),
|
|
@@ -3835,7 +3789,7 @@ var commandsDocumentSchema = strictObject({
|
|
|
3835
3789
|
exit_codes: record(string(), pipe(number(), integer()))
|
|
3836
3790
|
});
|
|
3837
3791
|
|
|
3838
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3792
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.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
|
|
3839
3793
|
import { isDeepStrictEqual } from "node:util";
|
|
3840
3794
|
var protectedCommands = /* @__PURE__ */ new WeakMap();
|
|
3841
3795
|
var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
|
|
@@ -3945,7 +3899,7 @@ var sharedCommand = /* @__PURE__ */ __name((factory) => (...args) => {
|
|
|
3945
3899
|
return result;
|
|
3946
3900
|
}, "sharedCommand");
|
|
3947
3901
|
|
|
3948
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3902
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.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
|
|
3949
3903
|
var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
3950
3904
|
let command = root;
|
|
3951
3905
|
const path2 = [];
|
|
@@ -3963,9 +3917,16 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3963
3917
|
}
|
|
3964
3918
|
}, "refuseJoinedPath");
|
|
3965
3919
|
|
|
3966
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3920
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
3967
3921
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
3968
|
-
var DANGEROUS = /* @__PURE__ */ new Set([
|
|
3922
|
+
var DANGEROUS = /* @__PURE__ */ new Set([
|
|
3923
|
+
"messages.delete",
|
|
3924
|
+
"messages.scheduled.cancel",
|
|
3925
|
+
"bot.messages.delete",
|
|
3926
|
+
"topics.delete",
|
|
3927
|
+
"chats.delete",
|
|
3928
|
+
"chats.clear"
|
|
3929
|
+
]);
|
|
3969
3930
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
3970
3931
|
var DEFAULT_PERMISSIONS = {
|
|
3971
3932
|
// Owner, 2026-11-14: deleting a message does not ask; a profile that wants the question sets `ask`.
|
|
@@ -4186,6 +4147,9 @@ var NAMED_WRITE_KEYS = [
|
|
|
4186
4147
|
"messages.sync-first",
|
|
4187
4148
|
"messages.server-search",
|
|
4188
4149
|
"messages.press",
|
|
4150
|
+
"messages.scheduled.cancel",
|
|
4151
|
+
"messages.scheduled.edit",
|
|
4152
|
+
"messages.scheduled.send",
|
|
4189
4153
|
"chats.start",
|
|
4190
4154
|
"chats.app",
|
|
4191
4155
|
"stats.messages.counters.sync",
|
|
@@ -4389,7 +4353,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
4389
4353
|
}
|
|
4390
4354
|
}, "assertRetentionEvidenceRead");
|
|
4391
4355
|
|
|
4392
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4356
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/command-server-request.js
|
|
4393
4357
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
4394
4358
|
var requests = new AsyncLocalStorage();
|
|
4395
4359
|
var inCommandServerRequest = /* @__PURE__ */ __name((request, work) => requests.run(request, work), "inCommandServerRequest");
|
|
@@ -4404,113 +4368,7 @@ var exitCodeSet = /* @__PURE__ */ __name(() => {
|
|
|
4404
4368
|
return direct;
|
|
4405
4369
|
}, "exitCodeSet");
|
|
4406
4370
|
|
|
4407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4408
|
-
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
4409
|
-
var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
|
|
4410
|
-
messageId: message2.id,
|
|
4411
|
-
...message2.chatId && message2.chatId !== typed2 ? { resultChatId: message2.chatId } : {}
|
|
4412
|
-
}), "sentIds");
|
|
4413
|
-
var current = new AsyncLocalStorage2();
|
|
4414
|
-
var writesInFlight = new AsyncLocalStorage2();
|
|
4415
|
-
var parents = /* @__PURE__ */ new WeakMap();
|
|
4416
|
-
var stopped = /* @__PURE__ */ new WeakMap();
|
|
4417
|
-
var scopesFor = /* @__PURE__ */ __name((scope = writesInFlight.getStore()) => {
|
|
4418
|
-
const result = [];
|
|
4419
|
-
for (let at2 = scope; at2; at2 = parents.get(at2))
|
|
4420
|
-
result.push(at2);
|
|
4421
|
-
return result;
|
|
4422
|
-
}, "scopesFor");
|
|
4423
|
-
var withWriteScope = /* @__PURE__ */ __name((scope, body) => {
|
|
4424
|
-
const parent = writesInFlight.getStore();
|
|
4425
|
-
if (parent && parent !== scope)
|
|
4426
|
-
parents.set(scope, parent);
|
|
4427
|
-
return writesInFlight.run(scope, body);
|
|
4428
|
-
}, "withWriteScope");
|
|
4429
|
-
var stopWrites = /* @__PURE__ */ __name((scope, reason) => {
|
|
4430
|
-
stopped.set(scope, reason);
|
|
4431
|
-
for (const write of scope)
|
|
4432
|
-
write.cut();
|
|
4433
|
-
}, "stopWrites");
|
|
4434
|
-
var refuseStopped = /* @__PURE__ */ __name((scopes3) => {
|
|
4435
|
-
for (const scope of scopes3)
|
|
4436
|
-
if (stopped.has(scope))
|
|
4437
|
-
throw stopped.get(scope);
|
|
4438
|
-
}, "refuseStopped");
|
|
4439
|
-
var currentOperation = /* @__PURE__ */ __name(() => current.getStore(), "currentOperation");
|
|
4440
|
-
var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 = () => ({}), prepare) => {
|
|
4441
|
-
const scopes3 = scopesFor();
|
|
4442
|
-
refuseStopped(scopes3);
|
|
4443
|
-
try {
|
|
4444
|
-
await guard.ask?.(attempt);
|
|
4445
|
-
refuseStopped(scopes3);
|
|
4446
|
-
if (guard.reserve) {
|
|
4447
|
-
guard.check(attempt, { reserve: false });
|
|
4448
|
-
await guard.reserve(attempt);
|
|
4449
|
-
} else
|
|
4450
|
-
guard.check(attempt);
|
|
4451
|
-
} catch (error) {
|
|
4452
|
-
guard.record({ ...attempt, outcome: "refused", errorCode: codeOf(error) });
|
|
4453
|
-
throw error;
|
|
4454
|
-
}
|
|
4455
|
-
try {
|
|
4456
|
-
refuseStopped(scopes3);
|
|
4457
|
-
} catch (error) {
|
|
4458
|
-
guard.record({ ...attempt, outcome: "failed", errorCode: codeOf(error) });
|
|
4459
|
-
throw error;
|
|
4460
|
-
}
|
|
4461
|
-
let recorded2 = false;
|
|
4462
|
-
const once = /* @__PURE__ */ __name((entry) => {
|
|
4463
|
-
if (recorded2)
|
|
4464
|
-
return;
|
|
4465
|
-
recorded2 = true;
|
|
4466
|
-
guard.record(entry);
|
|
4467
|
-
}, "once");
|
|
4468
|
-
let cancelled = false;
|
|
4469
|
-
const flight = {
|
|
4470
|
-
operationId: attempt.operationId,
|
|
4471
|
-
preparing: prepare !== void 0,
|
|
4472
|
-
cut: /* @__PURE__ */ __name(() => {
|
|
4473
|
-
cancelled = true;
|
|
4474
|
-
once({
|
|
4475
|
-
...attempt,
|
|
4476
|
-
outcome: flight.preparing ? "failed" : "outcome_unknown",
|
|
4477
|
-
errorCode: flight.preparing ? "timeout" : "outcome_unknown"
|
|
4478
|
-
});
|
|
4479
|
-
}, "cut")
|
|
4480
|
-
};
|
|
4481
|
-
for (const scope of scopes3)
|
|
4482
|
-
scope.add(flight);
|
|
4483
|
-
try {
|
|
4484
|
-
if (prepare !== void 0)
|
|
4485
|
-
await prepare();
|
|
4486
|
-
if (cancelled)
|
|
4487
|
-
throw new CliError("timeout", "the command ended before sending; nothing was sent", { sent: false });
|
|
4488
|
-
flight.preparing = false;
|
|
4489
|
-
const done = await current.run(attempt.operationId, act);
|
|
4490
|
-
if (cancelled)
|
|
4491
|
-
throw new CliError("outcome_unknown", "the command ended with a write in flight; check its result before continuing", { operation_id: attempt.operationId });
|
|
4492
|
-
once({ ...attempt, ...settled2(done), outcome: "sent" });
|
|
4493
|
-
return done;
|
|
4494
|
-
} catch (error) {
|
|
4495
|
-
const code = codeOf(error);
|
|
4496
|
-
once({ ...attempt, outcome: code === "outcome_unknown" ? "outcome_unknown" : "failed", errorCode: code });
|
|
4497
|
-
if (code === "outcome_unknown" && error instanceof Error)
|
|
4498
|
-
throw new CliError("outcome_unknown", error.message, {
|
|
4499
|
-
...error.details,
|
|
4500
|
-
operation_id: attempt.operationId,
|
|
4501
|
-
retryable: false
|
|
4502
|
-
});
|
|
4503
|
-
if (flight.preparing && isCliError(error) && error.details.sent === void 0)
|
|
4504
|
-
throw new CliError(error.code, error.message, { ...error.details, sent: false });
|
|
4505
|
-
throw error;
|
|
4506
|
-
} finally {
|
|
4507
|
-
for (const scope of scopes3)
|
|
4508
|
-
scope.delete(flight);
|
|
4509
|
-
}
|
|
4510
|
-
}, "guardedWrite");
|
|
4511
|
-
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
4512
|
-
|
|
4513
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
4371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
4514
4372
|
var named = /* @__PURE__ */ __name((work) => {
|
|
4515
4373
|
try {
|
|
4516
4374
|
return work();
|
|
@@ -4537,7 +4395,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
4537
4395
|
return projectFields(value, fields);
|
|
4538
4396
|
}), "projectFields");
|
|
4539
4397
|
|
|
4540
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
4541
4399
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
4542
4400
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
4543
4401
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -4720,15 +4578,15 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4720
4578
|
}
|
|
4721
4579
|
}, "withAbort");
|
|
4722
4580
|
|
|
4723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4724
|
-
import { existsSync, readdirSync, readFileSync
|
|
4581
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
4582
|
+
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
4725
4583
|
import { join } from "node:path";
|
|
4726
4584
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
4727
4585
|
var rememberAccount = /* @__PURE__ */ __name((app, profile, id6, env) => writeSecurely(accountFileFor(app, profile, env), `${JSON.stringify({ account: id6 })}
|
|
4728
4586
|
`, 384), "rememberAccount");
|
|
4729
4587
|
var recalledAccount = /* @__PURE__ */ __name((app, provider, profile, env) => {
|
|
4730
4588
|
try {
|
|
4731
|
-
const { account: account2 } = JSON.parse(
|
|
4589
|
+
const { account: account2 } = JSON.parse(readFileSync(accountFileFor(app, profile, env), "utf8"));
|
|
4732
4590
|
return typeof account2 === "string" ? { provider, account: account2 } : void 0;
|
|
4733
4591
|
} catch {
|
|
4734
4592
|
return void 0;
|
|
@@ -4742,64 +4600,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4742
4600
|
}, "profilesWithAccounts");
|
|
4743
4601
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4744
4602
|
|
|
4745
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4746
|
-
var DEADLINE_MARGIN_MS = 5e3;
|
|
4747
|
-
var DEADLINE_MARGIN_SHARE = 0.15;
|
|
4748
|
-
var DEFAULT_REQUEST_MS = 2e3;
|
|
4749
|
-
var ANSWER_RESERVE_MS = 500;
|
|
4750
|
-
var oneMoreFits = /* @__PURE__ */ __name((deadline, at2, requestMs = DEFAULT_REQUEST_MS) => deadline !== void 0 && at2 + requestMs + ANSWER_RESERVE_MS < deadline.endsAt, "oneMoreFits");
|
|
4751
|
-
var deadlineMargin = /* @__PURE__ */ __name((deadline) => Math.max(DEADLINE_MARGIN_MS, deadline.ms * DEADLINE_MARGIN_SHARE), "deadlineMargin");
|
|
4752
|
-
var requestsFor = /* @__PURE__ */ __name((deadline, requestMs = DEFAULT_REQUEST_MS) => deadline === void 0 ? null : Math.max(1, Math.floor((deadline.ms - deadlineMargin(deadline)) / requestMs)), "requestsFor");
|
|
4753
|
-
var runBudget = /* @__PURE__ */ __name(({ requests: requests2, deadline, requestMs, signal, now = Date.now } = {}) => {
|
|
4754
|
-
const fits = requestsFor(deadline, requestMs);
|
|
4755
|
-
const limit = fits === null ? requests2 ?? null : Math.min(fits, requests2 ?? fits);
|
|
4756
|
-
const margin = deadline ? deadlineMargin(deadline) : 0;
|
|
4757
|
-
let used = 0;
|
|
4758
|
-
let granted = false;
|
|
4759
|
-
let stopped2 = null;
|
|
4760
|
-
let last;
|
|
4761
|
-
let slowest = 0;
|
|
4762
|
-
return {
|
|
4763
|
-
take() {
|
|
4764
|
-
if (stopped2)
|
|
4765
|
-
return stopped2;
|
|
4766
|
-
const at2 = now();
|
|
4767
|
-
if (last !== void 0)
|
|
4768
|
-
slowest = Math.max(slowest, at2 - last);
|
|
4769
|
-
if (signal?.aborted)
|
|
4770
|
-
stopped2 = "cancelled";
|
|
4771
|
-
else if (limit !== null && used >= limit)
|
|
4772
|
-
stopped2 = "requests";
|
|
4773
|
-
else if (deadline && at2 + margin + slowest >= deadline.endsAt)
|
|
4774
|
-
stopped2 = "deadline";
|
|
4775
|
-
if (stopped2)
|
|
4776
|
-
return stopped2;
|
|
4777
|
-
used += 1;
|
|
4778
|
-
last = at2;
|
|
4779
|
-
return null;
|
|
4780
|
-
},
|
|
4781
|
-
first() {
|
|
4782
|
-
if (granted || used > 0 || stopped2 !== "deadline")
|
|
4783
|
-
return false;
|
|
4784
|
-
const at2 = now();
|
|
4785
|
-
if (!oneMoreFits(deadline, at2, Math.max(requestMs ?? DEFAULT_REQUEST_MS, slowest)))
|
|
4786
|
-
return false;
|
|
4787
|
-
granted = true;
|
|
4788
|
-
used += 1;
|
|
4789
|
-
last = at2;
|
|
4790
|
-
return true;
|
|
4791
|
-
},
|
|
4792
|
-
get used() {
|
|
4793
|
-
return used;
|
|
4794
|
-
},
|
|
4795
|
-
limit,
|
|
4796
|
-
get stopped() {
|
|
4797
|
-
return stopped2;
|
|
4798
|
-
}
|
|
4799
|
-
};
|
|
4800
|
-
}, "runBudget");
|
|
4801
|
-
|
|
4802
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
4603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
4803
4604
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
4804
4605
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
4805
4606
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -4835,7 +4636,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
4835
4636
|
return value;
|
|
4836
4637
|
}, "atDetail");
|
|
4837
4638
|
|
|
4838
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4639
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/output.js
|
|
4839
4640
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
4840
4641
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
4841
4642
|
if (other)
|
|
@@ -4899,7 +4700,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
|
|
|
4899
4700
|
}, "warn")
|
|
4900
4701
|
}), "silence");
|
|
4901
4702
|
|
|
4902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4703
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
4903
4704
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
4904
4705
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
4905
4706
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4937,7 +4738,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4937
4738
|
progress: "sync.progress"
|
|
4938
4739
|
};
|
|
4939
4740
|
|
|
4940
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4741
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
4941
4742
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
4942
4743
|
const recording = startRecording(options);
|
|
4943
4744
|
try {
|
|
@@ -5152,7 +4953,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
5152
4953
|
return void 0;
|
|
5153
4954
|
}, "partialOutcome");
|
|
5154
4955
|
|
|
5155
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4956
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
5156
4957
|
var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
5157
4958
|
if (ms2 === void 0)
|
|
5158
4959
|
return body();
|
|
@@ -5178,7 +4979,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
|
5178
4979
|
}
|
|
5179
4980
|
}, "withDeadline");
|
|
5180
4981
|
|
|
5181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4982
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
5182
4983
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
5183
4984
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
5184
4985
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -5247,79 +5048,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
5247
5048
|
return void 0;
|
|
5248
5049
|
}, "sampleCommand");
|
|
5249
5050
|
|
|
5250
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5051
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5251
5052
|
import { existsSync as existsSync4 } from "node:fs";
|
|
5252
5053
|
|
|
5253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5254
|
-
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
5255
|
-
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
5256
|
-
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
5257
|
-
model: optional(pipe(string(), trim(), minLength(1), maxLength(200))),
|
|
5258
|
-
base_url: optional(pipe(string(), check((value) => endpoint(value), "use an HTTP/S endpoint without credentials, query or fragment")))
|
|
5259
|
-
}));
|
|
5260
|
-
var resolveModelSettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
5261
|
-
const configured = layers.map(([from, scope]) => [from, scope?.models ?? {}]);
|
|
5262
|
-
const purposes = /* @__PURE__ */ new Set([
|
|
5263
|
-
"default",
|
|
5264
|
-
"analysis",
|
|
5265
|
-
"replies",
|
|
5266
|
-
...configured.flatMap(([, models2]) => Object.keys(models2))
|
|
5267
|
-
]);
|
|
5268
|
-
for (const name of Object.keys(env)) {
|
|
5269
|
-
const match = new RegExp(`^${prefix}_MODELS_([A-Z][A-Z0-9_]*)_(PROVIDER|MODEL|BASE_URL)$`).exec(name);
|
|
5270
|
-
if (match?.[1])
|
|
5271
|
-
purposes.add(match[1].toLowerCase().replaceAll("_", "-"));
|
|
5272
|
-
}
|
|
5273
|
-
const models = {};
|
|
5274
|
-
const sources = {};
|
|
5275
|
-
for (const purpose of purposes) {
|
|
5276
|
-
const resolved = {};
|
|
5277
|
-
for (const field of MODEL_FIELDS) {
|
|
5278
|
-
const variable = `${prefix}_MODELS_${purpose.replaceAll("-", "_").toUpperCase()}_${field.toUpperCase()}`;
|
|
5279
|
-
const candidates = [
|
|
5280
|
-
[variable, env[variable]?.trim() || void 0],
|
|
5281
|
-
...configured.map(([from, model3]) => [
|
|
5282
|
-
`${from}: models.${purpose}.${field}`,
|
|
5283
|
-
model3[purpose]?.[field]
|
|
5284
|
-
]),
|
|
5285
|
-
...purpose === "default" ? [] : [
|
|
5286
|
-
[
|
|
5287
|
-
`${prefix}_MODELS_DEFAULT_${field.toUpperCase()}`,
|
|
5288
|
-
env[`${prefix}_MODELS_DEFAULT_${field.toUpperCase()}`]?.trim() || void 0
|
|
5289
|
-
],
|
|
5290
|
-
...configured.map(([from, model3]) => [
|
|
5291
|
-
`${from}: models.default.${field}`,
|
|
5292
|
-
model3.default?.[field]
|
|
5293
|
-
])
|
|
5294
|
-
]
|
|
5295
|
-
];
|
|
5296
|
-
const selected = candidates.find(([, value]) => value !== void 0);
|
|
5297
|
-
if (selected)
|
|
5298
|
-
resolved[field] = selected[1];
|
|
5299
|
-
sources[`models.${purpose}.${field}`] = selected?.[0] ?? "default";
|
|
5300
|
-
}
|
|
5301
|
-
if (Object.keys(resolved).length)
|
|
5302
|
-
models[purpose] = resolved;
|
|
5303
|
-
}
|
|
5304
|
-
const checked = safeParse(modelSettingsShape, models);
|
|
5305
|
-
if (!checked.success)
|
|
5306
|
-
throw new CliError("configuration_error", `models.${getDotPath(checked.issues[0]) ?? "settings"} is invalid`);
|
|
5307
|
-
return { models: checked.output, sources };
|
|
5308
|
-
}, "resolveModelSettings");
|
|
5309
|
-
var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
5310
|
-
const configured = { ...settings.models?.default, ...settings.models?.[purpose] };
|
|
5311
|
-
if (configured.provider === void 0 || configured.provider === "off")
|
|
5312
|
-
return void 0;
|
|
5313
|
-
if (!configured.model)
|
|
5314
|
-
throw new CliError("configuration_error", `set models.${purpose}.model before calling its provider`);
|
|
5315
|
-
return {
|
|
5316
|
-
provider: configured.provider,
|
|
5317
|
-
model: configured.model,
|
|
5318
|
-
...configured.base_url === void 0 ? {} : { baseUrl: configured.base_url }
|
|
5319
|
-
};
|
|
5320
|
-
}, "modelTarget");
|
|
5321
|
-
|
|
5322
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
5054
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
5323
5055
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
5324
5056
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
5325
5057
|
var AI_FIELDS = {
|
|
@@ -5363,7 +5095,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
5363
5095
|
};
|
|
5364
5096
|
}, "resolveAISettings");
|
|
5365
5097
|
|
|
5366
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5098
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
5367
5099
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
5368
5100
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
5369
5101
|
var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
@@ -5377,7 +5109,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
|
5377
5109
|
return ms2;
|
|
5378
5110
|
}, "parseDuration");
|
|
5379
5111
|
|
|
5380
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
5381
5113
|
var HISTORY_MAX_DAYS = 1095;
|
|
5382
5114
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
5383
5115
|
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -5424,8 +5156,8 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
5424
5156
|
return { batch: { ...batch, messages }, skipped };
|
|
5425
5157
|
}, "limitBatch");
|
|
5426
5158
|
|
|
5427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5428
|
-
import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as
|
|
5159
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
|
|
5160
|
+
import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
5429
5161
|
import { join as join2 } from "node:path";
|
|
5430
5162
|
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
|
|
5431
5163
|
var botFiles = /* @__PURE__ */ __name((app, profile, env = process.env) => {
|
|
@@ -5495,7 +5227,7 @@ var ChatRegistry = class {
|
|
|
5495
5227
|
if (!existsSync2(this.#path))
|
|
5496
5228
|
return {};
|
|
5497
5229
|
try {
|
|
5498
|
-
const parsed = JSON.parse(
|
|
5230
|
+
const parsed = JSON.parse(readFileSync2(this.#path, "utf8"));
|
|
5499
5231
|
return parsed && typeof parsed === "object" ? parsed : {};
|
|
5500
5232
|
} catch {
|
|
5501
5233
|
return {};
|
|
@@ -5513,8 +5245,8 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
|
|
|
5513
5245
|
return readdirSync2(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
|
|
5514
5246
|
}, "registryProfiles");
|
|
5515
5247
|
|
|
5516
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5517
|
-
import { readFileSync as
|
|
5248
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
5249
|
+
import { readFileSync as readFileSync3 } from "node:fs";
|
|
5518
5250
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
5519
5251
|
var SECTIONS = ["personal", "bot"];
|
|
5520
5252
|
var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
|
|
@@ -5621,8 +5353,8 @@ var failureOffset = /* @__PURE__ */ __name((text5) => {
|
|
|
5621
5353
|
value();
|
|
5622
5354
|
space();
|
|
5623
5355
|
return at2;
|
|
5624
|
-
} catch (
|
|
5625
|
-
return typeof
|
|
5356
|
+
} catch (stopped) {
|
|
5357
|
+
return typeof stopped === "number" ? stopped : at2;
|
|
5626
5358
|
}
|
|
5627
5359
|
}, "failureOffset");
|
|
5628
5360
|
var parseConfigText = /* @__PURE__ */ __name((text5, file) => {
|
|
@@ -5788,7 +5520,7 @@ var checkConfigText = /* @__PURE__ */ __name((text5, { file, tool, schema: schem
|
|
|
5788
5520
|
var wholeFile = /* @__PURE__ */ __name((file, what) => ({ kind: "invalid_value", file, what }), "wholeFile");
|
|
5789
5521
|
var readConfigText = /* @__PURE__ */ __name((path2) => {
|
|
5790
5522
|
try {
|
|
5791
|
-
return { text:
|
|
5523
|
+
return { text: readFileSync3(path2, "utf8") };
|
|
5792
5524
|
} catch (error) {
|
|
5793
5525
|
const code = error.code;
|
|
5794
5526
|
if (code === "ENOENT")
|
|
@@ -5808,7 +5540,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
5808
5540
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
5809
5541
|
}, "readConfigFile");
|
|
5810
5542
|
|
|
5811
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5543
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
5812
5544
|
import { existsSync as existsSync3, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
|
5813
5545
|
import { dirname, join as join3 } from "node:path";
|
|
5814
5546
|
var DEFAULT_CONFIG = {
|
|
@@ -5837,7 +5569,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
5837
5569
|
}
|
|
5838
5570
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
5839
5571
|
|
|
5840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
|
|
5841
5573
|
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
5842
5574
|
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
5843
5575
|
const path2 = key.split(".");
|
|
@@ -5859,7 +5591,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
|
|
|
5859
5591
|
return { config, added };
|
|
5860
5592
|
}, "withSettingDefaults");
|
|
5861
5593
|
|
|
5862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5594
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5863
5595
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
5864
5596
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
5865
5597
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -6387,7 +6119,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
6387
6119
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
6388
6120
|
}, "given");
|
|
6389
6121
|
|
|
6390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
6391
6123
|
var runBudgetOf = /* @__PURE__ */ __name((command, requests2) => {
|
|
6392
6124
|
const { deadline, signal, app } = environmentOf(command);
|
|
6393
6125
|
const now = deadline?.();
|
|
@@ -6413,9 +6145,17 @@ var provide = /* @__PURE__ */ __name((program2, environment) => {
|
|
|
6413
6145
|
environments.set(program2, environment);
|
|
6414
6146
|
}, "provide");
|
|
6415
6147
|
var environmentOf = /* @__PURE__ */ __name((command) => environments.get(rootOf(command)) ?? {}, "environmentOf");
|
|
6148
|
+
var PAGING = ["page", "limit", "all"];
|
|
6149
|
+
var withoutOwnPaging = /* @__PURE__ */ __name((command, flags) => {
|
|
6150
|
+
if (metaOf(command).origin !== "generated")
|
|
6151
|
+
return flags;
|
|
6152
|
+
const own = PAGING.filter((name) => command.options.some((option) => option.attributeName() === name));
|
|
6153
|
+
return own.length > 0 ? Object.fromEntries(Object.entries(flags).filter(([name]) => !own.includes(name))) : flags;
|
|
6154
|
+
}, "withoutOwnPaging");
|
|
6416
6155
|
var withAgentLevels = /* @__PURE__ */ __name((command, flags) => {
|
|
6417
6156
|
const overrides = environmentOf(command).agent?.overrides ?? [];
|
|
6418
|
-
|
|
6157
|
+
const read = withoutOwnPaging(command, flags);
|
|
6158
|
+
return overrides.length > 0 ? { ...read, permission: [...overrides, ...read.permission ?? []] } : read;
|
|
6419
6159
|
}, "withAgentLevels");
|
|
6420
6160
|
var secretInputOf = /* @__PURE__ */ __name((command) => {
|
|
6421
6161
|
const { stdin, stderr } = environmentOf(command);
|
|
@@ -6528,12 +6268,12 @@ var inCommandRun = /* @__PURE__ */ __name((command, body) => {
|
|
|
6528
6268
|
}, "inCommandRun");
|
|
6529
6269
|
var commandPath = /* @__PURE__ */ __name((command) => {
|
|
6530
6270
|
const words = [];
|
|
6531
|
-
for (let
|
|
6532
|
-
words.unshift(
|
|
6271
|
+
for (let current = command; current?.parent; current = current.parent)
|
|
6272
|
+
words.unshift(current.name());
|
|
6533
6273
|
return words.join(" ");
|
|
6534
6274
|
}, "commandPath");
|
|
6535
6275
|
|
|
6536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6276
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
6537
6277
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
6538
6278
|
var FETCH = { remote: "read", local: "write" };
|
|
6539
6279
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -6669,7 +6409,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
6669
6409
|
throw readOnlyRefusal(lock, what);
|
|
6670
6410
|
}, "refuseUnderReadOnly");
|
|
6671
6411
|
|
|
6672
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6412
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/account.js
|
|
6673
6413
|
var account = strictObject({
|
|
6674
6414
|
provider: text,
|
|
6675
6415
|
id,
|
|
@@ -6679,7 +6419,7 @@ var account = strictObject({
|
|
|
6679
6419
|
scope: optional(picklist(["personal", "work"]))
|
|
6680
6420
|
});
|
|
6681
6421
|
|
|
6682
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/account-session.js
|
|
6683
6423
|
var accountSession = strictObject({
|
|
6684
6424
|
current: boolean(),
|
|
6685
6425
|
client: nullable(text),
|
|
@@ -6689,7 +6429,7 @@ var accountSession = strictObject({
|
|
|
6689
6429
|
created_at: optional(nullable(time))
|
|
6690
6430
|
});
|
|
6691
6431
|
|
|
6692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/account-change.js
|
|
6693
6433
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
6694
6434
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
6695
6435
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -6718,7 +6458,7 @@ var accountRemoval = strictObject({
|
|
|
6718
6458
|
kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
|
|
6719
6459
|
});
|
|
6720
6460
|
|
|
6721
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6461
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
|
|
6722
6462
|
var accountProfile = strictObject({
|
|
6723
6463
|
profile: id,
|
|
6724
6464
|
current: boolean(),
|
|
@@ -6730,7 +6470,7 @@ var accountProfile = strictObject({
|
|
|
6730
6470
|
bot: optional(literal(true))
|
|
6731
6471
|
});
|
|
6732
6472
|
|
|
6733
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6473
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
|
|
6734
6474
|
var milliseconds = pipe(number(), minValue(0));
|
|
6735
6475
|
var counterReading = strictObject({
|
|
6736
6476
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -6742,7 +6482,7 @@ var counterReading = strictObject({
|
|
|
6742
6482
|
});
|
|
6743
6483
|
var selection = record(string(), unknown());
|
|
6744
6484
|
|
|
6745
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6485
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
|
|
6746
6486
|
var adminRow = strictObject({
|
|
6747
6487
|
ref: reference,
|
|
6748
6488
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -6795,7 +6535,7 @@ var adminReport = strictObject({
|
|
|
6795
6535
|
rows: array(adminRow)
|
|
6796
6536
|
});
|
|
6797
6537
|
|
|
6798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6538
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
6799
6539
|
var closeSuggestion = strictObject({
|
|
6800
6540
|
as: picklist(["done", "dismissed"]),
|
|
6801
6541
|
/** The agent's name. */
|
|
@@ -6857,7 +6597,7 @@ var task = strictObject({
|
|
|
6857
6597
|
updated_at: optional(time)
|
|
6858
6598
|
});
|
|
6859
6599
|
|
|
6860
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6600
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
6861
6601
|
var agendaChat = strictObject({
|
|
6862
6602
|
chat: reference,
|
|
6863
6603
|
title: nullable(text),
|
|
@@ -6927,11 +6667,11 @@ var agenda = strictObject({
|
|
|
6927
6667
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
6928
6668
|
});
|
|
6929
6669
|
|
|
6930
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6670
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
|
|
6931
6671
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
6932
6672
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
6933
6673
|
|
|
6934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6674
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
6935
6675
|
var attachment = strictObject({
|
|
6936
6676
|
/** The message it came with, as a locator; absent inside that message. */
|
|
6937
6677
|
message: optional(reference),
|
|
@@ -6976,7 +6716,7 @@ var hitFile = strictObject({
|
|
|
6976
6716
|
local_path: optional(text)
|
|
6977
6717
|
});
|
|
6978
6718
|
|
|
6979
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6719
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
|
|
6980
6720
|
var actionableError = objectWithRest({
|
|
6981
6721
|
code: text,
|
|
6982
6722
|
message: text,
|
|
@@ -6993,7 +6733,7 @@ var batchResult = strictObject({
|
|
|
6993
6733
|
max_error_percent: count
|
|
6994
6734
|
});
|
|
6995
6735
|
|
|
6996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
|
|
6997
6737
|
var extractionItem = strictObject({
|
|
6998
6738
|
ref: reference,
|
|
6999
6739
|
attachment: count,
|
|
@@ -7026,7 +6766,7 @@ var extractionReport = strictObject({
|
|
|
7026
6766
|
cursor: optional(text)
|
|
7027
6767
|
});
|
|
7028
6768
|
|
|
7029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
|
|
7030
6770
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
7031
6771
|
var attachmentBytes = strictObject({
|
|
7032
6772
|
ref: reference,
|
|
@@ -7057,7 +6797,7 @@ var attachmentTextChange = strictObject({
|
|
|
7057
6797
|
text: optional(text)
|
|
7058
6798
|
});
|
|
7059
6799
|
|
|
7060
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6800
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
7061
6801
|
var WEIGHTS = {
|
|
7062
6802
|
bot: 3,
|
|
7063
6803
|
scam: 3,
|
|
@@ -7082,7 +6822,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
7082
6822
|
var DIGITS = /\d{5,}/;
|
|
7083
6823
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
7084
6824
|
|
|
7085
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6825
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
7086
6826
|
var linkedIdentity = strictObject({
|
|
7087
6827
|
provider: text,
|
|
7088
6828
|
id,
|
|
@@ -7137,7 +6877,7 @@ var contactCheck = strictObject({
|
|
|
7137
6877
|
checked_at: time
|
|
7138
6878
|
});
|
|
7139
6879
|
|
|
7140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6880
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/member.js
|
|
7141
6881
|
var member = strictObject({
|
|
7142
6882
|
id,
|
|
7143
6883
|
name: nullable(text),
|
|
@@ -7160,7 +6900,7 @@ var member = strictObject({
|
|
|
7160
6900
|
check: optional(record(string(), unknown()))
|
|
7161
6901
|
});
|
|
7162
6902
|
|
|
7163
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6903
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/chat.js
|
|
7164
6904
|
var setting = optional(nullable(boolean()));
|
|
7165
6905
|
var chat = strictObject({
|
|
7166
6906
|
ref: reference,
|
|
@@ -7201,7 +6941,7 @@ var chat = strictObject({
|
|
|
7201
6941
|
members: optional(array(member))
|
|
7202
6942
|
});
|
|
7203
6943
|
|
|
7204
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
7205
6945
|
var quoted = strictObject({
|
|
7206
6946
|
id,
|
|
7207
6947
|
sender_id: nullable(id),
|
|
@@ -7320,7 +7060,7 @@ var message = strictObject({
|
|
|
7320
7060
|
provider_metadata: providerMetadata
|
|
7321
7061
|
});
|
|
7322
7062
|
|
|
7323
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7063
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/recorded-meeting.js
|
|
7324
7064
|
var recordedMeeting = strictObject({
|
|
7325
7065
|
ref: reference,
|
|
7326
7066
|
meeting_id: count,
|
|
@@ -7337,7 +7077,7 @@ var recordedMeeting = strictObject({
|
|
|
7337
7077
|
call: optional(meetingCall)
|
|
7338
7078
|
});
|
|
7339
7079
|
|
|
7340
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7080
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
7341
7081
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
7342
7082
|
var contextMessage = strictObject({
|
|
7343
7083
|
locator: reference,
|
|
@@ -7543,7 +7283,7 @@ var contactPreparation = strictObject({
|
|
|
7543
7283
|
})
|
|
7544
7284
|
});
|
|
7545
7285
|
|
|
7546
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/deal.js
|
|
7547
7287
|
var nullableText = nullable(text);
|
|
7548
7288
|
var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
|
|
7549
7289
|
var outcome = picklist(["open", "won", "lost"]);
|
|
@@ -7699,7 +7439,7 @@ var stage = strictObject({
|
|
|
7699
7439
|
untrusted
|
|
7700
7440
|
});
|
|
7701
7441
|
|
|
7702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7442
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/business-context.js
|
|
7703
7443
|
var nullableText2 = nullable(text);
|
|
7704
7444
|
var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
|
|
7705
7445
|
var standing = picklist(STANDINGS);
|
|
@@ -7785,6 +7525,16 @@ var taskLine = strictObject({
|
|
|
7785
7525
|
due_at: nullable(time)
|
|
7786
7526
|
});
|
|
7787
7527
|
var counts = { messages: count, mail: count, meetings: count };
|
|
7528
|
+
var touch = {
|
|
7529
|
+
kind: picklist(["message", "mail", "meeting"]),
|
|
7530
|
+
ref: reference,
|
|
7531
|
+
title: nullableText2,
|
|
7532
|
+
at: nullable(time),
|
|
7533
|
+
people: array(reference),
|
|
7534
|
+
text: optional(nullableText2),
|
|
7535
|
+
call: optional(meetingCall),
|
|
7536
|
+
duration_ms: optional(nullable(count))
|
|
7537
|
+
};
|
|
7788
7538
|
var personBusiness = strictObject({
|
|
7789
7539
|
organizations: section(strictObject({ ...related.entries, categories })),
|
|
7790
7540
|
reports_to: section(related),
|
|
@@ -7824,6 +7574,8 @@ var organizationContext = strictObject({
|
|
|
7824
7574
|
money,
|
|
7825
7575
|
/** Counts only, through its own people, in the accounts read. */
|
|
7826
7576
|
communications: strictObject({ ...counts, has_more: boolean() }),
|
|
7577
|
+
/** Its people's messages, mail and meetings, newest first. */
|
|
7578
|
+
history: section(strictObject(touch)),
|
|
7827
7579
|
tasks: section(taskLine),
|
|
7828
7580
|
coverage: coverage2
|
|
7829
7581
|
});
|
|
@@ -7839,17 +7591,7 @@ var dealContext = strictObject({
|
|
|
7839
7591
|
window: strictObject({ since: time, until: time }),
|
|
7840
7592
|
/** Shared people within its lifetime: `proposed`, an overlap of people, never a link. */
|
|
7841
7593
|
communications: strictObject({
|
|
7842
|
-
...section(strictObject({
|
|
7843
|
-
kind: picklist(["message", "mail", "meeting"]),
|
|
7844
|
-
ref: reference,
|
|
7845
|
-
title: nullableText2,
|
|
7846
|
-
at: nullable(time),
|
|
7847
|
-
people: array(reference),
|
|
7848
|
-
text: optional(nullableText2),
|
|
7849
|
-
call: optional(meetingCall),
|
|
7850
|
-
duration_ms: optional(nullable(count)),
|
|
7851
|
-
standing: literal("proposed")
|
|
7852
|
-
})).entries,
|
|
7594
|
+
...section(strictObject({ ...touch, standing: literal("proposed") })).entries,
|
|
7853
7595
|
counts: strictObject(counts)
|
|
7854
7596
|
}),
|
|
7855
7597
|
tasks: section(taskLine),
|
|
@@ -7876,7 +7618,7 @@ var dealBrief = strictObject({
|
|
|
7876
7618
|
not_read: coverage2.entries.not_read
|
|
7877
7619
|
});
|
|
7878
7620
|
|
|
7879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/chart.js
|
|
7880
7622
|
var chart = strictObject({
|
|
7881
7623
|
version: literal(1),
|
|
7882
7624
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -7891,7 +7633,7 @@ var chart = strictObject({
|
|
|
7891
7633
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
7892
7634
|
});
|
|
7893
7635
|
|
|
7894
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/folder.js
|
|
7895
7637
|
var named2 = strictObject({
|
|
7896
7638
|
id,
|
|
7897
7639
|
title: nullable(text),
|
|
@@ -7914,7 +7656,7 @@ var folder = strictObject({
|
|
|
7914
7656
|
excluded_chats: optional(array(named2))
|
|
7915
7657
|
});
|
|
7916
7658
|
|
|
7917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7659
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
|
|
7918
7660
|
var inviteLink = strictObject({
|
|
7919
7661
|
link: text,
|
|
7920
7662
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -7930,7 +7672,7 @@ var inviteLink = strictObject({
|
|
|
7930
7672
|
joined_count: optional(count)
|
|
7931
7673
|
});
|
|
7932
7674
|
|
|
7933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7675
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
|
|
7934
7676
|
var operated = { operation_id: id, chat_id: id };
|
|
7935
7677
|
var group = strictObject({
|
|
7936
7678
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -8010,7 +7752,7 @@ var chatFolderOrder = strictObject({
|
|
|
8010
7752
|
folders: array(strictObject({ id, title: text }))
|
|
8011
7753
|
});
|
|
8012
7754
|
|
|
8013
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
|
|
8014
7756
|
var operated2 = { operation_id: id, chat_id: id };
|
|
8015
7757
|
var chatRemoval = strictObject(operated2);
|
|
8016
7758
|
var chatMuting = strictObject({
|
|
@@ -8021,7 +7763,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
8021
7763
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
8022
7764
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
8023
7765
|
|
|
8024
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7766
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
|
|
8025
7767
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
8026
7768
|
var chatEvent = strictObject({
|
|
8027
7769
|
chat_id: id,
|
|
@@ -8038,7 +7780,7 @@ var chatEvent = strictObject({
|
|
|
8038
7780
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
8039
7781
|
});
|
|
8040
7782
|
|
|
8041
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7783
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
|
|
8042
7784
|
var chatMetadata = strictObject({
|
|
8043
7785
|
chat_id: id,
|
|
8044
7786
|
title: nullable(text),
|
|
@@ -8053,7 +7795,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
8053
7795
|
has_more: boolean()
|
|
8054
7796
|
});
|
|
8055
7797
|
|
|
8056
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
|
|
8057
7799
|
var action = picklist(["report", "delete", "remove"]);
|
|
8058
7800
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
8059
7801
|
var chatRules = strictObject({
|
|
@@ -8090,7 +7832,7 @@ var chatModeration = strictObject({
|
|
|
8090
7832
|
}))
|
|
8091
7833
|
});
|
|
8092
7834
|
|
|
8093
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/chat-sending.js
|
|
8094
7836
|
var chatSending = strictObject({
|
|
8095
7837
|
mode: picklist(["allowed", "ask", "denied"]),
|
|
8096
7838
|
meaning: text,
|
|
@@ -8100,7 +7842,7 @@ var chatSending = strictObject({
|
|
|
8100
7842
|
changed: optional(boolean())
|
|
8101
7843
|
});
|
|
8102
7844
|
|
|
8103
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
|
|
8104
7846
|
var optionalCount = optional(count);
|
|
8105
7847
|
var minutes = nullable(number());
|
|
8106
7848
|
var chatStats = strictObject({
|
|
@@ -8176,7 +7918,7 @@ var taskStats = strictObject({
|
|
|
8176
7918
|
}))
|
|
8177
7919
|
});
|
|
8178
7920
|
|
|
8179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7921
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
|
|
8180
7922
|
var memberCount = strictObject({
|
|
8181
7923
|
day: pipe(text, isoDate()),
|
|
8182
7924
|
participants: nullable(count),
|
|
@@ -8199,7 +7941,7 @@ var chatTracking = strictObject({
|
|
|
8199
7941
|
tracked: boolean()
|
|
8200
7942
|
});
|
|
8201
7943
|
|
|
8202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
8203
7945
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
8204
7946
|
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
8205
7947
|
var profileFields = {
|
|
@@ -8237,7 +7979,7 @@ var profileFields = {
|
|
|
8237
7979
|
}))
|
|
8238
7980
|
};
|
|
8239
7981
|
|
|
8240
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7982
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
8241
7983
|
var contact = strictObject({
|
|
8242
7984
|
ref: reference,
|
|
8243
7985
|
id,
|
|
@@ -8268,7 +8010,7 @@ var contact = strictObject({
|
|
|
8268
8010
|
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
8269
8011
|
});
|
|
8270
8012
|
|
|
8271
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8013
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
|
|
8272
8014
|
var contactNote = strictObject({
|
|
8273
8015
|
id,
|
|
8274
8016
|
/** The contact, as a `contact:` reference. */
|
|
@@ -8280,13 +8022,13 @@ var contactNote = strictObject({
|
|
|
8280
8022
|
updated_at: time
|
|
8281
8023
|
});
|
|
8282
8024
|
|
|
8283
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8025
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
|
|
8284
8026
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
8285
8027
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
8286
8028
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
8287
8029
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
8288
8030
|
|
|
8289
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8031
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
8290
8032
|
var conversation = strictObject({
|
|
8291
8033
|
id,
|
|
8292
8034
|
chat: reference,
|
|
@@ -8301,7 +8043,7 @@ var conversation = strictObject({
|
|
|
8301
8043
|
rules_version: count
|
|
8302
8044
|
});
|
|
8303
8045
|
|
|
8304
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8046
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
|
|
8305
8047
|
var conversationBuild = strictObject({
|
|
8306
8048
|
chat: id,
|
|
8307
8049
|
messages: count,
|
|
@@ -8326,7 +8068,7 @@ var catchUpPreparation = strictObject({
|
|
|
8326
8068
|
prepared: optional(conversationPreparation)
|
|
8327
8069
|
});
|
|
8328
8070
|
|
|
8329
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8071
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
|
|
8330
8072
|
var conversationDetails = union([
|
|
8331
8073
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
8332
8074
|
message
|
|
@@ -8416,7 +8158,7 @@ var conversationHit = strictObject({
|
|
|
8416
8158
|
stale: boolean()
|
|
8417
8159
|
});
|
|
8418
8160
|
|
|
8419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8161
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/counters.js
|
|
8420
8162
|
var counters = strictObject({
|
|
8421
8163
|
cutoff: time,
|
|
8422
8164
|
max_age_ms: milliseconds,
|
|
@@ -8446,7 +8188,7 @@ var counterRefresh = strictObject({
|
|
|
8446
8188
|
complete: optional(boolean())
|
|
8447
8189
|
});
|
|
8448
8190
|
|
|
8449
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
8450
8192
|
var document = strictObject({
|
|
8451
8193
|
ref: reference,
|
|
8452
8194
|
id,
|
|
@@ -8461,7 +8203,7 @@ var document = strictObject({
|
|
|
8461
8203
|
owners: optional(array(text))
|
|
8462
8204
|
});
|
|
8463
8205
|
|
|
8464
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8206
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/document-link.js
|
|
8465
8207
|
var documentLink = strictObject({
|
|
8466
8208
|
ref: reference,
|
|
8467
8209
|
url: text,
|
|
@@ -8472,7 +8214,7 @@ var documentLink = strictObject({
|
|
|
8472
8214
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
8473
8215
|
});
|
|
8474
8216
|
|
|
8475
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8217
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/evidence.js
|
|
8476
8218
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
8477
8219
|
var contribution = strictObject({
|
|
8478
8220
|
message: evidenceMessage,
|
|
@@ -8502,7 +8244,7 @@ var retentionStay = strictObject({
|
|
|
8502
8244
|
});
|
|
8503
8245
|
var evidence = union([contribution, retentionStay]);
|
|
8504
8246
|
|
|
8505
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8247
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/fact.js
|
|
8506
8248
|
var fact = strictObject({
|
|
8507
8249
|
ref: reference,
|
|
8508
8250
|
id,
|
|
@@ -8533,9 +8275,20 @@ var fact = strictObject({
|
|
|
8533
8275
|
updated_at: time
|
|
8534
8276
|
});
|
|
8535
8277
|
|
|
8536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/hit.js
|
|
8537
8279
|
var hit = strictObject({
|
|
8538
|
-
kind: picklist([
|
|
8280
|
+
kind: picklist([
|
|
8281
|
+
"message",
|
|
8282
|
+
"mail",
|
|
8283
|
+
"note",
|
|
8284
|
+
"document",
|
|
8285
|
+
"event",
|
|
8286
|
+
"meeting",
|
|
8287
|
+
"deal",
|
|
8288
|
+
"lead",
|
|
8289
|
+
"crm_file",
|
|
8290
|
+
...BUSINESS_KINDS
|
|
8291
|
+
]),
|
|
8539
8292
|
ref: reference,
|
|
8540
8293
|
provider: text,
|
|
8541
8294
|
url: optional(text),
|
|
@@ -8581,7 +8334,7 @@ var hit = strictObject({
|
|
|
8581
8334
|
untrusted
|
|
8582
8335
|
});
|
|
8583
8336
|
|
|
8584
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8337
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/identity.js
|
|
8585
8338
|
var identity = strictObject({
|
|
8586
8339
|
ref: reference,
|
|
8587
8340
|
provider: text,
|
|
@@ -8597,7 +8350,7 @@ var identity = strictObject({
|
|
|
8597
8350
|
person: optional(nullable(reference))
|
|
8598
8351
|
});
|
|
8599
8352
|
|
|
8600
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8353
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
|
|
8601
8354
|
var imageEmbedding = strictObject({
|
|
8602
8355
|
model: text,
|
|
8603
8356
|
embedded: count,
|
|
@@ -8606,13 +8359,13 @@ var imageEmbedding = strictObject({
|
|
|
8606
8359
|
more: boolean()
|
|
8607
8360
|
});
|
|
8608
8361
|
|
|
8609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8362
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8610
8363
|
import { spawn } from "node:child_process";
|
|
8611
8364
|
import { randomBytes } from "node:crypto";
|
|
8612
|
-
import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync2, openSync, readdirSync as readdirSync3, readFileSync as
|
|
8365
|
+
import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync2, openSync, readdirSync as readdirSync3, readFileSync as readFileSync4, realpathSync, rmSync as rmSync2 } from "node:fs";
|
|
8613
8366
|
import { dirname as dirname2, join as join4 } from "node:path";
|
|
8614
8367
|
|
|
8615
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
8616
8369
|
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
8617
8370
|
const total = input.total ?? null;
|
|
8618
8371
|
const updated = input.updatedAt ?? null;
|
|
@@ -8628,7 +8381,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
8628
8381
|
};
|
|
8629
8382
|
}, "progressOf");
|
|
8630
8383
|
|
|
8631
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8384
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
8632
8385
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
8633
8386
|
const run = currentRun();
|
|
8634
8387
|
const trace = traceId ?? run.traceId;
|
|
@@ -8642,7 +8395,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
8642
8395
|
}));
|
|
8643
8396
|
}, "recordLogFor");
|
|
8644
8397
|
|
|
8645
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8646
8399
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
8647
8400
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
8648
8401
|
const out = openSync(log, "a", 384);
|
|
@@ -8669,7 +8422,7 @@ var readJob = /* @__PURE__ */ __name((dir, id6) => {
|
|
|
8669
8422
|
if (!/^[\w-]+$/.test(id6) || !existsSync5(jobPath(dir, id6)))
|
|
8670
8423
|
return void 0;
|
|
8671
8424
|
try {
|
|
8672
|
-
return JSON.parse(
|
|
8425
|
+
return JSON.parse(readFileSync4(jobPath(dir, id6), "utf8"));
|
|
8673
8426
|
} catch {
|
|
8674
8427
|
return void 0;
|
|
8675
8428
|
}
|
|
@@ -8797,7 +8550,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
8797
8550
|
return { job: id6, pid, chat: input.chat, log };
|
|
8798
8551
|
}, "startArchiveJob");
|
|
8799
8552
|
|
|
8800
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8553
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/job.js
|
|
8801
8554
|
var problem = strictObject({ code: text, message: text });
|
|
8802
8555
|
var job = strictObject({
|
|
8803
8556
|
id,
|
|
@@ -8820,7 +8573,7 @@ var job = strictObject({
|
|
|
8820
8573
|
error: optional(problem)
|
|
8821
8574
|
});
|
|
8822
8575
|
|
|
8823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8576
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/join-request.js
|
|
8824
8577
|
var joinRequest = strictObject({
|
|
8825
8578
|
person_id: id,
|
|
8826
8579
|
name: nullable(text),
|
|
@@ -8831,7 +8584,7 @@ var joinRequest = strictObject({
|
|
|
8831
8584
|
about: optional(text)
|
|
8832
8585
|
});
|
|
8833
8586
|
|
|
8834
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/list-results.js
|
|
8835
8588
|
var botProfile = strictObject({
|
|
8836
8589
|
name: text,
|
|
8837
8590
|
token: text,
|
|
@@ -8955,7 +8708,7 @@ var stickerInventory = strictObject({
|
|
|
8955
8708
|
url: optional(nullable(text))
|
|
8956
8709
|
});
|
|
8957
8710
|
|
|
8958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8711
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
|
|
8959
8712
|
var pollVote = strictObject({
|
|
8960
8713
|
person_id: id,
|
|
8961
8714
|
name: nullable(text),
|
|
@@ -8965,7 +8718,7 @@ var pollVote = strictObject({
|
|
|
8965
8718
|
voted_at: time
|
|
8966
8719
|
});
|
|
8967
8720
|
|
|
8968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8721
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/listener.js
|
|
8969
8722
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
8970
8723
|
var observation = strictObject({
|
|
8971
8724
|
value: pipe(number(), minValue(0)),
|
|
@@ -9007,7 +8760,7 @@ var serveSummary = strictObject({
|
|
|
9007
8760
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
9008
8761
|
});
|
|
9009
8762
|
|
|
9010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
|
|
9011
8764
|
var mailCounts = strictObject({
|
|
9012
8765
|
by: picklist(["day", "week", "sender"]),
|
|
9013
8766
|
received: count,
|
|
@@ -9022,7 +8775,7 @@ var mailCounts = strictObject({
|
|
|
9022
8775
|
}))
|
|
9023
8776
|
});
|
|
9024
8777
|
|
|
9025
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8778
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
|
|
9026
8779
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
9027
8780
|
var base = { id, evidence: array(evidence2) };
|
|
9028
8781
|
var finding = variant("kind", [
|
|
@@ -9166,7 +8919,7 @@ var mailFindings = strictObject({
|
|
|
9166
8919
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
9167
8920
|
});
|
|
9168
8921
|
|
|
9169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
9170
8923
|
var mediaArchive = strictObject({
|
|
9171
8924
|
directory: text,
|
|
9172
8925
|
chats: count,
|
|
@@ -9198,7 +8951,7 @@ var mediaArchiveTimer = union([
|
|
|
9198
8951
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
9199
8952
|
]);
|
|
9200
8953
|
|
|
9201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8954
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
9202
8955
|
var preparationId = pipe(string(), minLength(1));
|
|
9203
8956
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
9204
8957
|
var preparationTime = nullable(isoTime);
|
|
@@ -9290,7 +9043,7 @@ var preparationMeeting = strictObject({
|
|
|
9290
9043
|
updated_at: isoTime
|
|
9291
9044
|
});
|
|
9292
9045
|
|
|
9293
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9046
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
9294
9047
|
var meetingEvidence = preparationEvidence;
|
|
9295
9048
|
var meetingPersonContext = strictObject({
|
|
9296
9049
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -9312,7 +9065,7 @@ var meetingPersonContext = strictObject({
|
|
|
9312
9065
|
})
|
|
9313
9066
|
});
|
|
9314
9067
|
|
|
9315
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9068
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
9316
9069
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
9317
9070
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
9318
9071
|
var finding2 = variant("kind", [
|
|
@@ -9350,7 +9103,7 @@ var meetingFindings = strictObject({
|
|
|
9350
9103
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
|
|
9351
9104
|
});
|
|
9352
9105
|
|
|
9353
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9106
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
9354
9107
|
var communicationCoverage = strictObject({
|
|
9355
9108
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
9356
9109
|
query: string(),
|
|
@@ -9395,7 +9148,7 @@ var preparationCommunications = strictObject({
|
|
|
9395
9148
|
}))
|
|
9396
9149
|
});
|
|
9397
9150
|
|
|
9398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
9399
9152
|
var meetingPreparation = strictObject({
|
|
9400
9153
|
communications: optional(preparationCommunications),
|
|
9401
9154
|
schema_version: literal(1),
|
|
@@ -9508,7 +9261,7 @@ var meetingPreparation = strictObject({
|
|
|
9508
9261
|
})
|
|
9509
9262
|
});
|
|
9510
9263
|
|
|
9511
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
9512
9265
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
9513
9266
|
var id3 = pipe(string(), minLength(1));
|
|
9514
9267
|
var text3 = string();
|
|
@@ -9572,7 +9325,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
9572
9325
|
})
|
|
9573
9326
|
});
|
|
9574
9327
|
|
|
9575
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9328
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
9576
9329
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
9577
9330
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
9578
9331
|
var meetingSeriesInventory = strictObject({
|
|
@@ -9602,7 +9355,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
9602
9355
|
})
|
|
9603
9356
|
});
|
|
9604
9357
|
|
|
9605
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9358
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
9606
9359
|
var text4 = string();
|
|
9607
9360
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
9608
9361
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -9619,7 +9372,7 @@ var meetingTaskProposal = strictObject({
|
|
|
9619
9372
|
persistence: literal("proposal-only")
|
|
9620
9373
|
});
|
|
9621
9374
|
|
|
9622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9375
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
9623
9376
|
var memory = strictObject({
|
|
9624
9377
|
ref: reference,
|
|
9625
9378
|
id,
|
|
@@ -9647,7 +9400,7 @@ var memory = strictObject({
|
|
|
9647
9400
|
updated_at: time
|
|
9648
9401
|
});
|
|
9649
9402
|
|
|
9650
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9403
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
9651
9404
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
9652
9405
|
var status = picklist(["found", "linked", "proposed", "dismissed"]);
|
|
9653
9406
|
var mention = strictObject({
|
|
@@ -9691,13 +9444,16 @@ var mentionRebuild = strictObject({
|
|
|
9691
9444
|
mentions: count
|
|
9692
9445
|
});
|
|
9693
9446
|
|
|
9694
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9447
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
9695
9448
|
var operated3 = { operation_id: id, chat_id: id };
|
|
9696
9449
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
9697
9450
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
9698
9451
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
9452
|
+
var scheduledCancellation = strictObject({ ...operated3, cancelled: array(id) });
|
|
9453
|
+
var scheduledSendEntries = { ...operated3, sent: array(id), messages: array(message) };
|
|
9454
|
+
var scheduledSend = strictObject(scheduledSendEntries);
|
|
9699
9455
|
|
|
9700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9456
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
9701
9457
|
var messageTranscript = strictObject({
|
|
9702
9458
|
message_id: id,
|
|
9703
9459
|
text,
|
|
@@ -9755,7 +9511,7 @@ var evidencePacket = strictObject({
|
|
|
9755
9511
|
}))
|
|
9756
9512
|
});
|
|
9757
9513
|
|
|
9758
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9514
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
9759
9515
|
var messageThread = strictObject({
|
|
9760
9516
|
ref: reference,
|
|
9761
9517
|
chat: id,
|
|
@@ -9772,7 +9528,7 @@ var messageThread = strictObject({
|
|
|
9772
9528
|
});
|
|
9773
9529
|
var messageContext = union([message, messageThread]);
|
|
9774
9530
|
|
|
9775
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9531
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
9776
9532
|
var messageCounts = strictObject({
|
|
9777
9533
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
9778
9534
|
total: count,
|
|
@@ -9785,7 +9541,7 @@ var messageCounts = strictObject({
|
|
|
9785
9541
|
}))
|
|
9786
9542
|
});
|
|
9787
9543
|
|
|
9788
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9544
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
9789
9545
|
var messageLink = strictObject({
|
|
9790
9546
|
ref: reference,
|
|
9791
9547
|
url: nullable(text),
|
|
@@ -9802,7 +9558,7 @@ var messageLink = strictObject({
|
|
|
9802
9558
|
})))
|
|
9803
9559
|
});
|
|
9804
9560
|
|
|
9805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9561
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
9806
9562
|
var savedMessageFile = strictObject({
|
|
9807
9563
|
kind: text,
|
|
9808
9564
|
path: text,
|
|
@@ -9889,7 +9645,7 @@ var messageSyncAll = strictObject({
|
|
|
9889
9645
|
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
9890
9646
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
9891
9647
|
|
|
9892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
9893
9649
|
var messageWrite = strictObject({
|
|
9894
9650
|
operation_id: id,
|
|
9895
9651
|
message,
|
|
@@ -9904,7 +9660,7 @@ var draftWrite = strictObject({
|
|
|
9904
9660
|
});
|
|
9905
9661
|
var messageSend = union([messageWrite, draftWrite]);
|
|
9906
9662
|
|
|
9907
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9663
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
9908
9664
|
var model2 = strictObject({
|
|
9909
9665
|
id,
|
|
9910
9666
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -9939,7 +9695,7 @@ var chosenModel = strictObject({
|
|
|
9939
9695
|
estimate_seconds: nullable(count)
|
|
9940
9696
|
});
|
|
9941
9697
|
|
|
9942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9698
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
9943
9699
|
var source = picklist(["environment", "keyring", "file"]);
|
|
9944
9700
|
var modelKey = strictObject({
|
|
9945
9701
|
provider: text,
|
|
@@ -9949,7 +9705,7 @@ var modelKey = strictObject({
|
|
|
9949
9705
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
9950
9706
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
9951
9707
|
|
|
9952
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9708
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
9953
9709
|
var versus = strictObject({ current: number(), previous: number() });
|
|
9954
9710
|
var person = { person_ref: reference, name: nullable(text) };
|
|
9955
9711
|
var graph = strictObject({
|
|
@@ -9983,14 +9739,14 @@ var officialStats = strictObject({
|
|
|
9983
9739
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
9984
9740
|
});
|
|
9985
9741
|
|
|
9986
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9742
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
9987
9743
|
var person2 = strictObject({
|
|
9988
9744
|
ref: reference,
|
|
9989
9745
|
name: nullable(text),
|
|
9990
9746
|
identities: optional(array(identity))
|
|
9991
9747
|
});
|
|
9992
9748
|
|
|
9993
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9749
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
9994
9750
|
var poll = strictObject({
|
|
9995
9751
|
chat_id: id,
|
|
9996
9752
|
message_id: id,
|
|
@@ -10006,11 +9762,11 @@ var poll = strictObject({
|
|
|
10006
9762
|
});
|
|
10007
9763
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
10008
9764
|
|
|
10009
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9765
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
10010
9766
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
10011
9767
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
10012
9768
|
|
|
10013
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
10014
9770
|
var figures = record(string(), number());
|
|
10015
9771
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
10016
9772
|
var rankingRow = strictObject({
|
|
@@ -10057,7 +9813,7 @@ var ranking = strictObject({
|
|
|
10057
9813
|
rows: array(rankingRow)
|
|
10058
9814
|
});
|
|
10059
9815
|
|
|
10060
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
10061
9817
|
var reaction = strictObject({
|
|
10062
9818
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
10063
9819
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -10065,7 +9821,7 @@ var reaction = strictObject({
|
|
|
10065
9821
|
reacted_at: time
|
|
10066
9822
|
});
|
|
10067
9823
|
|
|
10068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9824
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
10069
9825
|
var reactionChange = strictObject({
|
|
10070
9826
|
operation_id: id,
|
|
10071
9827
|
chat_id: id,
|
|
@@ -10073,7 +9829,7 @@ var reactionChange = strictObject({
|
|
|
10073
9829
|
reaction: nullable(text)
|
|
10074
9830
|
});
|
|
10075
9831
|
|
|
10076
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
10077
9833
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
10078
9834
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
10079
9835
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -10084,7 +9840,7 @@ var recipientChange = strictObject({
|
|
|
10084
9840
|
...partial(recipientOff).entries
|
|
10085
9841
|
});
|
|
10086
9842
|
|
|
10087
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
10088
9844
|
var events = array(record(string(), unknown()));
|
|
10089
9845
|
var recordedRun = strictObject({
|
|
10090
9846
|
run_id: id,
|
|
@@ -10156,7 +9912,7 @@ var runHit = strictObject({
|
|
|
10156
9912
|
});
|
|
10157
9913
|
var runLocation = strictObject({ path: text });
|
|
10158
9914
|
|
|
10159
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9915
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
10160
9916
|
var relationship = strictObject({
|
|
10161
9917
|
id,
|
|
10162
9918
|
from: reference,
|
|
@@ -10183,7 +9939,7 @@ var relationship = strictObject({
|
|
|
10183
9939
|
created_at: time
|
|
10184
9940
|
});
|
|
10185
9941
|
|
|
10186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
10187
9943
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
10188
9944
|
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
10189
9945
|
var responseTimes = strictObject({
|
|
@@ -10200,7 +9956,7 @@ var waitingChats = strictObject({
|
|
|
10200
9956
|
by_kind: strictObject({ private: count, group: count })
|
|
10201
9957
|
});
|
|
10202
9958
|
|
|
10203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9959
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
10204
9960
|
var retentionCohort = strictObject({
|
|
10205
9961
|
/** The first day of the joining day or week. */
|
|
10206
9962
|
cohort: text,
|
|
@@ -10248,7 +10004,7 @@ var retention = strictObject({
|
|
|
10248
10004
|
rows: array(retentionCohort)
|
|
10249
10005
|
});
|
|
10250
10006
|
|
|
10251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10007
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
10252
10008
|
var savedSearch = strictObject({
|
|
10253
10009
|
id,
|
|
10254
10010
|
/** `null` for a run in the history. */
|
|
@@ -10265,7 +10021,7 @@ var savedSearch = strictObject({
|
|
|
10265
10021
|
});
|
|
10266
10022
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
10267
10023
|
|
|
10268
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10024
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
10269
10025
|
var sendAttempt = strictObject({
|
|
10270
10026
|
at: time,
|
|
10271
10027
|
profile: text,
|
|
@@ -10293,7 +10049,7 @@ var sendAttempt = strictObject({
|
|
|
10293
10049
|
error_code: optional(text)
|
|
10294
10050
|
});
|
|
10295
10051
|
|
|
10296
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10052
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
10297
10053
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
10298
10054
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
10299
10055
|
var infoSchema = strictObject({
|
|
@@ -10523,7 +10279,7 @@ var storeRepair = union([
|
|
|
10523
10279
|
]);
|
|
10524
10280
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
10525
10281
|
|
|
10526
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10282
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
10527
10283
|
var range = strictObject({ from: number(), to: number() });
|
|
10528
10284
|
var storeChatStatus = strictObject({
|
|
10529
10285
|
chat_id: id,
|
|
@@ -10621,7 +10377,7 @@ var storeJobRetry = union([
|
|
|
10621
10377
|
]);
|
|
10622
10378
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
10623
10379
|
|
|
10624
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10380
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
10625
10381
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
10626
10382
|
var storeTable = strictObject({
|
|
10627
10383
|
name: text,
|
|
@@ -10630,7 +10386,7 @@ var storeTable = strictObject({
|
|
|
10630
10386
|
bytes: optional(nullable(count))
|
|
10631
10387
|
});
|
|
10632
10388
|
|
|
10633
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10389
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
10634
10390
|
var tagTarget = variant("type", [
|
|
10635
10391
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
10636
10392
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -10661,7 +10417,7 @@ var automaticTags = strictObject({
|
|
|
10661
10417
|
dry_run: boolean()
|
|
10662
10418
|
});
|
|
10663
10419
|
|
|
10664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
10665
10421
|
var tagging = strictObject({
|
|
10666
10422
|
tag: text,
|
|
10667
10423
|
type: picklist(TAG_TYPES),
|
|
@@ -10674,7 +10430,7 @@ var tagging = strictObject({
|
|
|
10674
10430
|
created_at: time
|
|
10675
10431
|
});
|
|
10676
10432
|
|
|
10677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
10678
10434
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
10679
10435
|
var taskPair = strictObject({
|
|
10680
10436
|
task: nullable(side),
|
|
@@ -10697,7 +10453,7 @@ var taskPair = strictObject({
|
|
|
10697
10453
|
created_at: time
|
|
10698
10454
|
});
|
|
10699
10455
|
|
|
10700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10456
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
10701
10457
|
var nullableTime = nullable(time);
|
|
10702
10458
|
var link = strictObject({
|
|
10703
10459
|
id,
|
|
@@ -10871,7 +10627,7 @@ var taskReview = strictObject({
|
|
|
10871
10627
|
untrusted
|
|
10872
10628
|
});
|
|
10873
10629
|
|
|
10874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/template.js
|
|
10875
10631
|
var template = strictObject({
|
|
10876
10632
|
key: text,
|
|
10877
10633
|
channel: picklist(["telegram", "email", "text"]),
|
|
@@ -10883,7 +10639,7 @@ var template = strictObject({
|
|
|
10883
10639
|
updated_by: nullable(text)
|
|
10884
10640
|
});
|
|
10885
10641
|
|
|
10886
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10642
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
10887
10643
|
var topic = strictObject({
|
|
10888
10644
|
id,
|
|
10889
10645
|
title: text,
|
|
@@ -10897,7 +10653,7 @@ var topic = strictObject({
|
|
|
10897
10653
|
untrusted
|
|
10898
10654
|
});
|
|
10899
10655
|
|
|
10900
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10656
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
10901
10657
|
var ENTITIES = {
|
|
10902
10658
|
sync_progress: progress,
|
|
10903
10659
|
deal,
|
|
@@ -10953,6 +10709,8 @@ var ENTITIES = {
|
|
|
10953
10709
|
message_pin: messagePin,
|
|
10954
10710
|
message_star: messageStar,
|
|
10955
10711
|
message_deletion: messageDeletion,
|
|
10712
|
+
scheduled_cancellation: scheduledCancellation,
|
|
10713
|
+
scheduled_send: scheduledSend,
|
|
10956
10714
|
message_transcript: messageTranscript,
|
|
10957
10715
|
message_links: messageLinks,
|
|
10958
10716
|
evidence_packet: evidencePacket,
|
|
@@ -11196,7 +10954,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
11196
10954
|
return [name, definition];
|
|
11197
10955
|
})), "entityDefinitions");
|
|
11198
10956
|
|
|
11199
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10957
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
11200
10958
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
11201
10959
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
11202
10960
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -11230,61 +10988,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
11230
10988
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
11231
10989
|
}, "answerRow");
|
|
11232
10990
|
|
|
11233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11234
|
-
import { join as join5 } from "node:path";
|
|
11235
|
-
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
11236
|
-
var IMAGE_MODELS = [
|
|
11237
|
-
{
|
|
11238
|
-
id: "clip-b32",
|
|
11239
|
-
title: "CLIP ViT-B/32, 8-bit",
|
|
11240
|
-
languages: "English only: translate a query before searching",
|
|
11241
|
-
licence: "MIT",
|
|
11242
|
-
dims: 512,
|
|
11243
|
-
key: "local:clip-b32:512",
|
|
11244
|
-
maxTokens: 77,
|
|
11245
|
-
vision: "onnx/vision_model_quantized.onnx",
|
|
11246
|
-
text: "onnx/text_model_quantized.onnx",
|
|
11247
|
-
files: [
|
|
11248
|
-
{
|
|
11249
|
-
name: "onnx/vision_model_quantized.onnx",
|
|
11250
|
-
url: clip("onnx/vision_model_quantized.onnx"),
|
|
11251
|
-
sha256: "583fd1110a514667812fee7d684952aaf82a99b959760c8d7dca7e0ab9839299",
|
|
11252
|
-
bytes: 89117001
|
|
11253
|
-
},
|
|
11254
|
-
{
|
|
11255
|
-
name: "onnx/text_model_quantized.onnx",
|
|
11256
|
-
url: clip("onnx/text_model_quantized.onnx"),
|
|
11257
|
-
sha256: "73baab855d406190da9faa498cfedf65f15cf309f4cc7385b7b032e6d08e5c3a",
|
|
11258
|
-
bytes: 64504507
|
|
11259
|
-
},
|
|
11260
|
-
{
|
|
11261
|
-
name: "tokenizer.json",
|
|
11262
|
-
url: clip("tokenizer.json"),
|
|
11263
|
-
sha256: "f7f3b7af117d467b58374797691a6438d3e6b9e9cef800dfd5dced7f697a90cd",
|
|
11264
|
-
bytes: 2224119
|
|
11265
|
-
},
|
|
11266
|
-
{
|
|
11267
|
-
name: "tokenizer_config.json",
|
|
11268
|
-
url: clip("tokenizer_config.json"),
|
|
11269
|
-
sha256: "60ba2912bc6344c94bc16bbdec27fa1209409167b6f2fdf3cfe9e65462ea3967",
|
|
11270
|
-
bytes: 775
|
|
11271
|
-
}
|
|
11272
|
-
]
|
|
11273
|
-
}
|
|
11274
|
-
];
|
|
11275
|
-
var DEFAULT_IMAGE_MODEL = "clip-b32";
|
|
11276
|
-
var imageModel = /* @__PURE__ */ __name((id6) => {
|
|
11277
|
-
const found = IMAGE_MODELS.find((model3) => model3.id === id6);
|
|
11278
|
-
if (!found) {
|
|
11279
|
-
throw new CliError("validation_error", `no image model ${id6} \u2014 one of: ${IMAGE_MODELS.map((model3) => model3.id).join(", ")}`);
|
|
11280
|
-
}
|
|
11281
|
-
return found;
|
|
11282
|
-
}, "imageModel");
|
|
11283
|
-
var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("image", env), "imageModelsDirectory");
|
|
11284
|
-
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join5(directory, model3.id, file.name)]), "placedImage");
|
|
11285
|
-
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
11286
|
-
|
|
11287
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
10991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
11288
10992
|
var STEPS2 = defineSteps([
|
|
11289
10993
|
...STEPS,
|
|
11290
10994
|
{
|
|
@@ -11574,7 +11278,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
11574
11278
|
].join(" ");
|
|
11575
11279
|
}, "stepLine");
|
|
11576
11280
|
|
|
11577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
11578
11282
|
var where = [{ field: "ref" }];
|
|
11579
11283
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
11580
11284
|
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
@@ -11666,7 +11370,7 @@ var STATUS_ROWS = {
|
|
|
11666
11370
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
11667
11371
|
};
|
|
11668
11372
|
|
|
11669
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
11670
11374
|
var TEXT_CHARS = 400;
|
|
11671
11375
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
11672
11376
|
var messageRow = {
|
|
@@ -12034,7 +11738,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
12034
11738
|
return lines.concat(footerOf(body)).join("\n");
|
|
12035
11739
|
}, "compactText");
|
|
12036
11740
|
|
|
12037
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11741
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
12038
11742
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
12039
11743
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
12040
11744
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -12092,7 +11796,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
12092
11796
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
12093
11797
|
}, "largeAnswerSteps");
|
|
12094
11798
|
|
|
12095
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11799
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
12096
11800
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
12097
11801
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
12098
11802
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -12106,7 +11810,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
12106
11810
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
12107
11811
|
}, "strip");
|
|
12108
11812
|
|
|
12109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11813
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/untrusted-marks.js
|
|
12110
11814
|
var OPEN = "\u27E6";
|
|
12111
11815
|
var CLOSE = "\u27E7";
|
|
12112
11816
|
var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -12115,6 +11819,10 @@ var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
|
|
|
12115
11819
|
const mark = ancestorValue(envName(app, "UNTRUSTED_MARK"), env);
|
|
12116
11820
|
return mark && /^[0-9a-f]{16}$/.test(mark) ? mark : void 0;
|
|
12117
11821
|
}, "untrustedMarkOf");
|
|
11822
|
+
var runMarkOf = /* @__PURE__ */ __name((command) => {
|
|
11823
|
+
const { app, env } = environmentOf(command);
|
|
11824
|
+
return app ? untrustedMarkOf(app, env ?? process.env) : void 0;
|
|
11825
|
+
}, "runMarkOf");
|
|
12118
11826
|
var marked = /* @__PURE__ */ __name((text5, mark, source2, id6) => {
|
|
12119
11827
|
const inside = text5.replaceAll(OPEN, "").replaceAll(CLOSE, "").replaceAll(mark, "");
|
|
12120
11828
|
const named3 = id6 === void 0 ? "" : ` id=${id6.replaceAll(OPEN, "").replaceAll(CLOSE, "").replace(/\s/g, "")}`;
|
|
@@ -12190,7 +11898,7 @@ var withFieldsMarked = /* @__PURE__ */ __name((value, fields, mark, id6) => {
|
|
|
12190
11898
|
return result;
|
|
12191
11899
|
}, "withFieldsMarked");
|
|
12192
11900
|
|
|
12193
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11901
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
12194
11902
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
12195
11903
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
12196
11904
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -12320,8 +12028,7 @@ var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams,
|
|
|
12320
12028
|
const root = rootOf2(command);
|
|
12321
12029
|
const runnableSteps = runnable(root, body.next);
|
|
12322
12030
|
const next = environmentOf(command).agent ? runnableSteps : withLines(root, runnableSteps);
|
|
12323
|
-
const
|
|
12324
|
-
const mark = app ? untrustedMarkOf(app, env ?? process.env) : void 0;
|
|
12031
|
+
const mark = runMarkOf(command);
|
|
12325
12032
|
const declared = untrustedFieldsOf(command);
|
|
12326
12033
|
const shown = mark === void 0 ? body : withUntrustedMarked(declared ? withFieldsMarked(body, declared, mark) : body, mark);
|
|
12327
12034
|
const kept = withoutProviderRefs({ ...shown, ...next.length > 0 ? { next } : {} });
|
|
@@ -12365,14 +12072,7 @@ var printItem = /* @__PURE__ */ __name(({ renderer, format }, item) => {
|
|
|
12365
12072
|
}, "printItem");
|
|
12366
12073
|
|
|
12367
12074
|
export {
|
|
12368
|
-
modelTarget,
|
|
12369
12075
|
resolveAISettings,
|
|
12370
|
-
envName,
|
|
12371
|
-
ancestorValue,
|
|
12372
|
-
readOnlyLockOf,
|
|
12373
|
-
mailHolderVariable,
|
|
12374
|
-
MESSENGER_CHANGE_REFUSAL,
|
|
12375
|
-
readOnlyRefusal,
|
|
12376
12076
|
recordLogFor,
|
|
12377
12077
|
parseDuration,
|
|
12378
12078
|
WEIGHTS,
|
|
@@ -12446,17 +12146,12 @@ export {
|
|
|
12446
12146
|
readKeysForCommand,
|
|
12447
12147
|
keyForCommand,
|
|
12448
12148
|
assertRetentionEvidenceRead,
|
|
12449
|
-
deadlineMargin,
|
|
12450
12149
|
recorded,
|
|
12451
12150
|
startRecording,
|
|
12452
12151
|
wasSettled,
|
|
12453
12152
|
inCommandServerRequest,
|
|
12454
12153
|
commandServerRequest,
|
|
12455
12154
|
exitCodeSet,
|
|
12456
|
-
sentIds,
|
|
12457
|
-
currentOperation,
|
|
12458
|
-
guardedWrite,
|
|
12459
|
-
codeOf,
|
|
12460
12155
|
DEFAULT_COMMAND_MS,
|
|
12461
12156
|
DEFAULT_COOPERATIVE_MS,
|
|
12462
12157
|
DEFAULT_SYNC_MS,
|
|
@@ -12501,6 +12196,7 @@ export {
|
|
|
12501
12196
|
setExitCode,
|
|
12502
12197
|
provide,
|
|
12503
12198
|
environmentOf,
|
|
12199
|
+
withoutOwnPaging,
|
|
12504
12200
|
withAgentLevels,
|
|
12505
12201
|
secretInputOf,
|
|
12506
12202
|
outputFieldsOf,
|
|
@@ -12567,12 +12263,6 @@ export {
|
|
|
12567
12263
|
topic,
|
|
12568
12264
|
ENTITIES,
|
|
12569
12265
|
entityDefinitions,
|
|
12570
|
-
IMAGE_MODELS,
|
|
12571
|
-
DEFAULT_IMAGE_MODEL,
|
|
12572
|
-
imageModel,
|
|
12573
|
-
imageModelsDirectory,
|
|
12574
|
-
placedImage,
|
|
12575
|
-
isImageModelInstalled,
|
|
12576
12266
|
answerEntity,
|
|
12577
12267
|
answerEntitySchema,
|
|
12578
12268
|
answerProjectionSchema,
|
|
@@ -12589,6 +12279,8 @@ export {
|
|
|
12589
12279
|
stepLine,
|
|
12590
12280
|
tooLargeSteps,
|
|
12591
12281
|
withoutProviderRefs,
|
|
12282
|
+
runMarkOf,
|
|
12283
|
+
withUntrustedMarked,
|
|
12592
12284
|
marksUntrusted,
|
|
12593
12285
|
answerSchema,
|
|
12594
12286
|
listOf,
|