()
| 188 | } |
| 189 | |
| 190 | func (s *Store) migrateIfInstruction() error { |
| 191 | if s.kind != KindInstruction { |
| 192 | return nil |
| 193 | } |
| 194 | return MigrateEntityStorage() |
| 195 | } |
| 196 | |
| 197 | // MigrateEntityStorage migrates legacy prompt entities to instruction storage |
| 198 | // idempotently. It reads prompts.json, converts each entity's Kind from |
no test coverage detected