@ekairos/dataset 1.22.96-beta.development.0 → 1.22.97-beta.development.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.
@@ -94,9 +94,14 @@ export async function materializeRowsToDataset(runtime, params) {
94
94
  explanation: typeof analysis.explanation === "string" ? analysis.explanation : undefined,
95
95
  })
96
96
  : null;
97
- const candidate = previous && Array.isArray(previous.predicates) && previous.predicates.length > 0
98
- ? previous
99
- : queryNotation;
97
+ // Query-backed builds are deterministic, so a freshly inferred notation
98
+ // always wins (a prior run's notation would be stale). Only agent-built
99
+ // datasets (no query) keep the notation the agent proposed during the
100
+ // build, which by now is the latest `previous`.
101
+ const candidate = queryNotation ??
102
+ (previous && Array.isArray(previous.predicates) && previous.predicates.length > 0
103
+ ? previous
104
+ : null);
100
105
  if (candidate) {
101
106
  await service.updateDatasetNotation({
102
107
  datasetId: params.datasetId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ekairos/dataset",
3
- "version": "1.22.96-beta.development.0",
3
+ "version": "1.22.97-beta.development.0",
4
4
  "description": "Pulzar Dataset Tools",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -65,9 +65,9 @@
65
65
  "test:ai-sdk:instant": "vitest run -c vitest.codex.config.mts src/tests/materializeDataset.ai-sdk.instant.test.ts"
66
66
  },
67
67
  "dependencies": {
68
- "@ekairos/domain": "^1.22.96-beta.development.0",
69
- "@ekairos/events": "^1.22.96-beta.development.0",
70
- "@ekairos/sandbox": "^1.22.96-beta.development.0",
68
+ "@ekairos/domain": "^1.22.97-beta.development.0",
69
+ "@ekairos/events": "^1.22.97-beta.development.0",
70
+ "@ekairos/sandbox": "^1.22.97-beta.development.0",
71
71
  "@instantdb/admin": "0.22.158",
72
72
  "@instantdb/core": "0.22.142",
73
73
  "ai": "^5.0.44",