chore(M001): auto-commit after complete-milestone
This commit is contained in:
parent
dff941b1dc
commit
108845dd4b
6 changed files with 16 additions and 11 deletions
|
|
@ -125,9 +125,9 @@ console.log('\n=== complete-slice: schema v6 migration ===');
|
|||
|
||||
const adapter = _getAdapter()!;
|
||||
|
||||
// Verify schema version is 7
|
||||
// Verify schema version is current (v10 after M001 planning migrations)
|
||||
const versionRow = adapter.prepare('SELECT MAX(version) as v FROM schema_version').get();
|
||||
assertEq(versionRow?.['v'], 7, 'schema version should be 7');
|
||||
assertEq(versionRow?.['v'], 10, 'schema version should be 10');
|
||||
|
||||
// Verify slices table has full_summary_md and full_uat_md columns
|
||||
const cols = adapter.prepare("PRAGMA table_info(slices)").all();
|
||||
|
|
|
|||
|
|
@ -109,9 +109,9 @@ console.log('\n=== complete-task: schema v5 migration ===');
|
|||
|
||||
const adapter = _getAdapter()!;
|
||||
|
||||
// Verify schema version is 7
|
||||
// Verify schema version is current (v10 after M001 planning migrations)
|
||||
const versionRow = adapter.prepare('SELECT MAX(version) as v FROM schema_version').get();
|
||||
assertEq(versionRow?.['v'], 7, 'schema version should be 7');
|
||||
assertEq(versionRow?.['v'], 10, 'schema version should be 10');
|
||||
|
||||
// Verify all 4 new tables exist
|
||||
const tables = adapter.prepare(
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ console.log('\n=== gsd-db: fresh DB schema init (memory) ===');
|
|||
// Check schema_version table
|
||||
const adapter = _getAdapter()!;
|
||||
const version = adapter.prepare('SELECT MAX(version) as version FROM schema_version').get();
|
||||
assertEq(version?.['version'], 7, 'schema version should be 7');
|
||||
assertEq(version?.['version'], 10, 'schema version should be 10');
|
||||
|
||||
// Check tables exist by querying them
|
||||
const dRows = adapter.prepare('SELECT count(*) as cnt FROM decisions').get();
|
||||
|
|
|
|||
|
|
@ -384,7 +384,7 @@ console.log('=== md-importer: schema v1→v2 migration ===');
|
|||
openDatabase(':memory:');
|
||||
const adapter = _getAdapter();
|
||||
const version = adapter?.prepare('SELECT MAX(version) as v FROM schema_version').get();
|
||||
assertEq(version?.v, 7, 'new DB should be at schema version 7');
|
||||
assertEq(version?.v, 10, 'new DB should be at schema version 10');
|
||||
|
||||
// Artifacts table should exist
|
||||
const tableCheck = adapter?.prepare("SELECT count(*) as c FROM sqlite_master WHERE type='table' AND name='artifacts'").get();
|
||||
|
|
|
|||
|
|
@ -335,9 +335,9 @@ console.log('\n=== memory-store: schema includes memories table ===');
|
|||
const viewCount = adapter.prepare('SELECT count(*) as cnt FROM active_memories').get();
|
||||
assertEq(viewCount?.['cnt'], 0, 'active_memories view should exist');
|
||||
|
||||
// Verify schema version is 7
|
||||
// Verify schema version is 10 (after M001 planning migrations)
|
||||
const version = adapter.prepare('SELECT MAX(version) as v FROM schema_version').get();
|
||||
assertEq(version?.['v'], 7, 'schema version should be 7');
|
||||
assertEq(version?.['v'], 10, 'schema version should be 10');
|
||||
|
||||
closeDatabase();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// tool-naming — Verifies canonical + alias tool registration for GSD DB tools.
|
||||
//
|
||||
// Each of the 6 DB tools must register under its canonical gsd_concept_action name
|
||||
// AND under the old gsd_action_concept name as a backward-compatible alias.
|
||||
// Each DB tool must register under its canonical gsd_concept_action name
|
||||
// AND under a backward-compatible alias name.
|
||||
// The alias must share the exact same execute function reference as the canonical tool.
|
||||
|
||||
import { createTestContext } from './test-helpers.ts';
|
||||
|
|
@ -28,6 +28,11 @@ const RENAME_MAP: Array<{ canonical: string; alias: string }> = [
|
|||
{ canonical: "gsd_milestone_generate_id", alias: "gsd_generate_milestone_id" },
|
||||
{ canonical: "gsd_task_complete", alias: "gsd_complete_task" },
|
||||
{ canonical: "gsd_slice_complete", alias: "gsd_complete_slice" },
|
||||
{ canonical: "gsd_plan_milestone", alias: "gsd_milestone_plan" },
|
||||
{ canonical: "gsd_plan_slice", alias: "gsd_slice_plan" },
|
||||
{ canonical: "gsd_plan_task", alias: "gsd_task_plan" },
|
||||
{ canonical: "gsd_replan_slice", alias: "gsd_slice_replan" },
|
||||
{ canonical: "gsd_reassess_roadmap", alias: "gsd_roadmap_reassess" },
|
||||
];
|
||||
|
||||
// ─── Registration count ──────────────────────────────────────────────────────
|
||||
|
|
@ -37,7 +42,7 @@ console.log('\n── Tool naming: registration count ──');
|
|||
const pi = makeMockPi();
|
||||
registerDbTools(pi);
|
||||
|
||||
assertEq(pi.tools.length, 12, 'Should register exactly 12 tools (6 canonical + 6 aliases)');
|
||||
assertEq(pi.tools.length, 22, 'Should register exactly 22 tools (11 canonical + 11 aliases)');
|
||||
|
||||
// ─── Both names exist for each pair ──────────────────────────────────────────
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue