init project
This commit is contained in:
Vendored
+22
@@ -0,0 +1,22 @@
|
||||
import { z } from 'zod';
|
||||
export const targetSchema = z
|
||||
.enum(['backend', 'frontend'])
|
||||
.optional()
|
||||
.describe('Which part of the project to target when both a backend (Laravel/CodeIgniter/Symfony/Django/Rails) and a frontend (React/Vue/Nuxt) were detected. Omit for single-adapter projects.');
|
||||
export const packageSchema = z
|
||||
.string()
|
||||
.optional()
|
||||
.describe('Monorepo package name or relative path (e.g. "web", "apps/api"). When set, workflow tools run against that package root instead of the workspace root. Use detect_workspace to list packages.');
|
||||
export function jsonResult(data) {
|
||||
return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] };
|
||||
}
|
||||
export function textResult(text) {
|
||||
return { content: [{ type: 'text', text }] };
|
||||
}
|
||||
export function errorResult(message) {
|
||||
return { content: [{ type: 'text', text: message }], isError: true };
|
||||
}
|
||||
export function toErrorMessage(error) {
|
||||
return error instanceof Error ? error.message : String(error);
|
||||
}
|
||||
//# sourceMappingURL=shared.js.map
|
||||
Reference in New Issue
Block a user