@neuroverseos/governance 0.3.0 → 0.3.1
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/README.md +20 -0
- package/package.json +16 -3
- package/policies/content-moderation-rules.txt +8 -0
- package/policies/marketing-rules.txt +8 -0
- package/policies/science-research-rules.txt +11 -0
- package/policies/social-media-rules.txt +7 -0
- package/policies/strict-rules.txt +8 -0
- package/policies/trading-rules.txt +8 -0
- package/simulate.html +1899 -0
- package/dist/adapters/autoresearch.cjs +0 -196
- package/dist/adapters/autoresearch.d.cts +0 -103
- package/dist/adapters/autoresearch.d.ts +0 -103
- package/dist/adapters/autoresearch.js +0 -7
- package/dist/adapters/express.cjs +0 -1114
- package/dist/adapters/express.d.cts +0 -66
- package/dist/adapters/express.d.ts +0 -66
- package/dist/adapters/express.js +0 -12
- package/dist/adapters/index.cjs +0 -1669
- package/dist/adapters/index.d.cts +0 -6
- package/dist/adapters/index.d.ts +0 -6
- package/dist/adapters/index.js +0 -46
- package/dist/adapters/langchain.cjs +0 -1155
- package/dist/adapters/langchain.d.cts +0 -89
- package/dist/adapters/langchain.d.ts +0 -89
- package/dist/adapters/langchain.js +0 -16
- package/dist/adapters/openai.cjs +0 -1185
- package/dist/adapters/openai.d.cts +0 -99
- package/dist/adapters/openai.d.ts +0 -99
- package/dist/adapters/openai.js +0 -16
- package/dist/adapters/openclaw.cjs +0 -1177
- package/dist/adapters/openclaw.d.cts +0 -99
- package/dist/adapters/openclaw.d.ts +0 -99
- package/dist/adapters/openclaw.js +0 -16
- package/dist/bootstrap-GXVDZNF7.js +0 -114
- package/dist/build-P42YFKQV.js +0 -339
- package/dist/chunk-2NICNKOM.js +0 -100
- package/dist/chunk-2PQU3VAN.js +0 -131
- package/dist/chunk-4A7LISES.js +0 -324
- package/dist/chunk-4JRYGIO7.js +0 -727
- package/dist/chunk-4NGDRRQH.js +0 -10
- package/dist/chunk-4QXB6PEO.js +0 -232
- package/dist/chunk-6CZSKEY5.js +0 -164
- package/dist/chunk-7P3S7MAY.js +0 -1090
- package/dist/chunk-A5W4GNQO.js +0 -130
- package/dist/chunk-AKW5YVCE.js +0 -96
- package/dist/chunk-BUWWN2NX.js +0 -192
- package/dist/chunk-COT5XS4V.js +0 -109
- package/dist/chunk-ER62HNGF.js +0 -139
- package/dist/chunk-FYS2CBUW.js +0 -304
- package/dist/chunk-GR6DGCZ2.js +0 -340
- package/dist/chunk-I3RRAYK2.js +0 -11
- package/dist/chunk-JZPQGIKR.js +0 -79
- package/dist/chunk-MWDQ4MJB.js +0 -11
- package/dist/chunk-NF5POFCI.js +0 -622
- package/dist/chunk-OGL7QXZS.js +0 -608
- package/dist/chunk-OT6PXH54.js +0 -61
- package/dist/chunk-PDOZHZWL.js +0 -225
- package/dist/chunk-Q6O7ZLO2.js +0 -62
- package/dist/chunk-QPASI2BR.js +0 -187
- package/dist/chunk-T5EUJQE5.js +0 -172
- package/dist/chunk-XPDMYECO.js +0 -642
- package/dist/chunk-YZFATT7X.js +0 -9
- package/dist/cli/neuroverse.cjs +0 -11448
- package/dist/cli/neuroverse.d.cts +0 -1
- package/dist/cli/neuroverse.d.ts +0 -1
- package/dist/cli/neuroverse.js +0 -196
- package/dist/cli/plan.cjs +0 -1599
- package/dist/cli/plan.d.cts +0 -20
- package/dist/cli/plan.d.ts +0 -20
- package/dist/cli/plan.js +0 -361
- package/dist/cli/run.cjs +0 -1746
- package/dist/cli/run.d.cts +0 -20
- package/dist/cli/run.d.ts +0 -20
- package/dist/cli/run.js +0 -143
- package/dist/configure-ai-TK67ZWZL.js +0 -132
- package/dist/derive-TLIV4OOU.js +0 -152
- package/dist/doctor-XPDLEYXN.js +0 -171
- package/dist/explain-IDCRWMPX.js +0 -70
- package/dist/guard-RV65TT4L.js +0 -96
- package/dist/guard-contract-WZx__PmU.d.cts +0 -709
- package/dist/guard-contract-WZx__PmU.d.ts +0 -709
- package/dist/guard-engine-JLTUARGU.js +0 -10
- package/dist/impact-XPECYRLH.js +0 -59
- package/dist/improve-GPUBKTEA.js +0 -85
- package/dist/index.cjs +0 -6273
- package/dist/index.d.cts +0 -1616
- package/dist/index.d.ts +0 -1616
- package/dist/index.js +0 -379
- package/dist/infer-world-7GVZWFX4.js +0 -543
- package/dist/init-PKPIYHYE.js +0 -144
- package/dist/init-world-VWMQZQC7.js +0 -223
- package/dist/mcp-server-FPVSU32Z.js +0 -13
- package/dist/model-adapter-BB7G4MFI.js +0 -11
- package/dist/playground-E664U4T6.js +0 -550
- package/dist/redteam-Z7WREJ44.js +0 -357
- package/dist/session-EKTRSR7C.js +0 -14
- package/dist/simulate-VDOYQFRO.js +0 -108
- package/dist/test-OGXJK4QU.js +0 -217
- package/dist/trace-JVF67VR3.js +0 -166
- package/dist/validate-LLBWVPGV.js +0 -81
- package/dist/validate-engine-UIABSIHD.js +0 -7
- package/dist/world-LAXO6DOX.js +0 -378
- package/dist/world-loader-HMPTOEA2.js +0 -9
- package/dist/worlds/autoresearch.nv-world.md +0 -230
- package/dist/worlds/derivation-world.nv-world.md +0 -278
package/dist/chunk-JZPQGIKR.js
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
// src/loader/world-loader.ts
|
|
2
|
-
async function loadWorldFromDirectory(dirPath) {
|
|
3
|
-
const { readFile } = await import("fs/promises");
|
|
4
|
-
const { join } = await import("path");
|
|
5
|
-
const { readdirSync } = await import("fs");
|
|
6
|
-
async function readJson(filename) {
|
|
7
|
-
try {
|
|
8
|
-
const content = await readFile(join(dirPath, filename), "utf-8");
|
|
9
|
-
return JSON.parse(content);
|
|
10
|
-
} catch {
|
|
11
|
-
return void 0;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
const worldJson = await readJson("world.json");
|
|
15
|
-
if (!worldJson) {
|
|
16
|
-
throw new Error(`Cannot read world.json in ${dirPath}`);
|
|
17
|
-
}
|
|
18
|
-
const invariantsJson = await readJson("invariants.json");
|
|
19
|
-
const assumptionsJson = await readJson("assumptions.json");
|
|
20
|
-
const stateSchemaJson = await readJson("state-schema.json");
|
|
21
|
-
const gatesJson = await readJson("gates.json");
|
|
22
|
-
const outcomesJson = await readJson("outcomes.json");
|
|
23
|
-
const guardsJson = await readJson("guards.json");
|
|
24
|
-
const rolesJson = await readJson("roles.json");
|
|
25
|
-
const kernelJson = await readJson("kernel.json");
|
|
26
|
-
const metadataJson = await readJson("metadata.json");
|
|
27
|
-
const rules = [];
|
|
28
|
-
try {
|
|
29
|
-
const rulesDir = join(dirPath, "rules");
|
|
30
|
-
const ruleFiles = readdirSync(rulesDir).filter((f) => f.endsWith(".json")).sort();
|
|
31
|
-
for (const file of ruleFiles) {
|
|
32
|
-
const content = await readFile(join(rulesDir, file), "utf-8");
|
|
33
|
-
rules.push(JSON.parse(content));
|
|
34
|
-
}
|
|
35
|
-
} catch {
|
|
36
|
-
}
|
|
37
|
-
return {
|
|
38
|
-
world: worldJson,
|
|
39
|
-
invariants: invariantsJson?.invariants ?? [],
|
|
40
|
-
assumptions: assumptionsJson ?? { profiles: {}, parameter_definitions: {} },
|
|
41
|
-
stateSchema: stateSchemaJson ?? { variables: {}, presets: {} },
|
|
42
|
-
rules,
|
|
43
|
-
gates: gatesJson ?? {
|
|
44
|
-
viability_classification: [],
|
|
45
|
-
structural_override: { description: "", enforcement: "mandatory" },
|
|
46
|
-
sustainability_threshold: 0,
|
|
47
|
-
collapse_visual: { background: "", text: "", border: "", label: "" }
|
|
48
|
-
},
|
|
49
|
-
outcomes: outcomesJson ?? {
|
|
50
|
-
computed_outcomes: [],
|
|
51
|
-
comparison_layout: { primary_card: "", status_badge: "", structural_indicators: [] }
|
|
52
|
-
},
|
|
53
|
-
guards: guardsJson,
|
|
54
|
-
roles: rolesJson,
|
|
55
|
-
kernel: kernelJson,
|
|
56
|
-
metadata: metadataJson ?? {
|
|
57
|
-
format_version: "1.0.0",
|
|
58
|
-
created_at: "",
|
|
59
|
-
last_modified: "",
|
|
60
|
-
authoring_method: "manual-authoring"
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
async function loadWorld(worldPath) {
|
|
65
|
-
const { stat } = await import("fs/promises");
|
|
66
|
-
const info = await stat(worldPath);
|
|
67
|
-
if (info.isDirectory()) {
|
|
68
|
-
return loadWorldFromDirectory(worldPath);
|
|
69
|
-
}
|
|
70
|
-
if (worldPath.endsWith(".nv-world.zip")) {
|
|
71
|
-
throw new Error(".nv-world.zip loading not yet implemented \u2014 use a world directory");
|
|
72
|
-
}
|
|
73
|
-
throw new Error(`Cannot load world from: ${worldPath} \u2014 expected a directory or .nv-world.zip`);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export {
|
|
77
|
-
loadWorldFromDirectory,
|
|
78
|
-
loadWorld
|
|
79
|
-
};
|