@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.
Files changed (105) hide show
  1. package/README.md +20 -0
  2. package/package.json +16 -3
  3. package/policies/content-moderation-rules.txt +8 -0
  4. package/policies/marketing-rules.txt +8 -0
  5. package/policies/science-research-rules.txt +11 -0
  6. package/policies/social-media-rules.txt +7 -0
  7. package/policies/strict-rules.txt +8 -0
  8. package/policies/trading-rules.txt +8 -0
  9. package/simulate.html +1899 -0
  10. package/dist/adapters/autoresearch.cjs +0 -196
  11. package/dist/adapters/autoresearch.d.cts +0 -103
  12. package/dist/adapters/autoresearch.d.ts +0 -103
  13. package/dist/adapters/autoresearch.js +0 -7
  14. package/dist/adapters/express.cjs +0 -1114
  15. package/dist/adapters/express.d.cts +0 -66
  16. package/dist/adapters/express.d.ts +0 -66
  17. package/dist/adapters/express.js +0 -12
  18. package/dist/adapters/index.cjs +0 -1669
  19. package/dist/adapters/index.d.cts +0 -6
  20. package/dist/adapters/index.d.ts +0 -6
  21. package/dist/adapters/index.js +0 -46
  22. package/dist/adapters/langchain.cjs +0 -1155
  23. package/dist/adapters/langchain.d.cts +0 -89
  24. package/dist/adapters/langchain.d.ts +0 -89
  25. package/dist/adapters/langchain.js +0 -16
  26. package/dist/adapters/openai.cjs +0 -1185
  27. package/dist/adapters/openai.d.cts +0 -99
  28. package/dist/adapters/openai.d.ts +0 -99
  29. package/dist/adapters/openai.js +0 -16
  30. package/dist/adapters/openclaw.cjs +0 -1177
  31. package/dist/adapters/openclaw.d.cts +0 -99
  32. package/dist/adapters/openclaw.d.ts +0 -99
  33. package/dist/adapters/openclaw.js +0 -16
  34. package/dist/bootstrap-GXVDZNF7.js +0 -114
  35. package/dist/build-P42YFKQV.js +0 -339
  36. package/dist/chunk-2NICNKOM.js +0 -100
  37. package/dist/chunk-2PQU3VAN.js +0 -131
  38. package/dist/chunk-4A7LISES.js +0 -324
  39. package/dist/chunk-4JRYGIO7.js +0 -727
  40. package/dist/chunk-4NGDRRQH.js +0 -10
  41. package/dist/chunk-4QXB6PEO.js +0 -232
  42. package/dist/chunk-6CZSKEY5.js +0 -164
  43. package/dist/chunk-7P3S7MAY.js +0 -1090
  44. package/dist/chunk-A5W4GNQO.js +0 -130
  45. package/dist/chunk-AKW5YVCE.js +0 -96
  46. package/dist/chunk-BUWWN2NX.js +0 -192
  47. package/dist/chunk-COT5XS4V.js +0 -109
  48. package/dist/chunk-ER62HNGF.js +0 -139
  49. package/dist/chunk-FYS2CBUW.js +0 -304
  50. package/dist/chunk-GR6DGCZ2.js +0 -340
  51. package/dist/chunk-I3RRAYK2.js +0 -11
  52. package/dist/chunk-JZPQGIKR.js +0 -79
  53. package/dist/chunk-MWDQ4MJB.js +0 -11
  54. package/dist/chunk-NF5POFCI.js +0 -622
  55. package/dist/chunk-OGL7QXZS.js +0 -608
  56. package/dist/chunk-OT6PXH54.js +0 -61
  57. package/dist/chunk-PDOZHZWL.js +0 -225
  58. package/dist/chunk-Q6O7ZLO2.js +0 -62
  59. package/dist/chunk-QPASI2BR.js +0 -187
  60. package/dist/chunk-T5EUJQE5.js +0 -172
  61. package/dist/chunk-XPDMYECO.js +0 -642
  62. package/dist/chunk-YZFATT7X.js +0 -9
  63. package/dist/cli/neuroverse.cjs +0 -11448
  64. package/dist/cli/neuroverse.d.cts +0 -1
  65. package/dist/cli/neuroverse.d.ts +0 -1
  66. package/dist/cli/neuroverse.js +0 -196
  67. package/dist/cli/plan.cjs +0 -1599
  68. package/dist/cli/plan.d.cts +0 -20
  69. package/dist/cli/plan.d.ts +0 -20
  70. package/dist/cli/plan.js +0 -361
  71. package/dist/cli/run.cjs +0 -1746
  72. package/dist/cli/run.d.cts +0 -20
  73. package/dist/cli/run.d.ts +0 -20
  74. package/dist/cli/run.js +0 -143
  75. package/dist/configure-ai-TK67ZWZL.js +0 -132
  76. package/dist/derive-TLIV4OOU.js +0 -152
  77. package/dist/doctor-XPDLEYXN.js +0 -171
  78. package/dist/explain-IDCRWMPX.js +0 -70
  79. package/dist/guard-RV65TT4L.js +0 -96
  80. package/dist/guard-contract-WZx__PmU.d.cts +0 -709
  81. package/dist/guard-contract-WZx__PmU.d.ts +0 -709
  82. package/dist/guard-engine-JLTUARGU.js +0 -10
  83. package/dist/impact-XPECYRLH.js +0 -59
  84. package/dist/improve-GPUBKTEA.js +0 -85
  85. package/dist/index.cjs +0 -6273
  86. package/dist/index.d.cts +0 -1616
  87. package/dist/index.d.ts +0 -1616
  88. package/dist/index.js +0 -379
  89. package/dist/infer-world-7GVZWFX4.js +0 -543
  90. package/dist/init-PKPIYHYE.js +0 -144
  91. package/dist/init-world-VWMQZQC7.js +0 -223
  92. package/dist/mcp-server-FPVSU32Z.js +0 -13
  93. package/dist/model-adapter-BB7G4MFI.js +0 -11
  94. package/dist/playground-E664U4T6.js +0 -550
  95. package/dist/redteam-Z7WREJ44.js +0 -357
  96. package/dist/session-EKTRSR7C.js +0 -14
  97. package/dist/simulate-VDOYQFRO.js +0 -108
  98. package/dist/test-OGXJK4QU.js +0 -217
  99. package/dist/trace-JVF67VR3.js +0 -166
  100. package/dist/validate-LLBWVPGV.js +0 -81
  101. package/dist/validate-engine-UIABSIHD.js +0 -7
  102. package/dist/world-LAXO6DOX.js +0 -378
  103. package/dist/world-loader-HMPTOEA2.js +0 -9
  104. package/dist/worlds/autoresearch.nv-world.md +0 -230
  105. 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,196 +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
- world World management (status, diff, snapshot, rollback)
28
- derive AI-assisted synthesis of .nv-world.md from markdown
29
- bootstrap Compile .nv-world.md \u2192 world JSON files
30
- configure-ai Configure AI provider credentials
31
-
32
- Usage:
33
- neuroverse build <input.md> [--output <dir>]
34
- neuroverse explain <world-path-or-id> [--json]
35
- neuroverse simulate <world-path-or-id> [--steps N] [--set key=value] [--profile name]
36
- neuroverse improve <world-path-or-id> [--json]
37
- neuroverse init [--name "World Name"] [--output path]
38
- neuroverse init-world autoresearch [--context "topic"] [--dataset "name"] [--goal "goal"]
39
- neuroverse infer-world ./repo [--output path] [--json] [--dry-run]
40
- neuroverse validate --world <dir> [--format full|summary|findings]
41
- neuroverse guard --world <dir> [--trace] [--level basic|standard|strict]
42
- neuroverse test --world <dir> [--fuzz] [--count N]
43
- neuroverse redteam --world <dir> [--level basic|standard|strict]
44
- neuroverse doctor [--world <dir>] [--json]
45
- neuroverse playground --world <dir> [--port 4242]
46
- neuroverse trace [--log <path>] [--summary] [--filter BLOCK] [--last 20]
47
- neuroverse impact [--log <path>] [--json]
48
- neuroverse world status <path>
49
- neuroverse world diff <path1> <path2>
50
- neuroverse world snapshot <path>
51
- neuroverse world rollback <path>
52
- neuroverse derive --input <path> [--output <path>] [--dry-run]
53
- neuroverse bootstrap --input <.md> --output <dir> [--validate]
54
- neuroverse configure-ai --provider <name> --model <name> --api-key <key>
55
-
56
- Examples:
57
- neuroverse build horror-notes.md
58
- neuroverse explain inherited_silence
59
- neuroverse simulate inherited_silence --steps 5
60
- neuroverse improve inherited_silence
61
- neuroverse build ./docs/ --output ./my-world/
62
- neuroverse init --name "Customer Service Governance"
63
- neuroverse validate --world ./world/ --format summary
64
- echo '{"intent":"delete user data"}' | neuroverse guard --world ./world/ --trace
65
- neuroverse plan compile plan.md --output plan.json
66
- echo '{"intent":"write blog"}' | neuroverse plan check --plan plan.json
67
- neuroverse plan status --plan plan.json
68
- neuroverse plan advance write_blog_post --plan plan.json
69
- neuroverse plan derive plan.md --output ./derived-world/
70
- neuroverse run --pipe --world ./world/ --plan plan.json
71
- neuroverse run --interactive --world ./world/ --provider openai
72
- neuroverse mcp --world ./world/ --plan plan.json
73
- neuroverse test --world ./world/ --fuzz --count 50
74
- neuroverse redteam --world ./world/ --level strict
75
- neuroverse doctor
76
- neuroverse playground --world ./world/
77
- `.trim();
78
- async function main() {
79
- const args = process.argv.slice(2);
80
- const command = args[0];
81
- const subArgs = args.slice(1);
82
- switch (command) {
83
- case "build": {
84
- const { main: buildMain } = await import("../build-P42YFKQV.js");
85
- return buildMain(subArgs);
86
- }
87
- case "explain": {
88
- const { main: explainMain } = await import("../explain-IDCRWMPX.js");
89
- return explainMain(subArgs);
90
- }
91
- case "simulate": {
92
- const { main: simulateMain } = await import("../simulate-VDOYQFRO.js");
93
- return simulateMain(subArgs);
94
- }
95
- case "improve": {
96
- const { main: improveMain } = await import("../improve-GPUBKTEA.js");
97
- return improveMain(subArgs);
98
- }
99
- case "init": {
100
- const { main: initMain } = await import("../init-PKPIYHYE.js");
101
- return initMain(subArgs);
102
- }
103
- case "init-world": {
104
- const { main: initWorldMain } = await import("../init-world-VWMQZQC7.js");
105
- return initWorldMain(subArgs);
106
- }
107
- case "infer-world": {
108
- const { main: inferWorldMain } = await import("../infer-world-7GVZWFX4.js");
109
- return inferWorldMain(subArgs);
110
- }
111
- case "bootstrap": {
112
- const { main: bootstrapMain } = await import("../bootstrap-GXVDZNF7.js");
113
- return bootstrapMain(subArgs);
114
- }
115
- case "validate": {
116
- const { main: validateMain } = await import("../validate-LLBWVPGV.js");
117
- return validateMain(subArgs);
118
- }
119
- case "guard": {
120
- const { main: guardMain } = await import("../guard-RV65TT4L.js");
121
- return guardMain(subArgs);
122
- }
123
- case "test": {
124
- const { main: testMain } = await import("../test-OGXJK4QU.js");
125
- return testMain(subArgs);
126
- }
127
- case "redteam": {
128
- const { main: redteamMain } = await import("../redteam-Z7WREJ44.js");
129
- return redteamMain(subArgs);
130
- }
131
- case "doctor": {
132
- const { main: doctorMain } = await import("../doctor-XPDLEYXN.js");
133
- return doctorMain(subArgs);
134
- }
135
- case "playground": {
136
- const { main: playgroundMain } = await import("../playground-E664U4T6.js");
137
- return playgroundMain(subArgs);
138
- }
139
- case "plan": {
140
- const { main: planMain } = await import("./plan.js");
141
- return planMain(subArgs);
142
- }
143
- case "run": {
144
- const { main: runMain } = await import("./run.js");
145
- return runMain(subArgs);
146
- }
147
- case "mcp": {
148
- const { startMcpServer } = await import("../mcp-server-FPVSU32Z.js");
149
- return startMcpServer(subArgs);
150
- }
151
- case "worlds": {
152
- const { main: worldMain } = await import("../world-LAXO6DOX.js");
153
- return worldMain(["list", ...subArgs]);
154
- }
155
- case "trace": {
156
- const { main: traceMain } = await import("../trace-JVF67VR3.js");
157
- return traceMain(subArgs);
158
- }
159
- case "impact": {
160
- const { main: impactMain } = await import("../impact-XPECYRLH.js");
161
- return impactMain(subArgs);
162
- }
163
- case "world": {
164
- const { main: worldMain } = await import("../world-LAXO6DOX.js");
165
- return worldMain(subArgs);
166
- }
167
- case "derive": {
168
- const { main: deriveMain } = await import("../derive-TLIV4OOU.js");
169
- return deriveMain(subArgs);
170
- }
171
- case "configure-ai": {
172
- const { main: configureAiMain } = await import("../configure-ai-TK67ZWZL.js");
173
- return configureAiMain(subArgs);
174
- }
175
- case "--help":
176
- case "-h":
177
- case "help":
178
- case void 0: {
179
- process.stdout.write(USAGE + "\n");
180
- process.exit(0);
181
- break;
182
- }
183
- default: {
184
- process.stderr.write(`Unknown command: "${command}"
185
-
186
- `);
187
- process.stdout.write(USAGE + "\n");
188
- process.exit(1);
189
- }
190
- }
191
- }
192
- main().catch((e) => {
193
- process.stderr.write(`Fatal: ${e}
194
- `);
195
- process.exit(3);
196
- });