@arcbridge/core 0.4.2 → 0.5.0
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.
- package/dist/index.d.ts +16 -7
- package/dist/index.js +1380 -235
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/wasm/tree-sitter-go.wasm +0 -0
- package/wasm/tree-sitter-python.wasm +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -786,11 +786,13 @@ interface GenerateDatabaseResult {
|
|
|
786
786
|
declare function refreshFromDocs(db: Database, targetDir: string): string[];
|
|
787
787
|
declare function generateDatabase(targetDir: string, input: InitProjectInput): GenerateDatabaseResult;
|
|
788
788
|
|
|
789
|
+
/** Concrete language identifiers stored in the DB and used for scoping queries. */
|
|
790
|
+
type IndexerLanguage = "typescript" | "csharp" | "python" | "go";
|
|
789
791
|
interface IndexerOptions {
|
|
790
792
|
projectRoot: string;
|
|
791
793
|
tsconfigPath?: string;
|
|
792
794
|
service?: string;
|
|
793
|
-
language?:
|
|
795
|
+
language?: IndexerLanguage | "auto";
|
|
794
796
|
}
|
|
795
797
|
type SymbolKind = "function" | "class" | "type" | "constant" | "interface" | "enum" | "variable" | "component" | "hook" | "context";
|
|
796
798
|
interface ExtractedSymbol {
|
|
@@ -819,6 +821,11 @@ interface IndexResult {
|
|
|
819
821
|
filesSkipped: number;
|
|
820
822
|
filesRemoved: number;
|
|
821
823
|
durationMs: number;
|
|
824
|
+
/**
|
|
825
|
+
* Set when code-symbol indexing was skipped (e.g. no tsconfig.json found).
|
|
826
|
+
* Package dependency indexing may still have been performed.
|
|
827
|
+
*/
|
|
828
|
+
skippedReason?: string;
|
|
822
829
|
}
|
|
823
830
|
|
|
824
831
|
/** Represents a .NET project discovered in a solution. */
|
|
@@ -845,17 +852,19 @@ declare function discoverDotnetServices(projectRoot: string): DotnetProjectInfo[
|
|
|
845
852
|
*/
|
|
846
853
|
declare function indexPackageDependencies(db: Database, projectRoot: string, service?: string): number;
|
|
847
854
|
|
|
848
|
-
type ProjectLanguage = "typescript" | "csharp" | "auto";
|
|
855
|
+
type ProjectLanguage = "typescript" | "csharp" | "python" | "go" | "auto";
|
|
849
856
|
/**
|
|
850
857
|
* Detect the project language from files in the project root.
|
|
851
|
-
*
|
|
852
|
-
* (
|
|
853
|
-
*
|
|
858
|
+
* Priority: Unity (C#) → tsconfig.json (TS) → .csproj/.sln (C#) → go.mod (Go)
|
|
859
|
+
* → pyproject.toml/requirements.txt/setup.py (Python) → package.json (TS) → default TS.
|
|
860
|
+
* Unity check comes first because Unity auto-generates .sln files.
|
|
861
|
+
* package.json without tsconfig is checked last to avoid misdetecting
|
|
862
|
+
* Go/Python projects that have ancillary Node.js tooling.
|
|
854
863
|
*/
|
|
855
|
-
declare function detectProjectLanguage(projectRoot: string): "typescript" | "csharp";
|
|
864
|
+
declare function detectProjectLanguage(projectRoot: string): "typescript" | "csharp" | "python" | "go";
|
|
856
865
|
/**
|
|
857
866
|
* Index a project, auto-detecting the language unless explicitly specified.
|
|
858
|
-
* Dispatches to the TypeScript or
|
|
867
|
+
* Dispatches to the TypeScript, C# (Roslyn or tree-sitter), Python, or Go indexer.
|
|
859
868
|
*/
|
|
860
869
|
declare function indexProject(db: Database, options: IndexerOptions): Promise<IndexResult>;
|
|
861
870
|
|