@shipfox/client-onboarding 5.0.0 → 6.0.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/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-type$colon$emit.log +1 -0
- package/.turbo/turbo-type.log +1 -0
- package/CHANGELOG.md +46 -0
- package/dist/tsconfig.test.tsbuildinfo +1 -0
- package/package.json +7 -33
- package/src/workspace-setup-route.test.tsx +30 -8
- package/tsconfig.build.tsbuildinfo +1 -1
- package/.turbo/turbo-check.log +0 -24
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipfox/client-onboarding",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "6.0.2",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/ShipfoxHQ/shipfox.git",
|
|
@@ -12,22 +12,16 @@
|
|
|
12
12
|
"types": "dist/index.d.ts",
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
"default": "./src/index.ts"
|
|
18
|
-
},
|
|
19
|
-
"default": {
|
|
20
|
-
"types": "./dist/index.d.ts",
|
|
21
|
-
"default": "./dist/index.js"
|
|
22
|
-
}
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"default": "./dist/index.js"
|
|
23
17
|
}
|
|
24
18
|
},
|
|
25
19
|
"dependencies": {
|
|
26
20
|
"@swc/helpers": "^0.5.17",
|
|
27
|
-
"@shipfox/client-agent": "
|
|
28
|
-
"@shipfox/client-integrations": "
|
|
29
|
-
"@shipfox/client-
|
|
30
|
-
"@shipfox/client-
|
|
21
|
+
"@shipfox/client-agent": "6.0.2",
|
|
22
|
+
"@shipfox/client-integrations": "6.0.2",
|
|
23
|
+
"@shipfox/client-shell": "6.0.2",
|
|
24
|
+
"@shipfox/client-projects": "6.0.2"
|
|
31
25
|
},
|
|
32
26
|
"peerDependencies": {
|
|
33
27
|
"@tanstack/react-query": "^5.101.0",
|
|
@@ -35,26 +29,6 @@
|
|
|
35
29
|
"react": "^19.0.0",
|
|
36
30
|
"react-dom": "^19.0.0"
|
|
37
31
|
},
|
|
38
|
-
"devDependencies": {
|
|
39
|
-
"@tanstack/react-query": "^5.101.0",
|
|
40
|
-
"@tanstack/react-router": "^1.170.16",
|
|
41
|
-
"@testing-library/jest-dom": "^6.6.3",
|
|
42
|
-
"@testing-library/react": "^16.3.2",
|
|
43
|
-
"@types/react": "^19.1.11",
|
|
44
|
-
"@types/react-dom": "^19.1.7",
|
|
45
|
-
"jsdom": "^29.0.0",
|
|
46
|
-
"react": "^19.1.1",
|
|
47
|
-
"react-dom": "^19.1.1",
|
|
48
|
-
"vitest": "^4.1.5",
|
|
49
|
-
"@shipfox/biome": "1.8.2",
|
|
50
|
-
"@shipfox/client-api": "4.0.0",
|
|
51
|
-
"@shipfox/react-ui": "0.3.5",
|
|
52
|
-
"@shipfox/client-test-setup": "0.0.4",
|
|
53
|
-
"@shipfox/swc": "1.2.6",
|
|
54
|
-
"@shipfox/typescript": "1.1.7",
|
|
55
|
-
"@shipfox/ts-config": "1.3.8",
|
|
56
|
-
"@shipfox/vitest": "1.2.3"
|
|
57
|
-
},
|
|
58
32
|
"scripts": {
|
|
59
33
|
"build": "shipfox-swc",
|
|
60
34
|
"check": "shipfox-biome-check",
|
|
@@ -110,7 +110,11 @@ function setupFetch(options: SetupFetchOptions = {}) {
|
|
|
110
110
|
if (providerConfigsFail)
|
|
111
111
|
return Promise.resolve(jsonResponse({code: 'server-error'}, {status: 500}));
|
|
112
112
|
return Promise.resolve(
|
|
113
|
-
jsonResponse({
|
|
113
|
+
jsonResponse({
|
|
114
|
+
configs: providerConfigs,
|
|
115
|
+
default_provider_id: defaultProviderId,
|
|
116
|
+
default_harness_id: null,
|
|
117
|
+
}),
|
|
114
118
|
);
|
|
115
119
|
}
|
|
116
120
|
return Promise.resolve(jsonResponse({}, {status: 404}));
|
|
@@ -181,14 +185,24 @@ function GuardedRoute({label}: {label: string}) {
|
|
|
181
185
|
}
|
|
182
186
|
|
|
183
187
|
function projectStub() {
|
|
184
|
-
return {
|
|
188
|
+
return {
|
|
189
|
+
id: '22222222-2222-4222-8222-222222222222',
|
|
190
|
+
workspace_id: WORKSPACE_ID,
|
|
191
|
+
name: 'Platform',
|
|
192
|
+
source: {
|
|
193
|
+
connection_id: '33333333-3333-4333-8333-333333333333',
|
|
194
|
+
external_repository_id: 'platform',
|
|
195
|
+
},
|
|
196
|
+
created_at: new Date().toISOString(),
|
|
197
|
+
updated_at: new Date().toISOString(),
|
|
198
|
+
};
|
|
185
199
|
}
|
|
186
200
|
|
|
187
201
|
function modelProviderConfig() {
|
|
188
202
|
return {
|
|
203
|
+
kind: 'builtin',
|
|
189
204
|
provider_id: 'anthropic',
|
|
190
205
|
default_model: null,
|
|
191
|
-
key_fingerprints: {'credential:api_key': '...abcd'},
|
|
192
206
|
created_at: new Date().toISOString(),
|
|
193
207
|
updated_at: new Date().toISOString(),
|
|
194
208
|
};
|
|
@@ -241,7 +255,7 @@ describe('workspace setup route hook', () => {
|
|
|
241
255
|
seedQueryClient: (queryClient) => {
|
|
242
256
|
queryClient.setQueryData(projectExistenceQueryOptions(WORKSPACE_ID).queryKey, {
|
|
243
257
|
projects: [projectStub()] as never,
|
|
244
|
-
|
|
258
|
+
nextCursor: null,
|
|
245
259
|
});
|
|
246
260
|
// Existence has a freshness window, so explicit invalidation forces the
|
|
247
261
|
// refetch whose failure exercises the cached fallback.
|
|
@@ -348,9 +362,17 @@ describe('workspace setup route hook', () => {
|
|
|
348
362
|
renderSetupRoute(`/workspaces/${WORKSPACE_ID}`, fetchImpl, {
|
|
349
363
|
seedQueryClient: (queryClient) => {
|
|
350
364
|
queryClient.setQueryData(modelProviderConfigsQueryOptions(WORKSPACE_ID).queryKey, {
|
|
351
|
-
configs: [
|
|
352
|
-
|
|
353
|
-
|
|
365
|
+
configs: [
|
|
366
|
+
{
|
|
367
|
+
kind: 'builtin',
|
|
368
|
+
providerId: 'anthropic',
|
|
369
|
+
defaultModel: null,
|
|
370
|
+
createdAt: new Date().toISOString(),
|
|
371
|
+
updatedAt: new Date().toISOString(),
|
|
372
|
+
},
|
|
373
|
+
],
|
|
374
|
+
defaultProviderId: 'anthropic',
|
|
375
|
+
defaultHarnessId: null,
|
|
354
376
|
});
|
|
355
377
|
},
|
|
356
378
|
});
|
|
@@ -480,7 +502,7 @@ describe('workspace setup route hook', () => {
|
|
|
480
502
|
projects = [projectStub()];
|
|
481
503
|
queryClient.setQueryData(
|
|
482
504
|
projectExistenceQueryOptions(WORKSPACE_ID).queryKey,
|
|
483
|
-
{projects: [],
|
|
505
|
+
{projects: [], nextCursor: null},
|
|
484
506
|
{updatedAt: Date.now() - 31_000},
|
|
485
507
|
);
|
|
486
508
|
|