@illuma-ai/agents 1.1.7 → 1.1.8

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.
@@ -2,7 +2,7 @@ import type { StructuredToolInterface } from '@langchain/core/tools';
2
2
  import type { RunnableToolLike } from '@langchain/core/runnables';
3
3
  import type { ToolCall } from '@langchain/core/messages/tool';
4
4
  import type { ToolErrorData } from './stream';
5
- import { EnvVar } from '@/common';
5
+ import { EnvVar, type ExecutionContext } from '@/common';
6
6
  /** Replacement type for `import type { ToolCall } from '@langchain/core/messages/tool'` in order to have stringified args typed */
7
7
  export type CustomToolCall = {
8
8
  name: string;
@@ -182,10 +182,9 @@ export type ProgrammaticCache = {
182
182
  * - 'interactive': User is present in the chat, approval prompts are shown.
183
183
  * - 'scheduled': Automated/scheduled execution, approval is auto-granted.
184
184
  *
185
- * Re-exported from approval/constants for convenience.
186
- * @see ExecutionContext enum in approval/constants.ts
185
+ * @see ExecutionContext enum in common/index.ts → tools/approval/constants.ts
186
+ * Note: ExecutionContext is exported from common/index.ts, not re-exported here to avoid TS2308.
187
187
  */
188
- export type ExecutionContext = `${import('../tools/approval/constants').ExecutionContext}`;
189
188
  /**
190
189
  * Policy for when a tool requires human approval.
191
190
  * - 'always': Always require approval (default for interactive context).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@illuma-ai/agents",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "main": "./dist/cjs/main.cjs",
5
5
  "module": "./dist/esm/main.mjs",
6
6
  "types": "./dist/types/index.d.ts",
@@ -3,7 +3,7 @@ import type { StructuredToolInterface } from '@langchain/core/tools';
3
3
  import type { RunnableToolLike } from '@langchain/core/runnables';
4
4
  import type { ToolCall } from '@langchain/core/messages/tool';
5
5
  import type { ToolErrorData } from './stream';
6
- import { EnvVar } from '@/common';
6
+ import { EnvVar, type ExecutionContext } from '@/common';
7
7
 
8
8
  /** Replacement type for `import type { ToolCall } from '@langchain/core/messages/tool'` in order to have stringified args typed */
9
9
  export type CustomToolCall = {
@@ -218,11 +218,9 @@ export type ProgrammaticCache = { toolMap: ToolMap; toolDefs: LCTool[] };
218
218
  * - 'interactive': User is present in the chat, approval prompts are shown.
219
219
  * - 'scheduled': Automated/scheduled execution, approval is auto-granted.
220
220
  *
221
- * Re-exported from approval/constants for convenience.
222
- * @see ExecutionContext enum in approval/constants.ts
221
+ * @see ExecutionContext enum in common/index.ts → tools/approval/constants.ts
222
+ * Note: ExecutionContext is exported from common/index.ts, not re-exported here to avoid TS2308.
223
223
  */
224
- export type ExecutionContext =
225
- `${import('../tools/approval/constants').ExecutionContext}`;
226
224
 
227
225
  /**
228
226
  * Policy for when a tool requires human approval.