@arcbridge/core 0.4.2 → 0.6.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 +20 -11
- package/dist/index.js +2346 -172
- 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
|
@@ -23,7 +23,7 @@ declare const ServiceSchema: z.ZodObject<{
|
|
|
23
23
|
declare const ArcBridgeConfigSchema: z.ZodObject<{
|
|
24
24
|
schema_version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
25
25
|
project_name: z.ZodString;
|
|
26
|
-
project_type: z.ZodDefault<z.ZodEnum<["nextjs-app-router", "react-vite", "api-service", "dotnet-webapi", "unity-game", "angular-app"]>>;
|
|
26
|
+
project_type: z.ZodDefault<z.ZodEnum<["nextjs-app-router", "react-vite", "api-service", "dotnet-webapi", "unity-game", "angular-app", "fullstack-nextjs-dotnet"]>>;
|
|
27
27
|
services: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
28
28
|
name: z.ZodString;
|
|
29
29
|
path: z.ZodDefault<z.ZodString>;
|
|
@@ -101,7 +101,7 @@ declare const ArcBridgeConfigSchema: z.ZodObject<{
|
|
|
101
101
|
}, "strip", z.ZodTypeAny, {
|
|
102
102
|
schema_version: 1;
|
|
103
103
|
project_name: string;
|
|
104
|
-
project_type: "nextjs-app-router" | "react-vite" | "api-service" | "dotnet-webapi" | "unity-game" | "angular-app";
|
|
104
|
+
project_type: "nextjs-app-router" | "react-vite" | "api-service" | "dotnet-webapi" | "unity-game" | "angular-app" | "fullstack-nextjs-dotnet";
|
|
105
105
|
services: {
|
|
106
106
|
name: string;
|
|
107
107
|
path: string;
|
|
@@ -135,7 +135,7 @@ declare const ArcBridgeConfigSchema: z.ZodObject<{
|
|
|
135
135
|
}, {
|
|
136
136
|
project_name: string;
|
|
137
137
|
schema_version?: 1 | undefined;
|
|
138
|
-
project_type?: "nextjs-app-router" | "react-vite" | "api-service" | "dotnet-webapi" | "unity-game" | "angular-app" | undefined;
|
|
138
|
+
project_type?: "nextjs-app-router" | "react-vite" | "api-service" | "dotnet-webapi" | "unity-game" | "angular-app" | "fullstack-nextjs-dotnet" | undefined;
|
|
139
139
|
services?: {
|
|
140
140
|
name: string;
|
|
141
141
|
type: "nextjs" | "react" | "fastify" | "express" | "hono" | "dotnet" | "unity" | "angular";
|
|
@@ -755,7 +755,7 @@ declare function migrate(db: Database): void;
|
|
|
755
755
|
|
|
756
756
|
interface InitProjectInput {
|
|
757
757
|
name: string;
|
|
758
|
-
template: "nextjs-app-router" | "react-vite" | "api-service" | "dotnet-webapi" | "unity-game" | "angular-app";
|
|
758
|
+
template: "nextjs-app-router" | "react-vite" | "api-service" | "dotnet-webapi" | "unity-game" | "angular-app" | "fullstack-nextjs-dotnet";
|
|
759
759
|
features: string[];
|
|
760
760
|
quality_priorities: string[];
|
|
761
761
|
platforms: string[];
|
|
@@ -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
|
|