@tangle-network/sdk-provider-claude-code 0.6.0 → 0.6.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/dist/index.mjs +3 -11
- package/package.json +12 -12
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
2
2
|
import { InteractionKind, ProxySecretBindingSchema, ProxySecretGrantSchema, ProxySecretReceiptSchema, ProxySecretUpdateControlsSchema, ProxySecretsSchema, isProxySecretScopeAttenuation, ownPropertyRecordSchema, proxySecretPresentationsEqual, resolveTangleRouterDefaults } from "@tangle-network/agent-interface";
|
|
3
|
-
import { CliProviderAdapterBase, InteractionBroker, InteractionMcpServer, TerminalPlanSupport, executionCorrelationHeaders, interactionMcpToolName, interactionToggleEnabled, jsonEventParser, localMcpArgv, localMcpEnv, nativeEffortArgs, partitionImageAttachments, reasoningEvents, recordCliTokenUsage, sessionObservedEvents, streamPartBase, textSnapshotEvents, toolResultEvents, toolStartEvents, trackFilePart, withTurnInteractions } from "@tangle-network/sdk-provider-cli-base";
|
|
3
|
+
import { CliProviderAdapterBase, EXECUTION_CORRELATION_HEADERS, InteractionBroker, InteractionMcpServer, TerminalPlanSupport, executionCorrelationHeaders, interactionMcpToolName, interactionToggleEnabled, jsonEventParser, localMcpArgv, localMcpEnv, nativeEffortArgs, partitionImageAttachments, reasoningEvents, recordCliTokenUsage, sessionObservedEvents, streamPartBase, textSnapshotEvents, toolResultEvents, toolStartEvents, trackFilePart, withTurnInteractions } from "@tangle-network/sdk-provider-cli-base";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { HELD_SPARE_IDLE_MS, argAfter, createDeferredParser, createHeldSpareRegistry, launchDifferences, shellQuote } from "@tangle-network/sdk-cli-runner";
|
|
6
6
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -260,8 +260,7 @@ z.array(z.strictObject({
|
|
|
260
260
|
grant: ProxySecretGrantSchema,
|
|
261
261
|
placeholder: z.string().min(1),
|
|
262
262
|
slot: z.string().refine(isDeclaredSecretSlotEnvVar),
|
|
263
|
-
issuerExpiresAt: z.iso.datetime()
|
|
264
|
-
native: z.unknown().optional()
|
|
263
|
+
issuerExpiresAt: z.iso.datetime()
|
|
265
264
|
})).superRefine((materials, ctx) => {
|
|
266
265
|
const bindings = ProxySecretsSchema.safeParse(materials.map((m) => m.binding));
|
|
267
266
|
const unique = (values) => new Set(values).size === values.length;
|
|
@@ -987,14 +986,7 @@ const HELD_SPARE_RESERVATION_MS = 3e4;
|
|
|
987
986
|
* differ in: the turn's correlation headers, which the key proxy puts on the
|
|
988
987
|
* spare's requests, and the marker that names the spare to the proxy.
|
|
989
988
|
*/
|
|
990
|
-
const HELD_SPARE_IGNORED_HEADERS = new Set([
|
|
991
|
-
"x-tangle-environment-id",
|
|
992
|
-
"x-tangle-session-id",
|
|
993
|
-
"x-tangle-execution-id",
|
|
994
|
-
"x-tangle-trace-id",
|
|
995
|
-
"x-tangle-managed-quote-version",
|
|
996
|
-
MODEL_KEY_PROXY_SPARE_HEADER
|
|
997
|
-
]);
|
|
989
|
+
const HELD_SPARE_IGNORED_HEADERS = new Set([...EXECUTION_CORRELATION_HEADERS, MODEL_KEY_PROXY_SPARE_HEADER]);
|
|
998
990
|
/**
|
|
999
991
|
* What must match between a spare's environment and its turn's: every value
|
|
1000
992
|
* as it is, bar the ANTHROPIC_CUSTOM_HEADERS lines the turn may differ in.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sdk-provider-claude-code",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
"!dist/**/*.map"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@modelcontextprotocol/sdk": "^1.32.
|
|
19
|
-
"@tangle-network/agent-interface": "^5.10.
|
|
20
|
-
"@tangle-network/agent-profile-materialize": "1.1.
|
|
21
|
-
"@tangle-network/sdk-cli-runner": "0.3.
|
|
22
|
-
"@tangle-network/sdk-provider-cli-base": "0.13.
|
|
23
|
-
"@tangle-network/sdk-session-persistence": "0.7.
|
|
24
|
-
"zod": "4.6.
|
|
18
|
+
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
19
|
+
"@tangle-network/agent-interface": "^5.10.20",
|
|
20
|
+
"@tangle-network/agent-profile-materialize": "1.1.56",
|
|
21
|
+
"@tangle-network/sdk-cli-runner": "0.3.9",
|
|
22
|
+
"@tangle-network/sdk-provider-cli-base": "0.13.19",
|
|
23
|
+
"@tangle-network/sdk-session-persistence": "0.7.5",
|
|
24
|
+
"zod": "4.6.7"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "^25.9.9",
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
"registry": "https://registry.npmjs.org"
|
|
36
36
|
},
|
|
37
37
|
"tangleRelease": {
|
|
38
|
-
"sourceSha": "
|
|
39
|
-
"mergedAt": "2026-11-
|
|
38
|
+
"sourceSha": "7f35269c55c7dbf9cc12ef1fd210bd1f9f8eab58",
|
|
39
|
+
"mergedAt": "2026-11-06T21:08:17-08:00"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "tsdown",
|
|
43
43
|
"dev": "tsdown --watch",
|
|
44
44
|
"check-types": "node ../../scripts/tsc-native.mjs --noEmit",
|
|
45
|
-
"test": "vitest run",
|
|
46
|
-
"test:watch": "vitest"
|
|
45
|
+
"test": "vitest run --config ../../vitest.config.cjs",
|
|
46
|
+
"test:watch": "vitest --config ../../vitest.config.cjs"
|
|
47
47
|
}
|
|
48
48
|
}
|