@taj-special/dravix-code 1.3.7 → 1.3.9
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/cli/commands.js +1 -0
- package/dist/cli/repl.js +7 -0
- package/package.json +1 -1
package/dist/cli/commands.js
CHANGED
|
@@ -37,6 +37,7 @@ export async function handleCommand(cmd, cwd, clearHistory, addFileToContext, ge
|
|
|
37
37
|
}
|
|
38
38
|
if (name === '/clear' || name === '/new') {
|
|
39
39
|
clearHistory();
|
|
40
|
+
process.stdout.write(`\x1b]0;Dravix Code — AI-powered coding assistant\x07`);
|
|
40
41
|
console.clear();
|
|
41
42
|
banner();
|
|
42
43
|
const { name: userName } = getSavedUser();
|
package/dist/cli/repl.js
CHANGED
|
@@ -2145,6 +2145,11 @@ async function showDesignModeLoader(skills) {
|
|
|
2145
2145
|
}
|
|
2146
2146
|
export async function startRepl(cwd) {
|
|
2147
2147
|
const alwaysAllowed = new Set();
|
|
2148
|
+
// ── Terminal title helper ─────────────────────────────────────
|
|
2149
|
+
function setTerminalTitle(title) {
|
|
2150
|
+
process.stdout.write(`\x1b]0;Dravix Code — ${title}\x07`);
|
|
2151
|
+
}
|
|
2152
|
+
setTerminalTitle('AI-powered coding assistant');
|
|
2148
2153
|
const token = getToken() ?? '';
|
|
2149
2154
|
let SYSTEM_PROMPT = `You are Dravix Code, an interactive CLI coding agent powered by DeepSeek that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.
|
|
2150
2155
|
|
|
@@ -2427,6 +2432,7 @@ The summary should feel like a natural conversation close — informative, brief
|
|
|
2427
2432
|
});
|
|
2428
2433
|
sessionId = convId;
|
|
2429
2434
|
conversationTitle = conv.title;
|
|
2435
|
+
setTerminalTitle(conv.title);
|
|
2430
2436
|
printConversationHistory(conv.messages);
|
|
2431
2437
|
}
|
|
2432
2438
|
}
|
|
@@ -2932,6 +2938,7 @@ The summary should feel like a natural conversation close — informative, brief
|
|
|
2932
2938
|
if (_u && _a) {
|
|
2933
2939
|
generateAITitle(String(_u.content), String(_a.content), token).then(t => {
|
|
2934
2940
|
conversationTitle = t;
|
|
2941
|
+
setTerminalTitle(t);
|
|
2935
2942
|
saveConversation(sessionId, t, activeCwd, history.slice(1));
|
|
2936
2943
|
}).catch(() => { });
|
|
2937
2944
|
}
|