@timurproko/a1-install 0.2.4-dev.667 → 0.2.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/bin/a1-install.js CHANGED
@@ -5,6 +5,9 @@ import { access, lstat, readFile, realpath } from "node:fs/promises";
5
5
  import { lstatSync, realpathSync } from "node:fs";
6
6
  import { delimiter, dirname, isAbsolute, join, resolve } from "node:path";
7
7
  import { fileURLToPath, pathToFileURL } from "node:url";
8
+ import { SHARED_PROGRESS_ACCENT_ANSI } from "./progress-palette.js";
9
+
10
+ export { SHARED_PROGRESS_ACCENT_ANSI };
8
11
 
9
12
  const APPLICATION_PACKAGE = "@timurproko/a1";
10
13
  const COMMAND = "a1";
@@ -93,10 +96,9 @@ export function installerHelp() {
93
96
  export function renderProgressBar(percent) {
94
97
  const bounded = Math.min(100, Math.max(0, Math.round(percent)));
95
98
  const filled = Math.round((bounded / 100) * PROGRESS_WIDTH);
96
- const completed = "\u001b[38;2;138;190;183m";
97
99
  const gray = "\u001b[38;2;128;128;128m";
98
100
  const track = "\u001b[38;2;102;102;102m";
99
- return `${completed}${"━".repeat(filled)}${track}${"─".repeat(PROGRESS_WIDTH - filled)}${gray} ${bounded}%\u001b[39m`;
101
+ return `${SHARED_PROGRESS_ACCENT_ANSI}${"━".repeat(filled)}${track}${"─".repeat(PROGRESS_WIDTH - filled)}${gray} ${bounded}%\u001b[39m`;
100
102
  }
101
103
 
102
104
  export function classifyProgressLine(line, fallback = "Installing") {
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated by scripts/pi/sync-progress-palette.ts from @earendil-works/pi-coding-agent 1.0.2
3
+ * (MIT), commit cd32f7725fdbddbaecdff5b1e68491563394e0ca. Do not edit directly.
4
+ */
5
+ export const SHARED_PROGRESS_ACCENT_ANSI = "\u001b[38;2;167;152;215m";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timurproko/a1-install",
3
- "version": "0.2.4-dev.667",
3
+ "version": "0.2.4",
4
4
  "description": "Dependency-free installer for a1",
5
5
  "type": "module",
6
6
  "bin": {
@@ -8,6 +8,7 @@
8
8
  },
9
9
  "files": [
10
10
  "bin/a1-install.js",
11
+ "bin/progress-palette.js",
11
12
  "README.md",
12
13
  "LICENSE"
13
14
  ],