@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.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as GovernanceConfig, M as MemoryVocabulary, x as ResolvedVocabulary, C as CreateEntityInput, U as UpdateEntityInput, y as CreateRelationshipInput, z as EntityTypeDefinition, A as VocabularyProposal, F as VocabularyProposalResult, H as ProvenanceContext, J as Provenance, E as Entity, D as DetailLevel, a as EntitySummary, b as EntityBrief, K as FindEntitiesQuery, e as PaginatedResult, L as ReembedResult, N as Relationship, P as PropertyFilter, R as RelationshipSummary, O as GraphResult, Q as ExploreOptions, T as Neighborhood, W as PathOptions, X as PathResult, Y as ConceptSearchOptions, Z as ScoredEntity, _ as TimelineOptions, $ as TimelineResult, i as RepositoryStats, a0 as RepositoryConfig, d as RepositoryFilter, a1 as RepositorySummary, g as RepositoryUpdate,
|
|
1
|
+
import { G as GovernanceConfig, M as MemoryVocabulary, x as ResolvedVocabulary, C as CreateEntityInput, U as UpdateEntityInput, y as CreateRelationshipInput, z as EntityTypeDefinition, A as VocabularyProposal, F as VocabularyProposalResult, H as ProvenanceContext, J as Provenance, E as Entity, D as DetailLevel, a as EntitySummary, b as EntityBrief, K as FindEntitiesQuery, e as PaginatedResult, L as ReembedResult, N as Relationship, P as PropertyFilter, R as RelationshipSummary, O as GraphResult, Q as ExploreOptions, T as Neighborhood, W as PathOptions, X as PathResult, Y as ConceptSearchOptions, Z as ScoredEntity, _ as TimelineOptions, $ as TimelineResult, i as RepositoryStats, a0 as RepositoryConfig, c as StoredRepository, d as RepositoryFilter, a1 as RepositorySummary, g as RepositoryUpdate, a2 as ExportOptions, a3 as ExportArchive, a4 as ImportOptions, a5 as ImportResult, a6 as ExportStreamItem, a7 as ImportStreamHeader, I as ImportChunk, k as StoredEntity, S as StorageRepositoryConfig, f as StoredRepositorySummary, h as DeleteProgressCallback, j as PaginationOptions, V as VocabularyChangeRecord, l as StoredEntityUpdate, m as StorageFindQuery, n as StoredRelationship, o as RelationshipQueryOptions, p as StorageExploreOptions, q as StorageNeighborhood, r as StoragePathOptions, s as StoragePathResult, t as StorageTimelineOptions, u as StorageTimelineResult, v as ExportChunk, B as BulkImportOptions, w as BulkImportResult, a8 as SearchOptions, a9 as SearchHit } from './portability-B-8J4nQQ.cjs';
|
|
2
2
|
export { aa as EnrichedRelationship, ab as EntityMap, ac as EntityTypeInput, ad as ExportLegalMetadata, ae as ExportManifest, af as ExportPipelineMetadata, ag as GetEntitiesOptions, ah as GetEntityOptions, ai as GovernanceMode, aj as ImportWarning, ak as NeighborhoodCenter, al as NeighborhoodGroup, am as NeighborhoodLayer, an as Path, ao as PropertySchema, ap as PropertyType, aq as ProvenanceFilter, ar as RelationshipDirection, as as RelationshipTypeDefinition, at as RelationshipTypeInput, au as RepositoryMetadata, av as StorageNeighborhoodGroup, aw as StorageNeighborhoodLayer, ax as StoragePath, ay as StorageTimelineEvent, az as TimelineEntityRef, aA as TimelineEvent, aB as TimelineRelationshipDetail, aC as VocabularyInput } from './portability-B-8J4nQQ.cjs';
|
|
3
3
|
import { DeepMemoryEventType, EventHandler, Unsubscribe, DeepMemoryEvent, HookResult, EventPayload } from './types/index.cjs';
|
|
4
4
|
import { T as TraversalSpec, a as TraversalResult } from './traversal-Llalk03r.cjs';
|
|
@@ -352,6 +352,8 @@ declare class DeepMemory {
|
|
|
352
352
|
createRepository(config: RepositoryConfig): Promise<MemoryRepository>;
|
|
353
353
|
/** Open an existing repository */
|
|
354
354
|
openRepository(repositoryId: string): Promise<MemoryRepository>;
|
|
355
|
+
/** Get the full stored record for a single repository (including legal, owner, metadata, governance) */
|
|
356
|
+
getRepository(repositoryId: string): Promise<StoredRepository>;
|
|
355
357
|
/** List all repositories */
|
|
356
358
|
listRepositories(filter?: RepositoryFilter): Promise<PaginatedResult<RepositorySummary>>;
|
|
357
359
|
/** Update repository metadata and settings */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as GovernanceConfig, M as MemoryVocabulary, x as ResolvedVocabulary, C as CreateEntityInput, U as UpdateEntityInput, y as CreateRelationshipInput, z as EntityTypeDefinition, A as VocabularyProposal, F as VocabularyProposalResult, H as ProvenanceContext, J as Provenance, E as Entity, D as DetailLevel, a as EntitySummary, b as EntityBrief, K as FindEntitiesQuery, e as PaginatedResult, L as ReembedResult, N as Relationship, P as PropertyFilter, R as RelationshipSummary, O as GraphResult, Q as ExploreOptions, T as Neighborhood, W as PathOptions, X as PathResult, Y as ConceptSearchOptions, Z as ScoredEntity, _ as TimelineOptions, $ as TimelineResult, i as RepositoryStats, a0 as RepositoryConfig, d as RepositoryFilter, a1 as RepositorySummary, g as RepositoryUpdate,
|
|
1
|
+
import { G as GovernanceConfig, M as MemoryVocabulary, x as ResolvedVocabulary, C as CreateEntityInput, U as UpdateEntityInput, y as CreateRelationshipInput, z as EntityTypeDefinition, A as VocabularyProposal, F as VocabularyProposalResult, H as ProvenanceContext, J as Provenance, E as Entity, D as DetailLevel, a as EntitySummary, b as EntityBrief, K as FindEntitiesQuery, e as PaginatedResult, L as ReembedResult, N as Relationship, P as PropertyFilter, R as RelationshipSummary, O as GraphResult, Q as ExploreOptions, T as Neighborhood, W as PathOptions, X as PathResult, Y as ConceptSearchOptions, Z as ScoredEntity, _ as TimelineOptions, $ as TimelineResult, i as RepositoryStats, a0 as RepositoryConfig, c as StoredRepository, d as RepositoryFilter, a1 as RepositorySummary, g as RepositoryUpdate, a2 as ExportOptions, a3 as ExportArchive, a4 as ImportOptions, a5 as ImportResult, a6 as ExportStreamItem, a7 as ImportStreamHeader, I as ImportChunk, k as StoredEntity, S as StorageRepositoryConfig, f as StoredRepositorySummary, h as DeleteProgressCallback, j as PaginationOptions, V as VocabularyChangeRecord, l as StoredEntityUpdate, m as StorageFindQuery, n as StoredRelationship, o as RelationshipQueryOptions, p as StorageExploreOptions, q as StorageNeighborhood, r as StoragePathOptions, s as StoragePathResult, t as StorageTimelineOptions, u as StorageTimelineResult, v as ExportChunk, B as BulkImportOptions, w as BulkImportResult, a8 as SearchOptions, a9 as SearchHit } from './portability-B-8J4nQQ.js';
|
|
2
2
|
export { aa as EnrichedRelationship, ab as EntityMap, ac as EntityTypeInput, ad as ExportLegalMetadata, ae as ExportManifest, af as ExportPipelineMetadata, ag as GetEntitiesOptions, ah as GetEntityOptions, ai as GovernanceMode, aj as ImportWarning, ak as NeighborhoodCenter, al as NeighborhoodGroup, am as NeighborhoodLayer, an as Path, ao as PropertySchema, ap as PropertyType, aq as ProvenanceFilter, ar as RelationshipDirection, as as RelationshipTypeDefinition, at as RelationshipTypeInput, au as RepositoryMetadata, av as StorageNeighborhoodGroup, aw as StorageNeighborhoodLayer, ax as StoragePath, ay as StorageTimelineEvent, az as TimelineEntityRef, aA as TimelineEvent, aB as TimelineRelationshipDetail, aC as VocabularyInput } from './portability-B-8J4nQQ.js';
|
|
3
3
|
import { DeepMemoryEventType, EventHandler, Unsubscribe, DeepMemoryEvent, HookResult, EventPayload } from './types/index.js';
|
|
4
4
|
import { T as TraversalSpec, a as TraversalResult } from './traversal-BdmDLMxV.js';
|
|
@@ -352,6 +352,8 @@ declare class DeepMemory {
|
|
|
352
352
|
createRepository(config: RepositoryConfig): Promise<MemoryRepository>;
|
|
353
353
|
/** Open an existing repository */
|
|
354
354
|
openRepository(repositoryId: string): Promise<MemoryRepository>;
|
|
355
|
+
/** Get the full stored record for a single repository (including legal, owner, metadata, governance) */
|
|
356
|
+
getRepository(repositoryId: string): Promise<StoredRepository>;
|
|
355
357
|
/** List all repositories */
|
|
356
358
|
listRepositories(filter?: RepositoryFilter): Promise<PaginatedResult<RepositorySummary>>;
|
|
357
359
|
/** Update repository metadata and settings */
|
package/dist/index.js
CHANGED
|
@@ -3038,7 +3038,7 @@ var EventBus = class {
|
|
|
3038
3038
|
};
|
|
3039
3039
|
|
|
3040
3040
|
// src/portability/RepositoryExporter.ts
|
|
3041
|
-
var LIBRARY_VERSION = true ? "0.6.
|
|
3041
|
+
var LIBRARY_VERSION = true ? "0.6.1" : "0.1.0";
|
|
3042
3042
|
var RepositoryExporter = class {
|
|
3043
3043
|
storage;
|
|
3044
3044
|
provenance;
|
|
@@ -3832,6 +3832,16 @@ var DeepMemory = class {
|
|
|
3832
3832
|
await this.globalEventBus.emit("repository:opened", { repositoryId });
|
|
3833
3833
|
return repo;
|
|
3834
3834
|
}
|
|
3835
|
+
/** Get the full stored record for a single repository (including legal, owner, metadata, governance) */
|
|
3836
|
+
async getRepository(repositoryId) {
|
|
3837
|
+
await this.ensureInitialized();
|
|
3838
|
+
this.validateRepositoryId(repositoryId);
|
|
3839
|
+
const storedRepo = await this.storage.getRepository(repositoryId);
|
|
3840
|
+
if (!storedRepo) {
|
|
3841
|
+
throw new RepositoryNotFoundError(repositoryId);
|
|
3842
|
+
}
|
|
3843
|
+
return storedRepo;
|
|
3844
|
+
}
|
|
3835
3845
|
/** List all repositories */
|
|
3836
3846
|
async listRepositories(filter) {
|
|
3837
3847
|
await this.ensureInitialized();
|