@agents24/node 0.5.35 → 0.5.37

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # `@agents24/node`
2
2
 
3
- Last Updated: 2026-10-21
3
+ Last Updated: 2026-11-08
4
4
 
5
5
  `@agents24/node/relay` exports `createArtifactRelay()` for one outbound app-profile connection serving multiple draft/published Artifacts. `relayClients` manages durable client identity, status, revocation, and short-lived tickets. Persist the client ID outside conversation state and pass `relay_client_id` at initial run admission. Local URLs and signing secrets stay in the application. See [the relay contract](https://github.com/agents24/talmudpedia/blob/main/docs/design-docs/shared_artifact_relay.md).
6
6
 
@@ -107,3 +107,7 @@ if (records.length) {
107
107
  ## Organization model routing
108
108
 
109
109
  `agents24.models` exposes the official model library and BYOK routes: `list`, `get`, `listOfferings`, `addProvider`, `selectProvider`, `updateProvider`, and `removeProvider`. BYOK creation requires an exact compatible offering and either an existing credential reference or an inline credential stored encrypted by the platform. Route selection is explicit and supports `expected_revision` for concurrent-update protection. Organization API keys have full organization permissions; they do not grant platform administration.
110
+
111
+ ## Interactive completion observation
112
+
113
+ Use `embed.waitForAgentRun(agentId, runId, scope, { observation: "stream", timeoutMs: 120000 })` to wake on durable run completion without polling backoff. It reads the authoritative final snapshot, preserves the full customer/integration/chat scope, and resumes its cursor after an observation lease ends. Timeout or abort stops observation without cancelling the run. The existing default `observation: "poll"` retains 250ms–2s backoff. `GraphDefinition.workflow_contract.exports` types selected node-output declarations.
@@ -1,5 +1,5 @@
1
1
  {
2
- "contractHash": "0855723f1fcc295edf523aca825e9b9c43b120c10e8ba261979da9eb2cc3768e",
2
+ "contractHash": "c7c12d044b8b1ae4b65441fa8c33a59a1d9a7c0f0eda977353a5ba8aae54b1ae",
3
3
  "contractVersion": "0.3.0",
4
4
  "corpus": "conformance/v1/corpus.json",
5
5
  "generatedBy": "@agents24/sdk-contract",
@@ -19,7 +19,7 @@
19
19
  "runtime": "run-stream.v3"
20
20
  },
21
21
  "@agents24/node": {
22
- "contract": "0855723f1fcc295edf523aca825e9b9c43b120c10e8ba261979da9eb2cc3768e",
22
+ "contract": "c7c12d044b8b1ae4b65441fa8c33a59a1d9a7c0f0eda977353a5ba8aae54b1ae",
23
23
  "node": "^22.0.0 || ^24.0.0"
24
24
  },
25
25
  "@agents24/react": {
@@ -31,7 +31,7 @@
31
31
  "protocolOwner": "@agents24/client"
32
32
  },
33
33
  "agents24": {
34
- "contract": "0855723f1fcc295edf523aca825e9b9c43b120c10e8ba261979da9eb2cc3768e",
34
+ "contract": "c7c12d044b8b1ae4b65441fa8c33a59a1d9a7c0f0eda977353a5ba8aae54b1ae",
35
35
  "python": ">=3.10"
36
36
  }
37
37
  },
@@ -48,7 +48,7 @@
48
48
  "schemaVersion": "agents24.compatibility.v1",
49
49
  "targetOperationCounts": {
50
50
  "client": 41,
51
- "node": 211,
52
- "python": 205
51
+ "node": 222,
52
+ "python": 216
53
53
  }
54
54
  }
package/dist/bff.cjs CHANGED
@@ -853,6 +853,7 @@ function createAgents24BffHandlerWithResolver(options, resolveCustomerIdentity)
853
853
  onControl: control,
854
854
  leaseSeconds: 60,
855
855
  streamFeatures: url.searchParams.get("stream_features") || "",
856
+ onPreview: (frame) => write(frame),
856
857
  ...url.searchParams.get("thread_id") ? { threadId: url.searchParams.get("thread_id") } : {}
857
858
  });
858
859
  }, void 0, void 0, streamFailure(request, "run.attach"), request.signal);