cistack 6.1.0 → 6.2.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.
@@ -1,137 +1,276 @@
1
1
  {
2
+ "copy_button": {
3
+ "idle": "复制",
4
+ "success": "已复制"
5
+ },
2
6
  "navigation": {
7
+ "repository": "GitHub",
8
+ "registry": "npm",
9
+ "reference": "参考",
3
10
  "version": "版本",
4
- "status": "流水线_已同步",
5
- "repository": "仓库",
6
- "registry": "注册表",
7
- "core_manifest": "核心_清单",
8
- "docs": "文档"
11
+ "status": "稳定"
9
12
  },
10
13
  "hero": {
11
- "scan_identity": "扫描_身份",
12
- "s1_label": "S_01 // 摄取_引擎",
13
- "s1_title": "你的技术栈",
14
- "s2_label": "S_02 // 流水线_合成",
15
- "s2_title": "你的流水线",
16
- "s3_label": "S_03 // 执行_确认",
17
- "s3_title": "编排完成",
18
- "description": "cistack 深度扫描您的代码仓库,为 30 多种框架和 12 个平台即时生成生产就绪的 GitHub Actions 工作流。",
14
+ "product_name": "cistack",
15
+ "tagline": "通过分析你已有的代码库,生成 GitHub Actions CI/CD 流水线。",
16
+ "intro": "cistack 扫描项目、识别技术栈,并写入可用于生产的 GitHub Actions 工作流,覆盖 CI、部署、Docker 与发布。面向真实仓库而非演示:在生成 YAML 前会读取锁文件、框架信号、发布配置、monorepo 工作区、托管配置与 Git 分支元数据。",
19
17
  "npx_command": "npx cistack",
20
- "active_installs": "活跃安装量",
21
- "per_week": "/ ",
22
- "realtime_synth": "实时_合成",
23
- "integrations": "集成",
24
- "stack_aware": "感应技术栈",
25
- "success_rate": "成功率"
18
+ "weekly_downloads": "周下载量",
19
+ "per_week": "npm 近一周",
20
+ "live_registry": "来自 registry 的实时数据"
21
+ },
22
+ "preview": {
23
+ "title": "运行预览",
24
+ "caption": "扫描典型项目后的 CLI 动画输出。"
25
+ },
26
+ "why": {
27
+ "title": "为什么选择 cistack",
28
+ "items": [
29
+ "自动识别语言、框架、测试工具、托管提供方与发布工具",
30
+ "在可用时使用仓库默认 Git 分支,而不是假定 main",
31
+ "支持 monorepo、按包的流水线,以及面向不同包管理器的命令",
32
+ "生成贴合生态的 Dependabot 配置;存在 bun.lock 时包含 Bun",
33
+ "将生成的工作流与已有文件智能合并,而非盲目覆盖",
34
+ "为 Vercel、Netlify、Firebase、GitHub Pages、AWS、Azure、Heroku、Render、Railway 等生成部署流水线",
35
+ "内置工作流审计与升级命令",
36
+ "通过 index.d.ts 支持类型化的 cistack.config.js",
37
+ "具备自动化回归测试,覆盖分支、发布、智能合并、monorepo 脚本与 CLI 冒烟测试"
38
+ ]
39
+ },
40
+ "install": {
41
+ "title": "安装",
42
+ "quick_command": "快速安装",
43
+ "node_note": "cistack 支持 Node.js 16+;项目在 GitHub Actions 中持续针对 Node.js 18、20、22 验证。"
44
+ },
45
+ "cli": {
46
+ "section_title": "CLI 用法",
47
+ "items": [
48
+ {
49
+ "title": "生成工作流",
50
+ "paragraphs": [
51
+ "generate 为默认命令,npx cistack 与 npx cistack generate 均可使用。",
52
+ "常用选项:"
53
+ ],
54
+ "snippets": [
55
+ "npx cistack",
56
+ "npx cistack generate",
57
+ "npx cistack generate --path /path/to/project",
58
+ "npx cistack generate --dry-run",
59
+ "npx cistack generate --explain",
60
+ "npx cistack generate --output .github/workflows",
61
+ "npx cistack generate --no-prompt"
62
+ ]
63
+ },
64
+ {
65
+ "title": "审计已有工作流",
66
+ "paragraphs": [
67
+ "检查已生成的工作流目录:并发块缺失、过时的 action、旧版 Node、依赖缓存缺失等。若在 cistack.config.js 中设置了 outputDir,audit 与 upgrade 也会使用该目录。"
68
+ ],
69
+ "snippets": ["npx cistack audit"]
70
+ },
71
+ {
72
+ "title": "升级工作流中的 Actions",
73
+ "paragraphs": [
74
+ "将已知的 GitHub Actions 更新到当前支持的最新稳定版本。"
75
+ ],
76
+ "snippets": ["npx cistack upgrade", "npx cistack upgrade --dry-run"]
77
+ },
78
+ {
79
+ "title": "创建入门配置",
80
+ "paragraphs": [
81
+ "写入 cistack.config.js,包含支持的覆盖项键名。"
82
+ ],
83
+ "snippets": ["npx cistack init"]
84
+ }
85
+ ]
86
+ },
87
+ "generated": {
88
+ "section_title": "会生成什么",
89
+ "items": [
90
+ {
91
+ "title": "pipeline.yml",
92
+ "paragraphs": [
93
+ "默认情况下,cistack 生成单个 GitHub Actions 工作流,将 CI、部署、Docker 与发布任务合并在一处,便于团队在同一文件中跟踪整条流水线。",
94
+ "在检测到相应栈时会包含 lint、测试、构建、E2E、部署、Docker 与发布任务;使用检测到的默认分支或你配置的分支;在同一文件中保留预览部署与发布任务;并在文件头注明所需密钥。"
95
+ ],
96
+ "snippets": []
97
+ },
98
+ {
99
+ "title": "dependabot.yml",
100
+ "paragraphs": [
101
+ "Dependabot 仍为独立文件 .github/dependabot.yml,因为它不是 GitHub Actions 工作流。",
102
+ "若要在 Dependabot 拉取请求上做预览部署,请同时将部署凭据配置为 Dependabot 密钥,而不仅是 Actions 密钥。Vercel 需要 VERCEL_TOKEN、VERCEL_ORG_ID、VERCEL_PROJECT_ID。"
103
+ ],
104
+ "snippets": []
105
+ },
106
+ {
107
+ "title": "拆分模式",
108
+ "paragraphs": [
109
+ "若偏好旧的多文件布局,可在 cistack.config.js 中将 workflowLayout 设为 split。拆分模式下,cistack 会再次分别写入 ci.yml、deploy.yml、docker.yml 与 release.yml。"
110
+ ],
111
+ "snippets": [
112
+ "module.exports = {\n workflowLayout: 'split',\n};"
113
+ ]
114
+ }
115
+ ]
116
+ },
117
+ "detection": {
118
+ "section_title": "支持的检测能力",
119
+ "hosting_title": "托管",
120
+ "hosting_tags": [
121
+ "Firebase",
122
+ "Vercel",
123
+ "Netlify",
124
+ "GitHub Pages",
125
+ "AWS",
126
+ "GCP App Engine",
127
+ "Azure",
128
+ "Heroku",
129
+ "Render",
130
+ "Railway",
131
+ "Docker"
132
+ ],
133
+ "frameworks_title": "框架",
134
+ "frameworks_tags": [
135
+ "Next.js",
136
+ "Nuxt",
137
+ "SvelteKit",
138
+ "Remix",
139
+ "Astro",
140
+ "Vite",
141
+ "React",
142
+ "Vue",
143
+ "Angular",
144
+ "Svelte",
145
+ "Gatsby",
146
+ "Express",
147
+ "Fastify",
148
+ "NestJS",
149
+ "Hono",
150
+ "Koa",
151
+ "Django",
152
+ "Flask",
153
+ "FastAPI",
154
+ "Rails",
155
+ "Spring Boot",
156
+ "Laravel",
157
+ "Go",
158
+ "Rust"
159
+ ],
160
+ "testing_title": "测试工具",
161
+ "testing_tags": [
162
+ "Jest",
163
+ "Vitest",
164
+ "Mocha",
165
+ "Cypress",
166
+ "Playwright",
167
+ "Pytest",
168
+ "RSpec",
169
+ "Go test",
170
+ "Cargo test",
171
+ "PHPUnit",
172
+ "Maven / JUnit",
173
+ "Storybook"
174
+ ]
175
+ },
176
+ "configuration": {
177
+ "section_title": "配置",
178
+ "intro": "需要覆盖检测结果时,请创建 cistack.config.js。",
179
+ "example_caption": "示例",
180
+ "keys_title": "支持的顶层配置键",
181
+ "keys": [
182
+ "nodeVersion",
183
+ "packageManager",
184
+ "hosting",
185
+ "frameworks",
186
+ "testing",
187
+ "branches",
188
+ "workflowLayout",
189
+ "cache",
190
+ "monorepo",
191
+ "release",
192
+ "secrets",
193
+ "outputDir"
194
+ ],
195
+ "branches_title": "分支行为",
196
+ "branches": [
197
+ "若在配置中设置了 branches,cistack 将严格使用这些分支",
198
+ "否则在可用时从 Git 元数据读取仓库默认分支",
199
+ "若无法获取 Git 元数据,则按工作流类型回退到 main、master、develop 等安全默认值"
200
+ ],
201
+ "config_snippet": "/** @type {import('cistack').Config} */\nmodule.exports = {\n nodeVersion: '20',\n packageManager: 'pnpm',\n branches: ['main', 'staging'],\n workflowLayout: 'single',\n hosting: ['Vercel'],\n outputDir: '.github/workflows',\n cache: {\n npm: true,\n cargo: true,\n pip: true,\n },\n monorepo: {\n perPackage: true,\n },\n release: {\n tool: 'semantic-release',\n },\n};"
202
+ },
203
+ "secrets": {
204
+ "section_title": "密钥",
205
+ "body": "生成的部署与发布工作流会在文件顶部说明所需密钥。请在 GitHub:Settings → Secrets and variables → Actions 中添加。"
26
206
  },
27
- "docs": {
28
- "badge": "技术规范 v",
29
- "title_part1": "为一致性而设计。",
30
- "title_part2": "为速度而生成。",
31
- "description": "cistack 对您的项目目录进行深度扫描,以生成具有生产质量的 GitHub Actions YAML。它能检测您的语言、框架、测试工具和托管平台 —— 随后为您的技术栈编写最佳流水线。",
32
- "section1_id": "01 / 04",
33
- "section1_num": "01. 功能特性",
34
- "section1_title": "分析与检测",
35
- "capabilities": {
36
- "analysis": { "label": "深度代码分析", "sub": "读取 package.json、lock 文件、配置" },
37
- "detection": { "label": "智能检测", "sub": "识别 30 多种框架和 12 种语言" },
38
- "cache": { "label": "原生缓存支持", "sub": "加速 npm、pip、go、cargo 等流水线" },
39
- "preview": { "label": "PR 预览部署", "sub": "为 Vercel 和 Netlify 提供自动环境" },
40
- "audit": { "label": "工作流审计与升级", "sub": "升级 Action 版本并验证最佳实践" },
41
- "hosting": { "label": "托管平台自动探测", "sub": "AWS、Vercel、Firebase、Docker 等" },
42
- "multi_workflow": { "label": "多工作流输出", "sub": "ci.yml、deploy.yml、docker.yml、security.yml" },
43
- "security": { "label": "内置安全性", "sub": "CodeQL 检查点 + 依赖关系审计" },
44
- "monorepo": { "label": "支持 Monorepo", "sub": "Turborepo、Nx、Lerna、pnpm workspaces" },
45
- "interactive": { "label": "交互模式", "sub": "在写入文件前确认设置" },
46
- "zero_config": { "label": "零配置", "sub": "无需设置即可开箱即用" }
47
- },
48
- "section2_num": "02. 激活",
49
- "section2_title": "安装",
50
- "command_registry": "命令_注册表",
51
- "commands": {
52
- "audit": "检查工作流中是否有过时的 Action",
53
- "upgrade": "将所有 Action 升级到最新版本",
54
- "init": "创建一个覆盖配置文件"
55
- },
56
- "recommended_npx": "推荐:使用 npx 进行单次生成。",
57
- "parameters_manifest": "参数_清单",
58
- "flags": {
59
- "explain": "显示所检测到技术栈的推理过程",
60
- "path": "要扫描的目标目录路径",
61
- "output": "重新定义工作流输出目录",
62
- "dry_run": "模拟输出而不写入",
63
- "no_prompt": "跳过交互式安全检查",
64
- "verbose": "开启最大 stdout 追踪",
65
- "force": "忽略现有文件并覆盖"
66
- },
67
- "detection_logic_title": "检测逻辑",
68
- "detection_logic_desc": "基于文件系统信号的自动识别触发器。",
69
- "signal_source": "信号源:",
70
- "framework_coverage": "框架覆盖率",
71
- "testing_tools": "测试工具",
72
- "section3_num": "03. 产物",
73
- "section3_title": "生成的工作流",
74
- "workflows": {
75
- "ci": { "label": "持续集成", "desc": "在 Push/PR 时运行:代码扫描 (ESLint, TS 类型检查)、测试 (Node 版本矩阵)、构建 (生产环境) 和 E2E 测试。" },
76
- "deploy": { "label": "持续部署", "desc": "在 Main 分支触发:平台部署,并为 Vercel/Netlify 提供自动 PR 预览环境。" },
77
- "docker": { "label": "Docker 构建与推送", "desc": "在 Main/Tags 触发:通过 Docker Buildx 进行多平台构建,推送到 GHCR,并使用 GitHub Actions 缓存。" },
78
- "security": { "label": "安全审计", "desc": "在 Push/PR/每周定时运行:对检测到的语言进行依赖项分析和 CodeQL 深度审计。" }
79
- },
80
- "security_requirement": "安全要求",
81
- "encrypted_secrets": "加密密钥 (Secrets)",
82
- "add_secrets_at": "在此处添加密钥:",
83
- "section4_num": "04. 结构示例",
84
- "section4_title": "标准技术栈场景",
85
- "validated_output": "已验证输出"
207
+ "quality": {
208
+ "section_title": "开发与质量",
209
+ "intro": "项目包含针对历史上易出问题领域的回归测试:",
210
+ "items": [
211
+ "配置覆盖处理",
212
+ "默认分支检测",
213
+ "部署分支选择",
214
+ "Netlify 生产分支",
215
+ "智能合并行为",
216
+ "monorepo 按包查找构建脚本",
217
+ "发布配置检测",
218
+ "发布工作流生成",
219
+ "CLI dry-run 冒烟测试"
220
+ ],
221
+ "commands_title": "在本地运行检查",
222
+ "commands": [
223
+ "npm test",
224
+ "npm run test:smoke",
225
+ "node bin/ciflow.js audit --path .",
226
+ "node bin/ciflow.js upgrade --path . --dry-run"
227
+ ],
228
+ "repo_note": "使用已发布的 npm 包时,可执行文件名为 cistack。在 cistack 源码仓库中,本地入口为 bin/ciflow.js。"
86
229
  },
87
230
  "footer": {
88
- "project_origin": "项目_起源",
89
- "architected_by": "架构设计",
90
- "status": "状态",
91
- "operational": "所有系统运行正常",
92
- "license": "许可证",
93
- "open_source": "开源项目",
94
- "footer_desc": "为现代 Web 设计的自动化 CI/CD 基础设施生成。为重视部署流水线透明度与安全性的开发者精准打造。",
95
- "global_install": "全局_安装",
96
- "copyright": "CISTACK ENGINE — 全体流水线已具象化。"
231
+ "license": "MIT 许可证",
232
+ "tagline": "从你已有的仓库生成 CI/CD 工作流。",
233
+ "architect_credit": "作者",
234
+ "architect_name": "Edwin Vakayil",
235
+ "copyright_suffix": "cistack。在适用范围内保留所有权利。"
97
236
  },
98
237
  "install_toggle": {
99
238
  "recommended": "推荐",
100
239
  "npm_global": "npm install -g",
101
240
  "recommended_badge": "推荐",
102
241
  "global_badge": "全局",
103
- "npx_desc": "始终获取最新版本。无需安装步骤。",
104
- "npm_desc": "适合在多个仓库中频繁使用的开发者。"
242
+ "npx_desc": "始终拉取最新版本,无需全局安装。",
243
+ "npm_desc": "在多个仓库中使用时更合适。"
105
244
  },
106
245
  "terminal": {
107
246
  "label": "终端",
108
- "mission": "核心_使命 // L_02",
109
- "project_scanned": "✔ 项目已扫描",
110
- "stack_detected": "✔ 技术栈已检测",
111
- "detected_stack": "检测到的技术栈",
247
+ "mission": "核心任务 // L_02",
248
+ "project_scanned": "✔ 已扫描项目",
249
+ "stack_detected": "✔ 已识别技术栈",
250
+ "detected_stack": "识别的技术栈",
112
251
  "languages": "语言:",
113
252
  "frameworks": "框架:",
114
253
  "hosting": "托管:",
115
254
  "testing": "测试:",
116
255
  "release_tool": "发布工具:",
117
- "look_correct": "? 是否正确?按此设置生成流水线?是",
256
+ "look_correct": "是否正确?使用这些设置生成流水线?是",
118
257
  "generated_workflows": "✔ 已生成 3 个 CI 工作流",
119
258
  "smart_merged": "↻ 智能合并:ci.yml",
120
- "updated_on": "更新了顶级 \"on\" 配置",
121
- "updated_concurrency": "更新了顶级 \"concurrency\" 配置",
122
- "added_lint": "添加了 \"lint\" 任务",
123
- "updated_build": "任务 \"build\" → 更新了名称",
124
- "updated_needs": "任务 \"build\" → 更新了依赖 (needs)",
125
- "added_checkout": "任务 \"build\" → 添加了 \"获取代码\" 步骤",
126
- "added_node": "任务 \"build\" → 添加了 \"设置 Node.js\" 步骤",
127
- "updated_step_build": "任务 \"build\" → 更新了 \"构建\" 步骤",
128
- "added_upload": "任务 \"build\" → 添加了 \"上传构建产物\" 步骤",
259
+ "updated_on": "已更新顶层 \"on\"",
260
+ "updated_concurrency": "已更新顶层 \"concurrency\"",
261
+ "added_lint": "已添加任务 \"lint\"",
262
+ "updated_build": "任务 \"build\" → 已更新 \"name\"",
263
+ "updated_needs": "任务 \"build\" → 已更新 \"needs\"",
264
+ "added_checkout": "任务 \"build\" → 已添加步骤 \"Checkout code\"",
265
+ "added_node": "任务 \"build\" → 已添加步骤 \"Set up Node.js\"",
266
+ "updated_step_build": "任务 \"build\" → 已更新步骤 \"Build\"",
267
+ "added_upload": "任务 \"build\" → 已添加步骤 \"Upload build artifact\"",
129
268
  "written_deploy": "已写入: deploy.yml",
130
269
  "written_security": "已写入: security.yml",
131
270
  "written_dependabot": "已写入: .github/dependabot.yml",
132
- "done_msg": "搞定!您的 GitHub Actions 流水线已准备就绪。",
133
- "workflows_path": "工作流路径 → cistack/.github/workflows",
134
- "dependabot_path": "Dependabot 路径 → cistack/.github/dependabot.yml",
135
- "processing": "正在处理输出..."
271
+ "done_msg": "完成!你的 GitHub Actions 流水线已就绪。",
272
+ "workflows_path": "工作流 → cistack/.github/workflows",
273
+ "dependabot_path": "Dependabot → cistack/.github/dependabot.yml",
274
+ "processing": "正在处理输出…"
136
275
  }
137
276
  }