@pensar/apex 2.6.1 → 2.7.0

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.
Files changed (144) hide show
  1. package/build/agent-4f87bydg.js +13 -0
  2. package/build/{agent-ayreaj6z.js → agent-6h49fhz1.js} +5 -5
  3. package/build/{agent-yby11zaq.js → agent-a5vq5fsm.js} +6 -6
  4. package/build/{agent-runs-g37vkrjr.js → agent-runs-9nncftzk.js} +16 -16
  5. package/build/agent-sa0ty54v.js +13 -0
  6. package/build/{apps-xn6km9yn.js → apps-rh90z2nb.js} +13 -13
  7. package/build/{auth-d105wc64.js → auth-hshx11mc.js} +13 -13
  8. package/build/{blackboxAgent-s56sgx9b.js → blackboxAgent-t6zq0ekj.js} +6 -6
  9. package/build/{blackboxPentest-ps78v3w7.js → blackboxPentest-eskvsmez.js} +11 -11
  10. package/build/{cli-d37a42dc.js → cli-29179gt8.js} +8 -8
  11. package/build/{cli-gx71jcke.js → cli-2etfgtj3.js} +1 -1
  12. package/build/{cli-ngq9dr8n.js → cli-6r1ntbmf.js} +3 -3
  13. package/build/{cli-709rvekb.js → cli-9eyk8rhx.js} +1 -1
  14. package/build/{cli-ae8jqxqr.js → cli-c4x5b3q4.js} +2 -2
  15. package/build/{cli-az3xq70v.js → cli-c9nnxr52.js} +1 -1
  16. package/build/{cli-1ve18npr.js → cli-dawkcveq.js} +1 -1
  17. package/build/{cli-3sp6nd8d.js → cli-dqrqgfrp.js} +2 -2
  18. package/build/{cli-7eea4e2y.js → cli-e0v6hd3d.js} +6 -6
  19. package/build/{cli-k2nwxta0.js → cli-ewav0q78.js} +2 -2
  20. package/build/{cli-kb21qhvm.js → cli-fk5e62a6.js} +2 -2
  21. package/build/{cli-65g6rcat.js → cli-gzgyjs36.js} +1 -1
  22. package/build/{cli-c05y640n.js → cli-mrk3hg6f.js} +1 -1
  23. package/build/{cli-dpsw2fe6.js → cli-prw2dfje.js} +353 -185
  24. package/build/{cli-qgz1q9g5.js → cli-pwhx13h3.js} +105 -36
  25. package/build/{cli-n2en7j5b.js → cli-q0wmet0t.js} +1 -1
  26. package/build/{cli-xtc2t6me.js → cli-tf2kp8s4.js} +3 -3
  27. package/build/{cli-fy6vh2a7.js → cli-vdbnh2ha.js} +1 -1
  28. package/build/cli.js +37 -37
  29. package/build/{config-zpqkd5cz.js → config-srw06gyv.js} +1 -1
  30. package/build/{fastStrike-mcjdvwez.js → fastStrike-gaphkhrs.js} +5 -5
  31. package/build/{fixes-kytx5dmj.js → fixes-j99tce5t.js} +13 -13
  32. package/build/{index-wqetp6gq.js → index-3rsrzfje.js} +5 -5
  33. package/build/{index-fv64eb32.js → index-652yqmn2.js} +2 -2
  34. package/build/{index-n65z6v7b.js → index-6fxag2h2.js} +6 -6
  35. package/build/{index-r9yjkfrv.js → index-a9yy0fe3.js} +4 -4
  36. package/build/{index-dr3tg1w3.js → index-c1tgca1w.js} +1 -1
  37. package/build/{index-qv4cc65p.js → index-fsv57ssp.js} +13 -13
  38. package/build/{index-ns4m4s01.js → index-y9h10rfq.js} +4 -4
  39. package/build/{index-4vqdgb42.js → index-yj0ye642.js} +1236 -1195
  40. package/build/{index-je6hcsqr.js → index-ynsam8mg.js} +1 -1
  41. package/build/{issues-eb3q9d3a.js → issues-267ytycy.js} +13 -13
  42. package/build/{knowledge-fqsvtx0f.js → knowledge-44acmwfw.js} +13 -13
  43. package/build/lib/{chunk-yrnrbjes.js → chunk-2015fqpw.js} +1 -1
  44. package/build/lib/{chunk-acgbyf5h.js → chunk-3jr0sp3v.js} +1 -1
  45. package/build/lib/{chunk-7pwa92rn.js → chunk-45ne0t6e.js} +1 -1
  46. package/build/lib/{chunk-nhfax4gb.js → chunk-5ma2ns65.js} +1 -1
  47. package/build/lib/{chunk-z96pbjhd.js → chunk-8zfn4feq.js} +1 -1
  48. package/build/lib/{chunk-1jvwqnem.js → chunk-93b8vp9x.js} +3 -3
  49. package/build/lib/{chunk-r4j8ybn9.js → chunk-9kmc9yp6.js} +37 -20
  50. package/build/lib/{chunk-9yksqgzr.js → chunk-bb2sekn4.js} +11 -11
  51. package/build/lib/{chunk-e8yy2k73.js → chunk-c3e9aen5.js} +1 -1
  52. package/build/lib/{chunk-v3dk9j7k.js → chunk-db0bmkrv.js} +11 -11
  53. package/build/lib/{chunk-1yct6cra.js → chunk-dm8yvkdy.js} +1 -1
  54. package/build/lib/{chunk-xhdpgpkm.js → chunk-dvn6bg2m.js} +2 -2
  55. package/build/lib/{chunk-9tt2021m.js → chunk-fwe0fdb5.js} +9 -9
  56. package/build/lib/{chunk-3c00n0cy.js → chunk-gfzspfyd.js} +3 -3
  57. package/build/lib/{chunk-ba41jh41.js → chunk-hw0vcs3m.js} +297 -127
  58. package/build/lib/{chunk-r2dkp4tb.js → chunk-m8w0npxg.js} +1 -1
  59. package/build/lib/{chunk-z137x08b.js → chunk-mbm9w4ac.js} +5 -5
  60. package/build/lib/{chunk-4hwzqthr.js → chunk-mjey3y7s.js} +1 -1
  61. package/build/lib/{chunk-mg03jdmt.js → chunk-mw108bmx.js} +1 -1
  62. package/build/lib/{chunk-1azdancq.js → chunk-njn4tjsr.js} +1 -1
  63. package/build/lib/{chunk-bb0ekhkw.js → chunk-p8jd9s8k.js} +8 -8
  64. package/build/lib/{chunk-2qsq76xq.js → chunk-t6yh604c.js} +62 -10
  65. package/build/lib/{chunk-1fy8azee.js → chunk-yqengqce.js} +1 -1
  66. package/build/lib/{chunk-w66ce82a.js → chunk-ysmhn1p6.js} +1 -1
  67. package/build/lib/core/agents/offSecAgent/index.js +7 -7
  68. package/build/lib/core/agents/offSecAgent/subagentSpawner.js +5 -5
  69. package/build/lib/core/agents/offSecAgent/tools/index.js +4 -4
  70. package/build/lib/core/agents/offSecAgent/tools/listMemories.d.ts +11 -1
  71. package/build/lib/core/agents/specialized/attackSurface/blackboxAgent.js +9 -9
  72. package/build/lib/core/agents/specialized/attackSurface/schemas.js +9 -9
  73. package/build/lib/core/agents/specialized/authenticationAgent/index.js +10 -10
  74. package/build/lib/core/agents/specialized/codeAgent/agent.js +9 -9
  75. package/build/lib/core/agents/specialized/findingJudge/agent.js +8 -8
  76. package/build/lib/core/agents/specialized/findingJudge/index.js +3 -3
  77. package/build/lib/core/agents/specialized/patching/index.js +10 -10
  78. package/build/lib/core/agents/specialized/pentest/agent.js +9 -9
  79. package/build/lib/core/agents/specialized/whiteboxAttackSurface/index.js +9 -9
  80. package/build/lib/core/ai/ai.d.ts +23 -6
  81. package/build/lib/core/ai/ai.js +2 -2
  82. package/build/lib/core/ai/index.js +2 -2
  83. package/build/lib/core/ai/models/claude-capabilities.d.ts +3 -2
  84. package/build/lib/core/ai/models/index.d.ts +1 -1
  85. package/build/lib/core/ai/utils.d.ts +2 -0
  86. package/build/lib/core/ai/utils.js +4 -2
  87. package/build/lib/core/api/index.js +19 -19
  88. package/build/lib/core/api/targetedPentest.js +10 -10
  89. package/build/lib/core/config/index.js +1 -1
  90. package/build/lib/core/findings/registry.js +3 -3
  91. package/build/lib/core/session/index.js +2 -2
  92. package/build/lib/core/session/persistence.js +3 -3
  93. package/build/lib/core/workflows/pentest.js +15 -15
  94. package/build/lib/core/workflows/seams.js +4 -4
  95. package/build/lib/core/workflows/whiteboxAttackSurface.js +11 -11
  96. package/build/lib/index.js +22 -22
  97. package/build/{logs-x62b7hk1.js → logs-wx69vy65.js} +13 -13
  98. package/build/{native-rollout-evidence-c9yhfqcs.js → native-rollout-evidence-2akrepvz.js} +3 -3
  99. package/build/{offesecAgent-5whnpeta.js → offesecAgent-zewvmk98.js} +4 -4
  100. package/build/pentest-n2mjksg2.js +22 -0
  101. package/build/{pentests-e0f32aqx.js → pentests-xvj8g8h4.js} +13 -13
  102. package/build/recordedRunClient-a0ye97sw.js +11 -0
  103. package/build/{targetedPentest-rcbs4nvp.js → targetedPentest-p3cdq712.js} +6 -6
  104. package/build/{targets-xj9g3q0z.js → targets-1wajqhm7.js} +13 -13
  105. package/build/threatModel-g9pbtnt1.js +21 -0
  106. package/build/{uninstall-7s784q4a.js → uninstall-jpm5ppfb.js} +1 -1
  107. package/build/{upload-4gvhwmvr.js → upload-csny5mns.js} +4 -4
  108. package/build/{utils-cjrz64pc.js → utils-tzbr4bxg.js} +3 -3
  109. package/package.json +1 -1
  110. package/src/core/agents/offSecAgent/offensiveSecurityAgent.test.ts +92 -5
  111. package/src/core/agents/offSecAgent/offensiveSecurityAgent.ts +49 -28
  112. package/src/core/agents/offSecAgent/tools/listMemories.test.ts +230 -0
  113. package/src/core/agents/offSecAgent/tools/listMemories.ts +73 -6
  114. package/src/core/ai/ai.operator-context.bench.test.ts +1408 -0
  115. package/src/core/ai/ai.recorded-context.test.ts +74 -0
  116. package/src/core/ai/ai.test.ts +54 -0
  117. package/src/core/ai/ai.ts +299 -80
  118. package/src/core/ai/compactionTelemetry.test.ts +2 -2
  119. package/src/core/ai/models/anthropic.ts +6 -0
  120. package/src/core/ai/models/bedrock.ts +18 -0
  121. package/src/core/ai/models/claude-capabilities.ts +29 -8
  122. package/src/core/ai/models/index.ts +4 -1
  123. package/src/core/ai/models/models.test.ts +23 -0
  124. package/src/core/ai/models/openrouter.ts +6 -0
  125. package/src/core/ai/providers/anthropic-models.test.ts +60 -1
  126. package/src/core/ai/providers/bedrock-models.test.ts +81 -0
  127. package/src/core/ai/providers/gateway-models.test.ts +16 -6
  128. package/src/core/ai/utils.native-rollout-evidence.test.ts +1 -0
  129. package/src/core/ai/utils.ts +189 -143
  130. package/src/core/observability/telemetry.test.ts +2 -3
  131. package/src/tui/components/chat/loading-indicator.tsx +20 -4
  132. package/src/tui/components/chat/message-list.tsx +1 -0
  133. package/src/tui/components/operator-dashboard/run-events.test.ts +3 -1
  134. package/src/tui/components/shared/__tests__/tool-renderer-lifecycle.tsx +18 -0
  135. package/src/tui/components/shared/action-label.test.ts +9 -0
  136. package/src/tui/components/shared/compacting-icon.tsx +18 -0
  137. package/src/tui/components/shared/index.ts +1 -0
  138. package/src/tui/components/shared/tool-registry.ts +1 -0
  139. package/src/tui/components/shared/tool-renderer.tsx +21 -7
  140. package/build/agent-6w7egcf1.js +0 -13
  141. package/build/agent-9zx75feh.js +0 -13
  142. package/build/pentest-e61hc38s.js +0 -22
  143. package/build/recordedRunClient-dp032c32.js +0 -11
  144. package/build/threatModel-jkxfa40s.js +0 -21
@@ -3,7 +3,7 @@ import {
3
3
  get2,
4
4
  update2,
5
5
  init_config2
6
- } from "./cli-709rvekb.js";
6
+ } from "./cli-9eyk8rhx.js";
7
7
 
8
8
  // src/core/config/index.ts
9
9
  init_config2();
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bun
2
- import"./cli-fy6vh2a7.js";
3
- import"./cli-c05y640n.js";
2
+ import"./cli-vdbnh2ha.js";
3
+ import"./cli-mrk3hg6f.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-7eea4e2y.js";
15
- import"./cli-qgz1q9g5.js";
16
- import"./cli-k2nwxta0.js";
17
- import"./cli-kb21qhvm.js";
18
- import"./cli-ngq9dr8n.js";
19
- import"./cli-d37a42dc.js";
20
- import"./cli-3sp6nd8d.js";
21
- import"./cli-xtc2t6me.js";
22
- import"./cli-n2en7j5b.js";
14
+ } from "./cli-e0v6hd3d.js";
15
+ import"./cli-pwhx13h3.js";
16
+ import"./cli-ewav0q78.js";
17
+ import"./cli-fk5e62a6.js";
18
+ import"./cli-6r1ntbmf.js";
19
+ import"./cli-29179gt8.js";
20
+ import"./cli-dqrqgfrp.js";
21
+ import"./cli-tf2kp8s4.js";
22
+ import"./cli-q0wmet0t.js";
23
23
  import"./cli-xcy2vxj2.js";
24
24
  import {
25
25
  markCommandFailed
26
26
  } from "./cli-z82n3qk1.js";
27
- import"./cli-1ve18npr.js";
27
+ import"./cli-dawkcveq.js";
28
28
  import"./cli-qba2x69h.js";
29
- import"./cli-dpsw2fe6.js";
29
+ import"./cli-prw2dfje.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-fy6vh2a7.js";
3
- import"./cli-c05y640n.js";
2
+ import"./cli-vdbnh2ha.js";
3
+ import"./cli-mrk3hg6f.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-7eea4e2y.js";
13
- import"./cli-qgz1q9g5.js";
14
- import"./cli-k2nwxta0.js";
15
- import"./cli-kb21qhvm.js";
16
- import"./cli-ngq9dr8n.js";
17
- import"./cli-d37a42dc.js";
18
- import"./cli-3sp6nd8d.js";
19
- import"./cli-xtc2t6me.js";
20
- import"./cli-n2en7j5b.js";
12
+ } from "./cli-e0v6hd3d.js";
13
+ import"./cli-pwhx13h3.js";
14
+ import"./cli-ewav0q78.js";
15
+ import"./cli-fk5e62a6.js";
16
+ import"./cli-6r1ntbmf.js";
17
+ import"./cli-29179gt8.js";
18
+ import"./cli-dqrqgfrp.js";
19
+ import"./cli-tf2kp8s4.js";
20
+ import"./cli-q0wmet0t.js";
21
21
  import"./cli-xcy2vxj2.js";
22
22
  import {
23
23
  markCommandFailed
24
24
  } from "./cli-z82n3qk1.js";
25
- import"./cli-1ve18npr.js";
25
+ import"./cli-dawkcveq.js";
26
26
  import"./cli-qba2x69h.js";
27
- import"./cli-dpsw2fe6.js";
27
+ import"./cli-prw2dfje.js";
28
28
  import"./cli-c2k4xxaw.js";
29
29
 
30
30
  // src/cli/knowledge.ts
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-jdjagvgr.js";
7
7
  import {
8
8
  FindingsRegistry2
9
- } from "./chunk-1azdancq.js";
9
+ } from "./chunk-njn4tjsr.js";
10
10
 
11
11
  // src/core/utils/concurrency.ts
12
12
  import { context } from "@opentelemetry/api";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  OffensiveSecurityAgent2
3
- } from "./chunk-r4j8ybn9.js";
3
+ } from "./chunk-9kmc9yp6.js";
4
4
 
5
5
  // src/core/agents/agentRuntime.ts
6
6
  function assembleAgentHooks(opts) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  AuthenticationAgent2,
3
3
  runAuthenticationAgent3
4
- } from "./chunk-xhdpgpkm.js";
4
+ } from "./chunk-dvn6bg2m.js";
5
5
  import {
6
6
  __export
7
7
  } from "./chunk-n0ba7khr.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createLogger,
3
3
  scopedLogger
4
- } from "./chunk-ba41jh41.js";
4
+ } from "./chunk-hw0vcs3m.js";
5
5
  import {
6
6
  __export
7
7
  } from "./chunk-n0ba7khr.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TargetedPentestAgent2
3
- } from "./chunk-1jvwqnem.js";
3
+ } from "./chunk-93b8vp9x.js";
4
4
 
5
5
  // src/core/runtime/agentExecution.ts
6
6
  function startAgentExecution(agent) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createLogger,
3
3
  scopedLogger
4
- } from "./chunk-ba41jh41.js";
4
+ } from "./chunk-hw0vcs3m.js";
5
5
  import {
6
6
  isMemoryEnabled2
7
7
  } from "./chunk-t5bt5vn1.js";
@@ -15,7 +15,7 @@ import {
15
15
  REPORT_ERROR_TOOL_NAME2,
16
16
  createReportErrorTool2,
17
17
  PentestReportedError2
18
- } from "./chunk-2qsq76xq.js";
18
+ } from "./chunk-t6yh604c.js";
19
19
  import {
20
20
  GOOGLE_SIGNIN_PROMPT_GUIDANCE,
21
21
  browserEngineForGoogleSignIn
@@ -26,7 +26,7 @@ import {
26
26
  import {
27
27
  AgentRuntime,
28
28
  defineAgent
29
- } from "./chunk-acgbyf5h.js";
29
+ } from "./chunk-3jr0sp3v.js";
30
30
 
31
31
  // src/core/agents/specialized/pentest/agent.ts
32
32
  import { existsSync, readdirSync, readFileSync } from "node:fs";
@@ -19,7 +19,7 @@ import {
19
19
  scopedLogger,
20
20
  normalizeStepUsage2,
21
21
  streamResponse2
22
- } from "./chunk-ba41jh41.js";
22
+ } from "./chunk-hw0vcs3m.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-3c00n0cy.js";
50
+ } from "./chunk-gfzspfyd.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-2qsq76xq.js";
123
+ } from "./chunk-t6yh604c.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 initialMessagesRef = {
1914
- current: input.messages ? [...input.messages] : [
1915
- {
1916
- role: "user",
1917
- content: [{ type: "text", text: input.prompt }]
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
- ...initialMessagesRef.current,
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
- initialMessagesRef.current = [];
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
  getCurrentVersion,
3
3
  config2
4
- } from "./chunk-w66ce82a.js";
4
+ } from "./chunk-ysmhn1p6.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-ba41jh41.js";
37
+ } from "./chunk-hw0vcs3m.js";
38
38
  import {
39
39
  buildSessionWorkspaceSection2,
40
40
  buildBaseSystemPrompt2,
41
41
  OffensiveSecurityAgent2
42
- } from "./chunk-r4j8ybn9.js";
42
+ } from "./chunk-9kmc9yp6.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-2qsq76xq.js";
65
+ } from "./chunk-t6yh604c.js";
66
66
  import {
67
67
  BlackboxAttackSurfaceAgent2
68
- } from "./chunk-1fy8azee.js";
68
+ } from "./chunk-yqengqce.js";
69
69
  import {
70
70
  runWhiteboxAttackSurfaceWorkflow2
71
- } from "./chunk-z137x08b.js";
71
+ } from "./chunk-mbm9w4ac.js";
72
72
  import {
73
73
  runAuthenticationAgent3
74
- } from "./chunk-xhdpgpkm.js";
74
+ } from "./chunk-dvn6bg2m.js";
75
75
  import {
76
76
  readExecutionMetrics,
77
77
  writeExecutionMetrics,
78
78
  runPentestWorkflow2
79
- } from "./chunk-v3dk9j7k.js";
79
+ } from "./chunk-db0bmkrv.js";
80
80
  import {
81
81
  PatchingAgent2
82
- } from "./chunk-1yct6cra.js";
82
+ } from "./chunk-dm8yvkdy.js";
83
83
  import {
84
84
  startAgentExecution,
85
85
  runTargetedPentestAgent2
86
- } from "./chunk-z96pbjhd.js";
86
+ } from "./chunk-8zfn4feq.js";
87
87
  import {
88
88
  AgentRuntime,
89
89
  defineAgent
90
- } from "./chunk-acgbyf5h.js";
90
+ } from "./chunk-3jr0sp3v.js";
91
91
  import {
92
92
  __export
93
93
  } from "./chunk-n0ba7khr.js";
@@ -6,7 +6,7 @@ import {
6
6
  normalizeMessages2,
7
7
  createLogger,
8
8
  scopedLogger
9
- } from "./chunk-ba41jh41.js";
9
+ } from "./chunk-hw0vcs3m.js";
10
10
  import {
11
11
  __export
12
12
  } from "./chunk-n0ba7khr.js";
@@ -1,26 +1,26 @@
1
1
  import {
2
2
  createLogger,
3
3
  scopedLogger
4
- } from "./chunk-ba41jh41.js";
4
+ } from "./chunk-hw0vcs3m.js";
5
5
  import {
6
6
  OffensiveSecurityAgent2
7
- } from "./chunk-r4j8ybn9.js";
7
+ } from "./chunk-9kmc9yp6.js";
8
8
  import {
9
9
  inMemoryRegistryProvider2,
10
10
  withFindingPersistedHook2,
11
11
  assertDepth2,
12
12
  inProcessSeams2,
13
13
  resolveItemHooks2
14
- } from "./chunk-yrnrbjes.js";
14
+ } from "./chunk-2015fqpw.js";
15
15
  import {
16
16
  FindingsRegistry2
17
- } from "./chunk-1azdancq.js";
17
+ } from "./chunk-njn4tjsr.js";
18
18
  import {
19
19
  inProcessSubagentSpawner2
20
- } from "./chunk-3c00n0cy.js";
20
+ } from "./chunk-gfzspfyd.js";
21
21
  import {
22
22
  PLAN_MODE_TOOL_NAMES2
23
- } from "./chunk-2qsq76xq.js";
23
+ } from "./chunk-t6yh604c.js";
24
24
  import {
25
25
  toGrpcPentestContext,
26
26
  grpcAuthorityTarget
@@ -36,11 +36,11 @@ import {
36
36
  } from "./chunk-q5e23acz.js";
37
37
  import {
38
38
  BlackboxAttackSurfaceAgent2
39
- } from "./chunk-1fy8azee.js";
39
+ } from "./chunk-yqengqce.js";
40
40
  import {
41
41
  TargetedPentestAgent2,
42
42
  buildPentestSystemPrompt2
43
- } from "./chunk-1jvwqnem.js";
43
+ } from "./chunk-93b8vp9x.js";
44
44
  import {
45
45
  loadSubagentMessages2,
46
46
  saveSubagentData2,
@@ -51,10 +51,10 @@ import {
51
51
  finalizeManifest2,
52
52
  updateManifestEntryStatus2,
53
53
  getCompletedAgentIds2
54
- } from "./chunk-e8yy2k73.js";
54
+ } from "./chunk-c3e9aen5.js";
55
55
  import {
56
56
  runWhiteboxAttackSurfaceWorkflow2
57
- } from "./chunk-z137x08b.js";
57
+ } from "./chunk-mbm9w4ac.js";
58
58
 
59
59
  // src/core/session/execution-metrics.ts
60
60
  import { existsSync, readFileSync, writeFileSync } from "node:fs";
@@ -672,7 +672,7 @@ async function runPentestSwarm2(input) {
672
672
  }
673
673
  async function runPentestWorkflow2(input) {
674
674
  if (input.fastStrike) {
675
- const { runFastStrike } = await import("./chunk-bb0ekhkw.js");
675
+ const { runFastStrike } = await import("./chunk-p8jd9s8k.js");
676
676
  return runFastStrike(input);
677
677
  }
678
678
  const {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  AgentRuntime,
3
3
  defineAgent
4
- } from "./chunk-acgbyf5h.js";
4
+ } from "./chunk-3jr0sp3v.js";
5
5
 
6
6
  // src/core/agents/specialized/patching/agent.ts
7
7
  import { readFileSync } from "node:fs";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createLogger,
3
3
  scopedLogger
4
- } from "./chunk-ba41jh41.js";
4
+ } from "./chunk-hw0vcs3m.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-acgbyf5h.js";
15
+ } from "./chunk-3jr0sp3v.js";
16
16
 
17
17
  // src/core/agents/specialized/authenticationAgent/agent.ts
18
18
  import { existsSync, readFileSync } from "node:fs";
@@ -1,26 +1,26 @@
1
1
  import {
2
2
  AuthenticationAgent2,
3
3
  runAuthenticationAgent3
4
- } from "./chunk-xhdpgpkm.js";
5
- import"./chunk-acgbyf5h.js";
6
- import"./chunk-r4j8ybn9.js";
7
- import"./chunk-3c00n0cy.js";
8
- import"./chunk-yrnrbjes.js";
4
+ } from "./chunk-dvn6bg2m.js";
5
+ import"./chunk-3jr0sp3v.js";
6
+ import"./chunk-9kmc9yp6.js";
7
+ import"./chunk-gfzspfyd.js";
8
+ import"./chunk-2015fqpw.js";
9
9
  import"./chunk-7gjdygcx.js";
10
10
  import"./chunk-b8eq85d2.js";
11
- import"./chunk-2qsq76xq.js";
11
+ import"./chunk-t6yh604c.js";
12
12
  import"./chunk-ja7j565c.js";
13
13
  import"./chunk-3q89v4xv.js";
14
14
  import"./chunk-fy3bbbqy.js";
15
- import"./chunk-1azdancq.js";
15
+ import"./chunk-njn4tjsr.js";
16
16
  import"./chunk-t5bt5vn1.js";
17
17
  import"./chunk-eb4h4k1f.js";
18
18
  import"./chunk-vx228eeq.js";
19
- import"./chunk-ba41jh41.js";
19
+ import"./chunk-hw0vcs3m.js";
20
20
  import"./chunk-8vhr65w3.js";
21
21
  import"./chunk-2njv7wz3.js";
22
22
  import"./chunk-jdjagvgr.js";
23
- import"./chunk-w66ce82a.js";
23
+ import"./chunk-ysmhn1p6.js";
24
24
  import"./chunk-zrbqn62x.js";
25
25
  import"./chunk-mv74mq5n.js";
26
26
  import"./chunk-q5e23acz.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runWithNativeRolloutSession2
3
- } from "./chunk-ba41jh41.js";
3
+ } from "./chunk-hw0vcs3m.js";
4
4
  import {
5
5
  AgentEventBus2
6
6
  } from "./chunk-7gjdygcx.js";
@@ -9,7 +9,7 @@ import {
9
9
  randomSessionIdFactory2,
10
10
  inProcessSeams2,
11
11
  resolveItemHooks2
12
- } from "./chunk-yrnrbjes.js";
12
+ } from "./chunk-2015fqpw.js";
13
13
  import {
14
14
  __export
15
15
  } from "./chunk-n0ba7khr.js";
@@ -170,7 +170,7 @@ var runBlackboxChild = async (spec, ctx) => {
170
170
  return { run: () => agent.consume(), drained: () => agent.drained };
171
171
  };
172
172
  var runAuthChild = async (spec, ctx) => {
173
- const { runAuthenticationAgent } = await import("./chunk-9tt2021m.js");
173
+ const { runAuthenticationAgent } = await import("./chunk-fwe0fdb5.js");
174
174
  return {
175
175
  run: () => runAuthenticationAgent({
176
176
  target: spec.target,