@workbench-kit/adapters 0.0.2-prototype.0.1.2 → 0.0.2-prototype.0.2.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workbench-kit/adapters",
3
- "version": "0.0.2-prototype.0.1.2",
3
+ "version": "0.0.2-prototype.0.2.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {
@@ -20,9 +20,9 @@
20
20
  "!src/**/*.stories.tsx"
21
21
  ],
22
22
  "dependencies": {
23
- "@workbench-kit/contracts": "0.0.2-prototype.0.1.2",
24
- "@workbench-kit/runtime": "0.0.2-prototype.0.1.2",
25
- "@workbench-kit/workspace": "0.0.2-prototype.0.1.2"
23
+ "@workbench-kit/contracts": "0.0.2-prototype.0.2.2",
24
+ "@workbench-kit/runtime": "0.0.2-prototype.0.2.2",
25
+ "@workbench-kit/workspace": "0.0.2-prototype.0.2.2"
26
26
  },
27
27
  "description": "Workbench Kit adapters for workspace repositories and runtime transports.",
28
28
  "publishConfig": {
@@ -1,23 +1,26 @@
1
1
  import type { RuntimeStatus } from '@workbench-kit/runtime';
2
2
 
3
- export type IntegratedShellActivityId = 'explorer' | 'search' | 'chat';
3
+ export type IntegratedShellActivityId = 'explorer' | 'search' | 'chatting' | 'aiChat';
4
4
 
5
5
  export const integratedShellActivityOrder: IntegratedShellActivityId[] = [
6
6
  'explorer',
7
7
  'search',
8
- 'chat',
8
+ 'chatting',
9
+ 'aiChat',
9
10
  ];
10
11
 
11
12
  export const integratedShellActivityLabels: Record<IntegratedShellActivityId, string> = {
12
13
  explorer: 'Explorer',
13
14
  search: 'Search',
14
- chat: 'Chat',
15
+ chatting: 'Chat',
16
+ aiChat: 'AI Chat',
15
17
  };
16
18
 
17
19
  const integratedShellActivityIcons: Record<IntegratedShellActivityId, string> = {
18
20
  explorer: 'codicon-files',
19
21
  search: 'codicon-search',
20
- chat: 'codicon-comment-discussion',
22
+ chatting: 'codicon-comment-discussion',
23
+ aiChat: 'codicon-sparkle',
21
24
  };
22
25
 
23
26
  export const integratedShellCommandActivities = integratedShellActivityOrder.map((id) => ({
@@ -27,15 +30,15 @@ export const integratedShellCommandActivities = integratedShellActivityOrder.map
27
30
  }));
28
31
 
29
32
  export function isIntegratedShellActivityId(id: string): id is IntegratedShellActivityId {
30
- return id === 'explorer' || id === 'search' || id === 'chat';
33
+ return id === 'explorer' || id === 'search' || id === 'chatting' || id === 'aiChat';
31
34
  }
32
35
 
33
36
  export interface IntegratedShellBootstrapInitialState {
34
37
  activeActivityId: IntegratedShellActivityId;
35
38
  isPrimarySidebarVisible: boolean;
36
- primarySidebarSizePercent: number;
37
- primarySidebarMinPercent: number;
38
- primarySidebarMaxPercent: number;
39
+ primarySidebarSizePx: number;
40
+ primarySidebarMinPx: number;
41
+ primarySidebarMaxPx: number;
39
42
  settingsCategoryId: string;
40
43
  settingsScopeId: string;
41
44
  theme: 'dark' | 'light';
@@ -47,9 +50,9 @@ export function createIntegratedShellBootstrapInitialState(
47
50
  return {
48
51
  activeActivityId: 'explorer',
49
52
  isPrimarySidebarVisible: true,
50
- primarySidebarSizePercent: 20,
51
- primarySidebarMinPercent: 16,
52
- primarySidebarMaxPercent: 40,
53
+ primarySidebarSizePx: 260,
54
+ primarySidebarMinPx: 200,
55
+ primarySidebarMaxPx: 480,
53
56
  settingsCategoryId: 'appearance',
54
57
  settingsScopeId: 'user',
55
58
  theme: 'dark',
@@ -81,8 +81,8 @@ export function Panel({ children, title, ...props }: PanelProps) {
81
81
  `,
82
82
  },
83
83
  {
84
- path: 'src/widgets/home.widget.json',
85
- mimeType: 'application/vnd.workbench-kit.widget+json',
84
+ path: 'src/widgets/home.jdw.json',
85
+ mimeType: 'application/vnd.workbench-kit.jdw+json',
86
86
  updatedAt: '2026-06-02T09:28:00.000Z',
87
87
  source: 'user',
88
88
  content: `{
@@ -163,7 +163,7 @@ Import shared styles once, then compose the workbench primitives in your app she
163
163
  "name": "@example/workbench-app",
164
164
  "private": true,
165
165
  "scripts": {
166
- "storybook": "storybook dev --port 6010"
166
+ "storybook": "storybook dev --port 61009"
167
167
  }
168
168
  }
169
169
  `,
@@ -178,7 +178,7 @@ Import shared styles once, then compose the workbench primitives in your app she
178
178
  --workspace-accent: #4aa8ff;
179
179
  }
180
180
 
181
- .workspace-file-icon {
181
+ .ui-file-icon {
182
182
  color: var(--workspace-accent);
183
183
  }
184
184
  `,
@@ -200,27 +200,54 @@ export const integratedShellInitialRuntimeMessages: RuntimeChatMessage[] = [
200
200
  {
201
201
  id: 'm1',
202
202
  source: 'user',
203
+ createdAt: '2026-06-18T09:12:00.000Z',
203
204
  content:
204
- 'Check whether the workbench shell covers explorer, search, chat, settings, and status surfaces.',
205
+ 'Check whether the workbench shell covers explorer, search, chatting, AI chat, settings, and status surfaces.',
205
206
  },
206
207
  {
207
208
  id: 'm2',
208
209
  source: 'assistant',
210
+ createdAt: '2026-06-18T09:12:18.000Z',
209
211
  content:
210
212
  'The integrated story now keeps those surfaces in one stateful shell with public mock data.',
211
213
  },
212
214
  {
213
215
  id: 'm3',
214
216
  source: 'assistant',
217
+ createdAt: '2026-06-18T09:12:42.000Z',
215
218
  content:
216
219
  'Search results, file icons, and the editor preview are driven by the same virtual workspace.',
217
220
  },
218
221
  ];
219
222
 
223
+ export const integratedShellInitialChattingMessages: RuntimeChatMessage[] = [
224
+ {
225
+ id: 'c1',
226
+ source: 'assistant',
227
+ label: 'Alex',
228
+ createdAt: '2026-06-18T10:05:00.000Z',
229
+ content: 'Can you review the widget tree changes before we merge?',
230
+ },
231
+ {
232
+ id: 'c2',
233
+ source: 'user',
234
+ createdAt: '2026-06-18T10:06:14.000Z',
235
+ content: 'Sure — I will check after the CI run finishes.',
236
+ },
237
+ {
238
+ id: 'c3',
239
+ source: 'assistant',
240
+ label: 'Alex',
241
+ createdAt: '2026-06-18T10:07:02.000Z',
242
+ content: 'Thanks. Ping me in #workbench when the preview is ready.',
243
+ },
244
+ ];
245
+
220
246
  export const integratedShellDefaultSelectionByActivity = {
221
247
  explorer: 'src/App.tsx',
222
248
  search: 'src/components/Button.tsx',
223
- chat: 'src/App.tsx',
249
+ chatting: 'src/App.tsx',
250
+ aiChat: 'src/App.tsx',
224
251
  } as const;
225
252
 
226
253
  export function createIntegratedShellChatRuntimeResponse(message: RuntimeChatMessage) {