@tangle-network/cli-agent-registry 0.15.68 → 0.15.70
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as cliAuthFilesSchema, c as materializeCliAuthBundle, d as resolveCliAuthReference, f as cliAuthReferenceSchema, o as cliAuthObjectSchema, r as assertCliAuthReferenceSupported, t as AUTH_BUNDLE_PATHS, u as parseCliAuthJson } from "./cli-auth-bundle-B4SGUcYM.mjs";
|
|
2
|
-
import { r as proxySecretMaterializationsSchema } from "./harness-
|
|
2
|
+
import { r as proxySecretMaterializationsSchema } from "./harness-Dn4QGkMc.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { decodeJwt } from "jose";
|
|
5
5
|
//#region src/native-cli-auth-metadata.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { l as getSpec } from "./specs-CZ6eAF6G.mjs";
|
|
2
2
|
import { a as cliAuthFilesSchema, d as resolveCliAuthReference, f as cliAuthReferenceSchema, n as CLI_AUTH_REFERENCE_ENV_VAR, u as parseCliAuthJson } from "./cli-auth-bundle-B4SGUcYM.mjs";
|
|
3
|
-
import { n as isSafeEnvVarName, t as isForbiddenEnvVarName } from "./harness-
|
|
3
|
+
import { n as isSafeEnvVarName, t as isForbiddenEnvVarName } from "./harness-Dn4QGkMc.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/cli-backend-auth-env.ts
|
|
6
6
|
/** The narrow credential leg shared by the host and sidecar rebind boundary. */
|
|
@@ -34,7 +34,7 @@ const batchCredentialOwner = {
|
|
|
34
34
|
allocationId: z.uuid(),
|
|
35
35
|
ownerId: z.string().min(1).max(256)
|
|
36
36
|
};
|
|
37
|
-
z.
|
|
37
|
+
z.object({
|
|
38
38
|
...batchCredentialOwner,
|
|
39
39
|
childKeyId: z.string().min(1).max(200).optional(),
|
|
40
40
|
keyExpiresAt: z.iso.datetime({ offset: true }).optional()
|
|
@@ -149,20 +149,20 @@ z.discriminatedUnion("operation", [
|
|
|
149
149
|
leaseToken: sourceLeaseTokenSchema
|
|
150
150
|
})
|
|
151
151
|
]);
|
|
152
|
-
const sourceMetadataSchema = z.
|
|
152
|
+
const sourceMetadataSchema = z.object({
|
|
153
153
|
secretId: z.string().min(1),
|
|
154
154
|
key: ProxySecretBindingSchema.shape.secretRef.shape.key,
|
|
155
155
|
updatedAt: sourceRevisionSchema
|
|
156
156
|
});
|
|
157
157
|
const sourceSnapshotSchema = sourceMetadataSchema.extend({ value: z.string().min(1).max(MAX_SECRET_VALUE_LENGTH) });
|
|
158
158
|
z.discriminatedUnion("operation", [
|
|
159
|
-
z.
|
|
159
|
+
z.object({
|
|
160
160
|
operation: z.literal("read"),
|
|
161
161
|
source: sourceSnapshotSchema,
|
|
162
162
|
binding: sourceBindingSchema,
|
|
163
163
|
refreshExpiresAt: z.iso.datetime()
|
|
164
164
|
}),
|
|
165
|
-
z.
|
|
165
|
+
z.object({
|
|
166
166
|
operation: z.literal("lease"),
|
|
167
167
|
source: sourceSnapshotSchema,
|
|
168
168
|
leaseToken: sourceLeaseTokenSchema,
|
|
@@ -173,11 +173,11 @@ z.discriminatedUnion("operation", [
|
|
|
173
173
|
"replay"
|
|
174
174
|
]).default("leased")
|
|
175
175
|
}),
|
|
176
|
-
z.
|
|
176
|
+
z.object({
|
|
177
177
|
operation: z.literal("commit"),
|
|
178
178
|
source: sourceMetadataSchema
|
|
179
179
|
}),
|
|
180
|
-
z.
|
|
180
|
+
z.object({
|
|
181
181
|
operation: z.literal("release"),
|
|
182
182
|
released: z.literal(true)
|
|
183
183
|
})
|
|
@@ -187,7 +187,7 @@ const nativeCredentialProtocolSchema = z.enum([
|
|
|
187
187
|
"canonical",
|
|
188
188
|
"unselected"
|
|
189
189
|
]);
|
|
190
|
-
z.
|
|
190
|
+
z.object({
|
|
191
191
|
nativeCredentialProtocol: nativeCredentialProtocolSchema,
|
|
192
192
|
priorExposure: z.boolean(),
|
|
193
193
|
containerId: z.string().min(1),
|
|
@@ -338,9 +338,9 @@ z.object({
|
|
|
338
338
|
requiredOnColdResumeKeys: z.array(z.string()),
|
|
339
339
|
automaticCredentialRecovery: z.literal(false),
|
|
340
340
|
dryRun: z.boolean()
|
|
341
|
-
}).
|
|
341
|
+
}).strip();
|
|
342
342
|
safeEnvRecordSchema.refine((value) => Object.keys(value).every((key) => !isForbiddenEnvVarName(key) && !key.startsWith("SIDECAR_")), { message: "runtime-owned env var name cannot be set by callers" });
|
|
343
343
|
//#endregion
|
|
344
344
|
export { isSafeEnvVarName as n, proxySecretMaterializationsSchema as r, isForbiddenEnvVarName as t };
|
|
345
345
|
|
|
346
|
-
//# sourceMappingURL=harness-
|
|
346
|
+
//# sourceMappingURL=harness-Dn4QGkMc.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/cli-agent-registry",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.70",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./cli-backend-auth-env": {
|
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
"tsdown": "^0.21.10",
|
|
74
74
|
"typescript": "^6.0.3",
|
|
75
75
|
"vitest": "^4.1.12",
|
|
76
|
-
"@
|
|
77
|
-
"@
|
|
76
|
+
"@tangle-network/runtime-contracts": "0.20.0",
|
|
77
|
+
"@repo/airgap-guard": "0.0.0"
|
|
78
78
|
},
|
|
79
79
|
"tangleRelease": {
|
|
80
|
-
"sourceSha": "
|
|
81
|
-
"mergedAt": "2026-11-10T11:
|
|
80
|
+
"sourceSha": "19ee947b4950dbeb9b79f77d0262e7f4ec5b0e9c",
|
|
81
|
+
"mergedAt": "2026-11-10T11:52:16-08:00"
|
|
82
82
|
},
|
|
83
83
|
"scripts": {
|
|
84
84
|
"build": "tsdown && node scripts/export-host-contracts.mjs --write",
|