@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 +0,0 @@
1
- #!/usr/bin/env node
@@ -1 +0,0 @@
1
- #!/usr/bin/env node
@@ -1,208 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- // src/cli/neuroverse.ts
4
- var USAGE = `
5
- neuroverse \u2014 Turn ideas into worlds.
6
-
7
- Commands:
8
- build Build a world from markdown (derive + compile in one step)
9
- explain Human-readable summary of a compiled world
10
- simulate Step-by-step state evolution
11
- improve Actionable suggestions for strengthening a world
12
- init Scaffold a new .nv-world.md template
13
- init-world Generate a governed world from a template (e.g., autoresearch)
14
- infer-world Scan a repo and infer a governance world from its structure
15
- validate Static analysis on world files
16
- guard Runtime governance evaluation (stdin \u2192 stdout)
17
- test Run guard simulation suite against a world
18
- redteam Adversarial containment testing (agent escape detection)
19
- doctor Environment sanity check
20
- playground Interactive web demo (opens in browser)
21
- plan Plan enforcement (compile, check, status, advance, derive)
22
- run Governed runtime (pipe mode or interactive chat)
23
- mcp MCP governance server (for Claude, Cursor, etc.)
24
- worlds List available worlds (alias for world list)
25
- trace Runtime action audit log
26
- impact Counterfactual governance impact report
27
- decision-flow Intent \u2192 Rule \u2192 Outcome visualization (behavioral governance)
28
- equity-penalties Fortune 500 equity PENALIZE/REWARD simulation
29
- world World management (status, diff, snapshot, rollback)
30
- derive AI-assisted synthesis of .nv-world.md from markdown
31
- bootstrap Compile .nv-world.md \u2192 world JSON files
32
- configure-ai Configure AI provider credentials
33
-
34
- Usage:
35
- neuroverse build <input.md> [--output <dir>]
36
- neuroverse explain <world-path-or-id> [--json]
37
- neuroverse simulate <world-path-or-id> [--steps N] [--set key=value] [--profile name]
38
- neuroverse improve <world-path-or-id> [--json]
39
- neuroverse init [--name "World Name"] [--output path]
40
- neuroverse init-world autoresearch [--context "topic"] [--dataset "name"] [--goal "goal"]
41
- neuroverse infer-world ./repo [--output path] [--json] [--dry-run]
42
- neuroverse validate --world <dir> [--format full|summary|findings]
43
- neuroverse guard --world <dir> [--trace] [--level basic|standard|strict]
44
- neuroverse test --world <dir> [--fuzz] [--count N]
45
- neuroverse redteam --world <dir> [--level basic|standard|strict]
46
- neuroverse doctor [--world <dir>] [--json]
47
- neuroverse playground --world <dir> [--port 4242]
48
- neuroverse trace [--log <path>] [--summary] [--filter BLOCK] [--last 20]
49
- neuroverse impact [--log <path>] [--json]
50
- neuroverse world status <path>
51
- neuroverse world diff <path1> <path2>
52
- neuroverse world snapshot <path>
53
- neuroverse world rollback <path>
54
- neuroverse derive --input <path> [--output <path>] [--dry-run]
55
- neuroverse bootstrap --input <.md> --output <dir> [--validate]
56
- neuroverse decision-flow [--log <path>] [--json]
57
- neuroverse equity-penalties --world <dir> [--agents N] [--rounds N] [--json]
58
- neuroverse configure-ai --provider <name> --model <name> --api-key <key>
59
-
60
- Examples:
61
- neuroverse build horror-notes.md
62
- neuroverse explain inherited_silence
63
- neuroverse simulate inherited_silence --steps 5
64
- neuroverse improve inherited_silence
65
- neuroverse build ./docs/ --output ./my-world/
66
- neuroverse init --name "Customer Service Governance"
67
- neuroverse validate --world ./world/ --format summary
68
- echo '{"intent":"delete user data"}' | neuroverse guard --world ./world/ --trace
69
- neuroverse plan compile plan.md --output plan.json
70
- echo '{"intent":"write blog"}' | neuroverse plan check --plan plan.json
71
- neuroverse plan status --plan plan.json
72
- neuroverse plan advance write_blog_post --plan plan.json
73
- neuroverse plan derive plan.md --output ./derived-world/
74
- neuroverse run --pipe --world ./world/ --plan plan.json
75
- neuroverse run --interactive --world ./world/ --provider openai
76
- neuroverse mcp --world ./world/ --plan plan.json
77
- neuroverse test --world ./world/ --fuzz --count 50
78
- neuroverse redteam --world ./world/ --level strict
79
- neuroverse doctor
80
- neuroverse playground --world ./world/
81
- `.trim();
82
- async function main() {
83
- const args = process.argv.slice(2);
84
- const command = args[0];
85
- const subArgs = args.slice(1);
86
- switch (command) {
87
- case "build": {
88
- const { main: buildMain } = await import("../build-X5MZY4IA.js");
89
- return buildMain(subArgs);
90
- }
91
- case "explain": {
92
- const { main: explainMain } = await import("../explain-A2EWI2OL.js");
93
- return explainMain(subArgs);
94
- }
95
- case "simulate": {
96
- const { main: simulateMain } = await import("../simulate-GMIFFXYV.js");
97
- return simulateMain(subArgs);
98
- }
99
- case "improve": {
100
- const { main: improveMain } = await import("../improve-XZA57GER.js");
101
- return improveMain(subArgs);
102
- }
103
- case "init": {
104
- const { main: initMain } = await import("../init-PKPIYHYE.js");
105
- return initMain(subArgs);
106
- }
107
- case "init-world": {
108
- const { main: initWorldMain } = await import("../init-world-VWMQZQC7.js");
109
- return initWorldMain(subArgs);
110
- }
111
- case "infer-world": {
112
- const { main: inferWorldMain } = await import("../infer-world-7GVZWFX4.js");
113
- return inferWorldMain(subArgs);
114
- }
115
- case "bootstrap": {
116
- const { main: bootstrapMain } = await import("../bootstrap-GXVDZNF7.js");
117
- return bootstrapMain(subArgs);
118
- }
119
- case "validate": {
120
- const { main: validateMain } = await import("../validate-LLBWVPGV.js");
121
- return validateMain(subArgs);
122
- }
123
- case "guard": {
124
- const { main: guardMain } = await import("../guard-3BWL3IGH.js");
125
- return guardMain(subArgs);
126
- }
127
- case "test": {
128
- const { main: testMain } = await import("../test-JBBZ65X4.js");
129
- return testMain(subArgs);
130
- }
131
- case "redteam": {
132
- const { main: redteamMain } = await import("../redteam-JRQ7FD2F.js");
133
- return redteamMain(subArgs);
134
- }
135
- case "doctor": {
136
- const { main: doctorMain } = await import("../doctor-QYISMKEL.js");
137
- return doctorMain(subArgs);
138
- }
139
- case "playground": {
140
- const { main: playgroundMain } = await import("../playground-ADWZORNV.js");
141
- return playgroundMain(subArgs);
142
- }
143
- case "plan": {
144
- const { main: planMain } = await import("./plan.js");
145
- return planMain(subArgs);
146
- }
147
- case "run": {
148
- const { main: runMain } = await import("./run.js");
149
- return runMain(subArgs);
150
- }
151
- case "mcp": {
152
- const { startMcpServer } = await import("../mcp-server-XWQZXNW7.js");
153
- return startMcpServer(subArgs);
154
- }
155
- case "worlds": {
156
- const { main: worldMain } = await import("../world-BFJCIQSH.js");
157
- return worldMain(["list", ...subArgs]);
158
- }
159
- case "trace": {
160
- const { main: traceMain } = await import("../trace-3MYWIDEF.js");
161
- return traceMain(subArgs);
162
- }
163
- case "impact": {
164
- const { main: impactMain } = await import("../impact-UB6DXKSX.js");
165
- return impactMain(subArgs);
166
- }
167
- case "world": {
168
- const { main: worldMain } = await import("../world-BFJCIQSH.js");
169
- return worldMain(subArgs);
170
- }
171
- case "derive": {
172
- const { main: deriveMain } = await import("../derive-7365SUFU.js");
173
- return deriveMain(subArgs);
174
- }
175
- case "decision-flow": {
176
- const { main: decisionFlowMain } = await import("../decision-flow-LETV5NWY.js");
177
- return decisionFlowMain(subArgs);
178
- }
179
- case "equity-penalties": {
180
- const { main: equityPenaltiesMain } = await import("../equity-penalties-63FGB3I2.js");
181
- return equityPenaltiesMain(subArgs);
182
- }
183
- case "configure-ai": {
184
- const { main: configureAiMain } = await import("../configure-ai-TK67ZWZL.js");
185
- return configureAiMain(subArgs);
186
- }
187
- case "--help":
188
- case "-h":
189
- case "help":
190
- case void 0: {
191
- process.stdout.write(USAGE + "\n");
192
- process.exit(0);
193
- break;
194
- }
195
- default: {
196
- process.stderr.write(`Unknown command: "${command}"
197
-
198
- `);
199
- process.stdout.write(USAGE + "\n");
200
- process.exit(1);
201
- }
202
- }
203
- }
204
- main().catch((e) => {
205
- process.stderr.write(`Fatal: ${e}
206
- `);
207
- process.exit(3);
208
- });