@myagentroam/protocol 0.11.2 → 0.11.4

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.js CHANGED
@@ -1641,7 +1641,7 @@ export const runnerCommandExecutionSchema = z.object({
1641
1641
  export const serverWorkbenchCapabilitiesSchema = z.object({
1642
1642
  workbenchProtocolVersion: z.literal(WORKBENCH_PROTOCOL_VERSION),
1643
1643
  serverVersion: z.string().trim().min(1).max(128).optional(),
1644
- conversationItemVersions: z.array(z.literal(1)).min(1),
1644
+ conversationItemVersions: z.array(z.literal(2)).min(1),
1645
1645
  supportsSessionDetailStream: z.boolean(),
1646
1646
  supportsTerminalBrowserRelay: z.boolean(),
1647
1647
  supportsTerminalNodeDataChannel: z.boolean(),
@@ -1656,7 +1656,7 @@ export const nodeWorkbenchCapabilitiesSchema = z.object({
1656
1656
  platform: nodePlatformSchema,
1657
1657
  architecture: z.string().min(1).max(128),
1658
1658
  conversation: capabilitySchemaWith({
1659
- itemVersions: z.array(z.literal(1)),
1659
+ itemVersions: z.array(z.literal(2)).min(1),
1660
1660
  supportsSessionCursor: z.boolean(),
1661
1661
  supportsHistoryPaging: z.boolean(),
1662
1662
  supportsItemFinalSnapshots: z.boolean(),
@@ -1738,6 +1738,10 @@ export const permissionStopSchema = z.object({
1738
1738
  parentCallId: z.string().min(1).max(128).optional()
1739
1739
  })
1740
1740
  });
1741
+ export const conversationProcessGroupSchema = z.object({
1742
+ id: z.string().min(1).max(128),
1743
+ isStart: z.literal(true).optional()
1744
+ });
1741
1745
  const conversationItemBaseSchema = z.object({
1742
1746
  id: z.string().min(1).max(128),
1743
1747
  sessionId: z.string().min(1).max(128),
@@ -1759,6 +1763,7 @@ const conversationItemBaseSchema = z.object({
1759
1763
  completedAt: z.number().int().nonnegative().nullable(),
1760
1764
  segmentId: z.string().min(1).max(256).optional(),
1761
1765
  segmentIndex: z.number().int().nonnegative().optional(),
1766
+ processGroup: conversationProcessGroupSchema.optional(),
1762
1767
  permissionStop: permissionStopSchema.optional()
1763
1768
  });
1764
1769
  export const contextReferenceSchema = z.object({
@@ -1849,10 +1854,11 @@ const summaryItemSchema = conversationItemBaseSchema.extend({
1849
1854
  durationMs: z.number().int().nonnegative().nullable()
1850
1855
  })
1851
1856
  });
1852
- const reasoningSummaryItemSchema = conversationItemBaseSchema.extend({
1853
- kind: z.literal('reasoning_summary'),
1857
+ const reasoningItemSchema = conversationItemBaseSchema.extend({
1858
+ kind: z.literal('reasoning'),
1854
1859
  payload: z.object({
1855
- sections: z.array(z.object({ index: z.number().int().nonnegative(), text: z.string() }))
1860
+ sections: z.array(z.object({ index: z.number().int().nonnegative(), text: z.string() })),
1861
+ representation: z.enum(['summary', 'visible_thinking', 'unspecified'])
1856
1862
  })
1857
1863
  });
1858
1864
  export const subagentOperationSchema = z.enum(['START', 'STATUS', 'CANCEL', 'MESSAGE', 'RESUME']);
@@ -1867,6 +1873,10 @@ export const subagentLatestMessageSchema = z.object({
1867
1873
  truncated: z.boolean().optional()
1868
1874
  });
1869
1875
  export const toolPresentationSchema = z.discriminatedUnion('kind', [
1876
+ z.object({
1877
+ kind: z.literal('READ'),
1878
+ paths: z.array(z.string().min(1).max(4096)).max(16).optional()
1879
+ }),
1870
1880
  z.object({
1871
1881
  kind: z.literal('WEB_SEARCH'),
1872
1882
  query: z.string().max(500).optional(),
@@ -2008,7 +2018,7 @@ const unknownItemSchema = conversationItemBaseSchema.extend({
2008
2018
  export const conversationItemSchema = z.discriminatedUnion('kind', [
2009
2019
  assistantMessageItemSchema,
2010
2020
  userMessageItemSchema,
2011
- reasoningSummaryItemSchema,
2021
+ reasoningItemSchema,
2012
2022
  planItemSchema,
2013
2023
  todoListItemSchema,
2014
2024
  toolCallItemSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/protocol",
3
- "version": "0.11.2",
3
+ "version": "0.11.4",
4
4
  "description": "Shared runtime protocol schemas for MyAgentRoam.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",