mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-22 02:04:22 +01:00
sync
This commit is contained in:
13
js/src/index.ts
Normal file
13
js/src/index.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { App } from "./app";
|
||||
import process from "node:process";
|
||||
import { RPC } from "./server/server";
|
||||
import { Session } from "./session/session";
|
||||
|
||||
const app = await App.create({
|
||||
directory: process.cwd(),
|
||||
});
|
||||
|
||||
App.provide(app, async () => {
|
||||
const session = await Session.create();
|
||||
const rpc = RPC.listen();
|
||||
});
|
||||
Reference in New Issue
Block a user