Bash script to dump a TypeScript project into flat directory

Here&rsquo;s a Bash script to dump a project into a flat file structure in a single directory. It turns nested paths into flat filenames and prepends each file with its original source path. It also includes the current Git hash in each flat filename, so that LLM memory can distinguish different versions if necessary. The script also writes a manifest file that maps each flattened filename back to…