@wirecat/zoom-cli 0.70.0 → 0.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/answer-entities.d.ts +2 -0
- package/dist/answer-entities.d.ts.map +1 -1
- package/dist/answers.d.ts +56 -0
- package/dist/answers.d.ts.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-GE2TFJJP.js → all-profiles-XFIPF4GF.js} +12 -12
- package/dist/bundle/answer-policy-AT6CDEE5.js +110 -0
- package/dist/bundle/{anthropic-FA6NHENI.js → anthropic-SSUBR3BC.js} +29 -13
- package/dist/bundle/{app-server-IRADMSNX.js → app-server-7DJHHF2F.js} +68 -56
- package/dist/bundle/{bun-ZYZGGCX5.js → bun-6HBYWQIX.js} +2 -2
- package/dist/bundle/{bun-sqlite-Y24TUIGS.js → bun-sqlite-4L3Q55NB.js} +10 -6
- package/dist/bundle/{chunk-JULBAECW.js → chunk-23J2ANZ7.js} +16 -6
- package/dist/bundle/{chunk-4DSIWYGO.js → chunk-24OFZNRC.js} +39296 -24139
- package/dist/bundle/{chunk-LXXCLQCW.js → chunk-2MIBRVSV.js} +2 -2
- package/dist/bundle/{chunk-CHGUNZ3L.js → chunk-37NF5CBJ.js} +4 -4
- package/dist/bundle/chunk-3KRTEX5M.js +53 -0
- package/dist/bundle/{chunk-VNU5L37V.js → chunk-4SY67IUA.js} +34 -42
- package/dist/bundle/{chunk-XWQNJKTP.js → chunk-4XQWF3U2.js} +6 -6
- package/dist/bundle/{chunk-OAQLVV6W.js → chunk-4YIGXTBP.js} +3 -3
- package/dist/bundle/{chunk-RB33VTUW.js → chunk-5AELTC52.js} +810 -210
- package/dist/bundle/chunk-5MGICK47.js +1243 -0
- package/dist/bundle/{chunk-RRRJCHUC.js → chunk-5X4IY5JH.js} +4504 -1622
- package/dist/bundle/{chunk-EOSVN2ER.js → chunk-63QXCE5Z.js} +242 -242
- package/dist/bundle/{chunk-OE7EIP5L.js → chunk-6DCLZLGX.js} +1 -1
- package/dist/bundle/chunk-7GLJSJ7M.js +16 -0
- package/dist/bundle/{chunk-KM736RMJ.js → chunk-7IFO43Q5.js} +2 -2
- package/dist/bundle/{chunk-IWPXWGF7.js → chunk-7JYMGXLI.js} +44 -42
- package/dist/bundle/{chunk-LAG5O2FV.js → chunk-7OD3522V.js} +4162 -3769
- package/dist/bundle/{chunk-DCUWJITQ.js → chunk-7S4D5SM2.js} +60 -608
- package/dist/bundle/{chunk-3KC7C465.js → chunk-7SUWPMZG.js} +10 -15
- package/dist/bundle/{chunk-6IF5ZHDS.js → chunk-ADKMBXY4.js} +1 -1
- package/dist/bundle/{chunk-56OV5ASY.js → chunk-B3SILJBU.js} +18 -18
- package/dist/bundle/{chunk-CIZ25UPK.js → chunk-CANRIRNZ.js} +8241 -5553
- package/dist/bundle/{chunk-YUHM2OJM.js → chunk-CW46FWKW.js} +38 -123
- package/dist/bundle/{chunk-VSLDWT4E.js → chunk-D24OQAHM.js} +4 -4
- package/dist/bundle/{chunk-ZBKWRYRS.js → chunk-D5EUMWD5.js} +3 -3
- package/dist/bundle/{chunk-CSEBB4OP.js → chunk-DEPXZJ2V.js} +21 -150
- package/dist/bundle/{chunk-YJSPBUGB.js → chunk-DOCVEKP2.js} +51 -67
- package/dist/bundle/{chunk-V2E7QFZ3.js → chunk-EFF2XBHP.js} +2 -2
- package/dist/bundle/{chunk-XRFHQGOD.js → chunk-EG25AY4L.js} +1 -1
- package/dist/bundle/{chunk-FEM2JQN2.js → chunk-ELJUBPY4.js} +1 -1
- package/dist/bundle/{chunk-2U6SER67.js → chunk-ERJYJ36F.js} +2 -2
- package/dist/bundle/chunk-FSCPQQS5.js +244 -0
- package/dist/bundle/{chunk-BVWF4B33.js → chunk-H53WFZBN.js} +16 -139
- package/dist/bundle/{chunk-VJ5ZU4UF.js → chunk-I7CUMZD6.js} +3 -3
- package/dist/bundle/{chunk-OA37BWE5.js → chunk-IACWKZWS.js} +1 -1
- package/dist/bundle/{chunk-BSS6HX4O.js → chunk-IFBIXU6C.js} +2 -2
- package/dist/bundle/{chunk-UVPL7YAY.js → chunk-IU4DUUB3.js} +7 -7
- package/dist/bundle/{chunk-W7ZEEC4K.js → chunk-IXO4SCKE.js} +1 -1
- package/dist/bundle/{chunk-J3SKXICS.js → chunk-JAEPK457.js} +359 -765
- package/dist/bundle/{chunk-ZV3INEKM.js → chunk-JFPUYQSP.js} +5 -5
- package/dist/bundle/{chunk-ZS55EERO.js → chunk-JG4MNYG2.js} +1 -1
- package/dist/bundle/{chunk-IINZIP73.js → chunk-JRCH4YZP.js} +17 -10
- package/dist/bundle/{chunk-2JEM2YNV.js → chunk-JZ4XNNL7.js} +1 -1
- package/dist/bundle/chunk-K6HR6HCO.js +32 -0
- package/dist/bundle/{chunk-SNIY3JDN.js → chunk-KFZL67JP.js} +328 -60
- package/dist/bundle/{chunk-CEJJBZAE.js → chunk-KPIQXFNB.js} +375 -10
- package/dist/bundle/{chunk-M7VUXXGS.js → chunk-KWURWGGB.js} +137 -7
- package/dist/bundle/{chunk-M6JIXMQZ.js → chunk-LA6QUVGQ.js} +3 -2
- package/dist/bundle/{chunk-AISJCF7A.js → chunk-LLUNHAZ7.js} +4 -4
- package/dist/bundle/{chunk-KWRCP55G.js → chunk-LTWJM3ED.js} +17 -17
- package/dist/bundle/{chunk-IS3ZTT2Z.js → chunk-M3DMXDX6.js} +6 -6
- package/dist/bundle/{chunk-VW6BF6M7.js → chunk-MCPOZNWG.js} +1 -1
- package/dist/bundle/{chunk-L24UOUWG.js → chunk-MSQHSW4C.js} +2 -2
- package/dist/bundle/chunk-N4QNYWWG.js +71 -0
- package/dist/bundle/chunk-NMZQTYKJ.js +18 -0
- package/dist/bundle/{chunk-DNR4B5YV.js → chunk-OHCLQJOV.js} +3 -3
- package/dist/bundle/{chunk-MVOMLJYQ.js → chunk-OP5PGE2N.js} +4 -4
- package/dist/bundle/{chunk-QL7EMFIC.js → chunk-OY6N2ABP.js} +29 -23
- package/dist/bundle/chunk-PJWSGXOB.js +185 -0
- package/dist/bundle/{chunk-YTN2JN6N.js → chunk-QA6KIL7Q.js} +12 -8
- package/dist/bundle/{chunk-6HJFIMT7.js → chunk-QQUY4MZY.js} +1 -1
- package/dist/bundle/{chunk-ZSKE7N2U.js → chunk-QW7YTRV2.js} +3 -3
- package/dist/bundle/chunk-RJTGENHZ.js +109 -0
- package/dist/bundle/{chunk-RIPAUCKJ.js → chunk-RLCVPECY.js} +74 -67
- package/dist/bundle/{chunk-M7E44TMT.js → chunk-RN5SU2RN.js} +6 -6
- package/dist/bundle/{chunk-P3ASN72F.js → chunk-RX5CJ55S.js} +1 -1
- package/dist/bundle/{chunk-7QC4M4HS.js → chunk-RZUJMAMK.js} +4 -4
- package/dist/bundle/{chunk-OORMSM6O.js → chunk-S7SXSHRC.js} +21 -21
- package/dist/bundle/{chunk-SVF3NDAO.js → chunk-SXZGCD6E.js} +3 -3
- package/dist/bundle/{chunk-DXCTW3MV.js → chunk-T27IMG6X.js} +3 -1
- package/dist/bundle/{chunk-PV6OHXHN.js → chunk-TF2WKPNW.js} +18 -18
- package/dist/bundle/{chunk-X4ZF4XXI.js → chunk-U32VL3MA.js} +1 -1
- package/dist/bundle/{chunk-RQG5VOGH.js → chunk-U3NJBGLA.js} +3 -3
- package/dist/bundle/{chunk-WOIHSQAL.js → chunk-UVZLK3M4.js} +33 -9
- package/dist/bundle/chunk-VIV64MQM.js +779 -0
- package/dist/bundle/{chunk-2QFPVUM3.js → chunk-W3YTVEWV.js} +69 -6
- package/dist/bundle/{chunk-AUNW7N4I.js → chunk-WLVG4RBZ.js} +1 -1
- package/dist/bundle/{chunk-JRO2FWO2.js → chunk-WOAYHCM2.js} +1 -1
- package/dist/bundle/{chunk-RO3ZR4VP.js → chunk-WXTYYWZI.js} +13 -13
- package/dist/bundle/{chunk-RWIILYKW.js → chunk-WZGKHTA4.js} +2 -2
- package/dist/bundle/{chunk-GB5X3GBE.js → chunk-X2MP634F.js} +14 -5
- package/dist/bundle/{chunk-RGJ7OWHU.js → chunk-XPWZSW6Y.js} +61 -21
- package/dist/bundle/{chunk-D3PNCJD5.js → chunk-YVVJ6Y5C.js} +7 -7
- package/dist/bundle/chunk-ZHA56THL.js +2355 -0
- package/dist/bundle/{chunk-QO2KPU26.js → chunk-ZVFYGTGJ.js} +101 -44
- package/dist/bundle/{chunk-V5GRSOCZ.js → chunk-ZW5KHKMA.js} +5 -5
- package/dist/bundle/{cli-VRSQ7HAE.js → cli-IYYI7GAM.js} +215 -100
- package/dist/bundle/command-contract-TX7NSUBM.js +42 -0
- package/dist/bundle/command-server-entry-FXX4LJWF.js +171 -0
- package/dist/bundle/config-YKNM33J7.js +96 -0
- package/dist/bundle/{decode-523PUQMR.js → decode-SRGOOGBW.js} +6 -6
- package/dist/bundle/{dispatch-IZCAK47P.js → dispatch-OUHRPFUL.js} +11 -11
- package/dist/bundle/{dist-6WWKPEVW.js → dist-UZLNLAIO.js} +97 -56
- package/dist/bundle/{echarts-S5UMX2D3.js → echarts-7CM2MCMW.js} +2 -2
- package/dist/bundle/{embed-ODPDVHUK.js → embed-VEE56BOB.js} +7 -7
- package/dist/bundle/{embedder-PAXRBSZE.js → embedder-SZFYR543.js} +10 -10
- package/dist/bundle/{failure-R2OIHCE5.js → failure-MZBNM7M5.js} +3 -3
- package/dist/bundle/first-run-KWC7RKF2.js +29 -0
- package/dist/bundle/first-screen-DWKMNSEI.js +40 -0
- package/dist/bundle/{folders-ZXTOFY4T.js → folders-UQXRSDJJ.js} +5 -5
- package/dist/bundle/{instructions-DUB7E6C5.js → instructions-R7OHVAWH.js} +1 -1
- package/dist/bundle/{main-A7JSYQI6.js → main-EFUN2O3K.js} +21 -20
- package/dist/bundle/{mcp-M4QN2E7R.js → mcp-7KQUJNFN.js} +2 -2
- package/dist/bundle/{meetings-BDZQV3HR.js → meetings-5I2BDNTA.js} +9 -7
- package/dist/bundle/{node-E25KP53H.js → node-3N2JGZ7V.js} +2 -2
- package/dist/bundle/{node-sqlite-PHWDFZCP.js → node-sqlite-2UVEE2WM.js} +11 -7
- package/dist/bundle/{oauth-G2K46IYP.js → oauth-AYGD7UU3.js} +8 -8
- package/dist/bundle/{open-INWS5HIZ.js → open-3GUVDLGD.js} +6 -6
- package/dist/bundle/openai-NHCDLWWY.js +28 -0
- package/dist/bundle/{output-file-YGQYZCBJ.js → output-file-72JFXVHQ.js} +6 -6
- package/dist/bundle/{process-UJ2JHMJN.js → process-YAHHUFR5.js} +1 -1
- package/dist/bundle/{program-LYTGFV6L.js → program-OSZROCTK.js} +113 -118
- package/dist/bundle/{prompt-VTUCRCE4.js → prompt-HMCW4XQJ.js} +6 -6
- package/dist/bundle/{recognize-3CEPOW2F.js → recognize-VF5CA7EM.js} +5 -5
- package/dist/bundle/{remote-DRQEXEZL.js → remote-5C6VTPR2.js} +10 -8
- package/dist/bundle/{rerank-UL4KNNVN.js → rerank-ER7NEDOI.js} +8 -8
- package/dist/bundle/run-log-JKTLKXSK.js +124 -0
- package/dist/bundle/{serve-P5UWUOWQ.js → serve-QJWXJOM7.js} +10 -10
- package/dist/bundle/{server-M6XK2Y3X.js → server-KCIK3Y2P.js} +50 -48
- package/dist/bundle/server-LLGFDLLJ.js +75 -0
- package/dist/bundle/{services-4HRYNY62.js → services-LQMYJQG3.js} +121 -52
- package/dist/bundle/{speech-BBPBMFAO.js → speech-74GJQNQH.js} +20 -17
- package/dist/bundle/{state-GDSUNUSY.js → state-4XDGCHDF.js} +7 -7
- package/dist/bundle/{store-LBQ6FZP2.js → store-5Y5HK2L2.js} +28 -19
- package/dist/bundle/{store-VWLABMLF.js → store-Y56AHJ2Y.js} +64 -31
- package/dist/bundle/store-connection-4WI32AYU.js +89 -0
- package/dist/bundle/store-maintenance-command-PCXO5AH4.js +65 -0
- package/dist/bundle/{streaming-EJ3NM2C2.js → streaming-E5CR6HSR.js} +7 -7
- package/dist/bundle/{tokens-BE6CJMR5.js → tokens-E2QNVC4F.js} +7 -7
- package/dist/bundle/zm.js +34 -10
- package/dist/bundle/{zoom-app-YIEJLWCW.js → zoom-app-NVL7HEAX.js} +8 -8
- package/dist/contract-overrides.d.ts.map +1 -1
- package/dist/contract-overrides.js +0 -6
- package/dist/contract-overrides.js.map +1 -1
- package/dist/ingestion-search-commands.d.ts.map +1 -1
- package/dist/ingestion-search-commands.js +0 -10
- package/dist/ingestion-search-commands.js.map +1 -1
- package/dist/meeting-integration-commands.d.ts.map +1 -1
- package/dist/meeting-integration-commands.js +8 -6
- package/dist/meeting-integration-commands.js.map +1 -1
- package/dist/meeting-integration.d.ts +3 -1
- package/dist/meeting-integration.d.ts.map +1 -1
- package/dist/store-connection.d.ts.map +1 -1
- package/dist/store-connection.js +4 -3
- package/dist/store-connection.js.map +1 -1
- package/dist/unified-search.d.ts +4 -4
- package/dist/unified-search.d.ts.map +1 -1
- package/dist/unified-search.js +1 -24
- package/dist/unified-search.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/skills/zoom-cli/SKILL.md +2 -2
- package/dist/bundle/answer-policy-GOXSDYDD.js +0 -104
- package/dist/bundle/chunk-5XWCBLUR.js +0 -27
- package/dist/bundle/chunk-AT2XKNFN.js +0 -342
- package/dist/bundle/chunk-GVT5363M.js +0 -35
- package/dist/bundle/chunk-VE2VNECR.js +0 -380
- package/dist/bundle/chunk-Y6C3N7YG.js +0 -12434
- package/dist/bundle/command-contract-RPRKHVU6.js +0 -41
- package/dist/bundle/config-QU6A6VIO.js +0 -90
- package/dist/bundle/first-run-NVTDR5VO.js +0 -28
- package/dist/bundle/first-screen-5RWZDWLK.js +0 -39
- package/dist/bundle/openai-T44ORVGQ.js +0 -25
- package/dist/bundle/run-log-UZAB5CWF.js +0 -118
- package/dist/bundle/server-F3NPVMS2.js +0 -72
- package/dist/bundle/store-connection-XEBFP56U.js +0 -83
- package/dist/bundle/store-maintenance-command-G43JN57J.js +0 -61
- /package/dist/bundle/{chunk-VOXIGICJ.js → chunk-YVNHQFLC.js} +0 -0
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
QUERY_REASONS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-63QXCE5Z.js";
|
|
6
6
|
import {
|
|
7
7
|
defineReasons
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UVZLK3M4.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/errors/reasons.js
|
|
14
14
|
var validation = /* @__PURE__ */ __name((reason, message) => [reason, "validation_error", message], "validation");
|
|
15
15
|
var QUERY = [
|
|
16
16
|
["query.aborted", "the search was stopped before it finished"],
|
|
@@ -23,8 +23,10 @@ var QUERY = [
|
|
|
23
23
|
["query.invalid-reference", "a reference in the query is not valid"],
|
|
24
24
|
["query.invalid-tag", "a tag in the query is not valid"],
|
|
25
25
|
["query.invalid-topic", "a topic in the query is not valid"],
|
|
26
|
-
["query.topic-scope", "a topic needs its chat in the query"]
|
|
27
|
-
|
|
26
|
+
["query.topic-scope", "a topic needs its chat in the query"],
|
|
27
|
+
["query.short-text", "a search by part of a name or a title needs three characters or more"],
|
|
28
|
+
["query.legacy-date-field", "after: and before: are written date>= and date<"]
|
|
29
|
+
].map(([reason, message]) => validation(reason, message)).concat([["query.no-match", "not_found", "no person or chat in the store fits a name in the query"]]);
|
|
28
30
|
var SIGN_IN = [
|
|
29
31
|
["oauth.declined", "authentication_error", "the provider's consent was declined"],
|
|
30
32
|
["oauth.timeout", "timeout", "the sign-in was not finished in time"],
|
|
@@ -68,7 +70,41 @@ var PROVIDER_API = [
|
|
|
68
70
|
var OTHERS = [
|
|
69
71
|
["query.time-limit", "timeout", "the search took longer than its time limit; the query itself is valid"],
|
|
70
72
|
["enrichment.owner-only", "permission_error", "only the owner turns enrichment on, not an agent"],
|
|
73
|
+
["search-harder.owner-only", "permission_error", "only the owner allows search all --harder, not an agent"],
|
|
71
74
|
["model.offline", "permission_error", "downloading a model needs the network; --offline was requested"],
|
|
75
|
+
["model.key-rejected", "invalid_response", "the model provider refused the API key (401 or 403)"],
|
|
76
|
+
["model.unreachable", "invalid_response", "the model provider could not be reached over the network"],
|
|
77
|
+
[
|
|
78
|
+
"model.empty-answer",
|
|
79
|
+
"invalid_response",
|
|
80
|
+
"the model answered nothing; given a picture, it may not read pictures \u2014 choose a vision model"
|
|
81
|
+
],
|
|
82
|
+
validation("model.address-refused", "the model address must be https, or http only on this computer"),
|
|
83
|
+
[
|
|
84
|
+
"local-only.refused",
|
|
85
|
+
"permission_error",
|
|
86
|
+
"local only is on and the address is not on this computer; nothing was sent"
|
|
87
|
+
],
|
|
88
|
+
["local-only.owner-only", "permission_error", "only the owner turns local only off, not an agent"],
|
|
89
|
+
["ai.images-not-allowed", "permission_error", "the AI model may not read pictures; models ai set --allow-remote"],
|
|
90
|
+
["picture-reading.off", "permission_error", "picture reading is never; models picture-reading set request"],
|
|
91
|
+
["picture-reading.owner-only", "permission_error", "only the owner turns picture reading on, not an agent"],
|
|
92
|
+
validation("picture-reading.agent-missing", "choose the agent that reads: --agent claude or --agent codex"),
|
|
93
|
+
validation("picture-reading.not-a-picture", "the file is not a PNG, JPEG or WebP picture"),
|
|
94
|
+
["picture-reading.unavailable-file", "not_found", "the picture could not be fetched, or is over the size limit"],
|
|
95
|
+
["picture-reading.unavailable", "configuration_error", "the chosen coding agent is not installed"],
|
|
96
|
+
["picture-reading.failed", "invalid_response", "the coding agent failed or answered nothing"],
|
|
97
|
+
["picture-reading.timeout", "timeout", "the coding agent gave no answer in time"],
|
|
98
|
+
[
|
|
99
|
+
"ai.owner-only",
|
|
100
|
+
"permission_error",
|
|
101
|
+
"only the owner chooses, unsets, checks or removes the AI model and its key, or revokes its consent"
|
|
102
|
+
],
|
|
103
|
+
["ai.setting-invalid", "configuration_error", "the ai section or the model given is not one WireCat can use"],
|
|
104
|
+
validation("ai.address-refused", "the AI model setting names an address WireCat refuses: plain http to another computer, or Ollama off this computer"),
|
|
105
|
+
["ai.not-set", "configuration_error", "no AI model is chosen; models ai set chooses one"],
|
|
106
|
+
["ai.key-missing", "configuration_error", "no API key is stored for the AI model's address"],
|
|
107
|
+
["ai.ok", "invalid_response", "models ai check: the model answered (a result, never raised)"],
|
|
72
108
|
[
|
|
73
109
|
"contract.unacknowledged-override",
|
|
74
110
|
"configuration_error",
|
|
@@ -91,7 +127,20 @@ var OTHERS = [
|
|
|
91
127
|
validation("mail-findings.invalid", "a checked mail findings batch would be refused; details.problems names why, finding by finding"),
|
|
92
128
|
validation("mail-findings.key-used", "the findings batch key was already used for different input"),
|
|
93
129
|
validation("finding.unknown-field", "a finding has a field its kind does not take"),
|
|
130
|
+
validation("finding.quote-not-found", "a finding's quote is not in the text it cites, word for word"),
|
|
94
131
|
validation("finding.missing-field", "a finding leaves out a field its kind needs"),
|
|
132
|
+
[
|
|
133
|
+
"agent.unrestricted",
|
|
134
|
+
"permission_error",
|
|
135
|
+
"nothing holds this agent to the CLI's commands, so no schedule starts it"
|
|
136
|
+
],
|
|
137
|
+
["read-only.output-outside", "permission_error", "a read-only process writes files only inside its working folder"],
|
|
138
|
+
[
|
|
139
|
+
"agent.refused",
|
|
140
|
+
"permission_error",
|
|
141
|
+
"the schedule changed since it was saved, or starts no agent a schedule may run"
|
|
142
|
+
],
|
|
143
|
+
validation("agent.cost-unknown", "the agent reports no cost, so a cost cap cannot stop it"),
|
|
95
144
|
validation("document.changed", "the document changed while it was read; nothing was saved"),
|
|
96
145
|
["document.not-imported", "not_found", "the document is not imported in this source account"],
|
|
97
146
|
["extraction.invalid-proposals", "invalid_response", "the model's memory proposals could not be used"],
|
|
@@ -162,7 +211,7 @@ var OTHERS = [
|
|
|
162
211
|
[
|
|
163
212
|
"source.needs-sign-in",
|
|
164
213
|
"authentication_error",
|
|
165
|
-
"the page asks for a sign-in; a private Google document
|
|
214
|
+
"the page asks for a sign-in; add a private Google document with drive documents add <url> --profiles <names|all>"
|
|
166
215
|
],
|
|
167
216
|
validation("source.too-large", "the source is larger than one read takes"),
|
|
168
217
|
validation("source.unsupported", "no reader takes this kind of source"),
|
|
@@ -203,6 +252,11 @@ var OTHERS = [
|
|
|
203
252
|
"configuration_error",
|
|
204
253
|
"the store file is damaged; store recover says what is lost and recovers it"
|
|
205
254
|
],
|
|
255
|
+
[
|
|
256
|
+
"store.journal-replaced",
|
|
257
|
+
"conflict",
|
|
258
|
+
"another program deleted or replaced the store's journal file while it was open; store recover says what to do"
|
|
259
|
+
],
|
|
206
260
|
validation("store.file-damaged", "the named store file is damaged or not a database"),
|
|
207
261
|
[
|
|
208
262
|
"store.unreadable",
|
|
@@ -216,6 +270,11 @@ var OTHERS = [
|
|
|
216
270
|
"recovering the store needs the sqlite3 program, 3.43 or newer, with its .recover command"
|
|
217
271
|
],
|
|
218
272
|
validation("store.recovery-failed", "the recovered store did not pass its check, so the store was left as it was"),
|
|
273
|
+
[
|
|
274
|
+
"serve.outdated",
|
|
275
|
+
"configuration_error",
|
|
276
|
+
"the store or the installed version is newer than this serve; it stopped so its unit starts the installed one"
|
|
277
|
+
],
|
|
219
278
|
validation("store.recovering", "another recovery of the store is running; wait for it to finish"),
|
|
220
279
|
validation("store.changed-during-recovery", "the store was written to during the recovery, so it was left as it was"),
|
|
221
280
|
[
|
|
@@ -286,8 +345,25 @@ var OTHERS = [
|
|
|
286
345
|
validation("deal.closed", "a deleted deal or lead does not move or close"),
|
|
287
346
|
validation("deal.copy", "a CRM's copy changes in the CRM; its next sync brings the change here"),
|
|
288
347
|
validation("deal.field", "a field of the deal or lead is not valid"),
|
|
348
|
+
["deal.denied", "permission_error", "the profile denies listing deals or leads, so none is answered"],
|
|
349
|
+
["deal.out-of-scope", "not_found", "the deal or lead is a copy from an account outside the accounts asked for"],
|
|
289
350
|
validation("deal.ref", "the reference names no deal or lead"),
|
|
290
351
|
validation("deal.stage", "no stage of that name, or a stage name more than one pipeline has"),
|
|
352
|
+
validation("stage.base-field", "a base stage needs a name its set has once and a position within the set"),
|
|
353
|
+
validation("stage.base-outcome", "a base set keeps at least one stage of each outcome: open, won and lost"),
|
|
354
|
+
validation("stage.base-in-use", "the owner's own deals or leads stand or stood in that base stage"),
|
|
355
|
+
validation("stage.choice-required", "more than one stage of the row's pipeline maps to that base stage; move to one of the candidates"),
|
|
356
|
+
validation("stage.ref", "a stage is named by its stage:<id> reference"),
|
|
357
|
+
["stage.owner-only", "permission_error", "only the owner confirms mappings and edits a base set, not an agent"],
|
|
358
|
+
validation("stage.unmapped", "no stage of the row's pipeline maps to that base stage; map one first"),
|
|
359
|
+
["stage.not-found", "not_found", "no stored stage has that reference or name"],
|
|
360
|
+
validation("stage.answer-invalid", "the agent's answer to stages suggest is not the JSON stage map it asks for"),
|
|
361
|
+
["stage.model-answer-invalid", "invalid_response", "the AI model's answer to stages suggest is not the stage map"],
|
|
362
|
+
[
|
|
363
|
+
"stage.model-agent",
|
|
364
|
+
"permission_error",
|
|
365
|
+
"an agent's run does not send stages to the AI model; it answers the task itself with --dry-run and --text-file"
|
|
366
|
+
],
|
|
291
367
|
validation("pipeline.ambiguous", "more than one pipeline has that name; name it by its pipeline: reference"),
|
|
292
368
|
validation("pipeline.duplicate", "a pipeline of that name and kind is already stored"),
|
|
293
369
|
validation("pipeline.field", "a pipeline needs a name and at least one stage, each named once"),
|
|
@@ -301,9 +377,12 @@ var OTHERS = [
|
|
|
301
377
|
validation("field.unknown-kind", "fields are listed for deals, leads, people and organizations only"),
|
|
302
378
|
validation("crm.write-unsupported", "the CRM does not take this write, or does not recognise a repeated one"),
|
|
303
379
|
validation("crm.unlisted-held", "a list of every id would mark most of a kind deleted; nothing was, until --rescan"),
|
|
380
|
+
validation("crm.narrowing-held", "the default scope mine would mark most of a kind's stored rows deleted; none is, until the owner sets the scope"),
|
|
381
|
+
validation("crm.unassigned-dropped", "the CRM does not let this sign-in count a user in unassigned as nobody's; that user's deals are not copied"),
|
|
304
382
|
validation("crm.not-reported", "the CRM did not list users or departments; what they would say is unknown, nothing withdrawn"),
|
|
305
383
|
validation("crm.reference-unknown", "a CRM row names a contact, company or user the store does not hold; that link was not made"),
|
|
306
384
|
validation("crm.pending-dropped", "relationships waited too long for an end that never came; they were dropped"),
|
|
385
|
+
validation("crm.activities-failed", "the activities and tasks could not be read; the deals and leads were synced"),
|
|
307
386
|
validation("crm.email-ambiguous", "a CRM contact's email belongs to more than one person; the owner decides"),
|
|
308
387
|
validation("crm.own-unknown", "no own company of the CRM account is stored, so its users are no one's employees yet"),
|
|
309
388
|
validation("relationship.reference-unknown", "a reported relationship names something the store does not hold"),
|
|
@@ -342,11 +421,51 @@ var OTHERS = [
|
|
|
342
421
|
validation("order.status", "a rejected or deleted order's status does not change"),
|
|
343
422
|
["model.not-downloaded", "not_found", "the model is not downloaded on this machine"],
|
|
344
423
|
["person.no-owner", "not_found", "no person is marked as the owner in the store"],
|
|
424
|
+
["person.unknown", "not_found", "the store has no person by that reference; people list gives person:<uid>"],
|
|
425
|
+
["person.no-doubt", "not_found", "nothing about that person is in doubt; people links check lists who is"],
|
|
426
|
+
validation("person.owner", "the owner's own person is not test data"),
|
|
427
|
+
validation("person.no-identity", "a person with no identity is not test data; there is nothing to hide"),
|
|
428
|
+
validation("person.from-required", "say whom the identity leaves: --from person:<uid>, or person:me for the owner"),
|
|
345
429
|
[
|
|
346
430
|
"identity.separated",
|
|
347
431
|
"conflict",
|
|
348
432
|
"the owner separated this identity from that person; only the owner links it again"
|
|
349
433
|
],
|
|
434
|
+
[
|
|
435
|
+
"identity.owner-only",
|
|
436
|
+
"permission_error",
|
|
437
|
+
"only the owner undoes a merge, splits a person, confirms or undoes a link, or links an identity to themselves"
|
|
438
|
+
],
|
|
439
|
+
[
|
|
440
|
+
"identity.stale",
|
|
441
|
+
"conflict",
|
|
442
|
+
"the people a merge or a proposed link names changed since; undo the later merge, or propose the link again"
|
|
443
|
+
],
|
|
444
|
+
["identity.no-merge", "not_found", "nothing of that person is merged into the other; people show lists the merges"],
|
|
445
|
+
validation("identity.held-elsewhere", "the identity sits on another person than the one named; name that person to take it off them"),
|
|
446
|
+
validation("identity.several-persons", "the identities that leave a person are all of that one person"),
|
|
447
|
+
validation("identity.nothing-left", "a split leaves at least one identity with the person"),
|
|
448
|
+
[
|
|
449
|
+
"identity.kept-together",
|
|
450
|
+
"conflict",
|
|
451
|
+
"the owner kept these identities together by turning down their split; only the owner splits them"
|
|
452
|
+
],
|
|
453
|
+
[
|
|
454
|
+
"identity.rejected",
|
|
455
|
+
"conflict",
|
|
456
|
+
"the owner rejected linking these people on this evidence; only a new signal or identity proposes them again"
|
|
457
|
+
],
|
|
458
|
+
validation("identity.same", "the two identities are one person already"),
|
|
459
|
+
validation("identity.not-shared", "only a match on a shared mailbox can say the mailbox is a company's"),
|
|
460
|
+
["organization.not-found", "not_found", "no stored organization has that id"],
|
|
461
|
+
validation("organization.unnamed", "a free mailbox names no company; name the organization or the company"),
|
|
462
|
+
validation("organization.ambiguous", "more than one organization matches; name the one meant as a reference"),
|
|
463
|
+
validation("identity.shared-phone", "more than six people share the phone number, so it proposes no one"),
|
|
464
|
+
validation("identity.common-name", "more than six people have the name, so it proposes no one"),
|
|
465
|
+
validation("identity.owner", "one side is the owner's person, and only the owner joins anyone to themselves"),
|
|
466
|
+
validation("identity.shared-email", "more than six people share the address, so it proposes no one"),
|
|
467
|
+
validation("identity-link.dedicated-review", "an identity link is staged and decided through the people review"),
|
|
468
|
+
validation("identity-split.dedicated-review", "a split of a person is staged and decided through the people review"),
|
|
350
469
|
["transcription.no-key", "authentication_error", "no OpenAI key is set for transcription"],
|
|
351
470
|
validation("transcription.too-large", "the audio is over the transcription provider's size limit"),
|
|
352
471
|
[
|
|
@@ -361,8 +480,9 @@ var OTHERS = [
|
|
|
361
480
|
validation("output.unknown-field", "the answer has no field by that name"),
|
|
362
481
|
validation("name.taken", "the name is already used"),
|
|
363
482
|
validation("period.ambiguous", "the period can be read more than one way"),
|
|
483
|
+
["press.owner-hand-only", "permission_error", "this button decides something for the owner; only a hand presses it"],
|
|
364
484
|
validation("proposal.wrong-state", "the proposal is not in a state that allows this"),
|
|
365
|
-
validation("proposal.reason-required", "an agent deciding for the owner gives a reason"),
|
|
485
|
+
validation("proposal.reason-required", "an agent deciding for the owner, or proposing a link, gives a reason"),
|
|
366
486
|
validation("decision.request-invalid", "a decision request needs its batch, message, owner and distinct known actions"),
|
|
367
487
|
["decision.token-unknown", "not_found", "no button has this token"],
|
|
368
488
|
["decision.token-used", "permission_error", "this button was already pressed"],
|
|
@@ -379,6 +499,7 @@ var OTHERS = [
|
|
|
379
499
|
],
|
|
380
500
|
validation("proposal.decider-required", "a decision names who decides: the owner or an agent with a reason"),
|
|
381
501
|
validation("proposal.ids", "the proposal ids cannot be read"),
|
|
502
|
+
["group.outside", "permission_error", "the process is locked to a group, and this belongs to accounts outside it"],
|
|
382
503
|
["proposal.own", "permission_error", "an agent never decides its own proposal"],
|
|
383
504
|
["proposal.owner-only", "permission_error", "only the owner decides this proposal"],
|
|
384
505
|
["proposals.agent-decisions-off", "permission_error", "agent decisions are turned off; the owner decides"],
|
|
@@ -388,6 +509,8 @@ var OTHERS = [
|
|
|
388
509
|
validation("relationship.role-built-in", "a built-in role stays on its list"),
|
|
389
510
|
validation("relationship.role-in-use", "relationships still hold that role; change them first (details.count)"),
|
|
390
511
|
validation("relationship.role-unknown", "the role is not one the relationship takes; the message lists them"),
|
|
512
|
+
validation("relationship.engagement-ends", "only a person's member-of a project takes an engagement level"),
|
|
513
|
+
validation("relationship.engagement-unknown", "the engagement level is not none, low, medium or high"),
|
|
391
514
|
validation("ranking.invalid", "the ranking is not valid"),
|
|
392
515
|
validation("ref.malformed", "the reference has a known kind but not its shape"),
|
|
393
516
|
validation("ref.unknown-kind", "the text names no kind of reference"),
|
|
@@ -405,6 +528,13 @@ var OTHERS = [
|
|
|
405
528
|
validation("tag-review.required", "the tag needs the owner's review first"),
|
|
406
529
|
["tag-review.stale", "configuration_error", "the tag review changed meanwhile"],
|
|
407
530
|
validation("tag.invalid", "the tag is not valid"),
|
|
531
|
+
validation("template.unknown-key", "there is no message template by that key"),
|
|
532
|
+
validation("template.no-renderer", "nothing renders that template key yet, so a template for it cannot be checked"),
|
|
533
|
+
validation("template.unknown-language", "cli-core ships no template in that language, so one would never be used"),
|
|
534
|
+
validation("template.check-failed", "the template failed its check and was not saved; the message says why"),
|
|
535
|
+
validation("template.no-history", "the template has no earlier body to put back"),
|
|
536
|
+
validation("template.no-editor", "no editor is set: set VISUAL or EDITOR, or pass the template with --file"),
|
|
537
|
+
["template.owner-only", "permission_error", "only the owner changes a message template, not an agent"],
|
|
408
538
|
["reactions.list-hidden", "permission_error", "the chat does not let its members see who reacted"],
|
|
409
539
|
["reactions.broadcast", "permission_error", "a channel does not show who reacted to its posts"],
|
|
410
540
|
validation("task.external-id", "an external id is <service>:<id>, such as avito:4512345678"),
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ELJUBPY4.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
11
11
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
12
12
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
13
13
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -29,6 +29,7 @@ var DEFAULT_PERMISSIONS = {
|
|
|
29
29
|
"store.migrate": "ask",
|
|
30
30
|
"store.repair": "ask",
|
|
31
31
|
"store.reset": "ask",
|
|
32
|
+
"store.import": "ask",
|
|
32
33
|
"store.clear": "ask",
|
|
33
34
|
"store.decrypt": "ask",
|
|
34
35
|
"store.copies.delete": "ask",
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
readLock,
|
|
6
6
|
releaseLock,
|
|
7
7
|
takeLock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SXZGCD6E.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
14
14
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
|
|
17
17
|
import { randomBytes } from "node:crypto";
|
|
18
18
|
import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
|
|
|
86
86
|
};
|
|
87
87
|
}, "activityRecorder");
|
|
88
88
|
|
|
89
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
89
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
90
90
|
var ACCESS_SECONDS = 60 * 60;
|
|
91
91
|
var REFRESH_SECONDS = 30 * 24 * 60 * 60;
|
|
92
92
|
var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
|
|
@@ -2,31 +2,31 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
updateCommand
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RZUJMAMK.js";
|
|
6
|
+
import {
|
|
7
|
+
DEFAULT_STEMMERS,
|
|
8
|
+
LANGUAGES
|
|
9
|
+
} from "./chunk-7SUWPMZG.js";
|
|
10
|
+
import {
|
|
11
|
+
installerOf
|
|
12
|
+
} from "./chunk-RX5CJ55S.js";
|
|
6
13
|
import {
|
|
7
14
|
QUESTIONS,
|
|
8
15
|
readSetupAnswers,
|
|
9
16
|
unanswered,
|
|
10
17
|
writeSetupAnswers
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import {
|
|
13
|
-
DEFAULT_STEMMERS,
|
|
14
|
-
LANGUAGES
|
|
15
|
-
} from "./chunk-3KC7C465.js";
|
|
18
|
+
} from "./chunk-37NF5CBJ.js";
|
|
16
19
|
import {
|
|
17
20
|
sharedConfigPath
|
|
18
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-IU4DUUB3.js";
|
|
19
22
|
import {
|
|
20
23
|
storePath
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import {
|
|
23
|
-
installerOf
|
|
24
|
-
} from "./chunk-P3ASN72F.js";
|
|
24
|
+
} from "./chunk-3KRTEX5M.js";
|
|
25
25
|
import {
|
|
26
26
|
__name
|
|
27
27
|
} from "./chunk-ZVVMGPBJ.js";
|
|
28
28
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/first-run.js
|
|
30
30
|
import { spawnSync } from "node:child_process";
|
|
31
31
|
import { accessSync, constants, realpathSync } from "node:fs";
|
|
32
32
|
import { delimiter, join } from "node:path";
|
|
@@ -84,7 +84,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
|
|
|
84
84
|
return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
|
|
85
85
|
}, "suggested");
|
|
86
86
|
var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
|
|
87
|
-
const { openStore } = await import("./store-
|
|
87
|
+
const { openStore } = await import("./store-5Y5HK2L2.js");
|
|
88
88
|
const store = await openStore({ env });
|
|
89
89
|
let rebuild = false;
|
|
90
90
|
try {
|
|
@@ -113,8 +113,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
113
113
|
if (!rebuild)
|
|
114
114
|
return;
|
|
115
115
|
const [{ openCache }, { buildStems }] = await Promise.all([
|
|
116
|
-
import("./open-
|
|
117
|
-
import("./store-maintenance-command-
|
|
116
|
+
import("./open-3GUVDLGD.js"),
|
|
117
|
+
import("./store-maintenance-command-PCXO5AH4.js")
|
|
118
118
|
]);
|
|
119
119
|
const database = await openCache(storePath(env));
|
|
120
120
|
try {
|
|
@@ -126,7 +126,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
126
126
|
var askTools = /* @__PURE__ */ __name(async (run) => {
|
|
127
127
|
const { command, env, io } = run;
|
|
128
128
|
const installed = run.installed ?? ((name) => onPath(name, env));
|
|
129
|
-
const { WIRECAT_TOOLS } = await import("./first-screen-
|
|
129
|
+
const { WIRECAT_TOOLS } = await import("./first-screen-DWKMNSEI.js");
|
|
130
130
|
const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
|
|
131
131
|
const missing = others.filter((tool) => !installed(tool.command));
|
|
132
132
|
io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
|
|
@@ -199,7 +199,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
|
|
|
199
199
|
contentLanguages: start.contentLanguages,
|
|
200
200
|
all: start.path[0] === "setup",
|
|
201
201
|
io: {
|
|
202
|
-
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-
|
|
202
|
+
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-HMCW4XQJ.js")).readSecret(prompt, { input, echo: true }), "ask"),
|
|
203
203
|
say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
|
|
204
204
|
`), "say")
|
|
205
205
|
}
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
checkCancelled
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ERJYJ36F.js";
|
|
6
6
|
import {
|
|
7
7
|
BASE_CONSTANTS,
|
|
8
8
|
baseConstantsSchema,
|
|
9
9
|
loadConstants
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-S7SXSHRC.js";
|
|
11
11
|
import {
|
|
12
12
|
nonEmpty,
|
|
13
13
|
object,
|
|
@@ -15,15 +15,15 @@ import {
|
|
|
15
15
|
pipe,
|
|
16
16
|
string,
|
|
17
17
|
transform
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UVZLK3M4.js";
|
|
19
19
|
import {
|
|
20
20
|
CliError
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ELJUBPY4.js";
|
|
22
22
|
import {
|
|
23
23
|
__name
|
|
24
24
|
} from "./chunk-ZVVMGPBJ.js";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/constants/obscure.js
|
|
27
27
|
import { createDecipheriv } from "node:crypto";
|
|
28
28
|
var KEY = Buffer.from("d43012779aa2dded3e98092a3dbcf5d8980c564172f5ce0a5fd0574e5f740339", "hex");
|
|
29
29
|
var reveal = /* @__PURE__ */ __name((obscured) => {
|
|
@@ -32,7 +32,7 @@ var reveal = /* @__PURE__ */ __name((obscured) => {
|
|
|
32
32
|
return Buffer.concat([decipher.update(bytes.subarray(16)), decipher.final()]).toString("utf8");
|
|
33
33
|
}, "reveal");
|
|
34
34
|
|
|
35
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/constants/index.js
|
|
36
36
|
var CORE_CONSTANTS = new URL("../../constants.json", new URL("constants/index.js", import.meta.resolve("@wirecat/cli-core")).href);
|
|
37
37
|
var constantsSchema = object({
|
|
38
38
|
...baseConstantsSchema.entries,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/executable.js
|
|
8
8
|
import { existsSync } from "node:fs";
|
|
9
9
|
import { win32 } from "node:path";
|
|
10
10
|
var variable = /* @__PURE__ */ __name((env, name) => Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1], "variable");
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
} from "./chunk-Y5E2WNWB.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ELJUBPY4.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
|
|
14
14
|
import { readFileSync } from "node:fs";
|
|
15
15
|
var musl = /* @__PURE__ */ __name(() => {
|
|
16
16
|
if (process.platform !== "linux")
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
CliError
|
|
5
|
+
} from "./chunk-ELJUBPY4.js";
|
|
6
|
+
import {
|
|
7
|
+
__name
|
|
8
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
9
|
+
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
11
|
+
import { readFileSync } from "node:fs";
|
|
12
|
+
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
13
|
+
var locking = /* @__PURE__ */ __name((value) => value !== void 0 && value.trim() !== "" && value !== "0", "locking");
|
|
14
|
+
var ancestries = /* @__PURE__ */ new Map();
|
|
15
|
+
var readable = /* @__PURE__ */ __name((read, path) => {
|
|
16
|
+
try {
|
|
17
|
+
return read(path);
|
|
18
|
+
} catch (error) {
|
|
19
|
+
if (error.code === "EACCES")
|
|
20
|
+
return void 0;
|
|
21
|
+
throw error;
|
|
22
|
+
}
|
|
23
|
+
}, "readable");
|
|
24
|
+
var ancestorEnvironments = /* @__PURE__ */ __name(({ read = /* @__PURE__ */ __name((path) => readFileSync(path, "utf8"), "read"), from = process.ppid, uid = process.getuid?.() ?? -1, cache = ancestries } = {}) => {
|
|
25
|
+
if (process.platform !== "linux")
|
|
26
|
+
return [];
|
|
27
|
+
const key = `${from}:${uid}`;
|
|
28
|
+
const known = cache.get(key);
|
|
29
|
+
if (known !== void 0)
|
|
30
|
+
return known;
|
|
31
|
+
let found = [];
|
|
32
|
+
try {
|
|
33
|
+
for (let pid = from, depth = 0; pid >= 1 && depth < 64; depth++) {
|
|
34
|
+
const status = read(`/proc/${pid}/status`);
|
|
35
|
+
const field = /* @__PURE__ */ __name((name) => new RegExp(`^${name}:\\s*(\\d+)`, "m").exec(status)?.[1], "field");
|
|
36
|
+
if (Number(field("Uid")) !== uid)
|
|
37
|
+
break;
|
|
38
|
+
const environ = readable(read, `/proc/${pid}/environ`);
|
|
39
|
+
if (environ === void 0)
|
|
40
|
+
break;
|
|
41
|
+
found.push(environ.split("\0"));
|
|
42
|
+
pid = Number(field("PPid"));
|
|
43
|
+
}
|
|
44
|
+
} catch {
|
|
45
|
+
found = null;
|
|
46
|
+
}
|
|
47
|
+
cache.set(key, found);
|
|
48
|
+
return found;
|
|
49
|
+
}, "ancestorEnvironments");
|
|
50
|
+
var valuesOf = /* @__PURE__ */ __name((environments, name) => environments.flatMap((environ) => environ.filter((entry) => entry.startsWith(`${name}=`)).map((entry) => entry.slice(name.length + 1))), "valuesOf");
|
|
51
|
+
var lockedByAncestor = /* @__PURE__ */ __name((name, ancestry = {}) => {
|
|
52
|
+
const environments = ancestorEnvironments(ancestry);
|
|
53
|
+
return environments === null || valuesOf(environments, name).some(locking);
|
|
54
|
+
}, "lockedByAncestor");
|
|
55
|
+
var ancestorValue = /* @__PURE__ */ __name((name, env, ancestry = {}) => valuesOf(ancestorEnvironments(ancestry) ?? [], name).at(-1) ?? env[name], "ancestorValue");
|
|
56
|
+
var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
57
|
+
const name = envName(app, "READ_ONLY");
|
|
58
|
+
return locking(env[name]) || lockedByAncestor(name) ? name : void 0;
|
|
59
|
+
}, "readOnlyLockOf");
|
|
60
|
+
var mailHolderVariable = /* @__PURE__ */ __name((app) => envName(app, "MAIL_HOLDER"), "mailHolderVariable");
|
|
61
|
+
var MESSENGER_CHANGE_REFUSAL = "send, react, change chats or change the account";
|
|
62
|
+
var readOnlyRefusal = /* @__PURE__ */ __name((lock, what) => new CliError("permission_error", `this process is read-only (${lock}) \u2014 it cannot ${what}`), "readOnlyRefusal");
|
|
63
|
+
|
|
64
|
+
export {
|
|
65
|
+
envName,
|
|
66
|
+
ancestorValue,
|
|
67
|
+
readOnlyLockOf,
|
|
68
|
+
mailHolderVariable,
|
|
69
|
+
MESSENGER_CHANGE_REFUSAL,
|
|
70
|
+
readOnlyRefusal
|
|
71
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
__name
|
|
5
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
6
|
+
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/stdin-field.js
|
|
8
|
+
var fields = /* @__PURE__ */ new WeakMap();
|
|
9
|
+
var readsStdin = /* @__PURE__ */ __name((command, field) => {
|
|
10
|
+
fields.set(command, field);
|
|
11
|
+
return command;
|
|
12
|
+
}, "readsStdin");
|
|
13
|
+
var stdinFieldOf = /* @__PURE__ */ __name((command) => fields.get(command), "stdinFieldOf");
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
readsStdin,
|
|
17
|
+
stdinFieldOf
|
|
18
|
+
};
|
|
@@ -3,18 +3,18 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
SAMPLE_RATE,
|
|
5
5
|
decodeOgg
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OP5PGE2N.js";
|
|
7
7
|
import {
|
|
8
8
|
importFrom
|
|
9
9
|
} from "./chunk-Y5E2WNWB.js";
|
|
10
10
|
import {
|
|
11
11
|
CliError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ELJUBPY4.js";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/speech/decode.js
|
|
18
18
|
import { spawn } from "node:child_process";
|
|
19
19
|
import { mkdtemp, rm, writeFile } from "node:fs/promises";
|
|
20
20
|
import { createRequire } from "node:module";
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
} from "./chunk-Y5E2WNWB.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ELJUBPY4.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
14
14
|
import { createRequire } from "node:module";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
|
|
17
17
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
|
|
18
18
|
var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
19
19
|
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
|
70
70
|
throw invalid();
|
|
71
71
|
}, "checkOggDuration");
|
|
72
72
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
73
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
74
74
|
var SAMPLE_RATE = 16e3;
|
|
75
75
|
var LEAD = SAMPLE_RATE / 2;
|
|
76
76
|
var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
|