feat(dolt): bootstrap routes.jsonl and interactions.jsonl (bd-lbdy7)
Add support for importing routes.jsonl and interactions.jsonl during Dolt bootstrap. Previously only issues.jsonl was imported. Changes: - Add routes and interactions tables to Dolt schema - Import routes before issues (no dependencies) - Import interactions after issues (may reference issue_id) - Reuse audit.Entry type instead of duplicating - Add tests for multi-file bootstrap Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
committed by
Steve Yegge
parent
938a17cda5
commit
90344b9939
@@ -203,6 +203,37 @@ CREATE TABLE IF NOT EXISTS repo_mtimes (
|
||||
last_checked DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
INDEX idx_repo_mtimes_checked (last_checked)
|
||||
);
|
||||
|
||||
-- Routes table (prefix-to-path routing configuration)
|
||||
CREATE TABLE IF NOT EXISTS routes (
|
||||
prefix VARCHAR(32) PRIMARY KEY,
|
||||
path VARCHAR(512) NOT NULL,
|
||||
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
|
||||
);
|
||||
|
||||
-- Interactions table (agent audit log)
|
||||
CREATE TABLE IF NOT EXISTS interactions (
|
||||
id VARCHAR(32) PRIMARY KEY,
|
||||
kind VARCHAR(64) NOT NULL,
|
||||
created_at DATETIME NOT NULL,
|
||||
actor VARCHAR(255),
|
||||
issue_id VARCHAR(255),
|
||||
model VARCHAR(255),
|
||||
prompt TEXT,
|
||||
response TEXT,
|
||||
error TEXT,
|
||||
tool_name VARCHAR(255),
|
||||
exit_code INT,
|
||||
parent_id VARCHAR(32),
|
||||
label VARCHAR(64),
|
||||
reason TEXT,
|
||||
extra JSON,
|
||||
INDEX idx_interactions_kind (kind),
|
||||
INDEX idx_interactions_created_at (created_at),
|
||||
INDEX idx_interactions_issue_id (issue_id),
|
||||
INDEX idx_interactions_parent_id (parent_id)
|
||||
);
|
||||
`
|
||||
|
||||
// defaultConfig contains the default configuration values
|
||||
|
||||
Reference in New Issue
Block a user