@pensar/apex 2.6.1-canary.e936ec17 → 2.6.1
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-6w7egcf1.js +13 -0
- package/build/agent-9zx75feh.js +13 -0
- package/build/{agent-t2g0e5v1.js → agent-ayreaj6z.js} +5 -5
- package/build/{agent-runs-mw4bp0n5.js → agent-runs-g37vkrjr.js} +16 -16
- package/build/{agent-x8wxd9ma.js → agent-yby11zaq.js} +6 -6
- package/build/{apps-b2x50tm7.js → apps-xn6km9yn.js} +13 -13
- package/build/{auth-0rfqyw3s.js → auth-d105wc64.js} +13 -13
- package/build/{blackboxAgent-7bapanbv.js → blackboxAgent-s56sgx9b.js} +6 -6
- package/build/{blackboxPentest-ngs99vv8.js → blackboxPentest-ps78v3w7.js} +11 -11
- package/build/{cli-tt7d70n9.js → cli-1ve18npr.js} +1 -1
- package/build/{cli-en2trtdx.js → cli-3sp6nd8d.js} +2 -2
- package/build/{cli-k594kwq8.js → cli-65g6rcat.js} +1 -1
- package/build/{cli-w9d2bnf3.js → cli-709rvekb.js} +1 -1
- package/build/{cli-rwnm0p5r.js → cli-7eea4e2y.js} +39 -7
- package/build/{cli-1b0pw0wp.js → cli-ae8jqxqr.js} +2 -2
- package/build/{cli-raavtvwt.js → cli-az3xq70v.js} +1 -1
- package/build/{cli-c2nb79ce.js → cli-c05y640n.js} +1 -1
- package/build/{cli-9d8m1qw2.js → cli-d37a42dc.js} +8 -8
- package/build/{cli-jpa3w5b4.js → cli-dpsw2fe6.js} +5 -5
- package/build/{cli-9a7b3x56.js → cli-fy6vh2a7.js} +1 -1
- package/build/{cli-72aenzba.js → cli-gx71jcke.js} +1 -1
- package/build/{cli-84qrqxjc.js → cli-k2nwxta0.js} +2 -2
- package/build/{cli-ay461rtr.js → cli-kb21qhvm.js} +2 -2
- package/build/{cli-sf6x1vjx.js → cli-n2en7j5b.js} +1 -1
- package/build/{cli-zahhskff.js → cli-ngq9dr8n.js} +3 -3
- package/build/{cli-8q41y2ss.js → cli-qgz1q9g5.js} +12 -12
- package/build/{cli-h68jfmth.js → cli-xtc2t6me.js} +3 -3
- package/build/cli.js +40 -36
- package/build/{config-8eg7v57g.js → config-zpqkd5cz.js} +1 -1
- package/build/{fastStrike-6pejawnd.js → fastStrike-mcjdvwez.js} +5 -5
- package/build/{fixes-94pbkpy6.js → fixes-kytx5dmj.js} +13 -13
- package/build/{index-xavch1zh.js → index-4vqdgb42.js} +19 -19
- package/build/{index-k3vaa38r.js → index-dr3tg1w3.js} +1 -1
- package/build/{index-g8z6kn6v.js → index-fv64eb32.js} +2 -2
- package/build/{index-bsdq9wd9.js → index-je6hcsqr.js} +1 -1
- package/build/{index-c6szs0vn.js → index-n65z6v7b.js} +6 -6
- package/build/{index-jvpmhhqm.js → index-ns4m4s01.js} +4 -4
- package/build/{index-9hnznpdk.js → index-qv4cc65p.js} +28 -14
- package/build/{index-2sc33n6h.js → index-r9yjkfrv.js} +4 -4
- package/build/{index-yt0n80v2.js → index-wqetp6gq.js} +5 -5
- package/build/{issues-hxcq3q0g.js → issues-eb3q9d3a.js} +13 -13
- package/build/knowledge-fqsvtx0f.js +139 -0
- package/build/lib/{chunk-nv32cpyc.js → chunk-1azdancq.js} +1 -1
- package/build/lib/{chunk-9yjz0ynw.js → chunk-1fy8azee.js} +1 -1
- package/build/lib/{chunk-zfp495pt.js → chunk-1jvwqnem.js} +3 -3
- package/build/lib/{chunk-dj3q3fxw.js → chunk-1yct6cra.js} +1 -1
- package/build/lib/{chunk-gt5gf7ps.js → chunk-2qsq76xq.js} +3 -3
- package/build/lib/{chunk-tjch07p0.js → chunk-3c00n0cy.js} +3 -3
- package/build/lib/{chunk-86z9yr32.js → chunk-4hwzqthr.js} +1 -1
- package/build/lib/{chunk-9jfybqs2.js → chunk-7pwa92rn.js} +1 -1
- package/build/lib/{chunk-pcpzbdnn.js → chunk-9tt2021m.js} +9 -9
- package/build/lib/{chunk-xqygd85b.js → chunk-9yksqgzr.js} +52 -13
- package/build/lib/{chunk-xw3w0xzz.js → chunk-acgbyf5h.js} +1 -1
- package/build/lib/{chunk-5wt0sejb.js → chunk-ba41jh41.js} +1 -1
- package/build/lib/{chunk-r18sc80z.js → chunk-bb0ekhkw.js} +8 -8
- package/build/lib/{chunk-shtrgm3j.js → chunk-e8yy2k73.js} +1 -1
- package/build/lib/{chunk-0z4r4r0x.js → chunk-mg03jdmt.js} +1 -1
- package/build/lib/{chunk-nhnhhnk1.js → chunk-nhfax4gb.js} +1 -1
- package/build/lib/{chunk-521eq8kw.js → chunk-r2dkp4tb.js} +1 -1
- package/build/lib/{chunk-mqftsw7s.js → chunk-r4j8ybn9.js} +3 -3
- package/build/lib/{chunk-v8p7j8br.js → chunk-v3dk9j7k.js} +11 -11
- package/build/lib/{chunk-afc4wybp.js → chunk-w66ce82a.js} +1 -1
- package/build/lib/{chunk-ydgsc09t.js → chunk-xhdpgpkm.js} +2 -2
- package/build/lib/{chunk-837ga30c.js → chunk-yrnrbjes.js} +1 -1
- package/build/lib/{chunk-m9anmxyq.js → chunk-z137x08b.js} +5 -5
- package/build/lib/{chunk-pnnj2k0n.js → chunk-z96pbjhd.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/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.js +2 -2
- package/build/lib/core/ai/index.js +2 -2
- package/build/lib/core/ai/utils.js +2 -2
- package/build/lib/core/api/index.d.ts +2 -0
- package/build/lib/core/api/index.js +34 -20
- package/build/lib/core/api/issues.d.ts +1 -0
- package/build/lib/core/api/knowledge.d.ts +33 -0
- 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-szgf3e9j.js → logs-x62b7hk1.js} +13 -13
- package/build/{native-rollout-evidence-zep91dya.js → native-rollout-evidence-c9yhfqcs.js} +3 -3
- package/build/{offesecAgent-g9a7jvmb.js → offesecAgent-5whnpeta.js} +4 -4
- package/build/pentest-e61hc38s.js +22 -0
- package/build/{pentests-pk66smvx.js → pentests-e0f32aqx.js} +21 -14
- package/build/recordedRunClient-dp032c32.js +11 -0
- package/build/{targetedPentest-t7f2vdpk.js → targetedPentest-rcbs4nvp.js} +6 -6
- package/build/{targets-5dp972y7.js → targets-xj9g3q0z.js} +13 -13
- package/build/threatModel-jkxfa40s.js +21 -0
- package/build/{uninstall-qshcasbp.js → uninstall-7s784q4a.js} +1 -1
- package/build/{upload-jy6hp68b.js → upload-4gvhwmvr.js} +4 -4
- package/build/{utils-6z5t7vq1.js → utils-cjrz64pc.js} +3 -3
- package/package.json +1 -1
- package/src/cli/knowledge.test.ts +140 -0
- package/src/cli/knowledge.ts +146 -0
- package/src/cli/pentests.test.ts +15 -0
- package/src/cli/pentests.ts +15 -1
- package/src/cli.ts +4 -0
- package/src/core/api/index.ts +15 -0
- package/src/core/api/issues.ts +1 -0
- package/src/core/api/knowledge.ts +70 -0
- package/build/agent-6pyd6vmv.js +0 -13
- package/build/agent-9wqvzg28.js +0 -13
- package/build/pentest-wx108ypq.js +0 -22
- package/build/recordedRunClient-4yx9czwe.js +0 -11
- package/build/threatModel-cxkg9kd3.js +0 -21
|
@@ -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-r2dkp4tb.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-acgbyf5h.js";
|
|
15
|
+
import"../../../../chunk-r4j8ybn9.js";
|
|
16
|
+
import"../../../../chunk-3c00n0cy.js";
|
|
17
|
+
import"../../../../chunk-yrnrbjes.js";
|
|
18
18
|
import"../../../../chunk-7gjdygcx.js";
|
|
19
19
|
import"../../../../chunk-b8eq85d2.js";
|
|
20
|
-
import"../../../../chunk-
|
|
20
|
+
import"../../../../chunk-2qsq76xq.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-1azdancq.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-ba41jh41.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-w66ce82a.js";
|
|
33
33
|
import"../../../../chunk-zrbqn62x.js";
|
|
34
34
|
import"../../../../chunk-mv74mq5n.js";
|
|
35
35
|
import"../../../../chunk-q5e23acz.js";
|
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-ba41jh41.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-w66ce82a.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-ba41jh41.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-w66ce82a.js";
|
|
39
39
|
export {
|
|
40
40
|
AVAILABLE_MODELS2 as AVAILABLE_MODELS,
|
|
41
41
|
DEFAULT_NATIVE_ROLLOUT_CAPTURE_LIMITS2 as DEFAULT_NATIVE_ROLLOUT_CAPTURE_LIMITS,
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
checkIfContextLengthError2,
|
|
7
7
|
createSummarizationStream2,
|
|
8
8
|
consumeStream2
|
|
9
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-ba41jh41.js";
|
|
10
10
|
import"../../chunk-8vhr65w3.js";
|
|
11
11
|
import"../../chunk-2njv7wz3.js";
|
|
12
12
|
import"../../chunk-jdjagvgr.js";
|
|
13
|
-
import"../../chunk-
|
|
13
|
+
import"../../chunk-w66ce82a.js";
|
|
14
14
|
export {
|
|
15
15
|
buildAuthConfig2 as buildAuthConfig,
|
|
16
16
|
buildStreamingFetchSignal2 as buildStreamingFetchSignal,
|
|
@@ -23,6 +23,8 @@ export type { EnvironmentAgentInput, EnvironmentResult } from "./environment";
|
|
|
23
23
|
export { runEnvironmentAgent } from "./environment";
|
|
24
24
|
export type { AgentLogEntry, ClosedDisposition, CommentAuthor, DispatchPentestInput, DispatchPentestResult, FixDetail, FixSummary, IssueCommentPage, IssueCommentSummary, IssueDetail, IssueSummary, LinkPullRequestResult, ListAgentLogsResult, ListTargetLogsResult, PentestTargetSummary, PullRequestSummary, RetestIssueResult, ScanDetail, ScanSummary, SearchAgentLogsResult, SearchTargetLogsResult, UpdateIssueResult, } from "./issues";
|
|
25
25
|
export { CLOSED_DISPOSITIONS, createIssueComment, dispatchPentest, getFix, getIssue, getScan, linkPullRequest, listAgentLogs, listFixes, listIssueComments, listIssuePullRequests, listIssues, listPentestTargets, listScans, listTargetLogs, retestIssue, searchAgentLogs, searchTargetLogs, updateIssue, } from "./issues";
|
|
26
|
+
export type { KnowledgeCategory, KnowledgeEntry, KnowledgeInput, KnowledgeStatus, } from "./knowledge";
|
|
27
|
+
export { archiveKnowledge, createKnowledge, getKnowledge, KNOWLEDGE_CATEGORIES, KNOWLEDGE_STATUSES, listKnowledge, updateKnowledge, } from "./knowledge";
|
|
26
28
|
export { serveLocalRunWorker } from "./localWorker";
|
|
27
29
|
export type { OffensiveSecurityAgentClientInput, RunAgentResult, } from "./offesecAgent";
|
|
28
30
|
export { createOffensiveSecurityAgentClient, runOffensiveSecurityAgent, } from "./offesecAgent";
|
|
@@ -25,6 +25,13 @@ import {
|
|
|
25
25
|
searchAgentLogs2,
|
|
26
26
|
listTargetLogs2,
|
|
27
27
|
searchTargetLogs2,
|
|
28
|
+
KNOWLEDGE_CATEGORIES2,
|
|
29
|
+
KNOWLEDGE_STATUSES2,
|
|
30
|
+
listKnowledge2,
|
|
31
|
+
getKnowledge2,
|
|
32
|
+
createKnowledge2,
|
|
33
|
+
updateKnowledge2,
|
|
34
|
+
archiveKnowledge2,
|
|
28
35
|
runOffensiveSecurityAgent2,
|
|
29
36
|
createOffensiveSecurityAgentClient2,
|
|
30
37
|
runRecordedAgent2,
|
|
@@ -40,24 +47,24 @@ import {
|
|
|
40
47
|
VulnerabilityReproductionResultSchema2,
|
|
41
48
|
startVulnerabilityReproductionAgent2,
|
|
42
49
|
runVulnerabilityReproductionAgent2
|
|
43
|
-
} from "../../chunk-
|
|
44
|
-
import"../../chunk-
|
|
45
|
-
import"../../chunk-
|
|
46
|
-
import"../../chunk-
|
|
50
|
+
} from "../../chunk-9yksqgzr.js";
|
|
51
|
+
import"../../chunk-v3dk9j7k.js";
|
|
52
|
+
import"../../chunk-z137x08b.js";
|
|
53
|
+
import"../../chunk-e8yy2k73.js";
|
|
47
54
|
import {
|
|
48
55
|
runTargetedPentestAgent2
|
|
49
|
-
} from "../../chunk-
|
|
50
|
-
import"../../chunk-
|
|
56
|
+
} from "../../chunk-z96pbjhd.js";
|
|
57
|
+
import"../../chunk-r2dkp4tb.js";
|
|
51
58
|
import"../../chunk-xpfg2fbk.js";
|
|
52
|
-
import"../../chunk-
|
|
53
|
-
import"../../chunk-
|
|
54
|
-
import"../../chunk-
|
|
55
|
-
import"../../chunk-
|
|
56
|
-
import"../../chunk-
|
|
57
|
-
import"../../chunk-
|
|
58
|
-
import"../../chunk-
|
|
59
|
-
import"../../chunk-
|
|
60
|
-
import"../../chunk-
|
|
59
|
+
import"../../chunk-xhdpgpkm.js";
|
|
60
|
+
import"../../chunk-4hwzqthr.js";
|
|
61
|
+
import"../../chunk-1yct6cra.js";
|
|
62
|
+
import"../../chunk-1jvwqnem.js";
|
|
63
|
+
import"../../chunk-1fy8azee.js";
|
|
64
|
+
import"../../chunk-acgbyf5h.js";
|
|
65
|
+
import"../../chunk-r4j8ybn9.js";
|
|
66
|
+
import"../../chunk-3c00n0cy.js";
|
|
67
|
+
import"../../chunk-yrnrbjes.js";
|
|
61
68
|
import"../../chunk-7gjdygcx.js";
|
|
62
69
|
import"../../chunk-b8eq85d2.js";
|
|
63
70
|
import {
|
|
@@ -78,11 +85,11 @@ import {
|
|
|
78
85
|
searchEndpoints2,
|
|
79
86
|
listDomains2,
|
|
80
87
|
createDomain2
|
|
81
|
-
} from "../../chunk-
|
|
88
|
+
} from "../../chunk-2qsq76xq.js";
|
|
82
89
|
import"../../chunk-ja7j565c.js";
|
|
83
90
|
import"../../chunk-3q89v4xv.js";
|
|
84
91
|
import"../../chunk-fy3bbbqy.js";
|
|
85
|
-
import"../../chunk-
|
|
92
|
+
import"../../chunk-1azdancq.js";
|
|
86
93
|
import"../../chunk-t5bt5vn1.js";
|
|
87
94
|
import"../../chunk-eb4h4k1f.js";
|
|
88
95
|
import"../../chunk-vx228eeq.js";
|
|
@@ -94,11 +101,11 @@ import {
|
|
|
94
101
|
getPensarApiUrl2,
|
|
95
102
|
getPensarGatewayUrl2,
|
|
96
103
|
getPensarConsoleUrl2
|
|
97
|
-
} from "../../chunk-
|
|
104
|
+
} from "../../chunk-ba41jh41.js";
|
|
98
105
|
import"../../chunk-8vhr65w3.js";
|
|
99
106
|
import"../../chunk-2njv7wz3.js";
|
|
100
107
|
import"../../chunk-jdjagvgr.js";
|
|
101
|
-
import"../../chunk-
|
|
108
|
+
import"../../chunk-w66ce82a.js";
|
|
102
109
|
import"../../chunk-zrbqn62x.js";
|
|
103
110
|
import"../../chunk-mv74mq5n.js";
|
|
104
111
|
import"../../chunk-q5e23acz.js";
|
|
@@ -107,6 +114,8 @@ export {
|
|
|
107
114
|
CLOSED_DISPOSITIONS2 as CLOSED_DISPOSITIONS,
|
|
108
115
|
DEFAULT_NATIVE_ROLLOUT_CAPTURE_LIMITS2 as DEFAULT_NATIVE_ROLLOUT_CAPTURE_LIMITS,
|
|
109
116
|
ENDPOINT_TRANSPORTS2 as ENDPOINT_TRANSPORTS,
|
|
117
|
+
KNOWLEDGE_CATEGORIES2 as KNOWLEDGE_CATEGORIES,
|
|
118
|
+
KNOWLEDGE_STATUSES2 as KNOWLEDGE_STATUSES,
|
|
110
119
|
PENSAR_API_BASE_URL2 as PENSAR_API_BASE_URL,
|
|
111
120
|
PENSAR_CONSOLE_BASE_URL2 as PENSAR_CONSOLE_BASE_URL,
|
|
112
121
|
RunRecoveryBlockedError2 as RunRecoveryBlockedError,
|
|
@@ -114,10 +123,12 @@ export {
|
|
|
114
123
|
VulnerabilityReproductionResultSchema2 as VulnerabilityReproductionResultSchema,
|
|
115
124
|
VulnerabilityReproductionStepSchema2 as VulnerabilityReproductionStepSchema,
|
|
116
125
|
VulnerabilityReproductionVerdictSchema2 as VulnerabilityReproductionVerdictSchema,
|
|
126
|
+
archiveKnowledge2 as archiveKnowledge,
|
|
117
127
|
createApp2 as createApp,
|
|
118
128
|
createDomain2 as createDomain,
|
|
119
129
|
createEndpoint2 as createEndpoint,
|
|
120
130
|
createIssueComment2 as createIssueComment,
|
|
131
|
+
createKnowledge2 as createKnowledge,
|
|
121
132
|
createNativeRolloutEvidenceCapture2 as createNativeRolloutEvidenceCapture,
|
|
122
133
|
createOffensiveSecurityAgentClient2 as createOffensiveSecurityAgentClient,
|
|
123
134
|
deleteApp2 as deleteApp,
|
|
@@ -128,6 +139,7 @@ export {
|
|
|
128
139
|
getEndpoint2 as getEndpoint,
|
|
129
140
|
getFix2 as getFix,
|
|
130
141
|
getIssue2 as getIssue,
|
|
142
|
+
getKnowledge2 as getKnowledge,
|
|
131
143
|
getPensarApiUrl2 as getPensarApiUrl,
|
|
132
144
|
getPensarConsoleUrl2 as getPensarConsoleUrl,
|
|
133
145
|
getPensarGatewayUrl2 as getPensarGatewayUrl,
|
|
@@ -144,6 +156,7 @@ export {
|
|
|
144
156
|
listIssueComments2 as listIssueComments,
|
|
145
157
|
listIssuePullRequests2 as listIssuePullRequests,
|
|
146
158
|
listIssues2 as listIssues,
|
|
159
|
+
listKnowledge2 as listKnowledge,
|
|
147
160
|
listPentestTargets2 as listPentestTargets,
|
|
148
161
|
listScans2 as listScans,
|
|
149
162
|
listTargetLogs2 as listTargetLogs,
|
|
@@ -169,5 +182,6 @@ export {
|
|
|
169
182
|
startVulnerabilityReproductionAgent2 as startVulnerabilityReproductionAgent,
|
|
170
183
|
updateApp2 as updateApp,
|
|
171
184
|
updateEndpoint2 as updateEndpoint,
|
|
172
|
-
updateIssue2 as updateIssue
|
|
185
|
+
updateIssue2 as updateIssue,
|
|
186
|
+
updateKnowledge2 as updateKnowledge
|
|
173
187
|
};
|
|
@@ -212,6 +212,7 @@ export interface DispatchPentestInput {
|
|
|
212
212
|
branch?: string;
|
|
213
213
|
scanLevel?: "priority" | "full";
|
|
214
214
|
endpointIds?: string[];
|
|
215
|
+
knowledgeEntryIds?: string[];
|
|
215
216
|
}
|
|
216
217
|
export declare function dispatchPentest(opts?: DispatchPentestInput): Promise<DispatchPentestResult>;
|
|
217
218
|
export declare function listIssues(filters?: {
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const KNOWLEDGE_CATEGORIES: readonly ["false_positive_pattern", "technology_context", "testing_history", "user_note", "agent_learning"];
|
|
2
|
+
export declare const KNOWLEDGE_STATUSES: readonly ["active", "stale", "archived"];
|
|
3
|
+
export type KnowledgeCategory = (typeof KNOWLEDGE_CATEGORIES)[number];
|
|
4
|
+
export type KnowledgeStatus = (typeof KNOWLEDGE_STATUSES)[number];
|
|
5
|
+
export interface KnowledgeEntry {
|
|
6
|
+
id: string;
|
|
7
|
+
title: string;
|
|
8
|
+
content: string;
|
|
9
|
+
category: KnowledgeCategory;
|
|
10
|
+
status: KnowledgeStatus;
|
|
11
|
+
source: string;
|
|
12
|
+
tags: string[];
|
|
13
|
+
confidence: string | null;
|
|
14
|
+
createdBy: string | null;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
}
|
|
18
|
+
export interface KnowledgeInput {
|
|
19
|
+
title?: string;
|
|
20
|
+
content?: string;
|
|
21
|
+
category?: KnowledgeCategory;
|
|
22
|
+
status?: KnowledgeStatus;
|
|
23
|
+
tags?: string[];
|
|
24
|
+
}
|
|
25
|
+
export declare function listKnowledge(filters?: {
|
|
26
|
+
category?: string;
|
|
27
|
+
status?: string;
|
|
28
|
+
tags?: string[];
|
|
29
|
+
}): Promise<KnowledgeEntry[]>;
|
|
30
|
+
export declare function getKnowledge(id: string): Promise<KnowledgeEntry>;
|
|
31
|
+
export declare function createKnowledge(input: KnowledgeInput): Promise<KnowledgeEntry>;
|
|
32
|
+
export declare function updateKnowledge(id: string, input: KnowledgeInput): Promise<KnowledgeEntry>;
|
|
33
|
+
export declare function archiveKnowledge(id: string): Promise<KnowledgeEntry>;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
startTargetedPentestAgent2,
|
|
3
3
|
runTargetedPentestAgent2
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import"../../chunk-
|
|
6
|
-
import"../../chunk-
|
|
7
|
-
import"../../chunk-
|
|
8
|
-
import"../../chunk-
|
|
9
|
-
import"../../chunk-
|
|
4
|
+
} from "../../chunk-z96pbjhd.js";
|
|
5
|
+
import"../../chunk-1jvwqnem.js";
|
|
6
|
+
import"../../chunk-acgbyf5h.js";
|
|
7
|
+
import"../../chunk-r4j8ybn9.js";
|
|
8
|
+
import"../../chunk-3c00n0cy.js";
|
|
9
|
+
import"../../chunk-yrnrbjes.js";
|
|
10
10
|
import"../../chunk-7gjdygcx.js";
|
|
11
11
|
import"../../chunk-b8eq85d2.js";
|
|
12
|
-
import"../../chunk-
|
|
12
|
+
import"../../chunk-2qsq76xq.js";
|
|
13
13
|
import"../../chunk-ja7j565c.js";
|
|
14
14
|
import"../../chunk-3q89v4xv.js";
|
|
15
15
|
import"../../chunk-fy3bbbqy.js";
|
|
16
|
-
import"../../chunk-
|
|
16
|
+
import"../../chunk-1azdancq.js";
|
|
17
17
|
import"../../chunk-t5bt5vn1.js";
|
|
18
18
|
import"../../chunk-eb4h4k1f.js";
|
|
19
19
|
import"../../chunk-vx228eeq.js";
|
|
20
|
-
import"../../chunk-
|
|
20
|
+
import"../../chunk-ba41jh41.js";
|
|
21
21
|
import"../../chunk-8vhr65w3.js";
|
|
22
22
|
import"../../chunk-2njv7wz3.js";
|
|
23
23
|
import"../../chunk-jdjagvgr.js";
|
|
24
|
-
import"../../chunk-
|
|
24
|
+
import"../../chunk-w66ce82a.js";
|
|
25
25
|
import"../../chunk-zrbqn62x.js";
|
|
26
26
|
import"../../chunk-mv74mq5n.js";
|
|
27
27
|
import"../../chunk-q5e23acz.js";
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
normalizeEndpoint2,
|
|
6
6
|
generateFingerprint2,
|
|
7
7
|
FindingsRegistry2
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import"../../chunk-
|
|
8
|
+
} from "../../chunk-1azdancq.js";
|
|
9
|
+
import"../../chunk-ba41jh41.js";
|
|
10
10
|
import"../../chunk-8vhr65w3.js";
|
|
11
11
|
import"../../chunk-2njv7wz3.js";
|
|
12
12
|
import"../../chunk-jdjagvgr.js";
|
|
13
|
-
import"../../chunk-
|
|
13
|
+
import"../../chunk-w66ce82a.js";
|
|
14
14
|
export {
|
|
15
15
|
FindingsRegistry2 as FindingsRegistry,
|
|
16
16
|
classifyFromContent2 as classifyFromContent,
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
updateOperatorSettings2,
|
|
14
14
|
updateSessionHeaders2,
|
|
15
15
|
sessions2
|
|
16
|
-
} from "../../chunk-
|
|
16
|
+
} from "../../chunk-ba41jh41.js";
|
|
17
17
|
import"../../chunk-8vhr65w3.js";
|
|
18
18
|
import"../../chunk-2njv7wz3.js";
|
|
19
19
|
import"../../chunk-jdjagvgr.js";
|
|
20
|
-
import"../../chunk-
|
|
20
|
+
import"../../chunk-w66ce82a.js";
|
|
21
21
|
export {
|
|
22
22
|
EXFIL_OUTCOME_GUIDANCE2 as EXFIL_OUTCOME_GUIDANCE,
|
|
23
23
|
SessionInfoObject2 as SessionInfoObject,
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
loadSubagents2,
|
|
13
13
|
repairOrphanToolCalls2,
|
|
14
14
|
rehydrateFromConsoleTree2
|
|
15
|
-
} from "../../chunk-
|
|
16
|
-
import"../../chunk-
|
|
15
|
+
} from "../../chunk-e8yy2k73.js";
|
|
16
|
+
import"../../chunk-ba41jh41.js";
|
|
17
17
|
import"../../chunk-8vhr65w3.js";
|
|
18
18
|
import"../../chunk-2njv7wz3.js";
|
|
19
19
|
import"../../chunk-jdjagvgr.js";
|
|
20
|
-
import"../../chunk-
|
|
20
|
+
import"../../chunk-w66ce82a.js";
|
|
21
21
|
export {
|
|
22
22
|
buildManifestEntries2 as buildManifestEntries,
|
|
23
23
|
convertModelMessagesToUI2 as convertModelMessagesToUI,
|
|
@@ -3,33 +3,33 @@ import {
|
|
|
3
3
|
runPentestSwarmTarget2,
|
|
4
4
|
runPentestSwarm2,
|
|
5
5
|
runPentestWorkflow2
|
|
6
|
-
} from "../../chunk-
|
|
7
|
-
import"../../chunk-
|
|
8
|
-
import"../../chunk-
|
|
9
|
-
import"../../chunk-
|
|
6
|
+
} from "../../chunk-v3dk9j7k.js";
|
|
7
|
+
import"../../chunk-z137x08b.js";
|
|
8
|
+
import"../../chunk-e8yy2k73.js";
|
|
9
|
+
import"../../chunk-r2dkp4tb.js";
|
|
10
10
|
import"../../chunk-xpfg2fbk.js";
|
|
11
|
-
import"../../chunk-
|
|
12
|
-
import"../../chunk-
|
|
13
|
-
import"../../chunk-
|
|
14
|
-
import"../../chunk-
|
|
15
|
-
import"../../chunk-
|
|
16
|
-
import"../../chunk-
|
|
17
|
-
import"../../chunk-
|
|
11
|
+
import"../../chunk-4hwzqthr.js";
|
|
12
|
+
import"../../chunk-1jvwqnem.js";
|
|
13
|
+
import"../../chunk-1fy8azee.js";
|
|
14
|
+
import"../../chunk-acgbyf5h.js";
|
|
15
|
+
import"../../chunk-r4j8ybn9.js";
|
|
16
|
+
import"../../chunk-3c00n0cy.js";
|
|
17
|
+
import"../../chunk-yrnrbjes.js";
|
|
18
18
|
import"../../chunk-7gjdygcx.js";
|
|
19
19
|
import"../../chunk-b8eq85d2.js";
|
|
20
|
-
import"../../chunk-
|
|
20
|
+
import"../../chunk-2qsq76xq.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-1azdancq.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-ba41jh41.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-w66ce82a.js";
|
|
33
33
|
import"../../chunk-zrbqn62x.js";
|
|
34
34
|
import"../../chunk-mv74mq5n.js";
|
|
35
35
|
import"../../chunk-q5e23acz.js";
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
assertDepth2,
|
|
13
13
|
inProcessSeams2,
|
|
14
14
|
resolveItemHooks2
|
|
15
|
-
} from "../../chunk-
|
|
15
|
+
} from "../../chunk-yrnrbjes.js";
|
|
16
16
|
import"../../chunk-b8eq85d2.js";
|
|
17
|
-
import"../../chunk-
|
|
18
|
-
import"../../chunk-
|
|
17
|
+
import"../../chunk-1azdancq.js";
|
|
18
|
+
import"../../chunk-ba41jh41.js";
|
|
19
19
|
import"../../chunk-8vhr65w3.js";
|
|
20
20
|
import"../../chunk-2njv7wz3.js";
|
|
21
21
|
import"../../chunk-jdjagvgr.js";
|
|
22
|
-
import"../../chunk-
|
|
22
|
+
import"../../chunk-w66ce82a.js";
|
|
23
23
|
export {
|
|
24
24
|
DEFAULT_MAX_CONCURRENT_CHILDREN2 as DEFAULT_MAX_CONCURRENT_CHILDREN,
|
|
25
25
|
DEFAULT_MAX_DEPTH2 as DEFAULT_MAX_DEPTH,
|
|
@@ -2,29 +2,29 @@ import {
|
|
|
2
2
|
runWhiteboxAttackSurfaceApp2,
|
|
3
3
|
runWhiteboxAttackSurfaceWorkflow2,
|
|
4
4
|
runIncrementalWhiteboxAttackSurfaceWorkflow2
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import"../../chunk-
|
|
5
|
+
} from "../../chunk-z137x08b.js";
|
|
6
|
+
import"../../chunk-r2dkp4tb.js";
|
|
7
7
|
import"../../chunk-xpfg2fbk.js";
|
|
8
|
-
import"../../chunk-
|
|
9
|
-
import"../../chunk-
|
|
10
|
-
import"../../chunk-
|
|
11
|
-
import"../../chunk-
|
|
12
|
-
import"../../chunk-
|
|
8
|
+
import"../../chunk-4hwzqthr.js";
|
|
9
|
+
import"../../chunk-acgbyf5h.js";
|
|
10
|
+
import"../../chunk-r4j8ybn9.js";
|
|
11
|
+
import"../../chunk-3c00n0cy.js";
|
|
12
|
+
import"../../chunk-yrnrbjes.js";
|
|
13
13
|
import"../../chunk-7gjdygcx.js";
|
|
14
14
|
import"../../chunk-b8eq85d2.js";
|
|
15
|
-
import"../../chunk-
|
|
15
|
+
import"../../chunk-2qsq76xq.js";
|
|
16
16
|
import"../../chunk-ja7j565c.js";
|
|
17
17
|
import"../../chunk-3q89v4xv.js";
|
|
18
18
|
import"../../chunk-fy3bbbqy.js";
|
|
19
|
-
import"../../chunk-
|
|
19
|
+
import"../../chunk-1azdancq.js";
|
|
20
20
|
import"../../chunk-t5bt5vn1.js";
|
|
21
21
|
import"../../chunk-eb4h4k1f.js";
|
|
22
22
|
import"../../chunk-vx228eeq.js";
|
|
23
|
-
import"../../chunk-
|
|
23
|
+
import"../../chunk-ba41jh41.js";
|
|
24
24
|
import"../../chunk-8vhr65w3.js";
|
|
25
25
|
import"../../chunk-2njv7wz3.js";
|
|
26
26
|
import"../../chunk-jdjagvgr.js";
|
|
27
|
-
import"../../chunk-
|
|
27
|
+
import"../../chunk-w66ce82a.js";
|
|
28
28
|
import"../../chunk-zrbqn62x.js";
|
|
29
29
|
import"../../chunk-mv74mq5n.js";
|
|
30
30
|
import"../../chunk-q5e23acz.js";
|
package/build/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_eventBus
|
|
3
3
|
} from "./chunk-7gjdygcx.js";
|
|
4
|
-
import"./chunk-
|
|
4
|
+
import"./chunk-w66ce82a.js";
|
|
5
5
|
import {
|
|
6
6
|
exports_id
|
|
7
7
|
} from "./chunk-jdjagvgr.js";
|
|
@@ -11,27 +11,27 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
exports_session,
|
|
13
13
|
exports_ai
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ba41jh41.js";
|
|
15
15
|
import"./chunk-8vhr65w3.js";
|
|
16
16
|
import {
|
|
17
17
|
exports_offSecAgent
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-r4j8ybn9.js";
|
|
19
19
|
import {
|
|
20
20
|
exports_backends
|
|
21
21
|
} from "./chunk-fy3bbbqy.js";
|
|
22
22
|
import"./chunk-mv74mq5n.js";
|
|
23
|
-
import"./chunk-
|
|
23
|
+
import"./chunk-yrnrbjes.js";
|
|
24
24
|
import {
|
|
25
25
|
exports_attackSurfaceRegistry
|
|
26
26
|
} from "./chunk-b8eq85d2.js";
|
|
27
27
|
import {
|
|
28
28
|
exports_registry
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-1azdancq.js";
|
|
30
30
|
import {
|
|
31
31
|
exports_subagentSpawner
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-3c00n0cy.js";
|
|
33
33
|
import"./chunk-t5bt5vn1.js";
|
|
34
|
-
import"./chunk-
|
|
34
|
+
import"./chunk-2qsq76xq.js";
|
|
35
35
|
import {
|
|
36
36
|
exports_prompt_injections
|
|
37
37
|
} from "./chunk-eb4h4k1f.js";
|
|
@@ -43,36 +43,36 @@ import {
|
|
|
43
43
|
import"./chunk-3q89v4xv.js";
|
|
44
44
|
import"./chunk-zrbqn62x.js";
|
|
45
45
|
import"./chunk-q5e23acz.js";
|
|
46
|
-
import"./chunk-
|
|
46
|
+
import"./chunk-xhdpgpkm.js";
|
|
47
47
|
import {
|
|
48
48
|
exports_authenticationAgent
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-7pwa92rn.js";
|
|
50
50
|
import {
|
|
51
51
|
exports_findingJudge
|
|
52
|
-
} from "./chunk-
|
|
53
|
-
import"./chunk-
|
|
52
|
+
} from "./chunk-nhfax4gb.js";
|
|
53
|
+
import"./chunk-1yct6cra.js";
|
|
54
54
|
import {
|
|
55
55
|
exports_patching
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-mg03jdmt.js";
|
|
57
57
|
import {
|
|
58
58
|
exports_whiteboxAttackSurface2
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-r2dkp4tb.js";
|
|
60
60
|
import"./chunk-xpfg2fbk.js";
|
|
61
61
|
import {
|
|
62
62
|
exports_api
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import"./chunk-
|
|
65
|
-
import"./chunk-
|
|
63
|
+
} from "./chunk-9yksqgzr.js";
|
|
64
|
+
import"./chunk-1fy8azee.js";
|
|
65
|
+
import"./chunk-4hwzqthr.js";
|
|
66
66
|
import {
|
|
67
67
|
exports_whiteboxAttackSurface
|
|
68
|
-
} from "./chunk-
|
|
69
|
-
import"./chunk-
|
|
70
|
-
import"./chunk-
|
|
68
|
+
} from "./chunk-z137x08b.js";
|
|
69
|
+
import"./chunk-1jvwqnem.js";
|
|
70
|
+
import"./chunk-v3dk9j7k.js";
|
|
71
71
|
import {
|
|
72
72
|
exports_persistence
|
|
73
|
-
} from "./chunk-
|
|
74
|
-
import"./chunk-
|
|
75
|
-
import"./chunk-
|
|
73
|
+
} from "./chunk-e8yy2k73.js";
|
|
74
|
+
import"./chunk-z96pbjhd.js";
|
|
75
|
+
import"./chunk-acgbyf5h.js";
|
|
76
76
|
export {
|
|
77
77
|
exports_ai as ai,
|
|
78
78
|
exports_api as api,
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import"./cli-
|
|
3
|
-
import"./cli-
|
|
2
|
+
import"./cli-fy6vh2a7.js";
|
|
3
|
+
import"./cli-c05y640n.js";
|
|
4
4
|
import {
|
|
5
5
|
listAgentLogs2,
|
|
6
6
|
searchAgentLogs2
|
|
7
|
-
} from "./cli-
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
12
|
-
import"./cli-
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
7
|
+
} from "./cli-7eea4e2y.js";
|
|
8
|
+
import"./cli-qgz1q9g5.js";
|
|
9
|
+
import"./cli-k2nwxta0.js";
|
|
10
|
+
import"./cli-kb21qhvm.js";
|
|
11
|
+
import"./cli-ngq9dr8n.js";
|
|
12
|
+
import"./cli-d37a42dc.js";
|
|
13
|
+
import"./cli-3sp6nd8d.js";
|
|
14
|
+
import"./cli-xtc2t6me.js";
|
|
15
|
+
import"./cli-n2en7j5b.js";
|
|
16
16
|
import"./cli-xcy2vxj2.js";
|
|
17
17
|
import {
|
|
18
18
|
markCommandFailed
|
|
19
19
|
} from "./cli-z82n3qk1.js";
|
|
20
|
-
import"./cli-
|
|
20
|
+
import"./cli-1ve18npr.js";
|
|
21
21
|
import"./cli-qba2x69h.js";
|
|
22
|
-
import"./cli-
|
|
22
|
+
import"./cli-dpsw2fe6.js";
|
|
23
23
|
import"./cli-c2k4xxaw.js";
|
|
24
24
|
|
|
25
25
|
// src/cli/logs.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
3
|
+
} from "./cli-qgz1q9g5.js";
|
|
4
|
+
import"./cli-fy6vh2a7.js";
|
|
5
|
+
import"./cli-c05y640n.js";
|
|
6
6
|
import {
|
|
7
7
|
startAgentExecution
|
|
8
8
|
} from "./cli-g06s7edq.js";
|
|
9
9
|
import"./cli-qba2x69h.js";
|
|
10
|
-
import"./cli-
|
|
10
|
+
import"./cli-dpsw2fe6.js";
|
|
11
11
|
import"./cli-c2k4xxaw.js";
|
|
12
12
|
|
|
13
13
|
// src/core/api/offesecAgent.ts
|