@vertesia/tools-sdk 1.0.0-dev.20260203.130115Z → 1.0.0-dev.20260225.024852Z
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/lib/cjs/ContentTypesCollection.js +43 -0
- package/lib/cjs/ContentTypesCollection.js.map +1 -0
- package/lib/cjs/InteractionCollection.js +43 -0
- package/lib/cjs/InteractionCollection.js.map +1 -0
- package/lib/cjs/SkillCollection.js +384 -0
- package/lib/cjs/SkillCollection.js.map +1 -0
- package/lib/cjs/ToolCollection.js +221 -0
- package/lib/cjs/ToolCollection.js.map +1 -0
- package/lib/cjs/ToolRegistry.js +95 -0
- package/lib/cjs/ToolRegistry.js.map +1 -0
- package/lib/cjs/auth.js +104 -0
- package/lib/cjs/auth.js.map +1 -0
- package/lib/cjs/build/validate.js +7 -0
- package/lib/cjs/build/validate.js.map +1 -0
- package/lib/cjs/copy-assets.js +84 -0
- package/lib/cjs/copy-assets.js.map +1 -0
- package/lib/cjs/index.js +32 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/package.json +3 -0
- package/lib/cjs/server/app-package.js +130 -0
- package/lib/cjs/server/app-package.js.map +1 -0
- package/lib/cjs/server/content-types.js +73 -0
- package/lib/cjs/server/content-types.js.map +1 -0
- package/lib/cjs/server/interactions.js +89 -0
- package/lib/cjs/server/interactions.js.map +1 -0
- package/lib/cjs/server/mcp.js +45 -0
- package/lib/cjs/server/mcp.js.map +1 -0
- package/lib/cjs/server/site.js +36 -0
- package/lib/cjs/server/site.js.map +1 -0
- package/lib/cjs/server/skills.js +114 -0
- package/lib/cjs/server/skills.js.map +1 -0
- package/lib/cjs/server/tools.js +87 -0
- package/lib/cjs/server/tools.js.map +1 -0
- package/lib/cjs/server/types.js +3 -0
- package/lib/cjs/server/types.js.map +1 -0
- package/lib/cjs/server/widgets.js +27 -0
- package/lib/cjs/server/widgets.js.map +1 -0
- package/lib/cjs/server.js +136 -0
- package/lib/cjs/server.js.map +1 -0
- package/lib/cjs/site/styles.js +692 -0
- package/lib/cjs/site/styles.js.map +1 -0
- package/lib/cjs/site/templates.js +1014 -0
- package/lib/cjs/site/templates.js.map +1 -0
- package/lib/cjs/types.js +3 -0
- package/lib/cjs/types.js.map +1 -0
- package/lib/cjs/utils.js +44 -0
- package/lib/cjs/utils.js.map +1 -0
- package/lib/esm/ContentTypesCollection.js +39 -0
- package/lib/esm/ContentTypesCollection.js.map +1 -0
- package/lib/esm/InteractionCollection.js +39 -0
- package/lib/esm/InteractionCollection.js.map +1 -0
- package/lib/esm/SkillCollection.js +377 -0
- package/lib/esm/SkillCollection.js.map +1 -0
- package/lib/esm/ToolCollection.js +183 -0
- package/lib/esm/ToolCollection.js.map +1 -0
- package/lib/esm/ToolRegistry.js +90 -0
- package/lib/esm/ToolRegistry.js.map +1 -0
- package/lib/esm/auth.js +97 -0
- package/lib/esm/auth.js.map +1 -0
- package/lib/esm/build/validate.js +4 -0
- package/lib/esm/build/validate.js.map +1 -0
- package/lib/esm/copy-assets.js +81 -0
- package/lib/esm/copy-assets.js.map +1 -0
- package/lib/esm/index.js +12 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/server/app-package.js +127 -0
- package/lib/esm/server/app-package.js.map +1 -0
- package/lib/esm/server/content-types.js +70 -0
- package/lib/esm/server/content-types.js.map +1 -0
- package/lib/esm/server/interactions.js +86 -0
- package/lib/esm/server/interactions.js.map +1 -0
- package/lib/esm/server/mcp.js +42 -0
- package/lib/esm/server/mcp.js.map +1 -0
- package/lib/esm/server/site.js +33 -0
- package/lib/esm/server/site.js.map +1 -0
- package/lib/esm/server/skills.js +111 -0
- package/lib/esm/server/skills.js.map +1 -0
- package/lib/esm/server/tools.js +84 -0
- package/lib/esm/server/tools.js.map +1 -0
- package/lib/esm/server/types.js +2 -0
- package/lib/esm/server/types.js.map +1 -0
- package/lib/esm/server/widgets.js +24 -0
- package/lib/esm/server/widgets.js.map +1 -0
- package/lib/esm/server.js +132 -0
- package/lib/esm/server.js.map +1 -0
- package/lib/esm/site/styles.js +689 -0
- package/lib/esm/site/styles.js.map +1 -0
- package/lib/esm/site/templates.js +1001 -0
- package/lib/esm/site/templates.js.map +1 -0
- package/lib/esm/types.js +2 -0
- package/lib/esm/types.js.map +1 -0
- package/lib/esm/utils.js +38 -0
- package/lib/esm/utils.js.map +1 -0
- package/lib/types/ContentTypesCollection.d.ts +18 -0
- package/lib/types/ContentTypesCollection.d.ts.map +1 -0
- package/lib/types/InteractionCollection.d.ts +18 -0
- package/lib/types/InteractionCollection.d.ts.map +1 -0
- package/lib/types/SkillCollection.d.ts +119 -0
- package/lib/types/SkillCollection.d.ts.map +1 -0
- package/lib/types/ToolCollection.d.ts +67 -0
- package/lib/types/ToolCollection.d.ts.map +1 -0
- package/lib/types/ToolRegistry.d.ts +22 -0
- package/lib/types/ToolRegistry.d.ts.map +1 -0
- package/lib/types/auth.d.ts +32 -0
- package/lib/types/auth.d.ts.map +1 -0
- package/lib/types/build/validate.d.ts +2 -0
- package/lib/types/build/validate.d.ts.map +1 -0
- package/lib/types/copy-assets.d.ts +14 -0
- package/lib/types/copy-assets.d.ts.map +1 -0
- package/lib/types/index.d.ts +12 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/server/app-package.d.ts +4 -0
- package/lib/types/server/app-package.d.ts.map +1 -0
- package/lib/types/server/content-types.d.ts +4 -0
- package/lib/types/server/content-types.d.ts.map +1 -0
- package/lib/types/server/interactions.d.ts +4 -0
- package/lib/types/server/interactions.d.ts.map +1 -0
- package/lib/types/server/mcp.d.ts +4 -0
- package/lib/types/server/mcp.d.ts.map +1 -0
- package/lib/types/server/site.d.ts +4 -0
- package/lib/types/server/site.d.ts.map +1 -0
- package/lib/types/server/skills.d.ts +4 -0
- package/lib/types/server/skills.d.ts.map +1 -0
- package/lib/types/server/tools.d.ts +4 -0
- package/lib/types/server/tools.d.ts.map +1 -0
- package/lib/types/server/types.d.ts +88 -0
- package/lib/types/server/types.d.ts.map +1 -0
- package/lib/types/server/widgets.d.ts +4 -0
- package/lib/types/server/widgets.d.ts.map +1 -0
- package/lib/types/server.d.ts +27 -0
- package/lib/types/server.d.ts.map +1 -0
- package/lib/types/site/styles.d.ts +5 -0
- package/lib/types/site/styles.d.ts.map +1 -0
- package/lib/types/site/templates.d.ts +60 -0
- package/lib/types/site/templates.d.ts.map +1 -0
- package/lib/types/types.d.ts +293 -0
- package/lib/types/types.d.ts.map +1 -0
- package/lib/types/utils.d.ts +10 -0
- package/lib/types/utils.d.ts.map +1 -0
- package/package.json +4 -4
- package/src/ContentTypesCollection.ts +8 -8
- package/src/SkillCollection.ts +11 -2
- package/src/ToolCollection.ts +9 -18
- package/src/ToolRegistry.ts +17 -56
- package/src/server/app-package.ts +88 -43
- package/src/server/{conyent-types.ts → content-types.ts} +29 -11
- package/src/server/interactions.ts +11 -6
- package/src/server/tools.ts +3 -22
- package/src/server/types.ts +9 -1
- package/src/server/widgets.ts +2 -6
- package/src/server.ts +1 -1
- package/src/types.ts +34 -1
- package/src/utils.ts +15 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createWidgetsRoute = createWidgetsRoute;
|
|
4
|
+
function createWidgetsRoute(app, basePath, config) {
|
|
5
|
+
const { skills = [] } = config;
|
|
6
|
+
// GET /api/widgets - Returns all widgets from all skill collections
|
|
7
|
+
app.get(basePath, (c) => {
|
|
8
|
+
const url = new URL(c.req.url);
|
|
9
|
+
const widgets = {};
|
|
10
|
+
for (const coll of skills) {
|
|
11
|
+
const collWidgets = coll.getWidgets();
|
|
12
|
+
for (const widget of collWidgets) {
|
|
13
|
+
widgets[widget.name] = {
|
|
14
|
+
collection: coll.name,
|
|
15
|
+
skill: widget.skill,
|
|
16
|
+
url: `${url.origin}/widgets/${widget.name}.js`,
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return c.json({
|
|
21
|
+
title: 'All Widgets',
|
|
22
|
+
description: 'All available widgets across all skill collections',
|
|
23
|
+
widgets,
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=widgets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widgets.js","sourceRoot":"","sources":["../../../src/server/widgets.ts"],"names":[],"mappings":";;AAKA,gDA4BC;AA5BD,SAAgB,kBAAkB,CAAC,GAAS,EAAE,QAAgB,EAAE,MAAwB;IAEpF,MAAM,EAAE,MAAM,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC;IAE/B,oEAAoE;IACpE,GAAG,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;QACpB,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAE/B,MAAM,OAAO,GAAkC,EAAE,CAAC;QAClD,KAAK,MAAM,IAAI,IAAI,MAAM,EAAE,CAAC;YACxB,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;YACtC,KAAK,MAAM,MAAM,IAAI,WAAW,EAAE,CAAC;gBAC/B,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG;oBACnB,UAAU,EAAE,IAAI,CAAC,IAAI;oBACrB,KAAK,EAAE,MAAM,CAAC,KAAK;oBACnB,GAAG,EAAE,GAAG,GAAG,CAAC,MAAM,YAAY,MAAM,CAAC,IAAI,KAAK;iBACjD,CAAA;YACL,CAAC;QACL,CAAC;QAED,OAAO,CAAC,CAAC,IAAI,CAAC;YACV,KAAK,EAAE,aAAa;YACpB,WAAW,EAAE,oDAAoD;YACjE,OAAO;SACV,CAAC,CAAC;IAEP,CAAC,CAAC,CAAC;AAEP,CAAC"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createToolServer = createToolServer;
|
|
4
|
+
exports.createDevServer = createDevServer;
|
|
5
|
+
const hono_1 = require("hono");
|
|
6
|
+
const cors_1 = require("hono/cors");
|
|
7
|
+
const http_exception_1 = require("hono/http-exception");
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
const interactions_js_1 = require("./server/interactions.js");
|
|
10
|
+
const mcp_js_1 = require("./server/mcp.js");
|
|
11
|
+
const site_js_1 = require("./server/site.js");
|
|
12
|
+
const skills_js_1 = require("./server/skills.js");
|
|
13
|
+
const tools_js_1 = require("./server/tools.js");
|
|
14
|
+
const widgets_js_1 = require("./server/widgets.js");
|
|
15
|
+
const app_package_js_1 = require("./server/app-package.js");
|
|
16
|
+
const content_types_js_1 = require("./server/content-types.js");
|
|
17
|
+
// Schema for tool execution payload
|
|
18
|
+
const ToolExecutionPayloadSchema = zod_1.z.object({
|
|
19
|
+
tool_use: zod_1.z.object({
|
|
20
|
+
id: zod_1.z.string(),
|
|
21
|
+
tool_name: zod_1.z.string(),
|
|
22
|
+
tool_input: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).default({}),
|
|
23
|
+
}),
|
|
24
|
+
metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).optional(),
|
|
25
|
+
});
|
|
26
|
+
/**
|
|
27
|
+
* Create a Hono server for tools, interactions, and skills.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```typescript
|
|
31
|
+
* import { createToolServer, ToolCollection, SkillCollection } from "@vertesia/tools-sdk";
|
|
32
|
+
*
|
|
33
|
+
* const server = createToolServer({
|
|
34
|
+
* tools: [myToolCollection],
|
|
35
|
+
* skills: [mySkillCollection],
|
|
36
|
+
* });
|
|
37
|
+
*
|
|
38
|
+
* export default server;
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
function createToolServer(config) {
|
|
42
|
+
const { prefix = '/api', tools = [], interactions = [], skills = [], mcpProviders = [], disableHtml = false, } = config;
|
|
43
|
+
const app = new hono_1.Hono();
|
|
44
|
+
// Add CORS middleware globally
|
|
45
|
+
app.use('*', (0, cors_1.cors)({ origin: '*', allowMethods: ['GET', 'POST', 'OPTIONS'] }));
|
|
46
|
+
// Middleware to parse and validate body, store on context for reuse
|
|
47
|
+
app.use('*', async (c, next) => {
|
|
48
|
+
const ctx = c;
|
|
49
|
+
if (c.req.method === 'POST') {
|
|
50
|
+
try {
|
|
51
|
+
const text = await c.req.text();
|
|
52
|
+
const body = JSON.parse(text);
|
|
53
|
+
const result = ToolExecutionPayloadSchema.safeParse(body);
|
|
54
|
+
if (result.success) {
|
|
55
|
+
ctx.payload = result.data;
|
|
56
|
+
ctx.toolUseId = result.data.tool_use.id;
|
|
57
|
+
ctx.toolName = result.data.tool_use.tool_name;
|
|
58
|
+
}
|
|
59
|
+
// If validation fails, still store raw body for error reporting
|
|
60
|
+
// but don't set payload - handlers will return validation error
|
|
61
|
+
}
|
|
62
|
+
catch {
|
|
63
|
+
// Ignore parsing errors - body might not be JSON
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
await next();
|
|
67
|
+
});
|
|
68
|
+
// HTML pages (unless disabled)
|
|
69
|
+
if (!disableHtml) {
|
|
70
|
+
(0, site_js_1.createSiteRoute)(app, '', config);
|
|
71
|
+
}
|
|
72
|
+
// Add base API route
|
|
73
|
+
app.get(prefix, (c) => {
|
|
74
|
+
// Skills are exposed as tools, so include them in the tools list
|
|
75
|
+
const allToolEndpoints = [
|
|
76
|
+
...tools.map(col => `${prefix}/tools/${col.name}`),
|
|
77
|
+
...skills.map(col => `${prefix}/skills/${col.name}`),
|
|
78
|
+
];
|
|
79
|
+
return c.json({
|
|
80
|
+
message: 'Vertesia Tools API',
|
|
81
|
+
version: '1.0.0',
|
|
82
|
+
endpoints: {
|
|
83
|
+
tools: allToolEndpoints,
|
|
84
|
+
interactions: interactions.map(col => `${prefix}/interactions/${col.name}`),
|
|
85
|
+
mcp: mcpProviders.map(p => `${prefix}/mcp/${p.name}`),
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
(0, app_package_js_1.createPackageRoute)(app, `${prefix}/package`, config);
|
|
90
|
+
(0, tools_js_1.createToolsRoute)(app, `${prefix}/tools`, config);
|
|
91
|
+
(0, skills_js_1.createSkillsRoute)(app, `${prefix}/skills`, config);
|
|
92
|
+
(0, widgets_js_1.createWidgetsRoute)(app, `${prefix}/widgets`, config);
|
|
93
|
+
(0, interactions_js_1.createInteractionsRoute)(app, `${prefix}/interactions`, config);
|
|
94
|
+
(0, content_types_js_1.createContentTypesRoute)(app, `${prefix}/types`, config);
|
|
95
|
+
(0, mcp_js_1.createMcpRoute)(app, `${prefix}/mcp`, config);
|
|
96
|
+
// Global error handler - returns ToolExecutionResponseError format
|
|
97
|
+
app.onError((err, c) => {
|
|
98
|
+
const ctx = c;
|
|
99
|
+
const status = err instanceof http_exception_1.HTTPException ? err.status : 500;
|
|
100
|
+
const errorMessage = err instanceof http_exception_1.HTTPException ? err.message : 'Internal Server Error';
|
|
101
|
+
if (!(err instanceof http_exception_1.HTTPException)) {
|
|
102
|
+
console.error('Uncaught Error:', err);
|
|
103
|
+
}
|
|
104
|
+
return c.json({
|
|
105
|
+
tool_use_id: ctx.toolUseId || 'unknown',
|
|
106
|
+
status,
|
|
107
|
+
error: errorMessage,
|
|
108
|
+
data: ctx.toolName ? { tool_name: ctx.toolName } : undefined,
|
|
109
|
+
}, status);
|
|
110
|
+
});
|
|
111
|
+
// Not found handler - returns ToolExecutionResponseError format
|
|
112
|
+
app.notFound((c) => {
|
|
113
|
+
const ctx = c;
|
|
114
|
+
return c.json({
|
|
115
|
+
tool_use_id: ctx.toolUseId || 'unknown',
|
|
116
|
+
status: 404,
|
|
117
|
+
error: `Not found: ${c.req.method} ${c.req.path}`,
|
|
118
|
+
data: ctx.toolName ? { tool_name: ctx.toolName } : undefined,
|
|
119
|
+
}, 404);
|
|
120
|
+
});
|
|
121
|
+
return app;
|
|
122
|
+
}
|
|
123
|
+
// ================== Server Utilities ==================
|
|
124
|
+
/**
|
|
125
|
+
* Simple development server with static fimesale handling
|
|
126
|
+
*
|
|
127
|
+
* @deprecated Use tools server template
|
|
128
|
+
*/
|
|
129
|
+
function createDevServer(config) {
|
|
130
|
+
const app = createToolServer(config);
|
|
131
|
+
if (config.staticHandler) {
|
|
132
|
+
app.use('*', config.staticHandler);
|
|
133
|
+
}
|
|
134
|
+
return app;
|
|
135
|
+
}
|
|
136
|
+
//# sourceMappingURL=server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../src/server.ts"],"names":[],"mappings":";;AA0CA,4CAoGC;AAWD,0CAUC;AAnKD,+BAAqC;AACrC,oCAAiC;AACjC,wDAAoD;AACpD,6BAAwB;AACxB,8DAAmE;AACnE,4CAAiD;AACjD,8CAAmD;AACnD,kDAAuD;AACvD,gDAAqD;AAGrD,oDAAyD;AACzD,4DAA6D;AAC7D,gEAAoE;AAEpE,oCAAoC;AACpC,MAAM,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC;QACf,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;QACd,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;QACrB,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;KACxD,CAAC;IACF,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CACrD,CAAC,CAAC;AAIH;;;;;;;;;;;;;;GAcG;AACH,SAAgB,gBAAgB,CAAC,MAAwB;IACrD,MAAM,EACF,MAAM,GAAG,MAAM,EACf,KAAK,GAAG,EAAE,EACV,YAAY,GAAG,EAAE,EACjB,MAAM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