kotadb 2.2.0-next.20260204160632 → 2.2.0-next.20260204175832
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kotadb",
|
|
3
|
-
"version": "2.2.0-next.
|
|
3
|
+
"version": "2.2.0-next.20260204175832",
|
|
4
4
|
"description": "Local-only code intelligence tool for CLI agents. SQLite-backed repository indexing and code search via MCP.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "src/index.ts",
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
-- SQLite Migration: Workflow Context Accumulation
|
|
2
|
+
--
|
|
3
|
+
-- Migration: 005_workflow_contexts
|
|
4
|
+
-- Issue: #144 - ADW context accumulation for inter-phase handoffs
|
|
5
|
+
-- Author: Claude Code
|
|
6
|
+
-- Date: 2026-02-04
|
|
7
|
+
--
|
|
8
|
+
-- This migration adds workflow context storage for ADW automation,
|
|
9
|
+
-- enabling context accumulation between workflow phases (analysis -> plan -> build -> improve).
|
|
10
|
+
-- Context is stored in the main KotaDB database for future MCP tool integration.
|
|
11
|
+
|
|
12
|
+
-- ============================================================================
|
|
13
|
+
-- 1. Workflow Contexts Table
|
|
14
|
+
-- ============================================================================
|
|
15
|
+
-- Stores curated context data for each workflow phase
|
|
16
|
+
|
|
17
|
+
CREATE TABLE IF NOT EXISTS workflow_contexts (
|
|
18
|
+
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
19
|
+
workflow_id TEXT NOT NULL, -- 'adw-123-20260204T120000'
|
|
20
|
+
phase TEXT NOT NULL, -- 'analysis' | 'plan' | 'build' | 'improve'
|
|
21
|
+
context_data TEXT NOT NULL, -- JSON blob
|
|
22
|
+
created_at TEXT NOT NULL DEFAULT (datetime('now')),
|
|
23
|
+
updated_at TEXT NOT NULL DEFAULT (datetime('now')),
|
|
24
|
+
|
|
25
|
+
UNIQUE(workflow_id, phase),
|
|
26
|
+
CHECK (phase IN ('analysis', 'plan', 'build', 'improve'))
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
-- Index for workflow-scoped queries (primary access pattern)
|
|
30
|
+
CREATE INDEX IF NOT EXISTS idx_workflow_contexts_workflow_id
|
|
31
|
+
ON workflow_contexts(workflow_id);
|
|
32
|
+
|
|
33
|
+
-- Index for time-based queries (debugging/monitoring)
|
|
34
|
+
CREATE INDEX IF NOT EXISTS idx_workflow_contexts_created_at
|
|
35
|
+
ON workflow_contexts(created_at DESC);
|
|
36
|
+
|
|
37
|
+
-- ============================================================================
|
|
38
|
+
-- 2. Record Migration
|
|
39
|
+
-- ============================================================================
|
|
40
|
+
|
|
41
|
+
INSERT OR IGNORE INTO schema_migrations (name) VALUES ('005_workflow_contexts');
|