@neuroverseos/governance 0.3.0 → 0.3.3

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 (126) hide show
  1. package/.well-known/ai-plugin.json +34 -9
  2. package/AGENTS.md +72 -24
  3. package/README.md +352 -237
  4. package/dist/adapters/autoresearch.cjs +1152 -3
  5. package/dist/adapters/autoresearch.d.cts +11 -3
  6. package/dist/adapters/autoresearch.d.ts +11 -3
  7. package/dist/adapters/autoresearch.js +9 -4
  8. package/dist/adapters/deep-agents.cjs +1528 -0
  9. package/dist/adapters/deep-agents.d.cts +181 -0
  10. package/dist/adapters/deep-agents.d.ts +181 -0
  11. package/dist/adapters/deep-agents.js +17 -0
  12. package/dist/adapters/express.cjs +171 -32
  13. package/dist/adapters/express.d.cts +1 -1
  14. package/dist/adapters/express.d.ts +1 -1
  15. package/dist/adapters/express.js +5 -5
  16. package/dist/adapters/index.cjs +564 -121
  17. package/dist/adapters/index.d.cts +3 -1
  18. package/dist/adapters/index.d.ts +3 -1
  19. package/dist/adapters/index.js +38 -16
  20. package/dist/adapters/langchain.cjs +217 -57
  21. package/dist/adapters/langchain.d.cts +5 -5
  22. package/dist/adapters/langchain.d.ts +5 -5
  23. package/dist/adapters/langchain.js +6 -5
  24. package/dist/adapters/openai.cjs +219 -59
  25. package/dist/adapters/openai.d.cts +5 -5
  26. package/dist/adapters/openai.d.ts +5 -5
  27. package/dist/adapters/openai.js +6 -5
  28. package/dist/adapters/openclaw.cjs +217 -57
  29. package/dist/adapters/openclaw.d.cts +6 -6
  30. package/dist/adapters/openclaw.d.ts +6 -6
  31. package/dist/adapters/openclaw.js +6 -5
  32. package/dist/add-ROOZLU62.js +314 -0
  33. package/dist/behavioral-MJO34S6Q.js +118 -0
  34. package/dist/{bootstrap-GXVDZNF7.js → bootstrap-CQRZVOXK.js} +6 -4
  35. package/dist/bootstrap-emitter-Q7UIJZ2O.js +7 -0
  36. package/dist/bootstrap-parser-EEF36XDU.js +7 -0
  37. package/dist/browser.global.js +941 -0
  38. package/dist/{build-P42YFKQV.js → build-QKOBBC23.js} +7 -5
  39. package/dist/{chunk-COT5XS4V.js → chunk-3WQLXYTP.js} +17 -35
  40. package/dist/{chunk-ER62HNGF.js → chunk-4FLICVVA.js} +17 -37
  41. package/dist/chunk-5TPFNWRU.js +215 -0
  42. package/dist/chunk-5U2MQO5P.js +57 -0
  43. package/dist/{chunk-NF5POFCI.js → chunk-6S5CFQXY.js} +6 -4
  44. package/dist/{chunk-QPASI2BR.js → chunk-A7GKPPU7.js} +49 -10
  45. package/dist/{chunk-OGL7QXZS.js → chunk-B6OXJLJ5.js} +17 -3
  46. package/dist/{chunk-2PQU3VAN.js → chunk-BNKJPUPQ.js} +17 -35
  47. package/dist/chunk-BQZMOEML.js +43 -0
  48. package/dist/chunk-CNSO6XW5.js +207 -0
  49. package/dist/{chunk-JZPQGIKR.js → chunk-CTZHONLA.js} +65 -9
  50. package/dist/chunk-D2UCV5AK.js +326 -0
  51. package/dist/{chunk-XPDMYECO.js → chunk-EMQDLDAF.js} +1 -185
  52. package/dist/{chunk-GR6DGCZ2.js → chunk-F66BVUYB.js} +3 -3
  53. package/dist/{chunk-2NICNKOM.js → chunk-G7DJ6VOD.js} +5 -4
  54. package/dist/{chunk-4A7LISES.js → chunk-IS4WUH6Y.js} +45 -6
  55. package/dist/{chunk-MWDQ4MJB.js → chunk-MH7BT4VH.js} +5 -1
  56. package/dist/chunk-O5ABKEA7.js +304 -0
  57. package/dist/chunk-PVTQQS3Y.js +186 -0
  58. package/dist/{chunk-4QXB6PEO.js → chunk-QLPTHTVB.js} +37 -16
  59. package/dist/chunk-QWGCMQQD.js +16 -0
  60. package/dist/{chunk-T5EUJQE5.js → chunk-QXBFT7NI.js} +31 -2
  61. package/dist/{chunk-PDOZHZWL.js → chunk-TG6SEF24.js} +25 -4
  62. package/dist/chunk-U6U7EJZL.js +177 -0
  63. package/dist/{chunk-4JRYGIO7.js → chunk-W7LLXRGY.js} +110 -7
  64. package/dist/{chunk-BUWWN2NX.js → chunk-ZJTDUCC2.js} +9 -7
  65. package/dist/{chunk-FYS2CBUW.js → chunk-ZWI3NIXK.js} +10 -0
  66. package/dist/cli/neuroverse.cjs +5091 -2348
  67. package/dist/cli/neuroverse.js +52 -21
  68. package/dist/cli/plan.cjs +881 -41
  69. package/dist/cli/plan.js +7 -15
  70. package/dist/cli/run.cjs +289 -34
  71. package/dist/cli/run.js +4 -4
  72. package/dist/{configure-ai-TK67ZWZL.js → configure-ai-6TZ3MCSI.js} +1 -1
  73. package/dist/decision-flow-M63D47LO.js +61 -0
  74. package/dist/demo-G43RLCPK.js +469 -0
  75. package/dist/{derive-TLIV4OOU.js → derive-FJZVIPUZ.js} +5 -4
  76. package/dist/{doctor-XPDLEYXN.js → doctor-6BC6X2VO.js} +6 -4
  77. package/dist/equity-penalties-SG5IZQ7I.js +244 -0
  78. package/dist/{explain-IDCRWMPX.js → explain-RHBU2GBR.js} +6 -25
  79. package/dist/{guard-RV65TT4L.js → guard-AJCCGZMF.js} +8 -12
  80. package/dist/{guard-contract-WZx__PmU.d.cts → guard-contract-DqFcTScd.d.cts} +117 -5
  81. package/dist/{guard-contract-WZx__PmU.d.ts → guard-contract-DqFcTScd.d.ts} +117 -5
  82. package/dist/{guard-engine-JLTUARGU.js → guard-engine-PNR6MHCM.js} +3 -3
  83. package/dist/{impact-XPECYRLH.js → impact-3XVDSCBU.js} +5 -5
  84. package/dist/{improve-GPUBKTEA.js → improve-TQP4ECSY.js} +7 -26
  85. package/dist/index.cjs +5597 -4279
  86. package/dist/index.d.cts +597 -18
  87. package/dist/index.d.ts +597 -18
  88. package/dist/index.js +134 -41
  89. package/dist/{infer-world-7GVZWFX4.js → infer-world-IFXCACJ5.js} +1 -1
  90. package/dist/{init-PKPIYHYE.js → init-FYPV4SST.js} +1 -1
  91. package/dist/{init-world-VWMQZQC7.js → init-world-TI7ARHBT.js} +1 -1
  92. package/dist/mcp-server-5Y3ZM7TV.js +13 -0
  93. package/dist/{model-adapter-BB7G4MFI.js → model-adapter-VXEKB4LS.js} +1 -1
  94. package/dist/{playground-E664U4T6.js → playground-VZBNPPBO.js} +29 -19
  95. package/dist/{redteam-Z7WREJ44.js → redteam-MZPZD3EF.js} +4 -4
  96. package/dist/session-JYOARW54.js +15 -0
  97. package/dist/shared-7RLUHNMU.js +16 -0
  98. package/dist/shared-B8dvUUD8.d.cts +60 -0
  99. package/dist/shared-Dr5Wiay8.d.ts +60 -0
  100. package/dist/{simulate-VDOYQFRO.js → simulate-LJXYBC6M.js} +8 -33
  101. package/dist/{test-OGXJK4QU.js → test-BOOR4A5F.js} +4 -4
  102. package/dist/{trace-JVF67VR3.js → trace-PKV4KX56.js} +4 -4
  103. package/dist/{validate-LLBWVPGV.js → validate-RALX7CZS.js} +2 -2
  104. package/dist/{validate-engine-UIABSIHD.js → validate-engine-7ZXFVGF2.js} +1 -1
  105. package/dist/viz/assets/index-B8SaeJZZ.js +23 -0
  106. package/dist/viz/index.html +23 -0
  107. package/dist/{world-LAXO6DOX.js → world-BIP4GZBZ.js} +9 -11
  108. package/dist/world-loader-Y6HMQH2D.js +13 -0
  109. package/dist/worlds/coding-agent.nv-world.md +211 -0
  110. package/dist/worlds/research-agent.nv-world.md +169 -0
  111. package/dist/worlds/social-media.nv-world.md +198 -0
  112. package/dist/worlds/trading-agent.nv-world.md +218 -0
  113. package/examples/social-media-sim/bridge.py +209 -0
  114. package/examples/social-media-sim/simulation.py +927 -0
  115. package/package.json +30 -4
  116. package/policies/content-moderation-rules.txt +8 -0
  117. package/policies/marketing-rules.txt +8 -0
  118. package/policies/science-research-rules.txt +11 -0
  119. package/policies/social-media-rules.txt +7 -0
  120. package/policies/strict-rules.txt +8 -0
  121. package/policies/trading-rules.txt +8 -0
  122. package/simulate.html +1567 -0
  123. package/dist/chunk-YZFATT7X.js +0 -9
  124. package/dist/mcp-server-FPVSU32Z.js +0 -13
  125. package/dist/session-EKTRSR7C.js +0 -14
  126. package/dist/world-loader-HMPTOEA2.js +0 -9
@@ -1,4 +1,4 @@
1
- import { W as WorldDefinition, G as GuardEvent } from '../guard-contract-WZx__PmU.cjs';
1
+ import { W as WorldDefinition, G as GuardEvent, a as GuardVerdict } from '../guard-contract-DqFcTScd.cjs';
2
2
 
3
3
  /**
4
4
  * Autoresearch Adapter — Bridge between NeuroVerse governance and autoresearch loops
@@ -54,6 +54,8 @@ interface AutoresearchGovernorConfig {
54
54
  declare class AutoresearchGovernor {
55
55
  private config;
56
56
  private state;
57
+ private world?;
58
+ private engineOptions;
57
59
  constructor(config: AutoresearchGovernorConfig);
58
60
  /**
59
61
  * Convert an experiment proposal into a GuardEvent for governance evaluation.
@@ -61,12 +63,14 @@ declare class AutoresearchGovernor {
61
63
  proposalToGuardEvent(proposal: ExperimentProposal): GuardEvent;
62
64
  /**
63
65
  * Evaluate an experiment proposal against governance rules.
64
- * Returns a simplified verdict without requiring the full guard engine.
66
+ * Routes through the guard engine when a world is loaded,
67
+ * then layers on research-specific checks (budget, constraints, drift).
65
68
  */
66
69
  evaluateProposal(proposal: ExperimentProposal): {
67
70
  allowed: boolean;
68
71
  reason: string;
69
72
  warnings: string[];
73
+ verdict?: GuardVerdict;
70
74
  };
71
75
  /**
72
76
  * Record an experiment result and update research state.
@@ -99,5 +103,9 @@ declare class AutoresearchGovernor {
99
103
  */
100
104
  exportState(): ResearchState;
101
105
  }
106
+ /**
107
+ * Create an AutoresearchGovernor with a world loaded from disk.
108
+ */
109
+ declare function createAutoresearchGovernor(worldPath: string, config: Omit<AutoresearchGovernorConfig, 'world' | 'worldPath'>): Promise<AutoresearchGovernor>;
102
110
 
103
- export { AutoresearchGovernor, type AutoresearchGovernorConfig, type ExperimentProposal, type ExperimentResult, type ResearchState };
111
+ export { AutoresearchGovernor, type AutoresearchGovernorConfig, type ExperimentProposal, type ExperimentResult, type ResearchState, createAutoresearchGovernor };
@@ -1,4 +1,4 @@
1
- import { W as WorldDefinition, G as GuardEvent } from '../guard-contract-WZx__PmU.js';
1
+ import { W as WorldDefinition, G as GuardEvent, a as GuardVerdict } from '../guard-contract-DqFcTScd.js';
2
2
 
3
3
  /**
4
4
  * Autoresearch Adapter — Bridge between NeuroVerse governance and autoresearch loops
@@ -54,6 +54,8 @@ interface AutoresearchGovernorConfig {
54
54
  declare class AutoresearchGovernor {
55
55
  private config;
56
56
  private state;
57
+ private world?;
58
+ private engineOptions;
57
59
  constructor(config: AutoresearchGovernorConfig);
58
60
  /**
59
61
  * Convert an experiment proposal into a GuardEvent for governance evaluation.
@@ -61,12 +63,14 @@ declare class AutoresearchGovernor {
61
63
  proposalToGuardEvent(proposal: ExperimentProposal): GuardEvent;
62
64
  /**
63
65
  * Evaluate an experiment proposal against governance rules.
64
- * Returns a simplified verdict without requiring the full guard engine.
66
+ * Routes through the guard engine when a world is loaded,
67
+ * then layers on research-specific checks (budget, constraints, drift).
65
68
  */
66
69
  evaluateProposal(proposal: ExperimentProposal): {
67
70
  allowed: boolean;
68
71
  reason: string;
69
72
  warnings: string[];
73
+ verdict?: GuardVerdict;
70
74
  };
71
75
  /**
72
76
  * Record an experiment result and update research state.
@@ -99,5 +103,9 @@ declare class AutoresearchGovernor {
99
103
  */
100
104
  exportState(): ResearchState;
101
105
  }
106
+ /**
107
+ * Create an AutoresearchGovernor with a world loaded from disk.
108
+ */
109
+ declare function createAutoresearchGovernor(worldPath: string, config: Omit<AutoresearchGovernorConfig, 'world' | 'worldPath'>): Promise<AutoresearchGovernor>;
102
110
 
103
- export { AutoresearchGovernor, type AutoresearchGovernorConfig, type ExperimentProposal, type ExperimentResult, type ResearchState };
111
+ export { AutoresearchGovernor, type AutoresearchGovernorConfig, type ExperimentProposal, type ExperimentResult, type ResearchState, createAutoresearchGovernor };
@@ -1,7 +1,12 @@
1
1
  import {
2
- AutoresearchGovernor
3
- } from "../chunk-T5EUJQE5.js";
4
- import "../chunk-YZFATT7X.js";
2
+ AutoresearchGovernor,
3
+ createAutoresearchGovernor
4
+ } from "../chunk-QXBFT7NI.js";
5
+ import "../chunk-W7LLXRGY.js";
6
+ import "../chunk-QLPTHTVB.js";
7
+ import "../chunk-CTZHONLA.js";
8
+ import "../chunk-QWGCMQQD.js";
5
9
  export {
6
- AutoresearchGovernor
10
+ AutoresearchGovernor,
11
+ createAutoresearchGovernor
7
12
  };