@fastcar/cli 0.1.2 → 0.1.3
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/bin/cli.js +9 -0
- package/package.json +1 -1
- package/skills/fastcar-database/SKILL.md +260 -337
- package/skills/fastcar-framework/SKILL.md +75 -355
- package/skills/fastcar-rpc-microservices/SKILL.md +19 -69
- package/skills/fastcar-serverless/SKILL.md +48 -48
- package/skills/fastcar-toolkit/SKILL.md +22 -31
- package/skills/typescript-coding-style/SKILL.md +144 -0
- package/src/pack.js +7 -7
- package/src/update.js +301 -0
- package/src/utils.js +2 -2
package/bin/cli.js
CHANGED
|
@@ -11,6 +11,7 @@ const {
|
|
|
11
11
|
listTargets,
|
|
12
12
|
initSkill,
|
|
13
13
|
} = require("../src/skill");
|
|
14
|
+
const { updateCosTemplate } = require("../src/update");
|
|
14
15
|
const packageINFO = require("../package.json");
|
|
15
16
|
const templates = require("../src/templates.json");
|
|
16
17
|
|
|
@@ -30,6 +31,8 @@ Commands:
|
|
|
30
31
|
pack [pm] 打包项目(排除 devDependencies)
|
|
31
32
|
pm: 包管理器 (npm/yarn/pnpm),可选,默认自动检测
|
|
32
33
|
|
|
34
|
+
update:cos 更新 @fastcar/template-cos 的 target 文件夹
|
|
35
|
+
|
|
33
36
|
skill install <name> 安装 FastCar skill 到本地 AI Agent
|
|
34
37
|
-g, --global 安装到全局(默认)
|
|
35
38
|
-l, --local 安装到项目级
|
|
@@ -59,6 +62,8 @@ Examples:
|
|
|
59
62
|
$ fastcar-cli pack yarn # 使用 yarn 安装依赖
|
|
60
63
|
$ fastcar-cli pack pnpm # 使用 pnpm 安装依赖
|
|
61
64
|
|
|
65
|
+
$ fastcar-cli update:cos # 更新 cos 模板的 target 文件夹
|
|
66
|
+
|
|
62
67
|
$ fastcar-cli skill install fastcar-framework # 交互式安装
|
|
63
68
|
$ fastcar-cli skill install fastcar-framework -g # 全局安装
|
|
64
69
|
$ fastcar-cli skill install fastcar-framework -l # 本地安装
|
|
@@ -151,6 +156,10 @@ async function run(argv) {
|
|
|
151
156
|
packProject(null, null, pm);
|
|
152
157
|
break;
|
|
153
158
|
}
|
|
159
|
+
case "update:cos": {
|
|
160
|
+
await updateCosTemplate(body);
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
154
163
|
case "skill": {
|
|
155
164
|
const subCmd = body[0];
|
|
156
165
|
const args = body.slice(1);
|