@chenmk/superflow 0.1.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.
- package/INSTALL.en.md +106 -0
- package/INSTALL.md +664 -0
- package/LICENSE +21 -0
- package/README.md +142 -0
- package/README.zh-CN.md +117 -0
- package/assets/context-templates/business-rules.md +98 -0
- package/assets/context-templates/decisions.md +153 -0
- package/assets/context-templates/external-systems.md +166 -0
- package/assets/context-templates/incidents.md +89 -0
- package/assets/manifest.json +53 -0
- package/assets/prompts/superflow-archive.md +9 -0
- package/assets/prompts/superflow-clarify.md +10 -0
- package/assets/prompts/superflow-design.md +10 -0
- package/assets/prompts/superflow-docs.md +10 -0
- package/assets/prompts/superflow-implement.md +10 -0
- package/assets/prompts/superflow-pipeline.md +13 -0
- package/assets/prompts/superflow-verify.md +10 -0
- package/assets/rules/superflow-phase-guard.md +50 -0
- package/assets/scripts/claude-auto-backup-hook.sh +313 -0
- package/assets/scripts/codex-auto-backup-hook.sh +361 -0
- package/assets/scripts/install-sql-pre-commit.sh +44 -0
- package/assets/scripts/superflow-contract-hooks.sh +744 -0
- package/assets/scripts/superflow-delivery-check.sh +315 -0
- package/assets/scripts/superflow-dependency-update-hook.sh +161 -0
- package/assets/scripts/superflow-enforce-hook.sh +70 -0
- package/assets/scripts/superflow-hook-guard.sh +132 -0
- package/assets/scripts/superflow-integration-evidence-hook.sh +80 -0
- package/assets/scripts/superflow-sql-sync-hook.py +950 -0
- package/assets/scripts/superflow-test-report-lint.py +433 -0
- package/assets/scripts/superflow-verify-integration.sh +90 -0
- package/assets/scripts/sync-settings-json.py +52 -0
- package/assets/skills/api-doc-changelog/SKILL.md +193 -0
- package/assets/skills/openspec-apply-change/SKILL.md +156 -0
- package/assets/skills/openspec-archive-change/SKILL.md +114 -0
- package/assets/skills/openspec-explore/SKILL.md +288 -0
- package/assets/skills/openspec-propose/SKILL.md +110 -0
- package/assets/skills/superflow-archive/SKILL.md +61 -0
- package/assets/skills/superflow-clarify/SKILL.md +146 -0
- package/assets/skills/superflow-clarify/agents/openai.yaml +4 -0
- package/assets/skills/superflow-design/SKILL.md +83 -0
- package/assets/skills/superflow-design/agents/openai.yaml +4 -0
- package/assets/skills/superflow-docs/SKILL.md +316 -0
- package/assets/skills/superflow-docs/agents/openai.yaml +4 -0
- package/assets/skills/superflow-hotfix/SKILL.md +48 -0
- package/assets/skills/superflow-implement/SKILL.md +461 -0
- package/assets/skills/superflow-implement/agents/openai.yaml +4 -0
- package/assets/skills/superflow-pipeline/SKILL.md +844 -0
- package/assets/skills/superflow-pipeline/agents/openai.yaml +4 -0
- package/assets/skills/superflow-pipeline/references/api-design-template.md +431 -0
- package/assets/skills/superflow-pipeline/references/architecture-design-template.md +119 -0
- package/assets/skills/superflow-pipeline/references/batch-prompt-template.md +536 -0
- package/assets/skills/superflow-pipeline/references/batch-split-guide.md +140 -0
- package/assets/skills/superflow-pipeline/references/decision-point.md +30 -0
- package/assets/skills/superflow-pipeline/references/dirty-worktree.md +35 -0
- package/assets/skills/superflow-pipeline/references/document-templates.md +123 -0
- package/assets/skills/superflow-pipeline/references/feature-gated-workflow.md +124 -0
- package/assets/skills/superflow-pipeline/references/implementation-prompt-template.md +1056 -0
- package/assets/skills/superflow-pipeline/references/mock-strategy-guide.md +86 -0
- package/assets/skills/superflow-pipeline/references/openspec-format.md +57 -0
- package/assets/skills/superflow-pipeline/references/orchestration.md +639 -0
- package/assets/skills/superflow-pipeline/references/p0-baseline-template.md +174 -0
- package/assets/skills/superflow-pipeline/references/project-config.md +40 -0
- package/assets/skills/superflow-pipeline/references/prompt-usage-template.md +152 -0
- package/assets/skills/superflow-pipeline/references/quality-gate.md +299 -0
- package/assets/skills/superflow-pipeline/references/quality-standards.md +190 -0
- package/assets/skills/superflow-pipeline/references/reviewer-checklist.md +154 -0
- package/assets/skills/superflow-pipeline/references/sql-risk-review-checklist.md +323 -0
- package/assets/skills/superflow-pipeline/references/subagent-progress.md +90 -0
- package/assets/skills/superflow-pipeline/references/superpower-technical-design-template.md +125 -0
- package/assets/skills/superflow-pipeline/references/test-execution-template.md +220 -0
- package/assets/skills/superflow-pipeline/references/test-guide.md +30 -0
- package/assets/skills/superflow-pipeline/references/traceability-matrix.md +106 -0
- package/assets/skills/superflow-pipeline/references/validation-integrity.md +134 -0
- package/assets/skills/superflow-pipeline/scripts/superflow-archive.sh +178 -0
- package/assets/skills/superflow-pipeline/scripts/superflow-env.sh +118 -0
- package/assets/skills/superflow-pipeline/scripts/superflow-guard.sh +428 -0
- package/assets/skills/superflow-pipeline/scripts/superflow-handoff.sh +296 -0
- package/assets/skills/superflow-pipeline/scripts/superflow-state.sh +574 -0
- package/assets/skills/superflow-pipeline/scripts/superflow-status.sh +172 -0
- package/assets/skills/superflow-pipeline/scripts/superflow-yaml-validate.sh +138 -0
- package/assets/skills/superflow-table-impact-analysis/SKILL.md +77 -0
- package/assets/skills/superflow-tweak/SKILL.md +46 -0
- package/assets/skills/superflow-verify/SKILL.md +112 -0
- package/assets/skills-en/api-doc-changelog/SKILL.md +193 -0
- package/assets/skills-en/openspec-apply-change/SKILL.md +156 -0
- package/assets/skills-en/openspec-archive-change/SKILL.md +114 -0
- package/assets/skills-en/openspec-explore/SKILL.md +288 -0
- package/assets/skills-en/openspec-propose/SKILL.md +110 -0
- package/assets/skills-en/superflow-archive/SKILL.md +61 -0
- package/assets/skills-en/superflow-clarify/SKILL.md +146 -0
- package/assets/skills-en/superflow-clarify/agents/openai.yaml +4 -0
- package/assets/skills-en/superflow-design/SKILL.md +83 -0
- package/assets/skills-en/superflow-design/agents/openai.yaml +4 -0
- package/assets/skills-en/superflow-docs/SKILL.md +316 -0
- package/assets/skills-en/superflow-docs/agents/openai.yaml +4 -0
- package/assets/skills-en/superflow-hotfix/SKILL.md +48 -0
- package/assets/skills-en/superflow-implement/SKILL.md +461 -0
- package/assets/skills-en/superflow-implement/agents/openai.yaml +4 -0
- package/assets/skills-en/superflow-pipeline/SKILL.md +844 -0
- package/assets/skills-en/superflow-pipeline/agents/openai.yaml +4 -0
- package/assets/skills-en/superflow-pipeline/references/api-design-template.md +431 -0
- package/assets/skills-en/superflow-pipeline/references/architecture-design-template.md +119 -0
- package/assets/skills-en/superflow-pipeline/references/batch-prompt-template.md +536 -0
- package/assets/skills-en/superflow-pipeline/references/batch-split-guide.md +140 -0
- package/assets/skills-en/superflow-pipeline/references/decision-point.md +30 -0
- package/assets/skills-en/superflow-pipeline/references/dirty-worktree.md +35 -0
- package/assets/skills-en/superflow-pipeline/references/document-templates.md +123 -0
- package/assets/skills-en/superflow-pipeline/references/feature-gated-workflow.md +124 -0
- package/assets/skills-en/superflow-pipeline/references/implementation-prompt-template.md +1056 -0
- package/assets/skills-en/superflow-pipeline/references/mock-strategy-guide.md +86 -0
- package/assets/skills-en/superflow-pipeline/references/openspec-format.md +57 -0
- package/assets/skills-en/superflow-pipeline/references/orchestration.md +639 -0
- package/assets/skills-en/superflow-pipeline/references/p0-baseline-template.md +174 -0
- package/assets/skills-en/superflow-pipeline/references/project-config.md +40 -0
- package/assets/skills-en/superflow-pipeline/references/prompt-usage-template.md +152 -0
- package/assets/skills-en/superflow-pipeline/references/quality-gate.md +299 -0
- package/assets/skills-en/superflow-pipeline/references/quality-standards.md +190 -0
- package/assets/skills-en/superflow-pipeline/references/reviewer-checklist.md +154 -0
- package/assets/skills-en/superflow-pipeline/references/sql-risk-review-checklist.md +323 -0
- package/assets/skills-en/superflow-pipeline/references/subagent-progress.md +90 -0
- package/assets/skills-en/superflow-pipeline/references/superpower-technical-design-template.md +125 -0
- package/assets/skills-en/superflow-pipeline/references/test-execution-template.md +220 -0
- package/assets/skills-en/superflow-pipeline/references/test-guide.md +30 -0
- package/assets/skills-en/superflow-pipeline/references/traceability-matrix.md +106 -0
- package/assets/skills-en/superflow-pipeline/references/validation-integrity.md +134 -0
- package/assets/skills-en/superflow-pipeline/scripts/superflow-archive.sh +178 -0
- package/assets/skills-en/superflow-pipeline/scripts/superflow-env.sh +118 -0
- package/assets/skills-en/superflow-pipeline/scripts/superflow-guard.sh +428 -0
- package/assets/skills-en/superflow-pipeline/scripts/superflow-handoff.sh +296 -0
- package/assets/skills-en/superflow-pipeline/scripts/superflow-state.sh +574 -0
- package/assets/skills-en/superflow-pipeline/scripts/superflow-status.sh +172 -0
- package/assets/skills-en/superflow-pipeline/scripts/superflow-yaml-validate.sh +138 -0
- package/assets/skills-en/superflow-table-impact-analysis/SKILL.md +77 -0
- package/assets/skills-en/superflow-tweak/SKILL.md +46 -0
- package/assets/skills-en/superflow-verify/SKILL.md +112 -0
- package/dist/cli/index.js +186 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/commands/archive.js +6 -0
- package/dist/commands/archive.js.map +1 -0
- package/dist/commands/clarify.js +6 -0
- package/dist/commands/clarify.js.map +1 -0
- package/dist/commands/design.js +6 -0
- package/dist/commands/design.js.map +1 -0
- package/dist/commands/docs.js +6 -0
- package/dist/commands/docs.js.map +1 -0
- package/dist/commands/doctor.js +473 -0
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/implement.js +6 -0
- package/dist/commands/implement.js.map +1 -0
- package/dist/commands/init.js +471 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/pipeline.js +6 -0
- package/dist/commands/pipeline.js.map +1 -0
- package/dist/commands/scan.js +59 -0
- package/dist/commands/scan.js.map +1 -0
- package/dist/commands/status.js +173 -0
- package/dist/commands/status.js.map +1 -0
- package/dist/commands/uninstall.js +213 -0
- package/dist/commands/uninstall.js.map +1 -0
- package/dist/commands/update.js +187 -0
- package/dist/commands/update.js.map +1 -0
- package/dist/commands/verify.js +6 -0
- package/dist/commands/verify.js.map +1 -0
- package/dist/core/assets.js +27 -0
- package/dist/core/assets.js.map +1 -0
- package/dist/core/context.js +100 -0
- package/dist/core/context.js.map +1 -0
- package/dist/core/dependencies.js +146 -0
- package/dist/core/dependencies.js.map +1 -0
- package/dist/core/detect.js +71 -0
- package/dist/core/detect.js.map +1 -0
- package/dist/core/i18n.js +103 -0
- package/dist/core/i18n.js.map +1 -0
- package/dist/core/integrity.js +46 -0
- package/dist/core/integrity.js.map +1 -0
- package/dist/core/manifest.js +18 -0
- package/dist/core/manifest.js.map +1 -0
- package/dist/core/prompts.js +20 -0
- package/dist/core/prompts.js.map +1 -0
- package/dist/core/registry.js +134 -0
- package/dist/core/registry.js.map +1 -0
- package/dist/core/rules.js +17 -0
- package/dist/core/rules.js.map +1 -0
- package/dist/core/scripts.js +40 -0
- package/dist/core/scripts.js.map +1 -0
- package/dist/core/skill-check.js +31 -0
- package/dist/core/skill-check.js.map +1 -0
- package/dist/core/skills.js +56 -0
- package/dist/core/skills.js.map +1 -0
- package/dist/core/state.js +43 -0
- package/dist/core/state.js.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/path.js +11 -0
- package/dist/utils/path.js.map +1 -0
- package/dist/utils/shell.js +29 -0
- package/dist/utils/shell.js.map +1 -0
- package/package.json +60 -0
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { Command } from 'commander';
|
|
3
|
+
import { readFileSync } from 'fs';
|
|
4
|
+
import { fileURLToPath } from 'url';
|
|
5
|
+
import { dirname, join } from 'path';
|
|
6
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
7
|
+
const __dirname = dirname(__filename);
|
|
8
|
+
const pkgPath = join(__dirname, '..', '..', 'package.json');
|
|
9
|
+
const pkg = JSON.parse(readFileSync(pkgPath, 'utf-8'));
|
|
10
|
+
const program = new Command();
|
|
11
|
+
function resolveTargetPathArg(value, command, commandName) {
|
|
12
|
+
if (typeof value === 'string' && value.length > 0 && value !== '.')
|
|
13
|
+
return value;
|
|
14
|
+
const args = command?.args;
|
|
15
|
+
const first = args?.[0];
|
|
16
|
+
if (typeof first === 'string' && first.length > 0)
|
|
17
|
+
return first;
|
|
18
|
+
const index = process.argv.indexOf(commandName);
|
|
19
|
+
if (index >= 0) {
|
|
20
|
+
const valueOptions = new Set([
|
|
21
|
+
'--agent',
|
|
22
|
+
'--scope',
|
|
23
|
+
]);
|
|
24
|
+
for (let i = index + 1; i < process.argv.length; i++) {
|
|
25
|
+
const arg = process.argv[i];
|
|
26
|
+
if (valueOptions.has(arg)) {
|
|
27
|
+
i++;
|
|
28
|
+
continue;
|
|
29
|
+
}
|
|
30
|
+
if (!arg.startsWith('-'))
|
|
31
|
+
return arg;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return '.';
|
|
35
|
+
}
|
|
36
|
+
function commandOptions(options) {
|
|
37
|
+
const opts = options?.opts;
|
|
38
|
+
return typeof opts === 'function' ? opts.call(options) : { ...options };
|
|
39
|
+
}
|
|
40
|
+
program
|
|
41
|
+
.name('superflow')
|
|
42
|
+
.description('SuperBridge Flow — SDD/TDD 工作流 CLI')
|
|
43
|
+
.version(pkg.version);
|
|
44
|
+
// P0 子命令
|
|
45
|
+
program
|
|
46
|
+
.command('init [targetPath]')
|
|
47
|
+
.description('一站式安装 SuperBridge Flow(detect / deps / skills / scripts / hooks / 项目扫描)')
|
|
48
|
+
.option('--dry-run', '只打印计划不执行')
|
|
49
|
+
.option('--agent <agent>', '安装目标:claude | codex | both;省略时交互多选')
|
|
50
|
+
.option('--scope <scope>', '安装作用域:global | project', 'global')
|
|
51
|
+
.option('--language <language>', '语言:en | zh;省略时交互选择')
|
|
52
|
+
.option('--yes', '非交互确认安装(当前 init 默认非交互,此选项用于脚本兼容)')
|
|
53
|
+
.option('--json', '输出 JSON 安装结果')
|
|
54
|
+
.option('--resume', '从失败步骤继续')
|
|
55
|
+
.option('--skip-existing', '已存在的 skill/script 保持不动')
|
|
56
|
+
.option('--overwrite', '已存在的 skill 直接覆盖,不额外生成 backup')
|
|
57
|
+
.option('--no-hooks', '只装技能 + 脚本,跳过 hook 注册(hook 手工配)')
|
|
58
|
+
.option('--no-openspec-init', '跳过当前项目 OpenSpec 原生初始化')
|
|
59
|
+
.option('--no-scan', '跳过 Step 7 项目扫描(脚手架 docs/sdd-context/ + understand-anything + 软提示)')
|
|
60
|
+
.action(async (targetPath, options) => {
|
|
61
|
+
const { initCommand } = await import('../commands/init.js');
|
|
62
|
+
await initCommand({
|
|
63
|
+
...commandOptions(options),
|
|
64
|
+
targetPath: resolveTargetPathArg(targetPath, options, 'init'),
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
program
|
|
68
|
+
.command('scan')
|
|
69
|
+
.description('单独重跑项目扫描(脚手架 docs/sdd-context/ + understand-anything)')
|
|
70
|
+
.option('--dry-run', '只打印计划不执行')
|
|
71
|
+
.option('--force', '覆盖现有 docs/sdd-context/ 4 文件')
|
|
72
|
+
.action(async (options) => {
|
|
73
|
+
const { scanCommand } = await import('../commands/scan.js');
|
|
74
|
+
await scanCommand(options);
|
|
75
|
+
});
|
|
76
|
+
program
|
|
77
|
+
.command('clarify [feature]')
|
|
78
|
+
.description('校验 SuperBridge Flow clarify 阶段技能部署状态')
|
|
79
|
+
.option('--agent <agent>', '校验目标:claude | codex | both', 'both')
|
|
80
|
+
.action(async (feature, options) => {
|
|
81
|
+
const { clarifyCommand } = await import('../commands/clarify.js');
|
|
82
|
+
await clarifyCommand(feature, options);
|
|
83
|
+
});
|
|
84
|
+
program
|
|
85
|
+
.command('docs [change]')
|
|
86
|
+
.description('校验 SuperBridge Flow docs 阶段技能部署状态')
|
|
87
|
+
.option('--agent <agent>', '校验目标:claude | codex | both', 'both')
|
|
88
|
+
.action(async (change, options) => {
|
|
89
|
+
const { docsCommand } = await import('../commands/docs.js');
|
|
90
|
+
await docsCommand(change, options);
|
|
91
|
+
});
|
|
92
|
+
program
|
|
93
|
+
.command('design [change]')
|
|
94
|
+
.description('校验 SuperBridge Flow design 阶段技能部署状态')
|
|
95
|
+
.option('--agent <agent>', '校验目标:claude | codex | both', 'both')
|
|
96
|
+
.action(async (change, options) => {
|
|
97
|
+
const { designCommand } = await import('../commands/design.js');
|
|
98
|
+
await designCommand(change, options);
|
|
99
|
+
});
|
|
100
|
+
program
|
|
101
|
+
.command('implement [task]')
|
|
102
|
+
.description('校验 SuperBridge Flow implement 阶段技能部署状态')
|
|
103
|
+
.option('--agent <agent>', '校验目标:claude | codex | both', 'both')
|
|
104
|
+
.action(async (task, options) => {
|
|
105
|
+
const { implementCommand } = await import('../commands/implement.js');
|
|
106
|
+
await implementCommand(task, options);
|
|
107
|
+
});
|
|
108
|
+
program
|
|
109
|
+
.command('pipeline')
|
|
110
|
+
.description('校验 SuperBridge Flow pipeline 阶段技能部署状态')
|
|
111
|
+
.option('--agent <agent>', '校验目标:claude | codex | both', 'both')
|
|
112
|
+
.action(async (options) => {
|
|
113
|
+
const { pipelineCommand } = await import('../commands/pipeline.js');
|
|
114
|
+
await pipelineCommand(options);
|
|
115
|
+
});
|
|
116
|
+
program
|
|
117
|
+
.command('verify [change]')
|
|
118
|
+
.description('校验 SuperBridge Flow verify 阶段技能部署状态')
|
|
119
|
+
.option('--agent <agent>', '校验目标:claude | codex | both', 'both')
|
|
120
|
+
.action(async (change, options) => {
|
|
121
|
+
const { verifyCommand } = await import('../commands/verify.js');
|
|
122
|
+
await verifyCommand(change, options);
|
|
123
|
+
});
|
|
124
|
+
program
|
|
125
|
+
.command('archive [change]')
|
|
126
|
+
.description('校验 SuperBridge Flow archive 阶段技能部署状态')
|
|
127
|
+
.option('--agent <agent>', '校验目标:claude | codex | both', 'both')
|
|
128
|
+
.action(async (change, options) => {
|
|
129
|
+
const { archiveCommand } = await import('../commands/archive.js');
|
|
130
|
+
await archiveCommand(change, options);
|
|
131
|
+
});
|
|
132
|
+
program
|
|
133
|
+
.command('status [path]')
|
|
134
|
+
.description('查看当前项目 active SuperBridge Flow changes 和下一步 superflow 命令')
|
|
135
|
+
.option('--json', '输出 JSON')
|
|
136
|
+
.action(async (targetPath = '.', options) => {
|
|
137
|
+
const { statusCommand } = await import('../commands/status.js');
|
|
138
|
+
await statusCommand(targetPath, options);
|
|
139
|
+
});
|
|
140
|
+
program
|
|
141
|
+
.command('update [targetPath]')
|
|
142
|
+
.description('更新已安装的 SuperBridge Flow skills、scripts 和 hooks')
|
|
143
|
+
.option('--agent <agent>', '更新目标:claude | codex | both', 'both')
|
|
144
|
+
.option('--scope <scope>', '更新作用域:auto | global | project', 'auto')
|
|
145
|
+
.option('--dry-run', '只打印计划不执行')
|
|
146
|
+
.option('--json', '输出 JSON')
|
|
147
|
+
.option('--no-hooks', '跳过 hook 重新注册')
|
|
148
|
+
.option('--with-package', '同时执行 npm update 更新 @chenmk/superflow 包')
|
|
149
|
+
.action(async (targetPath, options) => {
|
|
150
|
+
const { updateCommand } = await import('../commands/update.js');
|
|
151
|
+
await updateCommand({
|
|
152
|
+
...commandOptions(options),
|
|
153
|
+
targetPath: resolveTargetPathArg(targetPath, options, 'update'),
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
program
|
|
157
|
+
.command('doctor [targetPath]')
|
|
158
|
+
.description('诊断 SuperBridge Flow 安装健康(4 项检查)')
|
|
159
|
+
.option('--agent <agent>', '诊断目标:claude | codex | both', 'both')
|
|
160
|
+
.option('--scope <scope>', '诊断作用域:auto | global | project', 'global')
|
|
161
|
+
.option('--json', '输出 JSON')
|
|
162
|
+
.action(async (targetPath, options) => {
|
|
163
|
+
const { doctorCommand } = await import('../commands/doctor.js');
|
|
164
|
+
await doctorCommand({
|
|
165
|
+
...commandOptions(options),
|
|
166
|
+
targetPath: resolveTargetPathArg(targetPath, options, 'doctor'),
|
|
167
|
+
});
|
|
168
|
+
});
|
|
169
|
+
program
|
|
170
|
+
.command('uninstall [targetPath]')
|
|
171
|
+
.description('卸载 SuperBridge Flow 管理的技能、脚本和 hook 注册')
|
|
172
|
+
.option('--agent <agent>', '卸载目标:claude | codex | both', 'both')
|
|
173
|
+
.option('--scope <scope>', '卸载作用域:auto | global | project', 'global')
|
|
174
|
+
.option('--dry-run', '只打印计划不执行')
|
|
175
|
+
.option('--json', '输出 JSON')
|
|
176
|
+
.option('--force', '跳过确认提示(当前卸载默认非交互,此选项用于兼容脚本)')
|
|
177
|
+
.option('--with-deps', '同时卸载 OpenSpec、Superpowers、Understand 依赖')
|
|
178
|
+
.action(async (targetPath, options) => {
|
|
179
|
+
const { uninstallCommand } = await import('../commands/uninstall.js');
|
|
180
|
+
await uninstallCommand({
|
|
181
|
+
...commandOptions(options),
|
|
182
|
+
targetPath: resolveTargetPathArg(targetPath, options, 'uninstall'),
|
|
183
|
+
});
|
|
184
|
+
});
|
|
185
|
+
program.parse();
|
|
186
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAErC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AACtC,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;AAC5D,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;AAEvD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B,SAAS,oBAAoB,CAC3B,KAAc,EACd,OAAgB,EAChB,WAAmB;IAEnB,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,KAAK,KAAK,GAAG;QAAE,OAAO,KAAK,CAAC;IACjF,MAAM,IAAI,GAAI,OAA4C,EAAE,IAAI,CAAC;IACjE,MAAM,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CAAC,KAAK,UAAU,cAAc,CAClC,OAAgB,EAChB,UAA6B,EAAE;IAE/B,oBAAoB,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AAC5C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clarify.js","sourceRoot":"","sources":["../../src/commands/clarify.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAA0B,MAAM,wBAAwB,CAAC;AAEtF,MAAM,UAAU,GAAG,mBAAmB,CAAC;AAEvC,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,QAAiB,EACjB,UAA6B,EAAE;IAE/B,oBAAoB,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AAC5C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"design.js","sourceRoot":"","sources":["../../src/commands/design.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAA0B,MAAM,wBAAwB,CAAC;AAEtF,MAAM,UAAU,GAAG,kBAAkB,CAAC;AAEtC,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,OAAgB,EAChB,UAA6B,EAAE;IAE/B,oBAAoB,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AAC5C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs.js","sourceRoot":"","sources":["../../src/commands/docs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAA0B,MAAM,wBAAwB,CAAC;AAEtF,MAAM,UAAU,GAAG,gBAAgB,CAAC;AAEpC,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,OAAgB,EAChB,UAA6B,EAAE;IAE/B,oBAAoB,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AAC5C,CAAC"}
|