Skip to content

Commit 61991a3

Browse files
oalanicolasclaude
andauthored
chore: rebrand aios → aiox across entire codebase (#552)
* chore: rename .aios-core to .aiox-core (directory structure) Rename all files from .aios-core/ to .aiox-core/ as part of the AIOS → AIOX rebranding effort. This commit contains only the directory/file renames without content modifications. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore: update aios→aiox references in file contents Replace all internal references from 'aios' to 'aiox' across the codebase — imports, paths, config files, docs, tests, and scripts. Completes the AIOS → AIOX rebranding at the content level. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(hooks): add wrappers to prevent stdout→stderr leak in Claude Code process.exit() in hook scripts causes unflushed stdout buffers to spill into stderr when Claude Code runs hooks via pipes. This triggers false "UserPromptSubmit hook error" on every prompt. Added synapse-wrapper.cjs and precompact-wrapper.cjs that run the real hooks as child processes via execFileSync, isolating stdout/stderr in memory buffers. Also updated settings.json to use the wrappers and applied aios→aiox references in hook files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore: update entity-registry, gitignore hooks, remove stale doc - Update entity-registry.yaml with aiox references - Simplify .gitignore hooks exclusion pattern - Remove obsolete bob-orchestrator-workflow doc Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(test): update gitignore assertion to match simplified hooks exclusion The .gitignore now uses !.claude/hooks/ (all hooks) instead of individual file exceptions. Updated test to match. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(security): resolve CodeQL alerts — incomplete sanitization, URL check, shell injection - framework-guard: escape regex-special chars properly before glob conversion - squad-downloader.test: use URL hostname comparison instead of substring includes - package-synapse: use execFileSync instead of execSync to prevent shell injection Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1fcfd4c commit 61991a3

File tree

2,429 files changed

+27998
-32791
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,429 files changed

+27998
-32791
lines changed

.aios-core/infrastructure/templates/gitignore/gitignore-brownfield-merge.tmpl

Lines changed: 0 additions & 18 deletions
This file was deleted.

.aios-core/monitor/hooks/lib/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

.aios-core/product/templates/ide-rules/codex-rules.md

Lines changed: 0 additions & 65 deletions
This file was deleted.
Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
* CLI commands for the layered configuration system (ADR-PRO-002).
55
*
66
* Subcommands:
7-
* aios config show [--level <n>] [--app <name>] [--debug]
8-
* aios config diff --levels <a>,<b>
9-
* aios config migrate [--dry-run] [--force]
10-
* aios config validate [--level <n>]
11-
* aios config init-local
7+
* aiox config show [--level <n>] [--app <name>] [--debug]
8+
* aiox config diff --levels <a>,<b>
9+
* aiox config migrate [--dry-run] [--force]
10+
* aiox config validate [--level <n>]
11+
* aiox config init-local
1212
*
1313
* @module cli/commands/config
1414
* @version 1.0.0
@@ -22,7 +22,7 @@ const path = require('path');
2222
const fs = require('fs');
2323
const yaml = require('js-yaml');
2424

25-
// Resolve core config modules (relative from .aios-core/cli/commands/config/)
25+
// Resolve core config modules (relative from .aiox-core/cli/commands/config/)
2626
const configResolverPath = path.resolve(__dirname, '..', '..', '..', 'core', 'config', 'config-resolver');
2727
const mergeUtilsPath = path.resolve(__dirname, '..', '..', '..', 'core', 'config', 'merge-utils');
2828
const envInterpolatorPath = path.resolve(__dirname, '..', '..', '..', 'core', 'config', 'env-interpolator');
@@ -45,7 +45,7 @@ function getProjectRoot() {
4545
}
4646

4747
// ---------------------------------------------------------------------------
48-
// aios config show
48+
// aiox config show
4949
// ---------------------------------------------------------------------------
5050

5151
function showAction(options) {
@@ -113,7 +113,7 @@ function printDebugConfig(config, sources, prefix = '') {
113113
}
114114

115115
// ---------------------------------------------------------------------------
116-
// aios config diff
116+
// aiox config diff
117117
// ---------------------------------------------------------------------------
118118

119119
function diffAction(options) {
@@ -198,7 +198,7 @@ function formatValue(v) {
198198
}
199199

200200
// ---------------------------------------------------------------------------
201-
// aios config migrate
201+
// aiox config migrate
202202
// ---------------------------------------------------------------------------
203203

204204
function migrateAction(options) {
@@ -253,20 +253,20 @@ function migrateAction(options) {
253253
console.log(`Backup created: ${backupPath}`);
254254

255255
// Write split files
256-
const header1 = '# AIOS Framework Configuration (Level 1)\n# DO NOT EDIT — Part of the AIOS framework.\n# Override in project-config.yaml or local-config.yaml.\n\n';
256+
const header1 = '# AIOX Framework Configuration (Level 1)\n# DO NOT EDIT — Part of the AIOX framework.\n# Override in project-config.yaml or local-config.yaml.\n\n';
257257
fs.writeFileSync(fwPath, header1 + yaml.dump(l1Sections, { lineWidth: 120 }));
258258
console.log(`Created: ${CONFIG_FILES.framework}`);
259259

260-
const header2 = '# AIOS Project Configuration (Level 2)\n# Project-specific settings shared across the team.\n\n';
260+
const header2 = '# AIOX Project Configuration (Level 2)\n# Project-specific settings shared across the team.\n\n';
261261
fs.writeFileSync(projPath, header2 + yaml.dump(l2Sections, { lineWidth: 120 }));
262262
console.log(`Created: ${CONFIG_FILES.project}`);
263263

264-
const header4 = '# AIOS Local Configuration (Level 4)\n# Machine-specific overrides. DO NOT commit to git.\n\n';
264+
const header4 = '# AIOX Local Configuration (Level 4)\n# Machine-specific overrides. DO NOT commit to git.\n\n';
265265
fs.writeFileSync(localPath, header4 + yaml.dump(l4Sections, { lineWidth: 120 }));
266266
console.log(`Created: ${CONFIG_FILES.local}`);
267267

268268
// Update .gitignore if needed
269-
ensureGitignore(root, '.aios-core/local-config.yaml');
269+
ensureGitignore(root, '.aiox-core/local-config.yaml');
270270

271271
// Validate: resolved config should match original
272272
const resolved = resolveConfig(root, { skipCache: true });
@@ -277,7 +277,7 @@ function migrateAction(options) {
277277
console.log('\nValidation: PASS — Resolved config matches original.');
278278
} else {
279279
console.log('\nValidation: WARNING — Resolved config differs from original.');
280-
console.log('This may be expected due to key normalization. Run `aios config diff` to inspect.');
280+
console.log('This may be expected due to key normalization. Run `aiox config diff` to inspect.');
281281
}
282282

283283
console.log('\nMigration complete. Original preserved at core-config.yaml.backup');
@@ -295,7 +295,7 @@ function splitL1(config) {
295295

296296
// metadata (framework portion)
297297
if (config.markdownExploder !== undefined) l1.markdownExploder = config.markdownExploder;
298-
l1.metadata = { name: 'Synkra AIOS', framework_version: '3.12.0' };
298+
l1.metadata = { name: 'Synkra AIOX', framework_version: '3.12.0' };
299299

300300
// resource_locations (Section 3)
301301
if (config.toolsLocation) l1.resource_locations = { tools_dir: config.toolsLocation };
@@ -443,7 +443,7 @@ function ensureGitignore(root, entry) {
443443
}
444444

445445
// ---------------------------------------------------------------------------
446-
// aios config validate
446+
// aiox config validate
447447
// ---------------------------------------------------------------------------
448448

449449
function validateAction(options) {
@@ -523,16 +523,16 @@ function validateYamlSyntax(root, level, issues) {
523523
}
524524

525525
// ---------------------------------------------------------------------------
526-
// aios config init-local
526+
// aiox config init-local
527527
// ---------------------------------------------------------------------------
528528

529529
function initLocalAction() {
530530
const root = getProjectRoot();
531-
const templatePath = path.join(root, '.aios-core', 'local-config.yaml.template');
532-
const targetPath = path.join(root, '.aios-core', 'local-config.yaml');
531+
const templatePath = path.join(root, '.aiox-core', 'local-config.yaml.template');
532+
const targetPath = path.join(root, '.aiox-core', 'local-config.yaml');
533533

534534
if (!fs.existsSync(templatePath)) {
535-
console.error('Template not found: .aios-core/local-config.yaml.template');
535+
console.error('Template not found: .aiox-core/local-config.yaml.template');
536536
process.exit(1);
537537
}
538538

@@ -542,26 +542,26 @@ function initLocalAction() {
542542
}
543543

544544
fs.copyFileSync(templatePath, targetPath);
545-
console.log('Created: .aios-core/local-config.yaml (from template)');
545+
console.log('Created: .aiox-core/local-config.yaml (from template)');
546546
console.log('Edit this file to customize your machine-specific settings.');
547547

548548
// Ensure gitignore
549-
ensureGitignore(root, '.aios-core/local-config.yaml');
549+
ensureGitignore(root, '.aiox-core/local-config.yaml');
550550
}
551551

552552
// ---------------------------------------------------------------------------
553553
// Command builder
554554
// ---------------------------------------------------------------------------
555555

556556
/**
557-
* Create the `aios config` command with all subcommands.
557+
* Create the `aiox config` command with all subcommands.
558558
* @returns {Command}
559559
*/
560560
function createConfigCommand() {
561561
const configCmd = new Command('config')
562562
.description('Manage layered configuration (ADR-PRO-002)');
563563

564-
// aios config show
564+
// aiox config show
565565
configCmd
566566
.command('show')
567567
.description('Show resolved configuration')
@@ -570,30 +570,30 @@ function createConfigCommand() {
570570
.option('-d, --debug', 'Show source annotations for each value')
571571
.action(showAction);
572572

573-
// aios config diff
573+
// aiox config diff
574574
configCmd
575575
.command('diff')
576576
.description('Compare configuration between two levels')
577577
.requiredOption('--levels <a,b>', 'Two levels to compare (e.g., 1,2)')
578578
.option('-a, --app <name>', 'Include app-specific context')
579579
.action(diffAction);
580580

581-
// aios config migrate
581+
// aiox config migrate
582582
configCmd
583583
.command('migrate')
584584
.description('Migrate monolithic core-config.yaml to layered files')
585585
.option('--dry-run', 'Preview without writing files')
586586
.option('--force', 'Overwrite existing split files')
587587
.action(migrateAction);
588588

589-
// aios config validate
589+
// aiox config validate
590590
configCmd
591591
.command('validate')
592592
.description('Validate YAML syntax and lint config files')
593593
.option('-l, --level <level>', 'Validate specific level only')
594594
.action(validateAction);
595595

596-
// aios config init-local
596+
// aiox config init-local
597597
configCmd
598598
.command('init-local')
599599
.description('Create local-config.yaml from template')
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ function createManifestCommand() {
2121
const manifest = new Command('manifest');
2222

2323
manifest
24-
.description('Manage AIOS manifest files for agents, workers, and tasks')
24+
.description('Manage AIOX manifest files for agents, workers, and tasks')
2525
.addHelpText('after', `
2626
Commands:
2727
validate Validate all manifest files
2828
regenerate Regenerate manifests from source files
2929
3030
Examples:
31-
$ aios manifest validate
32-
$ aios manifest validate --verbose
33-
$ aios manifest regenerate
34-
$ aios manifest regenerate --force
31+
$ aiox manifest validate
32+
$ aiox manifest validate --verbose
33+
$ aiox manifest regenerate
34+
$ aiox manifest regenerate --force
3535
`);
3636

3737
// Add subcommands

.aios-core/cli/commands/manifest/regenerate.js renamed to .aiox-core/cli/commands/manifest/regenerate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function createRegenerateCommand() {
3131
});
3232

3333
if (!options.dryRun) {
34-
console.log('Scanning .aios-core/...\n');
34+
console.log('Scanning .aiox-core/...\n');
3535
} else {
3636
console.log('[DRY RUN] Would generate:\n');
3737
}
File renamed without changes.
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,31 +72,31 @@ async function executeAdd(server, options) {
7272
console.log('');
7373
}
7474

75-
console.log('Usage: aios mcp add <server-name>');
76-
console.log('Example: aios mcp add context7');
75+
console.log('Usage: aiox mcp add <server-name>');
76+
console.log('Example: aiox mcp add context7');
7777
return;
7878
}
7979

8080
// Check global config exists
8181
if (!globalConfigExists()) {
8282
console.error('❌ Global MCP config not found.');
83-
console.log('Run "aios mcp setup" first to create global configuration.');
83+
console.log('Run "aiox mcp setup" first to create global configuration.');
8484
process.exit(1);
8585
}
8686

8787
// Server name required for most operations
8888
if (!server) {
8989
console.error('❌ Server name required.');
90-
console.log('Usage: aios mcp add <server-name>');
90+
console.log('Usage: aiox mcp add <server-name>');
9191
console.log('');
9292
console.log('Available templates:');
9393
for (const name of getAvailableTemplates()) {
9494
console.log(` - ${name}`);
9595
}
9696
console.log('');
9797
console.log('Or provide custom config:');
98-
console.log(' aios mcp add myserver --type sse --url https://example.com/mcp');
99-
console.log(' aios mcp add myserver --command npx --args "-y,@scope/mcp-server"');
98+
console.log(' aiox mcp add myserver --type sse --url https://example.com/mcp');
99+
console.log(' aiox mcp add myserver --command npx --args "-y,@scope/mcp-server"');
100100
process.exit(1);
101101
}
102102

@@ -220,8 +220,8 @@ async function executeAdd(server, options) {
220220
console.log(` - ${name}`);
221221
}
222222
console.log('\nOr provide custom config:');
223-
console.log(` aios mcp add ${server} --type sse --url <url>`);
224-
console.log(` aios mcp add ${server} --command npx --args "-y,@scope/server"`);
223+
console.log(` aiox mcp add ${server} --type sse --url <url>`);
224+
console.log(` aiox mcp add ${server} --command npx --args "-y,@scope/server"`);
225225
}
226226

227227
process.exit(1);

0 commit comments

Comments
 (0)