acuvo-code 0.3.2 → 0.3.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/ENTERPRISE.md CHANGED
@@ -188,8 +188,8 @@ copy, but it *is* a place a process starts, and this is a list of those. Six and
188
188
  are the numbers to quote. Counting is the first thing a reviewer does.
189
189
 
190
190
  ⚠️ **This said "18 shipped files", then "41", then "90", then "101", then "108", and every
191
- one went stale in turn.** The package ships **118 files — 116 in `lib/`, 2 in
192
- `bin/` — about 77,339 lines**, with **233 test files** beside them (counted 2026-08-22).
191
+ one went stale in turn.** The package ships **119 files — 117 in `lib/`, 2 in
192
+ `bin/` — about 77552 lines**, with **234 test files** beside them (counted 2026-08-22).
193
193
 
194
194
  ⭐ **AND THE 108 WENT STALE IN THE MOST INSTRUCTIVE WAY POSSIBLE: THREE OF THE FILES IT
195
195
  MISSED WERE REACHABLE FROM NOTHING.** `wiring-reach.test.mjs` was naming
package/bin/acuvo.mjs CHANGED
@@ -1482,17 +1482,21 @@ ${formatBoard(listed)}
1482
1482
  }
1483
1483
  })();
1484
1484
 
1485
- const row = (k, v) => ` ${k.padEnd(11)}${v}`;
1486
- const banner = [
1487
- '',
1488
- ` ▌ACUVO CODE${pkgVersion ? ` ${pkgVersion}` : ''}`,
1489
- '',
1490
- row('workspace', shortenRoot(executor.root)),
1491
- row('model', config.model),
1492
- row('billing', billing),
1493
- row('can run', mode),
1494
- '',
1495
- ].join('\n');
1485
+ /**
1486
+ * ⚠️ `interactive: false` EVEN IN THE REPL, because `runChat` prints its own
1487
+ * "Type what you want done" line. Setting it here as well produced the
1488
+ * instruction twice, three lines apart — the banner owns the identity, the
1489
+ * chat loop owns the invitation, and neither should own both.
1490
+ */
1491
+ const { openingScreen } = await import('../lib/banner.mjs');
1492
+ const banner = openingScreen({
1493
+ version: pkgVersion,
1494
+ workspace: shortenRoot(executor.root),
1495
+ model: config.model,
1496
+ billing,
1497
+ canRun: mode,
1498
+ interactive: false,
1499
+ });
1496
1500
  if (opts.json) process.stderr.write(banner);
1497
1501
  else process.stdout.write(banner);
1498
1502
 
package/lib/banner.mjs ADDED
@@ -0,0 +1,125 @@
1
+ /**
2
+ * ── ⭐⭐⭐ WHAT YOU SEE WHEN YOU TYPE `acuvo` ────────────────────────────────
3
+ *
4
+ * Roman, 2026-08-22, having typed it: *"it's not opening as a typable terminal,
5
+ * with acuvo logo top left and details up top etc, like how claude code opens.
6
+ * have you actually designed the page?"* — and then: *"no we want OUR logo"*.
7
+ *
8
+ * So this is the real mark, not letters spelling the name. It is
9
+ * `console/public/brand/acuvo-mark.png` — the angular A — resampled to
10
+ * half-blocks at 14x14 and embedded as text.
11
+ *
12
+ * ── ⚠️ WHY IT IS EMBEDDED RATHER THAN DECODED AT RUNTIME ────────────────────
13
+ *
14
+ * This package has ZERO dependencies, deliberately, and Node cannot decode a
15
+ * PNG without one. Converting at build time and pasting the result keeps that
16
+ * promise and costs nothing at startup. If the mark ever changes, re-run the
17
+ * conversion — the logo is DERIVED from the brand asset, not drawn by hand, so
18
+ * it stays honest to it.
19
+ *
20
+ * ── ⚠️ THE CONSTRAINTS, WHICH ARE NOT PREFERENCES ───────────────────────────
21
+ *
22
+ * · **Half-block glyphs only** (▀ ▄ █). Braille and box-drawing render as tofu
23
+ * in cmd.exe and in many CI log viewers, and a logo that renders as question
24
+ * marks is worse than no logo — on the exact platform this is developed on.
25
+ * · **No colour escapes here.** The caller owns colour and honours NO_COLOR; a
26
+ * module that hard-codes them emits garbage the moment output is piped.
27
+ * · **Every line under 80 columns.** The narrowest terminal in real use is 80,
28
+ * and a wrapped banner does not read as dense, it reads as broken.
29
+ *
30
+ * ⭐ A NOTE ON DOING BETTER: `lib/terminal-graphics.mjs` can send a real PNG
31
+ * inline on Kitty and iTerm2. It is deliberately NOT used here — Windows
32
+ * Terminal speaks neither protocol, so the block art is what most users would
33
+ * see anyway, and one rendering that is the same everywhere beats two that
34
+ * disagree.
35
+ */
36
+
37
+ /**
38
+ * The Acuvo mark, resampled from the brand PNG. Seven rows: tall enough to be
39
+ * the mark rather than a smudge, short enough for something run forty times a
40
+ * day rather than opened once.
41
+ */
42
+ const MARK = [
43
+ ' ▄█',
44
+ ' ▄███',
45
+ ' ▄█▀▀██',
46
+ ' ▄█▀ ▀██',
47
+ ' ▄█▀ ██ ▀██',
48
+ ' ▄████▀▀█████',
49
+ '█▀ █▀ ▀█',
50
+ ];
51
+
52
+ const MARK_WIDTH = Math.max(...MARK.map((l) => l.length));
53
+ const GUTTER = 2;
54
+ export const MAX_BANNER_COLUMNS = 80;
55
+
56
+ /** Columns left for the detail rows once the mark and gutter are placed. */
57
+ const TEXT_COLUMNS = MAX_BANNER_COLUMNS - MARK_WIDTH - GUTTER;
58
+
59
+ /**
60
+ * Build the opening screen: mark on the left, facts on the right.
61
+ *
62
+ * @param {object} o
63
+ * @param {string} o.version
64
+ * @param {string} o.workspace already shortened by the caller
65
+ * @param {string} o.model
66
+ * @param {string} o.billing who this run will charge
67
+ * @param {string} o.canRun what it may execute, or that it may not
68
+ * @param {boolean} [o.interactive] whether a prompt follows
69
+ * @returns {string}
70
+ */
71
+ export function openingScreen({ version, workspace, model, billing, canRun, interactive = false }) {
72
+ /**
73
+ * ── ⚠️⚠️ ELIDED, BECAUSE THE VALUES ARE NOT OURS ────────────────────────────
74
+ *
75
+ * Every value arrives at runtime: a deep monorepo path, a long model id, the
76
+ * shell-mode warning. The first version assumed they would be short and its
77
+ * own test caught it wrapping at 80 columns on ordinary inputs.
78
+ *
79
+ * ⭐ ELIDED IN THE MIDDLE, NOT THE END. The informative parts of a path are
80
+ * the drive and the leaf; chopping the tail leaves
81
+ * `C:\Users\somebody\Projects\a-`, which identifies nothing. Same for a model
82
+ * id, where the family is at the front and the variant at the back.
83
+ */
84
+ const room = TEXT_COLUMNS - 11;
85
+ const fit = (v) => {
86
+ const s = String(v ?? '');
87
+ if (s.length <= room) return s;
88
+ const head = Math.ceil((room - 1) / 2);
89
+ return `${s.slice(0, head)}…${s.slice(s.length - (room - 1 - head))}`;
90
+ };
91
+
92
+ const right = [
93
+ `ACUVO CODE${version ? ` ${version}` : ''}`,
94
+ '',
95
+ `workspace ${fit(workspace)}`,
96
+ `model ${fit(model)}`,
97
+ `billing ${fit(billing)}`,
98
+ `can run ${fit(canRun)}`,
99
+ '',
100
+ ];
101
+
102
+ /**
103
+ * ⚠️ THE TWO COLUMNS ARE ZIPPED, NOT CONCATENATED, and the row counts are
104
+ * allowed to differ — whichever is shorter simply runs out. Assuming they
105
+ * match would break the layout the first time a row is added to either side.
106
+ */
107
+ const rows = Math.max(MARK.length, right.length);
108
+ const lines = [''];
109
+ for (let i = 0; i < rows; i += 1) {
110
+ const mark = (MARK[i] ?? '').padEnd(MARK_WIDTH + GUTTER);
111
+ const text = right[i] ?? '';
112
+ lines.push(`${mark}${text}`.trimEnd());
113
+ }
114
+ lines.push('');
115
+
116
+ /**
117
+ * ⚠️ ONLY WHEN A PROMPT ACTUALLY FOLLOWS. Printing "type what you want done"
118
+ * above a one-shot run that has already been given its task is an instruction
119
+ * for something the user cannot do, on the screen of a thing already working.
120
+ */
121
+ if (interactive) {
122
+ lines.push(' Type what you want done. /help for commands · exit to leave', '');
123
+ }
124
+ return lines.join('\n');
125
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "acuvo-code",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "Acuvo Code — the terminal client for the Acuvo capability registry. Zero dependencies, by design.",
5
5
  "type": "module",
6
6
  "bin": {