@pensar/apex 2.2.0 → 2.3.0-canary.5102978
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/{agent-yayy5x2a.js → agent-43tdnbzm.js} +7 -7
- package/build/{agent-q5hwjdtb.js → agent-kp087zrv.js} +9 -9
- package/build/agent-ysdy35bg.js +19 -0
- package/build/{apps-0es69e2s.js → apps-vcz9jbfy.js} +16 -16
- package/build/{auth-q73k9bh9.js → auth-4t4fd22m.js} +32 -39
- package/build/authentication-dghzj4y6.js +19 -0
- package/build/blackboxAgent-dj3q90tf.js +19 -0
- package/build/{blackboxPentest-h28nykk5.js → blackboxPentest-55cng7t3.js} +14 -14
- package/build/{cli-51dkmt5p.js → cli-022qqs0v.js} +1 -1
- package/build/{cli-2jn8104w.js → cli-20vj7vb5.js} +2 -2
- package/build/{cli-4tc6888c.js → cli-21jc2hzb.js} +51 -2
- package/build/{cli-n114n8mk.js → cli-4qhqjw2c.js} +2 -2
- package/build/{cli-knqx15w6.js → cli-5skkqa07.js} +2 -2
- package/build/{cli-xpn9tsw0.js → cli-75zv3493.js} +3 -3
- package/build/{cli-tz9yg4ew.js → cli-7sn6b2zw.js} +8 -8
- package/build/{cli-1cf5vy5m.js → cli-7tra3j0n.js} +60 -28
- package/build/{cli-1re2kv5v.js → cli-cvarnmfs.js} +3 -3
- package/build/{cli-vgg6h2ax.js → cli-ev4e8g7a.js} +1 -1
- package/build/{cli-xbdn034b.js → cli-fqgastnm.js} +4081 -92
- package/build/{cli-7n43wz82.js → cli-gdyzgxkm.js} +4 -2
- package/build/{cli-s43t5ay0.js → cli-k3er0c60.js} +1 -1
- package/build/{cli-7e5ad5js.js → cli-mqvsx788.js} +2 -2
- package/build/{cli-1f636vzd.js → cli-v56t0jqg.js} +1 -1
- package/build/{cli-6kx46ck0.js → cli-wd2nc4pv.js} +19 -6
- package/build/{cli-ptzy9ak5.js → cli-xprt7ev2.js} +1 -1
- package/build/cli.js +41 -36
- package/build/{config-xcf7rc6x.js → config-kypy09wh.js} +3 -3
- package/build/{doctor-98zperf9.js → doctor-kg26ymam.js} +6 -6
- package/build/{fastStrike-9tm6bedh.js → fastStrike-2t3hy8gs.js} +9 -9
- package/build/{fixes-1dry8j61.js → fixes-d3b10qbh.js} +16 -16
- package/build/{index-34h2nb6x.js → index-0e6ce585.js} +3 -3
- package/build/{index-6dbym5jy.js → index-b01pd00k.js} +21 -8
- package/build/{index-4hqbyzf5.js → index-eekzgpqm.js} +8 -8
- package/build/{index-f6ttv7np.js → index-js1nqqaa.js} +9 -5
- package/build/{index-31rwrakh.js → index-sr54gvh2.js} +2 -2
- package/build/{index-0j880wqc.js → index-tvnmy35p.js} +1080 -898
- package/build/{index-pxwwcefn.js → index-zagn856g.js} +9 -9
- package/build/{issues-wjakj8yy.js → issues-c50pp7bq.js} +44 -16
- package/build/{logs-ewyzcspy.js → logs-9stvk5yq.js} +16 -16
- package/build/{offesecAgent-7m9smy0t.js → offesecAgent-81t5mjc7.js} +8 -8
- package/build/pentest-00zkwz6t.js +29 -0
- package/build/{pentests-1hcqjyk2.js → pentests-8jzq9wr7.js} +16 -16
- package/build/{targetedPentest-3x13kqvc.js → targetedPentest-9wmdjjst.js} +9 -9
- package/build/{targets-nqz8w37e.js → targets-3qsfr4yr.js} +16 -16
- package/build/threatModel-2ah5p448.js +27 -0
- package/build/{uninstall-p1q5pkx2.js → uninstall-wkm626qv.js} +1 -1
- package/build/{upload-x7etpfp4.js → upload-xyfs0efr.js} +6 -6
- package/build/{utils-kw6yh5yn.js → utils-6t4yqref.js} +5 -5
- package/package.json +1 -1
- package/build/agent-3cdfwxcd.js +0 -19
- package/build/authentication-tqx2brcv.js +0 -19
- package/build/blackboxAgent-d0smgqt7.js +0 -19
- package/build/pentest-1cb5t0dt.js +0 -29
- package/build/threatModel-7f02av7y.js +0 -27
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getCurrentVersion,
|
|
3
3
|
init_installation
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-v56t0jqg.js";
|
|
5
5
|
import {
|
|
6
6
|
__esm
|
|
7
7
|
} from "./cli-8rxa073f.js";
|
|
@@ -38,6 +38,7 @@ function applyEnvFallbacks(parsedConfig) {
|
|
|
38
38
|
...parsedConfig,
|
|
39
39
|
responsibleUseAccepted: parsedConfig.responsibleUseAccepted ?? false,
|
|
40
40
|
defaultHeaders: parsedConfig.defaultHeaders ?? DEFAULT_CONFIG.defaultHeaders,
|
|
41
|
+
strikeMode: parsedConfig.strikeMode ?? DEFAULT_CONFIG.strikeMode,
|
|
41
42
|
surfaceIntegrationEnabled: parsedConfig.surfaceIntegrationEnabled ?? parseBoolEnv(process.env.PENSAR_SURFACE_INTEGRATION),
|
|
42
43
|
version,
|
|
43
44
|
openAiAPIKey: parsedConfig.openAiAPIKey ?? process.env.OPENAI_API_KEY,
|
|
@@ -78,7 +79,8 @@ var init_config = __esm(() => {
|
|
|
78
79
|
init_installation();
|
|
79
80
|
DEFAULT_CONFIG = {
|
|
80
81
|
responsibleUseAccepted: false,
|
|
81
|
-
defaultHeaders: { "User-Agent": "pensar-apex" }
|
|
82
|
+
defaultHeaders: { "User-Agent": "pensar-apex" },
|
|
83
|
+
strikeMode: false
|
|
82
84
|
};
|
|
83
85
|
});
|
|
84
86
|
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
EndpointTransportEnum,
|
|
3
3
|
GrpcEndpointMetadataSchema,
|
|
4
4
|
OffensiveSecurityAgent
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-fqgastnm.js";
|
|
6
6
|
import {
|
|
7
7
|
hasToolCall,
|
|
8
8
|
init_dist
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-wd2nc4pv.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_external,
|
|
12
12
|
init_zod,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
init_auth,
|
|
5
5
|
init_constants,
|
|
6
6
|
signGatewayRequest
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-21jc2hzb.js";
|
|
8
8
|
import {
|
|
9
9
|
AISDKError,
|
|
10
10
|
APICallError,
|
|
@@ -87,11 +87,11 @@ import {
|
|
|
87
87
|
import {
|
|
88
88
|
config,
|
|
89
89
|
init_config
|
|
90
|
-
} from "./cli-
|
|
90
|
+
} from "./cli-022qqs0v.js";
|
|
91
91
|
import {
|
|
92
92
|
getCurrentVersion,
|
|
93
93
|
init_installation
|
|
94
|
-
} from "./cli-
|
|
94
|
+
} from "./cli-v56t0jqg.js";
|
|
95
95
|
import {
|
|
96
96
|
__callDispose,
|
|
97
97
|
__commonJS,
|
|
@@ -47127,7 +47127,7 @@ async function create2(input) {
|
|
|
47127
47127
|
if (normalizedConfig?.headers !== undefined) {
|
|
47128
47128
|
snapshotHeaders = { ...normalizedConfig.headers };
|
|
47129
47129
|
} else {
|
|
47130
|
-
const { config: appConfig } = await import("./index-
|
|
47130
|
+
const { config: appConfig } = await import("./index-0e6ce585.js");
|
|
47131
47131
|
const cfg = await appConfig.get();
|
|
47132
47132
|
snapshotHeaders = cfg.defaultHeaders ? { ...cfg.defaultHeaders } : { ...DEFAULT_HEADER_RECORD };
|
|
47133
47133
|
}
|
|
@@ -47303,7 +47303,8 @@ async function updateOperatorSettings(sessionId, settings) {
|
|
|
47303
47303
|
session.config.operatorSettings = {
|
|
47304
47304
|
initialMode: "manual",
|
|
47305
47305
|
requireApproval: true,
|
|
47306
|
-
enableSuggestions: true
|
|
47306
|
+
enableSuggestions: true,
|
|
47307
|
+
strikeMode: false
|
|
47307
47308
|
};
|
|
47308
47309
|
}
|
|
47309
47310
|
if (settings.initialMode !== undefined) {
|
|
@@ -47315,6 +47316,9 @@ async function updateOperatorSettings(sessionId, settings) {
|
|
|
47315
47316
|
if (settings.enableSuggestions !== undefined) {
|
|
47316
47317
|
session.config.operatorSettings.enableSuggestions = settings.enableSuggestions;
|
|
47317
47318
|
}
|
|
47319
|
+
if (settings.strikeMode !== undefined) {
|
|
47320
|
+
session.config.operatorSettings.strikeMode = settings.strikeMode;
|
|
47321
|
+
}
|
|
47318
47322
|
});
|
|
47319
47323
|
}
|
|
47320
47324
|
async function updateSessionHeaders(sessionId, headers) {
|
|
@@ -47387,7 +47391,8 @@ var init_session = __esm(() => {
|
|
|
47387
47391
|
OperatorSettingsObject = zod_default.object({
|
|
47388
47392
|
initialMode: zod_default.enum(["plan", "manual", "auto"]).default("manual"),
|
|
47389
47393
|
requireApproval: zod_default.boolean().default(true),
|
|
47390
|
-
enableSuggestions: zod_default.boolean().default(true)
|
|
47394
|
+
enableSuggestions: zod_default.boolean().default(true),
|
|
47395
|
+
strikeMode: zod_default.boolean().optional()
|
|
47391
47396
|
});
|
|
47392
47397
|
EmailInboxConfigObject = zod_default.discriminatedUnion("provider", [
|
|
47393
47398
|
zod_default.object({
|
|
@@ -47422,6 +47427,14 @@ var init_session = __esm(() => {
|
|
|
47422
47427
|
username: zod_default.string(),
|
|
47423
47428
|
password: zod_default.string(),
|
|
47424
47429
|
tls: zod_default.boolean()
|
|
47430
|
+
}),
|
|
47431
|
+
zod_default.object({
|
|
47432
|
+
provider: zod_default.literal("http"),
|
|
47433
|
+
id: zod_default.string(),
|
|
47434
|
+
name: zod_default.string(),
|
|
47435
|
+
emailAddress: zod_default.string(),
|
|
47436
|
+
endpoint: zod_default.string(),
|
|
47437
|
+
token: zod_default.string()
|
|
47425
47438
|
})
|
|
47426
47439
|
]);
|
|
47427
47440
|
EmailIntegrationConfigObject = zod_default.object({
|
package/build/cli.js
CHANGED
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
init_toolset,
|
|
15
15
|
init_utils,
|
|
16
16
|
logger
|
|
17
|
-
} from "./cli-
|
|
18
|
-
import"./cli-
|
|
17
|
+
} from "./cli-wd2nc4pv.js";
|
|
18
|
+
import"./cli-21jc2hzb.js";
|
|
19
19
|
import"./cli-3k1x5rn3.js";
|
|
20
20
|
import"./cli-gpnb45ck.js";
|
|
21
|
-
import"./cli-
|
|
22
|
-
import"./cli-
|
|
21
|
+
import"./cli-022qqs0v.js";
|
|
22
|
+
import"./cli-gdyzgxkm.js";
|
|
23
23
|
import {
|
|
24
24
|
init_package,
|
|
25
25
|
package_default
|
|
26
|
-
} from "./cli-
|
|
26
|
+
} from "./cli-v56t0jqg.js";
|
|
27
27
|
import {
|
|
28
28
|
__require,
|
|
29
29
|
__toESM
|
|
@@ -144,7 +144,7 @@ var package_default2 = {
|
|
|
144
144
|
tsc: "tsc --noEmit"
|
|
145
145
|
},
|
|
146
146
|
type: "module",
|
|
147
|
-
version: "2.
|
|
147
|
+
version: "2.3.0-canary.05102978"
|
|
148
148
|
};
|
|
149
149
|
|
|
150
150
|
// src/core/ai/index.ts
|
|
@@ -299,13 +299,18 @@ class AgentEventBus {
|
|
|
299
299
|
});
|
|
300
300
|
break;
|
|
301
301
|
case "reasoning-start":
|
|
302
|
-
this.emit("reasoning-start", { subagentId });
|
|
302
|
+
this.emit("reasoning-start", { subagentId, sessionId, messageId });
|
|
303
303
|
break;
|
|
304
304
|
case "reasoning-delta":
|
|
305
|
-
this.emit("reasoning-delta", {
|
|
305
|
+
this.emit("reasoning-delta", {
|
|
306
|
+
text: chunk.text,
|
|
307
|
+
subagentId,
|
|
308
|
+
sessionId,
|
|
309
|
+
messageId
|
|
310
|
+
});
|
|
306
311
|
break;
|
|
307
312
|
case "reasoning-end":
|
|
308
|
-
this.emit("reasoning-end", { subagentId });
|
|
313
|
+
this.emit("reasoning-end", { subagentId, sessionId, messageId });
|
|
309
314
|
break;
|
|
310
315
|
case "tool-input-start":
|
|
311
316
|
this.emit("tool-call-start", {
|
|
@@ -587,7 +592,7 @@ function attachCliAgentStreamListeners(bus) {
|
|
|
587
592
|
async function createInstrumentedBus(session) {
|
|
588
593
|
const bus = new AgentEventBus;
|
|
589
594
|
attachCliAgentStreamListeners(bus);
|
|
590
|
-
const { attachWandbToEventBus } = await import("./upload-
|
|
595
|
+
const { attachWandbToEventBus } = await import("./upload-xyfs0efr.js");
|
|
591
596
|
const wandbCleanup = await attachWandbToEventBus(session, bus).catch((e) => {
|
|
592
597
|
console.warn("[wandb] Tracing disabled:", e.message);
|
|
593
598
|
return null;
|
|
@@ -604,7 +609,7 @@ async function resolveCliHeaders() {
|
|
|
604
609
|
const { parseHeaderLine: parseHeaderLine2, parseHeadersFromFile, formatParseError: formatParseError2 } = await import("./parse-7djk9jyf.js");
|
|
605
610
|
const merged = {};
|
|
606
611
|
if (!noGlobal) {
|
|
607
|
-
const { config: appConfig } = await import("./index-
|
|
612
|
+
const { config: appConfig } = await import("./index-sr54gvh2.js");
|
|
608
613
|
const cfg = await appConfig.get();
|
|
609
614
|
if (cfg.defaultHeaders) {
|
|
610
615
|
Object.assign(merged, cfg.defaultHeaders);
|
|
@@ -638,8 +643,8 @@ async function resolveCliModel() {
|
|
|
638
643
|
const explicit = getArg("--model");
|
|
639
644
|
if (explicit)
|
|
640
645
|
return explicit;
|
|
641
|
-
const { config: appConfig } = await import("./index-
|
|
642
|
-
const { getDefaultModelForConfig } = await import("./utils-
|
|
646
|
+
const { config: appConfig } = await import("./index-sr54gvh2.js");
|
|
647
|
+
const { getDefaultModelForConfig } = await import("./utils-6t4yqref.js");
|
|
643
648
|
const pensarConfig = await appConfig.get();
|
|
644
649
|
const defaultModel = getDefaultModelForConfig(pensarConfig);
|
|
645
650
|
if (!defaultModel) {
|
|
@@ -727,9 +732,9 @@ Global options:
|
|
|
727
732
|
async function runPentest() {
|
|
728
733
|
const { config } = await import("./main-3d7dfdvs.js").then((m)=>__toESM(m.default,1));
|
|
729
734
|
config();
|
|
730
|
-
const { runPentestAgent } = await import("./blackboxPentest-
|
|
731
|
-
const { sessions: sessions2 } = await import("./index-
|
|
732
|
-
const { config: appConfig } = await import("./index-
|
|
735
|
+
const { runPentestAgent } = await import("./blackboxPentest-55cng7t3.js");
|
|
736
|
+
const { sessions: sessions2 } = await import("./index-b01pd00k.js");
|
|
737
|
+
const { config: appConfig } = await import("./index-sr54gvh2.js");
|
|
733
738
|
const target = getArgRequired("--target");
|
|
734
739
|
const cwd = getArg("--cwd");
|
|
735
740
|
const mode = getArg("--mode");
|
|
@@ -805,9 +810,9 @@ Report: ${reportPath}` : ""}`);
|
|
|
805
810
|
async function runTargetedPentest() {
|
|
806
811
|
const { config } = await import("./main-3d7dfdvs.js").then((m)=>__toESM(m.default,1));
|
|
807
812
|
config();
|
|
808
|
-
const { runTargetedPentestAgent } = await import("./targetedPentest-
|
|
809
|
-
const { sessions: sessions2 } = await import("./index-
|
|
810
|
-
const { config: appConfig } = await import("./index-
|
|
813
|
+
const { runTargetedPentestAgent } = await import("./targetedPentest-9wmdjjst.js");
|
|
814
|
+
const { sessions: sessions2 } = await import("./index-b01pd00k.js");
|
|
815
|
+
const { config: appConfig } = await import("./index-sr54gvh2.js");
|
|
811
816
|
const target = getArgRequired("--target");
|
|
812
817
|
const objectives = getAllArgs("--objective");
|
|
813
818
|
const pensarConfig = await appConfig.get();
|
|
@@ -859,8 +864,8 @@ POCs: ${pocsPath}`);
|
|
|
859
864
|
async function runThreatModel() {
|
|
860
865
|
const { config } = await import("./main-3d7dfdvs.js").then((m)=>__toESM(m.default,1));
|
|
861
866
|
config();
|
|
862
|
-
const { runThreatModelWorkflow } = await import("./threatModel-
|
|
863
|
-
const { config: appConfig } = await import("./index-
|
|
867
|
+
const { runThreatModelWorkflow } = await import("./threatModel-2ah5p448.js");
|
|
868
|
+
const { config: appConfig } = await import("./index-sr54gvh2.js");
|
|
864
869
|
const path2 = await import("path");
|
|
865
870
|
const pensarConfig = await appConfig.get();
|
|
866
871
|
const model = await resolveCliModel();
|
|
@@ -896,10 +901,10 @@ Threat model written to: ${resolvedPath}`);
|
|
|
896
901
|
async function runOperator() {
|
|
897
902
|
const { config } = await import("./main-3d7dfdvs.js").then((m)=>__toESM(m.default,1));
|
|
898
903
|
config();
|
|
899
|
-
const { runOffensiveSecurityAgent } = await import("./offesecAgent-
|
|
900
|
-
const { sessions: sessions2, normalizeMessages, getResumeMessages } = await import("./index-
|
|
901
|
-
const { ALL_TOOL_NAMES, SKILL_TOOL_NAMES } = await import("./index-
|
|
902
|
-
const { config: appConfig } = await import("./index-
|
|
904
|
+
const { runOffensiveSecurityAgent } = await import("./offesecAgent-81t5mjc7.js");
|
|
905
|
+
const { sessions: sessions2, normalizeMessages, getResumeMessages } = await import("./index-b01pd00k.js");
|
|
906
|
+
const { ALL_TOOL_NAMES, SKILL_TOOL_NAMES } = await import("./index-eekzgpqm.js");
|
|
907
|
+
const { config: appConfig } = await import("./index-sr54gvh2.js");
|
|
903
908
|
const { createInterface } = await import("readline");
|
|
904
909
|
const { readFileSync: readFileSync2, existsSync } = await import("fs");
|
|
905
910
|
const path2 = await import("path");
|
|
@@ -1013,35 +1018,35 @@ if (hasFlag("-p") || command === "--prompt") {
|
|
|
1013
1018
|
await runTargetedPentest();
|
|
1014
1019
|
} else if (command === "login" || command === "auth") {
|
|
1015
1020
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
1016
|
-
await import("./auth-
|
|
1021
|
+
await import("./auth-4t4fd22m.js");
|
|
1017
1022
|
} else if (command === "uninstall") {
|
|
1018
1023
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
1019
|
-
await import("./uninstall-
|
|
1024
|
+
await import("./uninstall-wkm626qv.js");
|
|
1020
1025
|
} else if (command === "apps") {
|
|
1021
1026
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
1022
|
-
await import("./apps-
|
|
1027
|
+
await import("./apps-vcz9jbfy.js");
|
|
1023
1028
|
} else if (command === "pentests") {
|
|
1024
1029
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
1025
|
-
await import("./pentests-
|
|
1030
|
+
await import("./pentests-8jzq9wr7.js");
|
|
1026
1031
|
} else if (command === "targets") {
|
|
1027
1032
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
1028
|
-
await import("./targets-
|
|
1033
|
+
await import("./targets-3qsfr4yr.js");
|
|
1029
1034
|
} else if (command === "issues") {
|
|
1030
1035
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
1031
|
-
await import("./issues-
|
|
1036
|
+
await import("./issues-c50pp7bq.js");
|
|
1032
1037
|
} else if (command === "fixes") {
|
|
1033
1038
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
1034
|
-
await import("./fixes-
|
|
1039
|
+
await import("./fixes-d3b10qbh.js");
|
|
1035
1040
|
} else if (command === "logs") {
|
|
1036
1041
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
1037
|
-
await import("./logs-
|
|
1042
|
+
await import("./logs-9stvk5yq.js");
|
|
1038
1043
|
} else if (command === "config") {
|
|
1039
1044
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
1040
|
-
await import("./config-
|
|
1045
|
+
await import("./config-kypy09wh.js");
|
|
1041
1046
|
} else if (command === "threat-model") {
|
|
1042
1047
|
await runThreatModel();
|
|
1043
1048
|
} else if (command === "doctor") {
|
|
1044
|
-
const { runDoctor } = await import("./doctor-
|
|
1049
|
+
const { runDoctor } = await import("./doctor-kg26ymam.js");
|
|
1045
1050
|
await runDoctor();
|
|
1046
1051
|
} else if (args.length === 0) {
|
|
1047
1052
|
if (process.env.PENSAR_NO_TUI === "1") {
|
|
@@ -1049,7 +1054,7 @@ if (hasFlag("-p") || command === "--prompt") {
|
|
|
1049
1054
|
console.error("All other commands work with Node \u2014 run 'pensar --help'.");
|
|
1050
1055
|
process.exit(1);
|
|
1051
1056
|
}
|
|
1052
|
-
await import("./index-
|
|
1057
|
+
await import("./index-tvnmy35p.js");
|
|
1053
1058
|
} else {
|
|
1054
1059
|
console.error(`Error: Unknown command '${command}'`);
|
|
1055
1060
|
console.error();
|
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
config,
|
|
13
13
|
init_config
|
|
14
|
-
} from "./cli-
|
|
15
|
-
import"./cli-
|
|
16
|
-
import"./cli-
|
|
14
|
+
} from "./cli-022qqs0v.js";
|
|
15
|
+
import"./cli-gdyzgxkm.js";
|
|
16
|
+
import"./cli-v56t0jqg.js";
|
|
17
17
|
import"./cli-8rxa073f.js";
|
|
18
18
|
|
|
19
19
|
// src/cli/config.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toolExists
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
3
|
+
} from "./cli-k3er0c60.js";
|
|
4
|
+
import"./cli-wd2nc4pv.js";
|
|
5
|
+
import"./cli-21jc2hzb.js";
|
|
6
6
|
import"./cli-3k1x5rn3.js";
|
|
7
7
|
import"./cli-gpnb45ck.js";
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
8
|
+
import"./cli-022qqs0v.js";
|
|
9
|
+
import"./cli-gdyzgxkm.js";
|
|
10
|
+
import"./cli-v56t0jqg.js";
|
|
11
11
|
import"./cli-8rxa073f.js";
|
|
12
12
|
|
|
13
13
|
// src/core/doctor.ts
|
|
@@ -4,28 +4,28 @@ import {
|
|
|
4
4
|
buildPentestReport,
|
|
5
5
|
renderJson,
|
|
6
6
|
renderMarkdown
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-20vj7vb5.js";
|
|
8
8
|
import"./cli-9fsre5pt.js";
|
|
9
|
-
import"./cli-
|
|
9
|
+
import"./cli-xprt7ev2.js";
|
|
10
10
|
import {
|
|
11
11
|
FindingsRegistry,
|
|
12
12
|
OffensiveSecurityAgent
|
|
13
|
-
} from "./cli-
|
|
14
|
-
import"./cli-
|
|
13
|
+
} from "./cli-fqgastnm.js";
|
|
14
|
+
import"./cli-k3er0c60.js";
|
|
15
15
|
import {
|
|
16
16
|
createThreatModelPrompt
|
|
17
17
|
} from "./cli-fw5r7pfj.js";
|
|
18
18
|
import"./cli-c8131c4q.js";
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
19
|
+
import"./cli-wd2nc4pv.js";
|
|
20
|
+
import"./cli-21jc2hzb.js";
|
|
21
21
|
import {
|
|
22
22
|
exports_external,
|
|
23
23
|
init_zod
|
|
24
24
|
} from "./cli-3k1x5rn3.js";
|
|
25
25
|
import"./cli-gpnb45ck.js";
|
|
26
|
-
import"./cli-
|
|
27
|
-
import"./cli-
|
|
28
|
-
import"./cli-
|
|
26
|
+
import"./cli-022qqs0v.js";
|
|
27
|
+
import"./cli-gdyzgxkm.js";
|
|
28
|
+
import"./cli-v56t0jqg.js";
|
|
29
29
|
import"./cli-8rxa073f.js";
|
|
30
30
|
|
|
31
31
|
// src/core/workflows/fastStrike.ts
|
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
import {
|
|
3
3
|
getFix,
|
|
4
4
|
listFixes
|
|
5
|
-
} from "./cli-
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
12
|
-
import"./cli-
|
|
5
|
+
} from "./cli-7tra3j0n.js";
|
|
6
|
+
import"./cli-7sn6b2zw.js";
|
|
7
|
+
import"./cli-cvarnmfs.js";
|
|
8
|
+
import"./cli-20vj7vb5.js";
|
|
9
|
+
import"./cli-4qhqjw2c.js";
|
|
10
|
+
import"./cli-75zv3493.js";
|
|
11
|
+
import"./cli-5skkqa07.js";
|
|
12
|
+
import"./cli-mqvsx788.js";
|
|
13
13
|
import"./cli-9fsre5pt.js";
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
16
|
-
import"./cli-
|
|
14
|
+
import"./cli-xprt7ev2.js";
|
|
15
|
+
import"./cli-fqgastnm.js";
|
|
16
|
+
import"./cli-k3er0c60.js";
|
|
17
17
|
import"./cli-fw5r7pfj.js";
|
|
18
18
|
import"./cli-c8131c4q.js";
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
19
|
+
import"./cli-wd2nc4pv.js";
|
|
20
|
+
import"./cli-21jc2hzb.js";
|
|
21
21
|
import"./cli-3k1x5rn3.js";
|
|
22
22
|
import"./cli-gpnb45ck.js";
|
|
23
|
-
import"./cli-
|
|
24
|
-
import"./cli-
|
|
25
|
-
import"./cli-
|
|
23
|
+
import"./cli-022qqs0v.js";
|
|
24
|
+
import"./cli-gdyzgxkm.js";
|
|
25
|
+
import"./cli-v56t0jqg.js";
|
|
26
26
|
import"./cli-8rxa073f.js";
|
|
27
27
|
|
|
28
28
|
// src/cli/fixes.ts
|
|
@@ -17,19 +17,19 @@ import {
|
|
|
17
17
|
update,
|
|
18
18
|
write,
|
|
19
19
|
writeRaw
|
|
20
|
-
} from "./cli-
|
|
21
|
-
import"./cli-
|
|
20
|
+
} from "./cli-wd2nc4pv.js";
|
|
21
|
+
import"./cli-21jc2hzb.js";
|
|
22
22
|
import {
|
|
23
23
|
init_zod,
|
|
24
24
|
zod_default
|
|
25
25
|
} from "./cli-3k1x5rn3.js";
|
|
26
26
|
import"./cli-gpnb45ck.js";
|
|
27
|
-
import"./cli-
|
|
28
|
-
import"./cli-
|
|
27
|
+
import"./cli-022qqs0v.js";
|
|
28
|
+
import"./cli-gdyzgxkm.js";
|
|
29
29
|
import {
|
|
30
30
|
getCurrentVersion,
|
|
31
31
|
init_installation
|
|
32
|
-
} from "./cli-
|
|
32
|
+
} from "./cli-v56t0jqg.js";
|
|
33
33
|
import {
|
|
34
34
|
__require
|
|
35
35
|
} from "./cli-8rxa073f.js";
|
|
@@ -79,7 +79,8 @@ var OffensiveHeadersConfigObject = zod_default.object({
|
|
|
79
79
|
var OperatorSettingsObject = zod_default.object({
|
|
80
80
|
initialMode: zod_default.enum(["plan", "manual", "auto"]).default("manual"),
|
|
81
81
|
requireApproval: zod_default.boolean().default(true),
|
|
82
|
-
enableSuggestions: zod_default.boolean().default(true)
|
|
82
|
+
enableSuggestions: zod_default.boolean().default(true),
|
|
83
|
+
strikeMode: zod_default.boolean().optional()
|
|
83
84
|
});
|
|
84
85
|
var EmailInboxConfigObject = zod_default.discriminatedUnion("provider", [
|
|
85
86
|
zod_default.object({
|
|
@@ -114,6 +115,14 @@ var EmailInboxConfigObject = zod_default.discriminatedUnion("provider", [
|
|
|
114
115
|
username: zod_default.string(),
|
|
115
116
|
password: zod_default.string(),
|
|
116
117
|
tls: zod_default.boolean()
|
|
118
|
+
}),
|
|
119
|
+
zod_default.object({
|
|
120
|
+
provider: zod_default.literal("http"),
|
|
121
|
+
id: zod_default.string(),
|
|
122
|
+
name: zod_default.string(),
|
|
123
|
+
emailAddress: zod_default.string(),
|
|
124
|
+
endpoint: zod_default.string(),
|
|
125
|
+
token: zod_default.string()
|
|
117
126
|
})
|
|
118
127
|
]);
|
|
119
128
|
var EmailIntegrationConfigObject = zod_default.object({
|
|
@@ -304,7 +313,7 @@ async function create(input) {
|
|
|
304
313
|
if (normalizedConfig?.headers !== undefined) {
|
|
305
314
|
snapshotHeaders = { ...normalizedConfig.headers };
|
|
306
315
|
} else {
|
|
307
|
-
const { config: appConfig } = await import("./index-
|
|
316
|
+
const { config: appConfig } = await import("./index-0e6ce585.js");
|
|
308
317
|
const cfg = await appConfig.get();
|
|
309
318
|
snapshotHeaders = cfg.defaultHeaders ? { ...cfg.defaultHeaders } : { ...DEFAULT_HEADER_RECORD };
|
|
310
319
|
}
|
|
@@ -509,7 +518,8 @@ async function updateOperatorSettings(sessionId, settings) {
|
|
|
509
518
|
session.config.operatorSettings = {
|
|
510
519
|
initialMode: "manual",
|
|
511
520
|
requireApproval: true,
|
|
512
|
-
enableSuggestions: true
|
|
521
|
+
enableSuggestions: true,
|
|
522
|
+
strikeMode: false
|
|
513
523
|
};
|
|
514
524
|
}
|
|
515
525
|
if (settings.initialMode !== undefined) {
|
|
@@ -521,6 +531,9 @@ async function updateOperatorSettings(sessionId, settings) {
|
|
|
521
531
|
if (settings.enableSuggestions !== undefined) {
|
|
522
532
|
session.config.operatorSettings.enableSuggestions = settings.enableSuggestions;
|
|
523
533
|
}
|
|
534
|
+
if (settings.strikeMode !== undefined) {
|
|
535
|
+
session.config.operatorSettings.strikeMode = settings.strikeMode;
|
|
536
|
+
}
|
|
524
537
|
});
|
|
525
538
|
}
|
|
526
539
|
async function updateSessionHeaders(sessionId, headers) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ApexFindingObject
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-xprt7ev2.js";
|
|
4
4
|
import {
|
|
5
5
|
ALL_TOOL_NAMES,
|
|
6
6
|
ASK_USER_QUESTIONS_TOOL_NAME,
|
|
@@ -87,16 +87,16 @@ import {
|
|
|
87
87
|
validateDiscovery,
|
|
88
88
|
webSearch,
|
|
89
89
|
writePlan
|
|
90
|
-
} from "./cli-
|
|
91
|
-
import"./cli-
|
|
90
|
+
} from "./cli-fqgastnm.js";
|
|
91
|
+
import"./cli-k3er0c60.js";
|
|
92
92
|
import"./cli-c8131c4q.js";
|
|
93
|
-
import"./cli-
|
|
94
|
-
import"./cli-
|
|
93
|
+
import"./cli-wd2nc4pv.js";
|
|
94
|
+
import"./cli-21jc2hzb.js";
|
|
95
95
|
import"./cli-3k1x5rn3.js";
|
|
96
96
|
import"./cli-gpnb45ck.js";
|
|
97
|
-
import"./cli-
|
|
98
|
-
import"./cli-
|
|
99
|
-
import"./cli-
|
|
97
|
+
import"./cli-022qqs0v.js";
|
|
98
|
+
import"./cli-gdyzgxkm.js";
|
|
99
|
+
import"./cli-v56t0jqg.js";
|
|
100
100
|
import"./cli-8rxa073f.js";
|
|
101
101
|
export {
|
|
102
102
|
writePlan,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
createWorkspaceSelection,
|
|
2
3
|
disconnect,
|
|
3
4
|
ensureValidToken,
|
|
4
5
|
fetchWorkspaces,
|
|
@@ -8,14 +9,15 @@ import {
|
|
|
8
9
|
pollForWorkspaceCreation,
|
|
9
10
|
pollLegacyToken,
|
|
10
11
|
pollWorkOSToken,
|
|
12
|
+
pollWorkspaceSelection,
|
|
11
13
|
selectWorkspace,
|
|
12
14
|
signGatewayRequest,
|
|
13
15
|
startDeviceFlow,
|
|
14
16
|
validateGateway
|
|
15
|
-
} from "./cli-
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
17
|
+
} from "./cli-21jc2hzb.js";
|
|
18
|
+
import"./cli-022qqs0v.js";
|
|
19
|
+
import"./cli-gdyzgxkm.js";
|
|
20
|
+
import"./cli-v56t0jqg.js";
|
|
19
21
|
import"./cli-8rxa073f.js";
|
|
20
22
|
init_auth();
|
|
21
23
|
|
|
@@ -24,6 +26,7 @@ export {
|
|
|
24
26
|
startDeviceFlow,
|
|
25
27
|
signGatewayRequest,
|
|
26
28
|
selectWorkspace,
|
|
29
|
+
pollWorkspaceSelection,
|
|
27
30
|
pollWorkOSToken,
|
|
28
31
|
pollLegacyToken,
|
|
29
32
|
pollForWorkspaceCreation,
|
|
@@ -31,5 +34,6 @@ export {
|
|
|
31
34
|
isConnected,
|
|
32
35
|
fetchWorkspaces,
|
|
33
36
|
ensureValidToken,
|
|
34
|
-
disconnect
|
|
37
|
+
disconnect,
|
|
38
|
+
createWorkspaceSelection
|
|
35
39
|
};
|