@juanbenjumea/pi-agy 0.7.1 → 0.7.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.7.2
4
+
5
+ - Resolve stderr text when a successful run leaves stdout empty or whitespace-only (ported from upstream 0.3.8/0.3.9), after the terminal-status and permission-denial fail-closed checks so those semantics stand; stdout responses still win over stderr diagnostics.
6
+ - Cover symlink canonicalization into one directory-lock chain (our answer to upstream 0.3.6's symlink-escape rejection: resolve, don't reject).
7
+ - Full 280-test gate plus typecheck and package checks pass.
8
+
3
9
  ## 0.7.1
4
10
 
5
11
  - Report provider runtime state in `/agy doctor` (driver turns/reuses/recycles, bridge tool count, suspended turns awaiting Pi tools, live image staging) via a never-throwing status snapshot.
@@ -364,6 +364,16 @@ function spawnAgyInternal(
364
364
  if (stdoutTruncated && !finalized.response_complete) {
365
365
  finalized.response += `\n\n(raw stdout capture was truncated at the ${MAX_CAPTURE_BYTES / 1024} KB fallback bound)`;
366
366
  }
367
+ // Upstream 0.3.8/0.3.9: success resolves stdout-only, except a
368
+ // stray newline on stdout with the real message on stderr resolves
369
+ // with the stderr text instead of near-empty output. Runs after
370
+ // the denied/terminal checks so those fail-closed semantics stand.
371
+ // Stderr stays bounded by the capture above.
372
+ const responseText = finalized.response.trim();
373
+ if ((responseText === "" || responseText === "(empty response)") && err.trim()) {
374
+ finalized.response = err.trim();
375
+ finalized.response_complete = true;
376
+ }
367
377
  resolve(finalized);
368
378
  });
369
379
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juanbenjumea/pi-agy",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "Reliable Antigravity delegation for Pi — quota-aware runs, resumable tasks, repo verification, cancellation, and trustworthy diff summaries.",
5
5
  "type": "module",
6
6
  "license": "MIT",