@pensar/apex 2.6.1 → 2.7.0-canary.6d9d1e0d
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-davhjnxc.js +13 -0
- package/build/{agent-yby11zaq.js → agent-gk4vmr2h.js} +6 -6
- package/build/agent-mqqd38dq.js +13 -0
- package/build/{agent-runs-g37vkrjr.js → agent-runs-12pmj6vc.js} +16 -16
- package/build/{agent-ayreaj6z.js → agent-xtn1masf.js} +5 -5
- package/build/{apps-xn6km9yn.js → apps-yjyvn8vk.js} +13 -13
- package/build/{auth-d105wc64.js → auth-xzp4f1bh.js} +13 -13
- package/build/{blackboxAgent-s56sgx9b.js → blackboxAgent-ettjqj45.js} +6 -6
- package/build/{blackboxPentest-ps78v3w7.js → blackboxPentest-kf0pbhp5.js} +11 -11
- package/build/{cli-c05y640n.js → cli-0cwdrrq7.js} +1 -1
- package/build/{cli-fy6vh2a7.js → cli-0ry9v2cb.js} +1 -1
- package/build/{cli-7eea4e2y.js → cli-4mar7kvr.js} +6 -6
- package/build/{cli-k2nwxta0.js → cli-5gaxk6hd.js} +2 -2
- package/build/{cli-d37a42dc.js → cli-8hxrn15h.js} +8 -8
- package/build/{cli-az3xq70v.js → cli-arxx5hbs.js} +1 -1
- package/build/{cli-n2en7j5b.js → cli-ge8q6nxr.js} +1 -1
- package/build/{cli-1ve18npr.js → cli-gr4az5sf.js} +1 -1
- package/build/{cli-709rvekb.js → cli-h5wkaqwe.js} +1 -1
- package/build/{cli-65g6rcat.js → cli-hprqe9j2.js} +1 -1
- package/build/{cli-kb21qhvm.js → cli-m5ryqeav.js} +2 -2
- package/build/{cli-xtc2t6me.js → cli-metec8r8.js} +3 -3
- package/build/{cli-dpsw2fe6.js → cli-nj73990n.js} +353 -185
- package/build/{cli-ae8jqxqr.js → cli-pchzt5f7.js} +2 -2
- package/build/{cli-3sp6nd8d.js → cli-t3m0e9t2.js} +2 -2
- package/build/{cli-qgz1q9g5.js → cli-tfaqp0ty.js} +105 -36
- package/build/{cli-gx71jcke.js → cli-xpspbhqs.js} +1 -1
- package/build/{cli-ngq9dr8n.js → cli-zmeb85er.js} +3 -3
- package/build/cli.js +37 -37
- package/build/{config-zpqkd5cz.js → config-n03g5jad.js} +1 -1
- package/build/{fastStrike-mcjdvwez.js → fastStrike-9mys4r1b.js} +5 -5
- package/build/{fixes-kytx5dmj.js → fixes-tcd29w2t.js} +13 -13
- package/build/{index-je6hcsqr.js → index-3n19dh6s.js} +1 -1
- package/build/{index-wqetp6gq.js → index-42dnvkns.js} +5 -5
- package/build/{index-fv64eb32.js → index-6ptkm3fe.js} +2 -2
- package/build/{index-qv4cc65p.js → index-93br69mn.js} +13 -13
- package/build/{index-4vqdgb42.js → index-hh9bqe4y.js} +1236 -1195
- package/build/{index-dr3tg1w3.js → index-k1pvqjaq.js} +1 -1
- package/build/{index-r9yjkfrv.js → index-mmmx59w3.js} +4 -4
- package/build/{index-n65z6v7b.js → index-msb8ht2s.js} +6 -6
- package/build/{index-ns4m4s01.js → index-qtpprc5a.js} +4 -4
- package/build/{issues-eb3q9d3a.js → issues-d0e1tzda.js} +13 -13
- package/build/{knowledge-fqsvtx0f.js → knowledge-vgvrzey3.js} +13 -13
- package/build/lib/{chunk-1azdancq.js → chunk-0ec46jyd.js} +1 -1
- package/build/lib/{chunk-9yksqgzr.js → chunk-29bvrw6m.js} +11 -11
- package/build/lib/{chunk-z137x08b.js → chunk-3ac8kcj9.js} +5 -5
- package/build/lib/{chunk-bb0ekhkw.js → chunk-3g3ksmsv.js} +8 -8
- package/build/lib/{chunk-9tt2021m.js → chunk-45nvxhrc.js} +9 -9
- package/build/lib/{chunk-w66ce82a.js → chunk-66t5k77r.js} +1 -1
- package/build/lib/{chunk-r4j8ybn9.js → chunk-74ddy2e7.js} +37 -20
- package/build/lib/{chunk-4hwzqthr.js → chunk-851r7zp8.js} +1 -1
- package/build/lib/{chunk-1fy8azee.js → chunk-8m15nv6s.js} +1 -1
- package/build/lib/{chunk-7pwa92rn.js → chunk-9etzp9n2.js} +1 -1
- package/build/lib/{chunk-xhdpgpkm.js → chunk-acfewabw.js} +2 -2
- package/build/lib/{chunk-ba41jh41.js → chunk-bdbd8d8q.js} +297 -127
- package/build/lib/{chunk-z96pbjhd.js → chunk-c6gj39ew.js} +1 -1
- package/build/lib/{chunk-yrnrbjes.js → chunk-fytt5jz7.js} +1 -1
- package/build/lib/{chunk-3c00n0cy.js → chunk-gv1p302b.js} +3 -3
- package/build/lib/{chunk-1yct6cra.js → chunk-j1ftnbgr.js} +1 -1
- package/build/lib/{chunk-nhfax4gb.js → chunk-mepzy07f.js} +1 -1
- package/build/lib/{chunk-e8yy2k73.js → chunk-mqcwxrnh.js} +1 -1
- package/build/lib/{chunk-v3dk9j7k.js → chunk-n3kr09mb.js} +11 -11
- package/build/lib/{chunk-acgbyf5h.js → chunk-pd487tpr.js} +1 -1
- package/build/lib/{chunk-1jvwqnem.js → chunk-rchnq1ez.js} +3 -3
- package/build/lib/{chunk-2qsq76xq.js → chunk-wa0q3smh.js} +62 -10
- package/build/lib/{chunk-mg03jdmt.js → chunk-xw8d7pv7.js} +1 -1
- package/build/lib/{chunk-r2dkp4tb.js → chunk-y9m8yw7k.js} +1 -1
- package/build/lib/core/agents/offSecAgent/index.js +7 -7
- 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/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/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.js +9 -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/index.d.ts +1 -1
- 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.js +19 -19
- package/build/lib/core/api/targetedPentest.js +10 -10
- package/build/lib/core/config/index.js +1 -1
- package/build/lib/core/findings/registry.js +3 -3
- package/build/lib/core/session/index.js +2 -2
- package/build/lib/core/session/persistence.js +3 -3
- 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-mvrvrkfa.js} +13 -13
- package/build/{native-rollout-evidence-c9yhfqcs.js → native-rollout-evidence-h2za8fyf.js} +3 -3
- package/build/{offesecAgent-5whnpeta.js → offesecAgent-r4hz607z.js} +4 -4
- package/build/pentest-52s2dn28.js +22 -0
- package/build/{pentests-e0f32aqx.js → pentests-yvt9wvxd.js} +13 -13
- package/build/recordedRunClient-6z78az3b.js +11 -0
- package/build/{targetedPentest-rcbs4nvp.js → targetedPentest-6aeg3nxd.js} +6 -6
- package/build/{targets-xj9g3q0z.js → targets-a38xnsgm.js} +13 -13
- package/build/threatModel-1gsb7ytk.js +21 -0
- package/build/{uninstall-7s784q4a.js → uninstall-kt485ay4.js} +1 -1
- package/build/{upload-4gvhwmvr.js → upload-ahw3are7.js} +4 -4
- package/build/{utils-cjrz64pc.js → utils-yqdepzr3.js} +3 -3
- package/package.json +1 -1
- package/src/core/agents/offSecAgent/offensiveSecurityAgent.test.ts +92 -5
- package/src/core/agents/offSecAgent/offensiveSecurityAgent.ts +49 -28
- package/src/core/agents/offSecAgent/tools/listMemories.test.ts +230 -0
- package/src/core/agents/offSecAgent/tools/listMemories.ts +73 -6
- 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 +299 -80
- 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/index.ts +4 -1
- package/src/core/ai/models/models.test.ts +23 -0
- package/src/core/ai/models/openrouter.ts +6 -0
- 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/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/observability/telemetry.test.ts +2 -3
- package/src/tui/components/chat/loading-indicator.tsx +20 -4
- package/src/tui/components/chat/message-list.tsx +1 -0
- 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/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
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ALL_TOOL_NAMES2,
|
|
3
3
|
SKILL_TOOL_NAMES2
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
4
|
+
} from "./cli-tfaqp0ty.js";
|
|
5
|
+
import"./cli-0ry9v2cb.js";
|
|
6
|
+
import"./cli-0cwdrrq7.js";
|
|
7
|
+
import"./cli-nj73990n.js";
|
|
8
8
|
import"./cli-c2k4xxaw.js";
|
|
9
9
|
export {
|
|
10
10
|
ALL_TOOL_NAMES2 as ALL_TOOL_NAMES,
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
AppsDiscoveryResultSchema2,
|
|
7
7
|
DiscoverySummarySchema2,
|
|
8
8
|
WhiteboxAttackSurfaceAgent2
|
|
9
|
-
} from "./cli-
|
|
10
|
-
import"./cli-
|
|
9
|
+
} from "./cli-zmeb85er.js";
|
|
10
|
+
import"./cli-gr4az5sf.js";
|
|
11
11
|
import"./cli-qba2x69h.js";
|
|
12
|
-
import"./cli-
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
12
|
+
import"./cli-tfaqp0ty.js";
|
|
13
|
+
import"./cli-nj73990n.js";
|
|
14
|
+
import"./cli-0cwdrrq7.js";
|
|
15
15
|
import"./cli-c2k4xxaw.js";
|
|
16
|
-
import"./cli-
|
|
16
|
+
import"./cli-0ry9v2cb.js";
|
|
17
17
|
export {
|
|
18
18
|
AppInfoSchema2 as AppInfoSchema,
|
|
19
19
|
AppsDiscoveryResultSchema2 as AppsDiscoveryResultSchema,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import"./cli-
|
|
2
|
-
import"./cli-
|
|
1
|
+
import"./cli-0ry9v2cb.js";
|
|
2
|
+
import"./cli-0cwdrrq7.js";
|
|
3
3
|
import {
|
|
4
4
|
scopedLogger,
|
|
5
5
|
init_lazyLogger,
|
|
6
6
|
createLogger,
|
|
7
7
|
init_structured
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-nj73990n.js";
|
|
9
9
|
import"./cli-c2k4xxaw.js";
|
|
10
10
|
|
|
11
11
|
// src/core/agents/specialized/findingJudge/index.ts
|
|
@@ -14,7 +14,7 @@ init_lazyLogger();
|
|
|
14
14
|
var log = scopedLogger(() => createLogger("FindingJudge"));
|
|
15
15
|
async function judgeFinding(input, ctx) {
|
|
16
16
|
try {
|
|
17
|
-
const { FindingJudgeAgent } = await import("./agent-
|
|
17
|
+
const { FindingJudgeAgent } = await import("./agent-xtn1masf.js");
|
|
18
18
|
const agent = new FindingJudgeAgent({
|
|
19
19
|
finding: input,
|
|
20
20
|
model: ctx.model,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import"./cli-
|
|
3
|
-
import"./cli-
|
|
2
|
+
import"./cli-0ry9v2cb.js";
|
|
3
|
+
import"./cli-0cwdrrq7.js";
|
|
4
4
|
import {
|
|
5
5
|
CLOSED_DISPOSITIONS2,
|
|
6
6
|
listIssues2,
|
|
@@ -11,22 +11,22 @@ import {
|
|
|
11
11
|
retestIssue2,
|
|
12
12
|
linkPullRequest2,
|
|
13
13
|
listIssuePullRequests2
|
|
14
|
-
} from "./cli-
|
|
15
|
-
import"./cli-
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
21
|
-
import"./cli-
|
|
22
|
-
import"./cli-
|
|
14
|
+
} from "./cli-4mar7kvr.js";
|
|
15
|
+
import"./cli-tfaqp0ty.js";
|
|
16
|
+
import"./cli-5gaxk6hd.js";
|
|
17
|
+
import"./cli-m5ryqeav.js";
|
|
18
|
+
import"./cli-zmeb85er.js";
|
|
19
|
+
import"./cli-8hxrn15h.js";
|
|
20
|
+
import"./cli-t3m0e9t2.js";
|
|
21
|
+
import"./cli-metec8r8.js";
|
|
22
|
+
import"./cli-ge8q6nxr.js";
|
|
23
23
|
import"./cli-xcy2vxj2.js";
|
|
24
24
|
import {
|
|
25
25
|
markCommandFailed
|
|
26
26
|
} from "./cli-z82n3qk1.js";
|
|
27
|
-
import"./cli-
|
|
27
|
+
import"./cli-gr4az5sf.js";
|
|
28
28
|
import"./cli-qba2x69h.js";
|
|
29
|
-
import"./cli-
|
|
29
|
+
import"./cli-nj73990n.js";
|
|
30
30
|
import"./cli-c2k4xxaw.js";
|
|
31
31
|
|
|
32
32
|
// src/cli/issues.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import"./cli-
|
|
3
|
-
import"./cli-
|
|
2
|
+
import"./cli-0ry9v2cb.js";
|
|
3
|
+
import"./cli-0cwdrrq7.js";
|
|
4
4
|
import {
|
|
5
5
|
KNOWLEDGE_CATEGORIES2,
|
|
6
6
|
KNOWLEDGE_STATUSES2,
|
|
@@ -9,22 +9,22 @@ import {
|
|
|
9
9
|
createKnowledge2,
|
|
10
10
|
updateKnowledge2,
|
|
11
11
|
archiveKnowledge2
|
|
12
|
-
} from "./cli-
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
12
|
+
} from "./cli-4mar7kvr.js";
|
|
13
|
+
import"./cli-tfaqp0ty.js";
|
|
14
|
+
import"./cli-5gaxk6hd.js";
|
|
15
|
+
import"./cli-m5ryqeav.js";
|
|
16
|
+
import"./cli-zmeb85er.js";
|
|
17
|
+
import"./cli-8hxrn15h.js";
|
|
18
|
+
import"./cli-t3m0e9t2.js";
|
|
19
|
+
import"./cli-metec8r8.js";
|
|
20
|
+
import"./cli-ge8q6nxr.js";
|
|
21
21
|
import"./cli-xcy2vxj2.js";
|
|
22
22
|
import {
|
|
23
23
|
markCommandFailed
|
|
24
24
|
} from "./cli-z82n3qk1.js";
|
|
25
|
-
import"./cli-
|
|
25
|
+
import"./cli-gr4az5sf.js";
|
|
26
26
|
import"./cli-qba2x69h.js";
|
|
27
|
-
import"./cli-
|
|
27
|
+
import"./cli-nj73990n.js";
|
|
28
28
|
import"./cli-c2k4xxaw.js";
|
|
29
29
|
|
|
30
30
|
// src/cli/knowledge.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getCurrentVersion,
|
|
3
3
|
config2
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-66t5k77r.js";
|
|
5
5
|
import {
|
|
6
6
|
newSessionId2,
|
|
7
7
|
isSessionId2
|
|
@@ -34,12 +34,12 @@ import {
|
|
|
34
34
|
getPensarConsoleUrl2,
|
|
35
35
|
buildAuthConfig2,
|
|
36
36
|
normalizeStepUsage2
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-bdbd8d8q.js";
|
|
38
38
|
import {
|
|
39
39
|
buildSessionWorkspaceSection2,
|
|
40
40
|
buildBaseSystemPrompt2,
|
|
41
41
|
OffensiveSecurityAgent2
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-74ddy2e7.js";
|
|
43
43
|
import {
|
|
44
44
|
ASK_USER_QUESTIONS_TOOL_NAME2,
|
|
45
45
|
apiRequest,
|
|
@@ -62,32 +62,32 @@ import {
|
|
|
62
62
|
createDomain2,
|
|
63
63
|
ALL_TOOL_NAMES2,
|
|
64
64
|
SKILL_TOOL_NAMES2
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-wa0q3smh.js";
|
|
66
66
|
import {
|
|
67
67
|
BlackboxAttackSurfaceAgent2
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-8m15nv6s.js";
|
|
69
69
|
import {
|
|
70
70
|
runWhiteboxAttackSurfaceWorkflow2
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-3ac8kcj9.js";
|
|
72
72
|
import {
|
|
73
73
|
runAuthenticationAgent3
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-acfewabw.js";
|
|
75
75
|
import {
|
|
76
76
|
readExecutionMetrics,
|
|
77
77
|
writeExecutionMetrics,
|
|
78
78
|
runPentestWorkflow2
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-n3kr09mb.js";
|
|
80
80
|
import {
|
|
81
81
|
PatchingAgent2
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-j1ftnbgr.js";
|
|
83
83
|
import {
|
|
84
84
|
startAgentExecution,
|
|
85
85
|
runTargetedPentestAgent2
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-c6gj39ew.js";
|
|
87
87
|
import {
|
|
88
88
|
AgentRuntime,
|
|
89
89
|
defineAgent
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-pd487tpr.js";
|
|
91
91
|
import {
|
|
92
92
|
__export
|
|
93
93
|
} from "./chunk-n0ba7khr.js";
|
|
@@ -4,26 +4,26 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
createLogger,
|
|
6
6
|
scopedLogger
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-bdbd8d8q.js";
|
|
8
8
|
import {
|
|
9
9
|
assertDepth2,
|
|
10
10
|
inProcessSeams2,
|
|
11
11
|
resolveItemHooks2
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-fytt5jz7.js";
|
|
13
13
|
import {
|
|
14
14
|
inProcessSubagentSpawner2
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-gv1p302b.js";
|
|
16
16
|
import {
|
|
17
17
|
collectCommand
|
|
18
18
|
} from "./chunk-fy3bbbqy.js";
|
|
19
19
|
import {
|
|
20
20
|
CodeAgent2
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-851r7zp8.js";
|
|
22
22
|
import {
|
|
23
23
|
WHITEBOX_APPS_DISCOVERY_SYSTEM_PROMPT2,
|
|
24
24
|
WHITEBOX_ENDPOINT_DOCUMENTATION_SYSTEM_PROMPT,
|
|
25
25
|
WHITEBOX_DISCOVERY_SYSTEM_PROMPT2
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-y9m8yw7k.js";
|
|
27
27
|
import {
|
|
28
28
|
EndpointSchema2,
|
|
29
29
|
AppInfoSchema2,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import"./chunk-7gjdygcx.js";
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-66t5k77r.js";
|
|
3
3
|
import"./chunk-jdjagvgr.js";
|
|
4
4
|
import"./chunk-2njv7wz3.js";
|
|
5
|
-
import"./chunk-
|
|
5
|
+
import"./chunk-bdbd8d8q.js";
|
|
6
6
|
import"./chunk-8vhr65w3.js";
|
|
7
7
|
import {
|
|
8
8
|
OffensiveSecurityAgent2
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-74ddy2e7.js";
|
|
10
10
|
import"./chunk-fy3bbbqy.js";
|
|
11
11
|
import"./chunk-mv74mq5n.js";
|
|
12
12
|
import {
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
withFindingPersistedHook2,
|
|
15
15
|
assertDepth2,
|
|
16
16
|
inProcessSeams2
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-fytt5jz7.js";
|
|
18
18
|
import"./chunk-b8eq85d2.js";
|
|
19
19
|
import {
|
|
20
20
|
FindingsRegistry2
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import"./chunk-
|
|
21
|
+
} from "./chunk-0ec46jyd.js";
|
|
22
|
+
import"./chunk-gv1p302b.js";
|
|
23
23
|
import"./chunk-t5bt5vn1.js";
|
|
24
|
-
import"./chunk-
|
|
24
|
+
import"./chunk-wa0q3smh.js";
|
|
25
25
|
import"./chunk-eb4h4k1f.js";
|
|
26
26
|
import"./chunk-vx228eeq.js";
|
|
27
27
|
import"./chunk-bx94rwt5.js";
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
REPORT_FILENAME_MD,
|
|
37
37
|
REPORT_FILENAME_JSON,
|
|
38
38
|
createThreatModelPrompt
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-n3kr09mb.js";
|
|
40
40
|
|
|
41
41
|
// src/core/workflows/fastStrike.ts
|
|
42
42
|
import { writeFileSync } from "node:fs";
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AuthenticationAgent2,
|
|
3
3
|
runAuthenticationAgent3
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import"./chunk-
|
|
6
|
-
import"./chunk-
|
|
7
|
-
import"./chunk-
|
|
8
|
-
import"./chunk-
|
|
4
|
+
} from "./chunk-acfewabw.js";
|
|
5
|
+
import"./chunk-pd487tpr.js";
|
|
6
|
+
import"./chunk-74ddy2e7.js";
|
|
7
|
+
import"./chunk-gv1p302b.js";
|
|
8
|
+
import"./chunk-fytt5jz7.js";
|
|
9
9
|
import"./chunk-7gjdygcx.js";
|
|
10
10
|
import"./chunk-b8eq85d2.js";
|
|
11
|
-
import"./chunk-
|
|
11
|
+
import"./chunk-wa0q3smh.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-0ec46jyd.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-bdbd8d8q.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-66t5k77r.js";
|
|
24
24
|
import"./chunk-zrbqn62x.js";
|
|
25
25
|
import"./chunk-mv74mq5n.js";
|
|
26
26
|
import"./chunk-q5e23acz.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
scopedLogger,
|
|
20
20
|
normalizeStepUsage2,
|
|
21
21
|
streamResponse2
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-bdbd8d8q.js";
|
|
23
23
|
import {
|
|
24
24
|
PerCommandShell2,
|
|
25
25
|
resolveBrowserHeaderPolicy2,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
} from "./chunk-fy3bbbqy.js";
|
|
48
48
|
import {
|
|
49
49
|
inProcessSubagentSpawner2
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-gv1p302b.js";
|
|
51
51
|
import {
|
|
52
52
|
addMemory2,
|
|
53
53
|
ASK_USER_QUESTIONS_TOOL_NAME2,
|
|
@@ -120,7 +120,7 @@ import {
|
|
|
120
120
|
FAST_STRIKE_EXCLUDED_TOOL_NAMES2,
|
|
121
121
|
PLAN_MODE_TOOL_NAMES2,
|
|
122
122
|
SKILL_TOOL_NAMES2
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-wa0q3smh.js";
|
|
124
124
|
import {
|
|
125
125
|
ApexFindingObject2
|
|
126
126
|
} from "./chunk-q5e23acz.js";
|
|
@@ -1910,13 +1910,27 @@ class OffensiveSecurityAgent2 {
|
|
|
1910
1910
|
mkdirSync2(messagesDir, { recursive: true });
|
|
1911
1911
|
}
|
|
1912
1912
|
this.messagesPath = join3(messagesDir, "messages.json");
|
|
1913
|
-
const
|
|
1914
|
-
current:
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1913
|
+
const preparedContextRef = {
|
|
1914
|
+
current: {
|
|
1915
|
+
messages: input.messages ? [...input.messages] : [
|
|
1916
|
+
{
|
|
1917
|
+
role: "user",
|
|
1918
|
+
content: [{ type: "text", text: input.prompt }]
|
|
1919
|
+
}
|
|
1920
|
+
],
|
|
1921
|
+
responseMessageOffset: 0
|
|
1922
|
+
}
|
|
1923
|
+
};
|
|
1924
|
+
const legacyMessages = (responseMessages) => [
|
|
1925
|
+
...preparedContextRef.current.messages,
|
|
1926
|
+
...responseMessages.slice(preparedContextRef.current.responseMessageOffset)
|
|
1927
|
+
];
|
|
1928
|
+
const persistedMessages = (messages) => {
|
|
1929
|
+
let first = 0;
|
|
1930
|
+
while (messages[first]?.role === "system" && messages[first]?.providerOptions) {
|
|
1931
|
+
first++;
|
|
1932
|
+
}
|
|
1933
|
+
return first === 0 ? messages : messages.slice(first);
|
|
1920
1934
|
};
|
|
1921
1935
|
this.writer = new AgentMessageWriter({ messagesPath: this.messagesPath });
|
|
1922
1936
|
this.finalizeInterruptedStep = createInterruptedStepFinalizer({
|
|
@@ -1970,6 +1984,12 @@ class OffensiveSecurityAgent2 {
|
|
|
1970
1984
|
usageRecorder: input.usageRecorder,
|
|
1971
1985
|
contextRecorder: input.contextRecorder,
|
|
1972
1986
|
inferenceRecorder: input.inferenceRecorder,
|
|
1987
|
+
onContextPrepared: (context) => {
|
|
1988
|
+
preparedContextRef.current = {
|
|
1989
|
+
messages: [...context.messages],
|
|
1990
|
+
responseMessageOffset: context.responseMessageOffset
|
|
1991
|
+
};
|
|
1992
|
+
},
|
|
1973
1993
|
sessionPath: messagesDir,
|
|
1974
1994
|
sessionId: this.busSessionId,
|
|
1975
1995
|
onStepFinish: async (event) => {
|
|
@@ -1980,11 +2000,8 @@ class OffensiveSecurityAgent2 {
|
|
|
1980
2000
|
await input.onStepFinish?.(event);
|
|
1981
2001
|
return;
|
|
1982
2002
|
}
|
|
1983
|
-
const canonical = input.contextRecorder?.latest() ??
|
|
1984
|
-
|
|
1985
|
-
...event.response.messages
|
|
1986
|
-
];
|
|
1987
|
-
this.writer.setLatest(canonical);
|
|
2003
|
+
const canonical = input.contextRecorder?.latest() ?? legacyMessages(event.response.messages);
|
|
2004
|
+
this.writer.setLatest(persistedMessages(canonical));
|
|
1988
2005
|
schedulePersist();
|
|
1989
2006
|
traceWriter.recordStep(event.response.messages, stepUsage);
|
|
1990
2007
|
this.eventBus.emit("step-finish", {
|
|
@@ -1997,16 +2014,16 @@ class OffensiveSecurityAgent2 {
|
|
|
1997
2014
|
await input.onStepFinish?.(event);
|
|
1998
2015
|
},
|
|
1999
2016
|
onSummarized: () => {
|
|
2000
|
-
|
|
2017
|
+
preparedContextRef.current = {
|
|
2018
|
+
messages: [],
|
|
2019
|
+
responseMessageOffset: 0
|
|
2020
|
+
};
|
|
2001
2021
|
traceWriter.markSummarized();
|
|
2002
2022
|
},
|
|
2003
2023
|
onFinish: async (event) => {
|
|
2004
2024
|
this.writer.cancelTimer();
|
|
2005
2025
|
if (!this.writer.syntheticsPersisted) {
|
|
2006
|
-
const finalMessages = input.contextRecorder?.latest() ?? this.writer.latest ??
|
|
2007
|
-
...initialMessagesRef.current,
|
|
2008
|
-
...event.response.messages
|
|
2009
|
-
];
|
|
2026
|
+
const finalMessages = persistedMessages(input.contextRecorder?.latest() ?? this.writer.latest ?? legacyMessages(event.response.messages));
|
|
2010
2027
|
this.writer.setLatest(finalMessages);
|
|
2011
2028
|
await this.writer.enqueueWrite(finalMessages).catch(() => {});
|
|
2012
2029
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLogger,
|
|
3
3
|
scopedLogger
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-bdbd8d8q.js";
|
|
5
5
|
import {
|
|
6
6
|
GOOGLE_SIGNIN_PROMPT_GUIDANCE,
|
|
7
7
|
browserEngineForGoogleSignIn
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
AgentRuntime,
|
|
14
14
|
defineAgent
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-pd487tpr.js";
|
|
16
16
|
|
|
17
17
|
// src/core/agents/specialized/authenticationAgent/agent.ts
|
|
18
18
|
import { existsSync, readFileSync } from "node:fs";
|