@deepseek-ai/dsh-cordis-client-runner 0.2.2-rc.2 → 0.2.2-rc.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.
@@ -1314,7 +1314,7 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
1314
1314
  ],
1315
1315
  replaceRisk: 'shadows-shipped-ui',
1316
1316
  example: 'return {\n inject: [\'slots\'],\n apply(ctx) {\n ctx.slots.inject(\'conversation.hero.workspace.directoryFlow\', () => ctx.slots.register(\n { name: \'conversation.hero.workspace.directoryFlow\' },\n () => React.createElement(\'div\', null, \'hello\'),\n ))\n },\n}',
1317
- source: 'packages/client/ui-workspace/src/client/contract/slots.ts:137',
1317
+ source: 'packages/client/ui-workspace/src/client/contract/slots.ts:141',
1318
1318
  },
1319
1319
  {
1320
1320
  key: 'conversation.input.activity',
@@ -5097,6 +5097,59 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
5097
5097
  example: 'return {\n inject: [\'slots\'],\n apply(ctx) {\n ctx.slots.inject(\'sidebar.right.tab.menu.item\', () => ctx.slots.register(\n { name: \'sidebar.right.tab.menu.item\', id: \'my-entry\', order: 100, label: \'My entry\' },\n () => React.createElement(\'div\', null, \'hello\'),\n ))\n },\n}',
5098
5098
  source: 'packages/client/ui-sidebar-right/src/client/contract/slots.ts:105',
5099
5099
  },
5100
+ {
5101
+ key: 'sidebar.session.action',
5102
+ kind: 'hoc',
5103
+ scope: 'root',
5104
+ summary: 'HOC layer around the inner content of the New-session row — the Tooltip and button the shell passes as `children`, rendered only while the Peer may create Sessions.',
5105
+ doc: 'HOC layer around the inner content of the New-session row — the Tooltip\nand button the shell passes as `children`, rendered only while the Peer\nmay create Sessions. An occupant receives that content and returns it,\npossibly wrapped, together with its own controls, so it decorates the\nrow without adding a wrapper element. Occupants nest around the content\ninstead of rendering beside it: one that adds nothing must return\n`children`, and with no occupant the content renders unchanged.\nDeclared by this package\'s \'sidebar\' entry.',
5106
+ registerOptions: [
5107
+ {
5108
+ name: 'id',
5109
+ requirement: 'required',
5110
+ type: 'string',
5111
+ doc: 'Your layer key. A fresh id adds a layer; reusing a shipped id replaces that layer. Your component may omit `children`, which replaces everything inside the layer.',
5112
+ },
5113
+ {
5114
+ name: 'key',
5115
+ requirement: 'optional',
5116
+ type: 'string',
5117
+ doc: 'Dispatch key this layer serves; omitted, it serves every dispatch. Within one id, an exact-key layer replaces the wildcard layer for that key.',
5118
+ },
5119
+ {
5120
+ name: 'order',
5121
+ requirement: 'optional',
5122
+ type: 'number',
5123
+ doc: 'Nesting position, ascending (default 0); the lowest order is the outermost layer. Render the `children` prop at most once.',
5124
+ },
5125
+ ],
5126
+ ownerProps: [
5127
+ '/** Owner share of the New-session row\'s HOC layer. */\nexport interface SidebarSessionActionOwnerProps {\n /** Whether the sidebar renders wide content (false = 56px rail). */\n wide: boolean\n}',
5128
+ ],
5129
+ ownerPropsReferences: [],
5130
+ standardProps: [
5131
+ 'useRemoteAccess: (action: RemoteEndpoint) => boolean',
5132
+ 'useResource: UseResource',
5133
+ 'useContextMenu: UseContextMenu',
5134
+ 'useWorkspaces: SnapshotSelectorHook<WorkspaceSnapshot>',
5135
+ 'usePanelInfo: UsePanelInfo',
5136
+ 'useSessions: UseSessions',
5137
+ 'useSessionStatus: UseSessionStatus',
5138
+ 'useSessionRetainInfo: UseSessionRetainInfo',
5139
+ 'useSessionAccess: (sessionId: SessionId, action: RemoteEndpoint) => boolean',
5140
+ 'useWorkspaceAccess: (workspaceId: WorkspaceId, action: RemoteEndpoint) => boolean',
5141
+ ],
5142
+ keyDomain: '',
5143
+ hookContext: '',
5144
+ slotInject: '',
5145
+ declaredBy: 'an entry in \'sidebar\' (client-ui-sidebar), so it exists while that entry is mounted',
5146
+ occupants: [
5147
+ 'deepseek-chat-import ImportSessionsAction id \'deepseek-chat-import\'',
5148
+ ],
5149
+ replaceRisk: 'wraps-owner-content',
5150
+ example: 'return {\n inject: [\'slots\'],\n apply(ctx) {\n ctx.slots.inject(\'sidebar.session.action\', () => ctx.slots.register(\n { name: \'sidebar.session.action\', id: \'my-layer\', order: 100 },\n ({ children }) => React.createElement(\'div\', null, children),\n ))\n },\n}',
5151
+ source: 'packages/client/ui-sidebar/src/client/contract/slots.ts:86',
5152
+ },
5100
5153
  {
5101
5154
  key: 'sidebar.session.row.hover',
5102
5155
  kind: 'list',
@@ -5151,7 +5204,7 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
5151
5204
  ],
5152
5205
  replaceRisk: 'none',
5153
5206
  example: 'return {\n inject: [\'slots\'],\n apply(ctx) {\n ctx.slots.inject(\'sidebar.session.row.hover\', () => ctx.slots.register(\n { name: \'sidebar.session.row.hover\', id: \'my-entry\', order: 100, label: \'My entry\' },\n () => React.createElement(\'div\', null, \'hello\'),\n ))\n },\n}',
5154
- source: 'packages/client/ui-workspace/src/client/contract/slots.ts:163',
5207
+ source: 'packages/client/ui-workspace/src/client/contract/slots.ts:175',
5155
5208
  },
5156
5209
  {
5157
5210
  key: 'sidebar.session.row.leading',
@@ -5207,7 +5260,7 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
5207
5260
  ],
5208
5261
  replaceRisk: 'none',
5209
5262
  example: 'return {\n inject: [\'slots\'],\n apply(ctx) {\n ctx.slots.inject(\'sidebar.session.row.leading\', () => ctx.slots.register(\n { name: \'sidebar.session.row.leading\', id: \'my-entry\', order: 100, label: \'My entry\' },\n () => React.createElement(\'div\', null, \'hello\'),\n ))\n },\n}',
5210
- source: 'packages/client/ui-workspace/src/client/contract/slots.ts:149',
5263
+ source: 'packages/client/ui-workspace/src/client/contract/slots.ts:161',
5211
5264
  },
5212
5265
  {
5213
5266
  key: 'sidebar.session.row.trailing',
@@ -5262,7 +5315,7 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
5262
5315
  ],
5263
5316
  replaceRisk: 'none',
5264
5317
  example: 'return {\n inject: [\'slots\'],\n apply(ctx) {\n ctx.slots.inject(\'sidebar.session.row.trailing\', () => ctx.slots.register(\n { name: \'sidebar.session.row.trailing\', id: \'my-entry\', order: 100, label: \'My entry\' },\n () => React.createElement(\'div\', null, \'hello\'),\n ))\n },\n}',
5265
- source: 'packages/client/ui-workspace/src/client/contract/slots.ts:158',
5318
+ source: 'packages/client/ui-workspace/src/client/contract/slots.ts:170',
5266
5319
  },
5267
5320
  {
5268
5321
  key: 'sidebar.settings',
@@ -5397,7 +5450,7 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
5397
5450
  ],
5398
5451
  replaceRisk: 'shadows-shipped-ui',
5399
5452
  example: 'return {\n inject: [\'slots\'],\n apply(ctx) {\n ctx.slots.inject(\'sidebar.workspaces.directoryFlow\', () => ctx.slots.register(\n { name: \'sidebar.workspaces.directoryFlow\' },\n () => React.createElement(\'div\', null, \'hello\'),\n ))\n },\n}',
5400
- source: 'packages/client/ui-workspace/src/client/contract/slots.ts:139',
5453
+ source: 'packages/client/ui-workspace/src/client/contract/slots.ts:143',
5401
5454
  },
5402
5455
  {
5403
5456
  key: 'sidebar.workspaces.session.menu.item',
@@ -5450,7 +5503,7 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
5450
5503
  occupants: [],
5451
5504
  replaceRisk: 'none',
5452
5505
  example: 'return {\n inject: [\'slots\'],\n apply(ctx) {\n const copyLabel = \'Copy session title\' // Localize in the contributing package.\n ctx.slots.inject(\'sidebar.workspaces.session.menu.item\', () => ctx.slots.register(\n { name: \'sidebar.workspaces.session.menu.item\', id: \'copy-session-title\', order: 500 },\n ({ displayTitle, useMenuOpenState }) => {\n const [, setMenuOpen] = useMenuOpenState()\n return React.createElement(\n \'button\',\n {\n type: \'button\', role: \'menuitem\',\n onClick: () => { setMenuOpen(false); void navigator.clipboard.writeText(displayTitle) },\n },\n copyLabel,\n )\n },\n ))\n },\n}',
5453
- source: 'packages/client/ui-workspace/src/client/contract/slots.ts:193',
5506
+ source: 'packages/client/ui-workspace/src/client/contract/slots.ts:205',
5454
5507
  },
5455
5508
  {
5456
5509
  key: 'sidebar.workspaces.session.row.action',
@@ -5506,7 +5559,7 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
5506
5559
  ],
5507
5560
  replaceRisk: 'none',
5508
5561
  example: 'return {\n inject: [\'slots\'],\n apply(ctx) {\n ctx.slots.inject(\'sidebar.workspaces.session.row.action\', () => ctx.slots.register(\n { name: \'sidebar.workspaces.session.row.action\', id: \'my-entry\', order: 100, label: \'My entry\' },\n () => React.createElement(\'div\', null, \'hello\'),\n ))\n },\n}',
5509
- source: 'packages/client/ui-workspace/src/client/contract/slots.ts:212',
5562
+ source: 'packages/client/ui-workspace/src/client/contract/slots.ts:224',
5510
5563
  },
5511
5564
  {
5512
5565
  key: 'tool.call.images',
@@ -5726,6 +5779,41 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
5726
5779
  example: 'return {\n inject: [\'slots\'],\n apply(ctx) {\n ctx.slots.inject(\'tool.view.cordis\', () => ctx.slots.register(\n { name: \'tool.view.cordis\', key: \'<one key the owner dispatches>\' },\n () => React.createElement(\'div\', null, \'hello\'),\n ))\n },\n}',
5727
5780
  source: 'packages/extensions/ui-cordis/src/client/slots.ts:31',
5728
5781
  },
5782
+ {
5783
+ key: 'workspace.picker.directoryFlow',
5784
+ kind: 'single',
5785
+ scope: 'root',
5786
+ summary: 'Directory-flow hole under every `workspace.picker` Factory occurrence (declared by the Factory definition).',
5787
+ doc: 'Directory-flow hole under every `workspace.picker` Factory occurrence\n(declared by the Factory definition). A directory-picker package\nregisters the same occupant here as in the other two directory-flow\nholes; while this hole is empty, Factory occurrences offer no\n"Add workspace…" entry.',
5788
+ registerOptions: [],
5789
+ ownerProps: [
5790
+ '/**\n * Owner share of the directory-flow holes: the complete conversation between\n * the trigger surface and the picking interaction. The occupant reads `open`\n * to run/render its interaction and reports exactly one outcome per open.\n */\nexport interface DirectoryFlowOwnerProps {\n /** True while a picking interaction is requested; flipping back to false withdraws the request. */\n open: boolean\n /** True while the owner adopts a picked path (`createWorkspace` in flight); occupants disable their commit affordances. */\n busy: boolean\n /** The operator picked a directory (absolute host path); the owner adopts it. */\n onPicked: (path: string) => void\n /** The operator dismissed the interaction; the owner just closes the flow. */\n onCancel: () => void\n /** The interaction itself failed (chooser missing, listing denied); the owner shows its error surface. */\n onError: (message: string) => void\n}',
5791
+ ],
5792
+ ownerPropsReferences: [],
5793
+ standardProps: [
5794
+ 'useRemoteAccess: (action: RemoteEndpoint) => boolean',
5795
+ 'useResource: UseResource',
5796
+ 'useContextMenu: UseContextMenu',
5797
+ 'useWorkspaces: SnapshotSelectorHook<WorkspaceSnapshot>',
5798
+ 'usePanelInfo: UsePanelInfo',
5799
+ 'useSessions: UseSessions',
5800
+ 'useSessionStatus: UseSessionStatus',
5801
+ 'useSessionRetainInfo: UseSessionRetainInfo',
5802
+ 'useSessionAccess: (sessionId: SessionId, action: RemoteEndpoint) => boolean',
5803
+ 'useWorkspaceAccess: (workspaceId: WorkspaceId, action: RemoteEndpoint) => boolean',
5804
+ ],
5805
+ keyDomain: '',
5806
+ hookContext: '',
5807
+ slotInject: '',
5808
+ declaredBy: 'factory \'workspace.picker\' (client-ui-workspace), so it exists while that definition is registered',
5809
+ occupants: [
5810
+ 'client-ui-directory-picker-browse BrowseDirectoryFlow',
5811
+ 'client-ui-directory-picker-native NativeDirectoryFlow',
5812
+ ],
5813
+ replaceRisk: 'shadows-shipped-ui',
5814
+ example: 'return {\n inject: [\'slots\'],\n apply(ctx) {\n ctx.slots.inject(\'workspace.picker.directoryFlow\', () => ctx.slots.register(\n { name: \'workspace.picker.directoryFlow\' },\n () => React.createElement(\'div\', null, \'hello\'),\n ))\n },\n}',
5815
+ source: 'packages/client/ui-workspace/src/client/contract/slots.ts:151',
5816
+ },
5729
5817
  {
5730
5818
  key: 'workspace.toast',
5731
5819
  kind: 'keyed',