@cynodia/axiom-agent-api 0.3.1-alpha.1 → 0.4.0-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.
Files changed (2) hide show
  1. package/dist/queries.js +2 -1
  2. package/package.json +2 -2
package/dist/queries.js CHANGED
@@ -245,7 +245,8 @@ export class GraphQueries {
245
245
  }
246
246
  nodesWithFieldEdge(fieldId, kinds) {
247
247
  const found = new Map();
248
- for (const edge of this.graph.listEdges()) {
248
+ // Derived relationships, so an answer never depends on edges having been written.
249
+ for (const edge of this.graph.semanticEdges()) {
249
250
  if (!kinds.includes(edge.kind) || !edgeFieldIds(edge).includes(fieldId)) {
250
251
  continue;
251
252
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cynodia/axiom-agent-api",
3
- "version": "0.3.1-alpha.1",
3
+ "version": "0.4.0-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.3.1-alpha.1"
34
+ "@cynodia/axiom-core": "0.4.0-alpha.1"
35
35
  },
36
36
  "scripts": {
37
37
  "build": "tsc -b tsconfig.json tsconfig.test.json",