@openserv-labs/sdk 2.4.0 → 2.4.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.
@@ -1 +1 @@
1
- {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAA;AAUjD,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EAChB,uBAAuB,EACvB,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,4BAA4B,EAC5B,sBAAsB,EACtB,aAAa,EACb,sBAAsB,EACtB,qBAAqB,EACrB,yBAAyB,EACzB,gBAAgB,EAEhB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAOlB,YAAY,EACZ,kBAAkB,EAClB,8BAA8B,EAC/B,MAAM,SAAS,CAAA;AAEhB,OAAO,KAAK,EACV,0BAA0B,EAE1B,cAAc,EACf,MAAM,mCAAmC,CAAA;AAI1C,OAAO,MAAM,MAAM,QAAQ,CAAA;AAC3B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAGL,KAAK,eAAe,EAEpB,SAAS,EACV,MAAM,OAAO,CAAA;AA4Cd,wEAAwE;AACxE,KAAK,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,UAAU,IACvC;IAAE,WAAW,EAAE,CAAC,CAAC;IAAC,MAAM,CAAC,EAAE,KAAK,CAAA;CAAE,GAClC;IAAE,MAAM,EAAE,CAAC,CAAC;IAAC,WAAW,CAAC,EAAE,KAAK,CAAA;CAAE,CAAA;AAEtC,iFAAi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,OAAO,CAAC,WAAW;IAOnB;;;;;;;;;;;;;OAaG;IACG,eAAe,CAAC,WAAW,EAAE,sBAAsB;IASzD;;;;;;;;OAQG;IACH,OAAO,CAAC,yBAAyB;CAsClC"}
package/dist/agent.js CHANGED
@@ -13,10 +13,23 @@ const helmet_1 = __importDefault(require("helmet"));
13
13
  const hpp_1 = __importDefault(require("hpp"));
14
14
  const logger_1 = require("./logger");
15
15
  const http_errors_1 = require("http-errors");
16
- const zod_to_json_schema_1 = require("zod-to-json-schema");
17
- const json_schema_to_zod_1 = require("@n8n/json-schema-to-zod");
18
16
  const openai_1 = __importDefault(require("openai"));
19
17
  const zod_1 = require("zod");
18
+ const zod_to_json_schema_1 = require("zod-to-json-schema");
19
+ const json_schema_to_zod_1 = require("@n8n/json-schema-to-zod");
20
+ // Zod v4 has native toJSONSchema/fromJSONSchema. For v3 we use third-party libs.
21
+ function zodToJsonSchema(schema, opts) {
22
+ if (typeof zod_1.z.toJSONSchema === 'function') {
23
+ return zod_1.z.toJSONSchema(schema);
24
+ }
25
+ return (0, zod_to_json_schema_1.zodToJsonSchema)(schema, opts);
26
+ }
27
+ function jsonSchemaToZodSchema(jsonSchema) {
28
+ if (typeof zod_1.z.fromJSONSchema === 'function') {
29
+ return zod_1.z.fromJSONSchema(jsonSchema);
30
+ }
31
+ return (0, json_schema_to_zod_1.jsonSchemaToZod)(jsonSchema);
32
+ }
20
33
  const capability_1 = require("./capability");
21
34
  const mcp_1 = require("./mcp");
22
35
  const PLATFORM_URL = process.env.OPENSERV_API_URL || 'https://api.openserv.ai';
@@ -162,7 +175,7 @@ class Agent {
162
175
  function: {
163
176
  name: tool.name,
164
177
  description: tool.description,
165
- parameters: (0, zod_to_json_schema_1.zodToJsonSchema)(tool.inputSchema)
178
+ parameters: zodToJsonSchema(tool.inputSchema)
166
179
  }
167
180
  }));
168
181
  }
@@ -520,7 +533,7 @@ class Agent {
520
533
  const response = await this.runtimeClient.post('/generate', {
521
534
  prompt: params.prompt,
522
535
  ...(params.messages ? { messages: params.messages } : {}),
523
- ...(params.outputSchema ? { outputSchema: (0, zod_to_json_schema_1.zodToJsonSchema)(params.outputSchema) } : {}),
536
+ ...(params.outputSchema ? { outputSchema: zodToJsonSchema(params.outputSchema) } : {}),
524
537
  action: params.action
525
538
  });
526
539
  if (params.outputSchema) {
@@ -606,7 +619,7 @@ class Agent {
606
619
  type: 'json_schema',
607
620
  json_schema: {
608
621
  name: tool.name,
609
- schema: (0, zod_to_json_schema_1.zodToJsonSchema)(tool.outputSchema),
622
+ schema: zodToJsonSchema(tool.outputSchema),
610
623
  strict: true
611
624
  }
612
625
  }
@@ -1003,7 +1016,7 @@ class Agent {
1003
1016
  this.addCapability({
1004
1017
  name: capabilityName,
1005
1018
  description: tool.description || `Tool from MCP server ${serverId}`,
1006
- inputSchema: (0, json_schema_to_zod_1.jsonSchemaToZod)(inputSchema),
1019
+ inputSchema: jsonSchemaToZodSchema(inputSchema),
1007
1020
  async run({ args }) {
1008
1021
  const mcpClient = this.mcpClients[serverId];
1009
1022
  if (!mcpClient) {
@@ -1032,14 +1045,14 @@ function convertProxyToolToJsonSchema(tool) {
1032
1045
  return {
1033
1046
  name: tool.name,
1034
1047
  description: tool.description,
1035
- schema: (0, zod_to_json_schema_1.zodToJsonSchema)(tool.inputSchema)
1048
+ schema: zodToJsonSchema(tool.inputSchema)
1036
1049
  };
1037
1050
  }
1038
1051
  function convertRuntimeToolToJsonSchema(tool) {
1039
1052
  return {
1040
1053
  name: tool.name,
1041
1054
  description: tool.description,
1042
- schema: (0, zod_to_json_schema_1.zodToJsonSchema)(tool.inputSchema),
1043
- ...(tool.outputSchema ? { outputSchema: (0, zod_to_json_schema_1.zodToJsonSchema)(tool.outputSchema) } : {})
1055
+ schema: zodToJsonSchema(tool.inputSchema),
1056
+ ...(tool.outputSchema ? { outputSchema: zodToJsonSchema(tool.outputSchema) } : {})
1044
1057
  };
1045
1058
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openserv-labs/sdk",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "OpenServ Agent SDK - Create AI agents easily",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -44,7 +44,6 @@
44
44
  "dependencies": {
45
45
  "@asteasolutions/zod-to-openapi": "^7.3.0",
46
46
  "@modelcontextprotocol/sdk": "^1.10.2",
47
- "@n8n/json-schema-to-zod": "^1.1.0",
48
47
  "axios": "^1.6.8",
49
48
  "axios-retry": "^4.1.0",
50
49
  "bcryptjs": "^3.0.2",
@@ -57,8 +56,8 @@
57
56
  "pino": "^9.6.0",
58
57
  "pino-pretty": "^13.1.3",
59
58
  "ws": "^8.18.0",
60
- "zod": "^3.22.4",
61
- "zod-to-json-schema": "^3.22.4"
59
+ "zod-to-json-schema": "^3.25.0",
60
+ "@n8n/json-schema-to-zod": "^1.1.0"
62
61
  },
63
62
  "devDependencies": {
64
63
  "@tsconfig/strictest": "^2.0.3",
@@ -92,6 +91,7 @@
92
91
  "node": ">=18.0.0"
93
92
  },
94
93
  "peerDependencies": {
95
- "openai": "^5.0.1"
94
+ "openai": "^5.0.1",
95
+ "zod": "^3.22.4 || ^4.0.0"
96
96
  }
97
97
  }
@@ -1,6 +0,0 @@
1
- export declare const arcs: {
2
- id: number;
3
- name: string;
4
- arc: string[];
5
- }[];
6
- //# sourceMappingURL=arcs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"arcs.d.ts","sourceRoot":"","sources":["../../src/dreamkid/arcs.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;;GAoPhB,CAAA"}
@@ -1,248 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.arcs = void 0;
4
- exports.arcs = [
5
- {
6
- "id": 1,
7
- "name": "Journey of Courage",
8
- "arc": [
9
- "Introduction of the child hero in their ordinary world",
10
- "Child feels a call to adventure, but initially refuses it",
11
- "Encounter with a supportive mentor who provides guidance and encouragement",
12
- "Child accepts the call to adventure, stepping into the unknown",
13
- "Child faces tests and challenges, making new friends and encountering enemies",
14
- "Child reaches the inmost cave - the moment of deepest fear and doubt",
15
- "Child experiences a moment of transformation and healing",
16
- "Child faces the final challenge, applying what they have learned",
17
- "Child emerges victorious, with newfound strength and resilience",
18
- "Child returns to their ordinary world, transformed and ready to help others"
19
- ]
20
- },
21
- {
22
- "id": 2,
23
- "name": "Journey of Resilience",
24
- "arc": [
25
- "Introduce the child hero in their normal world",
26
- "Unexpected event triggers a sense of fear and uncertainty in the child",
27
- "Encounter with a wise mentor who shares valuable lessons",
28
- "The child decides to confront their fear",
29
- "The child encounters obstacles and finds helpers along the way",
30
- "The child's resilience is tested at their lowest point",
31
- "A moment of healing and transformation occurs",
32
- "With renewed strength, the child overcomes their biggest challenge",
33
- "Child hero returns to their world, stronger and braver than before"
34
- ]
35
- },
36
- {
37
- "id": 3,
38
- "name": "Journey of Hope",
39
- "arc": [
40
- "Introduction of the child protagonist in their familiar world",
41
- "Child receives a call to adventure, hesitant at first",
42
- "Meeting a mentor who provides wisdom and motivation",
43
- "Child sets off on the adventure with a glimmer of hope",
44
- "Child encounters trials, setbacks and finds unexpected allies",
45
- "Child confronts the most challenging part of the journey",
46
- "Experience of healing, enlightenment, and transformation",
47
- "Child musters strength and courage to overcome the final challenge",
48
- "Child returns to their normal world, instilling hope in others"
49
- ]
50
- },
51
- {
52
- "id": 4,
53
- "name": "Journey of Transformation",
54
- "arc": [
55
- "Introduce the child hero in their comfortable world",
56
- "Child faces a disturbing event that shakes their comfort",
57
- "Child meets a mentor who provides strength and guidance",
58
- "Child decides to face their challenges head on",
59
- "Child experiences various tests, meets allies and enemies",
60
- "Child faces their deepest fear and uncertainty",
61
- "Child gains new insights, healing, and starts transforming",
62
- "Child takes on the final test, using their newfound wisdom",
63
- "Child emerges as a transformed individual, inspiring others"
64
- ]
65
- },
66
- {
67
- "id": 5,
68
- "name": "Journey of Strength",
69
- "arc": [
70
- "Introduction of the child hero in their everyday life",
71
- "Child experiences a life-changing event that brings fear and doubt",
72
- "Child meets a mentor who encourages them to be strong",
73
- "Child decides to take a leap of faith and face their fear",
74
- "Child goes through various trials and tribulations, meeting allies",
75
- "Child faces their greatest fear, a moment of extreme doubt",
76
- "Child experiences healing and realizes their inner strength",
77
- "Child faces the final test, showcasing their newfound strength",
78
- "Child comes back to their world as a symbol of strength"
79
- ]
80
- },
81
- {
82
- "id": 6,
83
- "name": "Epic Adventure of Bravery",
84
- "arc": [
85
- "Child hero introduced in their ordinary world",
86
- "Child experiences a startling event that triggers a sense of fear",
87
- "Child initially refuses to confront the fear",
88
- "Child encounters a mentor who offers guidance and wisdom",
89
- "Inspired by the mentor, child decides to face the fear",
90
- "Child embarks on an adventure, meeting new friends along the way",
91
- "Child encounters various obstacles that test their courage",
92
- "Child experiences a crushing setback leading to a moment of doubt",
93
- "Mentor encourages child and reveals an inspiring truth",
94
- "Child gains a new understanding and begins a healing journey",
95
- "Child faces the greatest challenge, applying newfound courage",
96
- "Child defeats the challenge, realizing their true potential",
97
- "Child returns home, transformed, and shares the story of their bravery"
98
- ]
99
- },
100
- {
101
- "id": 7,
102
- "name": "Epic Quest of Endurance",
103
- "arc": [
104
- "Introduce the child protagonist in their daily life",
105
- "An unexpected event occurs that instills fear in the child",
106
- "Child hesitates to confront their fear",
107
- "Child meets a wise mentor who shares encouraging words",
108
- "Motivated by the mentor, child decides to face the fear",
109
- "Child embarks on an epic quest, making unexpected allies",
110
- "Child faces a series of trials testing their endurance",
111
- "Child experiences a huge setback leading to self-doubt",
112
- "Mentor provides uplifting advice and reveals an empowering truth",
113
- "Child begins a healing process and gains a renewed perspective",
114
- "Child confronts the ultimate challenge with newfound endurance",
115
- "Child overcomes the challenge, discovering their inner strength",
116
- "Child returns home, now stronger and shares their inspiring journey"
117
- ]
118
- },
119
- {
120
- "id": 8,
121
- "name": "Epic Journey of Resilience",
122
- "arc": [
123
- "Child hero is introduced in their comfortable world",
124
- "A life-changing event occurs that scares the child",
125
- "Child initially refuses to face the event",
126
- "Child encounters a supportive mentor who provides strength",
127
- "Inspired, child decides to overcome their fear",
128
- "Child sets off on a journey, meeting new friends",
129
- "Child faces a series of challenges that test their resilience",
130
- "Child undergoes a major setback that leads to despair",
131
- "Mentor gives the child courage and shares a transformative truth",
132
- "Child gains a new understanding and begins healing",
133
- "Child confronts the biggest challenge with newfound resilience",
134
- "Child triumphs over the challenge, realizing their true potential",
135
- "Child returns to their world, transformed, inspiring others with their resilience"
136
- ]
137
- },
138
- {
139
- "id": 9,
140
- "name": "Epic Odyssey of Perseverance",
141
- "arc": [
142
- "Introduction of the child protagonist in their everyday life",
143
- "A dramatic event occurs that instills fear and doubt in the child",
144
- "Child is hesitant to confront their fear",
145
- "Child meets a mentor who offers wisdom and encouragement",
146
- "Motivated by the mentor, child decides to face their fear",
147
- "Child embarks on an odyssey, encountering new allies",
148
- "Child faces numerous trials that test their perseverance",
149
- "Child experiences a major setback leading to deep self-doubt",
150
- "Mentor provides comfort and reveals a life-changing truth",
151
- "Child gains new insights and begins a transformative healing journey",
152
- "Child faces the ultimate challenge with newfound perseverance",
153
- "Child conquers the challenge, discovering their inner power",
154
- "Child returns to their world, forever changed by their journey",
155
- "Child shares their story, inspiring others with their perseverance and strength"
156
- ]
157
- },
158
- {
159
- "id": 10,
160
- "name": "Expedition of Enlightenment",
161
- "arc": [
162
- "Introduction of the child protagonist in their familiar world",
163
- "Unexpected event incites fear and triggers a need for change",
164
- "Child meets a mentor who provides wisdom and courage",
165
- "Child reluctantly embarks on an expedition of growth and learning",
166
- "Child encounters a series of challenges, learning new skills along the way",
167
- "Setbacks occur, testing the child's resolve and willpower",
168
- "Through hardship, child gains a deeper understanding of their journey",
169
- "Child applies newfound knowledge and skills in a series of tests",
170
- "A transformative healing experience leads to a breakthrough",
171
- "Child faces the final challenge, using their new knowledge",
172
- "Child overcomes the challenge, enlightened and transformed",
173
- "Child returns to their world, inspiring others with their journey"
174
- ]
175
- },
176
- {
177
- "id": 11,
178
- "name": "Quest for Knowledge",
179
- "arc": [
180
- "Child hero introduced in their ordinary world",
181
- "A life-altering event occurs, sparking fear and the need for change",
182
- "Child encounters a mentor who offers wisdom and guidance",
183
- "Child reluctantly decides to undertake a quest for knowledge",
184
- "Child navigates a series of obstacles, learning important lessons",
185
- "Child faces a major setback that tests their will and determination",
186
- "Through the hardship, child gains a greater understanding of their journey",
187
- "Child leverages new skills and knowledge to overcome challenges",
188
- "A transformative healing moment provides clarity and growth",
189
- "Child confronts the final challenge with their newfound wisdom",
190
- "Child successfully overcomes the challenge, transformed and enlightened",
191
- "Child returns home, sharing their newfound wisdom with their community"
192
- ]
193
- },
194
- {
195
- "id": 12,
196
- "name": "Adventure of Discovery",
197
- "arc": [
198
- "Introduction of the child protagonist in their everyday life",
199
- "An unexpected event incites fear and the need for adaptation",
200
- "Child meets a mentor who provides wisdom and inspires courage",
201
- "Child embarks on an adventure, eager to learn and grow",
202
- "Child faces a series of trials, learning from each experience",
203
- "A major setback tests the child's resolve and determination",
204
- "Through adversity, child gains a deeper understanding of their journey",
205
- "Child applies new skills and insights to overcome subsequent challenges",
206
- "A transformative healing event facilitates growth and understanding",
207
- "Child confronts the ultimate challenge using their newfound knowledge",
208
- "Child triumphs over the challenge, emerging wiser and stronger",
209
- "Child returns to their world, sharing their story of discovery and growth"
210
- ]
211
- },
212
- {
213
- "id": 13,
214
- "name": "Voyage of Wisdom",
215
- "arc": [
216
- "Introduction of the child hero in their familiar world",
217
- "An unexpected event sparks fear and a need for change",
218
- "Child meets a mentor who imparts wisdom and encouragement",
219
- "Child embarks on a voyage to learn and adapt",
220
- "Child navigates through trials, learning from each encounter",
221
- "A major setback tests the child's will and determination",
222
- "Through adversity, the child gains a greater understanding of their journey",
223
- "Child applies new wisdom and skills to overcome subsequent challenges",
224
- "A transformative healing moment leads to a significant breakthrough",
225
- "Child confronts the final challenge using their newfound wisdom",
226
- "Child triumphs over the challenge, emerging more enlightened and resilient",
227
- "Child returns to their world, sharing their wisdom and inspiring others"
228
- ]
229
- },
230
- {
231
- "id": 14,
232
- "name": "Journey of Learning",
233
- "arc": [
234
- "Introduction of the child protagonist in their ordinary world",
235
- "Unexpected event triggers fear and the need for change",
236
- "Child encounters a mentor who provides wisdom and courage",
237
- "Child undertakes a journey to learn and grow",
238
- "Child faces a series of challenges, gaining knowledge from each one",
239
- "A significant setback tests the child's resolve and determination",
240
- "Through trials, child gains a deeper understanding of their journey",
241
- "Child leverages newfound knowledge to overcome subsequent challenges",
242
- "A transformative healing event leads to personal growth and clarity",
243
- "Child faces the ultimate challenge using their newfound knowledge",
244
- "Child overcomes the challenge, enlightened and transformed",
245
- "Child returns home, sharing their story of learning and growth"
246
- ]
247
- }
248
- ];
@@ -1,3 +0,0 @@
1
- declare const elevenlabs: any;
2
- export default elevenlabs;
3
- //# sourceMappingURL=elevenlabs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"elevenlabs.d.ts","sourceRoot":"","sources":["../../src/dreamkid/elevenlabs.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,UAAU,KAEd,CAAC;AAEH,eAAe,UAAU,CAAC"}
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const elevenlabs_js_1 = require("@elevenlabs/elevenlabs-js");
4
- const elevenlabs = new elevenlabs_js_1.ElevenLabsClient({
5
- apiKey: process.env.ELEVENLABS_API_KEY,
6
- });
7
- exports.default = elevenlabs;
@@ -1,2 +0,0 @@
1
- import 'dotenv/config';
2
- //# sourceMappingURL=main.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/dreamkid/main.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAA"}