@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.
Files changed (118) hide show
  1. package/package.json +4 -2
  2. package/policies/content-moderation-rules.txt +8 -0
  3. package/policies/marketing-rules.txt +8 -0
  4. package/policies/science-research-rules.txt +11 -0
  5. package/policies/social-media-rules.txt +7 -0
  6. package/policies/strict-rules.txt +8 -0
  7. package/policies/trading-rules.txt +8 -0
  8. package/simulate.html +1899 -0
  9. package/dist/adapters/autoresearch.cjs +0 -196
  10. package/dist/adapters/autoresearch.d.cts +0 -103
  11. package/dist/adapters/autoresearch.d.ts +0 -103
  12. package/dist/adapters/autoresearch.js +0 -7
  13. package/dist/adapters/deep-agents.cjs +0 -1472
  14. package/dist/adapters/deep-agents.d.cts +0 -181
  15. package/dist/adapters/deep-agents.d.ts +0 -181
  16. package/dist/adapters/deep-agents.js +0 -17
  17. package/dist/adapters/express.cjs +0 -1196
  18. package/dist/adapters/express.d.cts +0 -66
  19. package/dist/adapters/express.d.ts +0 -66
  20. package/dist/adapters/express.js +0 -12
  21. package/dist/adapters/index.cjs +0 -2038
  22. package/dist/adapters/index.d.cts +0 -8
  23. package/dist/adapters/index.d.ts +0 -8
  24. package/dist/adapters/index.js +0 -68
  25. package/dist/adapters/langchain.cjs +0 -1259
  26. package/dist/adapters/langchain.d.cts +0 -89
  27. package/dist/adapters/langchain.d.ts +0 -89
  28. package/dist/adapters/langchain.js +0 -17
  29. package/dist/adapters/openai.cjs +0 -1289
  30. package/dist/adapters/openai.d.cts +0 -99
  31. package/dist/adapters/openai.d.ts +0 -99
  32. package/dist/adapters/openai.js +0 -17
  33. package/dist/adapters/openclaw.cjs +0 -1281
  34. package/dist/adapters/openclaw.d.cts +0 -99
  35. package/dist/adapters/openclaw.d.ts +0 -99
  36. package/dist/adapters/openclaw.js +0 -17
  37. package/dist/bootstrap-GXVDZNF7.js +0 -114
  38. package/dist/build-X5MZY4IA.js +0 -339
  39. package/dist/chunk-4L6OPKMQ.js +0 -100
  40. package/dist/chunk-4NGDRRQH.js +0 -10
  41. package/dist/chunk-5U2MQO5P.js +0 -57
  42. package/dist/chunk-6BB55YJI.js +0 -113
  43. package/dist/chunk-6CZSKEY5.js +0 -164
  44. package/dist/chunk-7P3S7MAY.js +0 -1090
  45. package/dist/chunk-A5W4GNQO.js +0 -130
  46. package/dist/chunk-AF2VX4AL.js +0 -363
  47. package/dist/chunk-AKW5YVCE.js +0 -96
  48. package/dist/chunk-BMOXICAB.js +0 -340
  49. package/dist/chunk-BQZMOEML.js +0 -43
  50. package/dist/chunk-D2UCV5AK.js +0 -326
  51. package/dist/chunk-EVDJUSZ2.js +0 -91
  52. package/dist/chunk-FYS2CBUW.js +0 -304
  53. package/dist/chunk-I3RRAYK2.js +0 -11
  54. package/dist/chunk-IZSO75NZ.js +0 -792
  55. package/dist/chunk-JCKSW2PZ.js +0 -304
  56. package/dist/chunk-JZPQGIKR.js +0 -79
  57. package/dist/chunk-KTFTTLTP.js +0 -246
  58. package/dist/chunk-MH7BT4VH.js +0 -15
  59. package/dist/chunk-ORJ3NOE6.js +0 -622
  60. package/dist/chunk-OT6PXH54.js +0 -61
  61. package/dist/chunk-Q6O7ZLO2.js +0 -62
  62. package/dist/chunk-QLPTHTVB.js +0 -253
  63. package/dist/chunk-REXY4LUL.js +0 -226
  64. package/dist/chunk-T5EUJQE5.js +0 -172
  65. package/dist/chunk-TTBKTF3P.js +0 -608
  66. package/dist/chunk-XPDMYECO.js +0 -642
  67. package/dist/chunk-YZFATT7X.js +0 -9
  68. package/dist/chunk-ZIVQNSZU.js +0 -119
  69. package/dist/chunk-ZJTDUCC2.js +0 -194
  70. package/dist/cli/neuroverse.cjs +0 -12564
  71. package/dist/cli/neuroverse.d.cts +0 -1
  72. package/dist/cli/neuroverse.d.ts +0 -1
  73. package/dist/cli/neuroverse.js +0 -208
  74. package/dist/cli/plan.cjs +0 -1686
  75. package/dist/cli/plan.d.cts +0 -20
  76. package/dist/cli/plan.d.ts +0 -20
  77. package/dist/cli/plan.js +0 -353
  78. package/dist/cli/run.cjs +0 -1945
  79. package/dist/cli/run.d.cts +0 -20
  80. package/dist/cli/run.d.ts +0 -20
  81. package/dist/cli/run.js +0 -143
  82. package/dist/configure-ai-TK67ZWZL.js +0 -132
  83. package/dist/decision-flow-LETV5NWY.js +0 -61
  84. package/dist/derive-7365SUFU.js +0 -152
  85. package/dist/doctor-QYISMKEL.js +0 -173
  86. package/dist/equity-penalties-63FGB3I2.js +0 -244
  87. package/dist/explain-A2EWI2OL.js +0 -51
  88. package/dist/guard-3BWL3IGH.js +0 -92
  89. package/dist/guard-contract-C9_zKbzd.d.cts +0 -821
  90. package/dist/guard-contract-C9_zKbzd.d.ts +0 -821
  91. package/dist/guard-engine-QFMIBWJY.js +0 -10
  92. package/dist/impact-UB6DXKSX.js +0 -59
  93. package/dist/improve-XZA57GER.js +0 -66
  94. package/dist/index.cjs +0 -6821
  95. package/dist/index.d.cts +0 -1829
  96. package/dist/index.d.ts +0 -1829
  97. package/dist/index.js +0 -430
  98. package/dist/infer-world-7GVZWFX4.js +0 -543
  99. package/dist/init-PKPIYHYE.js +0 -144
  100. package/dist/init-world-VWMQZQC7.js +0 -223
  101. package/dist/mcp-server-XWQZXNW7.js +0 -13
  102. package/dist/model-adapter-BB7G4MFI.js +0 -11
  103. package/dist/playground-ADWZORNV.js +0 -550
  104. package/dist/redteam-JRQ7FD2F.js +0 -357
  105. package/dist/session-MMYX5YCF.js +0 -15
  106. package/dist/shared--Q8wPBVN.d.ts +0 -60
  107. package/dist/shared-HpAG90PX.d.cts +0 -60
  108. package/dist/shared-U2QFV7JH.js +0 -16
  109. package/dist/simulate-GMIFFXYV.js +0 -83
  110. package/dist/test-JBBZ65X4.js +0 -217
  111. package/dist/trace-3MYWIDEF.js +0 -166
  112. package/dist/validate-LLBWVPGV.js +0 -81
  113. package/dist/validate-engine-UIABSIHD.js +0 -7
  114. package/dist/world-BFJCIQSH.js +0 -378
  115. package/dist/world-loader-HMPTOEA2.js +0 -9
  116. package/dist/worlds/autoresearch.nv-world.md +0 -230
  117. package/dist/worlds/coding-agent.nv-world.md +0 -211
  118. package/dist/worlds/derivation-world.nv-world.md +0 -278
@@ -1,10 +0,0 @@
1
- import {
2
- evaluateGuard,
3
- eventToAllowlistKey
4
- } from "./chunk-IZSO75NZ.js";
5
- import "./chunk-QLPTHTVB.js";
6
- import "./chunk-YZFATT7X.js";
7
- export {
8
- evaluateGuard,
9
- eventToAllowlistKey
10
- };
@@ -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
- };
@@ -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
- };