@myagentroam/protocol 0.11.68 → 0.11.70
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 +4402 -40
- package/dist/index.js +86 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -298,6 +298,7 @@ export const nodeUpgradeStatusSchema = z.object({
|
|
|
298
298
|
errorCode: z.string().trim().min(1).max(80).optional(),
|
|
299
299
|
updatedAt: z.number().int().nonnegative()
|
|
300
300
|
});
|
|
301
|
+
export const sessionAsideCapabilitySchema = z.object({ apiVersion: z.literal(1) }).strict();
|
|
301
302
|
export const promptCompletionCapabilitySchema = z
|
|
302
303
|
.object({
|
|
303
304
|
apiVersion: z.literal(1),
|
|
@@ -347,6 +348,7 @@ export const nodeCapabilitiesSchema = z
|
|
|
347
348
|
chatgptLogin: chatgptLoginCapabilitySchema.optional(),
|
|
348
349
|
workspaceDirectTransfer: workspaceDirectTransferCapabilitySchema.optional(),
|
|
349
350
|
terminalDirect: terminalDirectCapabilitySchema.optional(),
|
|
351
|
+
sessionAside: sessionAsideCapabilitySchema.optional(),
|
|
350
352
|
sessionGroups: z
|
|
351
353
|
.object({ apiVersion: z.literal(1) })
|
|
352
354
|
.strict()
|
|
@@ -1391,6 +1393,14 @@ export const agentRunStatusSchema = z.enum([
|
|
|
1391
1393
|
'CANCELLED',
|
|
1392
1394
|
'INTERRUPTED'
|
|
1393
1395
|
]);
|
|
1396
|
+
export const workspaceSessionNavigationQuerySchema = z
|
|
1397
|
+
.object({
|
|
1398
|
+
sessionIds: z.array(z.string().min(1).max(512)),
|
|
1399
|
+
summaryAnchors: z.array(z.string().min(1).max(512)),
|
|
1400
|
+
treeAnchor: z.string().min(1).max(512).optional(),
|
|
1401
|
+
limit: z.number().int().min(1).max(100)
|
|
1402
|
+
})
|
|
1403
|
+
.strict();
|
|
1394
1404
|
export const recentRunSchema = z.object({
|
|
1395
1405
|
runId: z.string().min(1).max(128),
|
|
1396
1406
|
nodeId: z.string().min(1).max(128),
|
|
@@ -1496,7 +1506,7 @@ const watchFailedEventSchema = watchEventIdentitySchema
|
|
|
1496
1506
|
sessionId: z.string().min(1).max(512).optional(),
|
|
1497
1507
|
conversationId: z.string().min(1).max(160).optional(),
|
|
1498
1508
|
templateId: z.string().min(1).max(160).optional(),
|
|
1499
|
-
topic: z.enum(['sessions', 'files', 'changes']).optional(),
|
|
1509
|
+
topic: z.enum(['sessions', 'files', 'changes', 'sessionNavigation']).optional(),
|
|
1500
1510
|
code: z.string().regex(/^[A-Z][A-Z0-9_]{0,127}$/),
|
|
1501
1511
|
message: z.string().min(1).max(1000)
|
|
1502
1512
|
})
|
|
@@ -1528,7 +1538,7 @@ export const watchEventSchema = z.union([
|
|
|
1528
1538
|
watchEventIdentitySchema.extend({
|
|
1529
1539
|
type: z.literal('watch.workspace.snapshot'),
|
|
1530
1540
|
workspaceId: z.string().min(1).max(160),
|
|
1531
|
-
topic: z.enum(['sessions', 'files', 'changes']),
|
|
1541
|
+
topic: z.enum(['sessions', 'files', 'changes', 'sessionNavigation']),
|
|
1532
1542
|
revision: z.number().int().nonnegative(),
|
|
1533
1543
|
snapshotSequence: z.number().int().positive(),
|
|
1534
1544
|
expiresAt: z.number().int().positive(),
|
|
@@ -1705,6 +1715,7 @@ export const nodeWorkbenchCapabilitiesSchema = z.object({
|
|
|
1705
1715
|
}),
|
|
1706
1716
|
directTransfer: workspaceDirectTransferCapabilitySchema.optional(),
|
|
1707
1717
|
terminalDirect: terminalDirectCapabilitySchema.optional(),
|
|
1718
|
+
sessionAside: sessionAsideCapabilitySchema.optional(),
|
|
1708
1719
|
sessionGroups: z
|
|
1709
1720
|
.object({ apiVersion: z.literal(1) })
|
|
1710
1721
|
.strict()
|
|
@@ -1899,6 +1910,11 @@ const reasoningItemSchema = conversationItemBaseSchema.extend({
|
|
|
1899
1910
|
})
|
|
1900
1911
|
});
|
|
1901
1912
|
export const subagentOperationSchema = z.enum(['START', 'STATUS', 'CANCEL', 'MESSAGE', 'RESUME']);
|
|
1913
|
+
/** Public message supplied to this call, not a message from the target agent. */
|
|
1914
|
+
export const subagentCallDetailSchema = z.object({
|
|
1915
|
+
message: z.string().min(1).max(2000),
|
|
1916
|
+
messageTruncated: z.literal(true).optional()
|
|
1917
|
+
});
|
|
1902
1918
|
/** Agent operations describe calls, not the lifecycle of their target Sessions. */
|
|
1903
1919
|
export const agentOperationPresentationSchema = z.object({
|
|
1904
1920
|
action: z.enum(['START', 'SEND', 'WAIT', 'STOP', 'LIST', 'VIEW']),
|
|
@@ -1906,11 +1922,24 @@ export const agentOperationPresentationSchema = z.object({
|
|
|
1906
1922
|
.array(z.object({
|
|
1907
1923
|
agentId: z.string().min(1).max(128),
|
|
1908
1924
|
sessionId: z.string().min(1).max(128).optional(),
|
|
1909
|
-
title: z.string().min(1).max(500).optional()
|
|
1925
|
+
title: z.string().min(1).max(500).optional(),
|
|
1926
|
+
status: z.string().min(1).max(128).optional(),
|
|
1927
|
+
message: z.string().min(1).max(800).optional(),
|
|
1928
|
+
messageTruncated: z.literal(true).optional()
|
|
1910
1929
|
}))
|
|
1911
1930
|
.max(100),
|
|
1912
1931
|
targetsTruncated: z.literal(true).optional(),
|
|
1913
|
-
scope: z.string().min(1).max(32).optional()
|
|
1932
|
+
scope: z.string().min(1).max(32).optional(),
|
|
1933
|
+
detail: z
|
|
1934
|
+
.object({
|
|
1935
|
+
title: z.string().min(1).max(500).optional(),
|
|
1936
|
+
message: z.string().min(1).max(2000).optional(),
|
|
1937
|
+
messageTruncated: z.literal(true).optional(),
|
|
1938
|
+
delivery: z.enum(['QUEUE', 'STEER']).optional(),
|
|
1939
|
+
failed: z.literal(true).optional(),
|
|
1940
|
+
error: z.string().max(500).optional()
|
|
1941
|
+
})
|
|
1942
|
+
.optional()
|
|
1914
1943
|
});
|
|
1915
1944
|
export const subagentLatestMessageSchema = z.object({
|
|
1916
1945
|
itemId: z.string().min(1).max(128),
|
|
@@ -1976,10 +2005,30 @@ export const executionPresentationSchema = z
|
|
|
1976
2005
|
const toolCallPresentationSchema = z.discriminatedUnion('kind', [
|
|
1977
2006
|
z.object({
|
|
1978
2007
|
kind: z.literal('READ'),
|
|
1979
|
-
paths: z.array(z.string().min(1).max(4096)).max(16).optional()
|
|
2008
|
+
paths: z.array(z.string().min(1).max(4096)).max(16).optional(),
|
|
2009
|
+
results: z
|
|
2010
|
+
.array(z.object({
|
|
2011
|
+
path: z.string().min(1).max(4096),
|
|
2012
|
+
startLine: z.number().int().positive().optional(),
|
|
2013
|
+
endLine: z.number().int().positive().optional(),
|
|
2014
|
+
empty: z.literal(true).optional(),
|
|
2015
|
+
error: z.object({ code: z.string().max(80), message: z.string().max(1000) }).optional(),
|
|
2016
|
+
contentRange: z
|
|
2017
|
+
.object({
|
|
2018
|
+
channel: z.enum(['TEXT', 'STDOUT', 'STDERR', 'COMBINED']),
|
|
2019
|
+
start: z.number().int().min(0).max(10_000),
|
|
2020
|
+
end: z.number().int().min(0).max(10_000)
|
|
2021
|
+
})
|
|
2022
|
+
.refine((range) => range.start <= range.end)
|
|
2023
|
+
.optional()
|
|
2024
|
+
}))
|
|
2025
|
+
.max(16)
|
|
2026
|
+
.optional()
|
|
1980
2027
|
}),
|
|
1981
2028
|
z.object({
|
|
1982
2029
|
kind: z.literal('WEB_SEARCH'),
|
|
2030
|
+
detailOnly: z.literal(true).optional(),
|
|
2031
|
+
sourcesOnly: z.literal(true).optional(),
|
|
1983
2032
|
query: z.string().max(500).optional(),
|
|
1984
2033
|
sourceCount: z.number().int().nonnegative().optional(),
|
|
1985
2034
|
sources: z
|
|
@@ -1993,6 +2042,7 @@ const toolCallPresentationSchema = z.discriminatedUnion('kind', [
|
|
|
1993
2042
|
}),
|
|
1994
2043
|
z.object({
|
|
1995
2044
|
kind: z.literal('WEB_FETCH'),
|
|
2045
|
+
detailOnly: z.literal(true).optional(),
|
|
1996
2046
|
requestUrl: z.string().max(8192).optional(),
|
|
1997
2047
|
url: z.string().max(8192).optional(),
|
|
1998
2048
|
title: z.string().max(1000).optional(),
|
|
@@ -2006,6 +2056,36 @@ const toolCallPresentationSchema = z.discriminatedUnion('kind', [
|
|
|
2006
2056
|
description: z.string().max(2000).optional(),
|
|
2007
2057
|
source: z.string().max(4096).optional()
|
|
2008
2058
|
}),
|
|
2059
|
+
z.object({
|
|
2060
|
+
kind: z.literal('IMAGE_VIEW'),
|
|
2061
|
+
path: z.string().max(4096).optional(),
|
|
2062
|
+
resourceId: z.string().max(512).optional(),
|
|
2063
|
+
mimeType: z.enum(['image/png', 'image/jpeg', 'image/webp']).optional(),
|
|
2064
|
+
width: z.number().int().positive().optional(),
|
|
2065
|
+
height: z.number().int().positive().optional(),
|
|
2066
|
+
sourceWidth: z.number().int().positive().optional(),
|
|
2067
|
+
sourceHeight: z.number().int().positive().optional(),
|
|
2068
|
+
region: z
|
|
2069
|
+
.object({
|
|
2070
|
+
x: z.number().int().nonnegative(),
|
|
2071
|
+
y: z.number().int().nonnegative(),
|
|
2072
|
+
width: z.number().int().positive(),
|
|
2073
|
+
height: z.number().int().positive()
|
|
2074
|
+
})
|
|
2075
|
+
.optional(),
|
|
2076
|
+
resize: z
|
|
2077
|
+
.object({
|
|
2078
|
+
maxWidth: z.number().int().positive().optional(),
|
|
2079
|
+
maxHeight: z.number().int().positive().optional()
|
|
2080
|
+
})
|
|
2081
|
+
.optional()
|
|
2082
|
+
}),
|
|
2083
|
+
z.object({
|
|
2084
|
+
kind: z.literal('TOOL_SEARCH'),
|
|
2085
|
+
query: z.string().max(500).optional(),
|
|
2086
|
+
tools: z.array(z.string().max(512)).max(20).optional()
|
|
2087
|
+
}),
|
|
2088
|
+
z.object({ kind: z.literal('COMPACT_REQUEST'), accepted: z.literal(true).optional() }),
|
|
2009
2089
|
z.object({
|
|
2010
2090
|
kind: z.literal('SLEEP'),
|
|
2011
2091
|
durationMs: z.number().int().min(1).max(1800000).optional(),
|
|
@@ -2116,6 +2196,7 @@ const toolCallItemSchema = conversationItemBaseSchema.extend({
|
|
|
2116
2196
|
toolPresentation: toolCallPresentationSchema.optional(),
|
|
2117
2197
|
agentOperation: agentOperationPresentationSchema.optional(),
|
|
2118
2198
|
subagentOperation: subagentOperationSchema.optional(),
|
|
2199
|
+
subagentCallDetail: subagentCallDetailSchema.optional(),
|
|
2119
2200
|
subagentWait: z.boolean().optional(),
|
|
2120
2201
|
subagentId: z.string().min(1).max(128).nullable().optional(),
|
|
2121
2202
|
subagentSessionId: z.string().min(1).max(128).optional(),
|