Clean up code formatting and remove unused imports for better consistency

🤖 Generated with opencode
Co-Authored-By: opencode <noreply@opencode.ai>
This commit is contained in:
Dax Raad
2025-05-26 21:22:38 -04:00
parent eb69cc3943
commit b75456f5dd
3 changed files with 11 additions and 13 deletions

View File

@@ -5,7 +5,6 @@ import path from "path";
import { Bus } from "./bus";
import { Session } from "./session/session";
import cac from "cac";
import { Storage } from "./storage/storage";
import { Share } from "./share/share";
const cli = cac("opencode");
@@ -24,11 +23,11 @@ cli.command("generate", "Generate OpenAPI and event specs").action(async () => {
await fs.mkdir(dir, { recursive: true });
await Bun.write(
path.join(dir, "openapi.json"),
JSON.stringify(specs, null, 2)
JSON.stringify(specs, null, 2),
);
await Bun.write(
path.join(dir, "event.json"),
JSON.stringify(Bus.specs(), null, 2)
JSON.stringify(Bus.specs(), null, 2),
);
});
@@ -58,7 +57,7 @@ cli
part.toolInvocation.args,
part.toolInvocation.state === "result"
? part.toolInvocation.result
: ""
: "",
);
}
}