tool-server-template 0.80.0 → 0.81.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.
@@ -0,0 +1,10 @@
1
+ export declare function getSkillInfo(skillName: string): {
2
+ name: string;
3
+ title: string | undefined;
4
+ description: string;
5
+ contentType: "md" | "jst";
6
+ keywords: string[] | undefined;
7
+ instructionsLength: number;
8
+ };
9
+ export declare function renderTemplate(): string;
10
+ //# sourceMappingURL=skill-import-example.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skill-import-example.d.ts","sourceRoot":"","sources":["../../src/examples/skill-import-example.ts"],"names":[],"mappings":"AAgBA,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM;;;;;;;EAgB7C;AAKD,wBAAgB,cAAc,WAG7B"}
@@ -0,0 +1,19 @@
1
+ var CodeReviewSkill = {
2
+ "name": "code-review",
3
+ "title": "Code Review Assistant",
4
+ "description": "Skill for reviewing and analyzing code quality",
5
+ "instructions": "\n# Code Review Assistant\n\nYou are a code review assistant. Your role is to analyze code and provide constructive feedback focusing on:\n\n## Review Areas\n\n1. **Code Quality**\n - Readability and maintainability\n - Naming conventions\n - Code organization and structure\n - DRY (Don't Repeat Yourself) principle\n\n2. **Best Practices**\n - Language-specific idioms and patterns\n - Error handling\n - Edge cases\n - Security considerations\n\n3. **Performance**\n - Algorithmic efficiency\n - Resource usage\n - Potential bottlenecks\n\n4. **Testing**\n - Test coverage\n - Test quality and clarity\n - Missing test cases\n\n## Review Format\n\nStructure your review as follows:\n\n### Strengths\nList what the code does well.\n\n### Issues\nFor each issue found:\n- **Severity**: Critical | Major | Minor\n- **Location**: File and line number\n- **Description**: What the issue is\n- **Recommendation**: How to fix it\n- **Example**: Show improved code if applicable\n\n### Summary\nProvide an overall assessment and priority recommendations.\n\n## Guidelines\n\n- Be constructive and respectful\n- Explain the \"why\" behind suggestions\n- Provide specific, actionable feedback\n- Consider the context and requirements\n- Balance perfection with pragmatism\n",
6
+ "content_type": "md",
7
+ "context_triggers": {
8
+ "keywords": [
9
+ "code",
10
+ "review",
11
+ "quality",
12
+ "best-practices",
13
+ "refactoring"
14
+ ]
15
+ }
16
+ };
17
+
18
+ export { CodeReviewSkill as default };
19
+ //# sourceMappingURL=SKILL.md.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SKILL.md.js","sources":["../../../../src/skills/examples/code-review/SKILL.md"],"sourcesContent":["export default {\n \"name\": \"code-review\",\n \"title\": \"Code Review Assistant\",\n \"description\": \"Skill for reviewing and analyzing code quality\",\n \"instructions\": \"\\n# Code Review Assistant\\n\\nYou are a code review assistant. Your role is to analyze code and provide constructive feedback focusing on:\\n\\n## Review Areas\\n\\n1. **Code Quality**\\n - Readability and maintainability\\n - Naming conventions\\n - Code organization and structure\\n - DRY (Don't Repeat Yourself) principle\\n\\n2. **Best Practices**\\n - Language-specific idioms and patterns\\n - Error handling\\n - Edge cases\\n - Security considerations\\n\\n3. **Performance**\\n - Algorithmic efficiency\\n - Resource usage\\n - Potential bottlenecks\\n\\n4. **Testing**\\n - Test coverage\\n - Test quality and clarity\\n - Missing test cases\\n\\n## Review Format\\n\\nStructure your review as follows:\\n\\n### Strengths\\nList what the code does well.\\n\\n### Issues\\nFor each issue found:\\n- **Severity**: Critical | Major | Minor\\n- **Location**: File and line number\\n- **Description**: What the issue is\\n- **Recommendation**: How to fix it\\n- **Example**: Show improved code if applicable\\n\\n### Summary\\nProvide an overall assessment and priority recommendations.\\n\\n## Guidelines\\n\\n- Be constructive and respectful\\n- Explain the \\\"why\\\" behind suggestions\\n- Provide specific, actionable feedback\\n- Consider the context and requirements\\n- Balance perfection with pragmatism\\n\",\n \"content_type\": \"md\",\n \"context_triggers\": {\n \"keywords\": [\n \"code\",\n \"review\",\n \"quality\",\n \"best-practices\",\n \"refactoring\"\n ]\n }\n};"],"names":[],"mappings":"AAAA,sBAAe;AACf,EAAE,MAAM,EAAE,aAAa;AACvB,EAAE,OAAO,EAAE,uBAAuB;AAClC,EAAE,aAAa,EAAE,gDAAgD;AACjE,EAAE,cAAc,EAAE,gxCAAgxC;AAClyC,EAAE,cAAc,EAAE,IAAI;AACtB,EAAE,kBAAkB,EAAE;AACtB,IAAI,UAAU,EAAE;AAChB,MAAM,MAAM;AACZ,MAAM,QAAQ;AACd,MAAM,SAAS;AACf,MAAM,gBAAgB;AACtB,MAAM;AACN;AACA;AACA,CAAC;;;;"}
@@ -0,0 +1,3 @@
1
+ import { SkillCollection } from "@vertesia/tools-sdk";
2
+ export declare const ExampleSkills: SkillCollection;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/skills/examples/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAKtD,eAAO,MAAM,aAAa,iBAQxB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { SkillCollection } from '@vertesia/tools-sdk';
2
+ import CodeReviewSkill from './code-review/SKILL.md.js';
3
+ import UserSelectSkill from './user-select/SKILL.md.js';
4
+
5
+ const ExampleSkills = new SkillCollection({
6
+ name: "examples",
7
+ title: "Example Skills",
8
+ description: "Example skills demonstrating various functionalities",
9
+ skills: [
10
+ UserSelectSkill,
11
+ CodeReviewSkill
12
+ ]
13
+ });
14
+
15
+ export { ExampleSkills };
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/skills/examples/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAKO,MAAM,aAAa,GAAG,IAAI,eAAe,CAAC;AAC7C,IAAA,IAAI,EAAE,UAAU;AAChB,IAAA,KAAK,EAAE,gBAAgB;AACvB,IAAA,WAAW,EAAE,sDAAsD;AACnE,IAAA,MAAM,EAAE;QACJ,eAAe;QACf;AACH;AACJ,CAAA;;;;"}
@@ -0,0 +1,23 @@
1
+ var UserSelectSkill = {
2
+ "name": "user-select",
3
+ "title": "User Selection",
4
+ "description": "Present users with choices and collect their selections for interactive decision-making",
5
+ "instructions": "\n# User Selection\n\nYou are a user selection generator. Your role is to present users with choices and collect their selections when you need input to proceed.\n\n## Output Format\n\nWhen you need the user to select from options, output a code block with the `user-select` language identifier:\n\n```user-select\n{\n \"options\": [\n {\"text\": \"Option 1 display text\", \"value\": \"option1\"},\n {\"text\": \"Option 2 display text\", \"value\": \"option2\"},\n {\"text\": \"Option 3 display text\", \"value\": \"option3\"}\n ],\n \"multiple\": false\n}\n```\n\n## Field Specifications\n\n- **options** (required): Array of option objects, each containing:\n - **text** (required): The display text shown to the user\n - **value** (required): The value returned when this option is selected\n- **multiple** (optional): Boolean, defaults to false. Set to true to allow multiple selections\n\n## Guidelines\n\n1. **Option Design**\n - Keep option text clear and concise (1-8 words)\n - Use meaningful values that represent the choice\n - Provide 2-10 options for best usability\n - Ensure text and values are unique within the options array\n\n2. **Single vs Multiple Selection**\n - Use single selection (multiple: false or omit) for mutually exclusive choices\n - Use multiple selection (multiple: true) when users can choose several options\n - Single selection is the default behavior\n\n3. **When to Use**\n - When you need user input to determine next steps\n - To let users choose between different approaches or solutions\n - To configure settings or preferences\n - To select from a predefined list of items or actions\n - When binary yes/no is insufficient and you need more nuanced choices\n\n## Examples\n\n### Simple Single Choice\n```user-select\n{\n \"options\": [\n {\"text\": \"Continue with deployment\", \"value\": \"deploy\"},\n {\"text\": \"Review changes first\", \"value\": \"review\"},\n {\"text\": \"Cancel operation\", \"value\": \"cancel\"}\n ]\n}\n```\n\n### Multiple Selection\n```user-select\n{\n \"options\": [\n {\"text\": \"Generate unit tests\", \"value\": \"unit-tests\"},\n {\"text\": \"Generate integration tests\", \"value\": \"integration-tests\"},\n {\"text\": \"Add documentation\", \"value\": \"docs\"},\n {\"text\": \"Update README\", \"value\": \"readme\"}\n ],\n \"multiple\": true\n}\n```\n\n### Environment Selection\n```user-select\n{\n \"options\": [\n {\"text\": \"Development environment\", \"value\": \"dev\"},\n {\"text\": \"Staging environment\", \"value\": \"staging\"},\n {\"text\": \"Production environment\", \"value\": \"prod\"}\n ]\n}\n```\n\n### Feature Selection\n```user-select\n{\n \"options\": [\n {\"text\": \"Dark mode support\", \"value\": \"dark-mode\"},\n {\"text\": \"Offline functionality\", \"value\": \"offline\"},\n {\"text\": \"Push notifications\", \"value\": \"notifications\"},\n {\"text\": \"Analytics integration\", \"value\": \"analytics\"}\n ],\n \"multiple\": true\n}\n```\n\n## Usage Tips\n\n- Always provide clear, descriptive text for each option\n- Use values that make sense programmatically (kebab-case or snake_case recommended)\n- Consider the context when deciding single vs multiple selection\n- After the user makes a selection, acknowledge their choice and proceed accordingly\n- Don't overuse - only present selections when user input is genuinely needed\n",
6
+ "content_type": "md",
7
+ "widgets": [
8
+ "user-select"
9
+ ],
10
+ "context_triggers": {
11
+ "keywords": [
12
+ "select",
13
+ "choose",
14
+ "option",
15
+ "pick",
16
+ "decision",
17
+ "choice"
18
+ ]
19
+ }
20
+ };
21
+
22
+ export { UserSelectSkill as default };
23
+ //# sourceMappingURL=SKILL.md.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SKILL.md.js","sources":["../../../../src/skills/examples/user-select/SKILL.md"],"sourcesContent":["export default {\n \"name\": \"user-select\",\n \"title\": \"User Selection\",\n \"description\": \"Present users with choices and collect their selections for interactive decision-making\",\n \"instructions\": \"\\n# User Selection\\n\\nYou are a user selection generator. Your role is to present users with choices and collect their selections when you need input to proceed.\\n\\n## Output Format\\n\\nWhen you need the user to select from options, output a code block with the `user-select` language identifier:\\n\\n```user-select\\n{\\n \\\"options\\\": [\\n {\\\"text\\\": \\\"Option 1 display text\\\", \\\"value\\\": \\\"option1\\\"},\\n {\\\"text\\\": \\\"Option 2 display text\\\", \\\"value\\\": \\\"option2\\\"},\\n {\\\"text\\\": \\\"Option 3 display text\\\", \\\"value\\\": \\\"option3\\\"}\\n ],\\n \\\"multiple\\\": false\\n}\\n```\\n\\n## Field Specifications\\n\\n- **options** (required): Array of option objects, each containing:\\n - **text** (required): The display text shown to the user\\n - **value** (required): The value returned when this option is selected\\n- **multiple** (optional): Boolean, defaults to false. Set to true to allow multiple selections\\n\\n## Guidelines\\n\\n1. **Option Design**\\n - Keep option text clear and concise (1-8 words)\\n - Use meaningful values that represent the choice\\n - Provide 2-10 options for best usability\\n - Ensure text and values are unique within the options array\\n\\n2. **Single vs Multiple Selection**\\n - Use single selection (multiple: false or omit) for mutually exclusive choices\\n - Use multiple selection (multiple: true) when users can choose several options\\n - Single selection is the default behavior\\n\\n3. **When to Use**\\n - When you need user input to determine next steps\\n - To let users choose between different approaches or solutions\\n - To configure settings or preferences\\n - To select from a predefined list of items or actions\\n - When binary yes/no is insufficient and you need more nuanced choices\\n\\n## Examples\\n\\n### Simple Single Choice\\n```user-select\\n{\\n \\\"options\\\": [\\n {\\\"text\\\": \\\"Continue with deployment\\\", \\\"value\\\": \\\"deploy\\\"},\\n {\\\"text\\\": \\\"Review changes first\\\", \\\"value\\\": \\\"review\\\"},\\n {\\\"text\\\": \\\"Cancel operation\\\", \\\"value\\\": \\\"cancel\\\"}\\n ]\\n}\\n```\\n\\n### Multiple Selection\\n```user-select\\n{\\n \\\"options\\\": [\\n {\\\"text\\\": \\\"Generate unit tests\\\", \\\"value\\\": \\\"unit-tests\\\"},\\n {\\\"text\\\": \\\"Generate integration tests\\\", \\\"value\\\": \\\"integration-tests\\\"},\\n {\\\"text\\\": \\\"Add documentation\\\", \\\"value\\\": \\\"docs\\\"},\\n {\\\"text\\\": \\\"Update README\\\", \\\"value\\\": \\\"readme\\\"}\\n ],\\n \\\"multiple\\\": true\\n}\\n```\\n\\n### Environment Selection\\n```user-select\\n{\\n \\\"options\\\": [\\n {\\\"text\\\": \\\"Development environment\\\", \\\"value\\\": \\\"dev\\\"},\\n {\\\"text\\\": \\\"Staging environment\\\", \\\"value\\\": \\\"staging\\\"},\\n {\\\"text\\\": \\\"Production environment\\\", \\\"value\\\": \\\"prod\\\"}\\n ]\\n}\\n```\\n\\n### Feature Selection\\n```user-select\\n{\\n \\\"options\\\": [\\n {\\\"text\\\": \\\"Dark mode support\\\", \\\"value\\\": \\\"dark-mode\\\"},\\n {\\\"text\\\": \\\"Offline functionality\\\", \\\"value\\\": \\\"offline\\\"},\\n {\\\"text\\\": \\\"Push notifications\\\", \\\"value\\\": \\\"notifications\\\"},\\n {\\\"text\\\": \\\"Analytics integration\\\", \\\"value\\\": \\\"analytics\\\"}\\n ],\\n \\\"multiple\\\": true\\n}\\n```\\n\\n## Usage Tips\\n\\n- Always provide clear, descriptive text for each option\\n- Use values that make sense programmatically (kebab-case or snake_case recommended)\\n- Consider the context when deciding single vs multiple selection\\n- After the user makes a selection, acknowledge their choice and proceed accordingly\\n- Don't overuse - only present selections when user input is genuinely needed\\n\",\n \"content_type\": \"md\",\n \"widgets\": [\n \"user-select\"\n ],\n \"context_triggers\": {\n \"keywords\": [\n \"select\",\n \"choose\",\n \"option\",\n \"pick\",\n \"decision\",\n \"choice\"\n ]\n }\n};"],"names":[],"mappings":"AAAA,sBAAe;AACf,EAAE,MAAM,EAAE,aAAa;AACvB,EAAE,OAAO,EAAE,gBAAgB;AAC3B,EAAE,aAAa,EAAE,yFAAyF;AAC1G,EAAE,cAAc,EAAE,u3GAAu3G;AACz4G,EAAE,cAAc,EAAE,IAAI;AACtB,EAAE,SAAS,EAAE;AACb,IAAI;AACJ,GAAG;AACH,EAAE,kBAAkB,EAAE;AACtB,IAAI,UAAU,EAAE;AAChB,MAAM,QAAQ;AACd,MAAM,QAAQ;AACd,MAAM,QAAQ;AACd,MAAM,MAAM;AACZ,MAAM,UAAU;AAChB,MAAM;AACN;AACA;AACA,CAAC;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tool-server-template",
3
- "version": "0.80.0",
3
+ "version": "0.81.0",
4
4
  "description": "A template for building custom tool servers with tools, skills, and interactions",
5
5
  "type": "module",
6
6
  "main": "lib/server.js",
@@ -33,10 +33,10 @@
33
33
  "@hono/node-server": "^1.19.5",
34
34
  "dotenv": "^17.2.3",
35
35
  "hono": "^4.10.3",
36
- "@llumiverse/common": "0.23.0",
37
- "@vertesia/common": "0.80.0",
38
- "@vertesia/client": "0.80.0",
39
- "@vertesia/tools-sdk": "0.80.0"
36
+ "@llumiverse/common": "0.24.0",
37
+ "@vertesia/common": "0.81.0",
38
+ "@vertesia/tools-sdk": "0.81.0",
39
+ "@vertesia/client": "0.81.0"
40
40
  },
41
41
  "scripts": {
42
42
  "dev": "npm run build && concurrently \"npm run build:watch\" \"npm run start:watch\"",