@pensar/apex 0.0.105 → 0.0.106-canary.898a8a71
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/build/auth.js +14 -13
- package/build/index.js +14 -19
- package/package.json +1 -1
package/build/auth.js
CHANGED
|
@@ -8,7 +8,7 @@ import fs from "fs/promises";
|
|
|
8
8
|
// package.json
|
|
9
9
|
var package_default = {
|
|
10
10
|
name: "@pensar/apex",
|
|
11
|
-
version: "0.0.
|
|
11
|
+
version: "0.0.106-canary.898a8a71",
|
|
12
12
|
description: "AI-powered penetration testing CLI tool with terminal UI",
|
|
13
13
|
module: "src/tui/index.tsx",
|
|
14
14
|
main: "build/index.js",
|
|
@@ -152,23 +152,24 @@ async function get() {
|
|
|
152
152
|
return {
|
|
153
153
|
...parsedConfig,
|
|
154
154
|
version,
|
|
155
|
-
openAiAPIKey: process.env.OPENAI_API_KEY
|
|
156
|
-
anthropicAPIKey: process.env.ANTHROPIC_API_KEY
|
|
157
|
-
googleAPIKey: process.env.GOOGLE_GENERATIVE_AI_API_KEY
|
|
158
|
-
openRouterAPIKey: process.env.OPENROUTER_API_KEY
|
|
159
|
-
inceptionAPIKey: process.env.INCEPTION_API_KEY
|
|
160
|
-
bedrockAPIKey: process.env.BEDROCK_API_KEY
|
|
161
|
-
pensarAPIKey: process.env.PENSAR_API_KEY
|
|
162
|
-
daytonaAPIKey: process.env.DAYTONA_API_KEY
|
|
163
|
-
daytonaOrgId: process.env.DAYTONA_ORG_ID
|
|
164
|
-
runloopAPIKey: process.env.RUNLOOP_API_KEY
|
|
155
|
+
openAiAPIKey: parsedConfig.openAiAPIKey ?? process.env.OPENAI_API_KEY,
|
|
156
|
+
anthropicAPIKey: parsedConfig.anthropicAPIKey ?? process.env.ANTHROPIC_API_KEY,
|
|
157
|
+
googleAPIKey: parsedConfig.googleAPIKey ?? process.env.GOOGLE_GENERATIVE_AI_API_KEY,
|
|
158
|
+
openRouterAPIKey: parsedConfig.openRouterAPIKey ?? process.env.OPENROUTER_API_KEY,
|
|
159
|
+
inceptionAPIKey: parsedConfig.inceptionAPIKey ?? process.env.INCEPTION_API_KEY,
|
|
160
|
+
bedrockAPIKey: parsedConfig.bedrockAPIKey ?? process.env.BEDROCK_API_KEY,
|
|
161
|
+
pensarAPIKey: parsedConfig.pensarAPIKey ?? process.env.PENSAR_API_KEY,
|
|
162
|
+
daytonaAPIKey: parsedConfig.daytonaAPIKey ?? process.env.DAYTONA_API_KEY,
|
|
163
|
+
daytonaOrgId: parsedConfig.daytonaOrgId ?? process.env.DAYTONA_ORG_ID,
|
|
164
|
+
runloopAPIKey: parsedConfig.runloopAPIKey ?? process.env.RUNLOOP_API_KEY
|
|
165
165
|
};
|
|
166
166
|
}
|
|
167
167
|
async function update(config) {
|
|
168
|
-
const currentConfig = await get();
|
|
169
|
-
const newConfig = { ...currentConfig, ...config };
|
|
170
168
|
const folder = path.join(os.homedir(), ".pensar");
|
|
171
169
|
const file = path.join(folder, "config.json");
|
|
170
|
+
const exists = await fs.access(file).then(() => true).catch(() => false);
|
|
171
|
+
const currentConfig = exists ? JSON.parse(await fs.readFile(file, "utf8")) : DEFAULT_CONFIG;
|
|
172
|
+
const newConfig = { ...currentConfig, ...config };
|
|
172
173
|
await fs.writeFile(file, JSON.stringify(newConfig));
|
|
173
174
|
}
|
|
174
175
|
|
package/build/index.js
CHANGED
|
@@ -31880,12 +31880,6 @@ var init_openrouter = __esm(() => {
|
|
|
31880
31880
|
var PENSAR_MODELS;
|
|
31881
31881
|
var init_pensar = __esm(() => {
|
|
31882
31882
|
PENSAR_MODELS = [
|
|
31883
|
-
{
|
|
31884
|
-
id: "pensar:anthropic.claude-opus-4-6-v1",
|
|
31885
|
-
name: "Claude Opus 4.6 (Pensar)",
|
|
31886
|
-
provider: "pensar",
|
|
31887
|
-
contextLength: 200000
|
|
31888
|
-
},
|
|
31889
31883
|
{
|
|
31890
31884
|
id: "pensar:anthropic.claude-sonnet-4-5-20250929-v1:0",
|
|
31891
31885
|
name: "Claude Sonnet 4.5 (Pensar)",
|
|
@@ -31977,7 +31971,7 @@ var package_default2;
|
|
|
31977
31971
|
var init_package = __esm(() => {
|
|
31978
31972
|
package_default2 = {
|
|
31979
31973
|
name: "@pensar/apex",
|
|
31980
|
-
version: "0.0.
|
|
31974
|
+
version: "0.0.106-canary.898a8a71",
|
|
31981
31975
|
description: "AI-powered penetration testing CLI tool with terminal UI",
|
|
31982
31976
|
module: "src/tui/index.tsx",
|
|
31983
31977
|
main: "build/index.js",
|
|
@@ -32164,23 +32158,24 @@ async function get() {
|
|
|
32164
32158
|
return {
|
|
32165
32159
|
...parsedConfig,
|
|
32166
32160
|
version,
|
|
32167
|
-
openAiAPIKey: process.env.OPENAI_API_KEY
|
|
32168
|
-
anthropicAPIKey: process.env.ANTHROPIC_API_KEY
|
|
32169
|
-
googleAPIKey: process.env.GOOGLE_GENERATIVE_AI_API_KEY
|
|
32170
|
-
openRouterAPIKey: process.env.OPENROUTER_API_KEY
|
|
32171
|
-
inceptionAPIKey: process.env.INCEPTION_API_KEY
|
|
32172
|
-
bedrockAPIKey: process.env.BEDROCK_API_KEY
|
|
32173
|
-
pensarAPIKey: process.env.PENSAR_API_KEY
|
|
32174
|
-
daytonaAPIKey: process.env.DAYTONA_API_KEY
|
|
32175
|
-
daytonaOrgId: process.env.DAYTONA_ORG_ID
|
|
32176
|
-
runloopAPIKey: process.env.RUNLOOP_API_KEY
|
|
32161
|
+
openAiAPIKey: parsedConfig.openAiAPIKey ?? process.env.OPENAI_API_KEY,
|
|
32162
|
+
anthropicAPIKey: parsedConfig.anthropicAPIKey ?? process.env.ANTHROPIC_API_KEY,
|
|
32163
|
+
googleAPIKey: parsedConfig.googleAPIKey ?? process.env.GOOGLE_GENERATIVE_AI_API_KEY,
|
|
32164
|
+
openRouterAPIKey: parsedConfig.openRouterAPIKey ?? process.env.OPENROUTER_API_KEY,
|
|
32165
|
+
inceptionAPIKey: parsedConfig.inceptionAPIKey ?? process.env.INCEPTION_API_KEY,
|
|
32166
|
+
bedrockAPIKey: parsedConfig.bedrockAPIKey ?? process.env.BEDROCK_API_KEY,
|
|
32167
|
+
pensarAPIKey: parsedConfig.pensarAPIKey ?? process.env.PENSAR_API_KEY,
|
|
32168
|
+
daytonaAPIKey: parsedConfig.daytonaAPIKey ?? process.env.DAYTONA_API_KEY,
|
|
32169
|
+
daytonaOrgId: parsedConfig.daytonaOrgId ?? process.env.DAYTONA_ORG_ID,
|
|
32170
|
+
runloopAPIKey: parsedConfig.runloopAPIKey ?? process.env.RUNLOOP_API_KEY
|
|
32177
32171
|
};
|
|
32178
32172
|
}
|
|
32179
32173
|
async function update(config) {
|
|
32180
|
-
const currentConfig = await get();
|
|
32181
|
-
const newConfig = { ...currentConfig, ...config };
|
|
32182
32174
|
const folder = path2.join(os2.homedir(), ".pensar");
|
|
32183
32175
|
const file = path2.join(folder, "config.json");
|
|
32176
|
+
const exists = await fs2.access(file).then(() => true).catch(() => false);
|
|
32177
|
+
const currentConfig = exists ? JSON.parse(await fs2.readFile(file, "utf8")) : DEFAULT_CONFIG;
|
|
32178
|
+
const newConfig = { ...currentConfig, ...config };
|
|
32184
32179
|
await fs2.writeFile(file, JSON.stringify(newConfig));
|
|
32185
32180
|
}
|
|
32186
32181
|
var DEFAULT_CONFIG;
|