@utaba/deep-memory 0.12.0 → 0.14.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-Cn2YxHc3.d.cts → StorageProvider-BfdyQgiI.d.cts} +1 -1
- package/dist/{StorageProvider-BuhXaqFP.d.ts → StorageProvider-jpzVIKXs.d.ts} +1 -1
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/{portability-Ceb9P_VW.d.cts → portability-DWpZbxNn.d.cts} +47 -2
- package/dist/{portability-Ceb9P_VW.d.ts → portability-DWpZbxNn.d.ts} +47 -2
- package/dist/providers/index.d.cts +4 -4
- package/dist/providers/index.d.ts +4 -4
- package/dist/testing/conformance.d.cts +2 -2
- package/dist/testing/conformance.d.ts +2 -2
- package/dist/{traversal-DAccezmK.d.cts → traversal-37JAiha-.d.cts} +1 -1
- package/dist/{traversal-lpUylwSS.d.ts → traversal-COr0AJBc.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
|
@@ -1052,12 +1052,33 @@ interface BulkImportOptions {
|
|
|
1052
1052
|
* defaults.
|
|
1053
1053
|
*/
|
|
1054
1054
|
adaptiveConcurrency?: AdaptiveConcurrencyOptions;
|
|
1055
|
+
/**
|
|
1056
|
+
* Opaque container for cross-call adaptive-concurrency state. When the same
|
|
1057
|
+
* handle object is passed to multiple `importBulk` calls during a single
|
|
1058
|
+
* import operation, providers that support adaptive concurrency reuse their
|
|
1059
|
+
* controller across calls — preserving the learned concurrency level,
|
|
1060
|
+
* success streak, cooldown, and throttle history — instead of resetting on
|
|
1061
|
+
* every chunk. RepositoryImporter creates a fresh handle per import and
|
|
1062
|
+
* threads it through automatically; direct callers of `importBulk` only
|
|
1063
|
+
* need to set this when they invoke the method multiple times for one
|
|
1064
|
+
* logical import. Providers that do not throttle ignore the field.
|
|
1065
|
+
*/
|
|
1066
|
+
adaptiveConcurrencyHandle?: AdaptiveConcurrencyHandle;
|
|
1067
|
+
}
|
|
1068
|
+
/**
|
|
1069
|
+
* Opaque marker for cross-call adaptive-concurrency state. Storage providers
|
|
1070
|
+
* that support adaptive concurrency attach their own private fields (e.g. the
|
|
1071
|
+
* controller instance) to this object. Callers should treat it as opaque —
|
|
1072
|
+
* construct a fresh empty `{}` per import and pass the same reference to every
|
|
1073
|
+
* `importBulk` call belonging to that import.
|
|
1074
|
+
*/
|
|
1075
|
+
interface AdaptiveConcurrencyHandle {
|
|
1055
1076
|
}
|
|
1056
1077
|
/** Reason the adaptive runner adjusted its concurrency level. */
|
|
1057
1078
|
type AdaptiveConcurrencyAdjustReason = 'start' | 'throttle' | 'ramp-up';
|
|
1058
1079
|
/** Configuration for the adaptive concurrency runner used by bulk imports. */
|
|
1059
1080
|
interface AdaptiveConcurrencyOptions {
|
|
1060
|
-
/** Floor concurrency. Default:
|
|
1081
|
+
/** Floor concurrency. Default: 1. */
|
|
1061
1082
|
min?: number;
|
|
1062
1083
|
/** Initial concurrency at the start of the import. Default: 5. */
|
|
1063
1084
|
start?: number;
|
|
@@ -1073,6 +1094,14 @@ interface AdaptiveConcurrencyOptions {
|
|
|
1073
1094
|
* is observed. Default: 1000.
|
|
1074
1095
|
*/
|
|
1075
1096
|
cooldownMs?: number;
|
|
1097
|
+
/**
|
|
1098
|
+
* Minimum time (ms) that must elapse after a throttle before concurrency can
|
|
1099
|
+
* be incremented again. The dispatch cooldown (`cooldownMs`) only pauses new
|
|
1100
|
+
* task dispatch; this separately freezes the ramp-up streak so the controller
|
|
1101
|
+
* does not immediately climb back to a level that just proved unsustainable.
|
|
1102
|
+
* Default: 5000.
|
|
1103
|
+
*/
|
|
1104
|
+
rampUpCooldownMs?: number;
|
|
1076
1105
|
/**
|
|
1077
1106
|
* Circuit breaker — abort the import after this many consecutive throttled
|
|
1078
1107
|
* tasks while the controller is already at `min` concurrency. The streak is
|
|
@@ -1085,6 +1114,22 @@ interface AdaptiveConcurrencyOptions {
|
|
|
1085
1114
|
* loudly rather than letting the import grind on for hours.
|
|
1086
1115
|
*/
|
|
1087
1116
|
maxConsecutiveThrottlesAtMin?: number;
|
|
1117
|
+
/**
|
|
1118
|
+
* Multiplier applied to {@link increaseAfter} when ramping back up to a
|
|
1119
|
+
* level that has been throttled before (the "soft ceiling"). The controller
|
|
1120
|
+
* remembers the highest concurrency at which a throttle was observed and
|
|
1121
|
+
* requires `increaseAfter * throttleCeilingMultiplier` consecutive successes
|
|
1122
|
+
* to re-attain (or exceed) that level. Once the level has been held without
|
|
1123
|
+
* further throttling, the constraint is dropped — a future throttle will
|
|
1124
|
+
* establish a new ceiling. Default: 3.
|
|
1125
|
+
*
|
|
1126
|
+
* Rationale: the previous behaviour ramped back up to the throttled level
|
|
1127
|
+
* with the same number of successes every cycle, producing a
|
|
1128
|
+
* ramp-throttle-ramp-throttle oscillation on RU-constrained tiers. Making
|
|
1129
|
+
* the re-approach cost more breaks the cycle without permanently capping
|
|
1130
|
+
* concurrency below the cluster's real capacity.
|
|
1131
|
+
*/
|
|
1132
|
+
throttleCeilingMultiplier?: number;
|
|
1088
1133
|
/**
|
|
1089
1134
|
* Called whenever the runner changes its concurrency level. Use this for
|
|
1090
1135
|
* operator-visible logging. The callback is fire-and-forget; throwing has no
|
|
@@ -1138,4 +1183,4 @@ interface ImportResult {
|
|
|
1138
1183
|
warnings: ImportWarning[];
|
|
1139
1184
|
}
|
|
1140
1185
|
|
|
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,
|
|
1186
|
+
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, PropertySchema as aA, PropertyType as aB, ProvenanceFilter as aC, RelationshipDirection as aD, RelationshipTypeDefinition as aE, RelationshipTypeInput as aF, RelationshipValidationIssue as aG, RepositoryMetadata as aH, StorageNeighborhoodGroup as aI, StorageNeighborhoodLayer as aJ, StoragePath as aK, StorageTimelineEvent as aL, TimelineEntityRef as aM, TimelineEvent as aN, TimelineRelationshipDetail as aO, VocabularyInput as aP, 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, AdaptiveConcurrencyHandle as aj, AdaptiveConcurrencyOptions as ak, EnrichedRelationship as al, EntityMap as am, EntityTypeInput as an, EntityValidationIssue as ao, ExportLegalMetadata as ap, ExportManifest as aq, ExportPipelineMetadata as ar, GetEntitiesOptions as as, GetEntityOptions as at, GovernanceMode as au, ImportWarning as av, NeighborhoodCenter as aw, NeighborhoodGroup as ax, NeighborhoodLayer as ay, Path 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 };
|
|
@@ -1052,12 +1052,33 @@ interface BulkImportOptions {
|
|
|
1052
1052
|
* defaults.
|
|
1053
1053
|
*/
|
|
1054
1054
|
adaptiveConcurrency?: AdaptiveConcurrencyOptions;
|
|
1055
|
+
/**
|
|
1056
|
+
* Opaque container for cross-call adaptive-concurrency state. When the same
|
|
1057
|
+
* handle object is passed to multiple `importBulk` calls during a single
|
|
1058
|
+
* import operation, providers that support adaptive concurrency reuse their
|
|
1059
|
+
* controller across calls — preserving the learned concurrency level,
|
|
1060
|
+
* success streak, cooldown, and throttle history — instead of resetting on
|
|
1061
|
+
* every chunk. RepositoryImporter creates a fresh handle per import and
|
|
1062
|
+
* threads it through automatically; direct callers of `importBulk` only
|
|
1063
|
+
* need to set this when they invoke the method multiple times for one
|
|
1064
|
+
* logical import. Providers that do not throttle ignore the field.
|
|
1065
|
+
*/
|
|
1066
|
+
adaptiveConcurrencyHandle?: AdaptiveConcurrencyHandle;
|
|
1067
|
+
}
|
|
1068
|
+
/**
|
|
1069
|
+
* Opaque marker for cross-call adaptive-concurrency state. Storage providers
|
|
1070
|
+
* that support adaptive concurrency attach their own private fields (e.g. the
|
|
1071
|
+
* controller instance) to this object. Callers should treat it as opaque —
|
|
1072
|
+
* construct a fresh empty `{}` per import and pass the same reference to every
|
|
1073
|
+
* `importBulk` call belonging to that import.
|
|
1074
|
+
*/
|
|
1075
|
+
interface AdaptiveConcurrencyHandle {
|
|
1055
1076
|
}
|
|
1056
1077
|
/** Reason the adaptive runner adjusted its concurrency level. */
|
|
1057
1078
|
type AdaptiveConcurrencyAdjustReason = 'start' | 'throttle' | 'ramp-up';
|
|
1058
1079
|
/** Configuration for the adaptive concurrency runner used by bulk imports. */
|
|
1059
1080
|
interface AdaptiveConcurrencyOptions {
|
|
1060
|
-
/** Floor concurrency. Default:
|
|
1081
|
+
/** Floor concurrency. Default: 1. */
|
|
1061
1082
|
min?: number;
|
|
1062
1083
|
/** Initial concurrency at the start of the import. Default: 5. */
|
|
1063
1084
|
start?: number;
|
|
@@ -1073,6 +1094,14 @@ interface AdaptiveConcurrencyOptions {
|
|
|
1073
1094
|
* is observed. Default: 1000.
|
|
1074
1095
|
*/
|
|
1075
1096
|
cooldownMs?: number;
|
|
1097
|
+
/**
|
|
1098
|
+
* Minimum time (ms) that must elapse after a throttle before concurrency can
|
|
1099
|
+
* be incremented again. The dispatch cooldown (`cooldownMs`) only pauses new
|
|
1100
|
+
* task dispatch; this separately freezes the ramp-up streak so the controller
|
|
1101
|
+
* does not immediately climb back to a level that just proved unsustainable.
|
|
1102
|
+
* Default: 5000.
|
|
1103
|
+
*/
|
|
1104
|
+
rampUpCooldownMs?: number;
|
|
1076
1105
|
/**
|
|
1077
1106
|
* Circuit breaker — abort the import after this many consecutive throttled
|
|
1078
1107
|
* tasks while the controller is already at `min` concurrency. The streak is
|
|
@@ -1085,6 +1114,22 @@ interface AdaptiveConcurrencyOptions {
|
|
|
1085
1114
|
* loudly rather than letting the import grind on for hours.
|
|
1086
1115
|
*/
|
|
1087
1116
|
maxConsecutiveThrottlesAtMin?: number;
|
|
1117
|
+
/**
|
|
1118
|
+
* Multiplier applied to {@link increaseAfter} when ramping back up to a
|
|
1119
|
+
* level that has been throttled before (the "soft ceiling"). The controller
|
|
1120
|
+
* remembers the highest concurrency at which a throttle was observed and
|
|
1121
|
+
* requires `increaseAfter * throttleCeilingMultiplier` consecutive successes
|
|
1122
|
+
* to re-attain (or exceed) that level. Once the level has been held without
|
|
1123
|
+
* further throttling, the constraint is dropped — a future throttle will
|
|
1124
|
+
* establish a new ceiling. Default: 3.
|
|
1125
|
+
*
|
|
1126
|
+
* Rationale: the previous behaviour ramped back up to the throttled level
|
|
1127
|
+
* with the same number of successes every cycle, producing a
|
|
1128
|
+
* ramp-throttle-ramp-throttle oscillation on RU-constrained tiers. Making
|
|
1129
|
+
* the re-approach cost more breaks the cycle without permanently capping
|
|
1130
|
+
* concurrency below the cluster's real capacity.
|
|
1131
|
+
*/
|
|
1132
|
+
throttleCeilingMultiplier?: number;
|
|
1088
1133
|
/**
|
|
1089
1134
|
* Called whenever the runner changes its concurrency level. Use this for
|
|
1090
1135
|
* operator-visible logging. The callback is fire-and-forget; throwing has no
|
|
@@ -1138,4 +1183,4 @@ interface ImportResult {
|
|
|
1138
1183
|
warnings: ImportWarning[];
|
|
1139
1184
|
}
|
|
1140
1185
|
|
|
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,
|
|
1186
|
+
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, PropertySchema as aA, PropertyType as aB, ProvenanceFilter as aC, RelationshipDirection as aD, RelationshipTypeDefinition as aE, RelationshipTypeInput as aF, RelationshipValidationIssue as aG, RepositoryMetadata as aH, StorageNeighborhoodGroup as aI, StorageNeighborhoodLayer as aJ, StoragePath as aK, StorageTimelineEvent as aL, TimelineEntityRef as aM, TimelineEvent as aN, TimelineRelationshipDetail as aO, VocabularyInput as aP, 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, AdaptiveConcurrencyHandle as aj, AdaptiveConcurrencyOptions as ak, EnrichedRelationship as al, EntityMap as am, EntityTypeInput as an, EntityValidationIssue as ao, ExportLegalMetadata as ap, ExportManifest as aq, ExportPipelineMetadata as ar, GetEntitiesOptions as as, GetEntityOptions as at, GovernanceMode as au, ImportWarning as av, NeighborhoodCenter as aw, NeighborhoodGroup as ax, NeighborhoodLayer as ay, Path 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-BfdyQgiI.cjs';
|
|
2
|
+
import { af as SearchOptions, e as PaginatedResult, ag as SearchHit } from '../portability-DWpZbxNn.cjs';
|
|
3
|
+
import { T as TraversalSpec, a as TraversalResult } from '../traversal-37JAiha-.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* EmbeddingProvider — enables semantic search and vocabulary deduplication.
|
|
@@ -117,7 +117,7 @@ interface GraphTraversalProvider {
|
|
|
117
117
|
* For agent-facing graph queries use {@link traverse}, which takes a
|
|
118
118
|
* structured TraversalSpec and lets the provider enforce repository scoping.
|
|
119
119
|
*/
|
|
120
|
-
executeNativeQuery(repositoryId: string, query: string, params?: Record<string, unknown>): Promise<
|
|
120
|
+
executeNativeQuery(repositoryId: string, query: string, params?: Record<string, unknown>): Promise<unknown[]>;
|
|
121
121
|
/**
|
|
122
122
|
* Report provider capabilities so the library can adapt
|
|
123
123
|
* DSL compilation and validate traversal specs accordingly.
|
|
@@ -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-jpzVIKXs.js';
|
|
2
|
+
import { af as SearchOptions, e as PaginatedResult, ag as SearchHit } from '../portability-DWpZbxNn.js';
|
|
3
|
+
import { T as TraversalSpec, a as TraversalResult } from '../traversal-COr0AJBc.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* EmbeddingProvider — enables semantic search and vocabulary deduplication.
|
|
@@ -117,7 +117,7 @@ interface GraphTraversalProvider {
|
|
|
117
117
|
* For agent-facing graph queries use {@link traverse}, which takes a
|
|
118
118
|
* structured TraversalSpec and lets the provider enforce repository scoping.
|
|
119
119
|
*/
|
|
120
|
-
executeNativeQuery(repositoryId: string, query: string, params?: Record<string, unknown>): Promise<
|
|
120
|
+
executeNativeQuery(repositoryId: string, query: string, params?: Record<string, unknown>): Promise<unknown[]>;
|
|
121
121
|
/**
|
|
122
122
|
* Report provider capabilities so the library can adapt
|
|
123
123
|
* DSL compilation and validate traversal specs accordingly.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as StorageProvider } from '../StorageProvider-
|
|
2
|
-
import '../portability-
|
|
1
|
+
import { S as StorageProvider } from '../StorageProvider-BfdyQgiI.cjs';
|
|
2
|
+
import '../portability-DWpZbxNn.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-jpzVIKXs.js';
|
|
2
|
+
import '../portability-DWpZbxNn.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-DWpZbxNn.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-DWpZbxNn.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 AdaptiveConcurrencyOptions,\n AdaptiveConcurrencyAdjustEvent,\n AdaptiveConcurrencyAdjustReason,\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 AdaptiveConcurrencyHandle,\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 { 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,
|
|
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-DWpZbxNn.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-DWpZbxNn.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-37JAiha-.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 { 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,
|
|
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-DWpZbxNn.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-DWpZbxNn.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-COr0AJBc.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';
|