vibecodepilot 0.0.0-stage → 1.0.1
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/LICENSE +21 -0
- package/README.md +181 -2
- package/apps/dashboard/dist/assets/index-CqhDXwBX.css +1 -0
- package/apps/dashboard/dist/assets/index-DB7dE_Nn.js +493 -0
- package/apps/dashboard/dist/index.html +31 -0
- package/apps/dashboard/dist-server/serve-dashboard.cjs +99 -0
- package/apps/dashboard/package.json +23 -0
- package/apps/server/dist/db/database.d.ts +91 -0
- package/apps/server/dist/db/database.d.ts.map +1 -0
- package/apps/server/dist/db/database.js +902 -0
- package/apps/server/dist/db/database.js.map +1 -0
- package/apps/server/dist/index.d.ts +2 -0
- package/apps/server/dist/index.d.ts.map +1 -0
- package/apps/server/dist/index.js +2262 -0
- package/apps/server/dist/index.js.map +1 -0
- package/apps/server/dist/services/agentWorkspaceService.d.ts +89 -0
- package/apps/server/dist/services/agentWorkspaceService.d.ts.map +1 -0
- package/apps/server/dist/services/agentWorkspaceService.js +243 -0
- package/apps/server/dist/services/agentWorkspaceService.js.map +1 -0
- package/apps/server/dist/services/monitorService.d.ts +118 -0
- package/apps/server/dist/services/monitorService.d.ts.map +1 -0
- package/apps/server/dist/services/monitorService.js +497 -0
- package/apps/server/dist/services/monitorService.js.map +1 -0
- package/apps/server/dist/services/projectFlowGraph.d.ts +70 -0
- package/apps/server/dist/services/projectFlowGraph.d.ts.map +1 -0
- package/apps/server/dist/services/projectFlowGraph.js +254 -0
- package/apps/server/dist/services/projectFlowGraph.js.map +1 -0
- package/apps/server/dist/tech-detector.d.ts +2 -0
- package/apps/server/dist/tech-detector.d.ts.map +1 -0
- package/apps/server/dist/tech-detector.js +154 -0
- package/apps/server/dist/tech-detector.js.map +1 -0
- package/apps/server/dist/workspace-tools.d.ts +43 -0
- package/apps/server/dist/workspace-tools.d.ts.map +1 -0
- package/apps/server/dist/workspace-tools.js +160 -0
- package/apps/server/dist/workspace-tools.js.map +1 -0
- package/apps/server/package.json +24 -0
- package/node_modules/@VibeCodePilot/agent-registry/dist/index.d.ts +21 -0
- package/node_modules/@VibeCodePilot/agent-registry/dist/index.d.ts.map +1 -0
- package/node_modules/@VibeCodePilot/agent-registry/dist/index.js +194 -0
- package/node_modules/@VibeCodePilot/agent-registry/dist/index.js.map +1 -0
- package/node_modules/@VibeCodePilot/agent-registry/package.json +18 -0
- package/node_modules/@VibeCodePilot/git-worktrees/dist/index.d.ts +48 -0
- package/node_modules/@VibeCodePilot/git-worktrees/dist/index.d.ts.map +1 -0
- package/node_modules/@VibeCodePilot/git-worktrees/dist/index.js +121 -0
- package/node_modules/@VibeCodePilot/git-worktrees/dist/index.js.map +1 -0
- package/node_modules/@VibeCodePilot/git-worktrees/package.json +18 -0
- package/node_modules/@VibeCodePilot/inference-gateway/dist/index.d.ts +54 -0
- package/node_modules/@VibeCodePilot/inference-gateway/dist/index.d.ts.map +1 -0
- package/node_modules/@VibeCodePilot/inference-gateway/dist/index.js +157 -0
- package/node_modules/@VibeCodePilot/inference-gateway/dist/index.js.map +1 -0
- package/node_modules/@VibeCodePilot/inference-gateway/package.json +19 -0
- package/node_modules/@VibeCodePilot/integration/dist/index.d.ts +13 -0
- package/node_modules/@VibeCodePilot/integration/dist/index.d.ts.map +1 -0
- package/node_modules/@VibeCodePilot/integration/dist/index.js +83 -0
- package/node_modules/@VibeCodePilot/integration/dist/index.js.map +1 -0
- package/node_modules/@VibeCodePilot/integration/package.json +20 -0
- package/node_modules/@VibeCodePilot/model-manager/dist/index.d.ts +44 -0
- package/node_modules/@VibeCodePilot/model-manager/dist/index.d.ts.map +1 -0
- package/node_modules/@VibeCodePilot/model-manager/dist/index.js +192 -0
- package/node_modules/@VibeCodePilot/model-manager/dist/index.js.map +1 -0
- package/node_modules/@VibeCodePilot/model-manager/package.json +19 -0
- package/node_modules/@VibeCodePilot/permissions/dist/engine.d.ts +95 -0
- package/node_modules/@VibeCodePilot/permissions/dist/engine.d.ts.map +1 -0
- package/node_modules/@VibeCodePilot/permissions/dist/engine.js +294 -0
- package/node_modules/@VibeCodePilot/permissions/dist/engine.js.map +1 -0
- package/node_modules/@VibeCodePilot/permissions/dist/index.d.ts +4 -0
- package/node_modules/@VibeCodePilot/permissions/dist/index.d.ts.map +1 -0
- package/node_modules/@VibeCodePilot/permissions/dist/index.js +20 -0
- package/node_modules/@VibeCodePilot/permissions/dist/index.js.map +1 -0
- package/node_modules/@VibeCodePilot/permissions/dist/security.d.ts +31 -0
- package/node_modules/@VibeCodePilot/permissions/dist/security.d.ts.map +1 -0
- package/node_modules/@VibeCodePilot/permissions/dist/security.js +129 -0
- package/node_modules/@VibeCodePilot/permissions/dist/security.js.map +1 -0
- package/node_modules/@VibeCodePilot/permissions/dist/types.d.ts +108 -0
- package/node_modules/@VibeCodePilot/permissions/dist/types.d.ts.map +1 -0
- package/node_modules/@VibeCodePilot/permissions/dist/types.js +3 -0
- package/node_modules/@VibeCodePilot/permissions/dist/types.js.map +1 -0
- package/node_modules/@VibeCodePilot/permissions/package.json +20 -0
- package/node_modules/@VibeCodePilot/planner/dist/index.d.ts +35 -0
- package/node_modules/@VibeCodePilot/planner/dist/index.d.ts.map +1 -0
- package/node_modules/@VibeCodePilot/planner/dist/index.js +592 -0
- package/node_modules/@VibeCodePilot/planner/dist/index.js.map +1 -0
- package/node_modules/@VibeCodePilot/planner/package.json +19 -0
- package/node_modules/@VibeCodePilot/promoter/dist/index.d.ts +11 -0
- package/node_modules/@VibeCodePilot/promoter/dist/index.d.ts.map +1 -0
- package/node_modules/@VibeCodePilot/promoter/dist/index.js +117 -0
- package/node_modules/@VibeCodePilot/promoter/dist/index.js.map +1 -0
- package/node_modules/@VibeCodePilot/promoter/package.json +19 -0
- package/node_modules/@VibeCodePilot/prompter/dist/index.d.ts +17 -0
- package/node_modules/@VibeCodePilot/prompter/dist/index.d.ts.map +1 -0
- package/node_modules/@VibeCodePilot/prompter/dist/index.js +216 -0
- package/node_modules/@VibeCodePilot/prompter/dist/index.js.map +1 -0
- package/node_modules/@VibeCodePilot/prompter/package.json +20 -0
- package/node_modules/@VibeCodePilot/provider-ollama/dist/index.d.ts +58 -0
- package/node_modules/@VibeCodePilot/provider-ollama/dist/index.d.ts.map +1 -0
- package/node_modules/@VibeCodePilot/provider-ollama/dist/index.js +384 -0
- package/node_modules/@VibeCodePilot/provider-ollama/dist/index.js.map +1 -0
- package/node_modules/@VibeCodePilot/provider-ollama/package.json +18 -0
- package/node_modules/@VibeCodePilot/shared/dist/index.d.ts +595 -0
- package/node_modules/@VibeCodePilot/shared/dist/index.d.ts.map +1 -0
- package/node_modules/@VibeCodePilot/shared/dist/index.js +24 -0
- package/node_modules/@VibeCodePilot/shared/dist/index.js.map +1 -0
- package/node_modules/@VibeCodePilot/shared/dist/version.d.ts +14 -0
- package/node_modules/@VibeCodePilot/shared/dist/version.d.ts.map +1 -0
- package/node_modules/@VibeCodePilot/shared/dist/version.js +17 -0
- package/node_modules/@VibeCodePilot/shared/dist/version.js.map +1 -0
- package/node_modules/@VibeCodePilot/shared/package.json +24 -0
- package/node_modules/@VibeCodePilot/skill-registry/dist/index.d.ts +15 -0
- package/node_modules/@VibeCodePilot/skill-registry/dist/index.d.ts.map +1 -0
- package/node_modules/@VibeCodePilot/skill-registry/dist/index.js +126 -0
- package/node_modules/@VibeCodePilot/skill-registry/dist/index.js.map +1 -0
- package/node_modules/@VibeCodePilot/skill-registry/package.json +18 -0
- package/node_modules/@VibeCodePilot/supervisor/dist/index.d.ts +31 -0
- package/node_modules/@VibeCodePilot/supervisor/dist/index.d.ts.map +1 -0
- package/node_modules/@VibeCodePilot/supervisor/dist/index.js +219 -0
- package/node_modules/@VibeCodePilot/supervisor/dist/index.js.map +1 -0
- package/node_modules/@VibeCodePilot/supervisor/package.json +19 -0
- package/node_modules/@VibeCodePilot/task-scheduler/dist/index.d.ts +29 -0
- package/node_modules/@VibeCodePilot/task-scheduler/dist/index.d.ts.map +1 -0
- package/node_modules/@VibeCodePilot/task-scheduler/dist/index.js +128 -0
- package/node_modules/@VibeCodePilot/task-scheduler/dist/index.js.map +1 -0
- package/node_modules/@VibeCodePilot/task-scheduler/package.json +20 -0
- package/package.json +114 -4
- package/packages/agent-registry/package.json +18 -0
- package/packages/cli/bin/vibecodepilot.js +28 -0
- package/packages/cli/dist/config.js +143 -0
- package/packages/cli/dist/doctor.js +64 -0
- package/packages/cli/dist/index.js +260 -0
- package/packages/cli/dist/ollama.js +39 -0
- package/packages/cli/dist/pidmanager.js +153 -0
- package/packages/cli/dist/runtime.js +97 -0
- package/packages/cli/dist/servicemanager.js +227 -0
- package/packages/cli/package.json +25 -0
- package/packages/git-worktrees/package.json +18 -0
- package/packages/inference-gateway/package.json +19 -0
- package/packages/integration/package.json +20 -0
- package/packages/model-manager/package.json +19 -0
- package/packages/permissions/package.json +20 -0
- package/packages/planner/package.json +19 -0
- package/packages/promoter/package.json +19 -0
- package/packages/prompter/package.json +20 -0
- package/packages/providers/ollama/package.json +18 -0
- package/packages/shared/package.json +24 -0
- package/packages/skill-registry/package.json +18 -0
- package/packages/supervisor/package.json +19 -0
- package/packages/task-scheduler/package.json +20 -0
- package/skills/ai-ml/aiml-planning.json +22 -0
- package/skills/ai-ml/backend-planning.json +31 -0
- package/skills/ai-ml/frontend-planning.json +19 -0
- package/skills/ai-ml/ollama-local.json +11 -0
- package/skills/ai-ml/prompt-engineering.json +31 -0
- package/skills/ai-ml/task-planning.json +30 -0
- package/skills/backend/python-fastapi.json +11 -0
- package/skills/backend/ruby-rails.json +11 -0
- package/skills/backend/typescript-nodejs.json +11 -0
- package/skills/frontend/react-typescript.json +11 -0
- package/tsconfig.base.json +16 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en" class="dark">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236366f1'><polygon points='12 2 2 7 12 12 22 7 12 2'/><polyline points='2 17 12 22 22 17'/><polyline points='2 12 12 17 22 12'/></svg>" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>VibeCodePilot — Multi-Agent Development Orchestration Platform</title>
|
|
8
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
9
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
10
|
+
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap" rel="stylesheet">
|
|
11
|
+
<script src="https://cdn.tailwindcss.com"></script>
|
|
12
|
+
<script>
|
|
13
|
+
tailwind.config = {
|
|
14
|
+
darkMode: 'class',
|
|
15
|
+
theme: {
|
|
16
|
+
extend: {
|
|
17
|
+
fontFamily: {
|
|
18
|
+
sans: ['"Plus Jakarta Sans"', 'system-ui', 'sans-serif'],
|
|
19
|
+
mono: ['"JetBrains Mono"', 'monospace'],
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
</script>
|
|
25
|
+
<script type="module" crossorigin src="/assets/index-DB7dE_Nn.js"></script>
|
|
26
|
+
<link rel="stylesheet" crossorigin href="/assets/index-CqhDXwBX.css">
|
|
27
|
+
</head>
|
|
28
|
+
<body class="bg-[#0b0f17] text-slate-100 font-sans antialiased overflow-hidden selection:bg-indigo-500/30 selection:text-indigo-200">
|
|
29
|
+
<div id="root"></div>
|
|
30
|
+
</body>
|
|
31
|
+
</html>
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Minimal dependency-free static server for the built AgentEngine dashboard.
|
|
4
|
+
// Proxies /api and /ws to the AgentEngine backend so the production dashboard
|
|
5
|
+
// behaves identically to the Vite development proxy setup.
|
|
6
|
+
|
|
7
|
+
const http = require('node:http');
|
|
8
|
+
const fs = require('node:fs');
|
|
9
|
+
const path = require('node:path');
|
|
10
|
+
const net = require('node:net');
|
|
11
|
+
|
|
12
|
+
const PORT = Number(process.env.AGENTENGINE_DASHBOARD_PORT || 4310);
|
|
13
|
+
const HOST = process.env.AGENTENGINE_HOST || '127.0.0.1';
|
|
14
|
+
const BACKEND_PORT = Number(process.env.AGENTENGINE_PORT || 4311);
|
|
15
|
+
const BACKEND_HOST = process.env.AGENTENGINE_BACKEND_HOST || '127.0.0.1';
|
|
16
|
+
const DIST = process.env.AGENTENGINE_DASHBOARD_DIST || path.resolve(__dirname, '..', 'dist');
|
|
17
|
+
|
|
18
|
+
const MIME = {
|
|
19
|
+
'.html': 'text/html; charset=utf-8',
|
|
20
|
+
'.js': 'text/javascript; charset=utf-8',
|
|
21
|
+
'.mjs': 'text/javascript; charset=utf-8',
|
|
22
|
+
'.css': 'text/css; charset=utf-8',
|
|
23
|
+
'.json': 'application/json',
|
|
24
|
+
'.svg': 'image/svg+xml',
|
|
25
|
+
'.png': 'image/png',
|
|
26
|
+
'.jpg': 'image/jpeg',
|
|
27
|
+
'.ico': 'image/x-icon',
|
|
28
|
+
'.woff': 'font/woff',
|
|
29
|
+
'.woff2': 'font/woff2',
|
|
30
|
+
'.map': 'application/json'
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
function serveFile(res, filePath) {
|
|
34
|
+
const ext = path.extname(filePath).toLowerCase();
|
|
35
|
+
res.writeHead(200, { 'Content-Type': MIME[ext] || 'application/octet-stream' });
|
|
36
|
+
fs.createReadStream(filePath).pipe(res);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const server = http.createServer((req, res) => {
|
|
40
|
+
const url = new URL(req.url, `http://${req.headers.host || 'localhost'}`);
|
|
41
|
+
|
|
42
|
+
if (url.pathname.startsWith('/api')) {
|
|
43
|
+
// Proxy to backend (same path).
|
|
44
|
+
const proxyReq = http.request(
|
|
45
|
+
{
|
|
46
|
+
host: BACKEND_HOST,
|
|
47
|
+
port: BACKEND_PORT,
|
|
48
|
+
path: req.url,
|
|
49
|
+
method: req.method,
|
|
50
|
+
headers: { ...req.headers, host: `${BACKEND_HOST}:${BACKEND_PORT}` }
|
|
51
|
+
},
|
|
52
|
+
proxyRes => {
|
|
53
|
+
res.writeHead(proxyRes.statusCode || 502, proxyRes.headers);
|
|
54
|
+
proxyRes.pipe(res);
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
proxyReq.on('error', () => {
|
|
58
|
+
res.writeHead(502, { 'Content-Type': 'application/json' });
|
|
59
|
+
res.end(JSON.stringify({ error: 'AgentEngine backend unreachable' }));
|
|
60
|
+
});
|
|
61
|
+
req.pipe(proxyReq);
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// Static assets with SPA fallback.
|
|
66
|
+
const rel = url.pathname === '/' ? 'index.html' : url.pathname.replace(/^\/+/, '');
|
|
67
|
+
const candidate = path.resolve(DIST, rel);
|
|
68
|
+
if (candidate.startsWith(path.resolve(DIST)) && fs.existsSync(candidate) && fs.statSync(candidate).isFile()) {
|
|
69
|
+
serveFile(res, candidate);
|
|
70
|
+
} else {
|
|
71
|
+
serveFile(res, path.join(DIST, 'index.html'));
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
// WebSocket proxy: pipe raw TCP between the client socket and the backend.
|
|
76
|
+
server.on('upgrade', (req, socket, head) => {
|
|
77
|
+
const url = new URL(req.url, `http://${req.headers.host || 'localhost'}`);
|
|
78
|
+
if (!url.pathname.startsWith('/ws')) {
|
|
79
|
+
socket.destroy();
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
const upstream = net.connect(BACKEND_PORT, BACKEND_HOST, () => {
|
|
83
|
+
const headerLines = [`${req.method} ${req.url} HTTP/1.1`];
|
|
84
|
+
for (let i = 0; i < req.rawHeaders.length; i += 2) {
|
|
85
|
+
headerLines.push(`${req.rawHeaders[i]}: ${req.rawHeaders[i + 1]}`);
|
|
86
|
+
}
|
|
87
|
+
upstream.write(headerLines.join('\r\n') + '\r\n\r\n');
|
|
88
|
+
if (head && head.length) upstream.write(head);
|
|
89
|
+
socket.write('');
|
|
90
|
+
upstream.pipe(socket);
|
|
91
|
+
socket.pipe(upstream);
|
|
92
|
+
});
|
|
93
|
+
upstream.on('error', () => socket.destroy());
|
|
94
|
+
socket.on('error', () => upstream.destroy());
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
server.listen(PORT, HOST, () => {
|
|
98
|
+
console.log(`AgentEngine dashboard serving on http://${HOST === '0.0.0.0' ? 'localhost' : HOST}:${PORT}`);
|
|
99
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@VibeCodePilot/dashboard",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"private": true,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "vite --port 4310 --host",
|
|
8
|
+
"build": "vite build",
|
|
9
|
+
"preview": "vite preview --port 4310"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"lucide-react": "^0.475.0",
|
|
13
|
+
"react": "^18.3.1",
|
|
14
|
+
"react-dom": "^18.3.1"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@types/react": "^18.3.18",
|
|
18
|
+
"@types/react-dom": "^18.3.5",
|
|
19
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
20
|
+
"typescript": "^5.7.3",
|
|
21
|
+
"vite": "^6.1.0"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { ProjectDefinition, AgentDefinition, SkillDefinition, TaskDefinition, PromptDefinition, ApprovalRequest, IntegrationResult, PromotionContent, SettingsDefinition, VibeCodePilotEvent } from '@VibeCodePilot/shared';
|
|
2
|
+
export declare class DatabaseService {
|
|
3
|
+
private db;
|
|
4
|
+
constructor(dbPath: string);
|
|
5
|
+
private initSchema;
|
|
6
|
+
getProjects(): ProjectDefinition[];
|
|
7
|
+
getProject(id: string): ProjectDefinition | null;
|
|
8
|
+
saveProject(p: ProjectDefinition): void;
|
|
9
|
+
deleteProject(id: string): void;
|
|
10
|
+
deleteChatSession(id: string): void;
|
|
11
|
+
deleteTask(id: string): void;
|
|
12
|
+
getTasks(projectId?: string): TaskDefinition[];
|
|
13
|
+
getTask(id: string): TaskDefinition | null;
|
|
14
|
+
saveTask(t: TaskDefinition): void;
|
|
15
|
+
getPrompts(projectId?: string): PromptDefinition[];
|
|
16
|
+
savePrompt(p: PromptDefinition): void;
|
|
17
|
+
getAgents(): AgentDefinition[];
|
|
18
|
+
saveAgent(a: AgentDefinition): void;
|
|
19
|
+
getSkills(): SkillDefinition[];
|
|
20
|
+
saveSkill(s: SkillDefinition): void;
|
|
21
|
+
getApprovals(projectId?: string): ApprovalRequest[];
|
|
22
|
+
saveApproval(app: ApprovalRequest): void;
|
|
23
|
+
getIntegrations(projectId?: string): IntegrationResult[];
|
|
24
|
+
saveIntegration(res: IntegrationResult): void;
|
|
25
|
+
getPromotions(projectId?: string): PromotionContent[];
|
|
26
|
+
savePromotion(promo: PromotionContent): void;
|
|
27
|
+
getSettings(): SettingsDefinition;
|
|
28
|
+
updateSettings(settings: Partial<SettingsDefinition>): void;
|
|
29
|
+
logEvent(event: VibeCodePilotEvent): void;
|
|
30
|
+
getRecentEvents(limit?: number): VibeCodePilotEvent[];
|
|
31
|
+
getChatSessions(projectId?: string): Array<{
|
|
32
|
+
id: string;
|
|
33
|
+
projectId?: string;
|
|
34
|
+
title: string;
|
|
35
|
+
createdAt: string;
|
|
36
|
+
updatedAt: string;
|
|
37
|
+
}>;
|
|
38
|
+
getChatSession(id: string): {
|
|
39
|
+
id: any;
|
|
40
|
+
projectId: any;
|
|
41
|
+
title: any;
|
|
42
|
+
createdAt: any;
|
|
43
|
+
updatedAt: any;
|
|
44
|
+
} | null;
|
|
45
|
+
saveChatSession(session: {
|
|
46
|
+
id: string;
|
|
47
|
+
projectId?: string;
|
|
48
|
+
title: string;
|
|
49
|
+
createdAt: string;
|
|
50
|
+
updatedAt: string;
|
|
51
|
+
}): void;
|
|
52
|
+
getChatMessages(sessionId: string): Array<{
|
|
53
|
+
id: string;
|
|
54
|
+
sessionId: string;
|
|
55
|
+
sender: string;
|
|
56
|
+
text: string;
|
|
57
|
+
thinking?: string;
|
|
58
|
+
planCreated?: boolean;
|
|
59
|
+
createdTasksCount?: number;
|
|
60
|
+
timestamp: string;
|
|
61
|
+
}>;
|
|
62
|
+
getPermissionRequests(filter?: {
|
|
63
|
+
projectId?: string;
|
|
64
|
+
taskId?: string;
|
|
65
|
+
status?: string;
|
|
66
|
+
}): any[];
|
|
67
|
+
getPermissionRequest(id: string): any;
|
|
68
|
+
savePermissionRequest(p: any): void;
|
|
69
|
+
savePermissionGrant(g: any): void;
|
|
70
|
+
getPermissionGrants(filter?: {
|
|
71
|
+
projectId?: string;
|
|
72
|
+
taskId?: string;
|
|
73
|
+
sessionId?: string;
|
|
74
|
+
}): any[];
|
|
75
|
+
savePermissionAudit(e: any): void;
|
|
76
|
+
getPermissionAudit(filter?: {
|
|
77
|
+
projectId?: string;
|
|
78
|
+
taskId?: string;
|
|
79
|
+
}): any[];
|
|
80
|
+
saveChatMessage(m: {
|
|
81
|
+
id: string;
|
|
82
|
+
sessionId: string;
|
|
83
|
+
sender: string;
|
|
84
|
+
text: string;
|
|
85
|
+
thinking?: string;
|
|
86
|
+
planCreated?: boolean;
|
|
87
|
+
createdTasksCount?: number;
|
|
88
|
+
timestamp: string;
|
|
89
|
+
}): void;
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=database.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"database.d.ts","sourceRoot":"","sources":["../../src/db/database.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf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