mirror of
https://github.com/morluto/rea.git
synced 2026-11-19 21:23:45 +00:00
* fix(mcp): guide retained evidence input recovery * style(mcp): format catalog and server types * test(mcp): verify HTTP capacity recovery guidance * test(mcp): model catalog recorder imports in cleanup fixtures record-mcp-catalog.mjs loads tool contracts and the Evidence-input contract before it registers cleanup owners. The cleanup fixture still sentineled only the previous imports, so those loads failed before any owner wrote cleanup.jsonl. Track the script's read() calls and replace the new modules with the empty contract list this fault injection uses. --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
11 lines
404 B
TypeScript
11 lines
404 B
TypeScript
/** Internal registration facts derived from canonical Evidence input contracts. */
|
|
const evidenceInputs = new WeakSet<object>();
|
|
|
|
export const markEvidenceInput = <T extends object>(schema: T): T => {
|
|
evidenceInputs.add(schema);
|
|
return schema;
|
|
};
|
|
|
|
export const canReferenceInlineEvidence = (schema: unknown): boolean =>
|
|
typeof schema === "object" && schema !== null && evidenceInputs.has(schema);
|