Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .agents/skills/v2-migrator/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ const SLICES_TO_EXPORT = [

1. Add to `src/main/data/migration/v2/migrators/index.ts` with correct `order`
2. Add target table to `MigrationEngine.verifyAndClearNewTables` (child tables before parents)
3. **If migrating a Redux slice**: Add the slice name to `SLICES_TO_EXPORT` in `src/renderer/src/windows/migrationV2/exporters/ReduxExporter.ts`. Without this, the Renderer will not export the slice data to Main process, and `ctx.sources.reduxState.get()` will return `undefined`.

### 10. Document

Expand Down Expand Up @@ -720,6 +721,7 @@ try {
- [ ] Layered Preset pattern identified and applied (if source has predefined list + per-item overrides)
- [ ] Registered in `migrators/index.ts` with correct `order`
- [ ] Target table added to `MigrationEngine.verifyAndClearNewTables`
- [ ] Redux slice added to `SLICES_TO_EXPORT` in `ReduxExporter.ts` (if migrating Redux data)
- [ ] Cross-migrator data via `ctx.sharedData` (if applicable)
- [ ] `README-<MigratorName>.md` created
- [ ] All logging via `loggerService` (no `console.log`)
Expand Down
2 changes: 2 additions & 0 deletions .claude/skills/v2-migrator/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ const SLICES_TO_EXPORT = [

1. Add to `src/main/data/migration/v2/migrators/index.ts` with correct `order`
2. Add target table to `MigrationEngine.verifyAndClearNewTables` (child tables before parents)
3. **If migrating a Redux slice**: Add the slice name to `SLICES_TO_EXPORT` in `src/renderer/src/windows/migrationV2/exporters/ReduxExporter.ts`. Without this, the Renderer will not export the slice data to Main process, and `ctx.sources.reduxState.get()` will return `undefined`.

### 10. Document

Expand Down Expand Up @@ -720,6 +721,7 @@ try {
- [ ] Layered Preset pattern identified and applied (if source has predefined list + per-item overrides)
- [ ] Registered in `migrators/index.ts` with correct `order`
- [ ] Target table added to `MigrationEngine.verifyAndClearNewTables`
- [ ] Redux slice added to `SLICES_TO_EXPORT` in `ReduxExporter.ts` (if migrating Redux data)
- [ ] Cross-migrator data via `ctx.sharedData` (if applicable)
- [ ] `README-<MigratorName>.md` created
- [ ] All logging via `loggerService` (no `console.log`)
Expand Down
36 changes: 36 additions & 0 deletions migrations/sqlite-drizzle/0002_tired_glorian.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
CREATE TABLE `mcp_server` (
`id` text PRIMARY KEY NOT NULL,
`name` text NOT NULL,
`type` text,
`description` text,
`base_url` text,
`command` text,
`registry_url` text,
`args` text,
`env` text,
`headers` text,
`provider` text,
`provider_url` text,
`logo_url` text,
`tags` text,
`long_running` integer,
`timeout` integer,
`dxt_version` text,
`dxt_path` text,
`reference` text,
`search_key` text,
`config_sample` text,
`disabled_tools` text,
`disabled_auto_approve_tools` text,
`should_config` integer,
`is_active` integer DEFAULT false NOT NULL,
`install_source` text,
`is_trusted` integer,
`trusted_at` integer,
`installed_at` integer,
`created_at` integer,
`updated_at` integer
);
--> statement-breakpoint
CREATE INDEX `mcp_server_name_idx` ON `mcp_server` (`name`);--> statement-breakpoint
CREATE INDEX `mcp_server_is_active_idx` ON `mcp_server` (`is_active`);
Loading
Loading