@vybestack/llxprt-code-core 0.4.7 → 0.5.0-nightly.251102.6bb3db7a
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/dist/prompt-config/defaults/default-prompts.json +4 -17
- package/dist/src/auth/precedence.d.ts +69 -9
- package/dist/src/auth/precedence.js +467 -69
- package/dist/src/auth/precedence.js.map +1 -1
- package/dist/src/auth/types.d.ts +2 -2
- package/dist/src/config/config.d.ts +18 -1
- package/dist/src/config/config.js +123 -6
- package/dist/src/config/config.js.map +1 -1
- package/dist/src/config/index.d.ts +6 -0
- package/dist/src/config/index.js +5 -0
- package/dist/src/config/index.js.map +1 -1
- package/dist/src/config/profileManager.d.ts +23 -3
- package/dist/src/config/profileManager.js +54 -7
- package/dist/src/config/profileManager.js.map +1 -1
- package/dist/src/config/subagentManager.d.ts +96 -0
- package/dist/src/config/subagentManager.js +371 -0
- package/dist/src/config/subagentManager.js.map +1 -0
- package/dist/src/config/types.d.ts +18 -0
- package/dist/src/config/types.js +3 -0
- package/dist/src/config/types.js.map +1 -0
- package/dist/src/core/client.d.ts +27 -7
- package/dist/src/core/client.js +235 -56
- package/dist/src/core/client.js.map +1 -1
- package/dist/src/core/contentGenerator.d.ts +3 -1
- package/dist/src/core/contentGenerator.js +3 -0
- package/dist/src/core/contentGenerator.js.map +1 -1
- package/dist/src/core/coreToolScheduler.d.ts +1 -5
- package/dist/src/core/coreToolScheduler.js +95 -23
- package/dist/src/core/coreToolScheduler.js.map +1 -1
- package/dist/src/core/geminiChat.d.ts +42 -12
- package/dist/src/core/geminiChat.js +413 -207
- package/dist/src/core/geminiChat.js.map +1 -1
- package/dist/src/core/nonInteractiveToolExecutor.d.ts +3 -2
- package/dist/src/core/nonInteractiveToolExecutor.js +94 -10
- package/dist/src/core/nonInteractiveToolExecutor.js.map +1 -1
- package/dist/src/core/subagent.d.ts +86 -7
- package/dist/src/core/subagent.js +809 -79
- package/dist/src/core/subagent.js.map +1 -1
- package/dist/src/core/subagentOrchestrator.d.ts +73 -0
- package/dist/src/core/subagentOrchestrator.js +383 -0
- package/dist/src/core/subagentOrchestrator.js.map +1 -0
- package/dist/src/core/subagentScheduler.d.ts +16 -0
- package/dist/src/core/subagentScheduler.js +7 -0
- package/dist/src/core/subagentScheduler.js.map +1 -0
- package/dist/src/core/turn.d.ts +5 -1
- package/dist/src/core/turn.js +5 -1
- package/dist/src/core/turn.js.map +1 -1
- package/dist/src/hooks/tool-render-suppression-hook.js +6 -1
- package/dist/src/hooks/tool-render-suppression-hook.js.map +1 -1
- package/dist/src/ide/ideContext.d.ts +32 -32
- package/dist/src/index.d.ts +19 -1
- package/dist/src/index.js +15 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/interfaces/index.d.ts +1 -0
- package/dist/src/interfaces/index.js +4 -0
- package/dist/src/interfaces/index.js.map +1 -0
- package/dist/src/interfaces/nodejs-error.interface.d.ts +4 -0
- package/dist/src/interfaces/nodejs-error.interface.js +2 -0
- package/dist/src/interfaces/nodejs-error.interface.js.map +1 -0
- package/dist/src/parsers/TextToolCallParser.d.ts +17 -1
- package/dist/src/parsers/TextToolCallParser.js +542 -148
- package/dist/src/parsers/TextToolCallParser.js.map +1 -1
- package/dist/src/prompt-config/defaults/core.md +15 -0
- package/dist/src/prompt-config/defaults/providers/gemini/core.md +203 -119
- package/dist/src/prompt-config/defaults/tool-defaults.js +2 -0
- package/dist/src/prompt-config/defaults/tool-defaults.js.map +1 -1
- package/dist/src/prompt-config/defaults/tools/list-subagents.md +7 -0
- package/dist/src/prompt-config/defaults/tools/task.md +8 -0
- package/dist/src/providers/BaseProvider.d.ts +115 -30
- package/dist/src/providers/BaseProvider.js +445 -109
- package/dist/src/providers/BaseProvider.js.map +1 -1
- package/dist/src/providers/IProvider.d.ts +50 -18
- package/dist/src/providers/LoggingProviderWrapper.d.ts +60 -16
- package/dist/src/providers/LoggingProviderWrapper.js +213 -60
- package/dist/src/providers/LoggingProviderWrapper.js.map +1 -1
- package/dist/src/providers/ProviderManager.d.ts +73 -2
- package/dist/src/providers/ProviderManager.js +492 -40
- package/dist/src/providers/ProviderManager.js.map +1 -1
- package/dist/src/providers/anthropic/AnthropicProvider.d.ts +35 -38
- package/dist/src/providers/anthropic/AnthropicProvider.js +222 -227
- package/dist/src/providers/anthropic/AnthropicProvider.js.map +1 -1
- package/dist/src/providers/errors.d.ts +86 -0
- package/dist/src/providers/errors.js +89 -0
- package/dist/src/providers/errors.js.map +1 -1
- package/dist/src/providers/gemini/GeminiProvider.d.ts +101 -41
- package/dist/src/providers/gemini/GeminiProvider.js +386 -311
- package/dist/src/providers/gemini/GeminiProvider.js.map +1 -1
- package/dist/src/providers/openai/ConversationCache.d.ts +5 -3
- package/dist/src/providers/openai/ConversationCache.js +93 -32
- package/dist/src/providers/openai/ConversationCache.js.map +1 -1
- package/dist/src/providers/openai/OpenAIProvider.d.ts +82 -42
- package/dist/src/providers/openai/OpenAIProvider.js +392 -457
- package/dist/src/providers/openai/OpenAIProvider.js.map +1 -1
- package/dist/src/providers/openai/getOpenAIProviderInfo.d.ts +1 -1
- package/dist/src/providers/openai/getOpenAIProviderInfo.js +52 -22
- package/dist/src/providers/openai/getOpenAIProviderInfo.js.map +1 -1
- package/dist/src/providers/openai/openaiRequestParams.d.ts +7 -0
- package/dist/src/providers/openai/openaiRequestParams.js +66 -0
- package/dist/src/providers/openai/openaiRequestParams.js.map +1 -0
- package/dist/src/providers/openai-responses/OpenAIResponsesProvider.d.ts +6 -33
- package/dist/src/providers/openai-responses/OpenAIResponsesProvider.js +84 -183
- package/dist/src/providers/openai-responses/OpenAIResponsesProvider.js.map +1 -1
- package/dist/src/providers/types/providerRuntime.d.ts +17 -0
- package/dist/src/providers/types/providerRuntime.js +7 -0
- package/dist/src/providers/types/providerRuntime.js.map +1 -0
- package/dist/src/providers/utils/authToken.d.ts +12 -0
- package/dist/src/providers/utils/authToken.js +17 -0
- package/dist/src/providers/utils/authToken.js.map +1 -0
- package/dist/src/providers/utils/userMemory.d.ts +8 -0
- package/dist/src/providers/utils/userMemory.js +34 -0
- package/dist/src/providers/utils/userMemory.js.map +1 -0
- package/dist/src/runtime/AgentRuntimeContext.d.ts +213 -0
- package/dist/src/runtime/AgentRuntimeContext.js +17 -0
- package/dist/src/runtime/AgentRuntimeContext.js.map +1 -0
- package/dist/src/runtime/AgentRuntimeLoader.d.ts +47 -0
- package/dist/src/runtime/AgentRuntimeLoader.js +122 -0
- package/dist/src/runtime/AgentRuntimeLoader.js.map +1 -0
- package/dist/src/runtime/AgentRuntimeState.d.ts +232 -0
- package/dist/src/runtime/AgentRuntimeState.js +439 -0
- package/dist/src/runtime/AgentRuntimeState.js.map +1 -0
- package/dist/src/runtime/RuntimeInvocationContext.d.ts +51 -0
- package/dist/src/runtime/RuntimeInvocationContext.js +52 -0
- package/dist/src/runtime/RuntimeInvocationContext.js.map +1 -0
- package/dist/src/runtime/createAgentRuntimeContext.d.ts +7 -0
- package/dist/src/runtime/createAgentRuntimeContext.js +65 -0
- package/dist/src/runtime/createAgentRuntimeContext.js.map +1 -0
- package/dist/src/runtime/index.d.ts +13 -0
- package/dist/src/runtime/index.js +14 -0
- package/dist/src/runtime/index.js.map +1 -0
- package/dist/src/runtime/providerRuntimeContext.d.ts +30 -0
- package/dist/src/runtime/providerRuntimeContext.js +70 -0
- package/dist/src/runtime/providerRuntimeContext.js.map +1 -0
- package/dist/src/runtime/runtimeAdapters.d.ts +22 -0
- package/dist/src/runtime/runtimeAdapters.js +81 -0
- package/dist/src/runtime/runtimeAdapters.js.map +1 -0
- package/dist/src/runtime/runtimeStateFactory.d.ts +21 -0
- package/dist/src/runtime/runtimeStateFactory.js +104 -0
- package/dist/src/runtime/runtimeStateFactory.js.map +1 -0
- package/dist/src/services/history/ContentConverters.js +3 -5
- package/dist/src/services/history/ContentConverters.js.map +1 -1
- package/dist/src/services/shellExecutionService.js +2 -2
- package/dist/src/services/shellExecutionService.js.map +1 -1
- package/dist/src/services/todo-context-tracker.d.ts +10 -8
- package/dist/src/services/todo-context-tracker.js +26 -10
- package/dist/src/services/todo-context-tracker.js.map +1 -1
- package/dist/src/services/tool-call-tracker-service.d.ts +11 -7
- package/dist/src/services/tool-call-tracker-service.js +89 -29
- package/dist/src/services/tool-call-tracker-service.js.map +1 -1
- package/dist/src/settings/SettingsService.d.ts +4 -0
- package/dist/src/settings/SettingsService.js +65 -2
- package/dist/src/settings/SettingsService.js.map +1 -1
- package/dist/src/settings/settingsServiceInstance.d.ts +6 -1
- package/dist/src/settings/settingsServiceInstance.js +28 -8
- package/dist/src/settings/settingsServiceInstance.js.map +1 -1
- package/dist/src/telemetry/loggers.d.ts +5 -1
- package/dist/src/telemetry/loggers.js.map +1 -1
- package/dist/src/telemetry/loggers.test.circular.js +4 -0
- package/dist/src/telemetry/loggers.test.circular.js.map +1 -1
- package/dist/src/telemetry/metrics.d.ts +3 -1
- package/dist/src/telemetry/metrics.js.map +1 -1
- package/dist/src/telemetry/types.d.ts +1 -0
- package/dist/src/telemetry/types.js +3 -0
- package/dist/src/telemetry/types.js.map +1 -1
- package/dist/src/test-utils/index.d.ts +2 -0
- package/dist/src/test-utils/index.js +2 -0
- package/dist/src/test-utils/index.js.map +1 -1
- package/dist/src/test-utils/mockWorkspaceContext.d.ts +0 -3
- package/dist/src/test-utils/mockWorkspaceContext.js +3 -4
- package/dist/src/test-utils/mockWorkspaceContext.js.map +1 -1
- package/dist/src/test-utils/providerCallOptions.d.ts +43 -0
- package/dist/src/test-utils/providerCallOptions.js +137 -0
- package/dist/src/test-utils/providerCallOptions.js.map +1 -0
- package/dist/src/test-utils/runtime.d.ts +92 -0
- package/dist/src/test-utils/runtime.js +226 -0
- package/dist/src/test-utils/runtime.js.map +1 -0
- package/dist/src/test-utils/tools.d.ts +4 -4
- package/dist/src/test-utils/tools.js +20 -10
- package/dist/src/test-utils/tools.js.map +1 -1
- package/dist/src/tools/list-subagents.d.ts +31 -0
- package/dist/src/tools/list-subagents.js +109 -0
- package/dist/src/tools/list-subagents.js.map +1 -0
- package/dist/src/tools/task.d.ts +87 -0
- package/dist/src/tools/task.js +427 -0
- package/dist/src/tools/task.js.map +1 -0
- package/dist/src/tools/todo-read.js +1 -1
- package/dist/src/tools/todo-read.js.map +1 -1
- package/dist/src/tools/todo-store.js +4 -2
- package/dist/src/tools/todo-store.js.map +1 -1
- package/dist/src/tools/todo-write.js +4 -2
- package/dist/src/tools/todo-write.js.map +1 -1
- package/dist/src/tools/tool-error.d.ts +1 -0
- package/dist/src/tools/tool-error.js +1 -0
- package/dist/src/tools/tool-error.js.map +1 -1
- package/dist/src/tools/tool-registry.d.ts +2 -0
- package/dist/src/tools/tool-registry.js +46 -21
- package/dist/src/tools/tool-registry.js.map +1 -1
- package/dist/src/types/modelParams.d.ts +4 -0
- package/dist/src/utils/editor.js +10 -8
- package/dist/src/utils/editor.js.map +1 -1
- package/dist/src/utils/gitIgnoreParser.js +15 -3
- package/dist/src/utils/gitIgnoreParser.js.map +1 -1
- package/dist/src/utils/memoryImportProcessor.js +22 -3
- package/dist/src/utils/memoryImportProcessor.js.map +1 -1
- package/package.json +1 -1
- package/dist/src/prompt-config/defaults/providers/anthropic/core.md +0 -97
- package/dist/src/prompt-config/defaults/providers/anthropic/tools/glob.md +0 -34
- package/dist/src/prompt-config/defaults/providers/anthropic/tools/list-directory.md +0 -11
- package/dist/src/prompt-config/defaults/providers/anthropic/tools/read-file.md +0 -14
- package/dist/src/prompt-config/defaults/providers/anthropic/tools/read-many-files.md +0 -31
- package/dist/src/prompt-config/defaults/providers/anthropic/tools/replace.md +0 -41
- package/dist/src/prompt-config/defaults/providers/anthropic/tools/run-shell-command.md +0 -32
- package/dist/src/prompt-config/defaults/providers/anthropic/tools/save-memory.md +0 -35
- package/dist/src/prompt-config/defaults/providers/anthropic/tools/search-file-content.md +0 -44
- package/dist/src/prompt-config/defaults/providers/anthropic/tools/todo-write.md +0 -45
- package/dist/src/prompt-config/defaults/providers/anthropic/tools/write-file.md +0 -11
- package/dist/src/prompt-config/defaults/providers/openai/core.md +0 -97
- package/dist/src/prompt-config/defaults/providers/openai/tools/todo-pause.md +0 -28
- package/dist/src/prompt-config/defaults/providers/openai/tools/todo-read.md +0 -5
- package/dist/src/prompt-config/defaults/providers/openai/tools/todo-write.md +0 -45
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
# replace Tool (Edit)
|
|
2
|
-
|
|
3
|
-
**Parameters**:
|
|
4
|
-
|
|
5
|
-
- `file_path`: Absolute path to the file (required)
|
|
6
|
-
- `old_string`: Exact text to find and replace (required)
|
|
7
|
-
- `new_string`: Replacement text (required)
|
|
8
|
-
- `expected_replacements`: Number of occurrences to replace (optional)
|
|
9
|
-
|
|
10
|
-
## Critical Requirements
|
|
11
|
-
|
|
12
|
-
**old_string** must be EXACT, including:
|
|
13
|
-
|
|
14
|
-
- All whitespace and indentation
|
|
15
|
-
- Line breaks exactly as they appear
|
|
16
|
-
- At least 3 lines of context before and after the target
|
|
17
|
-
|
|
18
|
-
**Context is Essential**: Include enough surrounding code to uniquely identify the location. The tool will fail if old_string matches multiple locations unexpectedly.
|
|
19
|
-
|
|
20
|
-
## Example Usage
|
|
21
|
-
|
|
22
|
-
Wrong (too little context):
|
|
23
|
-
|
|
24
|
-
```
|
|
25
|
-
old_string: "user_id = None"
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
Right (with context):
|
|
29
|
-
|
|
30
|
-
```
|
|
31
|
-
old_string: " def __init__(self):\n self.user_id = None\n self.session_token = None"
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
## Common Patterns
|
|
35
|
-
|
|
36
|
-
For multiple replacements in one file:
|
|
37
|
-
|
|
38
|
-
1. Set `expected_replacements` to the count you expect
|
|
39
|
-
2. Or make multiple separate replace calls for different sections
|
|
40
|
-
|
|
41
|
-
The tool preserves file formatting and encoding automatically.
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# run_shell_command Tool
|
|
2
|
-
|
|
3
|
-
**Parameters**:
|
|
4
|
-
|
|
5
|
-
- `command`: The shell command to execute (required)
|
|
6
|
-
- `description`: Brief explanation of what the command does (optional but recommended)
|
|
7
|
-
|
|
8
|
-
## Usage Guidelines
|
|
9
|
-
|
|
10
|
-
**Before destructive operations**: Briefly explain what the command will do (delete files, modify system state, etc.)
|
|
11
|
-
|
|
12
|
-
**Background processes**: Add `&` for long-running processes:
|
|
13
|
-
|
|
14
|
-
```
|
|
15
|
-
command: "npm start &"
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
**Non-interactive**: Use non-interactive flags when available:
|
|
19
|
-
|
|
20
|
-
- `npm init -y` instead of `npm init`
|
|
21
|
-
- `apt-get install -y` instead of `apt-get install`
|
|
22
|
-
|
|
23
|
-
## Output Handling
|
|
24
|
-
|
|
25
|
-
The tool returns:
|
|
26
|
-
|
|
27
|
-
- Stdout: Command output
|
|
28
|
-
- Stderr: Error output
|
|
29
|
-
- Exit Code: Process exit code
|
|
30
|
-
- Signal: If terminated by signal
|
|
31
|
-
|
|
32
|
-
Check exit codes to verify success before proceeding with dependent operations.
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# save_memory Tool
|
|
2
|
-
|
|
3
|
-
**Parameter**: Use `fact` - a clear, concise statement to remember (required)
|
|
4
|
-
|
|
5
|
-
Saves user-specific information for future sessions.
|
|
6
|
-
|
|
7
|
-
## When to Use
|
|
8
|
-
|
|
9
|
-
Save facts when:
|
|
10
|
-
|
|
11
|
-
- User explicitly asks you to remember something
|
|
12
|
-
- User shares preferences that would help in future interactions
|
|
13
|
-
- User mentions frequently used paths, aliases, or conventions
|
|
14
|
-
|
|
15
|
-
## What to Save
|
|
16
|
-
|
|
17
|
-
Good examples:
|
|
18
|
-
|
|
19
|
-
- "User prefers tabs over spaces for indentation"
|
|
20
|
-
- "User's main project is located at /home/user/my-project"
|
|
21
|
-
- "User likes descriptive variable names over abbreviations"
|
|
22
|
-
|
|
23
|
-
Don't save:
|
|
24
|
-
|
|
25
|
-
- Current session context
|
|
26
|
-
- Project-specific information (unless it's their main project)
|
|
27
|
-
- Temporary information
|
|
28
|
-
|
|
29
|
-
## Format
|
|
30
|
-
|
|
31
|
-
Keep facts concise and self-contained:
|
|
32
|
-
|
|
33
|
-
```
|
|
34
|
-
fact: "User prefers Python type hints in all new code"
|
|
35
|
-
```
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# search_file_content Tool (Grep)
|
|
2
|
-
|
|
3
|
-
**Parameters**:
|
|
4
|
-
|
|
5
|
-
- `pattern`: Regular expression pattern to search for (required)
|
|
6
|
-
- `path`: Directory or file to search in (optional, defaults to current directory)
|
|
7
|
-
- `glob`: File pattern filter like "_.js" or "_.{ts,tsx}" (optional)
|
|
8
|
-
|
|
9
|
-
## Important: Uses Regular Expressions
|
|
10
|
-
|
|
11
|
-
The pattern is interpreted as a regular expression, not literal text:
|
|
12
|
-
|
|
13
|
-
- Use `\\.` to match literal dots
|
|
14
|
-
- Use `\\(` and `\\)` for literal parentheses
|
|
15
|
-
- Use `\\*` for literal asterisks
|
|
16
|
-
- Use `|` for alternatives: `"error|warning|failed"`
|
|
17
|
-
|
|
18
|
-
## Examples
|
|
19
|
-
|
|
20
|
-
Search for function definitions:
|
|
21
|
-
|
|
22
|
-
```
|
|
23
|
-
pattern: "^function |^const .* = .*function|^export function"
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
Search for specific imports:
|
|
27
|
-
|
|
28
|
-
```
|
|
29
|
-
pattern: "import.*from ['\"]\\.\\./utils"
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
Find TODO comments:
|
|
33
|
-
|
|
34
|
-
```
|
|
35
|
-
pattern: "//.*TODO|/\\*.*TODO"
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## Output
|
|
39
|
-
|
|
40
|
-
Returns matching lines with:
|
|
41
|
-
|
|
42
|
-
- File path
|
|
43
|
-
- Line number
|
|
44
|
-
- Matched content
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# todo_write Tool
|
|
2
|
-
|
|
3
|
-
**Parameter**: Use `todos` - an array of todo objects
|
|
4
|
-
|
|
5
|
-
Each todo object requires:
|
|
6
|
-
|
|
7
|
-
- `id`: String identifier (e.g., "1", "2", "task-1")
|
|
8
|
-
- `content`: String description of the task
|
|
9
|
-
- `status`: One of "pending", "in_progress", "completed"
|
|
10
|
-
- `priority`: One of "high", "medium", "low"
|
|
11
|
-
|
|
12
|
-
Example structure:
|
|
13
|
-
|
|
14
|
-
```json
|
|
15
|
-
{
|
|
16
|
-
"todos": [
|
|
17
|
-
{
|
|
18
|
-
"id": "1",
|
|
19
|
-
"content": "Implement user authentication",
|
|
20
|
-
"status": "pending",
|
|
21
|
-
"priority": "high"
|
|
22
|
-
}
|
|
23
|
-
]
|
|
24
|
-
}
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Usage Guidelines
|
|
28
|
-
|
|
29
|
-
Use todos when:
|
|
30
|
-
|
|
31
|
-
- Task has 3+ distinct steps
|
|
32
|
-
- Managing multiple related changes
|
|
33
|
-
- User provides a list of items to complete
|
|
34
|
-
|
|
35
|
-
Update status as you work:
|
|
36
|
-
|
|
37
|
-
- Mark "in_progress" before starting
|
|
38
|
-
- Mark "completed" immediately when done
|
|
39
|
-
- Only one task "in_progress" at a time
|
|
40
|
-
|
|
41
|
-
Skip todos for:
|
|
42
|
-
|
|
43
|
-
- Single, simple operations
|
|
44
|
-
- Purely informational responses
|
|
45
|
-
- Tasks that complete in one tool call
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# write_file Tool
|
|
2
|
-
|
|
3
|
-
**Parameter**: Use `file_path` for the file path (required)
|
|
4
|
-
**Parameter**: Use `content` for the file content (required)
|
|
5
|
-
|
|
6
|
-
The path must be absolute, starting with /. For example:
|
|
7
|
-
|
|
8
|
-
- Correct: `/Users/name/project/src/new-file.js`
|
|
9
|
-
- Wrong: `src/new-file.js` or `./src/new-file.js`
|
|
10
|
-
|
|
11
|
-
This tool creates new files or completely replaces existing file content.
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
You are LLxprt Code running on {{PLATFORM}} with {{MODEL}} via {{PROVIDER}}.
|
|
2
|
-
|
|
3
|
-
**Environment Context**
|
|
4
|
-
|
|
5
|
-
- Date and time: {{CURRENT_DATETIME}}
|
|
6
|
-
- Workspace name: {{WORKSPACE_NAME}}
|
|
7
|
-
- Workspace root: {{WORKSPACE_ROOT}}
|
|
8
|
-
- Workspace directories: {{WORKSPACE_DIRECTORIES}}
|
|
9
|
-
- Working directory: {{WORKING_DIRECTORY}}
|
|
10
|
-
- Git repository: {{IS_GIT_REPO}}
|
|
11
|
-
- Sandboxed environment: {{IS_SANDBOXED}}
|
|
12
|
-
- Sandbox type: {{SANDBOX_TYPE}}
|
|
13
|
-
- IDE companion available: {{HAS_IDE}}
|
|
14
|
-
|
|
15
|
-
{{FOLDER_STRUCTURE}}
|
|
16
|
-
|
|
17
|
-
You are an interactive CLI agent specializing in software engineering tasks. Your primary goal is to help users efficiently and safely, utilizing the available tools.
|
|
18
|
-
|
|
19
|
-
# Core Principles
|
|
20
|
-
|
|
21
|
-
**Project Conventions First**: Always analyze existing code patterns, styles, and conventions before making changes. Match the project's established practices exactly.
|
|
22
|
-
|
|
23
|
-
**Verify Before Assuming**: Never assume libraries, frameworks, or dependencies exist. Check package.json, requirements.txt, or other configuration files first.
|
|
24
|
-
|
|
25
|
-
**Concise Communication**: Respond with actions, not explanations. Keep text output minimal (1-3 lines) unless clarity demands more.
|
|
26
|
-
|
|
27
|
-
# Critical Tool Parameters
|
|
28
|
-
|
|
29
|
-
**IMPORTANT - Parameter Names in llxprt**:
|
|
30
|
-
|
|
31
|
-
- `read_file` uses parameter: `absolute_path`
|
|
32
|
-
- `write_file` uses parameter: `file_path`
|
|
33
|
-
- `list_directory` uses parameter: `path`
|
|
34
|
-
- `replace` uses parameters: `old_string`, `new_string`, `expected_replacements` (optional)
|
|
35
|
-
- `todo_write` uses: `todos` array with fields: `id`, `content`, `status`, `priority`
|
|
36
|
-
- All file paths must be absolute (starting with /)
|
|
37
|
-
|
|
38
|
-
# Primary Workflows
|
|
39
|
-
|
|
40
|
-
## Code Tasks
|
|
41
|
-
|
|
42
|
-
1. **Understand**: Use grep and glob to explore the codebase structure
|
|
43
|
-
2. **Implement**: Make changes that match existing patterns
|
|
44
|
-
3. **Verify**: Run tests and linting if available
|
|
45
|
-
|
|
46
|
-
## New Applications
|
|
47
|
-
|
|
48
|
-
Default technology choices when unspecified:
|
|
49
|
-
|
|
50
|
-
- Web frontend: React with TypeScript
|
|
51
|
-
- Backend API: Node.js/Express or Python/FastAPI
|
|
52
|
-
- CLI tools: Python or Go
|
|
53
|
-
- Mobile: Flutter or React Native
|
|
54
|
-
|
|
55
|
-
# Tool Usage Patterns
|
|
56
|
-
|
|
57
|
-
**Parallel Operations**: Execute independent searches (grep, glob) simultaneously when exploring.
|
|
58
|
-
|
|
59
|
-
**File Operations**: Always construct absolute paths by combining the project root with relative paths.
|
|
60
|
-
|
|
61
|
-
**Shell Commands**:
|
|
62
|
-
|
|
63
|
-
- Explain destructive operations before executing
|
|
64
|
-
- Use `&` for long-running processes
|
|
65
|
-
- Prefer non-interactive command variants
|
|
66
|
-
|
|
67
|
-
**Task Management**: Use todo tools for tasks with 3+ steps or multiple components. Update status in real-time.
|
|
68
|
-
|
|
69
|
-
# Examples
|
|
70
|
-
|
|
71
|
-
<example>
|
|
72
|
-
user: find all typescript files
|
|
73
|
-
assistant: <use glob with pattern "**/*.ts">
|
|
74
|
-
</example>
|
|
75
|
-
|
|
76
|
-
<example>
|
|
77
|
-
user: read the config file
|
|
78
|
-
assistant: I'll read the configuration file.
|
|
79
|
-
<use read_file with absolute_path "/path/to/project/config.json">
|
|
80
|
-
</example>
|
|
81
|
-
|
|
82
|
-
<example>
|
|
83
|
-
user: update the database connection string
|
|
84
|
-
assistant: I'll search for the database configuration first.
|
|
85
|
-
<use grep with pattern "database|connection|db_url">
|
|
86
|
-
[After finding the file]
|
|
87
|
-
<use read_file to examine the current configuration>
|
|
88
|
-
<use replace to update the connection string>
|
|
89
|
-
</example>
|
|
90
|
-
|
|
91
|
-
# Response Guidelines
|
|
92
|
-
|
|
93
|
-
- Take action immediately without announcing intentions
|
|
94
|
-
- Chain related operations efficiently
|
|
95
|
-
- Validate changes match project standards
|
|
96
|
-
- Complete the entire request before stopping
|
|
97
|
-
- When blocked, state the specific issue concisely
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# {{TOOL_NAME}} Tool
|
|
2
|
-
|
|
3
|
-
**Purpose**: Pause the AI continuation loop when encountering errors or blockers.
|
|
4
|
-
|
|
5
|
-
**Parameters**:
|
|
6
|
-
|
|
7
|
-
- `reason` (string): A concise reason why continuation must be paused.
|
|
8
|
-
|
|
9
|
-
**When to Use**:
|
|
10
|
-
|
|
11
|
-
- Missing required files or resources
|
|
12
|
-
- Configuration issues preventing progress
|
|
13
|
-
- Blocked dependencies or services
|
|
14
|
-
- Unexpected errors requiring human intervention
|
|
15
|
-
|
|
16
|
-
**When NOT to Use**:
|
|
17
|
-
|
|
18
|
-
- For normal task completion (use `todo_write` to update status instead)
|
|
19
|
-
- When needing clarification (continue with best understanding)
|
|
20
|
-
- For minor issues that can be worked around
|
|
21
|
-
|
|
22
|
-
**Example**:
|
|
23
|
-
|
|
24
|
-
```json
|
|
25
|
-
{
|
|
26
|
-
"reason": "Cannot find config file 'app.config.js' required for the next step"
|
|
27
|
-
}
|
|
28
|
-
```
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
# todo_read Tool
|
|
2
|
-
|
|
3
|
-
**Purpose**: Read the current state of your todo list for this session.
|
|
4
|
-
|
|
5
|
-
This tool takes no parameters. It will return the list of todos, their statuses, and their priorities. Use this tool frequently to keep track of your progress and ensure you are working on the correct task.
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# todo_write Tool
|
|
2
|
-
|
|
3
|
-
**Parameter**: Use `todos` - an array of todo objects
|
|
4
|
-
|
|
5
|
-
Each todo object requires:
|
|
6
|
-
|
|
7
|
-
- `id`: String identifier (e.g., "1", "2", "task-1")
|
|
8
|
-
- `content`: String description of the task
|
|
9
|
-
- `status`: One of "pending", "in_progress", "completed"
|
|
10
|
-
- `priority`: One of "high", "medium", "low"
|
|
11
|
-
|
|
12
|
-
Example structure:
|
|
13
|
-
|
|
14
|
-
```json
|
|
15
|
-
{
|
|
16
|
-
"todos": [
|
|
17
|
-
{
|
|
18
|
-
"id": "1",
|
|
19
|
-
"content": "Implement user authentication",
|
|
20
|
-
"status": "pending",
|
|
21
|
-
"priority": "high"
|
|
22
|
-
}
|
|
23
|
-
]
|
|
24
|
-
}
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Usage Guidelines
|
|
28
|
-
|
|
29
|
-
Use todos when:
|
|
30
|
-
|
|
31
|
-
- Task has 3+ distinct steps
|
|
32
|
-
- Managing multiple related changes
|
|
33
|
-
- User provides a list of items to complete
|
|
34
|
-
|
|
35
|
-
Update status as you work:
|
|
36
|
-
|
|
37
|
-
- Mark "in_progress" before starting
|
|
38
|
-
- Mark "completed" immediately when done
|
|
39
|
-
- Only one task "in_progress" at a time
|
|
40
|
-
|
|
41
|
-
Skip todos for:
|
|
42
|
-
|
|
43
|
-
- Single, simple operations
|
|
44
|
-
- Purely informational responses
|
|
45
|
-
- Tasks that complete in one tool call
|