@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
package/package.json ADDED
@@ -0,0 +1,97 @@
1
+ {
2
+ "name": "@sparkleideas/plugins",
3
+ "version": "3.0.0-alpha.10",
4
+ "description": "Unified Plugin SDK for Claude Flow V3 - Worker, Hook, and Provider Integration",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "type": "module",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.js",
11
+ "import": "./dist/index.js"
12
+ },
13
+ "./sdk": {
14
+ "types": "./dist/sdk/index.d.js",
15
+ "import": "./dist/sdk/index.js"
16
+ },
17
+ "./workers": {
18
+ "types": "./dist/workers/index.d.js",
19
+ "import": "./dist/workers/index.js"
20
+ },
21
+ "./hooks": {
22
+ "types": "./dist/hooks/index.d.js",
23
+ "import": "./dist/hooks/index.js"
24
+ },
25
+ "./providers": {
26
+ "types": "./dist/providers/index.d.js",
27
+ "import": "./dist/providers/index.js"
28
+ },
29
+ "./examples/ruvector": {
30
+ "types": "./dist/examples/ruvector-plugins/index.d.js",
31
+ "import": "./dist/examples/ruvector-plugins/index.js"
32
+ },
33
+ "./examples/plugin-creator": {
34
+ "types": "./dist/examples/plugin-creator/index.d.js",
35
+ "import": "./dist/examples/plugin-creator/index.js"
36
+ }
37
+ },
38
+ "scripts": {
39
+ "build": "tsc -p tsconfig.json",
40
+ "test": "vitest run",
41
+ "test:watch": "vitest",
42
+ "lint": "eslint src --ext .ts",
43
+ "clean": "rm -rf dist"
44
+ },
45
+ "dependencies": {
46
+ "events": "^3.3.0"
47
+ },
48
+ "peerDependencies": {
49
+ "@ruvector/learning-wasm": "^0.1.0",
50
+ "@ruvector/wasm": "^0.1.0",
51
+ "@sparkleideas/hooks": "*",
52
+ "@sparkleideas/memory": "*"
53
+ },
54
+ "peerDependenciesMeta": {
55
+ "@claude-flow/hooks": {
56
+ "optional": true
57
+ },
58
+ "@claude-flow/memory": {
59
+ "optional": true
60
+ },
61
+ "@ruvector/wasm": {
62
+ "optional": true
63
+ },
64
+ "@ruvector/learning-wasm": {
65
+ "optional": true
66
+ }
67
+ },
68
+ "devDependencies": {
69
+ "@types/node": "^20.10.0",
70
+ "typescript": "^5.3.0",
71
+ "vitest": "^4.0.16"
72
+ },
73
+ "keywords": [
74
+ "claude-flow",
75
+ "plugins",
76
+ "sdk",
77
+ "workers",
78
+ "hooks",
79
+ "agentic-flow",
80
+ "agentdb",
81
+ "ai-agents",
82
+ "ruvector",
83
+ "hnsw",
84
+ "vector-search",
85
+ "lora",
86
+ "neural-adaptation"
87
+ ],
88
+ "author": "Claude Flow Team",
89
+ "license": "MIT",
90
+ "engines": {
91
+ "node": ">=20.0.0"
92
+ },
93
+ "publishConfig": {
94
+ "access": "public",
95
+ "tag": "v3alpha"
96
+ }
97
+ }