-
-
Notifications
You must be signed in to change notification settings - Fork 937
fix: add legacy aiox-core wrapper #730
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # aiox-core compatibility package | ||
|
|
||
| `aiox-core` is the legacy npm package name for AIOX Core. | ||
|
|
||
| The canonical package is now `@aiox-squads/core`. This compatibility package | ||
| keeps existing commands such as `npx aiox-core@latest install` working by | ||
| delegating to the canonical package. | ||
|
|
||
| Recommended new command: | ||
|
|
||
| ```bash | ||
| npx -y -p @aiox-squads/core@latest aiox install | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| #!/usr/bin/env node | ||
| 'use strict'; | ||
|
|
||
| const path = require('path'); | ||
|
|
||
| const binByName = { | ||
| aiox: 'aiox.js', | ||
| 'aiox-core': 'aiox.js', | ||
| 'aiox-minimal': 'aiox-minimal.js', | ||
| 'aiox-graph': 'aiox-graph.js', | ||
| 'aiox-delegate': 'aiox-delegate.js', | ||
| }; | ||
|
|
||
| const invokedAs = path.basename(process.argv[1] || 'aiox-core'); | ||
| const targetBin = binByName[invokedAs] || 'aiox.js'; | ||
|
|
||
| require(`@aiox-squads/core/bin/${targetBin}`); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| { | ||
| "name": "aiox-core", | ||
| "version": "5.2.2", | ||
| "description": "Compatibility wrapper for @aiox-squads/core.", | ||
| "license": "MIT", | ||
| "bin": { | ||
| "aiox": "bin/aiox-core.js", | ||
| "aiox-core": "bin/aiox-core.js", | ||
| "aiox-minimal": "bin/aiox-core.js", | ||
| "aiox-graph": "bin/aiox-core.js", | ||
| "aiox-delegate": "bin/aiox-core.js" | ||
| }, | ||
| "files": [ | ||
| "bin/", | ||
| "README.md" | ||
| ], | ||
| "dependencies": { | ||
| "@aiox-squads/core": "5.2.2" | ||
| }, | ||
| "engines": { | ||
| "node": ">=18" | ||
| }, | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git+https://github.com/SynkraAI/aiox-core.git", | ||
| "directory": "compat/aiox-core" | ||
| }, | ||
| "bugs": { | ||
| "url": "https://github.com/SynkraAI/aiox-core/issues" | ||
| }, | ||
| "homepage": "https://github.com/SynkraAI/aiox-core#readme", | ||
| "publishConfig": { | ||
| "access": "public", | ||
| "registry": "https://registry.npmjs.org/" | ||
| } | ||
| } |
36 changes: 36 additions & 0 deletions
36
...es/epic-124-aiox-squads-scope-migration/STORY-124.8-legacy-aiox-core-wrapper.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| # Story 124.8: Legacy `aiox-core` Wrapper | ||
|
|
||
| ## Status | ||
|
|
||
| Ready for Review | ||
|
|
||
| ## Story | ||
|
|
||
| As an AIOX Pro student using older installation instructions, | ||
| I want `npx aiox-core@latest install` to execute the current canonical installer, | ||
| so that legacy documentation and cached support messages do not route me to stale Pro activation code. | ||
|
|
||
| ## Acceptance Criteria | ||
|
|
||
| - [x] Publishable compatibility package `aiox-core` delegates to `@aiox-squads/core`. | ||
| - [x] Legacy bins `aiox`, `aiox-core`, `aiox-minimal`, `aiox-graph`, and `aiox-delegate` are preserved. | ||
| - [x] The NPM publish workflow can publish the legacy package using the existing unscoped package token. | ||
| - [x] Local pack and smoke validation prove `npx aiox-core@latest install` will resolve to the canonical core after publish. | ||
|
|
||
| ## Tasks | ||
|
|
||
| - [x] Add a minimal legacy package outside the root workspace. | ||
| - [x] Wire the NPM workflow selection for `aiox-core`. | ||
| - [x] Validate the wrapper locally before publish. | ||
|
|
||
| ## File List | ||
|
|
||
| - `compat/aiox-core/package.json` | ||
| - `compat/aiox-core/bin/aiox-core.js` | ||
| - `compat/aiox-core/README.md` | ||
| - `.github/workflows/npm-publish.yml` | ||
| - `docs/stories/epic-124-aiox-squads-scope-migration/STORY-124.8-legacy-aiox-core-wrapper.md` | ||
|
|
||
| ## Dev Notes | ||
|
|
||
| The package intentionally lives outside `packages/*` so root workspace lockfiles do not need to change. It depends on the exact canonical core version that should serve legacy users. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.