@utaba/deep-memory 0.9.3 → 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as StorageRepositoryConfig, c as StoredRepository, d as RepositoryFilter, e as PaginatedResult, f as StoredRepositorySummary, g as RepositoryUpdate, h as DeleteProgressCallback, i as RepositoryStats, M as MemoryVocabulary, j as PaginationOptions, V as VocabularyChangeRecord, k as StoredEntity, l as StoredEntityUpdate, m as StorageFindQuery, n as StoredRelationship, o as RelationshipQueryOptions, p as StorageExploreOptions, q as StorageNeighborhood, r as StoragePathOptions, s as StoragePathResult, t as StorageTimelineOptions, u as StorageTimelineResult, v as ExportChunk, I as ImportChunk, B as BulkImportOptions, w as BulkImportResult } from './portability-
|
|
1
|
+
import { S as StorageRepositoryConfig, c as StoredRepository, d as RepositoryFilter, e as PaginatedResult, f as StoredRepositorySummary, g as RepositoryUpdate, h as DeleteProgressCallback, i as RepositoryStats, M as MemoryVocabulary, j as PaginationOptions, V as VocabularyChangeRecord, k as StoredEntity, l as StoredEntityUpdate, m as StorageFindQuery, n as StoredRelationship, o as RelationshipQueryOptions, p as StorageExploreOptions, q as StorageNeighborhood, r as StoragePathOptions, s as StoragePathResult, t as StorageTimelineOptions, u as StorageTimelineResult, v as ExportChunk, I as ImportChunk, B as BulkImportOptions, w as BulkImportResult } from './portability-Ceb9P_VW.js';
|
|
2
2
|
|
|
3
3
|
/** Result returned by ensureSchema describing what actions were taken. */
|
|
4
4
|
interface EnsureSchemaResult {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as StorageRepositoryConfig, c as StoredRepository, d as RepositoryFilter, e as PaginatedResult, f as StoredRepositorySummary, g as RepositoryUpdate, h as DeleteProgressCallback, i as RepositoryStats, M as MemoryVocabulary, j as PaginationOptions, V as VocabularyChangeRecord, k as StoredEntity, l as StoredEntityUpdate, m as StorageFindQuery, n as StoredRelationship, o as RelationshipQueryOptions, p as StorageExploreOptions, q as StorageNeighborhood, r as StoragePathOptions, s as StoragePathResult, t as StorageTimelineOptions, u as StorageTimelineResult, v as ExportChunk, I as ImportChunk, B as BulkImportOptions, w as BulkImportResult } from './portability-
|
|
1
|
+
import { S as StorageRepositoryConfig, c as StoredRepository, d as RepositoryFilter, e as PaginatedResult, f as StoredRepositorySummary, g as RepositoryUpdate, h as DeleteProgressCallback, i as RepositoryStats, M as MemoryVocabulary, j as PaginationOptions, V as VocabularyChangeRecord, k as StoredEntity, l as StoredEntityUpdate, m as StorageFindQuery, n as StoredRelationship, o as RelationshipQueryOptions, p as StorageExploreOptions, q as StorageNeighborhood, r as StoragePathOptions, s as StoragePathResult, t as StorageTimelineOptions, u as StorageTimelineResult, v as ExportChunk, I as ImportChunk, B as BulkImportOptions, w as BulkImportResult } from './portability-Ceb9P_VW.cjs';
|
|
2
2
|
|
|
3
3
|
/** Result returned by ensureSchema describing what actions were taken. */
|
|
4
4
|
interface EnsureSchemaResult {
|
package/dist/index.cjs
CHANGED
|
@@ -33,6 +33,7 @@ __export(src_exports, {
|
|
|
33
33
|
GraphTraversalProviderRequiredError: () => GraphTraversalProviderRequiredError,
|
|
34
34
|
GremlinCompiler: () => GremlinCompiler,
|
|
35
35
|
ImportError: () => ImportError,
|
|
36
|
+
ImportThrottleAbortError: () => ImportThrottleAbortError,
|
|
36
37
|
InMemorySearchProvider: () => InMemorySearchProvider,
|
|
37
38
|
InMemoryStorageProvider: () => InMemoryStorageProvider,
|
|
38
39
|
InvalidInputError: () => InvalidInputError,
|
|
@@ -244,6 +245,23 @@ var ImportError = class extends DeepMemoryError {
|
|
|
244
245
|
this.name = "ImportError";
|
|
245
246
|
}
|
|
246
247
|
};
|
|
248
|
+
var ImportThrottleAbortError = class extends ImportError {
|
|
249
|
+
constructor(concurrency, consecutiveThrottlesAtMin, tasksCompleted, throttledCount) {
|
|
250
|
+
super(
|
|
251
|
+
`Import aborted: ${consecutiveThrottlesAtMin} consecutive throttled tasks while at minimum concurrency (${concurrency}). Tasks completed before abort: ${tasksCompleted}; total throttled: ${throttledCount}.`,
|
|
252
|
+
`Increase the storage tier's request-unit budget, or raise BulkImportOptions.adaptiveConcurrency.maxConsecutiveThrottlesAtMin if continuing despite sustained throttling is acceptable.`
|
|
253
|
+
);
|
|
254
|
+
this.concurrency = concurrency;
|
|
255
|
+
this.consecutiveThrottlesAtMin = consecutiveThrottlesAtMin;
|
|
256
|
+
this.tasksCompleted = tasksCompleted;
|
|
257
|
+
this.throttledCount = throttledCount;
|
|
258
|
+
this.name = "ImportThrottleAbortError";
|
|
259
|
+
}
|
|
260
|
+
concurrency;
|
|
261
|
+
consecutiveThrottlesAtMin;
|
|
262
|
+
tasksCompleted;
|
|
263
|
+
throttledCount;
|
|
264
|
+
};
|
|
247
265
|
var ExportError = class extends DeepMemoryError {
|
|
248
266
|
constructor(message, suggestion) {
|
|
249
267
|
super(
|
|
@@ -3493,7 +3511,7 @@ var EventBus = class {
|
|
|
3493
3511
|
};
|
|
3494
3512
|
|
|
3495
3513
|
// src/portability/RepositoryExporter.ts
|
|
3496
|
-
var LIBRARY_VERSION = true ? "0.
|
|
3514
|
+
var LIBRARY_VERSION = true ? "0.11.0" : "0.1.0";
|
|
3497
3515
|
var RepositoryExporter = class {
|
|
3498
3516
|
storage;
|
|
3499
3517
|
provenance;
|
|
@@ -3926,7 +3944,10 @@ var RepositoryImporter = class {
|
|
|
3926
3944
|
let relationshipsImported = 0;
|
|
3927
3945
|
let chunksCompleted = 0;
|
|
3928
3946
|
for await (const chunk of chunks) {
|
|
3929
|
-
const bulkResult = await this.storage.importBulk(target.repositoryId, [chunk], {
|
|
3947
|
+
const bulkResult = await this.storage.importBulk(target.repositoryId, [chunk], {
|
|
3948
|
+
...options.bulk,
|
|
3949
|
+
skipExistenceCheck: true
|
|
3950
|
+
});
|
|
3930
3951
|
entitiesImported += bulkResult.entitiesImported;
|
|
3931
3952
|
relationshipsImported += bulkResult.relationshipsImported;
|
|
3932
3953
|
chunksCompleted++;
|
|
@@ -5617,6 +5638,7 @@ var NoOpEmbeddingProvider = class {
|
|
|
5617
5638
|
GraphTraversalProviderRequiredError,
|
|
5618
5639
|
GremlinCompiler,
|
|
5619
5640
|
ImportError,
|
|
5641
|
+
ImportThrottleAbortError,
|
|
5620
5642
|
InMemorySearchProvider,
|
|
5621
5643
|
InMemoryStorageProvider,
|
|
5622
5644
|
InvalidInputError,
|