@happyvertical/smrt-dev-mcp 0.47.1 → 0.47.2
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/AGENTS.md +3 -0
- package/README.md +63 -0
- package/dist/http.d.ts +95 -0
- package/dist/http.d.ts.map +1 -0
- package/dist/index.d.ts +11 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1775 -1298
- package/dist/index.js.map +1 -1
- package/dist/{knowledge-DmZ-7GO9.js → knowledge-CY6sQzpj.js} +61 -2
- package/dist/knowledge-CY6sQzpj.js.map +1 -0
- package/dist/knowledge.js +1 -1
- package/dist/server-info.d.ts +3 -0
- package/dist/server-info.d.ts.map +1 -0
- package/dist/tool-catalog.d.ts.map +1 -1
- package/dist/tools/runtime/boot.d.ts +60 -0
- package/dist/tools/runtime/boot.d.ts.map +1 -0
- package/dist/tools/runtime/connection.d.ts.map +1 -1
- package/dist/tools/runtime/observation.d.ts +31 -0
- package/dist/tools/runtime/observation.d.ts.map +1 -0
- package/dist/tools/runtime/tools.d.ts +19 -0
- package/dist/tools/runtime/tools.d.ts.map +1 -1
- package/package.json +6 -6
- package/dist/knowledge-DmZ-7GO9.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { existsSync, lstatSync, opendirSync, readFileSync, readdirSync, realpathSync } from "node:fs";
|
|
2
2
|
import { basename, dirname, isAbsolute, join, matchesGlob, relative, resolve, sep } from "node:path";
|
|
3
|
-
import { execFileSync } from "node:child_process";
|
|
4
3
|
import { createHash } from "node:crypto";
|
|
4
|
+
import { execFileSync } from "node:child_process";
|
|
5
5
|
import { AGENT_SURFACE_HASH_PREFIX, MODULE_DOC_HASH_PREFIX, discoverScopedPackageDirectories, readAgentModuleDocs, readPackageAgentDoc, resolveAgentModuleDocPaths } from "@happyvertical/smrt-core/knowledge";
|
|
6
6
|
import { toSnakeCase } from "@happyvertical/smrt-core/utils";
|
|
7
7
|
import { ManifestAdapter, OxcScanner, isAgentSurfaceSourcePath, isPrunedAgentSurfacePath, lintNumericPrecision, mergeAgentSurfaces, parseSource, scanSvelteAgentSurface, sourceMayContainNumericPrecisionIssue, sourceMayDeclareAgentSurface } from "@happyvertical/smrt-scanner";
|
|
@@ -56,6 +56,10 @@ var DATABASE_TYPE_PROPERTY = {
|
|
|
56
56
|
],
|
|
57
57
|
description: "Optional engine hint for dbUrl or the environment connection (sqlite, postgres, duckdb); inferred from the URL scheme when omitted"
|
|
58
58
|
};
|
|
59
|
+
var PROJECT_PATH_PROPERTY = {
|
|
60
|
+
type: "string",
|
|
61
|
+
description: "Project root to boot manifests from (default: the server working directory; ignored by the HTTP host, which boots once)"
|
|
62
|
+
};
|
|
59
63
|
var LIMIT_PROPERTY = {
|
|
60
64
|
type: "number",
|
|
61
65
|
description: "Row budget for result lists (default 50, capped at 500)"
|
|
@@ -638,6 +642,61 @@ var TOOLS = [
|
|
|
638
642
|
dbType: DATABASE_TYPE_PROPERTY
|
|
639
643
|
}
|
|
640
644
|
}
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
name: "runtime-registry",
|
|
648
|
+
description: "Sanitized snapshot of the booted ObjectRegistry from the project and installed manifests (booted provenance; read-only; no project code executed)",
|
|
649
|
+
inputSchema: {
|
|
650
|
+
type: "object",
|
|
651
|
+
properties: {
|
|
652
|
+
projectPath: PROJECT_PATH_PROPERTY,
|
|
653
|
+
objects: {
|
|
654
|
+
type: "array",
|
|
655
|
+
items: { type: "string" },
|
|
656
|
+
description: "Restrict field/method detail to these simple or qualified object names"
|
|
657
|
+
},
|
|
658
|
+
detail: {
|
|
659
|
+
type: "boolean",
|
|
660
|
+
description: "Include field and method detail for every object (default: only when objects is given)"
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
name: "runtime-object",
|
|
667
|
+
description: "One booted object: sanitized fields, methods, tenancy, inheritance, and the DDL the registry would generate (booted provenance; read-only)",
|
|
668
|
+
inputSchema: {
|
|
669
|
+
type: "object",
|
|
670
|
+
properties: {
|
|
671
|
+
projectPath: PROJECT_PATH_PROPERTY,
|
|
672
|
+
name: {
|
|
673
|
+
type: "string",
|
|
674
|
+
description: "Simple or qualified object name"
|
|
675
|
+
},
|
|
676
|
+
engine: {
|
|
677
|
+
type: "string",
|
|
678
|
+
enum: [
|
|
679
|
+
"sqlite",
|
|
680
|
+
"postgres",
|
|
681
|
+
"duckdb"
|
|
682
|
+
],
|
|
683
|
+
description: "Engine for the DDL preview (default: registry default)"
|
|
684
|
+
}
|
|
685
|
+
},
|
|
686
|
+
required: ["name"]
|
|
687
|
+
}
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
name: "runtime-schema-diff",
|
|
691
|
+
description: "Booted registry schemas versus the live dev database using the db:diff comparer; introspection only, drops/relaxations never proposed (runtime provenance; read-only)",
|
|
692
|
+
inputSchema: {
|
|
693
|
+
type: "object",
|
|
694
|
+
properties: {
|
|
695
|
+
projectPath: PROJECT_PATH_PROPERTY,
|
|
696
|
+
dbUrl: DATABASE_URL_PROPERTY,
|
|
697
|
+
dbType: DATABASE_TYPE_PROPERTY
|
|
698
|
+
}
|
|
699
|
+
}
|
|
641
700
|
}
|
|
642
701
|
].map((tool) => ({
|
|
643
702
|
...tool,
|
|
@@ -3240,4 +3299,4 @@ function compactKnowledgePackage(pkg) {
|
|
|
3240
3299
|
//#endregion
|
|
3241
3300
|
export { checkKnowledgeFreshness as a, diffKnowledgeIndex as c, renderKnowledgeIndexMarkdown as d, smrtArchitecture as f, TOOLS as h, buildReviewContext as i, packageDocPaths as l, REVIEW_SKILL_NAME as m, buildKnowledgeIndex as n, checkKnowledgeFreshnessFromIndex as o, smrtReview as p, buildPackageSpecialistContext as r, compactContextResult as s, buildArchitectureContext as t, renderFreshnessResult as u };
|
|
3242
3301
|
|
|
3243
|
-
//# sourceMappingURL=knowledge-
|
|
3302
|
+
//# sourceMappingURL=knowledge-CY6sQzpj.js.map
|