@atlasnomos/atlas 10.0.1 → 10.0.2

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.
@@ -0,0 +1,13 @@
1
+ /**
2
+ * STUB: CodeGenerator
3
+ */
4
+ class CodeGenerator {
5
+ generate(task, goal) {
6
+ return {
7
+ code: `// STUB: Generated code for ${goal}\nconsole.log("Hello from ATLAS!");`,
8
+ success: true
9
+ };
10
+ }
11
+ }
12
+
13
+ module.exports = CodeGenerator;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * STUB: LLMProvider
3
+ */
4
+ class LLMProvider {
5
+ async generate(prompt) {
6
+ return { content: "// STUB: LLM response" };
7
+ }
8
+ }
9
+ module.exports = LLMProvider;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * STUB: LLMRouter
3
+ */
4
+ class LLMRouter {
5
+ constructor(provider) {
6
+ this.provider = provider;
7
+ }
8
+ async route(task, prompt) {
9
+ return { content: "// STUB: Routed LLM response" };
10
+ }
11
+ }
12
+ module.exports = LLMRouter;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * STUB: MultiFileContractValidator
3
+ */
4
+ class MultiFileContractValidator {
5
+ extractContract(raw) {
6
+ try {
7
+ if (typeof raw === 'object') return { success: true, contract: raw };
8
+ const jsonMatch = raw.match(/\{[\s\S]*\}/);
9
+ if (jsonMatch) return { success: true, contract: JSON.parse(jsonMatch[0]) };
10
+ } catch (e) { }
11
+ return { success: false, error: 'Stub: Could not parse JSON' };
12
+ }
13
+
14
+ validate(contract) {
15
+ if (!contract.files || !Array.isArray(contract.files)) {
16
+ return { valid: false, errors: [{ message: 'Stub: Missing files array' }] };
17
+ }
18
+ return { valid: true, contract };
19
+ }
20
+ }
21
+
22
+ module.exports = { MultiFileContractValidator };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlasnomos/atlas",
3
- "version": "10.0.1",
3
+ "version": "10.0.2",
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": {
@@ -15,6 +15,7 @@
15
15
  "bin/",
16
16
  "atlas.js",
17
17
  "src/",
18
+ "engine/",
18
19
  "config/tier-policies.json",
19
20
  "config/trust-boundaries.json",
20
21
  "config/sentinel-keys.json",