@utaba/deep-memory 0.2.0 → 0.4.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-DR9HLYHJ.d.ts → StorageProvider-CBhwqavV.d.cts} +11 -6
- package/dist/{StorageProvider-C3tKhfuw.d.cts → StorageProvider-ynfpc5wz.d.ts} +11 -6
- package/dist/index.cjs +391 -102
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +33 -14
- package/dist/index.d.ts +33 -14
- package/dist/index.js +391 -102
- package/dist/index.js.map +1 -1
- package/dist/{portability-DdjsCB07.d.cts → portability-B-8J4nQQ.d.cts} +36 -18
- package/dist/{portability-DdjsCB07.d.ts → portability-B-8J4nQQ.d.ts} +36 -18
- package/dist/providers/index.d.cts +11 -5
- package/dist/providers/index.d.ts +11 -5
- package/dist/testing/conformance.cjs +26 -4
- package/dist/testing/conformance.cjs.map +1 -1
- package/dist/testing/conformance.d.cts +2 -2
- package/dist/testing/conformance.d.ts +2 -2
- package/dist/testing/conformance.js +26 -4
- package/dist/testing/conformance.js.map +1 -1
- package/dist/{traversal-9JdiqjZ9.d.ts → traversal-BdmDLMxV.d.ts} +98 -11
- package/dist/{traversal-BB_yERbf.d.cts → traversal-Llalk03r.d.cts} +98 -11
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.cts +28 -4
- package/dist/types/index.d.ts +28 -4
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as StorageRepositoryConfig, c as StoredRepository,
|
|
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-B-8J4nQQ.cjs';
|
|
2
2
|
|
|
3
3
|
/** Result returned by ensureSchema describing what actions were taken. */
|
|
4
4
|
interface EnsureSchemaResult {
|
|
@@ -22,8 +22,8 @@ interface EnsureSchemaResult {
|
|
|
22
22
|
* based on the requested detail level.
|
|
23
23
|
*/
|
|
24
24
|
interface StorageProvider {
|
|
25
|
-
/** Optional
|
|
26
|
-
|
|
25
|
+
/** Optional initialization (e.g., database connection) */
|
|
26
|
+
initialize?(): Promise<void>;
|
|
27
27
|
/** Optional cleanup (e.g., close connections) */
|
|
28
28
|
dispose?(): Promise<void>;
|
|
29
29
|
/** Optional schema creation / migration (e.g., create tables if they don't exist) */
|
|
@@ -32,7 +32,12 @@ interface StorageProvider {
|
|
|
32
32
|
getRepository(repositoryId: string): Promise<StoredRepository | null>;
|
|
33
33
|
listRepositories(filter?: RepositoryFilter): Promise<PaginatedResult<StoredRepositorySummary>>;
|
|
34
34
|
updateRepository(repositoryId: string, updates: RepositoryUpdate): Promise<StoredRepository>;
|
|
35
|
-
deleteRepository(repositoryId: string): Promise<void>;
|
|
35
|
+
deleteRepository(repositoryId: string, onProgress?: DeleteProgressCallback): Promise<void>;
|
|
36
|
+
/** Delete all entities and relationships in a repository without deleting the repository itself */
|
|
37
|
+
deleteAllContents(repositoryId: string, onProgress?: DeleteProgressCallback): Promise<{
|
|
38
|
+
deletedEntities: number;
|
|
39
|
+
deletedRelationships: number;
|
|
40
|
+
}>;
|
|
36
41
|
getRepositoryStats(repositoryId: string): Promise<RepositoryStats>;
|
|
37
42
|
getVocabulary(repositoryId: string): Promise<MemoryVocabulary>;
|
|
38
43
|
saveVocabulary(repositoryId: string, vocabulary: MemoryVocabulary): Promise<void>;
|
|
@@ -57,11 +62,11 @@ interface StorageProvider {
|
|
|
57
62
|
deleteRelationshipsByType(repositoryId: string, relationshipType: string): Promise<{
|
|
58
63
|
deletedRelationships: number;
|
|
59
64
|
}>;
|
|
60
|
-
|
|
65
|
+
exploreNeighborhood(repositoryId: string, entityId: string, options: StorageExploreOptions): Promise<StorageNeighborhood>;
|
|
61
66
|
findPaths(repositoryId: string, sourceId: string, targetId: string, options: StoragePathOptions): Promise<StoragePathResult>;
|
|
62
67
|
getTimeline(repositoryId: string, entityId: string, options: StorageTimelineOptions): Promise<StorageTimelineResult>;
|
|
63
68
|
exportAll(repositoryId: string): AsyncIterable<ExportChunk>;
|
|
64
|
-
importBulk(repositoryId: string, data: ImportChunk[]): Promise<BulkImportResult>;
|
|
69
|
+
importBulk(repositoryId: string, data: ImportChunk[], options?: BulkImportOptions): Promise<BulkImportResult>;
|
|
65
70
|
}
|
|
66
71
|
|
|
67
72
|
export type { EnsureSchemaResult as E, StorageProvider as S };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as StorageRepositoryConfig, c as StoredRepository,
|
|
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-B-8J4nQQ.js';
|
|
2
2
|
|
|
3
3
|
/** Result returned by ensureSchema describing what actions were taken. */
|
|
4
4
|
interface EnsureSchemaResult {
|
|
@@ -22,8 +22,8 @@ interface EnsureSchemaResult {
|
|
|
22
22
|
* based on the requested detail level.
|
|
23
23
|
*/
|
|
24
24
|
interface StorageProvider {
|
|
25
|
-
/** Optional
|
|
26
|
-
|
|
25
|
+
/** Optional initialization (e.g., database connection) */
|
|
26
|
+
initialize?(): Promise<void>;
|
|
27
27
|
/** Optional cleanup (e.g., close connections) */
|
|
28
28
|
dispose?(): Promise<void>;
|
|
29
29
|
/** Optional schema creation / migration (e.g., create tables if they don't exist) */
|
|
@@ -32,7 +32,12 @@ interface StorageProvider {
|
|
|
32
32
|
getRepository(repositoryId: string): Promise<StoredRepository | null>;
|
|
33
33
|
listRepositories(filter?: RepositoryFilter): Promise<PaginatedResult<StoredRepositorySummary>>;
|
|
34
34
|
updateRepository(repositoryId: string, updates: RepositoryUpdate): Promise<StoredRepository>;
|
|
35
|
-
deleteRepository(repositoryId: string): Promise<void>;
|
|
35
|
+
deleteRepository(repositoryId: string, onProgress?: DeleteProgressCallback): Promise<void>;
|
|
36
|
+
/** Delete all entities and relationships in a repository without deleting the repository itself */
|
|
37
|
+
deleteAllContents(repositoryId: string, onProgress?: DeleteProgressCallback): Promise<{
|
|
38
|
+
deletedEntities: number;
|
|
39
|
+
deletedRelationships: number;
|
|
40
|
+
}>;
|
|
36
41
|
getRepositoryStats(repositoryId: string): Promise<RepositoryStats>;
|
|
37
42
|
getVocabulary(repositoryId: string): Promise<MemoryVocabulary>;
|
|
38
43
|
saveVocabulary(repositoryId: string, vocabulary: MemoryVocabulary): Promise<void>;
|
|
@@ -57,11 +62,11 @@ interface StorageProvider {
|
|
|
57
62
|
deleteRelationshipsByType(repositoryId: string, relationshipType: string): Promise<{
|
|
58
63
|
deletedRelationships: number;
|
|
59
64
|
}>;
|
|
60
|
-
|
|
65
|
+
exploreNeighborhood(repositoryId: string, entityId: string, options: StorageExploreOptions): Promise<StorageNeighborhood>;
|
|
61
66
|
findPaths(repositoryId: string, sourceId: string, targetId: string, options: StoragePathOptions): Promise<StoragePathResult>;
|
|
62
67
|
getTimeline(repositoryId: string, entityId: string, options: StorageTimelineOptions): Promise<StorageTimelineResult>;
|
|
63
68
|
exportAll(repositoryId: string): AsyncIterable<ExportChunk>;
|
|
64
|
-
importBulk(repositoryId: string, data: ImportChunk[]): Promise<BulkImportResult>;
|
|
69
|
+
importBulk(repositoryId: string, data: ImportChunk[], options?: BulkImportOptions): Promise<BulkImportResult>;
|
|
65
70
|
}
|
|
66
71
|
|
|
67
72
|
export type { EnsureSchemaResult as E, StorageProvider as S };
|