@neuroverseos/governance 0.3.4 → 0.5.0

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 (104) hide show
  1. package/README.md +280 -405
  2. package/dist/adapters/autoresearch.cjs +63 -9
  3. package/dist/adapters/autoresearch.d.cts +1 -1
  4. package/dist/adapters/autoresearch.d.ts +1 -1
  5. package/dist/adapters/autoresearch.js +3 -3
  6. package/dist/adapters/deep-agents.cjs +63 -9
  7. package/dist/adapters/deep-agents.d.cts +2 -2
  8. package/dist/adapters/deep-agents.d.ts +2 -2
  9. package/dist/adapters/deep-agents.js +3 -3
  10. package/dist/adapters/express.cjs +63 -9
  11. package/dist/adapters/express.d.cts +1 -1
  12. package/dist/adapters/express.d.ts +1 -1
  13. package/dist/adapters/express.js +3 -3
  14. package/dist/adapters/index.cjs +961 -9
  15. package/dist/adapters/index.d.cts +316 -2
  16. package/dist/adapters/index.d.ts +316 -2
  17. package/dist/adapters/index.js +45 -8
  18. package/dist/adapters/langchain.cjs +63 -9
  19. package/dist/adapters/langchain.d.cts +2 -2
  20. package/dist/adapters/langchain.d.ts +2 -2
  21. package/dist/adapters/langchain.js +3 -3
  22. package/dist/adapters/openai.cjs +63 -9
  23. package/dist/adapters/openai.d.cts +2 -2
  24. package/dist/adapters/openai.d.ts +2 -2
  25. package/dist/adapters/openai.js +3 -3
  26. package/dist/adapters/openclaw.cjs +63 -9
  27. package/dist/adapters/openclaw.d.cts +2 -2
  28. package/dist/adapters/openclaw.d.ts +2 -2
  29. package/dist/adapters/openclaw.js +3 -3
  30. package/dist/{add-ROOZLU62.js → add-LYHDZ5RL.js} +1 -1
  31. package/dist/{behavioral-MJO34S6Q.js → behavioral-SPWPGYXL.js} +2 -2
  32. package/dist/{bootstrap-CQRZVOXK.js → bootstrap-IP5QMC3Q.js} +2 -2
  33. package/dist/{bootstrap-emitter-Q7UIJZ2O.js → bootstrap-emitter-GIMOJFOC.js} +1 -1
  34. package/dist/{bootstrap-parser-EEF36XDU.js → bootstrap-parser-LBLGVEMU.js} +1 -1
  35. package/dist/browser.global.js +149 -5
  36. package/dist/{build-ZHPMX5AZ.js → build-SCAWPA7E.js} +4 -4
  37. package/dist/{chunk-G7DJ6VOD.js → chunk-25XHSTPT.js} +2 -2
  38. package/dist/{chunk-A7GKPPU7.js → chunk-2VAWP6FI.js} +1 -1
  39. package/dist/{chunk-EMQDLDAF.js → chunk-3NZMMSOW.js} +80 -2
  40. package/dist/{chunk-YEKMVDWK.js → chunk-4G6WHPLI.js} +5 -5
  41. package/dist/{chunk-B6OXJLJ5.js → chunk-5JUZ4HL7.js} +2 -2
  42. package/dist/{chunk-VXHSMA3I.js → chunk-6CV4XG3J.js} +1 -1
  43. package/dist/{chunk-5TPFNWRU.js → chunk-7D7PZLB7.js} +3 -3
  44. package/dist/{chunk-ZWI3NIXK.js → chunk-7QIAF377.js} +54 -3
  45. package/dist/{chunk-CTZHONLA.js → chunk-BXLTEUS4.js} +2 -2
  46. package/dist/{chunk-O5ABKEA7.js → chunk-DWHUZUEY.js} +2 -2
  47. package/dist/{chunk-U6U7EJZL.js → chunk-JKGPSFGH.js} +2 -2
  48. package/dist/{chunk-3WQLXYTP.js → chunk-MFKHTE5R.js} +2 -2
  49. package/dist/{chunk-TG6SEF24.js → chunk-OQU65525.js} +1 -1
  50. package/dist/{chunk-4FLICVVA.js → chunk-TD5GKIHP.js} +2 -2
  51. package/dist/chunk-U6FRAEQJ.js +893 -0
  52. package/dist/{chunk-IS4WUH6Y.js → chunk-UTH7OXTM.js} +2 -2
  53. package/dist/{chunk-BNKJPUPQ.js → chunk-V4FZHJQX.js} +2 -2
  54. package/dist/{chunk-F66BVUYB.js → chunk-Y6WXAPKY.js} +3 -3
  55. package/dist/{chunk-QXBFT7NI.js → chunk-YNYCQECH.js} +2 -2
  56. package/dist/{chunk-PVTQQS3Y.js → chunk-YPCVY4GS.js} +31 -0
  57. package/dist/{chunk-W7LLXRGY.js → chunk-ZAF6JH23.js} +65 -10
  58. package/dist/cli/neuroverse.cjs +3080 -166
  59. package/dist/cli/neuroverse.js +40 -24
  60. package/dist/cli/plan.cjs +176 -12
  61. package/dist/cli/plan.js +2 -2
  62. package/dist/cli/run.cjs +63 -9
  63. package/dist/cli/run.js +2 -2
  64. package/dist/configure-world-XU2COHOZ.js +705 -0
  65. package/dist/{decision-flow-M63D47LO.js → decision-flow-3K4D72G4.js} +2 -2
  66. package/dist/{demo-G43RLCPK.js → demo-66MMJTEH.js} +3 -3
  67. package/dist/{derive-LMDUTXDD.js → derive-AUQE3L3P.js} +5 -5
  68. package/dist/{doctor-6BC6X2VO.js → doctor-EY7LKSYY.js} +2 -1
  69. package/dist/{equity-penalties-SG5IZQ7I.js → equity-penalties-WWC7UDQD.js} +3 -3
  70. package/dist/{explain-RHBU2GBR.js → explain-MUSGDT67.js} +1 -1
  71. package/dist/{guard-AEEJNWLD.js → guard-W3BMQPBJ.js} +3 -3
  72. package/dist/{guard-contract-B7lplwm9.d.ts → guard-contract-CLBbTGK_.d.cts} +91 -1
  73. package/dist/{guard-contract-B7lplwm9.d.cts → guard-contract-CLBbTGK_.d.ts} +91 -1
  74. package/dist/{guard-engine-PNR6MHCM.js → guard-engine-N7TUIUU7.js} +5 -3
  75. package/dist/{impact-3XVDSCBU.js → impact-WIAM66IH.js} +3 -3
  76. package/dist/{improve-TQP4ECSY.js → improve-PJDAWW4Q.js} +3 -3
  77. package/dist/index.cjs +230 -14
  78. package/dist/index.d.cts +72 -3
  79. package/dist/index.d.ts +72 -3
  80. package/dist/index.js +45 -43
  81. package/dist/{init-FYPV4SST.js → init-TKIJDR7I.js} +5 -1
  82. package/dist/lens-IP6GIZ2Q.js +1017 -0
  83. package/dist/{mcp-server-5Y3ZM7TV.js → mcp-server-OG3PPVD2.js} +3 -3
  84. package/dist/mentraos-LLH7KEV4.js +48 -0
  85. package/dist/{playground-VZBNPPBO.js → playground-4BK2XQ47.js} +2 -2
  86. package/dist/{redteam-MZPZD3EF.js → redteam-BRZALBPP.js} +2 -2
  87. package/dist/{session-JYOARW54.js → session-SGRUT2UH.js} +3 -3
  88. package/dist/{shared-C_zpdvBm.d.cts → shared-BGzmYP5g.d.cts} +1 -1
  89. package/dist/{shared-Cf7yxx4-.d.ts → shared-CwGpPheR.d.ts} +1 -1
  90. package/dist/{simulate-LJXYBC6M.js → simulate-FGXKIH7V.js} +17 -4
  91. package/dist/spatial/index.cjs +682 -0
  92. package/dist/spatial/index.d.cts +517 -0
  93. package/dist/spatial/index.d.ts +517 -0
  94. package/dist/spatial/index.js +633 -0
  95. package/dist/{test-BOOR4A5F.js → test-PT44BSYG.js} +2 -2
  96. package/dist/{trace-PKV4KX56.js → trace-2YDNAXMK.js} +2 -2
  97. package/dist/{validate-RALX7CZS.js → validate-Q5O5TGLT.js} +1 -1
  98. package/dist/{world-BIP4GZBZ.js → world-V52ZMH26.js} +1 -1
  99. package/dist/{world-loader-Y6HMQH2D.js → world-loader-C4D3VPP3.js} +1 -1
  100. package/dist/worlds/mentraos-smartglasses.nv-world.md +423 -0
  101. package/dist/worlds/mentraos-spatial.nv-world.md +68 -0
  102. package/dist/worlds/user-rules.nv-world.md +328 -0
  103. package/package.json +16 -3
  104. package/dist/{configure-ai-5MP5DWTT.js → configure-ai-LL3VAPQW.js} +3 -3
package/dist/index.js CHANGED
@@ -1,3 +1,14 @@
1
+ import {
2
+ generateImpactReport,
3
+ generateImpactReportFromFile,
4
+ renderImpactReport
5
+ } from "./chunk-OQU65525.js";
6
+ import {
7
+ GUARD_EXIT_CODES,
8
+ classifyIntentWithAI,
9
+ evaluateGuardWithAI,
10
+ extractContentFields
11
+ } from "./chunk-6CV4XG3J.js";
1
12
  import {
2
13
  actionToGuardEvent,
3
14
  createGovernor,
@@ -7,12 +18,7 @@ import {
7
18
  handleListPresets,
8
19
  handleReasonRequest,
9
20
  writeTempWorld
10
- } from "./chunk-U6U7EJZL.js";
11
- import {
12
- generateImpactReport,
13
- generateImpactReportFromFile,
14
- renderImpactReport
15
- } from "./chunk-TG6SEF24.js";
21
+ } from "./chunk-JKGPSFGH.js";
16
22
  import {
17
23
  adaptationFromVerdict,
18
24
  classifyAdaptation,
@@ -27,11 +33,19 @@ import {
27
33
  readAuditLog,
28
34
  summarizeAuditEvents,
29
35
  verdictToAuditEvent
30
- } from "./chunk-A7GKPPU7.js";
36
+ } from "./chunk-2VAWP6FI.js";
37
+ import {
38
+ explainWorld,
39
+ renderExplainText
40
+ } from "./chunk-ZJTDUCC2.js";
31
41
  import {
32
42
  improveWorld,
33
43
  renderImproveText
34
- } from "./chunk-F66BVUYB.js";
44
+ } from "./chunk-Y6WXAPKY.js";
45
+ import {
46
+ renderSimulateText,
47
+ simulateWorld
48
+ } from "./chunk-7QIAF377.js";
35
49
  import {
36
50
  BOOTSTRAP_EXIT_CODES
37
51
  } from "./chunk-4NGDRRQH.js";
@@ -39,11 +53,18 @@ import {
39
53
  VALIDATE_EXIT_CODES
40
54
  } from "./chunk-I3RRAYK2.js";
41
55
  import {
42
- GUARD_EXIT_CODES,
43
- classifyIntentWithAI,
44
- evaluateGuardWithAI,
45
- extractContentFields
46
- } from "./chunk-VXHSMA3I.js";
56
+ SessionManager,
57
+ runInteractiveMode,
58
+ runPipeMode
59
+ } from "./chunk-UTH7OXTM.js";
60
+ import {
61
+ applyConsequence,
62
+ applyReward,
63
+ createAgentState,
64
+ generateDecisionFlow,
65
+ renderDecisionFlow,
66
+ tickAgentStates
67
+ } from "./chunk-D2UCV5AK.js";
47
68
  import {
48
69
  ModelAdapter,
49
70
  PROVIDERS,
@@ -51,36 +72,28 @@ import {
51
72
  } from "./chunk-A5W4GNQO.js";
52
73
  import {
53
74
  McpGovernanceServer
54
- } from "./chunk-B6OXJLJ5.js";
75
+ } from "./chunk-5JUZ4HL7.js";
55
76
  import {
56
77
  addGuard,
57
78
  addInvariant,
58
79
  addRule,
59
80
  classifyIntent,
60
81
  parseGuardDescription
61
- } from "./chunk-5TPFNWRU.js";
82
+ } from "./chunk-7D7PZLB7.js";
62
83
  import {
63
84
  deriveWorld,
64
85
  extractWorldMarkdown,
65
86
  normalizeWorldMarkdown
66
- } from "./chunk-YEKMVDWK.js";
87
+ } from "./chunk-4G6WHPLI.js";
67
88
  import {
68
89
  CONFIGURE_AI_EXIT_CODES,
69
90
  DERIVE_EXIT_CODES
70
91
  } from "./chunk-FMSTRBBS.js";
71
- import "./chunk-OT6PXH54.js";
72
92
  import "./chunk-INWQHLPS.js";
93
+ import "./chunk-OT6PXH54.js";
73
94
  import {
74
95
  validateWorld
75
96
  } from "./chunk-7P3S7MAY.js";
76
- import {
77
- explainWorld,
78
- renderExplainText
79
- } from "./chunk-ZJTDUCC2.js";
80
- import {
81
- renderSimulateText,
82
- simulateWorld
83
- } from "./chunk-ZWI3NIXK.js";
84
97
  import {
85
98
  PLAN_EXIT_CODES,
86
99
  parsePlanMarkdown
@@ -94,27 +107,15 @@ import {
94
107
  } from "./chunk-AKW5YVCE.js";
95
108
  import {
96
109
  parseWorldMarkdown
97
- } from "./chunk-EMQDLDAF.js";
110
+ } from "./chunk-3NZMMSOW.js";
98
111
  import {
99
112
  emitWorldDefinition
100
- } from "./chunk-PVTQQS3Y.js";
101
- import {
102
- SessionManager,
103
- runInteractiveMode,
104
- runPipeMode
105
- } from "./chunk-IS4WUH6Y.js";
106
- import {
107
- applyConsequence,
108
- applyReward,
109
- createAgentState,
110
- generateDecisionFlow,
111
- renderDecisionFlow,
112
- tickAgentStates
113
- } from "./chunk-D2UCV5AK.js";
113
+ } from "./chunk-YPCVY4GS.js";
114
114
  import {
115
115
  evaluateGuard,
116
- eventToAllowlistKey
117
- } from "./chunk-W7LLXRGY.js";
116
+ eventToAllowlistKey,
117
+ verdictToEvent
118
+ } from "./chunk-ZAF6JH23.js";
118
119
  import {
119
120
  advancePlan,
120
121
  buildPlanCheck,
@@ -124,7 +125,7 @@ import {
124
125
  import {
125
126
  loadWorld,
126
127
  loadWorldFromDirectory
127
- } from "./chunk-CTZHONLA.js";
128
+ } from "./chunk-BXLTEUS4.js";
128
129
  import "./chunk-QWGCMQQD.js";
129
130
 
130
131
  // src/engine/verdict-formatter.ts
@@ -475,5 +476,6 @@ export {
475
476
  tickAgentStates,
476
477
  validateWorld,
477
478
  verdictToAuditEvent,
479
+ verdictToEvent,
478
480
  writeTempWorld
479
481
  };
@@ -129,9 +129,13 @@ async function main(argv = process.argv.slice(2)) {
129
129
  `neuroverse bootstrap --input ${args.outputPath} --output ./world/ --validate`,
130
130
  "neuroverse validate --world ./world/",
131
131
  `echo '{"intent":"test action"}' | neuroverse guard --world ./world/`
132
- ]
132
+ ],
133
+ tip: "Run `neuroverse configure-world` for an interactive wizard that builds state variables, rules, and gates from plain language \u2014 no syntax required."
133
134
  };
134
135
  process.stdout.write(JSON.stringify(result, null, 2) + "\n");
136
+ process.stderr.write(
137
+ "\nTip: Run `neuroverse configure-world` for an interactive wizard\nthat builds state, rules, and gates from plain language \u2014 no syntax required.\n"
138
+ );
135
139
  process.exit(0);
136
140
  } catch (e) {
137
141
  process.stderr.write(`Init failed: ${e}