@pensar/apex 2.7.0-canary.21cb83dc → 2.7.0-canary.30dd57ca
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-29xka573.js +14 -0
- package/build/{agent-qvreg8a4.js → agent-96x1fmev.js} +6 -5
- package/build/agent-gwjwqs79.js +14 -0
- package/build/{agent-runs-30dvbvmm.js → agent-runs-bq6agc2j.js} +21 -18
- package/build/{agent-68t2wzmc.js → agent-ssx1fxxh.js} +7 -6
- package/build/{apps-na0y0992.js → apps-7t6yfnkr.js} +16 -13
- package/build/{auth-dz2c5thx.js → auth-rk82f7ex.js} +16 -13
- package/build/blackboxAgent-ny4vw1qb.js +14 -0
- package/build/{blackboxPentest-s2mfze9p.js → blackboxPentest-ny5hypqq.js} +15 -14
- package/build/{cli-5ab346kd.js → cli-02spd95w.js} +31 -60
- package/build/{cli-fdrrbb9p.js → cli-03re5agz.js} +3 -3
- package/build/cli-0983qj94.js +36 -0
- package/build/{cli-72y76bpg.js → cli-0pdsq871.js} +2 -1
- package/build/{cli-563yntrb.js → cli-0s2j47cf.js} +2 -2
- package/build/{cli-w9nw2a4z.js → cli-1cntxbf1.js} +2 -1
- package/build/{cli-9kk9tm58.js → cli-1m23stwf.js} +5 -5
- package/build/{cli-z7ysyrr4.js → cli-46za39pt.js} +1 -1
- package/build/{cli-1pmfnz1a.js → cli-60ckg1jj.js} +2 -2
- package/build/{cli-vn4cwac3.js → cli-6wv8wxwm.js} +1 -1
- package/build/{cli-vdd1s3x9.js → cli-7288ea8p.js} +11 -11
- package/build/cli-bgpmbjrd.js +54 -0
- package/build/{cli-98wmmphf.js → cli-ek6kavmy.js} +1 -1
- package/build/{cli-a6x4jm5a.js → cli-gxk0xv52.js} +37107 -36621
- package/build/cli-hq1bhr5t.js +1193 -0
- package/build/{cli-t09zj814.js → cli-n9h1jwmf.js} +2 -2
- package/build/{cli-9jscnhtg.js → cli-pek3fpmz.js} +1 -1
- package/build/{cli-cfrdr25z.js → cli-pzy9wyet.js} +4 -4
- package/build/{cli-9pz9wjt2.js → cli-tgrq0r0r.js} +114 -81
- package/build/{cli-t4q4t4dx.js → cli-vm2ddx02.js} +989 -1417
- package/build/{cli-zbbtr4sb.js → cli-zbg59vp8.js} +11 -6
- package/build/cli.js +137 -48
- package/build/{config-nkzm9arw.js → config-s3kwt4x9.js} +1 -1
- package/build/{fastStrike-16jw1s61.js → fastStrike-dfn8qgbd.js} +12 -7
- package/build/{fixes-6wxk22v5.js → fixes-1grrk24d.js} +16 -13
- package/build/{index-tr6evhyg.js → index-0pgw9j0q.js} +11 -7
- package/build/{index-asm4y7e4.js → index-48rdcajs.js} +2 -2
- package/build/{index-j9pxgrzd.js → index-8kypxm7c.js} +35 -9
- package/build/{index-gfq1rp1q.js → index-97fhvt95.js} +1 -1
- package/build/{index-bt4r13q7.js → index-an04xvt9.js} +19 -15
- package/build/{index-n9kapn1x.js → index-fdny93q2.js} +5 -4
- package/build/{index-36p56pcf.js → index-ghjjb65a.js} +335 -334
- package/build/{index-bfmn52za.js → index-sz0bhddx.js} +7 -6
- package/build/{index-6nejymsc.js → index-w4sq93y8.js} +1 -1
- package/build/{issues-7rmf4ker.js → issues-63sf5wz3.js} +16 -13
- package/build/{knowledge-s2sxh8nb.js → knowledge-jmh43krm.js} +16 -13
- package/build/lance-6zaz81n0.js +232 -0
- package/build/lib/{chunk-d05cvnv8.js → chunk-1k9504hd.js} +13 -13
- package/build/lib/{chunk-fy3bbbqy.js → chunk-5avnedwm.js} +7 -1
- package/build/lib/{chunk-m4swxy5r.js → chunk-5zp1h7jc.js} +46 -2
- package/build/lib/{chunk-161ak2am.js → chunk-99t7k2s7.js} +1 -1
- package/build/lib/{chunk-hys7nemr.js → chunk-agvcg5hm.js} +741 -45
- package/build/lib/{chunk-ydxhkgjw.js → chunk-app1j5v1.js} +2 -1
- package/build/lib/{chunk-aq9eyxas.js → chunk-g9cmyzde.js} +24 -12
- package/build/lib/{chunk-gm3b9j4y.js → chunk-gkg51ke8.js} +7 -7
- package/build/lib/{chunk-2njv7wz3.js → chunk-hbyxyxdc.js} +4 -0
- package/build/lib/{chunk-3hjvdf67.js → chunk-hcgfyh8w.js} +1 -1
- package/build/lib/{chunk-7tft4b8b.js → chunk-hjs8t3dz.js} +1 -1
- package/build/lib/{chunk-8njjwwcw.js → chunk-hs05csp2.js} +9 -3
- package/build/lib/{chunk-77se1d35.js → chunk-hxdrh5y1.js} +49 -33
- package/build/lib/{chunk-1rqbhx4b.js → chunk-j6baq6p7.js} +91 -71
- package/build/lib/{chunk-mbsde9d0.js → chunk-j7tgd3eb.js} +2 -2
- package/build/lib/{chunk-5j8pp0xf.js → chunk-m60fcmc1.js} +1 -1
- package/build/lib/{chunk-f3sq4896.js → chunk-n9z5b17x.js} +1 -1
- package/build/lib/{chunk-kcw4cpr3.js → chunk-ny8at0ts.js} +763 -244
- package/build/lib/{chunk-0dnx79b1.js → chunk-pvwvksw1.js} +5 -1
- package/build/lib/{chunk-fasqtjq1.js → chunk-qgjs6r7x.js} +1 -1
- package/build/lib/{chunk-z8kej0sp.js → chunk-r57ymzft.js} +15 -12
- package/build/lib/{chunk-qkz5sm0d.js → chunk-ra2pejz2.js} +64 -59
- package/build/lib/{chunk-rfyjqybp.js → chunk-ty8skvht.js} +5 -1
- package/build/lib/{chunk-7gjdygcx.js → chunk-vwr9w3ab.js} +2 -0
- package/build/lib/{chunk-j9668h16.js → chunk-w7khgzyg.js} +1 -1
- package/build/lib/{chunk-mpvjfvz0.js → chunk-x2vg7zya.js} +70 -45
- package/build/lib/{chunk-vsnwzne5.js → chunk-z16xmz2n.js} +1 -1
- package/build/lib/core/agents/agentRuntime.d.ts +1 -0
- package/build/lib/core/agents/lance.d.ts +153 -0
- package/build/lib/core/agents/lanceJudge.d.ts +3 -0
- package/build/lib/core/agents/offSecAgent/index.js +13 -13
- package/build/lib/core/agents/offSecAgent/offensiveSecurityAgent.d.ts +4 -0
- package/build/lib/core/agents/offSecAgent/subagentSpawner.d.ts +16 -1
- package/build/lib/core/agents/offSecAgent/subagentSpawner.js +10 -8
- package/build/lib/core/agents/offSecAgent/toolExecutionContext.d.ts +3 -0
- package/build/lib/core/agents/offSecAgent/toolLifecycle.d.ts +1 -0
- package/build/lib/core/agents/offSecAgent/tools/index.js +10 -6
- package/build/lib/core/agents/offSecAgent/tools/types.d.ts +5 -3
- package/build/lib/core/agents/offSecAgent/tools/whiteboxCandidates.d.ts +2 -2
- package/build/lib/core/agents/offSecAgent/types.d.ts +12 -2
- package/build/lib/core/agents/specialized/attackSurface/blackboxAgent.js +13 -13
- package/build/lib/core/agents/specialized/attackSurface/schemas.js +12 -12
- package/build/lib/core/agents/specialized/authenticationAgent/index.js +14 -14
- package/build/lib/core/agents/specialized/codeAgent/agent.js +13 -13
- package/build/lib/core/agents/specialized/cvssScorer/index.d.ts +2 -1
- package/build/lib/core/agents/specialized/findingJudge/agent.js +11 -11
- package/build/lib/core/agents/specialized/findingJudge/index.d.ts +2 -1
- package/build/lib/core/agents/specialized/findingJudge/index.js +4 -4
- package/build/lib/core/agents/specialized/patching/index.js +14 -14
- package/build/lib/core/agents/specialized/pentest/agent.js +13 -13
- package/build/lib/core/agents/specialized/whiteboxAttackSurface/endpointDocumentationAgent.d.ts +2 -1
- package/build/lib/core/agents/specialized/whiteboxAttackSurface/index.js +13 -13
- package/build/lib/core/ai/ai.d.ts +17 -75
- package/build/lib/core/ai/ai.js +5 -3
- package/build/lib/core/ai/index.d.ts +1 -0
- package/build/lib/core/ai/index.js +16 -4
- package/build/lib/core/ai/reasoning.d.ts +44 -0
- package/build/lib/core/ai/utils.js +3 -3
- package/build/lib/core/api/index.d.ts +3 -0
- package/build/lib/core/api/index.js +29 -23
- package/build/lib/core/api/lance.d.ts +6 -0
- package/build/lib/core/api/offesecAgent.d.ts +1 -0
- package/build/lib/core/api/reasoning.d.ts +12 -0
- package/build/lib/core/api/targetedPentest.js +14 -14
- package/build/lib/core/cli/reasoning.d.ts +4 -0
- package/build/lib/core/config/config.d.ts +7 -2
- package/build/lib/core/config/customProviders.d.ts +11 -0
- package/build/lib/core/config/index.js +1 -1
- package/build/lib/core/eventBus.js +1 -1
- package/build/lib/core/findings/registry.d.ts +3 -1
- package/build/lib/core/findings/registry.js +4 -4
- package/build/lib/core/observability/index.js +1 -1
- package/build/lib/core/observability/telemetry.d.ts +4 -0
- package/build/lib/core/session/index.d.ts +35 -0
- package/build/lib/core/session/index.js +6 -4
- package/build/lib/core/session/persistence.js +4 -4
- package/build/lib/core/tools/backends/index.js +1 -1
- package/build/lib/core/tools/backends/resolve.d.ts +1 -0
- package/build/lib/core/workflows/pentest.d.ts +4 -1
- package/build/lib/core/workflows/pentest.js +19 -19
- package/build/lib/core/workflows/seams.js +5 -5
- package/build/lib/core/workflows/threatModel.d.ts +1 -0
- package/build/lib/core/workflows/whiteboxAttackSurface.d.ts +6 -4
- package/build/lib/core/workflows/whiteboxAttackSurface.js +15 -15
- package/build/lib/index.js +25 -25
- package/build/{logs-70fyr848.js → logs-b8y8d5e3.js} +16 -13
- package/build/{native-rollout-evidence-ntensvzb.js → native-rollout-evidence-nekfbrh4.js} +5 -5
- package/build/offesecAgent-s7pddf4g.js +32 -0
- package/build/pentest-7a2xfm93.js +23 -0
- package/build/{pentests-3e41hj08.js → pentests-4wfb22yp.js} +16 -13
- package/build/recordedRunClient-ptyqssxc.js +11 -0
- package/build/subagentSpawner-jw66fdeh.js +12 -0
- package/build/{targetedPentest-t9snxcj2.js → targetedPentest-7hw5v3qb.js} +35 -8
- package/build/{targets-1pyf21c7.js → targets-wf0h641d.js} +16 -13
- package/build/threatModel-wzrehc8t.js +24 -0
- package/build/{uninstall-fbydd9t6.js → uninstall-m7thta4w.js} +1 -1
- package/build/{upload-sbhwe2fq.js → upload-jzrqy12h.js} +4 -4
- package/build/{utils-23903gcj.js → utils-k7b82ary.js} +5 -5
- package/package.json +2 -1
- package/src/cli/lance-verifier.test.ts +57 -0
- package/src/cli/lance-verifier.ts +73 -0
- package/src/cli/lance.test.ts +71 -0
- package/src/cli/lance.ts +48 -0
- package/src/cli.ts +62 -6
- package/src/core/agents/agentRuntime.test.ts +4 -0
- package/src/core/agents/agentRuntime.ts +2 -0
- package/src/core/agents/lance.test.ts +421 -0
- package/src/core/agents/lance.ts +701 -0
- package/src/core/agents/lanceJudge.test.ts +166 -0
- package/src/core/agents/lanceJudge.ts +115 -0
- package/src/core/agents/offSecAgent/interruptedStepFinalization.test.ts +51 -0
- package/src/core/agents/offSecAgent/lance.test.ts +188 -0
- package/src/core/agents/offSecAgent/offensiveSecurityAgent.ts +174 -10
- package/src/core/agents/offSecAgent/subagentSpawner.hooks.test.ts +11 -3
- package/src/core/agents/offSecAgent/subagentSpawner.reasoning.test.ts +167 -0
- package/src/core/agents/offSecAgent/subagentSpawner.ts +70 -27
- package/src/core/agents/offSecAgent/toolExecutionContext.test.ts +230 -0
- package/src/core/agents/offSecAgent/toolExecutionContext.ts +56 -0
- package/src/core/agents/offSecAgent/toolLifecycle.ts +2 -0
- package/src/core/agents/offSecAgent/tools/delegateAuth.ts +3 -2
- package/src/core/agents/offSecAgent/tools/documentFinding.test.ts +9 -4
- package/src/core/agents/offSecAgent/tools/documentFinding.ts +10 -9
- package/src/core/agents/offSecAgent/tools/runAttackSurface.ts +5 -4
- package/src/core/agents/offSecAgent/tools/runPentestWorkflow.ts +2 -0
- package/src/core/agents/offSecAgent/tools/spawnCodingAgent.ts +49 -67
- package/src/core/agents/offSecAgent/tools/spawnPentestAgent.test.ts +7 -1
- package/src/core/agents/offSecAgent/tools/spawnPentestAgent.ts +4 -5
- package/src/core/agents/offSecAgent/tools/spawnPentestSwarm.ts +3 -0
- package/src/core/agents/offSecAgent/tools/threatModelGenerator.ts +3 -3
- package/src/core/agents/offSecAgent/tools/types.ts +6 -1
- package/src/core/agents/offSecAgent/types.ts +13 -1
- package/src/core/agents/specialized/cvssScorer/index.test.ts +2 -1
- package/src/core/agents/specialized/cvssScorer/index.ts +3 -0
- package/src/core/agents/specialized/findingJudge/index.ts +6 -0
- package/src/core/agents/specialized/pentest/agent.test.ts +39 -0
- package/src/core/agents/specialized/pentest/agent.ts +3 -3
- package/src/core/agents/specialized/whiteboxAttackSurface/endpointDocumentationAgent.concurrency.test.ts +59 -2
- package/src/core/agents/specialized/whiteboxAttackSurface/endpointDocumentationAgent.hooks.test.ts +127 -0
- package/src/core/agents/specialized/whiteboxAttackSurface/endpointDocumentationAgent.ts +74 -69
- package/src/core/ai/ai.durability-hooks.test.ts +25 -7
- package/src/core/ai/ai.lance.test.ts +581 -0
- package/src/core/ai/ai.operator-context.bench.test.ts +159 -177
- package/src/core/ai/ai.recorded-context.test.ts +15 -8
- package/src/core/ai/ai.test.ts +37 -69
- package/src/core/ai/ai.ts +197 -301
- package/src/core/ai/compactionTelemetry.test.ts +67 -15
- package/src/core/ai/index.ts +11 -0
- package/src/core/ai/models/models.test.ts +25 -7
- package/src/core/ai/models/openrouter-reasoning.json +219 -0
- package/src/core/ai/providers/custom.test.ts +74 -0
- package/src/core/ai/providers/custom.ts +3 -1
- package/src/core/ai/providers/pensarFormatters.ts +8 -1
- package/src/core/ai/reasoning.test.ts +313 -0
- package/src/core/ai/reasoning.ts +500 -0
- package/src/core/ai/streamIdleTimeout.test.ts +21 -0
- package/src/core/ai/utils.native-rollout-evidence.test.ts +20 -8
- package/src/core/ai/utils.ts +99 -39
- package/src/core/api/attackSurface.ts +1 -0
- package/src/core/api/index.ts +8 -0
- package/src/core/api/lance.ts +23 -0
- package/src/core/api/offesecAgent.test.ts +51 -0
- package/src/core/api/offesecAgent.ts +15 -1
- package/src/core/api/reasoning.test.ts +213 -0
- package/src/core/api/reasoning.ts +44 -0
- package/src/core/api/recordedRun.loop.test.ts +5 -1
- package/src/core/api/targetedPentest.test.ts +14 -2
- package/src/core/api/targetedPentest.ts +33 -0
- package/src/core/cli/reasoning.test.ts +149 -0
- package/src/core/cli/reasoning.ts +95 -0
- package/src/core/config/config.ts +6 -0
- package/src/core/config/customProviders.ts +21 -2
- package/src/core/eventBus.ts +1 -0
- package/src/core/findings/registry.test.ts +9 -1
- package/src/core/findings/registry.ts +6 -0
- package/src/core/observability/telemetry.test.ts +129 -76
- package/src/core/observability/telemetry.ts +5 -0
- package/src/core/runtime/sqliteRunObservation.test.ts +1 -1
- package/src/core/session/index.ts +33 -0
- package/src/core/tools/backends/resolve.ts +7 -0
- package/src/core/tools/backends/whiteboxJobs.test.ts +9 -8
- package/src/core/workflows/fastStrike.ts +3 -0
- package/src/core/workflows/pentest.ts +18 -0
- package/src/core/workflows/threatModel.ts +2 -0
- package/src/core/workflows/whiteboxAttackSurface.test.ts +74 -2
- package/src/core/workflows/whiteboxAttackSurface.ts +102 -74
- package/src/tui/command-registry.test.ts +12 -0
- package/src/tui/command-registry.ts +10 -0
- package/src/tui/components/chat/config-view.tsx +6 -10
- package/src/tui/components/chat/home-view.tsx +2 -2
- package/src/tui/components/chat/input-area.tsx +2 -2
- package/src/tui/components/commands/__tests__/advanced-settings-lifecycle.tsx +81 -93
- package/src/tui/components/commands/advanced-settings.test.ts +7 -1
- package/src/tui/components/commands/advanced-settings.tsx +143 -172
- package/src/tui/components/commands/models-display.tsx +7 -1
- package/src/tui/components/model-picker/ModelPicker.tsx +65 -103
- package/src/tui/components/model-picker/ModelPickerDialog.tsx +8 -14
- package/src/tui/components/model-picker/__tests__/reasoning-control.tsx +162 -0
- package/src/tui/components/model-picker/reasoning-control.test.ts +15 -0
- package/src/tui/components/operator-dashboard/index.tsx +121 -42
- package/src/tui/components/operator-dashboard/logic.test.ts +39 -3
- package/src/tui/components/operator-dashboard/logic.ts +14 -3
- package/src/tui/context/agent.tsx +32 -79
- package/src/tui/context/route.tsx +1 -0
- package/src/tui/index.tsx +1 -0
- package/build/agent-jhekpern.js +0 -13
- package/build/agent-vybw255f.js +0 -13
- package/build/blackboxAgent-2mwvaajb.js +0 -13
- package/build/cli-g06s7edq.js +0 -11
- package/build/offesecAgent-kk62tf60.js +0 -22
- package/build/pentest-4jgznn7h.js +0 -22
- package/build/recordedRunClient-w34kcch1.js +0 -11
- package/build/threatModel-48y5qjze.js +0 -21
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runAuthenticationAgent2
|
|
3
|
+
} from "./cli-1m23stwf.js";
|
|
4
|
+
import"./cli-0pdsq871.js";
|
|
5
|
+
import"./cli-qba2x69h.js";
|
|
6
|
+
import"./cli-vm2ddx02.js";
|
|
7
|
+
import"./cli-hq1bhr5t.js";
|
|
8
|
+
import"./cli-gxk0xv52.js";
|
|
9
|
+
import"./cli-pek3fpmz.js";
|
|
10
|
+
import"./cli-c2k4xxaw.js";
|
|
11
|
+
import"./cli-ek6kavmy.js";
|
|
12
|
+
export {
|
|
13
|
+
runAuthenticationAgent2 as runAuthenticationAgent
|
|
14
|
+
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import"./cli-
|
|
2
|
-
import"./cli-
|
|
3
|
-
import"./cli-
|
|
1
|
+
import"./cli-hq1bhr5t.js";
|
|
2
|
+
import"./cli-ek6kavmy.js";
|
|
3
|
+
import"./cli-pek3fpmz.js";
|
|
4
|
+
import"./cli-vm2ddx02.js";
|
|
4
5
|
import {
|
|
5
6
|
AgentRuntime,
|
|
6
7
|
defineAgent
|
|
7
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-0pdsq871.js";
|
|
8
9
|
import"./cli-qba2x69h.js";
|
|
9
10
|
import {
|
|
10
11
|
stepCountIs2,
|
|
11
12
|
init_dist
|
|
12
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-gxk0xv52.js";
|
|
13
14
|
import"./cli-c2k4xxaw.js";
|
|
14
15
|
import {
|
|
15
16
|
init_zod
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CodeAgent2
|
|
3
|
+
} from "./cli-60ckg1jj.js";
|
|
4
|
+
import"./cli-0pdsq871.js";
|
|
5
|
+
import"./cli-qba2x69h.js";
|
|
6
|
+
import"./cli-vm2ddx02.js";
|
|
7
|
+
import"./cli-hq1bhr5t.js";
|
|
8
|
+
import"./cli-gxk0xv52.js";
|
|
9
|
+
import"./cli-pek3fpmz.js";
|
|
10
|
+
import"./cli-c2k4xxaw.js";
|
|
11
|
+
import"./cli-ek6kavmy.js";
|
|
12
|
+
export {
|
|
13
|
+
CodeAgent2 as CodeAgent
|
|
14
|
+
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
config2,
|
|
3
3
|
init_config
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
4
|
+
} from "./cli-ek6kavmy.js";
|
|
5
|
+
import"./cli-pek3fpmz.js";
|
|
6
|
+
import"./cli-vm2ddx02.js";
|
|
6
7
|
import {
|
|
7
8
|
AgentEventBus
|
|
8
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-hq1bhr5t.js";
|
|
9
10
|
import {
|
|
10
11
|
inspectSessionEvidence2,
|
|
11
12
|
RecordedRunSpecSchema,
|
|
@@ -16,29 +17,31 @@ import {
|
|
|
16
17
|
runRecordedAgent2,
|
|
17
18
|
RunRecoveryBlockedError2,
|
|
18
19
|
resumeRecordedAgent2
|
|
19
|
-
} from "./cli-
|
|
20
|
-
import"./cli-
|
|
21
|
-
import"./cli-
|
|
22
|
-
import"./cli-
|
|
23
|
-
import"./cli-
|
|
24
|
-
import"./cli-
|
|
25
|
-
import"./cli-
|
|
26
|
-
import"./cli-
|
|
20
|
+
} from "./cli-02spd95w.js";
|
|
21
|
+
import"./cli-n9h1jwmf.js";
|
|
22
|
+
import"./cli-60ckg1jj.js";
|
|
23
|
+
import"./cli-03re5agz.js";
|
|
24
|
+
import"./cli-tgrq0r0r.js";
|
|
25
|
+
import"./cli-1m23stwf.js";
|
|
26
|
+
import"./cli-7288ea8p.js";
|
|
27
|
+
import"./cli-46za39pt.js";
|
|
28
|
+
import"./cli-0983qj94.js";
|
|
27
29
|
import"./cli-xcy2vxj2.js";
|
|
28
30
|
import {
|
|
29
31
|
resolveWorkerExecutable,
|
|
30
32
|
launchLocalWorker
|
|
31
|
-
} from "./cli-
|
|
32
|
-
import"./cli-
|
|
33
|
+
} from "./cli-6wv8wxwm.js";
|
|
34
|
+
import"./cli-bgpmbjrd.js";
|
|
35
|
+
import"./cli-0pdsq871.js";
|
|
33
36
|
import"./cli-qba2x69h.js";
|
|
34
37
|
import {
|
|
35
38
|
buildAuthConfig,
|
|
36
|
-
|
|
37
|
-
} from "./cli-
|
|
39
|
+
init_ai2
|
|
40
|
+
} from "./cli-gxk0xv52.js";
|
|
38
41
|
import"./cli-c2k4xxaw.js";
|
|
39
42
|
|
|
40
43
|
// src/cli/agent-runs.ts
|
|
41
|
-
|
|
44
|
+
init_ai2();
|
|
42
45
|
import { once } from "node:events";
|
|
43
46
|
import { readFile } from "node:fs/promises";
|
|
44
47
|
import { isAbsolute, resolve } from "node:path";
|
|
@@ -115,7 +118,7 @@ async function runAgentRunsCommand(args) {
|
|
|
115
118
|
if (!isAbsolute(values.store)) {
|
|
116
119
|
throw new Error("agent-runs worker requires --store <absolute database>");
|
|
117
120
|
}
|
|
118
|
-
const { serveLocalRunWorker } = await import("./index-
|
|
121
|
+
const { serveLocalRunWorker } = await import("./index-an04xvt9.js");
|
|
119
122
|
await serveLocalRunWorker({
|
|
120
123
|
runId: values.run,
|
|
121
124
|
databasePath: resolve(values.store)
|
|
@@ -129,7 +132,7 @@ async function runAgentRunsCommand(args) {
|
|
|
129
132
|
${HELP}`);
|
|
130
133
|
}
|
|
131
134
|
if (command === "attach") {
|
|
132
|
-
const { openRecordedRunClient } = await import("./recordedRunClient-
|
|
135
|
+
const { openRecordedRunClient } = await import("./recordedRunClient-ptyqssxc.js");
|
|
133
136
|
const client = await openRecordedRunClient(values.store);
|
|
134
137
|
const controller = new AbortController;
|
|
135
138
|
const detach = () => controller.abort();
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TargetedPentestAgent2,
|
|
3
3
|
buildPentestSystemPrompt2
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
4
|
+
} from "./cli-7288ea8p.js";
|
|
5
|
+
import"./cli-0pdsq871.js";
|
|
6
6
|
import"./cli-qba2x69h.js";
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
7
|
+
import"./cli-vm2ddx02.js";
|
|
8
|
+
import"./cli-hq1bhr5t.js";
|
|
9
|
+
import"./cli-gxk0xv52.js";
|
|
10
|
+
import"./cli-pek3fpmz.js";
|
|
10
11
|
import"./cli-c2k4xxaw.js";
|
|
11
|
-
import"./cli-
|
|
12
|
+
import"./cli-ek6kavmy.js";
|
|
12
13
|
export {
|
|
13
14
|
TargetedPentestAgent2 as TargetedPentestAgent,
|
|
14
15
|
buildPentestSystemPrompt2 as buildPentestSystemPrompt
|
|
@@ -15,24 +15,27 @@ import {
|
|
|
15
15
|
searchEndpoints2,
|
|
16
16
|
listDomains2,
|
|
17
17
|
createDomain2
|
|
18
|
-
} from "./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
21
|
-
import"./cli-
|
|
22
|
-
import"./cli-
|
|
23
|
-
import"./cli-
|
|
24
|
-
import"./cli-
|
|
25
|
-
import"./cli-
|
|
26
|
-
import"./cli-
|
|
27
|
-
import"./cli-
|
|
28
|
-
import"./cli-
|
|
18
|
+
} from "./cli-vm2ddx02.js";
|
|
19
|
+
import"./cli-hq1bhr5t.js";
|
|
20
|
+
import"./cli-ek6kavmy.js";
|
|
21
|
+
import"./cli-pek3fpmz.js";
|
|
22
|
+
import"./cli-02spd95w.js";
|
|
23
|
+
import"./cli-n9h1jwmf.js";
|
|
24
|
+
import"./cli-60ckg1jj.js";
|
|
25
|
+
import"./cli-03re5agz.js";
|
|
26
|
+
import"./cli-tgrq0r0r.js";
|
|
27
|
+
import"./cli-1m23stwf.js";
|
|
28
|
+
import"./cli-7288ea8p.js";
|
|
29
|
+
import"./cli-46za39pt.js";
|
|
30
|
+
import"./cli-0983qj94.js";
|
|
29
31
|
import"./cli-xcy2vxj2.js";
|
|
30
32
|
import {
|
|
31
33
|
markCommandFailed
|
|
32
34
|
} from "./cli-z82n3qk1.js";
|
|
33
|
-
import"./cli-
|
|
35
|
+
import"./cli-bgpmbjrd.js";
|
|
36
|
+
import"./cli-0pdsq871.js";
|
|
34
37
|
import"./cli-qba2x69h.js";
|
|
35
|
-
import"./cli-
|
|
38
|
+
import"./cli-gxk0xv52.js";
|
|
36
39
|
import"./cli-c2k4xxaw.js";
|
|
37
40
|
|
|
38
41
|
// src/cli/apps.ts
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import"./cli-
|
|
2
|
+
import"./cli-vm2ddx02.js";
|
|
3
|
+
import"./cli-hq1bhr5t.js";
|
|
3
4
|
import {
|
|
4
5
|
config2,
|
|
5
6
|
init_config
|
|
6
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-ek6kavmy.js";
|
|
7
8
|
import {
|
|
8
9
|
getPensarApiUrl2,
|
|
9
10
|
getPensarConsoleUrl2,
|
|
@@ -19,22 +20,24 @@ import {
|
|
|
19
20
|
createWorkspaceSelection2,
|
|
20
21
|
pollWorkspaceSelection2,
|
|
21
22
|
init_auth
|
|
22
|
-
} from "./cli-
|
|
23
|
-
import"./cli-
|
|
24
|
-
import"./cli-
|
|
25
|
-
import"./cli-
|
|
26
|
-
import"./cli-
|
|
27
|
-
import"./cli-
|
|
28
|
-
import"./cli-
|
|
29
|
-
import"./cli-
|
|
30
|
-
import"./cli-
|
|
23
|
+
} from "./cli-pek3fpmz.js";
|
|
24
|
+
import"./cli-02spd95w.js";
|
|
25
|
+
import"./cli-n9h1jwmf.js";
|
|
26
|
+
import"./cli-60ckg1jj.js";
|
|
27
|
+
import"./cli-03re5agz.js";
|
|
28
|
+
import"./cli-tgrq0r0r.js";
|
|
29
|
+
import"./cli-1m23stwf.js";
|
|
30
|
+
import"./cli-7288ea8p.js";
|
|
31
|
+
import"./cli-46za39pt.js";
|
|
32
|
+
import"./cli-0983qj94.js";
|
|
31
33
|
import"./cli-xcy2vxj2.js";
|
|
32
34
|
import {
|
|
33
35
|
markCommandFailed
|
|
34
36
|
} from "./cli-z82n3qk1.js";
|
|
35
|
-
import"./cli-
|
|
37
|
+
import"./cli-bgpmbjrd.js";
|
|
38
|
+
import"./cli-0pdsq871.js";
|
|
36
39
|
import"./cli-qba2x69h.js";
|
|
37
|
-
import"./cli-
|
|
40
|
+
import"./cli-gxk0xv52.js";
|
|
38
41
|
import"./cli-c2k4xxaw.js";
|
|
39
42
|
import {
|
|
40
43
|
__require
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BlackboxAttackSurfaceAgent2
|
|
3
|
+
} from "./cli-n9h1jwmf.js";
|
|
4
|
+
import"./cli-0pdsq871.js";
|
|
5
|
+
import"./cli-qba2x69h.js";
|
|
6
|
+
import"./cli-vm2ddx02.js";
|
|
7
|
+
import"./cli-hq1bhr5t.js";
|
|
8
|
+
import"./cli-gxk0xv52.js";
|
|
9
|
+
import"./cli-pek3fpmz.js";
|
|
10
|
+
import"./cli-c2k4xxaw.js";
|
|
11
|
+
import"./cli-ek6kavmy.js";
|
|
12
|
+
export {
|
|
13
|
+
BlackboxAttackSurfaceAgent2 as BlackboxAttackSurfaceAgent
|
|
14
|
+
};
|
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import"./cli-
|
|
2
|
-
import"./cli-
|
|
3
|
-
import"./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
1
|
+
import"./cli-ek6kavmy.js";
|
|
2
|
+
import"./cli-pek3fpmz.js";
|
|
3
|
+
import"./cli-hq1bhr5t.js";
|
|
4
|
+
import"./cli-vm2ddx02.js";
|
|
5
|
+
import"./cli-n9h1jwmf.js";
|
|
6
|
+
import"./cli-7288ea8p.js";
|
|
7
|
+
import"./cli-46za39pt.js";
|
|
7
8
|
import {
|
|
8
9
|
readExecutionMetrics,
|
|
9
10
|
writeExecutionMetrics,
|
|
10
11
|
runPentestWorkflow2
|
|
11
|
-
} from "./cli-
|
|
12
|
-
import"./cli-
|
|
13
|
-
import"./cli-
|
|
12
|
+
} from "./cli-tgrq0r0r.js";
|
|
13
|
+
import"./cli-60ckg1jj.js";
|
|
14
|
+
import"./cli-03re5agz.js";
|
|
14
15
|
import {
|
|
15
16
|
EMPTY_SESSION_TOKEN_USAGE,
|
|
16
17
|
accumulateSessionTokens
|
|
17
18
|
} from "./cli-ag6jtndp.js";
|
|
18
|
-
import"./cli-
|
|
19
|
+
import"./cli-0pdsq871.js";
|
|
19
20
|
import"./cli-qba2x69h.js";
|
|
20
21
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./cli-
|
|
22
|
+
normalizeStepUsage,
|
|
23
|
+
init_ai2
|
|
24
|
+
} from "./cli-gxk0xv52.js";
|
|
24
25
|
import"./cli-c2k4xxaw.js";
|
|
25
26
|
|
|
26
27
|
// src/core/api/blackboxPentest.ts
|
|
27
|
-
|
|
28
|
+
init_ai2();
|
|
28
29
|
async function runPentestAgent(input) {
|
|
29
30
|
const persisted = readExecutionMetrics(input.session.rootPath)?.tokenUsage;
|
|
30
31
|
let tokenUsage = persisted ?? EMPTY_SESSION_TOKEN_USAGE;
|
|
@@ -1,36 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
config2,
|
|
3
|
+
init_config
|
|
4
|
+
} from "./cli-ek6kavmy.js";
|
|
5
|
+
import {
|
|
6
|
+
init_constants
|
|
7
|
+
} from "./cli-pek3fpmz.js";
|
|
1
8
|
import {
|
|
2
9
|
buildSessionWorkspaceSection,
|
|
3
10
|
buildBaseSystemPrompt,
|
|
4
11
|
ASK_USER_QUESTIONS_TOOL_NAME,
|
|
5
12
|
apiRequest,
|
|
6
13
|
ALL_TOOL_NAMES2,
|
|
7
|
-
SKILL_TOOL_NAMES2
|
|
8
|
-
|
|
9
|
-
} from "./cli-t4q4t4dx.js";
|
|
10
|
-
import {
|
|
11
|
-
config2,
|
|
12
|
-
init_config
|
|
13
|
-
} from "./cli-98wmmphf.js";
|
|
14
|
-
import {
|
|
15
|
-
init_constants
|
|
16
|
-
} from "./cli-9jscnhtg.js";
|
|
14
|
+
SKILL_TOOL_NAMES2
|
|
15
|
+
} from "./cli-vm2ddx02.js";
|
|
17
16
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./cli-
|
|
17
|
+
runOffensiveSecurityAgent2
|
|
18
|
+
} from "./cli-bgpmbjrd.js";
|
|
20
19
|
import {
|
|
21
20
|
defineAgent
|
|
22
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-0pdsq871.js";
|
|
23
22
|
import {
|
|
24
23
|
toolModelMessageSchema,
|
|
25
24
|
modelMessageSchema,
|
|
26
25
|
stepCountIs2,
|
|
27
26
|
hasToolCall,
|
|
28
27
|
init_dist,
|
|
29
|
-
getClaudeCapabilities,
|
|
30
|
-
AVAILABLE_MODELS,
|
|
31
|
-
getModelInfo,
|
|
32
|
-
buildAuthConfig,
|
|
33
|
-
init_ai,
|
|
34
28
|
create,
|
|
35
29
|
get,
|
|
36
30
|
sessions2,
|
|
@@ -41,8 +35,13 @@ import {
|
|
|
41
35
|
RunControlInterruption,
|
|
42
36
|
init_runControlStore,
|
|
43
37
|
RunLimitError,
|
|
44
|
-
init_runModelStore
|
|
45
|
-
|
|
38
|
+
init_runModelStore,
|
|
39
|
+
getClaudeCapabilities,
|
|
40
|
+
AVAILABLE_MODELS,
|
|
41
|
+
getModelInfo,
|
|
42
|
+
buildAuthConfig,
|
|
43
|
+
init_ai2
|
|
44
|
+
} from "./cli-gxk0xv52.js";
|
|
46
45
|
import {
|
|
47
46
|
newSessionId,
|
|
48
47
|
isSessionId,
|
|
@@ -51,6 +50,10 @@ import {
|
|
|
51
50
|
parseInferenceAttempt,
|
|
52
51
|
runWithInferenceRecorder
|
|
53
52
|
} from "./cli-se8ae8z3.js";
|
|
53
|
+
import {
|
|
54
|
+
getCurrentVersion,
|
|
55
|
+
init_installation
|
|
56
|
+
} from "./cli-1cntxbf1.js";
|
|
54
57
|
import {
|
|
55
58
|
init_zod
|
|
56
59
|
} from "./cli-3qznjsnr.js";
|
|
@@ -68,10 +71,6 @@ import {
|
|
|
68
71
|
literal,
|
|
69
72
|
custom
|
|
70
73
|
} from "./cli-mz5pk30x.js";
|
|
71
|
-
import {
|
|
72
|
-
getCurrentVersion,
|
|
73
|
-
init_installation
|
|
74
|
-
} from "./cli-w9nw2a4z.js";
|
|
75
74
|
import {
|
|
76
75
|
__commonJS,
|
|
77
76
|
__require
|
|
@@ -7022,7 +7021,7 @@ var require_public_api = __commonJS(function(exports) {
|
|
|
7022
7021
|
init_dist();
|
|
7023
7022
|
|
|
7024
7023
|
// src/core/api/index.ts
|
|
7025
|
-
|
|
7024
|
+
init_ai2();
|
|
7026
7025
|
|
|
7027
7026
|
// src/core/runtime/runEvidence.ts
|
|
7028
7027
|
import { createHash } from "node:crypto";
|
|
@@ -7735,7 +7734,7 @@ function createSqliteControlStore(input) {
|
|
|
7735
7734
|
|
|
7736
7735
|
// src/core/runtime/sqliteModelStore.ts
|
|
7737
7736
|
init_zod();
|
|
7738
|
-
|
|
7737
|
+
init_ai2();
|
|
7739
7738
|
init_runModelStore();
|
|
7740
7739
|
import { isDeepStrictEqual as isDeepStrictEqual2 } from "node:util";
|
|
7741
7740
|
var MODEL_STORE_SCHEMA_SQL = `
|
|
@@ -8997,7 +8996,7 @@ function loadActualFindings(sessionPath) {
|
|
|
8997
8996
|
`) : "No findings were documented.";
|
|
8998
8997
|
}
|
|
8999
8998
|
// src/core/api/blackboxPentest.ts
|
|
9000
|
-
|
|
8999
|
+
init_ai2();
|
|
9001
9000
|
|
|
9002
9001
|
// src/core/api/index.ts
|
|
9003
9002
|
init_constants();
|
|
@@ -9319,7 +9318,7 @@ async function archiveKnowledge2(id) {
|
|
|
9319
9318
|
return apiRequest("DELETE", `/knowledge/${id}`);
|
|
9320
9319
|
}
|
|
9321
9320
|
// src/core/api/localWorker.ts
|
|
9322
|
-
|
|
9321
|
+
init_ai2();
|
|
9323
9322
|
init_config();
|
|
9324
9323
|
|
|
9325
9324
|
// src/core/runtime/localRunWorker.ts
|
|
@@ -10015,7 +10014,7 @@ async function serveLocalRunWorker(options) {
|
|
|
10015
10014
|
}
|
|
10016
10015
|
|
|
10017
10016
|
// src/core/api/recordedRun.ts
|
|
10018
|
-
|
|
10017
|
+
init_ai2();
|
|
10019
10018
|
init_persistenceError();
|
|
10020
10019
|
import { realpath as realpath5, stat as stat4 } from "node:fs/promises";
|
|
10021
10020
|
|
|
@@ -10645,7 +10644,7 @@ function restoreRunContext(input) {
|
|
|
10645
10644
|
}
|
|
10646
10645
|
|
|
10647
10646
|
// src/core/runtime/runRecoveryPlan.ts
|
|
10648
|
-
|
|
10647
|
+
init_ai2();
|
|
10649
10648
|
import { createHash as createHash4 } from "node:crypto";
|
|
10650
10649
|
import { isDeepStrictEqual as isDeepStrictEqual7 } from "node:util";
|
|
10651
10650
|
var DENIED_BY_OPERATOR2 = {
|
|
@@ -11076,35 +11075,6 @@ function createRunToolRecorder(options) {
|
|
|
11076
11075
|
|
|
11077
11076
|
// src/core/api/recordedRun.ts
|
|
11078
11077
|
init_session();
|
|
11079
|
-
|
|
11080
|
-
// src/core/api/offesecAgent.ts
|
|
11081
|
-
async function runOffensiveSecurityAgent2(input) {
|
|
11082
|
-
const agent = input.session ? new OffensiveSecurityAgent(input) : await OffensiveSecurityAgent.create(input);
|
|
11083
|
-
input.onSessionReady?.(agent.session);
|
|
11084
|
-
await startAgentExecution(agent).result;
|
|
11085
|
-
return { streamResult: agent.streamResult, session: agent.session };
|
|
11086
|
-
}
|
|
11087
|
-
function createOffensiveSecurityAgentClient2() {
|
|
11088
|
-
const controller = new AbortController;
|
|
11089
|
-
let started = false;
|
|
11090
|
-
return {
|
|
11091
|
-
run(input) {
|
|
11092
|
-
if (started) {
|
|
11093
|
-
throw new Error("Offensive security agent client already started a run — create a new client per run");
|
|
11094
|
-
}
|
|
11095
|
-
started = true;
|
|
11096
|
-
return runOffensiveSecurityAgent2({
|
|
11097
|
-
...input,
|
|
11098
|
-
abortSignal: controller.signal
|
|
11099
|
-
});
|
|
11100
|
-
},
|
|
11101
|
-
abort() {
|
|
11102
|
-
controller.abort();
|
|
11103
|
-
}
|
|
11104
|
-
};
|
|
11105
|
-
}
|
|
11106
|
-
|
|
11107
|
-
// src/core/api/recordedRun.ts
|
|
11108
11078
|
var TASK_TOOL_NAMES2 = new Set(["create_task", "update_task", "list_tasks"]);
|
|
11109
11079
|
function assertCredentialsDeclared(spec, manager) {
|
|
11110
11080
|
for (const credentialId of spec.credentialRefs) {
|
|
@@ -12675,6 +12645,7 @@ Working directory: ${input.codebasePath}`;
|
|
|
12675
12645
|
system,
|
|
12676
12646
|
prompt,
|
|
12677
12647
|
model,
|
|
12648
|
+
reasoning: input.reasoning,
|
|
12678
12649
|
session,
|
|
12679
12650
|
activeTools: [...HEADLESS_TOOL_NAMES, ...SKILL_TOOL_NAMES2],
|
|
12680
12651
|
authConfig: input.authConfig,
|
|
@@ -12686,4 +12657,4 @@ Working directory: ${input.codebasePath}`;
|
|
|
12686
12657
|
return { session, outputPath: input.outputPath };
|
|
12687
12658
|
}
|
|
12688
12659
|
|
|
12689
|
-
export { inspectSessionEvidence2, RecordedRunSpecSchema, acquireLocalRunLock, resolveRunDatabasePath, openSqliteRunStore, CLOSED_DISPOSITIONS2, listScans2, getScan2, listPentestTargets2, dispatchPentest2, listIssues2, getIssue2, updateIssue2, listIssueComments2, createIssueComment2, retestIssue2, linkPullRequest2, listIssuePullRequests2, listFixes2, getFix2, listAgentLogs2, searchAgentLogs2, listTargetLogs2, searchTargetLogs2, KNOWLEDGE_CATEGORIES2, KNOWLEDGE_STATUSES2, listKnowledge2, getKnowledge2, createKnowledge2, updateKnowledge2, archiveKnowledge2, resolveWorkerEndpoint, LocalWorkerTransportError, WorkerConnectionError, workerRequest,
|
|
12660
|
+
export { inspectSessionEvidence2, RecordedRunSpecSchema, acquireLocalRunLock, resolveRunDatabasePath, openSqliteRunStore, CLOSED_DISPOSITIONS2, listScans2, getScan2, listPentestTargets2, dispatchPentest2, listIssues2, getIssue2, updateIssue2, listIssueComments2, createIssueComment2, retestIssue2, linkPullRequest2, listIssuePullRequests2, listFixes2, getFix2, listAgentLogs2, searchAgentLogs2, listTargetLogs2, searchTargetLogs2, KNOWLEDGE_CATEGORIES2, KNOWLEDGE_STATUSES2, listKnowledge2, getKnowledge2, createKnowledge2, updateKnowledge2, archiveKnowledge2, resolveWorkerEndpoint, LocalWorkerTransportError, WorkerConnectionError, workerRequest, runRecordedAgent2, RunRecoveryBlockedError2, resumeRecordedAgent2, serveLocalRunWorker2, buildPentestPrompt, buildThreatModelPrompt, createSkillsRegistry, runThreatModelWorkflow2 };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EndpointTransportEnum,
|
|
3
3
|
GrpcEndpointMetadataSchema
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-vm2ddx02.js";
|
|
5
5
|
import {
|
|
6
6
|
AgentRuntime,
|
|
7
7
|
defineAgent
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-0pdsq871.js";
|
|
9
9
|
import {
|
|
10
10
|
stepCountIs2,
|
|
11
11
|
init_dist
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-gxk0xv52.js";
|
|
13
13
|
import {
|
|
14
14
|
tool
|
|
15
15
|
} from "./cli-pwm29ks7.js";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {
|
|
2
|
+
sessions2,
|
|
3
|
+
init_session,
|
|
4
|
+
getModelSettings,
|
|
5
|
+
init_ai2
|
|
6
|
+
} from "./cli-gxk0xv52.js";
|
|
7
|
+
|
|
8
|
+
// src/core/runtime/agentExecution.ts
|
|
9
|
+
function startAgentExecution(agent) {
|
|
10
|
+
const result = agent.consume();
|
|
11
|
+
return {
|
|
12
|
+
result,
|
|
13
|
+
abortAndDrain: () => agent.abortAndDrain(),
|
|
14
|
+
drained: agent.drained
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// src/core/api/reasoning.ts
|
|
19
|
+
init_ai2();
|
|
20
|
+
init_session();
|
|
21
|
+
function resolveRootReasoning(input) {
|
|
22
|
+
const saved = input.session?.config?.modelReasoning;
|
|
23
|
+
const reasoning = getModelSettings({
|
|
24
|
+
...input,
|
|
25
|
+
reasoning: input.reasoning ?? (!input.subagentId && saved?.model === input.model ? saved.setting : undefined)
|
|
26
|
+
}).reasoning;
|
|
27
|
+
return reasoning === input.reasoning ? input : { ...input, reasoning };
|
|
28
|
+
}
|
|
29
|
+
function persistRootReasoningOverride(input) {
|
|
30
|
+
const saved = input.session?.config?.modelReasoning;
|
|
31
|
+
if (input.session && !input.subagentId && input.reasoning !== undefined && (saved?.model !== input.model || saved.setting !== input.reasoning)) {
|
|
32
|
+
return sessions2.updateModelReasoning(input.session.id, input.model, input.reasoning);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { startAgentExecution, resolveRootReasoning, persistRootReasoningOverride };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-vm2ddx02.js";
|
|
4
4
|
|
|
5
5
|
// src/core/agents/agentRuntime.ts
|
|
6
6
|
function assembleAgentHooks(opts) {
|
|
7
7
|
return {
|
|
8
8
|
findingPolicy: opts.findingPolicy,
|
|
9
|
+
toolExecutionContext: opts.toolExecutionContext,
|
|
9
10
|
backends: opts.backends,
|
|
10
11
|
subagentSpawner: opts.subagentSpawner,
|
|
11
12
|
languageModelMiddleware: opts.languageModelMiddleware,
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
openSqliteRunStore,
|
|
5
5
|
resolveWorkerEndpoint,
|
|
6
6
|
workerRequest
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-02spd95w.js";
|
|
8
8
|
import {
|
|
9
9
|
launchLocalWorker
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-6wv8wxwm.js";
|
|
11
11
|
|
|
12
12
|
// src/core/runtime/recordedRunClient.ts
|
|
13
13
|
import { setTimeout as delay } from "node:timers/promises";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./cli-h6y3bt60.js";
|
|
4
4
|
|
|
5
5
|
// package.json
|
|
6
|
-
var version = "2.7.0-canary.
|
|
6
|
+
var version = "2.7.0-canary.30dd57ca", package_default;
|
|
7
7
|
var init_package = __esm(() => {
|
|
8
8
|
package_default = {
|
|
9
9
|
author: "Pensar",
|
|
@@ -336,6 +336,7 @@ var init_package = __esm(() => {
|
|
|
336
336
|
"format:check": 'biome check && prettier --check "**/*.{md,yml,yaml}"',
|
|
337
337
|
"generate:ascii": "bun run scripts/generate-ascii-art.ts",
|
|
338
338
|
"generate:models": "bun run scripts/generate-models.ts",
|
|
339
|
+
"generate:reasoning": "bun run scripts/sync-reasoning-capabilities.ts",
|
|
339
340
|
knip: "knip",
|
|
340
341
|
lint: "biome lint src/",
|
|
341
342
|
"lint:fix": "biome lint --write src/",
|
|
@@ -8,15 +8,15 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
AgentRuntime,
|
|
10
10
|
defineAgent
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-0pdsq871.js";
|
|
12
12
|
import {
|
|
13
13
|
hasToolCall,
|
|
14
14
|
init_dist,
|
|
15
|
-
scopedLogger,
|
|
16
|
-
init_lazyLogger,
|
|
17
15
|
createLogger,
|
|
18
|
-
init_structured
|
|
19
|
-
|
|
16
|
+
init_structured,
|
|
17
|
+
scopedLogger,
|
|
18
|
+
init_lazyLogger
|
|
19
|
+
} from "./cli-gxk0xv52.js";
|
|
20
20
|
|
|
21
21
|
// src/core/agents/specialized/authenticationAgent/agent.ts
|
|
22
22
|
init_dist();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentRuntime,
|
|
3
3
|
defineAgent
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-0pdsq871.js";
|
|
5
5
|
import {
|
|
6
6
|
stepCountIs2,
|
|
7
7
|
init_dist
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-gxk0xv52.js";
|
|
9
9
|
|
|
10
10
|
// src/core/agents/specialized/codeAgent/agent.ts
|
|
11
11
|
init_dist();
|