@kscs-inc/cli 0.0.0-stage → 0.3.1
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 +31 -2
- package/THIRD-PARTY-NOTICES.txt +50 -0
- package/bin/kscs.mjs +1957 -0
- package/package.json +24 -4
- package/release.json +79 -0
- package/release.signature.json +1 -0
package/README.md
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 旷世传声 CLI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
公司统一 CLI 的轻量安装入口,完整客户端来自公司官网;本包不包含业务凭据或服务端。需要 Node.js 22.23.4+、24.19.0+或26.x(对应受支持版本线);普通用户无需Python、Java或编译器。无Node请访问[官网安装页](https://cli.xaweiju.com/install/)。
|
|
4
|
+
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npx @kscs-inc/cli@0.3.1 install
|
|
9
|
+
# 国内镜像(同步可能延迟)
|
|
10
|
+
npx --registry=https://registry.npmmirror.com @kscs-inc/cli@0.3.1 install
|
|
11
|
+
# 或全局安装入口后显式安装客户端
|
|
12
|
+
npm install -g @kscs-inc/cli@0.3.1
|
|
13
|
+
kscs install
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
旧kscs命令可能优先于npm入口,首次推荐npx;使用官网指引核对实际路径,不使用sudo覆盖。安装默认个人模式,团队用 --mode team --config /既有私有目录/team.json;不得把秘密写在命令中。未原生验收平台须显式 --channel trial,不自动升级。
|
|
17
|
+
|
|
18
|
+
## 验证与使用
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
kscs --version
|
|
22
|
+
kscs auth login
|
|
23
|
+
kscs products list --human
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
安装成功不代表已登录或有业务权限。终端未识别命令时新开终端,或使用回执给出的绝对入口。
|
|
27
|
+
|
|
28
|
+
## 安全与更新
|
|
29
|
+
|
|
30
|
+
入口版本0.3.1固定对应发行目标,验证Ed25519签名及SHA256后调用同一安装事务。客户端自带Node,后续使用kscs update check/status/apply;npm仅更新入口。npm uninstall -g @kscs-inc/cli只删除npm入口,不删除实际客户端、配置和Skill。业务请求直接到公司CLI服务,不经过npm或镜像。
|
|
31
|
+
|
|
32
|
+
如安装中断,保留原客户端与身份,按中文错误提示恢复;不关闭TLS或签名校验。镜像不可用时从npm官方源重试或使用官网安装方式。内联第三方代码许可见THIRD-PARTY-NOTICES.txt。
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
本入口内联安全ZIP解析依赖,无需安装外部运行依赖。
|
|
2
|
+
|
|
3
|
+
yauzl
|
|
4
|
+
The MIT License (MIT)
|
|
5
|
+
|
|
6
|
+
Copyright (c) 2014 Josh Wolfe
|
|
7
|
+
|
|
8
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
+
in the Software without restriction, including without limitation the rights
|
|
11
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
+
furnished to do so, subject to the following conditions:
|
|
14
|
+
|
|
15
|
+
The above copyright notice and this permission notice shall be included in all
|
|
16
|
+
copies or substantial portions of the Software.
|
|
17
|
+
|
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
24
|
+
SOFTWARE.
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
pend
|
|
28
|
+
The MIT License (Expat)
|
|
29
|
+
|
|
30
|
+
Copyright (c) 2014 Andrew Kelley
|
|
31
|
+
|
|
32
|
+
Permission is hereby granted, free of charge, to any person
|
|
33
|
+
obtaining a copy of this software and associated documentation files
|
|
34
|
+
(the "Software"), to deal in the Software without restriction,
|
|
35
|
+
including without limitation the rights to use, copy, modify, merge,
|
|
36
|
+
publish, distribute, sublicense, and/or sell copies of the Software,
|
|
37
|
+
and to permit persons to whom the Software is furnished to do so,
|
|
38
|
+
subject to the following conditions:
|
|
39
|
+
|
|
40
|
+
The above copyright notice and this permission notice shall be
|
|
41
|
+
included in all copies or substantial portions of the Software.
|
|
42
|
+
|
|
43
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
44
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
45
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
46
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
|
47
|
+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
|
48
|
+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
49
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
50
|
+
SOFTWARE.
|