refactor: remove forwarding exports and redundant aliases
This commit is contained in:
@@ -4,7 +4,7 @@ import {
|
||||
} from "../domain/analysisView/analysisView.js";
|
||||
import type { ToolContract } from "./toolContractTypes.js";
|
||||
import { toolContractMetadata } from "./toolEffects.js";
|
||||
import { evidenceResultOf } from "./toolOutputSchemas.js";
|
||||
import { evidenceResultOf } from "./toolOutputSchemaPrimitives.js";
|
||||
|
||||
const RETAINED_EXAMPLE_ID = `ev_${"a".repeat(64)}`;
|
||||
|
||||
|
||||
@@ -24,15 +24,15 @@ import {
|
||||
appleApplicationProjectionInputSchema,
|
||||
appleApplicationProjectionResultSchema,
|
||||
} from "../domain/apple/appleApplication.js";
|
||||
import type { ToolContract } from "./toolContracts.js";
|
||||
import type { ToolContract } from "./toolContractTypes.js";
|
||||
import { toolContractMetadata } from "./toolEffects.js";
|
||||
import { evidenceResultOf } from "./toolOutputSchemas.js";
|
||||
import { evidenceResultOf } from "./toolOutputSchemaPrimitives.js";
|
||||
import {
|
||||
JAVASCRIPT_APPLICATION_VERSION_COMPARISON_EXAMPLE,
|
||||
JAVASCRIPT_EXPORT_SHAPE_COMPARISON_EXAMPLE,
|
||||
JAVASCRIPT_FEATURE_TRACE_EXAMPLE,
|
||||
SOURCE_TO_BUNDLE_COMPARISON_EXAMPLE,
|
||||
} from "./javascript/javascriptApplicationWorkflowExamples.js";
|
||||
import { JAVASCRIPT_EXPORT_SHAPE_COMPARISON_EXAMPLE } from "./javascript/javascriptExportShapeComparisonExample.js";
|
||||
import {
|
||||
ANDROID_APPLICATION_GRAPH_EXAMPLE,
|
||||
APPLE_APPLICATION_GRAPH_EXAMPLE,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { z } from "zod";
|
||||
|
||||
import type { ToolContract } from "./toolContracts.js";
|
||||
import { artifactOutputSchemas } from "./toolOutputSchemas.js";
|
||||
import type { ToolContract } from "./toolContractTypes.js";
|
||||
import { artifactOutputSchemas } from "./toolOutputSchemaGroups.js";
|
||||
import { jsonValueSchema } from "../domain/jsonValue.js";
|
||||
import { toolContractMetadata } from "./toolEffects.js";
|
||||
import { requireOutputSchema } from "./toolOutputSchemaPrimitives.js";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { ToolContract } from "./toolContracts.js";
|
||||
import type { ToolContract } from "./toolContractTypes.js";
|
||||
import { toolContractMetadata } from "./toolEffects.js";
|
||||
import { evidenceResultOf } from "./toolOutputSchemas.js";
|
||||
import { evidenceResultOf } from "./toolOutputSchemaPrimitives.js";
|
||||
import { browserScenarioInputSchema } from "../domain/browserScenario.js";
|
||||
import { browserScenarioCaptureSchema } from "../domain/browserScenarioCapture.js";
|
||||
import type { JsonValue } from "../domain/jsonValue.js";
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
import type { ToolContract } from "./toolContracts.js";
|
||||
import type { ToolContract } from "./toolContractTypes.js";
|
||||
import {
|
||||
browserTargetListSchema,
|
||||
inspectWebPageInputSchema,
|
||||
listBrowserTargetsInputSchema,
|
||||
webPageInspectionSchema,
|
||||
} from "../domain/browserObservation.js";
|
||||
import {
|
||||
browserTargetListSchema,
|
||||
webPageInspectionSchema,
|
||||
} from "../domain/browserObservationSchemas.js";
|
||||
import {
|
||||
analyzeWebBundleInputSchema,
|
||||
webBundleAnalysisSchema,
|
||||
@@ -28,19 +30,20 @@ import {
|
||||
webScreenshotSchema,
|
||||
} from "../domain/webScreenshot.js";
|
||||
import { toolContractMetadata } from "./toolEffects.js";
|
||||
import { evidenceResultOf } from "./toolOutputSchemas.js";
|
||||
import { evidenceResultOf } from "./toolOutputSchemaPrimitives.js";
|
||||
|
||||
const evidenceResult = evidenceResultOf;
|
||||
const listOutputSchema = evidenceResult(browserTargetListSchema);
|
||||
const inspectionOutputSchema = evidenceResult(webPageInspectionSchema);
|
||||
const bundleOutputSchema = evidenceResult(webBundleAnalysisSchema);
|
||||
const observationSessionOutputSchema = evidenceResult(
|
||||
const listOutputSchema = evidenceResultOf(browserTargetListSchema);
|
||||
const inspectionOutputSchema = evidenceResultOf(webPageInspectionSchema);
|
||||
const bundleOutputSchema = evidenceResultOf(webBundleAnalysisSchema);
|
||||
const observationSessionOutputSchema = evidenceResultOf(
|
||||
webObservationSessionSchema,
|
||||
);
|
||||
const webMcpOutputSchema = evidenceResult(webMcpDiscoverySchema);
|
||||
const captureDiffOutputSchema = evidenceResult(browserCaptureComparisonSchema);
|
||||
const screenshotOutputSchema = evidenceResult(webScreenshotSchema);
|
||||
const screenshotDiffOutputSchema = evidenceResult(webScreenshotDiffSchema);
|
||||
const webMcpOutputSchema = evidenceResultOf(webMcpDiscoverySchema);
|
||||
const captureDiffOutputSchema = evidenceResultOf(
|
||||
browserCaptureComparisonSchema,
|
||||
);
|
||||
const screenshotOutputSchema = evidenceResultOf(webScreenshotSchema);
|
||||
const screenshotDiffOutputSchema = evidenceResultOf(webScreenshotDiffSchema);
|
||||
|
||||
const endpoint = "http://127.0.0.1:9222";
|
||||
const origin = "https://app.example.test";
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
import { z } from "zod";
|
||||
|
||||
import { enhancedInputSchemas } from "./enhancedInputs.js";
|
||||
import {
|
||||
enhancedOutputSchemas,
|
||||
requireOutputSchema,
|
||||
} from "./toolOutputSchemas.js";
|
||||
import { enhancedOutputSchemas } from "./toolOutputSchemaGroups.js";
|
||||
import { requireOutputSchema } from "./toolOutputSchemaPrimitives.js";
|
||||
import { examplesFor } from "./toolContractHelpers.js";
|
||||
import type { ToolContract } from "./toolContractTypes.js";
|
||||
import { toolContractMetadata } from "./toolEffects.js";
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
} from "../../domain/evm/evmInterface.js";
|
||||
import type { ToolContract } from "../toolContractTypes.js";
|
||||
import { toolContractMetadata } from "../toolEffects.js";
|
||||
import { evidenceResultOf } from "../toolOutputSchemas.js";
|
||||
import { evidenceResultOf } from "../toolOutputSchemaPrimitives.js";
|
||||
|
||||
/** Target-free EVM capabilities are independent of archive/Apple artifact providers. */
|
||||
export const EVM_TOOL_CONTRACTS = [
|
||||
|
||||
@@ -3,7 +3,7 @@ import { enhancedInputSchemas } from "./enhancedInputs.js";
|
||||
import { TOOL_EXAMPLE_OVERRIDES } from "./toolContractExamples.js";
|
||||
import type { ToolContract } from "./toolContractTypes.js";
|
||||
import { toolContractMetadata } from "./toolEffects.js";
|
||||
import { enhancedOutputSchemas } from "./toolOutputSchemas.js";
|
||||
import { enhancedOutputSchemas } from "./toolOutputSchemaGroups.js";
|
||||
import { requireOutputSchema } from "./toolOutputSchemaPrimitives.js";
|
||||
|
||||
type FunctionWorkflowName = "analyze_function" | "inspect_native_api";
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
import { compareFunctions } from "../domain/functionComparison.js";
|
||||
import { createEvidence } from "../domain/evidence.js";
|
||||
import { jsonValueSchema } from "../domain/jsonValue.js";
|
||||
import {
|
||||
compareProcessCaptures,
|
||||
parseProcessCapture,
|
||||
} from "../domain/process/processCapture.js";
|
||||
import { compareProcessCaptures } from "../domain/process/processComparison.js";
|
||||
import { parseProcessCapture } from "../domain/process/processCaptureParsing.js";
|
||||
import { FUNCTION_COMPARISON_EXAMPLE } from "./functionComparisonExample.js";
|
||||
import { EMPTY_PROCESS_CAPTURE_EXAMPLE } from "./process/processCaptureExample.js";
|
||||
import { EMPTY_PROCESS_CAPTURE_EXAMPLE } from "../domain/process/processCaptureExample.js";
|
||||
|
||||
import { compareFunctions } from "../domain/functionComparison.js";
|
||||
const comparison = compareFunctions(
|
||||
FUNCTION_COMPARISON_EXAMPLE.left,
|
||||
FUNCTION_COMPARISON_EXAMPLE.right,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { ToolContract } from "../toolContracts.js";
|
||||
import type { ToolContract } from "../toolContractTypes.js";
|
||||
import { toolContractMetadata } from "../toolEffects.js";
|
||||
import { evidenceResultOf } from "../toolOutputSchemas.js";
|
||||
import { evidenceResultOf } from "../toolOutputSchemaPrimitives.js";
|
||||
import {
|
||||
electronPageInspectionSchema,
|
||||
electronTargetListSchema,
|
||||
|
||||
@@ -46,7 +46,6 @@ const TRACE_SEED = {
|
||||
match: "exact" as const,
|
||||
case_sensitive: false,
|
||||
};
|
||||
|
||||
/** Natural trace request with the producer's complete Evidence inline. */
|
||||
export const JAVASCRIPT_FEATURE_TRACE_EXAMPLE = {
|
||||
application: JAVASCRIPT_APPLICATION_EVIDENCE_EXAMPLE,
|
||||
@@ -101,5 +100,3 @@ export const SOURCE_TO_BUNDLE_COMPARISON_EXAMPLE = {
|
||||
}),
|
||||
application: JAVASCRIPT_APPLICATION_EVIDENCE_EXAMPLE,
|
||||
};
|
||||
|
||||
export { JAVASCRIPT_EXPORT_SHAPE_COMPARISON_EXAMPLE } from "./javascriptExportShapeComparisonExample.js";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { ToolContract } from "../toolContracts.js";
|
||||
import type { ToolContract } from "../toolContractTypes.js";
|
||||
import { toolContractMetadata } from "../toolEffects.js";
|
||||
import { evidenceResultOf } from "../toolOutputSchemas.js";
|
||||
import { evidenceResultOf } from "../toolOutputSchemaPrimitives.js";
|
||||
import {
|
||||
javascriptRuntimeObservationSchema,
|
||||
javascriptRuntimeTargetListSchema,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { z } from "zod";
|
||||
|
||||
import type { ToolContract } from "../toolContracts.js";
|
||||
import { managedOutputSchemas } from "../toolOutputSchemas.js";
|
||||
import type { ToolContract } from "../toolContractTypes.js";
|
||||
import { managedOutputSchemas } from "../toolOutputSchemaGroups.js";
|
||||
import { toolContractMetadata } from "../toolEffects.js";
|
||||
import { requireOutputSchema } from "../toolOutputSchemaPrimitives.js";
|
||||
import {
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
} from "../../domain/localPath.js";
|
||||
|
||||
/** Exact caller boundary for execution-free PE/CLI triage and identity. */
|
||||
const managedTargetInputSchema = z.strictObject({
|
||||
export const managedTargetInputSchema = z.strictObject({
|
||||
path: localPathStringSchema
|
||||
.refine(isAbsoluteLocalPath, {
|
||||
message:
|
||||
@@ -22,14 +22,6 @@ const managedTargetInputSchema = z.strictObject({
|
||||
.optional(),
|
||||
});
|
||||
|
||||
export const managedArtifactInputSchema = managedTargetInputSchema;
|
||||
|
||||
/** Exact caller boundary for execution-free metadata/signature/IL inspection. */
|
||||
export const managedMemberInputSchema = managedTargetInputSchema;
|
||||
|
||||
/** Exact caller boundary for execution-free managed/native boundary inspection. */
|
||||
export const managedNativeBoundaryInputSchema = managedTargetInputSchema;
|
||||
|
||||
const outputSchema = requireOutputSchema(
|
||||
managedOutputSchemas,
|
||||
"inspect_managed_artifact",
|
||||
@@ -51,7 +43,7 @@ export const MANAGED_TOOL_CONTRACTS = [
|
||||
description:
|
||||
"Open and classify an explicit managed PE/CLI path, or inspect the active managed target, then inventory exact assembly/module identity, target framework evidence, references, resources, and custom attributes without loading or executing target code. Returns complete inline inventories when metadata is admitted and explicit partial or malformed coverage otherwise.",
|
||||
kind: "managed-provider",
|
||||
inputSchema: managedArtifactInputSchema,
|
||||
inputSchema: managedTargetInputSchema,
|
||||
outputSchema,
|
||||
examples: [
|
||||
{
|
||||
@@ -66,7 +58,7 @@ export const MANAGED_TOOL_CONTRACTS = [
|
||||
description:
|
||||
"Inspect PE/CLI metadata members, signatures, raw CIL hashes, decoded-instruction-tuple hashes, separately reported exception regions, call edges, and field-access anchors without loading or executing target code. Metadata tokens are reported as build-local coordinates bound to the artifact SHA-256 and MVID; the tuple hash does not resolve them or fully commit control flow.",
|
||||
kind: "managed-provider",
|
||||
inputSchema: managedMemberInputSchema,
|
||||
inputSchema: managedTargetInputSchema,
|
||||
outputSchema: memberOutputSchema,
|
||||
examples: [
|
||||
{
|
||||
@@ -81,7 +73,7 @@ export const MANAGED_TOOL_CONTRACTS = [
|
||||
description:
|
||||
"Inspect PE/CLI ModuleRef, ImplMap/PInvoke declarations, CLI native-header indicators, and non-IL method implementation flags without loading or executing target code. Results are managed declarations and degraded native-boundary observations, not verified native exports or addresses.",
|
||||
kind: "managed-provider",
|
||||
inputSchema: managedNativeBoundaryInputSchema,
|
||||
inputSchema: managedTargetInputSchema,
|
||||
outputSchema: nativeBoundaryOutputSchema,
|
||||
examples: [
|
||||
{
|
||||
|
||||
@@ -2,8 +2,8 @@ import { z } from "zod";
|
||||
import { evidenceSchema } from "../../domain/evidence.js";
|
||||
|
||||
import { managedReconstructionImportInputSchema } from "../../domain/managed/managedReconstruction.js";
|
||||
import type { ToolContract } from "../toolContracts.js";
|
||||
import { managedWorkflowOutputSchemas } from "../toolOutputSchemas.js";
|
||||
import type { ToolContract } from "../toolContractTypes.js";
|
||||
import { managedWorkflowOutputSchemas } from "../toolOutputSchemaGroups.js";
|
||||
import {
|
||||
MANAGED_MEMBER_COMPARISON_EXAMPLE,
|
||||
MANAGED_NATIVE_VERIFICATION_EXAMPLE,
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
} from "../../domain/native/binaryLayout.js";
|
||||
import type { ToolContract } from "../toolContractTypes.js";
|
||||
import { toolContractMetadata } from "../toolEffects.js";
|
||||
import { evidenceResultOf } from "../toolOutputSchemas.js";
|
||||
import { evidenceResultOf } from "../toolOutputSchemaPrimitives.js";
|
||||
|
||||
/** Offline binary diagnostics are independent of macOS process/UI providers. */
|
||||
export const BINARY_DIAGNOSTICS_TOOL_CONTRACTS = [
|
||||
|
||||
@@ -5,8 +5,8 @@ import {
|
||||
nativeUiScenarioInputSchema,
|
||||
} from "../../domain/native/nativeUiObservation.js";
|
||||
|
||||
import type { ToolContract } from "../toolContracts.js";
|
||||
import { nativeOutputSchemas } from "../toolOutputSchemas.js";
|
||||
import type { ToolContract } from "../toolContractTypes.js";
|
||||
import { nativeOutputSchemas } from "../toolOutputSchemaGroups.js";
|
||||
import { jsonValueSchema } from "../../domain/jsonValue.js";
|
||||
import { localPathStringSchema } from "../../domain/localPath.js";
|
||||
import { toolContractMetadata } from "../toolEffects.js";
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
import { z } from "zod";
|
||||
import { nativeFunctionAnnotationsInputSchema } from "../domain/native/nativeFunctionAnnotations.js";
|
||||
|
||||
import {
|
||||
officialOutputSchemas,
|
||||
requireOutputSchema,
|
||||
} from "./toolOutputSchemas.js";
|
||||
import { officialOutputSchemas } from "./toolOutputSchemaGroups.js";
|
||||
import { requireOutputSchema } from "./toolOutputSchemaPrimitives.js";
|
||||
import {
|
||||
address,
|
||||
document,
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Minimal valid process capture retained as a public contract example. */
|
||||
export { EMPTY_PROCESS_CAPTURE_EXAMPLE } from "../../domain/process/processCaptureExample.js";
|
||||
@@ -3,7 +3,7 @@ import { describe, expect, it } from "vitest";
|
||||
import { browserScenarioBrowserSchema } from "../domain/browserScenarioValues.js";
|
||||
import { firmwareInputSchemas } from "../domain/firmware/firmwareAnalysis.js";
|
||||
import { electronActiveObservationInputSchema } from "../domain/javascript/electronActiveObservation.js";
|
||||
import { managedArtifactInputSchema } from "./managed/managedToolContracts.js";
|
||||
import { managedTargetInputSchema } from "./managed/managedToolContracts.js";
|
||||
import { exportEvidenceBundleInputSchema } from "./sessionToolContracts.js";
|
||||
import {
|
||||
closeBinaryInputSchema,
|
||||
@@ -48,10 +48,10 @@ const cases: readonly PathCase[] = [
|
||||
},
|
||||
{
|
||||
name: "managed target",
|
||||
accepts: (path) => managedArtifactInputSchema.safeParse({ path }).success,
|
||||
accepts: (path) => managedTargetInputSchema.safeParse({ path }).success,
|
||||
relative: ["bin/app.dll"],
|
||||
absolute: "/tmp/app.dll",
|
||||
omitted: () => managedArtifactInputSchema.safeParse({}).success,
|
||||
omitted: () => managedTargetInputSchema.safeParse({}).success,
|
||||
},
|
||||
{
|
||||
name: "open binary target",
|
||||
|
||||
@@ -4,30 +4,32 @@ import {
|
||||
isAbsoluteLocalPath,
|
||||
localPathStringSchema,
|
||||
} from "../domain/localPath.js";
|
||||
import { artifactComparisonInputSchema } from "../domain/artifactComparison.js";
|
||||
import { bundleComparisonInputSchema } from "../domain/bundleComparison.js";
|
||||
import { callPathInputSchema } from "../domain/callPathSchemas.js";
|
||||
import { changedBehaviorInputSchema } from "../domain/changedBehavior.js";
|
||||
import { functionComparisonInputSchema } from "../domain/functionComparisonSchemas.js";
|
||||
import { processScenarioSchema } from "../domain/process/processScenario.js";
|
||||
import {
|
||||
sessionOutputSchemas,
|
||||
requireOutputSchema,
|
||||
} from "./toolOutputSchemas.js";
|
||||
recordUnknownInputSchema,
|
||||
updateUnknownInputSchema,
|
||||
} from "../domain/residualUnknown.js";
|
||||
import { reconstructionVerificationInputSchema } from "../domain/reconstructionVerificationSchemas.js";
|
||||
import { staticRuntimeCorrelationInputSchema } from "../domain/staticRuntimeCorrelation.js";
|
||||
import { sessionOutputSchemas } from "./toolOutputSchemaGroups.js";
|
||||
import { requireOutputSchema } from "./toolOutputSchemaPrimitives.js";
|
||||
import {
|
||||
closeBinaryInputSchema,
|
||||
openBinaryInputSchema,
|
||||
} from "./sessionLifecycleInputs.js";
|
||||
import { binarySessionInputSchema } from "./sessionStatusContract.js";
|
||||
import {
|
||||
addressContextInputSchema,
|
||||
artifactComparisonInputSchema,
|
||||
binarySessionInputSchema,
|
||||
bundleComparisonInputSchema,
|
||||
callPathInputSchema,
|
||||
changedBehaviorInputSchema,
|
||||
closeBinaryInputSchema,
|
||||
functionComparisonInputSchema,
|
||||
importEvidenceBundleInputSchema,
|
||||
listUnknownsInputSchema,
|
||||
navigationContextInputSchema,
|
||||
openBinaryInputSchema,
|
||||
processComparisonInputSchema,
|
||||
processScenarioSchema,
|
||||
reconstructionVerificationInputSchema,
|
||||
recordUnknownInputSchema,
|
||||
getEvidenceBundleInputSchema,
|
||||
staticRuntimeCorrelationInputSchema,
|
||||
updateUnknownInputSchema,
|
||||
verifyUnknownResolutionInputSchema,
|
||||
} from "./sessionToolSchemas.js";
|
||||
import { examplesFor } from "./toolContractHelpers.js";
|
||||
|
||||
@@ -5,23 +5,8 @@ import {
|
||||
localPathStringSchema,
|
||||
} from "../domain/localPath.js";
|
||||
|
||||
import { artifactComparisonInputSchema } from "../domain/artifactComparison.js";
|
||||
import { bundleComparisonInputSchema } from "../domain/bundleComparison.js";
|
||||
import { callPathInputSchema } from "../domain/callPath.js";
|
||||
import { changedBehaviorInputSchema } from "../domain/changedBehavior.js";
|
||||
import { functionComparisonInputSchema } from "../domain/functionComparison.js";
|
||||
import { processScenarioSchema } from "../domain/process/processCapture.js";
|
||||
import { processTraceSpecificationSchema } from "../domain/process/processTraceComparison.js";
|
||||
import { recordUnknownInputSchema } from "../domain/residualUnknown.js";
|
||||
import { reconstructionVerificationInputSchema } from "../domain/reconstructionVerification.js";
|
||||
import { staticRuntimeCorrelationInputSchema } from "../domain/staticRuntimeCorrelation.js";
|
||||
import { processTraceSpecificationSchema } from "../domain/process/processTraceSpecification.js";
|
||||
import { evidenceSchema } from "../domain/evidence.js";
|
||||
import { updateUnknownInputSchema } from "../domain/residualUnknown.js";
|
||||
import {
|
||||
openBinaryInputSchema,
|
||||
closeBinaryInputSchema,
|
||||
} from "./sessionLifecycleInputs.js";
|
||||
import { binarySessionInputSchema } from "./sessionStatusContract.js";
|
||||
import { prefixedDigestSchema } from "./../domain/digests.js";
|
||||
|
||||
/** Return the current canonical Evidence bundle inline. */
|
||||
@@ -71,19 +56,3 @@ export const listUnknownsInputSchema = z.strictObject({
|
||||
export const verifyUnknownResolutionInputSchema = z.strictObject({
|
||||
unknown_id: prefixedDigestSchema("unk"),
|
||||
});
|
||||
|
||||
export {
|
||||
artifactComparisonInputSchema,
|
||||
binarySessionInputSchema,
|
||||
bundleComparisonInputSchema,
|
||||
callPathInputSchema,
|
||||
changedBehaviorInputSchema,
|
||||
closeBinaryInputSchema,
|
||||
functionComparisonInputSchema,
|
||||
openBinaryInputSchema,
|
||||
processScenarioSchema,
|
||||
reconstructionVerificationInputSchema,
|
||||
recordUnknownInputSchema,
|
||||
staticRuntimeCorrelationInputSchema,
|
||||
updateUnknownInputSchema,
|
||||
};
|
||||
|
||||
@@ -19,8 +19,6 @@ import { OFFICIAL_TOOL_CONTRACTS } from "./officialToolContracts.js";
|
||||
import { ENHANCED_TOOL_CONTRACTS } from "./enhancedToolContracts.js";
|
||||
import { SESSION_TOOL_CONTRACTS } from "./sessionToolContracts.js";
|
||||
|
||||
export type { ToolContract } from "./toolContractTypes.js";
|
||||
|
||||
/** Complete ordered public inventory used by registration and verification. */
|
||||
export const TOOL_CONTRACTS = [
|
||||
...OFFICIAL_TOOL_CONTRACTS,
|
||||
|
||||
@@ -13,16 +13,14 @@ import { jsonValueSchema } from "../domain/jsonValue.js";
|
||||
import { residualUnknownSchema } from "../domain/residualUnknown.js";
|
||||
import { evidenceBundleSchema } from "../domain/evidenceBundle.js";
|
||||
|
||||
import {
|
||||
processCaptureComparisonSchema,
|
||||
processCaptureSchema,
|
||||
} from "../domain/process/processCapture.js";
|
||||
import { processCaptureComparisonSchema } from "../domain/process/processComparison.js";
|
||||
import {
|
||||
analysisBookmarkSchema,
|
||||
functionInstructionWindowSchema,
|
||||
referenceEdgeSchema,
|
||||
unresolvedCallSchema,
|
||||
analysisStringSchema,
|
||||
procedureIdentitySchema,
|
||||
} from "../domain/hopperValues.js";
|
||||
import { nativeApiInspectionResultSchema } from "../domain/native/nativeApiBoundary.js";
|
||||
import {
|
||||
@@ -44,16 +42,16 @@ import {
|
||||
managedNativeBoundaryInspectionSchema,
|
||||
} from "../domain/managed/managedArtifact.js";
|
||||
import { managedMemberComparisonResultSchema } from "../domain/managed/managedMemberComparison.js";
|
||||
import { managedNativeVerificationResultSchema } from "../domain/managed/managedNativeVerification.js";
|
||||
import { managedNativeVerificationResultSchema } from "../domain/managed/managedNativeVerificationSchemas.js";
|
||||
import { managedReconstructionImportResultSchema } from "../domain/managed/managedReconstruction.js";
|
||||
import { managedApplicationGraphResultSchema } from "../domain/managed/managedApplicationGraph.js";
|
||||
import { artifactComparisonResultSchema } from "../domain/artifactComparison.js";
|
||||
import { functionComparisonResultSchema } from "../domain/functionComparison.js";
|
||||
import { functionComparisonResultSchema } from "../domain/functionComparisonSchemas.js";
|
||||
import { bundleComparisonResultSchema } from "../domain/bundleComparison.js";
|
||||
import { changedBehaviorResultSchema } from "../domain/changedBehavior.js";
|
||||
import { callPathResultSchema } from "../domain/callPath.js";
|
||||
import { callPathResultSchema } from "../domain/callPathSchemas.js";
|
||||
import { staticRuntimeCorrelationResultSchema } from "../domain/staticRuntimeCorrelation.js";
|
||||
import { reconstructionVerificationResultSchema } from "../domain/reconstructionVerification.js";
|
||||
import { reconstructionVerificationResultSchema } from "../domain/reconstructionVerificationSchemas.js";
|
||||
import { analysisErrorProjectionSchema } from "./errorSchemas.js";
|
||||
import { nativeDispatchMetadataResultSchema } from "../domain/native/objcSwiftMetadata.js";
|
||||
import { nativeInvestigationTraceSchema } from "../domain/native/nativeInvestigationGraph.js";
|
||||
@@ -66,9 +64,8 @@ import {
|
||||
graphNode,
|
||||
lifecycleResultOf,
|
||||
nullableText,
|
||||
procedureIdentity,
|
||||
procedureInfoOutput,
|
||||
evidenceResultOf as resultOf,
|
||||
evidenceResultOf,
|
||||
segmentOutput,
|
||||
sessionProvider,
|
||||
symbolDiscoveryOutput,
|
||||
@@ -76,6 +73,7 @@ import {
|
||||
targetKindSchema,
|
||||
} from "./toolOutputSchemaPrimitives.js";
|
||||
|
||||
import { processCaptureSchema } from "../domain/process/processCapture.js";
|
||||
const contextFacetSchema = z.discriminatedUnion("state", [
|
||||
z.object({ state: z.literal("available"), value: jsonValueSchema }),
|
||||
z.object({
|
||||
@@ -98,33 +96,33 @@ const bookmarkFacetSchema = z.discriminatedUnion("state", [
|
||||
|
||||
/** Exact structured-content schemas shared by direct analysis providers. */
|
||||
export const officialOutputSchemas: Readonly<Record<string, z.ZodObject>> = {
|
||||
annotate_native_function: resultOf(nativeFunctionAnnotationsSchema),
|
||||
inspect_native_load_image: resultOf(nativeLoadImageSchema),
|
||||
inspect_native_data_type: resultOf(nativeDataTypeSchema),
|
||||
inspect_native_instruction: resultOf(nativeInstructionSchema),
|
||||
resolve_native_call_targets: resultOf(nativeCallTargetsSchema),
|
||||
address_name: resultOf(nullableText),
|
||||
comment: resultOf(nullableText),
|
||||
current_address: resultOf(z.string()),
|
||||
current_procedure: resultOf(z.string()),
|
||||
current_document: resultOf(z.string()),
|
||||
goto_address: resultOf(z.string()),
|
||||
inline_comment: resultOf(nullableText),
|
||||
list_bookmarks: resultOf(z.array(analysisBookmarkSchema)),
|
||||
list_documents: resultOf(z.array(z.string())),
|
||||
list_names: resultOf(z.array(addressedValue)),
|
||||
list_procedures: resultOf(z.array(addressedValue)),
|
||||
annotate_native_function: evidenceResultOf(nativeFunctionAnnotationsSchema),
|
||||
inspect_native_load_image: evidenceResultOf(nativeLoadImageSchema),
|
||||
inspect_native_data_type: evidenceResultOf(nativeDataTypeSchema),
|
||||
inspect_native_instruction: evidenceResultOf(nativeInstructionSchema),
|
||||
resolve_native_call_targets: evidenceResultOf(nativeCallTargetsSchema),
|
||||
address_name: evidenceResultOf(nullableText),
|
||||
comment: evidenceResultOf(nullableText),
|
||||
current_address: evidenceResultOf(z.string()),
|
||||
current_procedure: evidenceResultOf(z.string()),
|
||||
current_document: evidenceResultOf(z.string()),
|
||||
goto_address: evidenceResultOf(z.string()),
|
||||
inline_comment: evidenceResultOf(nullableText),
|
||||
list_bookmarks: evidenceResultOf(z.array(analysisBookmarkSchema)),
|
||||
list_documents: evidenceResultOf(z.array(z.string())),
|
||||
list_names: evidenceResultOf(z.array(addressedValue)),
|
||||
list_procedures: evidenceResultOf(z.array(addressedValue)),
|
||||
list_segments: segmentOutput,
|
||||
list_strings: resultOf(z.array(analysisStringSchema)),
|
||||
next_address: resultOf(z.string()),
|
||||
prev_address: resultOf(z.string()),
|
||||
procedure_address: resultOf(z.string()),
|
||||
procedure_assembly: resultOf(z.string()),
|
||||
procedure_callees: resultOf(addressList),
|
||||
procedure_callers: resultOf(addressList),
|
||||
list_strings: evidenceResultOf(z.array(analysisStringSchema)),
|
||||
next_address: evidenceResultOf(z.string()),
|
||||
prev_address: evidenceResultOf(z.string()),
|
||||
procedure_address: evidenceResultOf(z.string()),
|
||||
procedure_assembly: evidenceResultOf(z.string()),
|
||||
procedure_callees: evidenceResultOf(addressList),
|
||||
procedure_callers: evidenceResultOf(addressList),
|
||||
procedure_info: procedureInfoOutput,
|
||||
read_function_instructions: resultOf(functionInstructionWindowSchema),
|
||||
read_bytes: resultOf(
|
||||
read_function_instructions: evidenceResultOf(functionInstructionWindowSchema),
|
||||
read_bytes: evidenceResultOf(
|
||||
z.object({
|
||||
address: z.string(),
|
||||
requested_bytes: z.number().int().min(1),
|
||||
@@ -133,7 +131,7 @@ export const officialOutputSchemas: Readonly<Record<string, z.ZodObject>> = {
|
||||
complete: z.boolean(),
|
||||
}),
|
||||
),
|
||||
address_to_file_offset: resultOf(
|
||||
address_to_file_offset: evidenceResultOf(
|
||||
z.object({
|
||||
address: z.string(),
|
||||
file_offset: z.number().int().min(0).max(Number.MAX_SAFE_INTEGER),
|
||||
@@ -163,31 +161,31 @@ export const officialOutputSchemas: Readonly<Record<string, z.ZodObject>> = {
|
||||
),
|
||||
}),
|
||||
),
|
||||
procedure_references: resultOf(
|
||||
procedure_references: evidenceResultOf(
|
||||
z.object({
|
||||
procedure: procedureIdentity,
|
||||
procedure: procedureIdentitySchema,
|
||||
direction: z.enum(["incoming", "outgoing"]),
|
||||
reference_kinds_available: z.boolean().optional(),
|
||||
unresolved_calls: z.array(unresolvedCallSchema).default([]),
|
||||
references: z.array(referenceEdgeSchema),
|
||||
}),
|
||||
),
|
||||
procedure_pseudo_code: resultOf(nullableText),
|
||||
resolve_containing_procedure: resultOf(containingProcedureResolution),
|
||||
search_procedures: resultOf(
|
||||
procedure_pseudo_code: evidenceResultOf(nullableText),
|
||||
resolve_containing_procedure: evidenceResultOf(containingProcedureResolution),
|
||||
search_procedures: evidenceResultOf(
|
||||
z.array(z.object({ address: z.string(), value: z.string() })),
|
||||
),
|
||||
search_strings: resultOf(z.array(analysisStringSchema)),
|
||||
set_address_name: resultOf(z.boolean()),
|
||||
set_addresses_names: resultOf(z.record(z.string(), z.boolean())),
|
||||
set_bookmark: resultOf(z.boolean()),
|
||||
set_comment: resultOf(z.boolean()),
|
||||
set_inline_comment: resultOf(z.boolean()),
|
||||
unset_bookmark: resultOf(z.boolean()),
|
||||
xrefs: resultOf(addressList),
|
||||
search_strings: evidenceResultOf(z.array(analysisStringSchema)),
|
||||
set_address_name: evidenceResultOf(z.boolean()),
|
||||
set_addresses_names: evidenceResultOf(z.record(z.string(), z.boolean())),
|
||||
set_bookmark: evidenceResultOf(z.boolean()),
|
||||
set_comment: evidenceResultOf(z.boolean()),
|
||||
set_inline_comment: evidenceResultOf(z.boolean()),
|
||||
unset_bookmark: evidenceResultOf(z.boolean()),
|
||||
xrefs: evidenceResultOf(addressList),
|
||||
};
|
||||
|
||||
const literalTraceOutput = resultOf(
|
||||
const literalTraceOutput = evidenceResultOf(
|
||||
z.object({
|
||||
query: z.string(),
|
||||
search_mode: z.literal("literal"),
|
||||
@@ -210,7 +208,7 @@ const literalTraceOutput = resultOf(
|
||||
}),
|
||||
);
|
||||
|
||||
const callPathTraceOutput = resultOf(
|
||||
const callPathTraceOutput = evidenceResultOf(
|
||||
z.object({
|
||||
start: z.string(),
|
||||
goal: z.string().nullable(),
|
||||
@@ -264,14 +262,14 @@ const batchProcedureIdentity = z.discriminatedUnion("status", [
|
||||
|
||||
/** Exact structured-content schemas for composed analysis workflows. */
|
||||
export const enhancedOutputSchemas: Readonly<Record<string, z.ZodObject>> = {
|
||||
inspect_native_dispatch_metadata: resultOf(
|
||||
inspect_native_dispatch_metadata: evidenceResultOf(
|
||||
nativeDispatchMetadataResultSchema,
|
||||
),
|
||||
trace_native_values: resultOf(nativeValueTraceSchema),
|
||||
trace_native_ui_action: resultOf(nativeInvestigationTraceSchema),
|
||||
trace_native_values: evidenceResultOf(nativeValueTraceSchema),
|
||||
trace_native_ui_action: evidenceResultOf(nativeInvestigationTraceSchema),
|
||||
get_objc_classes: symbolDiscoveryOutput("classes"),
|
||||
get_objc_protocols: symbolDiscoveryOutput("protocols"),
|
||||
batch_decompile: resultOf(
|
||||
batch_decompile: evidenceResultOf(
|
||||
z.object({
|
||||
items: z.array(
|
||||
z.discriminatedUnion("status", [
|
||||
@@ -298,8 +296,8 @@ export const enhancedOutputSchemas: Readonly<Record<string, z.ZodObject>> = {
|
||||
failed: z.number().int().min(0),
|
||||
}),
|
||||
),
|
||||
get_call_graph: resultOf(z.record(z.string(), z.array(graphNode))),
|
||||
analyze_swift_types: resultOf(
|
||||
get_call_graph: evidenceResultOf(z.record(z.string(), z.array(graphNode))),
|
||||
analyze_swift_types: evidenceResultOf(
|
||||
z.object({
|
||||
total: z.number().int().min(0),
|
||||
categories: z.record(
|
||||
@@ -323,7 +321,7 @@ export const enhancedOutputSchemas: Readonly<Record<string, z.ZodObject>> = {
|
||||
symbol_inventory_error: analysisErrorProjectionSchema.exactOptional(),
|
||||
}),
|
||||
),
|
||||
find_xrefs_to_name: resultOf(
|
||||
find_xrefs_to_name: evidenceResultOf(
|
||||
z.discriminatedUnion("status", [
|
||||
z.object({
|
||||
status: z.literal("resolved"),
|
||||
@@ -338,7 +336,7 @@ export const enhancedOutputSchemas: Readonly<Record<string, z.ZodObject>> = {
|
||||
}),
|
||||
]),
|
||||
),
|
||||
binary_overview: resultOf(
|
||||
binary_overview: evidenceResultOf(
|
||||
z.object({
|
||||
document: z.string(),
|
||||
segments: z.array(
|
||||
@@ -355,38 +353,38 @@ export const enhancedOutputSchemas: Readonly<Record<string, z.ZodObject>> = {
|
||||
}),
|
||||
),
|
||||
analyze_function: functionDossierOutput,
|
||||
inspect_native_api: resultOf(nativeApiInspectionResultSchema),
|
||||
inspect_native_api: evidenceResultOf(nativeApiInspectionResultSchema),
|
||||
trace_feature: literalTraceOutput,
|
||||
trace_call_path: callPathTraceOutput,
|
||||
};
|
||||
|
||||
/** Exact Evidence schemas for provider-neutral native inspection. */
|
||||
export const nativeOutputSchemas: Readonly<Record<string, z.ZodObject>> = {
|
||||
observe_native_ui: resultOf(nativeUiResultSchema),
|
||||
capture_native_ui_scenario: resultOf(nativeUiResultSchema),
|
||||
observe_native_calls: resultOf(nativeCallObservationResultSchema),
|
||||
inspect_macho: resultOf(inspectMachoSchema),
|
||||
inspect_signature: resultOf(inspectSignatureSchema),
|
||||
inspect_plist: resultOf(inspectPlistSchema),
|
||||
list_architectures: resultOf(listArchitecturesSchema),
|
||||
demangle_swift: resultOf(demangleSwiftSchema),
|
||||
observe_native_ui: evidenceResultOf(nativeUiResultSchema),
|
||||
capture_native_ui_scenario: evidenceResultOf(nativeUiResultSchema),
|
||||
observe_native_calls: evidenceResultOf(nativeCallObservationResultSchema),
|
||||
inspect_macho: evidenceResultOf(inspectMachoSchema),
|
||||
inspect_signature: evidenceResultOf(inspectSignatureSchema),
|
||||
inspect_plist: evidenceResultOf(inspectPlistSchema),
|
||||
list_architectures: evidenceResultOf(listArchitecturesSchema),
|
||||
demangle_swift: evidenceResultOf(demangleSwiftSchema),
|
||||
};
|
||||
|
||||
/** Exact Evidence schemas for provider-neutral artifact graph operations. */
|
||||
export const artifactOutputSchemas: Readonly<Record<string, z.ZodObject>> = {
|
||||
inspect_artifact: resultOf(artifactInspectionResultSchema),
|
||||
extract_artifact: resultOf(artifactExtractionResultSchema),
|
||||
decode_interface_builder: resultOf(interfaceBuilderAnalysisSchema),
|
||||
inspect_keyed_archive: resultOf(keyedArchiveResultSchema),
|
||||
inspect_asset_catalog: resultOf(appleAssetCatalogResultSchema),
|
||||
trace_dylib_resolution: resultOf(dylibResolutionResultSchema),
|
||||
inspect_artifact: evidenceResultOf(artifactInspectionResultSchema),
|
||||
extract_artifact: evidenceResultOf(artifactExtractionResultSchema),
|
||||
decode_interface_builder: evidenceResultOf(interfaceBuilderAnalysisSchema),
|
||||
inspect_keyed_archive: evidenceResultOf(keyedArchiveResultSchema),
|
||||
inspect_asset_catalog: evidenceResultOf(appleAssetCatalogResultSchema),
|
||||
trace_dylib_resolution: evidenceResultOf(dylibResolutionResultSchema),
|
||||
};
|
||||
|
||||
/** Exact Evidence schema for execution-free managed static analysis. */
|
||||
export const managedOutputSchemas: Readonly<Record<string, z.ZodObject>> = {
|
||||
inspect_managed_artifact: resultOf(managedArtifactInspectionSchema),
|
||||
inspect_managed_members: resultOf(managedMemberInspectionSchema),
|
||||
inspect_managed_native_boundaries: resultOf(
|
||||
inspect_managed_artifact: evidenceResultOf(managedArtifactInspectionSchema),
|
||||
inspect_managed_members: evidenceResultOf(managedMemberInspectionSchema),
|
||||
inspect_managed_native_boundaries: evidenceResultOf(
|
||||
managedNativeBoundaryInspectionSchema,
|
||||
),
|
||||
};
|
||||
@@ -395,14 +393,16 @@ export const managedOutputSchemas: Readonly<Record<string, z.ZodObject>> = {
|
||||
export const managedWorkflowOutputSchemas: Readonly<
|
||||
Record<string, z.ZodObject>
|
||||
> = {
|
||||
compare_managed_members: resultOf(managedMemberComparisonResultSchema),
|
||||
verify_managed_native_boundaries: resultOf(
|
||||
compare_managed_members: evidenceResultOf(
|
||||
managedMemberComparisonResultSchema,
|
||||
),
|
||||
verify_managed_native_boundaries: evidenceResultOf(
|
||||
managedNativeVerificationResultSchema,
|
||||
),
|
||||
import_managed_reconstruction: resultOf(
|
||||
import_managed_reconstruction: evidenceResultOf(
|
||||
managedReconstructionImportResultSchema,
|
||||
),
|
||||
project_managed_application_graph: resultOf(
|
||||
project_managed_application_graph: evidenceResultOf(
|
||||
managedApplicationGraphResultSchema,
|
||||
),
|
||||
};
|
||||
@@ -495,15 +495,19 @@ export const sessionOutputSchemas = {
|
||||
total: z.number().int().min(0),
|
||||
}),
|
||||
),
|
||||
capture_process_scenario: resultOf(processCaptureSchema),
|
||||
compare_process_captures: resultOf(processCaptureComparisonSchema),
|
||||
compare_artifacts: resultOf(artifactComparisonResultSchema),
|
||||
compare_functions: resultOf(functionComparisonResultSchema),
|
||||
compare_bundles: resultOf(bundleComparisonResultSchema),
|
||||
find_changed_behavior: resultOf(changedBehaviorResultSchema),
|
||||
build_call_path: resultOf(callPathResultSchema),
|
||||
correlate_static_and_runtime: resultOf(staticRuntimeCorrelationResultSchema),
|
||||
verify_reconstruction: resultOf(reconstructionVerificationResultSchema),
|
||||
capture_process_scenario: evidenceResultOf(processCaptureSchema),
|
||||
compare_process_captures: evidenceResultOf(processCaptureComparisonSchema),
|
||||
compare_artifacts: evidenceResultOf(artifactComparisonResultSchema),
|
||||
compare_functions: evidenceResultOf(functionComparisonResultSchema),
|
||||
compare_bundles: evidenceResultOf(bundleComparisonResultSchema),
|
||||
find_changed_behavior: evidenceResultOf(changedBehaviorResultSchema),
|
||||
build_call_path: evidenceResultOf(callPathResultSchema),
|
||||
correlate_static_and_runtime: evidenceResultOf(
|
||||
staticRuntimeCorrelationResultSchema,
|
||||
),
|
||||
verify_reconstruction: evidenceResultOf(
|
||||
reconstructionVerificationResultSchema,
|
||||
),
|
||||
list_unknowns: lifecycleResultOf(
|
||||
z.object({
|
||||
items: z.array(residualUnknownSchema),
|
||||
|
||||
@@ -30,7 +30,6 @@ export const evidenceResultOf = <Schema extends z.ZodType>(schema: Schema) =>
|
||||
.strictObject({ ...evidenceSchema.shape, normalized_result: schema })
|
||||
.superRefine(validateAnalysisProfileProvider);
|
||||
|
||||
const resultOf = evidenceResultOf;
|
||||
/** Wrap a lifecycle result while preserving its exact schema type. */
|
||||
export const lifecycleResultOf = <Schema extends z.ZodType>(schema: Schema) =>
|
||||
z.object({ result: schema });
|
||||
@@ -406,14 +405,11 @@ export const addressedEntry = z.object({
|
||||
address: z.string(),
|
||||
name: z.string(),
|
||||
});
|
||||
export const procedureIdentity = procedureIdentitySchema;
|
||||
const localVariable = localVariableSchema;
|
||||
|
||||
export const containingProcedureResolution = z.discriminatedUnion("found", [
|
||||
z.object({
|
||||
query_address: z.string(),
|
||||
found: z.literal(true),
|
||||
procedure: procedureIdentity,
|
||||
procedure: procedureIdentitySchema,
|
||||
}),
|
||||
z.object({
|
||||
query_address: z.string(),
|
||||
@@ -476,18 +472,18 @@ const memoryRegionOutput = z.object({
|
||||
overlay: z.boolean().optional(),
|
||||
});
|
||||
|
||||
export const segmentOutput = resultOf(
|
||||
export const segmentOutput = evidenceResultOf(
|
||||
z.array(memoryRegionOutput.extend({ sections: z.array(memoryRegionOutput) })),
|
||||
);
|
||||
|
||||
export const procedureInfoOutput = resultOf(
|
||||
export const procedureInfoOutput = evidenceResultOf(
|
||||
z.object({
|
||||
name: z.string(),
|
||||
entrypoint: z.string(),
|
||||
basicblock_count: z.number().int().min(0),
|
||||
length: z.number().min(0),
|
||||
signature: nullableText,
|
||||
locals: z.array(localVariable),
|
||||
locals: z.array(localVariableSchema),
|
||||
classification: procedureClassificationSchema.nullable().default(null),
|
||||
body: functionBodySchema.default({
|
||||
available: false,
|
||||
@@ -497,7 +493,7 @@ export const procedureInfoOutput = resultOf(
|
||||
);
|
||||
|
||||
export const symbolDiscoveryOutput = (property: "classes" | "protocols") =>
|
||||
resultOf(
|
||||
evidenceResultOf(
|
||||
z.object({
|
||||
count: z.number().int().min(0),
|
||||
[property]: z.array(addressedEntry),
|
||||
@@ -517,4 +513,4 @@ export const graphNode = z.discriminatedUnion("status", [
|
||||
}),
|
||||
]);
|
||||
|
||||
export const functionDossierOutput = resultOf(functionDossierSchema);
|
||||
export const functionDossierOutput = evidenceResultOf(functionDossierSchema);
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
export * from "./toolOutputSchemaPrimitives.js";
|
||||
export * from "./toolOutputSchemaGroups.js";
|
||||
@@ -2,9 +2,9 @@ import {
|
||||
inspectWebNetworkCaptureInputSchema,
|
||||
webNetworkCaptureSchema,
|
||||
} from "../domain/webNetworkCapture.js";
|
||||
import type { ToolContract } from "./toolContracts.js";
|
||||
import type { ToolContract } from "./toolContractTypes.js";
|
||||
import { toolContractMetadata } from "./toolEffects.js";
|
||||
import { evidenceResultOf } from "./toolOutputSchemas.js";
|
||||
import { evidenceResultOf } from "./toolOutputSchemaPrimitives.js";
|
||||
|
||||
/** Historical inspection is distinct from live browser capture and runtime authority. */
|
||||
export const WEB_NETWORK_CAPTURE_TOOL_CONTRACTS = [
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { ToolContract } from "./toolContracts.js";
|
||||
import type { ToolContract } from "./toolContractTypes.js";
|
||||
import { toolContractMetadata } from "./toolEffects.js";
|
||||
import { evidenceResultOf } from "./toolOutputSchemas.js";
|
||||
import { evidenceResultOf } from "./toolOutputSchemaPrimitives.js";
|
||||
import {
|
||||
observeWebExecutionInputSchema,
|
||||
webExecutionSchema,
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
webModuleTraceResultSchema,
|
||||
} from "../domain/webModuleTrace.js";
|
||||
import { toolContractMetadata } from "./toolEffects.js";
|
||||
import { evidenceResultOf } from "./toolOutputSchemas.js";
|
||||
import { evidenceResultOf } from "./toolOutputSchemaPrimitives.js";
|
||||
import {
|
||||
webSourceLocationInputSchema,
|
||||
webSourceLocationResultSchema,
|
||||
|
||||
Reference in New Issue
Block a user