@myagentroam/protocol 0.9.111 → 0.9.112

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 CHANGED
@@ -25612,7 +25612,7 @@ export declare const gitHistoryFileSchema: z.ZodObject<{
25612
25612
  previousPath?: string | undefined;
25613
25613
  }>;
25614
25614
  export type GitHistoryFile = z.infer<typeof gitHistoryFileSchema>;
25615
- export declare const workbenchNodeOperationSchema: z.ZodEnum<["workspace.git.settings.get", "workspace.git.settings.update", "node.workbench.capabilities", "runner.usage.status", "runner.usage.read", "workspace.directories.list", "workspace.remove", "workspace.watch", "workspace.unwatch", "session.unwatch", "session.metadata.update", "session.pin.move", "session.rewind", "session.rollback", "session.remove", "workspace.sessions.cleanup", "session.config.update", "session.turns.list", "session.events.read", "session.context.read", "session.command.execute", "runner.command.execute", "runner.profiles.list", "runner.defaults.save", "mar-agent.model.test", "workspace.files.list", "workspace.file.read", "workspace.file.write", "workspace.file.content.read", "workspace.file.direct.metadata", "workspace.files.search", "workspace.files.mutate", "workspace.content.search", "workspace.symbol.prepare", "workspace.symbol.definition", "workspace.files.upload.preflight", "workspace.files.upload.create", "workspace.files.upload.chunk", "workspace.files.upload.status", "workspace.files.upload.complete", "workspace.files.upload.cancel", "workspace.changes.current", "workspace.change.diff", "workspace.change.restore", "workspace.git.refs.list", "workspace.git.history.list", "workspace.git.commit.files", "workspace.git.commit.file.diff", "workspace.git.commit.file.content.read", "workspace.git.commit.file.direct.metadata", "run.image.read", "terminal.open", "terminal.list", "terminal.close", "terminal.attach.authorize", "terminal.direct.preflight", "node.upgrade.request", "node.upgrade.cancel", "node.skills.inspect", "node.skills.install", "node.skills.remove", "workspace.skills.inspect", "workspace.skills.install", "workspace.skills.remove", "workspace.skills.git-exclude-repair", "skill.install.job.get", "node.mcps.inspect", "node.mcps.install", "node.mcps.remove", "workspace.mcps.inspect", "workspace.mcps.install", "workspace.mcps.remove", "conversation.template.source.inspect", "conversation.template.publish", "conversation.template.publish.status", "conversation.template.version.inspect", "conversation.hosting.enable", "conversation.hosting.disable", "conversation.hosting.storage.inspect", "conversation.hosting.cleanup.preview", "conversation.hosting.cleanup.execute", "computer.use.enable", "computer.use.disable", "conversation.hosted.list", "conversation.hosted.create", "conversation.hosted.get", "conversation.hosted.history", "conversation.hosted.watch", "conversation.hosted.unwatch", "conversation.hosted.message", "conversation.hosted.rollback", "conversation.hosted.interrupt", "conversation.hosted.config.update", "conversation.hosted.metadata.update", "conversation.hosted.image.read", "conversation.hosted.files.list", "conversation.hosted.file.read", "conversation.hosted.file.delete", "conversation.hosted.files.upload.preflight", "conversation.hosted.files.upload.create", "conversation.hosted.files.upload.chunk", "conversation.hosted.files.upload.status", "conversation.hosted.files.upload.complete", "conversation.hosted.files.upload.cancel", "conversation.hosted.delete"]>;
25615
+ export declare const workbenchNodeOperationSchema: z.ZodEnum<["workspace.git.settings.get", "workspace.git.settings.update", "node.workbench.capabilities", "runner.usage.status", "runner.usage.read", "workspace.directories.list", "workspace.remove", "workspace.watch", "workspace.unwatch", "session.unwatch", "session.metadata.update", "session.pin.move", "session.rewind", "session.rollback", "session.remove", "workspace.sessions.cleanup", "session.config.update", "session.turns.list", "session.events.read", "session.context.read", "session.command.execute", "runner.command.execute", "runner.profiles.list", "runner.defaults.save", "mar-agent.model.test", "workspace.files.list", "workspace.file.read", "workspace.file.write", "workspace.file.content.read", "workspace.file.direct.metadata", "workspace.files.search", "workspace.files.mutate", "workspace.content.search", "workspace.symbol.prepare", "workspace.symbol.definition", "workspace.files.upload.preflight", "workspace.files.upload.create", "workspace.files.upload.chunk", "workspace.files.upload.status", "workspace.files.upload.complete", "workspace.files.upload.cancel", "workspace.changes.current", "workspace.change.diff", "workspace.change.restore", "workspace.git.refs.list", "workspace.git.history.list", "workspace.git.commit.files", "workspace.git.commit.file.diff", "workspace.git.commit.file.content.read", "workspace.git.commit.file.direct.metadata", "run.image.read", "terminal.open", "terminal.command.open", "terminal.list", "terminal.close", "terminal.attach.authorize", "terminal.direct.preflight", "node.upgrade.request", "node.upgrade.cancel", "node.skills.inspect", "node.skills.install", "node.skills.remove", "workspace.skills.inspect", "workspace.skills.install", "workspace.skills.remove", "workspace.skills.git-exclude-repair", "skill.install.job.get", "node.mcps.inspect", "node.mcps.install", "node.mcps.remove", "workspace.mcps.inspect", "workspace.mcps.install", "workspace.mcps.remove", "conversation.template.source.inspect", "conversation.template.publish", "conversation.template.publish.status", "conversation.template.version.inspect", "conversation.hosting.enable", "conversation.hosting.disable", "conversation.hosting.storage.inspect", "conversation.hosting.cleanup.preview", "conversation.hosting.cleanup.execute", "computer.use.enable", "computer.use.disable", "conversation.hosted.list", "conversation.hosted.create", "conversation.hosted.get", "conversation.hosted.history", "conversation.hosted.watch", "conversation.hosted.unwatch", "conversation.hosted.message", "conversation.hosted.rollback", "conversation.hosted.interrupt", "conversation.hosted.config.update", "conversation.hosted.metadata.update", "conversation.hosted.image.read", "conversation.hosted.files.list", "conversation.hosted.file.read", "conversation.hosted.file.delete", "conversation.hosted.files.upload.preflight", "conversation.hosted.files.upload.create", "conversation.hosted.files.upload.chunk", "conversation.hosted.files.upload.status", "conversation.hosted.files.upload.complete", "conversation.hosted.files.upload.cancel", "conversation.hosted.delete"]>;
25616
25616
  export type WorkbenchNodeOperation = z.infer<typeof workbenchNodeOperationSchema>;
25617
25617
  /**
25618
25618
  * A small, explicit envelope keeps WebSocket messages independently parseable
package/dist/index.js CHANGED
@@ -2628,6 +2628,7 @@ export const workbenchNodeOperationSchema = z.enum([
2628
2628
  'workspace.git.commit.file.direct.metadata',
2629
2629
  'run.image.read',
2630
2630
  'terminal.open',
2631
+ 'terminal.command.open',
2631
2632
  'terminal.list',
2632
2633
  'terminal.close',
2633
2634
  'terminal.attach.authorize',
@@ -2762,6 +2763,9 @@ const FIXED_PUBLIC_ERROR_MESSAGES = {
2762
2763
  GIT_CREDENTIAL_CONTEXT_EXPIRED: 'This Git credential context has expired. Start a new terminal or Agent execution.',
2763
2764
  GIT_CREDENTIAL_DIRECTORY_INVALID: 'A private directory for Git keys could not be secured on this Node.',
2764
2765
  TERMINAL_GIT_OWNER_REQUIRED: 'This terminal uses another user’s Git credentials. Open your own terminal.',
2766
+ TERMINAL_OWNER_REQUIRED: 'This terminal belongs to another user. Open your own terminal.',
2767
+ TERMINAL_COMMAND_INVALID: 'The remote command must be non-empty and at most 8 KiB.',
2768
+ TERMINAL_COMMAND_START_FAILED: 'The remote command could not be started.',
2765
2769
  EXTERNAL_SESSION_ACTIVE: 'This native session is currently active in another client. Try again later.',
2766
2770
  RUNNER_RESUME_FAILED: 'The native session could not be activated. Try again later.',
2767
2771
  SESSION_ACTIVATION_REQUIRED: 'Send a regular message before using this session command.',
@@ -19,7 +19,7 @@ export declare const terminalDirectBrowserMessageSchema: z.ZodDiscriminatedUnion
19
19
  workspaceId: z.ZodOptional<z.ZodString>;
20
20
  afterSequence: z.ZodNumber;
21
21
  readonly: z.ZodBoolean;
22
- takeover: z.ZodBoolean;
22
+ takeover: z.ZodOptional<z.ZodLiteral<false>>;
23
23
  }, "strict", z.ZodTypeAny, {
24
24
  type: "terminal.direct.prepare";
25
25
  requestId: string;
@@ -29,8 +29,8 @@ export declare const terminalDirectBrowserMessageSchema: z.ZodDiscriminatedUnion
29
29
  terminalId: string;
30
30
  afterSequence: number;
31
31
  readonly: boolean;
32
- takeover: boolean;
33
32
  workspaceId?: string | undefined;
33
+ takeover?: false | undefined;
34
34
  }, {
35
35
  type: "terminal.direct.prepare";
36
36
  requestId: string;
@@ -40,8 +40,8 @@ export declare const terminalDirectBrowserMessageSchema: z.ZodDiscriminatedUnion
40
40
  terminalId: string;
41
41
  afterSequence: number;
42
42
  readonly: boolean;
43
- takeover: boolean;
44
43
  workspaceId?: string | undefined;
44
+ takeover?: false | undefined;
45
45
  }>, z.ZodObject<{
46
46
  type: z.ZodLiteral<"terminal.direct.heartbeat">;
47
47
  directSessionId: z.ZodString;
@@ -137,7 +137,7 @@ export declare const terminalDirectNodeCommandSchema: z.ZodDiscriminatedUnion<"t
137
137
  workspaceId: z.ZodOptional<z.ZodString>;
138
138
  afterSequence: z.ZodNumber;
139
139
  readonly: z.ZodBoolean;
140
- takeover: z.ZodBoolean;
140
+ takeover: z.ZodOptional<z.ZodLiteral<false>>;
141
141
  grant: z.ZodString;
142
142
  browserFingerprint: z.ZodString;
143
143
  nodeFingerprint: z.ZodString;
@@ -157,8 +157,8 @@ export declare const terminalDirectNodeCommandSchema: z.ZodDiscriminatedUnion<"t
157
157
  terminalId: string;
158
158
  afterSequence: number;
159
159
  readonly: boolean;
160
- takeover: boolean;
161
160
  workspaceId?: string | undefined;
161
+ takeover?: false | undefined;
162
162
  }, {
163
163
  type: "terminal.direct.prepare";
164
164
  nodeGeneration: string;
@@ -173,8 +173,8 @@ export declare const terminalDirectNodeCommandSchema: z.ZodDiscriminatedUnion<"t
173
173
  terminalId: string;
174
174
  afterSequence: number;
175
175
  readonly: boolean;
176
- takeover: boolean;
177
176
  workspaceId?: string | undefined;
177
+ takeover?: false | undefined;
178
178
  }>, z.ZodObject<{
179
179
  type: z.ZodLiteral<"terminal.direct.heartbeat">;
180
180
  directSessionId: z.ZodString;
@@ -201,7 +201,7 @@ export declare const terminalDirectNodeCommandSchema: z.ZodDiscriminatedUnion<"t
201
201
  directSessionId: string;
202
202
  }>]>;
203
203
  export type TerminalDirectNodeCommand = z.infer<typeof terminalDirectNodeCommandSchema>;
204
- export declare const terminalDirectNodeEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
204
+ export declare const terminalDirectNodeEventSchema: z.ZodObject<{
205
205
  type: z.ZodLiteral<"terminal.direct.ready">;
206
206
  directSessionId: z.ZodString;
207
207
  }, "strict", z.ZodTypeAny, {
@@ -210,16 +210,7 @@ export declare const terminalDirectNodeEventSchema: z.ZodDiscriminatedUnion<"typ
210
210
  }, {
211
211
  type: "terminal.direct.ready";
212
212
  directSessionId: string;
213
- }>, z.ZodObject<{
214
- type: z.ZodLiteral<"terminal.direct.takeover">;
215
- directSessionId: z.ZodString;
216
- }, "strict", z.ZodTypeAny, {
217
- type: "terminal.direct.takeover";
218
- directSessionId: string;
219
- }, {
220
- type: "terminal.direct.takeover";
221
- directSessionId: string;
222
- }>]>;
213
+ }>;
223
214
  export declare const terminalDirectOpenFrameSchema: z.ZodObject<{
224
215
  type: z.ZodLiteral<"OPEN">;
225
216
  directSessionId: z.ZodString;
@@ -23,7 +23,7 @@ export const terminalDirectBrowserMessageSchema = z.discriminatedUnion('type', [
23
23
  workspaceId: resourceId.optional(),
24
24
  afterSequence: z.number().int().nonnegative(),
25
25
  readonly: z.boolean(),
26
- takeover: z.boolean()
26
+ takeover: z.literal(false).optional()
27
27
  })
28
28
  .strict(),
29
29
  z.object({ type: z.literal('terminal.direct.heartbeat'), directSessionId: id }).strict(),
@@ -70,7 +70,7 @@ export const terminalDirectNodeCommandSchema = z.discriminatedUnion('type', [
70
70
  workspaceId: resourceId.optional(),
71
71
  afterSequence: z.number().int().nonnegative(),
72
72
  readonly: z.boolean(),
73
- takeover: z.boolean(),
73
+ takeover: z.literal(false).optional(),
74
74
  grant: z.string().min(32).max(4096),
75
75
  browserFingerprint: fingerprint,
76
76
  nodeFingerprint: fingerprint,
@@ -83,10 +83,12 @@ export const terminalDirectNodeCommandSchema = z.discriminatedUnion('type', [
83
83
  .strict(),
84
84
  z.object({ type: z.literal('terminal.direct.cancel'), directSessionId: id, code }).strict()
85
85
  ]);
86
- export const terminalDirectNodeEventSchema = z.discriminatedUnion('type', [
87
- z.object({ type: z.literal('terminal.direct.ready'), directSessionId: id }).strict(),
88
- z.object({ type: z.literal('terminal.direct.takeover'), directSessionId: id }).strict()
89
- ]);
86
+ export const terminalDirectNodeEventSchema = z
87
+ .object({
88
+ type: z.literal('terminal.direct.ready'),
89
+ directSessionId: id
90
+ })
91
+ .strict();
90
92
  export const terminalDirectOpenFrameSchema = z
91
93
  .object({
92
94
  type: z.literal('OPEN'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/protocol",
3
- "version": "0.9.111",
3
+ "version": "0.9.112",
4
4
  "description": "Shared runtime protocol schemas for MyAgentRoam.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",