Add claude-code-source-code and claw-code directories

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
chauncygu
2026-03-31 09:24:58 -07:00
parent fb2057a9fc
commit 33d153f5b8
2049 changed files with 522662 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
/**
* Detects if the current runtime is Bun.
* Returns true when:
* - Running a JS file via the `bun` command
* - Running a Bun-compiled standalone executable
*/
export function isRunningWithBun(): boolean {
// https://bun.com/guides/util/detect-bun
return process.versions.bun !== undefined
}
/**
* Detects if running as a Bun-compiled standalone executable.
* This checks for embedded files which are present in compiled binaries.
*/
export function isInBundledMode(): boolean {
return (
typeof Bun !== 'undefined' &&
Array.isArray(Bun.embeddedFiles) &&
Bun.embeddedFiles.length > 0
)
}