@neuroverseos/governance 0.8.1 → 0.9.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/AGENTS.md +8 -0
- package/README.md +119 -1
- package/dist/{chunk-ETDIEVAX.js → chunk-3ZWU7C43.js} +331 -45
- package/dist/{chunk-F2LWMOM5.js → chunk-TCGGED4G.js} +14 -14
- package/dist/cli/neuroverse.cjs +591 -205
- package/dist/cli/radiant.cjs +440 -103
- package/dist/cli/radiant.js +62 -24
- package/dist/cli/worldmodel.cjs +1055 -1000
- package/dist/cli/worldmodel.js +40 -0
- package/dist/{lenses-YDMKSXDL.js → lenses-XDWK6ZKI.js} +1 -1
- package/dist/radiant/index.cjs +352 -53
- package/dist/radiant/index.d.cts +145 -10
- package/dist/radiant/index.d.ts +145 -10
- package/dist/radiant/index.js +20 -2
- package/dist/{server-ZSQ6DRSN.js → server-JKUBUK5H.js} +2 -2
- package/examples/radiant-weekly-workflow.yml +81 -0
- package/package.json +2 -1
package/dist/cli/worldmodel.js
CHANGED
|
@@ -172,6 +172,46 @@ ${YELLOW}Validation found ${errors.length} issue${errors.length > 1 ? "s" : ""}
|
|
|
172
172
|
} else {
|
|
173
173
|
process.stderr.write(`${GREEN}Validates cleanly!${RESET}
|
|
174
174
|
`);
|
|
175
|
+
try {
|
|
176
|
+
if (!validateResult.model) throw new Error("no model");
|
|
177
|
+
const { compileWorldModel: compileWorldModel2 } = await import("../engine/worldmodel-compiler.js");
|
|
178
|
+
const compiled = compileWorldModel2(validateResult.model);
|
|
179
|
+
const outDir = dirname(outputPath);
|
|
180
|
+
const baseName = basename(outputPath).replace(/\.worldmodel\.md$/, "");
|
|
181
|
+
const worldPath = join(outDir, `${baseName}.nv-world.md`);
|
|
182
|
+
await writeFile(worldPath, compiled.worldMarkdown, "utf-8");
|
|
183
|
+
const signalsPath = join(outDir, "signals.json");
|
|
184
|
+
await writeFile(signalsPath, JSON.stringify(compiled.signalSchema, null, 2), "utf-8");
|
|
185
|
+
const overlapsPath = join(outDir, "overlaps.json");
|
|
186
|
+
await writeFile(overlapsPath, JSON.stringify(compiled.overlapMap, null, 2), "utf-8");
|
|
187
|
+
const contextsPath = join(outDir, "contexts.json");
|
|
188
|
+
await writeFile(contextsPath, JSON.stringify(compiled.contextsConfig, null, 2), "utf-8");
|
|
189
|
+
const lensesPath = join(outDir, "lenses.json");
|
|
190
|
+
await writeFile(lensesPath, JSON.stringify(compiled.lensSuggestions, null, 2), "utf-8");
|
|
191
|
+
process.stderr.write(`
|
|
192
|
+
${GREEN}Compiled!${RESET} Token-optimized artifacts:
|
|
193
|
+
`);
|
|
194
|
+
process.stderr.write(`${DIM} ${worldPath}${RESET}
|
|
195
|
+
`);
|
|
196
|
+
process.stderr.write(`${DIM} ${signalsPath}${RESET}
|
|
197
|
+
`);
|
|
198
|
+
process.stderr.write(`${DIM} ${overlapsPath}${RESET}
|
|
199
|
+
`);
|
|
200
|
+
process.stderr.write(`${DIM} ${contextsPath}${RESET}
|
|
201
|
+
`);
|
|
202
|
+
process.stderr.write(`${DIM} ${lensesPath}${RESET}
|
|
203
|
+
`);
|
|
204
|
+
process.stderr.write(`
|
|
205
|
+
${DIM}Source: ${outputPath} (readable, editable)${RESET}
|
|
206
|
+
`);
|
|
207
|
+
process.stderr.write(`${DIM}Compiled: ready for Radiant \u2014 token-optimized, no prose overhead.${RESET}
|
|
208
|
+
`);
|
|
209
|
+
} catch {
|
|
210
|
+
process.stderr.write(
|
|
211
|
+
`${DIM}Auto-compile skipped \u2014 run 'neuroverse worldmodel build ${basename(outputPath)}' manually.${RESET}
|
|
212
|
+
`
|
|
213
|
+
);
|
|
214
|
+
}
|
|
175
215
|
}
|
|
176
216
|
} catch {
|
|
177
217
|
}
|