@agiflowai/scaffold-mcp 1.0.10 → 1.0.12
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/dist/ListScaffoldingMethodsTool-D3ecmSLf.mjs +994 -0
- package/dist/ListScaffoldingMethodsTool-D7S3xpJE.cjs +1082 -0
- package/dist/cli.cjs +101 -40
- package/dist/cli.mjs +95 -33
- package/dist/index.cjs +7 -11
- package/dist/index.mjs +2 -6
- package/dist/{stdio-AbTm52SJ.mjs → stdio-DqZJsqKM.mjs} +15 -18
- package/dist/{stdio-baUp7xGL.cjs → stdio-ohQyWnxq.cjs} +24 -28
- package/dist/{useScaffoldMethod-CPgJIBHx.mjs → useScaffoldMethod-B-q_yBnX.mjs} +1 -2
- package/dist/{useScaffoldMethod-BMWhFebp.mjs → useScaffoldMethod-CC8ARsl9.mjs} +7 -5
- package/dist/{useScaffoldMethod-CcrpFEPv.cjs → useScaffoldMethod-DqF6pT1A.cjs} +1 -3
- package/dist/{useScaffoldMethod-DOvwnNOJ.cjs → useScaffoldMethod-fzsnprJs.cjs} +10 -9
- package/package.json +5 -5
- package/dist/ListScaffoldingMethodsTool-B49G_iLj.mjs +0 -350
- package/dist/ListScaffoldingMethodsTool-DuYGFDwJ.cjs +0 -376
- package/dist/ScaffoldConfigLoader-8YI7v2GJ.mjs +0 -142
- package/dist/ScaffoldConfigLoader-BWpNpMx-.cjs +0 -150
- package/dist/ScaffoldConfigLoader-DKJtnrWT.mjs +0 -3
- package/dist/ScaffoldConfigLoader-HutEtfaH.cjs +0 -3
- package/dist/ScaffoldService-DSQBnAHm.cjs +0 -308
- package/dist/ScaffoldService-DcsGLMuD.mjs +0 -295
- package/dist/ScaffoldService-DfXjmrNT.cjs +0 -3
- package/dist/ScaffoldService-dL74anIv.mjs +0 -3
- package/dist/TemplateService-7QcWREot.cjs +0 -85
- package/dist/TemplateService-B1bd6iHw.mjs +0 -3
- package/dist/TemplateService-CVDL2uqt.mjs +0 -79
- package/dist/TemplateService-DUbdBOFs.cjs +0 -3
- package/dist/VariableReplacementService-B9RA8D0a.mjs +0 -66
- package/dist/VariableReplacementService-BO-UYgcf.mjs +0 -3
- package/dist/VariableReplacementService-DNYx0Dym.cjs +0 -73
- package/dist/VariableReplacementService-wuYKgeui.cjs +0 -3
- package/dist/chunk-CbDLau6x.cjs +0 -34
package/dist/cli.mjs
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as UseScaffoldMethodTool, c as GenerateFeatureScaffoldTool, f as BoilerplateService, i as WriteToFileTool, l as GenerateBoilerplateTool, n as SseTransportHandler, o as UseBoilerplateTool, r as HttpTransportHandler, s as ListBoilerplatesTool, t as StdioTransportHandler, u as GenerateBoilerplateFileTool } from "./stdio-
|
|
3
|
-
import {
|
|
4
|
-
import "./ScaffoldConfigLoader-8YI7v2GJ.mjs";
|
|
5
|
-
import "./ScaffoldService-DcsGLMuD.mjs";
|
|
6
|
-
import { t as TemplateService } from "./TemplateService-CVDL2uqt.mjs";
|
|
7
|
-
import "./VariableReplacementService-B9RA8D0a.mjs";
|
|
2
|
+
import { a as UseScaffoldMethodTool, c as GenerateFeatureScaffoldTool, f as BoilerplateService, i as WriteToFileTool, l as GenerateBoilerplateTool, n as SseTransportHandler, o as UseBoilerplateTool, r as HttpTransportHandler, s as ListBoilerplatesTool, t as StdioTransportHandler, u as GenerateBoilerplateFileTool } from "./stdio-DqZJsqKM.mjs";
|
|
3
|
+
import { c as FileSystemService, i as TemplateService, n as ScaffoldingMethodsService, t as ListScaffoldingMethodsTool } from "./ListScaffoldingMethodsTool-D3ecmSLf.mjs";
|
|
8
4
|
import path from "node:path";
|
|
9
5
|
import { ProjectConfigResolver, TemplatesManagerService, icons, messages, print, sections } from "@agiflowai/aicode-utils";
|
|
6
|
+
import { z } from "zod";
|
|
10
7
|
import { CallToolRequestSchema, GetPromptRequestSchema, ListPromptsRequestSchema, ListToolsRequestSchema } from "@modelcontextprotocol/sdk/types.js";
|
|
11
8
|
import { Command } from "commander";
|
|
12
9
|
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
@@ -14,7 +11,7 @@ import { CLAUDE_CODE, GEMINI_CLI } from "@agiflowai/coding-agent-bridge";
|
|
|
14
11
|
import { ClaudeCodeAdapter, GeminiCliAdapter, parseHookType } from "@agiflowai/hooks-adapter";
|
|
15
12
|
|
|
16
13
|
//#region package.json
|
|
17
|
-
var version = "1.0.
|
|
14
|
+
var version = "1.0.14";
|
|
18
15
|
|
|
19
16
|
//#endregion
|
|
20
17
|
//#region src/commands/boilerplate.ts
|
|
@@ -161,18 +158,30 @@ var server_default = "Use this MCP server to {% if isMonolith %}create your mono
|
|
|
161
158
|
|
|
162
159
|
//#endregion
|
|
163
160
|
//#region src/instructions/prompts/generate-boilerplate.md?raw
|
|
164
|
-
var generate_boilerplate_default = "You are helping create a new boilerplate template configuration using the scaffold-mcp MCP tools.\n\n{% if request %}User request: {{ request }}\n{% endif %}\nYour task:\n\n1. **Gather Information**: Ask for any missing details:\n - Framework/technology (e.g., \"React Vite\", \"Express API\", \"Next.js 15\")\n - Template name (kebab-case, e.g., \"react-vite\", \"nextjs-15\")\n - Boilerplate name (prefixed with \"scaffold-\", e.g., \"scaffold-vite-app\")\n {% if not isMonolith %}- Target folder (e.g., \"apps\", \"packages\"){% else %}- Target folder (defaults to \".\" for monolith mode){% endif %}\n - Project type (app, library, service, etc.)\n - Required variables (at minimum: appName or packageName)\n - Files to include in the template\n\n2. **Use MCP Tools** in order:\n - `generate-boilerplate` - Creates the boilerplate configuration\n - `generate-boilerplate-file` - Creates each template file\n {% if not isMonolith %}- `list-boilerplates` - Verify it appears{% endif %}\n - `use-boilerplate` - Test the boilerplate\n\nImportant:\n- Template naming: Use kebab-case (e.g., \"react-vite\", \"express-api\")\n- Boilerplate naming: Prefix with \"scaffold-\" (e.g., \"scaffold-vite-app\")\n{% if not isMonolith %}- Target folder: \"apps\" for applications, \"packages\" for libraries{% else %}- Target folder: \".\" for monolith projects (creates files at workspace root){% endif %}\n- Include files explicitly - avoid wildcards\n- Template syntax: use {{ variableName }}\n\n**Description Field Guidelines (CRITICAL)**:\nThe description should be a comprehensive multi-paragraph overview (3-5 sentences):\n- Paragraph 1: Core technology stack and primary value proposition\n- Paragraph 2: Target use cases and ideal project types\n- Paragraph 3: Key integrations or special features (if applicable)\n\nExample:\n\"A modern React SPA template powered by Vite for lightning-fast HMR, featuring TanStack Router for type-safe routing and TanStack Query for server state management.\nPerfect for building data-driven dashboards, admin panels, and interactive web applications requiring client-side routing and real-time data synchronization.\n\nIncludes Agiflow Config Management System integration with systematic environment variable naming (VITE_{CATEGORY}_{SUBCATEGORY}_{PROPERTY}) and auto-generated configuration templates for cloud deployment.\"\n\n**Instruction Field Guidelines (CRITICAL)**:\nThe instruction should be a detailed multi-section guide that helps AI understand the codebase:\n\n1. **File purposes** section: List each major file/directory with its purpose\n Format: \"- path/to/file: Description of what this file does\"\n\n2. **How to use the scaffolded code** section: Step-by-step workflows\n Format: Numbered list with specific examples\n - How to add routes/pages\n - How to fetch data\n - How to handle authentication\n - How to configure environment variables\n\n3. **Design patterns to follow** section: Key architectural decisions\n Format: \"- Pattern Name: Explanation and when to use it\"\n - Routing patterns\n - State management patterns\n - Data fetching patterns\n - Error handling patterns\n - Performance optimization patterns\n\nExample structure:\n\"[Framework] application template with [key technologies].\n\nFile purposes:\n- package.json: NPM package configuration with [framework] and dependencies\n- src/main.tsx: Application entry point with [setup details]\n- src/routes/: Route definitions following [pattern]\n[... list all major files ...]\n\nHow to use the scaffolded code:\n1. Routes: Create new routes by [specific instructions with example]\n2. Data Fetching: Use [specific pattern] for [use case]\n3. Authentication: Use [specific components/modules] for user management\n[... numbered steps for common tasks ...]\n\nDesign patterns to follow:\n- File-based Routing: Use directory structure in src/routes/ to define URL paths\n- Type-safe Routes: Leverage [framework] type inference for params\n- State Management: Use [library] for server state, [library] for client state\n[... list key patterns with explanations ...]\"\n\nTemplate File Content Guidelines:\n- Keep content MINIMAL and business-agnostic\n- Focus on structure and patterns, not business logic\n- Use placeholder/generic examples only\n- Include essential boilerplate code only\n- Let AI fill in specific logic later\n- Add clear headers with design patterns and coding standards\n";
|
|
161
|
+
var generate_boilerplate_default = "{% if promptAsSkill %}---\nname: generate-boilerplate\ndescription: Create a new boilerplate template configuration for scaffolding new projects. Use this skill when the user wants to define a reusable project template (e.g., React app, Express API, Next.js starter) that can be used to bootstrap future projects. This is an admin/developer tool for creating the template definitions themselves, not for using existing templates. It generates scaffold.yaml configuration and template files with Liquid syntax for variable substitution.\n---\n\n{% endif %}You are helping create a new boilerplate template configuration using the scaffold-mcp MCP tools.\n\n{% if request %}User request: {{ request }}\n{% endif %}\nYour task:\n\n1. **Gather Information**: Ask for any missing details:\n - Framework/technology (e.g., \"React Vite\", \"Express API\", \"Next.js 15\")\n - Template name (kebab-case, e.g., \"react-vite\", \"nextjs-15\")\n - Boilerplate name (prefixed with \"scaffold-\", e.g., \"scaffold-vite-app\")\n {% if not isMonolith %}- Target folder (e.g., \"apps\", \"packages\"){% else %}- Target folder (defaults to \".\" for monolith mode){% endif %}\n - Project type (app, library, service, etc.)\n - Required variables (at minimum: appName or packageName)\n - Files to include in the template\n\n2. **Use MCP Tools** in order:\n - `generate-boilerplate` - Creates the boilerplate configuration\n - `generate-boilerplate-file` - Creates each template file\n {% if not isMonolith %}- `list-boilerplates` - Verify it appears{% endif %}\n - `use-boilerplate` - Test the boilerplate\n\nImportant:\n- Template naming: Use kebab-case (e.g., \"react-vite\", \"express-api\")\n- Boilerplate naming: Prefix with \"scaffold-\" (e.g., \"scaffold-vite-app\")\n{% if not isMonolith %}- Target folder: \"apps\" for applications, \"packages\" for libraries{% else %}- Target folder: \".\" for monolith projects (creates files at workspace root){% endif %}\n- Include files explicitly - avoid wildcards\n- Template syntax: use {{ variableName }}\n\n**Description Field Guidelines (CRITICAL)**:\nThe description should be a comprehensive multi-paragraph overview (3-5 sentences):\n- Paragraph 1: Core technology stack and primary value proposition\n- Paragraph 2: Target use cases and ideal project types\n- Paragraph 3: Key integrations or special features (if applicable)\n\nExample:\n\"A modern React SPA template powered by Vite for lightning-fast HMR, featuring TanStack Router for type-safe routing and TanStack Query for server state management.\nPerfect for building data-driven dashboards, admin panels, and interactive web applications requiring client-side routing and real-time data synchronization.\n\nIncludes Agiflow Config Management System integration with systematic environment variable naming (VITE_{CATEGORY}_{SUBCATEGORY}_{PROPERTY}) and auto-generated configuration templates for cloud deployment.\"\n\n**Instruction Field Guidelines (CRITICAL)**:\nThe instruction should be a detailed multi-section guide that helps AI understand the codebase:\n\n1. **File purposes** section: List each major file/directory with its purpose\n Format: \"- path/to/file: Description of what this file does\"\n\n2. **How to use the scaffolded code** section: Step-by-step workflows\n Format: Numbered list with specific examples\n - How to add routes/pages\n - How to fetch data\n - How to handle authentication\n - How to configure environment variables\n\n3. **Design patterns to follow** section: Key architectural decisions\n Format: \"- Pattern Name: Explanation and when to use it\"\n - Routing patterns\n - State management patterns\n - Data fetching patterns\n - Error handling patterns\n - Performance optimization patterns\n\nExample structure:\n\"[Framework] application template with [key technologies].\n\nFile purposes:\n- package.json: NPM package configuration with [framework] and dependencies\n- src/main.tsx: Application entry point with [setup details]\n- src/routes/: Route definitions following [pattern]\n[... list all major files ...]\n\nHow to use the scaffolded code:\n1. Routes: Create new routes by [specific instructions with example]\n2. Data Fetching: Use [specific pattern] for [use case]\n3. Authentication: Use [specific components/modules] for user management\n[... numbered steps for common tasks ...]\n\nDesign patterns to follow:\n- File-based Routing: Use directory structure in src/routes/ to define URL paths\n- Type-safe Routes: Leverage [framework] type inference for params\n- State Management: Use [library] for server state, [library] for client state\n[... list key patterns with explanations ...]\"\n\nTemplate File Content Guidelines:\n- Keep content MINIMAL and business-agnostic\n- Focus on structure and patterns, not business logic\n- Use placeholder/generic examples only\n- Include essential boilerplate code only\n- Let AI fill in specific logic later\n- Add clear headers with design patterns and coding standards\n";
|
|
165
162
|
|
|
166
163
|
//#endregion
|
|
167
164
|
//#region src/prompts/GenerateBoilerplatePrompt.ts
|
|
168
165
|
/**
|
|
166
|
+
* Schema for GenerateBoilerplatePrompt constructor options
|
|
167
|
+
*/
|
|
168
|
+
const generateBoilerplatePromptOptionsSchema = z.object({
|
|
169
|
+
isMonolith: z.boolean().default(false).describe("Whether the project is a monolith"),
|
|
170
|
+
promptAsSkill: z.boolean().default(false).describe("Render prompt with skill front matter")
|
|
171
|
+
});
|
|
172
|
+
/**
|
|
169
173
|
* Prompt for generating boilerplates
|
|
170
174
|
*/
|
|
171
175
|
var GenerateBoilerplatePrompt = class GenerateBoilerplatePrompt {
|
|
172
176
|
static PROMPT_NAME = "generate-boilerplate";
|
|
173
177
|
templateService = new TemplateService();
|
|
174
|
-
|
|
175
|
-
|
|
178
|
+
options;
|
|
179
|
+
constructor(options = {}) {
|
|
180
|
+
try {
|
|
181
|
+
this.options = generateBoilerplatePromptOptionsSchema.parse(options);
|
|
182
|
+
} catch (error) {
|
|
183
|
+
throw new Error(`Invalid GenerateBoilerplatePrompt options: ${error instanceof Error ? error.message : String(error)}`);
|
|
184
|
+
}
|
|
176
185
|
}
|
|
177
186
|
/**
|
|
178
187
|
* Get the prompt definition for MCP
|
|
@@ -199,7 +208,8 @@ var GenerateBoilerplatePrompt = class GenerateBoilerplatePrompt {
|
|
|
199
208
|
type: "text",
|
|
200
209
|
text: this.templateService.renderString(generate_boilerplate_default, {
|
|
201
210
|
request,
|
|
202
|
-
isMonolith: this.isMonolith
|
|
211
|
+
isMonolith: this.options.isMonolith,
|
|
212
|
+
promptAsSkill: this.options.promptAsSkill
|
|
203
213
|
})
|
|
204
214
|
}
|
|
205
215
|
}];
|
|
@@ -208,18 +218,30 @@ var GenerateBoilerplatePrompt = class GenerateBoilerplatePrompt {
|
|
|
208
218
|
|
|
209
219
|
//#endregion
|
|
210
220
|
//#region src/instructions/prompts/generate-feature-scaffold.md?raw
|
|
211
|
-
var generate_feature_scaffold_default = "You are helping create a new feature scaffold configuration using the scaffold-mcp MCP tools.\n\n{% if request %}User request: {{ request }}\n{% endif %}\nYour task:\n\n1. **Gather Information**: Ask for any missing details:\n {% if not isMonolith %}- Template name (e.g., \"nextjs-15\", \"react-vite\"){% else %}- Template name (will be auto-detected from toolkit.yaml){% endif %}\n - Feature name (prefixed with \"scaffold-\", e.g., \"scaffold-nextjs-page\")\n - Feature type (page, component, service, etc.)\n - Variables needed\n - Files to include\n\n2. **Use MCP Tools** in order:\n - `generate-feature-scaffold` - Creates the feature configuration\n - `generate-boilerplate-file` - Creates each template file\n - `list-scaffolding-methods` - Verify it appears\n - `use-scaffold-method` - Test the feature\n\nImportant:\n- Feature names: prefix with \"scaffold-\"\n- Conditional includes: use \"file.tsx?withLayout=true\"\n- Template syntax: use {{ variableName }}\n{% if isMonolith %}- Template name will be auto-detected from toolkit.yaml{% endif %}\n\n**Description Field Guidelines (CRITICAL)**:\nThe description should explain what the feature scaffold generates (2-3 sentences):\n- Sentence 1: What type of code it generates (component, page, service, etc.)\n- Sentence 2: Key features or capabilities included\n- Sentence 3: Primary use cases or when to use it\n\nExample:\n\"Generate a new service class for TypeScript libraries following best practices. Creates a service class with interface, implementation, and unit tests. Perfect for creating reusable service modules with dependency injection patterns.\"\n\n**Instruction Field Guidelines (CRITICAL)**:\nThe instruction should provide specific guidance for using the generated feature:\n\n1. **Pattern explanation**: Describe the architectural pattern used\n2. **File organization**: Where files should be placed\n3. **Naming conventions**: How to name things (PascalCase, camelCase, etc.)\n4. **Usage guidelines**: How to use the generated code\n5. **Testing approach**: How to test the feature\n\nExample structure:\n\"[Feature type] follow a [pattern name] pattern with [key characteristics].\n[Explanation of how it works and integrates with the project].\nPlace [files] in [directory].\nFor [features with X], define [Y] in [Z] for better separation of concerns.\n[Feature names] should be [case style] and [suffix/prefix rules].\nWrite comprehensive [tests/docs] for all [public methods/exports].\"\n\nKeep it concise but informative - focus on the patterns and conventions that AI needs to understand to work with the generated code effectively.\n\nTemplate File Content Guidelines:\n- Keep content MINIMAL and business-agnostic\n- Focus on structure and patterns, not business logic\n- Use placeholder/generic examples only\n- Include essential boilerplate code only\n- Let AI fill in specific logic later\n- Add clear headers with design patterns and coding standards\n";
|
|
221
|
+
var generate_feature_scaffold_default = "{% if promptAsSkill %}---\nname: generate-feature-scaffold\ndescription: Create a new feature scaffold configuration for adding features to existing projects. Use this skill when the user wants to define a reusable feature template (e.g., page, component, service, API route) that can be used to add functionality to projects of a specific type. This is an admin/developer tool for creating the feature scaffold definitions themselves, not for using existing scaffolds. It generates feature configurations in scaffold.yaml and template files with Liquid syntax and conditional includes.\n---\n\n{% endif %}You are helping create a new feature scaffold configuration using the scaffold-mcp MCP tools.\n\n{% if request %}User request: {{ request }}\n{% endif %}\nYour task:\n\n1. **Gather Information**: Ask for any missing details:\n {% if not isMonolith %}- Template name (e.g., \"nextjs-15\", \"react-vite\"){% else %}- Template name (will be auto-detected from toolkit.yaml){% endif %}\n - Feature name (prefixed with \"scaffold-\", e.g., \"scaffold-nextjs-page\")\n - Feature type (page, component, service, etc.)\n - Variables needed\n - Files to include\n\n2. **Use MCP Tools** in order:\n - `generate-feature-scaffold` - Creates the feature configuration\n - `generate-boilerplate-file` - Creates each template file\n - `list-scaffolding-methods` - Verify it appears\n - `use-scaffold-method` - Test the feature\n\nImportant:\n- Feature names: prefix with \"scaffold-\"\n- Conditional includes: use \"file.tsx?withLayout=true\"\n- Template syntax: use {{ variableName }}\n{% if isMonolith %}- Template name will be auto-detected from toolkit.yaml{% endif %}\n\n**Description Field Guidelines (CRITICAL)**:\nThe description should explain what the feature scaffold generates (2-3 sentences):\n- Sentence 1: What type of code it generates (component, page, service, etc.)\n- Sentence 2: Key features or capabilities included\n- Sentence 3: Primary use cases or when to use it\n\nExample:\n\"Generate a new service class for TypeScript libraries following best practices. Creates a service class with interface, implementation, and unit tests. Perfect for creating reusable service modules with dependency injection patterns.\"\n\n**Instruction Field Guidelines (CRITICAL)**:\nThe instruction should provide specific guidance for using the generated feature:\n\n1. **Pattern explanation**: Describe the architectural pattern used\n2. **File organization**: Where files should be placed\n3. **Naming conventions**: How to name things (PascalCase, camelCase, etc.)\n4. **Usage guidelines**: How to use the generated code\n5. **Testing approach**: How to test the feature\n\nExample structure:\n\"[Feature type] follow a [pattern name] pattern with [key characteristics].\n[Explanation of how it works and integrates with the project].\nPlace [files] in [directory].\nFor [features with X], define [Y] in [Z] for better separation of concerns.\n[Feature names] should be [case style] and [suffix/prefix rules].\nWrite comprehensive [tests/docs] for all [public methods/exports].\"\n\nKeep it concise but informative - focus on the patterns and conventions that AI needs to understand to work with the generated code effectively.\n\nTemplate File Content Guidelines:\n- Keep content MINIMAL and business-agnostic\n- Focus on structure and patterns, not business logic\n- Use placeholder/generic examples only\n- Include essential boilerplate code only\n- Let AI fill in specific logic later\n- Add clear headers with design patterns and coding standards\n";
|
|
212
222
|
|
|
213
223
|
//#endregion
|
|
214
224
|
//#region src/prompts/GenerateFeatureScaffoldPrompt.ts
|
|
215
225
|
/**
|
|
226
|
+
* Schema for GenerateFeatureScaffoldPrompt constructor options
|
|
227
|
+
*/
|
|
228
|
+
const generateFeatureScaffoldPromptOptionsSchema = z.object({
|
|
229
|
+
isMonolith: z.boolean().default(false).describe("Whether the project is a monolith"),
|
|
230
|
+
promptAsSkill: z.boolean().default(false).describe("Render prompt with skill front matter")
|
|
231
|
+
});
|
|
232
|
+
/**
|
|
216
233
|
* Prompt for generating feature scaffolds
|
|
217
234
|
*/
|
|
218
235
|
var GenerateFeatureScaffoldPrompt = class GenerateFeatureScaffoldPrompt {
|
|
219
236
|
static PROMPT_NAME = "generate-feature-scaffold";
|
|
220
237
|
templateService = new TemplateService();
|
|
221
|
-
|
|
222
|
-
|
|
238
|
+
options;
|
|
239
|
+
constructor(options = {}) {
|
|
240
|
+
try {
|
|
241
|
+
this.options = generateFeatureScaffoldPromptOptionsSchema.parse(options);
|
|
242
|
+
} catch (error) {
|
|
243
|
+
throw new Error(`Invalid GenerateFeatureScaffoldPrompt options: ${error instanceof Error ? error.message : String(error)}`);
|
|
244
|
+
}
|
|
223
245
|
}
|
|
224
246
|
/**
|
|
225
247
|
* Get the prompt definition for MCP
|
|
@@ -246,7 +268,8 @@ var GenerateFeatureScaffoldPrompt = class GenerateFeatureScaffoldPrompt {
|
|
|
246
268
|
type: "text",
|
|
247
269
|
text: this.templateService.renderString(generate_feature_scaffold_default, {
|
|
248
270
|
request,
|
|
249
|
-
isMonolith: this.isMonolith
|
|
271
|
+
isMonolith: this.options.isMonolith,
|
|
272
|
+
promptAsSkill: this.options.promptAsSkill
|
|
250
273
|
})
|
|
251
274
|
}
|
|
252
275
|
}];
|
|
@@ -255,18 +278,30 @@ var GenerateFeatureScaffoldPrompt = class GenerateFeatureScaffoldPrompt {
|
|
|
255
278
|
|
|
256
279
|
//#endregion
|
|
257
280
|
//#region src/instructions/prompts/scaffold-application.md?raw
|
|
258
|
-
var scaffold_application_default = "You are helping create a new {% if isMonolith %}monolith application{% else %}application{% endif %} using the scaffold-mcp MCP tools.\n\n{% if request %}User request: {{ request }}\n{% endif %}\nYour task is to scaffold a new application by following this workflow:\n\n## Step 1: {% if isMonolith %}Prepare to Create Application{% else %}List Available Boilerplates{% endif %}\n{% if isMonolith %}You will use the `use-boilerplate` tool to create your monolith application. The boilerplate name will be auto-detected from your toolkit.yaml file.{% else %}Use the `list-boilerplates` tool to see all available project templates.\n\n**What to look for:**\n- Boilerplate name (e.g., \"scaffold-nextjs-app\", \"scaffold-vite-app\")\n- Description of what the boilerplate creates\n- Target folder where projects will be created (e.g., \"apps\", \"packages\")\n- Required and optional variables in the variables_schema{% endif %}\n\n## Step 2: Gather Required Information\nBased on the {% if isMonolith %}toolkit.yaml{% else %}selected boilerplate's variables_schema{% endif %}, collect:\n{% if not isMonolith %}- **Project name**: Must be kebab-case (e.g., \"my-new-app\", not \"MyNewApp\")\n{% endif %}- **Required variables**: All variables marked as required: true\n- **Optional variables**: Variables with required: false (ask user if needed)\n\nCommon variables:\n- `appName` or `packageName`: The project name (kebab-case)\n- `description`: Brief description of what the project does\n- `author`: Author name\n\n## Step 3: Execute the Boilerplate\nUse the `use-boilerplate` tool with:\n{% if not isMonolith %}- `boilerplateName`: Exact name from list-boilerplates response\n{% endif %}- `variables`: Object matching the variables_schema exactly\n\n**Example:**\n```json\n{\n{% if not isMonolith %} \"boilerplateName\": \"scaffold-nextjs-app\",\n{% endif %} \"variables\": {\n \"appName\": \"my-dashboard\",\n \"description\": \"Admin dashboard for managing users\",\n \"author\": \"John Doe\"\n }\n}\n```\n\n## Important Guidelines:\n{% if not isMonolith %}- **Always call `list-boilerplates` first** to see available options and their schemas{% else %}- The boilerplate name is auto-detected from toolkit.yaml{% endif %}\n- **Use exact variable names** from the schema (case-sensitive)\n- **Provide all required variables** - the tool will fail if any are missing\n{% if not isMonolith %}- **Use kebab-case for project names** (e.g., \"user-dashboard\", not \"UserDashboard\")\n- The tool will create the project in the appropriate directory automatically{% else %}- The tool will create files at the workspace root{% endif %}\n- After creation, inform the user {% if isMonolith %}what files were created{% else %}where the project was created{% endif %}\n\n## Step 4: Review and Add Features (If Needed)\nAfter the boilerplate is created, **consider if additional features are needed**:\n1. **READ** the generated {% if isMonolith %}application{% else %}project{% endif %} structure to understand what was created\n2. **REVIEW** the user's request to see if they asked for specific features (e.g., \"with tool for X\", \"with prompt for Y\")\n3. **If features are needed**:\n - Use `list-scaffolding-methods`{% if not isMonolith %} with the new project path{% endif %}\n - Use `use-scaffold-method` to add tools, services, prompts, etc.\n - **IMPLEMENT** the actual logic in the scaffolded feature files\n - **REGISTER** the features in `src/server/index.ts`\n4. **Install dependencies**: Remind user to run `pnpm install`\n5. **Report** the complete setup including any features added\n\n## Example Workflow:\n{% if not isMonolith %}1. Call `list-boilerplates` → See available templates\n2. Ask user which template to use (or infer from request)\n3. Collect required variables based on schema\n4. Call `use-boilerplate` with boilerplateName and variables{% else %}1. Collect required variables based on toolkit.yaml variables_schema\n2. Call `use-boilerplate` with variables (boilerplateName auto-detected){% endif %}\n5. **Review if user requested specific features (tools, prompts, etc.)**\n6. **If features needed**: Add them using `list-scaffolding-methods` and `use-scaffold-method`\n7. **READ and IMPLEMENT** the scaffolded feature files with actual logic\n8. Report success and next steps to the user\n";
|
|
281
|
+
var scaffold_application_default = "{% if promptAsSkill %}---\nname: scaffold-application\ndescription: Create a new application or project from a boilerplate template. Use this skill when the user wants to start a new project, create a new app, or bootstrap a new codebase from scratch. This skill lists available boilerplate templates (React, Next.js, Express, etc.), gathers required configuration variables, generates the complete project structure, and provides guidance on next steps including adding features.\n---\n\n{% endif %}You are helping create a new {% if isMonolith %}monolith application{% else %}application{% endif %} using the scaffold-mcp MCP tools.\n\n{% if request %}User request: {{ request }}\n{% endif %}\nYour task is to scaffold a new application by following this workflow:\n\n## Step 1: {% if isMonolith %}Prepare to Create Application{% else %}List Available Boilerplates{% endif %}\n{% if isMonolith %}You will use the `use-boilerplate` tool to create your monolith application. The boilerplate name will be auto-detected from your toolkit.yaml file.{% else %}Use the `list-boilerplates` tool to see all available project templates.\n\n**What to look for:**\n- Boilerplate name (e.g., \"scaffold-nextjs-app\", \"scaffold-vite-app\")\n- Description of what the boilerplate creates\n- Target folder where projects will be created (e.g., \"apps\", \"packages\")\n- Required and optional variables in the variables_schema{% endif %}\n\n## Step 2: Gather Required Information\nBased on the {% if isMonolith %}toolkit.yaml{% else %}selected boilerplate's variables_schema{% endif %}, collect:\n{% if not isMonolith %}- **Project name**: Must be kebab-case (e.g., \"my-new-app\", not \"MyNewApp\")\n{% endif %}- **Required variables**: All variables marked as required: true\n- **Optional variables**: Variables with required: false (ask user if needed)\n\nCommon variables:\n- `appName` or `packageName`: The project name (kebab-case)\n- `description`: Brief description of what the project does\n- `author`: Author name\n\n## Step 3: Execute the Boilerplate\nUse the `use-boilerplate` tool with:\n{% if not isMonolith %}- `boilerplateName`: Exact name from list-boilerplates response\n{% endif %}- `variables`: Object matching the variables_schema exactly\n\n**Example:**\n```json\n{\n{% if not isMonolith %} \"boilerplateName\": \"scaffold-nextjs-app\",\n{% endif %} \"variables\": {\n \"appName\": \"my-dashboard\",\n \"description\": \"Admin dashboard for managing users\",\n \"author\": \"John Doe\"\n }\n}\n```\n\n## Important Guidelines:\n{% if not isMonolith %}- **Always call `list-boilerplates` first** to see available options and their schemas{% else %}- The boilerplate name is auto-detected from toolkit.yaml{% endif %}\n- **Use exact variable names** from the schema (case-sensitive)\n- **Provide all required variables** - the tool will fail if any are missing\n{% if not isMonolith %}- **Use kebab-case for project names** (e.g., \"user-dashboard\", not \"UserDashboard\")\n- The tool will create the project in the appropriate directory automatically{% else %}- The tool will create files at the workspace root{% endif %}\n- After creation, inform the user {% if isMonolith %}what files were created{% else %}where the project was created{% endif %}\n\n## Step 4: Review and Add Features (If Needed)\nAfter the boilerplate is created, **consider if additional features are needed**:\n1. **READ** the generated {% if isMonolith %}application{% else %}project{% endif %} structure to understand what was created\n2. **REVIEW** the user's request to see if they asked for specific features (e.g., \"with tool for X\", \"with prompt for Y\")\n3. **If features are needed**:\n - Use `list-scaffolding-methods`{% if not isMonolith %} with the new project path{% endif %}\n - Use `use-scaffold-method` to add tools, services, prompts, etc.\n - **IMPLEMENT** the actual logic in the scaffolded feature files\n - **REGISTER** the features in `src/server/index.ts`\n4. **Install dependencies**: Remind user to run `pnpm install`\n5. **Report** the complete setup including any features added\n\n## Example Workflow:\n{% if not isMonolith %}1. Call `list-boilerplates` → See available templates\n2. Ask user which template to use (or infer from request)\n3. Collect required variables based on schema\n4. Call `use-boilerplate` with boilerplateName and variables{% else %}1. Collect required variables based on toolkit.yaml variables_schema\n2. Call `use-boilerplate` with variables (boilerplateName auto-detected){% endif %}\n5. **Review if user requested specific features (tools, prompts, etc.)**\n6. **If features needed**: Add them using `list-scaffolding-methods` and `use-scaffold-method`\n7. **READ and IMPLEMENT** the scaffolded feature files with actual logic\n8. Report success and next steps to the user\n";
|
|
259
282
|
|
|
260
283
|
//#endregion
|
|
261
284
|
//#region src/prompts/ScaffoldApplicationPrompt.ts
|
|
262
285
|
/**
|
|
286
|
+
* Schema for ScaffoldApplicationPrompt constructor options
|
|
287
|
+
*/
|
|
288
|
+
const scaffoldApplicationPromptOptionsSchema = z.object({
|
|
289
|
+
isMonolith: z.boolean().default(false).describe("Whether the project is a monolith"),
|
|
290
|
+
promptAsSkill: z.boolean().default(false).describe("Render prompt with skill front matter")
|
|
291
|
+
});
|
|
292
|
+
/**
|
|
263
293
|
* Prompt for scaffolding a new application using boilerplate templates
|
|
264
294
|
*/
|
|
265
295
|
var ScaffoldApplicationPrompt = class ScaffoldApplicationPrompt {
|
|
266
296
|
static PROMPT_NAME = "scaffold-application";
|
|
267
297
|
templateService = new TemplateService();
|
|
268
|
-
|
|
269
|
-
|
|
298
|
+
options;
|
|
299
|
+
constructor(options = {}) {
|
|
300
|
+
try {
|
|
301
|
+
this.options = scaffoldApplicationPromptOptionsSchema.parse(options);
|
|
302
|
+
} catch (error) {
|
|
303
|
+
throw new Error(`Invalid ScaffoldApplicationPrompt options: ${error instanceof Error ? error.message : String(error)}`);
|
|
304
|
+
}
|
|
270
305
|
}
|
|
271
306
|
/**
|
|
272
307
|
* Get the prompt definition for MCP
|
|
@@ -293,7 +328,8 @@ var ScaffoldApplicationPrompt = class ScaffoldApplicationPrompt {
|
|
|
293
328
|
type: "text",
|
|
294
329
|
text: this.templateService.renderString(scaffold_application_default, {
|
|
295
330
|
request,
|
|
296
|
-
isMonolith: this.isMonolith
|
|
331
|
+
isMonolith: this.options.isMonolith,
|
|
332
|
+
promptAsSkill: this.options.promptAsSkill
|
|
297
333
|
})
|
|
298
334
|
}
|
|
299
335
|
}];
|
|
@@ -302,18 +338,30 @@ var ScaffoldApplicationPrompt = class ScaffoldApplicationPrompt {
|
|
|
302
338
|
|
|
303
339
|
//#endregion
|
|
304
340
|
//#region src/instructions/prompts/scaffold-feature.md?raw
|
|
305
|
-
var scaffold_feature_default = "You are helping add a new feature to an existing project using the scaffold-mcp MCP tools.\n\n{% if request %}User request: {{ request }}\n{% endif %}{% if projectPath %}Project path: {{ projectPath }}\n{% endif %}\nYour task is to scaffold a new feature by following this workflow:\n\n## Step 1: Identify the Project\nDetermine the project path where the feature will be added:\n- If projectPath is provided, use it\n- Otherwise, ask the user or infer from context (e.g., \"apps/my-app\", \"packages/my-lib\")\n{% if isMonolith %}- In monolith mode, you can use the current working directory (no projectPath needed){% else %}- The path should point to a directory containing a `project.json` file{% endif %}\n\n## Step 2: List Available Scaffolding Methods\nUse the `list-scaffolding-methods` tool{% if not isMonolith %} with the projectPath{% endif %}.\n\n**What to look for:**\n- Feature name (e.g., \"scaffold-nextjs-page\", \"scaffold-react-component\")\n- Description of what files/code it generates\n- Required and optional variables in the variables_schema\n- The template type (derived from project's sourceTemplate)\n\n**Example:**\n```json\n{% if isMonolith %}{}{% else %}{\n \"projectPath\": \"apps/my-dashboard\"\n}{% endif %}\n```\n\n## Step 3: Gather Required Information\nBased on the selected scaffolding method's variables_schema, collect:\n- **Feature-specific variables**: Name, path, type, etc.\n- **Required variables**: All variables marked as required: true\n- **Optional variables**: Variables with required: false (ask user if needed)\n\nCommon variables:\n- `componentName` / `pageName` / `serviceName`: Name in PascalCase\n- `componentPath` / `pagePath`: Where to place the file (may use kebab-case)\n- Boolean flags: `withTests`, `withLayout`, `withStyles`, etc.\n\n## Step 4: Execute the Scaffolding Method\nUse the `use-scaffold-method` tool with:\n{% if not isMonolith %}- `projectPath`: Same path from step 1\n{% endif %}- `scaffold_feature_name`: Exact name from list-scaffolding-methods response\n- `variables`: Object matching the variables_schema exactly\n\n**Example:**\n```json\n{\n{% if not isMonolith %} \"projectPath\": \"apps/my-dashboard\",\n{% endif %} \"scaffold_feature_name\": \"scaffold-nextjs-page\",\n \"variables\": {\n \"pageName\": \"UserProfile\",\n \"pagePath\": \"user/profile\",\n \"withLayout\": true,\n \"withTests\": false\n }\n}\n```\n\n## Important Guidelines:\n- **Always call `list-scaffolding-methods` first**{% if not isMonolith %} with the projectPath{% endif %}\n- **Use exact variable names** from the schema (case-sensitive)\n- **Provide all required variables** - the tool will fail if any are missing\n- **Follow naming conventions**:\n - Component/Page/Service names: PascalCase (e.g., \"UserProfile\")\n - File paths: kebab-case or as specified in schema (e.g., \"user/profile\")\n- **Conditional files**: Files with `?condition=true` are only included when the variable is true\n- The tool will create files in the appropriate locations automatically\n- After creation, inform the user what files were created\n\n## Step 5: Review and Implement Generated Files\nAfter scaffolding completes, **you MUST**:\n1. **READ** all generated files to understand their structure\n2. **IMPLEMENT** the actual business logic:\n - Replace TODO comments with real code\n - Replace template placeholders with actual implementation\n - Add the specific functionality described in the user's request\n3. **REGISTER** the feature in appropriate files:\n - Import and register tools in `src/server/index.ts`\n - Export new modules from `index.ts` files\n - Update any necessary configuration files\n4. **TEST** to ensure the implementation works correctly\n5. **DO NOT SKIP** this step - scaffolded files are templates that need actual code\n\n## Example Workflow:\n1. Identify project path (provided or ask user){% if not isMonolith %}\n2. Call `list-scaffolding-methods` → See available features for this project{% else %}\n2. Call `list-scaffolding-methods` → See available features for your template{% endif %}\n3. Ask user which feature to add (or infer from request)\n4. Collect required variables based on schema\n5. Call `use-scaffold-method` with {% if not isMonolith %}projectPath, {% endif %}scaffold_feature_name, and variables\n6. **READ the generated files and IMPLEMENT the actual logic**\n7. **REGISTER the feature in server/index.ts and other config files**\n8. Report success and list created files with implementation details\n";
|
|
341
|
+
var scaffold_feature_default = "{% if promptAsSkill %}---\nname: scaffold-feature\ndescription: Add a new feature to an existing project such as service, route, page, component, or API endpoint. Use this skill when the user wants to add functionality to an existing codebase using predefined scaffolding templates. This skill lists available scaffolding methods for the project's template type, gathers required variables, generates boilerplate files, and guides implementation of the actual business logic.\n---\n\n{% endif %}You are helping add a new feature to an existing project using the scaffold-mcp MCP tools.\n\n{% if request %}User request: {{ request }}\n{% endif %}{% if projectPath %}Project path: {{ projectPath }}\n{% endif %}\nYour task is to scaffold a new feature by following this workflow:\n\n## Step 1: Identify the Project\nDetermine the project path where the feature will be added:\n- If projectPath is provided, use it\n- Otherwise, ask the user or infer from context (e.g., \"apps/my-app\", \"packages/my-lib\")\n{% if isMonolith %}- In monolith mode, you can use the current working directory (no projectPath needed){% else %}- The path should point to a directory containing a `project.json` file{% endif %}\n\n## Step 2: List Available Scaffolding Methods\nUse the `list-scaffolding-methods` tool{% if not isMonolith %} with the projectPath{% endif %}.\n\n**What to look for:**\n- Feature name (e.g., \"scaffold-nextjs-page\", \"scaffold-react-component\")\n- Description of what files/code it generates\n- Required and optional variables in the variables_schema\n- The template type (derived from project's sourceTemplate)\n\n**Example:**\n```json\n{% if isMonolith %}{}{% else %}{\n \"projectPath\": \"apps/my-dashboard\"\n}{% endif %}\n```\n\n## Step 3: Gather Required Information\nBased on the selected scaffolding method's variables_schema, collect:\n- **Feature-specific variables**: Name, path, type, etc.\n- **Required variables**: All variables marked as required: true\n- **Optional variables**: Variables with required: false (ask user if needed)\n\nCommon variables:\n- `componentName` / `pageName` / `serviceName`: Name in PascalCase\n- `componentPath` / `pagePath`: Where to place the file (may use kebab-case)\n- Boolean flags: `withTests`, `withLayout`, `withStyles`, etc.\n\n## Step 4: Execute the Scaffolding Method\nUse the `use-scaffold-method` tool with:\n{% if not isMonolith %}- `projectPath`: Same path from step 1\n{% endif %}- `scaffold_feature_name`: Exact name from list-scaffolding-methods response\n- `variables`: Object matching the variables_schema exactly\n\n**Example:**\n```json\n{\n{% if not isMonolith %} \"projectPath\": \"apps/my-dashboard\",\n{% endif %} \"scaffold_feature_name\": \"scaffold-nextjs-page\",\n \"variables\": {\n \"pageName\": \"UserProfile\",\n \"pagePath\": \"user/profile\",\n \"withLayout\": true,\n \"withTests\": false\n }\n}\n```\n\n## Important Guidelines:\n- **Always call `list-scaffolding-methods` first**{% if not isMonolith %} with the projectPath{% endif %}\n- **Use exact variable names** from the schema (case-sensitive)\n- **Provide all required variables** - the tool will fail if any are missing\n- **Follow naming conventions**:\n - Component/Page/Service names: PascalCase (e.g., \"UserProfile\")\n - File paths: kebab-case or as specified in schema (e.g., \"user/profile\")\n- **Conditional files**: Files with `?condition=true` are only included when the variable is true\n- The tool will create files in the appropriate locations automatically\n- After creation, inform the user what files were created\n\n## Step 5: Review and Implement Generated Files\nAfter scaffolding completes, **you MUST**:\n1. **READ** all generated files to understand their structure\n2. **IMPLEMENT** the actual business logic:\n - Replace TODO comments with real code\n - Replace template placeholders with actual implementation\n - Add the specific functionality described in the user's request\n3. **REGISTER** the feature in appropriate files:\n - Import and register tools in `src/server/index.ts`\n - Export new modules from `index.ts` files\n - Update any necessary configuration files\n4. **TEST** to ensure the implementation works correctly\n5. **DO NOT SKIP** this step - scaffolded files are templates that need actual code\n\n## Example Workflow:\n1. Identify project path (provided or ask user){% if not isMonolith %}\n2. Call `list-scaffolding-methods` → See available features for this project{% else %}\n2. Call `list-scaffolding-methods` → See available features for your template{% endif %}\n3. Ask user which feature to add (or infer from request)\n4. Collect required variables based on schema\n5. Call `use-scaffold-method` with {% if not isMonolith %}projectPath, {% endif %}scaffold_feature_name, and variables\n6. **READ the generated files and IMPLEMENT the actual logic**\n7. **REGISTER the feature in server/index.ts and other config files**\n8. Report success and list created files with implementation details\n";
|
|
306
342
|
|
|
307
343
|
//#endregion
|
|
308
344
|
//#region src/prompts/ScaffoldFeaturePrompt.ts
|
|
309
345
|
/**
|
|
346
|
+
* Schema for ScaffoldFeaturePrompt constructor options
|
|
347
|
+
*/
|
|
348
|
+
const scaffoldFeaturePromptOptionsSchema = z.object({
|
|
349
|
+
isMonolith: z.boolean().default(false).describe("Whether the project is a monolith"),
|
|
350
|
+
promptAsSkill: z.boolean().default(false).describe("Render prompt with skill front matter")
|
|
351
|
+
});
|
|
352
|
+
/**
|
|
310
353
|
* Prompt for scaffolding a new feature in an existing project
|
|
311
354
|
*/
|
|
312
355
|
var ScaffoldFeaturePrompt = class ScaffoldFeaturePrompt {
|
|
313
356
|
static PROMPT_NAME = "scaffold-feature";
|
|
314
357
|
templateService = new TemplateService();
|
|
315
|
-
|
|
316
|
-
|
|
358
|
+
options;
|
|
359
|
+
constructor(options = {}) {
|
|
360
|
+
try {
|
|
361
|
+
this.options = scaffoldFeaturePromptOptionsSchema.parse(options);
|
|
362
|
+
} catch (error) {
|
|
363
|
+
throw new Error(`Invalid ScaffoldFeaturePrompt options: ${error instanceof Error ? error.message : String(error)}`);
|
|
364
|
+
}
|
|
317
365
|
}
|
|
318
366
|
/**
|
|
319
367
|
* Get the prompt definition for MCP
|
|
@@ -346,7 +394,8 @@ var ScaffoldFeaturePrompt = class ScaffoldFeaturePrompt {
|
|
|
346
394
|
text: this.templateService.renderString(scaffold_feature_default, {
|
|
347
395
|
request,
|
|
348
396
|
projectPath,
|
|
349
|
-
isMonolith: this.isMonolith
|
|
397
|
+
isMonolith: this.options.isMonolith,
|
|
398
|
+
promptAsSkill: this.options.promptAsSkill
|
|
350
399
|
})
|
|
351
400
|
}
|
|
352
401
|
}];
|
|
@@ -356,7 +405,7 @@ var ScaffoldFeaturePrompt = class ScaffoldFeaturePrompt {
|
|
|
356
405
|
//#endregion
|
|
357
406
|
//#region src/server/index.ts
|
|
358
407
|
function createServer(options = {}) {
|
|
359
|
-
const { adminEnabled = false, isMonolith = false } = options;
|
|
408
|
+
const { adminEnabled = false, isMonolith = false, promptAsSkill = false } = options;
|
|
360
409
|
const templatesPath = TemplatesManagerService.findTemplatesPathSync();
|
|
361
410
|
if (!templatesPath) throw new Error("Templates folder not found. Please create a \"templates\" folder in your workspace root, or specify \"templatesPath\" in toolkit.yaml to point to your templates directory.");
|
|
362
411
|
const listBoilerplatesTool = !isMonolith ? new ListBoilerplatesTool(templatesPath, isMonolith) : null;
|
|
@@ -367,10 +416,22 @@ function createServer(options = {}) {
|
|
|
367
416
|
const generateBoilerplateTool = adminEnabled ? new GenerateBoilerplateTool(templatesPath, isMonolith) : null;
|
|
368
417
|
const generateBoilerplateFileTool = adminEnabled ? new GenerateBoilerplateFileTool(templatesPath, isMonolith) : null;
|
|
369
418
|
const generateFeatureScaffoldTool = adminEnabled ? new GenerateFeatureScaffoldTool(templatesPath, isMonolith) : null;
|
|
370
|
-
const generateBoilerplatePrompt = adminEnabled ? new GenerateBoilerplatePrompt(
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
419
|
+
const generateBoilerplatePrompt = adminEnabled ? new GenerateBoilerplatePrompt({
|
|
420
|
+
isMonolith,
|
|
421
|
+
promptAsSkill
|
|
422
|
+
}) : null;
|
|
423
|
+
const generateFeatureScaffoldPrompt = adminEnabled ? new GenerateFeatureScaffoldPrompt({
|
|
424
|
+
isMonolith,
|
|
425
|
+
promptAsSkill
|
|
426
|
+
}) : null;
|
|
427
|
+
const scaffoldApplicationPrompt = new ScaffoldApplicationPrompt({
|
|
428
|
+
isMonolith,
|
|
429
|
+
promptAsSkill
|
|
430
|
+
});
|
|
431
|
+
const scaffoldFeaturePrompt = new ScaffoldFeaturePrompt({
|
|
432
|
+
isMonolith,
|
|
433
|
+
promptAsSkill
|
|
434
|
+
});
|
|
374
435
|
const instructions = new TemplateService().renderString(server_default, {
|
|
375
436
|
adminEnabled,
|
|
376
437
|
isMonolith
|
|
@@ -482,7 +543,7 @@ async function startServer(handler) {
|
|
|
482
543
|
await handler.stop();
|
|
483
544
|
process.exit(0);
|
|
484
545
|
} catch (error) {
|
|
485
|
-
console.error("Error during shutdown:", error);
|
|
546
|
+
console.error("Error during shutdown:", error instanceof Error ? error.message : String(error));
|
|
486
547
|
process.exit(1);
|
|
487
548
|
}
|
|
488
549
|
};
|
|
@@ -492,7 +553,7 @@ async function startServer(handler) {
|
|
|
492
553
|
/**
|
|
493
554
|
* MCP Serve command
|
|
494
555
|
*/
|
|
495
|
-
const mcpServeCommand = new Command("mcp-serve").description("Start MCP server with specified transport").option("-t, --type <type>", "Transport type: stdio, http, or sse", "stdio").option("-p, --port <port>", "Port to listen on (http/sse only)", (val) => parseInt(val, 10), 3e3).option("--host <host>", "Host to bind to (http/sse only)", "localhost").option("--admin-enable", "Enable admin tools (generate-boilerplate)", false).action(async (options) => {
|
|
556
|
+
const mcpServeCommand = new Command("mcp-serve").description("Start MCP server with specified transport").option("-t, --type <type>", "Transport type: stdio, http, or sse", "stdio").option("-p, --port <port>", "Port to listen on (http/sse only)", (val) => parseInt(val, 10), 3e3).option("--host <host>", "Host to bind to (http/sse only)", "localhost").option("--admin-enable", "Enable admin tools (generate-boilerplate)", false).option("--prompt-as-skill", "Render prompts with skill front matter for Claude Code skills", false).action(async (options) => {
|
|
496
557
|
try {
|
|
497
558
|
const transportType = options.type.toLowerCase();
|
|
498
559
|
let isMonolith = false;
|
|
@@ -503,7 +564,8 @@ const mcpServeCommand = new Command("mcp-serve").description("Start MCP server w
|
|
|
503
564
|
}
|
|
504
565
|
const serverOptions = {
|
|
505
566
|
adminEnabled: options.adminEnable,
|
|
506
|
-
isMonolith
|
|
567
|
+
isMonolith,
|
|
568
|
+
promptAsSkill: options.promptAsSkill
|
|
507
569
|
};
|
|
508
570
|
if (transportType === "stdio") await startServer(new StdioTransportHandler(createServer(serverOptions)));
|
|
509
571
|
else if (transportType === "http") await startServer(new HttpTransportHandler(() => createServer(serverOptions), {
|
|
@@ -765,7 +827,7 @@ const hookCommand = new Command("hook").description("Execute scaffold hooks for
|
|
|
765
827
|
}
|
|
766
828
|
const { agent, hookMethod } = parseHookType(options.type);
|
|
767
829
|
if (agent === CLAUDE_CODE) {
|
|
768
|
-
const useScaffoldMethodModule = await import("./useScaffoldMethod-
|
|
830
|
+
const useScaffoldMethodModule = await import("./useScaffoldMethod-CC8ARsl9.mjs");
|
|
769
831
|
const claudeCallbacks = [];
|
|
770
832
|
if (useScaffoldMethodModule.UseScaffoldMethodHook) {
|
|
771
833
|
const hookInstance = new useScaffoldMethodModule.UseScaffoldMethodHook();
|
|
@@ -778,7 +840,7 @@ const hookCommand = new Command("hook").description("Execute scaffold hooks for
|
|
|
778
840
|
}
|
|
779
841
|
await new ClaudeCodeAdapter().executeMultiple(claudeCallbacks);
|
|
780
842
|
} else if (agent === GEMINI_CLI) {
|
|
781
|
-
const useScaffoldMethodModule = await import("./useScaffoldMethod-
|
|
843
|
+
const useScaffoldMethodModule = await import("./useScaffoldMethod-B-q_yBnX.mjs");
|
|
782
844
|
const geminiCallbacks = [];
|
|
783
845
|
if (useScaffoldMethodModule.UseScaffoldMethodHook) {
|
|
784
846
|
const hookInstance = new useScaffoldMethodModule.UseScaffoldMethodHook();
|
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
const require_ScaffoldConfigLoader = require('./ScaffoldConfigLoader-BWpNpMx-.cjs');
|
|
4
|
-
const require_ScaffoldService = require('./ScaffoldService-DSQBnAHm.cjs');
|
|
5
|
-
const require_TemplateService = require('./TemplateService-7QcWREot.cjs');
|
|
6
|
-
const require_VariableReplacementService = require('./VariableReplacementService-DNYx0Dym.cjs');
|
|
1
|
+
const require_ListScaffoldingMethodsTool = require('./ListScaffoldingMethodsTool-D7S3xpJE.cjs');
|
|
2
|
+
const require_stdio = require('./stdio-ohQyWnxq.cjs');
|
|
7
3
|
|
|
8
4
|
exports.BoilerplateGeneratorService = require_stdio.BoilerplateGeneratorService;
|
|
9
5
|
exports.BoilerplateService = require_stdio.BoilerplateService;
|
|
@@ -14,15 +10,15 @@ exports.GenerateFeatureScaffoldTool = require_stdio.GenerateFeatureScaffoldTool;
|
|
|
14
10
|
exports.HttpTransportHandler = require_stdio.HttpTransportHandler;
|
|
15
11
|
exports.ListBoilerplatesTool = require_stdio.ListBoilerplatesTool;
|
|
16
12
|
exports.ListScaffoldingMethodsTool = require_ListScaffoldingMethodsTool.ListScaffoldingMethodsTool;
|
|
17
|
-
exports.ScaffoldConfigLoader =
|
|
13
|
+
exports.ScaffoldConfigLoader = require_ListScaffoldingMethodsTool.ScaffoldConfigLoader;
|
|
18
14
|
exports.ScaffoldGeneratorService = require_stdio.ScaffoldGeneratorService;
|
|
19
|
-
exports.ScaffoldProcessingService =
|
|
20
|
-
exports.ScaffoldService =
|
|
15
|
+
exports.ScaffoldProcessingService = require_ListScaffoldingMethodsTool.ScaffoldProcessingService;
|
|
16
|
+
exports.ScaffoldService = require_ListScaffoldingMethodsTool.ScaffoldService;
|
|
21
17
|
exports.ScaffoldingMethodsService = require_ListScaffoldingMethodsTool.ScaffoldingMethodsService;
|
|
22
18
|
exports.SseTransportHandler = require_stdio.SseTransportHandler;
|
|
23
19
|
exports.StdioTransportHandler = require_stdio.StdioTransportHandler;
|
|
24
|
-
exports.TemplateService =
|
|
20
|
+
exports.TemplateService = require_ListScaffoldingMethodsTool.TemplateService;
|
|
25
21
|
exports.UseBoilerplateTool = require_stdio.UseBoilerplateTool;
|
|
26
22
|
exports.UseScaffoldMethodTool = require_stdio.UseScaffoldMethodTool;
|
|
27
|
-
exports.VariableReplacementService =
|
|
23
|
+
exports.VariableReplacementService = require_ListScaffoldingMethodsTool.VariableReplacementService;
|
|
28
24
|
exports.WriteToFileTool = require_stdio.WriteToFileTool;
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { a as UseScaffoldMethodTool, c as GenerateFeatureScaffoldTool, d as ScaffoldGeneratorService, f as BoilerplateService, i as WriteToFileTool, l as GenerateBoilerplateTool, n as SseTransportHandler, o as UseBoilerplateTool, p as BoilerplateGeneratorService, r as HttpTransportHandler, s as ListBoilerplatesTool, t as StdioTransportHandler, u as GenerateBoilerplateFileTool } from "./stdio-
|
|
2
|
-
import { n as ScaffoldingMethodsService, r as
|
|
3
|
-
import { t as ScaffoldConfigLoader } from "./ScaffoldConfigLoader-8YI7v2GJ.mjs";
|
|
4
|
-
import { n as ScaffoldProcessingService, t as ScaffoldService } from "./ScaffoldService-DcsGLMuD.mjs";
|
|
5
|
-
import { t as TemplateService } from "./TemplateService-CVDL2uqt.mjs";
|
|
6
|
-
import { t as VariableReplacementService } from "./VariableReplacementService-B9RA8D0a.mjs";
|
|
1
|
+
import { a as UseScaffoldMethodTool, c as GenerateFeatureScaffoldTool, d as ScaffoldGeneratorService, f as BoilerplateService, i as WriteToFileTool, l as GenerateBoilerplateTool, n as SseTransportHandler, o as UseBoilerplateTool, p as BoilerplateGeneratorService, r as HttpTransportHandler, s as ListBoilerplatesTool, t as StdioTransportHandler, u as GenerateBoilerplateFileTool } from "./stdio-DqZJsqKM.mjs";
|
|
2
|
+
import { a as ScaffoldService, c as FileSystemService, i as TemplateService, n as ScaffoldingMethodsService, o as ScaffoldProcessingService, r as VariableReplacementService, s as ScaffoldConfigLoader, t as ListScaffoldingMethodsTool } from "./ListScaffoldingMethodsTool-D3ecmSLf.mjs";
|
|
7
3
|
|
|
8
4
|
export { BoilerplateGeneratorService, BoilerplateService, FileSystemService, GenerateBoilerplateFileTool, GenerateBoilerplateTool, GenerateFeatureScaffoldTool, HttpTransportHandler, ListBoilerplatesTool, ListScaffoldingMethodsTool, ScaffoldConfigLoader, ScaffoldGeneratorService, ScaffoldProcessingService, ScaffoldService, ScaffoldingMethodsService, SseTransportHandler, StdioTransportHandler, TemplateService, UseBoilerplateTool, UseScaffoldMethodTool, VariableReplacementService, WriteToFileTool };
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { i as PaginationHelper, n as ScaffoldingMethodsService, r as
|
|
2
|
-
import { t as ScaffoldConfigLoader } from "./ScaffoldConfigLoader-8YI7v2GJ.mjs";
|
|
3
|
-
import { t as ScaffoldService } from "./ScaffoldService-DcsGLMuD.mjs";
|
|
4
|
-
import { t as TemplateService } from "./TemplateService-CVDL2uqt.mjs";
|
|
5
|
-
import { t as VariableReplacementService } from "./VariableReplacementService-B9RA8D0a.mjs";
|
|
1
|
+
import { a as ScaffoldService, c as FileSystemService, i as TemplateService, l as PaginationHelper, n as ScaffoldingMethodsService, r as VariableReplacementService, s as ScaffoldConfigLoader } from "./ListScaffoldingMethodsTool-D3ecmSLf.mjs";
|
|
6
2
|
import * as path$1 from "node:path";
|
|
7
3
|
import path from "node:path";
|
|
8
4
|
import { ProjectConfigResolver, ensureDir, generateStableId, log, pathExists, pathExistsSync, readFile, readFileSync, readdir, statSync, writeFile } from "@agiflowai/aicode-utils";
|
|
@@ -253,23 +249,24 @@ var BoilerplateService = class {
|
|
|
253
249
|
*/
|
|
254
250
|
async useBoilerplate(request) {
|
|
255
251
|
let { boilerplateName, variables, monolith, targetFolderOverride } = request;
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
252
|
+
let projectConfig = null;
|
|
253
|
+
if (monolith === void 0 || monolith && !boilerplateName) try {
|
|
254
|
+
projectConfig = await ProjectConfigResolver.resolveProjectConfig(process.cwd());
|
|
255
|
+
} catch (_error) {}
|
|
256
|
+
if (monolith === void 0) if (projectConfig) {
|
|
257
|
+
monolith = projectConfig.type === "monolith";
|
|
258
|
+
log.info(`Auto-detected project type: ${projectConfig.type}`);
|
|
259
|
+
} else {
|
|
261
260
|
monolith = false;
|
|
262
261
|
log.info("No project configuration found, defaulting to monorepo mode");
|
|
263
262
|
}
|
|
264
|
-
if (monolith && !boilerplateName)
|
|
265
|
-
boilerplateName =
|
|
263
|
+
if (monolith && !boilerplateName) if (projectConfig) {
|
|
264
|
+
boilerplateName = projectConfig.sourceTemplate;
|
|
266
265
|
log.info(`Using boilerplate from toolkit.yaml: ${boilerplateName}`);
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
};
|
|
272
|
-
}
|
|
266
|
+
} else return {
|
|
267
|
+
success: false,
|
|
268
|
+
message: "Failed to read boilerplate name from toolkit.yaml: No project configuration found"
|
|
269
|
+
};
|
|
273
270
|
if (!boilerplateName) return {
|
|
274
271
|
success: false,
|
|
275
272
|
message: "Missing required parameter: boilerplateName"
|
|
@@ -1,26 +1,21 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_ListScaffoldingMethodsTool = require('./ListScaffoldingMethodsTool-DuYGFDwJ.cjs');
|
|
3
|
-
const require_ScaffoldConfigLoader = require('./ScaffoldConfigLoader-BWpNpMx-.cjs');
|
|
4
|
-
const require_ScaffoldService = require('./ScaffoldService-DSQBnAHm.cjs');
|
|
5
|
-
const require_TemplateService = require('./TemplateService-7QcWREot.cjs');
|
|
6
|
-
const require_VariableReplacementService = require('./VariableReplacementService-DNYx0Dym.cjs');
|
|
1
|
+
const require_ListScaffoldingMethodsTool = require('./ListScaffoldingMethodsTool-D7S3xpJE.cjs');
|
|
7
2
|
let node_path = require("node:path");
|
|
8
|
-
node_path =
|
|
3
|
+
node_path = require_ListScaffoldingMethodsTool.__toESM(node_path);
|
|
9
4
|
let __agiflowai_aicode_utils = require("@agiflowai/aicode-utils");
|
|
10
5
|
let js_yaml = require("js-yaml");
|
|
11
|
-
js_yaml =
|
|
6
|
+
js_yaml = require_ListScaffoldingMethodsTool.__toESM(js_yaml);
|
|
12
7
|
let node_fs = require("node:fs");
|
|
13
8
|
let __composio_json_schema_to_zod = require("@composio/json-schema-to-zod");
|
|
14
9
|
let zod = require("zod");
|
|
15
10
|
let node_fs_promises = require("node:fs/promises");
|
|
16
|
-
node_fs_promises =
|
|
11
|
+
node_fs_promises = require_ListScaffoldingMethodsTool.__toESM(node_fs_promises);
|
|
17
12
|
let node_os = require("node:os");
|
|
18
|
-
node_os =
|
|
13
|
+
node_os = require_ListScaffoldingMethodsTool.__toESM(node_os);
|
|
19
14
|
let node_crypto = require("node:crypto");
|
|
20
15
|
let __modelcontextprotocol_sdk_server_streamableHttp_js = require("@modelcontextprotocol/sdk/server/streamableHttp.js");
|
|
21
16
|
let __modelcontextprotocol_sdk_types_js = require("@modelcontextprotocol/sdk/types.js");
|
|
22
17
|
let express = require("express");
|
|
23
|
-
express =
|
|
18
|
+
express = require_ListScaffoldingMethodsTool.__toESM(express);
|
|
24
19
|
let __modelcontextprotocol_sdk_server_sse_js = require("@modelcontextprotocol/sdk/server/sse.js");
|
|
25
20
|
let __modelcontextprotocol_sdk_server_stdio_js = require("@modelcontextprotocol/sdk/server/stdio.js");
|
|
26
21
|
|
|
@@ -190,9 +185,9 @@ var BoilerplateService = class {
|
|
|
190
185
|
scaffoldService;
|
|
191
186
|
constructor(templatesPath) {
|
|
192
187
|
this.templatesPath = templatesPath;
|
|
193
|
-
this.templateService = new
|
|
188
|
+
this.templateService = new require_ListScaffoldingMethodsTool.TemplateService();
|
|
194
189
|
const fileSystemService = new require_ListScaffoldingMethodsTool.FileSystemService();
|
|
195
|
-
this.scaffoldService = new
|
|
190
|
+
this.scaffoldService = new require_ListScaffoldingMethodsTool.ScaffoldService(fileSystemService, new require_ListScaffoldingMethodsTool.ScaffoldConfigLoader(fileSystemService, this.templateService), new require_ListScaffoldingMethodsTool.VariableReplacementService(fileSystemService, this.templateService), templatesPath);
|
|
196
191
|
}
|
|
197
192
|
/**
|
|
198
193
|
* Scans all scaffold.yaml files and returns available boilerplates with pagination
|
|
@@ -258,23 +253,24 @@ var BoilerplateService = class {
|
|
|
258
253
|
*/
|
|
259
254
|
async useBoilerplate(request) {
|
|
260
255
|
let { boilerplateName, variables, monolith, targetFolderOverride } = request;
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
256
|
+
let projectConfig = null;
|
|
257
|
+
if (monolith === void 0 || monolith && !boilerplateName) try {
|
|
258
|
+
projectConfig = await __agiflowai_aicode_utils.ProjectConfigResolver.resolveProjectConfig(process.cwd());
|
|
259
|
+
} catch (_error) {}
|
|
260
|
+
if (monolith === void 0) if (projectConfig) {
|
|
261
|
+
monolith = projectConfig.type === "monolith";
|
|
262
|
+
__agiflowai_aicode_utils.log.info(`Auto-detected project type: ${projectConfig.type}`);
|
|
263
|
+
} else {
|
|
266
264
|
monolith = false;
|
|
267
265
|
__agiflowai_aicode_utils.log.info("No project configuration found, defaulting to monorepo mode");
|
|
268
266
|
}
|
|
269
|
-
if (monolith && !boilerplateName)
|
|
270
|
-
boilerplateName =
|
|
267
|
+
if (monolith && !boilerplateName) if (projectConfig) {
|
|
268
|
+
boilerplateName = projectConfig.sourceTemplate;
|
|
271
269
|
__agiflowai_aicode_utils.log.info(`Using boilerplate from toolkit.yaml: ${boilerplateName}`);
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
};
|
|
277
|
-
}
|
|
270
|
+
} else return {
|
|
271
|
+
success: false,
|
|
272
|
+
message: "Failed to read boilerplate name from toolkit.yaml: No project configuration found"
|
|
273
|
+
};
|
|
278
274
|
if (!boilerplateName) return {
|
|
279
275
|
success: false,
|
|
280
276
|
message: "Missing required parameter: boilerplateName"
|
|
@@ -1193,7 +1189,7 @@ var ListBoilerplatesTool = class ListBoilerplatesTool {
|
|
|
1193
1189
|
isMonolith;
|
|
1194
1190
|
constructor(templatesPath, isMonolith = false) {
|
|
1195
1191
|
this.boilerplateService = new BoilerplateService(templatesPath);
|
|
1196
|
-
this.templateService = new
|
|
1192
|
+
this.templateService = new require_ListScaffoldingMethodsTool.TemplateService();
|
|
1197
1193
|
this.isMonolith = isMonolith;
|
|
1198
1194
|
}
|
|
1199
1195
|
/**
|
|
@@ -1250,7 +1246,7 @@ var UseBoilerplateTool = class UseBoilerplateTool {
|
|
|
1250
1246
|
isMonolith;
|
|
1251
1247
|
constructor(templatesPath, isMonolith = false) {
|
|
1252
1248
|
this.boilerplateService = new BoilerplateService(templatesPath);
|
|
1253
|
-
this.templateService = new
|
|
1249
|
+
this.templateService = new require_ListScaffoldingMethodsTool.TemplateService();
|
|
1254
1250
|
this.isMonolith = isMonolith;
|
|
1255
1251
|
}
|
|
1256
1252
|
/**
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { t as ListScaffoldingMethodsTool } from "./ListScaffoldingMethodsTool-
|
|
2
|
-
import "./TemplateService-CVDL2uqt.mjs";
|
|
1
|
+
import { t as ListScaffoldingMethodsTool } from "./ListScaffoldingMethodsTool-D3ecmSLf.mjs";
|
|
3
2
|
import { TemplatesManagerService } from "@agiflowai/aicode-utils";
|
|
4
3
|
import { DECISION_ALLOW, DECISION_DENY, DECISION_SKIP, ExecutionLogService } from "@agiflowai/hooks-adapter";
|
|
5
4
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { t as ListScaffoldingMethodsTool } from "./ListScaffoldingMethodsTool-
|
|
2
|
-
import "./TemplateService-CVDL2uqt.mjs";
|
|
1
|
+
import { t as ListScaffoldingMethodsTool } from "./ListScaffoldingMethodsTool-D3ecmSLf.mjs";
|
|
3
2
|
import path from "node:path";
|
|
4
3
|
import { ProjectFinderService, TemplatesManagerService } from "@agiflowai/aicode-utils";
|
|
5
4
|
import fs from "node:fs/promises";
|
|
@@ -29,6 +28,11 @@ var UseScaffoldMethodHook = class {
|
|
|
29
28
|
decision: DECISION_SKIP,
|
|
30
29
|
message: "Not a file write operation"
|
|
31
30
|
};
|
|
31
|
+
const absoluteFilePath = path.isAbsolute(filePath) ? filePath : path.join(context.cwd, filePath);
|
|
32
|
+
if (!absoluteFilePath.startsWith(context.cwd + path.sep) && absoluteFilePath !== context.cwd) return {
|
|
33
|
+
decision: DECISION_SKIP,
|
|
34
|
+
message: "File is outside working directory - skipping scaffold method check"
|
|
35
|
+
};
|
|
32
36
|
const executionLog = new ExecutionLogService(context.session_id);
|
|
33
37
|
if (await executionLog.hasExecuted({
|
|
34
38
|
filePath,
|
|
@@ -43,9 +47,7 @@ var UseScaffoldMethodHook = class {
|
|
|
43
47
|
message: "Templates folder not found - skipping scaffold method check"
|
|
44
48
|
};
|
|
45
49
|
const tool = new ListScaffoldingMethodsTool(templatesPath, false);
|
|
46
|
-
const
|
|
47
|
-
const absoluteFilePath = path.isAbsolute(filePath) ? filePath : path.join(context.cwd, filePath);
|
|
48
|
-
const projectPath = (await projectFinder.findProjectForFile(absoluteFilePath))?.root || context.cwd;
|
|
50
|
+
const projectPath = (await new ProjectFinderService(await TemplatesManagerService.getWorkspaceRoot(context.cwd)).findProjectForFile(absoluteFilePath))?.root || context.cwd;
|
|
49
51
|
const result = await tool.execute({ projectPath });
|
|
50
52
|
const firstContent = result.content[0];
|
|
51
53
|
if (firstContent?.type !== "text") return {
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_ListScaffoldingMethodsTool = require('./ListScaffoldingMethodsTool-DuYGFDwJ.cjs');
|
|
3
|
-
require('./TemplateService-7QcWREot.cjs');
|
|
1
|
+
const require_ListScaffoldingMethodsTool = require('./ListScaffoldingMethodsTool-D7S3xpJE.cjs');
|
|
4
2
|
let __agiflowai_aicode_utils = require("@agiflowai/aicode-utils");
|
|
5
3
|
let __agiflowai_hooks_adapter = require("@agiflowai/hooks-adapter");
|
|
6
4
|
|