@tangle-network/agent-app 0.51.7 → 0.51.9

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.
@@ -0,0 +1,32 @@
1
+ import type { IntelligenceClient } from '@tangle-network/agent-runtime/intelligence';
2
+ import type { ChatTurnRouteProducer } from './turn-routes';
3
+ /** Host-resolved metadata only. Neither input nor output content is exported. */
4
+ export interface ChatTurnIntelligenceOptions {
5
+ client: () => Pick<IntelligenceClient, 'traceRun'>;
6
+ sessionId: string;
7
+ userId?: string;
8
+ workspaceId?: string;
9
+ /** Exact execution identity, when retained by the execution owner. */
10
+ runId?: string;
11
+ traceId?: string;
12
+ /** Requested model. This is not a receipt for the model that served. */
13
+ model?: string;
14
+ /** Existing transport cancellation evidence; grants no new abort authority. */
15
+ signal?: AbortSignal;
16
+ /** Receives no exception text, which may contain private customer material. */
17
+ onObservationError?: () => void;
18
+ }
19
+ /**
20
+ * Observe the source iterator without an execution loop, relay, queue or eager
21
+ * pull. The source still owns cancellation and serializes its own operations.
22
+ * Stream termination is not task correctness, reviewer acceptance or delivery.
23
+ */
24
+ export declare function observeChatTurnStream<TEvent>(source: AsyncGenerator<TEvent, void, unknown>, options: ChatTurnIntelligenceOptions): AsyncGenerator<TEvent, void, unknown>;
25
+ /**
26
+ * Adapter for product producer factories. It preserves every declared
27
+ * ChatTurnRouteProducer projection, lazily bound to the original receiver,
28
+ * including class-backed or frozen producers. No output is read.
29
+ */
30
+ export declare function produceChatTurnWithIntelligence(options: ChatTurnIntelligenceOptions & {
31
+ produce: () => ChatTurnRouteProducer | Promise<ChatTurnRouteProducer>;
32
+ }): Promise<ChatTurnRouteProducer>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-app",
3
- "version": "0.51.7",
3
+ "version": "0.51.9",
4
4
  "packageManager": "pnpm@11.24.0",
5
5
  "description": "Build agent applications with typed chat, tools, sandboxes, integrations, billing, and evaluation.",
6
6
  "keywords": [
@@ -597,7 +597,7 @@
597
597
  "@tangle-network/agent-profile-materialize": "0.20.1",
598
598
  "@tangle-network/agent-runtime": "0.289.1",
599
599
  "@tangle-network/brand": "1.10.0",
600
- "@tangle-network/hub-sdk": "0.22.1",
600
+ "@tangle-network/hub-sdk": "0.23.0",
601
601
  "@tangle-network/sandbox": "0.59.0",
602
602
  "@tangle-network/sandbox-ui": "0.117.0",
603
603
  "@tangle-network/ui": "11.12.0",
@@ -668,7 +668,7 @@
668
668
  "@tangle-network/agent-profile-materialize": ">=0.20.1 <0.21.0",
669
669
  "@tangle-network/agent-runtime": ">=0.282.2 <0.284.0 || >=0.285.0 <0.286.0 || >=0.289.1 <0.290.0 || >=0.291.0 <0.292.0",
670
670
  "@tangle-network/brand": ">=1.6.0",
671
- "@tangle-network/hub-sdk": ">=0.19.3 <0.21.0 || >=0.21.0 <0.22.0 || >=0.22.1 <0.23.0",
671
+ "@tangle-network/hub-sdk": ">=0.19.3 <0.21.0 || >=0.21.0 <0.22.0 || >=0.22.1 <0.24.0",
672
672
  "@tangle-network/sandbox": ">=0.45.0 <0.48.0 || ^0.49.0 || ^0.50.0 || ^0.51.0 || ^0.52.0 || ^0.53.0 || ^0.54.0 || ^0.55.0 || >=0.58.1 <0.60.0 || >=0.60.3 <0.61.0",
673
673
  "@tangle-network/sandbox-ui": ">=0.117.0 <0.118.0",
674
674
  "@tangle-network/ui": ">=11.11.3 <12.0.0",