@pga-ai/core 0.4.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 +278 -0
- package/dist/PGA.d.ts +156 -0
- package/dist/PGA.d.ts.map +1 -0
- package/dist/PGA.js +636 -0
- package/dist/PGA.js.map +1 -0
- package/dist/advanced-ai/ModelRouter.d.ts +82 -0
- package/dist/advanced-ai/ModelRouter.d.ts.map +1 -0
- package/dist/advanced-ai/ModelRouter.js +280 -0
- package/dist/advanced-ai/ModelRouter.js.map +1 -0
- package/dist/advanced-ai/ThinkingEngine.d.ts +50 -0
- package/dist/advanced-ai/ThinkingEngine.d.ts.map +1 -0
- package/dist/advanced-ai/ThinkingEngine.js +179 -0
- package/dist/advanced-ai/ThinkingEngine.js.map +1 -0
- package/dist/core/ContextMemory.d.ts +56 -0
- package/dist/core/ContextMemory.d.ts.map +1 -0
- package/dist/core/ContextMemory.js +253 -0
- package/dist/core/ContextMemory.js.map +1 -0
- package/dist/core/DNAProfile.d.ts +19 -0
- package/dist/core/DNAProfile.d.ts.map +1 -0
- package/dist/core/DNAProfile.js +141 -0
- package/dist/core/DNAProfile.js.map +1 -0
- package/dist/core/FitnessTracker.d.ts +13 -0
- package/dist/core/FitnessTracker.d.ts.map +1 -0
- package/dist/core/FitnessTracker.js +101 -0
- package/dist/core/FitnessTracker.js.map +1 -0
- package/dist/core/GenomeKernel.d.ts +57 -0
- package/dist/core/GenomeKernel.d.ts.map +1 -0
- package/dist/core/GenomeKernel.js +305 -0
- package/dist/core/GenomeKernel.js.map +1 -0
- package/dist/core/GenomeManager.d.ts +21 -0
- package/dist/core/GenomeManager.d.ts.map +1 -0
- package/dist/core/GenomeManager.js +123 -0
- package/dist/core/GenomeManager.js.map +1 -0
- package/dist/core/LearningAnnouncer.d.ts +16 -0
- package/dist/core/LearningAnnouncer.d.ts.map +1 -0
- package/dist/core/LearningAnnouncer.js +176 -0
- package/dist/core/LearningAnnouncer.js.map +1 -0
- package/dist/core/ProactiveSuggestions.d.ts +25 -0
- package/dist/core/ProactiveSuggestions.d.ts.map +1 -0
- package/dist/core/ProactiveSuggestions.js +238 -0
- package/dist/core/ProactiveSuggestions.js.map +1 -0
- package/dist/core/PromptAssembler.d.ts +12 -0
- package/dist/core/PromptAssembler.d.ts.map +1 -0
- package/dist/core/PromptAssembler.js +74 -0
- package/dist/core/PromptAssembler.js.map +1 -0
- package/dist/enterprise/AuthManager.d.ts +71 -0
- package/dist/enterprise/AuthManager.d.ts.map +1 -0
- package/dist/enterprise/AuthManager.js +216 -0
- package/dist/enterprise/AuthManager.js.map +1 -0
- package/dist/enterprise/RateLimiter.d.ts +48 -0
- package/dist/enterprise/RateLimiter.d.ts.map +1 -0
- package/dist/enterprise/RateLimiter.js +193 -0
- package/dist/enterprise/RateLimiter.js.map +1 -0
- package/dist/evaluation/BenchmarkSuites.d.ts +27 -0
- package/dist/evaluation/BenchmarkSuites.d.ts.map +1 -0
- package/dist/evaluation/BenchmarkSuites.js +69 -0
- package/dist/evaluation/BenchmarkSuites.js.map +1 -0
- package/dist/evaluation/CalibrationManager.d.ts +66 -0
- package/dist/evaluation/CalibrationManager.d.ts.map +1 -0
- package/dist/evaluation/CalibrationManager.js +117 -0
- package/dist/evaluation/CalibrationManager.js.map +1 -0
- package/dist/evaluation/Evaluator.d.ts +79 -0
- package/dist/evaluation/Evaluator.d.ts.map +1 -0
- package/dist/evaluation/Evaluator.js +359 -0
- package/dist/evaluation/Evaluator.js.map +1 -0
- package/dist/evaluation/EvolutionGuardrails.d.ts +29 -0
- package/dist/evaluation/EvolutionGuardrails.d.ts.map +1 -0
- package/dist/evaluation/EvolutionGuardrails.js +166 -0
- package/dist/evaluation/EvolutionGuardrails.js.map +1 -0
- package/dist/evaluation/SandboxSuites.d.ts +26 -0
- package/dist/evaluation/SandboxSuites.d.ts.map +1 -0
- package/dist/evaluation/SandboxSuites.js +252 -0
- package/dist/evaluation/SandboxSuites.js.map +1 -0
- package/dist/evaluation/SemanticJudge.d.ts +21 -0
- package/dist/evaluation/SemanticJudge.d.ts.map +1 -0
- package/dist/evaluation/SemanticJudge.js +139 -0
- package/dist/evaluation/SemanticJudge.js.map +1 -0
- package/dist/evaluation/fixtures/core-coding-v1.json +68 -0
- package/dist/evaluation/fixtures/core-general-v1.json +68 -0
- package/dist/evolution/CanaryDeployment.d.ts +77 -0
- package/dist/evolution/CanaryDeployment.d.ts.map +1 -0
- package/dist/evolution/CanaryDeployment.js +261 -0
- package/dist/evolution/CanaryDeployment.js.map +1 -0
- package/dist/evolution/DriftAnalyzer.d.ts +63 -0
- package/dist/evolution/DriftAnalyzer.d.ts.map +1 -0
- package/dist/evolution/DriftAnalyzer.js +283 -0
- package/dist/evolution/DriftAnalyzer.js.map +1 -0
- package/dist/evolution/FitnessCalculator.d.ts +47 -0
- package/dist/evolution/FitnessCalculator.d.ts.map +1 -0
- package/dist/evolution/FitnessCalculator.js +177 -0
- package/dist/evolution/FitnessCalculator.js.map +1 -0
- package/dist/evolution/MutationOperator.d.ts +76 -0
- package/dist/evolution/MutationOperator.d.ts.map +1 -0
- package/dist/evolution/MutationOperator.js +267 -0
- package/dist/evolution/MutationOperator.js.map +1 -0
- package/dist/evolution/PromotionGate.d.ts +45 -0
- package/dist/evolution/PromotionGate.d.ts.map +1 -0
- package/dist/evolution/PromotionGate.js +248 -0
- package/dist/evolution/PromotionGate.js.map +1 -0
- package/dist/evolution/boost/EvolutionBoostEngine.d.ts +69 -0
- package/dist/evolution/boost/EvolutionBoostEngine.d.ts.map +1 -0
- package/dist/evolution/boost/EvolutionBoostEngine.js +185 -0
- package/dist/evolution/boost/EvolutionBoostEngine.js.map +1 -0
- package/dist/evolution/boost/GeneticRecombinator.d.ts +26 -0
- package/dist/evolution/boost/GeneticRecombinator.d.ts.map +1 -0
- package/dist/evolution/boost/GeneticRecombinator.js +179 -0
- package/dist/evolution/boost/GeneticRecombinator.js.map +1 -0
- package/dist/evolution/boost/MetaEvolutionEngine.d.ts +48 -0
- package/dist/evolution/boost/MetaEvolutionEngine.d.ts.map +1 -0
- package/dist/evolution/boost/MetaEvolutionEngine.js +193 -0
- package/dist/evolution/boost/MetaEvolutionEngine.js.map +1 -0
- package/dist/evolution/boost/ParallelEvolutionEngine.d.ts +44 -0
- package/dist/evolution/boost/ParallelEvolutionEngine.d.ts.map +1 -0
- package/dist/evolution/boost/ParallelEvolutionEngine.js +135 -0
- package/dist/evolution/boost/ParallelEvolutionEngine.js.map +1 -0
- package/dist/evolution/boost/ParetoOptimizer.d.ts +42 -0
- package/dist/evolution/boost/ParetoOptimizer.d.ts.map +1 -0
- package/dist/evolution/boost/ParetoOptimizer.js +167 -0
- package/dist/evolution/boost/ParetoOptimizer.js.map +1 -0
- package/dist/evolution/boost/operators/BreakthroughOperator.d.ts +22 -0
- package/dist/evolution/boost/operators/BreakthroughOperator.d.ts.map +1 -0
- package/dist/evolution/boost/operators/BreakthroughOperator.js +217 -0
- package/dist/evolution/boost/operators/BreakthroughOperator.js.map +1 -0
- package/dist/evolution/boost/operators/CrossoverMutationOperator.d.ts +26 -0
- package/dist/evolution/boost/operators/CrossoverMutationOperator.d.ts.map +1 -0
- package/dist/evolution/boost/operators/CrossoverMutationOperator.js +160 -0
- package/dist/evolution/boost/operators/CrossoverMutationOperator.js.map +1 -0
- package/dist/evolution/boost/operators/PatternExtractionOperator.d.ts +24 -0
- package/dist/evolution/boost/operators/PatternExtractionOperator.d.ts.map +1 -0
- package/dist/evolution/boost/operators/PatternExtractionOperator.js +212 -0
- package/dist/evolution/boost/operators/PatternExtractionOperator.js.map +1 -0
- package/dist/evolution/boost/operators/SemanticRestructuringOperator.d.ts +19 -0
- package/dist/evolution/boost/operators/SemanticRestructuringOperator.d.ts.map +1 -0
- package/dist/evolution/boost/operators/SemanticRestructuringOperator.js +106 -0
- package/dist/evolution/boost/operators/SemanticRestructuringOperator.js.map +1 -0
- package/dist/gene-bank/CognitiveGene.d.ts +799 -0
- package/dist/gene-bank/CognitiveGene.d.ts.map +1 -0
- package/dist/gene-bank/CognitiveGene.js +128 -0
- package/dist/gene-bank/CognitiveGene.js.map +1 -0
- package/dist/gene-bank/GeneAdopter.d.ts +75 -0
- package/dist/gene-bank/GeneAdopter.d.ts.map +1 -0
- package/dist/gene-bank/GeneAdopter.js +271 -0
- package/dist/gene-bank/GeneAdopter.js.map +1 -0
- package/dist/gene-bank/GeneBank.d.ts +124 -0
- package/dist/gene-bank/GeneBank.d.ts.map +1 -0
- package/dist/gene-bank/GeneBank.js +261 -0
- package/dist/gene-bank/GeneBank.js.map +1 -0
- package/dist/gene-bank/GeneExtractor.d.ts +59 -0
- package/dist/gene-bank/GeneExtractor.d.ts.map +1 -0
- package/dist/gene-bank/GeneExtractor.js +311 -0
- package/dist/gene-bank/GeneExtractor.js.map +1 -0
- package/dist/gene-bank/GeneMatcher.d.ts +82 -0
- package/dist/gene-bank/GeneMatcher.d.ts.map +1 -0
- package/dist/gene-bank/GeneMatcher.js +215 -0
- package/dist/gene-bank/GeneMatcher.js.map +1 -0
- package/dist/gene-bank/PGAIntegration.d.ts +53 -0
- package/dist/gene-bank/PGAIntegration.d.ts.map +1 -0
- package/dist/gene-bank/PGAIntegration.js +139 -0
- package/dist/gene-bank/PGAIntegration.js.map +1 -0
- package/dist/gene-bank/SandboxTester.d.ts +92 -0
- package/dist/gene-bank/SandboxTester.d.ts.map +1 -0
- package/dist/gene-bank/SandboxTester.js +262 -0
- package/dist/gene-bank/SandboxTester.js.map +1 -0
- package/dist/gene-bank/adapters/InMemoryGeneStorage.d.ts +21 -0
- package/dist/gene-bank/adapters/InMemoryGeneStorage.d.ts.map +1 -0
- package/dist/gene-bank/adapters/InMemoryGeneStorage.js +115 -0
- package/dist/gene-bank/adapters/InMemoryGeneStorage.js.map +1 -0
- package/dist/gene-bank/adapters/PostgresGeneStorage.d.ts +21 -0
- package/dist/gene-bank/adapters/PostgresGeneStorage.d.ts.map +1 -0
- package/dist/gene-bank/adapters/PostgresGeneStorage.js +272 -0
- package/dist/gene-bank/adapters/PostgresGeneStorage.js.map +1 -0
- package/dist/gene-bank/index.d.ts +7 -0
- package/dist/gene-bank/index.d.ts.map +1 -0
- package/dist/gene-bank/index.js +7 -0
- package/dist/gene-bank/index.js.map +1 -0
- package/dist/index.d.ts +72 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +37 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces/LLMAdapter.d.ts +31 -0
- package/dist/interfaces/LLMAdapter.d.ts.map +1 -0
- package/dist/interfaces/LLMAdapter.js +2 -0
- package/dist/interfaces/LLMAdapter.js.map +1 -0
- package/dist/interfaces/StorageAdapter.d.ts +49 -0
- package/dist/interfaces/StorageAdapter.d.ts.map +1 -0
- package/dist/interfaces/StorageAdapter.js +2 -0
- package/dist/interfaces/StorageAdapter.js.map +1 -0
- package/dist/memory/LayeredMemory.d.ts +112 -0
- package/dist/memory/LayeredMemory.d.ts.map +1 -0
- package/dist/memory/LayeredMemory.js +405 -0
- package/dist/memory/LayeredMemory.js.map +1 -0
- package/dist/memory-compaction/MemoryCompactor.d.ts +18 -0
- package/dist/memory-compaction/MemoryCompactor.d.ts.map +1 -0
- package/dist/memory-compaction/MemoryCompactor.js +156 -0
- package/dist/memory-compaction/MemoryCompactor.js.map +1 -0
- package/dist/memory-compaction/index.d.ts +6 -0
- package/dist/memory-compaction/index.d.ts.map +1 -0
- package/dist/memory-compaction/index.js +5 -0
- package/dist/memory-compaction/index.js.map +1 -0
- package/dist/memory-compaction/strategies/BaseStrategy.d.ts +9 -0
- package/dist/memory-compaction/strategies/BaseStrategy.d.ts.map +1 -0
- package/dist/memory-compaction/strategies/BaseStrategy.js +50 -0
- package/dist/memory-compaction/strategies/BaseStrategy.js.map +1 -0
- package/dist/memory-compaction/strategies/ImportanceBasedStrategy.d.ts +9 -0
- package/dist/memory-compaction/strategies/ImportanceBasedStrategy.d.ts.map +1 -0
- package/dist/memory-compaction/strategies/ImportanceBasedStrategy.js +101 -0
- package/dist/memory-compaction/strategies/ImportanceBasedStrategy.js.map +1 -0
- package/dist/memory-compaction/strategies/SlidingWindowStrategy.d.ts +9 -0
- package/dist/memory-compaction/strategies/SlidingWindowStrategy.d.ts.map +1 -0
- package/dist/memory-compaction/strategies/SlidingWindowStrategy.js +87 -0
- package/dist/memory-compaction/strategies/SlidingWindowStrategy.js.map +1 -0
- package/dist/memory-compaction/types.d.ts +78 -0
- package/dist/memory-compaction/types.d.ts.map +1 -0
- package/dist/memory-compaction/types.js +2 -0
- package/dist/memory-compaction/types.js.map +1 -0
- package/dist/monitoring/AlertWebhooks.d.ts +57 -0
- package/dist/monitoring/AlertWebhooks.d.ts.map +1 -0
- package/dist/monitoring/AlertWebhooks.js +205 -0
- package/dist/monitoring/AlertWebhooks.js.map +1 -0
- package/dist/monitoring/MetricsCollector.d.ts +120 -0
- package/dist/monitoring/MetricsCollector.d.ts.map +1 -0
- package/dist/monitoring/MetricsCollector.js +274 -0
- package/dist/monitoring/MetricsCollector.js.map +1 -0
- package/dist/monitoring/MonitoringDashboard.d.ts +38 -0
- package/dist/monitoring/MonitoringDashboard.d.ts.map +1 -0
- package/dist/monitoring/MonitoringDashboard.js +271 -0
- package/dist/monitoring/MonitoringDashboard.js.map +1 -0
- package/dist/plugins/PluginManager.d.ts +61 -0
- package/dist/plugins/PluginManager.d.ts.map +1 -0
- package/dist/plugins/PluginManager.js +154 -0
- package/dist/plugins/PluginManager.js.map +1 -0
- package/dist/rag/RAGEngine.d.ts +54 -0
- package/dist/rag/RAGEngine.d.ts.map +1 -0
- package/dist/rag/RAGEngine.js +162 -0
- package/dist/rag/RAGEngine.js.map +1 -0
- package/dist/rag/VectorStoreAdapter.d.ts +40 -0
- package/dist/rag/VectorStoreAdapter.d.ts.map +1 -0
- package/dist/rag/VectorStoreAdapter.js +106 -0
- package/dist/rag/VectorStoreAdapter.js.map +1 -0
- package/dist/realtime/EventEmitter.d.ts +86 -0
- package/dist/realtime/EventEmitter.d.ts.map +1 -0
- package/dist/realtime/EventEmitter.js +173 -0
- package/dist/realtime/EventEmitter.js.map +1 -0
- package/dist/realtime/StreamingManager.d.ts +26 -0
- package/dist/realtime/StreamingManager.d.ts.map +1 -0
- package/dist/realtime/StreamingManager.js +175 -0
- package/dist/realtime/StreamingManager.js.map +1 -0
- package/dist/reasoning/ReasoningEngine.d.ts +57 -0
- package/dist/reasoning/ReasoningEngine.d.ts.map +1 -0
- package/dist/reasoning/ReasoningEngine.js +316 -0
- package/dist/reasoning/ReasoningEngine.js.map +1 -0
- package/dist/resilience/CircuitBreaker.d.ts +41 -0
- package/dist/resilience/CircuitBreaker.d.ts.map +1 -0
- package/dist/resilience/CircuitBreaker.js +108 -0
- package/dist/resilience/CircuitBreaker.js.map +1 -0
- package/dist/resilience/RetryManager.d.ts +14 -0
- package/dist/resilience/RetryManager.d.ts.map +1 -0
- package/dist/resilience/RetryManager.js +35 -0
- package/dist/resilience/RetryManager.js.map +1 -0
- package/dist/types/GenomeV2.d.ts +226 -0
- package/dist/types/GenomeV2.d.ts.map +1 -0
- package/dist/types/GenomeV2.js +2 -0
- package/dist/types/GenomeV2.js.map +1 -0
- package/dist/types/index.d.ts +205 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -0
- package/package.json +75 -0
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
export class PostgresGeneStorage {
|
|
2
|
+
connection;
|
|
3
|
+
constructor(connection) {
|
|
4
|
+
this.connection = connection;
|
|
5
|
+
}
|
|
6
|
+
async store(gene) {
|
|
7
|
+
await this.connection.query(`
|
|
8
|
+
INSERT INTO cognitive_genes (
|
|
9
|
+
id, version, name, description, type, domain,
|
|
10
|
+
fitness,
|
|
11
|
+
parent_gene_id, generation, ancestors, mutation_history,
|
|
12
|
+
instruction, examples, required_capabilities,
|
|
13
|
+
applicable_contexts, contraindications, content_metadata,
|
|
14
|
+
tenant_id, created_by, scope, verified,
|
|
15
|
+
created_at, updated_at, tags
|
|
16
|
+
) VALUES (
|
|
17
|
+
$1, $2, $3, $4, $5, $6,
|
|
18
|
+
$7::jsonb,
|
|
19
|
+
$8, $9, $10::jsonb, $11::jsonb,
|
|
20
|
+
$12, $13::jsonb, $14::jsonb,
|
|
21
|
+
$15::jsonb, $16::jsonb, $17::jsonb,
|
|
22
|
+
$18, $19, $20, $21,
|
|
23
|
+
$22, $23, $24::jsonb
|
|
24
|
+
)
|
|
25
|
+
`, [
|
|
26
|
+
gene.id,
|
|
27
|
+
gene.version,
|
|
28
|
+
gene.name,
|
|
29
|
+
gene.description,
|
|
30
|
+
gene.type,
|
|
31
|
+
gene.domain,
|
|
32
|
+
JSON.stringify(gene.fitness),
|
|
33
|
+
gene.lineage.parentGeneId,
|
|
34
|
+
gene.lineage.generation,
|
|
35
|
+
JSON.stringify(gene.lineage.ancestors),
|
|
36
|
+
JSON.stringify(gene.lineage.mutationHistory),
|
|
37
|
+
gene.content.instruction,
|
|
38
|
+
JSON.stringify(gene.content.examples || []),
|
|
39
|
+
JSON.stringify(gene.content.requiredCapabilities || []),
|
|
40
|
+
JSON.stringify(gene.content.applicableContexts || []),
|
|
41
|
+
JSON.stringify(gene.content.contraindications || []),
|
|
42
|
+
JSON.stringify(gene.content.metadata || {}),
|
|
43
|
+
gene.tenant.tenantId,
|
|
44
|
+
gene.tenant.createdBy,
|
|
45
|
+
gene.tenant.scope,
|
|
46
|
+
gene.tenant.verified,
|
|
47
|
+
gene.createdAt,
|
|
48
|
+
gene.updatedAt,
|
|
49
|
+
JSON.stringify(gene.tags),
|
|
50
|
+
]);
|
|
51
|
+
}
|
|
52
|
+
async get(geneId) {
|
|
53
|
+
const result = await this.connection.query('SELECT * FROM cognitive_genes WHERE id = $1', [geneId]);
|
|
54
|
+
if (result.rows.length === 0) {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
return this.rowToGene(result.rows[0]);
|
|
58
|
+
}
|
|
59
|
+
async update(gene) {
|
|
60
|
+
await this.connection.query(`
|
|
61
|
+
UPDATE cognitive_genes SET
|
|
62
|
+
version = $2,
|
|
63
|
+
name = $3,
|
|
64
|
+
description = $4,
|
|
65
|
+
type = $5,
|
|
66
|
+
domain = $6,
|
|
67
|
+
fitness = $7::jsonb,
|
|
68
|
+
parent_gene_id = $8,
|
|
69
|
+
generation = $9,
|
|
70
|
+
ancestors = $10::jsonb,
|
|
71
|
+
mutation_history = $11::jsonb,
|
|
72
|
+
instruction = $12,
|
|
73
|
+
examples = $13::jsonb,
|
|
74
|
+
required_capabilities = $14::jsonb,
|
|
75
|
+
applicable_contexts = $15::jsonb,
|
|
76
|
+
contraindications = $16::jsonb,
|
|
77
|
+
content_metadata = $17::jsonb,
|
|
78
|
+
tenant_id = $18,
|
|
79
|
+
created_by = $19,
|
|
80
|
+
scope = $20,
|
|
81
|
+
verified = $21,
|
|
82
|
+
updated_at = $22,
|
|
83
|
+
tags = $23::jsonb
|
|
84
|
+
WHERE id = $1
|
|
85
|
+
`, [
|
|
86
|
+
gene.id,
|
|
87
|
+
gene.version,
|
|
88
|
+
gene.name,
|
|
89
|
+
gene.description,
|
|
90
|
+
gene.type,
|
|
91
|
+
gene.domain,
|
|
92
|
+
JSON.stringify(gene.fitness),
|
|
93
|
+
gene.lineage.parentGeneId,
|
|
94
|
+
gene.lineage.generation,
|
|
95
|
+
JSON.stringify(gene.lineage.ancestors),
|
|
96
|
+
JSON.stringify(gene.lineage.mutationHistory),
|
|
97
|
+
gene.content.instruction,
|
|
98
|
+
JSON.stringify(gene.content.examples || []),
|
|
99
|
+
JSON.stringify(gene.content.requiredCapabilities || []),
|
|
100
|
+
JSON.stringify(gene.content.applicableContexts || []),
|
|
101
|
+
JSON.stringify(gene.content.contraindications || []),
|
|
102
|
+
JSON.stringify(gene.content.metadata || {}),
|
|
103
|
+
gene.tenant.tenantId,
|
|
104
|
+
gene.tenant.createdBy,
|
|
105
|
+
gene.tenant.scope,
|
|
106
|
+
gene.tenant.verified,
|
|
107
|
+
gene.updatedAt,
|
|
108
|
+
JSON.stringify(gene.tags),
|
|
109
|
+
]);
|
|
110
|
+
}
|
|
111
|
+
async delete(geneId) {
|
|
112
|
+
await this.connection.query('DELETE FROM cognitive_genes WHERE id = $1', [geneId]);
|
|
113
|
+
}
|
|
114
|
+
async search(filters) {
|
|
115
|
+
const conditions = [];
|
|
116
|
+
const params = [];
|
|
117
|
+
let paramIndex = 1;
|
|
118
|
+
if (filters.tenantId) {
|
|
119
|
+
conditions.push(`tenant_id = $${paramIndex++}`);
|
|
120
|
+
params.push(filters.tenantId);
|
|
121
|
+
}
|
|
122
|
+
if (filters.type && filters.type.length > 0) {
|
|
123
|
+
conditions.push(`type = ANY($${paramIndex++})`);
|
|
124
|
+
params.push(filters.type);
|
|
125
|
+
}
|
|
126
|
+
if (filters.domain && filters.domain.length > 0) {
|
|
127
|
+
conditions.push(`domain = ANY($${paramIndex++})`);
|
|
128
|
+
params.push(filters.domain);
|
|
129
|
+
}
|
|
130
|
+
if (filters.minFitness !== undefined) {
|
|
131
|
+
conditions.push(`(fitness->>'overallFitness')::numeric >= $${paramIndex++}`);
|
|
132
|
+
params.push(filters.minFitness);
|
|
133
|
+
}
|
|
134
|
+
if (filters.minAdoptions !== undefined) {
|
|
135
|
+
conditions.push(`(fitness->>'adoptionCount')::integer >= $${paramIndex++}`);
|
|
136
|
+
params.push(filters.minAdoptions);
|
|
137
|
+
}
|
|
138
|
+
if (filters.scope && filters.scope.length > 0) {
|
|
139
|
+
conditions.push(`scope = ANY($${paramIndex++})`);
|
|
140
|
+
params.push(filters.scope);
|
|
141
|
+
}
|
|
142
|
+
if (filters.verifiedOnly) {
|
|
143
|
+
conditions.push('verified = TRUE');
|
|
144
|
+
}
|
|
145
|
+
if (filters.tags && filters.tags.length > 0) {
|
|
146
|
+
conditions.push(`tags ?| $${paramIndex++}`);
|
|
147
|
+
params.push(filters.tags);
|
|
148
|
+
}
|
|
149
|
+
const whereClause = conditions.length > 0
|
|
150
|
+
? `WHERE ${conditions.join(' AND ')}`
|
|
151
|
+
: '';
|
|
152
|
+
const sortBy = filters.sortBy || 'fitness';
|
|
153
|
+
const sortOrder = filters.sortOrder || 'desc';
|
|
154
|
+
let orderBy = '';
|
|
155
|
+
switch (sortBy) {
|
|
156
|
+
case 'fitness':
|
|
157
|
+
orderBy = `(fitness->>'overallFitness')::numeric ${sortOrder.toUpperCase()}`;
|
|
158
|
+
break;
|
|
159
|
+
case 'adoptions':
|
|
160
|
+
orderBy = `(fitness->>'adoptionCount')::integer ${sortOrder.toUpperCase()}`;
|
|
161
|
+
break;
|
|
162
|
+
case 'createdAt':
|
|
163
|
+
orderBy = `created_at ${sortOrder.toUpperCase()}`;
|
|
164
|
+
break;
|
|
165
|
+
case 'updatedAt':
|
|
166
|
+
orderBy = `updated_at ${sortOrder.toUpperCase()}`;
|
|
167
|
+
break;
|
|
168
|
+
default:
|
|
169
|
+
orderBy = `created_at DESC`;
|
|
170
|
+
}
|
|
171
|
+
const limit = filters.limit || 10;
|
|
172
|
+
const offset = filters.offset || 0;
|
|
173
|
+
const sql = `
|
|
174
|
+
SELECT * FROM cognitive_genes
|
|
175
|
+
${whereClause}
|
|
176
|
+
ORDER BY ${orderBy}
|
|
177
|
+
LIMIT $${paramIndex++} OFFSET $${paramIndex++}
|
|
178
|
+
`;
|
|
179
|
+
params.push(limit, offset);
|
|
180
|
+
const result = await this.connection.query(sql, params);
|
|
181
|
+
return result.rows.map(row => this.rowToGene(row));
|
|
182
|
+
}
|
|
183
|
+
async listByTenant(tenantId, scope) {
|
|
184
|
+
const sql = scope
|
|
185
|
+
? 'SELECT * FROM cognitive_genes WHERE tenant_id = $1 AND scope = $2'
|
|
186
|
+
: 'SELECT * FROM cognitive_genes WHERE tenant_id = $1';
|
|
187
|
+
const params = scope ? [tenantId, scope] : [tenantId];
|
|
188
|
+
const result = await this.connection.query(sql, params);
|
|
189
|
+
return result.rows.map(row => this.rowToGene(row));
|
|
190
|
+
}
|
|
191
|
+
async getLineage(geneId) {
|
|
192
|
+
const sql = `
|
|
193
|
+
WITH RECURSIVE gene_lineage AS (
|
|
194
|
+
-- Base case: the gene itself
|
|
195
|
+
SELECT * FROM cognitive_genes WHERE id = $1
|
|
196
|
+
|
|
197
|
+
UNION ALL
|
|
198
|
+
|
|
199
|
+
-- Recursive case: parent genes
|
|
200
|
+
SELECT g.*
|
|
201
|
+
FROM cognitive_genes g
|
|
202
|
+
INNER JOIN gene_lineage gl ON g.id = gl.parent_gene_id
|
|
203
|
+
)
|
|
204
|
+
SELECT * FROM gene_lineage
|
|
205
|
+
WHERE id != $1
|
|
206
|
+
ORDER BY generation DESC
|
|
207
|
+
`;
|
|
208
|
+
const result = await this.connection.query(sql, [geneId]);
|
|
209
|
+
return result.rows.map(row => this.rowToGene(row));
|
|
210
|
+
}
|
|
211
|
+
async recordAdoption(geneId, agentId, performance) {
|
|
212
|
+
await this.connection.query(`
|
|
213
|
+
INSERT INTO gene_adoptions (gene_id, agent_id, performance)
|
|
214
|
+
VALUES ($1, $2, $3)
|
|
215
|
+
`, [geneId, agentId, performance]);
|
|
216
|
+
const adoptionsResult = await this.connection.query(`
|
|
217
|
+
SELECT COUNT(*)::integer as count, AVG(performance)::numeric as avg_performance
|
|
218
|
+
FROM gene_adoptions
|
|
219
|
+
WHERE gene_id = $1
|
|
220
|
+
`, [geneId]);
|
|
221
|
+
const { count, avg_performance } = adoptionsResult.rows[0];
|
|
222
|
+
await this.connection.query(`
|
|
223
|
+
UPDATE cognitive_genes
|
|
224
|
+
SET fitness = jsonb_set(
|
|
225
|
+
jsonb_set(
|
|
226
|
+
fitness,
|
|
227
|
+
'{adoptionCount}',
|
|
228
|
+
$2::text::jsonb
|
|
229
|
+
),
|
|
230
|
+
'{adoptionPerformance}',
|
|
231
|
+
$3::text::jsonb
|
|
232
|
+
),
|
|
233
|
+
updated_at = NOW()
|
|
234
|
+
WHERE id = $1
|
|
235
|
+
`, [geneId, count, avg_performance]);
|
|
236
|
+
}
|
|
237
|
+
rowToGene(row) {
|
|
238
|
+
return {
|
|
239
|
+
id: row.id,
|
|
240
|
+
version: row.version,
|
|
241
|
+
name: row.name,
|
|
242
|
+
description: row.description,
|
|
243
|
+
type: row.type,
|
|
244
|
+
domain: row.domain,
|
|
245
|
+
fitness: row.fitness,
|
|
246
|
+
lineage: {
|
|
247
|
+
parentGeneId: row.parent_gene_id,
|
|
248
|
+
generation: row.generation,
|
|
249
|
+
ancestors: row.ancestors,
|
|
250
|
+
mutationHistory: row.mutation_history,
|
|
251
|
+
},
|
|
252
|
+
content: {
|
|
253
|
+
instruction: row.instruction,
|
|
254
|
+
examples: row.examples,
|
|
255
|
+
requiredCapabilities: row.required_capabilities,
|
|
256
|
+
applicableContexts: row.applicable_contexts,
|
|
257
|
+
contraindications: row.contraindications,
|
|
258
|
+
metadata: row.content_metadata,
|
|
259
|
+
},
|
|
260
|
+
tenant: {
|
|
261
|
+
tenantId: row.tenant_id,
|
|
262
|
+
createdBy: row.created_by,
|
|
263
|
+
scope: row.scope,
|
|
264
|
+
verified: row.verified,
|
|
265
|
+
},
|
|
266
|
+
createdAt: row.created_at.toISOString(),
|
|
267
|
+
updatedAt: row.updated_at.toISOString(),
|
|
268
|
+
tags: row.tags,
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
//# sourceMappingURL=PostgresGeneStorage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PostgresGeneStorage.js","sourceRoot":"","sources":["../../../src/gene-bank/adapters/PostgresGeneStorage.ts"],"names":[],"mappings":"AAiGA,MAAM,OAAO,mBAAmB;IACR;IAApB,YAAoB,UAA8B;QAA9B,eAAU,GAAV,UAAU,CAAoB;IAAG,CAAC;IAKtD,KAAK,CAAC,KAAK,CAAC,IAAmB;QAC3B,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CACvB;;;;;;;;;;;;;;;;;;aAkBC,EACD;YACI,IAAI,CAAC,EAAE;YACP,IAAI,CAAC,OAAO;YACZ,IAAI,CAAC,IAAI;YAC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G,CAAC,OAAO;YACpB,OAAO,EAAE;gBACL,YAAY,EAAE,GAAG,CAAC,cAAc;gBAChC,UAAU,EAAE,GAAG,CAAC,UAAU;gBAC1B,SAAS,EAAE,GAAG,CAAC,SAAS;gBACxB,eAAe,EAAE,GAAG,CAAC,gBAAgB;aACxC;YACD,OAAO,EAAE;gBACL,WAAW,EAAE,GAAG,CAAC,WAAW;gBAC5B,QAAQ,EAAE,GAAG,CAAC,QAAQ;gBACtB,oBAAoB,EAAE,GAAG,CAAC,qBAAqB;gBAC/C,kBAAkB,EAAE,GAAG,CAAC,mBAAmB;gBAC3C,iBAAiB,EAAE,GAAG,CAAC,iBAAiB;gBACxC,QAAQ,EAAE,GAAG,CAAC,gBAAgB;aACjC;YACD,MAAM,EAAE;gBACJ,QAAQ,EAAE,GAAG,CAAC,SAAS;gBACvB,SAAS,EAAE,GAAG,CAAC,UAAU;gBACzB,KAAK,EAAE,GAAG,CAAC,KAAK;gBAChB,QAAQ,EAAE,GAAG,CAAC,QAAQ;aACzB;YACD,SAAS,EAAE,GAAG,CAAC,UAAU,CAAC,WAAW,EAAE;YACvC,SAAS,EAAE,GAAG,CAAC,UAAU,CAAC,WAAW,EAAE;YACvC,IAAI,EAAE,GAAG,CAAC,IAAI;SACjB,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { CognitiveGene, GeneType, GeneContent, FitnessMetrics, Lineage, TenantInfo, SharingScope, GeneExtractionResult, GeneAdoptionResult, CognitiveGeneSchema, GeneTypeSchema, GeneContentSchema, FitnessMetricsSchema, LineageSchema, TenantInfoSchema, SharingScopeSchema, GeneExtractionResultSchema, GeneAdoptionResultSchema, createGeneId, meetsMinimumFitness, calculateFitnessDelta, isMarketplaceReady, } from './CognitiveGene';
|
|
2
|
+
export { GeneBank, GeneBankConfig, GeneBankConfigSchema, GeneBankStats, GeneStorageAdapter, GeneSearchFilters, GeneSearchFiltersSchema, } from './GeneBank';
|
|
3
|
+
export { GeneExtractor, GeneExtractionConfig, GeneExtractionConfigSchema, MutationContext, } from './GeneExtractor';
|
|
4
|
+
export { GeneMatcher, GeneMatchConfig, GeneMatchConfigSchema, MatchContext, GeneMatchResult, } from './GeneMatcher';
|
|
5
|
+
export { SandboxTester, SandboxConfig, SandboxConfigSchema, SandboxTestCase, TestCaseResult, SandboxTestResult, BaselinePerformance, } from './SandboxTester';
|
|
6
|
+
export { GeneAdopter, GeneAdoptionConfig, GeneAdoptionConfigSchema, AdoptionRequest, AdoptedGeneStatus, } from './GeneAdopter';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/gene-bank/index.ts"],"names":[],"mappings":"AAiBA,OAAO,EAEH,aAAa,EACb,QAAQ,EACR,WAAW,EACX,cAAc,EACd,OAAO,EACP,UAAU,EACV,YAAY,EACZ,oBAAoB,EACpB,kBAAkB,EAGlB,mBAAmB,EACnB,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,0BAA0B,EAC1B,wBAAwB,EAGxB,YAAY,EACZ,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,GACrB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EACH,QAAQ,EACR,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,uBAAuB,GAC1B,MAAM,YAAY,CAAC;AAGpB,OAAO,EACH,aAAa,EACb,oBAAoB,EACpB,0BAA0B,EAC1B,eAAe,GAClB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EACH,WAAW,EACX,eAAe,EACf,qBAAqB,EACrB,YAAY,EACZ,eAAe,GAClB,MAAM,eAAe,CAAC;AAGvB,OAAO,EACH,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,mBAAmB,GACtB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EACH,WAAW,EACX,kBAAkB,EAClB,wBAAwB,EACxB,eAAe,EACf,iBAAiB,GACpB,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { CognitiveGeneSchema, GeneTypeSchema, GeneContentSchema, FitnessMetricsSchema, LineageSchema, TenantInfoSchema, SharingScopeSchema, GeneExtractionResultSchema, GeneAdoptionResultSchema, createGeneId, meetsMinimumFitness, calculateFitnessDelta, isMarketplaceReady, } from './CognitiveGene';
|
|
2
|
+
export { GeneBank, GeneBankConfigSchema, GeneSearchFiltersSchema, } from './GeneBank';
|
|
3
|
+
export { GeneExtractor, GeneExtractionConfigSchema, } from './GeneExtractor';
|
|
4
|
+
export { GeneMatcher, GeneMatchConfigSchema, } from './GeneMatcher';
|
|
5
|
+
export { SandboxTester, SandboxConfigSchema, } from './SandboxTester';
|
|
6
|
+
export { GeneAdopter, GeneAdoptionConfigSchema, } from './GeneAdopter';
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/gene-bank/index.ts"],"names":[],"mappings":"AAiBA,OAAO,EAaH,mBAAmB,EACnB,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,0BAA0B,EAC1B,wBAAwB,EAGxB,YAAY,EACZ,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,GACrB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EACH,QAAQ,EAER,oBAAoB,EAIpB,uBAAuB,GAC1B,MAAM,YAAY,CAAC;AAGpB,OAAO,EACH,aAAa,EAEb,0BAA0B,GAE7B,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EACH,WAAW,EAEX,qBAAqB,GAGxB,MAAM,eAAe,CAAC;AAGvB,OAAO,EACH,aAAa,EAEb,mBAAmB,GAKtB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EACH,WAAW,EAEX,wBAAwB,GAG3B,MAAM,eAAe,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export { PGA, GenomeInstance } from './PGA.js';
|
|
2
|
+
export type { PGAConfig } from './PGA.js';
|
|
3
|
+
export { Evaluator, STANDARD_TASKS } from './evaluation/Evaluator.js';
|
|
4
|
+
export type { EvaluationTask, EvaluationResult, BenchmarkResult, ComparisonResult, EvaluatableGenome, } from './evaluation/Evaluator.js';
|
|
5
|
+
export { getBenchmarkSuite, getAvailableSuites, validateSuiteFrozen, CORE_GENERAL_V1, CORE_CODING_V1, PGA_SPECIFIC_V1, } from './evaluation/BenchmarkSuites.js';
|
|
6
|
+
export type { BenchmarkSuite, BenchmarkSuiteMetadata, BenchmarkSuiteId, } from './evaluation/BenchmarkSuites.js';
|
|
7
|
+
export { getSandboxSuite, getSandboxPromotionThreshold, GLOBAL_SANDBOX_CASES, COMPRESS_INSTRUCTIONS_CASES, REORDER_CONSTRAINTS_CASES, SAFETY_REINFORCEMENT_CASES, TOOL_SELECTION_BIAS_CASES, CODING_TASK_CASES, GENERAL_TASK_CASES, } from './evaluation/SandboxSuites.js';
|
|
8
|
+
export type { SandboxCaseDefinition, } from './evaluation/SandboxSuites.js';
|
|
9
|
+
export { SemanticJudge } from './evaluation/SemanticJudge.js';
|
|
10
|
+
export type { SemanticJudgment, } from './evaluation/SemanticJudge.js';
|
|
11
|
+
export { CalibrationManager } from './evaluation/CalibrationManager.js';
|
|
12
|
+
export type { CalibrationPoint, CalibrationHistory, } from './evaluation/CalibrationManager.js';
|
|
13
|
+
export { EvolutionGuardrailsManager } from './evaluation/EvolutionGuardrails.js';
|
|
14
|
+
export type { MutationCandidate, } from './evaluation/EvolutionGuardrails.js';
|
|
15
|
+
export { MetricsCollector } from './monitoring/MetricsCollector.js';
|
|
16
|
+
export type { PerformanceMetrics, CostMetrics, HealthStatus, ComponentHealth, AuditLog, Alert, MetricsCollectorConfig, } from './monitoring/MetricsCollector.js';
|
|
17
|
+
export { MonitoringDashboard } from './monitoring/MonitoringDashboard.js';
|
|
18
|
+
export type { DashboardConfig, } from './monitoring/MonitoringDashboard.js';
|
|
19
|
+
export { AlertWebhooks } from './monitoring/AlertWebhooks.js';
|
|
20
|
+
export type { WebhookConfig, SlackPayload, DiscordPayload, } from './monitoring/AlertWebhooks.js';
|
|
21
|
+
export { LayeredMemory } from './memory/LayeredMemory.js';
|
|
22
|
+
export type { LayeredMemoryConfig, LayeredMemorySnapshot, ShortTermMemory, MediumTermMemory, LongTermMemory, UserProfile, SemanticFact, } from './memory/LayeredMemory.js';
|
|
23
|
+
export { RAGEngine } from './rag/RAGEngine.js';
|
|
24
|
+
export type { RAGConfig, RAGDocument, RAGSearchResult, RAGContext, } from './rag/RAGEngine.js';
|
|
25
|
+
export { InMemoryVectorStore } from './rag/VectorStoreAdapter.js';
|
|
26
|
+
export type { VectorStoreAdapter, } from './rag/VectorStoreAdapter.js';
|
|
27
|
+
export { ReasoningEngine } from './reasoning/ReasoningEngine.js';
|
|
28
|
+
export type { ReasoningConfig, ReasoningStrategy, ReasoningResult, } from './reasoning/ReasoningEngine.js';
|
|
29
|
+
export { CognitiveGeneSchema, GeneTypeSchema, GeneContentSchema, FitnessMetricsSchema, LineageSchema, TenantInfoSchema, SharingScopeSchema, GeneExtractionResultSchema, GeneAdoptionResultSchema, createGeneId, meetsMinimumFitness, calculateFitnessDelta, isMarketplaceReady, GeneBank, GeneBankConfigSchema, GeneExtractor, GeneExtractionConfigSchema, GeneMatcher, GeneMatchConfigSchema, SandboxTester, SandboxConfigSchema, GeneAdopter, GeneAdoptionConfigSchema, } from './gene-bank/index.js';
|
|
30
|
+
export { InMemoryGeneStorage } from './gene-bank/adapters/InMemoryGeneStorage.js';
|
|
31
|
+
export type { CognitiveGene, GeneType, GeneContent, FitnessMetrics as GeneFitnessMetrics, Lineage, TenantInfo, SharingScope, GeneExtractionResult, GeneAdoptionResult, GeneBankConfig, GeneBankStats, GeneStorageAdapter, GeneSearchFilters, GeneExtractionConfig, MutationContext as GeneMutationContext, GeneMatchConfig, MatchContext, GeneMatchResult, SandboxConfig, SandboxTestCase, TestCaseResult, SandboxTestResult, BaselinePerformance, GeneAdoptionConfig, AdoptionRequest, AdoptedGeneStatus, } from './gene-bank/index.js';
|
|
32
|
+
export { MemoryCompactor } from './memory-compaction/MemoryCompactor.js';
|
|
33
|
+
export { SlidingWindowStrategy, ImportanceBasedStrategy, BaseCompactionStrategy, } from './memory-compaction/index.js';
|
|
34
|
+
export type { Message as MemoryMessage, CompactedMessage, Conversation, CompactionResult, MemoryItem, CompactionConfig, CompactionStrategy, ICompactionStrategy, PrioritizationOptions, ConversationSummary, } from './memory-compaction/index.js';
|
|
35
|
+
export { RateLimiter } from './enterprise/RateLimiter.js';
|
|
36
|
+
export type { RateLimitConfig, RateLimitContext, RateLimitResult, } from './enterprise/RateLimiter.js';
|
|
37
|
+
export { AuthManager } from './enterprise/AuthManager.js';
|
|
38
|
+
export type { User, Role, Permission, AuthContext, AuthPolicy, AuthConfig, } from './enterprise/AuthManager.js';
|
|
39
|
+
export { PGAEventEmitter, globalEvents } from './realtime/EventEmitter.js';
|
|
40
|
+
export type { PGAEventType, PGAEvent, GenomeCreatedEvent, GenomeEvolvedEvent, MutationAppliedEvent, ChatMessageEvent, MetricsUpdatedEvent, AlertTriggeredEvent, EventHandler, } from './realtime/EventEmitter.js';
|
|
41
|
+
export { StreamingManager, globalStreaming } from './realtime/StreamingManager.js';
|
|
42
|
+
export type { StreamChunk, StreamOptions, } from './realtime/StreamingManager.js';
|
|
43
|
+
export { PluginManager } from './plugins/PluginManager.js';
|
|
44
|
+
export type { Plugin, PluginMetadata, PluginHooks, PluginConfig, } from './plugins/PluginManager.js';
|
|
45
|
+
export { ThinkingEngine } from './advanced-ai/ThinkingEngine.js';
|
|
46
|
+
export type { ThinkingStep, ThinkingResult, SelfReflection, MetaLearning, } from './advanced-ai/ThinkingEngine.js';
|
|
47
|
+
export { ModelRouter } from './advanced-ai/ModelRouter.js';
|
|
48
|
+
export type { ModelSpec, TaskClassification, RoutingDecision, ModelRouterConfig, } from './advanced-ai/ModelRouter.js';
|
|
49
|
+
export { CircuitBreaker } from './resilience/CircuitBreaker.js';
|
|
50
|
+
export type { CircuitState, CircuitBreakerConfig, CircuitBreakerStats, } from './resilience/CircuitBreaker.js';
|
|
51
|
+
export { RetryManager } from './resilience/RetryManager.js';
|
|
52
|
+
export type { RetryConfig, } from './resilience/RetryManager.js';
|
|
53
|
+
export { GenomeKernel, IntegrityViolationError, QuarantinedGenomeError } from './core/GenomeKernel.js';
|
|
54
|
+
export type { GenomeKernelOptions } from './core/GenomeKernel.js';
|
|
55
|
+
export { DriftAnalyzer } from './evolution/DriftAnalyzer.js';
|
|
56
|
+
export type { DriftAnalyzerConfig, DriftSignal, DriftType, DriftSeverity, DriftAnalysis, } from './evolution/DriftAnalyzer.js';
|
|
57
|
+
export { MutationEngine, CompressInstructionsOperator, ReorderConstraintsOperator, SafetyReinforcementOperator, ToolSelectionBiasOperator, } from './evolution/MutationOperator.js';
|
|
58
|
+
export type { IMutationOperator, MutationContext, MutationResult, } from './evolution/MutationOperator.js';
|
|
59
|
+
export { FitnessCalculator } from './evolution/FitnessCalculator.js';
|
|
60
|
+
export type { InteractionData, FitnessCalculatorConfig, } from './evolution/FitnessCalculator.js';
|
|
61
|
+
export { PromotionGate } from './evolution/PromotionGate.js';
|
|
62
|
+
export type { PromotionGateConfig, PromotionDecision, PromotionCheck, } from './evolution/PromotionGate.js';
|
|
63
|
+
export { CanaryDeploymentManager } from './evolution/CanaryDeployment.js';
|
|
64
|
+
export type { CanaryConfig, CanaryDeployment, DeploymentMetrics, CanaryDecision, } from './evolution/CanaryDeployment.js';
|
|
65
|
+
export type { LLMAdapter, Message, ChatOptions, ChatResponse, ChatChunk } from './interfaces/LLMAdapter.js';
|
|
66
|
+
export type { StorageAdapter } from './interfaces/StorageAdapter.js';
|
|
67
|
+
export type { Genome, GenomeConfig, GeneAllele, UserDNA, UserTraits, MutationLog, MutationProposal, Interaction, ToolCall, FitnessMetrics, SelectionContext, Layer, MutationRate, Sentiment, GeneRegistryEntry, EvolutionGuardrails, EconomicMetrics, PromotionGateResult, } from './types/index.js';
|
|
68
|
+
export type { GenomeV2, Chromosome0, Chromosome1, Chromosome2, OperativeGene, GeneCategory, GeneOrigin, UserEpigenome, UserPreferences, LearnedPatterns, ContextGene, IntegrityMetadata, LineageMetadata, InheritedGene, MutationRecord, MutationTrigger, MutationType, FitnessVector, FitnessWeights, GenomeState, ValidationResults, EvaluationResult as EvaluationResultV2, TaskResult, GenomeSnapshot, GenomeDiff, GenomeChange, GenomeFamily, } from './types/GenomeV2.js';
|
|
69
|
+
export declare const VERSION = "0.4.0";
|
|
70
|
+
export declare const AUTHOR = "Luis Alfredo Velasquez Duran";
|
|
71
|
+
export declare const YEAR = 2025;
|
|
72
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA2BA,OAAO,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAI1C,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AACtE,YAAY,EACR,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,GACpB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACH,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,eAAe,GAClB,MAAM,iCAAiC,CAAC;AACzC,YAAY,EACR,cAAc,EACd,sBAAsB,EACtB,gBAAgB,GACnB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EACH,eAAe,EACf,4BAA4B,EAC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V,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,QAAQ,EACR,cAAc,EACd,gBAAgB,EAChB,KAAK,EACL,YAAY,EACZ,SAAS,EACT,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,mBAAmB,GACtB,MAAM,kBAAkB,CAAC;AAI1B,YAAY,EACR,QAAQ,EACR,WAAW,EACX,WAAW,EACX,WAAW,EACX,aAAa,EACb,YAAY,EACZ,UAAU,EACV,aAAa,EACb,eAAe,EACf,eAAe,EACf,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,cAAc,EACd,eAAe,EACf,YAAY,EACZ,aAAa,EACb,cAAc,EACd,WAAW,EACX,iBAAiB,EACjB,gBAAgB,IAAI,kBAAkB,EACtC,UAAU,EACV,cAAc,EACd,UAAU,EACV,YAAY,EACZ,YAAY,GACf,MAAM,qBAAqB,CAAC;AAI7B,eAAO,MAAM,OAAO,UAAU,CAAC;AAC/B,eAAO,MAAM,MAAM,iCAAiC,CAAC;AACrD,eAAO,MAAM,IAAI,OAAO,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export { PGA, GenomeInstance } from './PGA.js';
|
|
2
|
+
export { Evaluator, STANDARD_TASKS } from './evaluation/Evaluator.js';
|
|
3
|
+
export { getBenchmarkSuite, getAvailableSuites, validateSuiteFrozen, CORE_GENERAL_V1, CORE_CODING_V1, PGA_SPECIFIC_V1, } from './evaluation/BenchmarkSuites.js';
|
|
4
|
+
export { getSandboxSuite, getSandboxPromotionThreshold, GLOBAL_SANDBOX_CASES, COMPRESS_INSTRUCTIONS_CASES, REORDER_CONSTRAINTS_CASES, SAFETY_REINFORCEMENT_CASES, TOOL_SELECTION_BIAS_CASES, CODING_TASK_CASES, GENERAL_TASK_CASES, } from './evaluation/SandboxSuites.js';
|
|
5
|
+
export { SemanticJudge } from './evaluation/SemanticJudge.js';
|
|
6
|
+
export { CalibrationManager } from './evaluation/CalibrationManager.js';
|
|
7
|
+
export { EvolutionGuardrailsManager } from './evaluation/EvolutionGuardrails.js';
|
|
8
|
+
export { MetricsCollector } from './monitoring/MetricsCollector.js';
|
|
9
|
+
export { MonitoringDashboard } from './monitoring/MonitoringDashboard.js';
|
|
10
|
+
export { AlertWebhooks } from './monitoring/AlertWebhooks.js';
|
|
11
|
+
export { LayeredMemory } from './memory/LayeredMemory.js';
|
|
12
|
+
export { RAGEngine } from './rag/RAGEngine.js';
|
|
13
|
+
export { InMemoryVectorStore } from './rag/VectorStoreAdapter.js';
|
|
14
|
+
export { ReasoningEngine } from './reasoning/ReasoningEngine.js';
|
|
15
|
+
export { CognitiveGeneSchema, GeneTypeSchema, GeneContentSchema, FitnessMetricsSchema, LineageSchema, TenantInfoSchema, SharingScopeSchema, GeneExtractionResultSchema, GeneAdoptionResultSchema, createGeneId, meetsMinimumFitness, calculateFitnessDelta, isMarketplaceReady, GeneBank, GeneBankConfigSchema, GeneExtractor, GeneExtractionConfigSchema, GeneMatcher, GeneMatchConfigSchema, SandboxTester, SandboxConfigSchema, GeneAdopter, GeneAdoptionConfigSchema, } from './gene-bank/index.js';
|
|
16
|
+
export { InMemoryGeneStorage } from './gene-bank/adapters/InMemoryGeneStorage.js';
|
|
17
|
+
export { MemoryCompactor } from './memory-compaction/MemoryCompactor.js';
|
|
18
|
+
export { SlidingWindowStrategy, ImportanceBasedStrategy, BaseCompactionStrategy, } from './memory-compaction/index.js';
|
|
19
|
+
export { RateLimiter } from './enterprise/RateLimiter.js';
|
|
20
|
+
export { AuthManager } from './enterprise/AuthManager.js';
|
|
21
|
+
export { PGAEventEmitter, globalEvents } from './realtime/EventEmitter.js';
|
|
22
|
+
export { StreamingManager, globalStreaming } from './realtime/StreamingManager.js';
|
|
23
|
+
export { PluginManager } from './plugins/PluginManager.js';
|
|
24
|
+
export { ThinkingEngine } from './advanced-ai/ThinkingEngine.js';
|
|
25
|
+
export { ModelRouter } from './advanced-ai/ModelRouter.js';
|
|
26
|
+
export { CircuitBreaker } from './resilience/CircuitBreaker.js';
|
|
27
|
+
export { RetryManager } from './resilience/RetryManager.js';
|
|
28
|
+
export { GenomeKernel, IntegrityViolationError, QuarantinedGenomeError } from './core/GenomeKernel.js';
|
|
29
|
+
export { DriftAnalyzer } from './evolution/DriftAnalyzer.js';
|
|
30
|
+
export { MutationEngine, CompressInstructionsOperator, ReorderConstraintsOperator, SafetyReinforcementOperator, ToolSelectionBiasOperator, } from './evolution/MutationOperator.js';
|
|
31
|
+
export { FitnessCalculator } from './evolution/FitnessCalculator.js';
|
|
32
|
+
export { PromotionGate } from './evolution/PromotionGate.js';
|
|
33
|
+
export { CanaryDeploymentManager } from './evolution/CanaryDeployment.js';
|
|
34
|
+
export const VERSION = '0.4.0';
|
|
35
|
+
export const AUTHOR = 'Luis Alfredo Velasquez Duran';
|
|
36
|
+
export const YEAR = 2025;
|
|
37
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA2BA,OAAO,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAK/C,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAStE,OAAO,EACH,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,eAAe,GAClB,MAAM,iCAAiC,CAAC;AAOzC,OAAO,EACH,eAAe,EACf,4BAA4B,EAC5B,oBAAoB,EACpB,2BAA2B,EAC3B,yBAAyB,EACzB,0BAA0B,EAC1B,yBAAyB,EACzB,iBAAiB,EACjB,kBAAkB,GACrB,MAAM,+BAA+B,CAAC;AAKvC,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAK9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAMxE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAOjF,O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AAC;AAQjE,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAU3D,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAOhE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAO5D,OAAO,EAAE,YAAY,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAGvG,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAS7D,OAAO,EACH,cAAc,EACd,4BAA4B,EAC5B,0BAA0B,EAC1B,2BAA2B,EAC3B,yBAAyB,GAC5B,MAAM,iCAAiC,CAAC;AAOzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAMrE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAO7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AA+G1E,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC;AAC/B,MAAM,CAAC,MAAM,MAAM,GAAG,8BAA8B,CAAC;AACrD,MAAM,CAAC,MAAM,IAAI,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface Message {
|
|
2
|
+
role: 'user' | 'assistant' | 'system';
|
|
3
|
+
content: string;
|
|
4
|
+
}
|
|
5
|
+
export interface ChatOptions {
|
|
6
|
+
maxTokens?: number;
|
|
7
|
+
temperature?: number;
|
|
8
|
+
system?: string;
|
|
9
|
+
tools?: unknown[];
|
|
10
|
+
}
|
|
11
|
+
export interface ChatResponse {
|
|
12
|
+
content: string;
|
|
13
|
+
usage?: {
|
|
14
|
+
inputTokens: number;
|
|
15
|
+
outputTokens: number;
|
|
16
|
+
totalCost?: number;
|
|
17
|
+
};
|
|
18
|
+
metadata?: Record<string, unknown>;
|
|
19
|
+
}
|
|
20
|
+
export interface ChatChunk {
|
|
21
|
+
delta: string;
|
|
22
|
+
done: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface LLMAdapter {
|
|
25
|
+
readonly name: string;
|
|
26
|
+
readonly model: string;
|
|
27
|
+
chat(messages: Message[], options?: ChatOptions): Promise<ChatResponse>;
|
|
28
|
+
stream?(messages: Message[], options?: ChatOptions): AsyncIterableIterator<ChatChunk>;
|
|
29
|
+
estimateCost?(messages: Message[]): Promise<number>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=LLMAdapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LLMAdapter.d.ts","sourceRoot":"","sources":["../../src/interfaces/LLMAdapter.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,OAAO;IACpB,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAC;IACtC,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,WAAW;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,YAAY;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE;QACJ,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,SAAS;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;CACjB;AAOD,MAAM,WAAW,UAAU;IAIvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAKtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAKvB,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAKxE,MAAM,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,qBAAqB,CAAC,SAAS,CAAC,CAAC;IAKtF,YAAY,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACvD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LLMAdapter.js","sourceRoot":"","sources":["../../src/interfaces/LLMAdapter.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { Genome, UserDNA, MutationLog } from '../types/index.js';
|
|
2
|
+
import type { SemanticFact } from '../memory/LayeredMemory.js';
|
|
3
|
+
export interface StorageAdapter {
|
|
4
|
+
initialize(): Promise<void>;
|
|
5
|
+
saveGenome(genome: Genome): Promise<void>;
|
|
6
|
+
loadGenome(genomeId: string): Promise<Genome | null>;
|
|
7
|
+
deleteGenome(genomeId: string): Promise<void>;
|
|
8
|
+
listGenomes(): Promise<Genome[]>;
|
|
9
|
+
saveDNA(userId: string, genomeId: string, dna: UserDNA): Promise<void>;
|
|
10
|
+
loadDNA(userId: string, genomeId: string): Promise<UserDNA | null>;
|
|
11
|
+
logMutation(mutation: MutationLog): Promise<void>;
|
|
12
|
+
getMutationHistory(genomeId: string, limit?: number): Promise<MutationLog[]>;
|
|
13
|
+
getGeneMutationHistory(genomeId: string, gene: string, limit?: number): Promise<MutationLog[]>;
|
|
14
|
+
recordInteraction(interaction: {
|
|
15
|
+
genomeId: string;
|
|
16
|
+
userId: string;
|
|
17
|
+
userMessage: string;
|
|
18
|
+
assistantResponse: string;
|
|
19
|
+
toolCalls: unknown[];
|
|
20
|
+
score?: number;
|
|
21
|
+
timestamp: Date;
|
|
22
|
+
}): Promise<void>;
|
|
23
|
+
getRecentInteractions(genomeId: string, userId: string, limit?: number): Promise<unknown[]>;
|
|
24
|
+
recordFeedback(feedback: {
|
|
25
|
+
genomeId: string;
|
|
26
|
+
userId: string;
|
|
27
|
+
gene: string;
|
|
28
|
+
sentiment: 'positive' | 'negative' | 'neutral';
|
|
29
|
+
timestamp: Date;
|
|
30
|
+
}): Promise<void>;
|
|
31
|
+
getAnalytics(genomeId: string): Promise<{
|
|
32
|
+
totalMutations: number;
|
|
33
|
+
totalInteractions: number;
|
|
34
|
+
avgFitnessImprovement: number;
|
|
35
|
+
userSatisfaction: number;
|
|
36
|
+
topGenes: Array<{
|
|
37
|
+
gene: string;
|
|
38
|
+
fitness: number;
|
|
39
|
+
}>;
|
|
40
|
+
}>;
|
|
41
|
+
saveFact(fact: SemanticFact, userId: string, genomeId: string): Promise<void>;
|
|
42
|
+
getFacts(userId: string, genomeId: string, includeExpired?: boolean): Promise<SemanticFact[]>;
|
|
43
|
+
getFact(factId: string): Promise<SemanticFact | null>;
|
|
44
|
+
updateFact(factId: string, updates: Partial<SemanticFact>): Promise<void>;
|
|
45
|
+
deleteFact(factId: string): Promise<void>;
|
|
46
|
+
deleteUserFacts(userId: string, genomeId: string): Promise<void>;
|
|
47
|
+
cleanExpiredFacts(userId: string, genomeId: string): Promise<number>;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=StorageAdapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StorageAdapter.d.ts","sourceRoot":"","sources":["../../src/interfaces/StorageAdapter.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAO/D,MAAM,WAAW,cAAc;IAI3B,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAK5B,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAK1C,UAAU,CAAC,QAAQ,EAAE,MAAM,GA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