@myagentroam/protocol 0.11.45 → 0.11.47
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.d.ts +12 -12
- package/dist/index.js +6 -4
- package/dist/workbench-notification.d.ts +41 -0
- package/dist/workbench-notification.js +22 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2314,14 +2314,14 @@ export declare const scheduledRunAuthorizeRequestSchema: z.ZodObject<{
|
|
|
2314
2314
|
workspaceId: z.ZodString;
|
|
2315
2315
|
ownerUserId: z.ZodNumber;
|
|
2316
2316
|
runner: z.ZodEnum<["codex", "claude-code", "opencode", "mar-agent"]>;
|
|
2317
|
-
|
|
2317
|
+
modelId: z.ZodNullable<z.ZodString>;
|
|
2318
2318
|
}, "strict", z.ZodTypeAny, {
|
|
2319
2319
|
sessionId: string;
|
|
2320
2320
|
workspaceId: string;
|
|
2321
2321
|
revision: number;
|
|
2322
2322
|
ownerUserId: number;
|
|
2323
|
+
modelId: string | null;
|
|
2323
2324
|
runner: "mar-agent" | "codex" | "claude-code" | "opencode";
|
|
2324
|
-
model: string | null;
|
|
2325
2325
|
taskId: string;
|
|
2326
2326
|
occurrenceId: string;
|
|
2327
2327
|
}, {
|
|
@@ -2329,8 +2329,8 @@ export declare const scheduledRunAuthorizeRequestSchema: z.ZodObject<{
|
|
|
2329
2329
|
workspaceId: string;
|
|
2330
2330
|
revision: number;
|
|
2331
2331
|
ownerUserId: number;
|
|
2332
|
+
modelId: string | null;
|
|
2332
2333
|
runner: "mar-agent" | "codex" | "claude-code" | "opencode";
|
|
2333
|
-
model: string | null;
|
|
2334
2334
|
taskId: string;
|
|
2335
2335
|
occurrenceId: string;
|
|
2336
2336
|
}>;
|
|
@@ -2339,7 +2339,7 @@ export declare const restartRunAuthorizeRequestSchema: z.ZodObject<{
|
|
|
2339
2339
|
sessionId: z.ZodString;
|
|
2340
2340
|
workspaceId: z.ZodString;
|
|
2341
2341
|
ownerUserId: z.ZodNumber;
|
|
2342
|
-
|
|
2342
|
+
modelId: z.ZodNullable<z.ZodString>;
|
|
2343
2343
|
} & {
|
|
2344
2344
|
handoffId: z.ZodString;
|
|
2345
2345
|
runner: z.ZodLiteral<"mar-agent">;
|
|
@@ -2347,15 +2347,15 @@ export declare const restartRunAuthorizeRequestSchema: z.ZodObject<{
|
|
|
2347
2347
|
sessionId: string;
|
|
2348
2348
|
workspaceId: string;
|
|
2349
2349
|
ownerUserId: number;
|
|
2350
|
+
modelId: string | null;
|
|
2350
2351
|
runner: "mar-agent";
|
|
2351
|
-
model: string | null;
|
|
2352
2352
|
handoffId: string;
|
|
2353
2353
|
}, {
|
|
2354
2354
|
sessionId: string;
|
|
2355
2355
|
workspaceId: string;
|
|
2356
2356
|
ownerUserId: number;
|
|
2357
|
+
modelId: string | null;
|
|
2357
2358
|
runner: "mar-agent";
|
|
2358
|
-
model: string | null;
|
|
2359
2359
|
handoffId: string;
|
|
2360
2360
|
}>;
|
|
2361
2361
|
export type RestartRunAuthorizeRequest = z.infer<typeof restartRunAuthorizeRequestSchema>;
|
|
@@ -8778,18 +8778,18 @@ export type RunnerProfile = z.infer<typeof runnerProfileSchema>;
|
|
|
8778
8778
|
/** The last explicitly chosen Composer configuration belongs to one Node Runner. */
|
|
8779
8779
|
export declare const runnerDefaultConfigurationSchema: z.ZodObject<{
|
|
8780
8780
|
runner: z.ZodEnum<["codex", "claude-code", "opencode", "mar-agent"]>;
|
|
8781
|
-
|
|
8781
|
+
modelId: z.ZodString;
|
|
8782
8782
|
/** Runners without a reasoning-variant dimension persist an empty effort value. */
|
|
8783
8783
|
effort: z.ZodString;
|
|
8784
8784
|
access: z.ZodString;
|
|
8785
|
-
}, "
|
|
8785
|
+
}, "strict", z.ZodTypeAny, {
|
|
8786
|
+
modelId: string;
|
|
8786
8787
|
runner: "mar-agent" | "codex" | "claude-code" | "opencode";
|
|
8787
|
-
model: string;
|
|
8788
8788
|
access: string;
|
|
8789
8789
|
effort: string;
|
|
8790
8790
|
}, {
|
|
8791
|
+
modelId: string;
|
|
8791
8792
|
runner: "mar-agent" | "codex" | "claude-code" | "opencode";
|
|
8792
|
-
model: string;
|
|
8793
8793
|
access: string;
|
|
8794
8794
|
effort: string;
|
|
8795
8795
|
}>;
|
|
@@ -47539,6 +47539,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
|
|
|
47539
47539
|
}, "strip", z.ZodTypeAny, {
|
|
47540
47540
|
source: "runtime" | "official" | "native";
|
|
47541
47541
|
nextCursor: string | null;
|
|
47542
|
+
readAt: number;
|
|
47542
47543
|
snapshotSequence: number;
|
|
47543
47544
|
unit: "SEGMENT";
|
|
47544
47545
|
segments: {
|
|
@@ -48250,12 +48251,12 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
|
|
|
48250
48251
|
after: string;
|
|
48251
48252
|
} | undefined;
|
|
48252
48253
|
}[];
|
|
48253
|
-
readAt: number;
|
|
48254
48254
|
latestVisibleAt: number;
|
|
48255
48255
|
deferredOlderHistory?: boolean | undefined;
|
|
48256
48256
|
}, {
|
|
48257
48257
|
source: "runtime" | "official" | "native";
|
|
48258
48258
|
nextCursor: string | null;
|
|
48259
|
+
readAt: number;
|
|
48259
48260
|
snapshotSequence: number;
|
|
48260
48261
|
unit: "SEGMENT";
|
|
48261
48262
|
segments: {
|
|
@@ -48967,7 +48968,6 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
|
|
|
48967
48968
|
after: string;
|
|
48968
48969
|
} | undefined;
|
|
48969
48970
|
}[];
|
|
48970
|
-
readAt: number;
|
|
48971
48971
|
latestVisibleAt: number;
|
|
48972
48972
|
deferredOlderHistory?: boolean | undefined;
|
|
48973
48973
|
}>;
|
package/dist/index.js
CHANGED
|
@@ -617,7 +617,7 @@ export const scheduledRunAuthorizeRequestSchema = z
|
|
|
617
617
|
workspaceId: boundedIdentifierSchema,
|
|
618
618
|
ownerUserId: positiveSafeIntegerSchema,
|
|
619
619
|
runner: runnerNameSchema,
|
|
620
|
-
|
|
620
|
+
modelId: z.string().max(256).nullable()
|
|
621
621
|
})
|
|
622
622
|
.strict();
|
|
623
623
|
export const restartRunAuthorizeRequestSchema = scheduledRunAuthorizeRequestSchema
|
|
@@ -1645,13 +1645,15 @@ export const runnerProfileSchema = z.object({
|
|
|
1645
1645
|
capabilities: z.array(z.string().min(1).max(80)).max(64)
|
|
1646
1646
|
});
|
|
1647
1647
|
/** The last explicitly chosen Composer configuration belongs to one Node Runner. */
|
|
1648
|
-
export const runnerDefaultConfigurationSchema = z
|
|
1648
|
+
export const runnerDefaultConfigurationSchema = z
|
|
1649
|
+
.object({
|
|
1649
1650
|
runner: runnerNameSchema,
|
|
1650
|
-
|
|
1651
|
+
modelId: z.string().trim().min(1).max(128),
|
|
1651
1652
|
/** Runners without a reasoning-variant dimension persist an empty effort value. */
|
|
1652
1653
|
effort: z.string().trim().max(64),
|
|
1653
1654
|
access: z.string().trim().min(1).max(128)
|
|
1654
|
-
})
|
|
1655
|
+
})
|
|
1656
|
+
.strict();
|
|
1655
1657
|
/** A Runner command is selected from a Node-declared profile, never guessed from `/` text. */
|
|
1656
1658
|
export const runnerCommandExecutionSchema = z.object({
|
|
1657
1659
|
commandId: z.string().min(1).max(128),
|
|
@@ -271,5 +271,46 @@ export declare const notificationCreatedSchema: z.ZodObject<{
|
|
|
271
271
|
};
|
|
272
272
|
};
|
|
273
273
|
}>;
|
|
274
|
+
export declare const NOTIFICATION_TARGET_READ_ID_LIMIT = 250;
|
|
275
|
+
export declare const notificationTargetReadSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
276
|
+
type: z.ZodLiteral<"notification.session-read">;
|
|
277
|
+
nodeId: z.ZodString;
|
|
278
|
+
workspaceId: z.ZodString;
|
|
279
|
+
sessionId: z.ZodString;
|
|
280
|
+
notificationIds: z.ZodArray<z.ZodString, "many">;
|
|
281
|
+
readAt: z.ZodNumber;
|
|
282
|
+
}, "strict", z.ZodTypeAny, {
|
|
283
|
+
type: "notification.session-read";
|
|
284
|
+
sessionId: string;
|
|
285
|
+
workspaceId: string;
|
|
286
|
+
nodeId: string;
|
|
287
|
+
notificationIds: string[];
|
|
288
|
+
readAt: number;
|
|
289
|
+
}, {
|
|
290
|
+
type: "notification.session-read";
|
|
291
|
+
sessionId: string;
|
|
292
|
+
workspaceId: string;
|
|
293
|
+
nodeId: string;
|
|
294
|
+
notificationIds: string[];
|
|
295
|
+
readAt: number;
|
|
296
|
+
}>, z.ZodObject<{
|
|
297
|
+
type: z.ZodLiteral<"notification.conversation-read">;
|
|
298
|
+
nodeId: z.ZodString;
|
|
299
|
+
conversationId: z.ZodString;
|
|
300
|
+
notificationIds: z.ZodArray<z.ZodString, "many">;
|
|
301
|
+
readAt: z.ZodNumber;
|
|
302
|
+
}, "strict", z.ZodTypeAny, {
|
|
303
|
+
type: "notification.conversation-read";
|
|
304
|
+
nodeId: string;
|
|
305
|
+
conversationId: string;
|
|
306
|
+
notificationIds: string[];
|
|
307
|
+
readAt: number;
|
|
308
|
+
}, {
|
|
309
|
+
type: "notification.conversation-read";
|
|
310
|
+
nodeId: string;
|
|
311
|
+
conversationId: string;
|
|
312
|
+
notificationIds: string[];
|
|
313
|
+
readAt: number;
|
|
314
|
+
}>]>;
|
|
274
315
|
export type NotificationTarget = Readonly<z.infer<typeof notificationTargetSchema>>;
|
|
275
316
|
export type ServerNotification = Readonly<z.infer<typeof serverNotificationSchema>>;
|
|
@@ -41,3 +41,25 @@ export const notificationCreatedSchema = z
|
|
|
41
41
|
notification: serverNotificationSchema
|
|
42
42
|
})
|
|
43
43
|
.strict();
|
|
44
|
+
export const NOTIFICATION_TARGET_READ_ID_LIMIT = 250;
|
|
45
|
+
export const notificationTargetReadSchema = z.discriminatedUnion('type', [
|
|
46
|
+
z
|
|
47
|
+
.object({
|
|
48
|
+
type: z.literal('notification.session-read'),
|
|
49
|
+
nodeId: identity,
|
|
50
|
+
workspaceId: identity,
|
|
51
|
+
sessionId: identity,
|
|
52
|
+
notificationIds: z.array(identity).max(NOTIFICATION_TARGET_READ_ID_LIMIT),
|
|
53
|
+
readAt: timestamp
|
|
54
|
+
})
|
|
55
|
+
.strict(),
|
|
56
|
+
z
|
|
57
|
+
.object({
|
|
58
|
+
type: z.literal('notification.conversation-read'),
|
|
59
|
+
nodeId: identity,
|
|
60
|
+
conversationId: identity,
|
|
61
|
+
notificationIds: z.array(identity).max(NOTIFICATION_TARGET_READ_ID_LIMIT),
|
|
62
|
+
readAt: timestamp
|
|
63
|
+
})
|
|
64
|
+
.strict()
|
|
65
|
+
]);
|