@mondaydotcomorg/atp-runtime
Version:
Runtime SDK injected into sandbox for Agent Tool Protocol
27 lines (26 loc) • 958 B
TypeScript
/**
* Decorator-based metadata system for runtime APIs
*
* These decorators are MARKERS ONLY - they don't extract types at runtime.
* All type extraction happens at BUILD TIME using ts-morph.
*
/**
* Class decorator to mark a runtime API
*
* This is just a marker - ts-morph extracts all metadata at build time
*/
export declare function RuntimeAPI(name: string, description: string): <T extends {
new (...args: any[]): {};
}>(constructor: T) => T;
/**
* Method decorator to mark a runtime method
*
* This is just a marker - ts-morph extracts types/params at build time
* Only the description and optional param descriptions are stored
*/
export declare function RuntimeMethod(description: string, paramDescriptions?: Record<string, {
description?: string;
optional?: boolean;
type?: string;
}>): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
//# sourceMappingURL=decorators.d.ts.map