@utaba/deep-memory 0.1.0 → 0.3.0

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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/types/index.ts"],"sourcesContent":["// Type re-exports — @utaba/deep-memory/types\n\nexport type {\n ProvenanceContext,\n Provenance,\n} from './provenance.js';\n\nexport type {\n PropertyType,\n PropertySchema,\n EntityTypeDefinition,\n RelationshipTypeDefinition,\n MemoryVocabulary,\n GovernanceMode,\n GovernanceConfig,\n VocabularyProposal,\n VocabularyProposalResult,\n VocabularyChangeRecord,\n ResolvedVocabulary,\n EntityTypeInput,\n RelationshipTypeInput,\n VocabularyInput,\n} from './vocabulary.js';\n\nexport type {\n DetailLevel,\n Entity,\n EntitySummary,\n EntityBrief,\n CreateEntityInput,\n UpdateEntityInput,\n StoredEntity,\n StoredEntityUpdate,\n GetEntityOptions,\n GetEntitiesOptions,\n} from './entities.js';\n\nexport type {\n RelationshipDirection,\n Relationship,\n EnrichedRelationship,\n CreateRelationshipInput,\n StoredRelationship,\n RelationshipQueryOptions,\n RelationshipSummary,\n} from './relationships.js';\n\nexport type {\n RepositoryConfig,\n RepositoryMetadata,\n RepositoryUpdate,\n RepositorySummary,\n RepositoryStats,\n StoredRepository,\n StoredRepositorySummary,\n RepositoryFilter,\n StorageRepositoryConfig,\n} from './repositories.js';\n\nexport type {\n PaginationOptions,\n FindEntitiesQuery,\n ExploreOptions,\n PathOptions,\n ConceptSearchOptions,\n TimelineOptions,\n StorageFindQuery,\n StorageExploreOptions,\n StoragePathOptions,\n StorageTimelineOptions,\n SearchOptions,\n PropertyFilter,\n ProvenanceFilter,\n} from './queries.js';\n\nexport type {\n PaginatedResult,\n NeighbourhoodCentre,\n NeighbourhoodGroup,\n NeighbourhoodLayer,\n Neighbourhood,\n Path,\n PathResult,\n ScoredEntity,\n TimelineEntityRef,\n TimelineRelationshipDetail,\n TimelineEvent,\n TimelineResult,\n GraphResult,\n EntityMap,\n StorageNeighbourhoodGroup,\n StorageNeighbourhoodLayer,\n StorageNeighbourhood,\n StoragePath,\n StoragePathResult,\n StorageTimelineEvent,\n StorageTimelineResult,\n SearchHit,\n BulkImportResult,\n ReembedResult,\n} from './results.js';\n\nexport type {\n DeepMemoryEventType,\n EventPayload,\n DeepMemoryEvent,\n EventHandler,\n Unsubscribe,\n HookResult,\n} from './events.js';\n\nexport type {\n ExportManifest,\n ExportArchive,\n ExportChunk,\n ExportStreamItem,\n ImportOptions,\n ImportChunk,\n ImportStreamHeader,\n ImportWarning,\n ImportResult,\n} from './portability.js';\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../../src/types/index.ts"],"sourcesContent":["// Type re-exports — @utaba/deep-memory/types\n\nexport type {\n ProvenanceContext,\n Provenance,\n} from './provenance.js';\n\nexport type {\n PropertyType,\n PropertySchema,\n EntityTypeDefinition,\n RelationshipTypeDefinition,\n MemoryVocabulary,\n GovernanceMode,\n GovernanceConfig,\n VocabularyProposal,\n VocabularyProposalResult,\n VocabularyChangeRecord,\n ResolvedVocabulary,\n EntityTypeInput,\n RelationshipTypeInput,\n VocabularyInput,\n} from './vocabulary.js';\n\nexport type {\n DetailLevel,\n Entity,\n EntitySummary,\n EntityBrief,\n CreateEntityInput,\n UpdateEntityInput,\n StoredEntity,\n StoredEntityUpdate,\n GetEntityOptions,\n GetEntitiesOptions,\n} from './entities.js';\n\nexport type {\n RelationshipDirection,\n Relationship,\n EnrichedRelationship,\n CreateRelationshipInput,\n StoredRelationship,\n RelationshipQueryOptions,\n RelationshipSummary,\n} from './relationships.js';\n\nexport type {\n RepositoryConfig,\n RepositoryMetadata,\n RepositoryUpdate,\n RepositorySummary,\n RepositoryStats,\n StoredRepository,\n StoredRepositorySummary,\n RepositoryFilter,\n StorageRepositoryConfig,\n} from './repositories.js';\n\nexport type {\n PaginationOptions,\n FindEntitiesQuery,\n ExploreOptions,\n PathOptions,\n ConceptSearchOptions,\n TimelineOptions,\n StorageFindQuery,\n StorageExploreOptions,\n StoragePathOptions,\n StorageTimelineOptions,\n SearchOptions,\n PropertyFilter,\n ProvenanceFilter,\n} from './queries.js';\n\nexport type {\n PaginatedResult,\n NeighbourhoodCentre,\n NeighbourhoodGroup,\n NeighbourhoodLayer,\n Neighbourhood,\n Path,\n PathResult,\n ScoredEntity,\n TimelineEntityRef,\n TimelineRelationshipDetail,\n TimelineEvent,\n TimelineResult,\n GraphResult,\n EntityMap,\n StorageNeighbourhoodGroup,\n StorageNeighbourhoodLayer,\n StorageNeighbourhood,\n StoragePath,\n StoragePathResult,\n StorageTimelineEvent,\n StorageTimelineResult,\n SearchHit,\n BulkImportResult,\n ReembedResult,\n} from './results.js';\n\nexport type {\n DeepMemoryEventType,\n EventPayload,\n DeepMemoryEvent,\n EventHandler,\n Unsubscribe,\n HookResult,\n} from './events.js';\n\nexport type {\n TraversalSpec,\n TraversalStart,\n TraversalStep,\n TraversalProjection,\n TraversalReturnMode,\n TraversalResult,\n TraversalAggregation,\n TraversalRelationship,\n TraversalPath,\n QueryMetadata,\n} from './traversal.js';\n\nexport type {\n ExportManifest,\n ExportLegalMetadata,\n ExportPipelineMetadata,\n ExportOptions,\n ExportArchive,\n ExportChunk,\n ExportStreamItem,\n ImportOptions,\n ImportChunk,\n BulkImportOptions,\n DeleteProgressCallback,\n ImportStreamHeader,\n ImportWarning,\n ImportResult,\n} from './portability.js';\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -1,8 +1,9 @@
1
- import { v as ProvenanceContext, C as CreateEntityInput, x as Entity, U as UpdateEntityInput, r as CreateRelationshipInput, H as Relationship, V as VocabularyChangeRecord } from '../portability-DdlNYXGX.cjs';
2
- export { B as BulkImportResult, W as ConceptSearchOptions, D as DetailLevel, a7 as EnrichedRelationship, z as EntityBrief, a8 as EntityMap, y as EntitySummary, s as EntityTypeDefinition, a9 as EntityTypeInput, N as ExploreOptions, a0 as ExportArchive, E as ExportChunk, aa as ExportManifest, a3 as ExportStreamItem, F as FindEntitiesQuery, ab as GetEntitiesOptions, ac as GetEntityOptions, G as GovernanceConfig, ad as GovernanceMode, L as GraphResult, I as ImportChunk, a1 as ImportOptions, a2 as ImportResult, a4 as ImportStreamHeader, ae as ImportWarning, M as MemoryVocabulary, O as Neighbourhood, af as NeighbourhoodCentre, ag as NeighbourhoodGroup, ah as NeighbourhoodLayer, P as PaginatedResult, e as PaginationOptions, ai as Path, Q as PathOptions, T as PathResult, J as PropertyFilter, aj as PropertySchema, ak as PropertyType, w as Provenance, al as ProvenanceFilter, A as ReembedResult, am as RelationshipDirection, j as RelationshipQueryOptions, K as RelationshipSummary, an as RelationshipTypeDefinition, ao as RelationshipTypeInput, _ as RepositoryConfig, R as RepositoryFilter, ap as RepositoryMetadata, d as RepositoryStats, $ as RepositorySummary, c as RepositoryUpdate, q as ResolvedVocabulary, X as ScoredEntity, a6 as SearchHit, a5 as SearchOptions, k as StorageExploreOptions, h as StorageFindQuery, l as StorageNeighbourhood, aq as StorageNeighbourhoodGroup, ar as StorageNeighbourhoodLayer, as as StoragePath, m as StoragePathOptions, n as StoragePathResult, S as StorageRepositoryConfig, at as StorageTimelineEvent, o as StorageTimelineOptions, p as StorageTimelineResult, f as StoredEntity, g as StoredEntityUpdate, i as StoredRelationship, a as StoredRepository, b as StoredRepositorySummary, au as TimelineEntityRef, av as TimelineEvent, Y as TimelineOptions, aw as TimelineRelationshipDetail, Z as TimelineResult, ax as VocabularyInput, t as VocabularyProposal, u as VocabularyProposalResult } from '../portability-DdlNYXGX.cjs';
1
+ import { H as ProvenanceContext, C as CreateEntityInput, E as Entity, U as UpdateEntityInput, y as CreateRelationshipInput, N as Relationship, V as VocabularyChangeRecord } from '../portability-1KBMVBGJ.cjs';
2
+ export { B as BulkImportOptions, w as BulkImportResult, Y as ConceptSearchOptions, h as DeleteProgressCallback, D as DetailLevel, aa as EnrichedRelationship, b as EntityBrief, ab as EntityMap, a as EntitySummary, z as EntityTypeDefinition, ac as EntityTypeInput, Q as ExploreOptions, a3 as ExportArchive, v as ExportChunk, ad as ExportLegalMetadata, ae as ExportManifest, a2 as ExportOptions, af as ExportPipelineMetadata, a6 as ExportStreamItem, K as FindEntitiesQuery, ag as GetEntitiesOptions, ah as GetEntityOptions, G as GovernanceConfig, ai as GovernanceMode, O as GraphResult, I as ImportChunk, a4 as ImportOptions, a5 as ImportResult, a7 as ImportStreamHeader, aj as ImportWarning, M as MemoryVocabulary, T as Neighbourhood, ak as NeighbourhoodCentre, al as NeighbourhoodGroup, am as NeighbourhoodLayer, e as PaginatedResult, j as PaginationOptions, an as Path, W as PathOptions, X as PathResult, P as PropertyFilter, ao as PropertySchema, ap as PropertyType, J as Provenance, aq as ProvenanceFilter, L as ReembedResult, ar as RelationshipDirection, o as RelationshipQueryOptions, R as RelationshipSummary, as as RelationshipTypeDefinition, at as RelationshipTypeInput, a0 as RepositoryConfig, d as RepositoryFilter, au as RepositoryMetadata, i as RepositoryStats, a1 as RepositorySummary, g as RepositoryUpdate, x as ResolvedVocabulary, Z as ScoredEntity, a9 as SearchHit, a8 as SearchOptions, p as StorageExploreOptions, m as StorageFindQuery, q as StorageNeighbourhood, av as StorageNeighbourhoodGroup, aw as StorageNeighbourhoodLayer, ax as StoragePath, r as StoragePathOptions, s as StoragePathResult, S as StorageRepositoryConfig, ay as StorageTimelineEvent, t as StorageTimelineOptions, u as StorageTimelineResult, k as StoredEntity, l as StoredEntityUpdate, n as StoredRelationship, c as StoredRepository, f as StoredRepositorySummary, az as TimelineEntityRef, aA as TimelineEvent, _ as TimelineOptions, aB as TimelineRelationshipDetail, $ as TimelineResult, aC as VocabularyInput, A as VocabularyProposal, F as VocabularyProposalResult } from '../portability-1KBMVBGJ.cjs';
3
+ export { Q as QueryMetadata, b as TraversalAggregation, c as TraversalPath, d as TraversalProjection, e as TraversalRelationship, a as TraversalResult, f as TraversalReturnMode, T as TraversalSpec, g as TraversalStart, h as TraversalStep } from '../traversal-DQynd-to.cjs';
3
4
 
4
5
  /** All event types emitted by the Deep Memory engine */
5
- type DeepMemoryEventType = 'repository:created' | 'repository:opened' | 'repository:updated' | 'repository:deleted' | 'entity:creating' | 'entity:created' | 'entity:updating' | 'entity:updated' | 'entity:deleting' | 'entity:deleted' | 'relationship:creating' | 'relationship:created' | 'relationship:removing' | 'relationship:removed' | 'vocabulary:proposal' | 'vocabulary:approved' | 'vocabulary:rejected' | 'vocabulary:pending' | 'vocabulary:changed' | 'validation:failed' | 'search:executed' | 'reembed:started' | 'reembed:progress' | 'reembed:completed' | 'reembed:failed' | 'export:started' | 'export:progress' | 'export:completed' | 'import:started' | 'import:progress' | 'import:completed' | 'import:failed';
6
+ type DeepMemoryEventType = 'repository:created' | 'repository:opened' | 'repository:updated' | 'repository:deleted' | 'entity:creating' | 'entity:created' | 'entity:updating' | 'entity:updated' | 'entity:deleting' | 'entity:deleted' | 'relationship:creating' | 'relationship:created' | 'relationship:removing' | 'relationship:removed' | 'vocabulary:proposal' | 'vocabulary:approved' | 'vocabulary:rejected' | 'vocabulary:pending' | 'vocabulary:changed' | 'validation:failed' | 'search:executed' | 'reembed:started' | 'reembed:progress' | 'reembed:completed' | 'reembed:failed' | 'export:started' | 'export:progress' | 'export:completed' | 'import:started' | 'import:progress' | 'import:completed' | 'import:failed' | 'delete:started' | 'delete:progress' | 'delete:completed';
6
7
  /** Type-safe event payload mapping */
7
8
  type EventPayload<T extends DeepMemoryEventType> = T extends 'repository:created' ? {
8
9
  repositoryId: string;
@@ -75,10 +76,16 @@ type EventPayload<T extends DeepMemoryEventType> = T extends 'repository:created
75
76
  error: string;
76
77
  } : T extends 'export:started' ? {
77
78
  repositoryId: string;
79
+ totalEntities: number;
80
+ totalRelationships: number;
78
81
  } : T extends 'export:progress' ? {
79
82
  repositoryId: string;
80
83
  entitiesExported: number;
84
+ relationshipsExported: number;
81
85
  totalEntities: number;
86
+ totalRelationships: number;
87
+ chunksCompleted: number;
88
+ totalChunks: number;
82
89
  } : T extends 'export:completed' ? {
83
90
  repositoryId: string;
84
91
  entityCount: number;
@@ -88,7 +95,11 @@ type EventPayload<T extends DeepMemoryEventType> = T extends 'repository:created
88
95
  } : T extends 'import:progress' ? {
89
96
  repositoryId: string;
90
97
  entitiesImported: number;
98
+ relationshipsImported: number;
91
99
  totalEntities: number;
100
+ totalRelationships: number;
101
+ chunksCompleted: number;
102
+ totalChunks: number;
92
103
  } : T extends 'import:completed' ? {
93
104
  repositoryId: string;
94
105
  entitiesImported: number;
@@ -96,6 +107,20 @@ type EventPayload<T extends DeepMemoryEventType> = T extends 'repository:created
96
107
  } : T extends 'import:failed' ? {
97
108
  repositoryId: string;
98
109
  error: string;
110
+ } : T extends 'delete:started' ? {
111
+ repositoryId: string;
112
+ totalEntities: number;
113
+ totalRelationships: number;
114
+ } : T extends 'delete:progress' ? {
115
+ repositoryId: string;
116
+ entitiesDeleted: number;
117
+ relationshipsDeleted: number;
118
+ totalEntities: number;
119
+ totalRelationships: number;
120
+ } : T extends 'delete:completed' ? {
121
+ repositoryId: string;
122
+ entitiesDeleted: number;
123
+ relationshipsDeleted: number;
99
124
  } : Record<string, unknown>;
100
125
  /** A typed event emitted by the engine */
101
126
  interface DeepMemoryEvent<T extends DeepMemoryEventType> {
@@ -1,8 +1,9 @@
1
- import { v as ProvenanceContext, C as CreateEntityInput, x as Entity, U as UpdateEntityInput, r as CreateRelationshipInput, H as Relationship, V as VocabularyChangeRecord } from '../portability-DdlNYXGX.js';
2
- export { B as BulkImportResult, W as ConceptSearchOptions, D as DetailLevel, a7 as EnrichedRelationship, z as EntityBrief, a8 as EntityMap, y as EntitySummary, s as EntityTypeDefinition, a9 as EntityTypeInput, N as ExploreOptions, a0 as ExportArchive, E as ExportChunk, aa as ExportManifest, a3 as ExportStreamItem, F as FindEntitiesQuery, ab as GetEntitiesOptions, ac as GetEntityOptions, G as GovernanceConfig, ad as GovernanceMode, L as GraphResult, I as ImportChunk, a1 as ImportOptions, a2 as ImportResult, a4 as ImportStreamHeader, ae as ImportWarning, M as MemoryVocabulary, O as Neighbourhood, af as NeighbourhoodCentre, ag as NeighbourhoodGroup, ah as NeighbourhoodLayer, P as PaginatedResult, e as PaginationOptions, ai as Path, Q as PathOptions, T as PathResult, J as PropertyFilter, aj as PropertySchema, ak as PropertyType, w as Provenance, al as ProvenanceFilter, A as ReembedResult, am as RelationshipDirection, j as RelationshipQueryOptions, K as RelationshipSummary, an as RelationshipTypeDefinition, ao as RelationshipTypeInput, _ as RepositoryConfig, R as RepositoryFilter, ap as RepositoryMetadata, d as RepositoryStats, $ as RepositorySummary, c as RepositoryUpdate, q as ResolvedVocabulary, X as ScoredEntity, a6 as SearchHit, a5 as SearchOptions, k as StorageExploreOptions, h as StorageFindQuery, l as StorageNeighbourhood, aq as StorageNeighbourhoodGroup, ar as StorageNeighbourhoodLayer, as as StoragePath, m as StoragePathOptions, n as StoragePathResult, S as StorageRepositoryConfig, at as StorageTimelineEvent, o as StorageTimelineOptions, p as StorageTimelineResult, f as StoredEntity, g as StoredEntityUpdate, i as StoredRelationship, a as StoredRepository, b as StoredRepositorySummary, au as TimelineEntityRef, av as TimelineEvent, Y as TimelineOptions, aw as TimelineRelationshipDetail, Z as TimelineResult, ax as VocabularyInput, t as VocabularyProposal, u as VocabularyProposalResult } from '../portability-DdlNYXGX.js';
1
+ import { H as ProvenanceContext, C as CreateEntityInput, E as Entity, U as UpdateEntityInput, y as CreateRelationshipInput, N as Relationship, V as VocabularyChangeRecord } from '../portability-1KBMVBGJ.js';
2
+ export { B as BulkImportOptions, w as BulkImportResult, Y as ConceptSearchOptions, h as DeleteProgressCallback, D as DetailLevel, aa as EnrichedRelationship, b as EntityBrief, ab as EntityMap, a as EntitySummary, z as EntityTypeDefinition, ac as EntityTypeInput, Q as ExploreOptions, a3 as ExportArchive, v as ExportChunk, ad as ExportLegalMetadata, ae as ExportManifest, a2 as ExportOptions, af as ExportPipelineMetadata, a6 as ExportStreamItem, K as FindEntitiesQuery, ag as GetEntitiesOptions, ah as GetEntityOptions, G as GovernanceConfig, ai as GovernanceMode, O as GraphResult, I as ImportChunk, a4 as ImportOptions, a5 as ImportResult, a7 as ImportStreamHeader, aj as ImportWarning, M as MemoryVocabulary, T as Neighbourhood, ak as NeighbourhoodCentre, al as NeighbourhoodGroup, am as NeighbourhoodLayer, e as PaginatedResult, j as PaginationOptions, an as Path, W as PathOptions, X as PathResult, P as PropertyFilter, ao as PropertySchema, ap as PropertyType, J as Provenance, aq as ProvenanceFilter, L as ReembedResult, ar as RelationshipDirection, o as RelationshipQueryOptions, R as RelationshipSummary, as as RelationshipTypeDefinition, at as RelationshipTypeInput, a0 as RepositoryConfig, d as RepositoryFilter, au as RepositoryMetadata, i as RepositoryStats, a1 as RepositorySummary, g as RepositoryUpdate, x as ResolvedVocabulary, Z as ScoredEntity, a9 as SearchHit, a8 as SearchOptions, p as StorageExploreOptions, m as StorageFindQuery, q as StorageNeighbourhood, av as StorageNeighbourhoodGroup, aw as StorageNeighbourhoodLayer, ax as StoragePath, r as StoragePathOptions, s as StoragePathResult, S as StorageRepositoryConfig, ay as StorageTimelineEvent, t as StorageTimelineOptions, u as StorageTimelineResult, k as StoredEntity, l as StoredEntityUpdate, n as StoredRelationship, c as StoredRepository, f as StoredRepositorySummary, az as TimelineEntityRef, aA as TimelineEvent, _ as TimelineOptions, aB as TimelineRelationshipDetail, $ as TimelineResult, aC as VocabularyInput, A as VocabularyProposal, F as VocabularyProposalResult } from '../portability-1KBMVBGJ.js';
3
+ export { Q as QueryMetadata, b as TraversalAggregation, c as TraversalPath, d as TraversalProjection, e as TraversalRelationship, a as TraversalResult, f as TraversalReturnMode, T as TraversalSpec, g as TraversalStart, h as TraversalStep } from '../traversal-B4SUysM-.js';
3
4
 
4
5
  /** All event types emitted by the Deep Memory engine */
5
- type DeepMemoryEventType = 'repository:created' | 'repository:opened' | 'repository:updated' | 'repository:deleted' | 'entity:creating' | 'entity:created' | 'entity:updating' | 'entity:updated' | 'entity:deleting' | 'entity:deleted' | 'relationship:creating' | 'relationship:created' | 'relationship:removing' | 'relationship:removed' | 'vocabulary:proposal' | 'vocabulary:approved' | 'vocabulary:rejected' | 'vocabulary:pending' | 'vocabulary:changed' | 'validation:failed' | 'search:executed' | 'reembed:started' | 'reembed:progress' | 'reembed:completed' | 'reembed:failed' | 'export:started' | 'export:progress' | 'export:completed' | 'import:started' | 'import:progress' | 'import:completed' | 'import:failed';
6
+ type DeepMemoryEventType = 'repository:created' | 'repository:opened' | 'repository:updated' | 'repository:deleted' | 'entity:creating' | 'entity:created' | 'entity:updating' | 'entity:updated' | 'entity:deleting' | 'entity:deleted' | 'relationship:creating' | 'relationship:created' | 'relationship:removing' | 'relationship:removed' | 'vocabulary:proposal' | 'vocabulary:approved' | 'vocabulary:rejected' | 'vocabulary:pending' | 'vocabulary:changed' | 'validation:failed' | 'search:executed' | 'reembed:started' | 'reembed:progress' | 'reembed:completed' | 'reembed:failed' | 'export:started' | 'export:progress' | 'export:completed' | 'import:started' | 'import:progress' | 'import:completed' | 'import:failed' | 'delete:started' | 'delete:progress' | 'delete:completed';
6
7
  /** Type-safe event payload mapping */
7
8
  type EventPayload<T extends DeepMemoryEventType> = T extends 'repository:created' ? {
8
9
  repositoryId: string;
@@ -75,10 +76,16 @@ type EventPayload<T extends DeepMemoryEventType> = T extends 'repository:created
75
76
  error: string;
76
77
  } : T extends 'export:started' ? {
77
78
  repositoryId: string;
79
+ totalEntities: number;
80
+ totalRelationships: number;
78
81
  } : T extends 'export:progress' ? {
79
82
  repositoryId: string;
80
83
  entitiesExported: number;
84
+ relationshipsExported: number;
81
85
  totalEntities: number;
86
+ totalRelationships: number;
87
+ chunksCompleted: number;
88
+ totalChunks: number;
82
89
  } : T extends 'export:completed' ? {
83
90
  repositoryId: string;
84
91
  entityCount: number;
@@ -88,7 +95,11 @@ type EventPayload<T extends DeepMemoryEventType> = T extends 'repository:created
88
95
  } : T extends 'import:progress' ? {
89
96
  repositoryId: string;
90
97
  entitiesImported: number;
98
+ relationshipsImported: number;
91
99
  totalEntities: number;
100
+ totalRelationships: number;
101
+ chunksCompleted: number;
102
+ totalChunks: number;
92
103
  } : T extends 'import:completed' ? {
93
104
  repositoryId: string;
94
105
  entitiesImported: number;
@@ -96,6 +107,20 @@ type EventPayload<T extends DeepMemoryEventType> = T extends 'repository:created
96
107
  } : T extends 'import:failed' ? {
97
108
  repositoryId: string;
98
109
  error: string;
110
+ } : T extends 'delete:started' ? {
111
+ repositoryId: string;
112
+ totalEntities: number;
113
+ totalRelationships: number;
114
+ } : T extends 'delete:progress' ? {
115
+ repositoryId: string;
116
+ entitiesDeleted: number;
117
+ relationshipsDeleted: number;
118
+ totalEntities: number;
119
+ totalRelationships: number;
120
+ } : T extends 'delete:completed' ? {
121
+ repositoryId: string;
122
+ entitiesDeleted: number;
123
+ relationshipsDeleted: number;
99
124
  } : Record<string, unknown>;
100
125
  /** A typed event emitted by the engine */
101
126
  interface DeepMemoryEvent<T extends DeepMemoryEventType> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utaba/deep-memory",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "description": "Vocabulary-driven graph memory for AI agents",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",