@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.
Files changed (2) hide show
  1. package/atlas.js +17 -1
  2. 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
- const context = await bootstrap.boot();
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlasnomos/atlas",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "description": "Production-grade AI governance kernel for autonomous agents with fail-closed security and cryptographic audit trails",
5
5
  "main": "atlas.js",
6
6
  "bin": {