@sparkleideas/plugins 3.0.0-alpha.10
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 +401 -0
- package/__tests__/collection-manager.test.ts +332 -0
- package/__tests__/dependency-graph.test.ts +434 -0
- package/__tests__/enhanced-plugin-registry.test.ts +488 -0
- package/__tests__/plugin-registry.test.ts +368 -0
- package/__tests__/ruvector-bridge.test.ts +2429 -0
- package/__tests__/ruvector-integration.test.ts +1602 -0
- package/__tests__/ruvector-migrations.test.ts +1099 -0
- package/__tests__/ruvector-quantization.test.ts +846 -0
- package/__tests__/ruvector-streaming.test.ts +1088 -0
- package/__tests__/sdk.test.ts +325 -0
- package/__tests__/security.test.ts +348 -0
- package/__tests__/utils/ruvector-test-utils.ts +860 -0
- package/examples/plugin-creator/index.ts +636 -0
- package/examples/plugin-creator/plugin-creator.test.ts +312 -0
- package/examples/ruvector/README.md +288 -0
- package/examples/ruvector/attention-patterns.ts +394 -0
- package/examples/ruvector/basic-usage.ts +288 -0
- package/examples/ruvector/docker-compose.yml +75 -0
- package/examples/ruvector/gnn-analysis.ts +501 -0
- package/examples/ruvector/hyperbolic-hierarchies.ts +557 -0
- package/examples/ruvector/init-db.sql +119 -0
- package/examples/ruvector/quantization.ts +680 -0
- package/examples/ruvector/self-learning.ts +447 -0
- package/examples/ruvector/semantic-search.ts +576 -0
- package/examples/ruvector/streaming-large-data.ts +507 -0
- package/examples/ruvector/transactions.ts +594 -0
- package/examples/ruvector-plugins/hook-pattern-library.ts +486 -0
- package/examples/ruvector-plugins/index.ts +79 -0
- package/examples/ruvector-plugins/intent-router.ts +354 -0
- package/examples/ruvector-plugins/mcp-tool-optimizer.ts +424 -0
- package/examples/ruvector-plugins/reasoning-bank.ts +657 -0
- package/examples/ruvector-plugins/ruvector-plugins.test.ts +518 -0
- package/examples/ruvector-plugins/semantic-code-search.ts +498 -0
- package/examples/ruvector-plugins/shared/index.ts +20 -0
- package/examples/ruvector-plugins/shared/vector-utils.ts +257 -0
- package/examples/ruvector-plugins/sona-learning.ts +445 -0
- package/package.json +97 -0
- package/src/collections/collection-manager.ts +661 -0
- package/src/collections/index.ts +56 -0
- package/src/collections/official/index.ts +1040 -0
- package/src/core/base-plugin.ts +416 -0
- package/src/core/plugin-interface.ts +215 -0
- package/src/hooks/index.ts +685 -0
- package/src/index.ts +378 -0
- package/src/integrations/agentic-flow.ts +743 -0
- package/src/integrations/index.ts +88 -0
- package/src/integrations/ruvector/ARCHITECTURE.md +1245 -0
- package/src/integrations/ruvector/attention-advanced.ts +1040 -0
- package/src/integrations/ruvector/attention-executor.ts +782 -0
- package/src/integrations/ruvector/attention-mechanisms.ts +757 -0
- package/src/integrations/ruvector/attention.ts +1063 -0
- package/src/integrations/ruvector/gnn.ts +3050 -0
- package/src/integrations/ruvector/hyperbolic.ts +1948 -0
- package/src/integrations/ruvector/index.ts +394 -0
- package/src/integrations/ruvector/migrations/001_create_extension.sql +135 -0
- package/src/integrations/ruvector/migrations/002_create_vector_tables.sql +259 -0
- package/src/integrations/ruvector/migrations/003_create_indices.sql +328 -0
- package/src/integrations/ruvector/migrations/004_create_functions.sql +598 -0
- package/src/integrations/ruvector/migrations/005_create_attention_functions.sql +654 -0
- package/src/integrations/ruvector/migrations/006_create_gnn_functions.sql +728 -0
- package/src/integrations/ruvector/migrations/007_create_hyperbolic_functions.sql +762 -0
- package/src/integrations/ruvector/migrations/index.ts +35 -0
- package/src/integrations/ruvector/migrations/migrations.ts +647 -0
- package/src/integrations/ruvector/quantization.ts +2036 -0
- package/src/integrations/ruvector/ruvector-bridge.ts +2000 -0
- package/src/integrations/ruvector/self-learning.ts +2376 -0
- package/src/integrations/ruvector/streaming.ts +1737 -0
- package/src/integrations/ruvector/types.ts +1945 -0
- package/src/providers/index.ts +643 -0
- package/src/registry/dependency-graph.ts +568 -0
- package/src/registry/enhanced-plugin-registry.ts +994 -0
- package/src/registry/plugin-registry.ts +604 -0
- package/src/sdk/index.ts +563 -0
- package/src/security/index.ts +594 -0
- package/src/types/index.ts +446 -0
- package/src/workers/index.ts +700 -0
- package/tmp.json +0 -0
- package/tsconfig.json +25 -0
- package/vitest.config.ts +23 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Integrations Module
|
|
3
|
+
*
|
|
4
|
+
* Provides integration bridges for external systems:
|
|
5
|
+
* - @sparkleideas/agentic-flow@alpha for swarm coordination
|
|
6
|
+
* - AgentDB for vector storage and similarity search
|
|
7
|
+
* - RuVector PostgreSQL Bridge for advanced vector operations
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
// Agentic Flow
|
|
12
|
+
AgenticFlowBridge,
|
|
13
|
+
getAgenticFlowBridge,
|
|
14
|
+
AGENTIC_FLOW_EVENTS,
|
|
15
|
+
type AgenticFlowConfig,
|
|
16
|
+
type SwarmTopology,
|
|
17
|
+
type AgentSpawnOptions,
|
|
18
|
+
type SpawnedAgent,
|
|
19
|
+
type TaskOrchestrationOptions,
|
|
20
|
+
type OrchestrationResult,
|
|
21
|
+
type AgenticFlowEvent,
|
|
22
|
+
|
|
23
|
+
// AgentDB
|
|
24
|
+
AgentDBBridge,
|
|
25
|
+
getAgentDBBridge,
|
|
26
|
+
resetBridges,
|
|
27
|
+
type AgentDBConfig,
|
|
28
|
+
type VectorEntry,
|
|
29
|
+
type VectorSearchOptions,
|
|
30
|
+
type VectorSearchResult,
|
|
31
|
+
} from './agentic-flow.js';
|
|
32
|
+
|
|
33
|
+
// RuVector PostgreSQL Bridge
|
|
34
|
+
export * as RuVectorTypes from './ruvector/index.js';
|
|
35
|
+
export {
|
|
36
|
+
// Main Bridge Plugin
|
|
37
|
+
RuVectorBridge,
|
|
38
|
+
createRuVectorBridge,
|
|
39
|
+
|
|
40
|
+
// Type Guards
|
|
41
|
+
isDistanceMetric,
|
|
42
|
+
isAttentionMechanism,
|
|
43
|
+
isGNNLayerType,
|
|
44
|
+
isHyperbolicModel,
|
|
45
|
+
isVectorIndexType,
|
|
46
|
+
isSuccess,
|
|
47
|
+
isError,
|
|
48
|
+
|
|
49
|
+
// Namespace
|
|
50
|
+
RuVector,
|
|
51
|
+
|
|
52
|
+
// Attention Mechanisms
|
|
53
|
+
AttentionRegistry,
|
|
54
|
+
AttentionFactory,
|
|
55
|
+
AttentionExecutor,
|
|
56
|
+
createDefaultRegistry,
|
|
57
|
+
|
|
58
|
+
// GNN Layers
|
|
59
|
+
GNNLayerRegistry,
|
|
60
|
+
GraphOperations,
|
|
61
|
+
createGNNLayer,
|
|
62
|
+
createGNNLayerRegistry,
|
|
63
|
+
createGraphOperations,
|
|
64
|
+
|
|
65
|
+
// Hyperbolic Embeddings
|
|
66
|
+
HyperbolicSpace,
|
|
67
|
+
HyperbolicSQL,
|
|
68
|
+
HyperbolicBatchProcessor,
|
|
69
|
+
createHyperbolicSpace,
|
|
70
|
+
|
|
71
|
+
// Self-Learning
|
|
72
|
+
QueryOptimizer,
|
|
73
|
+
IndexTuner,
|
|
74
|
+
PatternRecognizer,
|
|
75
|
+
LearningLoop,
|
|
76
|
+
createSelfLearningSystem,
|
|
77
|
+
} from './ruvector/index.js';
|
|
78
|
+
|
|
79
|
+
// Re-export common RuVector types for convenience
|
|
80
|
+
export type {
|
|
81
|
+
RuVectorConfig,
|
|
82
|
+
VectorSearchOptions as RuVectorSearchOptions,
|
|
83
|
+
VectorSearchResult as RuVectorSearchResult,
|
|
84
|
+
AttentionMechanism,
|
|
85
|
+
GNNLayerType,
|
|
86
|
+
HyperbolicModel,
|
|
87
|
+
IRuVectorClient,
|
|
88
|
+
} from './ruvector/index.js';
|