@mondaydotcomorg/atp-server 0.19.13 → 0.19.14
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/callback/index.d.ts +2 -2
- package/dist/callback/index.d.ts.map +1 -1
- package/dist/callback/index.js +2 -0
- package/dist/callback/index.js.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/callback/index.ts +4 -2
- package/src/core/request-scope.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mondaydotcomorg/atp-server",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.14",
|
|
4
4
|
"description": "Server implementation for Agent Tool Protocol",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@babel/parser": "^7.26.0",
|
|
50
50
|
"@babel/traverse": "^7.26.0",
|
|
51
51
|
"@babel/types": "^7.26.0",
|
|
52
|
-
"@mondaydotcomorg/atp-compiler": "0.19.
|
|
52
|
+
"@mondaydotcomorg/atp-compiler": "0.19.13",
|
|
53
53
|
"@mondaydotcomorg/atp-protocol": "0.19.11",
|
|
54
54
|
"@mondaydotcomorg/atp-provenance": "0.19.10",
|
|
55
55
|
"@mondaydotcomorg/atp-providers": "0.19.11",
|
package/src/callback/index.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { log } from '@mondaydotcomorg/atp-runtime';
|
|
|
9
9
|
/**
|
|
10
10
|
* Callback request types
|
|
11
11
|
*/
|
|
12
|
-
export type CallbackType = 'llm' | 'approval' | 'embedding';
|
|
12
|
+
export type CallbackType = 'llm' | 'approval' | 'embedding' | 'tool';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Callback request payload
|
|
@@ -95,7 +95,7 @@ export class ClientCallbackManager {
|
|
|
95
95
|
* @param serviceType - Type of service
|
|
96
96
|
* @returns Whether client provides this service
|
|
97
97
|
*/
|
|
98
|
-
hasClientService(clientId: string, serviceType:
|
|
98
|
+
hasClientService(clientId: string, serviceType: CallbackType): boolean {
|
|
99
99
|
const client = this.clients.get(clientId);
|
|
100
100
|
if (!client) return false;
|
|
101
101
|
|
|
@@ -106,6 +106,8 @@ export class ClientCallbackManager {
|
|
|
106
106
|
return client.services.hasApproval;
|
|
107
107
|
case 'embedding':
|
|
108
108
|
return client.services.hasEmbedding;
|
|
109
|
+
case 'tool':
|
|
110
|
+
return client.services.hasTools;
|
|
109
111
|
default:
|
|
110
112
|
return false;
|
|
111
113
|
}
|