@hatchet-dev/typescript-sdk 1.22.2 → 1.22.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hatchet-dev/typescript-sdk",
3
- "version": "1.22.2",
3
+ "version": "1.22.3",
4
4
  "description": "Background task orchestration & visibility for developers",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -49,8 +49,11 @@ const OpenAIToolFunc = (runnable) => {
49
49
  // z is imported from 'zod', so '_zod' in z.string() reflects the user's actual installed version.
50
50
  const hasZodV4 = '_zod' in z.string();
51
51
  let hasOpenAIAgents = true;
52
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
53
+ let tool;
52
54
  try {
53
- require.resolve('@openai/agents');
55
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
56
+ ({ tool } = require('@openai/agents'));
54
57
  }
55
58
  catch (_a) {
56
59
  hasOpenAIAgents = false;
@@ -61,8 +64,6 @@ const OpenAIToolFunc = (runnable) => {
61
64
  if (!runnable.definition.inputValidator) {
62
65
  throw new Error('inputValidator must be defined');
63
66
  }
64
- // eslint-disable-next-line @typescript-eslint/no-require-imports
65
- const { tool } = require('@openai/agents');
66
67
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
67
68
  const inputValidatorV4 = runnable.definition.inputValidator;
68
69
  const { description } = runnable.definition;
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const HATCHET_VERSION = "1.22.2";
1
+ export declare const HATCHET_VERSION = "1.22.3";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.HATCHET_VERSION = void 0;
4
- exports.HATCHET_VERSION = '1.22.2';
4
+ exports.HATCHET_VERSION = '1.22.3';