tool-server-template 0.80.0
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/.env.example +14 -0
- package/LICENSE +13 -0
- package/README.md +611 -0
- package/TESTING.md +480 -0
- package/api/index.js +31 -0
- package/lib/build-site.d.ts +2 -0
- package/lib/build-site.d.ts.map +1 -0
- package/lib/build-site.js +42 -0
- package/lib/build-site.js.map +1 -0
- package/lib/copy-assets.d.ts +8 -0
- package/lib/copy-assets.d.ts.map +1 -0
- package/lib/copy-assets.js +62 -0
- package/lib/copy-assets.js.map +1 -0
- package/lib/interactions/index.d.ts +2 -0
- package/lib/interactions/index.d.ts.map +1 -0
- package/lib/interactions/index.js +10 -0
- package/lib/interactions/index.js.map +1 -0
- package/lib/interactions/summarize/icon.svg.d.ts +3 -0
- package/lib/interactions/summarize/icon.svg.d.ts.map +1 -0
- package/lib/interactions/summarize/icon.svg.js +10 -0
- package/lib/interactions/summarize/icon.svg.js.map +1 -0
- package/lib/interactions/summarize/index.d.ts +3 -0
- package/lib/interactions/summarize/index.d.ts.map +1 -0
- package/lib/interactions/summarize/index.js +14 -0
- package/lib/interactions/summarize/index.js.map +1 -0
- package/lib/interactions/summarize/text_summarizer/index.d.ts +53 -0
- package/lib/interactions/summarize/text_summarizer/index.d.ts.map +1 -0
- package/lib/interactions/summarize/text_summarizer/index.js +56 -0
- package/lib/interactions/summarize/text_summarizer/index.js.map +1 -0
- package/lib/interactions/summarize/text_summarizer/prompt.jst +31 -0
- package/lib/interactions/summarize/text_summarizer/prompt.jst.js +4 -0
- package/lib/interactions/summarize/text_summarizer/prompt.jst.js.map +1 -0
- package/lib/server-node.d.ts +2 -0
- package/lib/server-node.d.ts.map +1 -0
- package/lib/server-node.js +14 -0
- package/lib/server-node.js.map +1 -0
- package/lib/server.d.ts +3 -0
- package/lib/server.d.ts.map +1 -0
- package/lib/server.js +17 -0
- package/lib/server.js.map +1 -0
- package/lib/skills/code-review/SKILL.md +59 -0
- package/lib/skills/index.d.ts +4 -0
- package/lib/skills/index.d.ts.map +1 -0
- package/lib/skills/index.js +14 -0
- package/lib/skills/index.js.map +1 -0
- package/lib/tools/calculator/calculator.d.ts +23 -0
- package/lib/tools/calculator/calculator.d.ts.map +1 -0
- package/lib/tools/calculator/calculator.js +42 -0
- package/lib/tools/calculator/calculator.js.map +1 -0
- package/lib/tools/calculator/icon.svg.d.ts +3 -0
- package/lib/tools/calculator/icon.svg.d.ts.map +1 -0
- package/lib/tools/calculator/icon.svg.js +10 -0
- package/lib/tools/calculator/icon.svg.js.map +1 -0
- package/lib/tools/calculator/index.d.ts +3 -0
- package/lib/tools/calculator/index.d.ts.map +1 -0
- package/lib/tools/calculator/index.js +14 -0
- package/lib/tools/calculator/index.js.map +1 -0
- package/lib/tools/calculator/manifest.d.ts +16 -0
- package/lib/tools/calculator/manifest.d.ts.map +1 -0
- package/lib/tools/calculator/manifest.js +17 -0
- package/lib/tools/calculator/manifest.js.map +1 -0
- package/lib/tools/index.d.ts +2 -0
- package/lib/tools/index.d.ts.map +1 -0
- package/lib/tools/index.js +8 -0
- package/lib/tools/index.js.map +1 -0
- package/package.json +51 -0
- package/public/.gitkeep +1 -0
- package/rollup.config.bundle.js +60 -0
- package/rollup.config.js +99 -0
- package/src/build-site.ts +77 -0
- package/src/copy-assets.ts +104 -0
- package/src/interactions/index.ts +7 -0
- package/src/interactions/summarize/icon.svg.ts +7 -0
- package/src/interactions/summarize/index.ts +11 -0
- package/src/interactions/summarize/text_summarizer/index.ts +53 -0
- package/src/interactions/summarize/text_summarizer/prompt.jst +31 -0
- package/src/raw-imports.d.ts +4 -0
- package/src/server-node.ts +24 -0
- package/src/server.ts +22 -0
- package/src/skills/code-review/SKILL.md +59 -0
- package/src/skills/index.ts +12 -0
- package/src/tools/calculator/calculator.ts +60 -0
- package/src/tools/calculator/icon.svg.ts +7 -0
- package/src/tools/calculator/index.ts +11 -0
- package/src/tools/calculator/manifest.ts +16 -0
- package/src/tools/index.ts +5 -0
- package/template.config.json +27 -0
- package/tsconfig.json +25 -0
- package/vercel.json +29 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "1.0",
|
|
3
|
+
"description": "A template for building custom tool servers with tools, skills, and interactions",
|
|
4
|
+
"prompts": [
|
|
5
|
+
{
|
|
6
|
+
"type": "text",
|
|
7
|
+
"name": "PROJECT_NAME",
|
|
8
|
+
"message": "Project name",
|
|
9
|
+
"initial": "my-tool-server"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "text",
|
|
13
|
+
"name": "PROJECT_DESCRIPTION",
|
|
14
|
+
"message": "Project description",
|
|
15
|
+
"initial": "A custom tool server with tools, skills, and interactions"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"derived": {
|
|
19
|
+
"SERVER_TITLE": {
|
|
20
|
+
"from": "PROJECT_NAME",
|
|
21
|
+
"transform": "titleCase"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"removeAfterInstall": [
|
|
25
|
+
"template.config.json"
|
|
26
|
+
]
|
|
27
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"module": "ES2022",
|
|
5
|
+
"lib": ["ES2022"],
|
|
6
|
+
"moduleResolution": "bundler",
|
|
7
|
+
"resolveJsonModule": true,
|
|
8
|
+
"allowJs": true,
|
|
9
|
+
"checkJs": false,
|
|
10
|
+
"outDir": "./lib",
|
|
11
|
+
"rootDir": "./src",
|
|
12
|
+
"removeComments": true,
|
|
13
|
+
"sourceMap": true,
|
|
14
|
+
"declaration": true,
|
|
15
|
+
"declarationMap": true,
|
|
16
|
+
"esModuleInterop": true,
|
|
17
|
+
"forceConsistentCasingInFileNames": true,
|
|
18
|
+
"strict": true,
|
|
19
|
+
"skipLibCheck": true,
|
|
20
|
+
"allowSyntheticDefaultImports": true,
|
|
21
|
+
"types": ["node"]
|
|
22
|
+
},
|
|
23
|
+
"include": ["src/**/*"],
|
|
24
|
+
"exclude": ["node_modules", "lib", "dist"]
|
|
25
|
+
}
|
package/vercel.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"buildCommand": "npm run build",
|
|
3
|
+
"outputDirectory": "dist",
|
|
4
|
+
"rewrites": [
|
|
5
|
+
{
|
|
6
|
+
"source": "/api/(.*)",
|
|
7
|
+
"destination": "/api"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"headers": [
|
|
11
|
+
{
|
|
12
|
+
"source": "/api/(.*)",
|
|
13
|
+
"headers": [
|
|
14
|
+
{
|
|
15
|
+
"key": "Access-Control-Allow-Origin",
|
|
16
|
+
"value": "*"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"key": "Access-Control-Allow-Methods",
|
|
20
|
+
"value": "GET, POST, PUT, DELETE, OPTIONS"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"key": "Access-Control-Allow-Headers",
|
|
24
|
+
"value": "Content-Type, Authorization"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|