pentesting 0.70.1 → 0.70.2

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/README.md CHANGED
@@ -88,7 +88,7 @@ email: agnusdei1207@gmail.com
88
88
 
89
89
  **In Ireland 🇮🇪**
90
90
 
91
- * we don't stop until the flag is captured.*
91
+ we don't stop until the flag is captured.
92
92
 
93
93
  [![in-ireland](https://img.shields.io/badge/Made%20in-Ireland%20🇮🇪-169B62?style=flat-square&labelColor=FF883E)](https://en.wikipedia.org/wiki/Republic_of_Ireland)
94
94
 
@@ -68,6 +68,11 @@ var PROCESS_EVENTS = {
68
68
  DIED: "died",
69
69
  ZOMBIE_CLEANED: "zombie_cleaned"
70
70
  };
71
+ var PROCESS_LIMITS = {
72
+ GRACEFUL_SHUTDOWN_WAIT_MS: 200,
73
+ OUTPUT_TRUNCATION_LIMIT: 1e4
74
+ // characters
75
+ };
71
76
 
72
77
  // src/shared/constants/system/limits.ts
73
78
  var SYSTEM_LIMITS = {
@@ -139,6 +144,15 @@ var ORPHAN_PROCESS_NAMES = [
139
144
  "socat"
140
145
  ];
141
146
 
147
+ // src/shared/constants/system/health.ts
148
+ var HEALTH_CONFIG = {
149
+ LONG_RUNNING_THRESHOLD_MS: 3e5,
150
+ // 5 minutes
151
+ VERY_LONG_RUNNING_THRESHOLD_MS: 9e5,
152
+ // 15 minutes
153
+ MAX_RECOMMENDATIONS_FOR_HEALTHY: 2
154
+ };
155
+
142
156
  // src/engine/process/process-registry.ts
143
157
  var backgroundProcesses = /* @__PURE__ */ new Map();
144
158
  var processEventLog = [];
@@ -190,9 +204,11 @@ export {
190
204
  PROCESS_ICONS,
191
205
  STATUS_MARKERS,
192
206
  PROCESS_EVENTS,
207
+ PROCESS_LIMITS,
193
208
  SYSTEM_LIMITS,
194
209
  DETECTION_PATTERNS,
195
210
  ORPHAN_PROCESS_NAMES,
211
+ HEALTH_CONFIG,
196
212
  logEvent,
197
213
  getProcess,
198
214
  setProcess,