@arcbridge/core 0.1.3 → 0.1.5
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 +27 -12
- package/dist/index.js +688 -149
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -448,13 +448,13 @@ declare const PhaseSchema: z.ZodObject<{
|
|
|
448
448
|
declare const TaskSchema: z.ZodObject<{
|
|
449
449
|
id: z.ZodString;
|
|
450
450
|
title: z.ZodString;
|
|
451
|
-
status: z.ZodDefault<z.ZodEnum<["todo", "in-progress", "done", "blocked"]>>;
|
|
451
|
+
status: z.ZodDefault<z.ZodEnum<["todo", "in-progress", "done", "blocked", "cancelled"]>>;
|
|
452
452
|
building_block: z.ZodOptional<z.ZodString>;
|
|
453
453
|
quality_scenarios: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
454
454
|
acceptance_criteria: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
455
455
|
completed_at: z.ZodOptional<z.ZodString>;
|
|
456
456
|
}, "strip", z.ZodTypeAny, {
|
|
457
|
-
status: "in-progress" | "blocked" | "todo" | "done";
|
|
457
|
+
status: "in-progress" | "blocked" | "todo" | "done" | "cancelled";
|
|
458
458
|
id: string;
|
|
459
459
|
quality_scenarios: string[];
|
|
460
460
|
title: string;
|
|
@@ -464,7 +464,7 @@ declare const TaskSchema: z.ZodObject<{
|
|
|
464
464
|
}, {
|
|
465
465
|
id: string;
|
|
466
466
|
title: string;
|
|
467
|
-
status?: "in-progress" | "blocked" | "todo" | "done" | undefined;
|
|
467
|
+
status?: "in-progress" | "blocked" | "todo" | "done" | "cancelled" | undefined;
|
|
468
468
|
quality_scenarios?: string[] | undefined;
|
|
469
469
|
completed_at?: string | undefined;
|
|
470
470
|
building_block?: string | undefined;
|
|
@@ -531,13 +531,13 @@ declare const TaskFileSchema: z.ZodObject<{
|
|
|
531
531
|
tasks: z.ZodArray<z.ZodObject<{
|
|
532
532
|
id: z.ZodString;
|
|
533
533
|
title: z.ZodString;
|
|
534
|
-
status: z.ZodDefault<z.ZodEnum<["todo", "in-progress", "done", "blocked"]>>;
|
|
534
|
+
status: z.ZodDefault<z.ZodEnum<["todo", "in-progress", "done", "blocked", "cancelled"]>>;
|
|
535
535
|
building_block: z.ZodOptional<z.ZodString>;
|
|
536
536
|
quality_scenarios: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
537
537
|
acceptance_criteria: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
538
538
|
completed_at: z.ZodOptional<z.ZodString>;
|
|
539
539
|
}, "strip", z.ZodTypeAny, {
|
|
540
|
-
status: "in-progress" | "blocked" | "todo" | "done";
|
|
540
|
+
status: "in-progress" | "blocked" | "todo" | "done" | "cancelled";
|
|
541
541
|
id: string;
|
|
542
542
|
quality_scenarios: string[];
|
|
543
543
|
title: string;
|
|
@@ -547,7 +547,7 @@ declare const TaskFileSchema: z.ZodObject<{
|
|
|
547
547
|
}, {
|
|
548
548
|
id: string;
|
|
549
549
|
title: string;
|
|
550
|
-
status?: "in-progress" | "blocked" | "todo" | "done" | undefined;
|
|
550
|
+
status?: "in-progress" | "blocked" | "todo" | "done" | "cancelled" | undefined;
|
|
551
551
|
quality_scenarios?: string[] | undefined;
|
|
552
552
|
completed_at?: string | undefined;
|
|
553
553
|
building_block?: string | undefined;
|
|
@@ -557,7 +557,7 @@ declare const TaskFileSchema: z.ZodObject<{
|
|
|
557
557
|
schema_version: 1;
|
|
558
558
|
phase_id: string;
|
|
559
559
|
tasks: {
|
|
560
|
-
status: "in-progress" | "blocked" | "todo" | "done";
|
|
560
|
+
status: "in-progress" | "blocked" | "todo" | "done" | "cancelled";
|
|
561
561
|
id: string;
|
|
562
562
|
quality_scenarios: string[];
|
|
563
563
|
title: string;
|
|
@@ -570,7 +570,7 @@ declare const TaskFileSchema: z.ZodObject<{
|
|
|
570
570
|
tasks: {
|
|
571
571
|
id: string;
|
|
572
572
|
title: string;
|
|
573
|
-
status?: "in-progress" | "blocked" | "todo" | "done" | undefined;
|
|
573
|
+
status?: "in-progress" | "blocked" | "todo" | "done" | "cancelled" | undefined;
|
|
574
574
|
quality_scenarios?: string[] | undefined;
|
|
575
575
|
completed_at?: string | undefined;
|
|
576
576
|
building_block?: string | undefined;
|
|
@@ -734,7 +734,7 @@ declare function openMemoryDatabase(): Database;
|
|
|
734
734
|
*/
|
|
735
735
|
declare function transaction<T>(db: Database, fn: () => T): T;
|
|
736
736
|
|
|
737
|
-
declare const CURRENT_SCHEMA_VERSION =
|
|
737
|
+
declare const CURRENT_SCHEMA_VERSION = 3;
|
|
738
738
|
declare function initializeSchema(db: Database): void;
|
|
739
739
|
|
|
740
740
|
declare function migrate(db: Database): void;
|
|
@@ -911,7 +911,14 @@ declare function syncPhaseToYaml(projectRoot: string, phaseId: string, status: s
|
|
|
911
911
|
/**
|
|
912
912
|
* Update a quality scenario's status in 10-quality-scenarios.yaml.
|
|
913
913
|
*/
|
|
914
|
-
declare function syncScenarioToYaml(projectRoot: string, scenarioId: string, status: string): void;
|
|
914
|
+
declare function syncScenarioToYaml(projectRoot: string, scenarioId: string, status: string, linkedTests?: string[], verification?: string): void;
|
|
915
|
+
/**
|
|
916
|
+
* Delete a task from the YAML task file.
|
|
917
|
+
*/
|
|
918
|
+
declare function deleteTaskFromYaml(projectRoot: string, phaseId: string, taskId: string): {
|
|
919
|
+
success: boolean;
|
|
920
|
+
warning?: string;
|
|
921
|
+
};
|
|
915
922
|
|
|
916
923
|
/**
|
|
917
924
|
* Generate sync loop trigger files based on configured platforms.
|
|
@@ -1033,7 +1040,9 @@ interface GitRef {
|
|
|
1033
1040
|
*/
|
|
1034
1041
|
declare function resolveRef(projectRoot: string, since: string, db?: Database): GitRef;
|
|
1035
1042
|
/**
|
|
1036
|
-
* Get list of changed files between a ref and HEAD.
|
|
1043
|
+
* Get list of changed files between a ref and HEAD, including uncommitted changes.
|
|
1044
|
+
* Merges committed diffs with staged+unstaged working tree changes so that
|
|
1045
|
+
* practice reviews and drift checks see all work, not just committed code.
|
|
1037
1046
|
*/
|
|
1038
1047
|
declare function getChangedFiles(projectRoot: string, ref: string): ChangedFile[];
|
|
1039
1048
|
/**
|
|
@@ -1048,6 +1057,12 @@ declare function getHeadSha(projectRoot: string): string | null;
|
|
|
1048
1057
|
* Store the current sync point in arcbridge_meta.
|
|
1049
1058
|
*/
|
|
1050
1059
|
declare function setSyncCommit(db: Database, key: "last_sync_commit" | "phase_sync_commit", sha: string): void;
|
|
1060
|
+
/**
|
|
1061
|
+
* Filter changed files to only those within the project directory.
|
|
1062
|
+
* In monorepo setups, getChangedFiles returns all repo changes —
|
|
1063
|
+
* this scopes them to the project's subdirectory.
|
|
1064
|
+
*/
|
|
1065
|
+
declare function scopeToProject(changedFiles: ChangedFile[], projectRoot: string): ChangedFile[];
|
|
1051
1066
|
|
|
1052
1067
|
type TestOutcome = "passed" | "failed" | "missing" | "error";
|
|
1053
1068
|
interface ScenarioTestResult {
|
|
@@ -1108,4 +1123,4 @@ declare function loadConfig(projectRoot: string): {
|
|
|
1108
1123
|
error: string | null;
|
|
1109
1124
|
};
|
|
1110
1125
|
|
|
1111
|
-
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, 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, setSyncCommit, suppressSqliteWarning, syncPhaseToYaml, syncScenarioToYaml, syncTaskToYaml, transaction, verifyScenarios, writeDriftLog };
|
|
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 };
|