@gitruck/cli 1.2.13 → 1.2.14
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/CHANGELOG.md +19 -0
- package/README.en.md +135 -769
- package/README.md +135 -788
- package/assets/readme/README.md +9 -0
- package/assets/readme/editable-project.webp +0 -0
- package/assets/readme/narration-tour.webp +0 -0
- package/assets/readme/quick-mode.webp +0 -0
- package/assets/readme/wordmark.svg +6 -0
- package/dist/index.js +230 -230
- package/docs/development.en.md +47 -0
- package/docs/development.md +47 -0
- package/docs/reference.en.md +593 -0
- package/docs/reference.md +617 -0
- package/docs/workflow.en.md +72 -0
- package/docs/workflow.md +72 -0
- package/package.json +78 -72
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Development and contributions
|
|
2
|
+
|
|
3
|
+
[Back to README](../README.en.md) · [Command reference](reference.en.md) · [简体中文](development.md)
|
|
4
|
+
|
|
5
|
+
## Local development
|
|
6
|
+
|
|
7
|
+
The CLI runtime requires Node.js ≥ 20.6. Source development and builds use Bun.
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
git clone https://github.com/Gitruck/cli.git
|
|
11
|
+
cd cli
|
|
12
|
+
bun install
|
|
13
|
+
bun run src/index.ts --help
|
|
14
|
+
npm run typecheck
|
|
15
|
+
bun run build
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
The public repository supports reading, developing and building the CLI. `test/` and `openspec/` are private submodules requiring maintainer access. Public contributors do not need a recursive clone; authorized maintainers run the complete test suite.
|
|
19
|
+
|
|
20
|
+
## Repository layout
|
|
21
|
+
|
|
22
|
+
```text
|
|
23
|
+
src/index.ts Command entry point
|
|
24
|
+
src/commands/ CLI commands
|
|
25
|
+
src/lib/ Cloud calls, media processing, project assembly and rendering
|
|
26
|
+
skills/ Bundled Agent Skills
|
|
27
|
+
contracts/ Open project and motion graphics contracts
|
|
28
|
+
docs/ Workflow, configuration, command and development references
|
|
29
|
+
assets/ README artwork
|
|
30
|
+
AGENT.md Portable agent playbook
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Add commands through registration functions in `src/commands/` and wire them into `src/index.ts`. Toolbox additions should reuse existing descriptors and runners where applicable. `src/commands/skills.ts` owns the bundled Skill list; see the [reference](reference.en.md) for details.
|
|
34
|
+
|
|
35
|
+
## Documentation and checks
|
|
36
|
+
|
|
37
|
+
- README presents the product and onboarding. Maintain parameters, configuration and full explanations in `docs/reference.md` / `docs/reference.en.md`.
|
|
38
|
+
- Update both READMEs and corresponding bilingual documents together. Preserve command names, flags, fields and artifact filenames; keep example commands identical.
|
|
39
|
+
- Use publicly accessible images or files in `assets/`. Keep examples traceable and large videos out of the npm package.
|
|
40
|
+
- Maintainers run `npm test`, which builds and uses Node's test runner. Do not substitute `bun test`. Documentation-only changes should at least run the relevant guards and check links and rendering.
|
|
41
|
+
- Check `npm pack --dry-run` when moving bundled documentation so it remains in the package.
|
|
42
|
+
|
|
43
|
+
## Contributing
|
|
44
|
+
|
|
45
|
+
Use [Issues](https://github.com/Gitruck/cli/issues) to describe problems, use cases or behavior you would like improved. Explain changes and validation in your PR. Do not include API keys, personal configuration, media paths, generated outputs or private submodule contents.
|
|
46
|
+
|
|
47
|
+
See [contracts](../contracts/README.md) for interfaces and [AGENT.md](../AGENT.md) for agent usage.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# 开发与贡献
|
|
2
|
+
|
|
3
|
+
[返回首页](../README.md) · [命令参考](reference.md) · [English](development.en.md)
|
|
4
|
+
|
|
5
|
+
## 本地开发
|
|
6
|
+
|
|
7
|
+
CLI 运行时需要 Node.js ≥ 20.6;源码开发与构建使用 Bun。
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
git clone https://github.com/Gitruck/cli.git
|
|
11
|
+
cd cli
|
|
12
|
+
bun install
|
|
13
|
+
bun run src/index.ts --help
|
|
14
|
+
npm run typecheck
|
|
15
|
+
bun run build
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
公共仓库可用于阅读、开发和构建 CLI。`test/` 与 `openspec/` 是需要维护者权限的私有子模块,公开贡献者无需递归拉取它们;完整测试由有权限的维护者运行。
|
|
19
|
+
|
|
20
|
+
## 项目结构
|
|
21
|
+
|
|
22
|
+
```text
|
|
23
|
+
src/index.ts 命令入口
|
|
24
|
+
src/commands/ CLI 命令
|
|
25
|
+
src/lib/ 云端调用、素材处理、工程装配与渲染
|
|
26
|
+
skills/ 随包 Agent Skills
|
|
27
|
+
contracts/ 工程与动态图等开放契约
|
|
28
|
+
docs/ 工作流、配置、命令和开发参考
|
|
29
|
+
assets/ README 配图
|
|
30
|
+
AGENT.md 可移植 Agent 操作手册
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
新增命令在 `src/commands/` 中提供注册函数,并在 `src/index.ts` 接入;工具族优先复用已有描述器与执行器。随包 Skills 的权威清单在 `src/commands/skills.ts`,详细名单见[参考文档](reference.md)。
|
|
34
|
+
|
|
35
|
+
## 文档与校验
|
|
36
|
+
|
|
37
|
+
- README 负责产品展示和上手;参数、配置与完整操作解释维护在 `docs/reference.md` / `docs/reference.en.md`。
|
|
38
|
+
- 两份 README 和对应双语文档同步更新。命令名、参数、字段与产物文件名保持原样;示例命令保持一致。
|
|
39
|
+
- 配图使用公开可访问资源,或放入 `assets/`;案例保持可追溯,不将大视频打包进 npm。
|
|
40
|
+
- 维护者运行 `npm test`(构建后通过 Node 测试),不要用 `bun test` 代替。纯文档变更至少运行相关文档守卫、检查链接和展示效果。
|
|
41
|
+
- 修改公开随包文档时,检查 `npm pack --dry-run` 的文件清单,避免移动后漏包。
|
|
42
|
+
|
|
43
|
+
## 提交贡献
|
|
44
|
+
|
|
45
|
+
通过 [Issues](https://github.com/Gitruck/cli/issues)描述问题、使用场景或希望改进的行为。提交 PR 时说明变更与验证方式。不要提交 API Key、个人配置、素材路径、生成产物或私有子模块的内容。
|
|
46
|
+
|
|
47
|
+
接口约定见 [contracts](../contracts/README.md),Agent 使用方式见 [AGENT.md](../AGENT.md)。
|