@myagentroam/protocol 0.9.96 → 0.9.97
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 +4 -4
- package/dist/index.js +5 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6223,20 +6223,20 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
|
|
|
6223
6223
|
export type NodeWorkbenchCapabilities = z.infer<typeof nodeWorkbenchCapabilitiesSchema>;
|
|
6224
6224
|
export declare const sessionRuntimeCapabilitySchema: z.ZodEnum<["history.read", "events.live", "turn.start", "turn.queue", "turn.interrupt", "run.cancel", "approval.respond", "user-input.respond", "session.rename", "session.rewind", "session.rollback", "session.remove", "session.pin"]>;
|
|
6225
6225
|
export declare const sessionRuntimeCapabilitiesSchema: z.ZodObject<{
|
|
6226
|
-
level: z.
|
|
6226
|
+
level: z.ZodLiteral<"MANAGED">;
|
|
6227
6227
|
capabilities: z.ZodArray<z.ZodEnum<["history.read", "events.live", "turn.start", "turn.queue", "turn.interrupt", "run.cancel", "approval.respond", "user-input.respond", "session.rename", "session.rewind", "session.rollback", "session.remove", "session.pin"]>, "many">;
|
|
6228
6228
|
reasonCode: z.ZodNullable<z.ZodString>;
|
|
6229
6229
|
}, "strip", z.ZodTypeAny, {
|
|
6230
6230
|
reasonCode: string | null;
|
|
6231
6231
|
capabilities: ("history.read" | "events.live" | "turn.start" | "turn.queue" | "turn.interrupt" | "run.cancel" | "approval.respond" | "user-input.respond" | "session.rename" | "session.rewind" | "session.rollback" | "session.remove" | "session.pin")[];
|
|
6232
|
-
level: "
|
|
6232
|
+
level: "MANAGED";
|
|
6233
6233
|
}, {
|
|
6234
6234
|
reasonCode: string | null;
|
|
6235
6235
|
capabilities: ("history.read" | "events.live" | "turn.start" | "turn.queue" | "turn.interrupt" | "run.cancel" | "approval.respond" | "user-input.respond" | "session.rename" | "session.rewind" | "session.rollback" | "session.remove" | "session.pin")[];
|
|
6236
|
-
level: "
|
|
6236
|
+
level: "MANAGED";
|
|
6237
6237
|
}>;
|
|
6238
6238
|
export type SessionRuntimeCapabilities = z.infer<typeof sessionRuntimeCapabilitiesSchema>;
|
|
6239
|
-
export declare const sessionActivityStateSchema: z.ZodEnum<["MANAGED_ACTIVE", "
|
|
6239
|
+
export declare const sessionActivityStateSchema: z.ZodEnum<["MANAGED_ACTIVE", "IDLE"]>;
|
|
6240
6240
|
export type SessionActivityState = z.infer<typeof sessionActivityStateSchema>;
|
|
6241
6241
|
export declare const eventCursorSchema: z.ZodObject<{
|
|
6242
6242
|
scope: z.ZodEnum<["RUN", "SESSION", "WORKSPACE_ACTIVITY"]>;
|
package/dist/index.js
CHANGED
|
@@ -1378,16 +1378,11 @@ export const sessionRuntimeCapabilitySchema = z.enum([
|
|
|
1378
1378
|
'session.pin'
|
|
1379
1379
|
]);
|
|
1380
1380
|
export const sessionRuntimeCapabilitiesSchema = z.object({
|
|
1381
|
-
level: z.
|
|
1381
|
+
level: z.literal('MANAGED'),
|
|
1382
1382
|
capabilities: z.array(sessionRuntimeCapabilitySchema),
|
|
1383
1383
|
reasonCode: z.string().min(1).max(80).nullable()
|
|
1384
1384
|
});
|
|
1385
|
-
export const sessionActivityStateSchema = z.enum([
|
|
1386
|
-
'MANAGED_ACTIVE',
|
|
1387
|
-
'EXTERNAL_ACTIVE',
|
|
1388
|
-
'IDLE',
|
|
1389
|
-
'UNAVAILABLE'
|
|
1390
|
-
]);
|
|
1385
|
+
export const sessionActivityStateSchema = z.enum(['MANAGED_ACTIVE', 'IDLE']);
|
|
1391
1386
|
export const eventCursorSchema = z.object({
|
|
1392
1387
|
scope: z.enum(['RUN', 'SESSION', 'WORKSPACE_ACTIVITY']),
|
|
1393
1388
|
streamId: z.string().min(1).max(128),
|
|
@@ -2720,6 +2715,9 @@ const FIXED_PUBLIC_ERROR_MESSAGES = {
|
|
|
2720
2715
|
GIT_CREDENTIAL_CONTEXT_EXPIRED: 'This Git credential context has expired. Start a new terminal or Agent execution.',
|
|
2721
2716
|
GIT_CREDENTIAL_DIRECTORY_INVALID: 'A private directory for Git keys could not be secured on this Node.',
|
|
2722
2717
|
TERMINAL_GIT_OWNER_REQUIRED: 'This terminal uses another user’s Git credentials. Open your own terminal.',
|
|
2718
|
+
EXTERNAL_SESSION_ACTIVE: 'This native session is currently active in another client. Try again later.',
|
|
2719
|
+
RUNNER_RESUME_FAILED: 'The native session could not be activated. Try again later.',
|
|
2720
|
+
SESSION_ACTIVATION_REQUIRED: 'Send a regular message before using this session command.',
|
|
2723
2721
|
GIT_ENVIRONMENT_INVALID: 'The existing Git process configuration is invalid or exceeds its supported size.',
|
|
2724
2722
|
INTERNAL_ERROR: 'An internal error occurred.',
|
|
2725
2723
|
UNAUTHENTICATED: 'Authentication is required.',
|