[{"data":1,"prerenderedAt":867},["ShallowReactive",2],{"navigation_docs":3,"trending-repo-mvschwarz\u002Fopenrig":249,"page-views-\u002Ftrending\u002Fmvschwarz\u002Fopenrig":865},[4,29,104,124,194],{"title":5,"icon":6,"path":7,"stem":8,"children":9},"Start",false,"\u002Fstart","1.start",[10,14,19,24],{"title":11,"path":7,"stem":12,"icon":13},"What jscpd finds","1.start\u002Findex","i-lucide-house",{"title":15,"path":16,"stem":17,"icon":18},"Installation","\u002Fstart\u002Finstallation","1.start\u002F2.installation","i-lucide-download",{"title":20,"path":21,"stem":22,"icon":23},"Quickstart","\u002Fstart\u002Fquickstart","1.start\u002F3.quickstart","i-lucide-rocket",{"title":25,"path":26,"stem":27,"icon":28},"Configuration basics","\u002Fstart\u002Fconfiguration","1.start\u002F4.configuration","i-lucide-settings-2",{"title":30,"icon":6,"path":31,"stem":32,"children":33,"page":6},"Guides","\u002Fguides","2.guides",[34,39,44,49,54,59,64,69,74,79,84,89,94,99],{"title":35,"path":36,"stem":37,"icon":38},"Use jscpd in CI","\u002Fguides\u002Fci","2.guides\u002F01.ci","i-lucide-github",{"title":40,"path":41,"stem":42,"icon":43},"Pre-commit hooks","\u002Fguides\u002Fpre-commit","2.guides\u002F02.pre-commit","i-lucide-git-commit",{"title":45,"path":46,"stem":47,"icon":48},"Fail only on new duplication","\u002Fguides\u002Fbaseline","2.guides\u002F03.baseline","i-lucide-git-compare",{"title":50,"path":51,"stem":52,"icon":53},"Monorepos","\u002Fguides\u002Fmonorepos","2.guides\u002F04.monorepos","i-lucide-folder-tree",{"title":55,"path":56,"stem":57,"icon":58},"Cross-format detection","\u002Fguides\u002Fcross-format","2.guides\u002F05.cross-format","i-lucide-layers",{"title":60,"path":61,"stem":62,"icon":63},"Agents","\u002Fguides\u002Fagents","2.guides\u002F06.agents","i-lucide-cpu",{"title":65,"path":66,"stem":67,"icon":68},"Editors","\u002Fguides\u002Feditors","2.guides\u002F07.editors","i-lucide-code",{"title":70,"path":71,"stem":72,"icon":73},"Duplication over git history","\u002Fguides\u002Fhistory","2.guides\u002F08.history","i-lucide-chart-no-axes-combined",{"title":75,"path":76,"stem":77,"icon":78},"Dashboard and health score","\u002Fguides\u002Fdashboard","2.guides\u002F09.dashboard","i-lucide-layout-dashboard",{"title":80,"path":81,"stem":82,"icon":83},"Dead code","\u002Fguides\u002Fdead-code","2.guides\u002F10.dead-code","i-lucide-ghost",{"title":85,"path":86,"stem":87,"icon":88},"Comparing two codebases","\u002Fguides\u002Fcompare","2.guides\u002F11.compare","i-lucide-git-compare-arrows",{"title":90,"path":91,"stem":92,"icon":93},"Semantic clones","\u002Fguides\u002Fsemantic-clones","2.guides\u002F12.semantic-clones","i-lucide-brain-circuit",{"title":95,"path":96,"stem":97,"icon":98},"Similar functions","\u002Fguides\u002Fsimilarity","2.guides\u002F13.similarity","i-lucide-list-tree",{"title":100,"path":101,"stem":102,"icon":103},"Boundaries","\u002Fguides\u002Fboundaries","2.guides\u002F14.boundaries","i-lucide-fence",{"title":105,"icon":6,"path":106,"stem":107,"children":108,"page":6},"Concepts","\u002Fconcepts","3.concepts",[109,114,119],{"title":110,"path":111,"stem":112,"icon":113},"Types of code clones","\u002Fconcepts\u002Fclone-types","3.concepts\u002F1.clone-types","i-lucide-copy",{"title":115,"path":116,"stem":117,"icon":118},"How detection works","\u002Fconcepts\u002Fhow-detection-works","3.concepts\u002F2.how-detection-works","i-lucide-scan-search",{"title":120,"path":121,"stem":122,"icon":123},"The health score","\u002Fconcepts\u002Fhealth-score","3.concepts\u002F3.health-score","i-lucide-heart-pulse",{"title":125,"icon":6,"path":126,"stem":127,"children":128,"page":6},"Reference","\u002Freference","4.reference",[129,134,139,144,181,186,190],{"title":130,"path":131,"stem":132,"icon":133},"CLI options","\u002Freference\u002Fcli","4.reference\u002F1.cli","i-lucide-terminal",{"title":135,"path":136,"stem":137,"icon":138},"The config file","\u002Freference\u002Fconfig-file","4.reference\u002F2.config-file","i-lucide-settings",{"title":140,"path":141,"stem":142,"icon":143},"Exit codes","\u002Freference\u002Fexit-codes","4.reference\u002F3.exit-codes","i-lucide-log-out",{"title":145,"icon":6,"path":146,"stem":147,"children":148},"Reporters","\u002Freference\u002Freporters","4.reference\u002F4.reporters\u002Findex",[149,151,156,161,166,171,176],{"title":145,"path":146,"stem":147,"icon":150},"i-lucide-file-chart-column",{"title":152,"path":153,"stem":154,"icon":155},"HTML reporter","\u002Freference\u002Freporters\u002Fhtml","4.reference\u002F4.reporters\u002F2.html","i-lucide-file-code",{"title":157,"path":158,"stem":159,"icon":160},"JSON reporter","\u002Freference\u002Freporters\u002Fjson","4.reference\u002F4.reporters\u002F3.json","i-lucide-braces",{"title":162,"path":163,"stem":164,"icon":165},"Badge reporter","\u002Freference\u002Freporters\u002Fbadge","4.reference\u002F4.reporters\u002F4.badge","i-lucide-award",{"title":167,"path":168,"stem":169,"icon":170},"SARIF reporter","\u002Freference\u002Freporters\u002Fsarif","4.reference\u002F4.reporters\u002F5.sarif","i-lucide-shield-check",{"title":172,"path":173,"stem":174,"icon":175},"CodeClimate reporter","\u002Freference\u002Freporters\u002Fcodeclimate","4.reference\u002F4.reporters\u002F6.codeclimate","i-lucide-flag-triangle-right",{"title":177,"path":178,"stem":179,"icon":180},"OpenMetrics reporter","\u002Freference\u002Freporters\u002Fopenmetrics","4.reference\u002F4.reporters\u002F7.openmetrics","i-lucide-activity",{"title":182,"path":183,"stem":184,"icon":185},"Supported formats","\u002Freference\u002Fsupported-formats","4.reference\u002F5.supported-formats","i-lucide-languages",{"title":187,"path":188,"stem":189,"icon":38},"GitHub Action","\u002Freference\u002Fgithub-action","4.reference\u002F6.github-action",{"title":191,"path":192,"stem":193,"icon":68},"Rust crates","\u002Freference\u002Frust-crates","4.reference\u002F7.rust-crates",{"title":195,"icon":6,"path":196,"stem":197,"children":198,"page":6},"Project","\u002Fproject","5.project",[199,204,209,214,239,244],{"title":200,"path":201,"stem":202,"icon":203},"Changelog","\u002Fproject\u002Fchangelog","5.project\u002F1.changelog","i-lucide-scroll-text",{"title":205,"path":206,"stem":207,"icon":208},"Migrating from v4 to v5","\u002Fproject\u002Fmigration","5.project\u002F2.migration","i-lucide-arrow-right-left",{"title":210,"path":211,"stem":212,"icon":213},"jscpd v4 (TypeScript)","\u002Fproject\u002Fv4","5.project\u002F3.v4","i-simple-icons-typescript",{"title":215,"icon":6,"path":216,"stem":217,"children":218},"Benchmarks","\u002Fproject\u002Fbenchmarks","5.project\u002F4.benchmarks\u002Findex",[219,221,226,230,235],{"title":215,"path":216,"stem":217,"icon":220},"i-lucide-gauge",{"title":222,"path":223,"stem":224,"icon":225},"Detection Speed","\u002Fproject\u002Fbenchmarks\u002Fdetection-speed","5.project\u002F4.benchmarks\u002F2.detection-speed","i-lucide-zap",{"title":227,"path":228,"stem":229,"icon":58},"Multi-Format Detection","\u002Fproject\u002Fbenchmarks\u002Fcross-format","5.project\u002F4.benchmarks\u002F3.cross-format",{"title":231,"path":232,"stem":233,"icon":234},"AI Token Efficiency","\u002Fproject\u002Fbenchmarks\u002Fai-token-efficiency","5.project\u002F4.benchmarks\u002F4.ai-token-efficiency","i-lucide-sparkles",{"title":236,"path":237,"stem":238,"icon":93},"Embedding Models","\u002Fproject\u002Fbenchmarks\u002Fembedding-models","5.project\u002F4.benchmarks\u002F5.embedding-models",{"title":240,"path":241,"stem":242,"icon":243},"Research","\u002Fproject\u002Fresearch","5.project\u002F5.research","i-lucide-graduation-cap",{"title":245,"path":246,"stem":247,"icon":248},"Articles","\u002Fproject\u002Farticles","5.project\u002F6.articles","i-lucide-newspaper",{"name":250,"url":251,"appearances":252,"latest":332},"mvschwarz\u002Fopenrig","https:\u002F\u002Fgithub.com\u002Fmvschwarz\u002Fopenrig",[253,268,282,292,305,318],{"date":254,"rank":255,"stars":256,"starsToday":257,"headSha":258,"sources":259,"lines":260,"clones":261,"duplicatedLines":262,"percentage":263,"codePercentage":264,"codeSources":265,"healthScore":266,"healthGrade":267},"2026-09-28",5,1139,114,"ae957e59577bd05a715594fa9c589c2e883b2d19",3012,628190,5220,67039,10.67,4.54,1077,44.1,"D",{"date":269,"rank":270,"stars":271,"starsToday":272,"headSha":273,"sources":274,"lines":275,"clones":276,"duplicatedLines":277,"percentage":278,"codePercentage":279,"codeSources":280,"healthScore":281,"healthGrade":267},"2026-09-29",6,1872,734,"50e519b399b401345b42e24c3ee3f2f298070628",3045,636375,5174,66474,10.45,4.47,1096,44.5,{"date":283,"rank":255,"stars":284,"starsToday":285,"headSha":286,"sources":287,"lines":288,"clones":289,"duplicatedLines":290,"percentage":278,"codePercentage":279,"codeSources":291,"healthScore":281,"healthGrade":267},"2026-09-30",2554,737,"f8f3aff68bf425735173df9e2c5ac5ef19716f5b",3051,638317,5191,66714,1091,{"date":293,"rank":294,"stars":295,"starsToday":296,"headSha":297,"sources":298,"lines":299,"clones":300,"duplicatedLines":301,"percentage":302,"codePercentage":279,"codeSources":303,"healthScore":304,"healthGrade":267},"2026-10-01",3,3148,624,"76ef4d9b13be7baa650e80ec26fda4c0df31babc",3075,643327,5228,67041,10.42,1093,44.6,{"date":306,"rank":294,"stars":307,"starsToday":308,"headSha":309,"sources":310,"lines":311,"clones":312,"duplicatedLines":313,"percentage":314,"codePercentage":315,"codeSources":316,"healthScore":317,"healthGrade":267},"2026-10-02",3833,642,"008c9faadacc821609ac5659a3596c0892139c66",3144,657666,5300,67811,10.31,4.41,1100,44.9,{"date":319,"rank":320,"stars":321,"starsToday":322,"headSha":323,"sources":324,"lines":325,"clones":326,"duplicatedLines":327,"percentage":328,"codePercentage":329,"codeSources":330,"healthScore":331,"healthGrade":267},"2026-10-03",7,4432,683,"0d794d0baac507fad9eed0131b55fb8e6f2af4e1",3206,667104,5357,68261,10.23,4.4,1104,45.2,{"date":319,"generatedAt":333,"name":250,"url":251,"description":334,"language":335,"stars":321,"starsToday":322,"defaultBranch":336,"headSha":323,"durationMs":337,"total":338,"formats":342,"topClones":408,"health":537,"complexity":568,"deadCode":615,"code":661,"measuredAt":863,"jscpdVersion":864},"2026-10-03T05:37:27.560Z","Build your own network of agents from Claude Code, Codex and Pi: persistent teams with roles, shared context and owned work.","TypeScript","main",1538,{"sources":324,"lines":325,"tokens":339,"clones":326,"duplicatedLines":327,"duplicatedTokens":340,"percentage":328,"percentageTokens":341},5099491,510887,10.02,[343,350,357,364,371,378,385,391,396,402],{"format":344,"sources":345,"lines":346,"clones":347,"duplicatedLines":348,"percentage":349},"typescript",2099,516575,4706,51211,9.91,{"format":351,"sources":352,"lines":353,"clones":354,"duplicatedLines":355,"percentage":356},"tsx",343,70373,413,4631,6.58,{"format":358,"sources":359,"lines":360,"clones":361,"duplicatedLines":362,"percentage":363},"markdown",335,47895,88,7948,16.59,{"format":365,"sources":366,"lines":367,"clones":368,"duplicatedLines":369,"percentage":370},"yaml",199,6478,67,1314,20.28,{"format":372,"sources":373,"lines":374,"clones":375,"duplicatedLines":376,"percentage":377},"javascript",90,16654,57,2283,13.71,{"format":379,"sources":380,"lines":381,"clones":382,"duplicatedLines":383,"percentage":384},"bash",69,3716,10,417,11.22,{"format":386,"sources":387,"lines":388,"clones":320,"duplicatedLines":389,"percentage":390},"text",31,488,120,24.59,{"format":392,"sources":270,"lines":393,"clones":294,"duplicatedLines":394,"percentage":395},"dot",112,56,50,{"format":397,"sources":398,"lines":399,"clones":400,"duplicatedLines":368,"percentage":401},"json",21,1651,2,4.06,{"format":403,"sources":404,"lines":405,"clones":400,"duplicatedLines":406,"percentage":407},"txt",4,421,202,47.98,[409,430,450,466,478,488,497,506,518,527],{"format":372,"lines":410,"tokens":411,"first":412,"others":415,"copies":400,"excerpt":418,"kind":429},1417,11825,{"name":413,"start":294,"end":414},"packages\u002Fdaemon\u002Fspecs\u002Fagents\u002Fshared\u002Fskills\u002Fcore\u002Fopenrig-upgrade\u002Fscripts\u002Fmigrate-telemetry-state-0.5.9.mjs",1419,[416],{"name":417,"start":294,"end":414},"skills\u002F_canonical\u002Fcore\u002Fopenrig-upgrade\u002Fscripts\u002Fmigrate-telemetry-state-0.5.9.mjs",{"lines":419,"total":410},[420,421,422,423,424,425,426,427,424,428],"import crypto from \"node:crypto\";","import fs from \"node:fs\";","import path from \"node:path\";","import { spawnSync } from \"node:child_process\";","","const SCHEMA = \"openrig-telemetry-state-migration\u002Fv1\";","const rig = process.env.OPENRIG_RIG_BIN || \"rig\";","const HELP = `Usage: migrate-telemetry-state-0.5.9.mjs [options]","No phase flag runs the read-only plan.","tests",{"format":358,"lines":431,"tokens":432,"first":433,"others":437,"copies":400,"excerpt":440,"kind":429},463,5706,{"name":434,"start":435,"end":436},"packages\u002Fdaemon\u002Fspecs\u002Fagents\u002Fshared\u002Fskills\u002Fprocess\u002Fcontext-engineering\u002FSKILL.md:markdown",17,479,[438],{"name":439,"start":435,"end":436},"skills\u002F_canonical\u002Fprocess\u002Fcontext-engineering\u002FSKILL.md:markdown",{"lines":441,"total":431},[442,424,443,424,444,445,446,447,448,449],"# Traditional Context Engineering — 2024–2025 Snapshot","## Status: provisional historical research snapshot","This skill is a provisional historical research snapshot of context-engineering practice as","published in 2024–2025. It is NOT normative. Do not apply it prescriptively to current frontier","models without re-verification. On any conflict, OpenRig current skills, explicit user rulings,","and directly measured OpenRig practice PREVAIL over this document. Treat these areas as","particularly suspect pending re-verification: compaction\u002Fsummarization guidance, minimal-upfront","versus broad orientation, just-in-time lookup assumptions, fixed context ceilings, and",{"format":358,"lines":451,"tokens":452,"first":453,"others":456,"copies":400,"excerpt":459,"kind":429},543,5694,{"name":454,"start":455,"end":451},"packages\u002Fdaemon\u002Fspecs\u002Fagents\u002Fshared\u002Fskills\u002Fcore\u002Fopenrig-software-factory\u002Freferences\u002Fworked-example.md:markdown",1,[457],{"name":458,"start":455,"end":451},"skills\u002F_canonical\u002Fcore\u002Fopenrig-software-factory\u002Freferences\u002Fworked-example.md:markdown",{"lines":460,"total":451},[461,424,462,424,463,424,464,424,465,424],"# Worked example: reviewed CSV validation","Use this example to adapt reviewed work to a repository with CSV handling. Choose the simple team or queue loop first; the full Workflow files are optional. Ch…","This is a concrete CSV-validation example for adaptation, not a requirement that an arbitrary repository become a CSV project or every outcome be split into tw…","For the example only, repository root and work root are the same absolute directory, called `PROJECT_ROOT`. The selected project ID is `csv-tool`, mission is `…","## Manual work and the queue loop",{"format":358,"lines":467,"tokens":468,"first":469,"others":472,"copies":294,"kind":477},123,1963,{"name":470,"start":382,"end":471},"packages\u002Fdaemon\u002Fassets\u002Fplugins\u002Fopenrig-core\u002Fskills\u002Fopenrig-skills\u002FSKILL.md:markdown",132,[473,475],{"name":474,"start":382,"end":471},"packages\u002Fdaemon\u002Fspecs\u002Fagents\u002Fshared\u002Fskills\u002Fcore\u002Fopenrig-skills\u002FSKILL.md:markdown",{"name":476,"start":382,"end":471},"skills\u002F_canonical\u002Fcore\u002Fopenrig-skills\u002FSKILL.md:markdown","docs",{"format":358,"lines":479,"tokens":480,"first":481,"others":485,"copies":400,"kind":429},345,3762,{"name":482,"start":483,"end":484},"packages\u002Fdaemon\u002Fspecs\u002Fagents\u002Fshared\u002Fskills\u002Fcore\u002Fopenrig-architect\u002FSKILL.md:markdown",27,371,[486],{"name":487,"start":483,"end":484},"skills\u002F_canonical\u002Fcore\u002Fopenrig-architect\u002FSKILL.md:markdown",{"format":358,"lines":489,"tokens":490,"first":491,"others":494,"copies":400,"kind":429},264,3472,{"name":492,"start":270,"end":493},"packages\u002Fdaemon\u002Fspecs\u002Fagents\u002Fshared\u002Fskills\u002Fpods\u002Forchestration-team\u002FSKILL.md:markdown",269,[495],{"name":496,"start":270,"end":493},"skills\u002F_canonical\u002Fpods\u002Forchestration-team\u002FSKILL.md:markdown",{"format":344,"lines":498,"tokens":499,"first":500,"others":502,"copies":400,"kind":505},533,3133,{"name":501,"start":455,"end":498},"packages\u002Fcli\u002Fsrc\u002Flib\u002Fscope\u002Fscope-audit.ts",[503],{"name":504,"start":455,"end":498},"packages\u002Fdaemon\u002Fsrc\u002Fdomain\u002Fscope\u002Fscope-audit.ts","code",{"format":358,"lines":507,"tokens":508,"first":509,"others":513,"copies":294,"kind":477},125,1333,{"name":510,"start":511,"end":512},"packages\u002Fdaemon\u002Fassets\u002Fplugins\u002Fopenrig-core\u002Fskills\u002Fmessaging-the-human\u002FSKILL.md:markdown",20,144,[514,516],{"name":515,"start":511,"end":512},"packages\u002Fdaemon\u002Fspecs\u002Fagents\u002Fshared\u002Fskills\u002Fcore\u002Fmessaging-the-human\u002FSKILL.md:markdown",{"name":517,"start":511,"end":512},"skills\u002F_canonical\u002Fcore\u002Fmessaging-the-human\u002FSKILL.md:markdown",{"format":358,"lines":519,"tokens":520,"first":521,"others":524,"copies":400,"kind":429},149,1857,{"name":522,"start":398,"end":523},"packages\u002Fdaemon\u002Fspecs\u002Fagents\u002Fshared\u002Fskills\u002Fcore\u002Fopenrig-software-factory\u002FSKILL.md:markdown",169,[525],{"name":526,"start":398,"end":523},"skills\u002F_canonical\u002Fcore\u002Fopenrig-software-factory\u002FSKILL.md:markdown",{"format":358,"lines":528,"tokens":529,"first":530,"others":534,"copies":400,"kind":429},214,1840,{"name":531,"start":532,"end":533},"packages\u002Fdaemon\u002Fspecs\u002Fagents\u002Fshared\u002Fskills\u002Fprocess\u002Fdogfood\u002FSKILL.md:markdown",12,225,[535],{"name":536,"start":532,"end":533},"skills\u002F_canonical\u002Fprocess\u002Fdogfood\u002FSKILL.md:markdown",{"score":331,"grade":267,"size":538,"dimensions":542},{"lines":539,"files":540,"class":541},606647,2548,"L",[543,557,563],{"id":544,"source":545,"value":546,"adjusted":547,"lines":548,"halfLife":549,"formats":550,"excluded":553,"weight":455,"score":556},"duplication","jscpd",9.6,9.5,58043,8.5,[344,351,372,379,551,552],"python","perl",[554,386,555],"markup","data",45.9,{"id":558,"source":545,"value":559,"adjusted":559,"lines":560,"halfLife":561,"weight":455,"score":562},"dead-code",8.7,52832,7.5,44.8,{"id":564,"source":545,"value":565,"adjusted":566,"lines":567,"halfLife":395,"weight":455,"score":562},"complexity",58,57.8,351630,{"total":569,"mean":281,"files":570},113436,[571,576,581,586,591,594,595,600,605,610],{"path":572,"complexity":573,"lines":574,"bytes":575},"packages\u002Ftui\u002Fsrc\u002Frender.ts",823,1805,103019,{"path":577,"complexity":578,"lines":579,"bytes":580},"packages\u002Fdaemon\u002Ftest\u002Frestore-orchestrator.test.ts",770,4179,212438,{"path":582,"complexity":583,"lines":584,"bytes":585},"packages\u002Fdaemon\u002Fsrc\u002Fdomain\u002Fqueue-repository.ts",672,3839,190874,{"path":587,"complexity":588,"lines":589,"bytes":590},"packages\u002Fdaemon\u002Fsrc\u002Fdomain\u002Frigspec-instantiator.ts",507,2634,118198,{"path":413,"complexity":592,"lines":414,"bytes":593},476,61540,{"path":417,"complexity":592,"lines":414,"bytes":593},{"path":596,"complexity":597,"lines":598,"bytes":599},"packages\u002Fdaemon\u002Fsrc\u002Fdomain\u002Frigspec-schema.ts",462,1325,58109,{"path":601,"complexity":602,"lines":603,"bytes":604},"packages\u002Fdaemon\u002Fsrc\u002Fstartup.ts",461,2451,137040,{"path":606,"complexity":607,"lines":608,"bytes":609},"packages\u002Fdaemon\u002Fsrc\u002Fdomain\u002Frestore-orchestrator.ts",450,1944,91885,{"path":611,"complexity":612,"lines":613,"bytes":614},"packages\u002Fcli\u002Fsrc\u002Fcommands\u002Fps.ts",432,1673,74192,{"percentage":559,"findings":616,"files":617,"byCategory":618,"largest":630},433,2662,[619,622,625,628],{"category":620,"count":621},"unused-file",309,{"category":623,"count":624},"unused-export",48,{"category":626,"count":627},"unused-symbol",18,{"category":629,"count":565},"unused-import",[631,634,637,640,643,646,649,652,655,658],{"category":620,"path":632,"name":424,"line":455,"lines":633},"packages\u002Fui\u002Fsrc\u002Fcomponents\u002Fproject\u002FScopePages.tsx",1382,{"category":620,"path":635,"name":424,"line":455,"lines":636},"packages\u002Fui\u002Fsrc\u002Fcomponents\u002FLiveNodeDetails.tsx",743,{"category":620,"path":638,"name":424,"line":455,"lines":639},"packages\u002Fui\u002Fsrc\u002Fcomponents\u002FLibraryReview.tsx",725,{"category":620,"path":641,"name":424,"line":455,"lines":642},"packages\u002Fui\u002Fsrc\u002Fcomponents\u002FAppShell.tsx",721,{"category":620,"path":644,"name":424,"line":455,"lines":645},"packages\u002Fui\u002Fsrc\u002Fcomponents\u002Ffeed\u002Fcards\u002Fstorytelling-cards.tsx",718,{"category":620,"path":647,"name":424,"line":455,"lines":648},"packages\u002Fui\u002Fsrc\u002Fcomponents\u002Flab\u002FVellumBackgroundLab.tsx",703,{"category":620,"path":650,"name":424,"line":455,"lines":651},"packages\u002Fui\u002Fsrc\u002Fcomponents\u002Ffor-you\u002FFeedCard.tsx",655,{"category":620,"path":653,"name":424,"line":455,"lines":654},"packages\u002Fui\u002Fsrc\u002Froutes.tsx",605,{"category":620,"path":656,"name":424,"line":455,"lines":657},"packages\u002Fui\u002Fsrc\u002Fcomponents\u002FRigGraph.tsx",562,{"category":620,"path":659,"name":424,"line":455,"lines":660},"packages\u002Fui\u002Fsrc\u002Fcomponents\u002Ffiles\u002FFilesWorkspace.tsx",557,{"sources":330,"lines":662,"tokens":663,"clones":664,"duplicatedLines":665,"duplicatedTokens":666,"percentage":329,"percentageTokens":667,"formats":668,"topClones":695,"generated":860},263360,1632444,762,11593,70259,4.3,[669,675,681,687,690,693],{"format":344,"sources":670,"lines":671,"clones":672,"duplicatedLines":673,"percentage":674},856,214891,708,10947,5.09,{"format":351,"sources":676,"lines":677,"clones":678,"duplicatedLines":679,"percentage":680},178,36651,39,445,1.21,{"format":372,"sources":682,"lines":683,"clones":684,"duplicatedLines":685,"percentage":686},47,8739,14,195,2.23,{"format":551,"sources":400,"lines":688,"clones":455,"duplicatedLines":270,"percentage":689},888,0.68,{"format":379,"sources":511,"lines":691,"clones":692,"duplicatedLines":692,"percentage":692},2017,0,{"format":552,"sources":455,"lines":694,"clones":692,"duplicatedLines":692,"percentage":692},174,[696,711,734,773,783,791,800,812,822,833],{"format":344,"lines":498,"tokens":499,"first":697,"others":698,"copies":400,"excerpt":700,"kind":505},{"name":501,"start":455,"end":498},[699],{"name":504,"start":455,"end":498},{"lines":701,"total":498},[702,703,704,424,705,706,707,708,709,710],"import * as YAML from \"yaml\";","import { isMissionDotId, isSliceDotId } from \".\u002Fdot-id.js\";","import { isScaffoldPlaceholderText, hasAuthoredNumberedItem, isPristineScaffoldSection } from \".\u002Fscaffold-placeholder.js\";","export type RailStatus = \"present\" | \"missing\" | \"malformed\" | \"readme-only\";","export type FindingSeverity = \"high\" | \"medium\" | \"low\" | \"info\";","export type FindingKind =","  | \"missing_progress\"","  | \"registration_ghost\"","  | \"missing_id\"",{"format":344,"lines":712,"tokens":713,"first":714,"others":718,"copies":400,"excerpt":722,"kind":505},230,1280,{"name":715,"start":716,"end":717},"packages\u002Fcli\u002Fsrc\u002Fhost-registry.ts",62,291,[719],{"name":720,"start":398,"end":721},"packages\u002Fdaemon\u002Fsrc\u002Fdomain\u002Fhosts\u002Fhosts-registry-reader.ts",229,{"lines":723,"total":712},[724,725,726,727,728,729,730,731,732,733],"export interface SshHostEntry {","  id: string;","  \u002F**","   * The observed, immutable self-id of the host this entry points at — the JOIN KEY.","   *","   * `id` is MY label for that machine; `hostId` is what that machine calls itself and stamps into","   * every envelope it sends. Optional because every entry that exists today predates the field:","   * absent means \"never learned\", which resolves exactly as it does now. Nothing populates this","   * automatically in this slice.","   *\u002F",{"format":344,"lines":735,"tokens":736,"first":737,"others":741,"copies":532,"excerpt":763,"kind":505},11,84,{"name":738,"start":739,"end":740},"packages\u002Fcli\u002Fsrc\u002Fcommands\u002Fattach.ts",43,53,[742,745,748,750,754,757,759,761],{"name":743,"start":744,"end":627},"packages\u002Fcli\u002Fsrc\u002Fcommands\u002Fbind.ts",8,{"name":746,"start":483,"end":747},"packages\u002Fcli\u002Fsrc\u002Fcommands\u002Fbootstrap.ts",37,{"name":749,"start":744,"end":627},"packages\u002Fcli\u002Fsrc\u002Fcommands\u002Fdiscover.ts",{"name":751,"start":752,"end":753},"packages\u002Fcli\u002Fsrc\u002Fcommands\u002Flaunch.ts",49,59,{"name":755,"start":744,"end":756},"packages\u002Fcli\u002Fsrc\u002Fcommands\u002Fpackage.ts",19,{"name":758,"start":744,"end":627},"packages\u002Fcli\u002Fsrc\u002Fcommands\u002Frelease.ts",{"name":760,"start":744,"end":627},"packages\u002Fcli\u002Fsrc\u002Fcommands\u002Fremove.ts",{"name":762,"start":744,"end":627},"packages\u002Fcli\u002Fsrc\u002Fcommands\u002Frequirements.ts",{"lines":764,"total":735},[765,766,424,767,768,769,770,771,424,772],"const cmd = new Command(\"attach\").description(\"Attach the current shell or agent into a rig node\");","const getDeps = () => depsOverride ?? { lifecycleDeps: realDeps(), clientFactory: (url: string) => new DaemonClient(url) };","async function getClient(deps: StatusDeps): Promise\u003CDaemonClient | null> {","  const status = await getDaemonStatus(deps.lifecycleDeps);","  if (!daemonStatusGuard(status)) return null;","  return deps.clientFactory(getDaemonUrl(status));","}","cmd",{"format":344,"lines":774,"tokens":775,"first":776,"others":780,"copies":400,"kind":505},111,813,{"name":777,"start":778,"end":779},"packages\u002Fcli\u002Fsrc\u002Flib\u002Fpermission-policy\u002Fpolicy-spec.ts",9,119,[781],{"name":782,"start":778,"end":779},"packages\u002Fdaemon\u002Fsrc\u002Fdomain\u002Fpermission-policy\u002Fpolicy-spec.ts",{"format":344,"lines":784,"tokens":775,"first":785,"others":788,"copies":400,"kind":505},156,{"name":786,"start":627,"end":787},"packages\u002Fcli\u002Fsrc\u002Flib\u002Fscope\u002Fdot-id.ts",173,[789],{"name":790,"start":627,"end":787},"packages\u002Fdaemon\u002Fsrc\u002Fdomain\u002Fscope\u002Fdot-id.ts",{"format":344,"lines":792,"tokens":793,"first":794,"others":797,"copies":400,"kind":505},215,793,{"name":795,"start":435,"end":796},"packages\u002Fcli\u002Fsrc\u002Flib\u002Fpermission-policy\u002Fpolicy-ref.ts",231,[798],{"name":799,"start":435,"end":796},"packages\u002Fdaemon\u002Fsrc\u002Fdomain\u002Fpermission-policy\u002Fpolicy-ref.ts",{"format":344,"lines":716,"tokens":801,"first":802,"others":806,"copies":294,"kind":505},353,{"name":803,"start":804,"end":805},"packages\u002Fcli\u002Fsrc\u002Fsession-name.ts",33,94,[807,810],{"name":808,"start":809,"end":366},"packages\u002Fdaemon\u002Fsrc\u002Fdomain\u002Fsession-name.ts",138,{"name":811,"start":804,"end":805},"packages\u002Fui\u002Fsrc\u002Flib\u002Fsession-name.ts",{"format":344,"lines":813,"tokens":588,"first":814,"others":818,"copies":400,"kind":505},75,{"name":815,"start":816,"end":817},"packages\u002Fcli\u002Fsrc\u002Fcommands\u002Fqueue.ts",834,908,[819],{"name":815,"start":820,"end":821},929,1001,{"format":344,"lines":823,"tokens":824,"first":825,"others":829,"copies":400,"kind":505},77,505,{"name":826,"start":827,"end":828},"packages\u002Fcli\u002Fsrc\u002Fconfig-store.ts",772,848,[830],{"name":831,"start":322,"end":832},"packages\u002Fdaemon\u002Fsrc\u002Fdomain\u002Fuser-settings\u002Fsettings-store.ts",760,{"format":344,"lines":382,"tokens":834,"first":835,"others":839,"copies":382,"kind":505},54,{"name":836,"start":837,"end":838},"packages\u002Fcli\u002Fsrc\u002Fmcp-server.ts",74,83,[840,843,844,846,849,851,854,857],{"name":836,"start":841,"end":842},99,108,{"name":836,"start":257,"end":467},{"name":836,"start":845,"end":809},129,{"name":836,"start":847,"end":848},163,172,{"name":836,"start":850,"end":712},221,{"name":836,"start":852,"end":853},261,270,{"name":836,"start":855,"end":856},295,304,{"name":836,"start":858,"end":859},329,338,{"files":455,"minified":692,"sample":861},[862],"packages\u002Fdaemon\u002Fsrc\u002Fdomain\u002Fscope\u002Fattestation-lineage.generated.ts","2026-10-07T06:37:53.234Z","5.4.0",{"\u002Ftrending\u002Fmvschwarz\u002Fopenrig":866},{"views":270,"visits":294},1795510260765]