refactor: return complete tool results inline

This commit is contained in:
morluto
2026-09-29 07:08:46 +08:00
parent 2160d4fae5
commit 0d96275b68
535 changed files with 4084 additions and 13537 deletions
+1 -5
View File
@@ -43,10 +43,6 @@ const outputChunkSchema = z.object({
data: z.string().max(1_000_000),
});
/** Actionable refusal shared by CLI, MCP, and Evidence import boundaries. */
export const LEGACY_PROCESS_CAPTURE_MESSAGE =
"Process Capture v3 is unsupported. Re-run the scenario with this REA version using capture_process_scenario to produce Process Capture v4; captures cannot be upgraded because v4 requires new manifest and settlement evidence.";
/** Compute a canonical SHA-256 commitment independent of object key order. */
export const digestProcessCommitment = (value: unknown): string => {
const serialized = canonicalize(value);
@@ -78,7 +74,7 @@ const reactiveScenarioCommitment = (
})),
};
/** Build the secret-safe scenario projection committed by Process Capture v4. */
/** Build the secret-safe scenario projection committed by process-capture Evidence. */
export const processScenarioCommitment = (
scenario: ProcessScenario,
executableSha256?: string,