summaryrefslogtreecommitdiffhomepage
path: root/js/src
diff options
context:
space:
mode:
authorFrank <[email protected]>2025-05-26 18:54:11 -0400
committerFrank <[email protected]>2025-05-26 18:54:11 -0400
commitc203891b84b3fd4d520b8c1bfd6d8eb8e2b180fe (patch)
tree0446b01d1c0b6d296954e041e693450305c54c92 /js/src
parent591bd2a4e3ae8eea9629d0c2b6caf725ef993645 (diff)
downloadopencode-c203891b84b3fd4d520b8c1bfd6d8eb8e2b180fe.tar.gz
opencode-c203891b84b3fd4d520b8c1bfd6d8eb8e2b180fe.zip
Share: sync
Diffstat (limited to 'js/src')
-rw-r--r--js/src/index.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/src/index.ts b/js/src/index.ts
index 45890a52a..ab00d522b 100644
--- a/js/src/index.ts
+++ b/js/src/index.ts
@@ -24,11 +24,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)
);
});
@@ -41,7 +41,7 @@ cli
const session = await Session.create();
const shareID = await Session.share(session.id);
if (shareID)
- console.log("Share ID: https://dev.opencode.ai/share/" + shareID);
+ console.log("Share ID: https://dev.opencode.ai/share?id=" + session.id);
const result = await Session.chat(session.id, {
type: "text",
text: message.join(" "),
@@ -58,7 +58,7 @@ cli
part.toolInvocation.args,
part.toolInvocation.state === "result"
? part.toolInvocation.result
- : "",
+ : ""
);
}
}