feat: add spice (#12)

This commit is contained in:
Charles Packer
2025-10-27 14:25:03 -07:00
committed by GitHub
parent 6f7b3bb08b
commit 938c5ae854
11 changed files with 215 additions and 34 deletions

View File

@@ -26,7 +26,7 @@ describe("Bash background tools", () => {
// Extract bash_id from the response text
const match = startResult.content[0].text.match(/bash_(\d+)/);
expect(match).toBeDefined();
const bashId = `bash_${match![1]}`;
const bashId = `bash_${match?.[1]}`;
// Wait for command to complete
await new Promise((resolve) => setTimeout(resolve, 200));
@@ -52,7 +52,7 @@ describe("Bash background tools", () => {
});
const match = startResult.content[0].text.match(/bash_(\d+)/);
const bashId = `bash_${match![1]}`;
const bashId = `bash_${match?.[1]}`;
// Kill it (KillBash uses shell_id parameter)
const killResult = await kill_bash({ shell_id: bashId });