levante 0.3.7 → 0.3.9
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/cli.js +10682 -330
- package/dist/mcp.js +7 -4
- package/package.json +7 -2
package/dist/mcp.js
CHANGED
|
@@ -33597,7 +33597,7 @@ server.registerTool("levante_scan_ast_detail", {
|
|
|
33597
33597
|
title: "Scan AST Detail",
|
|
33598
33598
|
description: "Retrieve a filtered slice of the AST scan. Requires a prior levante_scan_ast call. " + "Use to drill into routes, components, hooks, dependencies, or files.",
|
|
33599
33599
|
inputSchema: exports_external.object({
|
|
33600
|
-
category: exports_external.enum(["routes", "components", "hooks", "dependencies", "files"]).describe("Which AST category to retrieve"),
|
|
33600
|
+
category: exports_external.enum(["routes", "components", "hooks", "dependencies", "files", "navigationPatterns"]).describe("Which AST category to retrieve"),
|
|
33601
33601
|
filter: exports_external.string().optional().describe('Glob pattern to filter results (e.g. "src/app/**", "Dashboard*")'),
|
|
33602
33602
|
limit: exports_external.number().optional().describe("Max number of items to return")
|
|
33603
33603
|
})
|
|
@@ -33624,15 +33624,16 @@ server.registerTool("levante_scan_ast_detail", {
|
|
|
33624
33624
|
});
|
|
33625
33625
|
server.registerTool("levante_build_qa_map", {
|
|
33626
33626
|
title: "Build QA Map",
|
|
33627
|
-
description: "Validate and optionally write a
|
|
33627
|
+
description: "Validate and optionally write a QA map payload (V2 or V3, auto-detected by schemaVersion field). " + "Use dryRun: true to validate without writing. Returns validation result with errors, warnings, and stats.",
|
|
33628
33628
|
inputSchema: exports_external.object({
|
|
33629
|
-
payload: exports_external.any().describe("QAMapV2Payload JSON object
|
|
33629
|
+
payload: exports_external.any().describe("QAMapV2Payload or QAMapV3Payload JSON object. V3 must include schemaVersion: 3."),
|
|
33630
33630
|
output: exports_external.string().optional().describe(`Output file path (defaults to ${CONFIG_DIR}/qa-map.json)`),
|
|
33631
33631
|
dryRun: exports_external.boolean().optional().describe("If true, validate only without writing (default: false)")
|
|
33632
33632
|
})
|
|
33633
33633
|
}, async ({ payload, output, dryRun }) => {
|
|
33634
33634
|
try {
|
|
33635
|
-
const
|
|
33635
|
+
const isV3 = payload && typeof payload === "object" && payload.schemaVersion === 3;
|
|
33636
|
+
const validation = isV3 ? { valid: true, errors: [], warnings: ["V3 payload accepted; full DAG validation available via zefiro CLI"] } : validateQAMap(payload);
|
|
33636
33637
|
if (validation.valid && payload && typeof payload === "object") {
|
|
33637
33638
|
try {
|
|
33638
33639
|
const sha = execSync("git rev-parse HEAD", { encoding: "utf-8" }).trim();
|
|
@@ -33650,6 +33651,7 @@ server.registerTool("levante_build_qa_map", {
|
|
|
33650
33651
|
}
|
|
33651
33652
|
const p = payload;
|
|
33652
33653
|
const stats = validation.valid ? {
|
|
33654
|
+
sections: isV3 && Array.isArray(p?.sections) ? p.sections.length : undefined,
|
|
33653
33655
|
features: Array.isArray(p?.features) ? p.features.length : 0,
|
|
33654
33656
|
workflows: Array.isArray(p?.workflows) ? p.workflows.length : 0,
|
|
33655
33657
|
components: Array.isArray(p?.components) ? p.components.length : 0,
|
|
@@ -33660,6 +33662,7 @@ server.registerTool("levante_build_qa_map", {
|
|
|
33660
33662
|
type: "text",
|
|
33661
33663
|
text: JSON.stringify({
|
|
33662
33664
|
valid: validation.valid,
|
|
33665
|
+
schemaVersion: isV3 ? 3 : 2,
|
|
33663
33666
|
errors: validation.errors,
|
|
33664
33667
|
warnings: validation.warnings,
|
|
33665
33668
|
written,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "levante",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"levante": "./dist/cli.js",
|
|
@@ -16,7 +16,12 @@
|
|
|
16
16
|
"import": "./dist/config/schema.js"
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
|
-
"files": [
|
|
19
|
+
"files": [
|
|
20
|
+
"dist/",
|
|
21
|
+
"agents/",
|
|
22
|
+
"scripts/",
|
|
23
|
+
"templates/"
|
|
24
|
+
],
|
|
20
25
|
"scripts": {
|
|
21
26
|
"build": "bun build src/cli.ts src/index.ts src/config/schema.ts src/mcp.ts --outdir dist --target node --format esm --packages=bundle",
|
|
22
27
|
"dev": "bun run src/cli.ts"
|