@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/index.mjs CHANGED
@@ -27,7 +27,7 @@ import {
27
27
  tokenizerCount,
28
28
  tokenizerDecode,
29
29
  tokenizerEncode
30
- } from "./chunk-EQPZ5H3O.mjs";
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 executor = createCodexExecutor(agentTool.name, codexExecute);
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
  }