@dreb/coding-agent 2.16.0 → 2.17.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 +4 -3
- package/dist/core/agent-session.d.ts +3 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +11 -0
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +1 -1
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/tools/index.d.ts +5 -0
- package/dist/core/tools/index.d.ts.map +1 -1
- package/dist/core/tools/index.js +8 -0
- package/dist/core/tools/index.js.map +1 -1
- package/dist/core/tools/suggest-next.d.ts +19 -0
- package/dist/core/tools/suggest-next.d.ts.map +1 -0
- package/dist/core/tools/suggest-next.js +72 -0
- package/dist/core/tools/suggest-next.js.map +1 -0
- package/dist/core/tools/tmp-read.d.ts.map +1 -1
- package/dist/core/tools/tmp-read.js +14 -1
- package/dist/core/tools/tmp-read.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +13 -0
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/docs/extensions.md +2 -2
- package/docs/json.md +2 -1
- package/docs/rpc.md +30 -0
- package/docs/session.md +24 -0
- package/docs/tui.md +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -62,7 +62,7 @@ dreb
|
|
|
62
62
|
|
|
63
63
|
Or use a custom provider (corporate proxy, Bedrock, etc.) — see [Custom providers & models](#providers--models).
|
|
64
64
|
|
|
65
|
-
Then just talk to dreb. All 10 built-in tools are enabled by default: `read`, `write`, `edit`, `bash`, `grep`, `find`, `ls`, `web_search`, `web_fetch`, and `subagent`. Use `--tools` to restrict to a subset (e.g., `--tools read,grep,find,ls` for read-only).
|
|
65
|
+
Then just talk to dreb. All 10 built-in tools are enabled by default: `read`, `write`, `edit`, `bash`, `grep`, `find`, `ls`, `web_search`, `web_fetch`, and `subagent`. Use `--tools` to restrict to a subset (e.g., `--tools read,grep,find,ls` for read-only). Four additional tools — `search`, `skill`, `tasks_update`, and `suggest_next` — are always active. The model uses these to fulfill your requests. Add capabilities via [skills](#skills), [prompt templates](#prompt-templates), [extensions](#extensions), or [packages](#packages).
|
|
66
66
|
|
|
67
67
|
**Also available:** [`@dreb/telegram`](https://www.npmjs.com/package/@dreb/telegram) — run dreb as a Telegram bot (`npm install -g @dreb/telegram`).
|
|
68
68
|
|
|
@@ -129,7 +129,7 @@ The interface from top to bottom:
|
|
|
129
129
|
- **Startup header** - Shows shortcuts (`/hotkeys` for all), loaded AGENTS.md files, prompt templates, skills, and extensions
|
|
130
130
|
- **Messages** - Your messages, assistant responses, tool calls and results, notifications, errors, and extension UI
|
|
131
131
|
- **Editor** - Where you type; border color indicates thinking level
|
|
132
|
-
- **Footer** - Working directory, session name, total token/cache usage, cost, context usage, current model
|
|
132
|
+
- **Footer** - Working directory, session name, total token/cache usage, cost, context usage, current model, and rolling tokens-per-second (median TPS with long-term delta)
|
|
133
133
|
|
|
134
134
|
The editor can be temporarily replaced by other UI, like built-in `/settings` or custom UI from extensions (e.g., a Q&A tool that lets the user answer model questions in a structured format). [Extensions](#extensions) can also replace the editor, add widgets above/below it, a status line, custom footer, or overlays.
|
|
135
135
|
|
|
@@ -585,10 +585,11 @@ cat README.md | dreb -p "Summarize this text"
|
|
|
585
585
|
|
|
586
586
|
Available built-in tools: `read`, `bash`, `edit`, `write`, `grep`, `find`, `ls`, `web_search`, `web_fetch`, `subagent`
|
|
587
587
|
|
|
588
|
-
|
|
588
|
+
Four additional tools are always active but don't appear in `--tools`:
|
|
589
589
|
- `search` — [semantic codebase search](#semantic-search) using natural language queries
|
|
590
590
|
- `skill` — invokes [skills](#skills) programmatically
|
|
591
591
|
- `tasks_update` — session [task tracking](#task-tracking) with TUI panel
|
|
592
|
+
- `suggest_next` — suggests a next command shown as ghost text (Tab to accept)
|
|
592
593
|
|
|
593
594
|
### Resource Options
|
|
594
595
|
|
|
@@ -72,6 +72,9 @@ export type AgentSessionEvent = AgentEvent | {
|
|
|
72
72
|
} | {
|
|
73
73
|
type: "tasks_update";
|
|
74
74
|
tasks: readonly SessionTask[];
|
|
75
|
+
} | {
|
|
76
|
+
type: "suggest_next";
|
|
77
|
+
command: string;
|
|
75
78
|
};
|
|
76
79
|
/** Listener function for agent session events */
|
|
77
80
|
export type AgentSessionEventListener = (event: AgentSessionEvent) => void;
|