@basiclines/rampa 1.1.3 → 1.2.0
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/README.md +10 -0
- package/dist/index.js +9 -9
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -280,6 +280,16 @@ bun run build
|
|
|
280
280
|
bun run build:all
|
|
281
281
|
```
|
|
282
282
|
|
|
283
|
+
## AI Evals
|
|
284
|
+
|
|
285
|
+
Compare how different LLM models use the Rampa CLI by sending the same prompt to multiple models in agent mode. Models can discover rampa via `--help`, execute commands, and iterate. Use `--raw` to run without rampa for baseline comparison. See [evals/README.md](evals/README.md) for details.
|
|
286
|
+
|
|
287
|
+
```bash
|
|
288
|
+
bun run eval # all prompts, all models
|
|
289
|
+
bun run eval --prompt ghostty-matrix-theme --no-judge # single prompt
|
|
290
|
+
bun run eval --prompt ghostty-matrix-theme --raw # without rampa (baseline)
|
|
291
|
+
```
|
|
292
|
+
|
|
283
293
|
## Build Targets
|
|
284
294
|
|
|
285
295
|
```bash
|
package/dist/index.js
CHANGED
|
@@ -9518,8 +9518,8 @@ var calculateHue = (config, position, baseHue, middleIndex, i2) => {
|
|
|
9518
9518
|
};
|
|
9519
9519
|
var calculateSaturation = (config, position, baseSaturation, middleIndex, i2) => {
|
|
9520
9520
|
try {
|
|
9521
|
-
const startSaturation = config.saturationStart / 100;
|
|
9522
|
-
const endSaturation = config.saturationEnd / 100;
|
|
9521
|
+
const startSaturation = config.saturationStart / 100 * baseSaturation;
|
|
9522
|
+
const endSaturation = config.saturationEnd / 100 * baseSaturation;
|
|
9523
9523
|
const newSaturation = startSaturation + (endSaturation - startSaturation) * position;
|
|
9524
9524
|
return clampValue2(newSaturation, 0, 1);
|
|
9525
9525
|
} catch (error) {
|
|
@@ -9952,7 +9952,7 @@ function showHelp() {
|
|
|
9952
9952
|
const dim = "\x1B[2m";
|
|
9953
9953
|
const reset = "\x1B[0m";
|
|
9954
9954
|
const help = `
|
|
9955
|
-
rampa v1.
|
|
9955
|
+
rampa v1.2.0
|
|
9956
9956
|
Generate mathematically accurate color palettes from a base color
|
|
9957
9957
|
|
|
9958
9958
|
USAGE
|
|
@@ -10190,13 +10190,13 @@ var validFormats = ["hex", "hsl", "rgb", "oklch"];
|
|
|
10190
10190
|
var main = defineCommand({
|
|
10191
10191
|
meta: {
|
|
10192
10192
|
name: "rampa",
|
|
10193
|
-
version: "1.
|
|
10193
|
+
version: "1.2.0",
|
|
10194
10194
|
description: "Generate mathematically accurate color palettes from a base color"
|
|
10195
10195
|
},
|
|
10196
10196
|
args: {
|
|
10197
10197
|
color: {
|
|
10198
10198
|
type: "string",
|
|
10199
|
-
alias: "C",
|
|
10199
|
+
alias: ["C", "c"],
|
|
10200
10200
|
description: "Base color (hex, hsl, rgb, oklch)",
|
|
10201
10201
|
required: true
|
|
10202
10202
|
},
|
|
@@ -10207,18 +10207,18 @@ var main = defineCommand({
|
|
|
10207
10207
|
},
|
|
10208
10208
|
format: {
|
|
10209
10209
|
type: "string",
|
|
10210
|
-
alias: "F",
|
|
10210
|
+
alias: ["F", "f"],
|
|
10211
10211
|
description: "Output format: hex, hsl, rgb, oklch (default: same as input)"
|
|
10212
10212
|
},
|
|
10213
10213
|
lightness: {
|
|
10214
10214
|
type: "string",
|
|
10215
|
-
alias: "L",
|
|
10215
|
+
alias: ["L", "l"],
|
|
10216
10216
|
description: "Lightness range start:end (0-100, default: 0:100)",
|
|
10217
10217
|
default: "0:100"
|
|
10218
10218
|
},
|
|
10219
10219
|
saturation: {
|
|
10220
10220
|
type: "string",
|
|
10221
|
-
alias: "S",
|
|
10221
|
+
alias: ["S", "s"],
|
|
10222
10222
|
description: "Saturation range start:end (0-100, default: 100:0)",
|
|
10223
10223
|
default: "100:0"
|
|
10224
10224
|
},
|
|
@@ -10268,7 +10268,7 @@ var main = defineCommand({
|
|
|
10268
10268
|
},
|
|
10269
10269
|
output: {
|
|
10270
10270
|
type: "string",
|
|
10271
|
-
alias: "O",
|
|
10271
|
+
alias: ["O", "o"],
|
|
10272
10272
|
description: "Output format: text, json, css (default: text)",
|
|
10273
10273
|
default: "text"
|
|
10274
10274
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basiclines/rampa",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Generate mathematically accurate color palettes from a base color",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"build:linux-arm64": "bun build ./src/index.ts --compile --target=bun-linux-arm64 --outfile=./dist/rampa-linux-arm64",
|
|
23
23
|
"build:windows-x64": "bun build ./src/index.ts --compile --target=bun-windows-x64 --outfile=./dist/rampa-windows-x64.exe",
|
|
24
24
|
"build:all": "bun run build:darwin-arm64 && bun run build:darwin-x64 && bun run build:linux-x64 && bun run build:linux-arm64 && bun run build:windows-x64",
|
|
25
|
-
"release": "bun run scripts/release.ts"
|
|
25
|
+
"release": "bun run scripts/release.ts",
|
|
26
|
+
"eval": "bun run evals/src/runner.ts"
|
|
26
27
|
},
|
|
27
28
|
"repository": {
|
|
28
29
|
"type": "git",
|
|
@@ -44,8 +45,10 @@
|
|
|
44
45
|
"culori": "^4.0.1"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
48
|
+
"@github/copilot-sdk": "^0.1.23",
|
|
47
49
|
"@types/bun": "^1.2.17",
|
|
48
50
|
"@types/chroma-js": "^3.1.1",
|
|
51
|
+
"picocolors": "^1.1.1",
|
|
49
52
|
"typescript": "^5.5.3"
|
|
50
53
|
}
|
|
51
54
|
}
|