@akjamie/agentic-sdlc 1.6.0 → 1.6.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akjamie/agentic-sdlc",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Enterprise Agentic SDLC governance CLI: a 7-stage spec-driven flow on top of OpenSpec + Graphify, enforced by CI.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,5 +1,5 @@
1
1
  export const HARNESS_RULES_VERSION = '2026.10.0';
2
- export const ENGINE_VERSION = '1.6.0';
2
+ export const ENGINE_VERSION = '1.6.1';
3
3
 
4
4
  export const RISK_LEVELS = {
5
5
  L0: 'L0',
@@ -42,8 +42,8 @@ export function doctor(opts = {}) {
42
42
  let hasRouting = false;
43
43
  let detectedTools = [];
44
44
 
45
- // If in global mode or not in a repository workspace, check global skills and skip repo-specific checks
46
- if (isGlobal || (!isRepo && !hasProject)) {
45
+ // If in global mode or not in an actual git repository workspace, check global skills and skip repo-specific checks
46
+ if (isGlobal || !isRepo) {
47
47
  const globalSkills = path.join(process.env.HOME || process.env.USERPROFILE || '', '.agents', 'skills');
48
48
  const hasGlobalSkills = exists(globalSkills);
49
49
  add('global skills (~/.agents)', hasGlobalSkills ? 'pass' : 'warn', hasGlobalSkills ? 'installed' : 'run `asdlc skills install --global`');
@@ -20,9 +20,12 @@ export function upgradeAsdlc() {
20
20
  log.step('upgrading asdlc CLI...');
21
21
  try {
22
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;
23
+ const res = spawnSync(`npm install -g ${pkgSpec}`, { shell: true, stdio: 'inherit' });
24
+ if (res.status === 0) {
25
+ log.ok('asdlc CLI upgraded to latest');
26
+ return true;
27
+ }
28
+ throw new Error(res.error ? res.error.message : `npm exited with status ${res.status}`);
26
29
  } catch (err) {
27
30
  log.warn(`asdlc upgrade via npm failed: ${err.message}`);
28
31
  log.info('💡 [FALLBACK] If automatic upgrade failed, run manually:');
@@ -47,12 +50,16 @@ export function upgradeSkills(repoRoot) {
47
50
  export function upgradeOpenspec() {
48
51
  log.step('upgrading openspec...');
49
52
  try {
50
- execFileSync('npm', ['install', '-g', '@fission-ai/openspec@latest'], { stdio: 'inherit' });
51
- log.ok('openspec upgraded to latest');
53
+ const res = spawnSync('npm install -g @fission-ai/openspec@latest', { shell: true, stdio: 'inherit' });
54
+ if (res.status === 0) {
55
+ log.ok('openspec upgraded to latest');
56
+ return true;
57
+ }
58
+ log.info(`note: global openspec install skipped (exit ${res.status}); asdlc bundles OpenSpec natively`);
52
59
  return true;
53
60
  } catch (err) {
54
- log.warn(`openspec upgrade failed: ${err.message}`);
55
- return false;
61
+ log.info(`note: global openspec install skipped (${err.message}); asdlc bundles OpenSpec natively`);
62
+ return true;
56
63
  }
57
64
  }
58
65
 
@@ -64,9 +71,17 @@ export function upgradeGraphify() {
64
71
 
65
72
  if (viaUv) {
66
73
  try {
67
- execFileSync('uv', ['tool', 'install', '--upgrade', 'graphifyy'], { stdio: 'inherit' });
68
- log.ok('graphify upgraded via uv');
69
- return true;
74
+ // Prefer Python <3.14 to use pre-built wheels for tree-sitter, avoiding source compilation failure on experimental Pythons (e.g. 3.15)
75
+ const res = spawnSync('uv tool install --upgrade --python "<3.14" graphifyy', { shell: true, stdio: 'inherit' });
76
+ if (res.status === 0) {
77
+ log.ok('graphify upgraded via uv');
78
+ return true;
79
+ }
80
+ const resFallback = spawnSync('uv tool install --upgrade graphifyy', { shell: true, stdio: 'inherit' });
81
+ if (resFallback.status === 0) {
82
+ log.ok('graphify upgraded via uv');
83
+ return true;
84
+ }
70
85
  } catch {
71
86
  // fallback
72
87
  }
@@ -74,9 +89,11 @@ export function upgradeGraphify() {
74
89
 
75
90
  if (viaPipx) {
76
91
  try {
77
- execFileSync('pipx', ['install', '--upgrade', 'graphifyy'], { stdio: 'inherit' });
78
- log.ok('graphify upgraded via pipx');
79
- return true;
92
+ const res = spawnSync('pipx install --upgrade graphifyy', { shell: true, stdio: 'inherit' });
93
+ if (res.status === 0) {
94
+ log.ok('graphify upgraded via pipx');
95
+ return true;
96
+ }
80
97
  } catch {
81
98
  // fallback
82
99
  }
@@ -84,19 +101,23 @@ export function upgradeGraphify() {
84
101
 
85
102
  if (viaPip) {
86
103
  try {
87
- execFileSync('pip', ['install', '--upgrade', 'graphifyy'], { stdio: 'inherit' });
88
- log.ok('graphify upgraded via pip');
89
- return true;
90
- } catch (err) {
104
+ const res = spawnSync('pip install --upgrade graphifyy', { shell: true, stdio: 'inherit' });
105
+ if (res.status === 0) {
106
+ log.ok('graphify upgraded via pip');
107
+ return true;
108
+ }
91
109
  // 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' });
110
+ const resBreak = spawnSync('pip install --upgrade graphifyy --break-system-packages', { shell: true, stdio: 'inherit' });
111
+ if (resBreak.status === 0) {
94
112
  log.ok('graphify upgraded via pip (--break-system-packages)');
95
113
  return true;
96
- } catch (err2) {
97
- log.warn(`graphify upgrade via pip failed: ${err2.message}`);
98
- return false;
99
114
  }
115
+ throw new Error(`pip install exited with code ${resBreak.status}`);
116
+ } catch (err2) {
117
+ log.warn(`graphify upgrade via pip failed: ${err2.message}`);
118
+ log.info('💡 [HINT] If wheel build fails for tree-sitter on Python >=3.14, install with uv using Python 3.12:');
119
+ log.info(' uv tool install --python 3.12 graphifyy');
120
+ return false;
100
121
  }
101
122
  }
102
123
 
@@ -127,6 +148,7 @@ export function runUpgrade(opts = {}) {
127
148
  log.info('');
128
149
 
129
150
  const repoRoot = opts.global ? null : resolveRepoRoot(opts);
151
+ const isGit = repoRoot ? exists(path.join(repoRoot, '.git')) : false;
130
152
 
131
153
  if (opts.asdlc !== false) upgradeAsdlc();
132
154
  if (opts.openspec !== false) upgradeOpenspec();
@@ -134,9 +156,9 @@ export function runUpgrade(opts = {}) {
134
156
  if (opts.schema !== false) upgradeSchema();
135
157
 
136
158
  if (opts.skills !== false) {
137
- if (opts.global) {
159
+ if (opts.global || !isGit) {
138
160
  installGlobalSkills(opts);
139
- } else if (repoRoot) {
161
+ } else {
140
162
  if (exists(openspecDir(repoRoot))) {
141
163
  updateRepo({ repoRoot, ...opts });
142
164
  } else {
@@ -151,7 +173,7 @@ export function runUpgrade(opts = {}) {
151
173
  if (opts.doctor !== false) {
152
174
  log.info('');
153
175
  log.info('=== Post-upgrade Health Check (doctor) ===');
154
- return doctor(repoRoot ? { repoRoot } : {});
176
+ return doctor(isGit && repoRoot ? { repoRoot } : { global: true });
155
177
  }
156
178
 
157
179
  return 0;
@@ -40,7 +40,7 @@ export function ensureGraphify({ autoInstall = true, env = process.env } = {}) {
40
40
  if (!viaUv && !viaPip) return { installed: false, action: 'missing-installer' };
41
41
 
42
42
  const cmd = viaUv
43
- ? ['uv', 'tool', 'install', '--upgrade', ...(mirrorUrl ? ['--index-url', mirrorUrl] : []), 'graphifyy']
43
+ ? ['uv', 'tool', 'install', '--upgrade', '--python', '<3.14', ...(mirrorUrl ? ['--index-url', mirrorUrl] : []), 'graphifyy']
44
44
  : ['pip', 'install', ...(mirrorUrl ? ['--index-url', mirrorUrl] : []), 'graphifyy'];
45
45
  try {
46
46
  execFileSync(cmd[0], cmd.slice(1), { encoding: 'utf8', stdio: 'pipe', env, timeout: 45000 });