@akjamie/agentic-sdlc 0.0.0-stage → 1.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.
Files changed (63) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +219 -2
  3. package/assets/ci/asdlc-ai-review.yml +65 -0
  4. package/assets/config/config.yaml +76 -0
  5. package/assets/githooks/post-merge +22 -0
  6. package/assets/githooks/pre-push +17 -0
  7. package/assets/policy/policy.yaml +46 -0
  8. package/assets/schema/schema.yaml +168 -0
  9. package/assets/schema/templates/design.md +134 -0
  10. package/assets/schema/templates/proposal.md +25 -0
  11. package/assets/schema/templates/review.md +24 -0
  12. package/assets/schema/templates/spec.md +37 -0
  13. package/assets/schema/templates/tasks.md +10 -0
  14. package/assets/skills/asdlc-apply/SKILL.md +128 -0
  15. package/assets/skills/asdlc-approve/SKILL.md +107 -0
  16. package/assets/skills/asdlc-archive/SKILL.md +49 -0
  17. package/assets/skills/asdlc-doctor/SKILL.md +82 -0
  18. package/assets/skills/asdlc-impl-review/SKILL.md +219 -0
  19. package/assets/skills/asdlc-init/SKILL.md +68 -0
  20. package/assets/skills/asdlc-lint/SKILL.md +59 -0
  21. package/assets/skills/asdlc-new/SKILL.md +107 -0
  22. package/assets/skills/asdlc-pr/SKILL.md +59 -0
  23. package/assets/skills/asdlc-review/SKILL.md +80 -0
  24. package/assets/skills/asdlc-spec-review/SKILL.md +206 -0
  25. package/assets/skills/asdlc-status/SKILL.md +49 -0
  26. package/assets/skills/asdlc-upgrade/SKILL.md +34 -0
  27. package/assets/skills/asdlc-verify/SKILL.md +55 -0
  28. package/assets/skills/batch-grill-me/SKILL.md +136 -0
  29. package/assets/skills/grilling/SKILL.md +136 -0
  30. package/bin/asdlc.js +6 -0
  31. package/package.json +43 -4
  32. package/src/cli.js +89 -0
  33. package/src/commands/apply.js +114 -0
  34. package/src/commands/approve.js +166 -0
  35. package/src/commands/archive.js +143 -0
  36. package/src/commands/doctor.js +163 -0
  37. package/src/commands/init.js +201 -0
  38. package/src/commands/lint.js +127 -0
  39. package/src/commands/new.js +171 -0
  40. package/src/commands/pr.js +495 -0
  41. package/src/commands/skills.js +184 -0
  42. package/src/commands/status.js +65 -0
  43. package/src/commands/test.js +137 -0
  44. package/src/commands/update.js +103 -0
  45. package/src/commands/upgrade.js +175 -0
  46. package/src/commands/verify.js +229 -0
  47. package/src/index.js +3 -0
  48. package/src/lib/agents.js +73 -0
  49. package/src/lib/cliutil.js +99 -0
  50. package/src/lib/errors.js +18 -0
  51. package/src/lib/exec.js +23 -0
  52. package/src/lib/fs.js +83 -0
  53. package/src/lib/git.js +76 -0
  54. package/src/lib/graphify.js +106 -0
  55. package/src/lib/log.js +15 -0
  56. package/src/lib/openspec.js +91 -0
  57. package/src/lib/paths.js +43 -0
  58. package/src/lib/policy.js +60 -0
  59. package/src/lib/prtype.js +41 -0
  60. package/src/lib/schema.js +86 -0
  61. package/src/lib/speclint.js +173 -0
  62. package/src/lib/tdd.js +71 -0
  63. package/src/lib/yaml.js +18 -0
@@ -0,0 +1,65 @@
1
+ import path from 'node:path';
2
+ import { exists, readText, walkFiles } from '../lib/fs.js';
3
+ import { changeDir } from '../lib/paths.js';
4
+ import { requireRepo, toChangeSlug } from '../lib/cliutil.js';
5
+ import { lastCommitTouching } from '../lib/git.js';
6
+ import { verdictOf } from './lint.js';
7
+ import { countUncheckedTasks } from './verify.js';
8
+ import { log } from '../lib/log.js';
9
+
10
+ // "Where am I?" for a change - a read-only view of the 7 stages from the working
11
+ // tree + git. Useful for humans and for an agent deciding the next command.
12
+ export function statusChange(changeId, opts = {}) {
13
+ const repoRoot = requireRepo(opts);
14
+ const slug = toChangeSlug(changeId);
15
+ const branch = opts.protectedBranch ?? 'origin/main';
16
+ const cdir = changeDir(repoRoot, slug);
17
+
18
+ if (!exists(cdir)) {
19
+ log.plain(`change: ${slug}`);
20
+ log.plain(' (not created)');
21
+ log.plain(`next: asdlc new ${changeId}`);
22
+ return 0;
23
+ }
24
+
25
+ const has = (f) => exists(path.join(cdir, f));
26
+ const specFiles = exists(path.join(cdir, 'specs'))
27
+ ? walkFiles(path.join(cdir, 'specs')).filter((f) => f.endsWith('spec.md')) : [];
28
+ const review = has('review.md') ? readText(path.join(cdir, 'review.md')) : null;
29
+ const verdict = review ? verdictOf(review) : null;
30
+ const locked = [`openspec/changes/${slug}/proposal.md`, `openspec/changes/${slug}/specs`];
31
+ const approvedSha = lastCommitTouching(repoRoot, branch, locked);
32
+ const unchecked = has('tasks.md') ? countUncheckedTasks(readText(path.join(cdir, 'tasks.md'))) : null;
33
+
34
+ const stage = [
35
+ ['1 explore (draft)', has('explore.md')],
36
+ ['2 proposal.md', has('proposal.md')],
37
+ ['2 spec delta', specFiles.length > 0],
38
+ ['3 spec approved on ' + branch, Boolean(approvedSha)],
39
+ ['4 tasks complete', unchecked === 0],
40
+ ];
41
+
42
+ log.plain(`change: ${slug}`);
43
+ for (const [name, ok] of stage) log.plain(` [${ok ? 'x' : ' '}] ${name}`);
44
+
45
+ let next;
46
+ if (!has('explore.md') && !has('proposal.md')) next = `asdlc new ${changeId}`;
47
+ else if (!has('proposal.md') || specFiles.length === 0) next = 'author proposal.md + specs/**';
48
+ else if (!approvedSha) next = `run: asdlc lint ${changeId} && asdlc pr ${changeId} (CI handles AI review on PR; once merged run: asdlc approve ${changeId})`;
49
+ else if (unchecked !== 0) next = `asdlc apply ${changeId}, then complete tasks in tasks.md`;
50
+ else next = `asdlc verify ${changeId}`;
51
+ log.plain('');
52
+ log.plain(`next: ${next}`);
53
+ return 0;
54
+ }
55
+
56
+ export function register(program) {
57
+ program
58
+ .command('status <changeId>')
59
+ .description('show where a change is in the 7 stages + the next command')
60
+ .option('--protected-branch <ref>', 'branch the approved spec must be merged into', 'origin/main')
61
+ .option('--repo-root <path>')
62
+ .action((changeId, opts) => {
63
+ process.exitCode = statusChange(changeId, opts);
64
+ });
65
+ }
@@ -0,0 +1,137 @@
1
+ import path from 'node:path';
2
+ import { exists, readText, walkFiles } from '../lib/fs.js';
3
+ import { changeDir } from '../lib/paths.js';
4
+ import { requireRepo, toChangeSlug } from '../lib/cliutil.js';
5
+ import { runShell } from '../lib/exec.js';
6
+ import { fail } from '../lib/errors.js';
7
+ import { log } from '../lib/log.js';
8
+
9
+ export function parseSpecAcceptanceCriteria(specText) {
10
+ const acs = [];
11
+ const lines = specText.split('\n');
12
+ let currentReq = '';
13
+
14
+ for (const line of lines) {
15
+ const reqMatch = line.match(/^###\s+Requirement:\s*(.+?)\s*$/);
16
+ if (reqMatch) {
17
+ currentReq = reqMatch[1];
18
+ continue;
19
+ }
20
+ const acMatch = line.match(/^\s*-\s*\[[ xX]\]\s*(AC\d+)\s*:\s*(.+)$/);
21
+ if (!acMatch) continue;
22
+ const testMatch = line.match(/\(test:\s*([^)]+?)\s*\)/i);
23
+ acs.push({
24
+ id: acMatch[1],
25
+ requirement: currentReq,
26
+ text: acMatch[2].replace(/\(test:.*$/i, '').trim(),
27
+ testPath: testMatch ? testMatch[1].trim() : null,
28
+ });
29
+ }
30
+ return acs;
31
+ }
32
+
33
+ export function runTests(changeId, opts = {}) {
34
+ const repoRoot = requireRepo(opts);
35
+ const slug = toChangeSlug(changeId);
36
+ const cdir = changeDir(repoRoot, slug);
37
+
38
+ if (!exists(cdir)) {
39
+ fail(`change '${slug}' not found`, { hint: 'check the change id or run `asdlc status`' });
40
+ }
41
+
42
+ const specsDir = path.join(cdir, 'specs');
43
+ if (!exists(specsDir)) {
44
+ fail(`no specs directory found for change '${slug}'`);
45
+ }
46
+
47
+ const specFiles = walkFiles(specsDir).filter((f) => f.endsWith('spec.md'));
48
+ if (specFiles.length === 0) {
49
+ fail(`no spec.md files found under specs/ for change '${slug}'`);
50
+ }
51
+
52
+ const allAcs = [];
53
+ for (const relFile of specFiles) {
54
+ const fullPath = path.join(specsDir, relFile);
55
+ const content = readText(fullPath);
56
+ const acs = parseSpecAcceptanceCriteria(content);
57
+ for (const ac of acs) {
58
+ allAcs.push({ ...ac, specFile: relFile });
59
+ }
60
+ }
61
+
62
+ if (allAcs.length === 0) {
63
+ fail(`no acceptance criteria (AC<n>) found in specs for change '${slug}'`, {
64
+ hint: 'add acceptance criteria with test mappings: - [ ] AC1: ... (test: path/to/test)',
65
+ });
66
+ }
67
+
68
+ const missingMappings = allAcs.filter((ac) => !ac.testPath);
69
+ if (missingMappings.length > 0) {
70
+ fail(`${missingMappings.length} acceptance criteria lack (test: <path>) mappings:\n` +
71
+ missingMappings.map((ac) => ` - ${ac.id}: ${ac.text}`).join('\n'));
72
+ }
73
+
74
+ const uniqueTestPaths = [...new Set(allAcs.map((ac) => ac.testPath))];
75
+ const missingFiles = uniqueTestPaths.filter((tp) => !exists(path.resolve(repoRoot, tp)));
76
+ if (missingFiles.length > 0) {
77
+ fail(`mapped test file(s) do not exist:\n` + missingFiles.map((f) => ` - ${f}`).join('\n'), {
78
+ hint: 'create test stubs or update (test: <path>) in specs',
79
+ });
80
+ }
81
+
82
+ if (!opts.json) {
83
+ log.info(`=== Running Acceptance Tests for ${slug} ===`);
84
+ log.info(`Mapped ACs: ${allAcs.length} across ${uniqueTestPaths.length} test file(s):`);
85
+ for (const ac of allAcs) {
86
+ log.info(` • [${ac.id}] ${ac.text} -> ${ac.testPath}`);
87
+ }
88
+ log.info('');
89
+ }
90
+
91
+ const runnerCmd = opts.runner ?? (process.platform === 'win32'
92
+ ? `node --test ${uniqueTestPaths.map((p) => `"${p}"`).join(' ')}`
93
+ : `node --test ${uniqueTestPaths.join(' ')}`);
94
+
95
+ const res = runShell(runnerCmd, repoRoot, {
96
+ env: { NODE_TEST_CONTEXT: undefined },
97
+ stdio: 'pipe',
98
+ });
99
+ const passed = res.status === 0;
100
+
101
+ if (opts.json) {
102
+ const output = {
103
+ changeId: slug,
104
+ pass: passed,
105
+ status: passed ? 'pass' : 'fail',
106
+ acCount: allAcs.length,
107
+ testFiles: uniqueTestPaths,
108
+ acs: allAcs,
109
+ stdout: res.stdout,
110
+ stderr: res.stderr,
111
+ };
112
+ process.stdout.write(JSON.stringify(output, null, 2) + '\n');
113
+ } else {
114
+ if (res.stdout) process.stdout.write(res.stdout);
115
+ if (res.stderr) process.stderr.write(res.stderr);
116
+
117
+ if (passed) {
118
+ log.ok(`✓ all acceptance tests passed (${allAcs.length} ACs, ${uniqueTestPaths.length} files)`);
119
+ } else {
120
+ log.error(`✗ acceptance test run failed (exit code ${res.status})`);
121
+ }
122
+ }
123
+
124
+ return passed ? 0 : 1;
125
+ }
126
+
127
+ export function register(program) {
128
+ program
129
+ .command('test <changeId>')
130
+ .description('run acceptance tests mapped from change specs (TDD & CI gate)')
131
+ .option('--json', 'output structured JSON report for CI consumption')
132
+ .option('--runner <command>', 'custom test runner command')
133
+ .option('--repo-root <path>')
134
+ .action((changeId, opts) => {
135
+ process.exitCode = runTests(changeId, opts);
136
+ });
137
+ }
@@ -0,0 +1,103 @@
1
+ import path from 'node:path';
2
+ import { exists } from '../lib/fs.js';
3
+ import { resolveRepoRoot, openspecDir, OPENSPEC_DIR } from '../lib/paths.js';
4
+ import { log } from '../lib/log.js';
5
+ import { detectTools, installSkills, installHooks } from './init.js';
6
+ import { ensureGraphify, buildGraph, ensureGitignore } from '../lib/graphify.js';
7
+ import { refreshAgents } from '../lib/agents.js';
8
+
9
+ export function updateRepo(opts = {}) {
10
+ const repoRoot = resolveRepoRoot(opts);
11
+ const isGit = exists(path.join(repoRoot, '.git'));
12
+ const isSdlc = exists(openspecDir(repoRoot));
13
+
14
+ if (!isGit) {
15
+ log.error('Not a Git repository: \'asdlc update\' must be run inside a Git repository.');
16
+ log.info('');
17
+ log.info('💡 To initialize this project for Agentic SDLC, run:');
18
+ log.info(' git init');
19
+ log.info(' asdlc init');
20
+ log.info('');
21
+ log.info('💡 To upgrade your global CLI toolchain instead, run:');
22
+ log.info(' asdlc upgrade --global');
23
+ return 1;
24
+ }
25
+
26
+ if (!isSdlc) {
27
+ log.error(`Repository not initialized for Agentic SDLC (missing '${OPENSPEC_DIR}/' directory).`);
28
+ log.info('');
29
+ log.info('💡 To set up Agentic SDLC in this repository (OpenSpec, knowledge graph, and agent skills):');
30
+ log.info(' asdlc init');
31
+ log.info('');
32
+ log.info('💡 To upgrade your global CLI toolchain instead:');
33
+ log.info(' asdlc upgrade');
34
+ return 1;
35
+ }
36
+
37
+ log.info('=== Updating Repository SDLC State ===');
38
+ log.info(`Repository: ${repoRoot}`);
39
+ log.info('');
40
+
41
+ // 1) Skills refresh
42
+ if (opts.skills !== false) {
43
+ log.step('refreshing bundled agent skills in repository...');
44
+ const tools = detectTools(repoRoot);
45
+ installSkills(repoRoot, tools);
46
+ }
47
+
48
+ // 2) Codebase AST knowledge graph (KB / graphify)
49
+ if (opts.graph !== false) {
50
+ log.step('rebuilding codebase AST knowledge graph (graphify)...');
51
+ try {
52
+ const g = ensureGraphify();
53
+ if (g.installed) {
54
+ const b = buildGraph(repoRoot);
55
+ if (b.status === 0) {
56
+ log.ok('rebuilt code knowledge graph -> graphify-out/ (bound to HEAD)');
57
+ ensureGitignore(repoRoot);
58
+ } else {
59
+ log.warn('graphify build returned non-zero status (non-fatal)');
60
+ }
61
+ } else {
62
+ log.warn('graphify not installed; skipping knowledge graph rebuild');
63
+ }
64
+ } catch (err) {
65
+ log.warn(`graphify update failed: ${err.message}`);
66
+ }
67
+ }
68
+
69
+ // 3) Agent routing layer (AGENTS.md)
70
+ log.step('refreshing AGENTS.md system status & architectural hubs...');
71
+ try {
72
+ refreshAgents(repoRoot);
73
+ log.ok('refreshed AGENTS.md system status (derived from knowledge graph)');
74
+ } catch (err) {
75
+ log.warn(`AGENTS.md refresh failed: ${err.message}`);
76
+ }
77
+
78
+ // 4) Git governance hooks
79
+ if (opts.hooks !== false) {
80
+ try {
81
+ installHooks(repoRoot);
82
+ } catch (err) {
83
+ log.warn(`git hooks refresh failed: ${err.message}`);
84
+ }
85
+ }
86
+
87
+ log.info('');
88
+ log.ok('Repository SDLC state is fully up to date.');
89
+ return 0;
90
+ }
91
+
92
+ export function register(program) {
93
+ program
94
+ .command('update')
95
+ .description('update current repository SDLC state: refresh agent skills, rebuild AST knowledge graph (KB), and sync AGENTS.md')
96
+ .option('--repo-root <path>', 'repository root (default: current repository)')
97
+ .option('--no-skills', 'skip refreshing agent skills')
98
+ .option('--no-graph', 'skip rebuilding codebase knowledge graph')
99
+ .option('--no-hooks', 'skip refreshing git hooks')
100
+ .action((opts) => {
101
+ process.exitCode = updateRepo(opts);
102
+ });
103
+ }
@@ -0,0 +1,175 @@
1
+ import path from 'node:path';
2
+ import { execFileSync, spawnSync } from 'node:child_process';
3
+ import { exists } from '../lib/fs.js';
4
+ import { resolveRepoRoot, schemaAssetDir, openspecDir } from '../lib/paths.js';
5
+ import { installSchema, builtinSchemaVersion } from '../lib/schema.js';
6
+ import { updateRepo } from './update.js';
7
+ import { doctor } from './doctor.js';
8
+ import { log } from '../lib/log.js';
9
+
10
+ import { detectTools, installSkills } from './init.js';
11
+
12
+ function which(name) {
13
+ const finder = process.platform === 'win32' ? 'where' : 'which';
14
+ const r = spawnSync(finder, [name], { encoding: 'utf8' });
15
+ if (r.status !== 0) return null;
16
+ return r.stdout.split(/\r?\n/).map((s) => s.trim()).filter(Boolean)[0] ?? null;
17
+ }
18
+
19
+ export function upgradeAsdlc() {
20
+ log.step('upgrading asdlc CLI...');
21
+ try {
22
+ const pkgSpec = process.env.ASDLC_PKG_SPEC || '@akjamie/agentic-sdlc@latest';
23
+ execFileSync('npm', ['install', '-g', pkgSpec], { stdio: 'inherit' });
24
+ log.ok('asdlc CLI upgraded to latest');
25
+ return true;
26
+ } catch (err) {
27
+ log.warn(`asdlc upgrade via npm failed: ${err.message}`);
28
+ log.info('💡 [FALLBACK] If automatic upgrade failed, run manually:');
29
+ log.info(' npm install -g --allow-git=all --force git+https://github.com/akjamie/agentic-sdlc.git');
30
+ return false;
31
+ }
32
+ }
33
+
34
+ export function upgradeSkills(repoRoot) {
35
+ log.step('refreshing bundled agent skills in repository...');
36
+ try {
37
+ const tools = detectTools(repoRoot);
38
+ installSkills(repoRoot, tools);
39
+ log.ok('refreshed bundled agent skills in repository');
40
+ return true;
41
+ } catch (err) {
42
+ log.warn(`skills refresh failed: ${err.message}`);
43
+ return false;
44
+ }
45
+ }
46
+
47
+ export function upgradeOpenspec() {
48
+ log.step('upgrading openspec...');
49
+ try {
50
+ execFileSync('npm', ['install', '-g', '@fission-ai/openspec@latest'], { stdio: 'inherit' });
51
+ log.ok('openspec upgraded to latest');
52
+ return true;
53
+ } catch (err) {
54
+ log.warn(`openspec upgrade failed: ${err.message}`);
55
+ return false;
56
+ }
57
+ }
58
+
59
+ export function upgradeGraphify() {
60
+ log.step('upgrading graphify...');
61
+ const viaUv = Boolean(which('uv'));
62
+ const viaPipx = Boolean(which('pipx'));
63
+ const viaPip = Boolean(which('pip'));
64
+
65
+ if (viaUv) {
66
+ try {
67
+ execFileSync('uv', ['tool', 'install', '--upgrade', 'graphifyy'], { stdio: 'inherit' });
68
+ log.ok('graphify upgraded via uv');
69
+ return true;
70
+ } catch {
71
+ // fallback
72
+ }
73
+ }
74
+
75
+ if (viaPipx) {
76
+ try {
77
+ execFileSync('pipx', ['install', '--upgrade', 'graphifyy'], { stdio: 'inherit' });
78
+ log.ok('graphify upgraded via pipx');
79
+ return true;
80
+ } catch {
81
+ // fallback
82
+ }
83
+ }
84
+
85
+ if (viaPip) {
86
+ try {
87
+ execFileSync('pip', ['install', '--upgrade', 'graphifyy'], { stdio: 'inherit' });
88
+ log.ok('graphify upgraded via pip');
89
+ return true;
90
+ } catch (err) {
91
+ // PEP 668 on Debian/Ubuntu externally-managed-environment: retry with --break-system-packages
92
+ try {
93
+ execFileSync('pip', ['install', '--upgrade', 'graphifyy', '--break-system-packages'], { stdio: 'inherit' });
94
+ log.ok('graphify upgraded via pip (--break-system-packages)');
95
+ return true;
96
+ } catch (err2) {
97
+ log.warn(`graphify upgrade via pip failed: ${err2.message}`);
98
+ return false;
99
+ }
100
+ }
101
+ }
102
+
103
+ log.warn('neither uv, pipx, nor pip found; please install/upgrade graphify manually');
104
+ return false;
105
+ }
106
+
107
+ export function upgradeSchema() {
108
+ log.step('refreshing BU-managed OpenSpec schema...');
109
+ try {
110
+ if (!exists(schemaAssetDir)) {
111
+ log.warn(`schema asset directory missing at ${schemaAssetDir}`);
112
+ return false;
113
+ }
114
+ const dest = installSchema();
115
+ log.ok(`refreshed schema v${builtinSchemaVersion()} -> ${dest}`);
116
+ return true;
117
+ } catch (err) {
118
+ log.warn(`schema refresh failed: ${err.message}`);
119
+ return false;
120
+ }
121
+ }
122
+
123
+ import { installGlobalSkills } from './skills.js';
124
+
125
+ export function runUpgrade(opts = {}) {
126
+ log.info('=== Upgrading Agentic SDLC Toolchain ===');
127
+ log.info('');
128
+
129
+ const repoRoot = opts.global ? null : resolveRepoRoot(opts);
130
+
131
+ if (opts.asdlc !== false) upgradeAsdlc();
132
+ if (opts.openspec !== false) upgradeOpenspec();
133
+ if (opts.graphify !== false) upgradeGraphify();
134
+ if (opts.schema !== false) upgradeSchema();
135
+
136
+ if (opts.skills !== false) {
137
+ if (opts.global) {
138
+ installGlobalSkills(opts);
139
+ } else if (repoRoot) {
140
+ if (exists(openspecDir(repoRoot))) {
141
+ updateRepo({ repoRoot, ...opts });
142
+ } else {
143
+ upgradeSkills(repoRoot);
144
+ }
145
+ }
146
+ }
147
+
148
+ log.info('');
149
+ log.ok('Toolchain upgrade complete.');
150
+
151
+ if (opts.doctor !== false) {
152
+ log.info('');
153
+ log.info('=== Post-upgrade Health Check (doctor) ===');
154
+ return doctor(repoRoot ? { repoRoot } : {});
155
+ }
156
+
157
+ return 0;
158
+ }
159
+
160
+ export function register(program) {
161
+ program
162
+ .command('upgrade')
163
+ .description('upgrade the toolchain: asdlc CLI, OpenSpec, Graphify, managed schemas, and repo or global skills')
164
+ .option('-g, --global', 'upgrade toolchain and refresh global user skills (~/.agents) for CI runners')
165
+ .option('--no-asdlc', 'skip upgrading asdlc itself')
166
+ .option('--no-openspec', 'skip upgrading openspec')
167
+ .option('--no-graphify', 'skip upgrading graphify')
168
+ .option('--no-schema', 'skip refreshing BU-managed schema')
169
+ .option('--no-skills', 'skip refreshing skills')
170
+ .option('--no-doctor', 'skip running post-upgrade doctor check')
171
+ .option('--repo-root <path>')
172
+ .action((opts) => {
173
+ process.exitCode = runUpgrade(opts);
174
+ });
175
+ }