Commit f949b42
* fix: expose bin/* in exports for Node 22+ compat [Story 124.13]
@aiox-squads/core 5.2.2/5.2.3/5.2.4 broke under Node 22+ with
ERR_PACKAGE_PATH_NOT_EXPORTED. The exports field introduced during
Epic 124 only exposed ./resilience/* and ./installer/*, blocking the
compat/aiox-core/bin/aiox-core.js shim from require()-ing the canonical
CLI binaries.
Fix:
- Add "./bin/*": "./bin/*" pass-through pattern to exports.
- Bump @aiox-squads/core 5.2.4 -> 5.2.5.
- Bump compat aiox-core 5.2.4 -> 5.2.5 + dependency pin.
Validated locally on Node 22.16 against packed tarballs:
- aiox --version: 5.2.5
- aiox-core --version (legacy wrapper): 5.2.5
- require('@aiox-squads/core/bin/aiox.js'): loads CLI without
ERR_PACKAGE_PATH_NOT_EXPORTED
Closes #734
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* ci: add Node 22/24 exports regression guard [Story 124.13]
The existing publish_legacy_aiox_core smoke uses npx --yes which
resolves bin shims internally and does NOT trigger Node's
package-exports gate. That gap let Issue #734
(ERR_PACKAGE_PATH_NOT_EXPORTED) slip into 3 consecutive releases
(5.2.2/.3/.4) unnoticed by CI.
Add smoke_test_exports job:
- Matrix Node 20/22/24
- Runs after publish (depends on build + publish + publish_legacy_aiox_core)
- Forces external require('@aiox-squads/core/bin/aiox.js') which DOES
trigger the exports gate
- notify job updated to surface failures
This is a regression guard, not a replacement for the existing
bin-shim smoke. Both paths are now validated.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* docs(stories): add STORY-124.13 [Story 124.13]
Story documenting Issue #734 fix:
- Root cause analysis (Story 124.8 wrapper + restrictive exports field)
- Acceptance criteria
- Tasks (impl + CI hardening + publish + deprecation)
- File list
- Dev notes including CI gap analysis (why npx smoke missed it 3 times)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix(ci,docs): address CodeRabbit review [Story 124.13]
- ci: add `set -o pipefail` to smoke_test_exports so node's non-zero
exit from require() failure isn't masked by `head -20`. Without this,
the regression guard silently passes on any future ERR_PACKAGE_PATH_
NOT_EXPORTED, defeating its purpose.
- docs: correct File List self-reference in STORY-124.13 (was pointing
to the old 124.9 filename used during draft).
CodeRabbit findings:
- Major (workflow L506): pipefail missing
- Minor (story L41): stale filename reference
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent c577250 commit f949b42
4 files changed
Lines changed: 144 additions & 6 deletions
File tree
- .github/workflows
- compat/aiox-core
- docs/stories/epic-124-aiox-squads-scope-migration
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
459 | 516 | | |
460 | | - | |
| 517 | + | |
461 | 518 | | |
462 | 519 | | |
463 | 520 | | |
464 | 521 | | |
465 | 522 | | |
466 | | - | |
| 523 | + | |
467 | 524 | | |
468 | 525 | | |
469 | 526 | | |
470 | 527 | | |
471 | | - | |
| 528 | + | |
472 | 529 | | |
473 | 530 | | |
474 | 531 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
Lines changed: 80 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
0 commit comments