- Created skills/ directory - Moved 272 skills to skills/ subfolder - Kept agents/ at root level - Kept installation scripts and docs at root level Repository structure: - skills/ - All 272 skills from skills.sh - agents/ - Agent definitions - *.sh, *.ps1 - Installation scripts - README.md, etc. - Documentation Co-Authored-By: Claude <noreply@anthropic.com>
18 lines
672 B
TypeScript
18 lines
672 B
TypeScript
/**
|
|
* Sanitize session ID to prevent path traversal attacks.
|
|
* Returns null if the session ID is invalid.
|
|
* @internal Exported for testing
|
|
*/
|
|
export declare function sanitizeSessionIdForFilename(sessionId: string): string | null;
|
|
/**
|
|
* Write an audit log entry for a denied command.
|
|
* Logs are written to ~/.cc-safety-net/logs/<session_id>.jsonl
|
|
*/
|
|
export declare function writeAuditLog(sessionId: string, command: string, segment: string, reason: string, cwd: string | null, options?: {
|
|
homeDir?: string;
|
|
}): void;
|
|
/**
|
|
* Redact secrets from text to avoid leaking sensitive information in logs.
|
|
*/
|
|
export declare function redactSecrets(text: string): string;
|