@supatest/cli 0.0.19 → 0.0.20
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/index.js +10 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4094,6 +4094,7 @@ var init_project_instructions = __esm({
|
|
|
4094
4094
|
|
|
4095
4095
|
// src/core/agent.ts
|
|
4096
4096
|
import { createRequire } from "module";
|
|
4097
|
+
import { homedir } from "os";
|
|
4097
4098
|
import { dirname, join as join4 } from "path";
|
|
4098
4099
|
import { query } from "@anthropic-ai/claude-agent-sdk";
|
|
4099
4100
|
var CoreAgent;
|
|
@@ -4172,8 +4173,8 @@ ${projectInstructions}`,
|
|
|
4172
4173
|
cleanEnv[key] = value;
|
|
4173
4174
|
}
|
|
4174
4175
|
}
|
|
4175
|
-
const
|
|
4176
|
-
cleanEnv.CLAUDE_CONFIG_DIR =
|
|
4176
|
+
const internalConfigDir = join4(homedir(), ".supatest", "claude-internal");
|
|
4177
|
+
cleanEnv.CLAUDE_CONFIG_DIR = internalConfigDir;
|
|
4177
4178
|
cleanEnv.ANTHROPIC_API_KEY = config2.supatestApiKey || "";
|
|
4178
4179
|
cleanEnv.ANTHROPIC_BASE_URL = process.env.ANTHROPIC_BASE_URL || "";
|
|
4179
4180
|
cleanEnv.ANTHROPIC_AUTH_TOKEN = "";
|
|
@@ -4940,7 +4941,7 @@ var CLI_VERSION;
|
|
|
4940
4941
|
var init_version = __esm({
|
|
4941
4942
|
"src/version.ts"() {
|
|
4942
4943
|
"use strict";
|
|
4943
|
-
CLI_VERSION = "0.0.
|
|
4944
|
+
CLI_VERSION = "0.0.20";
|
|
4944
4945
|
}
|
|
4945
4946
|
});
|
|
4946
4947
|
|
|
@@ -5015,7 +5016,7 @@ var init_encryption = __esm({
|
|
|
5015
5016
|
|
|
5016
5017
|
// src/utils/token-storage.ts
|
|
5017
5018
|
import { existsSync as existsSync4, mkdirSync, readFileSync as readFileSync4, unlinkSync, writeFileSync } from "fs";
|
|
5018
|
-
import { homedir } from "os";
|
|
5019
|
+
import { homedir as homedir2 } from "os";
|
|
5019
5020
|
import { join as join6 } from "path";
|
|
5020
5021
|
function getTokenFilePath() {
|
|
5021
5022
|
const apiUrl = process.env.SUPATEST_API_URL || PRODUCTION_API_URL;
|
|
@@ -5090,7 +5091,7 @@ var init_token_storage = __esm({
|
|
|
5090
5091
|
"src/utils/token-storage.ts"() {
|
|
5091
5092
|
"use strict";
|
|
5092
5093
|
init_encryption();
|
|
5093
|
-
CONFIG_DIR = join6(
|
|
5094
|
+
CONFIG_DIR = join6(homedir2(), ".supatest");
|
|
5094
5095
|
PRODUCTION_API_URL = "https://code-api.supatest.ai";
|
|
5095
5096
|
STORAGE_VERSION = 2;
|
|
5096
5097
|
TOKEN_FILE = join6(CONFIG_DIR, "token.json");
|
|
@@ -8158,11 +8159,11 @@ var init_UserMessage = __esm({
|
|
|
8158
8159
|
"use strict";
|
|
8159
8160
|
init_theme();
|
|
8160
8161
|
UserMessage = ({ text }) => {
|
|
8161
|
-
return /* @__PURE__ */ React17.createElement(Box15, { flexDirection: "row", marginTop: 1
|
|
8162
|
+
return /* @__PURE__ */ React17.createElement(Box15, { alignItems: "center", flexDirection: "row", marginTop: 1 }, /* @__PURE__ */ React17.createElement(Text15, { color: theme.text.info }, "\u{1F464} "), /* @__PURE__ */ React17.createElement(
|
|
8162
8163
|
Box15,
|
|
8163
8164
|
{
|
|
8164
|
-
borderStyle: "round",
|
|
8165
8165
|
borderColor: theme.text.dim,
|
|
8166
|
+
borderStyle: "round",
|
|
8166
8167
|
paddingLeft: 1,
|
|
8167
8168
|
paddingRight: 1
|
|
8168
8169
|
},
|
|
@@ -8480,7 +8481,7 @@ var init_useOverlayEscapeGuard = __esm({
|
|
|
8480
8481
|
|
|
8481
8482
|
// src/ui/App.tsx
|
|
8482
8483
|
import { execSync as execSync3 } from "child_process";
|
|
8483
|
-
import { homedir as
|
|
8484
|
+
import { homedir as homedir3 } from "os";
|
|
8484
8485
|
import { Box as Box19, Text as Text18, useApp } from "ink";
|
|
8485
8486
|
import Spinner3 from "ink-spinner";
|
|
8486
8487
|
import React21, { useEffect as useEffect9, useRef as useRef3, useState as useState9 } from "react";
|
|
@@ -8519,7 +8520,7 @@ var init_App = __esm({
|
|
|
8519
8520
|
};
|
|
8520
8521
|
getCurrentFolder = (configCwd) => {
|
|
8521
8522
|
const cwd = configCwd || process.cwd();
|
|
8522
|
-
const home =
|
|
8523
|
+
const home = homedir3();
|
|
8523
8524
|
if (cwd.startsWith(home)) {
|
|
8524
8525
|
return `~${cwd.slice(home.length)}`;
|
|
8525
8526
|
}
|