@pensar/apex 2.7.0-canary.c763a48b → 2.7.0-canary.dc4eeb73
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/README.md +13 -0
- package/build/agent-02pnejnw.js +14 -0
- package/build/{agent-j79hpm2v.js → agent-5k6qd29v.js} +7 -7
- package/build/agent-7k53k922.js +14 -0
- package/build/{agent-8p8p45dg.js → agent-gbz5rygq.js} +6 -6
- package/build/{agent-runs-7bses37q.js → agent-runs-4krbrfbz.js} +19 -19
- package/build/{apps-8yvrx9qq.js → apps-pfv0zdbc.js} +16 -16
- package/build/{auth-9cg6a24n.js → auth-yf8h2pcm.js} +16 -16
- package/build/blackboxAgent-zfvw66gx.js +14 -0
- package/build/{blackboxPentest-nt3k5an4.js → blackboxPentest-drx2dh8q.js} +12 -12
- package/build/{cli-3ysp9qdp.js → cli-2kxz8wct.js} +14 -8
- package/build/{cli-q6q1ndmg.js → cli-4mmtfeyq.js} +1 -1
- package/build/{cli-54ej646m.js → cli-5c420jyh.js} +1 -1
- package/build/{cli-rb7669sc.js → cli-6kgf7d6q.js} +1 -1
- package/build/{cli-2f2682d8.js → cli-6pa9g38w.js} +2 -2
- package/build/{cli-hx0erkgq.js → cli-91xbw8s1.js} +2 -2
- package/build/{cli-bv2ank3r.js → cli-bxaessv4.js} +2 -2
- package/build/{cli-3qac6b95.js → cli-c70xpef4.js} +1 -1
- package/build/{cli-qsrqeqts.js → cli-cthffb4f.js} +9 -9
- package/build/{cli-t6jjemz3.js → cli-d5zzvezc.js} +7 -7
- package/build/{cli-rjnwmh9y.js → cli-dzs7b8qg.js} +2 -1
- package/build/{cli-jvekn5fm.js → cli-e6gwq7a9.js} +2 -2
- package/build/{cli-sbxx1mx3.js → cli-h7y81bkg.js} +1 -1
- package/build/{cli-hqt03hyz.js → cli-hr8cdrm9.js} +3 -3
- package/build/{cli-hfm4szxe.js → cli-hrb1gb3f.js} +3 -3
- package/build/{cli-3gt761d2.js → cli-j0wfj2kw.js} +6 -0
- package/build/{cli-rm6chd07.js → cli-k72gvna3.js} +8 -8
- package/build/{cli-83kfkdv1.js → cli-pthzx104.js} +1 -1
- package/build/{cli-dm2fc4v9.js → cli-pyrrf4ms.js} +2 -2
- package/build/{cli-2smp6vy3.js → cli-r9kjgdr6.js} +1 -1
- package/build/{cli-ty55px8v.js → cli-twtnm4ms.js} +68 -11
- package/build/{cli-j1jcp1ma.js → cli-ww29nrnd.js} +1 -1
- package/build/cli.js +40 -39
- package/build/{config-dang1bbh.js → config-kyzwb0kw.js} +1 -1
- package/build/{doctor-z94afr10.js → doctor-srja68wr.js} +1 -0
- package/build/{fastStrike-mv8qq6xw.js → fastStrike-f5h0bwrp.js} +6 -6
- package/build/{fixes-bqrv4brm.js → fixes-6ew73pvs.js} +16 -16
- package/build/{index-0nc613n3.js → index-5yww2gt7.js} +2 -2
- package/build/{index-t4qnd5ne.js → index-ez32src5.js} +1 -1
- package/build/{index-kmcsfkqs.js → index-h41d5ahy.js} +4 -4
- package/build/{index-qre19r25.js → index-p1en670g.js} +7 -7
- package/build/{index-6apqbv2n.js → index-q4rvvcjm.js} +5 -5
- package/build/{index-xc2trj7g.js → index-rzc981b7.js} +20 -16
- package/build/{index-qsqea5pp.js → index-vymh03hj.js} +63 -24
- package/build/{index-cmz1frxb.js → index-x5ta620q.js} +1 -1
- package/build/{index-jsrgf01b.js → index-x9w3tzx7.js} +5 -5
- package/build/{issues-nx5encrk.js → issues-e956aq7d.js} +51 -24
- package/build/{knowledge-x5p0ry2f.js → knowledge-1hat8sct.js} +16 -16
- package/build/{lance-bx9jacev.js → lance-g8wtg17c.js} +7 -7
- package/build/lib/{chunk-x03kpd1g.js → chunk-0fthn5vv.js} +6 -6
- package/build/lib/{chunk-3ejfsrz6.js → chunk-188my1pm.js} +1 -1
- package/build/lib/{chunk-fpw26983.js → chunk-2zvreyrw.js} +2 -2
- package/build/lib/{chunk-1yrb53ek.js → chunk-3jz6jqxd.js} +1 -1
- package/build/lib/{chunk-mxqpgva7.js → chunk-3kpdgtve.js} +1 -1
- package/build/lib/{chunk-y1fv416w.js → chunk-5veg292g.js} +2 -2
- package/build/lib/{chunk-bcb13pka.js → chunk-75yfsj0q.js} +1 -1
- package/build/lib/{chunk-07f5xvw0.js → chunk-8cbwztjg.js} +11 -11
- package/build/lib/{chunk-q8dq94pb.js → chunk-91jtnq4d.js} +21 -13
- package/build/lib/{chunk-gqn2ea41.js → chunk-9gkjbdzc.js} +1 -1
- package/build/lib/{chunk-a8pax9vc.js → chunk-aw579bmb.js} +1 -1
- package/build/lib/{chunk-387s571s.js → chunk-dhpxjgd5.js} +2 -2
- package/build/lib/{chunk-vx58fc19.js → chunk-gyv3p1c4.js} +3 -3
- package/build/lib/{chunk-62g2fdqa.js → chunk-hv8fgz23.js} +6 -6
- package/build/lib/{chunk-t1rc00vt.js → chunk-jfekc6hy.js} +1 -1
- package/build/lib/{chunk-de28cajr.js → chunk-npq9ftzp.js} +2 -1
- package/build/lib/{chunk-t4fv3k72.js → chunk-p3ghsa83.js} +11 -11
- package/build/lib/{chunk-c76cs0qh.js → chunk-p4pt2x7b.js} +4 -4
- package/build/lib/{chunk-yk0cma87.js → chunk-q7j8wy3a.js} +1 -1
- package/build/lib/{chunk-njtbxwbe.js → chunk-qz91fj8n.js} +1 -1
- package/build/lib/{chunk-p4274gxg.js → chunk-rcmken1g.js} +4 -4
- package/build/lib/{chunk-j9w3bbwn.js → chunk-sm1q467w.js} +1 -1
- package/build/lib/{chunk-e69f9g6z.js → chunk-sqt67cq5.js} +61 -8
- package/build/lib/{chunk-bjmzv0yp.js → chunk-szr3nyqa.js} +10 -10
- package/build/lib/{chunk-nw3c0h1s.js → chunk-xh9yr9y0.js} +1 -1
- package/build/lib/{chunk-5gej0kwn.js → chunk-zdvz6e1v.js} +1 -1
- package/build/lib/core/agents/offSecAgent/index.js +9 -9
- package/build/lib/core/agents/offSecAgent/subagentSpawner.js +6 -6
- package/build/lib/core/agents/offSecAgent/tools/index.js +8 -8
- package/build/lib/core/agents/specialized/attackSurface/blackboxAgent.js +11 -11
- package/build/lib/core/agents/specialized/attackSurface/schemas.js +11 -11
- package/build/lib/core/agents/specialized/authenticationAgent/index.js +12 -12
- package/build/lib/core/agents/specialized/codeAgent/agent.js +11 -11
- package/build/lib/core/agents/specialized/findingJudge/agent.js +10 -10
- package/build/lib/core/agents/specialized/findingJudge/index.js +4 -4
- package/build/lib/core/agents/specialized/patching/index.js +12 -12
- package/build/lib/core/agents/specialized/pentest/agent.js +11 -11
- package/build/lib/core/agents/specialized/whiteboxAttackSurface/index.js +11 -11
- package/build/lib/core/ai/ai.d.ts +1 -1
- package/build/lib/core/ai/ai.js +3 -3
- package/build/lib/core/ai/index.js +3 -3
- package/build/lib/core/ai/models/inference.d.ts +2 -0
- package/build/lib/core/ai/utils.d.ts +2 -0
- package/build/lib/core/ai/utils.js +3 -3
- package/build/lib/core/api/index.d.ts +2 -2
- package/build/lib/core/api/index.js +25 -21
- package/build/lib/core/api/issues.d.ts +125 -16
- package/build/lib/core/api/targetedPentest.js +12 -12
- package/build/lib/core/config/config.d.ts +2 -0
- package/build/lib/core/config/index.js +1 -1
- package/build/lib/core/findings/registry.js +4 -4
- package/build/lib/core/providers/types.d.ts +1 -1
- package/build/lib/core/providers/utils.d.ts +1 -1
- package/build/lib/core/session/index.js +3 -3
- package/build/lib/core/session/persistence.js +4 -4
- package/build/lib/core/tools/backends/index.js +3 -3
- package/build/lib/core/workflows/pentest.js +17 -17
- package/build/lib/core/workflows/seams.js +5 -5
- package/build/lib/core/workflows/whiteboxAttackSurface.js +13 -13
- package/build/lib/index.js +24 -24
- package/build/{logs-2r4sgk4v.js → logs-r1ene0wa.js} +16 -16
- package/build/{native-rollout-evidence-gcj4kx7z.js → native-rollout-evidence-ddaypcmp.js} +3 -3
- package/build/{offesecAgent-j1dsctxr.js → offesecAgent-g95mjx3s.js} +6 -6
- package/build/pentest-341705d4.js +23 -0
- package/build/{pentests-5zzqfe81.js → pentests-tj609s19.js} +16 -16
- package/build/recordedRunClient-k9pqxwvp.js +11 -0
- package/build/{subagentSpawner-qgrr66br.js → subagentSpawner-086t0dyq.js} +4 -4
- package/build/{targetedPentest-mp4j7nvp.js → targetedPentest-42vx9fxg.js} +8 -8
- package/build/{targets-t346pzhw.js → targets-yt5mgbx2.js} +16 -16
- package/build/threatModel-d8mesare.js +24 -0
- package/build/{uninstall-rs78zgdm.js → uninstall-z7mexzkf.js} +1 -1
- package/build/{upload-sw0d27ep.js → upload-sr2fekpm.js} +4 -4
- package/build/{utils-tbmh2fee.js → utils-3m9rnw7g.js} +8 -4
- package/package.json +1 -1
- package/src/cli/issues.test.ts +217 -11
- package/src/cli/issues.ts +49 -9
- package/src/cli.ts +1 -0
- package/src/core/ai/ai.ts +1 -0
- package/src/core/ai/inference.test.ts +292 -0
- package/src/core/ai/models/concentrate.ts +13 -0
- package/src/core/ai/models/index.ts +10 -7
- package/src/core/ai/models/inference.ts +11 -0
- package/src/core/ai/models/models.test.ts +28 -0
- package/src/core/ai/models/openai.ts +6 -0
- package/src/core/ai/providers/concentrate.ts +1 -0
- package/src/core/ai/providers/openai-models.test.ts +5 -0
- package/src/core/ai/reasoning.test.ts +4 -0
- package/src/core/ai/reasoning.ts +2 -0
- package/src/core/ai/utils.ts +30 -0
- package/src/core/api/index.ts +4 -0
- package/src/core/api/issues.test.ts +80 -6
- package/src/core/api/issues.ts +137 -16
- package/src/core/config/config.test.ts +7 -0
- package/src/core/config/config.ts +3 -0
- package/src/core/doctor.ts +1 -0
- package/src/core/providers/types.ts +7 -0
- package/src/core/providers/utils.ts +6 -1
- package/src/core/providers/verify.test.ts +54 -0
- package/src/core/providers/verify.ts +28 -0
- package/src/tui/components/chat/input-area.tsx +1 -0
- package/src/tui/components/commands/api-key-input.tsx +2 -0
- package/src/tui/components/commands/operator-wizard.tsx +2 -0
- package/src/tui/components/commands/provider-manager.tsx +3 -0
- package/src/tui/components/model-picker/ModelPicker.tsx +1 -0
- package/src/tui/components/model-picker/__tests__/reasoning-control.tsx +41 -14
- package/src/tui/components/model-picker/model-search.test.ts +11 -0
- package/src/tui/components/model-picker/model-search.ts +1 -0
- package/src/tui/components/model-picker/reasoning-control.test.ts +8 -2
- package/build/agent-k1whwehz.js +0 -14
- package/build/agent-z2ax8k9e.js +0 -14
- package/build/blackboxAgent-mt7ynwgw.js +0 -14
- package/build/pentest-bb4vwwty.js +0 -23
- package/build/recordedRunClient-x5q05e99.js +0 -11
- package/build/threatModel-461njhm7.js +0 -24
package/README.md
CHANGED
|
@@ -114,6 +114,19 @@ discovered model in `/models`. Headless commands accept
|
|
|
114
114
|
`--model-provider hoonify --model <catalog-model-id>`. See
|
|
115
115
|
[Hoonify setup](docs/hoonify.md) for model discovery, token budgets, and live checks.
|
|
116
116
|
|
|
117
|
+
### Inference.net
|
|
118
|
+
|
|
119
|
+
Connect **Inference.net** in `/providers` or set `INFERENCE_API_KEY`, then select
|
|
120
|
+
**DeepSeek V4.1 Flash 1017 Cyber** in `/models`. This is the only Inference.net model
|
|
121
|
+
currently available in Apex. Headless commands accept
|
|
122
|
+
`--model inference:deepseek-v4.1-flash-1017-cyber`.
|
|
123
|
+
|
|
124
|
+
Your team needs [approved model access](https://inference.net/model-access/deepseek-v4.1-flash-1017-cyber)
|
|
125
|
+
before inference will succeed; saving a valid API key does not grant model access.
|
|
126
|
+
Apex uses the provider's default reasoning behavior and the
|
|
127
|
+
[catalog](https://api.inference.net/v1/models) limits of 1,040,000 context tokens
|
|
128
|
+
and 393,216 output tokens.
|
|
129
|
+
|
|
117
130
|
### Custom inference endpoints
|
|
118
131
|
|
|
119
132
|
Bring an OpenAI-compatible endpoint and bearer token through `customProviders`
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CodeAgent2
|
|
3
|
+
} from "./cli-e6gwq7a9.js";
|
|
4
|
+
import"./cli-c70xpef4.js";
|
|
5
|
+
import"./cli-qba2x69h.js";
|
|
6
|
+
import"./cli-k72gvna3.js";
|
|
7
|
+
import"./cli-d5zzvezc.js";
|
|
8
|
+
import"./cli-twtnm4ms.js";
|
|
9
|
+
import"./cli-ww29nrnd.js";
|
|
10
|
+
import"./cli-c2k4xxaw.js";
|
|
11
|
+
import"./cli-6kgf7d6q.js";
|
|
12
|
+
export {
|
|
13
|
+
CodeAgent2 as CodeAgent
|
|
14
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TargetedPentestAgent2,
|
|
3
3
|
buildPentestSystemPrompt2
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
4
|
+
} from "./cli-hr8cdrm9.js";
|
|
5
|
+
import"./cli-c70xpef4.js";
|
|
6
6
|
import"./cli-qba2x69h.js";
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
7
|
+
import"./cli-k72gvna3.js";
|
|
8
|
+
import"./cli-d5zzvezc.js";
|
|
9
|
+
import"./cli-twtnm4ms.js";
|
|
10
|
+
import"./cli-ww29nrnd.js";
|
|
11
11
|
import"./cli-c2k4xxaw.js";
|
|
12
|
-
import"./cli-
|
|
12
|
+
import"./cli-6kgf7d6q.js";
|
|
13
13
|
export {
|
|
14
14
|
TargetedPentestAgent2 as TargetedPentestAgent,
|
|
15
15
|
buildPentestSystemPrompt2 as buildPentestSystemPrompt
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runAuthenticationAgent2
|
|
3
|
+
} from "./cli-6pa9g38w.js";
|
|
4
|
+
import"./cli-c70xpef4.js";
|
|
5
|
+
import"./cli-qba2x69h.js";
|
|
6
|
+
import"./cli-k72gvna3.js";
|
|
7
|
+
import"./cli-d5zzvezc.js";
|
|
8
|
+
import"./cli-twtnm4ms.js";
|
|
9
|
+
import"./cli-ww29nrnd.js";
|
|
10
|
+
import"./cli-c2k4xxaw.js";
|
|
11
|
+
import"./cli-6kgf7d6q.js";
|
|
12
|
+
export {
|
|
13
|
+
runAuthenticationAgent2 as runAuthenticationAgent
|
|
14
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import"./cli-
|
|
2
|
-
import"./cli-
|
|
3
|
-
import"./cli-
|
|
4
|
-
import"./cli-
|
|
1
|
+
import"./cli-d5zzvezc.js";
|
|
2
|
+
import"./cli-6kgf7d6q.js";
|
|
3
|
+
import"./cli-ww29nrnd.js";
|
|
4
|
+
import"./cli-k72gvna3.js";
|
|
5
5
|
import {
|
|
6
6
|
AgentRuntime,
|
|
7
7
|
defineAgent
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-c70xpef4.js";
|
|
9
9
|
import"./cli-qba2x69h.js";
|
|
10
10
|
import {
|
|
11
11
|
stepCountIs2,
|
|
12
12
|
init_dist
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-twtnm4ms.js";
|
|
14
14
|
import"./cli-c2k4xxaw.js";
|
|
15
15
|
import {
|
|
16
16
|
init_zod
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
config2,
|
|
3
3
|
init_config
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
4
|
+
} from "./cli-6kgf7d6q.js";
|
|
5
|
+
import"./cli-ww29nrnd.js";
|
|
6
|
+
import"./cli-k72gvna3.js";
|
|
7
7
|
import {
|
|
8
8
|
AgentEventBus
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-d5zzvezc.js";
|
|
10
10
|
import {
|
|
11
11
|
inspectSessionEvidence2,
|
|
12
12
|
RecordedRunSpecSchema,
|
|
@@ -17,27 +17,27 @@ import {
|
|
|
17
17
|
runRecordedAgent2,
|
|
18
18
|
RunRecoveryBlockedError2,
|
|
19
19
|
resumeRecordedAgent2
|
|
20
|
-
} from "./cli-
|
|
21
|
-
import"./cli-
|
|
22
|
-
import"./cli-
|
|
23
|
-
import"./cli-
|
|
24
|
-
import"./cli-
|
|
25
|
-
import"./cli-
|
|
26
|
-
import"./cli-
|
|
27
|
-
import"./cli-
|
|
28
|
-
import"./cli-
|
|
20
|
+
} from "./cli-2kxz8wct.js";
|
|
21
|
+
import"./cli-pyrrf4ms.js";
|
|
22
|
+
import"./cli-e6gwq7a9.js";
|
|
23
|
+
import"./cli-hrb1gb3f.js";
|
|
24
|
+
import"./cli-cthffb4f.js";
|
|
25
|
+
import"./cli-6pa9g38w.js";
|
|
26
|
+
import"./cli-hr8cdrm9.js";
|
|
27
|
+
import"./cli-h7y81bkg.js";
|
|
28
|
+
import"./cli-pthzx104.js";
|
|
29
29
|
import"./cli-ak23knae.js";
|
|
30
30
|
import {
|
|
31
31
|
resolveWorkerExecutable,
|
|
32
32
|
launchLocalWorker
|
|
33
|
-
} from "./cli-
|
|
34
|
-
import"./cli-
|
|
35
|
-
import"./cli-
|
|
33
|
+
} from "./cli-r9kjgdr6.js";
|
|
34
|
+
import"./cli-91xbw8s1.js";
|
|
35
|
+
import"./cli-c70xpef4.js";
|
|
36
36
|
import"./cli-qba2x69h.js";
|
|
37
37
|
import {
|
|
38
38
|
buildAuthConfig,
|
|
39
39
|
init_ai2
|
|
40
|
-
} from "./cli-
|
|
40
|
+
} from "./cli-twtnm4ms.js";
|
|
41
41
|
import"./cli-c2k4xxaw.js";
|
|
42
42
|
|
|
43
43
|
// src/cli/agent-runs.ts
|
|
@@ -118,7 +118,7 @@ async function runAgentRunsCommand(args) {
|
|
|
118
118
|
if (!isAbsolute(values.store)) {
|
|
119
119
|
throw new Error("agent-runs worker requires --store <absolute database>");
|
|
120
120
|
}
|
|
121
|
-
const { serveLocalRunWorker } = await import("./index-
|
|
121
|
+
const { serveLocalRunWorker } = await import("./index-rzc981b7.js");
|
|
122
122
|
await serveLocalRunWorker({
|
|
123
123
|
runId: values.run,
|
|
124
124
|
databasePath: resolve(values.store)
|
|
@@ -132,7 +132,7 @@ async function runAgentRunsCommand(args) {
|
|
|
132
132
|
${HELP}`);
|
|
133
133
|
}
|
|
134
134
|
if (command === "attach") {
|
|
135
|
-
const { openRecordedRunClient } = await import("./recordedRunClient-
|
|
135
|
+
const { openRecordedRunClient } = await import("./recordedRunClient-k9pqxwvp.js");
|
|
136
136
|
const client = await openRecordedRunClient(values.store);
|
|
137
137
|
const controller = new AbortController;
|
|
138
138
|
const detach = () => controller.abort();
|
|
@@ -15,27 +15,27 @@ import {
|
|
|
15
15
|
searchEndpoints2,
|
|
16
16
|
listDomains2,
|
|
17
17
|
createDomain2
|
|
18
|
-
} from "./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
21
|
-
import"./cli-
|
|
22
|
-
import"./cli-
|
|
23
|
-
import"./cli-
|
|
24
|
-
import"./cli-
|
|
25
|
-
import"./cli-
|
|
26
|
-
import"./cli-
|
|
27
|
-
import"./cli-
|
|
28
|
-
import"./cli-
|
|
29
|
-
import"./cli-
|
|
30
|
-
import"./cli-
|
|
18
|
+
} from "./cli-k72gvna3.js";
|
|
19
|
+
import"./cli-d5zzvezc.js";
|
|
20
|
+
import"./cli-6kgf7d6q.js";
|
|
21
|
+
import"./cli-ww29nrnd.js";
|
|
22
|
+
import"./cli-2kxz8wct.js";
|
|
23
|
+
import"./cli-pyrrf4ms.js";
|
|
24
|
+
import"./cli-e6gwq7a9.js";
|
|
25
|
+
import"./cli-hrb1gb3f.js";
|
|
26
|
+
import"./cli-cthffb4f.js";
|
|
27
|
+
import"./cli-6pa9g38w.js";
|
|
28
|
+
import"./cli-hr8cdrm9.js";
|
|
29
|
+
import"./cli-h7y81bkg.js";
|
|
30
|
+
import"./cli-pthzx104.js";
|
|
31
31
|
import"./cli-ak23knae.js";
|
|
32
32
|
import {
|
|
33
33
|
markCommandFailed
|
|
34
34
|
} from "./cli-z82n3qk1.js";
|
|
35
|
-
import"./cli-
|
|
36
|
-
import"./cli-
|
|
35
|
+
import"./cli-91xbw8s1.js";
|
|
36
|
+
import"./cli-c70xpef4.js";
|
|
37
37
|
import"./cli-qba2x69h.js";
|
|
38
|
-
import"./cli-
|
|
38
|
+
import"./cli-twtnm4ms.js";
|
|
39
39
|
import"./cli-c2k4xxaw.js";
|
|
40
40
|
|
|
41
41
|
// src/cli/apps.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import"./cli-
|
|
3
|
-
import"./cli-
|
|
2
|
+
import"./cli-k72gvna3.js";
|
|
3
|
+
import"./cli-d5zzvezc.js";
|
|
4
4
|
import {
|
|
5
5
|
config2,
|
|
6
6
|
init_config
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-6kgf7d6q.js";
|
|
8
8
|
import {
|
|
9
9
|
getPensarApiUrl2,
|
|
10
10
|
getPensarConsoleUrl2,
|
|
@@ -20,24 +20,24 @@ import {
|
|
|
20
20
|
createWorkspaceSelection2,
|
|
21
21
|
pollWorkspaceSelection2,
|
|
22
22
|
init_auth
|
|
23
|
-
} from "./cli-
|
|
24
|
-
import"./cli-
|
|
25
|
-
import"./cli-
|
|
26
|
-
import"./cli-
|
|
27
|
-
import"./cli-
|
|
28
|
-
import"./cli-
|
|
29
|
-
import"./cli-
|
|
30
|
-
import"./cli-
|
|
31
|
-
import"./cli-
|
|
32
|
-
import"./cli-
|
|
23
|
+
} from "./cli-ww29nrnd.js";
|
|
24
|
+
import"./cli-2kxz8wct.js";
|
|
25
|
+
import"./cli-pyrrf4ms.js";
|
|
26
|
+
import"./cli-e6gwq7a9.js";
|
|
27
|
+
import"./cli-hrb1gb3f.js";
|
|
28
|
+
import"./cli-cthffb4f.js";
|
|
29
|
+
import"./cli-6pa9g38w.js";
|
|
30
|
+
import"./cli-hr8cdrm9.js";
|
|
31
|
+
import"./cli-h7y81bkg.js";
|
|
32
|
+
import"./cli-pthzx104.js";
|
|
33
33
|
import"./cli-ak23knae.js";
|
|
34
34
|
import {
|
|
35
35
|
markCommandFailed
|
|
36
36
|
} from "./cli-z82n3qk1.js";
|
|
37
|
-
import"./cli-
|
|
38
|
-
import"./cli-
|
|
37
|
+
import"./cli-91xbw8s1.js";
|
|
38
|
+
import"./cli-c70xpef4.js";
|
|
39
39
|
import"./cli-qba2x69h.js";
|
|
40
|
-
import"./cli-
|
|
40
|
+
import"./cli-twtnm4ms.js";
|
|
41
41
|
import"./cli-c2k4xxaw.js";
|
|
42
42
|
import {
|
|
43
43
|
__require
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BlackboxAttackSurfaceAgent2
|
|
3
|
+
} from "./cli-pyrrf4ms.js";
|
|
4
|
+
import"./cli-c70xpef4.js";
|
|
5
|
+
import"./cli-qba2x69h.js";
|
|
6
|
+
import"./cli-k72gvna3.js";
|
|
7
|
+
import"./cli-d5zzvezc.js";
|
|
8
|
+
import"./cli-twtnm4ms.js";
|
|
9
|
+
import"./cli-ww29nrnd.js";
|
|
10
|
+
import"./cli-c2k4xxaw.js";
|
|
11
|
+
import"./cli-6kgf7d6q.js";
|
|
12
|
+
export {
|
|
13
|
+
BlackboxAttackSurfaceAgent2 as BlackboxAttackSurfaceAgent
|
|
14
|
+
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import"./cli-
|
|
2
|
-
import"./cli-
|
|
3
|
-
import"./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
1
|
+
import"./cli-6kgf7d6q.js";
|
|
2
|
+
import"./cli-ww29nrnd.js";
|
|
3
|
+
import"./cli-d5zzvezc.js";
|
|
4
|
+
import"./cli-k72gvna3.js";
|
|
5
|
+
import"./cli-pyrrf4ms.js";
|
|
6
|
+
import"./cli-hr8cdrm9.js";
|
|
7
|
+
import"./cli-h7y81bkg.js";
|
|
8
8
|
import {
|
|
9
9
|
readExecutionMetrics,
|
|
10
10
|
writeExecutionMetrics,
|
|
11
11
|
runPentestWorkflow2
|
|
12
|
-
} from "./cli-
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
12
|
+
} from "./cli-cthffb4f.js";
|
|
13
|
+
import"./cli-e6gwq7a9.js";
|
|
14
|
+
import"./cli-hrb1gb3f.js";
|
|
15
15
|
import {
|
|
16
16
|
EMPTY_SESSION_TOKEN_USAGE,
|
|
17
17
|
accumulateSessionTokens
|
|
18
18
|
} from "./cli-ag6jtndp.js";
|
|
19
|
-
import"./cli-
|
|
19
|
+
import"./cli-c70xpef4.js";
|
|
20
20
|
import"./cli-qba2x69h.js";
|
|
21
21
|
import {
|
|
22
22
|
normalizeStepUsage,
|
|
23
23
|
init_ai2
|
|
24
|
-
} from "./cli-
|
|
24
|
+
} from "./cli-twtnm4ms.js";
|
|
25
25
|
import"./cli-c2k4xxaw.js";
|
|
26
26
|
|
|
27
27
|
// src/core/api/blackboxPentest.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
config2,
|
|
3
3
|
init_config
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-6kgf7d6q.js";
|
|
5
5
|
import {
|
|
6
6
|
init_constants
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-ww29nrnd.js";
|
|
8
8
|
import {
|
|
9
9
|
buildSessionWorkspaceSection,
|
|
10
10
|
buildBaseSystemPrompt,
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
apiRequest,
|
|
13
13
|
ALL_TOOL_NAMES2,
|
|
14
14
|
SKILL_TOOL_NAMES2
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-k72gvna3.js";
|
|
16
16
|
import {
|
|
17
17
|
runOffensiveSecurityAgent2
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-91xbw8s1.js";
|
|
19
19
|
import {
|
|
20
20
|
defineAgent
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-c70xpef4.js";
|
|
22
22
|
import {
|
|
23
23
|
toolModelMessageSchema,
|
|
24
24
|
modelMessageSchema,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
getModelInfo,
|
|
42
42
|
buildAuthConfig,
|
|
43
43
|
init_ai2
|
|
44
|
-
} from "./cli-
|
|
44
|
+
} from "./cli-twtnm4ms.js";
|
|
45
45
|
import {
|
|
46
46
|
newSessionId,
|
|
47
47
|
isSessionId,
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
import {
|
|
57
57
|
getCurrentVersion,
|
|
58
58
|
init_installation
|
|
59
|
-
} from "./cli-
|
|
59
|
+
} from "./cli-5c420jyh.js";
|
|
60
60
|
import {
|
|
61
61
|
exports_iso,
|
|
62
62
|
string,
|
|
@@ -9225,6 +9225,12 @@ async function listIssues2(filters) {
|
|
|
9225
9225
|
async function getIssue2(issueId) {
|
|
9226
9226
|
return apiRequest("GET", `/issues/${issueId}`);
|
|
9227
9227
|
}
|
|
9228
|
+
async function getIssueEvidence2(issueId) {
|
|
9229
|
+
return apiRequest("GET", `/issues/${issueId}/evidence`);
|
|
9230
|
+
}
|
|
9231
|
+
async function listIssueRetests2(issueId) {
|
|
9232
|
+
return apiRequest("GET", `/issues/${issueId}/retests`);
|
|
9233
|
+
}
|
|
9228
9234
|
async function updateIssue2(issueId, data) {
|
|
9229
9235
|
return apiRequest("PATCH", `/issues/${issueId}`, data);
|
|
9230
9236
|
}
|
|
@@ -12662,4 +12668,4 @@ Working directory: ${input.codebasePath}`;
|
|
|
12662
12668
|
return { session, outputPath: input.outputPath };
|
|
12663
12669
|
}
|
|
12664
12670
|
|
|
12665
|
-
export { inspectSessionEvidence2, RecordedRunSpecSchema, acquireLocalRunLock, resolveRunDatabasePath, openSqliteRunStore, CLOSED_DISPOSITIONS2, listScans2, getScan2, listPentestTargets2, dispatchPentest2, listIssues2, getIssue2, updateIssue2, listIssueComments2, createIssueComment2, retestIssue2, linkPullRequest2, listIssuePullRequests2, listFixes2, getFix2, listAgentLogs2, searchAgentLogs2, listTargetLogs2, searchTargetLogs2, KNOWLEDGE_CATEGORIES2, KNOWLEDGE_STATUSES2, listKnowledge2, getKnowledge2, createKnowledge2, updateKnowledge2, archiveKnowledge2, resolveWorkerEndpoint, LocalWorkerTransportError, WorkerConnectionError, workerRequest, runRecordedAgent2, RunRecoveryBlockedError2, resumeRecordedAgent2, serveLocalRunWorker2, buildPentestPrompt, buildThreatModelPrompt, createSkillsRegistry, runThreatModelWorkflow2 };
|
|
12671
|
+
export { inspectSessionEvidence2, RecordedRunSpecSchema, acquireLocalRunLock, resolveRunDatabasePath, openSqliteRunStore, CLOSED_DISPOSITIONS2, listScans2, getScan2, listPentestTargets2, dispatchPentest2, listIssues2, getIssue2, getIssueEvidence2, listIssueRetests2, updateIssue2, listIssueComments2, createIssueComment2, retestIssue2, linkPullRequest2, listIssuePullRequests2, listFixes2, getFix2, listAgentLogs2, searchAgentLogs2, listTargetLogs2, searchTargetLogs2, KNOWLEDGE_CATEGORIES2, KNOWLEDGE_STATUSES2, listKnowledge2, getKnowledge2, createKnowledge2, updateKnowledge2, archiveKnowledge2, resolveWorkerEndpoint, LocalWorkerTransportError, WorkerConnectionError, workerRequest, runRecordedAgent2, RunRecoveryBlockedError2, resumeRecordedAgent2, serveLocalRunWorker2, buildPentestPrompt, buildThreatModelPrompt, createSkillsRegistry, runThreatModelWorkflow2 };
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
AgentRuntime,
|
|
10
10
|
defineAgent
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-c70xpef4.js";
|
|
12
12
|
import {
|
|
13
13
|
hasToolCall,
|
|
14
14
|
init_dist,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
init_structured,
|
|
17
17
|
scopedLogger,
|
|
18
18
|
init_lazyLogger
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-twtnm4ms.js";
|
|
20
20
|
|
|
21
21
|
// src/core/agents/specialized/authenticationAgent/agent.ts
|
|
22
22
|
init_dist();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-k72gvna3.js";
|
|
4
4
|
import {
|
|
5
5
|
startAgentExecution,
|
|
6
6
|
resolveRootReasoning,
|
|
7
7
|
persistRootReasoningOverride
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-pthzx104.js";
|
|
9
9
|
|
|
10
10
|
// src/core/api/offesecAgent.ts
|
|
11
11
|
async function runOffensiveSecurityAgent2(input) {
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
openSqliteRunStore,
|
|
5
5
|
resolveWorkerEndpoint,
|
|
6
6
|
workerRequest
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-2kxz8wct.js";
|
|
8
8
|
import {
|
|
9
9
|
launchLocalWorker
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-r9kjgdr6.js";
|
|
11
11
|
|
|
12
12
|
// src/core/runtime/recordedRunClient.ts
|
|
13
13
|
import { setTimeout as delay } from "node:timers/promises";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
resolveItemHooks,
|
|
8
8
|
spawnBatch2,
|
|
9
9
|
inProcessSubagentSpawner2
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-d5zzvezc.js";
|
|
11
11
|
import {
|
|
12
12
|
collectCommand,
|
|
13
13
|
toGrpcPentestContext,
|
|
@@ -15,24 +15,24 @@ import {
|
|
|
15
15
|
pLimit,
|
|
16
16
|
PLAN_MODE_TOOL_NAMES,
|
|
17
17
|
OffensiveSecurityAgent
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-k72gvna3.js";
|
|
19
19
|
import {
|
|
20
20
|
BlackboxAttackSurfaceAgent2
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-pyrrf4ms.js";
|
|
22
22
|
import {
|
|
23
23
|
TargetedPentestAgent2,
|
|
24
24
|
buildPentestSystemPrompt2
|
|
25
|
-
} from "./cli-
|
|
25
|
+
} from "./cli-hr8cdrm9.js";
|
|
26
26
|
import {
|
|
27
27
|
buildPentestReport,
|
|
28
28
|
renderJson,
|
|
29
29
|
renderMarkdown,
|
|
30
30
|
REPORT_FILENAME_MD,
|
|
31
31
|
REPORT_FILENAME_JSON
|
|
32
|
-
} from "./cli-
|
|
32
|
+
} from "./cli-h7y81bkg.js";
|
|
33
33
|
import {
|
|
34
34
|
CodeAgent2
|
|
35
|
-
} from "./cli-
|
|
35
|
+
} from "./cli-e6gwq7a9.js";
|
|
36
36
|
import {
|
|
37
37
|
WHITEBOX_APPS_DISCOVERY_SYSTEM_PROMPT2,
|
|
38
38
|
WHITEBOX_ENDPOINT_DOCUMENTATION_SYSTEM_PROMPT,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
AppInfoSchema2,
|
|
42
42
|
AppsDiscoveryResultSchema2,
|
|
43
43
|
DiscoverySummarySchema2
|
|
44
|
-
} from "./cli-
|
|
44
|
+
} from "./cli-hrb1gb3f.js";
|
|
45
45
|
import {
|
|
46
46
|
createThreatModelPrompt
|
|
47
47
|
} from "./cli-q126f6ef.js";
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
init_structured,
|
|
54
54
|
scopedLogger,
|
|
55
55
|
init_lazyLogger
|
|
56
|
-
} from "./cli-
|
|
56
|
+
} from "./cli-twtnm4ms.js";
|
|
57
57
|
import {
|
|
58
58
|
newSessionId,
|
|
59
59
|
init_id
|
|
@@ -8216,7 +8216,7 @@ async function runPentestSwarm2(input) {
|
|
|
8216
8216
|
}
|
|
8217
8217
|
async function runPentestWorkflow2(input) {
|
|
8218
8218
|
if (input.fastStrike) {
|
|
8219
|
-
const { runFastStrike } = await import("./fastStrike-
|
|
8219
|
+
const { runFastStrike } = await import("./fastStrike-f5h0bwrp.js");
|
|
8220
8220
|
return runFastStrike(input);
|
|
8221
8221
|
}
|
|
8222
8222
|
const {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
getModelSettings,
|
|
7
7
|
generateObjectResponse,
|
|
8
8
|
init_ai2
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-twtnm4ms.js";
|
|
10
10
|
import {
|
|
11
11
|
newSessionId,
|
|
12
12
|
init_id,
|
|
@@ -909,7 +909,7 @@ async function spawnBatch2(spawner, requests, opts, limiter) {
|
|
|
909
909
|
});
|
|
910
910
|
}
|
|
911
911
|
async function runSpawnedPentestWorker(spec, input) {
|
|
912
|
-
const { TargetedPentestAgent } = await import("./agent-
|
|
912
|
+
const { TargetedPentestAgent } = await import("./agent-5k6qd29v.js");
|
|
913
913
|
const hooks = resolveItemHooks(input.hooks, input.seams, spec, 0);
|
|
914
914
|
const agent = new TargetedPentestAgent({
|
|
915
915
|
target: spec.target,
|
|
@@ -981,7 +981,7 @@ var runPentestChild = async (spec, ctx) => {
|
|
|
981
981
|
};
|
|
982
982
|
};
|
|
983
983
|
var runCodeChild = async (spec, ctx) => {
|
|
984
|
-
const { CodeAgent } = await import("./agent-
|
|
984
|
+
const { CodeAgent } = await import("./agent-02pnejnw.js");
|
|
985
985
|
const agent = new CodeAgent({
|
|
986
986
|
findingPolicy: ctx.findingPolicy,
|
|
987
987
|
codebasePath: spec.codebasePath,
|
|
@@ -1012,7 +1012,7 @@ var runCodeChild = async (spec, ctx) => {
|
|
|
1012
1012
|
return { run: () => agent.consume(), drained: () => agent.drained };
|
|
1013
1013
|
};
|
|
1014
1014
|
var runWhiteboxChild = async (spec, ctx) => {
|
|
1015
|
-
const { WhiteboxAttackSurfaceAgent } = await import("./index-
|
|
1015
|
+
const { WhiteboxAttackSurfaceAgent } = await import("./index-p1en670g.js");
|
|
1016
1016
|
const agent = new WhiteboxAttackSurfaceAgent({
|
|
1017
1017
|
findingPolicy: ctx.findingPolicy,
|
|
1018
1018
|
codebasePath: spec.codebasePath,
|
|
@@ -1034,7 +1034,7 @@ var runWhiteboxChild = async (spec, ctx) => {
|
|
|
1034
1034
|
return { run: () => agent.consume(), drained: () => agent.drained };
|
|
1035
1035
|
};
|
|
1036
1036
|
var runBlackboxChild = async (spec, ctx) => {
|
|
1037
|
-
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-
|
|
1037
|
+
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-zfvw66gx.js");
|
|
1038
1038
|
const agent = new BlackboxAttackSurfaceAgent({
|
|
1039
1039
|
findingPolicy: ctx.findingPolicy,
|
|
1040
1040
|
target: spec.target,
|
|
@@ -1055,7 +1055,7 @@ var runBlackboxChild = async (spec, ctx) => {
|
|
|
1055
1055
|
return { run: () => agent.consume(), drained: () => agent.drained };
|
|
1056
1056
|
};
|
|
1057
1057
|
var runAuthChild = async (spec, ctx) => {
|
|
1058
|
-
const { runAuthenticationAgent } = await import("./agent-
|
|
1058
|
+
const { runAuthenticationAgent } = await import("./agent-7k53k922.js");
|
|
1059
1059
|
return {
|
|
1060
1060
|
run: () => runAuthenticationAgent({
|
|
1061
1061
|
findingPolicy: ctx.findingPolicy,
|
|
@@ -1079,7 +1079,7 @@ var runAuthChild = async (spec, ctx) => {
|
|
|
1079
1079
|
};
|
|
1080
1080
|
};
|
|
1081
1081
|
var runJudgeChild = async (spec, ctx) => {
|
|
1082
|
-
const { judgeFinding } = await import("./index-
|
|
1082
|
+
const { judgeFinding } = await import("./index-h41d5ahy.js");
|
|
1083
1083
|
return {
|
|
1084
1084
|
run: () => judgeFinding(spec.judgeInput, {
|
|
1085
1085
|
waitForDrain: spec.waitForDrain,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
getCurrentVersion,
|
|
6
6
|
init_installation
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-5c420jyh.js";
|
|
8
8
|
import {
|
|
9
9
|
NEVER,
|
|
10
10
|
string,
|
|
@@ -300,6 +300,7 @@ function applyEnvFallbacks(parsedConfig) {
|
|
|
300
300
|
googleAPIKey: parsedConfig.googleAPIKey ?? process.env.GOOGLE_GENERATIVE_AI_API_KEY,
|
|
301
301
|
openRouterAPIKey: parsedConfig.openRouterAPIKey ?? process.env.OPENROUTER_API_KEY,
|
|
302
302
|
concentrateAPIKey: parsedConfig.concentrateAPIKey ?? process.env.CONCENTRATE_API_KEY,
|
|
303
|
+
inferenceAPIKey: parsedConfig.inferenceAPIKey ?? process.env.INFERENCE_API_KEY,
|
|
303
304
|
inceptionAPIKey: parsedConfig.inceptionAPIKey ?? process.env.INCEPTION_API_KEY,
|
|
304
305
|
hoonifyAPIKey: parsedConfig.hoonifyAPIKey ?? process.env.HOONIFY_API_KEY,
|
|
305
306
|
hoonifyModels: undefined,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentRuntime,
|
|
3
3
|
defineAgent
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-c70xpef4.js";
|
|
5
5
|
import {
|
|
6
6
|
stepCountIs2,
|
|
7
7
|
init_dist
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-twtnm4ms.js";
|
|
9
9
|
|
|
10
10
|
// src/core/agents/specialized/codeAgent/agent.ts
|
|
11
11
|
init_dist();
|