@neuroverseos/governance 0.6.1 → 0.8.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.
- package/README.md +43 -7
- package/dist/{chunk-AEVT7DSZ.js → chunk-MC6O5GV5.js} +486 -12
- package/dist/cli/neuroverse.cjs +868 -142
- package/dist/cli/radiant.cjs +2173 -149
- package/dist/cli/radiant.js +29 -4
- package/dist/radiant/index.cjs +2083 -13
- package/dist/radiant/index.d.cts +392 -21
- package/dist/radiant/index.d.ts +392 -21
- package/dist/radiant/index.js +426 -3
- package/dist/server-DFNY5N5A.js +271 -0
- package/package.json +1 -1
package/dist/cli/radiant.js
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAnthropicAI,
|
|
3
3
|
emergent,
|
|
4
|
-
|
|
4
|
+
parseScope,
|
|
5
5
|
readExocortex,
|
|
6
6
|
summarizeExocortex,
|
|
7
7
|
think
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-MC6O5GV5.js";
|
|
9
9
|
import {
|
|
10
10
|
listLenses
|
|
11
11
|
} from "../chunk-VGFDMPVB.js";
|
|
12
|
+
import "../chunk-I4RTIMLX.js";
|
|
13
|
+
import "../chunk-ZAF6JH23.js";
|
|
14
|
+
import "../chunk-QLPTHTVB.js";
|
|
12
15
|
import "../chunk-QWGCMQQD.js";
|
|
13
16
|
|
|
14
17
|
// src/cli/radiant.ts
|
|
@@ -54,6 +57,8 @@ function parseArgs(argv) {
|
|
|
54
57
|
query: void 0,
|
|
55
58
|
model: void 0,
|
|
56
59
|
exocortex: void 0,
|
|
60
|
+
teamExocortex: void 0,
|
|
61
|
+
view: void 0,
|
|
57
62
|
json: false,
|
|
58
63
|
help: false,
|
|
59
64
|
rest: []
|
|
@@ -81,6 +86,12 @@ function parseArgs(argv) {
|
|
|
81
86
|
case "--exocortex":
|
|
82
87
|
result.exocortex = argv[++i];
|
|
83
88
|
break;
|
|
89
|
+
case "--team-exocortex":
|
|
90
|
+
result.teamExocortex = argv[++i];
|
|
91
|
+
break;
|
|
92
|
+
case "--view":
|
|
93
|
+
result.view = argv[++i];
|
|
94
|
+
break;
|
|
84
95
|
case "--json":
|
|
85
96
|
result.json = true;
|
|
86
97
|
break;
|
|
@@ -222,7 +233,7 @@ async function cmdEmergent(args) {
|
|
|
222
233
|
);
|
|
223
234
|
process.exit(1);
|
|
224
235
|
}
|
|
225
|
-
const scope =
|
|
236
|
+
const scope = parseScope(scopeStr);
|
|
226
237
|
const lensId = args.lens ?? process.env.RADIANT_LENS;
|
|
227
238
|
if (!lensId) {
|
|
228
239
|
process.stderr.write(
|
|
@@ -260,6 +271,15 @@ ${DIM}Set it to a GitHub PAT with repo read access.${RESET}
|
|
|
260
271
|
const worldmodelContent = loadWorldmodelContent(worldsPath);
|
|
261
272
|
const model = args.model ?? process.env.RADIANT_MODEL;
|
|
262
273
|
const ai = createAnthropicAI(anthropicKey, model || void 0);
|
|
274
|
+
const view = args.view ?? process.env.RADIANT_VIEW ?? "community";
|
|
275
|
+
const validViews = ["community", "team", "full"];
|
|
276
|
+
if (!validViews.includes(view)) {
|
|
277
|
+
process.stderr.write(
|
|
278
|
+
`${RED}Error:${RESET} --view must be community, team, or full. Got "${view}".
|
|
279
|
+
`
|
|
280
|
+
);
|
|
281
|
+
process.exit(1);
|
|
282
|
+
}
|
|
263
283
|
const exocortexPath = args.exocortex ?? process.env.RADIANT_EXOCORTEX;
|
|
264
284
|
let exocortexStatus = "not loaded";
|
|
265
285
|
if (exocortexPath) {
|
|
@@ -267,7 +287,8 @@ ${DIM}Set it to a GitHub PAT with repo read access.${RESET}
|
|
|
267
287
|
exocortexStatus = summarizeExocortex(ctx);
|
|
268
288
|
}
|
|
269
289
|
process.stderr.write(
|
|
270
|
-
`${DIM}Scope: ${scope.owner
|
|
290
|
+
`${DIM}Scope: ${scope.type === "org" ? scope.owner + " (entire org)" : scope.owner + "/" + scope.repo}${RESET}
|
|
291
|
+
${DIM}View: ${view}${RESET}
|
|
271
292
|
${DIM}Lens: ${lensId}${RESET}
|
|
272
293
|
${DIM}Model: ${model ?? "claude-sonnet-4-20250514 (default)"}${RESET}
|
|
273
294
|
${DIM}ExoCortex: ${exocortexStatus}${RESET}
|
|
@@ -397,6 +418,10 @@ async function main(argv) {
|
|
|
397
418
|
return cmdLenses(args);
|
|
398
419
|
case "emergent":
|
|
399
420
|
return cmdEmergent(args);
|
|
421
|
+
case "mcp": {
|
|
422
|
+
const { startRadiantMcp } = await import("../server-DFNY5N5A.js");
|
|
423
|
+
return startRadiantMcp(argv);
|
|
424
|
+
}
|
|
400
425
|
case "decision":
|
|
401
426
|
case "signals":
|
|
402
427
|
case "drift":
|