ruflo 3.5.51 → 3.5.52
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/package.json +1 -1
- package/dist/rvf.manifest.json +0 -295
- package/src/ruvocal/.vscode/launch.json +0 -11
- package/src/ruvocal/.vscode/settings.json +0 -14
- package/src/ruvocal/mcp-bridge/.claude-flow/agents/store.json +0 -27
- package/src/ruvocal/mcp-bridge/.claude-flow/daemon-state.json +0 -130
- package/src/ruvocal/mcp-bridge/.claude-flow/daemon.log +0 -0
- package/src/ruvocal/mcp-bridge/.claude-flow/daemon.pid +0 -1
- package/src/ruvocal/mcp-bridge/.claude-flow/tasks/store.json +0 -21
- package/src/ruvocal/mcp-bridge/.swarm/hnsw.index +0 -0
- package/src/ruvocal/mcp-bridge/.swarm/hnsw.metadata.json +0 -1
- package/src/ruvocal/mcp-bridge/.swarm/memory.db +0 -0
- package/src/ruvocal/mcp-bridge/.swarm/model-router-state.json +0 -14
- package/src/ruvocal/mcp-bridge/.swarm/schema.sql +0 -305
- package/src/ruvocal/mcp-bridge/ruvector.db +0 -0
- package/src/ruvocal/src/routes/conversation/[id]/output/[sha256]/+server.ts +0 -58
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ruflo",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.52",
|
|
4
4
|
"description": "Ruflo - Enterprise AI agent orchestration platform. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration",
|
|
5
5
|
"main": "bin/ruflo.js",
|
|
6
6
|
"type": "module",
|
package/dist/rvf.manifest.json
DELETED
|
@@ -1,295 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"rvf_version": "2.0",
|
|
3
|
-
"format": "rvf-package",
|
|
4
|
-
"name": "chat-ui-mcp",
|
|
5
|
-
"version": "2.0.0",
|
|
6
|
-
"description": "White-label AI Chat UI with MCP tool groups \u2014 per-group toggleable MCP servers, multi-provider AI proxy, deployable to Google Cloud Run or Docker Compose",
|
|
7
|
-
"license": "MIT",
|
|
8
|
-
"segments": {
|
|
9
|
-
"MANIFEST": {
|
|
10
|
-
"type": "root",
|
|
11
|
-
"uuid": "a7384d49-19c6-4943-949c-b12897ea3887",
|
|
12
|
-
"created": "2026-03-05T02:55:15Z",
|
|
13
|
-
"parent": null
|
|
14
|
-
},
|
|
15
|
-
"PROFILE": {
|
|
16
|
-
"type": "domain-config",
|
|
17
|
-
"description": "Deployment configuration \u2014 all secrets via environment variables",
|
|
18
|
-
"config_schema": "config/config.example.json",
|
|
19
|
-
"env_schema": ".env.example"
|
|
20
|
-
},
|
|
21
|
-
"WASM": {
|
|
22
|
-
"type": "runtime",
|
|
23
|
-
"description": "MCP Bridge v2.0 \u2014 per-group MCP endpoints, multi-provider AI proxy, error normalization",
|
|
24
|
-
"entrypoint": "mcp-bridge/index.js",
|
|
25
|
-
"runtime": "node:20",
|
|
26
|
-
"port": 3001
|
|
27
|
-
},
|
|
28
|
-
"META_IDX": {
|
|
29
|
-
"type": "metadata",
|
|
30
|
-
"components": [
|
|
31
|
-
{
|
|
32
|
-
"name": "mcp-bridge",
|
|
33
|
-
"type": "service",
|
|
34
|
-
"description": "Per-group MCP JSON-RPC server + OpenAI-compatible chat proxy with upstream error normalization",
|
|
35
|
-
"dockerfile": "mcp-bridge/Dockerfile",
|
|
36
|
-
"port": 3001,
|
|
37
|
-
"env_vars": [
|
|
38
|
-
"OPENAI_API_KEY",
|
|
39
|
-
"GOOGLE_API_KEY",
|
|
40
|
-
"OPENROUTER_API_KEY",
|
|
41
|
-
"ANTHROPIC_API_KEY",
|
|
42
|
-
"SEARCH_API_URL",
|
|
43
|
-
"RESEARCH_API_URL",
|
|
44
|
-
"MCP_GROUP_INTELLIGENCE",
|
|
45
|
-
"MCP_GROUP_AGENTS",
|
|
46
|
-
"MCP_GROUP_MEMORY",
|
|
47
|
-
"MCP_GROUP_DEVTOOLS",
|
|
48
|
-
"MCP_GROUP_SECURITY",
|
|
49
|
-
"MCP_GROUP_BROWSER",
|
|
50
|
-
"MCP_GROUP_NEURAL",
|
|
51
|
-
"MCP_GROUP_AGENTIC_FLOW",
|
|
52
|
-
"MCP_GROUP_CLAUDE_CODE",
|
|
53
|
-
"MCP_GROUP_GEMINI",
|
|
54
|
-
"MCP_GROUP_CODEX"
|
|
55
|
-
]
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"name": "chat-ui",
|
|
59
|
-
"type": "service",
|
|
60
|
-
"description": "HuggingFace Chat UI with branded assets, OIDC auth, and per-group MCP server toggles",
|
|
61
|
-
"dockerfile": "chat-ui/Dockerfile",
|
|
62
|
-
"base_image": "ghcr.io/huggingface/chat-ui-db:latest",
|
|
63
|
-
"port": 3000,
|
|
64
|
-
"env_vars": [
|
|
65
|
-
"MONGODB_URL",
|
|
66
|
-
"PUBLIC_APP_NAME",
|
|
67
|
-
"PUBLIC_ORIGIN",
|
|
68
|
-
"OPENID_PROVIDER_URL",
|
|
69
|
-
"OPENID_CLIENT_ID",
|
|
70
|
-
"OPENID_CLIENT_SECRET",
|
|
71
|
-
"MCP_SERVERS"
|
|
72
|
-
]
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"name": "mongodb",
|
|
76
|
-
"type": "datastore",
|
|
77
|
-
"description": "MongoDB for conversation persistence",
|
|
78
|
-
"image": "mongo:7",
|
|
79
|
-
"port": 27017
|
|
80
|
-
}
|
|
81
|
-
]
|
|
82
|
-
},
|
|
83
|
-
"TOOL_GROUPS": {
|
|
84
|
-
"type": "mcp-groups",
|
|
85
|
-
"description": "Each group exposes a separate MCP endpoint at /mcp/{group} \u2014 toggleable in Chat UI",
|
|
86
|
-
"groups": {
|
|
87
|
-
"core": {
|
|
88
|
-
"enabled_by_default": true,
|
|
89
|
-
"display_name": "Core Tools",
|
|
90
|
-
"endpoint": "/mcp/core",
|
|
91
|
-
"description": "Built-in guidance, help, and utility tools",
|
|
92
|
-
"source": "builtin"
|
|
93
|
-
},
|
|
94
|
-
"intelligence": {
|
|
95
|
-
"enabled_by_default": true,
|
|
96
|
-
"display_name": "Intelligence & Learning",
|
|
97
|
-
"endpoint": "/mcp/intelligence",
|
|
98
|
-
"description": "Hooks, learning, trajectory, neural pattern tools",
|
|
99
|
-
"source": "ruvector",
|
|
100
|
-
"prefixes": [
|
|
101
|
-
"hooks_"
|
|
102
|
-
]
|
|
103
|
-
},
|
|
104
|
-
"agents": {
|
|
105
|
-
"enabled_by_default": true,
|
|
106
|
-
"display_name": "Agents & Orchestration",
|
|
107
|
-
"endpoint": "/mcp/agents",
|
|
108
|
-
"description": "Agent spawn, swarm, hive-mind, task orchestration",
|
|
109
|
-
"source": "ruflo",
|
|
110
|
-
"prefixes": [
|
|
111
|
-
"agent_",
|
|
112
|
-
"swarm_",
|
|
113
|
-
"hive_",
|
|
114
|
-
"task_"
|
|
115
|
-
]
|
|
116
|
-
},
|
|
117
|
-
"memory": {
|
|
118
|
-
"enabled_by_default": true,
|
|
119
|
-
"display_name": "Memory & Knowledge",
|
|
120
|
-
"endpoint": "/mcp/memory",
|
|
121
|
-
"description": "Memory store/search/retrieve, embeddings, session",
|
|
122
|
-
"source": "ruflo",
|
|
123
|
-
"prefixes": [
|
|
124
|
-
"memory_",
|
|
125
|
-
"embedding_",
|
|
126
|
-
"session_"
|
|
127
|
-
]
|
|
128
|
-
},
|
|
129
|
-
"devtools": {
|
|
130
|
-
"enabled_by_default": true,
|
|
131
|
-
"display_name": "Dev Tools & Analysis",
|
|
132
|
-
"endpoint": "/mcp/devtools",
|
|
133
|
-
"description": "Performance, security, deployment, config, doctor tools",
|
|
134
|
-
"source": "ruflo",
|
|
135
|
-
"prefixes": [
|
|
136
|
-
"perf_",
|
|
137
|
-
"security_",
|
|
138
|
-
"deploy_",
|
|
139
|
-
"config_",
|
|
140
|
-
"doctor_",
|
|
141
|
-
"plugin_",
|
|
142
|
-
"workflow_",
|
|
143
|
-
"provider_"
|
|
144
|
-
]
|
|
145
|
-
},
|
|
146
|
-
"security": {
|
|
147
|
-
"enabled_by_default": false,
|
|
148
|
-
"display_name": "Security & Safety",
|
|
149
|
-
"endpoint": "/mcp/security",
|
|
150
|
-
"description": "Security scanning, CVE detection, threat analysis",
|
|
151
|
-
"source": "ruflo",
|
|
152
|
-
"prefixes": [
|
|
153
|
-
"security_"
|
|
154
|
-
]
|
|
155
|
-
},
|
|
156
|
-
"browser": {
|
|
157
|
-
"enabled_by_default": false,
|
|
158
|
-
"display_name": "Browser Automation",
|
|
159
|
-
"endpoint": "/mcp/browser",
|
|
160
|
-
"description": "Headless browser \u2014 navigate, click, fill, screenshot",
|
|
161
|
-
"source": "ruflo",
|
|
162
|
-
"prefixes": [
|
|
163
|
-
"browser_"
|
|
164
|
-
]
|
|
165
|
-
},
|
|
166
|
-
"neural": {
|
|
167
|
-
"enabled_by_default": false,
|
|
168
|
-
"display_name": "Neural & DAA",
|
|
169
|
-
"endpoint": "/mcp/neural",
|
|
170
|
-
"description": "Neural training, DAA autonomous agents",
|
|
171
|
-
"source": "ruflo",
|
|
172
|
-
"prefixes": [
|
|
173
|
-
"neural_",
|
|
174
|
-
"daa_"
|
|
175
|
-
]
|
|
176
|
-
},
|
|
177
|
-
"agentic-flow": {
|
|
178
|
-
"enabled_by_default": false,
|
|
179
|
-
"display_name": "Agentic Flow",
|
|
180
|
-
"endpoint": "/mcp/agentic-flow",
|
|
181
|
-
"description": "agentic-flow alpha integration",
|
|
182
|
-
"source": "agentic-flow"
|
|
183
|
-
},
|
|
184
|
-
"claude-code": {
|
|
185
|
-
"enabled_by_default": false,
|
|
186
|
-
"display_name": "Claude Code",
|
|
187
|
-
"endpoint": "/mcp/claude-code",
|
|
188
|
-
"description": "Claude Code CLI tools",
|
|
189
|
-
"source": "claude-code"
|
|
190
|
-
},
|
|
191
|
-
"gemini": {
|
|
192
|
-
"enabled_by_default": false,
|
|
193
|
-
"display_name": "Gemini",
|
|
194
|
-
"endpoint": "/mcp/gemini",
|
|
195
|
-
"description": "Google Gemini native tools",
|
|
196
|
-
"source": "gemini"
|
|
197
|
-
},
|
|
198
|
-
"codex": {
|
|
199
|
-
"enabled_by_default": false,
|
|
200
|
-
"display_name": "Codex",
|
|
201
|
-
"endpoint": "/mcp/codex",
|
|
202
|
-
"description": "OpenAI Codex tools",
|
|
203
|
-
"source": "codex"
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
},
|
|
207
|
-
"OVERLAY": {
|
|
208
|
-
"type": "customization",
|
|
209
|
-
"description": "Brand-specific overlays",
|
|
210
|
-
"assets": [
|
|
211
|
-
"chat-ui/static/chatui/omni-welcome.gif",
|
|
212
|
-
"chat-ui/static/chatui/icon-144x144.png"
|
|
213
|
-
],
|
|
214
|
-
"generators": [
|
|
215
|
-
{
|
|
216
|
-
"name": "welcome-gif",
|
|
217
|
-
"script": "scripts/generate-welcome.js",
|
|
218
|
-
"config_key": "brand.welcomeColors",
|
|
219
|
-
"output": "chat-ui/static/chatui/omni-welcome.gif"
|
|
220
|
-
}
|
|
221
|
-
]
|
|
222
|
-
},
|
|
223
|
-
"CRYPTO": {
|
|
224
|
-
"type": "security",
|
|
225
|
-
"description": "Security configuration with private network MCP tunnel",
|
|
226
|
-
"secrets_management": "gcp-secret-manager",
|
|
227
|
-
"auth_protocol": "openid-connect",
|
|
228
|
-
"no_embedded_secrets": true,
|
|
229
|
-
"private_tunnel": {
|
|
230
|
-
"protocol": "http",
|
|
231
|
-
"scope": "docker-network-only",
|
|
232
|
-
"patch": "chat-ui/patch-mcp-url-safety.sh",
|
|
233
|
-
"adr": "docs/adr/ADR-032-RVF-PRIVATE-MCP-TUNNEL.md"
|
|
234
|
-
},
|
|
235
|
-
"env_only_keys": [
|
|
236
|
-
"OPENAI_API_KEY",
|
|
237
|
-
"GOOGLE_API_KEY",
|
|
238
|
-
"OPENROUTER_API_KEY",
|
|
239
|
-
"ANTHROPIC_API_KEY",
|
|
240
|
-
"OPENID_CLIENT_SECRET"
|
|
241
|
-
]
|
|
242
|
-
}
|
|
243
|
-
},
|
|
244
|
-
"deployment": {
|
|
245
|
-
"platforms": [
|
|
246
|
-
"google-cloud-run",
|
|
247
|
-
"docker-compose",
|
|
248
|
-
"kubernetes"
|
|
249
|
-
],
|
|
250
|
-
"infrastructure": {
|
|
251
|
-
"mcp_bridge": {
|
|
252
|
-
"memory": "512Mi",
|
|
253
|
-
"cpu": 1,
|
|
254
|
-
"min_instances": 0,
|
|
255
|
-
"max_instances": 5,
|
|
256
|
-
"timeout": 300
|
|
257
|
-
},
|
|
258
|
-
"chat_ui": {
|
|
259
|
-
"memory": "2Gi",
|
|
260
|
-
"cpu": 2,
|
|
261
|
-
"min_instances": 1,
|
|
262
|
-
"max_instances": 10,
|
|
263
|
-
"timeout": 300
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
},
|
|
267
|
-
"capabilities": {
|
|
268
|
-
"mcp_protocol": "2024-11-05",
|
|
269
|
-
"mcp_tool_groups": true,
|
|
270
|
-
"per_group_mcp_endpoints": true,
|
|
271
|
-
"chat_completions_proxy": true,
|
|
272
|
-
"upstream_error_normalization": true,
|
|
273
|
-
"goap_search_pipeline": true,
|
|
274
|
-
"multi_provider_routing": [
|
|
275
|
-
"openai",
|
|
276
|
-
"gemini",
|
|
277
|
-
"openrouter"
|
|
278
|
-
],
|
|
279
|
-
"oidc_auth": true,
|
|
280
|
-
"branded_assets": true,
|
|
281
|
-
"tool_extensibility": true,
|
|
282
|
-
"ruvector_integration": true,
|
|
283
|
-
"ruflo_integration": true,
|
|
284
|
-
"agentic_flow_integration": true,
|
|
285
|
-
"external_mcp_backends": [
|
|
286
|
-
"ruvector",
|
|
287
|
-
"ruflo",
|
|
288
|
-
"agentic-flow",
|
|
289
|
-
"claude-code",
|
|
290
|
-
"gemini",
|
|
291
|
-
"codex"
|
|
292
|
-
],
|
|
293
|
-
"test_harness": true
|
|
294
|
-
}
|
|
295
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"editor.formatOnSave": true,
|
|
3
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
4
|
-
"editor.codeActionsOnSave": {
|
|
5
|
-
"source.fixAll": "explicit"
|
|
6
|
-
},
|
|
7
|
-
"eslint.validate": ["javascript", "svelte"],
|
|
8
|
-
"[svelte]": {
|
|
9
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
10
|
-
},
|
|
11
|
-
"[typescript]": {
|
|
12
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"agents": {
|
|
3
|
-
"dev-tools-analyst": {
|
|
4
|
-
"agentId": "dev-tools-analyst",
|
|
5
|
-
"agentType": "specialist",
|
|
6
|
-
"status": "idle",
|
|
7
|
-
"health": 1,
|
|
8
|
-
"taskCount": 0,
|
|
9
|
-
"config": {},
|
|
10
|
-
"createdAt": "2026-03-05T14:28:08.095Z",
|
|
11
|
-
"domain": "devtools",
|
|
12
|
-
"model": "sonnet",
|
|
13
|
-
"modelRoutedBy": "router"
|
|
14
|
-
},
|
|
15
|
-
"agent-1772720891056-ej1e1o": {
|
|
16
|
-
"agentId": "agent-1772720891056-ej1e1o",
|
|
17
|
-
"status": "idle",
|
|
18
|
-
"health": 1,
|
|
19
|
-
"taskCount": 0,
|
|
20
|
-
"config": {},
|
|
21
|
-
"createdAt": "2026-03-05T14:28:11.056Z",
|
|
22
|
-
"model": "sonnet",
|
|
23
|
-
"modelRoutedBy": "default"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"version": "3.0.0"
|
|
27
|
-
}
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"running": true,
|
|
3
|
-
"startedAt": "2026-03-05T05:43:14.456Z",
|
|
4
|
-
"workers": {
|
|
5
|
-
"map": {
|
|
6
|
-
"runCount": 0,
|
|
7
|
-
"successCount": 0,
|
|
8
|
-
"failureCount": 0,
|
|
9
|
-
"averageDurationMs": 0,
|
|
10
|
-
"isRunning": false,
|
|
11
|
-
"nextRun": "2026-03-05T05:43:14.456Z"
|
|
12
|
-
},
|
|
13
|
-
"audit": {
|
|
14
|
-
"runCount": 0,
|
|
15
|
-
"successCount": 0,
|
|
16
|
-
"failureCount": 0,
|
|
17
|
-
"averageDurationMs": 0,
|
|
18
|
-
"isRunning": false,
|
|
19
|
-
"nextRun": "2026-03-05T05:45:14.456Z"
|
|
20
|
-
},
|
|
21
|
-
"optimize": {
|
|
22
|
-
"runCount": 0,
|
|
23
|
-
"successCount": 0,
|
|
24
|
-
"failureCount": 0,
|
|
25
|
-
"averageDurationMs": 0,
|
|
26
|
-
"isRunning": false,
|
|
27
|
-
"nextRun": "2026-03-05T05:47:14.456Z"
|
|
28
|
-
},
|
|
29
|
-
"consolidate": {
|
|
30
|
-
"runCount": 0,
|
|
31
|
-
"successCount": 0,
|
|
32
|
-
"failureCount": 0,
|
|
33
|
-
"averageDurationMs": 0,
|
|
34
|
-
"isRunning": false,
|
|
35
|
-
"nextRun": "2026-03-05T05:49:14.456Z"
|
|
36
|
-
},
|
|
37
|
-
"testgaps": {
|
|
38
|
-
"runCount": 0,
|
|
39
|
-
"successCount": 0,
|
|
40
|
-
"failureCount": 0,
|
|
41
|
-
"averageDurationMs": 0,
|
|
42
|
-
"isRunning": false,
|
|
43
|
-
"nextRun": "2026-03-05T05:51:14.456Z"
|
|
44
|
-
},
|
|
45
|
-
"predict": {
|
|
46
|
-
"runCount": 0,
|
|
47
|
-
"successCount": 0,
|
|
48
|
-
"failureCount": 0,
|
|
49
|
-
"averageDurationMs": 0,
|
|
50
|
-
"isRunning": false
|
|
51
|
-
},
|
|
52
|
-
"document": {
|
|
53
|
-
"runCount": 0,
|
|
54
|
-
"successCount": 0,
|
|
55
|
-
"failureCount": 0,
|
|
56
|
-
"averageDurationMs": 0,
|
|
57
|
-
"isRunning": false
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"config": {
|
|
61
|
-
"autoStart": false,
|
|
62
|
-
"logDir": "/workspaces/dev/packages/ruvocal/mcp-bridge/.claude-flow/logs",
|
|
63
|
-
"stateFile": "/workspaces/dev/packages/ruvocal/mcp-bridge/.claude-flow/daemon-state.json",
|
|
64
|
-
"maxConcurrent": 2,
|
|
65
|
-
"workerTimeoutMs": 300000,
|
|
66
|
-
"resourceThresholds": {
|
|
67
|
-
"maxCpuLoad": 2,
|
|
68
|
-
"minFreeMemoryPercent": 20
|
|
69
|
-
},
|
|
70
|
-
"workers": [
|
|
71
|
-
{
|
|
72
|
-
"type": "map",
|
|
73
|
-
"intervalMs": 900000,
|
|
74
|
-
"offsetMs": 0,
|
|
75
|
-
"priority": "normal",
|
|
76
|
-
"description": "Codebase mapping",
|
|
77
|
-
"enabled": true
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"type": "audit",
|
|
81
|
-
"intervalMs": 600000,
|
|
82
|
-
"offsetMs": 120000,
|
|
83
|
-
"priority": "critical",
|
|
84
|
-
"description": "Security analysis",
|
|
85
|
-
"enabled": true
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"type": "optimize",
|
|
89
|
-
"intervalMs": 900000,
|
|
90
|
-
"offsetMs": 240000,
|
|
91
|
-
"priority": "high",
|
|
92
|
-
"description": "Performance optimization",
|
|
93
|
-
"enabled": true
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"type": "consolidate",
|
|
97
|
-
"intervalMs": 1800000,
|
|
98
|
-
"offsetMs": 360000,
|
|
99
|
-
"priority": "low",
|
|
100
|
-
"description": "Memory consolidation",
|
|
101
|
-
"enabled": true
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"type": "testgaps",
|
|
105
|
-
"intervalMs": 1200000,
|
|
106
|
-
"offsetMs": 480000,
|
|
107
|
-
"priority": "normal",
|
|
108
|
-
"description": "Test coverage analysis",
|
|
109
|
-
"enabled": true
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"type": "predict",
|
|
113
|
-
"intervalMs": 600000,
|
|
114
|
-
"offsetMs": 0,
|
|
115
|
-
"priority": "low",
|
|
116
|
-
"description": "Predictive preloading",
|
|
117
|
-
"enabled": false
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"type": "document",
|
|
121
|
-
"intervalMs": 3600000,
|
|
122
|
-
"offsetMs": 0,
|
|
123
|
-
"priority": "low",
|
|
124
|
-
"description": "Auto-documentation",
|
|
125
|
-
"enabled": false
|
|
126
|
-
}
|
|
127
|
-
]
|
|
128
|
-
},
|
|
129
|
-
"savedAt": "2026-03-05T05:43:14.456Z"
|
|
130
|
-
}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1653416
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"tasks": {
|
|
3
|
-
"task-1772720955201-4zlm4r": {
|
|
4
|
-
"taskId": "task-1772720955201-4zlm4r",
|
|
5
|
-
"type": "feature",
|
|
6
|
-
"description": "Parent Task: Set up the foundational infrastructure and environment for the new feature development.",
|
|
7
|
-
"priority": "high",
|
|
8
|
-
"status": "pending",
|
|
9
|
-
"progress": 0,
|
|
10
|
-
"assignedTo": [],
|
|
11
|
-
"tags": [
|
|
12
|
-
"project-plan",
|
|
13
|
-
"phase-1"
|
|
14
|
-
],
|
|
15
|
-
"createdAt": "2026-03-05T14:29:15.201Z",
|
|
16
|
-
"startedAt": null,
|
|
17
|
-
"completedAt": null
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
"version": "3.0.0"
|
|
21
|
-
}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[["entry_1772689071771_axjl3o",{"id":"entry_1772689071771_axjl3o","key":"test-key","namespace":"test","content":"hello from MCP test"}]]
|
|
Binary file
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"totalDecisions": 1,
|
|
3
|
-
"modelDistribution": {
|
|
4
|
-
"haiku": 0,
|
|
5
|
-
"sonnet": 0,
|
|
6
|
-
"opus": 1,
|
|
7
|
-
"inherit": 0
|
|
8
|
-
},
|
|
9
|
-
"avgComplexity": 0.3007142857142857,
|
|
10
|
-
"avgConfidence": 0.5660504201680672,
|
|
11
|
-
"circuitBreakerTrips": 0,
|
|
12
|
-
"lastUpdated": "2026-03-05T14:28:08.095Z",
|
|
13
|
-
"learningHistory": []
|
|
14
|
-
}
|
|
@@ -1,305 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
-- Claude Flow V3 Memory Database
|
|
3
|
-
-- Version: 3.0.0
|
|
4
|
-
-- Features: Pattern learning, vector embeddings, temporal decay, migration tracking
|
|
5
|
-
|
|
6
|
-
PRAGMA journal_mode = WAL;
|
|
7
|
-
PRAGMA synchronous = NORMAL;
|
|
8
|
-
PRAGMA foreign_keys = ON;
|
|
9
|
-
|
|
10
|
-
-- ============================================
|
|
11
|
-
-- CORE MEMORY TABLES
|
|
12
|
-
-- ============================================
|
|
13
|
-
|
|
14
|
-
-- Memory entries (main storage)
|
|
15
|
-
CREATE TABLE IF NOT EXISTS memory_entries (
|
|
16
|
-
id TEXT PRIMARY KEY,
|
|
17
|
-
key TEXT NOT NULL,
|
|
18
|
-
namespace TEXT DEFAULT 'default',
|
|
19
|
-
content TEXT NOT NULL,
|
|
20
|
-
type TEXT DEFAULT 'semantic' CHECK(type IN ('semantic', 'episodic', 'procedural', 'working', 'pattern')),
|
|
21
|
-
|
|
22
|
-
-- Vector embedding for semantic search (stored as JSON array)
|
|
23
|
-
embedding TEXT,
|
|
24
|
-
embedding_model TEXT DEFAULT 'local',
|
|
25
|
-
embedding_dimensions INTEGER,
|
|
26
|
-
|
|
27
|
-
-- Metadata
|
|
28
|
-
tags TEXT, -- JSON array
|
|
29
|
-
metadata TEXT, -- JSON object
|
|
30
|
-
owner_id TEXT,
|
|
31
|
-
|
|
32
|
-
-- Timestamps
|
|
33
|
-
created_at INTEGER NOT NULL DEFAULT (strftime('%s', 'now') * 1000),
|
|
34
|
-
updated_at INTEGER NOT NULL DEFAULT (strftime('%s', 'now') * 1000),
|
|
35
|
-
expires_at INTEGER,
|
|
36
|
-
last_accessed_at INTEGER,
|
|
37
|
-
|
|
38
|
-
-- Access tracking for hot/cold detection
|
|
39
|
-
access_count INTEGER DEFAULT 0,
|
|
40
|
-
|
|
41
|
-
-- Status
|
|
42
|
-
status TEXT DEFAULT 'active' CHECK(status IN ('active', 'archived', 'deleted')),
|
|
43
|
-
|
|
44
|
-
UNIQUE(namespace, key)
|
|
45
|
-
);
|
|
46
|
-
|
|
47
|
-
-- Indexes for memory entries
|
|
48
|
-
CREATE INDEX IF NOT EXISTS idx_memory_namespace ON memory_entries(namespace);
|
|
49
|
-
CREATE INDEX IF NOT EXISTS idx_memory_key ON memory_entries(key);
|
|
50
|
-
CREATE INDEX IF NOT EXISTS idx_memory_type ON memory_entries(type);
|
|
51
|
-
CREATE INDEX IF NOT EXISTS idx_memory_status ON memory_entries(status);
|
|
52
|
-
CREATE INDEX IF NOT EXISTS idx_memory_created ON memory_entries(created_at);
|
|
53
|
-
CREATE INDEX IF NOT EXISTS idx_memory_accessed ON memory_entries(last_accessed_at);
|
|
54
|
-
CREATE INDEX IF NOT EXISTS idx_memory_owner ON memory_entries(owner_id);
|
|
55
|
-
|
|
56
|
-
-- ============================================
|
|
57
|
-
-- PATTERN LEARNING TABLES
|
|
58
|
-
-- ============================================
|
|
59
|
-
|
|
60
|
-
-- Learned patterns with confidence scoring and versioning
|
|
61
|
-
CREATE TABLE IF NOT EXISTS patterns (
|
|
62
|
-
id TEXT PRIMARY KEY,
|
|
63
|
-
|
|
64
|
-
-- Pattern identification
|
|
65
|
-
name TEXT NOT NULL,
|
|
66
|
-
pattern_type TEXT NOT NULL CHECK(pattern_type IN (
|
|
67
|
-
'task-routing', 'error-recovery', 'optimization', 'learning',
|
|
68
|
-
'coordination', 'prediction', 'code-pattern', 'workflow'
|
|
69
|
-
)),
|
|
70
|
-
|
|
71
|
-
-- Pattern definition
|
|
72
|
-
condition TEXT NOT NULL, -- Regex or semantic match
|
|
73
|
-
action TEXT NOT NULL, -- What to do when pattern matches
|
|
74
|
-
description TEXT,
|
|
75
|
-
|
|
76
|
-
-- Confidence scoring (0.0 - 1.0)
|
|
77
|
-
confidence REAL DEFAULT 0.5,
|
|
78
|
-
success_count INTEGER DEFAULT 0,
|
|
79
|
-
failure_count INTEGER DEFAULT 0,
|
|
80
|
-
|
|
81
|
-
-- Temporal decay
|
|
82
|
-
decay_rate REAL DEFAULT 0.01, -- How fast confidence decays
|
|
83
|
-
half_life_days INTEGER DEFAULT 30, -- Days until confidence halves without use
|
|
84
|
-
|
|
85
|
-
-- Vector embedding for semantic pattern matching
|
|
86
|
-
embedding TEXT,
|
|
87
|
-
embedding_dimensions INTEGER,
|
|
88
|
-
|
|
89
|
-
-- Versioning
|
|
90
|
-
version INTEGER DEFAULT 1,
|
|
91
|
-
parent_id TEXT REFERENCES patterns(id),
|
|
92
|
-
|
|
93
|
-
-- Metadata
|
|
94
|
-
tags TEXT, -- JSON array
|
|
95
|
-
metadata TEXT, -- JSON object
|
|
96
|
-
source TEXT, -- Where the pattern was learned from
|
|
97
|
-
|
|
98
|
-
-- Timestamps
|
|
99
|
-
created_at INTEGER NOT NULL DEFAULT (strftime('%s', 'now') * 1000),
|
|
100
|
-
updated_at INTEGER NOT NULL DEFAULT (strftime('%s', 'now') * 1000),
|
|
101
|
-
last_matched_at INTEGER,
|
|
102
|
-
last_success_at INTEGER,
|
|
103
|
-
last_failure_at INTEGER,
|
|
104
|
-
|
|
105
|
-
-- Status
|
|
106
|
-
status TEXT DEFAULT 'active' CHECK(status IN ('active', 'archived', 'deprecated', 'experimental'))
|
|
107
|
-
);
|
|
108
|
-
|
|
109
|
-
-- Indexes for patterns
|
|
110
|
-
CREATE INDEX IF NOT EXISTS idx_patterns_type ON patterns(pattern_type);
|
|
111
|
-
CREATE INDEX IF NOT EXISTS idx_patterns_confidence ON patterns(confidence DESC);
|
|
112
|
-
CREATE INDEX IF NOT EXISTS idx_patterns_status ON patterns(status);
|
|
113
|
-
CREATE INDEX IF NOT EXISTS idx_patterns_last_matched ON patterns(last_matched_at);
|
|
114
|
-
|
|
115
|
-
-- Pattern evolution history (for versioning)
|
|
116
|
-
CREATE TABLE IF NOT EXISTS pattern_history (
|
|
117
|
-
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
118
|
-
pattern_id TEXT NOT NULL REFERENCES patterns(id),
|
|
119
|
-
version INTEGER NOT NULL,
|
|
120
|
-
|
|
121
|
-
-- Snapshot of pattern state
|
|
122
|
-
confidence REAL,
|
|
123
|
-
success_count INTEGER,
|
|
124
|
-
failure_count INTEGER,
|
|
125
|
-
condition TEXT,
|
|
126
|
-
action TEXT,
|
|
127
|
-
|
|
128
|
-
-- What changed
|
|
129
|
-
change_type TEXT CHECK(change_type IN ('created', 'updated', 'success', 'failure', 'decay', 'merged', 'split')),
|
|
130
|
-
change_reason TEXT,
|
|
131
|
-
|
|
132
|
-
created_at INTEGER NOT NULL DEFAULT (strftime('%s', 'now') * 1000)
|
|
133
|
-
);
|
|
134
|
-
|
|
135
|
-
CREATE INDEX IF NOT EXISTS idx_pattern_history_pattern ON pattern_history(pattern_id);
|
|
136
|
-
|
|
137
|
-
-- ============================================
|
|
138
|
-
-- LEARNING & TRAJECTORY TABLES
|
|
139
|
-
-- ============================================
|
|
140
|
-
|
|
141
|
-
-- Learning trajectories (SONA integration)
|
|
142
|
-
CREATE TABLE IF NOT EXISTS trajectories (
|
|
143
|
-
id TEXT PRIMARY KEY,
|
|
144
|
-
session_id TEXT,
|
|
145
|
-
|
|
146
|
-
-- Trajectory state
|
|
147
|
-
status TEXT DEFAULT 'active' CHECK(status IN ('active', 'completed', 'failed', 'abandoned')),
|
|
148
|
-
verdict TEXT CHECK(verdict IN ('success', 'failure', 'partial', NULL)),
|
|
149
|
-
|
|
150
|
-
-- Context
|
|
151
|
-
task TEXT,
|
|
152
|
-
context TEXT, -- JSON object
|
|
153
|
-
|
|
154
|
-
-- Metrics
|
|
155
|
-
total_steps INTEGER DEFAULT 0,
|
|
156
|
-
total_reward REAL DEFAULT 0,
|
|
157
|
-
|
|
158
|
-
-- Timestamps
|
|
159
|
-
started_at INTEGER NOT NULL DEFAULT (strftime('%s', 'now') * 1000),
|
|
160
|
-
ended_at INTEGER,
|
|
161
|
-
|
|
162
|
-
-- Reference to extracted pattern (if any)
|
|
163
|
-
extracted_pattern_id TEXT REFERENCES patterns(id)
|
|
164
|
-
);
|
|
165
|
-
|
|
166
|
-
-- Trajectory steps
|
|
167
|
-
CREATE TABLE IF NOT EXISTS trajectory_steps (
|
|
168
|
-
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
169
|
-
trajectory_id TEXT NOT NULL REFERENCES trajectories(id),
|
|
170
|
-
step_number INTEGER NOT NULL,
|
|
171
|
-
|
|
172
|
-
-- Step data
|
|
173
|
-
action TEXT NOT NULL,
|
|
174
|
-
observation TEXT,
|
|
175
|
-
reward REAL DEFAULT 0,
|
|
176
|
-
|
|
177
|
-
-- Metadata
|
|
178
|
-
metadata TEXT, -- JSON object
|
|
179
|
-
|
|
180
|
-
created_at INTEGER NOT NULL DEFAULT (strftime('%s', 'now') * 1000)
|
|
181
|
-
);
|
|
182
|
-
|
|
183
|
-
CREATE INDEX IF NOT EXISTS idx_steps_trajectory ON trajectory_steps(trajectory_id);
|
|
184
|
-
|
|
185
|
-
-- ============================================
|
|
186
|
-
-- MIGRATION STATE TRACKING
|
|
187
|
-
-- ============================================
|
|
188
|
-
|
|
189
|
-
-- Migration state (for resume capability)
|
|
190
|
-
CREATE TABLE IF NOT EXISTS migration_state (
|
|
191
|
-
id TEXT PRIMARY KEY,
|
|
192
|
-
migration_type TEXT NOT NULL, -- 'v2-to-v3', 'pattern', 'memory', etc.
|
|
193
|
-
|
|
194
|
-
-- Progress tracking
|
|
195
|
-
status TEXT DEFAULT 'pending' CHECK(status IN ('pending', 'in_progress', 'completed', 'failed', 'rolled_back')),
|
|
196
|
-
total_items INTEGER DEFAULT 0,
|
|
197
|
-
processed_items INTEGER DEFAULT 0,
|
|
198
|
-
failed_items INTEGER DEFAULT 0,
|
|
199
|
-
skipped_items INTEGER DEFAULT 0,
|
|
200
|
-
|
|
201
|
-
-- Current position (for resume)
|
|
202
|
-
current_batch INTEGER DEFAULT 0,
|
|
203
|
-
last_processed_id TEXT,
|
|
204
|
-
|
|
205
|
-
-- Source/destination info
|
|
206
|
-
source_path TEXT,
|
|
207
|
-
source_type TEXT,
|
|
208
|
-
destination_path TEXT,
|
|
209
|
-
|
|
210
|
-
-- Backup info
|
|
211
|
-
backup_path TEXT,
|
|
212
|
-
backup_created_at INTEGER,
|
|
213
|
-
|
|
214
|
-
-- Error tracking
|
|
215
|
-
last_error TEXT,
|
|
216
|
-
errors TEXT, -- JSON array of errors
|
|
217
|
-
|
|
218
|
-
-- Timestamps
|
|
219
|
-
started_at INTEGER,
|
|
220
|
-
completed_at INTEGER,
|
|
221
|
-
created_at INTEGER NOT NULL DEFAULT (strftime('%s', 'now') * 1000),
|
|
222
|
-
updated_at INTEGER NOT NULL DEFAULT (strftime('%s', 'now') * 1000)
|
|
223
|
-
);
|
|
224
|
-
|
|
225
|
-
-- ============================================
|
|
226
|
-
-- SESSION MANAGEMENT
|
|
227
|
-
-- ============================================
|
|
228
|
-
|
|
229
|
-
-- Sessions for context persistence
|
|
230
|
-
CREATE TABLE IF NOT EXISTS sessions (
|
|
231
|
-
id TEXT PRIMARY KEY,
|
|
232
|
-
|
|
233
|
-
-- Session state
|
|
234
|
-
state TEXT NOT NULL, -- JSON object with full session state
|
|
235
|
-
status TEXT DEFAULT 'active' CHECK(status IN ('active', 'paused', 'completed', 'expired')),
|
|
236
|
-
|
|
237
|
-
-- Context
|
|
238
|
-
project_path TEXT,
|
|
239
|
-
branch TEXT,
|
|
240
|
-
|
|
241
|
-
-- Metrics
|
|
242
|
-
tasks_completed INTEGER DEFAULT 0,
|
|
243
|
-
patterns_learned INTEGER DEFAULT 0,
|
|
244
|
-
|
|
245
|
-
-- Timestamps
|
|
246
|
-
created_at INTEGER NOT NULL DEFAULT (strftime('%s', 'now') * 1000),
|
|
247
|
-
updated_at INTEGER NOT NULL DEFAULT (strftime('%s', 'now') * 1000),
|
|
248
|
-
expires_at INTEGER
|
|
249
|
-
);
|
|
250
|
-
|
|
251
|
-
-- ============================================
|
|
252
|
-
-- VECTOR INDEX METADATA (for HNSW)
|
|
253
|
-
-- ============================================
|
|
254
|
-
|
|
255
|
-
-- Track HNSW index state
|
|
256
|
-
CREATE TABLE IF NOT EXISTS vector_indexes (
|
|
257
|
-
id TEXT PRIMARY KEY,
|
|
258
|
-
name TEXT NOT NULL UNIQUE,
|
|
259
|
-
|
|
260
|
-
-- Index configuration
|
|
261
|
-
dimensions INTEGER NOT NULL,
|
|
262
|
-
metric TEXT DEFAULT 'cosine' CHECK(metric IN ('cosine', 'euclidean', 'dot')),
|
|
263
|
-
|
|
264
|
-
-- HNSW parameters
|
|
265
|
-
hnsw_m INTEGER DEFAULT 16,
|
|
266
|
-
hnsw_ef_construction INTEGER DEFAULT 200,
|
|
267
|
-
hnsw_ef_search INTEGER DEFAULT 100,
|
|
268
|
-
|
|
269
|
-
-- Quantization
|
|
270
|
-
quantization_type TEXT CHECK(quantization_type IN ('none', 'scalar', 'product')),
|
|
271
|
-
quantization_bits INTEGER DEFAULT 8,
|
|
272
|
-
|
|
273
|
-
-- Statistics
|
|
274
|
-
total_vectors INTEGER DEFAULT 0,
|
|
275
|
-
last_rebuild_at INTEGER,
|
|
276
|
-
|
|
277
|
-
created_at INTEGER NOT NULL DEFAULT (strftime('%s', 'now') * 1000),
|
|
278
|
-
updated_at INTEGER NOT NULL DEFAULT (strftime('%s', 'now') * 1000)
|
|
279
|
-
);
|
|
280
|
-
|
|
281
|
-
-- ============================================
|
|
282
|
-
-- SYSTEM METADATA
|
|
283
|
-
-- ============================================
|
|
284
|
-
|
|
285
|
-
CREATE TABLE IF NOT EXISTS metadata (
|
|
286
|
-
key TEXT PRIMARY KEY,
|
|
287
|
-
value TEXT NOT NULL,
|
|
288
|
-
updated_at INTEGER DEFAULT (strftime('%s', 'now') * 1000)
|
|
289
|
-
);
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
INSERT OR REPLACE INTO metadata (key, value) VALUES
|
|
293
|
-
('schema_version', '3.0.0'),
|
|
294
|
-
('backend', 'hybrid'),
|
|
295
|
-
('created_at', '2026-03-05T05:37:51.741Z'),
|
|
296
|
-
('sql_js', 'true'),
|
|
297
|
-
('vector_embeddings', 'enabled'),
|
|
298
|
-
('pattern_learning', 'enabled'),
|
|
299
|
-
('temporal_decay', 'enabled'),
|
|
300
|
-
('hnsw_indexing', 'enabled');
|
|
301
|
-
|
|
302
|
-
-- Create default vector index configuration
|
|
303
|
-
INSERT OR IGNORE INTO vector_indexes (id, name, dimensions) VALUES
|
|
304
|
-
('default', 'default', 768),
|
|
305
|
-
('patterns', 'patterns', 768);
|
|
Binary file
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { authCondition } from "$lib/server/auth";
|
|
2
|
-
import { collections } from "$lib/server/database";
|
|
3
|
-
import { error } from "@sveltejs/kit";
|
|
4
|
-
import { ObjectId } from "mongodb";
|
|
5
|
-
import { z } from "zod";
|
|
6
|
-
import type { RequestHandler } from "./$types";
|
|
7
|
-
import { downloadFile } from "$lib/server/files/downloadFile";
|
|
8
|
-
import mimeTypes from "mime-types";
|
|
9
|
-
|
|
10
|
-
export const GET: RequestHandler = async ({ locals, params }) => {
|
|
11
|
-
const sha256 = z.string().parse(params.sha256);
|
|
12
|
-
|
|
13
|
-
const userId = locals.user?._id ?? locals.sessionId;
|
|
14
|
-
|
|
15
|
-
// check user
|
|
16
|
-
if (!userId) {
|
|
17
|
-
error(401, "Unauthorized");
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
if (params.id.length !== 7) {
|
|
21
|
-
const convId = new ObjectId(z.string().parse(params.id));
|
|
22
|
-
|
|
23
|
-
// check if the user has access to the conversation
|
|
24
|
-
const conv = await collections.conversations.findOne({
|
|
25
|
-
_id: convId,
|
|
26
|
-
...authCondition(locals),
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
if (!conv) {
|
|
30
|
-
error(404, "Conversation not found");
|
|
31
|
-
}
|
|
32
|
-
} else {
|
|
33
|
-
// look for the conversation in shared conversations
|
|
34
|
-
const conv = await collections.sharedConversations.findOne({
|
|
35
|
-
_id: params.id,
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
if (!conv) {
|
|
39
|
-
error(404, "Conversation not found");
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
const { value, mime } = await downloadFile(sha256, params.id);
|
|
44
|
-
|
|
45
|
-
const b64Value = Buffer.from(value, "base64");
|
|
46
|
-
return new Response(b64Value, {
|
|
47
|
-
headers: {
|
|
48
|
-
"Content-Type": mime ?? "application/octet-stream",
|
|
49
|
-
"Content-Security-Policy":
|
|
50
|
-
"default-src 'none'; script-src 'none'; style-src 'none'; sandbox;",
|
|
51
|
-
"Content-Disposition": `attachment; filename="${sha256.slice(0, 8)}.${
|
|
52
|
-
mime ? mimeTypes.extension(mime) || "bin" : "bin"
|
|
53
|
-
}"`,
|
|
54
|
-
"Content-Length": b64Value.length.toString(),
|
|
55
|
-
"Accept-Range": "bytes",
|
|
56
|
-
},
|
|
57
|
-
});
|
|
58
|
-
};
|