@fermindi/pwn-cli 0.9.12 → 0.9.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fermindi/pwn-cli",
3
- "version": "0.9.12",
3
+ "version": "0.9.13",
4
4
  "description": "Professional AI Workspace - Inject structured memory and automation into any project for AI-powered development",
5
5
  "type": "module",
6
6
  "bin": {
@@ -47,9 +47,9 @@ const MIN_TIMEOUT_MS = 300_000; // 5 minutes minimum (claude init ~30-40s +
47
47
  // Complexity → timeout mapping (based on real-world execution data)
48
48
  // AI is bad at estimating seconds but decent at classifying complexity
49
49
  const COMPLEXITY_TIMEOUT = {
50
- low: { seconds: 300, label: '5m' }, // config change, small fix
51
- medium: { seconds: 600, label: '10m' }, // new function, 1-3 files
52
- high: { seconds: 900, label: '15m' }, // new module, multi-file refactor
50
+ low: { seconds: 420, label: '7m' }, // config change, small fix
51
+ medium: { seconds: 780, label: '13m' }, // new function, 1-3 files
52
+ high: { seconds: 1200, label: '20m' }, // new module, multi-file refactor
53
53
  };
54
54
  const PLAN_TIMEOUT_MS = 120_000; // 2 minutes for planning phase (claude init ~30s)
55
55
  const DEFAULT_RATE_LIMIT_WAIT = 1800; // 30 minutes (seconds)
@@ -234,7 +234,7 @@ async function planTask(task, batchWorktreePath, replanContext = null) {
234
234
 
235
235
  function computeTimeout(estimatedSeconds) {
236
236
  if (!estimatedSeconds || estimatedSeconds <= 0) return DEFAULT_TIMEOUT_MS;
237
- return Math.max(Math.ceil(estimatedSeconds * 1.05) * 1000, MIN_TIMEOUT_MS);
237
+ return Math.max(Math.ceil(estimatedSeconds * 1.30) * 1000, MIN_TIMEOUT_MS);
238
238
  }
239
239
 
240
240
  /**
@@ -450,7 +450,7 @@ export async function runBatch(options = {}, cwd = process.cwd()) {
450
450
  const complexity = planResult.complexity || 'medium';
451
451
  const tier = COMPLEXITY_TIMEOUT[complexity] || COMPLEXITY_TIMEOUT.medium;
452
452
  const estimatedSeconds = tier.seconds;
453
- const timeoutSeconds = Math.ceil(estimatedSeconds * 1.05);
453
+ const timeoutSeconds = Math.ceil(estimatedSeconds * 1.30);
454
454
  taskTimeoutMs = timeoutSeconds * 1000;
455
455
 
456
456
  const recommendedModel = planResult.recommended_model || 'sonnet';