@atlasnomos/atlas 1.1.3 → 1.1.5
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/atlas.js +17 -1
- package/package.json +1 -1
package/atlas.js
CHANGED
|
@@ -115,7 +115,23 @@ const { ModelsCommand } = require('./src/interface/cli/commands/ModelsCommand');
|
|
|
115
115
|
console.error('\n⚠️ DRY-RUN MODE ACTIVE: No changes will be persisted.\n');
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
|
|
118
|
+
// PHASE 4: Setup Flow Interception
|
|
119
|
+
const command = rawArgs[0] || 'doctor';
|
|
120
|
+
const isSetupCommand = ['init', 'help', '--help', '-h', '--version', '-v'].includes(command);
|
|
121
|
+
|
|
122
|
+
let context;
|
|
123
|
+
if (isSetupCommand) {
|
|
124
|
+
// Use minimal context for setup commands to bypass Ring-1 validation
|
|
125
|
+
context = {
|
|
126
|
+
tierManager: { getTier: () => 'DEV', displayBanner: () => { } },
|
|
127
|
+
trace: { log: () => { } },
|
|
128
|
+
auditSink: { log: () => { } },
|
|
129
|
+
costTracker: { log: () => { } }
|
|
130
|
+
};
|
|
131
|
+
} else {
|
|
132
|
+
// Full kernel boot for governed commands
|
|
133
|
+
context = await bootstrap.boot();
|
|
134
|
+
}
|
|
119
135
|
|
|
120
136
|
const dispatcher = new CommandDispatcher(context);
|
|
121
137
|
|
package/package.json
CHANGED