@utaba/deep-memory 0.6.0 → 0.6.1
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/dist/index.cjs +11 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3094,7 +3094,7 @@ var EventBus = class {
|
|
|
3094
3094
|
};
|
|
3095
3095
|
|
|
3096
3096
|
// src/portability/RepositoryExporter.ts
|
|
3097
|
-
var LIBRARY_VERSION = true ? "0.6.
|
|
3097
|
+
var LIBRARY_VERSION = true ? "0.6.1" : "0.1.0";
|
|
3098
3098
|
var RepositoryExporter = class {
|
|
3099
3099
|
storage;
|
|
3100
3100
|
provenance;
|
|
@@ -3888,6 +3888,16 @@ var DeepMemory = class {
|
|
|
3888
3888
|
await this.globalEventBus.emit("repository:opened", { repositoryId });
|
|
3889
3889
|
return repo;
|
|
3890
3890
|
}
|
|
3891
|
+
/** Get the full stored record for a single repository (including legal, owner, metadata, governance) */
|
|
3892
|
+
async getRepository(repositoryId) {
|
|
3893
|
+
await this.ensureInitialized();
|
|
3894
|
+
this.validateRepositoryId(repositoryId);
|
|
3895
|
+
const storedRepo = await this.storage.getRepository(repositoryId);
|
|
3896
|
+
if (!storedRepo) {
|
|
3897
|
+
throw new RepositoryNotFoundError(repositoryId);
|
|
3898
|
+
}
|
|
3899
|
+
return storedRepo;
|
|
3900
|
+
}
|
|
3891
3901
|
/** List all repositories */
|
|
3892
3902
|
async listRepositories(filter) {
|
|
3893
3903
|
await this.ensureInitialized();
|