init project

This commit is contained in:
root
2026-07-31 13:12:54 -04:00
parent 0da92d5e02
commit f3863f760c
7215 changed files with 1860260 additions and 1 deletions
+22
View File
@@ -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