@shipfox/client-runners 0.2.0 → 2.0.0

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-runners",
3
3
  "license": "MIT",
4
- "version": "0.2.0",
4
+ "version": "2.0.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ShipfoxHQ/shipfox.git",
@@ -11,32 +11,21 @@
11
11
  "main": "dist/index.js",
12
12
  "types": "dist/index.d.ts",
13
13
  "imports": {
14
- "#*": {
15
- "types": "./src/*",
16
- "workspace-source": "./src/*",
17
- "development": "./src/*",
18
- "default": "./dist/*"
19
- }
14
+ "#*": "./dist/*"
20
15
  },
21
16
  "exports": {
22
17
  ".": {
23
- "development": {
24
- "types": "./src/index.ts",
25
- "default": "./src/index.ts"
26
- },
27
- "default": {
28
- "types": "./dist/index.d.ts",
29
- "default": "./dist/index.js"
30
- }
18
+ "types": "./dist/index.d.ts",
19
+ "default": "./dist/index.js"
31
20
  }
32
21
  },
33
22
  "dependencies": {
34
23
  "@swc/helpers": "^0.5.17",
35
24
  "@tanstack/react-form": "^1.32.0",
36
- "@shipfox/api-runners-dto": "2.0.0",
37
- "@shipfox/client-api": "0.2.0",
38
- "@shipfox/react-ui": "0.3.1",
39
- "@shipfox/client-ui": "0.2.0"
25
+ "@shipfox/api-runners-dto": "6.0.0",
26
+ "@shipfox/client-api": "1.0.0",
27
+ "@shipfox/client-ui": "2.0.0",
28
+ "@shipfox/react-ui": "0.3.3"
40
29
  },
41
30
  "peerDependencies": {
42
31
  "@tanstack/react-query": "^5.101.0",
@@ -66,13 +55,13 @@
66
55
  "tailwindcss": "^4.1.13",
67
56
  "vite": "^8.0.3",
68
57
  "vitest": "^4.1.5",
69
- "@shipfox/biome": "1.8.1",
70
- "@shipfox/client-test-setup": "0.0.2",
71
- "@shipfox/swc": "1.2.5",
72
- "@shipfox/typescript": "1.1.6",
73
- "@shipfox/vite": "1.2.4",
58
+ "@shipfox/biome": "1.8.2",
59
+ "@shipfox/client-test-setup": "0.0.3",
60
+ "@shipfox/swc": "1.2.6",
74
61
  "@shipfox/ts-config": "1.3.8",
75
- "@shipfox/vitest": "1.2.2"
62
+ "@shipfox/typescript": "1.1.7",
63
+ "@shipfox/vite": "1.2.5",
64
+ "@shipfox/vitest": "1.2.3"
76
65
  },
77
66
  "scripts": {
78
67
  "build": "shipfox-swc",
@@ -8,6 +8,7 @@ import {
8
8
 
9
9
  const token: ProvisionerTokenDto = {
10
10
  id: '33333333-3333-4333-8333-333333333333',
11
+ scope: 'workspace',
11
12
  workspace_id: '11111111-1111-4111-8111-111111111111',
12
13
  prefix: 'sf_pt_abcde',
13
14
  name: 'Docker provisioner',
@@ -22,6 +22,7 @@ function jsonResponse(body: unknown, init: ResponseInit = {}) {
22
22
  function provisionerToken(overrides: Partial<Record<string, string | null>> = {}) {
23
23
  return {
24
24
  id: PROVISIONER_TOKEN_ID,
25
+ scope: 'workspace',
25
26
  workspace_id: RUNNERS_TEST_WORKSPACE_ID,
26
27
  prefix: 'sf_pt_abcde',
27
28
  name: 'Docker provisioner',
@@ -327,6 +327,7 @@ function manualToken(
327
327
  function provisionerToken(overrides: Partial<ProvisionerTokenDto> = {}): ProvisionerTokenDto {
328
328
  return {
329
329
  id: '33333333-3333-4333-8333-333333333333',
330
+ scope: 'workspace',
330
331
  workspace_id: WORKSPACE_ID,
331
332
  prefix: 'sf_pt_docker',
332
333
  name: 'Docker autoscaler',
@@ -43,6 +43,7 @@ describe('provisioner token transports', () => {
43
43
  return jsonResponse(
44
44
  {
45
45
  id: tokenId,
46
+ scope: 'workspace',
46
47
  raw_token: 'sf_pt_raw-created-token',
47
48
  prefix: 'sf_pt_raw-c',
48
49
  name: 'Docker provisioner',
@@ -76,6 +77,7 @@ describe('provisioner token transports', () => {
76
77
  const fetchImpl = vi.fn().mockResolvedValue(
77
78
  jsonResponse({
78
79
  id: tokenId,
80
+ scope: 'workspace',
79
81
  workspace_id: workspaceId,
80
82
  prefix: 'sf_pt_abcde',
81
83
  name: 'Docker provisioner',