Loading files
be66d9be7This file is pinned to the selected release. Download the original to open it in your design tool.
Files from this revision, including CAD and LFS contents. Git history is not included.
Or in GitHub Desktop, choose File → Clone repository → URL and paste this address.
Public repositories can be cloned without signing in. For pushing, use your ThingAtlas username and a Git access token as the password.
git lfs install git clone https://thingatlas.com/git/-unclaimed/openharness-1322671404.git
Includes Git history, branches, and Git LFS files. Clones the repository’s default branch, regardless of the version shown here.
// Read `dsh/registry/<owner>/<name>.json` for the build's `__DSH_REGISTRY__` define. Mirrors
// `readRegistryDir` in src/dsh/registry.ts (the runtime dev fallback); kept in plain ESM so both
// build scripts can import it without a TypeScript step.
import { readdirSync, readFileSync, statSync } from 'fs'
import { join } from 'path'
import { fileURLToPath } from 'url'
export function readDshRegistry(dir) {
const root = dir instanceof URL ? fileURLToPath(dir) : dir
const out = []
let owners
try { owners = readdirSync(root) } catch { return out }
for (const owner of owners) {
const ownerDir = join(root, owner)
let files
try {
if (!statSync(ownerDir).isDirectory()) continue
files = readdirSync(ownerDir)
} catch { continue }
for (const file of files) {
if (!file.endsWith('.json')) continue
out.push(JSON.parse(readFileSync(join(ownerDir, file), 'utf8')))
}
}
return out
}
be66d9be7This file is pinned to the selected release. Download the original to open it in your design tool.