@tangle-network/agent-provider-tangle 3.4.1 → 3.4.2
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 -1
- package/dist/tangle-environment.js +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -160,7 +160,8 @@ A deliberate new turn can select another eligible account. The selected referenc
|
|
|
160
160
|
The Provider grants only that named secret through the authenticated Sandbox API before native execution.
|
|
161
161
|
|
|
162
162
|
This handoff requires the SDK's `grantNativeCredential` operation and a container reporting `claudeTokenContinuations: true`.
|
|
163
|
-
Only Claude token references are qualified.
|
|
163
|
+
Only Claude token references are qualified. A Claude bundle or files reference refuses dynamic handoff before inference.
|
|
164
|
+
Codex and Kimi references keep the account the resolver selected at creation on every turn; that admission already covered the run deadline.
|
|
164
165
|
The Sidecar retires the idle adapter, preserves its original transcript HOME and native session, and acquires the newly selected credential.
|
|
165
166
|
An active credential lease refuses replacement.
|
|
166
167
|
Exact event/result replay never selects or installs credentials and leaves the admitted request unchanged.
|
|
@@ -146,9 +146,12 @@ export async function sandboxInstanceAsEnvironment(box, providerName, client, de
|
|
|
146
146
|
let selectedReference = nativeReference;
|
|
147
147
|
// Exact reads retain the admitted execution. A new operation obtains a new durable
|
|
148
148
|
// account-owner binding; retries of that operation present the same key after restart.
|
|
149
|
-
|
|
149
|
+
// Per-turn account selection exists for Claude setup tokens, whose named-grant continuation
|
|
150
|
+
// Sandbox proves. Other harnesses keep the account selected at creation, whose admission
|
|
151
|
+
// already covered the run deadline.
|
|
152
|
+
if (!replay && request?.resolveModelCredentials !== undefined && harness === "claude-code") {
|
|
150
153
|
if (!deployment.claudeTokenContinuations || box.grantNativeCredential === undefined ||
|
|
151
|
-
|
|
154
|
+
nativeReference.format !== "token") {
|
|
152
155
|
throw new Error("Tangle fresh subscription turns require proven Claude token continuation and named-grant support");
|
|
153
156
|
}
|
|
154
157
|
const profile = backend?.profile;
|