@arcbridge/core 0.1.5 → 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 +29 -15
- package/dist/index.js +684 -14
- 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
|
/**
|
|
@@ -908,6 +909,19 @@ declare function addTaskToYaml(projectRoot: string, phaseId: string, task: {
|
|
|
908
909
|
* Update a phase's status in phases.yaml.
|
|
909
910
|
*/
|
|
910
911
|
declare function syncPhaseToYaml(projectRoot: string, phaseId: string, status: string, startedAt?: string | null, completedAt?: string | null): void;
|
|
912
|
+
/**
|
|
913
|
+
* Add a new phase to the phases.yaml file.
|
|
914
|
+
*/
|
|
915
|
+
declare function addPhaseToYaml(projectRoot: string, phase: {
|
|
916
|
+
id: string;
|
|
917
|
+
name: string;
|
|
918
|
+
phase_number: number;
|
|
919
|
+
description: string;
|
|
920
|
+
gate_requirements?: string[];
|
|
921
|
+
}): {
|
|
922
|
+
success: boolean;
|
|
923
|
+
warning?: string;
|
|
924
|
+
};
|
|
911
925
|
/**
|
|
912
926
|
* Update a quality scenario's status in 10-quality-scenarios.yaml.
|
|
913
927
|
*/
|
|
@@ -1123,4 +1137,4 @@ declare function loadConfig(projectRoot: string): {
|
|
|
1123
1137
|
error: string | null;
|
|
1124
1138
|
};
|
|
1125
1139
|
|
|
1126
|
-
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, 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 };
|
|
1140
|
+
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 };
|