codedash 0.1.0-1
Executes shell commands synchronouslyUses Lua debug module
SHA-2562cec5572d4bfeed4029af291c70557d63a5fc64c40fad25009d32282351d8279
MaleculeH₂(FPo₃)Md₃(Pa₂Pt)
Evidence
1/**
2 * parse_tsx.js - TS/TSXファイルをtree-sitterで解析 → JSON出力
3 *
4 * parse_ts.jsのTSX対応版。React特有のパターンも抽出:
5 * - Arrow function components (const Foo = () => { ... })
6 * - Custom hooks (useXxx)
47for (const filePath of files) {
48 const source = fs.readFileSync(filePath, "utf-8");
49 const ext = path.extname(filePath);
50 const parser = ext === ".tsx" ? tsxParser : tsParser;
1// enrich_generic.js - ast_data.json にgit実データを付与(汎用版)
2//
3// Usage: node tools/enrich_generic.js <ast_data.json> <repo_path> <glob1> [glob2...] [--options]
4//
5// Examples:
6// node enrich_generic.js ast.json ./repo 'src/GLOB' --strip=src/
7// node enrich_generic.js ast.json ./repo 'packages/editor/src/GLOB' --strip=packages/editor/src/
8//
⋯5 lines
15const fs = require("fs");
16const { execSync } = require("child_process");
17const path = require("path");
80let churnOutput;
81try {
82 churnOutput = execSync(
83 `cd "${repoPath}" && git log --since="${churnDays} days ago" --name-only --pretty=format: -- ${gitGlobs}`,
84 { encoding: "utf-8", maxBuffer: 50 * 1024 * 1024 }
No evidence locations were recorded for this file. Raw result