summaryrefslogtreecommitdiffhomepage
path: root/js/src/index.ts
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-05-26 21:22:38 -0400
committerDax Raad <[email protected]>2025-05-26 21:22:38 -0400
commitb75456f5ddc4fe5823f5014573923c5fb76625dd (patch)
tree23bdf306aa7eb96a252815208e45edfc011abeb8 /js/src/index.ts
parenteb69cc39439597db54f1af29617d1a109cba5a6f (diff)
downloadopencode-b75456f5ddc4fe5823f5014573923c5fb76625dd.tar.gz
opencode-b75456f5ddc4fe5823f5014573923c5fb76625dd.zip
Clean up code formatting and remove unused imports for better consistency
🤖 Generated with opencode Co-Authored-By: opencode <[email protected]>
Diffstat (limited to 'js/src/index.ts')
-rw-r--r--js/src/index.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/js/src/index.ts b/js/src/index.ts
index ab00d522b..67f6393c2 100644
--- a/js/src/index.ts
+++ b/js/src/index.ts
@@ -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
- : ""
+ : "",
);
}
}