@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 +1 -1
- package/src/assess/rules/builtin.js +1 -1
- package/src/commands/doctor.js +2 -2
- package/src/commands/upgrade.js +47 -25
- package/src/lib/graphify.js +1 -1
package/package.json
CHANGED
package/src/commands/doctor.js
CHANGED
|
@@ -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
|
|
46
|
-
if (isGlobal ||
|
|
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`');
|
package/src/commands/upgrade.js
CHANGED
|
@@ -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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
|
|
51
|
-
|
|
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.
|
|
55
|
-
return
|
|
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
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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
|
-
|
|
93
|
-
|
|
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
|
|
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;
|
package/src/lib/graphify.js
CHANGED
|
@@ -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 });
|