@pushpalsdev/cli 1.1.44 → 1.1.45

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": "@pushpalsdev/cli",
3
- "version": "1.1.44",
3
+ "version": "1.1.45",
4
4
  "description": "PushPals terminal CLI for LocalBuddy -> RemoteBuddy orchestration",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -37,6 +37,7 @@ const BACKEND_TIMEOUT_RESULT_GRACE_MS = 30_000;
37
37
  const OPENAI_CODEX_MIN_VALIDATION_RESERVE_MS = 240_000;
38
38
  const OPENAI_CODEX_MAX_VALIDATION_RESERVE_MS = 720_000;
39
39
  const OPENAI_CODEX_MIN_PRIMARY_TURN_BUDGET_MS = 540_000;
40
+ const OPENAI_CODEX_VALIDATION_RESERVE_RATIO = 0.25;
40
41
 
41
42
  function estimateTokensFromText(text: string): number {
42
43
  return Math.max(0, Math.ceil(String(text ?? "").length / 3));
@@ -161,7 +162,10 @@ export function resolveOpenAICodexValidationReserveMs(
161
162
  budgetMs,
162
163
  Math.max(
163
164
  OPENAI_CODEX_MIN_VALIDATION_RESERVE_MS,
164
- Math.min(OPENAI_CODEX_MAX_VALIDATION_RESERVE_MS, budgetMs * 0.5),
165
+ Math.min(
166
+ OPENAI_CODEX_MAX_VALIDATION_RESERVE_MS,
167
+ budgetMs * OPENAI_CODEX_VALIDATION_RESERVE_RATIO,
168
+ ),
165
169
  ),
166
170
  ),
167
171
  );