@arcbridge/core 0.4.1 → 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 +24 -10
- package/dist/index.js +1383 -237
- 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
|
@@ -43,7 +43,7 @@ declare const ArcBridgeConfigSchema: z.ZodObject<{
|
|
|
43
43
|
tsconfig?: string | undefined;
|
|
44
44
|
csproj?: string | undefined;
|
|
45
45
|
}>, "many">>;
|
|
46
|
-
platforms: z.ZodDefault<z.ZodArray<z.ZodEnum<["claude", "copilot", "gemini", "codex"]>, "many">>;
|
|
46
|
+
platforms: z.ZodDefault<z.ZodArray<z.ZodEnum<["claude", "copilot", "gemini", "codex", "opencode"]>, "many">>;
|
|
47
47
|
quality_priorities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
48
48
|
indexing: z.ZodDefault<z.ZodObject<{
|
|
49
49
|
include: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -109,7 +109,7 @@ declare const ArcBridgeConfigSchema: z.ZodObject<{
|
|
|
109
109
|
tsconfig?: string | undefined;
|
|
110
110
|
csproj?: string | undefined;
|
|
111
111
|
}[];
|
|
112
|
-
platforms: ("claude" | "copilot" | "gemini" | "codex")[];
|
|
112
|
+
platforms: ("claude" | "copilot" | "gemini" | "codex" | "opencode")[];
|
|
113
113
|
quality_priorities: string[];
|
|
114
114
|
indexing: {
|
|
115
115
|
include: string[];
|
|
@@ -143,7 +143,7 @@ declare const ArcBridgeConfigSchema: z.ZodObject<{
|
|
|
143
143
|
tsconfig?: string | undefined;
|
|
144
144
|
csproj?: string | undefined;
|
|
145
145
|
}[] | undefined;
|
|
146
|
-
platforms?: ("claude" | "copilot" | "gemini" | "codex")[] | undefined;
|
|
146
|
+
platforms?: ("claude" | "copilot" | "gemini" | "codex" | "opencode")[] | undefined;
|
|
147
147
|
quality_priorities?: string[] | undefined;
|
|
148
148
|
indexing?: {
|
|
149
149
|
include?: string[] | undefined;
|
|
@@ -668,14 +668,17 @@ declare const AgentRoleSchema: z.ZodObject<{
|
|
|
668
668
|
claude: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
669
669
|
copilot: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
670
670
|
codex: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
671
|
+
opencode: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
671
672
|
}, "strip", z.ZodTypeAny, {
|
|
672
673
|
claude?: Record<string, unknown> | undefined;
|
|
673
674
|
copilot?: Record<string, unknown> | undefined;
|
|
674
675
|
codex?: Record<string, unknown> | undefined;
|
|
676
|
+
opencode?: Record<string, unknown> | undefined;
|
|
675
677
|
}, {
|
|
676
678
|
claude?: Record<string, unknown> | undefined;
|
|
677
679
|
copilot?: Record<string, unknown> | undefined;
|
|
678
680
|
codex?: Record<string, unknown> | undefined;
|
|
681
|
+
opencode?: Record<string, unknown> | undefined;
|
|
679
682
|
}>>;
|
|
680
683
|
system_prompt: z.ZodString;
|
|
681
684
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -700,6 +703,7 @@ declare const AgentRoleSchema: z.ZodObject<{
|
|
|
700
703
|
claude?: Record<string, unknown> | undefined;
|
|
701
704
|
copilot?: Record<string, unknown> | undefined;
|
|
702
705
|
codex?: Record<string, unknown> | undefined;
|
|
706
|
+
opencode?: Record<string, unknown> | undefined;
|
|
703
707
|
};
|
|
704
708
|
system_prompt: string;
|
|
705
709
|
}, {
|
|
@@ -725,6 +729,7 @@ declare const AgentRoleSchema: z.ZodObject<{
|
|
|
725
729
|
claude?: Record<string, unknown> | undefined;
|
|
726
730
|
copilot?: Record<string, unknown> | undefined;
|
|
727
731
|
codex?: Record<string, unknown> | undefined;
|
|
732
|
+
opencode?: Record<string, unknown> | undefined;
|
|
728
733
|
} | undefined;
|
|
729
734
|
}>;
|
|
730
735
|
type AgentRole = z.infer<typeof AgentRoleSchema>;
|
|
@@ -781,11 +786,13 @@ interface GenerateDatabaseResult {
|
|
|
781
786
|
declare function refreshFromDocs(db: Database, targetDir: string): string[];
|
|
782
787
|
declare function generateDatabase(targetDir: string, input: InitProjectInput): GenerateDatabaseResult;
|
|
783
788
|
|
|
789
|
+
/** Concrete language identifiers stored in the DB and used for scoping queries. */
|
|
790
|
+
type IndexerLanguage = "typescript" | "csharp" | "python" | "go";
|
|
784
791
|
interface IndexerOptions {
|
|
785
792
|
projectRoot: string;
|
|
786
793
|
tsconfigPath?: string;
|
|
787
794
|
service?: string;
|
|
788
|
-
language?:
|
|
795
|
+
language?: IndexerLanguage | "auto";
|
|
789
796
|
}
|
|
790
797
|
type SymbolKind = "function" | "class" | "type" | "constant" | "interface" | "enum" | "variable" | "component" | "hook" | "context";
|
|
791
798
|
interface ExtractedSymbol {
|
|
@@ -814,6 +821,11 @@ interface IndexResult {
|
|
|
814
821
|
filesSkipped: number;
|
|
815
822
|
filesRemoved: number;
|
|
816
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;
|
|
817
829
|
}
|
|
818
830
|
|
|
819
831
|
/** Represents a .NET project discovered in a solution. */
|
|
@@ -840,17 +852,19 @@ declare function discoverDotnetServices(projectRoot: string): DotnetProjectInfo[
|
|
|
840
852
|
*/
|
|
841
853
|
declare function indexPackageDependencies(db: Database, projectRoot: string, service?: string): number;
|
|
842
854
|
|
|
843
|
-
type ProjectLanguage = "typescript" | "csharp" | "auto";
|
|
855
|
+
type ProjectLanguage = "typescript" | "csharp" | "python" | "go" | "auto";
|
|
844
856
|
/**
|
|
845
857
|
* Detect the project language from files in the project root.
|
|
846
|
-
*
|
|
847
|
-
* (
|
|
848
|
-
*
|
|
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.
|
|
849
863
|
*/
|
|
850
|
-
declare function detectProjectLanguage(projectRoot: string): "typescript" | "csharp";
|
|
864
|
+
declare function detectProjectLanguage(projectRoot: string): "typescript" | "csharp" | "python" | "go";
|
|
851
865
|
/**
|
|
852
866
|
* Index a project, auto-detecting the language unless explicitly specified.
|
|
853
|
-
* Dispatches to the TypeScript or
|
|
867
|
+
* Dispatches to the TypeScript, C# (Roslyn or tree-sitter), Python, or Go indexer.
|
|
854
868
|
*/
|
|
855
869
|
declare function indexProject(db: Database, options: IndexerOptions): Promise<IndexResult>;
|
|
856
870
|
|