This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type Scalar = string | number | boolean | undefined | null | |
| type ScalarsOf<T> = {[Key in keyof T]: T[Key] extends Scalar ? Key : never}[keyof T] | |
| type ObjectsOf<T> = {[Key in keyof T]: T[Key] extends Scalar ? never : Key}[keyof T] | |
| type Simplify<T> = T extends Function ? T : {[K in keyof T]: Simplify<T[K]>}; | |
| type ValuableKeys<T> = {[Key in keyof T]: T[Key] extends never ? never : Key}[keyof T] | |
| type Nevertheless<T> = T extends {} ? {[K in ValuableKeys<T>]: Nevertheless<T[K]>} : T | |
| type CompleteSelector<T> = {[Key in ScalarsOf<T>]: true} & { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Find all AGENTS.md files starting from current directory and create CLAUDE.md symlinks | |
| find . -type f -name "AGENTS.md" | while read -r agents_file; do | |
| # Get the directory containing the AGENTS.md file | |
| dir=$(dirname "$agents_file") | |
| # Create symlink path | |
| claude_link="$dir/CLAUDE.md" |
OlderNewer