galaxy-code 0.1.5 → 0.1.7
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 +149 -600
- package/dist/cli.bundle.js +588 -0
- package/package.json +14 -12
- package/dist/app.d.ts +0 -7
- package/dist/app.js +0 -597
- package/dist/auto-updater.d.ts +0 -21
- package/dist/auto-updater.js +0 -144
- package/dist/cli.d.ts +0 -2
- package/dist/cli.js +0 -159
- package/dist/connections/claude.d.ts +0 -71
- package/dist/connections/claude.js +0 -303
- package/dist/connections/gemini.d.ts +0 -40
- package/dist/connections/gemini.js +0 -232
- package/dist/connections/index.d.ts +0 -11
- package/dist/connections/index.js +0 -11
- package/dist/connections/ollama.d.ts +0 -37
- package/dist/connections/ollama.js +0 -73
- package/dist/connections/types.d.ts +0 -22
- package/dist/connections/types.js +0 -7
- package/dist/env.d.ts +0 -1
- package/dist/env.js +0 -29
- package/dist/node_modules/@workspace/agent-core/connections/claude.d.ts +0 -72
- package/dist/node_modules/@workspace/agent-core/connections/claude.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/connections/claude.js +0 -270
- package/dist/node_modules/@workspace/agent-core/connections/claude.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/connections/gemini.d.ts +0 -41
- package/dist/node_modules/@workspace/agent-core/connections/gemini.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/connections/gemini.js +0 -203
- package/dist/node_modules/@workspace/agent-core/connections/gemini.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/connections/index.d.ts +0 -12
- package/dist/node_modules/@workspace/agent-core/connections/index.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/connections/index.js +0 -12
- package/dist/node_modules/@workspace/agent-core/connections/index.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/connections/ollama.d.ts +0 -38
- package/dist/node_modules/@workspace/agent-core/connections/ollama.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/connections/ollama.js +0 -64
- package/dist/node_modules/@workspace/agent-core/connections/ollama.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/connections/types.d.ts +0 -23
- package/dist/node_modules/@workspace/agent-core/connections/types.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/connections/types.js +0 -8
- package/dist/node_modules/@workspace/agent-core/connections/types.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/index.d.ts +0 -13
- package/dist/node_modules/@workspace/agent-core/index.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/index.js +0 -22
- package/dist/node_modules/@workspace/agent-core/index.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/package.json +0 -53
- package/dist/node_modules/@workspace/agent-core/prompts/ba-it-analyzer.d.ts +0 -2
- package/dist/node_modules/@workspace/agent-core/prompts/ba-it-analyzer.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/prompts/ba-it-analyzer.js +0 -144
- package/dist/node_modules/@workspace/agent-core/prompts/ba-it-analyzer.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/prompts/index.d.ts +0 -12
- package/dist/node_modules/@workspace/agent-core/prompts/index.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/prompts/index.js +0 -12
- package/dist/node_modules/@workspace/agent-core/prompts/index.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/prompts/orchestrator.d.ts +0 -9
- package/dist/node_modules/@workspace/agent-core/prompts/orchestrator.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/prompts/orchestrator.js +0 -89
- package/dist/node_modules/@workspace/agent-core/prompts/orchestrator.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/prompts/planning-agent.d.ts +0 -9
- package/dist/node_modules/@workspace/agent-core/prompts/planning-agent.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/prompts/planning-agent.js +0 -196
- package/dist/node_modules/@workspace/agent-core/prompts/planning-agent.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/prompts/universal-agent.d.ts +0 -8
- package/dist/node_modules/@workspace/agent-core/prompts/universal-agent.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/prompts/universal-agent.js +0 -112
- package/dist/node_modules/@workspace/agent-core/prompts/universal-agent.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/providers/agent-selector.d.ts +0 -30
- package/dist/node_modules/@workspace/agent-core/providers/agent-selector.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/providers/agent-selector.js +0 -76
- package/dist/node_modules/@workspace/agent-core/providers/agent-selector.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/providers/claude-agent.d.ts +0 -30
- package/dist/node_modules/@workspace/agent-core/providers/claude-agent.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/providers/claude-agent.js +0 -107
- package/dist/node_modules/@workspace/agent-core/providers/claude-agent.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/providers/gemini-agent.d.ts +0 -37
- package/dist/node_modules/@workspace/agent-core/providers/gemini-agent.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/providers/gemini-agent.js +0 -144
- package/dist/node_modules/@workspace/agent-core/providers/gemini-agent.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/providers/index.d.ts +0 -13
- package/dist/node_modules/@workspace/agent-core/providers/index.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/providers/index.js +0 -13
- package/dist/node_modules/@workspace/agent-core/providers/index.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/providers/ollama-agent.d.ts +0 -54
- package/dist/node_modules/@workspace/agent-core/providers/ollama-agent.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/providers/ollama-agent.js +0 -247
- package/dist/node_modules/@workspace/agent-core/providers/ollama-agent.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/providers/orchestrator.d.ts +0 -17
- package/dist/node_modules/@workspace/agent-core/providers/orchestrator.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/providers/orchestrator.js +0 -62
- package/dist/node_modules/@workspace/agent-core/providers/orchestrator.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/tools/ba-it-analyzer.d.ts +0 -67
- package/dist/node_modules/@workspace/agent-core/tools/ba-it-analyzer.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/tools/ba-it-analyzer.js +0 -81
- package/dist/node_modules/@workspace/agent-core/tools/ba-it-analyzer.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/tools/code-generate-agent.d.ts +0 -52
- package/dist/node_modules/@workspace/agent-core/tools/code-generate-agent.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/tools/code-generate-agent.js +0 -150
- package/dist/node_modules/@workspace/agent-core/tools/code-generate-agent.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/tools/command-runner.d.ts +0 -15
- package/dist/node_modules/@workspace/agent-core/tools/command-runner.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/tools/command-runner.js +0 -121
- package/dist/node_modules/@workspace/agent-core/tools/command-runner.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/tools/document-parser.d.ts +0 -12
- package/dist/node_modules/@workspace/agent-core/tools/document-parser.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/tools/document-parser.js +0 -84
- package/dist/node_modules/@workspace/agent-core/tools/document-parser.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/tools/file-operations.d.ts +0 -18
- package/dist/node_modules/@workspace/agent-core/tools/file-operations.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/tools/file-operations.js +0 -126
- package/dist/node_modules/@workspace/agent-core/tools/file-operations.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/tools/galaxy-ui-integration.d.ts +0 -95
- package/dist/node_modules/@workspace/agent-core/tools/galaxy-ui-integration.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/tools/galaxy-ui-integration.js +0 -245
- package/dist/node_modules/@workspace/agent-core/tools/galaxy-ui-integration.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/tools/git-operations.d.ts +0 -12
- package/dist/node_modules/@workspace/agent-core/tools/git-operations.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/tools/git-operations.js +0 -115
- package/dist/node_modules/@workspace/agent-core/tools/git-operations.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/tools/index.d.ts +0 -11
- package/dist/node_modules/@workspace/agent-core/tools/index.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/tools/index.js +0 -11
- package/dist/node_modules/@workspace/agent-core/tools/index.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/tools/planning-agent.d.ts +0 -30
- package/dist/node_modules/@workspace/agent-core/tools/planning-agent.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/tools/planning-agent.js +0 -125
- package/dist/node_modules/@workspace/agent-core/tools/planning-agent.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/tools/progress-reporter.d.ts +0 -20
- package/dist/node_modules/@workspace/agent-core/tools/progress-reporter.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/tools/progress-reporter.js +0 -46
- package/dist/node_modules/@workspace/agent-core/tools/progress-reporter.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/tools/registry.d.ts +0 -22
- package/dist/node_modules/@workspace/agent-core/tools/registry.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/tools/registry.js +0 -651
- package/dist/node_modules/@workspace/agent-core/tools/registry.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/tools/tool-event-emitter.d.ts +0 -25
- package/dist/node_modules/@workspace/agent-core/tools/tool-event-emitter.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/tools/tool-event-emitter.js +0 -26
- package/dist/node_modules/@workspace/agent-core/tools/tool-event-emitter.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/tools/types.d.ts +0 -32
- package/dist/node_modules/@workspace/agent-core/tools/types.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/tools/types.js +0 -2
- package/dist/node_modules/@workspace/agent-core/tools/types.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/types.d.ts +0 -40
- package/dist/node_modules/@workspace/agent-core/types.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/types.js +0 -9
- package/dist/node_modules/@workspace/agent-core/types.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/utils/config-manager.d.ts +0 -103
- package/dist/node_modules/@workspace/agent-core/utils/config-manager.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/utils/config-manager.js +0 -307
- package/dist/node_modules/@workspace/agent-core/utils/config-manager.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/utils/devtools.d.ts +0 -22
- package/dist/node_modules/@workspace/agent-core/utils/devtools.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/utils/devtools.js +0 -62
- package/dist/node_modules/@workspace/agent-core/utils/devtools.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/utils/message-formatters.d.ts +0 -33
- package/dist/node_modules/@workspace/agent-core/utils/message-formatters.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/utils/message-formatters.js +0 -591
- package/dist/node_modules/@workspace/agent-core/utils/message-formatters.js.map +0 -1
- package/dist/node_modules/@workspace/agent-core/utils/progress-tracker.d.ts +0 -60
- package/dist/node_modules/@workspace/agent-core/utils/progress-tracker.d.ts.map +0 -1
- package/dist/node_modules/@workspace/agent-core/utils/progress-tracker.js +0 -204
- package/dist/node_modules/@workspace/agent-core/utils/progress-tracker.js.map +0 -1
- package/dist/prompts/ba-it-analyzer.d.ts +0 -1
- package/dist/prompts/ba-it-analyzer.js +0 -143
- package/dist/prompts/index.d.ts +0 -11
- package/dist/prompts/index.js +0 -11
- package/dist/prompts/orchestrator.d.ts +0 -8
- package/dist/prompts/orchestrator.js +0 -88
- package/dist/prompts/planning-agent.d.ts +0 -8
- package/dist/prompts/planning-agent.js +0 -195
- package/dist/prompts/universal-agent.d.ts +0 -7
- package/dist/prompts/universal-agent.js +0 -111
- package/dist/providers/agent-selector.d.ts +0 -29
- package/dist/providers/agent-selector.js +0 -84
- package/dist/providers/claude-agent.d.ts +0 -29
- package/dist/providers/claude-agent.js +0 -121
- package/dist/providers/gemini-agent.d.ts +0 -36
- package/dist/providers/gemini-agent.js +0 -168
- package/dist/providers/index.d.ts +0 -12
- package/dist/providers/index.js +0 -12
- package/dist/providers/ollama-agent.d.ts +0 -53
- package/dist/providers/ollama-agent.js +0 -276
- package/dist/providers/orchestrator.d.ts +0 -16
- package/dist/providers/orchestrator.js +0 -76
- package/dist/tools/ba-it-analyzer.d.ts +0 -66
- package/dist/tools/ba-it-analyzer.js +0 -90
- package/dist/tools/code-generate-agent.d.ts +0 -51
- package/dist/tools/code-generate-agent.js +0 -159
- package/dist/tools/command-runner.d.ts +0 -14
- package/dist/tools/command-runner.js +0 -120
- package/dist/tools/document-parser.d.ts +0 -11
- package/dist/tools/document-parser.js +0 -83
- package/dist/tools/file-operations.d.ts +0 -17
- package/dist/tools/file-operations.js +0 -127
- package/dist/tools/galaxy-ui-integration.d.ts +0 -94
- package/dist/tools/galaxy-ui-integration.js +0 -244
- package/dist/tools/git-operations.d.ts +0 -11
- package/dist/tools/git-operations.js +0 -114
- package/dist/tools/index.d.ts +0 -10
- package/dist/tools/index.js +0 -10
- package/dist/tools/planning-agent.d.ts +0 -29
- package/dist/tools/planning-agent.js +0 -134
- package/dist/tools/progress-reporter.d.ts +0 -19
- package/dist/tools/progress-reporter.js +0 -52
- package/dist/tools/registry.d.ts +0 -21
- package/dist/tools/registry.js +0 -695
- package/dist/tools/tool-event-emitter.d.ts +0 -24
- package/dist/tools/tool-event-emitter.js +0 -25
- package/dist/tools/types.d.ts +0 -31
- package/dist/tools/types.js +0 -1
- package/dist/types.d.ts +0 -39
- package/dist/types.js +0 -8
- package/dist/update-checker.d.ts +0 -22
- package/dist/update-checker.js +0 -85
- package/dist/utils/config-manager.d.ts +0 -102
- package/dist/utils/config-manager.js +0 -326
- package/dist/utils/devtools.d.ts +0 -21
- package/dist/utils/devtools.js +0 -61
- package/dist/utils/message-formatters.d.ts +0 -32
- package/dist/utils/message-formatters.js +0 -590
- package/dist/utils/progress-tracker.d.ts +0 -59
- package/dist/utils/progress-tracker.js +0 -213
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Bùi Trọng Hiếu
|
|
3
|
-
* @email kevinbui210191@gmail.com
|
|
4
|
-
* @create 2024-10-08
|
|
5
|
-
* @modify 2024-10-09
|
|
6
|
-
* @desc Planning Agent - Simple execution plans
|
|
7
|
-
*/
|
|
8
|
-
export const planningSystemPrompt = () => `You are a PLANNING AGENT for software development projects.
|
|
9
|
-
|
|
10
|
-
# Working Directory: ${process.cwd()}
|
|
11
|
-
|
|
12
|
-
# Your Role
|
|
13
|
-
Analyze user request and create actionable execution plan with 3-7 steps.
|
|
14
|
-
|
|
15
|
-
# Input
|
|
16
|
-
User Context: Simple description of what to build/implement
|
|
17
|
-
Example: "Create a todo app with Next.js" or "Add authentication to existing app"
|
|
18
|
-
|
|
19
|
-
# Output Schema
|
|
20
|
-
Output ONLY valid JSON (no markdown, no \`\`\`json wrapper):
|
|
21
|
-
|
|
22
|
-
\`\`\`json
|
|
23
|
-
{
|
|
24
|
-
"summary": "Brief plan description",
|
|
25
|
-
"steps": [
|
|
26
|
-
{
|
|
27
|
-
"step": 1,
|
|
28
|
-
"action": "Clear action description",
|
|
29
|
-
"tool": "tool_name",
|
|
30
|
-
"reasoning": "Why this step"
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
"estimatedTime": "quick|medium|long"
|
|
34
|
-
}
|
|
35
|
-
\`\`\`
|
|
36
|
-
|
|
37
|
-
# Available Tools
|
|
38
|
-
|
|
39
|
-
**project_init:**
|
|
40
|
-
- command_run: Execute shell commands (npx create-*, npm init, git commands)
|
|
41
|
-
- install_dependencies: Install packages from package.json
|
|
42
|
-
|
|
43
|
-
**code_operations:**
|
|
44
|
-
- file_tree: View project structure
|
|
45
|
-
- file_read: Read file contents
|
|
46
|
-
- file_write: Create/update files
|
|
47
|
-
- file_delete: Remove files
|
|
48
|
-
|
|
49
|
-
**testing:**
|
|
50
|
-
- test_run: Execute test suite (only if System Context: Test Planning=ON)
|
|
51
|
-
|
|
52
|
-
**version_control:**
|
|
53
|
-
- git_commit: Commit changes with conventional message
|
|
54
|
-
|
|
55
|
-
# Planning Strategy
|
|
56
|
-
|
|
57
|
-
## NEW Projects
|
|
58
|
-
\`\`\`
|
|
59
|
-
1. command_run: Initialize project (create-next-app, create-vite, etc.)
|
|
60
|
-
2. install_dependencies: Add required packages
|
|
61
|
-
3. file_write: Core pages/components
|
|
62
|
-
4. file_write: Additional features
|
|
63
|
-
5. test_run: Run tests (if Test Planning=ON)
|
|
64
|
-
6. git_commit: Save implementation
|
|
65
|
-
\`\`\`
|
|
66
|
-
|
|
67
|
-
## ADD Features (Existing)
|
|
68
|
-
\`\`\`
|
|
69
|
-
1. file_tree: Understand structure
|
|
70
|
-
2. file_read: Check existing code (if needed)
|
|
71
|
-
3. install_dependencies: Add new packages (if needed)
|
|
72
|
-
4. file_write: Implement feature
|
|
73
|
-
5. test_run: Verify changes (if Test Planning=ON)
|
|
74
|
-
6. git_commit: Save changes
|
|
75
|
-
\`\`\`
|
|
76
|
-
|
|
77
|
-
# Planning Rules
|
|
78
|
-
|
|
79
|
-
1. **Step Count**: 3-7 steps (balance detail vs simplicity)
|
|
80
|
-
2. **Logical Order**: Setup → Dependencies → Implementation → Testing → Commit
|
|
81
|
-
3. **System Context** (optional in input):
|
|
82
|
-
- Test Planning=ON → Include test_run step
|
|
83
|
-
- Test Planning=OFF → Skip test_run step
|
|
84
|
-
4. **Time Estimates**:
|
|
85
|
-
- quick: 1-3 steps (<30min)
|
|
86
|
-
- medium: 4-6 steps (30min-2h)
|
|
87
|
-
- long: 7+ steps (>2h)
|
|
88
|
-
|
|
89
|
-
# Example 1: NEW Project
|
|
90
|
-
|
|
91
|
-
Input:
|
|
92
|
-
\`\`\`
|
|
93
|
-
User Context: Create a todo app with Next.js and TypeScript
|
|
94
|
-
\`\`\`
|
|
95
|
-
|
|
96
|
-
Output:
|
|
97
|
-
\`\`\`json
|
|
98
|
-
{
|
|
99
|
-
"summary": "Build Next.js todo app with TypeScript",
|
|
100
|
-
"steps": [
|
|
101
|
-
{
|
|
102
|
-
"step": 1,
|
|
103
|
-
"action": "Initialize Next.js project with TypeScript",
|
|
104
|
-
"tool": "command_run",
|
|
105
|
-
"reasoning": "Setup project foundation"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"step": 2,
|
|
109
|
-
"action": "Create TodoList component with CRUD operations",
|
|
110
|
-
"tool": "file_write",
|
|
111
|
-
"reasoning": "Core todo functionality"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"step": 3,
|
|
115
|
-
"action": "Create TodoItem component with state management",
|
|
116
|
-
"tool": "file_write",
|
|
117
|
-
"reasoning": "Individual todo UI and logic"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"step": 4,
|
|
121
|
-
"action": "Create main page integrating TodoList",
|
|
122
|
-
"tool": "file_write",
|
|
123
|
-
"reasoning": "App entry point"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"step": 5,
|
|
127
|
-
"action": "Commit changes: 'feat: initial todo app'",
|
|
128
|
-
"tool": "git_commit",
|
|
129
|
-
"reasoning": "Save implementation"
|
|
130
|
-
}
|
|
131
|
-
],
|
|
132
|
-
"estimatedTime": "medium"
|
|
133
|
-
}
|
|
134
|
-
\`\`\`
|
|
135
|
-
|
|
136
|
-
# Example 2: ADD Feature
|
|
137
|
-
|
|
138
|
-
Input:
|
|
139
|
-
\`\`\`
|
|
140
|
-
User Context: Add user authentication to existing Express app
|
|
141
|
-
\`\`\`
|
|
142
|
-
|
|
143
|
-
Output:
|
|
144
|
-
\`\`\`json
|
|
145
|
-
{
|
|
146
|
-
"summary": "Add JWT authentication to Express app",
|
|
147
|
-
"steps": [
|
|
148
|
-
{
|
|
149
|
-
"step": 1,
|
|
150
|
-
"action": "Check existing project structure",
|
|
151
|
-
"tool": "file_tree",
|
|
152
|
-
"reasoning": "Understand current architecture"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
"step": 2,
|
|
156
|
-
"action": "Install JWT and bcrypt packages",
|
|
157
|
-
"tool": "install_dependencies",
|
|
158
|
-
"reasoning": "Required for authentication"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"step": 3,
|
|
162
|
-
"action": "Create User model and authentication routes",
|
|
163
|
-
"tool": "file_write",
|
|
164
|
-
"reasoning": "Backend auth logic"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
"step": 4,
|
|
168
|
-
"action": "Create authentication middleware",
|
|
169
|
-
"tool": "file_write",
|
|
170
|
-
"reasoning": "Route protection"
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
"step": 5,
|
|
174
|
-
"action": "Run tests for auth flow",
|
|
175
|
-
"tool": "test_run",
|
|
176
|
-
"reasoning": "Verify implementation (if Test Planning=ON)"
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
"step": 6,
|
|
180
|
-
"action": "Commit changes: 'feat: add JWT authentication'",
|
|
181
|
-
"tool": "git_commit",
|
|
182
|
-
"reasoning": "Save feature"
|
|
183
|
-
}
|
|
184
|
-
],
|
|
185
|
-
"estimatedTime": "medium"
|
|
186
|
-
}
|
|
187
|
-
\`\`\`
|
|
188
|
-
|
|
189
|
-
# Critical Reminders
|
|
190
|
-
- **JSON Only**: Start with { and end with } (no markdown wrappers)
|
|
191
|
-
- **English Only**: All text fields in English
|
|
192
|
-
- **Be Specific**: Clear action descriptions (not "implement feature", but "Create TodoList component")
|
|
193
|
-
- **Realistic Steps**: Don't over-plan (3-7 steps max)
|
|
194
|
-
- **Tool Correctness**: Use appropriate tool for each step
|
|
195
|
-
- **Test Conditional**: Only include test_run if Test Planning=ON in input`;
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Bùi Trọng Hiếu
|
|
3
|
-
* @email kevinbui210191@gmail.com
|
|
4
|
-
* @create 2025-10-22
|
|
5
|
-
* @desc Universal Agent - Concise execution-focused prompt
|
|
6
|
-
*/
|
|
7
|
-
export function buildUniversalAgentPrompt(toolsContext) {
|
|
8
|
-
return `You are Galaxy AI - software development expert by kevinbui.
|
|
9
|
-
|
|
10
|
-
# Response Language
|
|
11
|
-
**Match user's language exactly** (detect from their input)
|
|
12
|
-
|
|
13
|
-
# Available Tools
|
|
14
|
-
${toolsContext}
|
|
15
|
-
|
|
16
|
-
# Planning & Execution Workflow
|
|
17
|
-
|
|
18
|
-
## When to Plan
|
|
19
|
-
Multi-step projects (apps, websites, features with 3+ steps) → Use planning workflow
|
|
20
|
-
|
|
21
|
-
## Execution Loop
|
|
22
|
-
\`\`\`
|
|
23
|
-
1. plan_task({userContext: "user's request"})
|
|
24
|
-
→ Receive: {summary, steps: [{step, action, tool, reasoning}]}
|
|
25
|
-
|
|
26
|
-
2. FOR EACH step in plan.steps:
|
|
27
|
-
a. Execute the step using specified tool
|
|
28
|
-
b. ⚠️ CRITICAL: MUST call progress_reporter({step: N, status: "success"|"error"|"in_progress"})
|
|
29
|
-
- After EVERY step execution
|
|
30
|
-
- Even if step fails
|
|
31
|
-
- NO EXCEPTIONS
|
|
32
|
-
c. Move to next step
|
|
33
|
-
|
|
34
|
-
3. All steps complete → Done
|
|
35
|
-
\`\`\`
|
|
36
|
-
|
|
37
|
-
## ⚠️ CRITICAL RULE: Progress Reporting
|
|
38
|
-
**YOU MUST call progress_reporter after EVERY step execution. This is NOT optional.**
|
|
39
|
-
|
|
40
|
-
Example of CORRECT execution:
|
|
41
|
-
\`\`\`
|
|
42
|
-
Step 1: file_tree(...) → progress_reporter({step: 1, status: "success"})
|
|
43
|
-
Step 2: command_run(...) → progress_reporter({step: 2, status: "success"})
|
|
44
|
-
Step 3: file_write(...) → progress_reporter({step: 3, status: "success"})
|
|
45
|
-
\`\`\`
|
|
46
|
-
|
|
47
|
-
Example of WRONG execution (DO NOT DO THIS):
|
|
48
|
-
\`\`\`
|
|
49
|
-
Step 1: file_tree(...) ❌ Missing progress_reporter
|
|
50
|
-
Step 2: command_run(...) ❌ Missing progress_reporter
|
|
51
|
-
Step 3: file_write(...) ❌ Missing progress_reporter
|
|
52
|
-
\`\`\`
|
|
53
|
-
|
|
54
|
-
## Example Flow
|
|
55
|
-
\`\`\`
|
|
56
|
-
User: "Create todo app with Next.js"
|
|
57
|
-
|
|
58
|
-
→ Step 1: plan_task({userContext: "..."})
|
|
59
|
-
Result: 5-step plan
|
|
60
|
-
|
|
61
|
-
→ Step 2: command_run({command: "npx create-next-app..."})
|
|
62
|
-
→ Step 3: progress_reporter({step: 1, status: "success"})
|
|
63
|
-
|
|
64
|
-
→ Step 4: file_write({path: "components/TodoList.tsx", content: "..."})
|
|
65
|
-
→ Step 5: progress_reporter({step: 2, status: "success"})
|
|
66
|
-
|
|
67
|
-
... repeat for all steps ...
|
|
68
|
-
\`\`\`
|
|
69
|
-
|
|
70
|
-
# Command Execution Rules
|
|
71
|
-
|
|
72
|
-
**Setup commands (create-*, npm init, etc.):**
|
|
73
|
-
1. ✅ Run ONCE with ALL default flags (--yes, --default, etc.)
|
|
74
|
-
2. ✅ Check result → Success? → STOP → Continue to file creation
|
|
75
|
-
3. ❌ DON'T retry with different flags
|
|
76
|
-
4. ❌ NEVER use "cd" - working directory managed automatically
|
|
77
|
-
5. ❌ NEVER execute in /tmp or outside project
|
|
78
|
-
|
|
79
|
-
# Workflows
|
|
80
|
-
|
|
81
|
-
## NEW Projects
|
|
82
|
-
\`\`\`
|
|
83
|
-
1. plan_task: Get execution plan (optional for simple projects)
|
|
84
|
-
2. command_run: Setup with ALL flags → ONCE
|
|
85
|
-
3. file_write: Pages, components, configs
|
|
86
|
-
4. progress_reporter: After each major step
|
|
87
|
-
5. Done: Complete functional app
|
|
88
|
-
\`\`\`
|
|
89
|
-
|
|
90
|
-
## ADD Features (Existing Project)
|
|
91
|
-
\`\`\`
|
|
92
|
-
1. file_tree: Understand structure
|
|
93
|
-
2. file_read: Check current code
|
|
94
|
-
3. file_write: New/updated files
|
|
95
|
-
4. command_run: Install deps (--yes)
|
|
96
|
-
5. Done
|
|
97
|
-
\`\`\`
|
|
98
|
-
|
|
99
|
-
# Detection
|
|
100
|
-
- **NEW**: "Create/Build/Make" + project/app/website
|
|
101
|
-
- **FEATURE**: "Add/Fix/Update" + mentions existing/current
|
|
102
|
-
|
|
103
|
-
# Core Rules
|
|
104
|
-
- **Code**: TypeScript preferred, clean, maintainable, error handling
|
|
105
|
-
- **Git** (if enabled): Conventional commits at logical checkpoints
|
|
106
|
-
- **Testing** (if enabled): Run after changes, fix failures
|
|
107
|
-
- **Errors**: Analyze → Try alternative approach → Explain
|
|
108
|
-
- **Progress**: ALWAYS call progress_reporter after completing each step in a plan
|
|
109
|
-
|
|
110
|
-
Remember: Execute commands ONCE → Check success → Build complete app!`;
|
|
111
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Bùi Trọng Hiếu
|
|
3
|
-
* @email kevinbui210191@gmail.com
|
|
4
|
-
* @create 2025-10-21
|
|
5
|
-
* @modify 2025-10-22
|
|
6
|
-
* @desc Agent factory for selecting appropriate AI agent based on config
|
|
7
|
-
*/
|
|
8
|
-
import type { GalaxyConfig } from '../utils/config-manager.js';
|
|
9
|
-
export interface AgentInterface {
|
|
10
|
-
handleUserInput(input: string, options?: {
|
|
11
|
-
gitEnabled: boolean;
|
|
12
|
-
testEnabled: boolean;
|
|
13
|
-
}, onMessage?: (author: 'user' | 'assistant' | 'system' | 'tool', content: string, toolName?: string, toolInfo?: any) => void): Promise<{
|
|
14
|
-
content: string;
|
|
15
|
-
}>;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Select appropriate agent based on Galaxy config
|
|
19
|
-
* Uses the configured agent
|
|
20
|
-
*/
|
|
21
|
-
export declare function selectAgent(config: GalaxyConfig): AgentInterface | null;
|
|
22
|
-
/**
|
|
23
|
-
* Get human-readable agent description
|
|
24
|
-
*/
|
|
25
|
-
export declare function getAgentDescription(config: GalaxyConfig): string;
|
|
26
|
-
/**
|
|
27
|
-
* Check if agent supports tool use
|
|
28
|
-
*/
|
|
29
|
-
export declare function agentSupportsTools(): boolean;
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
// import {orchestratorAgent} from './orchestrator.js';
|
|
2
|
-
import { claudeAgent } from './claude-agent.js';
|
|
3
|
-
import { OllamaAgent } from './ollama-agent.js';
|
|
4
|
-
import { geminiAgent } from './gemini-agent.js';
|
|
5
|
-
/**
|
|
6
|
-
* Select appropriate agent based on Galaxy config
|
|
7
|
-
* Uses the configured agent
|
|
8
|
-
*/
|
|
9
|
-
export function selectAgent(config) {
|
|
10
|
-
// Get agent config array
|
|
11
|
-
const agentArray = config.agent;
|
|
12
|
-
if (!agentArray || agentArray.length === 0) {
|
|
13
|
-
console.warn('⚠️ No agents configured. Using Ollama agent as default.');
|
|
14
|
-
return new OllamaAgent();
|
|
15
|
-
}
|
|
16
|
-
// Check for manual mode first - both CLI and VSCode should use Ollama with qwen3-coder:480b-cloud
|
|
17
|
-
const manualAgent = agentArray.find((a) => a.type === 'manual');
|
|
18
|
-
if (manualAgent) {
|
|
19
|
-
// Use Ollama Agent with qwen3-coder:480b-cloud model for manual mode
|
|
20
|
-
const manualAgentConfig = {
|
|
21
|
-
type: 'ollama',
|
|
22
|
-
model: 'qwen3-coder:480b-cloud',
|
|
23
|
-
host: 'https://ollama.com',
|
|
24
|
-
apiKey: manualAgent.apiKey,
|
|
25
|
-
};
|
|
26
|
-
return new OllamaAgent(manualAgentConfig);
|
|
27
|
-
}
|
|
28
|
-
// For non-manual modes, find first working agent (claude, gemini, or ollama)
|
|
29
|
-
const primaryAgent = agentArray.find((a) => a.type === 'claude' || a.type === 'gemini' || a.type === 'ollama') ?? agentArray[0];
|
|
30
|
-
// Check if primaryAgent is defined
|
|
31
|
-
if (!primaryAgent) {
|
|
32
|
-
console.warn('⚠️ No valid agent found. Using Ollama agent as default.');
|
|
33
|
-
return new OllamaAgent();
|
|
34
|
-
}
|
|
35
|
-
switch (primaryAgent.type) {
|
|
36
|
-
case 'claude':
|
|
37
|
-
// Use Claude Agent with full tool access
|
|
38
|
-
return claudeAgent.instance;
|
|
39
|
-
case 'gemini':
|
|
40
|
-
// Use Gemini Agent with full tool access
|
|
41
|
-
return geminiAgent.instance;
|
|
42
|
-
case 'ollama':
|
|
43
|
-
// Use Ollama Agent with full tool access
|
|
44
|
-
return new OllamaAgent(primaryAgent);
|
|
45
|
-
default:
|
|
46
|
-
// Default to Ollama agent
|
|
47
|
-
console.warn('⚠️ Unknown agent type. Using Ollama agent.');
|
|
48
|
-
return new OllamaAgent();
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Get human-readable agent description
|
|
53
|
-
*/
|
|
54
|
-
export function getAgentDescription(config) {
|
|
55
|
-
const agentArray = config.agent;
|
|
56
|
-
if (!agentArray || agentArray.length === 0) {
|
|
57
|
-
return 'Ollama (default)';
|
|
58
|
-
}
|
|
59
|
-
// Find manual agent first, otherwise use first agent
|
|
60
|
-
const primaryAgent = agentArray.find((a) => a.type === 'manual') ?? agentArray[0];
|
|
61
|
-
// Check if primaryAgent is defined
|
|
62
|
-
if (!primaryAgent) {
|
|
63
|
-
return 'Ollama (default)';
|
|
64
|
-
}
|
|
65
|
-
switch (primaryAgent.type) {
|
|
66
|
-
case 'claude':
|
|
67
|
-
return 'Claude';
|
|
68
|
-
case 'gemini':
|
|
69
|
-
return 'Gemini';
|
|
70
|
-
case 'ollama':
|
|
71
|
-
return 'Ollama';
|
|
72
|
-
case 'manual':
|
|
73
|
-
return 'Manual (Orchestrator)';
|
|
74
|
-
default:
|
|
75
|
-
return 'Ollama (default)';
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Check if agent supports tool use
|
|
80
|
-
*/
|
|
81
|
-
export function agentSupportsTools() {
|
|
82
|
-
// All agents support tools
|
|
83
|
-
return true;
|
|
84
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { AgentConfig } from '../utils/config-manager.js';
|
|
2
|
-
export interface ClaudeAgentOptions {
|
|
3
|
-
gitEnabled: boolean;
|
|
4
|
-
testEnabled: boolean;
|
|
5
|
-
}
|
|
6
|
-
export type MessageCallback = (author: 'user' | 'assistant' | 'system' | 'tool', content: string, toolName?: string, toolInfo?: any) => void;
|
|
7
|
-
export declare class ClaudeAgent {
|
|
8
|
-
private connection;
|
|
9
|
-
private toolsRegistry;
|
|
10
|
-
private readonly toolNames;
|
|
11
|
-
constructor(config?: AgentConfig);
|
|
12
|
-
/**
|
|
13
|
-
* Convert tool registry format to Anthropic tool format
|
|
14
|
-
*/
|
|
15
|
-
private getAnthropicTools;
|
|
16
|
-
/**
|
|
17
|
-
* Handle user input and orchestrate tool calls
|
|
18
|
-
*/
|
|
19
|
-
handleUserInput(input: string, options?: ClaudeAgentOptions, onMessage?: MessageCallback, retryCount?: number): Promise<{
|
|
20
|
-
content: string;
|
|
21
|
-
}>;
|
|
22
|
-
/**
|
|
23
|
-
* Clear conversation history
|
|
24
|
-
*/
|
|
25
|
-
clearHistory(): void;
|
|
26
|
-
}
|
|
27
|
-
export declare const claudeAgent: {
|
|
28
|
-
readonly instance: ClaudeAgent;
|
|
29
|
-
};
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { ToolRegistry } from '../tools/index.js';
|
|
2
|
-
import { ClaudeConnection } from '../connections/claude.js';
|
|
3
|
-
import { buildUniversalAgentPrompt } from '../prompts/index.js';
|
|
4
|
-
export class ClaudeAgent {
|
|
5
|
-
constructor(config) {
|
|
6
|
-
Object.defineProperty(this, "connection", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
configurable: true,
|
|
9
|
-
writable: true,
|
|
10
|
-
value: void 0
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(this, "toolsRegistry", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
configurable: true,
|
|
15
|
-
writable: true,
|
|
16
|
-
value: new ToolRegistry()
|
|
17
|
-
});
|
|
18
|
-
// Low-level tools for Claude to build software
|
|
19
|
-
Object.defineProperty(this, "toolNames", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
configurable: true,
|
|
22
|
-
writable: true,
|
|
23
|
-
value: [
|
|
24
|
-
'file_read',
|
|
25
|
-
'file_write',
|
|
26
|
-
'file_tree',
|
|
27
|
-
'file_list',
|
|
28
|
-
'file_search',
|
|
29
|
-
'git_status',
|
|
30
|
-
'git_commit',
|
|
31
|
-
'git_push',
|
|
32
|
-
'git_pull',
|
|
33
|
-
'git_diff',
|
|
34
|
-
'git_log',
|
|
35
|
-
'git_branches',
|
|
36
|
-
'command_run',
|
|
37
|
-
'install_dependencies',
|
|
38
|
-
'test_run',
|
|
39
|
-
'document_parse',
|
|
40
|
-
'plan_task',
|
|
41
|
-
'progress_reporter',
|
|
42
|
-
// Galaxy UI Integration
|
|
43
|
-
'galaxy_ui_list',
|
|
44
|
-
'galaxy_ui_search',
|
|
45
|
-
'galaxy_ui_get_component',
|
|
46
|
-
'galaxy_ui_categories',
|
|
47
|
-
'galaxy_ui_add',
|
|
48
|
-
'galaxy_ui_init',
|
|
49
|
-
'galaxy_ui_docs',
|
|
50
|
-
]
|
|
51
|
-
});
|
|
52
|
-
// Build system prompt using shared universal prompt
|
|
53
|
-
const toolsContext = this.toolsRegistry.getToolsContext(this.toolNames);
|
|
54
|
-
const systemPrompt = buildUniversalAgentPrompt(toolsContext);
|
|
55
|
-
// Initialize connection with config and systemPrompt
|
|
56
|
-
this.connection = new ClaudeConnection(config, systemPrompt);
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Convert tool registry format to Anthropic tool format
|
|
60
|
-
*/
|
|
61
|
-
getAnthropicTools() {
|
|
62
|
-
const tools = this.toolsRegistry.getToolsByNames(this.toolNames);
|
|
63
|
-
return tools.map(tool => ({
|
|
64
|
-
name: tool.name,
|
|
65
|
-
description: tool.description,
|
|
66
|
-
input_schema: tool.inputSchema,
|
|
67
|
-
}));
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Handle user input and orchestrate tool calls
|
|
71
|
-
*/
|
|
72
|
-
async handleUserInput(input, options, onMessage, retryCount = 0) {
|
|
73
|
-
const MAX_RETRIES = 3;
|
|
74
|
-
try {
|
|
75
|
-
// Add system context to input
|
|
76
|
-
const contextMessage = options
|
|
77
|
-
? `[System Context: Git=${options.gitEnabled ? 'ON' : 'OFF'}, Test Planning=${options.testEnabled ? 'ON' : 'OFF'}]\n\n${input}`
|
|
78
|
-
: input;
|
|
79
|
-
// Notify user message
|
|
80
|
-
if (onMessage) {
|
|
81
|
-
onMessage('user', contextMessage);
|
|
82
|
-
}
|
|
83
|
-
// Call connection's chatWithTools (handles full loop)
|
|
84
|
-
const response = await this.connection.chatWithTools(contextMessage, this.getAnthropicTools(), onMessage);
|
|
85
|
-
// Notify final response
|
|
86
|
-
if (onMessage) {
|
|
87
|
-
onMessage('assistant', response);
|
|
88
|
-
}
|
|
89
|
-
return { content: response || '(No response)' };
|
|
90
|
-
}
|
|
91
|
-
catch (error) {
|
|
92
|
-
// Silent auto-retry with exponential backoff
|
|
93
|
-
if (retryCount < MAX_RETRIES) {
|
|
94
|
-
// Wait before retry (exponential backoff: 1s, 2s, 4s)
|
|
95
|
-
const delayMs = Math.pow(2, retryCount) * 1000;
|
|
96
|
-
await new Promise(resolve => setTimeout(resolve, delayMs));
|
|
97
|
-
// Silent retry - continue with "Continued" message
|
|
98
|
-
return await this.handleUserInput('Continued', options, onMessage, retryCount + 1);
|
|
99
|
-
}
|
|
100
|
-
// Max retries exceeded - throw error to app.tsx
|
|
101
|
-
throw new Error(`Agent failed after ${MAX_RETRIES} retries: ${error instanceof Error ? error.message : String(error)}`);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Clear conversation history
|
|
106
|
-
*/
|
|
107
|
-
clearHistory() {
|
|
108
|
-
this.connection.clearHistory();
|
|
109
|
-
this.connection.clearToolHistory();
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
// Singleton instance with lazy initialization
|
|
113
|
-
let _claudeAgent = null;
|
|
114
|
-
export const claudeAgent = {
|
|
115
|
-
get instance() {
|
|
116
|
-
if (!_claudeAgent) {
|
|
117
|
-
_claudeAgent = new ClaudeAgent();
|
|
118
|
-
}
|
|
119
|
-
return _claudeAgent;
|
|
120
|
-
},
|
|
121
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { AgentConfig } from '../utils/config-manager.js';
|
|
2
|
-
export interface GeminiAgentOptions {
|
|
3
|
-
gitEnabled: boolean;
|
|
4
|
-
testEnabled: boolean;
|
|
5
|
-
}
|
|
6
|
-
export type MessageCallback = (author: 'user' | 'assistant' | 'system' | 'tool', content: string, toolName?: string, toolInfo?: any) => void;
|
|
7
|
-
interface ConversationMessage {
|
|
8
|
-
role: 'user' | 'assistant' | 'system';
|
|
9
|
-
content: string;
|
|
10
|
-
}
|
|
11
|
-
export declare class GeminiAgent {
|
|
12
|
-
private connection;
|
|
13
|
-
private toolsRegistry;
|
|
14
|
-
private conversationHistory;
|
|
15
|
-
private systemPrompt;
|
|
16
|
-
private readonly toolNames;
|
|
17
|
-
constructor(config?: AgentConfig);
|
|
18
|
-
/**
|
|
19
|
-
* Handle user input and orchestrate tool calls
|
|
20
|
-
*/
|
|
21
|
-
handleUserInput(input: string, options?: GeminiAgentOptions, onMessage?: MessageCallback, retryCount?: number): Promise<{
|
|
22
|
-
content: string;
|
|
23
|
-
}>;
|
|
24
|
-
/**
|
|
25
|
-
* Clear conversation history
|
|
26
|
-
*/
|
|
27
|
-
clearHistory(): void;
|
|
28
|
-
/**
|
|
29
|
-
* Get conversation history
|
|
30
|
-
*/
|
|
31
|
-
getHistory(): ConversationMessage[];
|
|
32
|
-
}
|
|
33
|
-
export declare const geminiAgent: {
|
|
34
|
-
readonly instance: GeminiAgent;
|
|
35
|
-
};
|
|
36
|
-
export {};
|