mirror of
https://github.com/morluto/rea.git
synced 2026-11-22 22:45:47 +00:00
refactor(contracts): declare each tool's effect audit on its contract (#11305)
* refactor(contracts): declare each tool's effect audit on its contract Every public tool's effects lived in a 255-entry TOOL_EFFECT_AUDIT table in toolEffects.ts, keyed by name and looked up again by toolContractMetadata, the capability inventory (toolSessionEffects) and tests (TOOL_EFFECTS). toolContractMetadata(name, audit) now takes the audit from the contract declaration, and the contract carries both the provider-wide effects and the session effects. The inventory reads contract.sessionEffects. The table, TOOL_EFFECTS and toolSessionEffects are removed; toolEffects.ts keeps the effect type, the shared presets and annotation derivation. Effects, session effects, annotations and titles are byte-identical for all 255 contracts. * test(contracts): read focused effect expectations from their contract family
This commit is contained in:
1 parent
ae634eb5f6
commit
717333ce9b
67 files changed
+1393
-1178
No files matched your search
@@ -5,7 +5,7 @@ import {
|
||||
inspectIl2cppMetadataInputSchema,
|
||||
} from "../../domain/il2cpp/il2cppMetadata.js";
|
||||
import type { ToolContract } from "../toolContractTypes.js";
|
||||
import { toolContractMetadata } from "../toolEffects.js";
|
||||
import { toolContractMetadata, evidenceEffects } from "../toolEffects.js";
|
||||
import { evidenceResultOf } from "../toolOutputSchemaPrimitives.js";
|
||||
|
||||
/** Static IL2CPP metadata is independent of native-analysis providers and Unity installations. */
|
||||
@@ -14,7 +14,7 @@ export const IL2CPP_TOOL_CONTRACTS = [
|
||||
name: "inspect_il2cpp_metadata",
|
||||
availability: "standalone",
|
||||
cli: true,
|
||||
...toolContractMetadata("inspect_il2cpp_metadata"),
|
||||
...toolContractMetadata("inspect_il2cpp_metadata", evidenceEffects),
|
||||
kind: "artifact-provider",
|
||||
requiresActiveTarget: true,
|
||||
description:
|
||||
|
||||
Reference in new issue
Block a user