@hienlh/ppm 0.5.9 → 0.5.10
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 +5 -0
- package/package.json +1 -1
- package/src/providers/claude-agent-sdk.ts +20 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -354,6 +354,26 @@ export class ClaudeAgentSdkProvider implements AIProvider {
|
|
|
354
354
|
console.log(`[sdk] claude CLI: ${claudePath || "(not found in PATH)"}`);
|
|
355
355
|
} catch { console.log("[sdk] claude CLI: check failed"); }
|
|
356
356
|
|
|
357
|
+
// Quick CLI version check — verify the binary actually runs from this process
|
|
358
|
+
try {
|
|
359
|
+
const verProc = Bun.spawnSync({
|
|
360
|
+
cmd: ["claude", "--version"],
|
|
361
|
+
stdout: "pipe", stderr: "pipe",
|
|
362
|
+
cwd: effectiveCwd,
|
|
363
|
+
});
|
|
364
|
+
console.log(`[sdk] claude --version: exit=${verProc.exitCode} out="${verProc.stdout.toString().trim().slice(0, 100)}"`);
|
|
365
|
+
if (verProc.exitCode !== 0) {
|
|
366
|
+
console.error(`[sdk] claude --version stderr: ${verProc.stderr.toString().trim().slice(0, 300)}`);
|
|
367
|
+
}
|
|
368
|
+
} catch (e) {
|
|
369
|
+
console.error(`[sdk] claude --version failed: ${(e as Error).message}`);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
// Log env keys relevant to SDK auth (values redacted)
|
|
373
|
+
const authKeys = ["ANTHROPIC_API_KEY", "CLAUDE_CODE_USE_BEDROCK", "CLAUDE_CODE_USE_VERTEX", "CLAUDE_CODE_USE_FOUNDRY"];
|
|
374
|
+
const envStatus = authKeys.map(k => `${k}=${process.env[k] ? "SET" : "unset"}`).join(" ");
|
|
375
|
+
console.log(`[sdk] env auth: ${envStatus}`);
|
|
376
|
+
|
|
357
377
|
let lastPartialText = "";
|
|
358
378
|
/** Number of tool_use blocks pending results (top-level tools only, not subagent children) */
|
|
359
379
|
let pendingToolCount = 0;
|