Skip to content

Commit 7c72e28

Browse files
fix(tasks): use npx aios-core in health-check for brownfield compat (#510)
* fix(tasks): use npx aios-core instead of node bin/aios.js in health-check In brownfield/project-dev mode, bin/aios.js doesn't exist at the project root — it's inside node_modules/aios-core/. Using npx aios-core works in both framework-dev (resolves local bin) and project-dev (resolves from node_modules/.bin/). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * test: update doctor-checks test to expect npx aios-core command Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 03cb5c2 commit 7c72e28

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

.aios-core/development/tasks/health-check.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,19 @@ instructions: |
4747
Use the Bash tool to run:
4848
4949
```bash
50-
node bin/aios.js doctor --json
50+
npx aios-core doctor --json
5151
```
5252
5353
If `--fix` was requested, run instead:
5454
5555
```bash
56-
node bin/aios.js doctor --json --fix
56+
npx aios-core doctor --json --fix
5757
```
5858
59+
NOTE: Always use `npx aios-core` (not `node bin/aios.js`) — this works in both
60+
framework-dev mode (resolves local bin) and project-dev/brownfield mode
61+
(resolves from node_modules/.bin/).
62+
5963
Capture the JSON output.
6064
6165
### Step 2: Parse JSON Output

.aios-core/install-manifest.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
# - SHA256 hashes for change detection
88
# - File types for categorization
99
#
10-
version: 4.4.2
11-
generated_at: "2026-02-25T00:37:51.384Z"
10+
version: 4.4.5
11+
generated_at: "2026-02-25T02:06:56.890Z"
1212
generator: scripts/generate-install-manifest.js
1313
file_count: 1084
1414
files:
@@ -1467,7 +1467,7 @@ files:
14671467
- path: development/scripts/code-quality-improver.js
14681468
hash: sha256:d0c844089e53dcd6c06755d4cb432a60fbebcedcf5a86ed635650573549a1941
14691469
type: script
1470-
size: 41873
1470+
size: 40545
14711471
- path: development/scripts/commit-message-generator.js
14721472
hash: sha256:2e75d22307d0e3823b7762a6aff18c4c3842a632f876069215a221bc053336dc
14731473
type: script
@@ -1567,7 +1567,7 @@ files:
15671567
- path: development/scripts/refactoring-suggester.js
15681568
hash: sha256:d50ea6b609c9cf8385979386fee4b4385d11ebcde15460260f66d04c705f6cd9
15691569
type: script
1570-
size: 36374
1570+
size: 35227
15711571
- path: development/scripts/rollback-handler.js
15721572
hash: sha256:b18a9451fa3f8919733251857dbad2bc4b7ecbf782e6c114b88bc867358421a9
15731573
type: script
@@ -2077,9 +2077,9 @@ files:
20772077
type: task
20782078
size: 3595
20792079
- path: development/tasks/health-check.yaml
2080-
hash: sha256:4aef179167c00df3aa67532727e1c5acd5b084dcd30773f4fff85393c3177578
2080+
hash: sha256:8ffa5a73284ed2ef3497000ec1b0f0be5762ea84640b6f6e7e371f611a4ea596
20812081
type: task
2082-
size: 7859
2082+
size: 8049
20832083
- path: development/tasks/ids-governor.md
20842084
hash: sha256:d1aa11f338f3f943ea7ac3f299d536ae9af0a8bad48394d893c345ab98b452fe
20852085
type: task

packages/installer/tests/unit/doctor/doctor-checks.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ describe('health-check.yaml task (INS-4.8)', () => {
588588
'utf8',
589589
);
590590
expect(yaml).toContain('aios doctor --json');
591-
expect(yaml).toContain('node bin/aios.js doctor --json');
591+
expect(yaml).toContain('npx aios-core doctor --json');
592592
});
593593

594594
it('should have governance_map with all 15 checks', () => {

0 commit comments

Comments
 (0)