@arcbridge/core 0.1.6 → 0.2.1
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 +23 -15
- package/dist/index.js +693 -19
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
|
838
|
-
*
|
|
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
|
/**
|
|
@@ -932,6 +933,13 @@ declare function deleteTaskFromYaml(projectRoot: string, phaseId: string, taskId
|
|
|
932
933
|
success: boolean;
|
|
933
934
|
warning?: string;
|
|
934
935
|
};
|
|
936
|
+
/**
|
|
937
|
+
* Delete a phase from phases.yaml and its associated task file.
|
|
938
|
+
*/
|
|
939
|
+
declare function deletePhaseFromYaml(projectRoot: string, phaseId: string): {
|
|
940
|
+
success: boolean;
|
|
941
|
+
warning?: string;
|
|
942
|
+
};
|
|
935
943
|
|
|
936
944
|
/**
|
|
937
945
|
* Generate sync loop trigger files based on configured platforms.
|
|
@@ -1136,4 +1144,4 @@ declare function loadConfig(projectRoot: string): {
|
|
|
1136
1144
|
error: string | null;
|
|
1137
1145
|
};
|
|
1138
1146
|
|
|
1139
|
-
export { type ActivityRow, type AdrFrontmatter, AdrFrontmatterSchema, type AgentRole, AgentRoleSchema, type AggregatedRow, type ArcBridgeConfig, ArcBridgeConfigSchema, type BuildingBlock, BuildingBlockSchema, type BuildingBlocksFrontmatter, BuildingBlocksFrontmatterSchema, CURRENT_SCHEMA_VERSION, type ChangedFile, type Database, type DotnetProjectInfo, type DriftEntry, type DriftKind, type DriftOptions, type DriftSeverity, type ExportFormat, type ExtractedSymbol, type GenerateDatabaseResult, type GitRef, type IndexResult, type IndexerOptions, type InitProjectInput, type InsertActivityParams, type LatestQualitySnapshot, type LoadRolesResult, type MetricsResult, type Phase, PhaseSchema, type PhasesFile, PhasesFileSchema, type ProjectLanguage, QualityCategorySchema, QualityPrioritySchema, type QualityScenario, QualityScenarioSchema, QualityScenarioStatusSchema, type QualityScenariosFile, QualityScenariosFileSchema, type QueryMetricsParams, type ScenarioTestResult, type Service, type SessionTotals, type SymbolKind, type Task, type TaskFile, TaskFileSchema, type TaskInferenceResult, TaskSchema, type TestOutcome, type VerifyResult, addPhaseToYaml, addTaskToYaml, applyInferences, deleteTaskFromYaml, detectDrift, detectProjectLanguage, discoverDotnetServices, exportMetrics, generateAgentRoles, generateArc42, generateConfig, generateDatabase, generatePlan, generateSyncFiles, getChangedFiles, getHeadSha, getSessionTotals, getUncommittedChanges, indexPackageDependencies, indexProject, inferTaskStatuses, initializeSchema, insertActivity, loadConfig, loadRole, loadRoles, migrate, openDatabase, openMemoryDatabase, queryMetrics, refreshFromDocs, resolveRef, scopeToProject, setSyncCommit, suppressSqliteWarning, syncPhaseToYaml, syncScenarioToYaml, syncTaskToYaml, transaction, verifyScenarios, writeDriftLog };
|
|
1147
|
+
export { type ActivityRow, type AdrFrontmatter, AdrFrontmatterSchema, type AgentRole, AgentRoleSchema, type AggregatedRow, type ArcBridgeConfig, ArcBridgeConfigSchema, type BuildingBlock, BuildingBlockSchema, type BuildingBlocksFrontmatter, BuildingBlocksFrontmatterSchema, CURRENT_SCHEMA_VERSION, type ChangedFile, type Database, type DotnetProjectInfo, type DriftEntry, type DriftKind, type DriftOptions, type DriftSeverity, type ExportFormat, type ExtractedSymbol, type GenerateDatabaseResult, type GitRef, type IndexResult, type IndexerOptions, type InitProjectInput, type InsertActivityParams, type LatestQualitySnapshot, type LoadRolesResult, type MetricsResult, type Phase, PhaseSchema, type PhasesFile, PhasesFileSchema, type ProjectLanguage, QualityCategorySchema, QualityPrioritySchema, type QualityScenario, QualityScenarioSchema, QualityScenarioStatusSchema, type QualityScenariosFile, QualityScenariosFileSchema, type QueryMetricsParams, type ScenarioTestResult, type Service, type SessionTotals, type SymbolKind, type Task, type TaskFile, TaskFileSchema, type TaskInferenceResult, TaskSchema, type TestOutcome, type VerifyResult, addPhaseToYaml, addTaskToYaml, applyInferences, deletePhaseFromYaml, deleteTaskFromYaml, detectDrift, detectProjectLanguage, discoverDotnetServices, exportMetrics, generateAgentRoles, generateArc42, generateConfig, generateDatabase, generatePlan, generateSyncFiles, getChangedFiles, getHeadSha, getSessionTotals, getUncommittedChanges, indexPackageDependencies, indexProject, inferTaskStatuses, initializeSchema, insertActivity, loadConfig, loadRole, loadRoles, migrate, openDatabase, openMemoryDatabase, queryMetrics, refreshFromDocs, resolveRef, scopeToProject, setSyncCommit, suppressSqliteWarning, syncPhaseToYaml, syncScenarioToYaml, syncTaskToYaml, transaction, verifyScenarios, writeDriftLog };
|