@wirecat/zoom-cli 0.81.0 → 0.83.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/contracts/wirecat.json +54 -54
- package/dist/answers.d.ts +56 -0
- package/dist/answers.d.ts.map +1 -1
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +1 -1
- package/dist/api.js.map +1 -1
- package/dist/bin/main.js +2 -15
- package/dist/bin/main.js.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/agent-3HDWEZ5M.js +47 -0
- package/dist/bundle/{all-profiles-3ASMN35R.js → all-profiles-RY2OMSDL.js} +12 -12
- package/dist/bundle/answer-policy-IFVXPPGW.js +131 -0
- package/dist/bundle/{anthropic-XXI53VNI.js → anthropic-36VPSF7B.js} +6 -6
- package/dist/bundle/{app-server-B7WLNZNQ.js → app-server-ZVJVUGB7.js} +79 -76
- package/dist/bundle/{bun-2FLR4IV4.js → bun-F4M4KCNA.js} +2 -2
- package/dist/bundle/{bun-sqlite-3NNHTOGM.js → bun-sqlite-IOPYIUA7.js} +7 -7
- package/dist/bundle/{chunk-L54I45OX.js → chunk-26TW5RZ6.js} +33 -317
- package/dist/bundle/{chunk-JK24A3RP.js → chunk-2DK5BBFF.js} +3 -3
- package/dist/bundle/{chunk-4VOCXLMJ.js → chunk-2IBKKVVZ.js} +6 -6
- package/dist/bundle/{chunk-WKNYNK7W.js → chunk-2S54TM4N.js} +4 -4
- package/dist/bundle/{chunk-WHXYPLUE.js → chunk-3AQHKXVR.js} +4 -4
- package/dist/bundle/{chunk-YISJJNXT.js → chunk-3CW2C7ZA.js} +3 -3
- package/dist/bundle/{chunk-77TJ3AJH.js → chunk-3KUEZK5Z.js} +3 -3
- package/dist/bundle/{chunk-NQGGTO3B.js → chunk-3PXUQFHX.js} +8 -8
- package/dist/bundle/{chunk-N5ROXGY4.js → chunk-3QN5KDFZ.js} +167 -167
- package/dist/bundle/{chunk-AWJQ6FAX.js → chunk-434YFJAE.js} +2 -2
- package/dist/bundle/{chunk-4BU3LRTB.js → chunk-575JMTDR.js} +19 -18
- package/dist/bundle/{chunk-NM5XMKWO.js → chunk-5B2LV4MS.js} +2 -1
- package/dist/bundle/{chunk-3M436OO2.js → chunk-5WL5RHOO.js} +7 -102
- package/dist/bundle/{chunk-PS7HQ5LQ.js → chunk-6C7ESL5N.js} +3 -3
- package/dist/bundle/{chunk-SRUAUMBL.js → chunk-6E4KLYNP.js} +12 -12
- package/dist/bundle/chunk-7JDXR75Q.js +465 -0
- package/dist/bundle/{chunk-L2ERFXB7.js → chunk-AK3H2C65.js} +40 -31
- package/dist/bundle/{chunk-OEQNP56V.js → chunk-AQ5RIOUE.js} +1 -1
- package/dist/bundle/{chunk-35FVYRH5.js → chunk-AQLUAQXJ.js} +37 -180
- package/dist/bundle/{chunk-EPASOAEI.js → chunk-ASTLGFTR.js} +284 -184
- package/dist/bundle/{chunk-YNWBRDBX.js → chunk-ATHBB7OU.js} +2 -2
- package/dist/bundle/{chunk-ZFRYFDZN.js → chunk-B2NM65RD.js} +14 -6
- package/dist/bundle/{chunk-VQTYJ6XH.js → chunk-B4KHDXJE.js} +3 -3
- package/dist/bundle/{chunk-G3DWMG7Y.js → chunk-BAFC7WNI.js} +4 -4
- package/dist/bundle/{chunk-2GNGR265.js → chunk-BBGJQMRI.js} +1 -1
- package/dist/bundle/{chunk-C4BBCSGK.js → chunk-BTLZYRIW.js} +6 -6
- package/dist/bundle/{chunk-T2BHIC37.js → chunk-BZDS2X6Y.js} +65 -65
- package/dist/bundle/{chunk-3UX4VJWD.js → chunk-C7JPYWYQ.js} +3 -4
- package/dist/bundle/{chunk-R4CXFYQN.js → chunk-CDQUW25G.js} +180 -38
- package/dist/bundle/{chunk-YJKXCINQ.js → chunk-CJWGJBHW.js} +274 -60
- package/dist/bundle/{chunk-F2J2FQUB.js → chunk-D7RCUODT.js} +9 -9
- package/dist/bundle/{chunk-AV2ZJ4WX.js → chunk-DNCLQPOM.js} +1 -1
- package/dist/bundle/{chunk-LGESUPKO.js → chunk-DQJECJUE.js} +25 -90
- package/dist/bundle/{chunk-MA4UJNUI.js → chunk-E4JQ3MCW.js} +12 -12
- package/dist/bundle/{chunk-GW2A2FJH.js → chunk-E4ODYLEK.js} +8 -8
- package/dist/bundle/{chunk-Q26UFIH4.js → chunk-EE45N67Q.js} +16 -3
- package/dist/bundle/{chunk-5SEBLX6B.js → chunk-EEEU4MKK.js} +12 -12
- package/dist/bundle/{chunk-YRDQ54G5.js → chunk-ESN3W2MZ.js} +24 -11
- package/dist/bundle/{chunk-M7OYEMLI.js → chunk-ETIZGA4P.js} +7 -7
- package/dist/bundle/{chunk-IVZACJ6X.js → chunk-F44QK6CK.js} +4 -4
- package/dist/bundle/{chunk-JKEMW6E4.js → chunk-FH2UFNH6.js} +2 -2
- package/dist/bundle/{chunk-XYQVVW4R.js → chunk-FTH6WGYO.js} +1 -1
- package/dist/bundle/chunk-FWACRG4X.js +160 -0
- package/dist/bundle/chunk-G5SZL7G2.js +150 -0
- package/dist/bundle/{chunk-GDRFVBCB.js → chunk-G6CHEFAG.js} +2 -2
- package/dist/bundle/{chunk-2ELGSNX3.js → chunk-GHJD7PE6.js} +170 -170
- package/dist/bundle/{chunk-LECMHK2F.js → chunk-GZ7WBU5Y.js} +1 -1
- package/dist/bundle/{chunk-4ZXJ4AZW.js → chunk-H6A4NWYJ.js} +322 -45
- package/dist/bundle/{chunk-D26K6756.js → chunk-HKLRI2LB.js} +6 -6
- package/dist/bundle/{chunk-R6HP2XKD.js → chunk-HMD4FZYY.js} +5 -5
- package/dist/bundle/{chunk-2Z7UOXFC.js → chunk-HO4JGD4Q.js} +1 -1
- package/dist/bundle/chunk-HUAHLO6N.js +29 -0
- package/dist/bundle/{chunk-UHMJSSQO.js → chunk-IANKXHSE.js} +1 -1
- package/dist/bundle/{chunk-QFK52FG6.js → chunk-IQZXFWFI.js} +3 -3
- package/dist/bundle/{chunk-GPRJXJC7.js → chunk-ISQ23VKV.js} +22 -1
- package/dist/bundle/{chunk-ZLYICF6A.js → chunk-JEH33ZCD.js} +4 -4
- package/dist/bundle/{chunk-IDUKCXL7.js → chunk-JUNQYWQ2.js} +13 -9
- package/dist/bundle/{chunk-337ALCXQ.js → chunk-JUXMVQWJ.js} +312 -153
- package/dist/bundle/{chunk-5EWYDHBH.js → chunk-KHQDWYCG.js} +2 -2
- package/dist/bundle/{chunk-FMMYBVCH.js → chunk-KYRYD4CR.js} +1 -1
- package/dist/bundle/chunk-LBGT6W4R.js +377 -0
- package/dist/bundle/{chunk-UUVWAVKN.js → chunk-LN7HRYTH.js} +3 -3
- package/dist/bundle/{chunk-NS3JWBDR.js → chunk-MEB7HBTM.js} +6 -6
- package/dist/bundle/{chunk-K7CTCDYX.js → chunk-MEEFWYX3.js} +6 -6
- package/dist/bundle/{chunk-BQBC2WIG.js → chunk-MNOAMJ6H.js} +1 -1
- package/dist/bundle/{chunk-Y7XJA4EW.js → chunk-MYHPXJDG.js} +4 -4
- package/dist/bundle/{chunk-7JWVPJIP.js → chunk-NGI37RFW.js} +10 -10
- package/dist/bundle/{chunk-437DLSB3.js → chunk-NZMWD7Y3.js} +17227 -13055
- package/dist/bundle/chunk-O6IECJRM.js +54 -0
- package/dist/bundle/{chunk-LVCCZI5A.js → chunk-OBWL3BUV.js} +39 -39
- package/dist/bundle/{chunk-GCAJW4SR.js → chunk-OEEWVKJX.js} +1 -1
- package/dist/bundle/chunk-OGTN2KVG.js +147 -0
- package/dist/bundle/{chunk-B2WBWKYN.js → chunk-OQYZ3W4K.js} +12 -12
- package/dist/bundle/{chunk-IFM4G4MT.js → chunk-P3ZCTYGW.js} +4 -4
- package/dist/bundle/{chunk-VAW7QGJA.js → chunk-PVEBAHFU.js} +3 -3
- package/dist/bundle/{chunk-IYNICUCC.js → chunk-R2B6PUVI.js} +4 -4
- package/dist/bundle/{chunk-D7CDHBDX.js → chunk-R6IA5UQB.js} +1 -1
- package/dist/bundle/{chunk-T7QPZYRZ.js → chunk-RLOH7RDN.js} +7 -7
- package/dist/bundle/{chunk-V3ZTAAJ6.js → chunk-RQ4AXSCJ.js} +8 -8
- package/dist/bundle/{chunk-4BXLHSXY.js → chunk-RYGTCRFZ.js} +2 -2
- package/dist/bundle/{chunk-XWKUGAG6.js → chunk-S4PXWIE4.js} +85 -87
- package/dist/bundle/{chunk-ZMAPXIGC.js → chunk-SDZZYZLL.js} +2 -2
- package/dist/bundle/{chunk-ZNAX7GUV.js → chunk-SHQAYUK6.js} +8 -8
- package/dist/bundle/{chunk-YUDVRFXN.js → chunk-T3W4V4A6.js} +1 -1
- package/dist/bundle/{chunk-F5ZAN7OC.js → chunk-TCT5D2X2.js} +1 -1
- package/dist/bundle/{chunk-EEBSKMEA.js → chunk-TDWPOSPR.js} +12 -12
- package/dist/bundle/{chunk-WIX6BFRF.js → chunk-TER3N27H.js} +8 -8
- package/dist/bundle/{chunk-UMPUY77T.js → chunk-TMTNP7QN.js} +10 -10
- package/dist/bundle/{chunk-BZXHJKKI.js → chunk-TO5UEWXR.js} +2 -2
- package/dist/bundle/{chunk-HVXOA4FO.js → chunk-TXDR6YSF.js} +1 -1
- package/dist/bundle/{chunk-CFQQTDSA.js → chunk-TY7NDMFY.js} +1 -1
- package/dist/bundle/{chunk-YIIGF643.js → chunk-UAWSINMC.js} +10 -10
- package/dist/bundle/{chunk-RQFRXUI4.js → chunk-UBH7YF3C.js} +200 -112
- package/dist/bundle/{chunk-MBBR7QHI.js → chunk-UEAE3JUU.js} +2641 -1150
- package/dist/bundle/{chunk-2RFWRJFK.js → chunk-UHR363OD.js} +14 -10
- package/dist/bundle/{chunk-RRYHLP3A.js → chunk-UM52A76S.js} +6 -6
- package/dist/bundle/chunk-URP6BTHN.js +624 -0
- package/dist/bundle/{chunk-HHQROAJQ.js → chunk-UWQEAA6S.js} +1 -1
- package/dist/bundle/{chunk-DMJLJVD3.js → chunk-VR7QZGRU.js} +7 -7
- package/dist/bundle/{chunk-QNG27PGH.js → chunk-VRH5PBSL.js} +21 -17
- package/dist/bundle/chunk-VTLQTQKY.js +1756 -0
- package/dist/bundle/{chunk-NX3BLISW.js → chunk-VTYNLTDW.js} +6 -6
- package/dist/bundle/{chunk-HIFPHARA.js → chunk-WY7XG6TE.js} +4 -4
- package/dist/bundle/{chunk-IBYGNUO7.js → chunk-XEOZTA3H.js} +1 -1
- package/dist/bundle/{chunk-4FSH7K6N.js → chunk-XH23ML2V.js} +2 -2
- package/dist/bundle/{chunk-VXD65V67.js → chunk-XYF76A26.js} +2224 -2288
- package/dist/bundle/{chunk-J5EHZBO5.js → chunk-ZDYJAEVB.js} +19 -3
- package/dist/bundle/{chunk-FXZPAGHT.js → chunk-ZJ63HDBT.js} +2 -2
- package/dist/bundle/{chunk-N62P5FY4.js → chunk-ZT4ZPUIO.js} +12 -12
- package/dist/bundle/{cli-WTGAGSXV.js → cli-JK6PQSSN.js} +133 -116
- package/dist/bundle/command-contract-F3QNBKPX.js +46 -0
- package/dist/bundle/{command-server-entry-47CAYN3E.js → command-server-entry-DJLGN62J.js} +36 -35
- package/dist/bundle/config-TYYMV3HV.js +118 -0
- package/dist/bundle/{decode-2G7QS5IQ.js → decode-ZZICNNFF.js} +6 -6
- package/dist/bundle/{dispatch-ZAP3KBVJ.js → dispatch-FKMIPCPQ.js} +9 -9
- package/dist/bundle/{dist-WY6R3WH7.js → dist-NQPF25XI.js} +52 -49
- package/dist/bundle/{echarts-YRRVLEX3.js → echarts-QMAA7HH5.js} +2 -2
- package/dist/bundle/{embed-B5H3OW2O.js → embed-T64EUKUI.js} +7 -7
- package/dist/bundle/{embedder-3O73SP6Y.js → embedder-ZEKISZXI.js} +10 -10
- package/dist/bundle/{failure-EYGW7JMC.js → failure-XTWBYI2A.js} +3 -3
- package/dist/bundle/first-run-ZFNY4RRH.js +29 -0
- package/dist/bundle/first-screen-LPGCHRHZ.js +47 -0
- package/dist/bundle/{folders-4CGFWM6H.js → folders-ROKVKSCT.js} +5 -5
- package/dist/bundle/{instructions-AG7SRWTR.js → instructions-4H7UREH2.js} +1 -1
- package/dist/bundle/{main-DOGY6FJP.js → main-GCK3VYAA.js} +27 -37
- package/dist/bundle/{mcp-YGOAUNC3.js → mcp-5HFPWC3W.js} +2 -2
- package/dist/bundle/meeting-combined-7HDPOUPB.js +28 -0
- package/dist/bundle/meeting-model-MVUW7UPQ.js +26 -0
- package/dist/bundle/{meeting-semantic-FOEBWV3P.js → meeting-semantic-IF633WGX.js} +8 -8
- package/dist/bundle/{meetings-PVE4C2NF.js → meetings-RY2AAPHV.js} +7 -7
- package/dist/bundle/{node-GJQYN4FT.js → node-P3PUHKYH.js} +2 -2
- package/dist/bundle/{node-sqlite-MLRYKVCQ.js → node-sqlite-ASAZJNHE.js} +8 -8
- package/dist/bundle/{oauth-AC55C6SG.js → oauth-4U3OCK3W.js} +8 -8
- package/dist/bundle/oauth-AJARLPSY.js +46 -0
- package/dist/bundle/{open-3LGTYP6M.js → open-SEJRY2ZI.js} +6 -6
- package/dist/bundle/openai-FZDSC2AA.js +28 -0
- package/dist/bundle/{output-file-FXMTTLOI.js → output-file-RYIOIXMD.js} +6 -6
- package/dist/bundle/{process-MEKCZMX3.js → process-AFIXYXWL.js} +1 -1
- package/dist/bundle/{program-E5BSSIGY.js → program-OYLVYA4Z.js} +186 -247
- package/dist/bundle/{prompt-AIA6QSZK.js → prompt-BCRD64F4.js} +6 -6
- package/dist/bundle/public-SVJILCNI.js +206 -0
- package/dist/bundle/{recognize-M57VNTEV.js → recognize-25ITJWGX.js} +5 -5
- package/dist/bundle/{remote-3OTENZ7Z.js → remote-5FBAJX7O.js} +11 -11
- package/dist/bundle/{rerank-P5WHDFDU.js → rerank-2HGWWORY.js} +8 -8
- package/dist/bundle/run-log-7HRF4Y47.js +145 -0
- package/dist/bundle/{serve-BRLC2QVV.js → serve-RL35MSJD.js} +10 -10
- package/dist/bundle/{server-25NF7DMS.js → server-QUSBWACP.js} +71 -68
- package/dist/bundle/server-SCK2SRDK.js +96 -0
- package/dist/bundle/{services-MJE43OGD.js → services-BGRIQNDC.js} +66 -60
- package/dist/bundle/{speech-4AVCWTQH.js → speech-4W3ZMTFK.js} +25 -25
- package/dist/bundle/{sqlite-runtime-U4TQXWMC.js → sqlite-runtime-K3KLRZCV.js} +7 -7
- package/dist/bundle/{state-GNUGVMY7.js → state-GYL4C74G.js} +7 -7
- package/dist/bundle/{store-KBFZVQWF.js → store-27UQMNEO.js} +28 -26
- package/dist/bundle/{store-MHVBFUBB.js → store-NLYH5SQX.js} +64 -46
- package/dist/bundle/store-connection-CZILWRSR.js +112 -0
- package/dist/bundle/store-maintenance-command-Z3QLNSXJ.js +84 -0
- package/dist/bundle/{streaming-6F7AFEHD.js → streaming-73EKEGPF.js} +7 -7
- package/dist/bundle/surface-CV3C4RV2.js +82 -0
- package/dist/bundle/tokens-PY3S22LY.js +27 -0
- package/dist/bundle/zm.js +9 -9
- package/dist/bundle/{zoom-app-YTGOZ2FS.js → zoom-app-4F4YY4OI.js} +11 -9
- package/dist/commands.d.ts +1 -8
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +3 -33
- package/dist/commands.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/program-bindings.d.ts.map +1 -1
- package/dist/program-bindings.js +2 -12
- package/dist/program-bindings.js.map +1 -1
- package/dist/program.d.ts +3 -5
- package/dist/program.d.ts.map +1 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +6 -1
- package/dist/run.js.map +1 -1
- package/dist/setup-commands.d.ts +5 -14
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +7 -142
- package/dist/setup-commands.js.map +1 -1
- package/dist/tokens.d.ts +20 -44
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +95 -308
- package/dist/tokens.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/zoom-app.js +1 -1
- package/dist/zoom-app.js.map +1 -1
- package/dist/zoom-session.d.ts +6 -0
- package/dist/zoom-session.d.ts.map +1 -0
- package/dist/zoom-session.js +72 -0
- package/dist/zoom-session.js.map +1 -0
- package/package.json +3 -3
- package/skills/zoom-cli/references/setup.md +2 -2
- package/dist/bundle/agent-VYAJCJLE.js +0 -45
- package/dist/bundle/answer-policy-PTH4F2DW.js +0 -129
- package/dist/bundle/chunk-46EF6P2J.js +0 -72
- package/dist/bundle/chunk-4B335BCJ.js +0 -330
- package/dist/bundle/chunk-EWEQ7AXL.js +0 -719
- package/dist/bundle/chunk-FXCR4DGU.js +0 -37
- package/dist/bundle/chunk-KZ3B6HW5.js +0 -31
- package/dist/bundle/chunk-TI4WJOEX.js +0 -789
- package/dist/bundle/chunk-UPR2S5IE.js +0 -773
- package/dist/bundle/command-contract-3IKVWPDL.js +0 -45
- package/dist/bundle/config-ZOGOKGTU.js +0 -116
- package/dist/bundle/first-run-MPKMDEMA.js +0 -29
- package/dist/bundle/first-screen-AIAAC3KF.js +0 -45
- package/dist/bundle/meeting-combined-YKPKTKGA.js +0 -26
- package/dist/bundle/meeting-model-HTXSGHNM.js +0 -26
- package/dist/bundle/openai-E2MSLVIX.js +0 -28
- package/dist/bundle/run-log-EOQ4EQDS.js +0 -143
- package/dist/bundle/server-EW2RL2EL.js +0 -93
- package/dist/bundle/store-connection-SKRUAI4L.js +0 -109
- package/dist/bundle/store-maintenance-command-G6EXJSHJ.js +0 -81
- package/dist/bundle/surface-DWEWB5RG.js +0 -79
- package/dist/bundle/tokens-BB4MQBLH.js +0 -25
- package/dist/login.d.ts +0 -16
- package/dist/login.d.ts.map +0 -1
- package/dist/login.js +0 -98
- package/dist/login.js.map +0 -1
- /package/dist/bundle/{chunk-7O7XM37N.js → chunk-7ECP5ZQR.js} +0 -0
|
@@ -1,17 +1,140 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
readSharedSection,
|
|
5
|
+
sharedConfigPath,
|
|
6
|
+
writeSharedSection
|
|
7
|
+
} from "./chunk-SHQAYUK6.js";
|
|
8
|
+
import {
|
|
9
|
+
storePath
|
|
10
|
+
} from "./chunk-FH2UFNH6.js";
|
|
3
11
|
import {
|
|
4
12
|
QUERY_REASONS
|
|
5
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UAWSINMC.js";
|
|
14
|
+
import {
|
|
15
|
+
defineReasons,
|
|
16
|
+
isoTimestamp,
|
|
17
|
+
picklist,
|
|
18
|
+
pipe,
|
|
19
|
+
safeParse,
|
|
20
|
+
strictObject,
|
|
21
|
+
string
|
|
22
|
+
} from "./chunk-ESN3W2MZ.js";
|
|
6
23
|
import {
|
|
7
|
-
|
|
8
|
-
} from "./chunk-
|
|
24
|
+
CliError
|
|
25
|
+
} from "./chunk-IANKXHSE.js";
|
|
9
26
|
import {
|
|
10
27
|
__name
|
|
11
28
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
29
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/models/chat-sending.js
|
|
31
|
+
var CHAT_SENDING_MODES = ["allowed", "ask", "denied"];
|
|
32
|
+
var SECTION = "chat_sending";
|
|
33
|
+
var Setting = strictObject({
|
|
34
|
+
mode: picklist(CHAT_SENDING_MODES),
|
|
35
|
+
at: pipe(string(), isoTimestamp())
|
|
36
|
+
});
|
|
37
|
+
var CHAT_SENDING_ASK_DETAILS = ["emails", "threads", "tokens", "host", "model", "estimated_cost_usd"];
|
|
38
|
+
var pathOf = /* @__PURE__ */ __name((env) => sharedConfigPath(storePath(env), env), "pathOf");
|
|
39
|
+
var readChatSending = /* @__PURE__ */ __name((env) => {
|
|
40
|
+
const section = readSharedSection(pathOf(env), SECTION);
|
|
41
|
+
if (section === void 0 || section === null)
|
|
42
|
+
return void 0;
|
|
43
|
+
const checked = safeParse(Setting, section);
|
|
44
|
+
return checked.success ? checked.output : { mode: "denied", at: (/* @__PURE__ */ new Date(0)).toISOString() };
|
|
45
|
+
}, "readChatSending");
|
|
46
|
+
var chatSendingMode = /* @__PURE__ */ __name((env) => readChatSending(env)?.mode ?? "ask", "chatSendingMode");
|
|
47
|
+
var writeChatSending = /* @__PURE__ */ __name((env, mode) => writeSharedSection(pathOf(env), SECTION, mode === "ask" ? void 0 : { mode, at: (/* @__PURE__ */ new Date()).toISOString() }), "writeChatSending");
|
|
48
|
+
var STRICTNESS = { allowed: 0, ask: 1, denied: 2 };
|
|
49
|
+
var loosens = /* @__PURE__ */ __name((from, to) => STRICTNESS[to] < STRICTNESS[from], "loosens");
|
|
50
|
+
var chatSendingCommand = /* @__PURE__ */ __name((command, mode) => `${command} models chats set ${mode}`, "chatSendingCommand");
|
|
51
|
+
var chatSendingAllowed = /* @__PURE__ */ __name((env, host, command) => {
|
|
52
|
+
const mode = chatSendingMode(env);
|
|
53
|
+
if (mode === "denied")
|
|
54
|
+
throw new CliError("permission_error", `sending chat text to a model outside this computer is denied by the setting \`models chats\`; nothing was sent to ${host}, and --yes does not change that. Use a model on this computer, or ask the owner to run \`${chatSendingCommand(command, "ask")}\` (or \`allowed\`)`, { reason: "chat-sending.denied" });
|
|
55
|
+
return mode === "allowed";
|
|
56
|
+
}, "chatSendingAllowed");
|
|
57
|
+
var chatSendingAskRefusal = /* @__PURE__ */ __name((what, command, details = {}) => new CliError("confirmation_required", `${what} \u2014 add --yes to send them (an agent may pass yes), or ask the owner to run \`${chatSendingCommand(command, "allowed")}\` so no yes is needed`, { ...details, reason: "chat-sending.ask" }), "chatSendingAskRefusal");
|
|
58
|
+
|
|
59
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/errors/sftp-reasons.js
|
|
14
60
|
var validation = /* @__PURE__ */ __name((reason, message) => [reason, "validation_error", message], "validation");
|
|
61
|
+
var SFTP = [
|
|
62
|
+
["sftp.host-key-missing", "configuration_error", "no host key is pinned for the SFTP server"],
|
|
63
|
+
["sftp.host-key-mismatch", "authentication_error", "the SFTP server's host key is not the pinned one"],
|
|
64
|
+
["sftp.auth-missing", "configuration_error", "an SFTP connection needs a password or a private key"],
|
|
65
|
+
["sftp.key-invalid", "configuration_error", "the SFTP private key or its passphrase cannot be read"],
|
|
66
|
+
["sftp.library-missing", "configuration_error", "SFTP needs the ssh2 package in the CLI's dependencies"],
|
|
67
|
+
["sftp.timeout", "timeout", "the SFTP server did not answer in time"],
|
|
68
|
+
validation("sftp.too-large", "the file is larger than the read's byte limit"),
|
|
69
|
+
validation("sftp.closed", "the SFTP connection was closed before the operation"),
|
|
70
|
+
validation("sftp.file-changed", "the file changed on the server while a stream read it; read it again"),
|
|
71
|
+
["ssh.forward-refused", "permission_error", "the SSH server does not allow forwarding to that address"],
|
|
72
|
+
["ssh.forward-failed", "network_error", "the SSH server could not reach the address behind it"]
|
|
73
|
+
];
|
|
74
|
+
|
|
75
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/errors/store-reasons.js
|
|
76
|
+
var STORE = [
|
|
77
|
+
validation("store.refused", "the local store refused the document text"),
|
|
78
|
+
["store.not-writable", "permission_error", "the message store cannot be written from this process"],
|
|
79
|
+
[
|
|
80
|
+
"store.damaged",
|
|
81
|
+
"configuration_error",
|
|
82
|
+
"the store file is damaged; store recover says what is lost and recovers it"
|
|
83
|
+
],
|
|
84
|
+
[
|
|
85
|
+
"store.journal-replaced",
|
|
86
|
+
"conflict",
|
|
87
|
+
"another program deleted or replaced the store's journal file while it was open; store recover says what to do"
|
|
88
|
+
],
|
|
89
|
+
["store.busy", "conflict", "another process held the store for longer than this command waits; run it again"],
|
|
90
|
+
validation("store.file-damaged", "the named store file is damaged or not a database"),
|
|
91
|
+
["store.unopenable", "configuration_error", "the store file cannot be opened at its path; details.path names it"],
|
|
92
|
+
[
|
|
93
|
+
"store.unreadable",
|
|
94
|
+
"configuration_error",
|
|
95
|
+
"the store file's header or schema is damaged, so it cannot be recovered"
|
|
96
|
+
],
|
|
97
|
+
validation("store.in-use", "a process or a scheduled timer has the store open; stop it, then recover the store"),
|
|
98
|
+
[
|
|
99
|
+
"store.sqlite3-missing",
|
|
100
|
+
"configuration_error",
|
|
101
|
+
"recovering the store needs the sqlite3 program, 3.43 or newer, with its .recover command"
|
|
102
|
+
],
|
|
103
|
+
validation("store.recovery-failed", "the recovered store did not pass its check, so the store was left as it was"),
|
|
104
|
+
validation("store.recovering", "another recovery of the store is running; wait for it to finish"),
|
|
105
|
+
validation("store.changed-during-recovery", "the store was written to during the recovery, so it was left as it was"),
|
|
106
|
+
[
|
|
107
|
+
"store.vector-extension-missing",
|
|
108
|
+
"configuration_error",
|
|
109
|
+
"the install has no sqlite-vec extension for this platform; reinstall the CLI"
|
|
110
|
+
],
|
|
111
|
+
["store.vector-extension-failed", "configuration_error", "the sqlite-vec extension did not load; reinstall the CLI"],
|
|
112
|
+
validation("store.vector-invalid", "a vector to store had a non-finite value")
|
|
113
|
+
];
|
|
114
|
+
var STORE_MIGRATION = [
|
|
115
|
+
[
|
|
116
|
+
"store.unknown-columns",
|
|
117
|
+
"configuration_error",
|
|
118
|
+
"a migration would drop columns this store has and this build does not know; nothing was changed"
|
|
119
|
+
],
|
|
120
|
+
[
|
|
121
|
+
"store.rows-break-checks",
|
|
122
|
+
"configuration_error",
|
|
123
|
+
"the store holds rows the new schema refuses, so it was not migrated; the rows are named"
|
|
124
|
+
],
|
|
125
|
+
[
|
|
126
|
+
"store.rows-lost",
|
|
127
|
+
"configuration_error",
|
|
128
|
+
"a migration would change how many rows a table holds, so it was not run; the tables and counts are named"
|
|
129
|
+
],
|
|
130
|
+
[
|
|
131
|
+
"store.foreign-keys",
|
|
132
|
+
"configuration_error",
|
|
133
|
+
"a migration would break references between rows, so it was not run; the store is whole"
|
|
134
|
+
]
|
|
135
|
+
];
|
|
136
|
+
|
|
137
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/errors/reasons.js
|
|
15
138
|
var QUERY = [
|
|
16
139
|
["query.aborted", "the search was stopped before it finished"],
|
|
17
140
|
["query.conflict", "two parts of the query contradict each other"],
|
|
@@ -57,19 +180,42 @@ var SIGN_IN = [
|
|
|
57
180
|
validation("profile.missing", "no profile named, and none is picked for the owner; details.profiles lists the ones here"),
|
|
58
181
|
["profile.unknown", "not_found", "no profile by this name on this computer; details.profiles lists the ones here"],
|
|
59
182
|
["account-remove.busy", "conflict", "a serve or a sync runs for this profile; stop it first"],
|
|
183
|
+
["account-remove.account-shared", "conflict", "another profile reads the same account, whose copy the store shares"],
|
|
184
|
+
["session.duplicate", "conflict", "another profile here already signs in to this account as this user"],
|
|
185
|
+
[
|
|
186
|
+
"account-remove.account-unknown",
|
|
187
|
+
"conflict",
|
|
188
|
+
"which account another profile holds could not be read, so --delete-data waits"
|
|
189
|
+
],
|
|
190
|
+
validation("profile.reserved", "the profile name is a folder every CRM account shares; pick another"),
|
|
60
191
|
["account-remove.unconfirmed", "confirmation_required", "removing an account asks first; add --yes"],
|
|
61
192
|
["account-remove.path-outside", "configuration_error", "the tool named a path outside its own folders"],
|
|
62
193
|
[
|
|
63
194
|
"account-remove.folder-outside",
|
|
64
195
|
"configuration_error",
|
|
65
196
|
"the tool named a folder of its own outside the home folder"
|
|
66
|
-
]
|
|
197
|
+
],
|
|
198
|
+
["account-rename.taken", "conflict", "the new name, or a file or keyring entry under it, already exists"],
|
|
199
|
+
["account-rename.busy", "conflict", "a serve, a background service, a schedule or a sync uses this profile"],
|
|
200
|
+
["account-rename.bot", "conflict", "the profile is also a bot profile, which keeps its name"],
|
|
201
|
+
["account-rename.unconfirmed", "confirmation_required", "renaming a profile asks first; add --yes"],
|
|
202
|
+
["account-rename.moved-run", "permission_error", "a run with moved folders never renames a profile"],
|
|
203
|
+
["account-rename.unpaired", "configuration_error", "the tool named different paths for the old and new name"]
|
|
67
204
|
];
|
|
68
205
|
var PROVIDER_API = [
|
|
69
206
|
["offline.refused", "permission_error", "this command needs the provider; --offline was given"],
|
|
70
207
|
validation("api.unknown-method", "the provider has no method by this name"),
|
|
71
208
|
["api.disabled", "configuration_error", "the provider's API is turned off for this OAuth project"],
|
|
72
209
|
["manifest.invalid", "configuration_error", "the source manifest does not match its shape or the generated API"],
|
|
210
|
+
["source.no-id", "invalid_response", "a row of the provider's answer has no id where the source manifest says"],
|
|
211
|
+
["source.no-account", "invalid_response", "the provider's answer does not name the signed-in account"],
|
|
212
|
+
validation("source.token-invalid", "the change token is not one this source gave"),
|
|
213
|
+
[
|
|
214
|
+
"source.changes-too-many",
|
|
215
|
+
"invalid_response",
|
|
216
|
+
"more changed since one sync than a round reads, and the provider does not list changes oldest first"
|
|
217
|
+
],
|
|
218
|
+
["source.deletions-unchecked", "permission_error", "the provider refused its deletions; sync --rescan finds them"],
|
|
73
219
|
["verify.no-id", "provider_error", "the answer to the sign-in check holds no account id where auth.verify says"],
|
|
74
220
|
["provider.usage-limit", "rate_limited", "the account's usage limit at the provider is reached; wait, do not retry"],
|
|
75
221
|
["access.denied", "permission_error", "the provider refused this account access to the item"],
|
|
@@ -77,20 +223,8 @@ var PROVIDER_API = [
|
|
|
77
223
|
["file.not-found", "not_found", "the file named, or its folder, does not exist"],
|
|
78
224
|
validation("file.not-a-file", "the path names a folder or another thing that is not a file"),
|
|
79
225
|
["file.denied", "permission_error", "the file cannot be opened: permission denied"],
|
|
80
|
-
validation("file.too-large", "the file is larger than the limit set for this read")
|
|
81
|
-
|
|
82
|
-
var SFTP = [
|
|
83
|
-
["sftp.host-key-missing", "configuration_error", "no host key is pinned for the SFTP server"],
|
|
84
|
-
["sftp.host-key-mismatch", "authentication_error", "the SFTP server's host key is not the pinned one"],
|
|
85
|
-
["sftp.auth-missing", "configuration_error", "an SFTP connection needs a password or a private key"],
|
|
86
|
-
["sftp.key-invalid", "configuration_error", "the SFTP private key or its passphrase cannot be read"],
|
|
87
|
-
["sftp.library-missing", "configuration_error", "SFTP needs the ssh2 package in the CLI's dependencies"],
|
|
88
|
-
["sftp.timeout", "timeout", "the SFTP server did not answer in time"],
|
|
89
|
-
validation("sftp.too-large", "the file is larger than the read's byte limit"),
|
|
90
|
-
validation("sftp.closed", "the SFTP connection was closed before the operation"),
|
|
91
|
-
validation("sftp.file-changed", "the file changed on the server while a stream read it; read it again"),
|
|
92
|
-
["ssh.forward-refused", "permission_error", "the SSH server does not allow forwarding to that address"],
|
|
93
|
-
["ssh.forward-failed", "network_error", "the SSH server could not reach the address behind it"]
|
|
226
|
+
validation("file.too-large", "the file is larger than the limit set for this read"),
|
|
227
|
+
validation("file.not-plain-text", "the file's text is extracted on a read; writing it back would replace the file")
|
|
94
228
|
];
|
|
95
229
|
var SQL = [
|
|
96
230
|
validation("sql.bad-identifier", "a table or column name is not a plain identifier"),
|
|
@@ -103,7 +237,29 @@ var SQL = [
|
|
|
103
237
|
["db.timeout", "timeout", "the database server did not answer in time"],
|
|
104
238
|
["db.failed", "provider_error", "the database server failed the query"]
|
|
105
239
|
];
|
|
240
|
+
var OFFICE = [
|
|
241
|
+
["office.wrong-format", "the file is not the Office format the command edits, or its parts cannot be read"],
|
|
242
|
+
["office.invalid-cell", "a cell is not an address like B7"],
|
|
243
|
+
["office.invalid-value", "a value cannot be written: an infinite number, a cell text too long, an unknown style"],
|
|
244
|
+
["office.no-sheet", "the workbook has no such sheet, or several when none is named"],
|
|
245
|
+
["office.duplicate-edit", "the same cell or paragraph is changed twice in one call"],
|
|
246
|
+
["office.formula-cell", "the cell holds a formula; --replace writes the value over it"],
|
|
247
|
+
["office.shared-formula", "the cell holds a formula other cells share; replacing it would break theirs"],
|
|
248
|
+
["office.array-formula", "the cell is part of an array formula; change it in Excel"],
|
|
249
|
+
["office.rich-value", "the cell holds a picture or a linked data type, which the editor does not replace"],
|
|
250
|
+
["office.table-header", "the cell is a table's header or total, whose part repeats the text; change it in Excel"],
|
|
251
|
+
["office.implicit-rows", "the sheet has rows without numbers, so a row cannot be added"],
|
|
252
|
+
["office.implicit-cells", "the row has cells without addresses, so a cell cannot be added"],
|
|
253
|
+
["office.no-paragraph", "the document has no paragraph at that index"],
|
|
254
|
+
["office.unsafe-paragraph", "the paragraph cannot be edited safely; documents show gives the reason"],
|
|
255
|
+
["office.tracked-change", "the paragraph holds a tracked change"],
|
|
256
|
+
["office.section-break", "the paragraph ends a section; deleting it would merge two sections"],
|
|
257
|
+
["office.bookmark", "the paragraph holds a bookmark a cross-reference may point at"],
|
|
258
|
+
["office.last-paragraph", "the delete would leave the document or a table cell without a paragraph"],
|
|
259
|
+
["office.invalid-sheet-name", "a new sheet's name is empty, too long, repeated or holds a character Excel refuses"]
|
|
260
|
+
].map(([reason, message]) => validation(reason, message));
|
|
106
261
|
var OTHERS = [
|
|
262
|
+
["office.file-exists", "conflict", "a file is there already; create never replaces one, update changes it"],
|
|
107
263
|
validation("doctor.report-exists", "the report's file exists; a problem report never overwrites a file"),
|
|
108
264
|
validation("usage.unknown-command", "no command by this name; the CLI's help lists them"),
|
|
109
265
|
validation("usage.unknown-option", "the command takes no option by this name; its help lists them"),
|
|
@@ -111,6 +267,7 @@ var OTHERS = [
|
|
|
111
267
|
["enrichment.owner-only", "permission_error", "only the owner turns enrichment on, not an agent"],
|
|
112
268
|
["search-harder.owner-only", "permission_error", "only the owner allows search all --harder, not an agent"],
|
|
113
269
|
["model.offline", "permission_error", "downloading a model needs the network; --offline was requested"],
|
|
270
|
+
["domain-lists.offline", "permission_error", "updating the domain lists needs the network; --offline was requested"],
|
|
114
271
|
["model.key-rejected", "invalid_response", "the model provider refused the API key (401 or 403)"],
|
|
115
272
|
["model.unreachable", "invalid_response", "the model provider could not be reached over the network"],
|
|
116
273
|
[
|
|
@@ -185,6 +342,11 @@ var OTHERS = [
|
|
|
185
342
|
"nothing holds this agent to the CLI's commands, so no schedule starts it"
|
|
186
343
|
],
|
|
187
344
|
["read-only.output-outside", "permission_error", "a read-only process writes files only inside its working folder"],
|
|
345
|
+
[
|
|
346
|
+
"schedule.outside-folder",
|
|
347
|
+
"permission_error",
|
|
348
|
+
"schedule exec runs only a schedule file in the tool's own schedules folder"
|
|
349
|
+
],
|
|
188
350
|
[
|
|
189
351
|
"agent.refused",
|
|
190
352
|
"permission_error",
|
|
@@ -192,12 +354,26 @@ var OTHERS = [
|
|
|
192
354
|
],
|
|
193
355
|
validation("agent.cost-unknown", "the agent reports no cost, so a cost cap cannot stop it"),
|
|
194
356
|
validation("document.changed", "the document changed while it was read; nothing was saved"),
|
|
357
|
+
validation("document.needs-ocr", "the PDF has no text layer; a documents sync reads it with OCR (read_scans)"),
|
|
358
|
+
validation("document.scan-unread", "OCR could not read the scan or picture; a sync tries again once the file changes"),
|
|
359
|
+
validation("document.scan-later", "OCR stopped at its page limit or a busy model; the next sync goes on"),
|
|
360
|
+
[
|
|
361
|
+
"document.scan-unturned",
|
|
362
|
+
"configuration_error",
|
|
363
|
+
"tesseract has no osd data, so a page on its side is read as it lies; install it to read scans again"
|
|
364
|
+
],
|
|
195
365
|
["document.not-imported", "not_found", "the document is not imported in this source account"],
|
|
366
|
+
["document.version-missing", "not_found", "the local copy holds no such version of the document"],
|
|
196
367
|
["document.not-found", "not_found", "no listed document has that reference"],
|
|
197
368
|
["state.unreadable", "configuration_error", "a sync state file cannot be read; move it away and sync again"],
|
|
198
369
|
["profile.busy", "provider_unavailable", "another sync or write holds this profile's local copy"],
|
|
199
370
|
["profile.account-taken", "conflict", "another profile here already uses this provider account"],
|
|
200
371
|
["profile.other-account", "conflict", "this profile's copy was synced from another provider account"],
|
|
372
|
+
[
|
|
373
|
+
"documents.other-account",
|
|
374
|
+
"configuration_error",
|
|
375
|
+
"the documents are signed in as another account than the tracker copy of the same provider"
|
|
376
|
+
],
|
|
201
377
|
["profile.not-synced", "not_found", "the profile has no local copy yet; sync it first"],
|
|
202
378
|
["provider.failed", "provider_error", "a read from the provider failed"],
|
|
203
379
|
["identity.none", "not_found", "the provider shows no accounts on a document"],
|
|
@@ -213,6 +389,8 @@ var OTHERS = [
|
|
|
213
389
|
validation("mail.cursor-ahead", "an acknowledge cursor is past the newest stored email"),
|
|
214
390
|
["mail.holder-not-yours", "permission_error", "a run moves only the mark of the holder its schedule names"],
|
|
215
391
|
["mail.no-mark", "not_found", "the holder has no mark in the mailbox yet; its first review starts it"],
|
|
392
|
+
["mail.inbox-agent", "permission_error", "an agent sorts mail itself from review; inbox --offline lists"],
|
|
393
|
+
["mail.inbox-answer-invalid", "invalid_response", "the AI model's answer to inbox is not the JSON it asks for"],
|
|
216
394
|
["mail.reset-owner-only", "permission_error", "only the owner moves a holder's mark back"],
|
|
217
395
|
["mail.source-failed", "provider_error", "the mail server refused or did not complete a request"],
|
|
218
396
|
["mail.search-refused", "provider_error", "the mail server refused to search a folder"],
|
|
@@ -222,6 +400,11 @@ var OTHERS = [
|
|
|
222
400
|
"the email could not be read again, so its skipped attachments have no text"
|
|
223
401
|
],
|
|
224
402
|
["mirror.partial", "provider_error", "some mirrored files were not synced"],
|
|
403
|
+
[
|
|
404
|
+
"mirror.stopped",
|
|
405
|
+
"timeout",
|
|
406
|
+
"the mirror's run reached its deadline before it was done; run it again with more time"
|
|
407
|
+
],
|
|
225
408
|
["mirror.none", "not_found", "the profile has no mirrors; add one with mirrors add"],
|
|
226
409
|
["mirror.not-found", "not_found", "no such mirror in this profile; see mirrors list"],
|
|
227
410
|
validation("mirror.not-folder", "the path to mirror is not a folder"),
|
|
@@ -231,12 +414,22 @@ var OTHERS = [
|
|
|
231
414
|
"confirmation_required",
|
|
232
415
|
"the sync would delete more files than the guard allows; check them with --dry-run and allow them explicitly"
|
|
233
416
|
],
|
|
417
|
+
[
|
|
418
|
+
"mirror.too-many-replacements",
|
|
419
|
+
"confirmation_required",
|
|
420
|
+
"the sync would replace more files than the guard allows; check them with --dry-run and allow them explicitly"
|
|
421
|
+
],
|
|
422
|
+
validation("mirror.no-space", "the sync needs more free space than the local drive has"),
|
|
423
|
+
validation("mirror.bad-exclusion", "the exclusion is not a path pattern inside the mirror"),
|
|
234
424
|
[
|
|
235
425
|
"mirror.version-not-kept",
|
|
236
426
|
"provider_error",
|
|
237
427
|
"the earlier content could not be kept in the version store, so the sync did not replace it"
|
|
238
428
|
],
|
|
239
429
|
["mirror.remote-changed", "conflict", "the remote file changed since the listing; the next sync settles it"],
|
|
430
|
+
["mirror.local-changed", "conflict", "the local file changed since the conflict was found; nothing was written"],
|
|
431
|
+
["mirror.no-conflict", "not_found", "the path has no recorded conflict; the last sync settled it or never saw one"],
|
|
432
|
+
["upload.replace-interrupted", "conflict", "another file took the path during a replace; the new content is kept"],
|
|
240
433
|
["upload.mismatch", "conflict", "the uploaded file reads back with other content; the local file changed meanwhile"],
|
|
241
434
|
["download.mismatch", "invalid_response", "the downloaded file has other content than the listing said"],
|
|
242
435
|
["catalog.unavailable", "configuration_error", "the store has no shared catalog for this account"],
|
|
@@ -249,6 +442,7 @@ var OTHERS = [
|
|
|
249
442
|
validation("push.too-many-files", "the folder holds more files than one push takes"),
|
|
250
443
|
validation("push.unreadable", "the folder to push could not be read"),
|
|
251
444
|
validation("spreadsheet.unreadable", "the workbook could not be read"),
|
|
445
|
+
["config.unreadable", "configuration_error", "the config file cannot be read"],
|
|
252
446
|
[
|
|
253
447
|
"config.unrepairable",
|
|
254
448
|
"configuration_error",
|
|
@@ -344,46 +538,11 @@ var OTHERS = [
|
|
|
344
538
|
"outcome_unknown",
|
|
345
539
|
"a message the server found was stored without its attachments; the next sync reads it whole"
|
|
346
540
|
],
|
|
347
|
-
validation("store.refused", "the local store refused the document text"),
|
|
348
|
-
["store.not-writable", "permission_error", "the message store cannot be written from this process"],
|
|
349
|
-
[
|
|
350
|
-
"store.damaged",
|
|
351
|
-
"configuration_error",
|
|
352
|
-
"the store file is damaged; store recover says what is lost and recovers it"
|
|
353
|
-
],
|
|
354
|
-
[
|
|
355
|
-
"store.journal-replaced",
|
|
356
|
-
"conflict",
|
|
357
|
-
"another program deleted or replaced the store's journal file while it was open; store recover says what to do"
|
|
358
|
-
],
|
|
359
|
-
validation("store.file-damaged", "the named store file is damaged or not a database"),
|
|
360
|
-
["store.unopenable", "configuration_error", "the store file cannot be opened at its path; details.path names it"],
|
|
361
|
-
[
|
|
362
|
-
"store.unreadable",
|
|
363
|
-
"configuration_error",
|
|
364
|
-
"the store file's header or schema is damaged, so it cannot be recovered"
|
|
365
|
-
],
|
|
366
|
-
validation("store.in-use", "a process or a scheduled timer has the store open; stop it, then recover the store"),
|
|
367
|
-
[
|
|
368
|
-
"store.sqlite3-missing",
|
|
369
|
-
"configuration_error",
|
|
370
|
-
"recovering the store needs the sqlite3 program, 3.43 or newer, with its .recover command"
|
|
371
|
-
],
|
|
372
|
-
validation("store.recovery-failed", "the recovered store did not pass its check, so the store was left as it was"),
|
|
373
541
|
[
|
|
374
542
|
"serve.outdated",
|
|
375
543
|
"configuration_error",
|
|
376
544
|
"the store or the installed version is newer than this serve; it stopped so its unit starts the installed one"
|
|
377
545
|
],
|
|
378
|
-
validation("store.recovering", "another recovery of the store is running; wait for it to finish"),
|
|
379
|
-
validation("store.changed-during-recovery", "the store was written to during the recovery, so it was left as it was"),
|
|
380
|
-
[
|
|
381
|
-
"store.vector-extension-missing",
|
|
382
|
-
"configuration_error",
|
|
383
|
-
"the install has no sqlite-vec extension for this platform; reinstall the CLI"
|
|
384
|
-
],
|
|
385
|
-
["store.vector-extension-failed", "configuration_error", "the sqlite-vec extension did not load; reinstall the CLI"],
|
|
386
|
-
validation("store.vector-invalid", "a vector to store had a non-finite value"),
|
|
387
546
|
validation("evidence.quote-length", "a quote from the evidence is empty or over 500 characters"),
|
|
388
547
|
validation("evidence.quote-not-found", "the cited source does not say the quoted words"),
|
|
389
548
|
validation("evidence.row-too-large", "one evidence row is over its size limit"),
|
|
@@ -504,10 +663,21 @@ var OTHERS = [
|
|
|
504
663
|
validation("field.not-filterable", "the CRM cannot filter a list by that custom field"),
|
|
505
664
|
validation("query.bad-value", "a term's value is not the kind its field takes, such as an id or a number"),
|
|
506
665
|
validation("crm.record-field", "a contact's or company's field is not valid"),
|
|
666
|
+
validation("crm.activity-field", "a comment's or task's field is not valid, or the kind does not take it"),
|
|
507
667
|
validation("crm.owner-unknown", "owner: names no CRM user: me without a known sign-in user, or not a user id"),
|
|
508
668
|
validation("crm.write-unsupported", "the CRM does not take this write, or does not recognise a repeated one"),
|
|
509
|
-
validation("crm.unlisted-held", "a list of every id would mark most of a kind deleted; nothing was
|
|
510
|
-
validation("tracker.unlisted-held", "a tracker's id list would mark too much deleted, or the sign-in read only part; nothing was
|
|
669
|
+
validation("crm.unlisted-held", "a list of every id would mark most of a kind deleted, or the sign-in read only part; nothing was"),
|
|
670
|
+
validation("tracker.unlisted-held", "a tracker's id list would mark too much deleted, or the sign-in read only part; nothing was"),
|
|
671
|
+
validation("tracker.write-unsupported", "the tracker does not take this write, or does not recognise a repeated one"),
|
|
672
|
+
validation("tracker.field", "a field of an issue or a comment the tracker's write does not take as given"),
|
|
673
|
+
validation("tracker.reference", "a team, state, label, project, user or sprint no single row of the copy has by that name"),
|
|
674
|
+
validation("tracker.team-required", "a new issue needs its team: name one, or sync a copy that holds one"),
|
|
675
|
+
["tracker.no-record", "invalid_response", "the tracker answered a write with no record and no error; sync and look"],
|
|
676
|
+
[
|
|
677
|
+
"tracker.kind-unread",
|
|
678
|
+
"permission_error",
|
|
679
|
+
"the sign-in cannot read this kind of the tracker; the copy has none of it"
|
|
680
|
+
],
|
|
511
681
|
validation("content.unlisted-held", "a content id list would mark too much deleted, the sign-in read only part, or the site moved; nothing was"),
|
|
512
682
|
validation("content.conflict", "the post changed at the source since the last sync; sync, then write again"),
|
|
513
683
|
validation("content.lossy-body", "the post's text holds blocks or embeds Markdown does not keep; --replace-body"),
|
|
@@ -522,6 +692,7 @@ var OTHERS = [
|
|
|
522
692
|
validation("crm.reference-unknown", "a CRM row names a contact, company or user the store does not hold; that link was not made"),
|
|
523
693
|
validation("crm.pending-dropped", "relationships waited too long for an end that never came; they were dropped"),
|
|
524
694
|
validation("crm.activities-failed", "the activities and tasks could not be read; the deals and leads were synced"),
|
|
695
|
+
validation("crm.activities-unlisted-held", "a full list would mark most activities deleted; held until --rescan"),
|
|
525
696
|
validation("crm.stage-history-failed", "the CRM's stage history could not be read; stage tasks wait for the next sync"),
|
|
526
697
|
validation("crm.email-ambiguous", "a CRM contact's email belongs to more than one person; the owner decides"),
|
|
527
698
|
validation("crm.own-unknown", "no own company of the CRM account is stored, so its users are no one's employees yet"),
|
|
@@ -560,11 +731,17 @@ var OTHERS = [
|
|
|
560
731
|
validation("order.ref", "the reference names no order, or a shop's number names more than one"),
|
|
561
732
|
validation("order.status", "a rejected or deleted order's status does not change"),
|
|
562
733
|
["model.not-downloaded", "not_found", "the model is not downloaded on this machine"],
|
|
734
|
+
[
|
|
735
|
+
"tracker.no-vectors",
|
|
736
|
+
"not_found",
|
|
737
|
+
"no issue, project or comment is embedded with the model yet; sync --embed builds them"
|
|
738
|
+
],
|
|
563
739
|
["person.no-owner", "not_found", "no person is marked as the owner in the store"],
|
|
564
740
|
["person.unknown", "not_found", "the store has no person by that reference; people list gives person:<uid>"],
|
|
565
741
|
["person.no-doubt", "not_found", "nothing about that person is in doubt; people links check lists who is"],
|
|
566
|
-
validation("person.owner", "the owner's own person is not test data"),
|
|
742
|
+
validation("person.owner", "the owner's own person is not test data, and is never deleted"),
|
|
567
743
|
validation("person.no-identity", "a person with no identity is not test data; there is nothing to hide"),
|
|
744
|
+
validation("person.erase-blocked", "an invoice, order, subscription or a row the person wrote still names them; change those first, nothing was deleted"),
|
|
568
745
|
validation("person.from-required", "say whom the identity leaves: --from person:<uid>, or person:me for the owner"),
|
|
569
746
|
[
|
|
570
747
|
"identity.separated",
|
|
@@ -574,7 +751,7 @@ var OTHERS = [
|
|
|
574
751
|
[
|
|
575
752
|
"identity.owner-only",
|
|
576
753
|
"permission_error",
|
|
577
|
-
"only the owner undoes a merge,
|
|
754
|
+
"only the owner undoes or confirms a merge, a split or a link, links an identity to themselves, or moves a sender"
|
|
578
755
|
],
|
|
579
756
|
[
|
|
580
757
|
"identity.stale",
|
|
@@ -604,11 +781,36 @@ var OTHERS = [
|
|
|
604
781
|
validation("identity.agent-unnamed", "an agent's link names the agent, and never as the owner"),
|
|
605
782
|
validation("identity.not-shared", "only a match on a shared mailbox can say the mailbox is a company's"),
|
|
606
783
|
["organization.not-found", "not_found", "no stored organization has that id"],
|
|
784
|
+
validation("organization.own", "the organization is one of your own companies and is never deleted"),
|
|
785
|
+
validation("organization.erase-blocked", "an invoice, order, subscription or a row the organization wrote still names it; change those first, nothing was deleted"),
|
|
607
786
|
validation("organization.unnamed", "a free mailbox names no company; name the organization or the company"),
|
|
608
787
|
validation("organization.ambiguous", "more than one organization matches; name the one meant as a reference"),
|
|
609
788
|
validation("identity.shared-phone", "more than six people share the phone number, so it proposes no one"),
|
|
610
789
|
validation("identity.common-name", "more than six people have the name, so it proposes no one"),
|
|
790
|
+
validation("identity.not-a-person", "a bot, a program or an organization is never proposed as a person by name"),
|
|
611
791
|
validation("identity.owner", "one side is the owner's person, and only the owner joins anyone to themselves"),
|
|
792
|
+
["sender-bot.not-found", "not_found", "no sender bot has that id; the bots list names them"],
|
|
793
|
+
validation("sender-bot.owner", "the owner's own person is never a bot"),
|
|
794
|
+
validation("sender-bot.not-a-person", "the identity named is a sender bot's, not a person's; name a person"),
|
|
795
|
+
validation("sender-bot.empty", "the person or bot named holds no identity to move"),
|
|
796
|
+
validation("sender-bot.assignee", "a sender bot is no one's assignee; move it to a person first"),
|
|
797
|
+
validation("sender-bot.unknown-sends", "a bot list filters by alerts, receipts, newsletters, marketing or messenger"),
|
|
798
|
+
validation("mail-sort.scope", "a sorting rule's scope is mail, list, subject, address or domain"),
|
|
799
|
+
validation("mail-sort.apply-to", "a sorting rule says whether it sorts past mail too: applyTo all or new"),
|
|
800
|
+
validation("mail-sort.value", "the value names no mail, list, subject, address or domain of that scope"),
|
|
801
|
+
validation("mail-sort.mail-type", "the mail type is not one of the known types"),
|
|
802
|
+
validation("mail-sort.sender", "a sorting rule makes a sender a bot or a person"),
|
|
803
|
+
validation("mail-sort.no-action", "a sorting rule sets a mail type, a sender or an organization"),
|
|
804
|
+
validation("mail-sort.owner-only", "only the owner moves or files senders, undoes and resets; a program removes its own rules"),
|
|
805
|
+
validation("mail-sort.sender-scope", "a sorting rule moves or files a sender at address or domain scope only"),
|
|
806
|
+
validation("mail-sort.sender-new", "a sender moves with its whole history, so an address rule that moves one applies to all"),
|
|
807
|
+
validation("mail-sort.over-addresses", "only a domain rule can beat the address rules"),
|
|
808
|
+
validation("mail-sort.free-mail-program", "only the owner sets a sorting rule on a free-mail or throwaway domain"),
|
|
809
|
+
validation("mail-sort.organization", "the organization named is not in the store"),
|
|
810
|
+
validation("mail-sort.confirm", "a free-mail domain rule needs the confirm of a dry run whose counts still hold; run the dry run again"),
|
|
811
|
+
validation("mail-sort.sender-ref", "the sender is named by an address, a person: ref or a bot: ref"),
|
|
812
|
+
["mail-sort.not-found", "not_found", "no mail sorting rule has that id; the rules list names them"],
|
|
813
|
+
["mail-sort.email", "not_found", "no incoming email has that id"],
|
|
612
814
|
validation("identity.shared-email", "more than six people share the address, so it proposes no one"),
|
|
613
815
|
validation("identity-link.dedicated-review", "an identity link is staged and decided through the people review"),
|
|
614
816
|
validation("identity-split.dedicated-review", "a split of a person is staged and decided through the people review"),
|
|
@@ -721,17 +923,22 @@ var INPUT_FIELD_REASONS = defineReasons([
|
|
|
721
923
|
details: ["fields"]
|
|
722
924
|
}
|
|
723
925
|
]);
|
|
926
|
+
var DETAILED = {
|
|
927
|
+
"vocabulary.consolidation-over-budget": ["table"],
|
|
928
|
+
"chat-sending.ask": CHAT_SENDING_ASK_DETAILS
|
|
929
|
+
};
|
|
724
930
|
var REASONS = defineReasons([
|
|
725
931
|
...QUERY_REASONS,
|
|
726
932
|
...INPUT_FIELD_REASONS,
|
|
727
|
-
...[...QUERY, ...SIGN_IN, ...PROVIDER_API, ...SFTP, ...SQL, ...OTHERS].map(([reason, code, message]) => ({
|
|
933
|
+
...[...QUERY, ...SIGN_IN, ...PROVIDER_API, ...SFTP, ...STORE, ...STORE_MIGRATION, ...SQL, ...OFFICE, ...OTHERS].map(([reason, code, message]) => ({
|
|
728
934
|
reason,
|
|
729
935
|
code,
|
|
730
936
|
message,
|
|
731
|
-
details: reason
|
|
937
|
+
details: DETAILED[reason] ?? []
|
|
732
938
|
}))
|
|
733
939
|
]);
|
|
734
940
|
var DETAILS = [
|
|
941
|
+
"account",
|
|
735
942
|
"holders",
|
|
736
943
|
"profile",
|
|
737
944
|
"contracts",
|
|
@@ -823,6 +1030,13 @@ var failureContext = /* @__PURE__ */ __name((errors) => {
|
|
|
823
1030
|
}, "failureContext");
|
|
824
1031
|
|
|
825
1032
|
export {
|
|
1033
|
+
CHAT_SENDING_MODES,
|
|
1034
|
+
readChatSending,
|
|
1035
|
+
chatSendingMode,
|
|
1036
|
+
writeChatSending,
|
|
1037
|
+
loosens,
|
|
1038
|
+
chatSendingAllowed,
|
|
1039
|
+
chatSendingAskRefusal,
|
|
826
1040
|
INPUT_FIELD_REASONS,
|
|
827
1041
|
REASONS,
|
|
828
1042
|
DETAILS,
|
|
@@ -2,20 +2,20 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
unit
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BTLZYRIW.js";
|
|
6
6
|
import {
|
|
7
7
|
PLAIN_HTTP_REFUSED,
|
|
8
8
|
modelAddressAllowed,
|
|
9
9
|
onThisComputer
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3KUEZK5Z.js";
|
|
11
11
|
import {
|
|
12
12
|
readSharedSection,
|
|
13
13
|
sharedConfigPath,
|
|
14
14
|
writeSharedSection
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-SHQAYUK6.js";
|
|
16
16
|
import {
|
|
17
17
|
storePath
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FH2UFNH6.js";
|
|
19
19
|
import {
|
|
20
20
|
boolean,
|
|
21
21
|
isoTimestamp,
|
|
@@ -23,18 +23,18 @@ import {
|
|
|
23
23
|
safeParse,
|
|
24
24
|
strictObject,
|
|
25
25
|
string
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ESN3W2MZ.js";
|
|
27
27
|
import {
|
|
28
28
|
CliError
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-IANKXHSE.js";
|
|
30
30
|
import {
|
|
31
31
|
__name
|
|
32
32
|
} from "./chunk-ZVVMGPBJ.js";
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
|
|
35
35
|
import { setTimeout } from "node:timers/promises";
|
|
36
36
|
|
|
37
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/models/local-only.js
|
|
38
38
|
var SECTION = "local_only";
|
|
39
39
|
var Setting = strictObject({
|
|
40
40
|
on: boolean(),
|
|
@@ -68,7 +68,7 @@ var refuseModelAddress = /* @__PURE__ */ __name((env, address, what) => {
|
|
|
68
68
|
refuseOffComputer(env, address, what);
|
|
69
69
|
}, "refuseModelAddress");
|
|
70
70
|
|
|
71
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
71
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
|
|
72
72
|
var OPENAI_URL = "https://api.openai.com/v1";
|
|
73
73
|
var OPENAI_MODELS = {
|
|
74
74
|
"text-embedding-3-small": { dims: 1536, perMillion: 0.02 },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
|
|
4
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
4
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/monthly.js
|
|
5
5
|
import { dirname, join } from "node:path";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
7
7
|
var CI_PAGE = join(dirname(fileURLToPath(new URL("standards/monthly.js", import.meta.resolve("@wirecat/cli-base")).href)), "../../docs/standards/ci.md");
|