@frontmcp/utils 1.11.1 → 1.11.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.
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * Usable from both React hooks and Node.js backends.
6
6
  */
7
- import type { CallToolFn, OpenAIToolCallItem, OpenAIToolResponse, ClaudeToolUseBlock, ClaudeToolResultBlock, VercelToolCallInfo } from './llm-tool-handler.types';
7
+ import type { CallToolFn, ClaudeToolResultBlock, ClaudeToolUseBlock, OpenAIToolCallItem, OpenAIToolResponse, VercelToolCallInfo } from './llm-tool-handler.types';
8
8
  export declare function processPlatformToolCalls(platform: 'openai', calls: OpenAIToolCallItem[], callTool: CallToolFn): Promise<OpenAIToolResponse[]>;
9
9
  export declare function processPlatformToolCalls(platform: 'claude', calls: ClaudeToolUseBlock[], callTool: CallToolFn): Promise<ClaudeToolResultBlock[]>;
10
10
  export declare function processPlatformToolCalls(platform: 'vercel-ai', calls: VercelToolCallInfo, callTool: CallToolFn): Promise<unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontmcp/utils",
3
- "version": "1.11.1",
3
+ "version": "1.11.3",
4
4
  "description": "Shared helpers for FrontMCP: URI templates, naming, cross-platform crypto and PKCE, key-value storage, file system and environment detection",
5
5
  "author": "AgentFront <info@agentfront.dev>",
6
6
  "license": "Apache-2.0",
@@ -28,12 +28,12 @@
28
28
  "node": ">=24.0.0"
29
29
  },
30
30
  "dependencies": {
31
- "@enclave-vm/ast": "^2.17.0",
31
+ "@enclave-vm/ast": "^2.18.0",
32
32
  "@noble/ciphers": "^2.1.1",
33
33
  "@noble/hashes": "^2.0.1"
34
34
  },
35
35
  "peerDependencies": {
36
- "@frontmcp/lazy-zod": "1.11.1",
36
+ "@frontmcp/lazy-zod": "1.11.3",
37
37
  "@upstash/redis": "^1.34.0",
38
38
  "@vercel/kv": "^2.0.0 || ^3.0.0",
39
39
  "ioredis": "^5.0.0"
@@ -18,8 +18,8 @@
18
18
  * await adapter.disconnect();
19
19
  * ```
20
20
  */
21
- import { BaseStorageAdapter } from './base';
22
21
  import type { SetOptions } from '../types';
22
+ import { BaseStorageAdapter } from './base';
23
23
  /**
24
24
  * Options for FileSystemStorageAdapter.
25
25
  */
@@ -7,8 +7,8 @@
7
7
  * Suitable for key persistence in browser environments where
8
8
  * larger storage capacity is needed.
9
9
  */
10
- import { BaseStorageAdapter } from './base';
11
10
  import type { SetOptions } from '../types';
11
+ import { BaseStorageAdapter } from './base';
12
12
  /**
13
13
  * Options for the IndexedDB adapter.
14
14
  */
@@ -7,8 +7,8 @@
7
7
  * Supports optional AES-256-GCM at-rest encryption when an encryption key
8
8
  * is provided, preventing clear-text storage of sensitive values.
9
9
  */
10
+ import type { MessageHandler, SetOptions, Unsubscribe } from '../types';
10
11
  import { BaseStorageAdapter } from './base';
11
- import type { SetOptions, MessageHandler, Unsubscribe } from '../types';
12
12
  /**
13
13
  * Options for the LocalStorage adapter.
14
14
  */
@@ -30,8 +30,8 @@
30
30
  * const secret = await secrets.get('user:123');
31
31
  * ```
32
32
  */
33
- import type { StorageAdapter, NamespacedStorage, SetOptions } from './types';
34
- import type { EncryptedTypedStorageOptions, EncryptedSetEntry, EncryptionKey } from './encrypted-typed-storage.types';
33
+ import type { EncryptedSetEntry, EncryptedTypedStorageOptions, EncryptionKey } from './encrypted-typed-storage.types';
34
+ import type { NamespacedStorage, SetOptions, StorageAdapter } from './types';
35
35
  /**
36
36
  * EncryptedTypedStorage provides transparent encryption/decryption
37
37
  * on top of StorageAdapter.
@@ -20,8 +20,8 @@
20
20
  * const user = await users.get('user:1');
21
21
  * ```
22
22
  */
23
- import type { StorageAdapter, NamespacedStorage, SetOptions } from './types';
24
- import type { TypedStorageOptions, TypedSetEntry } from './typed-storage.types';
23
+ import type { TypedSetEntry, TypedStorageOptions } from './typed-storage.types';
24
+ import type { NamespacedStorage, SetOptions, StorageAdapter } from './types';
25
25
  /**
26
26
  * TypedStorage provides type-safe JSON serialization on top of StorageAdapter.
27
27
  *