scip-query 0.6.5 → 0.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/README.md +43 -6
  2. package/dist/augment-vue-worker.js +1 -1
  3. package/dist/{chunk-FG6A6ZUP.js → chunk-25HOGELX.js} +2 -2
  4. package/dist/{chunk-XV3XUZ3X.js → chunk-2TLYCK2L.js} +2 -2
  5. package/dist/chunk-3PVIYZ74.js +84 -0
  6. package/dist/{chunk-MO32JMOD.js → chunk-4TX5IMMK.js} +2 -2
  7. package/dist/{chunk-3UB2DPLP.js → chunk-6DVA22YE.js} +2 -2
  8. package/dist/{chunk-C5BFS23M.js → chunk-6GPFHZP3.js} +2 -2
  9. package/dist/{chunk-YDKWDTAW.js → chunk-7PRMSA4Z.js} +2 -2
  10. package/dist/{chunk-MTK3JAJT.js → chunk-7YI2M2AQ.js} +2 -2
  11. package/dist/{chunk-M5QTG55L.js → chunk-AADJ7MCQ.js} +2 -2
  12. package/dist/{chunk-A5UNS4DR.js → chunk-AV7BOODV.js} +2 -2
  13. package/dist/{chunk-PBFMZKXE.js → chunk-AXP4H62Q.js} +2 -2
  14. package/dist/{chunk-IJWIYZO5.js → chunk-C4C3T4K3.js} +2 -2
  15. package/dist/{chunk-ZFCQQ4B5.js → chunk-CSRPJCWO.js} +2 -2
  16. package/dist/{chunk-U5MVUPOO.js → chunk-CYJMOTIH.js} +2 -2
  17. package/dist/{chunk-URUVLDM7.js → chunk-DLWRLPKO.js} +2 -2
  18. package/dist/{chunk-5YYMKE3G.js → chunk-E2V5SE6M.js} +2 -2
  19. package/dist/{chunk-FHSD5RKF.js → chunk-GPY33RTH.js} +2 -2
  20. package/dist/{chunk-PFMGJ4BR.js → chunk-HVNVO6UW.js} +2 -2
  21. package/dist/{chunk-BNCTPTVX.js → chunk-I377UMS2.js} +2 -2
  22. package/dist/{chunk-F4KR22Z2.js → chunk-IKQYNTW3.js} +2 -2
  23. package/dist/{chunk-RT5PV5JQ.js → chunk-IZ4KV37N.js} +2 -2
  24. package/dist/{chunk-DRLWW74T.js → chunk-KBGFYKOJ.js} +2 -2
  25. package/dist/chunk-KW2F3WSV.js +5 -0
  26. package/dist/{chunk-FVVEIGP3.js → chunk-NIN762LD.js} +2 -2
  27. package/dist/{chunk-YDNCX5PF.js → chunk-O6VBAW7P.js} +2 -2
  28. package/dist/{chunk-EB5IVUNU.js → chunk-PIRXZGV6.js} +2 -2
  29. package/dist/{chunk-MKFH7QJG.js → chunk-Q4R2IYA3.js} +2 -2
  30. package/dist/{chunk-Z5CTXSWT.js → chunk-QFBJZHMV.js} +2 -2
  31. package/dist/{chunk-WHGCGENP.js → chunk-QPJG6VRT.js} +2 -2
  32. package/dist/{chunk-HUASU3AD.js → chunk-TBJDUS4E.js} +7 -7
  33. package/dist/{chunk-K6H3XJQW.js → chunk-TUV2VI7D.js} +2 -2
  34. package/dist/chunk-UAPNU7UP.js +2 -0
  35. package/dist/{chunk-WNMAH3P7.js → chunk-URCJTFOD.js} +2 -2
  36. package/dist/{chunk-QFCK6WV2.js → chunk-UUIWMLDX.js} +2 -2
  37. package/dist/{chunk-WIIZF5FP.js → chunk-VEXS3I3N.js} +2 -2
  38. package/dist/{chunk-ROWAEEOD.js → chunk-VRC3WKKE.js} +2 -2
  39. package/dist/{chunk-5LQ6CVX3.js → chunk-WFDTS7XL.js} +2 -2
  40. package/dist/chunk-Y4DS3MDC.js +5 -0
  41. package/dist/{chunk-LT2CPEQ4.js → chunk-YJODB2F5.js} +2 -2
  42. package/dist/{chunk-PK4U6NWP.js → chunk-YXMHTJYY.js} +2 -2
  43. package/dist/chunk-Z4AMQWVY.js +90 -0
  44. package/dist/cli.js +111 -111
  45. package/dist/index.d.ts +8 -5
  46. package/dist/index.js +11 -11
  47. package/dist/queries/affected.js +1 -1
  48. package/dist/queries/bottlenecks.js +1 -1
  49. package/dist/queries/call-graph.js +1 -1
  50. package/dist/queries/change-surface.js +1 -1
  51. package/dist/queries/complexity-hotspots.js +1 -1
  52. package/dist/queries/complexity.js +1 -1
  53. package/dist/queries/convergence.js +1 -1
  54. package/dist/queries/cycles.js +1 -1
  55. package/dist/queries/dataflow.js +1 -1
  56. package/dist/queries/dead.js +1 -1
  57. package/dist/queries/deep-chains.js +1 -1
  58. package/dist/queries/diff-impact.js +1 -1
  59. package/dist/queries/drift.js +1 -1
  60. package/dist/queries/extract-candidates.js +1 -1
  61. package/dist/queries/fan.js +1 -1
  62. package/dist/queries/health.js +1 -1
  63. package/dist/queries/hotspots.js +1 -1
  64. package/dist/queries/imports.js +1 -1
  65. package/dist/queries/index.js +1 -1
  66. package/dist/queries/isolated.js +1 -1
  67. package/dist/queries/members.js +1 -1
  68. package/dist/queries/methods.js +1 -1
  69. package/dist/queries/passthrough-candidates.js +1 -1
  70. package/dist/queries/redundant-reexports.js +1 -1
  71. package/dist/queries/refs.js +1 -1
  72. package/dist/queries/similar-chains.js +1 -1
  73. package/dist/queries/similar-files.js +1 -1
  74. package/dist/queries/similar-signatures.js +1 -1
  75. package/dist/queries/similar.js +1 -1
  76. package/dist/queries/slice.js +1 -1
  77. package/dist/queries/stale-abstractions.js +1 -1
  78. package/dist/queries/surface.js +1 -1
  79. package/dist/queries/trace.js +1 -1
  80. package/dist/queries/wrapper-candidates.js +1 -1
  81. package/dist/reindex-worker.js +1 -1
  82. package/package.json +2 -2
  83. package/dist/chunk-2ZGHRI2A.js +0 -5
  84. package/dist/chunk-32R4VYYA.js +0 -2
  85. package/dist/chunk-4X7C236P.js +0 -84
  86. package/dist/chunk-KTCODJNQ.js +0 -5
  87. package/dist/chunk-YU25IHJX.js +0 -90
package/dist/index.d.ts CHANGED
@@ -103,6 +103,11 @@ declare function classifyFile(file: string): FileKind;
103
103
  * second module name).
104
104
  */
105
105
 
106
+ interface CalleeRow {
107
+ symbol: string;
108
+ file: string;
109
+ chunkId: number;
110
+ }
106
111
  declare function buildFileDepGraph(db: ScipDatabase, scope?: string): Map<string, Set<string>>;
107
112
  /**
108
113
  * Bulk callee map: for each definition in the list, find every symbol it
@@ -128,11 +133,7 @@ declare function buildFileDepGraph(db: ScipDatabase, scope?: string): Map<string
128
133
  */
129
134
  declare function buildCalleeMap(db: ScipDatabase, definitions: ReadonlyArray<SymbolMatch>, opts?: {
130
135
  additive?: boolean;
131
- }): Map<number, Array<{
132
- symbol: string;
133
- file: string;
134
- chunkId: number;
135
- }>>;
136
+ }): Map<number, CalleeRow[]>;
136
137
  /**
137
138
  * Bulk caller map: symbolId → set of distinct files that reference the
138
139
  * symbol.
@@ -499,6 +500,8 @@ declare class Watcher {
499
500
  */
500
501
  private runReindex;
501
502
  private setStatus;
503
+ private clearDebounceTimer;
504
+ private clearCooldownTimer;
502
505
  }
503
506
 
504
507
  interface InstallSkillsResult {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import"./chunk-FVH3Y44U.js";import{a as Ai}from"./chunk-URUVLDM7.js";import{a as Li}from"./chunk-GBDZY73J.js";import{a as _i}from"./chunk-MXWC53GJ.js";import{a as Ni}from"./chunk-A5UNS4DR.js";import{a as Ps}from"./chunk-5YYMKE3G.js";import{a as Fi}from"./chunk-RT5PV5JQ.js";import{a as cs}from"./chunk-YDKWDTAW.js";import{a as us}from"./chunk-DRLWW74T.js";import{a as ws}from"./chunk-5LQ6CVX3.js";import{a as ks}from"./chunk-BNCTPTVX.js";import{a as $i}from"./chunk-Z5CTXSWT.js";import{a as Bi,b as Wi,c as Ui}from"./chunk-QFCK6WV2.js";import{a as Gi}from"./chunk-F4KR22Z2.js";import{a as Di}from"./chunk-ZFCQQ4B5.js";import{a as Hi}from"./chunk-TLRA5TR6.js";import{a as ps}from"./chunk-WHGCGENP.js";import{a as qi,b as Ji,c as zi,d as Xi}from"./chunk-PFMGJ4BR.js";import{a as Ti}from"./chunk-KAM4C6ZD.js";import{a as xs}from"./chunk-FG6A6ZUP.js";import{a as Oi}from"./chunk-QRYEOK3M.js";import{a as ms}from"./chunk-K6H3XJQW.js";import{a as os,b as as}from"./chunk-PBFMZKXE.js";import"./chunk-RKTDEIHF.js";import{a as bs}from"./chunk-FVVEIGP3.js";import{a as es}from"./chunk-MTK3JAJT.js";import{a as hs}from"./chunk-3UB2DPLP.js";import{a as fs}from"./chunk-FHSD5RKF.js";import"./chunk-LJ2YWNQF.js";import{a as ls}from"./chunk-IJWIYZO5.js";import{a as is}from"./chunk-OQZF2DQJ.js";import{a as Rs}from"./chunk-MKFH7QJG.js";import{a as Ss}from"./chunk-U5MVUPOO.js";import{a as Ki,b as Qi}from"./chunk-Q2ALKKSE.js";import{a as Yi}from"./chunk-EB5IVUNU.js";import{a as Is}from"./chunk-C5BFS23M.js";import{a as Vi}from"./chunk-MO32JMOD.js";import{a as rs}from"./chunk-YDNCX5PF.js";import{a as ji,b as Mi}from"./chunk-ERRUE5G4.js";import{a as gs}from"./chunk-M5QTG55L.js";import{a as Zi}from"./chunk-ROWAEEOD.js";import{a as ts,b as ns}from"./chunk-7X7FLQC5.js";import{a as ss}from"./chunk-LT2CPEQ4.js";import{a as ds}from"./chunk-XV3XUZ3X.js";import{a as vs}from"./chunk-7LSCW7NF.js";import"./chunk-MO65UK5V.js";import{a as ys}from"./chunk-WNMAH3P7.js";import{a as rt}from"./chunk-32R4VYYA.js";import"./chunk-PK4U6NWP.js";import"./chunk-WIIZF5FP.js";import{a as ge,b as de}from"./chunk-KTCODJNQ.js";import"./chunk-4X7C236P.js";import"./chunk-2ZGHRI2A.js";import"./chunk-YU25IHJX.js";import"./chunk-ZHHMG4UC.js";import{n as et,o as tt,p as nt}from"./chunk-QFZE73XF.js";import it from"better-sqlite3";var H=class{db;config;pathFilter;constructor(t,n){this.config=t,this.pathFilter=n??null,this.db=new it(t.dbPath,{readonly:!0}),this.db.pragma("busy_timeout = 5000")}isIgnored(t){return this.pathFilter?.isIgnored(t)??!1}get localSymbolPredicate(){return`(
1
+ import"./chunk-FVH3Y44U.js";import{a as Ai}from"./chunk-DLWRLPKO.js";import{a as Di}from"./chunk-GBDZY73J.js";import{a as _i}from"./chunk-MXWC53GJ.js";import{a as Ni}from"./chunk-AV7BOODV.js";import{a as Ps}from"./chunk-E2V5SE6M.js";import{a as Fi}from"./chunk-IZ4KV37N.js";import{a as cs}from"./chunk-7PRMSA4Z.js";import{a as us}from"./chunk-KBGFYKOJ.js";import{a as ws}from"./chunk-WFDTS7XL.js";import{a as ks}from"./chunk-I377UMS2.js";import{a as $i}from"./chunk-QFBJZHMV.js";import{a as Bi,b as Wi,c as Ui}from"./chunk-UUIWMLDX.js";import{a as Gi}from"./chunk-IKQYNTW3.js";import{a as Li}from"./chunk-CSRPJCWO.js";import{a as Hi}from"./chunk-TLRA5TR6.js";import{a as ps}from"./chunk-QPJG6VRT.js";import{a as qi,b as Ji,c as zi,d as Xi}from"./chunk-HVNVO6UW.js";import{a as Ti}from"./chunk-KAM4C6ZD.js";import{a as xs}from"./chunk-25HOGELX.js";import{a as Oi}from"./chunk-QRYEOK3M.js";import{a as ms}from"./chunk-TUV2VI7D.js";import{a as os,b as as}from"./chunk-AXP4H62Q.js";import"./chunk-RKTDEIHF.js";import{a as bs}from"./chunk-NIN762LD.js";import{a as es}from"./chunk-7YI2M2AQ.js";import{a as hs}from"./chunk-6DVA22YE.js";import{a as fs}from"./chunk-GPY33RTH.js";import"./chunk-LJ2YWNQF.js";import{a as ls}from"./chunk-C4C3T4K3.js";import{a as is}from"./chunk-OQZF2DQJ.js";import{a as Rs}from"./chunk-Q4R2IYA3.js";import{a as Ss}from"./chunk-CYJMOTIH.js";import{a as Ki,b as Qi}from"./chunk-Q2ALKKSE.js";import{a as Yi}from"./chunk-PIRXZGV6.js";import{a as Is}from"./chunk-6GPFHZP3.js";import{a as Vi}from"./chunk-4TX5IMMK.js";import{a as rs}from"./chunk-O6VBAW7P.js";import{a as ji,b as Mi}from"./chunk-ERRUE5G4.js";import{a as gs}from"./chunk-AADJ7MCQ.js";import{a as Zi}from"./chunk-VRC3WKKE.js";import{a as ts,b as ns}from"./chunk-7X7FLQC5.js";import{a as ss}from"./chunk-YJODB2F5.js";import{a as ds}from"./chunk-2TLYCK2L.js";import{a as vs}from"./chunk-7LSCW7NF.js";import"./chunk-MO65UK5V.js";import{a as ys}from"./chunk-URCJTFOD.js";import{a as rt}from"./chunk-UAPNU7UP.js";import"./chunk-YXMHTJYY.js";import"./chunk-VEXS3I3N.js";import{a as ge,b as de}from"./chunk-Y4DS3MDC.js";import"./chunk-3PVIYZ74.js";import"./chunk-KW2F3WSV.js";import"./chunk-Z4AMQWVY.js";import"./chunk-ZHHMG4UC.js";import{n as et,o as tt,p as nt}from"./chunk-QFZE73XF.js";import it from"better-sqlite3";var H=class{db;config;pathFilter;constructor(t,n){this.config=t,this.pathFilter=n??null,this.db=new it(t.dbPath,{readonly:!0}),this.db.pragma("busy_timeout = 5000")}isIgnored(t){return this.pathFilter?.isIgnored(t)??!1}get localSymbolPredicate(){return`(
2
2
  EXISTS (
3
3
  SELECT 1
4
4
  FROM defn_enclosing_ranges local_der
@@ -73,14 +73,14 @@ Thumbs.db
73
73
 
74
74
  # Type definitions (often noise in queries)
75
75
  *.d.ts
76
- `;function fe(e,t,n){let r=gt(t,n);if(!r)return!1;try{return e.ignores(r)}catch{return!1}}function gt(e,t){if(!t||t===".")return null;if(!pe(t)&&!t.startsWith(".."))return t.replaceAll("\\","/");let n=pe(t)?t:ut(e,t),r=at(e,n).replaceAll("\\","/");return!r||r==="."||r.startsWith("..")?null:r}import{execFile as kr,execFileSync as Pr}from"child_process";import{closeSync as wr,existsSync as y,mkdirSync as Ue,mkdtempSync as Cr,openSync as Er,readFileSync as Or,renameSync as v,rmSync as R,writeFileSync as He}from"fs";import{cpus as Tr}from"os";import{basename as W,dirname as b,extname as Lr,join as p}from"path";import{execFileSync as k}from"child_process";import{platform as O,arch as dt}from"os";var me=O()==="win32",he="v0.7.0";function E(e){let t=me?"where":"which";try{return k(t,[e],{stdio:"pipe"}),!0}catch{return!1}}function pt(){try{return k(me?"where":"which",["scip"],{stdio:"pipe"}),!0}catch{return!1}}function ft(){try{return k("scip",["--version"],{stdio:"pipe"}).toString().trim()}catch{return null}}function mt(){let e=O(),t=dt(),n,r,i;switch(e){case"darwin":n="darwin",i="tar.gz";break;case"linux":n="linux",i="tar.gz";break;case"win32":n="windows",i="zip";break;default:return null}switch(t){case"arm64":r="arm64";break;case"x64":r="amd64";break;default:return null}let s=`scip-${n}-${r}.${i}`;return{url:`https://github.com/sourcegraph/scip/releases/download/${he}/${s}`,filename:s}}function ht(){let e=mt();console.log("\nThe `scip` CLI is required but not found on PATH.\n"),O()==="darwin"?(console.log("Install via Homebrew:"),console.log(` brew install sourcegraph/scip/scip
76
+ `;function fe(e,t,n){let r=gt(t,n);if(!r)return!1;try{return e.ignores(r)}catch{return!1}}function gt(e,t){if(!t||t===".")return null;if(!pe(t)&&!t.startsWith(".."))return t.replaceAll("\\","/");let n=pe(t)?t:ut(e,t),r=at(e,n).replaceAll("\\","/");return!r||r==="."||r.startsWith("..")?null:r}import{execFile as kr,execFileSync as Pr}from"child_process";import{closeSync as wr,existsSync as y,mkdirSync as Ue,mkdtempSync as Cr,openSync as Er,readFileSync as Or,renameSync as v,rmSync as R,writeFileSync as He}from"fs";import{cpus as Tr}from"os";import{basename as W,dirname as b,extname as Dr,join as p}from"path";import{execFileSync as k}from"child_process";import{platform as O,arch as dt}from"os";var me=O()==="win32",he="v0.7.0";function E(e){let t=me?"where":"which";try{return k(t,[e],{stdio:"pipe"}),!0}catch{return!1}}function pt(){try{return k(me?"where":"which",["scip"],{stdio:"pipe"}),!0}catch{return!1}}function ft(){try{return k("scip",["--version"],{stdio:"pipe"}).toString().trim()}catch{return null}}function mt(){let e=O(),t=dt(),n,r,i;switch(e){case"darwin":n="darwin",i="tar.gz";break;case"linux":n="linux",i="tar.gz";break;case"win32":n="windows",i="zip";break;default:return null}switch(t){case"arm64":r="arm64";break;case"x64":r="amd64";break;default:return null}let s=`scip-${n}-${r}.${i}`;return{url:`https://github.com/sourcegraph/scip/releases/download/${he}/${s}`,filename:s}}function ht(){let e=mt();console.log("\nThe `scip` CLI is required but not found on PATH.\n"),O()==="darwin"?(console.log("Install via Homebrew:"),console.log(` brew install sourcegraph/scip/scip
77
77
  `),console.log("Or download manually:")):console.log("Download from:"),console.log(e?` ${e.url}
78
78
  `:` https://github.com/sourcegraph/scip/releases/tag/${he}
79
- `),console.log("After installing, ensure `scip` is on your PATH and run `scip-query reindex`.")}function T(e){if(O()==="darwin"&&E("brew")){e("Installing scip CLI via Homebrew...");try{if(k("brew",["install","sourcegraph/scip/scip"],{stdio:"inherit",timeout:3e5,env:process.env}),E("scip"))return e("Successfully installed scip CLI via Homebrew"),!0}catch(t){let n=t instanceof Error?t.message:String(t);e(`Homebrew install failed: ${n}`)}}if(E("go")){e("Installing scip CLI via go install...");try{if(k("go",["install","github.com/sourcegraph/scip/cmd/scip@latest"],{stdio:"inherit",timeout:3e5,env:process.env}),E("scip"))return e("Successfully installed scip CLI via go install"),!0}catch(t){let n=t instanceof Error?t.message:String(t);e(`go install failed: ${n}`)}}return e("Could not auto-install scip CLI."),e("Install manually from: https://github.com/sourcegraph/scip/releases"),!1}import bt from"better-sqlite3";import{execFileSync as yt}from"child_process";import{existsSync as xt,readdirSync as St,readFileSync as vt}from"fs";import{extname as L,join as be}from"path";function m(e){let t=new Set((e.extensions??ge).map(s=>s.toLowerCase()));if(t.size===0)return{scanned:0,inserted:0,existing:0};if(!xt(e.dbPath))throw new Error(`SCIP SQLite database not found at ${e.dbPath}`);let n=I(e.projectRoot),r=Rt(e.projectRoot,t).filter(s=>!n.isIgnored(s)),i=new bt(e.dbPath);try{let s=kt(i,r),o=i.prepare(`INSERT OR IGNORE INTO documents (language, relative_path, position_encoding, text)
80
- VALUES (?, ?, NULL, ?)`),u=i.transaction(g=>{let l=0;for(let d of g){if(s.has(d))continue;let f=vt(be(e.projectRoot,d),"utf-8"),Ze=o.run(Pt(d),d,f);l+=Number(Ze.changes)}return l})(r),c={scanned:r.length,inserted:u,existing:r.length-u};return e.onStatus?.(`Augmented SQLite documents with ${u} auxiliary source file${u===1?"":"s"} (${c.existing} already present).`),c}finally{i.close()}}function Rt(e,t){let n=It(e,t);if(n)return n;let r=[],i=s=>{let o=s?be(e,s):e,a;try{a=St(o,{withFileTypes:!0})}catch{return}for(let u of a){if(de.has(u.name))continue;let c=s?`${s}/${u.name}`:u.name;if(u.isDirectory()){i(c);continue}t.has(L(u.name).toLowerCase())&&r.push(c)}};return i(""),r.sort()}function It(e,t){try{return yt("git",["-C",e,"ls-files","-co","--exclude-standard","--","."],{encoding:"utf-8",maxBuffer:26214400,stdio:["ignore","pipe","ignore"]}).split(`
81
- `).filter(r=>r&&t.has(L(r).toLowerCase())).sort()}catch{return null}}function kt(e,t){let n=new Set,r=500;for(let i=0;i<t.length;i+=r){let s=t.slice(i,i+r),o=e.prepare(`SELECT relative_path FROM documents WHERE relative_path IN (${s.map(()=>"?").join(",")})`).all(...s);for(let a of o)n.add(a.relative_path)}return n}function Pt(e){return L(e).toLowerCase()===".vue"?"vue":L(e).replace(/^\./,"").toLowerCase()||"source"}import{execFileSync as wt}from"child_process";import{existsSync as Ct,readdirSync as xe}from"fs";import{extname as Se,join as ve}from"path";var Et=new Set([".git",".hg",".svn",".idea",".vscode","node_modules","vendor","dist","build","target","bin","obj",".dart_tool",".gradle",".next",".venv","venv","__pycache__"]),Ot=[{language:"typescript",files:["tsconfig.json","tsconfig.base.json"],extensions:[".ts",".tsx",".mts",".cts"]},{language:"rust",files:["Cargo.toml"],extensions:[".rs"]},{language:"go",files:["go.mod"],extensions:[".go"]},{language:"java",files:["pom.xml","build.gradle","build.gradle.kts"],extensions:[".java"]},{language:"kotlin",files:["build.gradle.kts"],extensions:[".kt",".kts"]},{language:"scala",files:["build.sbt"],extensions:[".scala"]},{language:"python",files:["pyproject.toml","setup.py","setup.cfg","Pipfile"],extensions:[".py",".pyi"]},{language:"ruby",files:["Gemfile"],extensions:[".rb"]},{language:"cpp",files:["compile_commands.json","CMakeLists.txt","Makefile"],extensions:[".cc",".cpp",".cxx",".hpp",".hh",".hxx"]},{language:"c",files:["compile_commands.json","CMakeLists.txt","Makefile"],extensions:[".c",".h"]},{language:"csharp",globs:["*.csproj","*.sln"],extensions:[".cs"]},{language:"vb",globs:["*.vbproj"],extensions:[".vb"]},{language:"dart",files:["pubspec.yaml"],extensions:[".dart"]},{language:"php",files:["composer.json"],extensions:[".php"]},{language:"javascript",files:["package.json"],extensions:[".js",".jsx",".mjs",".cjs"]}];function D(e){let t=[],n=Tt(e),r=Nt(e);for(let i of Ot){if(Lt(e,i.files)){t.push(i.language);continue}if(Dt(n,i.globs)){t.push(i.language);continue}Mt(r,i.extensions)&&t.push(i.language)}return t.includes("typescript")&&ye(t,"javascript"),t.includes("cpp")&&!r.has(".c")&&ye(t,"c"),t}function Tt(e){try{return xe(e)}catch{return[]}}function Lt(e,t){return t?.length?t.some(n=>Ct(ve(e,n))):!1}function Dt(e,t){return t?.length?e.some(n=>t.some(r=>Ft(n,r))):!1}function Ft(e,t){if(t==="*")return!0;if(!t.includes("*"))return e===t;let[n,r]=t.split("*");return e.startsWith(n??"")&&e.endsWith(r??"")}function Nt(e){let t=jt(e);if(t)return t;let n=new Set,r=[e];for(;r.length>0;){let i=r.pop();if(!i)continue;let s;try{s=xe(i,{withFileTypes:!0})}catch{continue}for(let o of s){if(o.name.startsWith(".")&&!o.name.endsWith("proj")&&!o.name.endsWith("sln")&&o.isDirectory())continue;let a=ve(i,o.name);if(o.isDirectory()){Et.has(o.name)||r.push(a);continue}let u=Se(o.name).toLowerCase();u&&n.add(u)}}return n}function jt(e){try{let t=wt("git",["-C",e,"ls-files","-co","--exclude-standard","--","."],{encoding:"utf-8",maxBuffer:26214400,stdio:["ignore","pipe","ignore"]}),n=new Set;for(let r of t.split(`
79
+ `),console.log("After installing, ensure `scip` is on your PATH and run `scip-query reindex`.")}function T(e){if(O()==="darwin"&&E("brew")){e("Installing scip CLI via Homebrew...");try{if(k("brew",["install","sourcegraph/scip/scip"],{stdio:"inherit",timeout:3e5,env:process.env}),E("scip"))return e("Successfully installed scip CLI via Homebrew"),!0}catch(t){let n=t instanceof Error?t.message:String(t);e(`Homebrew install failed: ${n}`)}}if(E("go")){e("Installing scip CLI via go install...");try{if(k("go",["install","github.com/sourcegraph/scip/cmd/scip@latest"],{stdio:"inherit",timeout:3e5,env:process.env}),E("scip"))return e("Successfully installed scip CLI via go install"),!0}catch(t){let n=t instanceof Error?t.message:String(t);e(`go install failed: ${n}`)}}return e("Could not auto-install scip CLI."),e("Install manually from: https://github.com/sourcegraph/scip/releases"),!1}import bt from"better-sqlite3";import{execFileSync as yt}from"child_process";import{existsSync as xt,readdirSync as St,readFileSync as vt}from"fs";import{extname as D,join as be}from"path";function m(e){let t=new Set((e.extensions??ge).map(s=>s.toLowerCase()));if(t.size===0)return{scanned:0,inserted:0,existing:0};if(!xt(e.dbPath))throw new Error(`SCIP SQLite database not found at ${e.dbPath}`);let n=I(e.projectRoot),r=Rt(e.projectRoot,t).filter(s=>!n.isIgnored(s)),i=new bt(e.dbPath);try{let s=kt(i,r),o=i.prepare(`INSERT OR IGNORE INTO documents (language, relative_path, position_encoding, text)
80
+ VALUES (?, ?, NULL, ?)`),u=i.transaction(g=>{let l=0;for(let d of g){if(s.has(d))continue;let f=vt(be(e.projectRoot,d),"utf-8"),Ze=o.run(Pt(d),d,f);l+=Number(Ze.changes)}return l})(r),c={scanned:r.length,inserted:u,existing:r.length-u};return e.onStatus?.(`Augmented SQLite documents with ${u} auxiliary source file${u===1?"":"s"} (${c.existing} already present).`),c}finally{i.close()}}function Rt(e,t){let n=It(e,t);if(n)return n;let r=[],i=s=>{let o=s?be(e,s):e,a;try{a=St(o,{withFileTypes:!0})}catch{return}for(let u of a){if(de.has(u.name))continue;let c=s?`${s}/${u.name}`:u.name;if(u.isDirectory()){i(c);continue}t.has(D(u.name).toLowerCase())&&r.push(c)}};return i(""),r.sort()}function It(e,t){try{return yt("git",["-C",e,"ls-files","-co","--exclude-standard","--","."],{encoding:"utf-8",maxBuffer:26214400,stdio:["ignore","pipe","ignore"]}).split(`
81
+ `).filter(r=>r&&t.has(D(r).toLowerCase())).sort()}catch{return null}}function kt(e,t){let n=new Set,r=500;for(let i=0;i<t.length;i+=r){let s=t.slice(i,i+r),o=e.prepare(`SELECT relative_path FROM documents WHERE relative_path IN (${s.map(()=>"?").join(",")})`).all(...s);for(let a of o)n.add(a.relative_path)}return n}function Pt(e){return D(e).toLowerCase()===".vue"?"vue":D(e).replace(/^\./,"").toLowerCase()||"source"}import{execFileSync as wt}from"child_process";import{existsSync as Ct,readdirSync as xe}from"fs";import{extname as Se,join as ve}from"path";var Et=new Set([".git",".hg",".svn",".idea",".vscode","node_modules","vendor","dist","build","target","bin","obj",".dart_tool",".gradle",".next",".venv","venv","__pycache__"]),Ot=[{language:"typescript",files:["tsconfig.json","tsconfig.base.json"],extensions:[".ts",".tsx",".mts",".cts"]},{language:"rust",files:["Cargo.toml"],extensions:[".rs"]},{language:"go",files:["go.mod"],extensions:[".go"]},{language:"java",files:["pom.xml","build.gradle","build.gradle.kts"],extensions:[".java"]},{language:"kotlin",files:["build.gradle.kts"],extensions:[".kt",".kts"]},{language:"scala",files:["build.sbt"],extensions:[".scala"]},{language:"python",files:["pyproject.toml","setup.py","setup.cfg","Pipfile"],extensions:[".py",".pyi"]},{language:"ruby",files:["Gemfile"],extensions:[".rb"]},{language:"cpp",files:["compile_commands.json","CMakeLists.txt","Makefile"],extensions:[".cc",".cpp",".cxx",".hpp",".hh",".hxx"]},{language:"c",files:["compile_commands.json","CMakeLists.txt","Makefile"],extensions:[".c",".h"]},{language:"csharp",globs:["*.csproj","*.sln"],extensions:[".cs"]},{language:"vb",globs:["*.vbproj"],extensions:[".vb"]},{language:"dart",files:["pubspec.yaml"],extensions:[".dart"]},{language:"php",files:["composer.json"],extensions:[".php"]},{language:"javascript",files:["package.json"],extensions:[".js",".jsx",".mjs",".cjs"]}];function L(e){let t=[],n=Tt(e),r=Nt(e);for(let i of Ot){if(Dt(e,i.files)){t.push(i.language);continue}if(Lt(n,i.globs)){t.push(i.language);continue}Mt(r,i.extensions)&&t.push(i.language)}return t.includes("typescript")&&ye(t,"javascript"),t.includes("cpp")&&!r.has(".c")&&ye(t,"c"),t}function Tt(e){try{return xe(e)}catch{return[]}}function Dt(e,t){return t?.length?t.some(n=>Ct(ve(e,n))):!1}function Lt(e,t){return t?.length?e.some(n=>t.some(r=>Ft(n,r))):!1}function Ft(e,t){if(t==="*")return!0;if(!t.includes("*"))return e===t;let[n,r]=t.split("*");return e.startsWith(n??"")&&e.endsWith(r??"")}function Nt(e){let t=jt(e);if(t)return t;let n=new Set,r=[e];for(;r.length>0;){let i=r.pop();if(!i)continue;let s;try{s=xe(i,{withFileTypes:!0})}catch{continue}for(let o of s){if(o.name.startsWith(".")&&!o.name.endsWith("proj")&&!o.name.endsWith("sln")&&o.isDirectory())continue;let a=ve(i,o.name);if(o.isDirectory()){Et.has(o.name)||r.push(a);continue}let u=Se(o.name).toLowerCase();u&&n.add(u)}}return n}function jt(e){try{let t=wt("git",["-C",e,"ls-files","-co","--exclude-standard","--","."],{encoding:"utf-8",maxBuffer:26214400,stdio:["ignore","pipe","ignore"]}),n=new Set;for(let r of t.split(`
82
82
  `)){if(!r)continue;let i=Se(r).toLowerCase();i&&n.add(i)}return n}catch{return null}}function Mt(e,t){return t?.length?t.some(n=>e.has(n)):!1}function ye(e,t){let n=e.indexOf(t);n!==-1&&e.splice(n,1)}import{existsSync as Re,readdirSync as _t}from"fs";import{join as z}from"path";var X={typescript:{language:"typescript",indexerBinary:"scip-typescript",checkCommand:"npx scip-typescript --version",indexArgs:({outputPath:e,pnpmWorkspaces:t,indexerBinary:n})=>{let r=["index","--infer-tsconfig","--output",e,"--no-progress-bar"];return t&&r.splice(1,0,"--pnpm-workspaces"),{binary:n,args:r}},markerFiles:["tsconfig.json"],installMethods:[{label:"npm",prerequisite:"npm",binary:"npm",args:["install","-g","@sourcegraph/scip-typescript"]}],installUrl:"https://github.com/sourcegraph/scip-typescript",bundledNpmPackage:"@sourcegraph/scip-typescript"},javascript:{language:"javascript",indexerBinary:"scip-typescript",checkCommand:"npx scip-typescript --version",indexArgs:({outputPath:e,indexerBinary:t})=>({binary:t,args:["index","--infer-tsconfig","--output",e,"--no-progress-bar"]}),markerFiles:["package.json"],installMethods:[{label:"npm",prerequisite:"npm",binary:"npm",args:["install","-g","@sourcegraph/scip-typescript"]}],installUrl:"https://github.com/sourcegraph/scip-typescript",bundledNpmPackage:"@sourcegraph/scip-typescript"},java:{language:"java",indexerBinary:"scip-java",checkCommand:"scip-java --version",indexArgs:({outputPath:e})=>({binary:"scip-java",args:["index","--output",e]}),markerFiles:["pom.xml","build.gradle"],installMethods:[],installUrl:"https://github.com/sourcegraph/scip-java/releases"},scala:{language:"scala",indexerBinary:"scip-java",checkCommand:"scip-java --version",indexArgs:({outputPath:e})=>({binary:"scip-java",args:["index","--output",e]}),markerFiles:["build.sbt"],installMethods:[],installUrl:"https://github.com/sourcegraph/scip-java/releases"},kotlin:{language:"kotlin",indexerBinary:"scip-java",checkCommand:"scip-java --version",indexArgs:({outputPath:e})=>({binary:"scip-java",args:["index","--output",e]}),markerFiles:["build.gradle.kts"],installMethods:[],installUrl:"https://github.com/sourcegraph/scip-java/releases"},rust:{language:"rust",indexerBinary:"rust-analyzer",checkCommand:"rust-analyzer --version",indexArgs:({outputPath:e})=>({binary:"rust-analyzer",args:["scip",".","--output",e]}),markerFiles:["Cargo.toml"],installMethods:[{label:"rustup",prerequisite:"rustup",binary:"rustup",args:["component","add","rust-analyzer"]}],installUrl:"https://github.com/rust-lang/rust-analyzer"},python:{language:"python",indexerBinary:"scip-python-plus",binaryAliases:["scip-python"],checkCommand:"scip-python-plus --version",indexArgs:({outputPath:e,indexerBinary:t})=>({binary:t,args:["index","--output",e,"--project-name","project"]}),markerFiles:["pyproject.toml","setup.py"],installMethods:[{label:"npm",prerequisite:"npm",binary:"npm",args:["install","-g","scip-python-plus"]}],installUrl:"https://github.com/PlunderStruck/scip-python",bundledNpmPackage:"scip-python-plus"},ruby:{language:"ruby",indexerBinary:"scip-ruby",checkCommand:"scip-ruby --version",indexArgs:({indexerBinary:e})=>({binary:e,args:["--dir","."]}),defaultOutputPath:"index.scip",markerFiles:["Gemfile"],installMethods:[],installUrl:"https://github.com/sourcegraph/scip-ruby/releases"},go:{language:"go",indexerBinary:"scip-go",checkCommand:"scip-go --version",indexArgs:({outputPath:e})=>({binary:"scip-go",args:["--output",e]}),markerFiles:["go.mod"],installMethods:[{label:"go install",prerequisite:"go",binary:"go",args:["install","github.com/sourcegraph/scip-go@latest"]}],installUrl:"https://github.com/sourcegraph/scip-go"},cpp:{language:"cpp",indexerBinary:"scip-clang",checkCommand:"scip-clang --version",indexArgs:({outputPath:e})=>({binary:"scip-clang",args:["--compdb-path","compile_commands.json","--index-output-path",e]}),markerFiles:["CMakeLists.txt","Makefile"],installMethods:[],installUrl:"https://github.com/sourcegraph/scip-clang/releases"},c:{language:"c",indexerBinary:"scip-clang",checkCommand:"scip-clang --version",indexArgs:({outputPath:e})=>({binary:"scip-clang",args:["--compdb-path","compile_commands.json","--index-output-path",e]}),markerFiles:["CMakeLists.txt","Makefile"],installMethods:[],installUrl:"https://github.com/sourcegraph/scip-clang/releases"},csharp:{language:"csharp",indexerBinary:"scip-dotnet",checkCommand:"scip-dotnet --version",indexArgs:({projectRoot:e,outputPath:t})=>({binary:"scip-dotnet",args:["index",Ie(e,[".sln",".csproj"])??e,"--output",t,"--working-directory",e]}),markerFiles:["*.csproj","*.sln"],installMethods:[{label:"dotnet",prerequisite:"dotnet",binary:"dotnet",args:["tool","install","--global","scip-dotnet"]}],installUrl:"https://github.com/sourcegraph/scip-dotnet/releases"},vb:{language:"vb",indexerBinary:"scip-dotnet",checkCommand:"scip-dotnet --version",indexArgs:({projectRoot:e,outputPath:t})=>({binary:"scip-dotnet",args:["index",Ie(e,[".sln",".vbproj"])??e,"--output",t,"--working-directory",e]}),markerFiles:["*.vbproj","*.sln"],installMethods:[{label:"dotnet",prerequisite:"dotnet",binary:"dotnet",args:["tool","install","--global","scip-dotnet"]}],installUrl:"https://github.com/sourcegraph/scip-dotnet/releases"},dart:{language:"dart",indexerBinary:"scip-dart",checkCommand:"scip-dart --version",indexArgs:({indexerBinary:e,outputPath:t})=>({binary:e,args:["--output",t]}),markerFiles:["pubspec.yaml"],installMethods:[{label:"dart pub",prerequisite:"dart",binary:"dart",args:["pub","global","activate","scip_dart"]}],installUrl:"https://github.com/Workiva/scip-dart/releases"},php:{language:"php",indexerBinary:"scip-php",projectLocalBinaries:["vendor/davidrjenni/scip-php/bin/scip-php","vendor/bin/scip-php"],checkCommand:"scip-php --version",indexArgs:({projectRoot:e,indexerBinary:t})=>{let n=z(e,"vendor","bin","scip-php"),r=z(e,"vendor","davidrjenni","scip-php","bin","scip-php");return{binary:"php",args:["-d","error_reporting=E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED",Re(r)?r:Re(n)?n:t]}},defaultOutputPath:"index.scip",markerFiles:["composer.json"],installMethods:[],installUrl:"https://github.com/davidrjenni/scip-php/releases"}};function F(e){return X[e]}function Ie(e,t){let n;try{n=_t(e)}catch{return null}for(let r of n)if(t.some(i=>r.endsWith(i)))return z(e,r);return null}import{readFileSync as At,writeFileSync as Vt}from"fs";import{create as K}from"@bufbuild/protobuf";import{deserializeSCIP as $t,serializeSCIP as Bt,DocumentSchema as Wt,IndexSchema as Ut,SymbolInformationSchema as Ht}from"@c4312/scip";function Q(e){if(e.length===0)throw new Error("Cannot merge zero SCIP indexes");if(e.length===1)return e[0];let t=Gt(e),n=qt(e.flatMap(i=>i.documents??[])),r=ke(e.flatMap(i=>i.externalSymbols??[]));return K(Ut,{metadata:t,documents:n,externalSymbols:r})}function N(e,t){if(e.length===0)throw new Error("Cannot merge zero SCIP files");let n=e.map(i=>$t(At(i))),r=Q(n);return Vt(t,Buffer.from(Bt(r))),{documentCount:r.documents.length,externalSymbolCount:r.externalSymbols.length,inputCount:e.length}}function Gt(e){let t=e[0]?.metadata;if(!t)return;let n=t.projectRoot;for(let r of e.slice(1)){let i=r.metadata?.projectRoot;if(n&&i&&i!==n)throw new Error(`Cannot merge SCIP indexes with different project roots: ${n} vs ${i}`)}return t}function qt(e){let t=new Map;for(let n of e){let r=t.get(n.relativePath);if(!r){t.set(n.relativePath,n);continue}t.set(n.relativePath,K(Wt,{language:r.language||n.language,relativePath:r.relativePath||n.relativePath,occurrences:[...r.occurrences,...n.occurrences],symbols:ke([...r.symbols,...n.symbols]),text:zt(r.text,n.text),positionEncoding:r.positionEncoding||n.positionEncoding}))}return[...t.values()]}function ke(e){let t=new Map;for(let n of e){let r=t.get(n.symbol);if(!r){t.set(n.symbol,n);continue}t.set(n.symbol,K(Ht,{symbol:r.symbol,documentation:Xt([...r.documentation,...n.documentation]),relationships:Jt([...r.relationships,...n.relationships]),kind:r.kind||n.kind,displayName:r.displayName||n.displayName,enclosingSymbol:r.enclosingSymbol||n.enclosingSymbol,signatureDocumentation:r.signatureDocumentation??n.signatureDocumentation}))}return[...t.values()]}function Jt(e){let t=new Set,n=[];for(let r of e){let i=[r.symbol,r.isReference?"1":"0",r.isImplementation?"1":"0",r.isTypeDefinition?"1":"0",r.isDefinition?"1":"0"].join("|");t.has(i)||(t.add(i),n.push(r))}return n}function zt(e,t){return e?t?e.length>=t.length?e:t:e:t}function Xt(e){return[...new Set(e)]}import{execFileSync as Kt}from"child_process";import{createHash as Qt}from"crypto";import{readdirSync as Yt,readFileSync as Zt}from"fs";import{join as Pe}from"path";function en(e){return(tn(e)??nn(e)).filter(t=>t&&!we(t)).sort()}function j(e){return en(e).map(t=>{let n=Pe(e,t);try{let r=Zt(n);return{path:t,size:r.byteLength,hash:Qt("sha256").update(r).digest("hex")}}catch{return{path:t,size:-1,hash:"unreadable"}}})}function tn(e){try{return Kt("git",["-C",e,"ls-files","-co","--exclude-standard","--","."],{encoding:"utf-8",maxBuffer:50*1024*1024,stdio:["ignore","pipe","ignore"]}).split(`
83
- `).filter(Boolean)}catch{return null}}function nn(e){let t=[],n=[""];for(;n.length>0;){let r=n.pop(),i=r?Pe(e,r):e,s;try{s=Yt(i,{withFileTypes:!0})}catch{continue}for(let o of s){let a=r?`${r}/${o.name}`:o.name;if(o.isDirectory()){we(a)||n.push(a);continue}t.push(a)}}return t}function we(e){return e.split("/").some(n=>rn.has(n))||e.endsWith(".db")||e.endsWith(".db-wal")||e.endsWith(".db-shm")||e.endsWith(".scip")}var rn=new Set([".git","node_modules",".scipquery-cache",".stryker-tmp","dist","build","coverage",".next",".nuxt","target"]);import{readFileSync as sn,writeFileSync as on}from"fs";import{create as Ce}from"@bufbuild/protobuf";import{deserializeSCIP as an,DocumentSchema as un,IndexSchema as cn,serializeSCIP as ln,SymbolRole as gn}from"@c4312/scip";function Ee(e){let t;try{t=an(sn(e))}catch{return{removedDefinitionOccurrences:0,touchedDocuments:0}}let n=dn(t);return n.removedDefinitionOccurrences>0&&on(e,Buffer.from(ln(n.index))),{removedDefinitionOccurrences:n.removedDefinitionOccurrences,touchedDocuments:n.touchedDocuments}}function dn(e){let t=new Set;for(let s of e.documents)for(let o of s.symbols)o.symbol&&t.add(o.symbol);for(let s of e.externalSymbols)s.symbol&&t.add(s.symbol);let n=0,r=0,i=[];for(let s of e.documents){let o=s.occurrences.filter(a=>(a.symbolRoles&gn.Definition)===0||t.has(a.symbol)?!0:(n+=1,!1));if(o.length===s.occurrences.length){i.push(s);continue}r+=1,i.push(Ce(un,{language:s.language,relativePath:s.relativePath,occurrences:o,symbols:s.symbols,text:s.text,positionEncoding:s.positionEncoding}))}return{index:n===0?e:Ce(cn,{metadata:e.metadata,documents:i,externalSymbols:e.externalSymbols}),removedDefinitionOccurrences:n,touchedDocuments:r}}import{execFileSync as _}from"child_process";import{existsSync as Y,readFileSync as pn}from"fs";import{createRequire as fn}from"module";import{platform as Te}from"os";import{dirname as Oe,join as M}from"path";var mn=fn(import.meta.url),hn=Te()==="win32";function h(e){let t=hn?"where":"which";try{return _(t,[e],{stdio:"pipe"}),!0}catch{return!1}}function Z(e){return[e.indexerBinary,...e.binaryAliases??[]]}function A(e){let t=Z(e);return t.length===1?t[0]:t.join(" or ")}function P(e){for(let t of Z(e))if(h(t))return t;return yn(e)}function V(e){return P(e)!==null||bn(e)}function bn(e){return Le(e)!==null}function yn(e){let t=Le(e);if(!t)return null;let r=JSON.parse(pn(t,"utf8")).bin;if(!r)return null;if(typeof r=="string")return M(Oe(t),r);for(let i of Z(e)){let s=r[i];if(s)return M(Oe(t),s)}return null}function Le(e){if(!e.bundledNpmPackage)return null;try{return mn.resolve(`${e.bundledNpmPackage}/package.json`)}catch{return null}}function ee(e,t){for(let n of e.projectLocalBinaries??[]){let r=M(t,n);if(Y(r))return r}return null}function te(e,t=process.env,n=e.indexerBinary){if(e.indexerBinary!=="scip-dotnet"||De(n,t))return t;let r=xn(n,t);return r?{...t,DOTNET_ROOT:r}:t}function $(e,t){let n=e.installMethods,r=A(e);if(!n?.length)return t(`No auto-install method available for ${r}.`),e.installUrl&&t(`Install manually from: ${e.installUrl}`),!1;for(let i of n)if(h(i.prerequisite)){t(`Installing ${r} via ${i.label}...`);try{_(i.binary,i.args,{stdio:"inherit",timeout:3e5,env:process.env});let s=P(e);if(s){let o=s===e.indexerBinary?"":` (using ${s})`;return t(`Successfully installed ${r} via ${i.label}${o}`),!0}t(`${i.label} command completed but ${r} was not found on PATH`)}catch(s){let o=s instanceof Error?s.message:String(s);t(`${i.label} install failed: ${o}`)}}return t(`Could not auto-install ${r}.`),e.installUrl&&t(`Install manually from: ${e.installUrl}`),!1}function xn(e,t){for(let n of Sn(t))if(De(e,{...t,DOTNET_ROOT:n}))return n;return null}function Sn(e){let t=[],n=e.DOTNET_ROOT;if(n&&Y(n)&&t.push(n),Te()==="darwin"&&h("brew"))try{let r=_("brew",["--prefix","dotnet@9"],{stdio:"pipe",env:e}).toString().trim(),i=M(r,"libexec");Y(i)&&!t.includes(i)&&t.push(i)}catch{}return t}function De(e,t){try{return _(e,["--version"],{stdio:"pipe",env:t}),!0}catch{return!1}}import vn from"better-sqlite3";import{createRequire as Rn}from"module";import{existsSync as Ne,mkdtempSync as In,readFileSync as w,rmSync as kn,statSync as Pn,writeFileSync as wn}from"fs";import{cpus as Cn,tmpdir as En}from"os";import{dirname as re,extname as On,join as S,relative as Tn,resolve as je}from"path";import{pathToFileURL as Ln}from"url";import{Worker as Dn}from"worker_threads";function Me(e){m({projectRoot:e.projectRoot,dbPath:e.dbPath});let t=je(e.projectRoot,e.tsconfig);if(!Ne(t))throw new Error(`Vue tsconfig not found at ${t}`);let n=new vn(e.dbPath);try{let r=er(n,e.projectRoot),i=S(re(e.dbPath),"augment-vue-meta.json"),s=Fe(n,e.projectRoot,e.tsconfig),o=Fn(i,s,e.onStatus);if(o)return o;let a=cr(n,e.projectRoot,r),u=Nn(n,e,t,r,a),c=pr(u.occurrences),g=jn(n,e,r,a,c);e.onStatus?.(`Resolved ${c.length} Vue references with Volar; inserted ${g} mentions.`);let l=Mn(r,c,g,u,a);return An(i,Fe(n,e.projectRoot,e.tsconfig),l),l}finally{n.close()}}function Fn(e,t,n){let r=_n(e,t);return r&&n?.(`Vue references unchanged; reused ${r.resolvedReferences} cached resolved references.`),r}function Nn(e,t,n,r,i){if(qn(r))return Jn({projectRoot:t.projectRoot,dbPath:t.dbPath,tsconfig:t.tsconfig,vueFiles:r});let s=xr(),o=tr(t.projectRoot,n);return Vn({projectRoot:t.projectRoot,vueFiles:o.fileNames.filter(a=>a.endsWith(".vue")),context:o,symbolLookup:or(e,t.projectRoot,s),vueSymbolLookup:i,sourceCache:s})}function jn(e,t,n,r,i){return lr(e,t.projectRoot,n,r,i)}function Mn(e,t,n,r,i){return{vueFiles:e.length,resolvedReferences:t.length,insertedMentions:n,skippedReferences:r.skippedReferences,syntheticSymbols:i.syntheticSymbols}}function _n(e,t){try{let n=JSON.parse(w(e,"utf-8"));return JSON.stringify(n.fingerprint)===JSON.stringify(t)?n.result:null}catch{return null}}function An(e,t,n){wn(e,JSON.stringify({updatedAt:new Date().toISOString(),fingerprint:t,result:n},null,2)+`
83
+ `).filter(Boolean)}catch{return null}}function nn(e){let t=[],n=[""];for(;n.length>0;){let r=n.pop(),i=r?Pe(e,r):e,s;try{s=Yt(i,{withFileTypes:!0})}catch{continue}for(let o of s){let a=r?`${r}/${o.name}`:o.name;if(o.isDirectory()){we(a)||n.push(a);continue}t.push(a)}}return t}function we(e){return e.split("/").some(n=>rn.has(n))||e.endsWith(".db")||e.endsWith(".db-wal")||e.endsWith(".db-shm")||e.endsWith(".scip")}var rn=new Set([".git","node_modules",".scipquery-cache",".stryker-tmp","dist","build","coverage",".next",".nuxt","target"]);import{readFileSync as sn,writeFileSync as on}from"fs";import{create as Ce}from"@bufbuild/protobuf";import{deserializeSCIP as an,DocumentSchema as un,IndexSchema as cn,serializeSCIP as ln,SymbolRole as gn}from"@c4312/scip";function Ee(e){let t;try{t=an(sn(e))}catch{return{removedDefinitionOccurrences:0,touchedDocuments:0}}let n=dn(t);return n.removedDefinitionOccurrences>0&&on(e,Buffer.from(ln(n.index))),{removedDefinitionOccurrences:n.removedDefinitionOccurrences,touchedDocuments:n.touchedDocuments}}function dn(e){let t=new Set;for(let s of e.documents)for(let o of s.symbols)o.symbol&&t.add(o.symbol);for(let s of e.externalSymbols)s.symbol&&t.add(s.symbol);let n=0,r=0,i=[];for(let s of e.documents){let o=s.occurrences.filter(a=>(a.symbolRoles&gn.Definition)===0||t.has(a.symbol)?!0:(n+=1,!1));if(o.length===s.occurrences.length){i.push(s);continue}r+=1,i.push(Ce(un,{language:s.language,relativePath:s.relativePath,occurrences:o,symbols:s.symbols,text:s.text,positionEncoding:s.positionEncoding}))}return{index:n===0?e:Ce(cn,{metadata:e.metadata,documents:i,externalSymbols:e.externalSymbols}),removedDefinitionOccurrences:n,touchedDocuments:r}}import{execFileSync as _}from"child_process";import{existsSync as Y,readFileSync as pn}from"fs";import{createRequire as fn}from"module";import{platform as Te}from"os";import{dirname as Oe,join as M}from"path";var mn=fn(import.meta.url),hn=Te()==="win32";function h(e){let t=hn?"where":"which";try{return _(t,[e],{stdio:"pipe"}),!0}catch{return!1}}function Z(e){return[e.indexerBinary,...e.binaryAliases??[]]}function A(e){let t=Z(e);return t.length===1?t[0]:t.join(" or ")}function P(e){for(let t of Z(e))if(h(t))return t;return yn(e)}function V(e){return P(e)!==null||bn(e)}function bn(e){return De(e)!==null}function yn(e){let t=De(e);if(!t)return null;let r=JSON.parse(pn(t,"utf8")).bin;if(!r)return null;if(typeof r=="string")return M(Oe(t),r);for(let i of Z(e)){let s=r[i];if(s)return M(Oe(t),s)}return null}function De(e){if(!e.bundledNpmPackage)return null;try{return mn.resolve(`${e.bundledNpmPackage}/package.json`)}catch{return null}}function ee(e,t){for(let n of e.projectLocalBinaries??[]){let r=M(t,n);if(Y(r))return r}return null}function te(e,t=process.env,n=e.indexerBinary){if(e.indexerBinary!=="scip-dotnet"||Le(n,t))return t;let r=xn(n,t);return r?{...t,DOTNET_ROOT:r}:t}function $(e,t){let n=e.installMethods,r=A(e);if(!n?.length)return t(`No auto-install method available for ${r}.`),e.installUrl&&t(`Install manually from: ${e.installUrl}`),!1;for(let i of n)if(h(i.prerequisite)){t(`Installing ${r} via ${i.label}...`);try{_(i.binary,i.args,{stdio:"inherit",timeout:3e5,env:process.env});let s=P(e);if(s){let o=s===e.indexerBinary?"":` (using ${s})`;return t(`Successfully installed ${r} via ${i.label}${o}`),!0}t(`${i.label} command completed but ${r} was not found on PATH`)}catch(s){let o=s instanceof Error?s.message:String(s);t(`${i.label} install failed: ${o}`)}}return t(`Could not auto-install ${r}.`),e.installUrl&&t(`Install manually from: ${e.installUrl}`),!1}function xn(e,t){for(let n of Sn(t))if(Le(e,{...t,DOTNET_ROOT:n}))return n;return null}function Sn(e){let t=[],n=e.DOTNET_ROOT;if(n&&Y(n)&&t.push(n),Te()==="darwin"&&h("brew"))try{let r=_("brew",["--prefix","dotnet@9"],{stdio:"pipe",env:e}).toString().trim(),i=M(r,"libexec");Y(i)&&!t.includes(i)&&t.push(i)}catch{}return t}function Le(e,t){try{return _(e,["--version"],{stdio:"pipe",env:t}),!0}catch{return!1}}import vn from"better-sqlite3";import{createRequire as Rn}from"module";import{existsSync as Ne,mkdtempSync as In,readFileSync as w,rmSync as kn,statSync as Pn,writeFileSync as wn}from"fs";import{cpus as Cn,tmpdir as En}from"os";import{dirname as re,extname as On,join as S,relative as Tn,resolve as je}from"path";import{pathToFileURL as Dn}from"url";import{Worker as Ln}from"worker_threads";function Me(e){m({projectRoot:e.projectRoot,dbPath:e.dbPath});let t=je(e.projectRoot,e.tsconfig);if(!Ne(t))throw new Error(`Vue tsconfig not found at ${t}`);let n=new vn(e.dbPath);try{let r=er(n,e.projectRoot),i=S(re(e.dbPath),"augment-vue-meta.json"),s=Fe(n,e.projectRoot,e.tsconfig),o=Fn(i,s,e.onStatus);if(o)return o;let a=cr(n,e.projectRoot,r),u=Nn(n,e,t,r,a),c=pr(u.occurrences),g=jn(n,e,r,a,c);e.onStatus?.(`Resolved ${c.length} Vue references with Volar; inserted ${g} mentions.`);let l=Mn(r,c,g,u,a);return An(i,Fe(n,e.projectRoot,e.tsconfig),l),l}finally{n.close()}}function Fn(e,t,n){let r=_n(e,t);return r&&n?.(`Vue references unchanged; reused ${r.resolvedReferences} cached resolved references.`),r}function Nn(e,t,n,r,i){if(qn(r))return Jn({projectRoot:t.projectRoot,dbPath:t.dbPath,tsconfig:t.tsconfig,vueFiles:r});let s=xr(),o=tr(t.projectRoot,n);return Vn({projectRoot:t.projectRoot,vueFiles:o.fileNames.filter(a=>a.endsWith(".vue")),context:o,symbolLookup:or(e,t.projectRoot,s),vueSymbolLookup:i,sourceCache:s})}function jn(e,t,n,r,i){return lr(e,t.projectRoot,n,r,i)}function Mn(e,t,n,r,i){return{vueFiles:e.length,resolvedReferences:t.length,insertedMentions:n,skippedReferences:r.skippedReferences,syntheticSymbols:i.syntheticSymbols}}function _n(e,t){try{let n=JSON.parse(w(e,"utf-8"));return JSON.stringify(n.fingerprint)===JSON.stringify(t)?n.result:null}catch{return null}}function An(e,t,n){wn(e,JSON.stringify({updatedAt:new Date().toISOString(),fingerprint:t,result:n},null,2)+`
84
84
  `)}function Fe(e,t,n){let r=e.prepare(`
85
85
  SELECT
86
86
  (SELECT COUNT(*) FROM documents) AS documents,
@@ -90,7 +90,7 @@ Thumbs.db
90
90
  (SELECT COUNT(*) FROM defn_enclosing_ranges) AS ranges,
91
91
  (SELECT MAX(id) FROM chunks) AS maxChunkId,
92
92
  (SELECT MAX(id) FROM global_symbols) AS maxSymbolId
93
- `).get();return{version:2,tsconfig:n,files:j(t),db:r}}function Vn(e){let t=[],n=0,r=e.tasks??e.vueFiles.map(i=>({fileName:i,startOffset:0,endOffset:Number.POSITIVE_INFINITY,countFileSkip:!0}));for(let i of r){let s=$n(e,i);t.push(...s.occurrences),n+=s.skippedReferences}return{occurrences:t,skippedReferences:n}}function $n(e,t){let n=e.context.language.scripts.get(t.fileName),r=n?.generated?.languagePlugin.typescript?.getServiceScript(n.generated.root)?.code;if(!n||!r)return{occurrences:[],skippedReferences:t.countFileSkip?1:0};let i=e.sourceCache(t.fileName);if(!i)return{occurrences:[],skippedReferences:t.countFileSkip?1:0};let s=e.context.language.maps.get(r,n),o=C(e.projectRoot,t.fileName),a=[...mr(i.text)],u={tokens:a.filter(c=>c.start>=t.startOffset&&c.start<t.endOffset),tokenByStart:new Map(a.map(c=>[c.start,c])),tokenTextCounts:Un(a),processedStarts:new Set};return Bn({...e,fileName:t.fileName,sourceInfo:i,sourceFile:o,map:s,tokenContext:u})}function Bn(e){let t=[],n=0;for(let r of e.tokenContext.tokens){if(e.tokenContext.processedStarts.has(r.start))continue;let i=hr(e.map,r.start);if(i===null)continue;let o=(e.context.languageService.getDefinitionAtPosition(e.fileName,i+1)??[]).find(u=>!br(e.projectRoot,u.fileName));if(!o){n++;continue}let a=dr(o,e.symbolLookup,e.vueSymbolLookup,e.context,e.projectRoot);if(a===null){n++;continue}_e(t,e.sourceInfo,e.sourceFile,r,a),e.tokenContext.processedStarts.add(r.start),Wn(t,e,r,i,a)}return{occurrences:t,skippedReferences:n}}function Wn(e,t,n,r,i){if(!((t.tokenContext.tokenTextCounts.get(n.text)??0)<=1))for(let s of Hn(t.context.languageService,t.fileName,r+1,t.map,n,t.tokenContext.tokenByStart)){if(t.tokenContext.processedStarts.has(s))continue;let o=t.tokenContext.tokenByStart.get(s);o&&(_e(e,t.sourceInfo,t.sourceFile,o,i),t.tokenContext.processedStarts.add(s))}}function _e(e,t,n,r,i){let s=We(t,r.start);e.push({sourceFile:n,sourceLine:s.line,sourceStartChar:s.character,sourceEndChar:s.character+r.text.length,symbolId:i})}function Un(e){let t=new Map;for(let n of e)t.set(n.text,(t.get(n.text)??0)+1);return t}function Hn(e,t,n,r,i,s){let o=e.getDocumentHighlights?.(t,n,[t])??[],a=[];for(let u of o)if(u.fileName===t)for(let c of u.highlightSpans){let g=Gn(r,c.textSpan.start,s,i.text);g!==null&&a.push(g)}return a}function Gn(e,t,n,r){let i=n.get(t);if(i?.text===r)return i.start;let s=Be(e,t);if(s===null)return null;let o=n.get(s);return o?.text===r?o.start:null}function qn(e){return e.length>=8&&Ae(e.length)>1}function Jn(e){let t=Ae(e.vueFiles.length),n=Xn(e.vueFiles),r=Qn(n,t),i=new URL("./augment-vue-worker.js",import.meta.url),s=In(S(En(),"scip-query-vue-workers-")),o=new SharedArrayBuffer(4),a=new Int32Array(o),u=zn(),c=Date.now();try{for(let l=0;l<r.length;l++)new Dn(i,{workerData:{projectRoot:e.projectRoot,dbPath:e.dbPath,tsconfig:e.tsconfig,tasks:r[l],resultPath:S(s,`${l}.json`),sharedBuffer:o}});for(;Atomics.load(a,0)<r.length;){if(Date.now()-c>u)throw new Error(`Vue reference workers timed out after ${(u/1e3).toFixed(0)}s`);Atomics.wait(a,0,Atomics.load(a,0),100)}let g=r.map((l,d)=>{let f=JSON.parse(w(S(s,`${d}.json`),"utf-8"));if(!f.ok)throw new Error(`Vue reference worker failed: ${f.error}`);return f.result});return{occurrences:g.flatMap(l=>l.occurrences),skippedReferences:g.reduce((l,d)=>l+d.skippedReferences,0)}}finally{kn(s,{recursive:!0,force:!0})}}function Ae(e){let t=Number(process.env.SCIP_QUERY_AUGMENT_VUE_WORKERS??0),n=Number.isFinite(t)&&t>0?t:Math.min(8,Math.max(1,Cn().length-1));return Math.max(1,Math.min(e,n))}function zn(){let e=Number(process.env.SCIP_QUERY_AUGMENT_VUE_WORKER_TIMEOUT_MS??0);return Number.isFinite(e)&&e>0?e:3e5}function Xn(e){let t=Kn(),n=[];for(let r of e){let i=Ve(r),s=Math.max(1,Math.ceil(i/t));for(let o=0;o<s;o++)n.push({fileName:r,startOffset:Math.floor(i*o/s),endOffset:o===s-1?Number.POSITIVE_INFINITY:Math.floor(i*(o+1)/s),countFileSkip:o===0})}return n}function Kn(){return Number.POSITIVE_INFINITY}function Qn(e,t){let n=Array.from({length:t},()=>({tasks:[],weight:0})),r=e.map(i=>({task:i,weight:Yn(i)})).sort((i,s)=>s.weight-i.weight);for(let i of r){let s=n.reduce((o,a)=>a.weight<o.weight?a:o);s.tasks.push(i.task),s.weight+=i.weight}return n.map(i=>i.tasks).filter(i=>i.length>0)}function Yn(e){return Number.isFinite(e.endOffset)?Math.max(1,e.endOffset-e.startOffset):Math.max(1,Ve(e.fileName)-e.startOffset)}function Ve(e){try{return Pn(e).size}catch{return 1}}function Zn(e){e.transaction(()=>{e.prepare(`
93
+ `).get();return{version:2,tsconfig:n,files:j(t),db:r}}function Vn(e){let t=[],n=0,r=e.tasks??e.vueFiles.map(i=>({fileName:i,startOffset:0,endOffset:Number.POSITIVE_INFINITY,countFileSkip:!0}));for(let i of r){let s=$n(e,i);t.push(...s.occurrences),n+=s.skippedReferences}return{occurrences:t,skippedReferences:n}}function $n(e,t){let n=e.context.language.scripts.get(t.fileName),r=n?.generated?.languagePlugin.typescript?.getServiceScript(n.generated.root)?.code;if(!n||!r)return{occurrences:[],skippedReferences:t.countFileSkip?1:0};let i=e.sourceCache(t.fileName);if(!i)return{occurrences:[],skippedReferences:t.countFileSkip?1:0};let s=e.context.language.maps.get(r,n),o=C(e.projectRoot,t.fileName),a=[...mr(i.text)],u={tokens:a.filter(c=>c.start>=t.startOffset&&c.start<t.endOffset),tokenByStart:new Map(a.map(c=>[c.start,c])),tokenTextCounts:Un(a),processedStarts:new Set};return Bn({...e,fileName:t.fileName,sourceInfo:i,sourceFile:o,map:s,tokenContext:u})}function Bn(e){let t=[],n=0;for(let r of e.tokenContext.tokens){if(e.tokenContext.processedStarts.has(r.start))continue;let i=hr(e.map,r.start);if(i===null)continue;let o=(e.context.languageService.getDefinitionAtPosition(e.fileName,i+1)??[]).find(u=>!br(e.projectRoot,u.fileName));if(!o){n++;continue}let a=dr(o,e.symbolLookup,e.vueSymbolLookup,e.context,e.projectRoot);if(a===null){n++;continue}_e(t,e.sourceInfo,e.sourceFile,r,a),e.tokenContext.processedStarts.add(r.start),Wn(t,e,r,i,a)}return{occurrences:t,skippedReferences:n}}function Wn(e,t,n,r,i){if(!((t.tokenContext.tokenTextCounts.get(n.text)??0)<=1))for(let s of Hn(t.context.languageService,t.fileName,r+1,t.map,n,t.tokenContext.tokenByStart)){if(t.tokenContext.processedStarts.has(s))continue;let o=t.tokenContext.tokenByStart.get(s);o&&(_e(e,t.sourceInfo,t.sourceFile,o,i),t.tokenContext.processedStarts.add(s))}}function _e(e,t,n,r,i){let s=We(t,r.start);e.push({sourceFile:n,sourceLine:s.line,sourceStartChar:s.character,sourceEndChar:s.character+r.text.length,symbolId:i})}function Un(e){let t=new Map;for(let n of e)t.set(n.text,(t.get(n.text)??0)+1);return t}function Hn(e,t,n,r,i,s){let o=e.getDocumentHighlights?.(t,n,[t])??[],a=[];for(let u of o)if(u.fileName===t)for(let c of u.highlightSpans){let g=Gn(r,c.textSpan.start,s,i.text);g!==null&&a.push(g)}return a}function Gn(e,t,n,r){let i=n.get(t);if(i?.text===r)return i.start;let s=Be(e,t);if(s===null)return null;let o=n.get(s);return o?.text===r?o.start:null}function qn(e){return e.length>=8&&Ae(e.length)>1}function Jn(e){let t=Ae(e.vueFiles.length),n=Xn(e.vueFiles),r=Qn(n,t),i=new URL("./augment-vue-worker.js",import.meta.url),s=In(S(En(),"scip-query-vue-workers-")),o=new SharedArrayBuffer(4),a=new Int32Array(o),u=zn(),c=Date.now();try{for(let l=0;l<r.length;l++)new Ln(i,{workerData:{projectRoot:e.projectRoot,dbPath:e.dbPath,tsconfig:e.tsconfig,tasks:r[l],resultPath:S(s,`${l}.json`),sharedBuffer:o}});for(;Atomics.load(a,0)<r.length;){if(Date.now()-c>u)throw new Error(`Vue reference workers timed out after ${(u/1e3).toFixed(0)}s`);Atomics.wait(a,0,Atomics.load(a,0),100)}let g=r.map((l,d)=>{let f=JSON.parse(w(S(s,`${d}.json`),"utf-8"));if(!f.ok)throw new Error(`Vue reference worker failed: ${f.error}`);return f.result});return{occurrences:g.flatMap(l=>l.occurrences),skippedReferences:g.reduce((l,d)=>l+d.skippedReferences,0)}}finally{kn(s,{recursive:!0,force:!0})}}function Ae(e){let t=Number(process.env.SCIP_QUERY_AUGMENT_VUE_WORKERS??0),n=Number.isFinite(t)&&t>0?t:Math.min(8,Math.max(1,Cn().length-1));return Math.max(1,Math.min(e,n))}function zn(){let e=Number(process.env.SCIP_QUERY_AUGMENT_VUE_WORKER_TIMEOUT_MS??0);return Number.isFinite(e)&&e>0?e:3e5}function Xn(e){let t=Kn(),n=[];for(let r of e){let i=Ve(r),s=Math.max(1,Math.ceil(i/t));for(let o=0;o<s;o++)n.push({fileName:r,startOffset:Math.floor(i*o/s),endOffset:o===s-1?Number.POSITIVE_INFINITY:Math.floor(i*(o+1)/s),countFileSkip:o===0})}return n}function Kn(){return Number.POSITIVE_INFINITY}function Qn(e,t){let n=Array.from({length:t},()=>({tasks:[],weight:0})),r=e.map(i=>({task:i,weight:Yn(i)})).sort((i,s)=>s.weight-i.weight);for(let i of r){let s=n.reduce((o,a)=>a.weight<o.weight?a:o);s.tasks.push(i.task),s.weight+=i.weight}return n.map(i=>i.tasks).filter(i=>i.length>0)}function Yn(e){return Number.isFinite(e.endOffset)?Math.max(1,e.endOffset-e.startOffset):Math.max(1,Ve(e.fileName)-e.startOffset)}function Ve(e){try{return Pn(e).size}catch{return 1}}function Zn(e){e.transaction(()=>{e.prepare(`
94
94
  DELETE FROM mentions
95
95
  WHERE chunk_id IN (
96
96
  SELECT c.id
@@ -110,7 +110,7 @@ Thumbs.db
110
110
  FROM documents
111
111
  WHERE language = 'vue' OR relative_path LIKE '%.vue'
112
112
  ORDER BY relative_path
113
- `).all().map(r=>je(t,r.relativePath))}function tr(e,t){let{vueCore:n,ts:r,volarTs:i}=nr(e),{parsed:s,vueOptions:o}=rr(n,r,t),a=re(t),u=n.createVueLanguagePlugin(r,s.options,o,f=>f),c=ir(n,r,u),g=sr(a,s),{languageServiceHost:l}=i.createLanguageServiceHost(r,r.sys,c,f=>f,g),d=r.createLanguageService(l);return{ts:r,language:c,languageService:d,fileNames:s.fileNames,configDir:a}}function nr(e){let t=Rn(Ln(S(e,"package.json")).href);return{vueCore:ne(t,"@vue/language-core",e),ts:ne(t,"typescript",e),volarTs:ne(t,"@volar/typescript",e)}}function rr(e,t,n){let r=t.readConfigFile(n,t.sys.readFile);if(r.error||!r.config)throw new Error(`Failed to read ${n}`);let s=e.createParsedCommandLine(t,t.sys,n).vueOptions;return typeof e.createGlobalTypesWriter=="function"&&(s.globalTypesPath=e.createGlobalTypesWriter(s,t.sys.writeFile)),{parsed:t.parseJsonConfigFileContent(r.config,t.sys,re(n),void 0,n,void 0,e.getAllExtensions(s).map(o=>({extension:o.slice(1),isMixedContent:!0,scriptKind:t.ScriptKind.Deferred}))),vueOptions:s}}function ir(e,t,n){let r={},i=e.createLanguage([n],new Map,s=>{if(!Ne(s))return;let o=w(s,"utf-8");r.current?.scripts.set(s,t.ScriptSnapshot.fromString(o),n.getLanguageId(s)??yr(s))});return r.current=i,i}function sr(e,t){return{getCurrentDirectory:()=>e,getCompilationSettings:()=>t.options,getScriptFileNames:()=>t.fileNames,getProjectReferences:()=>t.projectReferences,getProjectVersion:()=>"0"}}function ne(e,t,n){try{return e(t)}catch(r){throw(typeof r=="object"&&r!==null&&"code"in r?r.code:null)==="MODULE_NOT_FOUND"?new Error(`Vue augmentation requires ${t} to be installed in ${n}. Install Vue/Volar dependencies for that project, then rerun augment-vue.`,{cause:r}):r}}function or(e,t,n){let r=ar(e);return i=>{let s=C(t,i.fileName),o=n(i.fileName);if(!o)return null;let a=We(o,i.textSpan.start),u=r.get(s);if(!u)return null;let c=u.containingByLine.get(a.line);return c!==void 0?c:ur(u.starts,a.line,2)}}function ar(e){let t=e.prepare(`
113
+ `).all().map(r=>je(t,r.relativePath))}function tr(e,t){let{vueCore:n,ts:r,volarTs:i}=nr(e),{parsed:s,vueOptions:o}=rr(n,r,t),a=re(t),u=n.createVueLanguagePlugin(r,s.options,o,f=>f),c=ir(n,r,u),g=sr(a,s),{languageServiceHost:l}=i.createLanguageServiceHost(r,r.sys,c,f=>f,g),d=r.createLanguageService(l);return{ts:r,language:c,languageService:d,fileNames:s.fileNames,configDir:a}}function nr(e){let t=Rn(Dn(S(e,"package.json")).href);return{vueCore:ne(t,"@vue/language-core",e),ts:ne(t,"typescript",e),volarTs:ne(t,"@volar/typescript",e)}}function rr(e,t,n){let r=t.readConfigFile(n,t.sys.readFile);if(r.error||!r.config)throw new Error(`Failed to read ${n}`);let s=e.createParsedCommandLine(t,t.sys,n).vueOptions;return typeof e.createGlobalTypesWriter=="function"&&(s.globalTypesPath=e.createGlobalTypesWriter(s,t.sys.writeFile)),{parsed:t.parseJsonConfigFileContent(r.config,t.sys,re(n),void 0,n,void 0,e.getAllExtensions(s).map(o=>({extension:o.slice(1),isMixedContent:!0,scriptKind:t.ScriptKind.Deferred}))),vueOptions:s}}function ir(e,t,n){let r={},i=e.createLanguage([n],new Map,s=>{if(!Ne(s))return;let o=w(s,"utf-8");r.current?.scripts.set(s,t.ScriptSnapshot.fromString(o),n.getLanguageId(s)??yr(s))});return r.current=i,i}function sr(e,t){return{getCurrentDirectory:()=>e,getCompilationSettings:()=>t.options,getScriptFileNames:()=>t.fileNames,getProjectReferences:()=>t.projectReferences,getProjectVersion:()=>"0"}}function ne(e,t,n){try{return e(t)}catch(r){throw(typeof r=="object"&&r!==null&&"code"in r?r.code:null)==="MODULE_NOT_FOUND"?new Error(`Vue augmentation requires ${t} to be installed in ${n}. Install Vue/Volar dependencies for that project, then rerun augment-vue.`,{cause:r}):r}}function or(e,t,n){let r=ar(e);return i=>{let s=C(t,i.fileName),o=n(i.fileName);if(!o)return null;let a=We(o,i.textSpan.start),u=r.get(s);if(!u)return null;let c=u.containingByLine.get(a.line);return c!==void 0?c:ur(u.starts,a.line,2)}}function ar(e){let t=e.prepare(`
114
114
  SELECT
115
115
  d.relative_path AS relativePath,
116
116
  der.start_line AS startLine,
@@ -134,15 +134,15 @@ Thumbs.db
134
134
  `),i=e.prepare(`
135
135
  INSERT OR IGNORE INTO mentions (chunk_id, symbol_id, role)
136
136
  VALUES (?, ?, 0)
137
- `),s=new Set,o=0,a=0;for(let u of t){let c=$e(u);if(s.has(c))continue;s.add(c);let g=n.get(u.sourceFile);if(!g)continue;let l=r.run(g,a++,u.sourceLine,u.sourceLine),d=i.run(Number(l.lastInsertRowid),u.symbolId);o+=Number(d.changes)}return o}function*mr(e){let t=/\b[A-Za-z_$][A-Za-z0-9_$]*\b/g,n=new Set(["script","setup","template","style","lang","scoped","true","false","null","undefined","const","let","var","import","from","export","return","if","else","for","while","function","class","type","interface","as","await","async"]),r;for(;r=t.exec(e);){let i=r[0];n.has(i)||(yield{text:i,start:r.index,end:r.index+i.length})}}function hr(e,t){for(let[n]of e.toGeneratedLocation(t,r=>!!r.navigation))return n;return null}function Be(e,t){let n=e;for(let[r]of n.toSourceLocation(t,i=>!!i.navigation))return r;return null}function We(e,t){let n=0,r=e.lineStarts.length-1;for(;n<=r;){let s=Math.floor((n+r)/2);e.lineStarts[s]<=t?n=s+1:r=s-1}let i=Math.max(0,r);return{line:i,character:t-e.lineStarts[i]}}function br(e,t){return C(e,t).startsWith("node_modules/")}function C(e,t){return Tn(e,t).replaceAll("\\","/")}function yr(e){switch(On(e)){case".vue":return"vue";case".tsx":return"typescriptreact";case".ts":case".mts":case".cts":return"typescript";case".jsx":return"javascriptreact";case".js":case".mjs":case".cjs":return"javascript";case".json":return"json";default:return"typescript"}}function xr(){let e=new Map;return t=>{if(e.has(t))return e.get(t)??null;try{let n=w(t,"utf-8"),r={text:n,lineStarts:Sr(n)};return e.set(t,r),r}catch{return e.set(t,null),null}}}function Sr(e){let t=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&t.push(n+1);return t}function vr(e,t){let n=new Map,r=500;for(let i=0;i<t.length;i+=r){let s=t.slice(i,i+r),o=e.prepare(`SELECT id, relative_path AS relativePath FROM documents WHERE relative_path IN (${s.map(()=>"?").join(",")})`).all(...s);for(let a of o)n.set(a.relativePath,a.id)}return n}function Rr(e){try{let t=JSON.parse(w(S(e,"package.json"),"utf-8"));return{name:t.name??"workspace",version:t.version??"0.0.0"}}catch{return{name:"workspace",version:"0.0.0"}}}function Ir(e,t,n){let r=n.split("/").map(i=>`\`${i.replaceAll("`","")}\``).join("/");return`scip-vue npm ${e} ${t} ${r}/default.`}async function Dr(e){let{projectRoot:t,maxHeapMb:n=8192,onStatus:r=console.log,skipAutoInstall:i=!1}=e,s=Fr(e),o=Date.now();Ue(b(s.outputScip),{recursive:!0}),Ue(b(s.outputDb),{recursive:!0});let a=e.languages??D(t);if(a.length===0)throw new Error("No supported languages detected in this project. Looked for: tsconfig.json, Cargo.toml, go.mod, pyproject.toml, etc.");r(`Detected languages: ${a.join(", ")}`);let u=ni(t,a,{pnpmWorkspaces:e.pnpmWorkspaces}),c=Kr(p(b(s.outputDb),"index.lock")),g=null;try{let l=Nr({opts:e,paths:s,languages:a,fingerprint:u,start:o,onStatus:r});if(l)return l;Vr(i,r);let d=jr(s);return g=d.runDir,await Mr({opts:e,languages:a,projectRoot:t,paths:s,tempPaths:d,fingerprint:u,start:o,maxHeapMb:n,skipAutoInstall:i,onStatus:r})}finally{g&&R(g,{recursive:!0,force:!0}),c()}}function Fr(e){let t=e.outputScip??p(e.projectRoot,"index.scip"),n=e.outputDb??p(e.projectRoot,"index.db");return{outputScip:t,outputDb:n,metaPath:p(b(n),"meta.json")}}function Nr(e){if(e.opts.skipIfUnchanged===!1||!y(e.paths.outputScip)||!y(e.paths.outputDb)||!ri(e.paths.metaPath,e.fingerprint))return null;m({projectRoot:e.opts.projectRoot,dbPath:e.paths.outputDb,onStatus:e.onStatus});let t=Date.now()-e.start;return e.onStatus(`Index unchanged; reused existing SQLite index in ${(t/1e3).toFixed(1)}s`),{languages:e.languages,indexPath:e.paths.outputScip,dbPath:e.paths.outputDb,durationMs:t,reused:!0,skipped:[]}}function jr(e){let t=Cr(p(b(e.outputDb),"reindex-"));return{runDir:t,tempOutputScip:p(t,W(e.outputScip)),tempOutputDb:p(t,W(e.outputDb)),tempMetaPath:p(t,W(e.metaPath))}}async function Mr(e){let t={...process.env,NODE_OPTIONS:`--max-old-space-size=${e.maxHeapMb}`},{indexedOutputs:n,skippedLanguages:r}=await _r(e,t);Ar(e,t,n,r);let i=Date.now()-e.start;return e.onStatus(`Done in ${(i/1e3).toFixed(1)}s`),{languages:n.map(s=>s.language),indexPath:e.paths.outputScip,dbPath:e.paths.outputDb,durationMs:i,reused:!1,skipped:r}}async function _r(e,t){let{preparedRuns:n,skippedLanguages:r}=$r({languages:e.languages,tempOutputScip:e.tempPaths.tempOutputScip,projectRoot:e.projectRoot,env:t,skipAutoInstall:e.skipAutoInstall,pnpmWorkspaces:e.opts.pnpmWorkspaces,onStatus:e.onStatus}),i=await Zr(n,e.projectRoot,e.onStatus,e.opts.indexerConcurrency),{indexedOutputs:s}=Wr(i,r);return Ur(s,r,e.languages,e.opts.allowPartial,e.onStatus),{indexedOutputs:s,skippedLanguages:r}}function Ar(e,t,n,r){Hr(n,e.tempPaths.tempOutputScip,e.onStatus),Gr(e.tempPaths.tempOutputScip,e.tempPaths.tempOutputDb,t,e.onStatus),m({projectRoot:e.projectRoot,dbPath:e.tempPaths.tempOutputDb,onStatus:e.onStatus}),ii(e.tempPaths.tempMetaPath,{version:2,status:r.length===0?"complete":"partial",updatedAt:new Date().toISOString(),fingerprint:e.fingerprint,requestedLanguages:e.languages,indexedLanguages:n.map(i=>i.language),skipped:[...r]}),Qr({tempOutputScip:e.tempPaths.tempOutputScip,tempOutputDb:e.tempPaths.tempOutputDb,tempMetaPath:e.tempPaths.tempMetaPath,outputScip:e.paths.outputScip,outputDb:e.paths.outputDb,metaPath:e.paths.metaPath})}function Vr(e,t){if(!h("scip")){if(e)throw new Error(`The scip CLI is required but not found on PATH.
137
+ `),s=new Set,o=0,a=0;for(let u of t){let c=$e(u);if(s.has(c))continue;s.add(c);let g=n.get(u.sourceFile);if(!g)continue;let l=r.run(g,a++,u.sourceLine,u.sourceLine),d=i.run(Number(l.lastInsertRowid),u.symbolId);o+=Number(d.changes)}return o}function*mr(e){let t=/\b[A-Za-z_$][A-Za-z0-9_$]*\b/g,n=new Set(["script","setup","template","style","lang","scoped","true","false","null","undefined","const","let","var","import","from","export","return","if","else","for","while","function","class","type","interface","as","await","async"]),r;for(;r=t.exec(e);){let i=r[0];n.has(i)||(yield{text:i,start:r.index,end:r.index+i.length})}}function hr(e,t){for(let[n]of e.toGeneratedLocation(t,r=>!!r.navigation))return n;return null}function Be(e,t){let n=e;for(let[r]of n.toSourceLocation(t,i=>!!i.navigation))return r;return null}function We(e,t){let n=0,r=e.lineStarts.length-1;for(;n<=r;){let s=Math.floor((n+r)/2);e.lineStarts[s]<=t?n=s+1:r=s-1}let i=Math.max(0,r);return{line:i,character:t-e.lineStarts[i]}}function br(e,t){return C(e,t).startsWith("node_modules/")}function C(e,t){return Tn(e,t).replaceAll("\\","/")}function yr(e){switch(On(e)){case".vue":return"vue";case".tsx":return"typescriptreact";case".ts":case".mts":case".cts":return"typescript";case".jsx":return"javascriptreact";case".js":case".mjs":case".cjs":return"javascript";case".json":return"json";default:return"typescript"}}function xr(){let e=new Map;return t=>{if(e.has(t))return e.get(t)??null;try{let n=w(t,"utf-8"),r={text:n,lineStarts:Sr(n)};return e.set(t,r),r}catch{return e.set(t,null),null}}}function Sr(e){let t=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&t.push(n+1);return t}function vr(e,t){let n=new Map,r=500;for(let i=0;i<t.length;i+=r){let s=t.slice(i,i+r),o=e.prepare(`SELECT id, relative_path AS relativePath FROM documents WHERE relative_path IN (${s.map(()=>"?").join(",")})`).all(...s);for(let a of o)n.set(a.relativePath,a.id)}return n}function Rr(e){try{let t=JSON.parse(w(S(e,"package.json"),"utf-8"));return{name:t.name??"workspace",version:t.version??"0.0.0"}}catch{return{name:"workspace",version:"0.0.0"}}}function Ir(e,t,n){let r=n.split("/").map(i=>`\`${i.replaceAll("`","")}\``).join("/");return`scip-vue npm ${e} ${t} ${r}/default.`}async function Lr(e){let{projectRoot:t,maxHeapMb:n=8192,onStatus:r=console.log,skipAutoInstall:i=!1}=e,s=Fr(e),o=Date.now();Ue(b(s.outputScip),{recursive:!0}),Ue(b(s.outputDb),{recursive:!0});let a=e.languages??L(t);if(a.length===0)throw new Error("No supported languages detected in this project. Looked for: tsconfig.json, Cargo.toml, go.mod, pyproject.toml, etc.");r(`Detected languages: ${a.join(", ")}`);let u=ni(t,a,{pnpmWorkspaces:e.pnpmWorkspaces}),c=Kr(p(b(s.outputDb),"index.lock")),g=null;try{let l=Nr({opts:e,paths:s,languages:a,fingerprint:u,start:o,onStatus:r});if(l)return l;Vr(i,r);let d=jr(s);return g=d.runDir,await Mr({opts:e,languages:a,projectRoot:t,paths:s,tempPaths:d,fingerprint:u,start:o,maxHeapMb:n,skipAutoInstall:i,onStatus:r})}finally{g&&R(g,{recursive:!0,force:!0}),c()}}function Fr(e){let t=e.outputScip??p(e.projectRoot,"index.scip"),n=e.outputDb??p(e.projectRoot,"index.db");return{outputScip:t,outputDb:n,metaPath:p(b(n),"meta.json")}}function Nr(e){if(e.opts.skipIfUnchanged===!1||!y(e.paths.outputScip)||!y(e.paths.outputDb)||!ri(e.paths.metaPath,e.fingerprint))return null;m({projectRoot:e.opts.projectRoot,dbPath:e.paths.outputDb,onStatus:e.onStatus});let t=Date.now()-e.start;return e.onStatus(`Index unchanged; reused existing SQLite index in ${(t/1e3).toFixed(1)}s`),{languages:e.languages,indexPath:e.paths.outputScip,dbPath:e.paths.outputDb,durationMs:t,reused:!0,skipped:[]}}function jr(e){let t=Cr(p(b(e.outputDb),"reindex-"));return{runDir:t,tempOutputScip:p(t,W(e.outputScip)),tempOutputDb:p(t,W(e.outputDb)),tempMetaPath:p(t,W(e.metaPath))}}async function Mr(e){let t={...process.env,NODE_OPTIONS:`--max-old-space-size=${e.maxHeapMb}`},{indexedOutputs:n,skippedLanguages:r}=await _r(e,t);Ar(e,t,n,r);let i=Date.now()-e.start;return e.onStatus(`Done in ${(i/1e3).toFixed(1)}s`),{languages:n.map(s=>s.language),indexPath:e.paths.outputScip,dbPath:e.paths.outputDb,durationMs:i,reused:!1,skipped:r}}async function _r(e,t){let{preparedRuns:n,skippedLanguages:r}=$r({languages:e.languages,tempOutputScip:e.tempPaths.tempOutputScip,projectRoot:e.projectRoot,env:t,skipAutoInstall:e.skipAutoInstall,pnpmWorkspaces:e.opts.pnpmWorkspaces,onStatus:e.onStatus}),i=await Zr(n,e.projectRoot,e.onStatus,e.opts.indexerConcurrency),{indexedOutputs:s}=Wr(i,r);return Ur(s,r,e.languages,e.opts.allowPartial,e.onStatus),{indexedOutputs:s,skippedLanguages:r}}function Ar(e,t,n,r){Hr(n,e.tempPaths.tempOutputScip,e.onStatus),Gr(e.tempPaths.tempOutputScip,e.tempPaths.tempOutputDb,t,e.onStatus),m({projectRoot:e.projectRoot,dbPath:e.tempPaths.tempOutputDb,onStatus:e.onStatus}),ii(e.tempPaths.tempMetaPath,{version:2,status:r.length===0?"complete":"partial",updatedAt:new Date().toISOString(),fingerprint:e.fingerprint,requestedLanguages:e.languages,indexedLanguages:n.map(i=>i.language),skipped:[...r]}),Qr({tempOutputScip:e.tempPaths.tempOutputScip,tempOutputDb:e.tempPaths.tempOutputDb,tempMetaPath:e.tempPaths.tempMetaPath,outputScip:e.paths.outputScip,outputDb:e.paths.outputDb,metaPath:e.paths.metaPath})}function Vr(e,t){if(!h("scip")){if(e)throw new Error(`The scip CLI is required but not found on PATH.
138
138
  Install from: https://github.com/sourcegraph/scip/releases`);if(t("scip CLI not found on PATH. Attempting auto-install..."),!T(t))throw new Error(`The scip CLI is required but could not be installed.
139
139
  Install manually from: https://github.com/sourcegraph/scip/releases`)}}function $r(e){let t=[],n=[],r=e.languages.map((i,s)=>({language:i,scipPath:e.languages.length>1?Xr(e.tempOutputScip,i,s):e.tempOutputScip}));for(let{language:i,scipPath:s}of r){let o=Br({...e,language:i,scipPath:s});"skipped"in o?n.push(o.skipped):t.push(o.prepared)}return{preparedRuns:t,skippedLanguages:n}}function Br(e){let t=F(e.language),n=A(t),r=ee(t,e.projectRoot);if(!r&&!V(t)){if(e.skipAutoInstall){let a=`${n} not found on PATH (auto-install disabled). ${t.installUrl??""}`.trim();return e.onStatus(`Skipping ${e.language}: ${a}`),{skipped:{language:e.language,reason:a}}}if(e.onStatus(`${n} not found. Attempting auto-install...`),!$(t,e.onStatus)){let a=`${n} could not be auto-installed. ${t.installUrl?`Install manually from ${t.installUrl}`:`Install ${n} and put it on PATH.`}`;return e.onStatus(`Skipping ${e.language}: ${a}`),{skipped:{language:e.language,reason:a}}}}let i=r??P(t);if(!i){let a=`${n} was not found after installation checks.`;return e.onStatus(`Skipping ${e.language}: ${a}`),{skipped:{language:e.language,reason:a}}}let{binary:s,args:o}=t.indexArgs({projectRoot:e.projectRoot,outputPath:e.scipPath,pnpmWorkspaces:e.pnpmWorkspaces,indexerBinary:i});return{prepared:{language:e.language,scipPath:e.scipPath,config:t,resolvedBinary:i,binary:s,args:o,env:te(t,e.env,i)}}}function Wr(e,t){let n=[];for(let r of e)r.skipped?t.push(r.skipped):n.push({language:r.language,scipPath:r.scipPath});return{indexedOutputs:n}}function Ur(e,t,n,r,i){if(e.length===0){let s=t.map(o=>` - ${o.language}: ${o.reason}`).join(`
140
140
  `);throw new Error(`No language indexers ran successfully. Install at least one indexer for the languages in this project.
141
141
  `+s)}if(t.length!==0&&(i(`Indexed ${e.length} of ${n.length} languages; skipped ${t.map(s=>s.language).join(", ")}.`),!r))throw new Error(`Failed to index all required languages; preserving the previous index. Pass --allow-partial to intentionally write an incomplete index.
142
142
  `+t.map(s=>` - ${s.language}: ${s.reason}`).join(`
143
- `))}function Hr(e,t,n){e.length>1?(n(`Merging ${e.length} language indexes...`),N(e.map(r=>r.scipPath),t)):e[0].scipPath!==t&&v(e[0].scipPath,t)}function Gr(e,t,n,r){if(r("Converting to SQLite..."),!y(e))throw new Error(`SCIP index not found at ${e} after indexing`);try{let i=Ee(e);i.removedDefinitionOccurrences>0&&r(`Sanitized ${i.removedDefinitionOccurrences} invalid definition occurrences across ${i.touchedDocuments} documents before SQLite conversion.`),Pr("scip",["expt-convert","--output",t,e],{env:n,stdio:"pipe",maxBuffer:50*1024*1024})}catch(i){let s=i instanceof Error?i.message:String(i);throw new Error(`Failed to convert SCIP index to SQLite: ${s}`,{cause:i})}}function qr(e,t,n){if(!e.defaultOutputPath)return;let r=p(t,e.defaultOutputPath);n!==r&&y(r)&&v(r,n)}function Jr(e,t,n){if(!e.defaultOutputPath)return null;let r=p(t,e.defaultOutputPath);if(r===n)return null;let i=`${n}.default-output-backup`;return R(i,{force:!0}),y(r)?(v(r,i),{defaultOutputPath:r,backupPath:i}):{defaultOutputPath:r,backupPath:null}}function zr(e){e&&(R(e.defaultOutputPath,{force:!0}),e.backupPath&&y(e.backupPath)&&v(e.backupPath,e.defaultOutputPath))}function Xr(e,t,n){let r=Lr(e)||".scip",i=W(e,r);return p(b(e),`${i}.${n+1}.${t}${r}`)}function Kr(e){let t;try{t=Er(e,"wx")}catch(n){throw(typeof n=="object"&&n&&"code"in n?n.code:void 0)==="EEXIST"?new Error(`Another scip-query reindex is already running for ${b(e)}.`,{cause:n}):n}return He(t,JSON.stringify({pid:process.pid,startedAt:new Date().toISOString()})+`
143
+ `))}function Hr(e,t,n){e.length>1?(n(`Merging ${e.length} language indexes...`),N(e.map(r=>r.scipPath),t)):e[0].scipPath!==t&&v(e[0].scipPath,t)}function Gr(e,t,n,r){if(r("Converting to SQLite..."),!y(e))throw new Error(`SCIP index not found at ${e} after indexing`);try{let i=Ee(e);i.removedDefinitionOccurrences>0&&r(`Sanitized ${i.removedDefinitionOccurrences} invalid definition occurrences across ${i.touchedDocuments} documents before SQLite conversion.`),Pr("scip",["expt-convert","--output",t,e],{env:n,stdio:"pipe",maxBuffer:50*1024*1024})}catch(i){let s=i instanceof Error?i.message:String(i);throw new Error(`Failed to convert SCIP index to SQLite: ${s}`,{cause:i})}}function qr(e,t,n){if(!e.defaultOutputPath)return;let r=p(t,e.defaultOutputPath);n!==r&&y(r)&&v(r,n)}function Jr(e,t,n){if(!e.defaultOutputPath)return null;let r=p(t,e.defaultOutputPath);if(r===n)return null;let i=`${n}.default-output-backup`;return R(i,{force:!0}),y(r)?(v(r,i),{defaultOutputPath:r,backupPath:i}):{defaultOutputPath:r,backupPath:null}}function zr(e){e&&(R(e.defaultOutputPath,{force:!0}),e.backupPath&&y(e.backupPath)&&v(e.backupPath,e.defaultOutputPath))}function Xr(e,t,n){let r=Dr(e)||".scip",i=W(e,r);return p(b(e),`${i}.${n+1}.${t}${r}`)}function Kr(e){let t;try{t=Er(e,"wx")}catch(n){throw(typeof n=="object"&&n&&"code"in n?n.code:void 0)==="EEXIST"?new Error(`Another scip-query reindex is already running for ${b(e)}.`,{cause:n}):n}return He(t,JSON.stringify({pid:process.pid,startedAt:new Date().toISOString()})+`
144
144
  `),()=>{try{wr(t)}finally{R(e,{force:!0})}}}function Qr(e){ie(e.tempOutputScip,e.outputScip),ie(e.tempOutputDb,e.outputDb),ie(e.tempMetaPath,e.metaPath)}function ie(e,t){R(`${t}.tmp-replace`,{force:!0}),v(e,`${t}.tmp-replace`),v(`${t}.tmp-replace`,t)}function Yr(e,t){if(e<=1)return 1;let n=Number(process.env.SCIP_QUERY_INDEXER_CONCURRENCY??0),r=Number.isFinite(t)&&t&&t>0?t:Number.isFinite(n)&&n>0?n:Math.min(2,Math.max(1,Tr().length-1));return Math.max(1,Math.min(e,Math.floor(r)))}async function Zr(e,t,n,r){let i=e.filter(c=>c.config.defaultOutputPath),s=e.filter(c=>!c.config.defaultOutputPath),o=[],a=Yr(s.length,r),u=await ti(s,a,c=>se(c,t,n));if(a>1){let c=new Map;for(let g of u.filter(l=>l.skipped)){let l=s.find(d=>d.language===g.language);l&&(n(`Retrying ${l.language} indexer serially after parallel failure...`),c.set(l.language,await se(l,t,n)))}o.push(...u.map(g=>c.get(g.language)??g))}else o.push(...u);for(let c of i)o.push(await se(c,t,n));return o.sort((c,g)=>e.findIndex(l=>l.language===c.language)-e.findIndex(l=>l.language===g.language))}async function se(e,t,n){n(`Indexing ${e.language} with ${e.resolvedBinary}...`),R(e.scipPath,{force:!0});let r=Jr(e.config,t,e.scipPath);try{await ei(e.binary,e.args,{cwd:t,env:e.env,maxBuffer:50*1024*1024}),qr(e.config,t,e.scipPath)}catch(i){let s=i instanceof Error?i.message:String(i),o=`${e.resolvedBinary} indexer failed: ${s.split(`
145
145
  `)[0]}`;return n(`Skipping ${e.language}: ${o}`),{language:e.language,scipPath:e.scipPath,skipped:{language:e.language,reason:o}}}finally{zr(r)}if(!y(e.scipPath)){let i=`${e.resolvedBinary} indexer completed but did not produce ${e.scipPath}`;return n(`Skipping ${e.language}: ${i}`),{language:e.language,scipPath:e.scipPath,skipped:{language:e.language,reason:i}}}return{language:e.language,scipPath:e.scipPath}}function ei(e,t,n){return new Promise((r,i)=>{kr(e,[...t],n,s=>{s?i(s):r()})})}async function ti(e,t,n){if(e.length===0)return[];let r=new Array(e.length),i=0,s=Math.max(1,Math.min(e.length,t)),o=Array.from({length:s},async()=>{for(;i<e.length;){let a=i++;r[a]=await n(e[a])}});return await Promise.all(o),r}function ni(e,t,n){return{version:1,languages:[...t].sort(),pnpmWorkspaces:n.pnpmWorkspaces===!0,files:j(e)}}function ri(e,t){try{let n=JSON.parse(Or(e,"utf-8"));return n.version===2&&n.status==="complete"&&B(n.fingerprint)===B(t)&&B([...n.indexedLanguages??[]].sort())===B(t.languages)}catch{return!1}}function ii(e,t){He(e,`${JSON.stringify(t,null,2)}
146
146
  `)}function B(e){return JSON.stringify(e)}import{readFileSync as si,writeFileSync as oi,existsSync as qe,mkdirSync as ai}from"fs";import{join as x,resolve as Ge}from"path";import{createHash as ui}from"crypto";import{homedir as ci}from"os";var Je=".scipquery.json",li={enabled:!1,debounceMs:3e4,cooldownMs:6e4,ignore:[]};function gi(e){let t=x(e,Je);if(!qe(t))return{};try{let n=si(t,"utf-8");return JSON.parse(n)}catch{return{}}}function ze(e){return{...li,...e.watch}}function di(e,t){let n=process.env.SCIP_QUERY_CACHE_DIR;if(n)return oe(n);if(t?.dbPath)return oe(Ge(e,t.dbPath));let i=process.env.XDG_CACHE_HOME||x(ci(),".cache"),s=ui("sha256").update(Ge(e)).digest("hex").slice(0,12),o=x(i,"scip-query","projects",s);return oe(o)}function ae(e,t){let n=di(e,t);return{cacheDir:n,dbPath:x(n,"index.db"),indexPath:x(n,"index.scip"),metaPath:x(n,"meta.json")}}function pi(e,t){let n=x(e,Je);return qe(n)||oi(n,JSON.stringify({languages:t,watch:{enabled:!1,debounceMs:3e4,cooldownMs:6e4}},null,2)+`
147
- `),n}function oe(e){return ai(e,{recursive:!0}),e}import{watch as fi}from"fs";import{existsSync as Xe,renameSync as Ke}from"fs";import{join as mi,relative as hi}from"path";import{fork as bi}from"child_process";import yi from"ignore";var ue=class{projectRoot;watchConfig;indexPaths;languages;pnpmWorkspaces;onStatus;onReindexComplete;onError;status={state:"idle"};debounceTimer=null;cooldownTimer=null;dirty=!1;changedFiles=0;reindexInFlight=!1;lastReindexEnd=0;fsWatchers=[];gitignoreFilter;extraIgnore;stopped=!1;constructor(t){this.projectRoot=t.projectRoot,this.watchConfig=ze(t.config),this.indexPaths=ae(t.projectRoot,t.config),this.languages=t.languages,this.pnpmWorkspaces=t.config.indexer?.typescript?.pnpmWorkspaces??!1,this.onStatus=t.onStatus??(()=>{}),this.onReindexComplete=t.onReindexComplete??(()=>{}),this.onError=t.onError??(n=>console.error(n.message)),this.gitignoreFilter=I(t.projectRoot),this.extraIgnore=yi(),this.watchConfig.ignore.length>0&&this.extraIgnore.add(this.watchConfig.ignore)}start(){this.stopped=!1,this.setStatus({state:"idle"});try{let t=fi(this.projectRoot,{recursive:!0},(n,r)=>{r&&!this.stopped&&this.handleFileChange(r)});this.fsWatchers.push(t)}catch{this.onError(new Error("Failed to start file watcher. On Linux, you may need to increase inotify limits: sysctl -w fs.inotify.max_user_watches=524288"))}}stop(){this.stopped=!0;for(let t of this.fsWatchers)t.close();this.fsWatchers=[],this.debounceTimer&&clearTimeout(this.debounceTimer),this.cooldownTimer&&clearTimeout(this.cooldownTimer),this.setStatus({state:"idle"})}handleFileChange(t){let n=hi(this.projectRoot,mi(this.projectRoot,t));if(this.gitignoreFilter.isIgnored(n)||this.extraIgnore.ignores(n)||t.endsWith("index.db")||t.endsWith("index.scip")||t.endsWith("index.db.tmp")||t.endsWith(".scipquery.json"))return;if(this.changedFiles++,this.reindexInFlight){this.dirty=!0,this.setStatus({state:"indexing",startedAt:this.status.startedAt});return}if(this.status.state==="cooldown"){this.dirty=!0,this.setStatus({state:"cooldown",until:this.status.until,dirty:!0});return}this.debounceTimer&&clearTimeout(this.debounceTimer);let r=Date.now()+this.watchConfig.debounceMs;this.setStatus({state:"waiting",changedFiles:this.changedFiles,reindexAt:r}),this.debounceTimer=setTimeout(()=>{this.debounceTimer=null,this.triggerReindex()},this.watchConfig.debounceMs)}triggerReindex(){if(this.reindexInFlight||this.stopped)return;let t=Date.now()-this.lastReindexEnd;if(this.lastReindexEnd>0&&t<this.watchConfig.cooldownMs){let r=this.watchConfig.cooldownMs-t;this.dirty=!0;let i=Date.now()+r;this.setStatus({state:"cooldown",until:i,dirty:!0}),this.cooldownTimer=setTimeout(()=>{this.cooldownTimer=null,this.dirty&&!this.stopped&&(this.dirty=!1,this.triggerReindex())},r);return}this.reindexInFlight=!0,this.dirty=!1,this.changedFiles=0;let n=Date.now();this.setStatus({state:"indexing",startedAt:n}),this.runReindex().then(r=>{if(this.reindexInFlight=!1,this.lastReindexEnd=Date.now(),this.onReindexComplete(r),this.dirty&&!this.stopped){let i=Date.now()+this.watchConfig.cooldownMs;this.setStatus({state:"cooldown",until:i,dirty:!0}),this.cooldownTimer=setTimeout(()=>{this.cooldownTimer=null,this.dirty&&!this.stopped?(this.dirty=!1,this.triggerReindex()):this.setStatus({state:"idle"})},this.watchConfig.cooldownMs)}else this.setStatus({state:"idle"})}).catch(r=>{this.reindexInFlight=!1,this.lastReindexEnd=Date.now(),this.onError(r instanceof Error?r:new Error(String(r))),this.setStatus({state:"idle"})})}runReindex(){return new Promise((t,n)=>{let r=Date.now(),i=this.indexPaths.dbPath+".tmp",s=xi(this.indexPaths.indexPath),o=bi(new URL("./reindex-worker.js",import.meta.url).pathname,[],{env:{...process.env,SCIP_REINDEX_PROJECT_ROOT:this.projectRoot,SCIP_REINDEX_OUTPUT_SCIP:s,SCIP_REINDEX_OUTPUT_DB:i,SCIP_REINDEX_LANGUAGES:this.languages?.join(",")??"",SCIP_REINDEX_PNPM_WORKSPACES:this.pnpmWorkspaces?"1":""},stdio:"pipe"});o.on("exit",a=>{if(a===0)try{Xe(i)&&Ke(i,this.indexPaths.dbPath),Xe(s)&&Ke(s,this.indexPaths.indexPath),t(Date.now()-r)}catch(u){n(new Error(`Atomic swap failed: ${u}`))}else n(new Error(`Reindex worker exited with code ${a}`))}),o.on("error",n)})}setStatus(t){this.status=t,this.onStatus(t)}};function xi(e){return e.endsWith(".scip")?e.slice(0,-5)+".tmp.scip":e+".tmp.scip"}import{existsSync as ce,mkdirSync as Si,symlinkSync as vi,readlinkSync as Ri,unlinkSync as Ii}from"fs";import{join as U,dirname as Qe,resolve as le}from"path";import{homedir as Ye,platform as ki}from"os";import{fileURLToPath as Pi}from"url";var wi=ki()==="win32",Ci=["concrete-plan","scip-explore","scip-debloat","scip-verify","scip-language-playbook"];function Ei(e={}){let t=e.quiet?()=>{}:console.log,n=Pi(import.meta.url),r=le(Qe(n),"..","skills"),i=[U(Ye(),".claude","skills"),U(Ye(),".codex","skills")],s={installed:[],skipped:[],alreadyLinked:[]};for(let o of i){let a=Qe(o);if(!ce(a))continue;Si(o,{recursive:!0});let u=o.includes(".codex")?"Codex":"Claude";for(let c of Ci){let g=U(r,c),l=U(o,c);if(!ce(g)){s.skipped.push(`${u}/${c}`);continue}if(ce(l)){try{let d=Ri(l);if(le(d)===le(g)){s.alreadyLinked.push(`${u}/${c}`),t(` ok: ${c} \u2192 ${u} (already linked)`);continue}}catch{s.skipped.push(`${u}/${c}`),t(` skip: ${c} \u2192 ${u} (exists, not a symlink)`);continue}Ii(l)}vi(g,l,wi?"junction":"dir"),s.installed.push(`${u}/${c}`),t(` done: ${c} \u2192 ${u}`)}}return s}export{X as INDEXER_CONFIGS,rt as ProjectIndex,H as ScipDatabase,ue as Watcher,gs as affected,m as augmentAuxiliaryDocuments,Me as augmentVueResolvedReferences,Zi as bottlenecks,ts as byKind,ss as callGraph,ds as changeSurface,vs as code,Rs as complexity,ys as complexityHotspots,Ss as convergence,Ki as coupling,I as createGitignoreFilter,Yi as cycles,Is as dataflow,Vi as dead,rs as deepChains,ji as deps,D as detectLanguages,ps as diffImpact,fs as drift,ls as extractCandidates,qi as fanIn,Ji as fanOut,Ti as files,F as getIndexerConfig,ft as getScipVersion,xs as health,is as hierarchy,$i as hotspots,Wi as importedBy,Bi as imports,pi as initProjectConfig,Ei as installSkills,h as isBinaryAvailable,V as isIndexerInstalled,pt as isScipInstalled,es as isolated,ns as kindCounts,nt as leafName,gi as loadProjectConfig,Gi as members,N as mergeScipFiles,Q as mergeScipIndexes,Di as methods,Hi as outline,et as parseSymbol,hs as passthroughCandidates,ht as printScipInstallInstructions,Mi as rdeps,Ps as redundantReexports,Fi as refs,Dr as reindex,ae as resolveIndexPaths,tt as shortenSymbol,os as similar,as as similarAll,cs as similarChains,us as similarFiles,ws as similarSignatures,ks as slice,bs as staleAbstractions,Oi as stats,Ai as surface,Li as symbols,_i as system,Qi as topCoupling,zi as topFanIn,Xi as topFanOut,Ni as trace,$ as tryInstallIndexer,T as tryInstallScipCli,Ui as unusedImports,ms as wrapperCandidates};
147
+ `),n}function oe(e){return ai(e,{recursive:!0}),e}import{watch as fi}from"fs";import{existsSync as Xe,renameSync as Ke}from"fs";import{join as mi,relative as hi}from"path";import{fork as bi}from"child_process";import yi from"ignore";var ue=class{projectRoot;watchConfig;indexPaths;languages;pnpmWorkspaces;onStatus;onReindexComplete;onError;status={state:"idle"};debounceTimer=null;cooldownTimer=null;dirty=!1;changedFiles=0;reindexInFlight=!1;lastReindexEnd=0;fsWatchers=[];gitignoreFilter;extraIgnore;stopped=!1;constructor(t){this.projectRoot=t.projectRoot,this.watchConfig=ze(t.config),this.indexPaths=ae(t.projectRoot,t.config),this.languages=t.languages,this.pnpmWorkspaces=t.config.indexer?.typescript?.pnpmWorkspaces??!1,this.onStatus=t.onStatus??(()=>{}),this.onReindexComplete=t.onReindexComplete??(()=>{}),this.onError=t.onError??(n=>console.error(n.message)),this.gitignoreFilter=I(t.projectRoot),this.extraIgnore=yi(),this.watchConfig.ignore.length>0&&this.extraIgnore.add(this.watchConfig.ignore)}start(){this.stopped=!1,this.setStatus({state:"idle"});try{let t=fi(this.projectRoot,{recursive:!0},(n,r)=>{r&&!this.stopped&&this.handleFileChange(r)});this.fsWatchers.push(t)}catch{this.onError(new Error("Failed to start file watcher. On Linux, you may need to increase inotify limits: sysctl -w fs.inotify.max_user_watches=524288"))}}stop(){this.stopped=!0;for(let t of this.fsWatchers)t.close();this.fsWatchers=[],this.clearDebounceTimer(),this.clearCooldownTimer(),this.setStatus({state:"idle"})}handleFileChange(t){let n=hi(this.projectRoot,mi(this.projectRoot,t));if(this.gitignoreFilter.isIgnored(n)||this.extraIgnore.ignores(n)||t.endsWith("index.db")||t.endsWith("index.scip")||t.endsWith("index.db.tmp")||t.endsWith(".scipquery.json"))return;if(this.changedFiles++,this.reindexInFlight){this.dirty=!0,this.setStatus({state:"indexing",startedAt:this.status.startedAt});return}if(this.status.state==="cooldown"){this.dirty=!0,this.setStatus({state:"cooldown",until:this.status.until,dirty:!0});return}this.clearDebounceTimer();let r=Date.now()+this.watchConfig.debounceMs;this.setStatus({state:"waiting",changedFiles:this.changedFiles,reindexAt:r}),this.debounceTimer=setTimeout(()=>{this.debounceTimer=null,this.triggerReindex()},this.watchConfig.debounceMs)}triggerReindex(){if(this.reindexInFlight||this.stopped)return;let t=Date.now()-this.lastReindexEnd;if(this.lastReindexEnd>0&&t<this.watchConfig.cooldownMs){let r=this.watchConfig.cooldownMs-t;this.dirty=!0;let i=Date.now()+r;this.setStatus({state:"cooldown",until:i,dirty:!0}),this.cooldownTimer=setTimeout(()=>{this.cooldownTimer=null,this.dirty&&!this.stopped&&(this.dirty=!1,this.triggerReindex())},r);return}this.reindexInFlight=!0,this.dirty=!1,this.changedFiles=0;let n=Date.now();this.setStatus({state:"indexing",startedAt:n}),this.runReindex().then(r=>{if(this.reindexInFlight=!1,this.lastReindexEnd=Date.now(),this.onReindexComplete(r),this.dirty&&!this.stopped){let i=Date.now()+this.watchConfig.cooldownMs;this.setStatus({state:"cooldown",until:i,dirty:!0}),this.cooldownTimer=setTimeout(()=>{this.cooldownTimer=null,this.dirty&&!this.stopped?(this.dirty=!1,this.triggerReindex()):this.setStatus({state:"idle"})},this.watchConfig.cooldownMs)}else this.setStatus({state:"idle"})}).catch(r=>{this.reindexInFlight=!1,this.lastReindexEnd=Date.now(),this.onError(r instanceof Error?r:new Error(String(r))),this.setStatus({state:"idle"})})}runReindex(){return new Promise((t,n)=>{let r=Date.now(),i=this.indexPaths.dbPath+".tmp",s=xi(this.indexPaths.indexPath),o=bi(new URL("./reindex-worker.js",import.meta.url).pathname,[],{env:{...process.env,SCIP_REINDEX_PROJECT_ROOT:this.projectRoot,SCIP_REINDEX_OUTPUT_SCIP:s,SCIP_REINDEX_OUTPUT_DB:i,SCIP_REINDEX_LANGUAGES:this.languages?.join(",")??"",SCIP_REINDEX_PNPM_WORKSPACES:this.pnpmWorkspaces?"1":""},stdio:"pipe"});o.on("exit",a=>{if(a===0)try{Xe(i)&&Ke(i,this.indexPaths.dbPath),Xe(s)&&Ke(s,this.indexPaths.indexPath),t(Date.now()-r)}catch(u){n(new Error(`Atomic swap failed: ${u}`))}else n(new Error(`Reindex worker exited with code ${a}`))}),o.on("error",n)})}setStatus(t){this.status=t,this.onStatus(t)}clearDebounceTimer(){this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=null)}clearCooldownTimer(){this.cooldownTimer&&(clearTimeout(this.cooldownTimer),this.cooldownTimer=null)}};function xi(e){return e.endsWith(".scip")?e.slice(0,-5)+".tmp.scip":e+".tmp.scip"}import{existsSync as ce,mkdirSync as Si,symlinkSync as vi,readlinkSync as Ri,unlinkSync as Ii}from"fs";import{join as U,dirname as Qe,resolve as le}from"path";import{homedir as Ye,platform as ki}from"os";import{fileURLToPath as Pi}from"url";var wi=ki()==="win32",Ci=["concrete-plan","scip-explore","scip-debloat","scip-verify","scip-language-playbook"];function Ei(e={}){let t=e.quiet?()=>{}:console.log,n=Pi(import.meta.url),r=le(Qe(n),"..","skills"),i=[U(Ye(),".claude","skills"),U(Ye(),".codex","skills")],s={installed:[],skipped:[],alreadyLinked:[]};for(let o of i){let a=Qe(o);if(!ce(a))continue;Si(o,{recursive:!0});let u=o.includes(".codex")?"Codex":"Claude";for(let c of Ci){let g=U(r,c),l=U(o,c);if(!ce(g)){s.skipped.push(`${u}/${c}`);continue}if(ce(l)){try{let d=Ri(l);if(le(d)===le(g)){s.alreadyLinked.push(`${u}/${c}`),t(` ok: ${c} \u2192 ${u} (already linked)`);continue}}catch{s.skipped.push(`${u}/${c}`),t(` skip: ${c} \u2192 ${u} (exists, not a symlink)`);continue}Ii(l)}vi(g,l,wi?"junction":"dir"),s.installed.push(`${u}/${c}`),t(` done: ${c} \u2192 ${u}`)}}return s}export{X as INDEXER_CONFIGS,rt as ProjectIndex,H as ScipDatabase,ue as Watcher,gs as affected,m as augmentAuxiliaryDocuments,Me as augmentVueResolvedReferences,Zi as bottlenecks,ts as byKind,ss as callGraph,ds as changeSurface,vs as code,Rs as complexity,ys as complexityHotspots,Ss as convergence,Ki as coupling,I as createGitignoreFilter,Yi as cycles,Is as dataflow,Vi as dead,rs as deepChains,ji as deps,L as detectLanguages,ps as diffImpact,fs as drift,ls as extractCandidates,qi as fanIn,Ji as fanOut,Ti as files,F as getIndexerConfig,ft as getScipVersion,xs as health,is as hierarchy,$i as hotspots,Wi as importedBy,Bi as imports,pi as initProjectConfig,Ei as installSkills,h as isBinaryAvailable,V as isIndexerInstalled,pt as isScipInstalled,es as isolated,ns as kindCounts,nt as leafName,gi as loadProjectConfig,Gi as members,N as mergeScipFiles,Q as mergeScipIndexes,Li as methods,Hi as outline,et as parseSymbol,hs as passthroughCandidates,ht as printScipInstallInstructions,Mi as rdeps,Ps as redundantReexports,Fi as refs,Lr as reindex,ae as resolveIndexPaths,tt as shortenSymbol,os as similar,as as similarAll,cs as similarChains,us as similarFiles,ws as similarSignatures,ks as slice,bs as staleAbstractions,Oi as stats,Ai as surface,Di as symbols,_i as system,Qi as topCoupling,zi as topFanIn,Xi as topFanOut,Ni as trace,$ as tryInstallIndexer,T as tryInstallScipCli,Ui as unusedImports,ms as wrapperCandidates};
148
148
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-M5QTG55L.js";import"../chunk-32R4VYYA.js";import"../chunk-PK4U6NWP.js";import"../chunk-WIIZF5FP.js";import"../chunk-KTCODJNQ.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as affected};
1
+ import{a}from"../chunk-AADJ7MCQ.js";import"../chunk-UAPNU7UP.js";import"../chunk-YXMHTJYY.js";import"../chunk-VEXS3I3N.js";import"../chunk-Y4DS3MDC.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as affected};
2
2
  //# sourceMappingURL=affected.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-ROWAEEOD.js";import"../chunk-32R4VYYA.js";import"../chunk-PK4U6NWP.js";import"../chunk-WIIZF5FP.js";import"../chunk-KTCODJNQ.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as bottlenecks};
1
+ import{a}from"../chunk-VRC3WKKE.js";import"../chunk-UAPNU7UP.js";import"../chunk-YXMHTJYY.js";import"../chunk-VEXS3I3N.js";import"../chunk-Y4DS3MDC.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as bottlenecks};
2
2
  //# sourceMappingURL=bottlenecks.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-LT2CPEQ4.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as callGraph};
1
+ import{a}from"../chunk-YJODB2F5.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as callGraph};
2
2
  //# sourceMappingURL=call-graph.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-XV3XUZ3X.js";import"../chunk-MO65UK5V.js";import"../chunk-32R4VYYA.js";import"../chunk-PK4U6NWP.js";import"../chunk-WIIZF5FP.js";import"../chunk-KTCODJNQ.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as changeSurface};
1
+ import{a}from"../chunk-2TLYCK2L.js";import"../chunk-MO65UK5V.js";import"../chunk-UAPNU7UP.js";import"../chunk-YXMHTJYY.js";import"../chunk-VEXS3I3N.js";import"../chunk-Y4DS3MDC.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as changeSurface};
2
2
  //# sourceMappingURL=change-surface.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-WNMAH3P7.js";import"../chunk-32R4VYYA.js";import"../chunk-PK4U6NWP.js";import"../chunk-WIIZF5FP.js";import"../chunk-KTCODJNQ.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as complexityHotspots};
1
+ import{a}from"../chunk-URCJTFOD.js";import"../chunk-UAPNU7UP.js";import"../chunk-YXMHTJYY.js";import"../chunk-VEXS3I3N.js";import"../chunk-Y4DS3MDC.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as complexityHotspots};
2
2
  //# sourceMappingURL=complexity-hotspots.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-MKFH7QJG.js";import"../chunk-32R4VYYA.js";import"../chunk-PK4U6NWP.js";import"../chunk-WIIZF5FP.js";import"../chunk-KTCODJNQ.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as complexity};
1
+ import{a}from"../chunk-Q4R2IYA3.js";import"../chunk-UAPNU7UP.js";import"../chunk-YXMHTJYY.js";import"../chunk-VEXS3I3N.js";import"../chunk-Y4DS3MDC.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as complexity};
2
2
  //# sourceMappingURL=complexity.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-U5MVUPOO.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as convergence};
1
+ import{a}from"../chunk-CYJMOTIH.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as convergence};
2
2
  //# sourceMappingURL=convergence.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-EB5IVUNU.js";import"../chunk-PK4U6NWP.js";import"../chunk-KTCODJNQ.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as cycles};
1
+ import{a}from"../chunk-PIRXZGV6.js";import"../chunk-YXMHTJYY.js";import"../chunk-Y4DS3MDC.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as cycles};
2
2
  //# sourceMappingURL=cycles.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-C5BFS23M.js";import"../chunk-WIIZF5FP.js";import"../chunk-KTCODJNQ.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as dataflow};
1
+ import{a}from"../chunk-6GPFHZP3.js";import"../chunk-VEXS3I3N.js";import"../chunk-Y4DS3MDC.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as dataflow};
2
2
  //# sourceMappingURL=dataflow.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-MO32JMOD.js";import"../chunk-32R4VYYA.js";import"../chunk-PK4U6NWP.js";import"../chunk-WIIZF5FP.js";import"../chunk-KTCODJNQ.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as dead};
1
+ import{a}from"../chunk-4TX5IMMK.js";import"../chunk-UAPNU7UP.js";import"../chunk-YXMHTJYY.js";import"../chunk-VEXS3I3N.js";import"../chunk-Y4DS3MDC.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as dead};
2
2
  //# sourceMappingURL=dead.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-YDNCX5PF.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as deepChains};
1
+ import{a}from"../chunk-O6VBAW7P.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as deepChains};
2
2
  //# sourceMappingURL=deep-chains.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-WHGCGENP.js";import"../chunk-32R4VYYA.js";import"../chunk-PK4U6NWP.js";import"../chunk-WIIZF5FP.js";import"../chunk-KTCODJNQ.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as diffImpact};
1
+ import{a}from"../chunk-QPJG6VRT.js";import"../chunk-UAPNU7UP.js";import"../chunk-YXMHTJYY.js";import"../chunk-VEXS3I3N.js";import"../chunk-Y4DS3MDC.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as diffImpact};
2
2
  //# sourceMappingURL=diff-impact.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-FHSD5RKF.js";import"../chunk-LJ2YWNQF.js";import"../chunk-32R4VYYA.js";import"../chunk-PK4U6NWP.js";import"../chunk-WIIZF5FP.js";import"../chunk-KTCODJNQ.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as drift};
1
+ import{a}from"../chunk-GPY33RTH.js";import"../chunk-LJ2YWNQF.js";import"../chunk-UAPNU7UP.js";import"../chunk-YXMHTJYY.js";import"../chunk-VEXS3I3N.js";import"../chunk-Y4DS3MDC.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as drift};
2
2
  //# sourceMappingURL=drift.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-IJWIYZO5.js";import"../chunk-32R4VYYA.js";import"../chunk-PK4U6NWP.js";import"../chunk-WIIZF5FP.js";import"../chunk-KTCODJNQ.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as extractCandidates};
1
+ import{a}from"../chunk-C4C3T4K3.js";import"../chunk-UAPNU7UP.js";import"../chunk-YXMHTJYY.js";import"../chunk-VEXS3I3N.js";import"../chunk-Y4DS3MDC.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as extractCandidates};
2
2
  //# sourceMappingURL=extract-candidates.js.map
@@ -1,2 +1,2 @@
1
- import{a,b,c,d}from"../chunk-PFMGJ4BR.js";import"../chunk-MO65UK5V.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as fanIn,b as fanOut,c as topFanIn,d as topFanOut};
1
+ import{a,b,c,d}from"../chunk-HVNVO6UW.js";import"../chunk-MO65UK5V.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as fanIn,b as fanOut,c as topFanIn,d as topFanOut};
2
2
  //# sourceMappingURL=fan.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-FG6A6ZUP.js";import"../chunk-QRYEOK3M.js";import"../chunk-K6H3XJQW.js";import"../chunk-PBFMZKXE.js";import"../chunk-RKTDEIHF.js";import"../chunk-FVVEIGP3.js";import"../chunk-MTK3JAJT.js";import"../chunk-3UB2DPLP.js";import"../chunk-FHSD5RKF.js";import"../chunk-LJ2YWNQF.js";import"../chunk-IJWIYZO5.js";import"../chunk-EB5IVUNU.js";import"../chunk-MO32JMOD.js";import"../chunk-WNMAH3P7.js";import"../chunk-32R4VYYA.js";import"../chunk-PK4U6NWP.js";import"../chunk-WIIZF5FP.js";import"../chunk-KTCODJNQ.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as health};
1
+ import{a}from"../chunk-25HOGELX.js";import"../chunk-QRYEOK3M.js";import"../chunk-TUV2VI7D.js";import"../chunk-AXP4H62Q.js";import"../chunk-RKTDEIHF.js";import"../chunk-NIN762LD.js";import"../chunk-7YI2M2AQ.js";import"../chunk-6DVA22YE.js";import"../chunk-GPY33RTH.js";import"../chunk-LJ2YWNQF.js";import"../chunk-C4C3T4K3.js";import"../chunk-PIRXZGV6.js";import"../chunk-4TX5IMMK.js";import"../chunk-URCJTFOD.js";import"../chunk-UAPNU7UP.js";import"../chunk-YXMHTJYY.js";import"../chunk-VEXS3I3N.js";import"../chunk-Y4DS3MDC.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as health};
2
2
  //# sourceMappingURL=health.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-Z5CTXSWT.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as hotspots};
1
+ import{a}from"../chunk-QFBJZHMV.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as hotspots};
2
2
  //# sourceMappingURL=hotspots.js.map
@@ -1,2 +1,2 @@
1
- import{a,b,c}from"../chunk-QFCK6WV2.js";import"../chunk-MO65UK5V.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{b as importedBy,a as imports,c as unusedImports};
1
+ import{a,b,c}from"../chunk-UUIWMLDX.js";import"../chunk-MO65UK5V.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{b as importedBy,a as imports,c as unusedImports};
2
2
  //# sourceMappingURL=imports.js.map
@@ -1,2 +1,2 @@
1
- import"../chunk-FVH3Y44U.js";import{a as j}from"../chunk-URUVLDM7.js";import{a as c}from"../chunk-GBDZY73J.js";import{a as i}from"../chunk-MXWC53GJ.js";import{a as f}from"../chunk-A5UNS4DR.js";import{a as Y}from"../chunk-5YYMKE3G.js";import{a as e}from"../chunk-RT5PV5JQ.js";import{a as I}from"../chunk-YDKWDTAW.js";import{a as H}from"../chunk-DRLWW74T.js";import{a as Z}from"../chunk-5LQ6CVX3.js";import{a as X}from"../chunk-BNCTPTVX.js";import{a as l}from"../chunk-Z5CTXSWT.js";import{a as m,b as n,c as o}from"../chunk-QFCK6WV2.js";import{a as q}from"../chunk-F4KR22Z2.js";import{a as d}from"../chunk-ZFCQQ4B5.js";import{a as p}from"../chunk-TLRA5TR6.js";import{a as M}from"../chunk-WHGCGENP.js";import{a as r,b as s,c as t,d as u}from"../chunk-PFMGJ4BR.js";import{a as b}from"../chunk-KAM4C6ZD.js";import{a as S}from"../chunk-FG6A6ZUP.js";import{a}from"../chunk-QRYEOK3M.js";import{a as O}from"../chunk-K6H3XJQW.js";import{a as F,b as G}from"../chunk-PBFMZKXE.js";import"../chunk-RKTDEIHF.js";import{a as Q}from"../chunk-FVVEIGP3.js";import{a as z}from"../chunk-MTK3JAJT.js";import{a as P}from"../chunk-3UB2DPLP.js";import{a as N}from"../chunk-FHSD5RKF.js";import"../chunk-LJ2YWNQF.js";import{a as J}from"../chunk-IJWIYZO5.js";import{a as D}from"../chunk-OQZF2DQJ.js";import{a as V}from"../chunk-MKFH7QJG.js";import{a as T}from"../chunk-U5MVUPOO.js";import{a as v,b as w}from"../chunk-Q2ALKKSE.js";import{a as x}from"../chunk-EB5IVUNU.js";import{a as W}from"../chunk-C5BFS23M.js";import{a as k}from"../chunk-MO32JMOD.js";import{a as C}from"../chunk-YDNCX5PF.js";import{a as g,b as h}from"../chunk-ERRUE5G4.js";import{a as K}from"../chunk-M5QTG55L.js";import{a as y}from"../chunk-ROWAEEOD.js";import{a as A,b as B}from"../chunk-7X7FLQC5.js";import{a as E}from"../chunk-LT2CPEQ4.js";import{a as L}from"../chunk-XV3XUZ3X.js";import{a as U}from"../chunk-7LSCW7NF.js";import"../chunk-MO65UK5V.js";import{a as R}from"../chunk-WNMAH3P7.js";import"../chunk-32R4VYYA.js";import"../chunk-PK4U6NWP.js";import"../chunk-WIIZF5FP.js";import"../chunk-KTCODJNQ.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{K as affected,y as bottlenecks,A as byKind,E as callGraph,L as changeSurface,U as code,V as complexity,R as complexityHotspots,T as convergence,v as coupling,x as cycles,W as dataflow,k as dead,C as deepChains,g as deps,M as diffImpact,N as drift,J as extractCandidates,r as fanIn,s as fanOut,b as files,S as health,D as hierarchy,l as hotspots,n as importedBy,m as imports,z as isolated,B as kindCounts,q as members,d as methods,p as outline,P as passthroughCandidates,h as rdeps,Y as redundantReexports,e as refs,F as similar,G as similarAll,I as similarChains,H as similarFiles,Z as similarSignatures,X as slice,Q as staleAbstractions,a as stats,j as surface,c as symbols,i as system,w as topCoupling,t as topFanIn,u as topFanOut,f as trace,o as unusedImports,O as wrapperCandidates};
1
+ import"../chunk-FVH3Y44U.js";import{a as j}from"../chunk-DLWRLPKO.js";import{a as c}from"../chunk-GBDZY73J.js";import{a as i}from"../chunk-MXWC53GJ.js";import{a as f}from"../chunk-AV7BOODV.js";import{a as Y}from"../chunk-E2V5SE6M.js";import{a as e}from"../chunk-IZ4KV37N.js";import{a as I}from"../chunk-7PRMSA4Z.js";import{a as H}from"../chunk-KBGFYKOJ.js";import{a as Z}from"../chunk-WFDTS7XL.js";import{a as X}from"../chunk-I377UMS2.js";import{a as l}from"../chunk-QFBJZHMV.js";import{a as m,b as n,c as o}from"../chunk-UUIWMLDX.js";import{a as q}from"../chunk-IKQYNTW3.js";import{a as d}from"../chunk-CSRPJCWO.js";import{a as p}from"../chunk-TLRA5TR6.js";import{a as M}from"../chunk-QPJG6VRT.js";import{a as r,b as s,c as t,d as u}from"../chunk-HVNVO6UW.js";import{a as b}from"../chunk-KAM4C6ZD.js";import{a as S}from"../chunk-25HOGELX.js";import{a}from"../chunk-QRYEOK3M.js";import{a as O}from"../chunk-TUV2VI7D.js";import{a as F,b as G}from"../chunk-AXP4H62Q.js";import"../chunk-RKTDEIHF.js";import{a as Q}from"../chunk-NIN762LD.js";import{a as z}from"../chunk-7YI2M2AQ.js";import{a as P}from"../chunk-6DVA22YE.js";import{a as N}from"../chunk-GPY33RTH.js";import"../chunk-LJ2YWNQF.js";import{a as J}from"../chunk-C4C3T4K3.js";import{a as D}from"../chunk-OQZF2DQJ.js";import{a as V}from"../chunk-Q4R2IYA3.js";import{a as T}from"../chunk-CYJMOTIH.js";import{a as v,b as w}from"../chunk-Q2ALKKSE.js";import{a as x}from"../chunk-PIRXZGV6.js";import{a as W}from"../chunk-6GPFHZP3.js";import{a as k}from"../chunk-4TX5IMMK.js";import{a as C}from"../chunk-O6VBAW7P.js";import{a as g,b as h}from"../chunk-ERRUE5G4.js";import{a as K}from"../chunk-AADJ7MCQ.js";import{a as y}from"../chunk-VRC3WKKE.js";import{a as A,b as B}from"../chunk-7X7FLQC5.js";import{a as E}from"../chunk-YJODB2F5.js";import{a as L}from"../chunk-2TLYCK2L.js";import{a as U}from"../chunk-7LSCW7NF.js";import"../chunk-MO65UK5V.js";import{a as R}from"../chunk-URCJTFOD.js";import"../chunk-UAPNU7UP.js";import"../chunk-YXMHTJYY.js";import"../chunk-VEXS3I3N.js";import"../chunk-Y4DS3MDC.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{K as affected,y as bottlenecks,A as byKind,E as callGraph,L as changeSurface,U as code,V as complexity,R as complexityHotspots,T as convergence,v as coupling,x as cycles,W as dataflow,k as dead,C as deepChains,g as deps,M as diffImpact,N as drift,J as extractCandidates,r as fanIn,s as fanOut,b as files,S as health,D as hierarchy,l as hotspots,n as importedBy,m as imports,z as isolated,B as kindCounts,q as members,d as methods,p as outline,P as passthroughCandidates,h as rdeps,Y as redundantReexports,e as refs,F as similar,G as similarAll,I as similarChains,H as similarFiles,Z as similarSignatures,X as slice,Q as staleAbstractions,a as stats,j as surface,c as symbols,i as system,w as topCoupling,t as topFanIn,u as topFanOut,f as trace,o as unusedImports,O as wrapperCandidates};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-MTK3JAJT.js";import"../chunk-32R4VYYA.js";import"../chunk-PK4U6NWP.js";import"../chunk-WIIZF5FP.js";import"../chunk-KTCODJNQ.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as isolated};
1
+ import{a}from"../chunk-7YI2M2AQ.js";import"../chunk-UAPNU7UP.js";import"../chunk-YXMHTJYY.js";import"../chunk-VEXS3I3N.js";import"../chunk-Y4DS3MDC.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as isolated};
2
2
  //# sourceMappingURL=isolated.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-F4KR22Z2.js";import"../chunk-32R4VYYA.js";import"../chunk-PK4U6NWP.js";import"../chunk-WIIZF5FP.js";import"../chunk-KTCODJNQ.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as members};
1
+ import{a}from"../chunk-IKQYNTW3.js";import"../chunk-UAPNU7UP.js";import"../chunk-YXMHTJYY.js";import"../chunk-VEXS3I3N.js";import"../chunk-Y4DS3MDC.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as members};
2
2
  //# sourceMappingURL=members.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-ZFCQQ4B5.js";import"../chunk-32R4VYYA.js";import"../chunk-PK4U6NWP.js";import"../chunk-WIIZF5FP.js";import"../chunk-KTCODJNQ.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as methods};
1
+ import{a}from"../chunk-CSRPJCWO.js";import"../chunk-UAPNU7UP.js";import"../chunk-YXMHTJYY.js";import"../chunk-VEXS3I3N.js";import"../chunk-Y4DS3MDC.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as methods};
2
2
  //# sourceMappingURL=methods.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-3UB2DPLP.js";import"../chunk-32R4VYYA.js";import"../chunk-PK4U6NWP.js";import"../chunk-WIIZF5FP.js";import"../chunk-KTCODJNQ.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as passthroughCandidates};
1
+ import{a}from"../chunk-6DVA22YE.js";import"../chunk-UAPNU7UP.js";import"../chunk-YXMHTJYY.js";import"../chunk-VEXS3I3N.js";import"../chunk-Y4DS3MDC.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as passthroughCandidates};
2
2
  //# sourceMappingURL=passthrough-candidates.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-5YYMKE3G.js";import"../chunk-32R4VYYA.js";import"../chunk-PK4U6NWP.js";import"../chunk-WIIZF5FP.js";import"../chunk-KTCODJNQ.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as redundantReexports};
1
+ import{a}from"../chunk-E2V5SE6M.js";import"../chunk-UAPNU7UP.js";import"../chunk-YXMHTJYY.js";import"../chunk-VEXS3I3N.js";import"../chunk-Y4DS3MDC.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as redundantReexports};
2
2
  //# sourceMappingURL=redundant-reexports.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-RT5PV5JQ.js";import"../chunk-WIIZF5FP.js";import"../chunk-KTCODJNQ.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as refs};
1
+ import{a}from"../chunk-IZ4KV37N.js";import"../chunk-VEXS3I3N.js";import"../chunk-Y4DS3MDC.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as refs};
2
2
  //# sourceMappingURL=refs.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-YDKWDTAW.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as similarChains};
1
+ import{a}from"../chunk-7PRMSA4Z.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as similarChains};
2
2
  //# sourceMappingURL=similar-chains.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-DRLWW74T.js";import"../chunk-RKTDEIHF.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as similarFiles};
1
+ import{a}from"../chunk-KBGFYKOJ.js";import"../chunk-RKTDEIHF.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as similarFiles};
2
2
  //# sourceMappingURL=similar-files.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-5LQ6CVX3.js";import"../chunk-YU25IHJX.js";import"../chunk-QFZE73XF.js";export{a as similarSignatures};
1
+ import{a}from"../chunk-WFDTS7XL.js";import"../chunk-Z4AMQWVY.js";import"../chunk-QFZE73XF.js";export{a as similarSignatures};
2
2
  //# sourceMappingURL=similar-signatures.js.map
@@ -1,2 +1,2 @@
1
- import{a,b}from"../chunk-PBFMZKXE.js";import"../chunk-RKTDEIHF.js";import"../chunk-32R4VYYA.js";import"../chunk-PK4U6NWP.js";import"../chunk-WIIZF5FP.js";import"../chunk-KTCODJNQ.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as similar,b as similarAll};
1
+ import{a,b}from"../chunk-AXP4H62Q.js";import"../chunk-RKTDEIHF.js";import"../chunk-UAPNU7UP.js";import"../chunk-YXMHTJYY.js";import"../chunk-VEXS3I3N.js";import"../chunk-Y4DS3MDC.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as similar,b as similarAll};
2
2
  //# sourceMappingURL=similar.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-BNCTPTVX.js";import"../chunk-32R4VYYA.js";import"../chunk-PK4U6NWP.js";import"../chunk-WIIZF5FP.js";import"../chunk-KTCODJNQ.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as slice};
1
+ import{a}from"../chunk-I377UMS2.js";import"../chunk-UAPNU7UP.js";import"../chunk-YXMHTJYY.js";import"../chunk-VEXS3I3N.js";import"../chunk-Y4DS3MDC.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as slice};
2
2
  //# sourceMappingURL=slice.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-FVVEIGP3.js";import"../chunk-32R4VYYA.js";import"../chunk-PK4U6NWP.js";import"../chunk-WIIZF5FP.js";import"../chunk-KTCODJNQ.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as staleAbstractions};
1
+ import{a}from"../chunk-NIN762LD.js";import"../chunk-UAPNU7UP.js";import"../chunk-YXMHTJYY.js";import"../chunk-VEXS3I3N.js";import"../chunk-Y4DS3MDC.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as staleAbstractions};
2
2
  //# sourceMappingURL=stale-abstractions.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-URUVLDM7.js";import"../chunk-MO65UK5V.js";import"../chunk-32R4VYYA.js";import"../chunk-PK4U6NWP.js";import"../chunk-WIIZF5FP.js";import"../chunk-KTCODJNQ.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as surface};
1
+ import{a}from"../chunk-DLWRLPKO.js";import"../chunk-MO65UK5V.js";import"../chunk-UAPNU7UP.js";import"../chunk-YXMHTJYY.js";import"../chunk-VEXS3I3N.js";import"../chunk-Y4DS3MDC.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as surface};
2
2
  //# sourceMappingURL=surface.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-A5UNS4DR.js";import"../chunk-WIIZF5FP.js";import"../chunk-KTCODJNQ.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as trace};
1
+ import{a}from"../chunk-AV7BOODV.js";import"../chunk-VEXS3I3N.js";import"../chunk-Y4DS3MDC.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as trace};
2
2
  //# sourceMappingURL=trace.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-K6H3XJQW.js";import"../chunk-32R4VYYA.js";import"../chunk-PK4U6NWP.js";import"../chunk-WIIZF5FP.js";import"../chunk-KTCODJNQ.js";import"../chunk-4X7C236P.js";import"../chunk-2ZGHRI2A.js";import"../chunk-YU25IHJX.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as wrapperCandidates};
1
+ import{a}from"../chunk-TUV2VI7D.js";import"../chunk-UAPNU7UP.js";import"../chunk-YXMHTJYY.js";import"../chunk-VEXS3I3N.js";import"../chunk-Y4DS3MDC.js";import"../chunk-3PVIYZ74.js";import"../chunk-KW2F3WSV.js";import"../chunk-Z4AMQWVY.js";import"../chunk-ZHHMG4UC.js";import"../chunk-QFZE73XF.js";export{a as wrapperCandidates};
2
2
  //# sourceMappingURL=wrapper-candidates.js.map