@supatest/cli 0.0.9 → 0.0.10
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/claude-code-cli.js +4630 -0
- package/dist/index.js +16 -16
- package/package.json +3 -5
package/dist/index.js
CHANGED
|
@@ -468,7 +468,7 @@ var init_config = __esm({
|
|
|
468
468
|
config = {
|
|
469
469
|
supatestApiKey: getEnvVar("SUPATEST_API_KEY"),
|
|
470
470
|
supatestApiUrl: getEnvVar("SUPATEST_API_URL", "https://code-api.supatest.ai"),
|
|
471
|
-
claudeCodeExecutablePath: getEnvVar("
|
|
471
|
+
claudeCodeExecutablePath: getEnvVar("SUPATEST_CLAUDE_CODE_PATH"),
|
|
472
472
|
anthropicModelName: getEnvVar("ANTHROPIC_MODEL_NAME", "claude-sonnet-4-20250514"),
|
|
473
473
|
headlessSystemPrompt: fixerPrompt,
|
|
474
474
|
interactiveSystemPrompt: builderPrompt,
|
|
@@ -912,31 +912,31 @@ ${projectInstructions}`
|
|
|
912
912
|
return result;
|
|
913
913
|
}
|
|
914
914
|
async resolveClaudeCodePath() {
|
|
915
|
-
|
|
916
|
-
this.presenter.onLog(
|
|
917
|
-
`Using CLAUDE_CODE_EXECUTABLE_PATH: ${config.claudeCodeExecutablePath}`
|
|
918
|
-
);
|
|
919
|
-
return config.claudeCodeExecutablePath;
|
|
920
|
-
}
|
|
921
|
-
const isCompiledBinary2 = process.execPath && !process.execPath.includes("node");
|
|
915
|
+
const fs4 = await import("fs/promises");
|
|
922
916
|
let claudeCodePath;
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
917
|
+
const bundledPath = join2(dirname(import.meta.url.replace("file://", "")), "claude-code-cli.js");
|
|
918
|
+
try {
|
|
919
|
+
await fs4.access(bundledPath);
|
|
920
|
+
claudeCodePath = bundledPath;
|
|
921
|
+
this.presenter.onLog(`Bundled mode: ${claudeCodePath}`);
|
|
922
|
+
} catch {
|
|
927
923
|
const require2 = createRequire(import.meta.url);
|
|
928
924
|
const sdkPath = require2.resolve("@anthropic-ai/claude-agent-sdk/sdk.mjs");
|
|
929
925
|
claudeCodePath = join2(dirname(sdkPath), "cli.js");
|
|
930
926
|
this.presenter.onLog(`Development mode: ${claudeCodePath}`);
|
|
931
927
|
}
|
|
932
|
-
|
|
928
|
+
if (config.claudeCodeExecutablePath) {
|
|
929
|
+
claudeCodePath = config.claudeCodeExecutablePath;
|
|
930
|
+
this.presenter.onLog(
|
|
931
|
+
`Using SUPATEST_CLAUDE_CODE_PATH override: ${claudeCodePath}`
|
|
932
|
+
);
|
|
933
|
+
}
|
|
933
934
|
try {
|
|
934
935
|
await fs4.access(claudeCodePath);
|
|
935
936
|
this.presenter.onLog(`\u2713 Claude Code CLI found: ${claudeCodePath}`);
|
|
936
937
|
} catch {
|
|
937
938
|
const error = `Claude Code executable not found at: ${claudeCodePath}
|
|
938
|
-
|
|
939
|
-
Set CLAUDE_CODE_EXECUTABLE_PATH environment variable to override.`;
|
|
939
|
+
Set SUPATEST_CLAUDE_CODE_PATH environment variable to override.`;
|
|
940
940
|
await this.presenter.onError(error);
|
|
941
941
|
throw new Error(error);
|
|
942
942
|
}
|
|
@@ -4517,7 +4517,7 @@ var CLI_VERSION;
|
|
|
4517
4517
|
var init_version = __esm({
|
|
4518
4518
|
"src/version.ts"() {
|
|
4519
4519
|
"use strict";
|
|
4520
|
-
CLI_VERSION = "0.0.
|
|
4520
|
+
CLI_VERSION = "0.0.10";
|
|
4521
4521
|
}
|
|
4522
4522
|
});
|
|
4523
4523
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supatest/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "Supatest CLI - AI-powered task automation for CI/CD",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"dist",
|
|
11
|
+
"dist/claude-code-cli.js",
|
|
11
12
|
"README.md",
|
|
12
13
|
"LICENSE"
|
|
13
14
|
],
|
|
@@ -80,10 +81,7 @@
|
|
|
80
81
|
"scripts": {
|
|
81
82
|
"dev": "NODE_ENV=development tsx src/index.ts",
|
|
82
83
|
"dev:watch": "nodemon",
|
|
83
|
-
"
|
|
84
|
-
"build": "tsup",
|
|
85
|
-
"build:tsc": "tsc && node scripts/make-executable.js",
|
|
86
|
-
"build:bun": "bun build src/index.ts --compile --external=@anthropic-ai/claude-agent-sdk --outfile dist/supatest && node scripts/copy-claude-cli.js",
|
|
84
|
+
"build": "tsup && node scripts/copy-claude-cli.js",
|
|
87
85
|
"type-check": "tsc --noEmit",
|
|
88
86
|
"clean:bundle": "rimraf dist",
|
|
89
87
|
"clean:node_modules": "rimraf node_modules"
|