@pensar/apex 2.6.1 → 2.7.0-canary.21cb83dc
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-yby11zaq.js → agent-68t2wzmc.js} +6 -6
- package/build/agent-jhekpern.js +13 -0
- package/build/{agent-ayreaj6z.js → agent-qvreg8a4.js} +5 -5
- package/build/{agent-runs-g37vkrjr.js → agent-runs-30dvbvmm.js} +18 -18
- package/build/agent-vybw255f.js +13 -0
- package/build/{apps-xn6km9yn.js → apps-na0y0992.js} +13 -13
- package/build/{auth-d105wc64.js → auth-dz2c5thx.js} +13 -13
- package/build/{blackboxAgent-s56sgx9b.js → blackboxAgent-2mwvaajb.js} +6 -6
- package/build/{blackboxPentest-ps78v3w7.js → blackboxPentest-s2mfze9p.js} +17 -12
- package/build/{cli-kb21qhvm.js → cli-1pmfnz1a.js} +4 -3
- package/build/{cli-ae8jqxqr.js → cli-563yntrb.js} +2 -2
- package/build/{cli-7eea4e2y.js → cli-5ab346kd.js} +6 -6
- package/build/{cli-1ve18npr.js → cli-72y76bpg.js} +3 -2
- package/build/{cli-fy6vh2a7.js → cli-98wmmphf.js} +1 -1
- package/build/{cli-c05y640n.js → cli-9jscnhtg.js} +1 -1
- package/build/{cli-3sp6nd8d.js → cli-9kk9tm58.js} +2 -2
- package/build/{cli-d37a42dc.js → cli-9pz9wjt2.js} +101 -18
- package/build/{cli-dpsw2fe6.js → cli-a6x4jm5a.js} +476 -193
- package/build/{cli-az3xq70v.js → cli-cfrdr25z.js} +1 -1
- package/build/{cli-ngq9dr8n.js → cli-fdrrbb9p.js} +3 -3
- package/build/{cli-k2nwxta0.js → cli-t09zj814.js} +2 -2
- package/build/{cli-qgz1q9g5.js → cli-t4q4t4dx.js} +223 -76
- package/build/{cli-xtc2t6me.js → cli-vdd1s3x9.js} +103 -39
- package/build/{cli-gx71jcke.js → cli-vn4cwac3.js} +1 -1
- package/build/{cli-65g6rcat.js → cli-w9nw2a4z.js} +1 -1
- package/build/{cli-n2en7j5b.js → cli-z7ysyrr4.js} +1 -1
- package/build/{cli-709rvekb.js → cli-zbbtr4sb.js} +4 -2
- package/build/cli.js +70 -40
- package/build/{config-zpqkd5cz.js → config-nkzm9arw.js} +1 -1
- package/build/{fastStrike-mcjdvwez.js → fastStrike-16jw1s61.js} +67 -15
- package/build/{fixes-kytx5dmj.js → fixes-6wxk22v5.js} +13 -13
- package/build/{index-4vqdgb42.js → index-36p56pcf.js} +1473 -1217
- package/build/{index-je6hcsqr.js → index-6nejymsc.js} +1 -1
- package/build/{index-fv64eb32.js → index-asm4y7e4.js} +2 -2
- package/build/{index-n65z6v7b.js → index-bfmn52za.js} +6 -6
- package/build/{index-qv4cc65p.js → index-bt4r13q7.js} +13 -13
- package/build/{index-dr3tg1w3.js → index-gfq1rp1q.js} +1 -1
- package/build/{index-wqetp6gq.js → index-j9pxgrzd.js} +12 -7
- package/build/{index-r9yjkfrv.js → index-n9kapn1x.js} +4 -4
- package/build/{index-ns4m4s01.js → index-tr6evhyg.js} +4 -4
- package/build/{issues-eb3q9d3a.js → issues-7rmf4ker.js} +13 -13
- package/build/{knowledge-fqsvtx0f.js → knowledge-s2sxh8nb.js} +13 -13
- package/build/lib/{chunk-1azdancq.js → chunk-0dnx79b1.js} +1 -1
- package/build/lib/{chunk-4hwzqthr.js → chunk-161ak2am.js} +3 -2
- package/build/lib/{chunk-z137x08b.js → chunk-1rqbhx4b.js} +7 -5
- package/build/lib/{chunk-1yct6cra.js → chunk-3hjvdf67.js} +1 -1
- package/build/lib/{chunk-r2dkp4tb.js → chunk-5j8pp0xf.js} +1 -1
- package/build/lib/{chunk-3c00n0cy.js → chunk-77se1d35.js} +8 -3
- package/build/lib/{chunk-yrnrbjes.js → chunk-7tft4b8b.js} +4 -2
- package/build/lib/{chunk-w66ce82a.js → chunk-8njjwwcw.js} +4 -2
- package/build/lib/{chunk-v3dk9j7k.js → chunk-aq9eyxas.js} +80 -21
- package/build/lib/{chunk-9tt2021m.js → chunk-d05cvnv8.js} +9 -9
- package/build/lib/{chunk-e8yy2k73.js → chunk-f3sq4896.js} +28 -2
- package/build/lib/{chunk-1fy8azee.js → chunk-fasqtjq1.js} +1 -1
- package/build/lib/{chunk-1jvwqnem.js → chunk-gm3b9j4y.js} +104 -40
- package/build/lib/{chunk-r4j8ybn9.js → chunk-hys7nemr.js} +87 -36
- package/build/lib/{chunk-7pwa92rn.js → chunk-j9668h16.js} +1 -1
- package/build/lib/{chunk-ba41jh41.js → chunk-kcw4cpr3.js} +418 -133
- package/build/lib/{chunk-z96pbjhd.js → chunk-m4swxy5r.js} +13 -6
- package/build/lib/{chunk-xhdpgpkm.js → chunk-mbsde9d0.js} +2 -2
- package/build/lib/{chunk-9yksqgzr.js → chunk-mpvjfvz0.js} +20 -13
- package/build/lib/{chunk-2qsq76xq.js → chunk-qkz5sm0d.js} +128 -34
- package/build/lib/{chunk-nhfax4gb.js → chunk-rfyjqybp.js} +1 -1
- package/build/lib/{chunk-mg03jdmt.js → chunk-vsnwzne5.js} +1 -1
- package/build/lib/{chunk-acgbyf5h.js → chunk-ydxhkgjw.js} +3 -2
- package/build/lib/{chunk-bb0ekhkw.js → chunk-z8kej0sp.js} +69 -18
- package/build/lib/core/agents/agentRuntime.d.ts +2 -1
- package/build/lib/core/agents/defineAgent.d.ts +3 -2
- package/build/lib/core/agents/offSecAgent/index.d.ts +3 -1
- package/build/lib/core/agents/offSecAgent/index.js +10 -8
- package/build/lib/core/agents/offSecAgent/prompt.d.ts +3 -1
- package/build/lib/core/agents/offSecAgent/subagentSpawner.d.ts +2 -1
- package/build/lib/core/agents/offSecAgent/subagentSpawner.js +5 -5
- package/build/lib/core/agents/offSecAgent/tools/index.js +4 -4
- package/build/lib/core/agents/offSecAgent/tools/listMemories.d.ts +11 -1
- package/build/lib/core/agents/offSecAgent/tools/reportError.d.ts +2 -1
- package/build/lib/core/agents/offSecAgent/tools/runPentestWorkflow.d.ts +20 -1
- package/build/lib/core/agents/offSecAgent/tools/spawnPentestAgent.d.ts +4 -7
- package/build/lib/core/agents/offSecAgent/tools/spawnPentestSwarm.d.ts +7 -1
- package/build/lib/core/agents/offSecAgent/tools/types.d.ts +2 -1
- package/build/lib/core/agents/offSecAgent/types.d.ts +7 -1
- package/build/lib/core/agents/specialized/attackSurface/blackboxAgent.js +9 -9
- package/build/lib/core/agents/specialized/attackSurface/schemas.js +9 -9
- package/build/lib/core/agents/specialized/authenticationAgent/index.js +10 -10
- package/build/lib/core/agents/specialized/codeAgent/agent.js +9 -9
- package/build/lib/core/agents/specialized/codeAgent/prompts.d.ts +1 -0
- package/build/lib/core/agents/specialized/findingJudge/agent.js +8 -8
- package/build/lib/core/agents/specialized/findingJudge/index.js +3 -3
- package/build/lib/core/agents/specialized/patching/index.js +10 -10
- package/build/lib/core/agents/specialized/pentest/agent.d.ts +18 -4
- package/build/lib/core/agents/specialized/pentest/agent.js +11 -9
- package/build/lib/core/agents/specialized/whiteboxAttackSurface/index.js +9 -9
- package/build/lib/core/ai/ai.d.ts +23 -6
- package/build/lib/core/ai/ai.js +2 -2
- package/build/lib/core/ai/index.js +2 -2
- package/build/lib/core/ai/models/claude-capabilities.d.ts +3 -2
- package/build/lib/core/ai/models/concentrate.d.ts +1 -0
- package/build/lib/core/ai/models/index.d.ts +1 -1
- package/build/lib/core/ai/providers/concentrate.d.ts +1 -0
- package/build/lib/core/ai/utils.d.ts +2 -0
- package/build/lib/core/ai/utils.js +4 -2
- package/build/lib/core/api/index.d.ts +3 -0
- package/build/lib/core/api/index.js +22 -19
- package/build/lib/core/api/targetedPentest.d.ts +1 -0
- package/build/lib/core/api/targetedPentest.js +10 -10
- package/build/lib/core/config/config.d.ts +3 -0
- package/build/lib/core/config/index.js +1 -1
- package/build/lib/core/findings/registry.js +3 -3
- package/build/lib/core/session/index.d.ts +12 -0
- package/build/lib/core/session/index.js +2 -2
- package/build/lib/core/session/persistence.d.ts +7 -0
- package/build/lib/core/session/persistence.js +7 -3
- package/build/lib/core/workflows/fastStrike.d.ts +3 -1
- package/build/lib/core/workflows/pentest.d.ts +8 -1
- package/build/lib/core/workflows/pentest.js +15 -15
- package/build/lib/core/workflows/seams.js +4 -4
- package/build/lib/core/workflows/whiteboxAttackSurface.js +11 -11
- package/build/lib/index.js +22 -22
- package/build/{logs-x62b7hk1.js → logs-70fyr848.js} +13 -13
- package/build/{native-rollout-evidence-c9yhfqcs.js → native-rollout-evidence-ntensvzb.js} +3 -3
- package/build/{offesecAgent-5whnpeta.js → offesecAgent-kk62tf60.js} +4 -4
- package/build/pentest-4jgznn7h.js +22 -0
- package/build/{pentests-e0f32aqx.js → pentests-3e41hj08.js} +13 -13
- package/build/recordedRunClient-w34kcch1.js +11 -0
- package/build/{targetedPentest-rcbs4nvp.js → targetedPentest-t9snxcj2.js} +18 -11
- package/build/{targets-xj9g3q0z.js → targets-1pyf21c7.js} +13 -13
- package/build/threatModel-48y5qjze.js +21 -0
- package/build/{uninstall-7s784q4a.js → uninstall-fbydd9t6.js} +1 -1
- package/build/{upload-4gvhwmvr.js → upload-sbhwe2fq.js} +4 -4
- package/build/{utils-cjrz64pc.js → utils-23903gcj.js} +3 -3
- package/package.json +1 -1
- package/src/cli.ts +48 -14
- package/src/core/agents/agentRuntime.test.ts +38 -0
- package/src/core/agents/agentRuntime.ts +5 -2
- package/src/core/agents/defineAgent.ts +3 -1
- package/src/core/agents/offSecAgent/index.ts +3 -0
- package/src/core/agents/offSecAgent/offensiveSecurityAgent.test.ts +92 -5
- package/src/core/agents/offSecAgent/offensiveSecurityAgent.ts +70 -31
- package/src/core/agents/offSecAgent/prompt.test.ts +46 -0
- package/src/core/agents/offSecAgent/prompt.ts +52 -8
- package/src/core/agents/offSecAgent/selectiveConstruction.publicPath.test.ts +38 -0
- package/src/core/agents/offSecAgent/selectiveConstruction.test.ts +64 -0
- package/src/core/agents/offSecAgent/subagentSpawner.ts +12 -1
- package/src/core/agents/offSecAgent/tools/delegateAuth.ts +1 -0
- package/src/core/agents/offSecAgent/tools/listMemories.test.ts +230 -0
- package/src/core/agents/offSecAgent/tools/listMemories.ts +73 -6
- package/src/core/agents/offSecAgent/tools/reportError.test.ts +6 -0
- package/src/core/agents/offSecAgent/tools/reportError.ts +10 -2
- package/src/core/agents/offSecAgent/tools/runAttackSurface.ts +2 -0
- package/src/core/agents/offSecAgent/tools/runPentestWorkflow.test.ts +57 -0
- package/src/core/agents/offSecAgent/tools/runPentestWorkflow.ts +19 -1
- package/src/core/agents/offSecAgent/tools/runWhiteboxScan.ts +5 -2
- package/src/core/agents/offSecAgent/tools/spawnCodingAgent.ts +1 -0
- package/src/core/agents/offSecAgent/tools/spawnPentestAgent.test.ts +72 -2
- package/src/core/agents/offSecAgent/tools/spawnPentestAgent.ts +32 -11
- package/src/core/agents/offSecAgent/tools/spawnPentestSwarm.ts +25 -5
- package/src/core/agents/offSecAgent/tools/threatModelGenerator.ts +1 -0
- package/src/core/agents/offSecAgent/tools/types.ts +6 -1
- package/src/core/agents/offSecAgent/tools/updateTask.ts +5 -1
- package/src/core/agents/offSecAgent/tools/whiteboxCandidates.ts +11 -4
- package/src/core/agents/offSecAgent/types.ts +9 -0
- package/src/core/agents/specialized/codeAgent/agent.test.ts +7 -0
- package/src/core/agents/specialized/codeAgent/agent.ts +9 -2
- package/src/core/agents/specialized/codeAgent/prompts.ts +6 -0
- package/src/core/agents/specialized/pentest/agent.test.ts +116 -0
- package/src/core/agents/specialized/pentest/agent.ts +178 -49
- package/src/core/agents/specialized/pentest/results.test.ts +59 -4
- package/src/core/agents/specialized/whiteboxAttackSurface/endpointDocumentationAgent.ts +1 -0
- package/src/core/ai/ai.operator-context.bench.test.ts +1408 -0
- package/src/core/ai/ai.recorded-context.test.ts +74 -0
- package/src/core/ai/ai.test.ts +54 -0
- package/src/core/ai/ai.ts +312 -82
- package/src/core/ai/compactionTelemetry.test.ts +2 -2
- package/src/core/ai/models/anthropic.ts +6 -0
- package/src/core/ai/models/bedrock.ts +18 -0
- package/src/core/ai/models/claude-capabilities.ts +29 -8
- package/src/core/ai/models/concentrate.ts +52 -0
- package/src/core/ai/models/index.ts +25 -4
- package/src/core/ai/models/models.test.ts +154 -0
- package/src/core/ai/models/openrouter.ts +43 -1
- package/src/core/ai/providers/anthropic-models.test.ts +60 -1
- package/src/core/ai/providers/bedrock-models.test.ts +81 -0
- package/src/core/ai/providers/concentrate.test.ts +31 -0
- package/src/core/ai/providers/concentrate.ts +11 -0
- package/src/core/ai/providers/gateway-models.test.ts +16 -6
- package/src/core/ai/utils.native-rollout-evidence.test.ts +1 -0
- package/src/core/ai/utils.ts +189 -143
- package/src/core/api/blackboxPentest.ts +9 -1
- package/src/core/api/index.ts +9 -0
- package/src/core/api/targetedPentest.ts +19 -5
- package/src/core/config/config.test.ts +35 -0
- package/src/core/config/config.ts +5 -0
- package/src/core/observability/telemetry.test.ts +2 -3
- package/src/core/session/index.ts +5 -0
- package/src/core/session/persistence.test.ts +62 -0
- package/src/core/session/persistence.ts +56 -0
- package/src/core/workflows/fastStrike.seams.test.ts +149 -0
- package/src/core/workflows/fastStrike.test.ts +18 -1
- package/src/core/workflows/fastStrike.ts +103 -11
- package/src/core/workflows/pentest.test.ts +104 -0
- package/src/core/workflows/pentest.ts +110 -7
- package/src/core/workflows/seams.test.ts +13 -0
- package/src/core/workflows/seams.ts +5 -1
- package/src/core/workflows/whiteboxAttackSurface.ts +1 -0
- package/src/tui/components/chat/loading-indicator.tsx +20 -4
- package/src/tui/components/chat/message-list.tsx +1 -0
- package/src/tui/components/commands/__tests__/advanced-settings-lifecycle.tsx +176 -0
- package/src/tui/components/commands/advanced-settings.test.ts +28 -0
- package/src/tui/components/commands/advanced-settings.tsx +237 -19
- package/src/tui/components/operator-dashboard/index.tsx +46 -9
- package/src/tui/components/operator-dashboard/logic.test.ts +106 -0
- package/src/tui/components/operator-dashboard/logic.ts +42 -2
- package/src/tui/components/operator-dashboard/run-events.test.ts +3 -1
- package/src/tui/components/shared/__tests__/tool-renderer-lifecycle.tsx +18 -0
- package/src/tui/components/shared/action-label.test.ts +9 -0
- package/src/tui/components/shared/compacting-icon.tsx +18 -0
- package/src/tui/components/shared/index.ts +1 -0
- package/src/tui/components/shared/tool-registry.ts +1 -0
- package/src/tui/components/shared/tool-renderer.tsx +21 -7
- package/src/tui/context/route.tsx +1 -0
- package/src/tui/keybindings/registry.ts +2 -0
- package/build/agent-6w7egcf1.js +0 -13
- package/build/agent-9zx75feh.js +0 -13
- package/build/pentest-e61hc38s.js +0 -22
- package/build/recordedRunClient-dp032c32.js +0 -11
- package/build/threatModel-jkxfa40s.js +0 -21
|
@@ -18,30 +18,30 @@ import {
|
|
|
18
18
|
ProbeAuthEndpointsInputSchema2,
|
|
19
19
|
ProbeRegistrationInputSchema2,
|
|
20
20
|
AttemptRegistrationInputSchema2
|
|
21
|
-
} from "../../../../chunk-
|
|
21
|
+
} from "../../../../chunk-j9668h16.js";
|
|
22
22
|
import {
|
|
23
23
|
AuthenticationAgent2,
|
|
24
24
|
runAuthenticationAgent3
|
|
25
|
-
} from "../../../../chunk-
|
|
26
|
-
import"../../../../chunk-
|
|
27
|
-
import"../../../../chunk-
|
|
28
|
-
import"../../../../chunk-
|
|
29
|
-
import"../../../../chunk-
|
|
25
|
+
} from "../../../../chunk-mbsde9d0.js";
|
|
26
|
+
import"../../../../chunk-ydxhkgjw.js";
|
|
27
|
+
import"../../../../chunk-hys7nemr.js";
|
|
28
|
+
import"../../../../chunk-77se1d35.js";
|
|
29
|
+
import"../../../../chunk-7tft4b8b.js";
|
|
30
30
|
import"../../../../chunk-7gjdygcx.js";
|
|
31
31
|
import"../../../../chunk-b8eq85d2.js";
|
|
32
|
-
import"../../../../chunk-
|
|
32
|
+
import"../../../../chunk-qkz5sm0d.js";
|
|
33
33
|
import"../../../../chunk-ja7j565c.js";
|
|
34
34
|
import"../../../../chunk-3q89v4xv.js";
|
|
35
35
|
import"../../../../chunk-fy3bbbqy.js";
|
|
36
|
-
import"../../../../chunk-
|
|
36
|
+
import"../../../../chunk-0dnx79b1.js";
|
|
37
37
|
import"../../../../chunk-t5bt5vn1.js";
|
|
38
38
|
import"../../../../chunk-eb4h4k1f.js";
|
|
39
39
|
import"../../../../chunk-vx228eeq.js";
|
|
40
|
-
import"../../../../chunk-
|
|
40
|
+
import"../../../../chunk-kcw4cpr3.js";
|
|
41
41
|
import"../../../../chunk-8vhr65w3.js";
|
|
42
42
|
import"../../../../chunk-2njv7wz3.js";
|
|
43
43
|
import"../../../../chunk-jdjagvgr.js";
|
|
44
|
-
import"../../../../chunk-
|
|
44
|
+
import"../../../../chunk-8njjwwcw.js";
|
|
45
45
|
import"../../../../chunk-zrbqn62x.js";
|
|
46
46
|
import"../../../../chunk-mv74mq5n.js";
|
|
47
47
|
import"../../../../chunk-q5e23acz.js";
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
codeAgentDefinition2,
|
|
3
3
|
CodeAgent2
|
|
4
|
-
} from "../../../../chunk-
|
|
5
|
-
import"../../../../chunk-
|
|
6
|
-
import"../../../../chunk-
|
|
7
|
-
import"../../../../chunk-
|
|
8
|
-
import"../../../../chunk-
|
|
4
|
+
} from "../../../../chunk-161ak2am.js";
|
|
5
|
+
import"../../../../chunk-ydxhkgjw.js";
|
|
6
|
+
import"../../../../chunk-hys7nemr.js";
|
|
7
|
+
import"../../../../chunk-77se1d35.js";
|
|
8
|
+
import"../../../../chunk-7tft4b8b.js";
|
|
9
9
|
import"../../../../chunk-7gjdygcx.js";
|
|
10
10
|
import"../../../../chunk-b8eq85d2.js";
|
|
11
|
-
import"../../../../chunk-
|
|
11
|
+
import"../../../../chunk-qkz5sm0d.js";
|
|
12
12
|
import"../../../../chunk-ja7j565c.js";
|
|
13
13
|
import"../../../../chunk-3q89v4xv.js";
|
|
14
14
|
import"../../../../chunk-fy3bbbqy.js";
|
|
15
|
-
import"../../../../chunk-
|
|
15
|
+
import"../../../../chunk-0dnx79b1.js";
|
|
16
16
|
import"../../../../chunk-t5bt5vn1.js";
|
|
17
17
|
import"../../../../chunk-eb4h4k1f.js";
|
|
18
18
|
import"../../../../chunk-vx228eeq.js";
|
|
19
|
-
import"../../../../chunk-
|
|
19
|
+
import"../../../../chunk-kcw4cpr3.js";
|
|
20
20
|
import"../../../../chunk-8vhr65w3.js";
|
|
21
21
|
import"../../../../chunk-2njv7wz3.js";
|
|
22
22
|
import"../../../../chunk-jdjagvgr.js";
|
|
23
|
-
import"../../../../chunk-
|
|
23
|
+
import"../../../../chunk-8njjwwcw.js";
|
|
24
24
|
import"../../../../chunk-zrbqn62x.js";
|
|
25
25
|
import"../../../../chunk-mv74mq5n.js";
|
|
26
26
|
import"../../../../chunk-q5e23acz.js";
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
export declare const CODE_AGENT_SYSTEM_PROMPT = "You are an expert coding agent with direct filesystem access. You will be given a specific objective \u2014 focus exclusively on completing it.\n\n# Tool Usage Guide\n\nYou have the following tools. Use them strategically to accomplish your objective:\n\n## read_file\nRead the contents of any file. You can read the whole file or a specific line range.\n- When a file is large, read it in chunks using startLine / endLine to stay focused.\n- Follow imports and references \u2014 when you see an interesting function call, read its source.\n\n## list_files\nList files and directories. Use this to orient yourself in the codebase.\n- Start by listing the project root or relevant subdirectory to understand the structure.\n- Use recursive=true sparingly on targeted subdirectories to avoid flooding context.\n\n## grep\nSearch file contents by pattern. This is your most powerful navigation tool.\n- Use it to find function definitions, usages, imports, and references.\n- Use -i for case-insensitive searches.\n- Use --include=\"*.ext\" to narrow to relevant file types.\n- Use -C 3 or -C 5 to get context around matches.\n- Use -rn (default for directories) for recursive search with line numbers.\n- Use -l to get just file paths when you need a broad overview of where something appears.\n\n## execute_command\nRun shell commands when needed.\n- Use for any task that benefits from shell access: build tools, git operations, package managers, linters, etc.\n- Useful for running scripts, checking dependencies, inspecting git history, or any CLI tool.\n\n## Whitebox security tools (when investigating vulnerabilities)\n- **profile_codebase** \u2014 summarize languages, manifests, scanners, and repo shape; full JSON is written as a session artifact.\n- **query_whitebox_catalog** \u2014 pull focused methodology slices (sinks, scanners, review passes) instead of loading a whole playbook into context.\n- **run_code_query** \u2014 batched rg / ast-grep / comby searches with bounded output and artifact logs.\n- **run_whitebox_scan** \u2014 run installed scanners when available; triage results before treating them as confirmed issues.\n- **create_whitebox_candidate / update_whitebox_candidate / list_whitebox_candidates** \u2014 track hypotheses with explicit state and evidence.\n- **start_whitebox_job / poll_whitebox_job / stop_whitebox_job** \u2014 bounded long-running jobs (builds, fuzzers) with logs under the session.\n- **read_whitebox_artifact** \u2014 read `logs/whitebox/` or `scratchpad/whitebox/` artifact paths returned by other tools (or legacy job logs by id).\n\nPrefer catalog + code_query for sink-first work; use candidates to separate unverified ideas from `document_vulnerability`. Do not modify the target repo unless the operator asked you to \u2014 keep harnesses and scratch output in the session scratchpad.\n\n# Working Approach\n1. **Orient first** \u2014 list files and read key entry points to understand the structure before diving in.\n2. **Search, then read** \u2014 use grep to locate what you need, then read the relevant files.\n3. **Follow the trail** \u2014 trace through imports, function calls, and references to build full understanding.\n4. **Stay focused** \u2014 stick to your objective. Don't wander into unrelated areas of the codebase.\n5. **Be thorough** \u2014 don't stop at the first match. Make sure you've covered everything relevant to the objective.\n";
|
|
2
|
+
export declare const CODE_AGENT_EXTERNAL_SYSTEM_PROMPT: string;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import"../../../../chunk-7gjdygcx.js";
|
|
2
|
-
import"../../../../chunk-
|
|
2
|
+
import"../../../../chunk-8njjwwcw.js";
|
|
3
3
|
import"../../../../chunk-jdjagvgr.js";
|
|
4
4
|
import"../../../../chunk-2njv7wz3.js";
|
|
5
|
-
import"../../../../chunk-
|
|
5
|
+
import"../../../../chunk-kcw4cpr3.js";
|
|
6
6
|
import"../../../../chunk-8vhr65w3.js";
|
|
7
|
-
import"../../../../chunk-
|
|
7
|
+
import"../../../../chunk-hys7nemr.js";
|
|
8
8
|
import"../../../../chunk-fy3bbbqy.js";
|
|
9
9
|
import"../../../../chunk-mv74mq5n.js";
|
|
10
|
-
import"../../../../chunk-
|
|
10
|
+
import"../../../../chunk-7tft4b8b.js";
|
|
11
11
|
import"../../../../chunk-b8eq85d2.js";
|
|
12
|
-
import"../../../../chunk-
|
|
13
|
-
import"../../../../chunk-
|
|
12
|
+
import"../../../../chunk-0dnx79b1.js";
|
|
13
|
+
import"../../../../chunk-77se1d35.js";
|
|
14
14
|
import"../../../../chunk-t5bt5vn1.js";
|
|
15
|
-
import"../../../../chunk-
|
|
15
|
+
import"../../../../chunk-qkz5sm0d.js";
|
|
16
16
|
import"../../../../chunk-eb4h4k1f.js";
|
|
17
17
|
import"../../../../chunk-vx228eeq.js";
|
|
18
18
|
import"../../../../chunk-bx94rwt5.js";
|
|
@@ -23,7 +23,7 @@ import"../../../../chunk-q5e23acz.js";
|
|
|
23
23
|
import {
|
|
24
24
|
AgentRuntime,
|
|
25
25
|
defineAgent
|
|
26
|
-
} from "../../../../chunk-
|
|
26
|
+
} from "../../../../chunk-ydxhkgjw.js";
|
|
27
27
|
|
|
28
28
|
// src/core/agents/specialized/findingJudge/agent.ts
|
|
29
29
|
import { stepCountIs } from "ai";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
judgeFinding2,
|
|
3
3
|
createJudgeFailureResult2
|
|
4
|
-
} from "../../../../chunk-
|
|
5
|
-
import"../../../../chunk-
|
|
4
|
+
} from "../../../../chunk-rfyjqybp.js";
|
|
5
|
+
import"../../../../chunk-kcw4cpr3.js";
|
|
6
6
|
import"../../../../chunk-8vhr65w3.js";
|
|
7
7
|
import"../../../../chunk-2njv7wz3.js";
|
|
8
8
|
import"../../../../chunk-jdjagvgr.js";
|
|
9
|
-
import"../../../../chunk-
|
|
9
|
+
import"../../../../chunk-8njjwwcw.js";
|
|
10
10
|
export {
|
|
11
11
|
createJudgeFailureResult2 as createJudgeFailureResult,
|
|
12
12
|
judgeFinding2 as judgeFinding
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../../../chunk-
|
|
1
|
+
import"../../../../chunk-vsnwzne5.js";
|
|
2
2
|
import {
|
|
3
3
|
buildSystemPrompt2,
|
|
4
4
|
PATCHING_SYSTEM_PROMPT2,
|
|
@@ -8,26 +8,26 @@ import {
|
|
|
8
8
|
PATCHING_ACTIVE_TOOLS2,
|
|
9
9
|
readAgentsMd2,
|
|
10
10
|
PatchingAgent2
|
|
11
|
-
} from "../../../../chunk-
|
|
12
|
-
import"../../../../chunk-
|
|
13
|
-
import"../../../../chunk-
|
|
14
|
-
import"../../../../chunk-
|
|
15
|
-
import"../../../../chunk-
|
|
11
|
+
} from "../../../../chunk-3hjvdf67.js";
|
|
12
|
+
import"../../../../chunk-ydxhkgjw.js";
|
|
13
|
+
import"../../../../chunk-hys7nemr.js";
|
|
14
|
+
import"../../../../chunk-77se1d35.js";
|
|
15
|
+
import"../../../../chunk-7tft4b8b.js";
|
|
16
16
|
import"../../../../chunk-7gjdygcx.js";
|
|
17
17
|
import"../../../../chunk-b8eq85d2.js";
|
|
18
|
-
import"../../../../chunk-
|
|
18
|
+
import"../../../../chunk-qkz5sm0d.js";
|
|
19
19
|
import"../../../../chunk-ja7j565c.js";
|
|
20
20
|
import"../../../../chunk-3q89v4xv.js";
|
|
21
21
|
import"../../../../chunk-fy3bbbqy.js";
|
|
22
|
-
import"../../../../chunk-
|
|
22
|
+
import"../../../../chunk-0dnx79b1.js";
|
|
23
23
|
import"../../../../chunk-t5bt5vn1.js";
|
|
24
24
|
import"../../../../chunk-eb4h4k1f.js";
|
|
25
25
|
import"../../../../chunk-vx228eeq.js";
|
|
26
|
-
import"../../../../chunk-
|
|
26
|
+
import"../../../../chunk-kcw4cpr3.js";
|
|
27
27
|
import"../../../../chunk-8vhr65w3.js";
|
|
28
28
|
import"../../../../chunk-2njv7wz3.js";
|
|
29
29
|
import"../../../../chunk-jdjagvgr.js";
|
|
30
|
-
import"../../../../chunk-
|
|
30
|
+
import"../../../../chunk-8njjwwcw.js";
|
|
31
31
|
import"../../../../chunk-zrbqn62x.js";
|
|
32
32
|
import"../../../../chunk-mv74mq5n.js";
|
|
33
33
|
import"../../../../chunk-q5e23acz.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import type { FindingsRegistry } from "../../../findings/registry";
|
|
3
3
|
import { AgentRuntime } from "../../agentRuntime";
|
|
4
|
-
import { type AgentMode, type Finding, type ReportedError, type SpecializedAgentInput, type SystemPentestScope } from "../../offSecAgent";
|
|
4
|
+
import { type AgentMode, type Finding, type FindingPolicy, type ReportedError, type SpecializedAgentInput, type SystemPentestScope } from "../../offSecAgent";
|
|
5
5
|
import type { GrpcPentestContext } from "../attackSurface/grpcSchema";
|
|
6
6
|
/**
|
|
7
7
|
* Operating role for a {@link TargetedPentestAgent} instance.
|
|
@@ -73,6 +73,8 @@ export interface PentestAgentInput extends SpecializedAgentInput {
|
|
|
73
73
|
export interface PentestResult {
|
|
74
74
|
/** All findings discovered during the run */
|
|
75
75
|
findings: Finding[];
|
|
76
|
+
/** Concise findings handed to an external evaluator, without native judging. */
|
|
77
|
+
reportedFindings?: string[];
|
|
76
78
|
/** Absolute path to the session's findings directory */
|
|
77
79
|
findingsPath: string;
|
|
78
80
|
/** Absolute path to the session's POC scripts directory */
|
|
@@ -100,6 +102,18 @@ export declare const PentestResponseSchema: z.ZodObject<{
|
|
|
100
102
|
newObjectives: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
101
103
|
noFindingsReason: z.ZodOptional<z.ZodString>;
|
|
102
104
|
}, z.core.$strip>;
|
|
105
|
+
export declare const PentestExternalResponseSchema: z.ZodObject<{
|
|
106
|
+
summary: z.ZodString;
|
|
107
|
+
objectivesCovered: z.ZodArray<z.ZodString>;
|
|
108
|
+
newObjectives: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
109
|
+
objectiveResults: z.ZodArray<z.ZodObject<{
|
|
110
|
+
objective: z.ZodString;
|
|
111
|
+
completed: z.ZodBoolean;
|
|
112
|
+
result: z.ZodOptional<z.ZodString>;
|
|
113
|
+
}, z.core.$strip>>;
|
|
114
|
+
reportedFindings: z.ZodArray<z.ZodString>;
|
|
115
|
+
noFindingsReason: z.ZodOptional<z.ZodString>;
|
|
116
|
+
}, z.core.$strip>;
|
|
103
117
|
/** Per-construction scratch state: the resolved role/mode (defaulted once)
|
|
104
118
|
* and the terminal blocking-error escape hatch shared between `extraTools`'
|
|
105
119
|
* `report_error` callback and `resolveResult`. */
|
|
@@ -155,7 +169,7 @@ export declare function buildPentestSystemPrompt(session: {
|
|
|
155
169
|
allowRateLimitTesting?: boolean;
|
|
156
170
|
codebasePath?: string;
|
|
157
171
|
};
|
|
158
|
-
}, role?: PentestAgentRole, mode?: TargetedPentestMode, systemScope?: SystemPentestScope, helperWorkspaceRoot?: string): string;
|
|
172
|
+
}, role?: PentestAgentRole, mode?: TargetedPentestMode, systemScope?: SystemPentestScope, helperWorkspaceRoot?: string, findingPolicy?: FindingPolicy): string;
|
|
159
173
|
export declare function buildPentestPrompt(target: string, objectives: string[], session: {
|
|
160
174
|
rootPath: string;
|
|
161
175
|
config?: {
|
|
@@ -163,10 +177,10 @@ export declare function buildPentestPrompt(target: string, objectives: string[],
|
|
|
163
177
|
outcomeGuidance?: string;
|
|
164
178
|
taskDriven?: boolean;
|
|
165
179
|
};
|
|
166
|
-
}, findingsRegistry?: FindingsRegistry, context?: string, envVarNames?: string[], subagentId?: string, role?: PentestAgentRole, credentialContext?: string, grpc?: GrpcPentestContext, mode?: TargetedPentestMode): string;
|
|
180
|
+
}, findingsRegistry?: FindingsRegistry, context?: string, envVarNames?: string[], subagentId?: string, role?: PentestAgentRole, credentialContext?: string, grpc?: GrpcPentestContext, mode?: TargetedPentestMode, findingPolicy?: FindingPolicy): string;
|
|
167
181
|
export declare function buildPentestActiveTools(role: PentestAgentRole, session: {
|
|
168
182
|
config?: {
|
|
169
183
|
taskDriven?: boolean;
|
|
170
184
|
promptInjectionLibrarySource?: string;
|
|
171
185
|
};
|
|
172
|
-
}): string[];
|
|
186
|
+
}, findingPolicy?: FindingPolicy): string[];
|
|
@@ -1,37 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolvePentestAgentRole2,
|
|
3
3
|
PentestResponseSchema2,
|
|
4
|
+
PentestExternalResponseSchema2,
|
|
4
5
|
resolvePentestBrowserEngine2,
|
|
5
6
|
targetedPentestWorker2,
|
|
6
7
|
TargetedPentestAgent2,
|
|
7
8
|
buildPentestSystemPrompt2,
|
|
8
9
|
buildPentestPrompt2,
|
|
9
10
|
buildPentestActiveTools2
|
|
10
|
-
} from "../../../../chunk-
|
|
11
|
-
import"../../../../chunk-
|
|
12
|
-
import"../../../../chunk-
|
|
13
|
-
import"../../../../chunk-
|
|
14
|
-
import"../../../../chunk-
|
|
11
|
+
} from "../../../../chunk-gm3b9j4y.js";
|
|
12
|
+
import"../../../../chunk-ydxhkgjw.js";
|
|
13
|
+
import"../../../../chunk-hys7nemr.js";
|
|
14
|
+
import"../../../../chunk-77se1d35.js";
|
|
15
|
+
import"../../../../chunk-7tft4b8b.js";
|
|
15
16
|
import"../../../../chunk-7gjdygcx.js";
|
|
16
17
|
import"../../../../chunk-b8eq85d2.js";
|
|
17
|
-
import"../../../../chunk-
|
|
18
|
+
import"../../../../chunk-qkz5sm0d.js";
|
|
18
19
|
import"../../../../chunk-ja7j565c.js";
|
|
19
20
|
import"../../../../chunk-3q89v4xv.js";
|
|
20
21
|
import"../../../../chunk-fy3bbbqy.js";
|
|
21
|
-
import"../../../../chunk-
|
|
22
|
+
import"../../../../chunk-0dnx79b1.js";
|
|
22
23
|
import"../../../../chunk-t5bt5vn1.js";
|
|
23
24
|
import"../../../../chunk-eb4h4k1f.js";
|
|
24
25
|
import"../../../../chunk-vx228eeq.js";
|
|
25
|
-
import"../../../../chunk-
|
|
26
|
+
import"../../../../chunk-kcw4cpr3.js";
|
|
26
27
|
import"../../../../chunk-8vhr65w3.js";
|
|
27
28
|
import"../../../../chunk-2njv7wz3.js";
|
|
28
29
|
import"../../../../chunk-jdjagvgr.js";
|
|
29
|
-
import"../../../../chunk-
|
|
30
|
+
import"../../../../chunk-8njjwwcw.js";
|
|
30
31
|
import"../../../../chunk-zrbqn62x.js";
|
|
31
32
|
import"../../../../chunk-mv74mq5n.js";
|
|
32
33
|
import"../../../../chunk-q5e23acz.js";
|
|
33
34
|
import"../../../../chunk-bx94rwt5.js";
|
|
34
35
|
export {
|
|
36
|
+
PentestExternalResponseSchema2 as PentestExternalResponseSchema,
|
|
35
37
|
PentestResponseSchema2 as PentestResponseSchema,
|
|
36
38
|
TargetedPentestAgent2 as TargetedPentestAgent,
|
|
37
39
|
buildPentestActiveTools2 as buildPentestActiveTools,
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
WHITEBOX_APPS_DISCOVERY_SYSTEM_PROMPT2,
|
|
3
3
|
WHITEBOX_DISCOVERY_SYSTEM_PROMPT2,
|
|
4
4
|
WhiteboxAttackSurfaceAgent2
|
|
5
|
-
} from "../../../../chunk-
|
|
5
|
+
} from "../../../../chunk-5j8pp0xf.js";
|
|
6
6
|
import {
|
|
7
7
|
RiskScoreBreakdownSchema2,
|
|
8
8
|
RiskScoreSchema2,
|
|
@@ -11,25 +11,25 @@ import {
|
|
|
11
11
|
AppsDiscoveryResultSchema2,
|
|
12
12
|
DiscoverySummarySchema2
|
|
13
13
|
} from "../../../../chunk-xpfg2fbk.js";
|
|
14
|
-
import"../../../../chunk-
|
|
15
|
-
import"../../../../chunk-
|
|
16
|
-
import"../../../../chunk-
|
|
17
|
-
import"../../../../chunk-
|
|
14
|
+
import"../../../../chunk-ydxhkgjw.js";
|
|
15
|
+
import"../../../../chunk-hys7nemr.js";
|
|
16
|
+
import"../../../../chunk-77se1d35.js";
|
|
17
|
+
import"../../../../chunk-7tft4b8b.js";
|
|
18
18
|
import"../../../../chunk-7gjdygcx.js";
|
|
19
19
|
import"../../../../chunk-b8eq85d2.js";
|
|
20
|
-
import"../../../../chunk-
|
|
20
|
+
import"../../../../chunk-qkz5sm0d.js";
|
|
21
21
|
import"../../../../chunk-ja7j565c.js";
|
|
22
22
|
import"../../../../chunk-3q89v4xv.js";
|
|
23
23
|
import"../../../../chunk-fy3bbbqy.js";
|
|
24
|
-
import"../../../../chunk-
|
|
24
|
+
import"../../../../chunk-0dnx79b1.js";
|
|
25
25
|
import"../../../../chunk-t5bt5vn1.js";
|
|
26
26
|
import"../../../../chunk-eb4h4k1f.js";
|
|
27
27
|
import"../../../../chunk-vx228eeq.js";
|
|
28
|
-
import"../../../../chunk-
|
|
28
|
+
import"../../../../chunk-kcw4cpr3.js";
|
|
29
29
|
import"../../../../chunk-8vhr65w3.js";
|
|
30
30
|
import"../../../../chunk-2njv7wz3.js";
|
|
31
31
|
import"../../../../chunk-jdjagvgr.js";
|
|
32
|
-
import"../../../../chunk-
|
|
32
|
+
import"../../../../chunk-8njjwwcw.js";
|
|
33
33
|
import"../../../../chunk-zrbqn62x.js";
|
|
34
34
|
import"../../../../chunk-mv74mq5n.js";
|
|
35
35
|
import"../../../../chunk-q5e23acz.js";
|
|
@@ -9,6 +9,7 @@ import { type AiTelemetryOperation } from "../observability";
|
|
|
9
9
|
import type { RunContextRecorder } from "../runtime/runContext";
|
|
10
10
|
import { type CompactionLink, type CompactionTrigger } from "./compactionTelemetry";
|
|
11
11
|
import { type InferenceRecorder } from "./inference-attempt";
|
|
12
|
+
import { type ClaudeThinkingEffort } from "./models";
|
|
12
13
|
import { type AIAuthConfig } from "./utils";
|
|
13
14
|
/**
|
|
14
15
|
* Whether tool-call repair must fail closed (no argument synthesis) for a tool.
|
|
@@ -20,11 +21,11 @@ export type OpenAIReasoningEffort = "none" | "low" | "medium" | "high" | "xhigh"
|
|
|
20
21
|
export declare const DEFAULT_OPENAI_REASONING_EFFORT: OpenAIReasoningEffort;
|
|
21
22
|
/**
|
|
22
23
|
* Anthropic adaptive-thinking effort hint. Soft guidance for how much the model
|
|
23
|
-
* reasons (see AWS "adaptive thinking"): `low` minimizes thinking
|
|
24
|
-
*
|
|
25
|
-
* support adaptive thinking
|
|
24
|
+
* reasons (see AWS "adaptive thinking"): `low` minimizes thinking while
|
|
25
|
+
* `xhigh` and `max` allow progressively deeper work. Only meaningful for
|
|
26
|
+
* models that support adaptive thinking; ignored elsewhere.
|
|
26
27
|
*/
|
|
27
|
-
export type ThinkingEffort =
|
|
28
|
+
export type ThinkingEffort = ClaudeThinkingEffort;
|
|
28
29
|
/** Per-step billing context attached to a usage report, attributing cost to a specific `(sessionId, stepSeq)`. */
|
|
29
30
|
export interface UsageStepContext {
|
|
30
31
|
sessionId?: string;
|
|
@@ -186,6 +187,15 @@ export type ReasoningProviderOptions = {
|
|
|
186
187
|
type: "adaptive";
|
|
187
188
|
display: "summarized";
|
|
188
189
|
maxReasoningEffort?: ThinkingEffort;
|
|
190
|
+
} | {
|
|
191
|
+
type: "disabled";
|
|
192
|
+
};
|
|
193
|
+
/** Explicitly forwarded for Anthropic because the Bedrock SDK currently
|
|
194
|
+
* drops reasoningConfig.type="disabled" instead of sending it. */
|
|
195
|
+
additionalModelRequestFields?: {
|
|
196
|
+
thinking: {
|
|
197
|
+
type: "disabled";
|
|
198
|
+
};
|
|
189
199
|
};
|
|
190
200
|
};
|
|
191
201
|
openai?: OpenAIResponsesProviderOptions;
|
|
@@ -224,8 +234,8 @@ export declare function buildReasoningProviderOptions(model: AIModel, opts: {
|
|
|
224
234
|
enableThinking?: boolean;
|
|
225
235
|
/**
|
|
226
236
|
* Adaptive-thinking effort hint for Anthropic models that support it
|
|
227
|
-
*
|
|
228
|
-
*
|
|
237
|
+
* Ignored on models without adaptive support. When omitted, models in the
|
|
238
|
+
* Claude capability registry use their documented provider default.
|
|
229
239
|
*/
|
|
230
240
|
thinkingEffort?: ThinkingEffort | null;
|
|
231
241
|
openAIReasoningEffort?: OpenAIReasoningEffort | null;
|
|
@@ -262,6 +272,11 @@ export interface StreamResponseOpts {
|
|
|
262
272
|
* new messages (not the full pre-summarization history).
|
|
263
273
|
*/
|
|
264
274
|
onSummarized?: (summary: string) => void;
|
|
275
|
+
/** The fitted context and prior generated-message count for transcript writers. */
|
|
276
|
+
onContextPrepared?: (context: {
|
|
277
|
+
messages: ModelMessage[];
|
|
278
|
+
responseMessageOffset: number;
|
|
279
|
+
}) => void;
|
|
265
280
|
/**
|
|
266
281
|
* Deprecated host shim: fires only when a cache counter is `> 0`.
|
|
267
282
|
* Apex internals read cache from {@link normalizeStepUsage} on the step.
|
|
@@ -296,6 +311,8 @@ export interface StreamResponseOpts {
|
|
|
296
311
|
last?: CompactionLink;
|
|
297
312
|
};
|
|
298
313
|
_compactionTrigger?: CompactionTrigger;
|
|
314
|
+
_proactiveSummaryMayFit?: boolean;
|
|
315
|
+
_proactiveSummaryFailures?: number;
|
|
299
316
|
}
|
|
300
317
|
export declare function streamResponse(opts: StreamResponseOpts): StreamTextResult<ToolSet, never>;
|
|
301
318
|
export interface GenerateObjectOpts<T extends z.ZodType> {
|
package/build/lib/core/ai/ai.js
CHANGED
|
@@ -29,11 +29,11 @@ import {
|
|
|
29
29
|
streamResponse2,
|
|
30
30
|
generateObjectResponse2,
|
|
31
31
|
ContextLengthExhaustedError2
|
|
32
|
-
} from "../../chunk-
|
|
32
|
+
} from "../../chunk-kcw4cpr3.js";
|
|
33
33
|
import"../../chunk-8vhr65w3.js";
|
|
34
34
|
import"../../chunk-2njv7wz3.js";
|
|
35
35
|
import"../../chunk-jdjagvgr.js";
|
|
36
|
-
import"../../chunk-
|
|
36
|
+
import"../../chunk-8njjwwcw.js";
|
|
37
37
|
export {
|
|
38
38
|
ContextLengthExhaustedError2 as ContextLengthExhaustedError,
|
|
39
39
|
DEFAULT_OPENAI_REASONING_EFFORT2 as DEFAULT_OPENAI_REASONING_EFFORT,
|
|
@@ -31,11 +31,11 @@ import {
|
|
|
31
31
|
MAX_RECENT_MODELS2,
|
|
32
32
|
addRecentModelId2,
|
|
33
33
|
getRecentModels2
|
|
34
|
-
} from "../../chunk-
|
|
34
|
+
} from "../../chunk-kcw4cpr3.js";
|
|
35
35
|
import"../../chunk-8vhr65w3.js";
|
|
36
36
|
import"../../chunk-2njv7wz3.js";
|
|
37
37
|
import"../../chunk-jdjagvgr.js";
|
|
38
|
-
import"../../chunk-
|
|
38
|
+
import"../../chunk-8njjwwcw.js";
|
|
39
39
|
export {
|
|
40
40
|
AVAILABLE_MODELS2 as AVAILABLE_MODELS,
|
|
41
41
|
DEFAULT_NATIVE_ROLLOUT_CAPTURE_LIMITS2 as DEFAULT_NATIVE_ROLLOUT_CAPTURE_LIMITS,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
type
|
|
1
|
+
export type ClaudeThinkingEffort = "low" | "medium" | "high" | "xhigh" | "max";
|
|
2
|
+
export type ClaudeCapabilities = {
|
|
2
3
|
alwaysOnThinking: boolean;
|
|
3
4
|
bindsThinking?: boolean;
|
|
5
|
+
defaultEffort: ClaudeThinkingEffort;
|
|
4
6
|
};
|
|
5
7
|
export declare function getClaudeCapabilities(modelId: string): ClaudeCapabilities | undefined;
|
|
6
|
-
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type CustomProviders } from "../../config/customProviders";
|
|
2
2
|
import { type HoonifyModel } from "../../hoonify";
|
|
3
3
|
import type { AIModel, ModelInfo } from "../ai";
|
|
4
|
-
export { getClaudeCapabilities } from "./claude-capabilities";
|
|
4
|
+
export { type ClaudeThinkingEffort, getClaudeCapabilities, } from "./claude-capabilities";
|
|
5
5
|
export declare const AVAILABLE_MODELS: ModelInfo[];
|
|
6
6
|
export declare function getModelInfo(model: AIModel): ModelInfo;
|
|
7
7
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type LanguageModelV3 } from "@ai-sdk/provider";
|
|
2
2
|
export declare const CONCENTRATE_BASE_URL = "https://api.concentrate.ai/v1";
|
|
3
3
|
export declare const CONCENTRATE_GLM_5_3_MODEL_ID = "concentrate:glm-5.3";
|
|
4
|
+
export declare const CONCENTRATE_REASONING_MODEL_IDS: ReadonlySet<string>;
|
|
4
5
|
export type ConcentrateFetch = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
5
6
|
export declare function createConcentrateFetch(fetchFn?: ConcentrateFetch): ConcentrateFetch;
|
|
6
7
|
export declare function createConcentrateModel(modelId: string, options: {
|
|
@@ -3,6 +3,8 @@ import { type LanguageModel, type ModelMessage, type StreamTextResult, type Text
|
|
|
3
3
|
import type { CustomProviders } from "../config/customProviders";
|
|
4
4
|
import type { HoonifyModel } from "../hoonify";
|
|
5
5
|
import { type AIModel, type StreamResponseOpts } from "./ai";
|
|
6
|
+
export declare class CompactionRejectedError extends Error {
|
|
7
|
+
}
|
|
6
8
|
/**
|
|
7
9
|
* Check if a model is served by a provider that speaks Anthropic's thinking
|
|
8
10
|
* options — direct Anthropic, AWS Bedrock, and the Pensar gateway (which routes
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
CompactionRejectedError2,
|
|
2
3
|
isAnthropicProvider2,
|
|
3
4
|
buildStreamingFetchSignal2,
|
|
4
5
|
buildAuthConfig2,
|
|
@@ -6,12 +7,13 @@ import {
|
|
|
6
7
|
checkIfContextLengthError2,
|
|
7
8
|
createSummarizationStream2,
|
|
8
9
|
consumeStream2
|
|
9
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-kcw4cpr3.js";
|
|
10
11
|
import"../../chunk-8vhr65w3.js";
|
|
11
12
|
import"../../chunk-2njv7wz3.js";
|
|
12
13
|
import"../../chunk-jdjagvgr.js";
|
|
13
|
-
import"../../chunk-
|
|
14
|
+
import"../../chunk-8njjwwcw.js";
|
|
14
15
|
export {
|
|
16
|
+
CompactionRejectedError2 as CompactionRejectedError,
|
|
15
17
|
buildAuthConfig2 as buildAuthConfig,
|
|
16
18
|
buildStreamingFetchSignal2 as buildStreamingFetchSignal,
|
|
17
19
|
checkIfContextLengthError2 as checkIfContextLengthError,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export type { FindingPolicy, OffensiveSecurityAgentInput, } from "../agents/offSecAgent";
|
|
2
|
+
export { EXTERNAL_FINDING_POLICY_CAPABILITY } from "../agents/offSecAgent";
|
|
1
3
|
export type { CreateNativeRolloutEvidenceCaptureInput, NativeRolloutCaptureLimits, NativeRolloutCaptureReportV1, NativeRolloutEvidenceCapture, NativeRolloutEvidenceEnvelopeV1, NativeRolloutEvidenceSink, NativeRolloutModelContext, } from "../ai";
|
|
2
4
|
export { createNativeRolloutEvidenceCapture, DEFAULT_NATIVE_ROLLOUT_CAPTURE_LIMITS, } from "../ai";
|
|
3
5
|
export type { RunCheckpointStore, SessionEvidence, } from "../runtime/runCheckpointStore";
|
|
@@ -8,6 +10,7 @@ export type { RecordedModelAttempt, RecordedRetry, RunModelStore, } from "../run
|
|
|
8
10
|
export type { RecordedRunSpec, RunRecord, RunStore } from "../runtime/runStore";
|
|
9
11
|
export type { RecordedToolInput, RecordedToolOperation, RecordedToolPolicy, RunToolStore, } from "../runtime/runToolStore";
|
|
10
12
|
export { openSqliteRunStore } from "../runtime/sqliteRunStore";
|
|
13
|
+
export type { PentestWorkflowInput, PentestWorkflowResult, } from "../workflows/pentest";
|
|
11
14
|
export type { AppDetail, ApplicationType, AppSummary, CreateAppInput, CreateEndpointInput, DeleteResult, EndpointDetail, EndpointSummary, EndpointTransport, EndpointType, ListAppsOptions, ListAppsPage, ListEndpointsFilters, ListEndpointsPage, SearchAppsOptions, SearchAppsResult, SearchEndpointsOptions, SearchEndpointsResult, UpdateAppInput, UpdateEndpointInput, } from "./apps";
|
|
12
15
|
export { createApp, createEndpoint, deleteApp, deleteEndpoint, ENDPOINT_TRANSPORTS, getApp, getEndpoint, listApps, listAppsAll, listEndpoints, listEndpointsAll, searchApps, searchEndpoints, updateApp, updateEndpoint, } from "./apps";
|
|
13
16
|
export type { AttackSurfaceInput } from "./attackSurface";
|
|
@@ -47,24 +47,26 @@ import {
|
|
|
47
47
|
VulnerabilityReproductionResultSchema2,
|
|
48
48
|
startVulnerabilityReproductionAgent2,
|
|
49
49
|
runVulnerabilityReproductionAgent2
|
|
50
|
-
} from "../../chunk-
|
|
51
|
-
import"../../chunk-
|
|
52
|
-
import"../../chunk-
|
|
53
|
-
import"../../chunk-
|
|
50
|
+
} from "../../chunk-mpvjfvz0.js";
|
|
51
|
+
import"../../chunk-aq9eyxas.js";
|
|
52
|
+
import"../../chunk-1rqbhx4b.js";
|
|
53
|
+
import"../../chunk-f3sq4896.js";
|
|
54
54
|
import {
|
|
55
55
|
runTargetedPentestAgent2
|
|
56
|
-
} from "../../chunk-
|
|
57
|
-
import"../../chunk-
|
|
56
|
+
} from "../../chunk-m4swxy5r.js";
|
|
57
|
+
import"../../chunk-5j8pp0xf.js";
|
|
58
58
|
import"../../chunk-xpfg2fbk.js";
|
|
59
|
-
import"../../chunk-
|
|
60
|
-
import"../../chunk-
|
|
61
|
-
import"../../chunk-
|
|
62
|
-
import"../../chunk-
|
|
63
|
-
import"../../chunk-
|
|
64
|
-
import"../../chunk-
|
|
65
|
-
import
|
|
66
|
-
|
|
67
|
-
|
|
59
|
+
import"../../chunk-mbsde9d0.js";
|
|
60
|
+
import"../../chunk-161ak2am.js";
|
|
61
|
+
import"../../chunk-3hjvdf67.js";
|
|
62
|
+
import"../../chunk-gm3b9j4y.js";
|
|
63
|
+
import"../../chunk-fasqtjq1.js";
|
|
64
|
+
import"../../chunk-ydxhkgjw.js";
|
|
65
|
+
import {
|
|
66
|
+
EXTERNAL_FINDING_POLICY_CAPABILITY2
|
|
67
|
+
} from "../../chunk-hys7nemr.js";
|
|
68
|
+
import"../../chunk-77se1d35.js";
|
|
69
|
+
import"../../chunk-7tft4b8b.js";
|
|
68
70
|
import"../../chunk-7gjdygcx.js";
|
|
69
71
|
import"../../chunk-b8eq85d2.js";
|
|
70
72
|
import {
|
|
@@ -85,11 +87,11 @@ import {
|
|
|
85
87
|
searchEndpoints2,
|
|
86
88
|
listDomains2,
|
|
87
89
|
createDomain2
|
|
88
|
-
} from "../../chunk-
|
|
90
|
+
} from "../../chunk-qkz5sm0d.js";
|
|
89
91
|
import"../../chunk-ja7j565c.js";
|
|
90
92
|
import"../../chunk-3q89v4xv.js";
|
|
91
93
|
import"../../chunk-fy3bbbqy.js";
|
|
92
|
-
import"../../chunk-
|
|
94
|
+
import"../../chunk-0dnx79b1.js";
|
|
93
95
|
import"../../chunk-t5bt5vn1.js";
|
|
94
96
|
import"../../chunk-eb4h4k1f.js";
|
|
95
97
|
import"../../chunk-vx228eeq.js";
|
|
@@ -101,11 +103,11 @@ import {
|
|
|
101
103
|
getPensarApiUrl2,
|
|
102
104
|
getPensarGatewayUrl2,
|
|
103
105
|
getPensarConsoleUrl2
|
|
104
|
-
} from "../../chunk-
|
|
106
|
+
} from "../../chunk-kcw4cpr3.js";
|
|
105
107
|
import"../../chunk-8vhr65w3.js";
|
|
106
108
|
import"../../chunk-2njv7wz3.js";
|
|
107
109
|
import"../../chunk-jdjagvgr.js";
|
|
108
|
-
import"../../chunk-
|
|
110
|
+
import"../../chunk-8njjwwcw.js";
|
|
109
111
|
import"../../chunk-zrbqn62x.js";
|
|
110
112
|
import"../../chunk-mv74mq5n.js";
|
|
111
113
|
import"../../chunk-q5e23acz.js";
|
|
@@ -114,6 +116,7 @@ export {
|
|
|
114
116
|
CLOSED_DISPOSITIONS2 as CLOSED_DISPOSITIONS,
|
|
115
117
|
DEFAULT_NATIVE_ROLLOUT_CAPTURE_LIMITS2 as DEFAULT_NATIVE_ROLLOUT_CAPTURE_LIMITS,
|
|
116
118
|
ENDPOINT_TRANSPORTS2 as ENDPOINT_TRANSPORTS,
|
|
119
|
+
EXTERNAL_FINDING_POLICY_CAPABILITY2 as EXTERNAL_FINDING_POLICY_CAPABILITY,
|
|
117
120
|
KNOWLEDGE_CATEGORIES2 as KNOWLEDGE_CATEGORIES,
|
|
118
121
|
KNOWLEDGE_STATUSES2 as KNOWLEDGE_STATUSES,
|
|
119
122
|
PENSAR_API_BASE_URL2 as PENSAR_API_BASE_URL,
|
|
@@ -2,6 +2,7 @@ import { type PentestAgentInput, type PentestResult } from "../agents/specialize
|
|
|
2
2
|
import { type AgentExecutionHandle } from "../runtime/agentExecution";
|
|
3
3
|
export type TargetedPentestResult = {
|
|
4
4
|
findings: PentestResult["findings"];
|
|
5
|
+
reportedFindings?: string[];
|
|
5
6
|
findingsPath?: string;
|
|
6
7
|
pocsPath?: string;
|
|
7
8
|
objectiveResults?: PentestResult["objectiveResults"];
|