@neuroverseos/governance 0.6.1 → 0.7.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 +0 -3
- package/dist/{chunk-AEVT7DSZ.js → chunk-T6EQ7ZBG.js} +366 -3
- package/dist/cli/neuroverse.cjs +770 -129
- package/dist/cli/radiant.cjs +2078 -139
- package/dist/cli/radiant.js +8 -1
- package/dist/radiant/index.cjs +1554 -5
- package/dist/radiant/index.d.cts +146 -8
- package/dist/radiant/index.d.ts +146 -8
- package/dist/radiant/index.js +18 -3
- package/dist/server-BXMC5NOE.js +271 -0
- package/package.json +1 -1
package/dist/radiant/index.d.cts
CHANGED
|
@@ -970,6 +970,60 @@ interface InterpretResult {
|
|
|
970
970
|
*/
|
|
971
971
|
declare function interpretPatterns(input: InterpretInput): Promise<InterpretResult>;
|
|
972
972
|
|
|
973
|
+
/**
|
|
974
|
+
* @neuroverseos/governance/radiant — governance audit
|
|
975
|
+
*
|
|
976
|
+
* Runs each GitHub event through the NeuroverseOS guard engine against
|
|
977
|
+
* the compiled worldmodel. Produces an audit trail showing which events
|
|
978
|
+
* triggered governance (BLOCK/MODIFY), which side (human/AI/joint),
|
|
979
|
+
* and what invariants were tested.
|
|
980
|
+
*
|
|
981
|
+
* This is where Radiant meets the NeuroverseOS governance engine.
|
|
982
|
+
* Same evaluateGuard() that runs at API-level, applied retroactively
|
|
983
|
+
* to activity that already happened. The audit trail is the proof that
|
|
984
|
+
* the cocoon's walls are holding — or shows where they're being tested.
|
|
985
|
+
*/
|
|
986
|
+
|
|
987
|
+
interface GovernanceVerdict {
|
|
988
|
+
eventId: string;
|
|
989
|
+
domain: ActorDomain;
|
|
990
|
+
status: 'ALLOW' | 'BLOCK' | 'MODIFY' | 'PAUSE' | 'PENALIZE' | 'REWARD';
|
|
991
|
+
reason?: string;
|
|
992
|
+
ruleId?: string;
|
|
993
|
+
warning?: string;
|
|
994
|
+
}
|
|
995
|
+
interface GovernanceAudit {
|
|
996
|
+
totalEvents: number;
|
|
997
|
+
human: {
|
|
998
|
+
allow: number;
|
|
999
|
+
modify: number;
|
|
1000
|
+
block: number;
|
|
1001
|
+
details: GovernanceVerdict[];
|
|
1002
|
+
};
|
|
1003
|
+
cyber: {
|
|
1004
|
+
allow: number;
|
|
1005
|
+
modify: number;
|
|
1006
|
+
block: number;
|
|
1007
|
+
details: GovernanceVerdict[];
|
|
1008
|
+
};
|
|
1009
|
+
joint: {
|
|
1010
|
+
allow: number;
|
|
1011
|
+
modify: number;
|
|
1012
|
+
block: number;
|
|
1013
|
+
details: GovernanceVerdict[];
|
|
1014
|
+
};
|
|
1015
|
+
/** Summary for rendering — most important findings. */
|
|
1016
|
+
summary: string;
|
|
1017
|
+
}
|
|
1018
|
+
/**
|
|
1019
|
+
* Run each classified event through the guard engine against the compiled
|
|
1020
|
+
* worldmodel. Returns a structured audit with human/cyber/joint breakdown.
|
|
1021
|
+
*
|
|
1022
|
+
* @param events — classified events from the GitHub adapter
|
|
1023
|
+
* @param worldPath — path to a compiled .nv-world.md or world directory
|
|
1024
|
+
*/
|
|
1025
|
+
declare function auditGovernance(events: readonly ClassifiedEvent[], worldPath: string): Promise<GovernanceAudit>;
|
|
1026
|
+
|
|
973
1027
|
/**
|
|
974
1028
|
* @neuroverseos/governance/radiant — renderer
|
|
975
1029
|
*
|
|
@@ -1000,6 +1054,8 @@ interface RenderInput {
|
|
|
1000
1054
|
move?: string;
|
|
1001
1055
|
/** Number of prior Radiant reads available (0 = first run). */
|
|
1002
1056
|
priorReadCount?: number;
|
|
1057
|
+
/** Governance audit trail — events evaluated against the worldmodel. */
|
|
1058
|
+
governance?: GovernanceAudit;
|
|
1003
1059
|
}
|
|
1004
1060
|
interface RenderOutput {
|
|
1005
1061
|
/** The human-readable text output for terminal display. */
|
|
@@ -1009,6 +1065,85 @@ interface RenderOutput {
|
|
|
1009
1065
|
}
|
|
1010
1066
|
declare function render(input: RenderInput): RenderOutput;
|
|
1011
1067
|
|
|
1068
|
+
/**
|
|
1069
|
+
* @neuroverseos/governance/radiant — Memory Palace file operations
|
|
1070
|
+
*
|
|
1071
|
+
* Writes Radiant reads to the exocortex as dated markdown files (with
|
|
1072
|
+
* YAML frontmatter for structured signal data). Reads prior files to
|
|
1073
|
+
* detect pattern persistence across runs.
|
|
1074
|
+
*
|
|
1075
|
+
* The exocortex directory IS the Memory Palace. Files are the tiers:
|
|
1076
|
+
* - reads/YYYY-MM-DD.md = Tier 2 (structured signals) + Tier 3 (narrative)
|
|
1077
|
+
* - knowledge.md = accumulated pattern facts with persistence counts
|
|
1078
|
+
*
|
|
1079
|
+
* No database. The file system is the time series. Git is the versioning.
|
|
1080
|
+
*/
|
|
1081
|
+
interface PriorRead {
|
|
1082
|
+
date: string;
|
|
1083
|
+
filename: string;
|
|
1084
|
+
/** Pattern names found in this read (parsed from frontmatter). */
|
|
1085
|
+
patternNames: string[];
|
|
1086
|
+
/** Raw frontmatter content for signal comparison. */
|
|
1087
|
+
frontmatter: string;
|
|
1088
|
+
}
|
|
1089
|
+
interface PatternPersistence {
|
|
1090
|
+
name: string;
|
|
1091
|
+
/** How many prior reads contained this pattern. */
|
|
1092
|
+
occurrences: number;
|
|
1093
|
+
/** Dates this pattern was observed. */
|
|
1094
|
+
dates: string[];
|
|
1095
|
+
}
|
|
1096
|
+
/**
|
|
1097
|
+
* Write a Radiant read to the exocortex. Creates the directory structure
|
|
1098
|
+
* if it doesn't exist.
|
|
1099
|
+
*
|
|
1100
|
+
* @param exocortexDir — root of the exocortex (e.g. ~/exocortex/)
|
|
1101
|
+
* @param frontmatter — YAML frontmatter (Tier 2 structured signals)
|
|
1102
|
+
* @param text — prose output (Tier 3 narrative)
|
|
1103
|
+
* @returns the path of the written file
|
|
1104
|
+
*/
|
|
1105
|
+
declare function writeRead(exocortexDir: string, frontmatter: string, text: string): string;
|
|
1106
|
+
/**
|
|
1107
|
+
* Items from the worldmodel that Radiant tracks for subtraction proposals.
|
|
1108
|
+
*/
|
|
1109
|
+
interface WorldmodelItem {
|
|
1110
|
+
type: 'invariant' | 'drift_behavior' | 'aligned_behavior' | 'decision_priority';
|
|
1111
|
+
name: string;
|
|
1112
|
+
}
|
|
1113
|
+
/**
|
|
1114
|
+
* Update the knowledge file with:
|
|
1115
|
+
* - Pattern persistence (what keeps recurring → consider adding)
|
|
1116
|
+
* - Subtraction proposals (what hasn't fired → consider removing)
|
|
1117
|
+
* - Active items (what recently triggered → keep)
|
|
1118
|
+
*
|
|
1119
|
+
* The leader reads this file and makes deliberate, rare, bidirectional
|
|
1120
|
+
* changes to the worldmodel. Radiant proposes; the human decides.
|
|
1121
|
+
*/
|
|
1122
|
+
declare function updateKnowledge(exocortexDir: string, persistence: PatternPersistence[], options?: {
|
|
1123
|
+
/** Items declared in the worldmodel (invariants, drift behaviors, etc.) */
|
|
1124
|
+
declaredItems?: WorldmodelItem[];
|
|
1125
|
+
/** Item names that triggered governance in this read */
|
|
1126
|
+
triggeredItems?: string[];
|
|
1127
|
+
/** Total number of reads completed (for "hasn't fired in N reads" tracking) */
|
|
1128
|
+
totalReads?: number;
|
|
1129
|
+
}): string;
|
|
1130
|
+
/**
|
|
1131
|
+
* Load prior Radiant reads from the exocortex. Returns them sorted by
|
|
1132
|
+
* date (oldest first). Each read has its pattern names extracted from
|
|
1133
|
+
* the frontmatter.
|
|
1134
|
+
*/
|
|
1135
|
+
declare function loadPriorReads(exocortexDir: string): PriorRead[];
|
|
1136
|
+
/**
|
|
1137
|
+
* Compute pattern persistence across prior reads + the current patterns.
|
|
1138
|
+
*/
|
|
1139
|
+
declare function computePersistence(priorReads: PriorRead[], currentPatternNames: string[]): PatternPersistence[];
|
|
1140
|
+
/**
|
|
1141
|
+
* Format prior-read context for the AI interpretation prompt.
|
|
1142
|
+
* Tells the AI what patterns were seen in previous runs so it can
|
|
1143
|
+
* reference persistence.
|
|
1144
|
+
*/
|
|
1145
|
+
declare function formatPriorReadsForPrompt(priorReads: PriorRead[]): string;
|
|
1146
|
+
|
|
1012
1147
|
/**
|
|
1013
1148
|
* @neuroverseos/governance/radiant — `think` command
|
|
1014
1149
|
*
|
|
@@ -1100,6 +1235,10 @@ interface EmergentInput {
|
|
|
1100
1235
|
* intent (attention, goals, sprint) and compares against observed
|
|
1101
1236
|
* behavior from GitHub. The gap is the most valuable signal. */
|
|
1102
1237
|
exocortexPath?: string;
|
|
1238
|
+
/** Path to a compiled world directory (for governance audit).
|
|
1239
|
+
* When present, each event is evaluated through evaluateGuard
|
|
1240
|
+
* and the GOVERNANCE section appears in the output. */
|
|
1241
|
+
worldPath?: string;
|
|
1103
1242
|
}
|
|
1104
1243
|
interface EmergentResult {
|
|
1105
1244
|
/** The rendered text output (EMERGENT / MEANING / MOVE). */
|
|
@@ -1147,17 +1286,16 @@ declare function emergent(input: EmergentInput): Promise<EmergentResult>;
|
|
|
1147
1286
|
* knowledge / synthesis) with a SQLite reference implementation
|
|
1148
1287
|
* - CLI entry (bin/radiant.ts) and MCP server entry (bin/radiant-mcp.ts)
|
|
1149
1288
|
*
|
|
1150
|
-
* Build state:
|
|
1151
|
-
*
|
|
1152
|
-
*
|
|
1153
|
-
* Full roadmap: `radiant/PROJECT-PLAN.md` at the repo root.
|
|
1289
|
+
* Build state: Phase 1 complete — voice layer, behavioral dashboard,
|
|
1290
|
+
* MCP server, Memory Palace write-back, governance audit, ExoCortex
|
|
1291
|
+
* handshake. See radiant/PROJECT-PLAN.md for the full roadmap.
|
|
1154
1292
|
*
|
|
1155
|
-
* Usage
|
|
1293
|
+
* Usage:
|
|
1156
1294
|
* import {
|
|
1157
|
-
*
|
|
1158
|
-
*
|
|
1295
|
+
* think, emergent, scoreLife, classifyActorDomain,
|
|
1296
|
+
* aukiBuilderLens, checkForbiddenPhrases,
|
|
1159
1297
|
* } from '@neuroverseos/governance/radiant';
|
|
1160
1298
|
*/
|
|
1161
1299
|
declare const RADIANT_PACKAGE_VERSION = "0.0.0";
|
|
1162
1300
|
|
|
1163
|
-
export { type Actor, type ActorDomain, type ActorKind, type AlignmentStatus, type BridgingComponent, type BridgingComponentScore, type ClassifiedEvent, type CyberCapability, type CyberDimension, DEFAULT_EVIDENCE_GATE, DEFAULT_SIGNAL_EXTRACTORS, type EmergentInput, type EmergentResult, type Event, type EventReference, type EvidenceGate, type ExemplarRef, type ExocortexContext, type ExtractionResult, type GitHubFetchOptions, type InterpretInput, type InterpretResult, LENSES, type LensVocabulary, type LifeCapability, type LifeDimension, type ObservedPattern, type OverlapDef, type PatternEvidence, type PrimaryFrame, RADIANT_PACKAGE_VERSION, type RadiantAI, type RenderInput, type RenderOutput, type RenderingLens, type RepoScope, type Score, type ScoreSentinel, type ScoredObservation, type Signal, type SignalExtractor, type SignalMatrix, type ThinkInput, type ThinkResult, type VoiceDirectives, type VoiceViolation, aukiBuilderLens, checkForbiddenPhrases, classifyActorDomain, classifyEvents, composeSystemPrompt, createAnthropicAI, createMockAI, createMockGitHubAdapter, emergent, extractSignals, fetchGitHubActivity, formatExocortexForPrompt, formatScope, getLens, interpretPatterns, isPresent, isScored, isSentinel, listLenses, parseRepoScope, presenceAverage, readExocortex, render, scoreComposite, scoreCyber, scoreLife, scoreNeuroVerse, summarizeExocortex, think };
|
|
1301
|
+
export { type Actor, type ActorDomain, type ActorKind, type AlignmentStatus, type BridgingComponent, type BridgingComponentScore, type ClassifiedEvent, type CyberCapability, type CyberDimension, DEFAULT_EVIDENCE_GATE, DEFAULT_SIGNAL_EXTRACTORS, type EmergentInput, type EmergentResult, type Event, type EventReference, type EvidenceGate, type ExemplarRef, type ExocortexContext, type ExtractionResult, type GitHubFetchOptions, type GovernanceAudit, type GovernanceVerdict, type InterpretInput, type InterpretResult, LENSES, type LensVocabulary, type LifeCapability, type LifeDimension, type ObservedPattern, type OverlapDef, type PatternEvidence, type PatternPersistence, type PrimaryFrame, type PriorRead, RADIANT_PACKAGE_VERSION, type RadiantAI, type RenderInput, type RenderOutput, type RenderingLens, type RepoScope, type Score, type ScoreSentinel, type ScoredObservation, type Signal, type SignalExtractor, type SignalMatrix, type ThinkInput, type ThinkResult, type VoiceDirectives, type VoiceViolation, type WorldmodelItem, auditGovernance, aukiBuilderLens, checkForbiddenPhrases, classifyActorDomain, classifyEvents, composeSystemPrompt, computePersistence, createAnthropicAI, createMockAI, createMockGitHubAdapter, emergent, extractSignals, fetchGitHubActivity, formatExocortexForPrompt, formatPriorReadsForPrompt, formatScope, getLens, interpretPatterns, isPresent, isScored, isSentinel, listLenses, loadPriorReads, parseRepoScope, presenceAverage, readExocortex, render, scoreComposite, scoreCyber, scoreLife, scoreNeuroVerse, summarizeExocortex, think, updateKnowledge, writeRead };
|
package/dist/radiant/index.d.ts
CHANGED
|
@@ -970,6 +970,60 @@ interface InterpretResult {
|
|
|
970
970
|
*/
|
|
971
971
|
declare function interpretPatterns(input: InterpretInput): Promise<InterpretResult>;
|
|
972
972
|
|
|
973
|
+
/**
|
|
974
|
+
* @neuroverseos/governance/radiant — governance audit
|
|
975
|
+
*
|
|
976
|
+
* Runs each GitHub event through the NeuroverseOS guard engine against
|
|
977
|
+
* the compiled worldmodel. Produces an audit trail showing which events
|
|
978
|
+
* triggered governance (BLOCK/MODIFY), which side (human/AI/joint),
|
|
979
|
+
* and what invariants were tested.
|
|
980
|
+
*
|
|
981
|
+
* This is where Radiant meets the NeuroverseOS governance engine.
|
|
982
|
+
* Same evaluateGuard() that runs at API-level, applied retroactively
|
|
983
|
+
* to activity that already happened. The audit trail is the proof that
|
|
984
|
+
* the cocoon's walls are holding — or shows where they're being tested.
|
|
985
|
+
*/
|
|
986
|
+
|
|
987
|
+
interface GovernanceVerdict {
|
|
988
|
+
eventId: string;
|
|
989
|
+
domain: ActorDomain;
|
|
990
|
+
status: 'ALLOW' | 'BLOCK' | 'MODIFY' | 'PAUSE' | 'PENALIZE' | 'REWARD';
|
|
991
|
+
reason?: string;
|
|
992
|
+
ruleId?: string;
|
|
993
|
+
warning?: string;
|
|
994
|
+
}
|
|
995
|
+
interface GovernanceAudit {
|
|
996
|
+
totalEvents: number;
|
|
997
|
+
human: {
|
|
998
|
+
allow: number;
|
|
999
|
+
modify: number;
|
|
1000
|
+
block: number;
|
|
1001
|
+
details: GovernanceVerdict[];
|
|
1002
|
+
};
|
|
1003
|
+
cyber: {
|
|
1004
|
+
allow: number;
|
|
1005
|
+
modify: number;
|
|
1006
|
+
block: number;
|
|
1007
|
+
details: GovernanceVerdict[];
|
|
1008
|
+
};
|
|
1009
|
+
joint: {
|
|
1010
|
+
allow: number;
|
|
1011
|
+
modify: number;
|
|
1012
|
+
block: number;
|
|
1013
|
+
details: GovernanceVerdict[];
|
|
1014
|
+
};
|
|
1015
|
+
/** Summary for rendering — most important findings. */
|
|
1016
|
+
summary: string;
|
|
1017
|
+
}
|
|
1018
|
+
/**
|
|
1019
|
+
* Run each classified event through the guard engine against the compiled
|
|
1020
|
+
* worldmodel. Returns a structured audit with human/cyber/joint breakdown.
|
|
1021
|
+
*
|
|
1022
|
+
* @param events — classified events from the GitHub adapter
|
|
1023
|
+
* @param worldPath — path to a compiled .nv-world.md or world directory
|
|
1024
|
+
*/
|
|
1025
|
+
declare function auditGovernance(events: readonly ClassifiedEvent[], worldPath: string): Promise<GovernanceAudit>;
|
|
1026
|
+
|
|
973
1027
|
/**
|
|
974
1028
|
* @neuroverseos/governance/radiant — renderer
|
|
975
1029
|
*
|
|
@@ -1000,6 +1054,8 @@ interface RenderInput {
|
|
|
1000
1054
|
move?: string;
|
|
1001
1055
|
/** Number of prior Radiant reads available (0 = first run). */
|
|
1002
1056
|
priorReadCount?: number;
|
|
1057
|
+
/** Governance audit trail — events evaluated against the worldmodel. */
|
|
1058
|
+
governance?: GovernanceAudit;
|
|
1003
1059
|
}
|
|
1004
1060
|
interface RenderOutput {
|
|
1005
1061
|
/** The human-readable text output for terminal display. */
|
|
@@ -1009,6 +1065,85 @@ interface RenderOutput {
|
|
|
1009
1065
|
}
|
|
1010
1066
|
declare function render(input: RenderInput): RenderOutput;
|
|
1011
1067
|
|
|
1068
|
+
/**
|
|
1069
|
+
* @neuroverseos/governance/radiant — Memory Palace file operations
|
|
1070
|
+
*
|
|
1071
|
+
* Writes Radiant reads to the exocortex as dated markdown files (with
|
|
1072
|
+
* YAML frontmatter for structured signal data). Reads prior files to
|
|
1073
|
+
* detect pattern persistence across runs.
|
|
1074
|
+
*
|
|
1075
|
+
* The exocortex directory IS the Memory Palace. Files are the tiers:
|
|
1076
|
+
* - reads/YYYY-MM-DD.md = Tier 2 (structured signals) + Tier 3 (narrative)
|
|
1077
|
+
* - knowledge.md = accumulated pattern facts with persistence counts
|
|
1078
|
+
*
|
|
1079
|
+
* No database. The file system is the time series. Git is the versioning.
|
|
1080
|
+
*/
|
|
1081
|
+
interface PriorRead {
|
|
1082
|
+
date: string;
|
|
1083
|
+
filename: string;
|
|
1084
|
+
/** Pattern names found in this read (parsed from frontmatter). */
|
|
1085
|
+
patternNames: string[];
|
|
1086
|
+
/** Raw frontmatter content for signal comparison. */
|
|
1087
|
+
frontmatter: string;
|
|
1088
|
+
}
|
|
1089
|
+
interface PatternPersistence {
|
|
1090
|
+
name: string;
|
|
1091
|
+
/** How many prior reads contained this pattern. */
|
|
1092
|
+
occurrences: number;
|
|
1093
|
+
/** Dates this pattern was observed. */
|
|
1094
|
+
dates: string[];
|
|
1095
|
+
}
|
|
1096
|
+
/**
|
|
1097
|
+
* Write a Radiant read to the exocortex. Creates the directory structure
|
|
1098
|
+
* if it doesn't exist.
|
|
1099
|
+
*
|
|
1100
|
+
* @param exocortexDir — root of the exocortex (e.g. ~/exocortex/)
|
|
1101
|
+
* @param frontmatter — YAML frontmatter (Tier 2 structured signals)
|
|
1102
|
+
* @param text — prose output (Tier 3 narrative)
|
|
1103
|
+
* @returns the path of the written file
|
|
1104
|
+
*/
|
|
1105
|
+
declare function writeRead(exocortexDir: string, frontmatter: string, text: string): string;
|
|
1106
|
+
/**
|
|
1107
|
+
* Items from the worldmodel that Radiant tracks for subtraction proposals.
|
|
1108
|
+
*/
|
|
1109
|
+
interface WorldmodelItem {
|
|
1110
|
+
type: 'invariant' | 'drift_behavior' | 'aligned_behavior' | 'decision_priority';
|
|
1111
|
+
name: string;
|
|
1112
|
+
}
|
|
1113
|
+
/**
|
|
1114
|
+
* Update the knowledge file with:
|
|
1115
|
+
* - Pattern persistence (what keeps recurring → consider adding)
|
|
1116
|
+
* - Subtraction proposals (what hasn't fired → consider removing)
|
|
1117
|
+
* - Active items (what recently triggered → keep)
|
|
1118
|
+
*
|
|
1119
|
+
* The leader reads this file and makes deliberate, rare, bidirectional
|
|
1120
|
+
* changes to the worldmodel. Radiant proposes; the human decides.
|
|
1121
|
+
*/
|
|
1122
|
+
declare function updateKnowledge(exocortexDir: string, persistence: PatternPersistence[], options?: {
|
|
1123
|
+
/** Items declared in the worldmodel (invariants, drift behaviors, etc.) */
|
|
1124
|
+
declaredItems?: WorldmodelItem[];
|
|
1125
|
+
/** Item names that triggered governance in this read */
|
|
1126
|
+
triggeredItems?: string[];
|
|
1127
|
+
/** Total number of reads completed (for "hasn't fired in N reads" tracking) */
|
|
1128
|
+
totalReads?: number;
|
|
1129
|
+
}): string;
|
|
1130
|
+
/**
|
|
1131
|
+
* Load prior Radiant reads from the exocortex. Returns them sorted by
|
|
1132
|
+
* date (oldest first). Each read has its pattern names extracted from
|
|
1133
|
+
* the frontmatter.
|
|
1134
|
+
*/
|
|
1135
|
+
declare function loadPriorReads(exocortexDir: string): PriorRead[];
|
|
1136
|
+
/**
|
|
1137
|
+
* Compute pattern persistence across prior reads + the current patterns.
|
|
1138
|
+
*/
|
|
1139
|
+
declare function computePersistence(priorReads: PriorRead[], currentPatternNames: string[]): PatternPersistence[];
|
|
1140
|
+
/**
|
|
1141
|
+
* Format prior-read context for the AI interpretation prompt.
|
|
1142
|
+
* Tells the AI what patterns were seen in previous runs so it can
|
|
1143
|
+
* reference persistence.
|
|
1144
|
+
*/
|
|
1145
|
+
declare function formatPriorReadsForPrompt(priorReads: PriorRead[]): string;
|
|
1146
|
+
|
|
1012
1147
|
/**
|
|
1013
1148
|
* @neuroverseos/governance/radiant — `think` command
|
|
1014
1149
|
*
|
|
@@ -1100,6 +1235,10 @@ interface EmergentInput {
|
|
|
1100
1235
|
* intent (attention, goals, sprint) and compares against observed
|
|
1101
1236
|
* behavior from GitHub. The gap is the most valuable signal. */
|
|
1102
1237
|
exocortexPath?: string;
|
|
1238
|
+
/** Path to a compiled world directory (for governance audit).
|
|
1239
|
+
* When present, each event is evaluated through evaluateGuard
|
|
1240
|
+
* and the GOVERNANCE section appears in the output. */
|
|
1241
|
+
worldPath?: string;
|
|
1103
1242
|
}
|
|
1104
1243
|
interface EmergentResult {
|
|
1105
1244
|
/** The rendered text output (EMERGENT / MEANING / MOVE). */
|
|
@@ -1147,17 +1286,16 @@ declare function emergent(input: EmergentInput): Promise<EmergentResult>;
|
|
|
1147
1286
|
* knowledge / synthesis) with a SQLite reference implementation
|
|
1148
1287
|
* - CLI entry (bin/radiant.ts) and MCP server entry (bin/radiant-mcp.ts)
|
|
1149
1288
|
*
|
|
1150
|
-
* Build state:
|
|
1151
|
-
*
|
|
1152
|
-
*
|
|
1153
|
-
* Full roadmap: `radiant/PROJECT-PLAN.md` at the repo root.
|
|
1289
|
+
* Build state: Phase 1 complete — voice layer, behavioral dashboard,
|
|
1290
|
+
* MCP server, Memory Palace write-back, governance audit, ExoCortex
|
|
1291
|
+
* handshake. See radiant/PROJECT-PLAN.md for the full roadmap.
|
|
1154
1292
|
*
|
|
1155
|
-
* Usage
|
|
1293
|
+
* Usage:
|
|
1156
1294
|
* import {
|
|
1157
|
-
*
|
|
1158
|
-
*
|
|
1295
|
+
* think, emergent, scoreLife, classifyActorDomain,
|
|
1296
|
+
* aukiBuilderLens, checkForbiddenPhrases,
|
|
1159
1297
|
* } from '@neuroverseos/governance/radiant';
|
|
1160
1298
|
*/
|
|
1161
1299
|
declare const RADIANT_PACKAGE_VERSION = "0.0.0";
|
|
1162
1300
|
|
|
1163
|
-
export { type Actor, type ActorDomain, type ActorKind, type AlignmentStatus, type BridgingComponent, type BridgingComponentScore, type ClassifiedEvent, type CyberCapability, type CyberDimension, DEFAULT_EVIDENCE_GATE, DEFAULT_SIGNAL_EXTRACTORS, type EmergentInput, type EmergentResult, type Event, type EventReference, type EvidenceGate, type ExemplarRef, type ExocortexContext, type ExtractionResult, type GitHubFetchOptions, type InterpretInput, type InterpretResult, LENSES, type LensVocabulary, type LifeCapability, type LifeDimension, type ObservedPattern, type OverlapDef, type PatternEvidence, type PrimaryFrame, RADIANT_PACKAGE_VERSION, type RadiantAI, type RenderInput, type RenderOutput, type RenderingLens, type RepoScope, type Score, type ScoreSentinel, type ScoredObservation, type Signal, type SignalExtractor, type SignalMatrix, type ThinkInput, type ThinkResult, type VoiceDirectives, type VoiceViolation, aukiBuilderLens, checkForbiddenPhrases, classifyActorDomain, classifyEvents, composeSystemPrompt, createAnthropicAI, createMockAI, createMockGitHubAdapter, emergent, extractSignals, fetchGitHubActivity, formatExocortexForPrompt, formatScope, getLens, interpretPatterns, isPresent, isScored, isSentinel, listLenses, parseRepoScope, presenceAverage, readExocortex, render, scoreComposite, scoreCyber, scoreLife, scoreNeuroVerse, summarizeExocortex, think };
|
|
1301
|
+
export { type Actor, type ActorDomain, type ActorKind, type AlignmentStatus, type BridgingComponent, type BridgingComponentScore, type ClassifiedEvent, type CyberCapability, type CyberDimension, DEFAULT_EVIDENCE_GATE, DEFAULT_SIGNAL_EXTRACTORS, type EmergentInput, type EmergentResult, type Event, type EventReference, type EvidenceGate, type ExemplarRef, type ExocortexContext, type ExtractionResult, type GitHubFetchOptions, type GovernanceAudit, type GovernanceVerdict, type InterpretInput, type InterpretResult, LENSES, type LensVocabulary, type LifeCapability, type LifeDimension, type ObservedPattern, type OverlapDef, type PatternEvidence, type PatternPersistence, type PrimaryFrame, type PriorRead, RADIANT_PACKAGE_VERSION, type RadiantAI, type RenderInput, type RenderOutput, type RenderingLens, type RepoScope, type Score, type ScoreSentinel, type ScoredObservation, type Signal, type SignalExtractor, type SignalMatrix, type ThinkInput, type ThinkResult, type VoiceDirectives, type VoiceViolation, type WorldmodelItem, auditGovernance, aukiBuilderLens, checkForbiddenPhrases, classifyActorDomain, classifyEvents, composeSystemPrompt, computePersistence, createAnthropicAI, createMockAI, createMockGitHubAdapter, emergent, extractSignals, fetchGitHubActivity, formatExocortexForPrompt, formatPriorReadsForPrompt, formatScope, getLens, interpretPatterns, isPresent, isScored, isSentinel, listLenses, loadPriorReads, parseRepoScope, presenceAverage, readExocortex, render, scoreComposite, scoreCyber, scoreLife, scoreNeuroVerse, summarizeExocortex, think, updateKnowledge, writeRead };
|
package/dist/radiant/index.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_EVIDENCE_GATE,
|
|
3
3
|
DEFAULT_SIGNAL_EXTRACTORS,
|
|
4
|
+
auditGovernance,
|
|
4
5
|
checkForbiddenPhrases,
|
|
5
6
|
classifyActorDomain,
|
|
6
7
|
classifyEvents,
|
|
7
8
|
composeSystemPrompt,
|
|
9
|
+
computePersistence,
|
|
8
10
|
createAnthropicAI,
|
|
9
11
|
createMockAI,
|
|
10
12
|
createMockGitHubAdapter,
|
|
@@ -12,11 +14,13 @@ import {
|
|
|
12
14
|
extractSignals,
|
|
13
15
|
fetchGitHubActivity,
|
|
14
16
|
formatExocortexForPrompt,
|
|
17
|
+
formatPriorReadsForPrompt,
|
|
15
18
|
formatScope,
|
|
16
19
|
interpretPatterns,
|
|
17
20
|
isPresent,
|
|
18
21
|
isScored,
|
|
19
22
|
isSentinel,
|
|
23
|
+
loadPriorReads,
|
|
20
24
|
parseRepoScope,
|
|
21
25
|
presenceAverage,
|
|
22
26
|
readExocortex,
|
|
@@ -26,14 +30,19 @@ import {
|
|
|
26
30
|
scoreLife,
|
|
27
31
|
scoreNeuroVerse,
|
|
28
32
|
summarizeExocortex,
|
|
29
|
-
think
|
|
30
|
-
|
|
33
|
+
think,
|
|
34
|
+
updateKnowledge,
|
|
35
|
+
writeRead
|
|
36
|
+
} from "../chunk-T6EQ7ZBG.js";
|
|
31
37
|
import {
|
|
32
38
|
LENSES,
|
|
33
39
|
aukiBuilderLens,
|
|
34
40
|
getLens,
|
|
35
41
|
listLenses
|
|
36
42
|
} from "../chunk-VGFDMPVB.js";
|
|
43
|
+
import "../chunk-I4RTIMLX.js";
|
|
44
|
+
import "../chunk-ZAF6JH23.js";
|
|
45
|
+
import "../chunk-QLPTHTVB.js";
|
|
37
46
|
import "../chunk-QWGCMQQD.js";
|
|
38
47
|
|
|
39
48
|
// src/radiant/index.ts
|
|
@@ -43,11 +52,13 @@ export {
|
|
|
43
52
|
DEFAULT_SIGNAL_EXTRACTORS,
|
|
44
53
|
LENSES,
|
|
45
54
|
RADIANT_PACKAGE_VERSION,
|
|
55
|
+
auditGovernance,
|
|
46
56
|
aukiBuilderLens,
|
|
47
57
|
checkForbiddenPhrases,
|
|
48
58
|
classifyActorDomain,
|
|
49
59
|
classifyEvents,
|
|
50
60
|
composeSystemPrompt,
|
|
61
|
+
computePersistence,
|
|
51
62
|
createAnthropicAI,
|
|
52
63
|
createMockAI,
|
|
53
64
|
createMockGitHubAdapter,
|
|
@@ -55,6 +66,7 @@ export {
|
|
|
55
66
|
extractSignals,
|
|
56
67
|
fetchGitHubActivity,
|
|
57
68
|
formatExocortexForPrompt,
|
|
69
|
+
formatPriorReadsForPrompt,
|
|
58
70
|
formatScope,
|
|
59
71
|
getLens,
|
|
60
72
|
interpretPatterns,
|
|
@@ -62,6 +74,7 @@ export {
|
|
|
62
74
|
isScored,
|
|
63
75
|
isSentinel,
|
|
64
76
|
listLenses,
|
|
77
|
+
loadPriorReads,
|
|
65
78
|
parseRepoScope,
|
|
66
79
|
presenceAverage,
|
|
67
80
|
readExocortex,
|
|
@@ -71,5 +84,7 @@ export {
|
|
|
71
84
|
scoreLife,
|
|
72
85
|
scoreNeuroVerse,
|
|
73
86
|
summarizeExocortex,
|
|
74
|
-
think
|
|
87
|
+
think,
|
|
88
|
+
updateKnowledge,
|
|
89
|
+
writeRead
|
|
75
90
|
};
|