@myagentroam/protocol 0.9.135 → 0.9.137

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.js CHANGED
@@ -804,6 +804,7 @@ export const marAgentRuntimeModelConfigurationSchema = refineMarAgentModel(z
804
804
  .string()
805
805
  .regex(/^[a-zA-Z][a-zA-Z0-9_]{0,63}$/u)
806
806
  .optional(),
807
+ responsesConfigurationUpdates: z.boolean().optional(),
807
808
  imageGeneration: marAgentImageGenerationSchema.optional()
808
809
  })
809
810
  .strip()).superRefine((configuration, context) => {
@@ -881,8 +882,7 @@ export const codexCredentialOwnershipSchema = z.discriminatedUnion('ownerType',
881
882
  ownerType: z.literal('ORGANIZATION'),
882
883
  ownerOrganizationId: positiveSafeIntegerSchema
883
884
  })
884
- .strict(),
885
- z.object({ ownerType: z.literal('ENTERPRISE') }).strict()
885
+ .strict()
886
886
  ]);
887
887
  export const codexCredentialSummarySchema = z
888
888
  .object({
@@ -1177,6 +1177,14 @@ export const runEventSchema = z.object({
1177
1177
  createdAt: z.number().int().nonnegative().optional(),
1178
1178
  version: z.number().int().nonnegative().optional()
1179
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
+ latencyMs: z.number().int().nonnegative().optional(),
1185
+ tokensPerSecond: z.number().finite().nonnegative().optional()
1186
+ })
1187
+ .refine((value) => value.latencyMs !== undefined || value.tokensPerSecond !== undefined);
1180
1188
  /**
1181
1189
  * Node-to-Workbench asynchronous notifications. This is deliberately a
1182
1190
  * small envelope: business payloads remain owned by the Node and Server only
@@ -1538,6 +1546,7 @@ const userMessageItemSchema = conversationItemBaseSchema.extend({
1538
1546
  clientMessageId: z.string().min(1).max(128).nullable(),
1539
1547
  text: z.string(),
1540
1548
  contexts: z.array(contextReferenceSchema).max(64).default([]),
1549
+ attachments: z.array(conversationImageAttachmentSchema).max(32).optional(),
1541
1550
  source: z.literal('SCHEDULED').optional(),
1542
1551
  delivery: z.enum(['PENDING', 'ACCEPTED', 'STEERED', 'QUEUED_NEXT_TURN', 'REJECTED'])
1543
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<["ENTERPRISE", "ORGANIZATION", "PERSONAL"]>;
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" | "ENTERPRISE" | "ORGANIZATION";
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" | "ENTERPRISE" | "ORGANIZATION";
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" | "ENTERPRISE" | "ORGANIZATION";
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" | "ENTERPRISE" | "ORGANIZATION";
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: skillScopeSchema,
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<["ENTERPRISE", "ORGANIZATION", "PERSONAL"]>;
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" | "ENTERPRISE" | "ORGANIZATION";
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" | "ENTERPRISE" | "ORGANIZATION";
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" | "ENTERPRISE" | "ORGANIZATION";
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" | "ENTERPRISE" | "ORGANIZATION";
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.ZodIntersection<z.ZodEffects<z.ZodObject<{
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<["ENTERPRISE", "ORGANIZATION", "PERSONAL"]>;
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" | "ENTERPRISE" | "ORGANIZATION";
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" | "ENTERPRISE" | "ORGANIZATION";
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" | "ENTERPRISE" | "ORGANIZATION";
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" | "ENTERPRISE" | "ORGANIZATION";
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: skillScopeSchema,
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 = skillSourceInputSchema.and(z
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: skillScopeSchema,
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),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/protocol",
3
- "version": "0.9.135",
3
+ "version": "0.9.137",
4
4
  "description": "Shared runtime protocol schemas for MyAgentRoam.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",