skalpel 3.0.1 → 3.0.3
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/npm-bin/colors.js +1 -1
- package/npm-bin/skalpel.js +5 -5
- package/package.json +6 -6
- package/postinstall/index.js +1 -1
package/npm-bin/colors.js
CHANGED
|
@@ -13,7 +13,7 @@ const pc = require('picocolors');
|
|
|
13
13
|
|
|
14
14
|
const tokens = require(path.resolve(__dirname, '..', 'design-tokens.json'));
|
|
15
15
|
|
|
16
|
-
const palette = (tokens.themes && tokens.themes
|
|
16
|
+
const palette = (tokens.themes && tokens.themes['tokyo-night-storm']) || {};
|
|
17
17
|
|
|
18
18
|
function rgbFromHex(hex) {
|
|
19
19
|
const m = String(hex || '').replace('#', '').match(/^([0-9a-fA-F]{6})$/);
|
package/npm-bin/skalpel.js
CHANGED
|
@@ -87,22 +87,22 @@ function markInstalled() {
|
|
|
87
87
|
|
|
88
88
|
function renderWelcome(version, platformLabel, opts) {
|
|
89
89
|
const colored = opts && opts.colored;
|
|
90
|
-
const v = colored ? theme.bold(theme.
|
|
90
|
+
const v = colored ? theme.bold(theme.lilac(`skalpel v${version}`)) : `skalpel v${version}`;
|
|
91
91
|
const detect = colored
|
|
92
|
-
? `${theme.
|
|
92
|
+
? `${theme.mint('✓')} ${theme.text(`Detecting platform… ${platformLabel}`)}`
|
|
93
93
|
: `✓ Detecting platform… ${platformLabel}`;
|
|
94
94
|
const resolve = colored
|
|
95
|
-
? `${theme.
|
|
95
|
+
? `${theme.mint('✓')} ${theme.text('Resolving binary… found')}`
|
|
96
96
|
: `✓ Resolving binary… found`;
|
|
97
97
|
const body = [v, '', detect, resolve].join('\n');
|
|
98
|
-
return box(body, colored ? '
|
|
98
|
+
return box(body, colored ? 'lilac' : null, { padding: 1 });
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
function renderError(title, body, hint, opts) {
|
|
102
102
|
const colored = opts && opts.colored;
|
|
103
103
|
const t = colored ? theme.bold(theme.red(`✗ ${title}`)) : `✗ ${title}`;
|
|
104
104
|
const b = colored ? theme.dim(theme.text(body)) : body;
|
|
105
|
-
const h = colored ? theme.
|
|
105
|
+
const h = colored ? theme.lilac(hint) : hint;
|
|
106
106
|
const content = [t, '', b, '', h].join('\n');
|
|
107
107
|
return box(content, colored ? 'red' : null, { padding: 1 });
|
|
108
108
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skalpel",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "Skalpel — local proxy and TUI for coding agents (skalpel + skalpeld bundle).",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://skalpel.ai",
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
"x64"
|
|
55
55
|
],
|
|
56
56
|
"optionalDependencies": {
|
|
57
|
-
"@skalpelai/skalpel-darwin-arm64": "3.0.
|
|
58
|
-
"@skalpelai/skalpel-darwin-x64": "3.0.
|
|
59
|
-
"@skalpelai/skalpel-linux-arm64": "3.0.
|
|
60
|
-
"@skalpelai/skalpel-linux-x64": "3.0.
|
|
61
|
-
"@skalpelai/skalpel-win32-x64": "3.0.
|
|
57
|
+
"@skalpelai/skalpel-darwin-arm64": "3.0.2",
|
|
58
|
+
"@skalpelai/skalpel-darwin-x64": "3.0.2",
|
|
59
|
+
"@skalpelai/skalpel-linux-arm64": "3.0.2",
|
|
60
|
+
"@skalpelai/skalpel-linux-x64": "3.0.2",
|
|
61
|
+
"@skalpelai/skalpel-win32-x64": "3.0.2"
|
|
62
62
|
}
|
|
63
63
|
}
|
package/postinstall/index.js
CHANGED
|
@@ -32,7 +32,7 @@ function printStyledSuccess() {
|
|
|
32
32
|
if (!process.stdout.isTTY) return;
|
|
33
33
|
const colored = !process.env.NO_COLOR;
|
|
34
34
|
const platformLabel = `${process.platform}-${process.arch}`;
|
|
35
|
-
const check = colored ? colors.theme.
|
|
35
|
+
const check = colored ? colors.theme.mint('✓') : '✓';
|
|
36
36
|
const text = colored
|
|
37
37
|
? colors.theme.text(` skalpel installed for ${platformLabel}`)
|
|
38
38
|
: ` skalpel installed for ${platformLabel}`;
|