@utaba/deep-memory 0.10.0 → 0.11.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-CRenWERy.d.ts → StorageProvider-BuhXaqFP.d.ts} +1 -1
- package/dist/{StorageProvider-DmKddrEg.d.cts → StorageProvider-Cn2YxHc3.d.cts} +1 -1
- package/dist/index.cjs +24 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -6
- package/dist/index.d.ts +19 -6
- package/dist/index.js +23 -2
- package/dist/index.js.map +1 -1
- package/dist/{portability-dhIuWJbJ.d.cts → portability-Ceb9P_VW.d.cts} +71 -1
- package/dist/{portability-dhIuWJbJ.d.ts → portability-Ceb9P_VW.d.ts} +71 -1
- 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-Bmv4we_g.d.cts → traversal-DAccezmK.d.cts} +1 -1
- package/dist/{traversal-D8SGKq0z.d.ts → traversal-lpUylwSS.d.ts} +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.cts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1018,6 +1018,15 @@ interface ImportOptions {
|
|
|
1018
1018
|
entityConflict?: 'skip' | 'overwrite' | 'rename';
|
|
1019
1019
|
/** Whether to re-generate embeddings using the current EmbeddingProvider */
|
|
1020
1020
|
reEmbed?: boolean;
|
|
1021
|
+
/**
|
|
1022
|
+
* Storage-provider bulk options forwarded to `StorageProvider.importBulk()`
|
|
1023
|
+
* for every chunk. Use this to tune adaptive concurrency or wire an
|
|
1024
|
+
* `onAdjust` callback for operator-visible logging.
|
|
1025
|
+
*
|
|
1026
|
+
* Note: `skipExistenceCheck` is set automatically based on import mode and
|
|
1027
|
+
* cannot be overridden here.
|
|
1028
|
+
*/
|
|
1029
|
+
bulk?: Omit<BulkImportOptions, 'skipExistenceCheck'>;
|
|
1021
1030
|
}
|
|
1022
1031
|
/** A chunk of data for bulk import */
|
|
1023
1032
|
interface ImportChunk {
|
|
@@ -1034,6 +1043,67 @@ interface BulkImportOptions {
|
|
|
1034
1043
|
* Default: false (upsert behavior — check existence, then create or update).
|
|
1035
1044
|
*/
|
|
1036
1045
|
skipExistenceCheck?: boolean;
|
|
1046
|
+
/**
|
|
1047
|
+
* Adaptive concurrency configuration for providers that throttle under load
|
|
1048
|
+
* (e.g. CosmosDB on autoscale tiers). Providers that do not throttle may
|
|
1049
|
+
* ignore this. The runner starts at `start` parallel writes, halves on any
|
|
1050
|
+
* observed throttle, and ramps back up after `increaseAfter` consecutive
|
|
1051
|
+
* throttle-free completions. All fields are optional with provider-specific
|
|
1052
|
+
* defaults.
|
|
1053
|
+
*/
|
|
1054
|
+
adaptiveConcurrency?: AdaptiveConcurrencyOptions;
|
|
1055
|
+
}
|
|
1056
|
+
/** Reason the adaptive runner adjusted its concurrency level. */
|
|
1057
|
+
type AdaptiveConcurrencyAdjustReason = 'start' | 'throttle' | 'ramp-up';
|
|
1058
|
+
/** Configuration for the adaptive concurrency runner used by bulk imports. */
|
|
1059
|
+
interface AdaptiveConcurrencyOptions {
|
|
1060
|
+
/** Floor concurrency. Default: 2. */
|
|
1061
|
+
min?: number;
|
|
1062
|
+
/** Initial concurrency at the start of the import. Default: 5. */
|
|
1063
|
+
start?: number;
|
|
1064
|
+
/** Ceiling concurrency. Default: 32. */
|
|
1065
|
+
max?: number;
|
|
1066
|
+
/**
|
|
1067
|
+
* Number of consecutive throttle-free task completions required before
|
|
1068
|
+
* concurrency is incremented by 1. Default: 50.
|
|
1069
|
+
*/
|
|
1070
|
+
increaseAfter?: number;
|
|
1071
|
+
/**
|
|
1072
|
+
* Cooldown delay (ms) before any further task is dispatched after a throttle
|
|
1073
|
+
* is observed. Default: 1000.
|
|
1074
|
+
*/
|
|
1075
|
+
cooldownMs?: number;
|
|
1076
|
+
/**
|
|
1077
|
+
* Circuit breaker — abort the import after this many consecutive throttled
|
|
1078
|
+
* tasks while the controller is already at `min` concurrency. The streak is
|
|
1079
|
+
* reset by any throttle-free task completion. Set to a very large number to
|
|
1080
|
+
* disable. Default: 10.
|
|
1081
|
+
*
|
|
1082
|
+
* Rationale: at min concurrency the runner has already done everything it
|
|
1083
|
+
* can to relieve pressure. If the cluster is still throttling every task at
|
|
1084
|
+
* that level, more attempts will not help and the operator should be told
|
|
1085
|
+
* loudly rather than letting the import grind on for hours.
|
|
1086
|
+
*/
|
|
1087
|
+
maxConsecutiveThrottlesAtMin?: number;
|
|
1088
|
+
/**
|
|
1089
|
+
* Called whenever the runner changes its concurrency level. Use this for
|
|
1090
|
+
* operator-visible logging. The callback is fire-and-forget; throwing has no
|
|
1091
|
+
* effect on the import.
|
|
1092
|
+
*/
|
|
1093
|
+
onAdjust?: (event: AdaptiveConcurrencyAdjustEvent) => void;
|
|
1094
|
+
}
|
|
1095
|
+
/** Event payload for {@link AdaptiveConcurrencyOptions.onAdjust}. */
|
|
1096
|
+
interface AdaptiveConcurrencyAdjustEvent {
|
|
1097
|
+
/** New concurrency level in effect after this adjustment. */
|
|
1098
|
+
concurrency: number;
|
|
1099
|
+
/** Concurrency level immediately before this adjustment. */
|
|
1100
|
+
previousConcurrency: number;
|
|
1101
|
+
/** Why the change was made. */
|
|
1102
|
+
reason: AdaptiveConcurrencyAdjustReason;
|
|
1103
|
+
/** Total tasks completed (success or throttle) at the time of adjustment. */
|
|
1104
|
+
tasksCompleted: number;
|
|
1105
|
+
/** Total tasks observed to have been throttled at least once. */
|
|
1106
|
+
throttledCount: number;
|
|
1037
1107
|
}
|
|
1038
1108
|
/** Progress callback for delete operations */
|
|
1039
1109
|
type DeleteProgressCallback = (progress: {
|
|
@@ -1068,4 +1138,4 @@ interface ImportResult {
|
|
|
1068
1138
|
warnings: ImportWarning[];
|
|
1069
1139
|
}
|
|
1070
1140
|
|
|
1071
|
-
export type { ConceptSearchOptions as $, EntityTypeDefinition as A, BulkImportOptions as B, CreateEntityInput as C, DetailLevel as D, Entity as E, VocabularyProposal as F, GovernanceConfig as G, VocabularyProposalResult as H, ImportChunk as I, ProvenanceContext as J, Provenance as K, FindEntitiesQuery as L, MemoryVocabulary as M, DeleteEntitiesResult as N, ReembedResult as O, PropertyFilter as P, Relationship as Q, RelationshipSummary as R, StorageRepositoryConfig as S, RemoveRelationshipsResult as T, UpdateEntityInput as U, VocabularyChangeRecord as V, GraphResult as W, ExploreOptions as X, Neighborhood as Y, PathOptions as Z, PathResult as _, EntitySummary as a, ScoredEntity as a0, TimelineOptions as a1, TimelineResult as a2, ValidateEntitiesOptions as a3, EntityValidationPage as a4, ValidateRelationshipsOptions as a5, RelationshipValidationPage as a6, RepositoryConfig as a7, RepositorySummary as a8, ExportOptions as a9,
|
|
1141
|
+
export type { ConceptSearchOptions as $, EntityTypeDefinition as A, BulkImportOptions as B, CreateEntityInput as C, DetailLevel as D, Entity as E, VocabularyProposal as F, GovernanceConfig as G, VocabularyProposalResult as H, ImportChunk as I, ProvenanceContext as J, Provenance as K, FindEntitiesQuery as L, MemoryVocabulary as M, DeleteEntitiesResult as N, ReembedResult as O, PropertyFilter as P, Relationship as Q, RelationshipSummary as R, StorageRepositoryConfig as S, RemoveRelationshipsResult as T, UpdateEntityInput as U, VocabularyChangeRecord as V, GraphResult as W, ExploreOptions as X, Neighborhood as Y, PathOptions as Z, PathResult as _, EntitySummary as a, ScoredEntity as a0, TimelineOptions as a1, TimelineResult as a2, ValidateEntitiesOptions as a3, EntityValidationPage as a4, ValidateRelationshipsOptions as a5, RelationshipValidationPage as a6, RepositoryConfig as a7, RepositorySummary as a8, ExportOptions as a9, PropertyType as aA, ProvenanceFilter as aB, RelationshipDirection as aC, RelationshipTypeDefinition as aD, RelationshipTypeInput as aE, RelationshipValidationIssue as aF, RepositoryMetadata as aG, StorageNeighborhoodGroup as aH, StorageNeighborhoodLayer as aI, StoragePath as aJ, StorageTimelineEvent as aK, TimelineEntityRef as aL, TimelineEvent as aM, TimelineRelationshipDetail as aN, VocabularyInput as aO, ExportArchive as aa, ImportOptions as ab, ImportResult as ac, ExportStreamItem as ad, ImportStreamHeader as ae, SearchOptions as af, SearchHit as ag, AdaptiveConcurrencyAdjustEvent as ah, AdaptiveConcurrencyAdjustReason as ai, AdaptiveConcurrencyOptions as aj, EnrichedRelationship as ak, EntityMap as al, EntityTypeInput as am, EntityValidationIssue as an, ExportLegalMetadata as ao, ExportManifest as ap, ExportPipelineMetadata as aq, GetEntitiesOptions as ar, GetEntityOptions as as, GovernanceMode as at, ImportWarning as au, NeighborhoodCenter as av, NeighborhoodGroup as aw, NeighborhoodLayer as ax, Path as ay, PropertySchema as az, EntityBrief as b, StoredRepository as c, RepositoryFilter as d, PaginatedResult as e, StoredRepositorySummary as f, RepositoryUpdate as g, DeleteProgressCallback as h, RepositoryStats as i, PaginationOptions as j, StoredEntity as k, StoredEntityUpdate as l, StorageFindQuery as m, StoredRelationship as n, RelationshipQueryOptions as o, StorageExploreOptions as p, StorageNeighborhood as q, StoragePathOptions as r, StoragePathResult as s, StorageTimelineOptions as t, StorageTimelineResult as u, ExportChunk as v, BulkImportResult as w, ResolvedVocabulary as x, ValidationResult as y, CreateRelationshipInput as z };
|
|
@@ -1018,6 +1018,15 @@ interface ImportOptions {
|
|
|
1018
1018
|
entityConflict?: 'skip' | 'overwrite' | 'rename';
|
|
1019
1019
|
/** Whether to re-generate embeddings using the current EmbeddingProvider */
|
|
1020
1020
|
reEmbed?: boolean;
|
|
1021
|
+
/**
|
|
1022
|
+
* Storage-provider bulk options forwarded to `StorageProvider.importBulk()`
|
|
1023
|
+
* for every chunk. Use this to tune adaptive concurrency or wire an
|
|
1024
|
+
* `onAdjust` callback for operator-visible logging.
|
|
1025
|
+
*
|
|
1026
|
+
* Note: `skipExistenceCheck` is set automatically based on import mode and
|
|
1027
|
+
* cannot be overridden here.
|
|
1028
|
+
*/
|
|
1029
|
+
bulk?: Omit<BulkImportOptions, 'skipExistenceCheck'>;
|
|
1021
1030
|
}
|
|
1022
1031
|
/** A chunk of data for bulk import */
|
|
1023
1032
|
interface ImportChunk {
|
|
@@ -1034,6 +1043,67 @@ interface BulkImportOptions {
|
|
|
1034
1043
|
* Default: false (upsert behavior — check existence, then create or update).
|
|
1035
1044
|
*/
|
|
1036
1045
|
skipExistenceCheck?: boolean;
|
|
1046
|
+
/**
|
|
1047
|
+
* Adaptive concurrency configuration for providers that throttle under load
|
|
1048
|
+
* (e.g. CosmosDB on autoscale tiers). Providers that do not throttle may
|
|
1049
|
+
* ignore this. The runner starts at `start` parallel writes, halves on any
|
|
1050
|
+
* observed throttle, and ramps back up after `increaseAfter` consecutive
|
|
1051
|
+
* throttle-free completions. All fields are optional with provider-specific
|
|
1052
|
+
* defaults.
|
|
1053
|
+
*/
|
|
1054
|
+
adaptiveConcurrency?: AdaptiveConcurrencyOptions;
|
|
1055
|
+
}
|
|
1056
|
+
/** Reason the adaptive runner adjusted its concurrency level. */
|
|
1057
|
+
type AdaptiveConcurrencyAdjustReason = 'start' | 'throttle' | 'ramp-up';
|
|
1058
|
+
/** Configuration for the adaptive concurrency runner used by bulk imports. */
|
|
1059
|
+
interface AdaptiveConcurrencyOptions {
|
|
1060
|
+
/** Floor concurrency. Default: 2. */
|
|
1061
|
+
min?: number;
|
|
1062
|
+
/** Initial concurrency at the start of the import. Default: 5. */
|
|
1063
|
+
start?: number;
|
|
1064
|
+
/** Ceiling concurrency. Default: 32. */
|
|
1065
|
+
max?: number;
|
|
1066
|
+
/**
|
|
1067
|
+
* Number of consecutive throttle-free task completions required before
|
|
1068
|
+
* concurrency is incremented by 1. Default: 50.
|
|
1069
|
+
*/
|
|
1070
|
+
increaseAfter?: number;
|
|
1071
|
+
/**
|
|
1072
|
+
* Cooldown delay (ms) before any further task is dispatched after a throttle
|
|
1073
|
+
* is observed. Default: 1000.
|
|
1074
|
+
*/
|
|
1075
|
+
cooldownMs?: number;
|
|
1076
|
+
/**
|
|
1077
|
+
* Circuit breaker — abort the import after this many consecutive throttled
|
|
1078
|
+
* tasks while the controller is already at `min` concurrency. The streak is
|
|
1079
|
+
* reset by any throttle-free task completion. Set to a very large number to
|
|
1080
|
+
* disable. Default: 10.
|
|
1081
|
+
*
|
|
1082
|
+
* Rationale: at min concurrency the runner has already done everything it
|
|
1083
|
+
* can to relieve pressure. If the cluster is still throttling every task at
|
|
1084
|
+
* that level, more attempts will not help and the operator should be told
|
|
1085
|
+
* loudly rather than letting the import grind on for hours.
|
|
1086
|
+
*/
|
|
1087
|
+
maxConsecutiveThrottlesAtMin?: number;
|
|
1088
|
+
/**
|
|
1089
|
+
* Called whenever the runner changes its concurrency level. Use this for
|
|
1090
|
+
* operator-visible logging. The callback is fire-and-forget; throwing has no
|
|
1091
|
+
* effect on the import.
|
|
1092
|
+
*/
|
|
1093
|
+
onAdjust?: (event: AdaptiveConcurrencyAdjustEvent) => void;
|
|
1094
|
+
}
|
|
1095
|
+
/** Event payload for {@link AdaptiveConcurrencyOptions.onAdjust}. */
|
|
1096
|
+
interface AdaptiveConcurrencyAdjustEvent {
|
|
1097
|
+
/** New concurrency level in effect after this adjustment. */
|
|
1098
|
+
concurrency: number;
|
|
1099
|
+
/** Concurrency level immediately before this adjustment. */
|
|
1100
|
+
previousConcurrency: number;
|
|
1101
|
+
/** Why the change was made. */
|
|
1102
|
+
reason: AdaptiveConcurrencyAdjustReason;
|
|
1103
|
+
/** Total tasks completed (success or throttle) at the time of adjustment. */
|
|
1104
|
+
tasksCompleted: number;
|
|
1105
|
+
/** Total tasks observed to have been throttled at least once. */
|
|
1106
|
+
throttledCount: number;
|
|
1037
1107
|
}
|
|
1038
1108
|
/** Progress callback for delete operations */
|
|
1039
1109
|
type DeleteProgressCallback = (progress: {
|
|
@@ -1068,4 +1138,4 @@ interface ImportResult {
|
|
|
1068
1138
|
warnings: ImportWarning[];
|
|
1069
1139
|
}
|
|
1070
1140
|
|
|
1071
|
-
export type { ConceptSearchOptions as $, EntityTypeDefinition as A, BulkImportOptions as B, CreateEntityInput as C, DetailLevel as D, Entity as E, VocabularyProposal as F, GovernanceConfig as G, VocabularyProposalResult as H, ImportChunk as I, ProvenanceContext as J, Provenance as K, FindEntitiesQuery as L, MemoryVocabulary as M, DeleteEntitiesResult as N, ReembedResult as O, PropertyFilter as P, Relationship as Q, RelationshipSummary as R, StorageRepositoryConfig as S, RemoveRelationshipsResult as T, UpdateEntityInput as U, VocabularyChangeRecord as V, GraphResult as W, ExploreOptions as X, Neighborhood as Y, PathOptions as Z, PathResult as _, EntitySummary as a, ScoredEntity as a0, TimelineOptions as a1, TimelineResult as a2, ValidateEntitiesOptions as a3, EntityValidationPage as a4, ValidateRelationshipsOptions as a5, RelationshipValidationPage as a6, RepositoryConfig as a7, RepositorySummary as a8, ExportOptions as a9,
|
|
1141
|
+
export type { ConceptSearchOptions as $, EntityTypeDefinition as A, BulkImportOptions as B, CreateEntityInput as C, DetailLevel as D, Entity as E, VocabularyProposal as F, GovernanceConfig as G, VocabularyProposalResult as H, ImportChunk as I, ProvenanceContext as J, Provenance as K, FindEntitiesQuery as L, MemoryVocabulary as M, DeleteEntitiesResult as N, ReembedResult as O, PropertyFilter as P, Relationship as Q, RelationshipSummary as R, StorageRepositoryConfig as S, RemoveRelationshipsResult as T, UpdateEntityInput as U, VocabularyChangeRecord as V, GraphResult as W, ExploreOptions as X, Neighborhood as Y, PathOptions as Z, PathResult as _, EntitySummary as a, ScoredEntity as a0, TimelineOptions as a1, TimelineResult as a2, ValidateEntitiesOptions as a3, EntityValidationPage as a4, ValidateRelationshipsOptions as a5, RelationshipValidationPage as a6, RepositoryConfig as a7, RepositorySummary as a8, ExportOptions as a9, PropertyType as aA, ProvenanceFilter as aB, RelationshipDirection as aC, RelationshipTypeDefinition as aD, RelationshipTypeInput as aE, RelationshipValidationIssue as aF, RepositoryMetadata as aG, StorageNeighborhoodGroup as aH, StorageNeighborhoodLayer as aI, StoragePath as aJ, StorageTimelineEvent as aK, TimelineEntityRef as aL, TimelineEvent as aM, TimelineRelationshipDetail as aN, VocabularyInput as aO, ExportArchive as aa, ImportOptions as ab, ImportResult as ac, ExportStreamItem as ad, ImportStreamHeader as ae, SearchOptions as af, SearchHit as ag, AdaptiveConcurrencyAdjustEvent as ah, AdaptiveConcurrencyAdjustReason as ai, AdaptiveConcurrencyOptions as aj, EnrichedRelationship as ak, EntityMap as al, EntityTypeInput as am, EntityValidationIssue as an, ExportLegalMetadata as ao, ExportManifest as ap, ExportPipelineMetadata as aq, GetEntitiesOptions as ar, GetEntityOptions as as, GovernanceMode as at, ImportWarning as au, NeighborhoodCenter as av, NeighborhoodGroup as aw, NeighborhoodLayer as ax, Path as ay, PropertySchema as az, EntityBrief as b, StoredRepository as c, RepositoryFilter as d, PaginatedResult as e, StoredRepositorySummary as f, RepositoryUpdate as g, DeleteProgressCallback as h, RepositoryStats as i, PaginationOptions as j, StoredEntity as k, StoredEntityUpdate as l, StorageFindQuery as m, StoredRelationship as n, RelationshipQueryOptions as o, StorageExploreOptions as p, StorageNeighborhood as q, StoragePathOptions as r, StoragePathResult as s, StorageTimelineOptions as t, StorageTimelineResult as u, ExportChunk as v, BulkImportResult as w, ResolvedVocabulary as x, ValidationResult as y, CreateRelationshipInput as z };
|
|
@@ -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-Cn2YxHc3.cjs';
|
|
2
|
+
import { af as SearchOptions, e as PaginatedResult, ag as SearchHit } from '../portability-Ceb9P_VW.cjs';
|
|
3
|
+
import { T as TraversalSpec, a as TraversalResult } from '../traversal-DAccezmK.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-BuhXaqFP.js';
|
|
2
|
+
import { af as SearchOptions, e as PaginatedResult, ag as SearchHit } from '../portability-Ceb9P_VW.js';
|
|
3
|
+
import { T as TraversalSpec, a as TraversalResult } from '../traversal-lpUylwSS.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-Cn2YxHc3.cjs';
|
|
2
|
+
import '../portability-Ceb9P_VW.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-BuhXaqFP.js';
|
|
2
|
+
import '../portability-Ceb9P_VW.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-Ceb9P_VW.cjs';
|
|
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-Ceb9P_VW.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* An entity as returned inside a TraversalResult — the projected entity plus
|
package/dist/types/index.cjs.map
CHANGED
|
@@ -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 DeleteEntitiesResult,\n} from './entities.js';\n\nexport type {\n RelationshipDirection,\n Relationship,\n EnrichedRelationship,\n CreateRelationshipInput,\n StoredRelationship,\n RelationshipQueryOptions,\n RelationshipSummary,\n RemoveRelationshipsResult,\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 NeighborhoodCenter,\n NeighborhoodGroup,\n NeighborhoodLayer,\n Neighborhood,\n Path,\n PathResult,\n ScoredEntity,\n TimelineEntityRef,\n TimelineRelationshipDetail,\n TimelineEvent,\n TimelineResult,\n GraphResult,\n EntityMap,\n StorageNeighborhoodGroup,\n StorageNeighborhoodLayer,\n StorageNeighborhood,\n StoragePath,\n StoragePathResult,\n StorageTimelineEvent,\n StorageTimelineResult,\n SearchHit,\n BulkImportResult,\n ReembedResult,\n EntityValidationIssue,\n RelationshipValidationIssue,\n EntityValidationPage,\n RelationshipValidationPage,\n ValidateEntitiesOptions,\n ValidateRelationshipsOptions,\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 OperationUsage,\n UsageSink,\n} from './usage.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
|
+
{"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 DeleteEntitiesResult,\n} from './entities.js';\n\nexport type {\n RelationshipDirection,\n Relationship,\n EnrichedRelationship,\n CreateRelationshipInput,\n StoredRelationship,\n RelationshipQueryOptions,\n RelationshipSummary,\n RemoveRelationshipsResult,\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 NeighborhoodCenter,\n NeighborhoodGroup,\n NeighborhoodLayer,\n Neighborhood,\n Path,\n PathResult,\n ScoredEntity,\n TimelineEntityRef,\n TimelineRelationshipDetail,\n TimelineEvent,\n TimelineResult,\n GraphResult,\n EntityMap,\n StorageNeighborhoodGroup,\n StorageNeighborhoodLayer,\n StorageNeighborhood,\n StoragePath,\n StoragePathResult,\n StorageTimelineEvent,\n StorageTimelineResult,\n SearchHit,\n BulkImportResult,\n ReembedResult,\n EntityValidationIssue,\n RelationshipValidationIssue,\n EntityValidationPage,\n RelationshipValidationPage,\n ValidateEntitiesOptions,\n ValidateRelationshipsOptions,\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 OperationUsage,\n UsageSink,\n} from './usage.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 AdaptiveConcurrencyOptions,\n AdaptiveConcurrencyAdjustEvent,\n AdaptiveConcurrencyAdjustReason,\n DeleteProgressCallback,\n ImportStreamHeader,\n ImportWarning,\n ImportResult,\n} from './portability.js';\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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 { B as BulkImportOptions, w as BulkImportResult, $ as ConceptSearchOptions, N as DeleteEntitiesResult, h as DeleteProgressCallback, D as DetailLevel,
|
|
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-Ceb9P_VW.cjs';
|
|
2
|
+
export { ah as AdaptiveConcurrencyAdjustEvent, ai as AdaptiveConcurrencyAdjustReason, aj as AdaptiveConcurrencyOptions, B as BulkImportOptions, w as BulkImportResult, $ as ConceptSearchOptions, N as DeleteEntitiesResult, h as DeleteProgressCallback, D as DetailLevel, ak as EnrichedRelationship, b as EntityBrief, al as EntityMap, a as EntitySummary, A as EntityTypeDefinition, am as EntityTypeInput, an as EntityValidationIssue, a4 as EntityValidationPage, X as ExploreOptions, aa as ExportArchive, v as ExportChunk, ao as ExportLegalMetadata, ap as ExportManifest, a9 as ExportOptions, aq as ExportPipelineMetadata, ad as ExportStreamItem, L as FindEntitiesQuery, ar as GetEntitiesOptions, as as GetEntityOptions, G as GovernanceConfig, at as GovernanceMode, W as GraphResult, I as ImportChunk, ab as ImportOptions, ac as ImportResult, ae as ImportStreamHeader, au as ImportWarning, M as MemoryVocabulary, Y as Neighborhood, av as NeighborhoodCenter, aw as NeighborhoodGroup, ax as NeighborhoodLayer, e as PaginatedResult, j as PaginationOptions, ay as Path, Z as PathOptions, _ as PathResult, P as PropertyFilter, az as PropertySchema, aA as PropertyType, K as Provenance, aB as ProvenanceFilter, O as ReembedResult, aC as RelationshipDirection, o as RelationshipQueryOptions, R as RelationshipSummary, aD as RelationshipTypeDefinition, aE as RelationshipTypeInput, aF as RelationshipValidationIssue, a6 as RelationshipValidationPage, T as RemoveRelationshipsResult, a7 as RepositoryConfig, d as RepositoryFilter, aG 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, aH as StorageNeighborhoodGroup, aI as StorageNeighborhoodLayer, aJ as StoragePath, r as StoragePathOptions, s as StoragePathResult, S as StorageRepositoryConfig, aK as StorageTimelineEvent, t as StorageTimelineOptions, u as StorageTimelineResult, k as StoredEntity, l as StoredEntityUpdate, n as StoredRelationship, c as StoredRepository, f as StoredRepositorySummary, aL as TimelineEntityRef, aM as TimelineEvent, a1 as TimelineOptions, aN as TimelineRelationshipDetail, a2 as TimelineResult, a3 as ValidateEntitiesOptions, a5 as ValidateRelationshipsOptions, aO as VocabularyInput, F as VocabularyProposal, H as VocabularyProposalResult } from '../portability-Ceb9P_VW.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-DAccezmK.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:completed' | 'reembed:failed' | 'export:started' | 'export:progress' | 'export:completed' | 'import:started' | 'import:progress' | 'import:completed' | 'import:failed' | 'delete:started' | 'delete:progress' | 'delete:completed';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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 { B as BulkImportOptions, w as BulkImportResult, $ as ConceptSearchOptions, N as DeleteEntitiesResult, h as DeleteProgressCallback, D as DetailLevel,
|
|
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-Ceb9P_VW.js';
|
|
2
|
+
export { ah as AdaptiveConcurrencyAdjustEvent, ai as AdaptiveConcurrencyAdjustReason, aj as AdaptiveConcurrencyOptions, B as BulkImportOptions, w as BulkImportResult, $ as ConceptSearchOptions, N as DeleteEntitiesResult, h as DeleteProgressCallback, D as DetailLevel, ak as EnrichedRelationship, b as EntityBrief, al as EntityMap, a as EntitySummary, A as EntityTypeDefinition, am as EntityTypeInput, an as EntityValidationIssue, a4 as EntityValidationPage, X as ExploreOptions, aa as ExportArchive, v as ExportChunk, ao as ExportLegalMetadata, ap as ExportManifest, a9 as ExportOptions, aq as ExportPipelineMetadata, ad as ExportStreamItem, L as FindEntitiesQuery, ar as GetEntitiesOptions, as as GetEntityOptions, G as GovernanceConfig, at as GovernanceMode, W as GraphResult, I as ImportChunk, ab as ImportOptions, ac as ImportResult, ae as ImportStreamHeader, au as ImportWarning, M as MemoryVocabulary, Y as Neighborhood, av as NeighborhoodCenter, aw as NeighborhoodGroup, ax as NeighborhoodLayer, e as PaginatedResult, j as PaginationOptions, ay as Path, Z as PathOptions, _ as PathResult, P as PropertyFilter, az as PropertySchema, aA as PropertyType, K as Provenance, aB as ProvenanceFilter, O as ReembedResult, aC as RelationshipDirection, o as RelationshipQueryOptions, R as RelationshipSummary, aD as RelationshipTypeDefinition, aE as RelationshipTypeInput, aF as RelationshipValidationIssue, a6 as RelationshipValidationPage, T as RemoveRelationshipsResult, a7 as RepositoryConfig, d as RepositoryFilter, aG 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, aH as StorageNeighborhoodGroup, aI as StorageNeighborhoodLayer, aJ as StoragePath, r as StoragePathOptions, s as StoragePathResult, S as StorageRepositoryConfig, aK as StorageTimelineEvent, t as StorageTimelineOptions, u as StorageTimelineResult, k as StoredEntity, l as StoredEntityUpdate, n as StoredRelationship, c as StoredRepository, f as StoredRepositorySummary, aL as TimelineEntityRef, aM as TimelineEvent, a1 as TimelineOptions, aN as TimelineRelationshipDetail, a2 as TimelineResult, a3 as ValidateEntitiesOptions, a5 as ValidateRelationshipsOptions, aO as VocabularyInput, F as VocabularyProposal, H as VocabularyProposalResult } from '../portability-Ceb9P_VW.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-lpUylwSS.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:completed' | 'reembed:failed' | 'export:started' | 'export:progress' | 'export:completed' | 'import:started' | 'import:progress' | 'import:completed' | 'import:failed' | 'delete:started' | 'delete:progress' | 'delete:completed';
|