dave-code 1.0.3 β 1.1.0
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 +16 -1
- package/bin/aiClient.js +658 -164
- package/bin/cliMenu.js +127 -185
- package/bin/commandRouter.js +50 -0
- package/bin/configManager.js +98 -19
- package/bin/contextManager.js +151 -0
- package/bin/index.js +827 -450
- package/bin/install.js +3 -5
- package/bin/planManager.js +239 -0
- package/bin/runtimeEvents.js +62 -0
- package/bin/sessionManager.js +166 -0
- package/bin/terminalRenderer.js +283 -0
- package/bin/toolRuntime.js +1052 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -5,10 +5,17 @@ A terminal-based AI coding assistant CLI similar to Claude Code. Dave Code integ
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
7
|
- β‘ **Interactive CLI REPL**: Ask questions and run commands in your workspace with animated terminal visual elements.
|
|
8
|
+
- π§ **Structured Activity Timeline**: Model requests, tool calls, permissions, retries, and context compaction use one stable event-driven terminal renderer.
|
|
9
|
+
- π **Explicit Coding Turns**: Normal chat is read-only. Workspace changes are available only through a non-empty `/code ...` request and every mutation is still confirmed.
|
|
10
|
+
- π **Persistent Named Plans**: `/plan name: request` creates a detailed what-and-how implementation plan. Multiple plans are stored per workspace and shown in the status panel.
|
|
11
|
+
- βοΈ **Stream-Aware Answers**: Anthropic, OpenAI-compatible, and Gemini endpoints use streaming transport with automatic fallback; text is committed after tool/final classification so tool prefaces cannot overlap the UI.
|
|
12
|
+
- π οΈ **Complete Workspace Tools**: Read, search, focused exact edits, file creation, directory creation, move, delete, and workspace command execution, including recovery of DeepSeek DSML tool calls.
|
|
13
|
+
- π **Confirmed Mutations**: Edits, writes, moves, deletes, and commands show a preview and require approval before changing the workspace.
|
|
14
|
+
- πΎ **Workspace-Aware Sessions**: New sessions remember their workspace and active file. Older sessions without workspace metadata require one `/open <project-directory>` before file tools can continue.
|
|
8
15
|
- βοΈ **Effort Presets**: Adjust AI's effort level from `/effort` (choose between `low`, `medium`, `high`, `xhigh`, `max`, and `ultracode`) to control token consumption and task complexity.
|
|
9
16
|
- π **Smart Incremental Reading (精读樑εΌ)**: For non-ultra modes, the assistant silently and delicately reads large files in precise range chunks (e.g. lines 40-100) instead of loading the entire file, saving context tokens and prevent terminal warning clutter.
|
|
10
17
|
- π **Ultracode Digestion Workflow**: In `ultracode` mode, read and digest large files (>1000 lines) concurrently in chunks with live, animated progress indicators.
|
|
11
|
-
- π§ **
|
|
18
|
+
- π§ **Reasoning Privacy**: Removes `<think>` and reasoning blocks from the terminal and future conversation context.
|
|
12
19
|
- π **Token Usage Statistics**: Real-time prompt, completion, and total token usage tracked and printed after each request. Run `/stats` or `/tokens` to see session totals.
|
|
13
20
|
- π **Proxy & Key Configuration**: Interactively configure API keys, models, base URLs, and proxies via `/config`, `/model`, or `/api`.
|
|
14
21
|
|
|
@@ -35,11 +42,17 @@ npm install -g dave-code
|
|
|
35
42
|
|
|
36
43
|
3. Type `/help` to see list of available commands.
|
|
37
44
|
|
|
45
|
+
Streaming is enabled by default. Set `DAVE_CODE_STREAM=0` to force compatibility mode for endpoints that do not support SSE. Set `DAVE_CODE_DEBUG=1` to enable local request diagnostics; API credentials are redacted.
|
|
46
|
+
|
|
47
|
+
Dave uses native structured tools for OpenAI-compatible, Anthropic, and Gemini providers. For an older endpoint that only understands text tags, set `"toolMode": "legacy"` in that profile. Optional profile fields include `provider`, `maxOutputTokens`, and `temperature`.
|
|
48
|
+
|
|
38
49
|
## Available Commands
|
|
39
50
|
|
|
40
51
|
- `/help` - Show help instructions.
|
|
41
52
|
- `/stats` / `/tokens` - Display session and last request token usage statistics.
|
|
42
53
|
- `/effort` - Interactively adjust AI thinking/reading effort level.
|
|
54
|
+
- `/plan <name>: <request>` - Create a read-only implementation plan that explains both what to change and how to change it. Run `/plan` without arguments to manage saved plans.
|
|
55
|
+
- `/code <request-or-plan-name>` - Authorize one coding turn. `/code @<plan-name>` selects a plan explicitly and `/code --prompt <text>` forces an ad-hoc request.
|
|
43
56
|
- `/model` - Switch active LLM profile.
|
|
44
57
|
- `/api` - Set or change the API key for the active profile.
|
|
45
58
|
- `/open <path>` - Open a file or folder in your workspace.
|
|
@@ -48,6 +61,8 @@ npm install -g dave-code
|
|
|
48
61
|
- `/lang` - Switch terminal interface between Chinese and English.
|
|
49
62
|
- `/exit` - Exit the assistant.
|
|
50
63
|
|
|
64
|
+
Read-only chat and planning can list, read, and search workspace files. Sensitive files such as `.env`, private keys, certificates, and credential files always require explicit confirmation before their contents are sent to a model. Commands, writes, edits, directory creation, moves, and deletes are blocked outside `/code`.
|
|
65
|
+
|
|
51
66
|
## License
|
|
52
67
|
|
|
53
68
|
ISC License.
|