extrait 0.2.0 → 0.3.1
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/README.md +3 -1
- package/dist/index.cjs +733 -39
- package/dist/index.js +733 -39
- package/dist/mcp.d.ts +2 -0
- package/dist/types.d.ts +1 -0
- package/package.json +3 -2
package/dist/mcp.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export interface CreateMCPClientOptions {
|
|
|
26
26
|
id: string;
|
|
27
27
|
transport: MCPTransportConfig;
|
|
28
28
|
clientInfo?: MCPClientInfo;
|
|
29
|
+
toolCallTimeoutMs?: number;
|
|
29
30
|
}
|
|
30
31
|
export interface ManagedMCPToolClient extends MCPToolClient {
|
|
31
32
|
sdkClient: Client;
|
|
@@ -36,5 +37,6 @@ export interface WrapMCPClientOptions {
|
|
|
36
37
|
id: string;
|
|
37
38
|
client: Client;
|
|
38
39
|
transport?: Transport;
|
|
40
|
+
toolCallTimeoutMs?: number;
|
|
39
41
|
}
|
|
40
42
|
export declare function wrapMCPClient(options: WrapMCPClientOptions): ManagedMCPToolClient;
|
package/dist/types.d.ts
CHANGED
|
@@ -130,6 +130,7 @@ export interface LLMRequest {
|
|
|
130
130
|
maxToolRounds?: number;
|
|
131
131
|
onToolExecution?: (execution: LLMToolExecution) => void;
|
|
132
132
|
transformToolOutput?: LLMToolOutputTransformer;
|
|
133
|
+
unknownToolError?: (toolName: string) => string;
|
|
133
134
|
toolDebug?: boolean | LLMToolDebugOptions;
|
|
134
135
|
body?: Record<string, unknown>;
|
|
135
136
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "extrait",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
"lint": "bunx tsc -p tsconfig.lint.json",
|
|
36
36
|
"prepublishOnly": "bun run lint && bun run build && bun run build:types",
|
|
37
37
|
"test": "bun test tests/ --reporter=dots --only-failures",
|
|
38
|
-
"typecheck": "bunx tsc --noEmit"
|
|
38
|
+
"typecheck": "bunx tsc --noEmit",
|
|
39
|
+
"pack": "bun run build && npm pack"
|
|
39
40
|
},
|
|
40
41
|
"dependencies": {
|
|
41
42
|
"@modelcontextprotocol/sdk": "^1.26.0",
|