@tangle-network/sdk-provider-codex 0.4.37 → 0.4.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 +6 -6
package/dist/index.mjs
CHANGED
|
@@ -19,7 +19,7 @@ function parseModelKeyProxyBinding(raw) {
|
|
|
19
19
|
if (typeof baseUrl !== "string" || !LOOPBACK_BASE_URL.test(baseUrl)) throw new Error("Model key proxy binding is invalid");
|
|
20
20
|
return {
|
|
21
21
|
baseUrl,
|
|
22
|
-
passThrough:
|
|
22
|
+
passThrough: Object(parsed).passThrough === true
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
const MODEL_KEY_PROXY_HOME_PATH_PREFIX = "/v1h/";
|
|
@@ -40,6 +40,7 @@ const MODEL_PROXY_TOKENS = {
|
|
|
40
40
|
ANTHROPIC_API_KEY: "proxy-anthropic-token",
|
|
41
41
|
OPENROUTER_API_KEY: "proxy-openrouter-token",
|
|
42
42
|
TANGLE_INFERENCE_KEY: "proxy-openai-token",
|
|
43
|
+
NANOCODE_OPENAI_API_KEY: "proxy-openai-token",
|
|
43
44
|
ZAI_API_KEY: "proxy-zai-token",
|
|
44
45
|
ZHIPU_API_KEY: "proxy-zai-token"
|
|
45
46
|
};
|
|
@@ -138,7 +139,7 @@ const batchCredentialOwner = {
|
|
|
138
139
|
allocationId: z.uuid(),
|
|
139
140
|
ownerId: z.string().min(1).max(256)
|
|
140
141
|
};
|
|
141
|
-
z.
|
|
142
|
+
z.object({
|
|
142
143
|
...batchCredentialOwner,
|
|
143
144
|
childKeyId: z.string().min(1).max(200).optional(),
|
|
144
145
|
keyExpiresAt: z.iso.datetime({ offset: true }).optional()
|
|
@@ -252,20 +253,20 @@ z.discriminatedUnion("operation", [
|
|
|
252
253
|
leaseToken: sourceLeaseTokenSchema
|
|
253
254
|
})
|
|
254
255
|
]);
|
|
255
|
-
const sourceMetadataSchema = z.
|
|
256
|
+
const sourceMetadataSchema = z.object({
|
|
256
257
|
secretId: z.string().min(1),
|
|
257
258
|
key: ProxySecretBindingSchema.shape.secretRef.shape.key,
|
|
258
259
|
updatedAt: sourceRevisionSchema
|
|
259
260
|
});
|
|
260
261
|
const sourceSnapshotSchema = sourceMetadataSchema.extend({ value: z.string().min(1).max(MAX_SECRET_VALUE_LENGTH) });
|
|
261
262
|
z.discriminatedUnion("operation", [
|
|
262
|
-
z.
|
|
263
|
+
z.object({
|
|
263
264
|
operation: z.literal("read"),
|
|
264
265
|
source: sourceSnapshotSchema,
|
|
265
266
|
binding: sourceBindingSchema,
|
|
266
267
|
refreshExpiresAt: z.iso.datetime()
|
|
267
268
|
}),
|
|
268
|
-
z.
|
|
269
|
+
z.object({
|
|
269
270
|
operation: z.literal("lease"),
|
|
270
271
|
source: sourceSnapshotSchema,
|
|
271
272
|
leaseToken: sourceLeaseTokenSchema,
|
|
@@ -276,11 +277,11 @@ z.discriminatedUnion("operation", [
|
|
|
276
277
|
"replay"
|
|
277
278
|
]).default("leased")
|
|
278
279
|
}),
|
|
279
|
-
z.
|
|
280
|
+
z.object({
|
|
280
281
|
operation: z.literal("commit"),
|
|
281
282
|
source: sourceMetadataSchema
|
|
282
283
|
}),
|
|
283
|
-
z.
|
|
284
|
+
z.object({
|
|
284
285
|
operation: z.literal("release"),
|
|
285
286
|
released: z.literal(true)
|
|
286
287
|
})
|
|
@@ -290,7 +291,7 @@ const nativeCredentialProtocolSchema = z.enum([
|
|
|
290
291
|
"canonical",
|
|
291
292
|
"unselected"
|
|
292
293
|
]);
|
|
293
|
-
z.
|
|
294
|
+
z.object({
|
|
294
295
|
nativeCredentialProtocol: nativeCredentialProtocolSchema,
|
|
295
296
|
priorExposure: z.boolean(),
|
|
296
297
|
containerId: z.string().min(1),
|
|
@@ -441,7 +442,7 @@ z.object({
|
|
|
441
442
|
requiredOnColdResumeKeys: z.array(z.string()),
|
|
442
443
|
automaticCredentialRecovery: z.literal(false),
|
|
443
444
|
dryRun: z.boolean()
|
|
444
|
-
}).
|
|
445
|
+
}).strip();
|
|
445
446
|
safeEnvRecordSchema.refine((value) => Object.keys(value).every((key) => !isForbiddenEnvVarName(key) && !key.startsWith("SIDECAR_")), { message: "runtime-owned env var name cannot be set by callers" });
|
|
446
447
|
//#endregion
|
|
447
448
|
//#region src/app-server-protocol.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sdk-provider-codex",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.39",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@tangle-network/agent-backend-types": "1.3.3",
|
|
19
|
-
"@tangle-network/agent-interface": "^5.10.
|
|
19
|
+
"@tangle-network/agent-interface": "^5.10.22",
|
|
20
20
|
"@tangle-network/sdk-cli-runner": "0.3.12",
|
|
21
|
-
"@tangle-network/sdk-provider-cli-base": "0.13.
|
|
22
|
-
"@tangle-network/sdk-session-persistence": "0.7.
|
|
21
|
+
"@tangle-network/sdk-provider-cli-base": "0.13.62",
|
|
22
|
+
"@tangle-network/sdk-session-persistence": "0.7.9",
|
|
23
23
|
"zod": "4.6.7"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"registry": "https://registry.npmjs.org"
|
|
35
35
|
},
|
|
36
36
|
"tangleRelease": {
|
|
37
|
-
"sourceSha": "
|
|
38
|
-
"mergedAt": "2026-11-
|
|
37
|
+
"sourceSha": "1a4c8fa7a209ac030e7d523b64191a391eb45286",
|
|
38
|
+
"mergedAt": "2026-11-10T12:34:00-08:00"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "tsdown",
|