@hncode/hncode 0.8.2 → 0.8.4
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/bin/hncode +54 -8
- package/package.json +1 -1
- package/src/agent-task.js +14 -12
- package/src/agent.js +1465 -1421
- package/src/animate.js +21 -0
- package/src/colors.js +615 -593
- package/src/config.js +36 -11
- package/src/context-bar.js +280 -277
- package/src/doctor.js +4 -3
- package/src/i18n.js +1438 -1214
- package/src/index.js +822 -730
- package/src/keybindings.js +2 -1
- package/src/markdown.js +37 -10
- package/src/mcp-server.js +409 -0
- package/src/mcp.js +279 -29
- package/src/memory-profile.js +19 -16
- package/src/plan.js +7 -5
- package/src/plugin.js +37 -21
- package/src/registry-browser.js +17 -15
- package/src/rows-tool-result.js +251 -235
- package/src/settings-schema.js +9 -0
- package/src/swarm-progress.js +1 -1
- package/src/tasks-browser.js +28 -28
- package/src/term.js +57 -21
- package/src/text.js +62 -0
- package/src/tools/agent.js +7 -2
- package/src/tools/bash.js +446 -440
- package/src/tools/edit.js +14 -1
- package/src/tui.js +542 -330
package/src/doctor.js
CHANGED
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
// "fixes" something is a diagnostic nobody can run on a machine they care about. The
|
|
24
24
|
// only outbound work is an optional reachability probe, which the caller opts into.
|
|
25
25
|
|
|
26
|
+
import { uiText } from './i18n.js';
|
|
26
27
|
import fs from 'node:fs';
|
|
27
28
|
import os from 'node:os';
|
|
28
29
|
import path from 'node:path';
|
|
@@ -58,7 +59,7 @@ function checkConfig(cfg, files) {
|
|
|
58
59
|
'Run /model to choose one, or /provider add <name> <base-url>.'));
|
|
59
60
|
}
|
|
60
61
|
if (!cfg.model) {
|
|
61
|
-
out.push(check('model', 'error', 'no model selected', 'Run /model.'));
|
|
62
|
+
out.push(check('model', 'error', 'no model selected', uiText('Run /model.')));
|
|
62
63
|
}
|
|
63
64
|
if (!cfg.apiKey) {
|
|
64
65
|
// A local endpoint (ollama, llama.cpp, lmstudio) legitimately has no key.
|
|
@@ -196,7 +197,7 @@ function checkMcp(servers, connections) {
|
|
|
196
197
|
for (const n of names) {
|
|
197
198
|
const conn = byName.get(n);
|
|
198
199
|
if (!conn) out.push(check(`MCP ${n}`, 'warn', 'configured but not started', 'Restart, or check the server command.'));
|
|
199
|
-
else if (!conn.ok) out.push(check(`MCP ${n}`, 'error', `failed: ${conn.error}`, 'Fix the command/URL in /mcp-config.'));
|
|
200
|
+
else if (!conn.ok) out.push(check(`MCP ${n}`, 'error', `failed: ${conn.error}`, uiText('Fix the command/URL in /mcp-config.')));
|
|
200
201
|
else out.push(check(`MCP ${n}`, 'ok', `${conn.toolCount} tool(s)`));
|
|
201
202
|
}
|
|
202
203
|
return out;
|
|
@@ -517,7 +518,7 @@ export function formatDoctor(results, opts = {}) {
|
|
|
517
518
|
if (!n.error && !n.warn) {
|
|
518
519
|
lines.push('', 'No problems found.');
|
|
519
520
|
} else {
|
|
520
|
-
lines.push('', 'Run /doctor --all to include the passing checks.');
|
|
521
|
+
lines.push('', uiText('Run /doctor --all to include the passing checks.'));
|
|
521
522
|
}
|
|
522
523
|
return lines;
|
|
523
524
|
}
|