@neuroverseos/governance 0.2.3 → 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/package.json +4 -2
- 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/deep-agents.cjs +0 -1472
- package/dist/adapters/deep-agents.d.cts +0 -181
- package/dist/adapters/deep-agents.d.ts +0 -181
- package/dist/adapters/deep-agents.js +0 -17
- package/dist/adapters/express.cjs +0 -1196
- 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 -2038
- package/dist/adapters/index.d.cts +0 -8
- package/dist/adapters/index.d.ts +0 -8
- package/dist/adapters/index.js +0 -68
- package/dist/adapters/langchain.cjs +0 -1259
- package/dist/adapters/langchain.d.cts +0 -89
- package/dist/adapters/langchain.d.ts +0 -89
- package/dist/adapters/langchain.js +0 -17
- package/dist/adapters/openai.cjs +0 -1289
- package/dist/adapters/openai.d.cts +0 -99
- package/dist/adapters/openai.d.ts +0 -99
- package/dist/adapters/openai.js +0 -17
- package/dist/adapters/openclaw.cjs +0 -1281
- package/dist/adapters/openclaw.d.cts +0 -99
- package/dist/adapters/openclaw.d.ts +0 -99
- package/dist/adapters/openclaw.js +0 -17
- package/dist/bootstrap-GXVDZNF7.js +0 -114
- package/dist/build-X5MZY4IA.js +0 -339
- package/dist/chunk-4L6OPKMQ.js +0 -100
- package/dist/chunk-4NGDRRQH.js +0 -10
- package/dist/chunk-5U2MQO5P.js +0 -57
- package/dist/chunk-6BB55YJI.js +0 -113
- package/dist/chunk-6CZSKEY5.js +0 -164
- package/dist/chunk-7P3S7MAY.js +0 -1090
- package/dist/chunk-A5W4GNQO.js +0 -130
- package/dist/chunk-AF2VX4AL.js +0 -363
- package/dist/chunk-AKW5YVCE.js +0 -96
- package/dist/chunk-BMOXICAB.js +0 -340
- package/dist/chunk-BQZMOEML.js +0 -43
- package/dist/chunk-D2UCV5AK.js +0 -326
- package/dist/chunk-EVDJUSZ2.js +0 -91
- package/dist/chunk-FYS2CBUW.js +0 -304
- package/dist/chunk-I3RRAYK2.js +0 -11
- package/dist/chunk-IZSO75NZ.js +0 -792
- package/dist/chunk-JCKSW2PZ.js +0 -304
- package/dist/chunk-JZPQGIKR.js +0 -79
- package/dist/chunk-KTFTTLTP.js +0 -246
- package/dist/chunk-MH7BT4VH.js +0 -15
- package/dist/chunk-ORJ3NOE6.js +0 -622
- package/dist/chunk-OT6PXH54.js +0 -61
- package/dist/chunk-Q6O7ZLO2.js +0 -62
- package/dist/chunk-QLPTHTVB.js +0 -253
- package/dist/chunk-REXY4LUL.js +0 -226
- package/dist/chunk-T5EUJQE5.js +0 -172
- package/dist/chunk-TTBKTF3P.js +0 -608
- package/dist/chunk-XPDMYECO.js +0 -642
- package/dist/chunk-YZFATT7X.js +0 -9
- package/dist/chunk-ZIVQNSZU.js +0 -119
- package/dist/chunk-ZJTDUCC2.js +0 -194
- package/dist/cli/neuroverse.cjs +0 -12564
- package/dist/cli/neuroverse.d.cts +0 -1
- package/dist/cli/neuroverse.d.ts +0 -1
- package/dist/cli/neuroverse.js +0 -208
- package/dist/cli/plan.cjs +0 -1686
- package/dist/cli/plan.d.cts +0 -20
- package/dist/cli/plan.d.ts +0 -20
- package/dist/cli/plan.js +0 -353
- package/dist/cli/run.cjs +0 -1945
- 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/decision-flow-LETV5NWY.js +0 -61
- package/dist/derive-7365SUFU.js +0 -152
- package/dist/doctor-QYISMKEL.js +0 -173
- package/dist/equity-penalties-63FGB3I2.js +0 -244
- package/dist/explain-A2EWI2OL.js +0 -51
- package/dist/guard-3BWL3IGH.js +0 -92
- package/dist/guard-contract-C9_zKbzd.d.cts +0 -821
- package/dist/guard-contract-C9_zKbzd.d.ts +0 -821
- package/dist/guard-engine-QFMIBWJY.js +0 -10
- package/dist/impact-UB6DXKSX.js +0 -59
- package/dist/improve-XZA57GER.js +0 -66
- package/dist/index.cjs +0 -6821
- package/dist/index.d.cts +0 -1829
- package/dist/index.d.ts +0 -1829
- package/dist/index.js +0 -430
- 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-XWQZXNW7.js +0 -13
- package/dist/model-adapter-BB7G4MFI.js +0 -11
- package/dist/playground-ADWZORNV.js +0 -550
- package/dist/redteam-JRQ7FD2F.js +0 -357
- package/dist/session-MMYX5YCF.js +0 -15
- package/dist/shared--Q8wPBVN.d.ts +0 -60
- package/dist/shared-HpAG90PX.d.cts +0 -60
- package/dist/shared-U2QFV7JH.js +0 -16
- package/dist/simulate-GMIFFXYV.js +0 -83
- package/dist/test-JBBZ65X4.js +0 -217
- package/dist/trace-3MYWIDEF.js +0 -166
- package/dist/validate-LLBWVPGV.js +0 -81
- package/dist/validate-engine-UIABSIHD.js +0 -7
- package/dist/world-BFJCIQSH.js +0 -378
- package/dist/world-loader-HMPTOEA2.js +0 -9
- package/dist/worlds/autoresearch.nv-world.md +0 -230
- package/dist/worlds/coding-agent.nv-world.md +0 -211
- package/dist/worlds/derivation-world.nv-world.md +0 -278
package/dist/impact-UB6DXKSX.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
generateImpactReport,
|
|
3
|
-
renderImpactReport
|
|
4
|
-
} from "./chunk-KTFTTLTP.js";
|
|
5
|
-
import {
|
|
6
|
-
readAuditLog
|
|
7
|
-
} from "./chunk-REXY4LUL.js";
|
|
8
|
-
import "./chunk-IZSO75NZ.js";
|
|
9
|
-
import "./chunk-QLPTHTVB.js";
|
|
10
|
-
import "./chunk-YZFATT7X.js";
|
|
11
|
-
|
|
12
|
-
// src/cli/impact.ts
|
|
13
|
-
var USAGE = `
|
|
14
|
-
neuroverse impact \u2014 Counterfactual governance impact report
|
|
15
|
-
|
|
16
|
-
Usage:
|
|
17
|
-
neuroverse impact [options]
|
|
18
|
-
|
|
19
|
-
Options:
|
|
20
|
-
--log <path> Path to audit log (default: .neuroverse/audit.ndjson)
|
|
21
|
-
--json Raw JSON output
|
|
22
|
-
|
|
23
|
-
Shows what governance prevented: blocked actions, risk categories,
|
|
24
|
-
repeat violations, and actor behavior patterns.
|
|
25
|
-
`.trim();
|
|
26
|
-
function parseArgs(argv) {
|
|
27
|
-
const args = {};
|
|
28
|
-
for (let i = 0; i < argv.length; i++) {
|
|
29
|
-
const arg = argv[i];
|
|
30
|
-
if (arg === "--json") args.json = true;
|
|
31
|
-
else if (arg === "--help" || arg === "-h") args.help = true;
|
|
32
|
-
else if (arg === "--log" && argv[i + 1]) args.log = argv[++i];
|
|
33
|
-
}
|
|
34
|
-
return args;
|
|
35
|
-
}
|
|
36
|
-
async function main(argv = process.argv.slice(2)) {
|
|
37
|
-
const args = parseArgs(argv);
|
|
38
|
-
if (args.help) {
|
|
39
|
-
process.stdout.write(USAGE + "\n");
|
|
40
|
-
process.exit(0);
|
|
41
|
-
}
|
|
42
|
-
const logPath = args.log ?? ".neuroverse/audit.ndjson";
|
|
43
|
-
const events = await readAuditLog(logPath);
|
|
44
|
-
if (events.length === 0) {
|
|
45
|
-
process.stderr.write(`No audit events found in ${logPath}
|
|
46
|
-
`);
|
|
47
|
-
process.stderr.write("Run governance evaluations with audit logging enabled to generate events.\n");
|
|
48
|
-
process.exit(0);
|
|
49
|
-
}
|
|
50
|
-
const report = generateImpactReport(events);
|
|
51
|
-
if (args.json) {
|
|
52
|
-
process.stdout.write(JSON.stringify(report, null, 2) + "\n");
|
|
53
|
-
} else {
|
|
54
|
-
process.stdout.write(renderImpactReport(report) + "\n");
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
export {
|
|
58
|
-
main
|
|
59
|
-
};
|
package/dist/improve-XZA57GER.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
resolveWorldPath
|
|
3
|
-
} from "./chunk-BQZMOEML.js";
|
|
4
|
-
import {
|
|
5
|
-
improveWorld,
|
|
6
|
-
renderImproveText
|
|
7
|
-
} from "./chunk-BMOXICAB.js";
|
|
8
|
-
import "./chunk-7P3S7MAY.js";
|
|
9
|
-
import "./chunk-FYS2CBUW.js";
|
|
10
|
-
import {
|
|
11
|
-
loadWorld
|
|
12
|
-
} from "./chunk-JZPQGIKR.js";
|
|
13
|
-
import "./chunk-YZFATT7X.js";
|
|
14
|
-
|
|
15
|
-
// src/cli/improve.ts
|
|
16
|
-
function parseArgs(argv) {
|
|
17
|
-
let worldPath = "";
|
|
18
|
-
let json = false;
|
|
19
|
-
for (let i = 0; i < argv.length; i++) {
|
|
20
|
-
const arg = argv[i];
|
|
21
|
-
if (arg === "--json") {
|
|
22
|
-
json = true;
|
|
23
|
-
} else if (!arg.startsWith("--") && !worldPath) {
|
|
24
|
-
worldPath = arg;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
if (!worldPath) {
|
|
28
|
-
throw new Error("Usage: neuroverse improve <world-path-or-id>");
|
|
29
|
-
}
|
|
30
|
-
return { worldPath, json };
|
|
31
|
-
}
|
|
32
|
-
async function main(argv = process.argv.slice(2)) {
|
|
33
|
-
try {
|
|
34
|
-
const args = parseArgs(argv);
|
|
35
|
-
const resolvedPath = await resolveWorldPath(args.worldPath);
|
|
36
|
-
const world = await loadWorld(resolvedPath);
|
|
37
|
-
const report = improveWorld(world);
|
|
38
|
-
if (args.json) {
|
|
39
|
-
process.stdout.write(JSON.stringify(report, null, 2) + "\n");
|
|
40
|
-
} else {
|
|
41
|
-
process.stderr.write("\n");
|
|
42
|
-
process.stderr.write(renderImproveText(report) + "\n");
|
|
43
|
-
}
|
|
44
|
-
if (!args.json) {
|
|
45
|
-
process.stderr.write("\nNext steps:\n");
|
|
46
|
-
if (report.stats.critical > 0) {
|
|
47
|
-
process.stderr.write(` Fix critical issues, then re-run: neuroverse improve ${args.worldPath}
|
|
48
|
-
`);
|
|
49
|
-
} else {
|
|
50
|
-
process.stderr.write(` Simulate neuroverse simulate ${args.worldPath}
|
|
51
|
-
`);
|
|
52
|
-
process.stderr.write(` Explain neuroverse explain ${args.worldPath}
|
|
53
|
-
`);
|
|
54
|
-
}
|
|
55
|
-
process.stderr.write("\n");
|
|
56
|
-
}
|
|
57
|
-
process.exit(report.stats.critical > 0 ? 2 : 0);
|
|
58
|
-
} catch (e) {
|
|
59
|
-
process.stderr.write(`${e instanceof Error ? e.message : String(e)}
|
|
60
|
-
`);
|
|
61
|
-
process.exit(1);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
export {
|
|
65
|
-
main
|
|
66
|
-
};
|