@codex-native/sdk 0.0.13 → 0.0.18
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/dist/{chunk-EQPZ5H3O.mjs → chunk-LFJNLOFF.mjs} +12 -1
- package/dist/chunk-LFJNLOFF.mjs.map +1 -0
- package/dist/cli.cjs +24 -11
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +14 -12
- package/dist/cli.mjs.map +1 -1
- package/dist/index.cjs +13 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +8 -1
- package/dist/index.d.ts +2252 -447
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -11
- package/dist/chunk-EQPZ5H3O.mjs.map +0 -1
- package/dist/codex_native.darwin-arm64.node +0 -0
- package/dist/index.js +0 -626
package/dist/index.mjs
CHANGED
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
tokenizerCount,
|
|
28
28
|
tokenizerDecode,
|
|
29
29
|
tokenizerEncode
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-LFJNLOFF.mjs";
|
|
31
31
|
|
|
32
32
|
// src/agents/toolRegistry.ts
|
|
33
33
|
var executors = /* @__PURE__ */ new Map();
|
|
@@ -879,7 +879,8 @@ import { tool } from "@openai/agents";
|
|
|
879
879
|
function codexTool(options) {
|
|
880
880
|
const { codexExecute, ...delegate } = options;
|
|
881
881
|
const agentTool = tool(delegate);
|
|
882
|
-
const
|
|
882
|
+
const executeFn = codexExecute ?? delegate.execute;
|
|
883
|
+
const executor = createCodexExecutor(agentTool.name, executeFn);
|
|
883
884
|
registerCodexToolExecutor(agentTool.name, executor);
|
|
884
885
|
return agentTool;
|
|
885
886
|
}
|