@utaba/deep-memory 0.17.0 → 0.19.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,4 +1,4 @@
1
- import { Y as PropertyFilter, h as DetailLevel, i as Entity, l as EntitySummary, j as EntityBrief, a6 as RelationshipSummary } from './portability-Dbm6vCdD.js';
1
+ import { Y as PropertyFilter, h as DetailLevel, i as Entity, l as EntitySummary, j as EntityBrief, a6 as RelationshipSummary } from './portability-BHyXmv5-.cjs';
2
2
 
3
3
  /**
4
4
  * An entity as returned inside a TraversalResult — the projected entity plus
@@ -57,7 +57,7 @@ interface TraversalSpec {
57
57
  /** Whether to deduplicate entities in the result set. Default: true. */
58
58
  dedup?: boolean;
59
59
  /**
60
- * Whether to include a relationship summary (outbound/inbound counts by type)
60
+ * Whether to include a relationship summary (out/in counts by type)
61
61
  * on each entity in the result. Default: false.
62
62
  *
63
63
  * Native GraphTraversalProviders (Gremlin, Cypher) can return this in a single
@@ -118,7 +118,12 @@ interface TraversalStart {
118
118
  * A single step in the traversal — one hop along a relationship edge.
119
119
  */
120
120
  interface TraversalStep {
121
- /** Direction to traverse. */
121
+ /**
122
+ * Direction to traverse, relative to the entity at the start of the hop:
123
+ * - `'out'` — follow edges where the current entity is the source
124
+ * - `'in'` — follow edges where the current entity is the target
125
+ * - `'both'` — follow edges in either direction
126
+ */
122
127
  direction: 'out' | 'in' | 'both';
123
128
  /**
124
129
  * Relationship types to follow in this step.
@@ -221,18 +226,18 @@ interface TraversalRelationship {
221
226
  /**
222
227
  * Walk direction at the last hop, with mode-specific semantics:
223
228
  *
224
- * - **`'path'` mode** — `'outbound'` when the walk crossed the edge from
225
- * `sourceEntityId` to `targetEntityId`, `'inbound'` when it crossed in
229
+ * - **`'path'` mode** — `'out'` when the walk crossed the edge from
230
+ * `sourceEntityId` to `targetEntityId`, `'in'` when it crossed in
226
231
  * the opposite direction. Computed relative to the entity at the
227
232
  * start of the hop within each `TraversalPath`.
228
- * - **`'all'` mode** — always `'outbound'`. Reflects the stored edge
233
+ * - **`'all'` mode** — always `'out'`. Reflects the stored edge
229
234
  * topology (`sourceEntityId` → `targetEntityId`), not any particular
230
235
  * walk; the deduped union has no walk context. Callers can derive
231
236
  * walk-direction relative to any anchor using `sourceEntityId` /
232
237
  * `targetEntityId`.
233
238
  * - **`'terminal'` mode** — relationships are not returned.
234
239
  */
235
- direction: 'outbound' | 'inbound';
240
+ direction: 'out' | 'in';
236
241
  properties: Record<string, unknown>;
237
242
  }
238
243
  interface TraversalPath {
@@ -1,4 +1,4 @@
1
- import { Y as PropertyFilter, h as DetailLevel, i as Entity, l as EntitySummary, j as EntityBrief, a6 as RelationshipSummary } from './portability-Dbm6vCdD.cjs';
1
+ import { Y as PropertyFilter, h as DetailLevel, i as Entity, l as EntitySummary, j as EntityBrief, a6 as RelationshipSummary } from './portability-BHyXmv5-.js';
2
2
 
3
3
  /**
4
4
  * An entity as returned inside a TraversalResult — the projected entity plus
@@ -57,7 +57,7 @@ interface TraversalSpec {
57
57
  /** Whether to deduplicate entities in the result set. Default: true. */
58
58
  dedup?: boolean;
59
59
  /**
60
- * Whether to include a relationship summary (outbound/inbound counts by type)
60
+ * Whether to include a relationship summary (out/in counts by type)
61
61
  * on each entity in the result. Default: false.
62
62
  *
63
63
  * Native GraphTraversalProviders (Gremlin, Cypher) can return this in a single
@@ -118,7 +118,12 @@ interface TraversalStart {
118
118
  * A single step in the traversal — one hop along a relationship edge.
119
119
  */
120
120
  interface TraversalStep {
121
- /** Direction to traverse. */
121
+ /**
122
+ * Direction to traverse, relative to the entity at the start of the hop:
123
+ * - `'out'` — follow edges where the current entity is the source
124
+ * - `'in'` — follow edges where the current entity is the target
125
+ * - `'both'` — follow edges in either direction
126
+ */
122
127
  direction: 'out' | 'in' | 'both';
123
128
  /**
124
129
  * Relationship types to follow in this step.
@@ -221,18 +226,18 @@ interface TraversalRelationship {
221
226
  /**
222
227
  * Walk direction at the last hop, with mode-specific semantics:
223
228
  *
224
- * - **`'path'` mode** — `'outbound'` when the walk crossed the edge from
225
- * `sourceEntityId` to `targetEntityId`, `'inbound'` when it crossed in
229
+ * - **`'path'` mode** — `'out'` when the walk crossed the edge from
230
+ * `sourceEntityId` to `targetEntityId`, `'in'` when it crossed in
226
231
  * the opposite direction. Computed relative to the entity at the
227
232
  * start of the hop within each `TraversalPath`.
228
- * - **`'all'` mode** — always `'outbound'`. Reflects the stored edge
233
+ * - **`'all'` mode** — always `'out'`. Reflects the stored edge
229
234
  * topology (`sourceEntityId` → `targetEntityId`), not any particular
230
235
  * walk; the deduped union has no walk context. Callers can derive
231
236
  * walk-direction relative to any anchor using `sourceEntityId` /
232
237
  * `targetEntityId`.
233
238
  * - **`'terminal'` mode** — relationships are not returned.
234
239
  */
235
- direction: 'outbound' | 'inbound';
240
+ direction: 'out' | 'in';
236
241
  properties: Record<string, unknown>;
237
242
  }
238
243
  interface TraversalPath {
@@ -1,6 +1,6 @@
1
- import { a0 as ProvenanceContext, e as CreateEntityInput, i as Entity, aI as UpdateEntityInput, f as CreateRelationshipInput, a3 as Relationship, aM as VocabularyChangeRecord } from '../portability-Dbm6vCdD.cjs';
2
- export { A as AdaptiveConcurrencyAdjustEvent, a as AdaptiveConcurrencyAdjustReason, b as AdaptiveConcurrencyHandle, c as AdaptiveConcurrencyOptions, B as BulkImportOptions, d as BulkImportResult, C as ConceptSearchOptions, D as DeleteEntitiesResult, g as DeleteProgressCallback, h as DetailLevel, E as EnrichedRelationship, j as EntityBrief, k as EntityMap, l as EntitySummary, m as EntityTypeDefinition, n as EntityTypeInput, o as EntityValidationIssue, p as EntityValidationPage, q as ExploreOptions, r as ExportArchive, s as ExportChunk, t as ExportLegalMetadata, u as ExportManifest, v as ExportOptions, w as ExportPipelineMetadata, x as ExportStreamItem, F as FindEntitiesQuery, G as GetEntitiesOptions, y as GetEntityOptions, z as GovernanceConfig, H as GovernanceMode, I as GraphResult, J as ImportChunk, K as ImportOptions, L as ImportResult, M as ImportStreamHeader, N as ImportWarning, O as MemoryVocabulary, P as Neighborhood, Q as NeighborhoodCenter, R as NeighborhoodGroup, S as NeighborhoodLayer, T as PaginatedResult, U as PaginationOptions, V as Path, W as PathOptions, X as PathResult, Y as PropertyFilter, Z as PropertySchema, _ as PropertyType, $ as Provenance, a1 as ProvenanceFilter, a2 as ReembedResult, a4 as RelationshipDirection, a5 as RelationshipQueryOptions, a6 as RelationshipSummary, a7 as RelationshipTypeDefinition, a8 as RelationshipTypeInput, a9 as RelationshipValidationIssue, aa as RelationshipValidationPage, ab as RemoveRelationshipsResult, ac as RepositoryConfig, ad as RepositoryFilter, ae as RepositoryMetadata, af as RepositoryStats, ag as RepositorySummary, ah as RepositoryUpdate, ai as ResolvedVocabulary, aj as ScoredEntity, ak as SearchHit, al as SearchOptions, am as StorageExploreOptions, an as StorageFindQuery, ao as StorageNeighborhood, ap as StorageNeighborhoodGroup, aq as StorageNeighborhoodLayer, ar as StoragePath, as as StoragePathOptions, at as StoragePathResult, au as StorageRepositoryConfig, av as StorageTimelineEvent, aw as StorageTimelineOptions, ax as StorageTimelineResult, ay as StoredEntity, az as StoredEntityUpdate, aA as StoredRelationship, aB as StoredRepository, aC as StoredRepositorySummary, aD as TimelineEntityRef, aE as TimelineEvent, aF as TimelineOptions, aG as TimelineRelationshipDetail, aH as TimelineResult, aJ as ValidateEntitiesOptions, aK as ValidateRelationshipsOptions, aN as VocabularyInput, aO as VocabularyProposal, aP as VocabularyProposalResult } from '../portability-Dbm6vCdD.cjs';
3
- export { Q as QueryMetadata, T as TraversalAggregation, a as TraversalPath, b as TraversalProjection, c as TraversalRelationship, d as TraversalResult, e as TraversalReturnMode, f as TraversalSpec, g as TraversalStart, h as TraversalStep } from '../traversal-1f35drOx.cjs';
1
+ import { a0 as ProvenanceContext, e as CreateEntityInput, i as Entity, aI as UpdateEntityInput, f as CreateRelationshipInput, a3 as Relationship, aM as VocabularyChangeRecord } from '../portability-BHyXmv5-.cjs';
2
+ export { A as AdaptiveConcurrencyAdjustEvent, a as AdaptiveConcurrencyAdjustReason, b as AdaptiveConcurrencyHandle, c as AdaptiveConcurrencyOptions, B as BulkImportOptions, d as BulkImportResult, C as ConceptSearchOptions, D as DeleteEntitiesResult, g as DeleteProgressCallback, h as DetailLevel, E as EnrichedRelationship, j as EntityBrief, k as EntityMap, l as EntitySummary, m as EntityTypeDefinition, n as EntityTypeInput, o as EntityValidationIssue, p as EntityValidationPage, q as ExploreOptions, r as ExportArchive, s as ExportChunk, t as ExportLegalMetadata, u as ExportManifest, v as ExportOptions, w as ExportPipelineMetadata, x as ExportStreamItem, F as FindEntitiesQuery, G as GetEntitiesOptions, y as GetEntityOptions, z as GovernanceConfig, H as GovernanceMode, I as GraphResult, J as ImportChunk, K as ImportOptions, L as ImportResult, M as ImportStreamHeader, N as ImportWarning, O as MemoryVocabulary, P as Neighborhood, Q as NeighborhoodCenter, R as NeighborhoodGroup, S as NeighborhoodLayer, T as PaginatedResult, U as PaginationOptions, V as Path, W as PathOptions, X as PathResult, Y as PropertyFilter, Z as PropertySchema, _ as PropertyType, $ as Provenance, a1 as ProvenanceFilter, a2 as ReembedResult, a4 as RelationshipDirection, a5 as RelationshipQueryOptions, a6 as RelationshipSummary, a7 as RelationshipTypeDefinition, a8 as RelationshipTypeInput, a9 as RelationshipValidationIssue, aa as RelationshipValidationPage, ab as RemoveRelationshipsResult, ac as RepositoryConfig, ad as RepositoryFilter, ae as RepositoryMetadata, af as RepositoryStats, ag as RepositorySummary, ah as RepositoryUpdate, ai as ResolvedVocabulary, aj as ScoredEntity, ak as SearchHit, al as SearchOptions, am as StorageExploreOptions, an as StorageFindQuery, ao as StorageNeighborhood, ap as StorageNeighborhoodGroup, aq as StorageNeighborhoodLayer, ar as StoragePath, as as StoragePathOptions, at as StoragePathResult, au as StorageRepositoryConfig, av as StorageTimelineEvent, aw as StorageTimelineOptions, ax as StorageTimelineResult, ay as StoredEntity, az as StoredEntityUpdate, aA as StoredRelationship, aB as StoredRepository, aC as StoredRepositorySummary, aD as TimelineEntityRef, aE as TimelineEvent, aF as TimelineOptions, aG as TimelineRelationshipDetail, aH as TimelineResult, aJ as ValidateEntitiesOptions, aK as ValidateRelationshipsOptions, aN as VocabularyInput, aO as VocabularyProposal, aP as VocabularyProposalResult } from '../portability-BHyXmv5-.cjs';
3
+ export { Q as QueryMetadata, T as TraversalAggregation, a as TraversalPath, b as TraversalProjection, c as TraversalRelationship, d as TraversalResult, e as TraversalReturnMode, f as TraversalSpec, g as TraversalStart, h as TraversalStep } from '../traversal-BK_3Cqj3.cjs';
4
4
 
5
5
  /** All event types emitted by the Deep Memory engine */
6
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';
@@ -1,6 +1,6 @@
1
- import { a0 as ProvenanceContext, e as CreateEntityInput, i as Entity, aI as UpdateEntityInput, f as CreateRelationshipInput, a3 as Relationship, aM as VocabularyChangeRecord } from '../portability-Dbm6vCdD.js';
2
- export { A as AdaptiveConcurrencyAdjustEvent, a as AdaptiveConcurrencyAdjustReason, b as AdaptiveConcurrencyHandle, c as AdaptiveConcurrencyOptions, B as BulkImportOptions, d as BulkImportResult, C as ConceptSearchOptions, D as DeleteEntitiesResult, g as DeleteProgressCallback, h as DetailLevel, E as EnrichedRelationship, j as EntityBrief, k as EntityMap, l as EntitySummary, m as EntityTypeDefinition, n as EntityTypeInput, o as EntityValidationIssue, p as EntityValidationPage, q as ExploreOptions, r as ExportArchive, s as ExportChunk, t as ExportLegalMetadata, u as ExportManifest, v as ExportOptions, w as ExportPipelineMetadata, x as ExportStreamItem, F as FindEntitiesQuery, G as GetEntitiesOptions, y as GetEntityOptions, z as GovernanceConfig, H as GovernanceMode, I as GraphResult, J as ImportChunk, K as ImportOptions, L as ImportResult, M as ImportStreamHeader, N as ImportWarning, O as MemoryVocabulary, P as Neighborhood, Q as NeighborhoodCenter, R as NeighborhoodGroup, S as NeighborhoodLayer, T as PaginatedResult, U as PaginationOptions, V as Path, W as PathOptions, X as PathResult, Y as PropertyFilter, Z as PropertySchema, _ as PropertyType, $ as Provenance, a1 as ProvenanceFilter, a2 as ReembedResult, a4 as RelationshipDirection, a5 as RelationshipQueryOptions, a6 as RelationshipSummary, a7 as RelationshipTypeDefinition, a8 as RelationshipTypeInput, a9 as RelationshipValidationIssue, aa as RelationshipValidationPage, ab as RemoveRelationshipsResult, ac as RepositoryConfig, ad as RepositoryFilter, ae as RepositoryMetadata, af as RepositoryStats, ag as RepositorySummary, ah as RepositoryUpdate, ai as ResolvedVocabulary, aj as ScoredEntity, ak as SearchHit, al as SearchOptions, am as StorageExploreOptions, an as StorageFindQuery, ao as StorageNeighborhood, ap as StorageNeighborhoodGroup, aq as StorageNeighborhoodLayer, ar as StoragePath, as as StoragePathOptions, at as StoragePathResult, au as StorageRepositoryConfig, av as StorageTimelineEvent, aw as StorageTimelineOptions, ax as StorageTimelineResult, ay as StoredEntity, az as StoredEntityUpdate, aA as StoredRelationship, aB as StoredRepository, aC as StoredRepositorySummary, aD as TimelineEntityRef, aE as TimelineEvent, aF as TimelineOptions, aG as TimelineRelationshipDetail, aH as TimelineResult, aJ as ValidateEntitiesOptions, aK as ValidateRelationshipsOptions, aN as VocabularyInput, aO as VocabularyProposal, aP as VocabularyProposalResult } from '../portability-Dbm6vCdD.js';
3
- export { Q as QueryMetadata, T as TraversalAggregation, a as TraversalPath, b as TraversalProjection, c as TraversalRelationship, d as TraversalResult, e as TraversalReturnMode, f as TraversalSpec, g as TraversalStart, h as TraversalStep } from '../traversal-OkXViSTI.js';
1
+ import { a0 as ProvenanceContext, e as CreateEntityInput, i as Entity, aI as UpdateEntityInput, f as CreateRelationshipInput, a3 as Relationship, aM as VocabularyChangeRecord } from '../portability-BHyXmv5-.js';
2
+ export { A as AdaptiveConcurrencyAdjustEvent, a as AdaptiveConcurrencyAdjustReason, b as AdaptiveConcurrencyHandle, c as AdaptiveConcurrencyOptions, B as BulkImportOptions, d as BulkImportResult, C as ConceptSearchOptions, D as DeleteEntitiesResult, g as DeleteProgressCallback, h as DetailLevel, E as EnrichedRelationship, j as EntityBrief, k as EntityMap, l as EntitySummary, m as EntityTypeDefinition, n as EntityTypeInput, o as EntityValidationIssue, p as EntityValidationPage, q as ExploreOptions, r as ExportArchive, s as ExportChunk, t as ExportLegalMetadata, u as ExportManifest, v as ExportOptions, w as ExportPipelineMetadata, x as ExportStreamItem, F as FindEntitiesQuery, G as GetEntitiesOptions, y as GetEntityOptions, z as GovernanceConfig, H as GovernanceMode, I as GraphResult, J as ImportChunk, K as ImportOptions, L as ImportResult, M as ImportStreamHeader, N as ImportWarning, O as MemoryVocabulary, P as Neighborhood, Q as NeighborhoodCenter, R as NeighborhoodGroup, S as NeighborhoodLayer, T as PaginatedResult, U as PaginationOptions, V as Path, W as PathOptions, X as PathResult, Y as PropertyFilter, Z as PropertySchema, _ as PropertyType, $ as Provenance, a1 as ProvenanceFilter, a2 as ReembedResult, a4 as RelationshipDirection, a5 as RelationshipQueryOptions, a6 as RelationshipSummary, a7 as RelationshipTypeDefinition, a8 as RelationshipTypeInput, a9 as RelationshipValidationIssue, aa as RelationshipValidationPage, ab as RemoveRelationshipsResult, ac as RepositoryConfig, ad as RepositoryFilter, ae as RepositoryMetadata, af as RepositoryStats, ag as RepositorySummary, ah as RepositoryUpdate, ai as ResolvedVocabulary, aj as ScoredEntity, ak as SearchHit, al as SearchOptions, am as StorageExploreOptions, an as StorageFindQuery, ao as StorageNeighborhood, ap as StorageNeighborhoodGroup, aq as StorageNeighborhoodLayer, ar as StoragePath, as as StoragePathOptions, at as StoragePathResult, au as StorageRepositoryConfig, av as StorageTimelineEvent, aw as StorageTimelineOptions, ax as StorageTimelineResult, ay as StoredEntity, az as StoredEntityUpdate, aA as StoredRelationship, aB as StoredRepository, aC as StoredRepositorySummary, aD as TimelineEntityRef, aE as TimelineEvent, aF as TimelineOptions, aG as TimelineRelationshipDetail, aH as TimelineResult, aJ as ValidateEntitiesOptions, aK as ValidateRelationshipsOptions, aN as VocabularyInput, aO as VocabularyProposal, aP as VocabularyProposalResult } from '../portability-BHyXmv5-.js';
3
+ export { Q as QueryMetadata, T as TraversalAggregation, a as TraversalPath, b as TraversalProjection, c as TraversalRelationship, d as TraversalResult, e as TraversalReturnMode, f as TraversalSpec, g as TraversalStart, h as TraversalStep } from '../traversal-CIGJcdCb.js';
4
4
 
5
5
  /** All event types emitted by the Deep Memory engine */
6
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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utaba/deep-memory",
3
- "version": "0.17.0",
3
+ "version": "0.19.0",
4
4
  "description": "Vocabulary-driven graph memory for AI agents",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -79,7 +79,7 @@
79
79
  "vocabulary"
80
80
  ],
81
81
  "devDependencies": {
82
- "@types/node": "^25.5.0",
82
+ "@types/node": "^22.0.0",
83
83
  "tsup": "^8.5.1",
84
84
  "typescript": "^6.0.2",
85
85
  "vitest": "^4.1.2"