@utaba/deep-memory 0.5.0 → 0.6.1
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/index.cjs +364 -362
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +362 -361
- package/dist/index.js.map +1 -1
- package/dist/providers/index.d.cts +18 -10
- package/dist/providers/index.d.ts +18 -10
- package/package.json +1 -1
|
@@ -81,20 +81,28 @@ interface LockHandle {
|
|
|
81
81
|
*/
|
|
82
82
|
interface GraphTraversalProvider {
|
|
83
83
|
/**
|
|
84
|
-
* Execute a structured traversal
|
|
85
|
-
* The
|
|
86
|
-
*
|
|
87
|
-
* not a requirement.
|
|
84
|
+
* Execute a structured traversal described by a TraversalSpec.
|
|
85
|
+
* The provider owns compilation to its native dialect — the core
|
|
86
|
+
* never hands down a pre-compiled query string.
|
|
88
87
|
*/
|
|
89
|
-
traverse(repositoryId: string, spec: TraversalSpec
|
|
88
|
+
traverse(repositoryId: string, spec: TraversalSpec): Promise<TraversalResult>;
|
|
90
89
|
/**
|
|
91
90
|
* Execute a native graph query (Gremlin, Cypher, etc.).
|
|
92
|
-
* The library passes the query string through without modification.
|
|
93
|
-
* The provider is responsible for execution and result mapping.
|
|
94
91
|
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
92
|
+
* ⚠️ ELEVATED PRIVILEGE — SYSTEM-LEVEL OPERATION ⚠️
|
|
93
|
+
*
|
|
94
|
+
* This is an unscoped pass-through. The library does not rewrite the query,
|
|
95
|
+
* does not inject partition or repository scoping, and performs no
|
|
96
|
+
* validation on the query string or bindings. A single call may reach any
|
|
97
|
+
* data the underlying store exposes to the connection — across partitions,
|
|
98
|
+
* repositories, or tenants.
|
|
99
|
+
*
|
|
100
|
+
* DO NOT expose this method to AI agents, end users, or any untrusted
|
|
101
|
+
* caller. It is intended for administrative tooling, migrations,
|
|
102
|
+
* diagnostics, and trusted internal operations only.
|
|
103
|
+
*
|
|
104
|
+
* For agent-facing graph queries use {@link traverse}, which takes a
|
|
105
|
+
* structured TraversalSpec and lets the provider enforce repository scoping.
|
|
98
106
|
*/
|
|
99
107
|
executeNativeQuery(repositoryId: string, query: string, params?: Record<string, unknown>): Promise<TraversalResult>;
|
|
100
108
|
/**
|
|
@@ -81,20 +81,28 @@ interface LockHandle {
|
|
|
81
81
|
*/
|
|
82
82
|
interface GraphTraversalProvider {
|
|
83
83
|
/**
|
|
84
|
-
* Execute a structured traversal
|
|
85
|
-
* The
|
|
86
|
-
*
|
|
87
|
-
* not a requirement.
|
|
84
|
+
* Execute a structured traversal described by a TraversalSpec.
|
|
85
|
+
* The provider owns compilation to its native dialect — the core
|
|
86
|
+
* never hands down a pre-compiled query string.
|
|
88
87
|
*/
|
|
89
|
-
traverse(repositoryId: string, spec: TraversalSpec
|
|
88
|
+
traverse(repositoryId: string, spec: TraversalSpec): Promise<TraversalResult>;
|
|
90
89
|
/**
|
|
91
90
|
* Execute a native graph query (Gremlin, Cypher, etc.).
|
|
92
|
-
* The library passes the query string through without modification.
|
|
93
|
-
* The provider is responsible for execution and result mapping.
|
|
94
91
|
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
92
|
+
* ⚠️ ELEVATED PRIVILEGE — SYSTEM-LEVEL OPERATION ⚠️
|
|
93
|
+
*
|
|
94
|
+
* This is an unscoped pass-through. The library does not rewrite the query,
|
|
95
|
+
* does not inject partition or repository scoping, and performs no
|
|
96
|
+
* validation on the query string or bindings. A single call may reach any
|
|
97
|
+
* data the underlying store exposes to the connection — across partitions,
|
|
98
|
+
* repositories, or tenants.
|
|
99
|
+
*
|
|
100
|
+
* DO NOT expose this method to AI agents, end users, or any untrusted
|
|
101
|
+
* caller. It is intended for administrative tooling, migrations,
|
|
102
|
+
* diagnostics, and trusted internal operations only.
|
|
103
|
+
*
|
|
104
|
+
* For agent-facing graph queries use {@link traverse}, which takes a
|
|
105
|
+
* structured TraversalSpec and lets the provider enforce repository scoping.
|
|
98
106
|
*/
|
|
99
107
|
executeNativeQuery(repositoryId: string, query: string, params?: Record<string, unknown>): Promise<TraversalResult>;
|
|
100
108
|
/**
|