@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,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.
|
|
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",
|