@shipfox/client-agent 22.0.0 → 22.0.1

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@shipfox/client-agent",
3
3
  "license": "MIT",
4
- "version": "22.0.0",
4
+ "version": "22.0.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ShipfoxHQ/shipfox.git",
@@ -30,7 +30,7 @@
30
30
  "@tanstack/react-query": "^5.101.0",
31
31
  "@shipfox/api-agent-dto": "12.2.0",
32
32
  "@shipfox/client-api": "6.0.1",
33
- "@shipfox/client-shell": "22.0.0",
33
+ "@shipfox/client-shell": "22.0.1",
34
34
  "@shipfox/client-ui": "22.0.0",
35
35
  "@shipfox/react-ui": "2.1.0"
36
36
  },
@@ -84,9 +84,6 @@ export function WorkspaceHarnessesSection({workspaceId}: {workspaceId: string})
84
84
  <section className="flex flex-col gap-group" aria-label="Harnesses">
85
85
  <div className="flex flex-col gap-tight">
86
86
  <Header variant="h3">Harnesses</Header>
87
- <Text size="sm" className="text-foreground-neutral-muted">
88
- Harnesses available to run agent steps in this workspace.
89
- </Text>
90
87
  </div>
91
88
 
92
89
  {configsQuery.isPending ? <HarnessRowsSkeleton /> : null}
@@ -89,8 +89,8 @@ describe('WorkspaceModelProvidersSection', () => {
89
89
  expect(screen.getByText('Default provider')).toHaveClass('sr-only');
90
90
  expect(screen.getByText('Available providers')).toBeVisible();
91
91
  expect(
92
- screen.getByText('Providers that can be configured for agent steps in this workspace.'),
93
- ).toBeVisible();
92
+ screen.queryByText('Providers that can be configured for agent steps in this workspace.'),
93
+ ).not.toBeInTheDocument();
94
94
  expect(screen.getByText('OpenAI')).toBeVisible();
95
95
  const customProviderButton = screen.getByRole('button', {name: 'Configure custom provider'});
96
96
  expect(within(customProviderButton).getByText('Custom')).toBeVisible();
@@ -120,9 +120,6 @@ export function WorkspaceModelProvidersSection({workspaceId}: {workspaceId: stri
120
120
  >
121
121
  <div className="flex flex-col gap-tight">
122
122
  <Header variant="h3">Configured providers</Header>
123
- <Text size="sm" className="text-foreground-neutral-muted">
124
- Workspace credentials available to agent steps.
125
- </Text>
126
123
  </div>
127
124
 
128
125
  {configsQuery.isPending ? (
@@ -213,9 +210,6 @@ export function WorkspaceModelProvidersSection({workspaceId}: {workspaceId: stri
213
210
  <section className="flex flex-col gap-group" aria-label="Available providers">
214
211
  <div className="flex flex-col gap-tight">
215
212
  <Header variant="h3">Available providers</Header>
216
- <Text size="sm" className="text-foreground-neutral-muted">
217
- Providers that can be configured for agent steps in this workspace.
218
- </Text>
219
213
  </div>
220
214
 
221
215
  {catalogQuery.isPending || configsQuery.isPending ? (
@@ -243,9 +237,6 @@ export function WorkspaceModelProvidersSection({workspaceId}: {workspaceId: stri
243
237
  <section className="flex flex-col gap-group" aria-label="Unsupported providers">
244
238
  <div className="flex flex-col gap-tight">
245
239
  <Header variant="h3">Unsupported providers</Header>
246
- <Text size="sm" className="text-foreground-neutral-muted">
247
- Providers that cannot be configured in this workspace yet.
248
- </Text>
249
240
  </div>
250
241
 
251
242
  {catalogQuery.isPending ? (
@@ -1,4 +1,5 @@
1
1
  import {defineRoute, useActiveWorkspace} from '@shipfox/client-shell/runtime';
2
+ import {Header} from '@shipfox/react-ui/typography';
2
3
  import {WorkspaceHarnessesSection, WorkspaceModelProvidersSection} from '#index.js';
3
4
 
4
5
  export default defineRoute({
@@ -6,9 +7,12 @@ export default defineRoute({
6
7
  component: () => {
7
8
  const workspace = useActiveWorkspace();
8
9
  return (
9
- <div className="flex flex-col gap-region">
10
- <WorkspaceHarnessesSection workspaceId={workspace.id} />
11
- <WorkspaceModelProvidersSection workspaceId={workspace.id} />
10
+ <div className="flex min-w-0 flex-col gap-section">
11
+ <Header variant="h1">Agents</Header>
12
+ <div className="flex flex-col gap-region">
13
+ <WorkspaceHarnessesSection workspaceId={workspace.id} />
14
+ <WorkspaceModelProvidersSection workspaceId={workspace.id} />
15
+ </div>
12
16
  </div>
13
17
  );
14
18
  },