@tangle-network/agent-app 0.63.4 → 0.63.6

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.
@@ -20,7 +20,7 @@ import {
20
20
  createSandboxRunTool,
21
21
  escalationHints,
22
22
  resolveTurnStorage
23
- } from "./chunk-72ASTUPN.js";
23
+ } from "./chunk-OCR36QGZ.js";
24
24
  import {
25
25
  addStepFinishUsage,
26
26
  assistantRowIdForTurn,
@@ -3378,4 +3378,4 @@ export {
3378
3378
  createChatTurnRoutes,
3379
3379
  streamChatRouteAsSandboxEvents
3380
3380
  };
3381
- //# sourceMappingURL=chunk-UXK5EBQT.js.map
3381
+ //# sourceMappingURL=chunk-XYSKMHWG.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createChatTurnRoutes,
3
3
  streamChatRouteAsSandboxEvents
4
- } from "../chunk-UXK5EBQT.js";
4
+ } from "../chunk-XYSKMHWG.js";
5
5
  import "../chunk-KH4QSBNI.js";
6
6
  import "../chunk-CQGEGPY7.js";
7
7
  import "../chunk-RN4WPTBH.js";
@@ -9,7 +9,7 @@ import "../chunk-WP2GYFZ4.js";
9
9
  import "../chunk-4DBHC63F.js";
10
10
  import "../chunk-MH74DY2I.js";
11
11
  import "../chunk-MM6RLOXF.js";
12
- import "../chunk-72ASTUPN.js";
12
+ import "../chunk-OCR36QGZ.js";
13
13
  import "../chunk-F4TUZYMX.js";
14
14
  import "../chunk-N6URQ6DM.js";
15
15
  import "../chunk-Z4RD5UF7.js";
@@ -101,7 +101,7 @@ import {
101
101
  warmKey,
102
102
  warmReceiptId,
103
103
  warmWeekdayOf
104
- } from "../chunk-72ASTUPN.js";
104
+ } from "../chunk-OCR36QGZ.js";
105
105
  import {
106
106
  createWarmCache
107
107
  } from "../chunk-F4TUZYMX.js";
@@ -33,6 +33,8 @@ export interface DurablePlanCurrentInput {
33
33
  }
34
34
  /** Define methods to obtain and decide durable plan decisions asynchronously */
35
35
  export interface DurablePlanDecisionClient {
36
+ /** Stable transport context, independent of the client object's identity. */
37
+ readonly scopeKey?: string;
36
38
  current: (input: DurablePlanCurrentInput) => Promise<DurablePlanDecisionResult>;
37
39
  decide: (input: DurablePlanDecisionInput) => Promise<DurablePlanDecisionResult>;
38
40
  }
@@ -46,6 +48,9 @@ export declare class DurablePlanClientError extends Error {
46
48
  /** Define configuration options for creating a durable plan decision client */
47
49
  export interface DurablePlanDecisionClientOptions {
48
50
  url: string | ((input: DurablePlanCurrentInput | DurablePlanDecisionInput) => string);
51
+ /** Non-secret endpoint/workspace/authentication identity. Defaults to a
52
+ * string URL; function URLs and authentication changes need an explicit key. */
53
+ scopeKey?: string;
49
54
  body?: Record<string, unknown> | ((input: DurablePlanDecisionInput) => Record<string, unknown>);
50
55
  fetchImpl?: typeof fetch;
51
56
  }
@@ -57,6 +62,11 @@ export declare function createDurablePlanDecisionClient(options: DurablePlanDeci
57
62
  export interface UseDurablePlanFlowOptions {
58
63
  plan: ChatPlan;
59
64
  client: DurablePlanDecisionClient;
65
+ /** Stable, non-secret identity of the endpoint/workspace/authentication
66
+ * context. Change it when that context changes even if the plan does not.
67
+ * Defaults to client.scopeKey. Incidental client object recreation does not
68
+ * change request lifetime. */
69
+ scopeKey?: string;
60
70
  /** Must be idempotent by receipt.receiptId. */
61
71
  attachFollowUp?: (receipt: DurablePlanFollowUpReceipt, plan: ChatPlan, decision: DurablePlanDecision) => Promise<void> | void;
62
72
  /** Restore an already-decided plan and bound failed follow-up attachment attempts. */
@@ -143,7 +143,7 @@ import {
143
143
  withoutRecordGridCreated,
144
144
  withoutRecordGridRemoved,
145
145
  withoutRecordGridUpdate
146
- } from "../chunk-4CALWPN5.js";
146
+ } from "../chunk-L6BS2XTE.js";
147
147
  import {
148
148
  MENTION_PILL_CLASS
149
149
  } from "../chunk-3HUFJ5LO.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-app",
3
- "version": "0.63.4",
3
+ "version": "0.63.6",
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": [