agent-dag 1.0.4 → 1.0.6
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/agent-dag.js
CHANGED
|
@@ -60,14 +60,22 @@ const sleep = ms => new Promise(r => setTimeout(r, ms));
|
|
|
60
60
|
|
|
61
61
|
// ── Animated banner ───────────────────────────────────────────────────────────
|
|
62
62
|
async function printBanner() {
|
|
63
|
-
const
|
|
63
|
+
const IW = 38; // inner visible width between ║ chars
|
|
64
|
+
const pad = (visLen) => " ".repeat(Math.max(0, IW - visLen));
|
|
65
|
+
const HR = "═".repeat(IW);
|
|
66
|
+
|
|
67
|
+
// Each entry: [rendered string with ANSI, visible char count, left-border color, right-border color]
|
|
68
|
+
const rows = [
|
|
69
|
+
{ l: ` ${C.bCyan}${C.bold}◉${C.reset} ${C.white}${C.bold}agent-dag${C.reset} ${C.dim}v1.0.4${C.reset}`, vis: 22, lc: C.blue, rc: C.blue },
|
|
70
|
+
{ l: ` ${C.dim}live DAG · Claude Code agents${C.reset}`, vis: 31, lc: C.magenta, rc: C.magenta },
|
|
71
|
+
{ l: ` ${C.yellow}watch agents fork ${C.cyan}→${C.reset} ${C.green}tools fire${C.reset}`, vis: 34, lc: C.bMag, rc: C.bMag },
|
|
72
|
+
];
|
|
73
|
+
|
|
64
74
|
const lines = [
|
|
65
75
|
"",
|
|
66
|
-
` ${C.cyan}${C.bold}╔${
|
|
67
|
-
` ${
|
|
68
|
-
` ${C.
|
|
69
|
-
` ${C.bMag}${C.bold}║${C.reset} ${C.yellow}watch agents fork ${C.cyan}→${C.reset} ${C.green}tools fire${C.reset} ${C.bMag}${C.bold}║${C.reset}`,
|
|
70
|
-
` ${C.cyan}${C.bold}╚${W}╝${C.reset}`,
|
|
76
|
+
` ${C.cyan}${C.bold}╔${HR}╗${C.reset}`,
|
|
77
|
+
...rows.map(r => ` ${r.lc}${C.bold}║${C.reset}${r.l}${pad(r.vis)}${r.rc}${C.bold}║${C.reset}`),
|
|
78
|
+
` ${C.cyan}${C.bold}╚${HR}╝${C.reset}`,
|
|
71
79
|
"",
|
|
72
80
|
];
|
|
73
81
|
for (const line of lines) {
|