@toolplex/client 0.1.8 → 0.1.9

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.
@@ -56,7 +56,6 @@ export async function handleCallTool(params) {
56
56
  latency_ms: Date.now() - startTime,
57
57
  });
58
58
  return {
59
- role: "system",
60
59
  content: content,
61
60
  };
62
61
  }
@@ -75,7 +74,7 @@ export async function handleCallTool(params) {
75
74
  latency_ms: Date.now() - startTime,
76
75
  });
77
76
  return {
78
- role: "system",
77
+ isError: true,
79
78
  content: [
80
79
  {
81
80
  type: "text",
@@ -34,7 +34,6 @@ export async function handleGetServerConfig(params) {
34
34
  latency_ms: Date.now() - startTime,
35
35
  });
36
36
  return {
37
- role: "system",
38
37
  content: [
39
38
  {
40
39
  type: "text",
@@ -61,7 +60,7 @@ export async function handleGetServerConfig(params) {
61
60
  latency_ms: Date.now() - startTime,
62
61
  });
63
62
  return {
64
- role: "system",
63
+ isError: true,
65
64
  content: [
66
65
  {
67
66
  type: "text",
@@ -51,7 +51,6 @@ export async function handleInitialize(params) {
51
51
  await logger.debug("Building initialization response");
52
52
  // Safe to use prompts after init.
53
53
  const result = {
54
- role: "system",
55
54
  content: [
56
55
  {
57
56
  type: "text",
@@ -176,7 +176,6 @@ export async function handleInstallServer(params) {
176
176
  });
177
177
  }
178
178
  return {
179
- role: "system",
180
179
  content,
181
180
  };
182
181
  }
@@ -209,7 +208,7 @@ export async function handleInstallServer(params) {
209
208
  });
210
209
  }
211
210
  return {
212
- role: "system",
211
+ isError: true,
213
212
  content,
214
213
  };
215
214
  }
@@ -46,7 +46,6 @@ export async function handleListServers() {
46
46
  // Build response content
47
47
  if (allServers.length === 0) {
48
48
  return {
49
- role: "system",
50
49
  content: [
51
50
  {
52
51
  type: "text",
@@ -56,7 +55,6 @@ export async function handleListServers() {
56
55
  };
57
56
  }
58
57
  return {
59
- role: "system",
60
58
  content: [
61
59
  {
62
60
  type: "text",
@@ -83,7 +81,7 @@ export async function handleListServers() {
83
81
  latency_ms: Date.now() - startTime,
84
82
  });
85
83
  return {
86
- role: "system",
84
+ isError: true,
87
85
  content: [
88
86
  {
89
87
  type: "text",
@@ -110,7 +110,6 @@ export async function handleListTools(params) {
110
110
  latency_ms: Date.now() - startTime,
111
111
  });
112
112
  return {
113
- role: "system",
114
113
  content,
115
114
  };
116
115
  }
@@ -128,7 +127,7 @@ export async function handleListTools(params) {
128
127
  latency_ms: Date.now() - startTime,
129
128
  });
130
129
  return {
131
- role: "system",
130
+ isError: true,
132
131
  content: [
133
132
  {
134
133
  type: "text",
@@ -29,7 +29,6 @@ export async function handleLogPlaybookUsage(params) {
29
29
  latency_ms: Date.now() - startTime,
30
30
  });
31
31
  return {
32
- role: "system",
33
32
  content: [
34
33
  {
35
34
  type: "text",
@@ -51,7 +50,7 @@ export async function handleLogPlaybookUsage(params) {
51
50
  latency_ms: Date.now() - startTime,
52
51
  });
53
52
  return {
54
- role: "system",
53
+ isError: true,
55
54
  content: [
56
55
  {
57
56
  type: "text",
@@ -46,7 +46,7 @@ export async function handleLookupEntityTool(params) {
46
46
  latency_ms: Date.now() - startTime,
47
47
  });
48
48
  return {
49
- role: "system",
49
+ isError: true,
50
50
  content: [
51
51
  {
52
52
  type: "text",
@@ -92,7 +92,6 @@ export async function handleLookupEntityTool(params) {
92
92
  });
93
93
  }
94
94
  return {
95
- role: "system",
96
95
  content,
97
96
  };
98
97
  }
@@ -109,7 +108,7 @@ export async function handleLookupEntityTool(params) {
109
108
  latency_ms: Date.now() - startTime,
110
109
  });
111
110
  return {
112
- role: "system",
111
+ isError: true,
113
112
  content: [
114
113
  {
115
114
  type: "text",
@@ -33,7 +33,6 @@ export async function handleSavePlaybook(params) {
33
33
  latency_ms: Date.now() - startTime,
34
34
  });
35
35
  return {
36
- role: "system",
37
36
  content: [
38
37
  {
39
38
  type: "text",
@@ -53,7 +52,7 @@ export async function handleSavePlaybook(params) {
53
52
  latency_ms: Date.now() - startTime,
54
53
  });
55
54
  return {
56
- role: "system",
55
+ isError: true,
57
56
  content: [
58
57
  {
59
58
  type: "text",
@@ -55,7 +55,6 @@ export async function handleSearchTool(params) {
55
55
  if (totalResults === 0) {
56
56
  await logger.info("No search results found");
57
57
  return {
58
- role: "system",
59
58
  content: [
60
59
  {
61
60
  type: "text",
@@ -91,7 +90,6 @@ export async function handleSearchTool(params) {
91
90
  ];
92
91
  await logger.info("Search completed successfully");
93
92
  return {
94
- role: "system",
95
93
  content,
96
94
  };
97
95
  }
@@ -110,7 +108,7 @@ export async function handleSearchTool(params) {
110
108
  latency_ms: Date.now() - startTime,
111
109
  });
112
110
  return {
113
- role: "system",
111
+ isError: true,
114
112
  content: [
115
113
  {
116
114
  type: "text",
@@ -34,7 +34,6 @@ export async function handleSubmitFeedback(params) {
34
34
  latency_ms: Date.now() - startTime,
35
35
  });
36
36
  return {
37
- role: "system",
38
37
  content: [
39
38
  {
40
39
  type: "text",
@@ -58,7 +57,7 @@ export async function handleSubmitFeedback(params) {
58
57
  latency_ms: Date.now() - startTime,
59
58
  });
60
59
  return {
61
- role: "system",
60
+ isError: true,
62
61
  content: [
63
62
  {
64
63
  type: "text",
@@ -41,7 +41,6 @@ export async function handleUninstallServer(params) {
41
41
  latency_ms: Date.now() - startTime,
42
42
  });
43
43
  return {
44
- role: "system",
45
44
  content: [
46
45
  {
47
46
  type: "text",
@@ -67,7 +66,7 @@ export async function handleUninstallServer(params) {
67
66
  latency_ms: Date.now() - startTime,
68
67
  });
69
68
  return {
70
- role: "system",
69
+ isError: true,
71
70
  content: [
72
71
  {
73
72
  type: "text",
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "0.1.8";
1
+ export declare const version = "0.1.9";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = '0.1.8';
1
+ export const version = '0.1.9';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toolplex/client",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "author": "ToolPlex LLC",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "description": "The official ToolPlex client for AI agent tool discovery and execution",