@tangle-network/agent-interface 5.10.17 → 5.10.18
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/agent-profile.d.ts
CHANGED
|
@@ -148,8 +148,8 @@ export interface AgentProfileSeat {
|
|
|
148
148
|
model: string;
|
|
149
149
|
/** Override profile.model.reasoningEffort for this stage; omission inherits, none disables thinking. */
|
|
150
150
|
reasoningEffort?: ReasoningEffort;
|
|
151
|
-
/** This stage's credential intent; omitted inherits profile.model.metadata.credentialSource (absent there means
|
|
152
|
-
credentialSource?: "subscription" | "managed";
|
|
151
|
+
/** This stage's credential intent; omitted inherits profile.model.metadata.credentialSource (absent there means router). */
|
|
152
|
+
credentialSource?: "router" | "api-key" | "subscription" | "managed";
|
|
153
153
|
/** Select all eligible accounts in account-manager order, or one named account. */
|
|
154
154
|
selector: {
|
|
155
155
|
kind: "all-eligible";
|
|
@@ -103,6 +103,8 @@ export declare const AgentInteractiveSessionStartSchema: z.ZodObject<{
|
|
|
103
103
|
ultracode: "ultracode";
|
|
104
104
|
}>>;
|
|
105
105
|
credentialSource: z.ZodOptional<z.ZodEnum<{
|
|
106
|
+
router: "router";
|
|
107
|
+
"api-key": "api-key";
|
|
106
108
|
subscription: "subscription";
|
|
107
109
|
managed: "managed";
|
|
108
110
|
}>>;
|
|
@@ -128,6 +128,8 @@ export declare const AgentTurnInputSchema: z.ZodObject<{
|
|
|
128
128
|
ultracode: "ultracode";
|
|
129
129
|
}>>;
|
|
130
130
|
credentialSource: z.ZodOptional<z.ZodEnum<{
|
|
131
|
+
router: "router";
|
|
132
|
+
"api-key": "api-key";
|
|
131
133
|
subscription: "subscription";
|
|
132
134
|
managed: "managed";
|
|
133
135
|
}>>;
|
|
@@ -541,6 +543,8 @@ export declare const AgentTurnInputSchema: z.ZodObject<{
|
|
|
541
543
|
ultracode: "ultracode";
|
|
542
544
|
}>>;
|
|
543
545
|
credentialSource: z.ZodOptional<z.ZodEnum<{
|
|
546
|
+
router: "router";
|
|
547
|
+
"api-key": "api-key";
|
|
544
548
|
subscription: "subscription";
|
|
545
549
|
managed: "managed";
|
|
546
550
|
}>>;
|
|
@@ -2067,6 +2071,8 @@ export declare const AgentEnvironmentGetOptionsSchema: z.ZodObject<{
|
|
|
2067
2071
|
ultracode: "ultracode";
|
|
2068
2072
|
}>>;
|
|
2069
2073
|
credentialSource: z.ZodOptional<z.ZodEnum<{
|
|
2074
|
+
router: "router";
|
|
2075
|
+
"api-key": "api-key";
|
|
2070
2076
|
subscription: "subscription";
|
|
2071
2077
|
managed: "managed";
|
|
2072
2078
|
}>>;
|
|
@@ -213,6 +213,8 @@ export declare const ContextTransferRequestSchema: z.ZodObject<{
|
|
|
213
213
|
ultracode: "ultracode";
|
|
214
214
|
}>>;
|
|
215
215
|
credentialSource: z.ZodOptional<z.ZodEnum<{
|
|
216
|
+
router: "router";
|
|
217
|
+
"api-key": "api-key";
|
|
216
218
|
subscription: "subscription";
|
|
217
219
|
managed: "managed";
|
|
218
220
|
}>>;
|
package/dist/profile-schema.d.ts
CHANGED
|
@@ -204,6 +204,8 @@ export declare const agentProfileSeatSchema: z.ZodObject<{
|
|
|
204
204
|
ultracode: "ultracode";
|
|
205
205
|
}>>;
|
|
206
206
|
credentialSource: z.ZodOptional<z.ZodEnum<{
|
|
207
|
+
router: "router";
|
|
208
|
+
"api-key": "api-key";
|
|
207
209
|
subscription: "subscription";
|
|
208
210
|
managed: "managed";
|
|
209
211
|
}>>;
|
|
@@ -574,6 +576,8 @@ export declare const agentProfileSchema: z.ZodObject<{
|
|
|
574
576
|
ultracode: "ultracode";
|
|
575
577
|
}>>;
|
|
576
578
|
credentialSource: z.ZodOptional<z.ZodEnum<{
|
|
579
|
+
router: "router";
|
|
580
|
+
"api-key": "api-key";
|
|
577
581
|
subscription: "subscription";
|
|
578
582
|
managed: "managed";
|
|
579
583
|
}>>;
|
package/dist/profile-schema.js
CHANGED
|
@@ -114,7 +114,7 @@ export const agentProfileSeatSchema = z.strictObject({
|
|
|
114
114
|
provider: z.string().regex(/^[a-z][a-z0-9-]*$/),
|
|
115
115
|
model: z.string().min(1).refine((value) => value.trim() === value, "model must be canonical"),
|
|
116
116
|
reasoningEffort: reasoningEffortSchema.optional(),
|
|
117
|
-
credentialSource: z.enum(["subscription", "managed"]).optional(),
|
|
117
|
+
credentialSource: z.enum(["router", "api-key", "subscription", "managed"]).optional(),
|
|
118
118
|
selector: z.union([
|
|
119
119
|
z.strictObject({ kind: z.literal("all-eligible") }),
|
|
120
120
|
z.strictObject({ kind: z.literal("seat"), id: z.string().min(1).refine((value) => value.trim() === value, "seat id must be canonical") }),
|
|
@@ -427,7 +427,7 @@ export const agentProfileSchema = z
|
|
|
427
427
|
.superRefine((profile, context) => {
|
|
428
428
|
validateNestedRecordKeys(profile, context, [], new Set());
|
|
429
429
|
if (profile.seats?.length) {
|
|
430
|
-
const first = profile.seats[0], source = profile.model?.metadata?.credentialSource ?? "
|
|
430
|
+
const first = profile.seats[0], source = profile.model?.metadata?.credentialSource ?? "router";
|
|
431
431
|
if (first.harness !== profile.harness || first.provider !== profile.model?.provider ||
|
|
432
432
|
first.model !== profile.model?.default) {
|
|
433
433
|
context.addIssue({ code: "custom", path: ["seats", 0], message: "first seat must match profile harness, model.provider, and model.default" });
|
|
@@ -435,7 +435,10 @@ export const agentProfileSchema = z
|
|
|
435
435
|
if (first.reasoningEffort !== undefined && first.reasoningEffort !== profile.model?.reasoningEffort) {
|
|
436
436
|
context.addIssue({ code: "custom", path: ["seats", 0, "reasoningEffort"], message: "first seat reasoningEffort must match profile model.reasoningEffort" });
|
|
437
437
|
}
|
|
438
|
-
|
|
438
|
+
// `managed` is the deprecated spelling of `router`: an authored profile may still carry
|
|
439
|
+
// either, and the two agree wherever the default would apply (#440).
|
|
440
|
+
const spell = (value) => (value === "managed" ? "router" : value);
|
|
441
|
+
if ((first.credentialSource ?? source) !== source && spell(first.credentialSource) !== spell(source)) {
|
|
439
442
|
context.addIssue({ code: "custom", path: ["seats", 0, "credentialSource"], message: "first seat credentialSource must match profile model.metadata.credentialSource" });
|
|
440
443
|
}
|
|
441
444
|
if (first.tools !== undefined &&
|