@tangle-network/agent-app 0.63.5 → 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.
|
@@ -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. */
|
package/dist/web-react/index.js
CHANGED
package/package.json
CHANGED