@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.
Files changed (80) hide show
  1. package/README.md +401 -0
  2. package/__tests__/collection-manager.test.ts +332 -0
  3. package/__tests__/dependency-graph.test.ts +434 -0
  4. package/__tests__/enhanced-plugin-registry.test.ts +488 -0
  5. package/__tests__/plugin-registry.test.ts +368 -0
  6. package/__tests__/ruvector-bridge.test.ts +2429 -0
  7. package/__tests__/ruvector-integration.test.ts +1602 -0
  8. package/__tests__/ruvector-migrations.test.ts +1099 -0
  9. package/__tests__/ruvector-quantization.test.ts +846 -0
  10. package/__tests__/ruvector-streaming.test.ts +1088 -0
  11. package/__tests__/sdk.test.ts +325 -0
  12. package/__tests__/security.test.ts +348 -0
  13. package/__tests__/utils/ruvector-test-utils.ts +860 -0
  14. package/examples/plugin-creator/index.ts +636 -0
  15. package/examples/plugin-creator/plugin-creator.test.ts +312 -0
  16. package/examples/ruvector/README.md +288 -0
  17. package/examples/ruvector/attention-patterns.ts +394 -0
  18. package/examples/ruvector/basic-usage.ts +288 -0
  19. package/examples/ruvector/docker-compose.yml +75 -0
  20. package/examples/ruvector/gnn-analysis.ts +501 -0
  21. package/examples/ruvector/hyperbolic-hierarchies.ts +557 -0
  22. package/examples/ruvector/init-db.sql +119 -0
  23. package/examples/ruvector/quantization.ts +680 -0
  24. package/examples/ruvector/self-learning.ts +447 -0
  25. package/examples/ruvector/semantic-search.ts +576 -0
  26. package/examples/ruvector/streaming-large-data.ts +507 -0
  27. package/examples/ruvector/transactions.ts +594 -0
  28. package/examples/ruvector-plugins/hook-pattern-library.ts +486 -0
  29. package/examples/ruvector-plugins/index.ts +79 -0
  30. package/examples/ruvector-plugins/intent-router.ts +354 -0
  31. package/examples/ruvector-plugins/mcp-tool-optimizer.ts +424 -0
  32. package/examples/ruvector-plugins/reasoning-bank.ts +657 -0
  33. package/examples/ruvector-plugins/ruvector-plugins.test.ts +518 -0
  34. package/examples/ruvector-plugins/semantic-code-search.ts +498 -0
  35. package/examples/ruvector-plugins/shared/index.ts +20 -0
  36. package/examples/ruvector-plugins/shared/vector-utils.ts +257 -0
  37. package/examples/ruvector-plugins/sona-learning.ts +445 -0
  38. package/package.json +97 -0
  39. package/src/collections/collection-manager.ts +661 -0
  40. package/src/collections/index.ts +56 -0
  41. package/src/collections/official/index.ts +1040 -0
  42. package/src/core/base-plugin.ts +416 -0
  43. package/src/core/plugin-interface.ts +215 -0
  44. package/src/hooks/index.ts +685 -0
  45. package/src/index.ts +378 -0
  46. package/src/integrations/agentic-flow.ts +743 -0
  47. package/src/integrations/index.ts +88 -0
  48. package/src/integrations/ruvector/ARCHITECTURE.md +1245 -0
  49. package/src/integrations/ruvector/attention-advanced.ts +1040 -0
  50. package/src/integrations/ruvector/attention-executor.ts +782 -0
  51. package/src/integrations/ruvector/attention-mechanisms.ts +757 -0
  52. package/src/integrations/ruvector/attention.ts +1063 -0
  53. package/src/integrations/ruvector/gnn.ts +3050 -0
  54. package/src/integrations/ruvector/hyperbolic.ts +1948 -0
  55. package/src/integrations/ruvector/index.ts +394 -0
  56. package/src/integrations/ruvector/migrations/001_create_extension.sql +135 -0
  57. package/src/integrations/ruvector/migrations/002_create_vector_tables.sql +259 -0
  58. package/src/integrations/ruvector/migrations/003_create_indices.sql +328 -0
  59. package/src/integrations/ruvector/migrations/004_create_functions.sql +598 -0
  60. package/src/integrations/ruvector/migrations/005_create_attention_functions.sql +654 -0
  61. package/src/integrations/ruvector/migrations/006_create_gnn_functions.sql +728 -0
  62. package/src/integrations/ruvector/migrations/007_create_hyperbolic_functions.sql +762 -0
  63. package/src/integrations/ruvector/migrations/index.ts +35 -0
  64. package/src/integrations/ruvector/migrations/migrations.ts +647 -0
  65. package/src/integrations/ruvector/quantization.ts +2036 -0
  66. package/src/integrations/ruvector/ruvector-bridge.ts +2000 -0
  67. package/src/integrations/ruvector/self-learning.ts +2376 -0
  68. package/src/integrations/ruvector/streaming.ts +1737 -0
  69. package/src/integrations/ruvector/types.ts +1945 -0
  70. package/src/providers/index.ts +643 -0
  71. package/src/registry/dependency-graph.ts +568 -0
  72. package/src/registry/enhanced-plugin-registry.ts +994 -0
  73. package/src/registry/plugin-registry.ts +604 -0
  74. package/src/sdk/index.ts +563 -0
  75. package/src/security/index.ts +594 -0
  76. package/src/types/index.ts +446 -0
  77. package/src/workers/index.ts +700 -0
  78. package/tmp.json +0 -0
  79. package/tsconfig.json +25 -0
  80. 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';