@myagentroam/protocol 0.9.95 → 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 +16 -5
- package/dist/index.js +12 -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"]>;
|
|
@@ -24748,6 +24748,17 @@ export declare const workspaceSymbolDefinitionSchema: z.ZodObject<{
|
|
|
24748
24748
|
export type WorkspaceSymbolDefinitionTarget = z.infer<typeof workspaceSymbolDefinitionTargetSchema>;
|
|
24749
24749
|
export type WorkspaceSymbolReference = z.infer<typeof workspaceSymbolReferenceSchema>;
|
|
24750
24750
|
export type WorkspaceSymbolDefinition = z.infer<typeof workspaceSymbolDefinitionSchema>;
|
|
24751
|
+
export declare const workspaceSymbolIndexPreparationSchema: z.ZodObject<{
|
|
24752
|
+
state: z.ZodEnum<["UNAVAILABLE", "BUILDING", "READY", "STALE", "FAILED"]>;
|
|
24753
|
+
failureCode: z.ZodOptional<z.ZodEnum<["SYMBOL_INDEX_BUILD_FAILED", "SYMBOL_INDEX_LIMIT_EXCEEDED"]>>;
|
|
24754
|
+
}, "strict", z.ZodTypeAny, {
|
|
24755
|
+
state: "FAILED" | "READY" | "UNAVAILABLE" | "BUILDING" | "STALE";
|
|
24756
|
+
failureCode?: "SYMBOL_INDEX_BUILD_FAILED" | "SYMBOL_INDEX_LIMIT_EXCEEDED" | undefined;
|
|
24757
|
+
}, {
|
|
24758
|
+
state: "FAILED" | "READY" | "UNAVAILABLE" | "BUILDING" | "STALE";
|
|
24759
|
+
failureCode?: "SYMBOL_INDEX_BUILD_FAILED" | "SYMBOL_INDEX_LIMIT_EXCEEDED" | undefined;
|
|
24760
|
+
}>;
|
|
24761
|
+
export type WorkspaceSymbolIndexPreparation = z.infer<typeof workspaceSymbolIndexPreparationSchema>;
|
|
24751
24762
|
export declare const workspaceFileReadSchema: z.ZodObject<{
|
|
24752
24763
|
path: z.ZodString;
|
|
24753
24764
|
encoding: z.ZodEnum<["utf-8", "base64"]>;
|
|
@@ -25425,7 +25436,7 @@ export declare const gitHistoryFileSchema: z.ZodObject<{
|
|
|
25425
25436
|
previousPath?: string | undefined;
|
|
25426
25437
|
}>;
|
|
25427
25438
|
export type GitHistoryFile = z.infer<typeof gitHistoryFileSchema>;
|
|
25428
|
-
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.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", "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"]>;
|
|
25439
|
+
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", "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"]>;
|
|
25429
25440
|
export type WorkbenchNodeOperation = z.infer<typeof workbenchNodeOperationSchema>;
|
|
25430
25441
|
/**
|
|
25431
25442
|
* A small, explicit envelope keeps WebSocket messages independently parseable
|
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),
|
|
@@ -2412,6 +2407,12 @@ export const workspaceSymbolDefinitionSchema = z.object({
|
|
|
2412
2407
|
truncated: z.boolean(),
|
|
2413
2408
|
failureCode: z.enum(['SYMBOL_INDEX_BUILD_FAILED', 'SYMBOL_INDEX_LIMIT_EXCEEDED']).optional()
|
|
2414
2409
|
});
|
|
2410
|
+
export const workspaceSymbolIndexPreparationSchema = z
|
|
2411
|
+
.object({
|
|
2412
|
+
state: z.enum(['UNAVAILABLE', 'BUILDING', 'READY', 'STALE', 'FAILED']),
|
|
2413
|
+
failureCode: z.enum(['SYMBOL_INDEX_BUILD_FAILED', 'SYMBOL_INDEX_LIMIT_EXCEEDED']).optional()
|
|
2414
|
+
})
|
|
2415
|
+
.strict();
|
|
2415
2416
|
export const workspaceFileReadSchema = z.object({
|
|
2416
2417
|
path: z.string().min(1).max(4096),
|
|
2417
2418
|
encoding: z.enum(['utf-8', 'base64']),
|
|
@@ -2562,6 +2563,7 @@ export const workbenchNodeOperationSchema = z.enum([
|
|
|
2562
2563
|
'workspace.files.search',
|
|
2563
2564
|
'workspace.files.mutate',
|
|
2564
2565
|
'workspace.content.search',
|
|
2566
|
+
'workspace.symbol.prepare',
|
|
2565
2567
|
'workspace.symbol.definition',
|
|
2566
2568
|
'workspace.files.upload.preflight',
|
|
2567
2569
|
'workspace.files.upload.create',
|
|
@@ -2713,6 +2715,9 @@ const FIXED_PUBLIC_ERROR_MESSAGES = {
|
|
|
2713
2715
|
GIT_CREDENTIAL_CONTEXT_EXPIRED: 'This Git credential context has expired. Start a new terminal or Agent execution.',
|
|
2714
2716
|
GIT_CREDENTIAL_DIRECTORY_INVALID: 'A private directory for Git keys could not be secured on this Node.',
|
|
2715
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.',
|
|
2716
2721
|
GIT_ENVIRONMENT_INVALID: 'The existing Git process configuration is invalid or exceeds its supported size.',
|
|
2717
2722
|
INTERNAL_ERROR: 'An internal error occurred.',
|
|
2718
2723
|
UNAUTHENTICATED: 'Authentication is required.',
|