daedalus-cli 1.83.1 → 1.83.3
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/CHANGELOG.md +14 -0
- package/README.md +3 -1
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +48 -1
- package/dist/commands.js.map +1 -1
- package/dist/config/index.d.ts +10 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +6 -0
- package/dist/config/index.js.map +1 -1
- package/dist/formatting.d.ts +9 -0
- package/dist/formatting.d.ts.map +1 -1
- package/dist/formatting.js +75 -45
- package/dist/formatting.js.map +1 -1
- package/dist/tools/daedalus-spinner.d.ts.map +1 -1
- package/dist/tools/daedalus-spinner.js +15 -5
- package/dist/tools/daedalus-spinner.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.83.3](https://github.com/bgill55/daedalus/compare/v1.83.2...v1.83.3) (2026-07-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **docs:** remove GitHub corner ribbon, top border-line, move sidebar toggle to top ([2b914b0](https://github.com/bgill55/daedalus/commit/2b914b02e8549fbaabb7f35fb9d28cd3e7629e80))
|
|
7
|
+
|
|
8
|
+
## [1.83.2](https://github.com/bgill55/daedalus/compare/v1.83.1...v1.83.2) (2026-07-27)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* add error handling to TUI spinner to prevent crashes ([c275334](https://github.com/bgill55/daedalus/commit/c275334f58fd09af699477206106b1edb17bfbe0))
|
|
14
|
+
|
|
1
15
|
## [1.83.1](https://github.com/bgill55/daedalus/compare/v1.83.0...v1.83.1) (2026-07-27)
|
|
2
16
|
|
|
3
17
|
|
package/README.md
CHANGED
|
@@ -183,7 +183,7 @@ AI assistance without:
|
|
|
183
183
|
| `/doctor` | Diagnose connection and discovery |
|
|
184
184
|
| `/changelog` | View the latest CLI changes |
|
|
185
185
|
| `/help` / `?` / `help` | Show available commands or detailed info for a specific command |
|
|
186
|
-
| `/exit` / `/
|
|
186
|
+
| `/exit` / `/quit` / `/bye` | Save session and exit |
|
|
187
187
|
| `/preview <filepath-or-url>` | Screenshot a local HTML file or URL and save the image |
|
|
188
188
|
|
|
189
189
|
### Additional Commands
|
|
@@ -194,6 +194,7 @@ AI assistance without:
|
|
|
194
194
|
| `/stats` / `stats` | Display session analytics, token usage, index count, and router status |
|
|
195
195
|
| `/onboard` | First-time setup — discover local models, configure, and test |
|
|
196
196
|
| `/tui` | Toggle the Terminal User Interface (TUI) dashboard |
|
|
197
|
+
| `/history` / `/h` | Show recent turns with tool calls from the session log |
|
|
197
198
|
|
|
198
199
|
<!-- END_COMMANDS_TABLE -->
|
|
199
200
|
|
|
@@ -242,6 +243,7 @@ For in-depth explanations, configuration options, and hardware optimization tips
|
|
|
242
243
|
* [Execution Sandboxing](docs/sandboxing.md) — Running commands inside isolated Docker containers or WSL distributions.
|
|
243
244
|
* [Model Context Protocol (MCP) Integration](docs/mcp.md) — Configuring stdio and HTTP/SSE servers to expand your agent's capabilities.
|
|
244
245
|
* [Configuration Reference Guide](docs/configuration-reference.md) — Reference list of all global configuration keys (`router.*`, `agents.*`, `tools.*`, `ui.*`, etc.).
|
|
246
|
+
* [API Reference](modules.html) — Auto-generated TypeScript API documentation showing all exported classes, functions, and modules.
|
|
245
247
|
|
|
246
248
|
---
|
|
247
249
|
|
package/dist/commands.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../src/commands.ts"],"names":[],"mappings":"AAIA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAKhC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM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6
|
import { executeToolCalls } from './tools/executor.js';
|
|
7
7
|
import { discoverLocalServers, saveConfig } from './config/index.js';
|
|
8
8
|
import { getSessionTodos } from './tools/builtin/todo.js';
|
|
9
|
+
import { getTurns } from './session/sqlite.js';
|
|
9
10
|
import { saveProfile } from './profile.js';
|
|
10
11
|
import { extractAndSave } from './extraction.js';
|
|
11
12
|
import { printUserTurn, turnSeparator } from './formatting.js';
|
|
@@ -2542,9 +2543,55 @@ Once you have finished making changes, I will automatically re-run the command t
|
|
|
2542
2543
|
}
|
|
2543
2544
|
}
|
|
2544
2545
|
},
|
|
2546
|
+
{
|
|
2547
|
+
name: '/history',
|
|
2548
|
+
aliases: ['/h'],
|
|
2549
|
+
description: 'Show recent turns with tool calls from the session log',
|
|
2550
|
+
usage: '/history [n]',
|
|
2551
|
+
helpText: 'Display the last N assistant/user turns from the SQLite session log, including tool calls and response previews. Default: 5.',
|
|
2552
|
+
execute: async (args, ctx) => {
|
|
2553
|
+
const n = parseInt((args || '5').trim(), 10);
|
|
2554
|
+
if (isNaN(n) || n < 1) {
|
|
2555
|
+
console.log(pc.red('[ERROR] Provide a positive number'));
|
|
2556
|
+
return;
|
|
2557
|
+
}
|
|
2558
|
+
const turns = getTurns(ctx.sessionManager.db);
|
|
2559
|
+
const recent = turns.slice(-n);
|
|
2560
|
+
for (const t of recent) {
|
|
2561
|
+
const roleColor = t.role === 'assistant' ? pc.cyan : t.role === 'tool' ? pc.yellow : pc.white;
|
|
2562
|
+
const roleLabel = t.role === 'assistant' ? 'Assistant' : t.role === 'tool' ? 'Tool' : 'User';
|
|
2563
|
+
const meta = [];
|
|
2564
|
+
if (t.model)
|
|
2565
|
+
meta.push(pc.dim(t.model));
|
|
2566
|
+
if (t.tokens_output)
|
|
2567
|
+
meta.push(pc.dim(`~${Math.round(t.tokens_output / 4)} tok out`));
|
|
2568
|
+
if (t.latency_ms) {
|
|
2569
|
+
const el = t.latency_ms >= 1000 ? `${(t.latency_ms / 1000).toFixed(1)}s` : `${t.latency_ms}ms`;
|
|
2570
|
+
meta.push(pc.dim(el));
|
|
2571
|
+
}
|
|
2572
|
+
const metaStr = meta.length ? ` ${meta.join(' · ')}` : '';
|
|
2573
|
+
console.log(`\n ${roleColor(pc.bold(`#${t.id ?? '?'} ${roleLabel}`))}${metaStr}`);
|
|
2574
|
+
if (t.tool_calls) {
|
|
2575
|
+
try {
|
|
2576
|
+
const parsed = JSON.parse(t.tool_calls);
|
|
2577
|
+
const names = parsed.map(c => c.function?.name ?? '?');
|
|
2578
|
+
console.log(` ${pc.dim('Tools:')} ${names.join(', ')}`);
|
|
2579
|
+
}
|
|
2580
|
+
catch { /* not JSON, skip */ }
|
|
2581
|
+
}
|
|
2582
|
+
if (t.content) {
|
|
2583
|
+
const preview = t.content.replace(/```[\s\S]*?```/g, '[code block]').split('\n').slice(0, 3).join('\n ').slice(0, 300);
|
|
2584
|
+
if (preview)
|
|
2585
|
+
console.log(` ${preview}`);
|
|
2586
|
+
}
|
|
2587
|
+
}
|
|
2588
|
+
if (recent.length === 0)
|
|
2589
|
+
console.log(pc.gray(' No turns in session yet.'));
|
|
2590
|
+
}
|
|
2591
|
+
},
|
|
2545
2592
|
{
|
|
2546
2593
|
name: '/exit',
|
|
2547
|
-
aliases: ['/
|
|
2594
|
+
aliases: ['/quit', '/bye'],
|
|
2548
2595
|
description: 'Save session and exit',
|
|
2549
2596
|
execute: async (args, ctx) => {
|
|
2550
2597
|
const todos = getSessionTodos(ctx.toolContext.sessionId);
|