runtrim 0.1.1 → 0.1.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/dist-cli/runtrim.js +109 -7
- package/package.json +1 -1
package/dist-cli/runtrim.js
CHANGED
|
@@ -29,6 +29,104 @@ import fs9 from "fs";
|
|
|
29
29
|
import path9 from "path";
|
|
30
30
|
import { execa as execa3 } from "execa";
|
|
31
31
|
|
|
32
|
+
// package.json
|
|
33
|
+
var package_default = {
|
|
34
|
+
name: "runtrim",
|
|
35
|
+
version: "0.1.2",
|
|
36
|
+
description: "CLI guard layer that scopes AI coding runs before they waste tokens.",
|
|
37
|
+
license: "MIT",
|
|
38
|
+
author: "RunTrim",
|
|
39
|
+
homepage: "https://runtrim.dev",
|
|
40
|
+
repository: {
|
|
41
|
+
type: "git",
|
|
42
|
+
url: "git+https://github.com/michelpronkk-oss/rtrim.git"
|
|
43
|
+
},
|
|
44
|
+
bugs: {
|
|
45
|
+
url: "https://github.com/michelpronkk-oss/rtrim/issues"
|
|
46
|
+
},
|
|
47
|
+
keywords: [
|
|
48
|
+
"cli",
|
|
49
|
+
"ai-coding",
|
|
50
|
+
"codex",
|
|
51
|
+
"claude",
|
|
52
|
+
"cursor",
|
|
53
|
+
"developer-tools",
|
|
54
|
+
"prompt-guard"
|
|
55
|
+
],
|
|
56
|
+
bin: {
|
|
57
|
+
runtrim: "dist-cli/runtrim.cjs"
|
|
58
|
+
},
|
|
59
|
+
files: [
|
|
60
|
+
"dist-cli",
|
|
61
|
+
"README.md",
|
|
62
|
+
"LICENSE",
|
|
63
|
+
"package.json"
|
|
64
|
+
],
|
|
65
|
+
scripts: {
|
|
66
|
+
dev: "next dev",
|
|
67
|
+
build: "next build",
|
|
68
|
+
"build:web": "next build",
|
|
69
|
+
"build:cli": "tsup --config tsup.config.ts && node scripts/fix-cli-runtime.mjs",
|
|
70
|
+
"build:all": "npm run build:cli && npm run build:web",
|
|
71
|
+
start: "next start",
|
|
72
|
+
lint: "eslint",
|
|
73
|
+
runtrim: "tsx cli/runtrim.ts",
|
|
74
|
+
"runtrim:build": "npm run build:cli"
|
|
75
|
+
},
|
|
76
|
+
dependencies: {
|
|
77
|
+
"@radix-ui/react-accordion": "^1.2.12",
|
|
78
|
+
"@radix-ui/react-avatar": "^1.1.11",
|
|
79
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
80
|
+
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
81
|
+
"@radix-ui/react-label": "^2.1.8",
|
|
82
|
+
"@radix-ui/react-progress": "^1.1.8",
|
|
83
|
+
"@radix-ui/react-select": "^2.2.6",
|
|
84
|
+
"@radix-ui/react-separator": "^1.1.8",
|
|
85
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
86
|
+
"@radix-ui/react-switch": "^1.2.6",
|
|
87
|
+
"@radix-ui/react-tabs": "^1.1.13",
|
|
88
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
89
|
+
"@supabase/supabase-js": "^2.57.4",
|
|
90
|
+
chalk: "^5.6.2",
|
|
91
|
+
"class-variance-authority": "^0.7.1",
|
|
92
|
+
clipboardy: "^5.3.1",
|
|
93
|
+
clsx: "^2.1.1",
|
|
94
|
+
commander: "^14.0.3",
|
|
95
|
+
execa: "^9.6.1",
|
|
96
|
+
"fast-glob": "^3.3.3",
|
|
97
|
+
"framer-motion": "^12.38.0",
|
|
98
|
+
"lucide-react": "^1.11.0",
|
|
99
|
+
motion: "^12.38.0",
|
|
100
|
+
nanoid: "^5.1.9",
|
|
101
|
+
next: "16.2.4",
|
|
102
|
+
"next-themes": "^0.4.6",
|
|
103
|
+
ora: "^9.4.0",
|
|
104
|
+
prompts: "^2.4.2",
|
|
105
|
+
"radix-ui": "^1.4.3",
|
|
106
|
+
react: "19.2.4",
|
|
107
|
+
"react-dom": "19.2.4",
|
|
108
|
+
resend: "^6.12.2",
|
|
109
|
+
shadcn: "^4.5.0",
|
|
110
|
+
sonner: "^2.0.7",
|
|
111
|
+
"tailwind-merge": "^3.5.0",
|
|
112
|
+
"tw-animate-css": "^1.4.0",
|
|
113
|
+
zod: "^4.3.6"
|
|
114
|
+
},
|
|
115
|
+
devDependencies: {
|
|
116
|
+
"@tailwindcss/postcss": "^4",
|
|
117
|
+
"@types/node": "^20",
|
|
118
|
+
"@types/prompts": "^2.4.9",
|
|
119
|
+
"@types/react": "^19",
|
|
120
|
+
"@types/react-dom": "^19",
|
|
121
|
+
eslint: "^9",
|
|
122
|
+
"eslint-config-next": "16.2.4",
|
|
123
|
+
tailwindcss: "^4",
|
|
124
|
+
tsup: "^8.5.1",
|
|
125
|
+
tsx: "^4.21.0",
|
|
126
|
+
typescript: "^5"
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
|
|
32
130
|
// src/lib/runtrim-config.ts
|
|
33
131
|
import fs from "fs";
|
|
34
132
|
import path from "path";
|
|
@@ -3209,6 +3307,7 @@ var chalk = new Chalk();
|
|
|
3209
3307
|
var _a;
|
|
3210
3308
|
var oraFactory = typeof ora === "function" ? ora : (_a = ora.default) != null ? _a : ora;
|
|
3211
3309
|
var ACCENT = chalk.hex("#C8901A");
|
|
3310
|
+
var GO_ACCENT = chalk.hex("#8B7CFF");
|
|
3212
3311
|
var DIM = chalk.gray;
|
|
3213
3312
|
var BOLD = chalk.white.bold;
|
|
3214
3313
|
var program = new Command();
|
|
@@ -3658,7 +3757,7 @@ async function tryLaunchPanelMonitorDetached(cwd) {
|
|
|
3658
3757
|
return false;
|
|
3659
3758
|
}
|
|
3660
3759
|
}
|
|
3661
|
-
program.name("runtrim").description("CLI guard layer for AI coding runs").version(
|
|
3760
|
+
program.name("runtrim").description("CLI guard layer for AI coding runs").version(package_default.version);
|
|
3662
3761
|
var commandStartAt = Date.now();
|
|
3663
3762
|
program.hook("preAction", async () => {
|
|
3664
3763
|
commandStartAt = Date.now();
|
|
@@ -4528,23 +4627,26 @@ program.command("go <task>").description("Daily shortcut: initialize if needed,
|
|
|
4528
4627
|
void tryLaunchPanelMonitorDetached(cwd);
|
|
4529
4628
|
}
|
|
4530
4629
|
console.log("");
|
|
4531
|
-
console.log(
|
|
4630
|
+
console.log(GO_ACCENT.bold("RunTrim go"));
|
|
4532
4631
|
console.log("");
|
|
4533
|
-
console.log(
|
|
4632
|
+
console.log(GO_ACCENT.bold("Task"));
|
|
4534
4633
|
console.log(chalk.white(task));
|
|
4535
4634
|
console.log("");
|
|
4536
|
-
console.log(
|
|
4635
|
+
console.log(GO_ACCENT.bold("Guarded prompt"));
|
|
4537
4636
|
console.log(copied ? chalk.white("Copied to clipboard.") : DIM("Clipboard unavailable. Prompt saved to .runtrim/latest-prompt.md"));
|
|
4538
4637
|
console.log("");
|
|
4539
|
-
console.log(
|
|
4638
|
+
console.log(GO_ACCENT.bold("Next"));
|
|
4540
4639
|
console.log(chalk.white("1. Paste into your preferred coding agent, like Claude, Codex, Cursor, ChatGPT, Kimi, or another agent."));
|
|
4541
4640
|
console.log(chalk.white("2. Keep the local panel open:"));
|
|
4542
4641
|
console.log(chalk.white(" runtrim panel --monitor"));
|
|
4543
4642
|
console.log(chalk.white("3. After edits:"));
|
|
4544
4643
|
console.log(chalk.white(" runtrim check"));
|
|
4545
4644
|
console.log("");
|
|
4546
|
-
console.log(
|
|
4547
|
-
console.log(DIM("RunTrim keeps
|
|
4645
|
+
console.log(GO_ACCENT.bold("Why this helps"));
|
|
4646
|
+
console.log(DIM("RunTrim keeps each run scoped, remembered, and easier to continue."));
|
|
4647
|
+
console.log("");
|
|
4648
|
+
console.log(GO_ACCENT.bold("Need more control?"));
|
|
4649
|
+
console.log(chalk.white("Run `runtrim --help` for panel, check, memory and continuation commands."));
|
|
4548
4650
|
console.log("");
|
|
4549
4651
|
});
|
|
4550
4652
|
program.command("check").description("Check the latest run and evaluate agent output").action(async () => {
|