@codex-native/sdk 0.0.2 → 0.0.5
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 +5 -3
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +5 -3
- package/dist/cli.mjs.map +1 -1
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- 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 +12 -10
package/dist/index.mjs
CHANGED
|
@@ -1118,8 +1118,10 @@ 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
|
-
|
|
1121
|
+
const { client, close } = await createOpencode({ hostname, port, config: this.options.config });
|
|
1122
|
+
if (close) {
|
|
1123
|
+
this.closeCallback = close;
|
|
1124
|
+
}
|
|
1123
1125
|
return client;
|
|
1124
1126
|
});
|
|
1125
1127
|
return this.clientPromise;
|