mirror of
https://github.com/morluto/rea.git
synced 2026-11-23 15:05:51 +00:00
feat(artifacts): inspect Maven POM and Gradle module metadata
Inspect local Maven/Gradle metadata as Evidence with bounded report/XML admission, preserved caller choices and owned cleanup. Refs #8828; broader comparison and resolution work remains outside this change. Assisted-by: Suika (gensokyo-skills:suika-scatter-gather-planning) Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
This commit is contained in:
1 parent
5ccb7c59c8
commit
05be423acb
50 files changed
+3872
-24
No files matched your search
@@ -0,0 +1,32 @@
|
||||
import {
|
||||
inspectMavenGradleMetadataInputSchema,
|
||||
mavenGradleMetadataSchema,
|
||||
} from "../../domain/java/mavenGradleMetadata.js";
|
||||
import { evidenceResultOf } from "../toolOutputSchemaPrimitives.js";
|
||||
import type { ToolContract } from "../toolContractTypes.js";
|
||||
import { evidenceEffects, toolContractMetadata } from "../toolEffects.js";
|
||||
|
||||
/** Static Maven POM and Gradle module metadata inspection is independent of active native-analysis providers. */
|
||||
export const MAVEN_GRADLE_METADATA_TOOL_CONTRACTS = [
|
||||
{
|
||||
name: "inspect_maven_gradle_metadata",
|
||||
availability: "standalone",
|
||||
cli: true,
|
||||
...toolContractMetadata("inspect_maven_gradle_metadata", evidenceEffects),
|
||||
kind: "artifact-provider",
|
||||
description:
|
||||
"Inspect a local Maven pom.xml or Gradle .module metadata file as static bytes, without running Maven or Gradle, resolving a dependency tree, or contacting a repository. Returns artifact identity, coordinates as spelled, parent and property declarations, dependency and dependencyManagement rows (scope, type, optional, classifier, exclusions, BOM import), Gradle variants and rich versions, and unresolved property or parent-coordinate references as explicit unknowns. Classification is from content, not the suffix. Malformed XML/JSON fails closed; unrecognized documents are unsupported. Resource refusals remain explicit.",
|
||||
inputSchema: inspectMavenGradleMetadataInputSchema,
|
||||
outputSchema: evidenceResultOf(mavenGradleMetadataSchema),
|
||||
examples: [
|
||||
{
|
||||
title: "Read declared Maven coordinates and a BOM import",
|
||||
input: { path: "/artifacts/pom.xml" },
|
||||
},
|
||||
{
|
||||
title: "Read Gradle module variants and version constraints",
|
||||
input: { path: "/artifacts/demo-1.2.3.module" },
|
||||
},
|
||||
],
|
||||
},
|
||||
] as const satisfies readonly ToolContract[];
|
||||
Reference in new issue
Block a user