@myagentroam/protocol 0.9.134 → 0.9.136
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/enterprise.d.ts +15 -20
- package/dist/enterprise.js +3 -8
- package/dist/index.d.ts +893 -387
- package/dist/index.js +23 -2
- package/dist/mcp.d.ts +5 -5
- package/dist/mcp.js +2 -2
- package/dist/skill.d.ts +27 -43
- package/dist/skill.js +11 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -27,11 +27,20 @@ const positiveSafeIntegerSchema = z.number().int().min(1).max(Number.MAX_SAFE_IN
|
|
|
27
27
|
const boundedIdentifierSchema = z.string().trim().min(1).max(128);
|
|
28
28
|
const utf8ByteLength = (value) => new TextEncoder().encode(value).byteLength;
|
|
29
29
|
const runtimeCredentialHttpVersionSchema = z.enum(['1.1', '2']);
|
|
30
|
+
export const marAgentResponsesServiceTierSchema = z.enum([
|
|
31
|
+
'auto',
|
|
32
|
+
'default',
|
|
33
|
+
'flex',
|
|
34
|
+
'priority',
|
|
35
|
+
'fast',
|
|
36
|
+
'ultrafast'
|
|
37
|
+
]);
|
|
30
38
|
export const marAgentRuntimeCredentialCapabilitySchema = z
|
|
31
39
|
.object({
|
|
32
40
|
apiVersion: z.literal(1),
|
|
33
41
|
websocket: z.boolean(),
|
|
34
42
|
fastMode: z.boolean().optional(),
|
|
43
|
+
serviceTiers: z.array(marAgentResponsesServiceTierSchema).min(1).max(6).optional(),
|
|
35
44
|
namespacedTools: z.boolean().optional(),
|
|
36
45
|
httpVersions: z
|
|
37
46
|
.array(runtimeCredentialHttpVersionSchema)
|
|
@@ -715,6 +724,7 @@ const marAgentModelShape = {
|
|
|
715
724
|
codeMode: z.boolean().default(false),
|
|
716
725
|
highDensityCompaction: z.boolean().default(false),
|
|
717
726
|
fastMode: z.boolean().optional(),
|
|
727
|
+
serviceTier: marAgentResponsesServiceTierSchema.optional(),
|
|
718
728
|
hostedWebSearch: z.boolean(),
|
|
719
729
|
responsesTransport: marAgentResponsesTransportSchema.optional(),
|
|
720
730
|
responsesEncoding: z.enum(['STANDARD', 'LITE']).optional(),
|
|
@@ -753,6 +763,8 @@ function refineMarAgentModel(schema) {
|
|
|
753
763
|
context.addIssue({ code: 'custom', message: 'Responses encoding requires OpenAI Responses' });
|
|
754
764
|
if (value.protocol !== 'OPENAI_RESPONSES' && value.fastMode === true)
|
|
755
765
|
context.addIssue({ code: 'custom', message: 'Fast mode requires OpenAI Responses' });
|
|
766
|
+
if (value.protocol !== 'OPENAI_RESPONSES' && value.serviceTier !== undefined)
|
|
767
|
+
context.addIssue({ code: 'custom', message: 'Service tier requires OpenAI Responses' });
|
|
756
768
|
});
|
|
757
769
|
}
|
|
758
770
|
const marAgentModelSummaryShape = {
|
|
@@ -792,6 +804,7 @@ export const marAgentRuntimeModelConfigurationSchema = refineMarAgentModel(z
|
|
|
792
804
|
.string()
|
|
793
805
|
.regex(/^[a-zA-Z][a-zA-Z0-9_]{0,63}$/u)
|
|
794
806
|
.optional(),
|
|
807
|
+
responsesConfigurationUpdates: z.boolean().optional(),
|
|
795
808
|
imageGeneration: marAgentImageGenerationSchema.optional()
|
|
796
809
|
})
|
|
797
810
|
.strip()).superRefine((configuration, context) => {
|
|
@@ -869,8 +882,7 @@ export const codexCredentialOwnershipSchema = z.discriminatedUnion('ownerType',
|
|
|
869
882
|
ownerType: z.literal('ORGANIZATION'),
|
|
870
883
|
ownerOrganizationId: positiveSafeIntegerSchema
|
|
871
884
|
})
|
|
872
|
-
.strict()
|
|
873
|
-
z.object({ ownerType: z.literal('ENTERPRISE') }).strict()
|
|
885
|
+
.strict()
|
|
874
886
|
]);
|
|
875
887
|
export const codexCredentialSummarySchema = z
|
|
876
888
|
.object({
|
|
@@ -1165,6 +1177,14 @@ export const runEventSchema = z.object({
|
|
|
1165
1177
|
createdAt: z.number().int().nonnegative().optional(),
|
|
1166
1178
|
version: z.number().int().nonnegative().optional()
|
|
1167
1179
|
});
|
|
1180
|
+
/** Ephemeral metrics for the currently observed model request, never a history item. */
|
|
1181
|
+
export const runPerformanceSchema = z
|
|
1182
|
+
.object({
|
|
1183
|
+
runId: z.string().min(1).max(128),
|
|
1184
|
+
ttftMs: z.number().int().nonnegative().optional(),
|
|
1185
|
+
tokensPerSecond: z.number().finite().nonnegative().optional()
|
|
1186
|
+
})
|
|
1187
|
+
.refine((value) => value.ttftMs !== undefined || value.tokensPerSecond !== undefined);
|
|
1168
1188
|
/**
|
|
1169
1189
|
* Node-to-Workbench asynchronous notifications. This is deliberately a
|
|
1170
1190
|
* small envelope: business payloads remain owned by the Node and Server only
|
|
@@ -1526,6 +1546,7 @@ const userMessageItemSchema = conversationItemBaseSchema.extend({
|
|
|
1526
1546
|
clientMessageId: z.string().min(1).max(128).nullable(),
|
|
1527
1547
|
text: z.string(),
|
|
1528
1548
|
contexts: z.array(contextReferenceSchema).max(64).default([]),
|
|
1549
|
+
attachments: z.array(conversationImageAttachmentSchema).max(32).optional(),
|
|
1529
1550
|
source: z.literal('SCHEDULED').optional(),
|
|
1530
1551
|
delivery: z.enum(['PENDING', 'ACCEPTED', 'STEERED', 'QUEUED_NEXT_TURN', 'REJECTED'])
|
|
1531
1552
|
})
|
package/dist/mcp.d.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const mcpSourceInputSchema: z.ZodEffects<z.ZodObject<{
|
|
3
|
-
scope: z.ZodEnum<["
|
|
3
|
+
scope: z.ZodEnum<["ORGANIZATION", "PERSONAL"]>;
|
|
4
4
|
organizationId: z.ZodOptional<z.ZodNumber>;
|
|
5
5
|
name: z.ZodString;
|
|
6
6
|
locator: z.ZodEffects<z.ZodString, string, string>;
|
|
7
7
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
8
8
|
}, "strict", z.ZodTypeAny, {
|
|
9
|
-
scope: "PERSONAL" | "
|
|
9
|
+
scope: "PERSONAL" | "ORGANIZATION";
|
|
10
10
|
name: string;
|
|
11
11
|
locator: string;
|
|
12
12
|
organizationId?: number | undefined;
|
|
13
13
|
enabled?: boolean | undefined;
|
|
14
14
|
}, {
|
|
15
|
-
scope: "PERSONAL" | "
|
|
15
|
+
scope: "PERSONAL" | "ORGANIZATION";
|
|
16
16
|
name: string;
|
|
17
17
|
locator: string;
|
|
18
18
|
organizationId?: number | undefined;
|
|
19
19
|
enabled?: boolean | undefined;
|
|
20
20
|
}>, {
|
|
21
|
-
scope: "PERSONAL" | "
|
|
21
|
+
scope: "PERSONAL" | "ORGANIZATION";
|
|
22
22
|
name: string;
|
|
23
23
|
locator: string;
|
|
24
24
|
organizationId?: number | undefined;
|
|
25
25
|
enabled?: boolean | undefined;
|
|
26
26
|
}, {
|
|
27
|
-
scope: "PERSONAL" | "
|
|
27
|
+
scope: "PERSONAL" | "ORGANIZATION";
|
|
28
28
|
name: string;
|
|
29
29
|
locator: string;
|
|
30
30
|
organizationId?: number | undefined;
|
package/dist/mcp.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { skillScopeSchema } from './skill.js';
|
|
2
|
+
import { configurableSkillScopeSchema, skillScopeSchema } from './skill.js';
|
|
3
3
|
const httpsUrlSchema = z
|
|
4
4
|
.string()
|
|
5
5
|
.trim()
|
|
@@ -33,7 +33,7 @@ const headerReferenceMapSchema = z
|
|
|
33
33
|
.default({});
|
|
34
34
|
export const mcpSourceInputSchema = z
|
|
35
35
|
.object({
|
|
36
|
-
scope:
|
|
36
|
+
scope: configurableSkillScopeSchema,
|
|
37
37
|
organizationId: z.number().int().positive().optional(),
|
|
38
38
|
name: z.string().trim().min(1).max(128),
|
|
39
39
|
locator: httpsUrlSchema,
|
package/dist/skill.d.ts
CHANGED
|
@@ -1,36 +1,37 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const skillScopeSchema: z.ZodEnum<["ENTERPRISE", "ORGANIZATION", "PERSONAL"]>;
|
|
3
|
+
export declare const configurableSkillScopeSchema: z.ZodEnum<["ORGANIZATION", "PERSONAL"]>;
|
|
3
4
|
export declare const skillSourceKindSchema: z.ZodEnum<["SKILLS_SH", "REPOSITORY"]>;
|
|
4
5
|
export declare const skillSourceInputSchema: z.ZodEffects<z.ZodObject<{
|
|
5
6
|
kind: z.ZodEnum<["SKILLS_SH", "REPOSITORY"]>;
|
|
6
|
-
scope: z.ZodEnum<["
|
|
7
|
+
scope: z.ZodEnum<["ORGANIZATION", "PERSONAL"]>;
|
|
7
8
|
organizationId: z.ZodOptional<z.ZodNumber>;
|
|
8
9
|
name: z.ZodString;
|
|
9
10
|
locator: z.ZodUnion<[z.ZodLiteral<"skills.sh">, z.ZodEffects<z.ZodString, string, string>, z.ZodString]>;
|
|
10
11
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
11
12
|
}, "strict", z.ZodTypeAny, {
|
|
12
|
-
scope: "PERSONAL" | "
|
|
13
|
+
scope: "PERSONAL" | "ORGANIZATION";
|
|
13
14
|
name: string;
|
|
14
15
|
kind: "SKILLS_SH" | "REPOSITORY";
|
|
15
16
|
locator: string;
|
|
16
17
|
organizationId?: number | undefined;
|
|
17
18
|
enabled?: boolean | undefined;
|
|
18
19
|
}, {
|
|
19
|
-
scope: "PERSONAL" | "
|
|
20
|
+
scope: "PERSONAL" | "ORGANIZATION";
|
|
20
21
|
name: string;
|
|
21
22
|
kind: "SKILLS_SH" | "REPOSITORY";
|
|
22
23
|
locator: string;
|
|
23
24
|
organizationId?: number | undefined;
|
|
24
25
|
enabled?: boolean | undefined;
|
|
25
26
|
}>, {
|
|
26
|
-
scope: "PERSONAL" | "
|
|
27
|
+
scope: "PERSONAL" | "ORGANIZATION";
|
|
27
28
|
name: string;
|
|
28
29
|
kind: "SKILLS_SH" | "REPOSITORY";
|
|
29
30
|
locator: string;
|
|
30
31
|
organizationId?: number | undefined;
|
|
31
32
|
enabled?: boolean | undefined;
|
|
32
33
|
}, {
|
|
33
|
-
scope: "PERSONAL" | "
|
|
34
|
+
scope: "PERSONAL" | "ORGANIZATION";
|
|
34
35
|
name: string;
|
|
35
36
|
kind: "SKILLS_SH" | "REPOSITORY";
|
|
36
37
|
locator: string;
|
|
@@ -38,44 +39,15 @@ export declare const skillSourceInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
38
39
|
enabled?: boolean | undefined;
|
|
39
40
|
}>;
|
|
40
41
|
export type SkillSourceInput = z.infer<typeof skillSourceInputSchema>;
|
|
41
|
-
export declare const skillSourceSchema: z.
|
|
42
|
+
export declare const skillSourceSchema: z.ZodObject<{
|
|
43
|
+
id: z.ZodString;
|
|
42
44
|
kind: z.ZodEnum<["SKILLS_SH", "REPOSITORY"]>;
|
|
43
45
|
scope: z.ZodEnum<["ENTERPRISE", "ORGANIZATION", "PERSONAL"]>;
|
|
44
46
|
organizationId: z.ZodOptional<z.ZodNumber>;
|
|
47
|
+
ownerUserId: z.ZodOptional<z.ZodNumber>;
|
|
45
48
|
name: z.ZodString;
|
|
46
49
|
locator: z.ZodUnion<[z.ZodLiteral<"skills.sh">, z.ZodEffects<z.ZodString, string, string>, z.ZodString]>;
|
|
47
50
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
-
}, "strict", z.ZodTypeAny, {
|
|
49
|
-
scope: "PERSONAL" | "ENTERPRISE" | "ORGANIZATION";
|
|
50
|
-
name: string;
|
|
51
|
-
kind: "SKILLS_SH" | "REPOSITORY";
|
|
52
|
-
locator: string;
|
|
53
|
-
organizationId?: number | undefined;
|
|
54
|
-
enabled?: boolean | undefined;
|
|
55
|
-
}, {
|
|
56
|
-
scope: "PERSONAL" | "ENTERPRISE" | "ORGANIZATION";
|
|
57
|
-
name: string;
|
|
58
|
-
kind: "SKILLS_SH" | "REPOSITORY";
|
|
59
|
-
locator: string;
|
|
60
|
-
organizationId?: number | undefined;
|
|
61
|
-
enabled?: boolean | undefined;
|
|
62
|
-
}>, {
|
|
63
|
-
scope: "PERSONAL" | "ENTERPRISE" | "ORGANIZATION";
|
|
64
|
-
name: string;
|
|
65
|
-
kind: "SKILLS_SH" | "REPOSITORY";
|
|
66
|
-
locator: string;
|
|
67
|
-
organizationId?: number | undefined;
|
|
68
|
-
enabled?: boolean | undefined;
|
|
69
|
-
}, {
|
|
70
|
-
scope: "PERSONAL" | "ENTERPRISE" | "ORGANIZATION";
|
|
71
|
-
name: string;
|
|
72
|
-
kind: "SKILLS_SH" | "REPOSITORY";
|
|
73
|
-
locator: string;
|
|
74
|
-
organizationId?: number | undefined;
|
|
75
|
-
enabled?: boolean | undefined;
|
|
76
|
-
}>, z.ZodObject<{
|
|
77
|
-
id: z.ZodString;
|
|
78
|
-
ownerUserId: z.ZodOptional<z.ZodNumber>;
|
|
79
51
|
builtIn: z.ZodBoolean;
|
|
80
52
|
status: z.ZodEnum<["READY", "DEGRADED", "DISABLED"]>;
|
|
81
53
|
lastErrorCode: z.ZodNullable<z.ZodString>;
|
|
@@ -83,21 +55,33 @@ export declare const skillSourceSchema: z.ZodIntersection<z.ZodEffects<z.ZodObje
|
|
|
83
55
|
updatedAt: z.ZodNumber;
|
|
84
56
|
}, "strict", z.ZodTypeAny, {
|
|
85
57
|
status: "DISABLED" | "READY" | "DEGRADED";
|
|
58
|
+
scope: "PERSONAL" | "ENTERPRISE" | "ORGANIZATION";
|
|
59
|
+
name: string;
|
|
60
|
+
kind: "SKILLS_SH" | "REPOSITORY";
|
|
86
61
|
id: string;
|
|
87
62
|
createdAt: number;
|
|
88
63
|
updatedAt: number;
|
|
64
|
+
locator: string;
|
|
89
65
|
builtIn: boolean;
|
|
90
66
|
lastErrorCode: string | null;
|
|
67
|
+
organizationId?: number | undefined;
|
|
91
68
|
ownerUserId?: number | undefined;
|
|
69
|
+
enabled?: boolean | undefined;
|
|
92
70
|
}, {
|
|
93
71
|
status: "DISABLED" | "READY" | "DEGRADED";
|
|
72
|
+
scope: "PERSONAL" | "ENTERPRISE" | "ORGANIZATION";
|
|
73
|
+
name: string;
|
|
74
|
+
kind: "SKILLS_SH" | "REPOSITORY";
|
|
94
75
|
id: string;
|
|
95
76
|
createdAt: number;
|
|
96
77
|
updatedAt: number;
|
|
78
|
+
locator: string;
|
|
97
79
|
builtIn: boolean;
|
|
98
80
|
lastErrorCode: string | null;
|
|
81
|
+
organizationId?: number | undefined;
|
|
99
82
|
ownerUserId?: number | undefined;
|
|
100
|
-
|
|
83
|
+
enabled?: boolean | undefined;
|
|
84
|
+
}>;
|
|
101
85
|
export declare const skillVersionSummarySchema: z.ZodObject<{
|
|
102
86
|
id: z.ZodString;
|
|
103
87
|
commitSha: z.ZodString;
|
|
@@ -117,7 +101,7 @@ export declare const skillVersionSummarySchema: z.ZodObject<{
|
|
|
117
101
|
export declare const skillFavoriteSchema: z.ZodEffects<z.ZodObject<{
|
|
118
102
|
id: z.ZodString;
|
|
119
103
|
sourceId: z.ZodString;
|
|
120
|
-
scope: z.ZodEnum<["
|
|
104
|
+
scope: z.ZodEnum<["ORGANIZATION", "PERSONAL"]>;
|
|
121
105
|
ownerOrganizationId: z.ZodOptional<z.ZodNumber>;
|
|
122
106
|
ownerUserId: z.ZodOptional<z.ZodNumber>;
|
|
123
107
|
repositoryIdentity: z.ZodString;
|
|
@@ -144,7 +128,7 @@ export declare const skillFavoriteSchema: z.ZodEffects<z.ZodObject<{
|
|
|
144
128
|
createdAt: z.ZodNumber;
|
|
145
129
|
updatedAt: z.ZodNumber;
|
|
146
130
|
}, "strict", z.ZodTypeAny, {
|
|
147
|
-
scope: "PERSONAL" | "
|
|
131
|
+
scope: "PERSONAL" | "ORGANIZATION";
|
|
148
132
|
id: string;
|
|
149
133
|
createdAt: number;
|
|
150
134
|
updatedAt: number;
|
|
@@ -163,7 +147,7 @@ export declare const skillFavoriteSchema: z.ZodEffects<z.ZodObject<{
|
|
|
163
147
|
ownerUserId?: number | undefined;
|
|
164
148
|
ownerOrganizationId?: number | undefined;
|
|
165
149
|
}, {
|
|
166
|
-
scope: "PERSONAL" | "
|
|
150
|
+
scope: "PERSONAL" | "ORGANIZATION";
|
|
167
151
|
id: string;
|
|
168
152
|
createdAt: number;
|
|
169
153
|
updatedAt: number;
|
|
@@ -182,7 +166,7 @@ export declare const skillFavoriteSchema: z.ZodEffects<z.ZodObject<{
|
|
|
182
166
|
ownerUserId?: number | undefined;
|
|
183
167
|
ownerOrganizationId?: number | undefined;
|
|
184
168
|
}>, {
|
|
185
|
-
scope: "PERSONAL" | "
|
|
169
|
+
scope: "PERSONAL" | "ORGANIZATION";
|
|
186
170
|
id: string;
|
|
187
171
|
createdAt: number;
|
|
188
172
|
updatedAt: number;
|
|
@@ -201,7 +185,7 @@ export declare const skillFavoriteSchema: z.ZodEffects<z.ZodObject<{
|
|
|
201
185
|
ownerUserId?: number | undefined;
|
|
202
186
|
ownerOrganizationId?: number | undefined;
|
|
203
187
|
}, {
|
|
204
|
-
scope: "PERSONAL" | "
|
|
188
|
+
scope: "PERSONAL" | "ORGANIZATION";
|
|
205
189
|
id: string;
|
|
206
190
|
createdAt: number;
|
|
207
191
|
updatedAt: number;
|
package/dist/skill.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export const skillScopeSchema = z.enum(['ENTERPRISE', 'ORGANIZATION', 'PERSONAL']);
|
|
3
|
+
export const configurableSkillScopeSchema = z.enum(['ORGANIZATION', 'PERSONAL']);
|
|
3
4
|
export const skillSourceKindSchema = z.enum(['SKILLS_SH', 'REPOSITORY']);
|
|
4
5
|
const httpsLocatorSchema = z
|
|
5
6
|
.string()
|
|
@@ -22,7 +23,7 @@ const sshGitLocatorSchema = z
|
|
|
22
23
|
export const skillSourceInputSchema = z
|
|
23
24
|
.object({
|
|
24
25
|
kind: skillSourceKindSchema,
|
|
25
|
-
scope:
|
|
26
|
+
scope: configurableSkillScopeSchema,
|
|
26
27
|
organizationId: z.number().int().positive().optional(),
|
|
27
28
|
name: z.string().trim().min(1).max(128),
|
|
28
29
|
locator: z.union([z.literal('skills.sh'), httpsLocatorSchema, sshGitLocatorSchema]),
|
|
@@ -40,17 +41,23 @@ export const skillSourceInputSchema = z
|
|
|
40
41
|
message: 'repository source requires repository locator'
|
|
41
42
|
});
|
|
42
43
|
});
|
|
43
|
-
export const skillSourceSchema =
|
|
44
|
+
export const skillSourceSchema = z
|
|
44
45
|
.object({
|
|
45
46
|
id: z.string().min(1).max(128),
|
|
47
|
+
kind: skillSourceKindSchema,
|
|
48
|
+
scope: skillScopeSchema,
|
|
49
|
+
organizationId: z.number().int().positive().optional(),
|
|
46
50
|
ownerUserId: z.number().int().positive().optional(),
|
|
51
|
+
name: z.string().trim().min(1).max(128),
|
|
52
|
+
locator: z.union([z.literal('skills.sh'), httpsLocatorSchema, sshGitLocatorSchema]),
|
|
53
|
+
enabled: z.boolean().optional(),
|
|
47
54
|
builtIn: z.boolean(),
|
|
48
55
|
status: z.enum(['READY', 'DEGRADED', 'DISABLED']),
|
|
49
56
|
lastErrorCode: z.string().min(1).max(80).nullable(),
|
|
50
57
|
createdAt: z.number().int().nonnegative(),
|
|
51
58
|
updatedAt: z.number().int().nonnegative()
|
|
52
59
|
})
|
|
53
|
-
.strict()
|
|
60
|
+
.strict();
|
|
54
61
|
export const skillVersionSummarySchema = z
|
|
55
62
|
.object({
|
|
56
63
|
id: z.string().min(1).max(128),
|
|
@@ -77,7 +84,7 @@ export const skillFavoriteSchema = z
|
|
|
77
84
|
.object({
|
|
78
85
|
id: z.string().min(1).max(128),
|
|
79
86
|
sourceId: z.string().min(1).max(128),
|
|
80
|
-
scope:
|
|
87
|
+
scope: configurableSkillScopeSchema,
|
|
81
88
|
ownerOrganizationId: z.number().int().positive().optional(),
|
|
82
89
|
ownerUserId: z.number().int().positive().optional(),
|
|
83
90
|
repositoryIdentity: z.string().min(1).max(512),
|