@codex-native/sdk 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/codex_native.darwin-arm64.node +0 -0
- package/dist/cli.cjs +13 -13
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +13 -13
- package/dist/cli.mjs.map +1 -1
- package/dist/index.cjs +2 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -4
- package/dist/index.mjs.map +1 -1
- package/npm/darwin-arm64/codex_native.darwin-arm64.node +0 -0
- package/npm/darwin-arm64/package.json +1 -1
- package/npm/darwin-x64/package.json +1 -1
- package/npm/linux-arm64-gnu/package.json +1 -1
- package/npm/linux-arm64-musl/package.json +1 -1
- package/npm/linux-x64-gnu/package.json +1 -1
- package/npm/linux-x64-musl/package.json +1 -1
- package/npm/win32-arm64-msvc/package.json +1 -1
- package/npm/win32-x64-msvc/package.json +1 -1
- package/package.json +14 -14
package/dist/index.mjs
CHANGED
|
@@ -1118,10 +1118,8 @@ var OpenCodeAgent = class {
|
|
|
1118
1118
|
this.clientPromise = loadOpencodeModule().then(async ({ createOpencode }) => {
|
|
1119
1119
|
const hostname = this.options.hostname ?? DEFAULT_HOSTNAME;
|
|
1120
1120
|
const port = await findAvailablePort(hostname, this.options.port ?? DEFAULT_PORT);
|
|
1121
|
-
const { client,
|
|
1122
|
-
|
|
1123
|
-
this.closeCallback = close;
|
|
1124
|
-
}
|
|
1121
|
+
const { client, server } = await createOpencode({ hostname, port, config: this.options.config });
|
|
1122
|
+
this.closeCallback = () => server.close();
|
|
1125
1123
|
return client;
|
|
1126
1124
|
});
|
|
1127
1125
|
return this.clientPromise;
|