@thothdev/pink 1.0.34 → 1.0.35
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 +4 -0
- package/extensions/pink-ui.ts +6 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
O Pink é um fork do Pi (MIT, veja `LICENSE-PI.txt` e `NOTICE.md`). Aqui só entra o que mudou no Pink; a base de cada
|
|
4
4
|
versão está no campo `upstream` do `rebrand.json` do repositório.
|
|
5
5
|
|
|
6
|
+
## [1.0.35] - 2026-11-29
|
|
7
|
+
|
|
8
|
+
- As etapas ficam alinhadas com as linhas de ferramenta logo abaixo (um espaço a menos à esquerda).
|
|
9
|
+
|
|
6
10
|
## [1.0.34] - 2026-11-29
|
|
7
11
|
|
|
8
12
|
- Enquanto trabalha, só a etapa atual anima e traz o tempo e os tokens; a linha "Trabalhando" de baixo saiu (modelo logado e `/agente`).
|
package/extensions/pink-ui.ts
CHANGED
|
@@ -464,18 +464,19 @@ export const DONE_GREEN_MS = 2000;
|
|
|
464
464
|
export function stageLines(theme, trail, { now = Date.now(), still: stopped = still(), width = 80, done = undefined, status = "" } = {}) {
|
|
465
465
|
setAppearance(theme);
|
|
466
466
|
const ready = done ? `${t("Pronto", "Listo", "Done")}${done.summary ? ` · ${done.summary}` : ""}` : "";
|
|
467
|
-
|
|
467
|
+
// 1 espaço de recuo, como as linhas de ferramenta (→, + Pensou) logo abaixo (owner 2026-11-29)
|
|
468
|
+
if (done && now - done.at >= DONE_GREEN_MS) return [fit(` ${theme.fg("muted", `✓ ${ready}`)}`, width)];
|
|
468
469
|
const lit = done ? (stopped ? trail.length : Math.floor((now - done.at) / Math.min(40, 300 / Math.max(1, trail.length)))) : trail.length - 1;
|
|
469
470
|
const mark = (stage) => (stage.failed ? rgb(248, 113, 113)("✗") : GREEN("✓"));
|
|
470
471
|
const lines = trail.map((stage, index) => {
|
|
471
472
|
const spec = STAGES[stage.key] ?? STAGES.investigate;
|
|
472
|
-
if (done) return fit(`
|
|
473
|
-
if (index < lit) return fit(`
|
|
473
|
+
if (done) return fit(` ${index < lit ? mark(stage) : theme.fg("dim", "·")} ${theme.fg("muted", spec.label)}`, width);
|
|
474
|
+
if (index < lit) return fit(` ${mark(stage)} ${theme.fg("muted", spec.label)}`, width);
|
|
474
475
|
const icon = spec.frames[stopped ? 0 : Math.floor(now / FRAME_MS) % spec.frames.length];
|
|
475
476
|
const label = stopped ? spec.color(`${spec.label}...`) : `${shimmer(spec.label, spec.color.rgb, now)}${spec.color("...")}`;
|
|
476
|
-
return fit(`
|
|
477
|
+
return fit(` ${spec.color(icon)} ${label}${status ? theme.fg("dim", ` (${status})`) : ""}`, width);
|
|
477
478
|
});
|
|
478
|
-
return done ? [...lines, fit(`
|
|
479
|
+
return done ? [...lines, fit(` ${GREEN(`✓ ${ready}`)}`, width)] : lines;
|
|
479
480
|
}
|
|
480
481
|
const BELOW_BOX = "pink-subagentes-embaixo";
|
|
481
482
|
export const THREE_COLUMNS = 150; // >= 150: sessões, conversa e contexto
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thothdev/pink",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.35",
|
|
4
4
|
"description": "Open-source AI coding agent for the terminal that also drives Claude Code, Codex, OpenCode and other agents, with parallel sessions, visible plan and changes, and real undo.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"piConfig": {
|