@arcbridge/core 0.1.6 → 0.2.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 CHANGED
@@ -4,18 +4,18 @@ import { DatabaseSync } from 'node:sqlite';
4
4
  declare const ServiceSchema: z.ZodObject<{
5
5
  name: z.ZodString;
6
6
  path: z.ZodDefault<z.ZodString>;
7
- type: z.ZodEnum<["nextjs", "react", "fastify", "express", "hono", "dotnet"]>;
7
+ type: z.ZodEnum<["nextjs", "react", "fastify", "express", "hono", "dotnet", "unity"]>;
8
8
  tsconfig: z.ZodOptional<z.ZodString>;
9
9
  csproj: z.ZodOptional<z.ZodString>;
10
10
  }, "strip", z.ZodTypeAny, {
11
11
  name: string;
12
12
  path: string;
13
- type: "nextjs" | "react" | "fastify" | "express" | "hono" | "dotnet";
13
+ type: "nextjs" | "react" | "fastify" | "express" | "hono" | "dotnet" | "unity";
14
14
  tsconfig?: string | undefined;
15
15
  csproj?: string | undefined;
16
16
  }, {
17
17
  name: string;
18
- type: "nextjs" | "react" | "fastify" | "express" | "hono" | "dotnet";
18
+ type: "nextjs" | "react" | "fastify" | "express" | "hono" | "dotnet" | "unity";
19
19
  path?: string | undefined;
20
20
  tsconfig?: string | undefined;
21
21
  csproj?: string | undefined;
@@ -23,22 +23,22 @@ 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"]>>;
26
+ project_type: z.ZodDefault<z.ZodEnum<["nextjs-app-router", "react-vite", "api-service", "dotnet-webapi", "unity-game"]>>;
27
27
  services: z.ZodDefault<z.ZodArray<z.ZodObject<{
28
28
  name: z.ZodString;
29
29
  path: z.ZodDefault<z.ZodString>;
30
- type: z.ZodEnum<["nextjs", "react", "fastify", "express", "hono", "dotnet"]>;
30
+ type: z.ZodEnum<["nextjs", "react", "fastify", "express", "hono", "dotnet", "unity"]>;
31
31
  tsconfig: z.ZodOptional<z.ZodString>;
32
32
  csproj: z.ZodOptional<z.ZodString>;
33
33
  }, "strip", z.ZodTypeAny, {
34
34
  name: string;
35
35
  path: string;
36
- type: "nextjs" | "react" | "fastify" | "express" | "hono" | "dotnet";
36
+ type: "nextjs" | "react" | "fastify" | "express" | "hono" | "dotnet" | "unity";
37
37
  tsconfig?: string | undefined;
38
38
  csproj?: string | undefined;
39
39
  }, {
40
40
  name: string;
41
- type: "nextjs" | "react" | "fastify" | "express" | "hono" | "dotnet";
41
+ type: "nextjs" | "react" | "fastify" | "express" | "hono" | "dotnet" | "unity";
42
42
  path?: string | undefined;
43
43
  tsconfig?: string | undefined;
44
44
  csproj?: string | undefined;
@@ -101,11 +101,11 @@ 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";
104
+ project_type: "nextjs-app-router" | "react-vite" | "api-service" | "dotnet-webapi" | "unity-game";
105
105
  services: {
106
106
  name: string;
107
107
  path: string;
108
- type: "nextjs" | "react" | "fastify" | "express" | "hono" | "dotnet";
108
+ type: "nextjs" | "react" | "fastify" | "express" | "hono" | "dotnet" | "unity";
109
109
  tsconfig?: string | undefined;
110
110
  csproj?: string | undefined;
111
111
  }[];
@@ -135,10 +135,10 @@ 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" | undefined;
138
+ project_type?: "nextjs-app-router" | "react-vite" | "api-service" | "dotnet-webapi" | "unity-game" | undefined;
139
139
  services?: {
140
140
  name: string;
141
- type: "nextjs" | "react" | "fastify" | "express" | "hono" | "dotnet";
141
+ type: "nextjs" | "react" | "fastify" | "express" | "hono" | "dotnet" | "unity";
142
142
  path?: string | undefined;
143
143
  tsconfig?: string | undefined;
144
144
  csproj?: string | undefined;
@@ -741,7 +741,7 @@ declare function migrate(db: Database): void;
741
741
 
742
742
  interface InitProjectInput {
743
743
  name: string;
744
- template: "nextjs-app-router" | "react-vite" | "api-service" | "dotnet-webapi";
744
+ template: "nextjs-app-router" | "react-vite" | "api-service" | "dotnet-webapi" | "unity-game";
745
745
  features: string[];
746
746
  quality_priorities: string[];
747
747
  platforms: string[];
@@ -834,8 +834,9 @@ declare function indexPackageDependencies(db: Database, projectRoot: string, ser
834
834
  type ProjectLanguage = "typescript" | "csharp" | "auto";
835
835
  /**
836
836
  * Detect the project language from files in the project root.
837
- * Checks for tsconfig.json first (TypeScript priority), then .csproj/.sln.
838
- * This prevents a stray .csproj from hijacking a TypeScript project.
837
+ * Checks Unity first (ProjectSettings/ + Assets/), then tsconfig.json/package.json
838
+ * (TypeScript), then .csproj/.sln (.NET). Unity check comes first because Unity
839
+ * auto-generates .sln files that would otherwise match .NET detection.
839
840
  */
840
841
  declare function detectProjectLanguage(projectRoot: string): "typescript" | "csharp";
841
842
  /**