aiwg
Version:
Deployment tool and support utility for AI context. Copies agents, skills, commands, rules, and behaviors into the paths each AI platform reads (Claude Code, Codex, Copilot, Cursor, Warp, OpenClaw, and 6 more) so one source of truth works across 10 platfo
51 lines • 1.29 kB
TypeScript
/**
* API Call Detection Patterns
*
* Patterns for detecting external HTTP/HTTPS API calls in code.
* Enforces offline-first operation requirement (NFR-SEC-001).
*/
export interface APIPattern {
name: string;
description: string;
regex: RegExp;
method: 'fetch' | 'axios' | 'http' | 'https' | 'XMLHttpRequest';
}
/**
* Whitelisted URLs that are allowed for documentation/testing
*/
export declare const WHITELISTED_URLS: RegExp[];
/**
* Check if URL is whitelisted
*
* @param url - URL to check
* @returns True if URL is whitelisted
*/
export declare function isWhitelisted(url: string): boolean;
/**
* Extract URLs from code string
*
* @param code - Code string to analyze
* @returns Array of extracted URLs
*/
export declare function extractURLs(code: string): string[];
/**
* Fetch API patterns
*/
export declare const FETCH_PATTERNS: APIPattern[];
/**
* Axios patterns
*/
export declare const AXIOS_PATTERNS: APIPattern[];
/**
* Node.js http/https module patterns
*/
export declare const HTTP_MODULE_PATTERNS: APIPattern[];
/**
* XMLHttpRequest patterns
*/
export declare const XHR_PATTERNS: APIPattern[];
/**
* All API call patterns combined
*/
export declare const ALL_API_PATTERNS: APIPattern[];
//# sourceMappingURL=api-patterns.d.ts.map