@vibek/cli 0.1.0 → 0.1.2
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/LICENSE +21 -0
- package/README.md +23 -7
- package/index.js +546 -546
- package/package.json +4 -3
- package/vibek-package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Vibek contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
# Vibek
|
|
1
|
+
# Vibek
|
|
2
2
|
|
|
3
|
-
Vibek
|
|
3
|
+
Vibek 是一个个人自用的 CTP 量化交易项目,提供后台行情与交易服务、策略管理、离线回测,
|
|
4
4
|
以及浏览器中的 AI 策略工作台。npm 包安装后注册全局命令 `vibek`。
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
## 项目状态
|
|
7
|
+
|
|
8
|
+
**本项目正在开发和测试中,尚未作为稳定产品发布。** 功能、命令、配置和数据格式可能继续调整,
|
|
9
|
+
不承诺向后兼容性、持续可用性或交易数据的完整与正确。该 npm 包主要用于个人环境中的开发、研究和验证,
|
|
10
|
+
不建议直接用于他人的生产或实盘交易环境。
|
|
11
|
+
|
|
12
|
+
Vibek 可能连接真实期货账户,但不构成投资建议,也不对交易损失负责。使用者应自行评估并承担风险;
|
|
13
|
+
首次使用请保持 `live_enabled = false`,先在 CTP 测试环境、Paper 模式和离线回测中完成充分验证。
|
|
8
14
|
|
|
9
15
|
## 运行环境
|
|
10
16
|
|
|
@@ -186,16 +192,22 @@ Live 模式必须显式使用 `--mode live`,并同时通过账号配置中的
|
|
|
186
192
|
|
|
187
193
|
## 升级与回退
|
|
188
194
|
|
|
189
|
-
|
|
195
|
+
`vibek update` 将官方 npm 应用更新到 `latest` 指向的稳定版本。它不会更新 gateway,也不会停止或
|
|
196
|
+
重启正在运行的 daemon;请在维护时段显式完成后续步骤:
|
|
190
197
|
|
|
191
198
|
```bash
|
|
192
|
-
|
|
199
|
+
vibek update
|
|
193
200
|
vibek --version
|
|
194
201
|
vibek gateway
|
|
195
202
|
vibek daemon restart
|
|
196
203
|
```
|
|
197
204
|
|
|
198
|
-
|
|
205
|
+
实盘机器需要固定或回退版本时,不要使用 `vibek update`,而是安装明确版本,再用
|
|
206
|
+
`vibek gateway <version>` 激活对应 gateway,最后重启 daemon:
|
|
207
|
+
|
|
208
|
+
```bash
|
|
209
|
+
bun install -g @vibek/cli@0.1.0
|
|
210
|
+
```
|
|
199
211
|
|
|
200
212
|
## 排查问题
|
|
201
213
|
|
|
@@ -208,3 +220,7 @@ vibek daemon logs --follow # 查看运行日志
|
|
|
208
220
|
vibek --help # 查看全部命令
|
|
209
221
|
vibek help <command> # 查看某个命令的帮助
|
|
210
222
|
```
|
|
223
|
+
|
|
224
|
+
## License
|
|
225
|
+
|
|
226
|
+
[MIT License](https://github.com/gamebody/vibek/blob/main/LICENSE), Copyright (c) 2026 Vibek contributors.
|