pentesting 0.73.11 → 0.73.12

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.
@@ -5,7 +5,7 @@ import {
5
5
  createContextExtractor,
6
6
  getLLMClient,
7
7
  getShellSupervisorLifecycleSnapshot
8
- } from "./chunk-WEEPTBTF.js";
8
+ } from "./chunk-4DUF6JX2.js";
9
9
  import {
10
10
  AGENT_ROLES,
11
11
  EVENT_TYPES,
@@ -13,7 +13,7 @@ import {
13
13
  TOOL_NAMES,
14
14
  getProcessOutput,
15
15
  listBackgroundProcesses
16
- } from "./chunk-U2NIVQ2O.js";
16
+ } from "./chunk-5JXATHQ3.js";
17
17
  import {
18
18
  DETECTION_PATTERNS,
19
19
  PROCESS_EVENTS,
@@ -69,7 +69,7 @@ import {
69
69
  startBackgroundProcess,
70
70
  stopBackgroundProcess,
71
71
  writeFileContent
72
- } from "./chunk-U2NIVQ2O.js";
72
+ } from "./chunk-5JXATHQ3.js";
73
73
  import {
74
74
  DETECTION_PATTERNS,
75
75
  HEALTH_CONFIG,
@@ -11084,7 +11084,7 @@ After completion: record key loot/findings from the sub-agent output to canonica
11084
11084
  rootTaskId: activeExecution.rootTaskId
11085
11085
  }
11086
11086
  });
11087
- const { AgentTool } = await import("./agent-tool-WLGPVDX6.js");
11087
+ const { AgentTool } = await import("./agent-tool-RTF2W3GB.js");
11088
11088
  const executor = new AgentTool(state, events, scopeGuard, approvalGate);
11089
11089
  try {
11090
11090
  const result = await executor.execute(input);
@@ -348,7 +348,7 @@ var INPUT_PROMPT_PATTERNS = [
348
348
  ];
349
349
 
350
350
  // src/shared/constants/agent.ts
351
- var APP_VERSION = "0.73.11";
351
+ var APP_VERSION = "0.73.12";
352
352
  var APP_DESCRIPTION = "Autonomous Penetration Testing AI Agent";
353
353
  var LLM_ROLES = {
354
354
  SYSTEM: "system",
package/dist/main.js CHANGED
@@ -39,7 +39,7 @@ import {
39
39
  rotateTurnRecords,
40
40
  setCurrentTurn,
41
41
  writePolicyDocument
42
- } from "./chunk-WEEPTBTF.js";
42
+ } from "./chunk-4DUF6JX2.js";
43
43
  import {
44
44
  AGENT_ROLES,
45
45
  APP_DESCRIPTION,
@@ -88,7 +88,7 @@ import {
88
88
  setActiveSessionRuntime,
89
89
  setTorEnabled,
90
90
  snapshotToPrompt
91
- } from "./chunk-U2NIVQ2O.js";
91
+ } from "./chunk-5JXATHQ3.js";
92
92
  import {
93
93
  EXIT_CODES,
94
94
  getOptionalRuntimeSection,
@@ -2497,6 +2497,17 @@ var MainAgentInteractionCoordinator = class {
2497
2497
  emitMainAgentQueueUpdated(this.options.events, this.userInputQueue);
2498
2498
  return normalized;
2499
2499
  }
2500
+ async processStandalonePolicyInput(rawInput) {
2501
+ const result = await this.options.inputProcessor.execute({
2502
+ rawInput,
2503
+ existingPolicy: readPolicyDocument(),
2504
+ hasActiveEngagement: this.options.state.hasActiveEngagement(),
2505
+ currentObjective: this.options.state.currentObjective || ""
2506
+ });
2507
+ const normalized = normalizeInputProcessorResult(result, rawInput);
2508
+ this.updatePolicyFromInputProcessor(normalized);
2509
+ return normalized;
2510
+ }
2500
2511
  getUserInputQueue() {
2501
2512
  return this.userInputQueue;
2502
2513
  }
@@ -3274,7 +3285,7 @@ var makeRotateTurns = (_llm, _opts) => async (_ctx) => {
3274
3285
  };
3275
3286
  var makeSaveSession = (_llm, _opts) => async (ctx) => {
3276
3287
  try {
3277
- const { saveState: saveState2 } = await import("./persistence-WP43KX7N.js");
3288
+ const { saveState: saveState2 } = await import("./persistence-DC6QI7XQ.js");
3278
3289
  saveState2(ctx.state);
3279
3290
  } catch {
3280
3291
  }
@@ -4144,6 +4155,9 @@ var MainAgent = class extends CoreAgent {
4144
4155
  }
4145
4156
  return result;
4146
4157
  }
4158
+ async applyStandalonePolicyInput(rawInput) {
4159
+ return this.interactionCoordinator.processStandalonePolicyInput(rawInput);
4160
+ }
4147
4161
  async buildDynamicPrompt(memory) {
4148
4162
  return this.promptState.buildDynamicPrompt(memory);
4149
4163
  }
@@ -4828,6 +4842,10 @@ var UI_STATUS_MESSAGES = {
4828
4842
  STARTING_PENTEST: "Starting penetration test...",
4829
4843
  /** Start cancelled from policy composer */
4830
4844
  START_CANCELLED: "Start cancelled before execution.",
4845
+ /** Policy bootstrap was saved before autonomous execution */
4846
+ POLICY_BOOTSTRAP_SAVED: "Competition policy saved for this run.",
4847
+ /** Policy bootstrap did not produce a durable update */
4848
+ POLICY_BOOTSTRAP_NO_CHANGE: "Competition policy was reviewed, but no durable policy change was recorded.",
4831
4849
  /** Pentest task prefix */
4832
4850
  PENTEST_TASK_PREFIX: "Perform comprehensive penetration testing",
4833
4851
  /** Against prefix */
@@ -6825,7 +6843,11 @@ var useAppLogic = ({ autoApprove = false, target }) => {
6825
6843
  const policyInput = buildPolicyBootstrapInput(policyComposer.value);
6826
6844
  setPolicyComposer({ isOpen: false, value: "", pendingTask: "" });
6827
6845
  if (policyInput) {
6828
- agent.enqueueUserInput(policyInput);
6846
+ const policyResult = await agent.applyStandalonePolicyInput(policyInput);
6847
+ addMessage(
6848
+ "system",
6849
+ policyResult.shouldWritePolicy ? policyResult.policyUpdateSummary || UI_STATUS_MESSAGES.POLICY_BOOTSTRAP_SAVED : UI_STATUS_MESSAGES.POLICY_BOOTSTRAP_NO_CHANGE
6850
+ );
6829
6851
  }
6830
6852
  setAutoApproveMode(true);
6831
6853
  agent.setToolAutoApprove(true);
@@ -3,7 +3,7 @@ import {
3
3
  clearWorkspace,
4
4
  loadState,
5
5
  saveState
6
- } from "./chunk-U2NIVQ2O.js";
6
+ } from "./chunk-5JXATHQ3.js";
7
7
  import "./chunk-S5ZMXFHR.js";
8
8
  export {
9
9
  StateSerializer,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pentesting",
3
- "version": "0.73.11",
3
+ "version": "0.73.12",
4
4
  "description": "Autonomous Penetration Testing AI Agent",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",