@neuroverseos/governance 0.2.2 → 0.3.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 (51) hide show
  1. package/.well-known/ai-plugin.json +26 -0
  2. package/.well-known/mcp.json +68 -0
  3. package/AGENTS.md +219 -0
  4. package/README.md +64 -4
  5. package/dist/adapters/autoresearch.cjs +196 -0
  6. package/dist/adapters/autoresearch.d.cts +103 -0
  7. package/dist/adapters/autoresearch.d.ts +103 -0
  8. package/dist/adapters/autoresearch.js +7 -0
  9. package/dist/adapters/express.d.cts +1 -1
  10. package/dist/adapters/express.d.ts +1 -1
  11. package/dist/adapters/express.js +1 -1
  12. package/dist/adapters/index.cjs +171 -0
  13. package/dist/adapters/index.d.cts +2 -1
  14. package/dist/adapters/index.d.ts +2 -1
  15. package/dist/adapters/index.js +8 -4
  16. package/dist/adapters/langchain.d.cts +1 -1
  17. package/dist/adapters/langchain.d.ts +1 -1
  18. package/dist/adapters/langchain.js +2 -2
  19. package/dist/adapters/openai.d.cts +1 -1
  20. package/dist/adapters/openai.d.ts +1 -1
  21. package/dist/adapters/openai.js +2 -2
  22. package/dist/adapters/openclaw.d.cts +1 -1
  23. package/dist/adapters/openclaw.d.ts +1 -1
  24. package/dist/adapters/openclaw.js +2 -2
  25. package/dist/chunk-T5EUJQE5.js +172 -0
  26. package/dist/cli/neuroverse.cjs +1157 -184
  27. package/dist/cli/neuroverse.js +18 -6
  28. package/dist/cli/run.js +2 -2
  29. package/dist/{doctor-QV6HELS5.js → doctor-XPDLEYXN.js} +1 -0
  30. package/dist/{guard-contract-Cm91Kp4j.d.cts → guard-contract-WZx__PmU.d.cts} +1 -1
  31. package/dist/{guard-contract-Cm91Kp4j.d.ts → guard-contract-WZx__PmU.d.ts} +1 -1
  32. package/dist/index.d.cts +2 -2
  33. package/dist/index.d.ts +2 -2
  34. package/dist/index.js +28 -28
  35. package/dist/infer-world-7GVZWFX4.js +543 -0
  36. package/dist/init-world-VWMQZQC7.js +223 -0
  37. package/dist/{mcp-server-LZVJHBT5.js → mcp-server-FPVSU32Z.js} +2 -2
  38. package/dist/{session-VISISNWJ.js → session-EKTRSR7C.js} +2 -2
  39. package/dist/worlds/autoresearch.nv-world.md +230 -0
  40. package/llms.txt +79 -0
  41. package/openapi.yaml +230 -0
  42. package/package.json +15 -4
  43. package/dist/{chunk-SKU3GAPD.js → chunk-2PQU3VAN.js} +3 -3
  44. package/dist/{chunk-KEST3MWO.js → chunk-4A7LISES.js} +3 -3
  45. package/dist/{chunk-RWXVAH6P.js → chunk-COT5XS4V.js} +3 -3
  46. package/dist/{chunk-OHAC6HJE.js → chunk-ER62HNGF.js} +3 -3
  47. package/dist/{chunk-DPVS43ZT.js → chunk-OGL7QXZS.js} +3 -3
  48. package/dist/{guard-GFLQZY6U.js → guard-RV65TT4L.js} +1 -1
  49. package/dist/{playground-FGOMASHN.js → playground-E664U4T6.js} +1 -1
  50. package/dist/{redteam-SK7AMIG3.js → redteam-Z7WREJ44.js} +1 -1
  51. package/dist/{test-75AVHC3R.js → test-OGXJK4QU.js} +1 -1
@@ -10,6 +10,8 @@ Commands:
10
10
  simulate Step-by-step state evolution
11
11
  improve Actionable suggestions for strengthening a world
12
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
13
15
  validate Static analysis on world files
14
16
  guard Runtime governance evaluation (stdin \u2192 stdout)
15
17
  test Run guard simulation suite against a world
@@ -33,6 +35,8 @@ Usage:
33
35
  neuroverse simulate <world-path-or-id> [--steps N] [--set key=value] [--profile name]
34
36
  neuroverse improve <world-path-or-id> [--json]
35
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]
36
40
  neuroverse validate --world <dir> [--format full|summary|findings]
37
41
  neuroverse guard --world <dir> [--trace] [--level basic|standard|strict]
38
42
  neuroverse test --world <dir> [--fuzz] [--count N]
@@ -96,6 +100,14 @@ async function main() {
96
100
  const { main: initMain } = await import("../init-PKPIYHYE.js");
97
101
  return initMain(subArgs);
98
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
+ }
99
111
  case "bootstrap": {
100
112
  const { main: bootstrapMain } = await import("../bootstrap-GXVDZNF7.js");
101
113
  return bootstrapMain(subArgs);
@@ -105,23 +117,23 @@ async function main() {
105
117
  return validateMain(subArgs);
106
118
  }
107
119
  case "guard": {
108
- const { main: guardMain } = await import("../guard-GFLQZY6U.js");
120
+ const { main: guardMain } = await import("../guard-RV65TT4L.js");
109
121
  return guardMain(subArgs);
110
122
  }
111
123
  case "test": {
112
- const { main: testMain } = await import("../test-75AVHC3R.js");
124
+ const { main: testMain } = await import("../test-OGXJK4QU.js");
113
125
  return testMain(subArgs);
114
126
  }
115
127
  case "redteam": {
116
- const { main: redteamMain } = await import("../redteam-SK7AMIG3.js");
128
+ const { main: redteamMain } = await import("../redteam-Z7WREJ44.js");
117
129
  return redteamMain(subArgs);
118
130
  }
119
131
  case "doctor": {
120
- const { main: doctorMain } = await import("../doctor-QV6HELS5.js");
132
+ const { main: doctorMain } = await import("../doctor-XPDLEYXN.js");
121
133
  return doctorMain(subArgs);
122
134
  }
123
135
  case "playground": {
124
- const { main: playgroundMain } = await import("../playground-FGOMASHN.js");
136
+ const { main: playgroundMain } = await import("../playground-E664U4T6.js");
125
137
  return playgroundMain(subArgs);
126
138
  }
127
139
  case "plan": {
@@ -133,7 +145,7 @@ async function main() {
133
145
  return runMain(subArgs);
134
146
  }
135
147
  case "mcp": {
136
- const { startMcpServer } = await import("../mcp-server-LZVJHBT5.js");
148
+ const { startMcpServer } = await import("../mcp-server-FPVSU32Z.js");
137
149
  return startMcpServer(subArgs);
138
150
  }
139
151
  case "worlds": {
package/dist/cli/run.js CHANGED
@@ -92,7 +92,7 @@ async function main(args) {
92
92
  return;
93
93
  }
94
94
  const { resolveProvider, ModelAdapter } = await import("../model-adapter-BB7G4MFI.js");
95
- const { runInteractiveMode } = await import("../session-VISISNWJ.js");
95
+ const { runInteractiveMode } = await import("../session-EKTRSR7C.js");
96
96
  const modelConfig = resolveProvider(providerName, {
97
97
  model: parseArg(args, "--model"),
98
98
  apiKey: parseArg(args, "--api-key")
@@ -126,7 +126,7 @@ async function main(args) {
126
126
  model
127
127
  );
128
128
  } else if (isPipeMode) {
129
- const { runPipeMode } = await import("../session-VISISNWJ.js");
129
+ const { runPipeMode } = await import("../session-EKTRSR7C.js");
130
130
  await runPipeMode({
131
131
  worldPath,
132
132
  plan,
@@ -7,6 +7,7 @@ import {
7
7
 
8
8
  // import("../adapters/**/*") in src/cli/doctor.ts
9
9
  var globImport_adapters = __glob({
10
+ "../adapters/autoresearch.ts": () => import("./adapters/autoresearch.js"),
10
11
  "../adapters/express.ts": () => import("./adapters/express.js"),
11
12
  "../adapters/index.ts": () => import("./adapters/index.js"),
12
13
  "../adapters/langchain.ts": () => import("./adapters/langchain.js"),
@@ -706,4 +706,4 @@ declare const GUARD_EXIT_CODES: {
706
706
  };
707
707
  type GuardExitCode = (typeof GUARD_EXIT_CODES)[keyof typeof GUARD_EXIT_CODES];
708
708
 
709
- export { type AdvanceResult as A, type EvaluationTrace as E, type GuardVerdict as G, type InvariantCheck as I, type KernelRuleCheck as K, type LevelCheck as L, type PlanDefinition as P, type RoleCheck as R, type StepEvidence as S, type ViabilityStatus as V, type WorldDefinition as W, type GuardEvent as a, type PlanProgress as b, type GuardEngineOptions as c, type PlanVerdict as d, type PlanCheck as e, GUARD_EXIT_CODES as f, type GuardCheck as g, type GuardExitCode as h, type GuardStatus as i, PLAN_EXIT_CODES as j, type PlanCompletionMode as k, type PlanConstraint as l, type PlanExitCode as m, type PlanStatus as n, type PlanStep as o, type PrecedenceResolution as p, type SafetyCheck as q, type VerdictEvidence as r };
709
+ export { type AdvanceResult as A, type EvaluationTrace as E, type GuardEvent as G, type InvariantCheck as I, type KernelRuleCheck as K, type LevelCheck as L, type PlanDefinition as P, type RoleCheck as R, type StepEvidence as S, type ViabilityStatus as V, type WorldDefinition as W, type GuardVerdict as a, type PlanProgress as b, type GuardEngineOptions as c, type PlanVerdict as d, type PlanCheck as e, GUARD_EXIT_CODES as f, type GuardCheck as g, type GuardExitCode as h, type GuardStatus as i, PLAN_EXIT_CODES as j, type PlanCompletionMode as k, type PlanConstraint as l, type PlanExitCode as m, type PlanStatus as n, type PlanStep as o, type PrecedenceResolution as p, type SafetyCheck as q, type VerdictEvidence as r };
@@ -706,4 +706,4 @@ declare const GUARD_EXIT_CODES: {
706
706
  };
707
707
  type GuardExitCode = (typeof GUARD_EXIT_CODES)[keyof typeof GUARD_EXIT_CODES];
708
708
 
709
- export { type AdvanceResult as A, type EvaluationTrace as E, type GuardVerdict as G, type InvariantCheck as I, type KernelRuleCheck as K, type LevelCheck as L, type PlanDefinition as P, type RoleCheck as R, type StepEvidence as S, type ViabilityStatus as V, type WorldDefinition as W, type GuardEvent as a, type PlanProgress as b, type GuardEngineOptions as c, type PlanVerdict as d, type PlanCheck as e, GUARD_EXIT_CODES as f, type GuardCheck as g, type GuardExitCode as h, type GuardStatus as i, PLAN_EXIT_CODES as j, type PlanCompletionMode as k, type PlanConstraint as l, type PlanExitCode as m, type PlanStatus as n, type PlanStep as o, type PrecedenceResolution as p, type SafetyCheck as q, type VerdictEvidence as r };
709
+ export { type AdvanceResult as A, type EvaluationTrace as E, type GuardEvent as G, type InvariantCheck as I, type KernelRuleCheck as K, type LevelCheck as L, type PlanDefinition as P, type RoleCheck as R, type StepEvidence as S, type ViabilityStatus as V, type WorldDefinition as W, type GuardVerdict as a, type PlanProgress as b, type GuardEngineOptions as c, type PlanVerdict as d, type PlanCheck as e, GUARD_EXIT_CODES as f, type GuardCheck as g, type GuardExitCode as h, type GuardStatus as i, PLAN_EXIT_CODES as j, type PlanCompletionMode as k, type PlanConstraint as l, type PlanExitCode as m, type PlanStatus as n, type PlanStep as o, type PrecedenceResolution as p, type SafetyCheck as q, type VerdictEvidence as r };
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as GuardEvent, W as WorldDefinition, c as GuardEngineOptions, G as GuardVerdict, P as PlanDefinition, S as StepEvidence, A as AdvanceResult, d as PlanVerdict, e as PlanCheck, b as PlanProgress, V as ViabilityStatus } from './guard-contract-Cm91Kp4j.cjs';
2
- export { E as EvaluationTrace, f as GUARD_EXIT_CODES, g as GuardCheck, h as GuardExitCode, i as GuardStatus, I as InvariantCheck, K as KernelRuleCheck, L as LevelCheck, j as PLAN_EXIT_CODES, k as PlanCompletionMode, l as PlanConstraint, m as PlanExitCode, n as PlanStatus, o as PlanStep, p as PrecedenceResolution, R as RoleCheck, q as SafetyCheck, r as VerdictEvidence } from './guard-contract-Cm91Kp4j.cjs';
1
+ import { G as GuardEvent, W as WorldDefinition, c as GuardEngineOptions, a as GuardVerdict, P as PlanDefinition, S as StepEvidence, A as AdvanceResult, d as PlanVerdict, e as PlanCheck, b as PlanProgress, V as ViabilityStatus } from './guard-contract-WZx__PmU.cjs';
2
+ export { E as EvaluationTrace, f as GUARD_EXIT_CODES, g as GuardCheck, h as GuardExitCode, i as GuardStatus, I as InvariantCheck, K as KernelRuleCheck, L as LevelCheck, j as PLAN_EXIT_CODES, k as PlanCompletionMode, l as PlanConstraint, m as PlanExitCode, n as PlanStatus, o as PlanStep, p as PrecedenceResolution, R as RoleCheck, q as SafetyCheck, r as VerdictEvidence } from './guard-contract-WZx__PmU.cjs';
3
3
 
4
4
  /**
5
5
  * Guard Engine — Deterministic Governance Evaluator
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as GuardEvent, W as WorldDefinition, c as GuardEngineOptions, G as GuardVerdict, P as PlanDefinition, S as StepEvidence, A as AdvanceResult, d as PlanVerdict, e as PlanCheck, b as PlanProgress, V as ViabilityStatus } from './guard-contract-Cm91Kp4j.js';
2
- export { E as EvaluationTrace, f as GUARD_EXIT_CODES, g as GuardCheck, h as GuardExitCode, i as GuardStatus, I as InvariantCheck, K as KernelRuleCheck, L as LevelCheck, j as PLAN_EXIT_CODES, k as PlanCompletionMode, l as PlanConstraint, m as PlanExitCode, n as PlanStatus, o as PlanStep, p as PrecedenceResolution, R as RoleCheck, q as SafetyCheck, r as VerdictEvidence } from './guard-contract-Cm91Kp4j.js';
1
+ import { G as GuardEvent, W as WorldDefinition, c as GuardEngineOptions, a as GuardVerdict, P as PlanDefinition, S as StepEvidence, A as AdvanceResult, d as PlanVerdict, e as PlanCheck, b as PlanProgress, V as ViabilityStatus } from './guard-contract-WZx__PmU.js';
2
+ export { E as EvaluationTrace, f as GUARD_EXIT_CODES, g as GuardCheck, h as GuardExitCode, i as GuardStatus, I as InvariantCheck, K as KernelRuleCheck, L as LevelCheck, j as PLAN_EXIT_CODES, k as PlanCompletionMode, l as PlanConstraint, m as PlanExitCode, n as PlanStatus, o as PlanStep, p as PrecedenceResolution, R as RoleCheck, q as SafetyCheck, r as VerdictEvidence } from './guard-contract-WZx__PmU.js';
3
3
 
4
4
  /**
5
5
  * Guard Engine — Deterministic Governance Evaluator
package/dist/index.js CHANGED
@@ -3,6 +3,12 @@ import {
3
3
  generateImpactReportFromFile,
4
4
  renderImpactReport
5
5
  } from "./chunk-PDOZHZWL.js";
6
+ import {
7
+ VALIDATE_EXIT_CODES
8
+ } from "./chunk-I3RRAYK2.js";
9
+ import {
10
+ GUARD_EXIT_CODES
11
+ } from "./chunk-MWDQ4MJB.js";
6
12
  import {
7
13
  CompositeAuditLogger,
8
14
  ConsoleAuditLogger,
@@ -12,6 +18,16 @@ import {
12
18
  summarizeAuditEvents,
13
19
  verdictToAuditEvent
14
20
  } from "./chunk-QPASI2BR.js";
21
+ import {
22
+ deriveWorld,
23
+ extractWorldMarkdown,
24
+ normalizeWorldMarkdown
25
+ } from "./chunk-NF5POFCI.js";
26
+ import {
27
+ CONFIGURE_AI_EXIT_CODES,
28
+ DERIVE_EXIT_CODES
29
+ } from "./chunk-Q6O7ZLO2.js";
30
+ import "./chunk-OT6PXH54.js";
15
31
  import {
16
32
  explainWorld,
17
33
  renderExplainText
@@ -28,16 +44,18 @@ import {
28
44
  BOOTSTRAP_EXIT_CODES
29
45
  } from "./chunk-4NGDRRQH.js";
30
46
  import {
31
- VALIDATE_EXIT_CODES
32
- } from "./chunk-I3RRAYK2.js";
47
+ emitWorldDefinition,
48
+ parseWorldMarkdown
49
+ } from "./chunk-XPDMYECO.js";
33
50
  import {
34
- GUARD_EXIT_CODES
35
- } from "./chunk-MWDQ4MJB.js";
51
+ PLAN_EXIT_CODES,
52
+ parsePlanMarkdown
53
+ } from "./chunk-6CZSKEY5.js";
36
54
  import {
37
55
  SessionManager,
38
56
  runInteractiveMode,
39
57
  runPipeMode
40
- } from "./chunk-KEST3MWO.js";
58
+ } from "./chunk-4A7LISES.js";
41
59
  import {
42
60
  ModelAdapter,
43
61
  PROVIDERS,
@@ -45,7 +63,7 @@ import {
45
63
  } from "./chunk-A5W4GNQO.js";
46
64
  import {
47
65
  McpGovernanceServer
48
- } from "./chunk-DPVS43ZT.js";
66
+ } from "./chunk-OGL7QXZS.js";
49
67
  import {
50
68
  describeActiveWorld,
51
69
  getActiveWorldName,
@@ -53,20 +71,6 @@ import {
53
71
  resolveWorldPath,
54
72
  setActiveWorld
55
73
  } from "./chunk-AKW5YVCE.js";
56
- import {
57
- deriveWorld,
58
- extractWorldMarkdown,
59
- normalizeWorldMarkdown
60
- } from "./chunk-NF5POFCI.js";
61
- import {
62
- CONFIGURE_AI_EXIT_CODES,
63
- DERIVE_EXIT_CODES
64
- } from "./chunk-Q6O7ZLO2.js";
65
- import "./chunk-OT6PXH54.js";
66
- import {
67
- emitWorldDefinition,
68
- parseWorldMarkdown
69
- } from "./chunk-XPDMYECO.js";
70
74
  import {
71
75
  validateWorld
72
76
  } from "./chunk-7P3S7MAY.js";
@@ -74,20 +78,16 @@ import {
74
78
  evaluateGuard,
75
79
  eventToAllowlistKey
76
80
  } from "./chunk-4JRYGIO7.js";
77
- import {
78
- loadWorld,
79
- loadWorldFromDirectory
80
- } from "./chunk-JZPQGIKR.js";
81
- import {
82
- PLAN_EXIT_CODES,
83
- parsePlanMarkdown
84
- } from "./chunk-6CZSKEY5.js";
85
81
  import {
86
82
  advancePlan,
87
83
  buildPlanCheck,
88
84
  evaluatePlan,
89
85
  getPlanProgress
90
86
  } from "./chunk-4QXB6PEO.js";
87
+ import {
88
+ loadWorld,
89
+ loadWorldFromDirectory
90
+ } from "./chunk-JZPQGIKR.js";
91
91
  import "./chunk-YZFATT7X.js";
92
92
 
93
93
  // src/engine/verdict-formatter.ts