+21
-0
@@ -15,4 +15,6 @@ #!/usr/bin/env node | ||
| // src/cli.ts | ||
| import { spawnSync } from "child_process"; | ||
| import { readFileSync } from "fs"; | ||
| import path from "path"; | ||
| import { fileURLToPath } from "url"; | ||
| var workPatterns = [ | ||
@@ -75,2 +77,15 @@ /\b(fix|implement|build|create|add|remove|delete|rename|refactor|update|edit|change|write|ship|debug)\b/i, | ||
| } | ||
| function installerScriptPath() { | ||
| const cliFile = fileURLToPath(import.meta.url); | ||
| return path.resolve(path.dirname(cliFile), "../install/krow.mjs"); | ||
| } | ||
| function delegateInstaller(command, args) { | ||
| const result = spawnSync(process.execPath, [installerScriptPath(), command, ...args], { | ||
| stdio: "inherit" | ||
| }); | ||
| if (typeof result.status === "number") { | ||
| process.exit(result.status); | ||
| } | ||
| process.exit(1); | ||
| } | ||
| function parseFlags(args) { | ||
@@ -715,2 +730,8 @@ const positionals = []; | ||
| switch (command) { | ||
| case "init": | ||
| delegateInstaller("init", rest); | ||
| return; | ||
| case "remove": | ||
| delegateInstaller("remove", rest); | ||
| return; | ||
| case "route": | ||
@@ -717,0 +738,0 @@ handleRoute(positionals, flags); |
+1
-1
| { | ||
| "name": "krow-cli", | ||
| "version": "0.2.2", | ||
| "version": "0.2.3", | ||
| "description": "A host-agnostic agent harness for coding work", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
102272
0.63%2826
0.75%