@utaba/deep-memory 0.14.0 → 0.16.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.
- package/dist/{StorageProvider-BfdyQgiI.d.cts → StorageProvider-BGtKZZt4.d.cts} +1 -1
- package/dist/{StorageProvider-jpzVIKXs.d.ts → StorageProvider-D_o2Hksf.d.ts} +1 -1
- package/dist/index.cjs +180 -70
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +67 -8
- package/dist/index.d.ts +67 -8
- package/dist/index.js +179 -70
- package/dist/index.js.map +1 -1
- package/dist/{portability-DWpZbxNn.d.cts → portability-P1hL-bOa.d.cts} +11 -0
- package/dist/{portability-DWpZbxNn.d.ts → portability-P1hL-bOa.d.ts} +11 -0
- package/dist/providers/index.d.cts +3 -3
- package/dist/providers/index.d.ts +3 -3
- package/dist/testing/conformance.d.cts +2 -2
- package/dist/testing/conformance.d.ts +2 -2
- package/dist/{traversal-COr0AJBc.d.ts → traversal-B_84kGaO.d.ts} +1 -1
- package/dist/{traversal-37JAiha-.d.cts → traversal-CBE5h5ob.d.cts} +1 -1
- package/dist/types/index.d.cts +13 -4
- package/dist/types/index.d.ts +13 -4
- package/package.json +1 -1
|
@@ -1027,6 +1027,17 @@ interface ImportOptions {
|
|
|
1027
1027
|
* cannot be overridden here.
|
|
1028
1028
|
*/
|
|
1029
1029
|
bulk?: Omit<BulkImportOptions, 'skipExistenceCheck'>;
|
|
1030
|
+
/**
|
|
1031
|
+
* Caller-supplied abort signal. Honoured at chunk boundaries — the chunk
|
|
1032
|
+
* currently in flight completes before the abort is observed, and any
|
|
1033
|
+
* entities/relationships already written are left in place. The repository
|
|
1034
|
+
* row and vocabulary (in `create` mode) are also left in place; the caller
|
|
1035
|
+
* is expected to delete the partial repository if it is no longer wanted.
|
|
1036
|
+
*
|
|
1037
|
+
* On abort, `import:failed` is emitted on the global event bus and
|
|
1038
|
+
* `OperationAbortedError` is thrown from the import call.
|
|
1039
|
+
*/
|
|
1040
|
+
signal?: AbortSignal;
|
|
1030
1041
|
}
|
|
1031
1042
|
/** A chunk of data for bulk import */
|
|
1032
1043
|
interface ImportChunk {
|
|
@@ -1027,6 +1027,17 @@ interface ImportOptions {
|
|
|
1027
1027
|
* cannot be overridden here.
|
|
1028
1028
|
*/
|
|
1029
1029
|
bulk?: Omit<BulkImportOptions, 'skipExistenceCheck'>;
|
|
1030
|
+
/**
|
|
1031
|
+
* Caller-supplied abort signal. Honoured at chunk boundaries — the chunk
|
|
1032
|
+
* currently in flight completes before the abort is observed, and any
|
|
1033
|
+
* entities/relationships already written are left in place. The repository
|
|
1034
|
+
* row and vocabulary (in `create` mode) are also left in place; the caller
|
|
1035
|
+
* is expected to delete the partial repository if it is no longer wanted.
|
|
1036
|
+
*
|
|
1037
|
+
* On abort, `import:failed` is emitted on the global event bus and
|
|
1038
|
+
* `OperationAbortedError` is thrown from the import call.
|
|
1039
|
+
*/
|
|
1040
|
+
signal?: AbortSignal;
|
|
1030
1041
|
}
|
|
1031
1042
|
/** A chunk of data for bulk import */
|
|
1032
1043
|
interface ImportChunk {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { E as EnsureSchemaResult, S as StorageProvider } from '../StorageProvider-
|
|
2
|
-
import { af as SearchOptions, e as PaginatedResult, ag as SearchHit } from '../portability-
|
|
3
|
-
import { T as TraversalSpec, a as TraversalResult } from '../traversal-
|
|
1
|
+
export { E as EnsureSchemaResult, S as StorageProvider } from '../StorageProvider-BGtKZZt4.cjs';
|
|
2
|
+
import { af as SearchOptions, e as PaginatedResult, ag as SearchHit } from '../portability-P1hL-bOa.cjs';
|
|
3
|
+
import { T as TraversalSpec, a as TraversalResult } from '../traversal-CBE5h5ob.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* EmbeddingProvider — enables semantic search and vocabulary deduplication.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { E as EnsureSchemaResult, S as StorageProvider } from '../StorageProvider-
|
|
2
|
-
import { af as SearchOptions, e as PaginatedResult, ag as SearchHit } from '../portability-
|
|
3
|
-
import { T as TraversalSpec, a as TraversalResult } from '../traversal-
|
|
1
|
+
export { E as EnsureSchemaResult, S as StorageProvider } from '../StorageProvider-D_o2Hksf.js';
|
|
2
|
+
import { af as SearchOptions, e as PaginatedResult, ag as SearchHit } from '../portability-P1hL-bOa.js';
|
|
3
|
+
import { T as TraversalSpec, a as TraversalResult } from '../traversal-B_84kGaO.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* EmbeddingProvider — enables semantic search and vocabulary deduplication.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as StorageProvider } from '../StorageProvider-
|
|
2
|
-
import '../portability-
|
|
1
|
+
import { S as StorageProvider } from '../StorageProvider-BGtKZZt4.cjs';
|
|
2
|
+
import '../portability-P1hL-bOa.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Run the full StorageProvider conformance test suite.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as StorageProvider } from '../StorageProvider-
|
|
2
|
-
import '../portability-
|
|
1
|
+
import { S as StorageProvider } from '../StorageProvider-D_o2Hksf.js';
|
|
2
|
+
import '../portability-P1hL-bOa.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Run the full StorageProvider conformance test suite.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PropertyFilter, D as DetailLevel, E as Entity, a as EntitySummary, b as EntityBrief, R as RelationshipSummary } from './portability-
|
|
1
|
+
import { P as PropertyFilter, D as DetailLevel, E as Entity, a as EntitySummary, b as EntityBrief, R as RelationshipSummary } from './portability-P1hL-bOa.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* An entity as returned inside a TraversalResult — the projected entity plus
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PropertyFilter, D as DetailLevel, E as Entity, a as EntitySummary, b as EntityBrief, R as RelationshipSummary } from './portability-
|
|
1
|
+
import { P as PropertyFilter, D as DetailLevel, E as Entity, a as EntitySummary, b as EntityBrief, R as RelationshipSummary } from './portability-P1hL-bOa.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* An entity as returned inside a TraversalResult — the projected entity plus
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { J as ProvenanceContext, C as CreateEntityInput, E as Entity, U as UpdateEntityInput, z as CreateRelationshipInput, Q as Relationship, V as VocabularyChangeRecord } from '../portability-
|
|
2
|
-
export { ah as AdaptiveConcurrencyAdjustEvent, ai as AdaptiveConcurrencyAdjustReason, aj as AdaptiveConcurrencyHandle, ak as AdaptiveConcurrencyOptions, B as BulkImportOptions, w as BulkImportResult, $ as ConceptSearchOptions, N as DeleteEntitiesResult, h as DeleteProgressCallback, D as DetailLevel, al as EnrichedRelationship, b as EntityBrief, am as EntityMap, a as EntitySummary, A as EntityTypeDefinition, an as EntityTypeInput, ao as EntityValidationIssue, a4 as EntityValidationPage, X as ExploreOptions, aa as ExportArchive, v as ExportChunk, ap as ExportLegalMetadata, aq as ExportManifest, a9 as ExportOptions, ar as ExportPipelineMetadata, ad as ExportStreamItem, L as FindEntitiesQuery, as as GetEntitiesOptions, at as GetEntityOptions, G as GovernanceConfig, au as GovernanceMode, W as GraphResult, I as ImportChunk, ab as ImportOptions, ac as ImportResult, ae as ImportStreamHeader, av as ImportWarning, M as MemoryVocabulary, Y as Neighborhood, aw as NeighborhoodCenter, ax as NeighborhoodGroup, ay as NeighborhoodLayer, e as PaginatedResult, j as PaginationOptions, az as Path, Z as PathOptions, _ as PathResult, P as PropertyFilter, aA as PropertySchema, aB as PropertyType, K as Provenance, aC as ProvenanceFilter, O as ReembedResult, aD as RelationshipDirection, o as RelationshipQueryOptions, R as RelationshipSummary, aE as RelationshipTypeDefinition, aF as RelationshipTypeInput, aG as RelationshipValidationIssue, a6 as RelationshipValidationPage, T as RemoveRelationshipsResult, a7 as RepositoryConfig, d as RepositoryFilter, aH as RepositoryMetadata, i as RepositoryStats, a8 as RepositorySummary, g as RepositoryUpdate, x as ResolvedVocabulary, a0 as ScoredEntity, ag as SearchHit, af as SearchOptions, p as StorageExploreOptions, m as StorageFindQuery, q as StorageNeighborhood, aI as StorageNeighborhoodGroup, aJ as StorageNeighborhoodLayer, aK as StoragePath, r as StoragePathOptions, s as StoragePathResult, S as StorageRepositoryConfig, aL as StorageTimelineEvent, t as StorageTimelineOptions, u as StorageTimelineResult, k as StoredEntity, l as StoredEntityUpdate, n as StoredRelationship, c as StoredRepository, f as StoredRepositorySummary, aM as TimelineEntityRef, aN as TimelineEvent, a1 as TimelineOptions, aO as TimelineRelationshipDetail, a2 as TimelineResult, a3 as ValidateEntitiesOptions, a5 as ValidateRelationshipsOptions, aP as VocabularyInput, F as VocabularyProposal, H as VocabularyProposalResult } from '../portability-
|
|
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-
|
|
1
|
+
import { J as ProvenanceContext, C as CreateEntityInput, E as Entity, U as UpdateEntityInput, z as CreateRelationshipInput, Q as Relationship, V as VocabularyChangeRecord } from '../portability-P1hL-bOa.cjs';
|
|
2
|
+
export { ah as AdaptiveConcurrencyAdjustEvent, ai as AdaptiveConcurrencyAdjustReason, aj as AdaptiveConcurrencyHandle, ak as AdaptiveConcurrencyOptions, B as BulkImportOptions, w as BulkImportResult, $ as ConceptSearchOptions, N as DeleteEntitiesResult, h as DeleteProgressCallback, D as DetailLevel, al as EnrichedRelationship, b as EntityBrief, am as EntityMap, a as EntitySummary, A as EntityTypeDefinition, an as EntityTypeInput, ao as EntityValidationIssue, a4 as EntityValidationPage, X as ExploreOptions, aa as ExportArchive, v as ExportChunk, ap as ExportLegalMetadata, aq as ExportManifest, a9 as ExportOptions, ar as ExportPipelineMetadata, ad as ExportStreamItem, L as FindEntitiesQuery, as as GetEntitiesOptions, at as GetEntityOptions, G as GovernanceConfig, au as GovernanceMode, W as GraphResult, I as ImportChunk, ab as ImportOptions, ac as ImportResult, ae as ImportStreamHeader, av as ImportWarning, M as MemoryVocabulary, Y as Neighborhood, aw as NeighborhoodCenter, ax as NeighborhoodGroup, ay as NeighborhoodLayer, e as PaginatedResult, j as PaginationOptions, az as Path, Z as PathOptions, _ as PathResult, P as PropertyFilter, aA as PropertySchema, aB as PropertyType, K as Provenance, aC as ProvenanceFilter, O as ReembedResult, aD as RelationshipDirection, o as RelationshipQueryOptions, R as RelationshipSummary, aE as RelationshipTypeDefinition, aF as RelationshipTypeInput, aG as RelationshipValidationIssue, a6 as RelationshipValidationPage, T as RemoveRelationshipsResult, a7 as RepositoryConfig, d as RepositoryFilter, aH as RepositoryMetadata, i as RepositoryStats, a8 as RepositorySummary, g as RepositoryUpdate, x as ResolvedVocabulary, a0 as ScoredEntity, ag as SearchHit, af as SearchOptions, p as StorageExploreOptions, m as StorageFindQuery, q as StorageNeighborhood, aI as StorageNeighborhoodGroup, aJ as StorageNeighborhoodLayer, aK as StoragePath, r as StoragePathOptions, s as StoragePathResult, S as StorageRepositoryConfig, aL as StorageTimelineEvent, t as StorageTimelineOptions, u as StorageTimelineResult, k as StoredEntity, l as StoredEntityUpdate, n as StoredRelationship, c as StoredRepository, f as StoredRepositorySummary, aM as TimelineEntityRef, aN as TimelineEvent, a1 as TimelineOptions, aO as TimelineRelationshipDetail, a2 as TimelineResult, a3 as ValidateEntitiesOptions, a5 as ValidateRelationshipsOptions, aP as VocabularyInput, F as VocabularyProposal, H as VocabularyProposalResult } from '../portability-P1hL-bOa.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-CBE5h5ob.cjs';
|
|
4
4
|
|
|
5
5
|
/** All event types emitted by the Deep Memory engine */
|
|
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
|
+
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:item-failed' | 'reembed:completed' | 'reembed:failed' | 'export:started' | 'export:progress' | 'export:completed' | 'import:started' | 'import:progress' | 'import:item-failed' | 'import:completed' | 'import:failed' | 'delete:started' | 'delete:progress' | 'delete:completed';
|
|
7
7
|
/** Type-safe event payload mapping */
|
|
8
8
|
type EventPayload<T extends DeepMemoryEventType> = T extends 'repository:created' ? {
|
|
9
9
|
repositoryId: string;
|
|
@@ -66,6 +66,10 @@ type EventPayload<T extends DeepMemoryEventType> = T extends 'repository:created
|
|
|
66
66
|
processed: number;
|
|
67
67
|
totalEntities: number;
|
|
68
68
|
failed: number;
|
|
69
|
+
} : T extends 'reembed:item-failed' ? {
|
|
70
|
+
repositoryId: string;
|
|
71
|
+
entityId: string;
|
|
72
|
+
error: string;
|
|
69
73
|
} : T extends 'reembed:completed' ? {
|
|
70
74
|
repositoryId: string;
|
|
71
75
|
processed: number;
|
|
@@ -100,6 +104,11 @@ type EventPayload<T extends DeepMemoryEventType> = T extends 'repository:created
|
|
|
100
104
|
totalRelationships: number;
|
|
101
105
|
chunksCompleted: number;
|
|
102
106
|
totalChunks: number;
|
|
107
|
+
} : T extends 'import:item-failed' ? {
|
|
108
|
+
repositoryId: string;
|
|
109
|
+
itemId: string;
|
|
110
|
+
itemType: 'entity' | 'relationship';
|
|
111
|
+
error: string;
|
|
103
112
|
} : T extends 'import:completed' ? {
|
|
104
113
|
repositoryId: string;
|
|
105
114
|
entitiesImported: number;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { J as ProvenanceContext, C as CreateEntityInput, E as Entity, U as UpdateEntityInput, z as CreateRelationshipInput, Q as Relationship, V as VocabularyChangeRecord } from '../portability-
|
|
2
|
-
export { ah as AdaptiveConcurrencyAdjustEvent, ai as AdaptiveConcurrencyAdjustReason, aj as AdaptiveConcurrencyHandle, ak as AdaptiveConcurrencyOptions, B as BulkImportOptions, w as BulkImportResult, $ as ConceptSearchOptions, N as DeleteEntitiesResult, h as DeleteProgressCallback, D as DetailLevel, al as EnrichedRelationship, b as EntityBrief, am as EntityMap, a as EntitySummary, A as EntityTypeDefinition, an as EntityTypeInput, ao as EntityValidationIssue, a4 as EntityValidationPage, X as ExploreOptions, aa as ExportArchive, v as ExportChunk, ap as ExportLegalMetadata, aq as ExportManifest, a9 as ExportOptions, ar as ExportPipelineMetadata, ad as ExportStreamItem, L as FindEntitiesQuery, as as GetEntitiesOptions, at as GetEntityOptions, G as GovernanceConfig, au as GovernanceMode, W as GraphResult, I as ImportChunk, ab as ImportOptions, ac as ImportResult, ae as ImportStreamHeader, av as ImportWarning, M as MemoryVocabulary, Y as Neighborhood, aw as NeighborhoodCenter, ax as NeighborhoodGroup, ay as NeighborhoodLayer, e as PaginatedResult, j as PaginationOptions, az as Path, Z as PathOptions, _ as PathResult, P as PropertyFilter, aA as PropertySchema, aB as PropertyType, K as Provenance, aC as ProvenanceFilter, O as ReembedResult, aD as RelationshipDirection, o as RelationshipQueryOptions, R as RelationshipSummary, aE as RelationshipTypeDefinition, aF as RelationshipTypeInput, aG as RelationshipValidationIssue, a6 as RelationshipValidationPage, T as RemoveRelationshipsResult, a7 as RepositoryConfig, d as RepositoryFilter, aH as RepositoryMetadata, i as RepositoryStats, a8 as RepositorySummary, g as RepositoryUpdate, x as ResolvedVocabulary, a0 as ScoredEntity, ag as SearchHit, af as SearchOptions, p as StorageExploreOptions, m as StorageFindQuery, q as StorageNeighborhood, aI as StorageNeighborhoodGroup, aJ as StorageNeighborhoodLayer, aK as StoragePath, r as StoragePathOptions, s as StoragePathResult, S as StorageRepositoryConfig, aL as StorageTimelineEvent, t as StorageTimelineOptions, u as StorageTimelineResult, k as StoredEntity, l as StoredEntityUpdate, n as StoredRelationship, c as StoredRepository, f as StoredRepositorySummary, aM as TimelineEntityRef, aN as TimelineEvent, a1 as TimelineOptions, aO as TimelineRelationshipDetail, a2 as TimelineResult, a3 as ValidateEntitiesOptions, a5 as ValidateRelationshipsOptions, aP as VocabularyInput, F as VocabularyProposal, H as VocabularyProposalResult } from '../portability-
|
|
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-
|
|
1
|
+
import { J as ProvenanceContext, C as CreateEntityInput, E as Entity, U as UpdateEntityInput, z as CreateRelationshipInput, Q as Relationship, V as VocabularyChangeRecord } from '../portability-P1hL-bOa.js';
|
|
2
|
+
export { ah as AdaptiveConcurrencyAdjustEvent, ai as AdaptiveConcurrencyAdjustReason, aj as AdaptiveConcurrencyHandle, ak as AdaptiveConcurrencyOptions, B as BulkImportOptions, w as BulkImportResult, $ as ConceptSearchOptions, N as DeleteEntitiesResult, h as DeleteProgressCallback, D as DetailLevel, al as EnrichedRelationship, b as EntityBrief, am as EntityMap, a as EntitySummary, A as EntityTypeDefinition, an as EntityTypeInput, ao as EntityValidationIssue, a4 as EntityValidationPage, X as ExploreOptions, aa as ExportArchive, v as ExportChunk, ap as ExportLegalMetadata, aq as ExportManifest, a9 as ExportOptions, ar as ExportPipelineMetadata, ad as ExportStreamItem, L as FindEntitiesQuery, as as GetEntitiesOptions, at as GetEntityOptions, G as GovernanceConfig, au as GovernanceMode, W as GraphResult, I as ImportChunk, ab as ImportOptions, ac as ImportResult, ae as ImportStreamHeader, av as ImportWarning, M as MemoryVocabulary, Y as Neighborhood, aw as NeighborhoodCenter, ax as NeighborhoodGroup, ay as NeighborhoodLayer, e as PaginatedResult, j as PaginationOptions, az as Path, Z as PathOptions, _ as PathResult, P as PropertyFilter, aA as PropertySchema, aB as PropertyType, K as Provenance, aC as ProvenanceFilter, O as ReembedResult, aD as RelationshipDirection, o as RelationshipQueryOptions, R as RelationshipSummary, aE as RelationshipTypeDefinition, aF as RelationshipTypeInput, aG as RelationshipValidationIssue, a6 as RelationshipValidationPage, T as RemoveRelationshipsResult, a7 as RepositoryConfig, d as RepositoryFilter, aH as RepositoryMetadata, i as RepositoryStats, a8 as RepositorySummary, g as RepositoryUpdate, x as ResolvedVocabulary, a0 as ScoredEntity, ag as SearchHit, af as SearchOptions, p as StorageExploreOptions, m as StorageFindQuery, q as StorageNeighborhood, aI as StorageNeighborhoodGroup, aJ as StorageNeighborhoodLayer, aK as StoragePath, r as StoragePathOptions, s as StoragePathResult, S as StorageRepositoryConfig, aL as StorageTimelineEvent, t as StorageTimelineOptions, u as StorageTimelineResult, k as StoredEntity, l as StoredEntityUpdate, n as StoredRelationship, c as StoredRepository, f as StoredRepositorySummary, aM as TimelineEntityRef, aN as TimelineEvent, a1 as TimelineOptions, aO as TimelineRelationshipDetail, a2 as TimelineResult, a3 as ValidateEntitiesOptions, a5 as ValidateRelationshipsOptions, aP as VocabularyInput, F as VocabularyProposal, H as VocabularyProposalResult } from '../portability-P1hL-bOa.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-B_84kGaO.js';
|
|
4
4
|
|
|
5
5
|
/** All event types emitted by the Deep Memory engine */
|
|
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
|
+
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:item-failed' | 'reembed:completed' | 'reembed:failed' | 'export:started' | 'export:progress' | 'export:completed' | 'import:started' | 'import:progress' | 'import:item-failed' | 'import:completed' | 'import:failed' | 'delete:started' | 'delete:progress' | 'delete:completed';
|
|
7
7
|
/** Type-safe event payload mapping */
|
|
8
8
|
type EventPayload<T extends DeepMemoryEventType> = T extends 'repository:created' ? {
|
|
9
9
|
repositoryId: string;
|
|
@@ -66,6 +66,10 @@ type EventPayload<T extends DeepMemoryEventType> = T extends 'repository:created
|
|
|
66
66
|
processed: number;
|
|
67
67
|
totalEntities: number;
|
|
68
68
|
failed: number;
|
|
69
|
+
} : T extends 'reembed:item-failed' ? {
|
|
70
|
+
repositoryId: string;
|
|
71
|
+
entityId: string;
|
|
72
|
+
error: string;
|
|
69
73
|
} : T extends 'reembed:completed' ? {
|
|
70
74
|
repositoryId: string;
|
|
71
75
|
processed: number;
|
|
@@ -100,6 +104,11 @@ type EventPayload<T extends DeepMemoryEventType> = T extends 'repository:created
|
|
|
100
104
|
totalRelationships: number;
|
|
101
105
|
chunksCompleted: number;
|
|
102
106
|
totalChunks: number;
|
|
107
|
+
} : T extends 'import:item-failed' ? {
|
|
108
|
+
repositoryId: string;
|
|
109
|
+
itemId: string;
|
|
110
|
+
itemType: 'entity' | 'relationship';
|
|
111
|
+
error: string;
|
|
103
112
|
} : T extends 'import:completed' ? {
|
|
104
113
|
repositoryId: string;
|
|
105
114
|
entitiesImported: number;
|