@tangle-network/sdk-provider-claude-code 0.6.37 → 0.6.39
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 +10 -9
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -135,7 +135,7 @@ function parseModelKeyProxyBinding(raw) {
|
|
|
135
135
|
if (typeof baseUrl !== "string" || !LOOPBACK_BASE_URL.test(baseUrl)) throw new Error("Model key proxy binding is invalid");
|
|
136
136
|
return {
|
|
137
137
|
baseUrl,
|
|
138
|
-
passThrough:
|
|
138
|
+
passThrough: Object(parsed).passThrough === true
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
141
|
const MODEL_KEY_PROXY_HOME_PATH_PREFIX = "/v1h/";
|
|
@@ -156,6 +156,7 @@ const MODEL_PROXY_TOKENS = {
|
|
|
156
156
|
ANTHROPIC_API_KEY: "proxy-anthropic-token",
|
|
157
157
|
OPENROUTER_API_KEY: "proxy-openrouter-token",
|
|
158
158
|
TANGLE_INFERENCE_KEY: "proxy-openai-token",
|
|
159
|
+
NANOCODE_OPENAI_API_KEY: "proxy-openai-token",
|
|
159
160
|
ZAI_API_KEY: "proxy-zai-token",
|
|
160
161
|
ZHIPU_API_KEY: "proxy-zai-token"
|
|
161
162
|
};
|
|
@@ -249,7 +250,7 @@ const batchCredentialOwner = {
|
|
|
249
250
|
allocationId: z.uuid(),
|
|
250
251
|
ownerId: z.string().min(1).max(256)
|
|
251
252
|
};
|
|
252
|
-
z.
|
|
253
|
+
z.object({
|
|
253
254
|
...batchCredentialOwner,
|
|
254
255
|
childKeyId: z.string().min(1).max(200).optional(),
|
|
255
256
|
keyExpiresAt: z.iso.datetime({ offset: true }).optional()
|
|
@@ -363,20 +364,20 @@ z.discriminatedUnion("operation", [
|
|
|
363
364
|
leaseToken: sourceLeaseTokenSchema
|
|
364
365
|
})
|
|
365
366
|
]);
|
|
366
|
-
const sourceMetadataSchema = z.
|
|
367
|
+
const sourceMetadataSchema = z.object({
|
|
367
368
|
secretId: z.string().min(1),
|
|
368
369
|
key: ProxySecretBindingSchema.shape.secretRef.shape.key,
|
|
369
370
|
updatedAt: sourceRevisionSchema
|
|
370
371
|
});
|
|
371
372
|
const sourceSnapshotSchema = sourceMetadataSchema.extend({ value: z.string().min(1).max(MAX_SECRET_VALUE_LENGTH) });
|
|
372
373
|
z.discriminatedUnion("operation", [
|
|
373
|
-
z.
|
|
374
|
+
z.object({
|
|
374
375
|
operation: z.literal("read"),
|
|
375
376
|
source: sourceSnapshotSchema,
|
|
376
377
|
binding: sourceBindingSchema,
|
|
377
378
|
refreshExpiresAt: z.iso.datetime()
|
|
378
379
|
}),
|
|
379
|
-
z.
|
|
380
|
+
z.object({
|
|
380
381
|
operation: z.literal("lease"),
|
|
381
382
|
source: sourceSnapshotSchema,
|
|
382
383
|
leaseToken: sourceLeaseTokenSchema,
|
|
@@ -387,11 +388,11 @@ z.discriminatedUnion("operation", [
|
|
|
387
388
|
"replay"
|
|
388
389
|
]).default("leased")
|
|
389
390
|
}),
|
|
390
|
-
z.
|
|
391
|
+
z.object({
|
|
391
392
|
operation: z.literal("commit"),
|
|
392
393
|
source: sourceMetadataSchema
|
|
393
394
|
}),
|
|
394
|
-
z.
|
|
395
|
+
z.object({
|
|
395
396
|
operation: z.literal("release"),
|
|
396
397
|
released: z.literal(true)
|
|
397
398
|
})
|
|
@@ -401,7 +402,7 @@ const nativeCredentialProtocolSchema = z.enum([
|
|
|
401
402
|
"canonical",
|
|
402
403
|
"unselected"
|
|
403
404
|
]);
|
|
404
|
-
z.
|
|
405
|
+
z.object({
|
|
405
406
|
nativeCredentialProtocol: nativeCredentialProtocolSchema,
|
|
406
407
|
priorExposure: z.boolean(),
|
|
407
408
|
containerId: z.string().min(1),
|
|
@@ -552,7 +553,7 @@ z.object({
|
|
|
552
553
|
requiredOnColdResumeKeys: z.array(z.string()),
|
|
553
554
|
automaticCredentialRecovery: z.literal(false),
|
|
554
555
|
dryRun: z.boolean()
|
|
555
|
-
}).
|
|
556
|
+
}).strip();
|
|
556
557
|
safeEnvRecordSchema.refine((value) => Object.keys(value).every((key) => !isForbiddenEnvVarName(key) && !key.startsWith("SIDECAR_")), { message: "runtime-owned env var name cannot be set by callers" });
|
|
557
558
|
//#endregion
|
|
558
559
|
//#region src/claude-launch-settings.ts
|
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.39",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
19
|
-
"@tangle-network/agent-interface": "^5.10.
|
|
20
|
-
"@tangle-network/agent-profile-materialize": "1.1.
|
|
19
|
+
"@tangle-network/agent-interface": "^5.10.22",
|
|
20
|
+
"@tangle-network/agent-profile-materialize": "1.1.99",
|
|
21
21
|
"@tangle-network/sdk-cli-runner": "0.3.12",
|
|
22
|
-
"@tangle-network/sdk-provider-cli-base": "0.13.
|
|
23
|
-
"@tangle-network/sdk-session-persistence": "0.7.
|
|
22
|
+
"@tangle-network/sdk-provider-cli-base": "0.13.62",
|
|
23
|
+
"@tangle-network/sdk-session-persistence": "0.7.9",
|
|
24
24
|
"zod": "4.6.7"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"registry": "https://registry.npmjs.org"
|
|
36
36
|
},
|
|
37
37
|
"tangleRelease": {
|
|
38
|
-
"sourceSha": "
|
|
39
|
-
"mergedAt": "2026-11-
|
|
38
|
+
"sourceSha": "1a4c8fa7a209ac030e7d523b64191a391eb45286",
|
|
39
|
+
"mergedAt": "2026-11-10T12:34:00-08:00"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "tsdown",
|