@myagentroam/protocol 0.11.1 → 0.11.3

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