@pentatonic-ai/ai-agent-sdk 0.10.25 → 0.10.26

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 CHANGED
@@ -878,7 +878,7 @@ function fireAndForgetEmit(clientConfig, sessionOpts, messages, result, model) {
878
878
  }
879
879
 
880
880
  // src/telemetry.js
881
- var VERSION = "0.10.25";
881
+ var VERSION = "0.10.26";
882
882
  var TELEMETRY_URL = "https://sdk-telemetry.philip-134.workers.dev";
883
883
  function machineId() {
884
884
  const raw = typeof process !== "undefined" ? `${process.env?.USER || process.env?.USERNAME || "u"}:${process.platform || "x"}:${process.arch || "x"}` : "browser";
package/dist/index.js CHANGED
@@ -847,7 +847,7 @@ function fireAndForgetEmit(clientConfig, sessionOpts, messages, result, model) {
847
847
  }
848
848
 
849
849
  // src/telemetry.js
850
- var VERSION = "0.10.25";
850
+ var VERSION = "0.10.26";
851
851
  var TELEMETRY_URL = "https://sdk-telemetry.philip-134.workers.dev";
852
852
  function machineId() {
853
853
  const raw = typeof process !== "undefined" ? `${process.env?.USER || process.env?.USERNAME || "u"}:${process.platform || "x"}:${process.arch || "x"}` : "browser";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pentatonic-ai/ai-agent-sdk",
3
- "version": "0.10.25",
3
+ "version": "0.10.26",
4
4
  "description": "TES SDK — LLM observability and lifecycle tracking via Pentatonic Thing Event System. Track token usage, tool calls, and conversations. Manage things through event-sourced lifecycle stages with AI enrichment and vector search.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -2180,7 +2180,15 @@ def upsert_relationships(
2180
2180
  %s, %s, %s, %s, %s, %s, %s, %s, %s::disclosure_class,
2181
2181
  %s::jsonb, COALESCE(%s, NOW()), COALESCE(%s, NOW())
2182
2182
  )
2183
- ON CONFLICT (id) DO UPDATE SET
2183
+ -- Conflict on the DECLARED idempotency key (arena, from, to,
2184
+ -- type), NOT the content-hash `id`. Fusion-Drive entity merges
2185
+ -- repoint from/to onto the master but keep the pre-merge `id`
2186
+ -- (fusion_drive/merge.py), so `id` no longer equals
2187
+ -- _content_id(current tuple). Conflicting on `id` then MISSES
2188
+ -- the repointed row and slams into the UNIQUE(arena,from,to,
2189
+ -- type) constraint — the UniqueViolation that was failing live
2190
+ -- distillation + the SEE-490 backfill on merged-entity edges.
2191
+ ON CONFLICT (arena, from_entity_id, to_entity_id, relationship_type) DO UPDATE SET
2184
2192
  weight = relationships.weight + EXCLUDED.weight,
2185
2193
  provenance_event_ids = (
2186
2194
  SELECT ARRAY(SELECT DISTINCT UNNEST(relationships.provenance_event_ids || EXCLUDED.provenance_event_ids))