Skip to content

An AI-powered task-management system you can drop into Cursor, Lovable, Windsurf, Roo, and others.

fix: storage issue (show file or api more consistently)

Ralph Khreishf7cab246b0cd
diff --git a/packages/tm-core/src/storage/api-storage.ts b/packages/tm-core/src/storage/api-storage.ts
index af4bc189..51784c9e 100644
--- a/packages/tm-core/src/storage/api-storage.ts
+++ b/packages/tm-core/src/storage/api-storage.ts
@@ -112,6 +112,13 @@ export class ApiStorage implements IStorage {
}
}
+ /**
+ * Get the storage type
+ */
+ getType(): 'api' {
+ return 'api';
+ }
+
/**
* Load tags into cache
* In our API-based system, "tags" represent briefs
diff --git a/packages/tm-core/src/storage/file-storage/file-storage.ts b/packages/tm-core/src/storage/file-storage/file-storage.ts
index d3fe29fd..b44039b6 100644
--- a/packages/tm-core/src/storage/file-storage/file-storage.ts
+++ b/packages/tm-core/src/storage/file-storage/file-storage.ts
@@ -44,6 +44,13 @@ export class FileStorage implements IStorage {
await this.fileOps.cleanup();
}
+ /**
+ * Get the storage type
+ */
+ getType(): 'file' {
+ return 'file';
+ }
+
/**
* Get statistics about the storage
*/