@tangle-network/agent-provider-tangle 0.10.0 → 0.11.1
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 +2 -0
- package/dist/tangle-environment-control.js +4 -0
- package/dist/tangle-prompt.js +3 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -23,6 +23,8 @@ Sandbox metadata can include caller-authored values and does not authenticate it
|
|
|
23
23
|
Reconstruct an exact session with `environment.session(reference.id, { controlRef: reference.controlRef })`; replay cursors are exclusive at both the agent interface and Sandbox session stream.
|
|
24
24
|
Result, replay, and cancel operations select that exact execution instead of whichever execution most recently changed the shared session.
|
|
25
25
|
Session status with an exact control reference reports a state only when the payload names that execution; a payload bound to a different or unnamed execution reports `unknown`.
|
|
26
|
+
`AgentTurnInput.interactions` maps unchanged to `PromptOptions.backend.interactions` for the selected Sandbox turn.
|
|
27
|
+
The requested posture is part of the retained request digest, so a retry with changed interaction behavior conflicts instead of reusing prior work.
|
|
26
28
|
|
|
27
29
|
## Two capability documents
|
|
28
30
|
|
|
@@ -15,6 +15,9 @@ export function sessionPromptRequestDigest(input, provider, environmentId, sessi
|
|
|
15
15
|
...(input.timeoutMs === undefined ? {} : { timeoutMs: input.timeoutMs }),
|
|
16
16
|
...(input.detach === undefined ? {} : { detach: input.detach }),
|
|
17
17
|
...(input.context === undefined ? {} : { context: input.context }),
|
|
18
|
+
...(input.interactions === undefined
|
|
19
|
+
? {}
|
|
20
|
+
: { interactions: input.interactions }),
|
|
18
21
|
});
|
|
19
22
|
}
|
|
20
23
|
export function hasReplayPayload(input) {
|
|
@@ -25,6 +28,7 @@ export function hasReplayPayload(input) {
|
|
|
25
28
|
input.turnId !== undefined ||
|
|
26
29
|
input.detach !== undefined ||
|
|
27
30
|
input.context !== undefined ||
|
|
31
|
+
input.interactions !== undefined ||
|
|
28
32
|
input.providerOptions !== undefined);
|
|
29
33
|
}
|
|
30
34
|
export async function interruptAfterAbort(box, reference) {
|
package/dist/tangle-prompt.js
CHANGED
|
@@ -48,6 +48,9 @@ export function promptOptionsFromTurnInput(input, target) {
|
|
|
48
48
|
return {
|
|
49
49
|
...(sessionId ? { sessionId } : {}),
|
|
50
50
|
...(input.model ? { model: input.model } : {}),
|
|
51
|
+
...(input.interactions === undefined
|
|
52
|
+
? {}
|
|
53
|
+
: { backend: { interactions: input.interactions } }),
|
|
51
54
|
...(input.timeoutMs !== undefined ? { timeoutMs: input.timeoutMs } : {}),
|
|
52
55
|
...(input.context ? { context: input.context } : {}),
|
|
53
56
|
...(input.signal ? { signal: input.signal } : {}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/agent-provider-tangle",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "AgentEnvironmentProvider adapter for Tangle sandboxes",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"LICENSE"
|
|
84
84
|
],
|
|
85
85
|
"dependencies": {
|
|
86
|
-
"@tangle-network/agent-interface": "0.
|
|
86
|
+
"@tangle-network/agent-interface": "0.54.0"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
89
|
"@tangle-network/sandbox": ">=0.23.0 <1.0.0"
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"@types/node": "25.6.0",
|
|
101
101
|
"typescript": "^6.0.3",
|
|
102
102
|
"vitest": "^4.1.5",
|
|
103
|
-
"@tangle-network/agent-provider-testkit": "0.7.
|
|
103
|
+
"@tangle-network/agent-provider-testkit": "0.7.4"
|
|
104
104
|
},
|
|
105
105
|
"scripts": {
|
|
106
106
|
"build": "tsc -p tsconfig.json",
|