@pensar/apex 0.0.112 → 0.0.113-canary.3baa3cfe

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.
Files changed (37) hide show
  1. package/build/{agent-5qdmmchx.js → agent-kv566fgq.js} +9 -9
  2. package/build/agent-vk2ncd9f.js +16 -0
  3. package/build/{auth-jvq72ekc.js → auth-1m8atrbk.js} +7 -6
  4. package/build/{authentication-nya4td5k.js → authentication-7q5gr325.js} +8 -8
  5. package/build/blackboxAgent-xh1aes46.js +17 -0
  6. package/build/{blackboxPentest-85hwznet.js → blackboxPentest-0avhbq0s.js} +13 -13
  7. package/build/{cli-2ckm5es2.js → cli-02z97kgd.js} +1 -1
  8. package/build/{cli-15vxn9zj.js → cli-0tpx8khk.js} +30 -30
  9. package/build/{cli-yj3dy0vg.js → cli-23dth5xj.js} +2 -2
  10. package/build/{cli-j66pect7.js → cli-2acntev8.js} +38 -3
  11. package/build/{cli-jb0gcnrs.js → cli-2namddg2.js} +1 -1
  12. package/build/{cli-jh38b6zv.js → cli-73ka6pcc.js} +1 -1
  13. package/build/{cli-kqtgcdzn.js → cli-8y6mcpyz.js} +4418 -2241
  14. package/build/{cli-w04ggbe4.js → cli-c003dtjg.js} +2 -2
  15. package/build/{cli-r8r90gka.js → cli-fawawybp.js} +11 -10
  16. package/build/{cli-hmrzx8am.js → cli-g0ca8jbm.js} +9 -6
  17. package/build/{cli-bp6d08sg.js → cli-kdwyyczp.js} +1 -1
  18. package/build/{cli-x1msjf55.js → cli-kt8pxwxd.js} +2 -2
  19. package/build/{cli-e20q3hqz.js → cli-pw1bses1.js} +2 -2
  20. package/build/{cli-f9shhcxf.js → cli-rxc3573d.js} +6 -6
  21. package/build/cli.js +24 -24
  22. package/build/{fixes-1r6v7kh2.js → fixes-x3zq7ras.js} +4 -4
  23. package/build/{index-5ke2yd32.js → index-63tck77v.js} +2 -2
  24. package/build/{index-9ze42wn7.js → index-m46wf7jk.js} +40 -58
  25. package/build/{index-vwvh1rdw.js → index-wm6e97t8.js} +7 -7
  26. package/build/{issues-kx721wja.js → issues-27h05m9y.js} +4 -4
  27. package/build/{logs-hav7d0nm.js → logs-px49q79g.js} +4 -4
  28. package/build/pentest-7byc3hm0.js +25 -0
  29. package/build/{pentests-s9fwd71b.js → pentests-19rqvyjx.js} +4 -4
  30. package/build/{projects-tr719twv.js → projects-he8sr3zp.js} +4 -4
  31. package/build/{targetedPentest-w2c85whf.js → targetedPentest-3hjypfh3.js} +9 -9
  32. package/build/{uninstall-2j0pymb0.js → uninstall-gxb13tzb.js} +1 -1
  33. package/build/{utils-jky0th19.js → utils-9fhmzzzh.js} +1 -1
  34. package/package.json +2 -2
  35. package/build/agent-s2z0dasf.js +0 -16
  36. package/build/blackboxAgent-qa9ze2hn.js +0 -17
  37. package/build/pentest-zzebnfa0.js +0 -25
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  WhiteboxAttackSurfaceResultSchema
3
- } from "./cli-2ckm5es2.js";
3
+ } from "./cli-02z97kgd.js";
4
4
  import {
5
5
  OffensiveSecurityAgent
6
- } from "./cli-r8r90gka.js";
7
- import"./cli-jh38b6zv.js";
6
+ } from "./cli-fawawybp.js";
7
+ import"./cli-73ka6pcc.js";
8
8
  import {
9
9
  hasToolCall,
10
10
  tool
11
- } from "./cli-kqtgcdzn.js";
12
- import"./cli-j66pect7.js";
13
- import"./cli-bp6d08sg.js";
14
- import"./cli-jb0gcnrs.js";
15
- import"./cli-yj3dy0vg.js";
16
- import"./cli-15vxn9zj.js";
11
+ } from "./cli-8y6mcpyz.js";
12
+ import"./cli-2acntev8.js";
13
+ import"./cli-kdwyyczp.js";
14
+ import"./cli-2namddg2.js";
15
+ import"./cli-23dth5xj.js";
16
+ import"./cli-0tpx8khk.js";
17
17
  import"./cli-7ckctq7a.js";
18
18
  import"./cli-8rxa073f.js";
19
19
 
@@ -0,0 +1,16 @@
1
+ import {
2
+ CodeAgent
3
+ } from "./cli-c003dtjg.js";
4
+ import"./cli-fawawybp.js";
5
+ import"./cli-73ka6pcc.js";
6
+ import"./cli-8y6mcpyz.js";
7
+ import"./cli-2acntev8.js";
8
+ import"./cli-kdwyyczp.js";
9
+ import"./cli-2namddg2.js";
10
+ import"./cli-23dth5xj.js";
11
+ import"./cli-0tpx8khk.js";
12
+ import"./cli-7ckctq7a.js";
13
+ import"./cli-8rxa073f.js";
14
+ export {
15
+ CodeAgent
16
+ };
@@ -8,14 +8,14 @@ import {
8
8
  pollWorkOSToken,
9
9
  selectWorkspace,
10
10
  startDeviceFlow
11
- } from "./cli-j66pect7.js";
11
+ } from "./cli-2acntev8.js";
12
12
  import {
13
13
  config,
14
14
  getPensarApiUrl,
15
15
  getPensarConsoleUrl
16
- } from "./cli-bp6d08sg.js";
17
- import"./cli-jb0gcnrs.js";
18
- import"./cli-yj3dy0vg.js";
16
+ } from "./cli-kdwyyczp.js";
17
+ import"./cli-2namddg2.js";
18
+ import"./cli-23dth5xj.js";
19
19
  import {
20
20
  __require
21
21
  } from "./cli-8rxa073f.js";
@@ -172,9 +172,10 @@ If the browser didn't open, visit: ${consoleUrl}/create-workspace?redirect=/cred
172
172
  ✓ Connected to Pensar Console
173
173
  Workspace: ${workspace.name} (${workspace.slug})
174
174
  Credits: $${result.billing.balance.toFixed(2)}`);
175
- if (!result.confirmed && result.billingUrl) {
175
+ const needsBillingSetup = !result.billing.ready && result.billing.balance <= 0 && !!result.billingUrl;
176
+ if (needsBillingSetup && result.billingUrl) {
176
177
  console.log(`
177
- ⚠ Your workspace needs credits. Add them at:
178
+ ⚠ Your workspace billing setup is not ready yet. Finish setup at:
178
179
  ${result.billingUrl}`);
179
180
  } else if (result.billing.balance < 1) {
180
181
  const billingUrl = `${getPensarConsoleUrl()}/${workspace.slug}/settings/billing`;
@@ -3,16 +3,16 @@ import {
3
3
  } from "./cli-6gtnyaqf.js";
4
4
  import {
5
5
  OffensiveSecurityAgent
6
- } from "./cli-r8r90gka.js";
7
- import"./cli-jh38b6zv.js";
6
+ } from "./cli-fawawybp.js";
7
+ import"./cli-73ka6pcc.js";
8
8
  import {
9
9
  hasToolCall
10
- } from "./cli-kqtgcdzn.js";
11
- import"./cli-j66pect7.js";
12
- import"./cli-bp6d08sg.js";
13
- import"./cli-jb0gcnrs.js";
14
- import"./cli-yj3dy0vg.js";
15
- import"./cli-15vxn9zj.js";
10
+ } from "./cli-8y6mcpyz.js";
11
+ import"./cli-2acntev8.js";
12
+ import"./cli-kdwyyczp.js";
13
+ import"./cli-2namddg2.js";
14
+ import"./cli-23dth5xj.js";
15
+ import"./cli-0tpx8khk.js";
16
16
  import"./cli-7ckctq7a.js";
17
17
  import"./cli-8rxa073f.js";
18
18
 
@@ -0,0 +1,17 @@
1
+ import {
2
+ BlackboxAttackSurfaceAgent
3
+ } from "./cli-g0ca8jbm.js";
4
+ import"./cli-6gtnyaqf.js";
5
+ import"./cli-fawawybp.js";
6
+ import"./cli-73ka6pcc.js";
7
+ import"./cli-8y6mcpyz.js";
8
+ import"./cli-2acntev8.js";
9
+ import"./cli-kdwyyczp.js";
10
+ import"./cli-2namddg2.js";
11
+ import"./cli-23dth5xj.js";
12
+ import"./cli-0tpx8khk.js";
13
+ import"./cli-7ckctq7a.js";
14
+ import"./cli-8rxa073f.js";
15
+ export {
16
+ BlackboxAttackSurfaceAgent
17
+ };
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  runPentestWorkflow
3
- } from "./cli-f9shhcxf.js";
4
- import"./cli-e20q3hqz.js";
5
- import"./cli-w04ggbe4.js";
6
- import"./cli-2ckm5es2.js";
7
- import"./cli-hmrzx8am.js";
3
+ } from "./cli-rxc3573d.js";
4
+ import"./cli-pw1bses1.js";
5
+ import"./cli-c003dtjg.js";
6
+ import"./cli-02z97kgd.js";
7
+ import"./cli-g0ca8jbm.js";
8
8
  import"./cli-6gtnyaqf.js";
9
- import"./cli-r8r90gka.js";
10
- import"./cli-jh38b6zv.js";
11
- import"./cli-kqtgcdzn.js";
12
- import"./cli-j66pect7.js";
13
- import"./cli-bp6d08sg.js";
14
- import"./cli-jb0gcnrs.js";
15
- import"./cli-yj3dy0vg.js";
16
- import"./cli-15vxn9zj.js";
9
+ import"./cli-fawawybp.js";
10
+ import"./cli-73ka6pcc.js";
11
+ import"./cli-8y6mcpyz.js";
12
+ import"./cli-2acntev8.js";
13
+ import"./cli-kdwyyczp.js";
14
+ import"./cli-2namddg2.js";
15
+ import"./cli-23dth5xj.js";
16
+ import"./cli-0tpx8khk.js";
17
17
  import"./cli-7ckctq7a.js";
18
18
  import"./cli-8rxa073f.js";
19
19
 
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  exports_external,
3
3
  init_zod
4
- } from "./cli-kqtgcdzn.js";
4
+ } from "./cli-8y6mcpyz.js";
5
5
 
6
6
  // src/core/agents/specialized/whiteboxAttackSurface/types.ts
7
7
  init_zod();
@@ -238,30 +238,6 @@ var OPENAI_MODELS = [
238
238
  provider: "openai",
239
239
  contextLength: 128000
240
240
  },
241
- {
242
- id: "gpt-4-turbo",
243
- name: "GPT-4-turbo",
244
- provider: "openai",
245
- contextLength: 128000
246
- },
247
- {
248
- id: "gpt-4-turbo-2024-04-09",
249
- name: "GPT-4-turbo-2024-04-09",
250
- provider: "openai",
251
- contextLength: 128000
252
- },
253
- {
254
- id: "gpt-4",
255
- name: "GPT-4",
256
- provider: "openai",
257
- contextLength: 8192
258
- },
259
- {
260
- id: "gpt-4-0613",
261
- name: "GPT-4-0613",
262
- provider: "openai",
263
- contextLength: 8192
264
- },
265
241
  {
266
242
  id: "gpt-3.5-turbo-0125",
267
243
  name: "GPT-3.5-turbo-0125",
@@ -286,12 +262,6 @@ var OPENAI_MODELS = [
286
262
  provider: "openai",
287
263
  contextLength: 16385
288
264
  },
289
- {
290
- id: "chatgpt-4o-latest",
291
- name: "ChatGPT-4o (Latest)",
292
- provider: "openai",
293
- contextLength: 128000
294
- },
295
265
  {
296
266
  id: "gpt-5",
297
267
  name: "GPT-5",
@@ -381,6 +351,36 @@ var OPENAI_MODELS = [
381
351
  name: "GPT-5.2-pro-2025-12-11",
382
352
  provider: "openai",
383
353
  contextLength: 200000
354
+ },
355
+ {
356
+ id: "gpt-5.3-chat-latest",
357
+ name: "GPT-5.3-chat (Latest)",
358
+ provider: "openai",
359
+ contextLength: 200000
360
+ },
361
+ {
362
+ id: "gpt-5.4",
363
+ name: "GPT-5.4",
364
+ provider: "openai",
365
+ contextLength: 200000
366
+ },
367
+ {
368
+ id: "gpt-5.4-2026-03-05",
369
+ name: "GPT-5.4-2026-03-05",
370
+ provider: "openai",
371
+ contextLength: 200000
372
+ },
373
+ {
374
+ id: "gpt-5.4-pro",
375
+ name: "GPT-5.4-pro",
376
+ provider: "openai",
377
+ contextLength: 200000
378
+ },
379
+ {
380
+ id: "gpt-5.4-pro-2026-03-05",
381
+ name: "GPT-5.4-pro-2026-03-05",
382
+ provider: "openai",
383
+ contextLength: 200000
384
384
  }
385
385
  ];
386
386
 
@@ -3,7 +3,7 @@ import { spawnSync } from "child_process";
3
3
  // package.json
4
4
  var package_default = {
5
5
  name: "@pensar/apex",
6
- version: "0.0.112",
6
+ version: "0.0.113-canary.3baa3cfe",
7
7
  description: "AI-powered penetration testing CLI tool with terminal UI",
8
8
  module: "src/tui/index.tsx",
9
9
  main: "build/cli.js",
@@ -83,7 +83,7 @@ var package_default = {
83
83
  "@ai-sdk/amazon-bedrock": "^4.0.69",
84
84
  "@ai-sdk/anthropic": "^3.0.50",
85
85
  "@ai-sdk/google": "^3.0.37",
86
- "@ai-sdk/openai": "^3.0.37",
86
+ "@ai-sdk/openai": "3.0.46",
87
87
  "@ai-sdk/openai-compatible": "^2.0.35",
88
88
  "@daytonaio/sdk": "^0.112.1",
89
89
  "@googleapis/gmail": "^16.1.1",
@@ -1,7 +1,9 @@
1
1
  import {
2
2
  config,
3
- getPensarApiUrl
4
- } from "./cli-bp6d08sg.js";
3
+ ensureValidToken,
4
+ getPensarApiUrl,
5
+ getPensarGatewayUrl
6
+ } from "./cli-kdwyyczp.js";
5
7
 
6
8
  // src/core/auth/device-flow.ts
7
9
  function sleep(ms) {
@@ -199,4 +201,37 @@ ${bodyHash}`;
199
201
  const signature = createHmac("sha256", signingKey).update(payload).digest("base64");
200
202
  return { signature, timestamp, nonce };
201
203
  }
202
- export { signGatewayRequest, startDeviceFlow, pollWorkOSToken, pollLegacyToken, fetchWorkspaces, pollForWorkspaceCreation, selectWorkspace, isConnected, disconnect };
204
+ // src/core/auth/gateway.ts
205
+ async function validateGateway() {
206
+ const cfg = await config.get();
207
+ const tokenResult = await ensureValidToken({
208
+ accessToken: cfg.accessToken,
209
+ refreshToken: cfg.refreshToken,
210
+ pensarAPIKey: cfg.pensarAPIKey
211
+ });
212
+ if (!tokenResult)
213
+ return null;
214
+ const gatewayUrl = cfg.gatewayUrl || getPensarGatewayUrl();
215
+ const headers = {
216
+ Authorization: `Bearer ${tokenResult.token}`
217
+ };
218
+ if (cfg.workspaceId) {
219
+ headers["X-Workspace-Id"] = cfg.workspaceId;
220
+ }
221
+ const response = await fetch(`${gatewayUrl}/gateway/validate`, {
222
+ method: "GET",
223
+ headers
224
+ });
225
+ if (!response.ok) {
226
+ throw new Error(`Gateway validation failed (${response.status})`);
227
+ }
228
+ const result = await response.json();
229
+ if (result.signingKey || result.gatewayUrl) {
230
+ await config.update({
231
+ gatewaySigningKey: result.signingKey ?? undefined,
232
+ gatewayUrl: result.gatewayUrl ?? undefined
233
+ });
234
+ }
235
+ return result;
236
+ }
237
+ export { signGatewayRequest, startDeviceFlow, pollWorkOSToken, pollLegacyToken, fetchWorkspaces, pollForWorkspaceCreation, selectWorkspace, isConnected, disconnect, validateGateway };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getCurrentVersion
3
- } from "./cli-yj3dy0vg.js";
3
+ } from "./cli-23dth5xj.js";
4
4
 
5
5
  // src/core/config/config.ts
6
6
  import os from "os";
@@ -3,7 +3,7 @@ import {
3
3
  generateObjectResponse,
4
4
  init_zod,
5
5
  zod_default
6
- } from "./cli-kqtgcdzn.js";
6
+ } from "./cli-8y6mcpyz.js";
7
7
  import {
8
8
  __callDispose,
9
9
  __esm,