pentesting 0.72.12 → 0.73.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.
@@ -285,6 +285,15 @@ function getProcessEventLog() {
285
285
  function getBackgroundProcessesMap() {
286
286
  return backgroundProcesses;
287
287
  }
288
+ function getActiveProcessSummary() {
289
+ const processes = Array.from(getAllProcesses());
290
+ if (!processes.length) return "";
291
+ return processes.filter((p) => !p.hasExited).map((p) => {
292
+ const port = p.listeningPort ? ` port=${p.listeningPort}` : "";
293
+ const interactive = p.isInteractive ? " interactive=true" : "";
294
+ return `${p.id}: ${p.command} | role=${p.role}${port}${interactive}`;
295
+ }).join("\n");
296
+ }
288
297
 
289
298
  export {
290
299
  __require,
@@ -317,5 +326,6 @@ export {
317
326
  getProcessCount,
318
327
  clearAllProcesses,
319
328
  getProcessEventLog,
320
- getBackgroundProcessesMap
329
+ getBackgroundProcessesMap,
330
+ getActiveProcessSummary
321
331
  };