@cynodia/axiom-agent-api 0.13.0-alpha.1 → 0.13.1-alpha.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/live-query.d.ts +5 -0
- package/dist/live-query.js +2 -1
- package/package.json +2 -2
package/dist/live-query.d.ts
CHANGED
|
@@ -29,6 +29,11 @@ export interface LiveQueryAnalysis {
|
|
|
29
29
|
dependencies: {
|
|
30
30
|
entityIds: string[];
|
|
31
31
|
stateIds: string[];
|
|
32
|
+
/**
|
|
33
|
+
* `StateDef` ids a clause references that the query cannot bind (spec13.1 F2). Non-empty
|
|
34
|
+
* ⇒ the query is not validly executable and `capability` is `not-live-capable`.
|
|
35
|
+
*/
|
|
36
|
+
unsupportedStateRefs: string[];
|
|
32
37
|
broad: boolean;
|
|
33
38
|
/** The read policy AND-ed into every evaluation, if one governs the source entity. */
|
|
34
39
|
readPolicyId: string | null;
|
package/dist/live-query.js
CHANGED
|
@@ -21,7 +21,7 @@ export function analyzeLiveQuery(graph, queryId) {
|
|
|
21
21
|
const policy = query.readPolicyId
|
|
22
22
|
? readPolicies.find((candidate) => String(candidate.id) === String(query.readPolicyId))
|
|
23
23
|
: readPolicyForEntity(readPolicies, query.source);
|
|
24
|
-
const capability = queryLiveCapability(query, sourceIdentityFieldId);
|
|
24
|
+
const capability = queryLiveCapability(query, sourceIdentityFieldId, stateIds);
|
|
25
25
|
const aggregate = (query.aggregate?.length ?? 0) > 0 || (query.groupBy?.length ?? 0) > 0;
|
|
26
26
|
const ordered = (query.sort?.length ?? 0) > 0;
|
|
27
27
|
const deps = queryDependencies(query, policy, relationships, stateIds);
|
|
@@ -34,6 +34,7 @@ export function analyzeLiveQuery(graph, queryId) {
|
|
|
34
34
|
dependencies: {
|
|
35
35
|
entityIds: [...deps.entityIds].sort(),
|
|
36
36
|
stateIds: [...deps.stateIds].sort(),
|
|
37
|
+
unsupportedStateRefs: [...deps.unsupportedStateRefs].sort(),
|
|
37
38
|
broad: deps.broad,
|
|
38
39
|
readPolicyId: policy ? String(policy.id) : null,
|
|
39
40
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cynodia/axiom-agent-api",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.1-alpha.1",
|
|
4
4
|
"description": "Semantic queries and transactional graph transformations for AI agents.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "AskTech AS",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@cynodia/axiom-core": "0.13.
|
|
34
|
+
"@cynodia/axiom-core": "0.13.1-alpha.1"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "tsc -b tsconfig.json tsconfig.test.json",
|