junecoder 1.0.1 → 1.0.2
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/agent.mjs +1 -1
- package/package.json +1 -1
- package/tui.mjs +3 -3
package/agent.mjs
CHANGED
|
@@ -239,7 +239,7 @@ export function loadProjectInstructions(cwd) {
|
|
|
239
239
|
|
|
240
240
|
// ─── System Prompt ────────────────────────────────────────────────────────────
|
|
241
241
|
|
|
242
|
-
export const DEFAULT_SYSTEM_PROMPT = `You are
|
|
242
|
+
export const DEFAULT_SYSTEM_PROMPT = `You are JuneCoder, a coding agent. You are a terse, precise engineer who cuts straight to the point—no fluff, no showing off, no filler. You write the most minimal, elegant code that solves the problem, and you say things in as few words as the truth allows.
|
|
243
243
|
|
|
244
244
|
Rules:
|
|
245
245
|
- Prefer tool calls over guessing. Read files before modifying them.
|
package/package.json
CHANGED
package/tui.mjs
CHANGED
|
@@ -152,7 +152,7 @@ export async function startTUI(agent, opts = {}) {
|
|
|
152
152
|
};
|
|
153
153
|
let assistantLabeled = false;
|
|
154
154
|
const ensureAssistantLabel = () => {
|
|
155
|
-
if (!assistantLabeled) { assistantLabeled = true; pushLabel("\u276f
|
|
155
|
+
if (!assistantLabeled) { assistantLabeled = true; pushLabel("\u276f JuneCoder:", ansi.bold + C.assistant); }
|
|
156
156
|
};
|
|
157
157
|
|
|
158
158
|
let lastFrame = "", renderTimer = null;
|
|
@@ -204,7 +204,7 @@ export async function startTUI(agent, opts = {}) {
|
|
|
204
204
|
state.scroll = Math.min(state.scroll, maxScroll);
|
|
205
205
|
const end = convLines.length - state.scroll;
|
|
206
206
|
const visible = convLines.slice(Math.max(0, end - convH), end);
|
|
207
|
-
const out = [`${ansi.home}${ansi.bold}${C.tool}
|
|
207
|
+
const out = [`${ansi.home}${ansi.bold}${C.tool}JuneCoder${ansi.reset}${ansi.dim} \u2502 ${sliceByWidth(agent.provider.model || "?", 30)} \u2502 ${sliceByWidth(basename(agent.cwd), Math.max(10, cols - 50))}${ansi.reset}${ansi.clearLine}`];
|
|
208
208
|
|
|
209
209
|
const pad = convH - visible.length;
|
|
210
210
|
for (let i = 0; i < pad; i++) out.push(ansi.clearLine);
|
|
@@ -429,7 +429,7 @@ export async function startTUI(agent, opts = {}) {
|
|
|
429
429
|
state.status = "Session restored";
|
|
430
430
|
} else {
|
|
431
431
|
pushLine("", C.dim);
|
|
432
|
-
pushLine("
|
|
432
|
+
pushLine("JuneCoder TUI \u2014 " + (agent.provider.model || ""), ansi.bold + C.tool);
|
|
433
433
|
pushLine("Type /help for commands, Ctrl+C to quit.", C.dim);
|
|
434
434
|
pushLine("", C.dim);
|
|
435
435
|
}
|