@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.
@@ -81,20 +81,28 @@ interface LockHandle {
81
81
  */
82
82
  interface GraphTraversalProvider {
83
83
  /**
84
- * Execute a structured traversal compiled from a TraversalSpec.
85
- * The library may pass both the spec and a pre-compiled query string.
86
- * The provider can use either — the compiled query is a suggestion,
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, compiledQuery?: string): Promise<TraversalResult>;
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
- * Implementers decide whether to expose this to agents.
96
- * The library does not add safety guards — that is the implementer's
97
- * responsibility.
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 compiled from a TraversalSpec.
85
- * The library may pass both the spec and a pre-compiled query string.
86
- * The provider can use either — the compiled query is a suggestion,
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, compiledQuery?: string): Promise<TraversalResult>;
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
- * Implementers decide whether to expose this to agents.
96
- * The library does not add safety guards — that is the implementer's
97
- * responsibility.
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
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utaba/deep-memory",
3
- "version": "0.5.0",
3
+ "version": "0.6.1",
4
4
  "description": "Vocabulary-driven graph memory for AI agents",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",