@utcp/http 1.0.2 → 1.0.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/dist/http_call_template.d.ts +3 -3
- package/dist/http_call_template.js +2 -2
- package/dist/http_communication_protocol.d.ts +4 -4
- package/dist/http_communication_protocol.js +1 -1
- package/dist/index.js +3 -3
- package/dist/openapi_converter.d.ts +2 -2
- package/dist/openapi_converter.js +2 -2
- package/dist/sse_call_template.d.ts +2 -2
- package/dist/sse_call_template.js +2 -2
- package/dist/sse_communication_protocol.d.ts +4 -4
- package/dist/sse_communication_protocol.js +1 -1
- package/dist/streamable_http_call_template.d.ts +2 -2
- package/dist/streamable_http_call_template.js +2 -2
- package/dist/streamable_http_communication_protocol.d.ts +4 -4
- package/dist/streamable_http_communication_protocol.js +1 -1
- package/package.json +54 -52
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { Auth } from '@utcp/
|
|
3
|
-
import { CallTemplate } from '@utcp/
|
|
4
|
-
import { Serializer } from '@utcp/
|
|
2
|
+
import { Auth } from '@utcp/sdk/data/auth';
|
|
3
|
+
import { CallTemplate } from '@utcp/sdk/data/call_template';
|
|
4
|
+
import { Serializer } from '@utcp/sdk/interfaces/serializer';
|
|
5
5
|
/**
|
|
6
6
|
* REQUIRED
|
|
7
7
|
* Provider configuration for HTTP-based tools.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// packages/http/src/http_call_template.ts
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { AuthSchema, AuthSerializer } from '@utcp/
|
|
4
|
-
import { Serializer } from '@utcp/
|
|
3
|
+
import { AuthSchema, AuthSerializer } from '@utcp/sdk/data/auth';
|
|
4
|
+
import { Serializer } from '@utcp/sdk/interfaces/serializer';
|
|
5
5
|
/**
|
|
6
6
|
* HTTP Call Template schema for RESTful HTTP/HTTPS API tools.
|
|
7
7
|
* Extends the base CallTemplate and defines HTTP-specific configuration.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CommunicationProtocol } from '@utcp/
|
|
2
|
-
import { RegisterManualResult } from '@utcp/
|
|
3
|
-
import { CallTemplate } from '@utcp/
|
|
4
|
-
import { IUtcpClient } from '@utcp/
|
|
1
|
+
import { CommunicationProtocol } from '@utcp/sdk/interfaces/communication_protocol';
|
|
2
|
+
import { RegisterManualResult } from '@utcp/sdk/data/register_manual_result';
|
|
3
|
+
import { CallTemplate } from '@utcp/sdk/data/call_template';
|
|
4
|
+
import { IUtcpClient } from '@utcp/sdk/interfaces/utcp_client_interface';
|
|
5
5
|
/**
|
|
6
6
|
* HTTP communication protocol implementation for UTCP client.
|
|
7
7
|
*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import axios from 'axios';
|
|
3
3
|
import * as yaml from 'js-yaml';
|
|
4
4
|
import { URLSearchParams } from 'url';
|
|
5
|
-
import { UtcpManualSchema } from '@utcp/
|
|
5
|
+
import { UtcpManualSchema } from '@utcp/sdk/data/utcp_manual';
|
|
6
6
|
import { HttpCallTemplateSchema } from '@utcp/http/http_call_template';
|
|
7
7
|
import { OpenApiConverter } from '@utcp/http/openapi_converter';
|
|
8
8
|
/**
|
package/dist/index.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Includes HTTP, Streamable HTTP, and SSE (Server-Sent Events) protocols.
|
|
4
4
|
*/
|
|
5
5
|
// packages/http/src/index.ts
|
|
6
|
-
import { CommunicationProtocol } from '@utcp/
|
|
7
|
-
import { CallTemplateSerializer } from '@utcp/
|
|
8
|
-
import { ensureCorePluginsInitialized } from '@utcp/
|
|
6
|
+
import { CommunicationProtocol } from '@utcp/sdk/interfaces/communication_protocol';
|
|
7
|
+
import { CallTemplateSerializer } from '@utcp/sdk/data/call_template';
|
|
8
|
+
import { ensureCorePluginsInitialized } from '@utcp/sdk/plugins/plugin_loader';
|
|
9
9
|
import { HttpCallTemplateSerializer } from '@utcp/http/http_call_template';
|
|
10
10
|
import { StreamableHttpCallTemplateSerializer } from '@utcp/http/streamable_http_call_template';
|
|
11
11
|
import { SseCallTemplateSerializer } from '@utcp/http/sse_call_template';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UtcpManual } from '@utcp/
|
|
2
|
-
import { Auth } from '@utcp/
|
|
1
|
+
import { UtcpManual } from '@utcp/sdk/data/utcp_manual';
|
|
2
|
+
import { Auth } from '@utcp/sdk/data/auth';
|
|
3
3
|
interface OpenApiConverterOptions {
|
|
4
4
|
specUrl?: string;
|
|
5
5
|
callTemplateName?: string;
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
* defined by OpenAPI specifications, providing a bridge between OpenAPI and UTCP.
|
|
19
19
|
*/
|
|
20
20
|
// packages/http/src/openapi_converter.ts
|
|
21
|
-
import { JsonSchemaSchema } from '@utcp/
|
|
22
|
-
import { UtcpManualSerializer } from '@utcp/
|
|
21
|
+
import { JsonSchemaSchema } from '@utcp/sdk/data/tool';
|
|
22
|
+
import { UtcpManualSerializer } from '@utcp/sdk/data/utcp_manual';
|
|
23
23
|
/**
|
|
24
24
|
* REQUIRED
|
|
25
25
|
* Converts OpenAPI specifications into UTCP tool definitions.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { CallTemplate } from '@utcp/
|
|
3
|
-
import { Serializer } from '@utcp/
|
|
2
|
+
import { CallTemplate } from '@utcp/sdk/data/call_template';
|
|
3
|
+
import { Serializer } from '@utcp/sdk/interfaces/serializer';
|
|
4
4
|
/**
|
|
5
5
|
* REQUIRED
|
|
6
6
|
* Provider configuration for Server-Sent Events (SSE) tools.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// packages/http/src/sse_call_template.ts
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { AuthSchema } from '@utcp/
|
|
4
|
-
import { Serializer } from '@utcp/
|
|
3
|
+
import { AuthSchema } from '@utcp/sdk/data/auth';
|
|
4
|
+
import { Serializer } from '@utcp/sdk/interfaces/serializer';
|
|
5
5
|
/**
|
|
6
6
|
* SSE Call Template schema.
|
|
7
7
|
*/
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Handles Server-Sent Events based tool providers with streaming capabilities.
|
|
5
5
|
*/
|
|
6
|
-
import { CommunicationProtocol } from '@utcp/
|
|
7
|
-
import { RegisterManualResult } from '@utcp/
|
|
8
|
-
import { CallTemplate } from '@utcp/
|
|
9
|
-
import { IUtcpClient } from '@utcp/
|
|
6
|
+
import { CommunicationProtocol } from '@utcp/sdk/interfaces/communication_protocol';
|
|
7
|
+
import { RegisterManualResult } from '@utcp/sdk/data/register_manual_result';
|
|
8
|
+
import { CallTemplate } from '@utcp/sdk/data/call_template';
|
|
9
|
+
import { IUtcpClient } from '@utcp/sdk/interfaces/utcp_client_interface';
|
|
10
10
|
/**
|
|
11
11
|
* REQUIRED
|
|
12
12
|
* SSE communication protocol implementation for UTCP client.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { CallTemplate } from '@utcp/
|
|
3
|
-
import { Serializer } from '@utcp/
|
|
2
|
+
import { CallTemplate } from '@utcp/sdk/data/call_template';
|
|
3
|
+
import { Serializer } from '@utcp/sdk/interfaces/serializer';
|
|
4
4
|
/**
|
|
5
5
|
* REQUIRED
|
|
6
6
|
* Provider configuration for HTTP streaming tools.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// packages/http/src/streamable_http_call_template.ts
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { AuthSchema } from '@utcp/
|
|
4
|
-
import { Serializer } from '@utcp/
|
|
3
|
+
import { AuthSchema } from '@utcp/sdk/data/auth';
|
|
4
|
+
import { Serializer } from '@utcp/sdk/interfaces/serializer';
|
|
5
5
|
/**
|
|
6
6
|
* Streamable HTTP Call Template schema.
|
|
7
7
|
*/
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Handles HTTP streaming with chunked transfer encoding for real-time data.
|
|
5
5
|
*/
|
|
6
|
-
import { CommunicationProtocol } from '@utcp/
|
|
7
|
-
import { RegisterManualResult } from '@utcp/
|
|
8
|
-
import { CallTemplate } from '@utcp/
|
|
9
|
-
import { IUtcpClient } from '@utcp/
|
|
6
|
+
import { CommunicationProtocol } from '@utcp/sdk/interfaces/communication_protocol';
|
|
7
|
+
import { RegisterManualResult } from '@utcp/sdk/data/register_manual_result';
|
|
8
|
+
import { CallTemplate } from '@utcp/sdk/data/call_template';
|
|
9
|
+
import { IUtcpClient } from '@utcp/sdk/interfaces/utcp_client_interface';
|
|
10
10
|
/**
|
|
11
11
|
* REQUIRED
|
|
12
12
|
* Streamable HTTP communication protocol implementation for UTCP client.
|
package/package.json
CHANGED
|
@@ -1,52 +1,54 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@utcp/http",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "HTTP utilities for UTCP",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"type": "module",
|
|
8
|
-
"license": "MPL-2.0",
|
|
9
|
-
"author": "UTCP Contributors",
|
|
10
|
-
"repository": {
|
|
11
|
-
"type": "git",
|
|
12
|
-
"url": "https://github.com/universal-tool-calling-protocol/typescript-utcp.git",
|
|
13
|
-
"directory": "packages/http"
|
|
14
|
-
},
|
|
15
|
-
"keywords": [
|
|
16
|
-
"utcp",
|
|
17
|
-
"universal-tool-calling-protocol",
|
|
18
|
-
"tools",
|
|
19
|
-
"api",
|
|
20
|
-
"typescript",
|
|
21
|
-
"tool calling",
|
|
22
|
-
"http",
|
|
23
|
-
"agent",
|
|
24
|
-
"ai",
|
|
25
|
-
"llm"
|
|
26
|
-
],
|
|
27
|
-
"publishConfig": {
|
|
28
|
-
"access": "public"
|
|
29
|
-
},
|
|
30
|
-
"scripts": {
|
|
31
|
-
"build": "tsc"
|
|
32
|
-
},
|
|
33
|
-
"files": [
|
|
34
|
-
"dist"
|
|
35
|
-
],
|
|
36
|
-
"exports": {
|
|
37
|
-
".": {
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@utcp/http",
|
|
3
|
+
"version": "1.0.3",
|
|
4
|
+
"description": "HTTP utilities for UTCP",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"license": "MPL-2.0",
|
|
9
|
+
"author": "UTCP Contributors",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/universal-tool-calling-protocol/typescript-utcp.git",
|
|
13
|
+
"directory": "packages/http"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"utcp",
|
|
17
|
+
"universal-tool-calling-protocol",
|
|
18
|
+
"tools",
|
|
19
|
+
"api",
|
|
20
|
+
"typescript",
|
|
21
|
+
"tool calling",
|
|
22
|
+
"http",
|
|
23
|
+
"agent",
|
|
24
|
+
"ai",
|
|
25
|
+
"llm"
|
|
26
|
+
],
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "tsc"
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"dist"
|
|
35
|
+
],
|
|
36
|
+
"exports": {
|
|
37
|
+
".": {
|
|
38
|
+
"types": "./dist/index.d.ts",
|
|
39
|
+
"import": "./dist/index.js",
|
|
40
|
+
"require": "./dist/index.js",
|
|
41
|
+
"default": "./dist/index.js"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@utcp/sdk": "^1.0.3",
|
|
46
|
+
"axios": "^1.11.0",
|
|
47
|
+
"js-yaml": "^4.1.0"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"bun-types": "latest",
|
|
51
|
+
"typescript": "^5.0.0",
|
|
52
|
+
"@types/bun": "latest"
|
|
53
|
+
}
|
|
54
|
+
}
|