@regressionproof/cli 0.3.5 → 0.3.7

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,12 +1,15 @@
1
1
  {
2
2
  "name": "@regressionproof/cli",
3
- "version": "0.3.5",
3
+ "version": "0.3.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
7
  "type": "module",
8
8
  "main": "build/index.js",
9
9
  "types": "build/index.d.ts",
10
+ "files": [
11
+ "build/**/*"
12
+ ],
10
13
  "bin": {
11
14
  "regressionproof": "./build/cli.js"
12
15
  },
@@ -33,7 +36,7 @@
33
36
  "watch.tsc": "tsc -w"
34
37
  },
35
38
  "dependencies": {
36
- "@regressionproof/client": "^0.3.5",
39
+ "@regressionproof/client": "^0.3.7",
37
40
  "dotenv": "^17.2.3",
38
41
  "ink": "^5.1.0",
39
42
  "ink-big-text": "^2.0.0",
@@ -79,5 +82,5 @@
79
82
  "^#spruce/(.*)$": "<rootDir>/build/.spruce/$1"
80
83
  }
81
84
  },
82
- "gitHead": "ea3e5320b6d702b1e78ae91934b26e86ab298223"
85
+ "gitHead": "3be8fab3761ebce6f07d9243be8379eb1af82ea8"
83
86
  }
package/.nvmrc DELETED
@@ -1 +0,0 @@
1
- lts/*
@@ -1,58 +0,0 @@
1
- {
2
- "version": "0.2.0",
3
- "configurations": [
4
- {
5
- "type": "node",
6
- "request": "attach",
7
- "name": "attach.tests",
8
- "port": 5200,
9
- "restart": true,
10
- "timeout": 10000
11
- },
12
- {
13
- "type": "node",
14
- "request": "launch",
15
- "name": "test.file",
16
- "runtimeExecutable": "node",
17
- "runtimeArgs": [
18
- "--inspect-brk",
19
- "--trace-warnings",
20
- "${workspaceFolder}/node_modules/.bin/jest",
21
- "${fileBasenameNoExtension}",
22
- "--detectOpenHandles"
23
- ],
24
- "cwd": "${workspaceFolder}",
25
- "console": "integratedTerminal",
26
- "internalConsoleOptions": "neverOpen"
27
- },
28
- {
29
- "type": "node",
30
- "request": "launch",
31
- "name": "test.all",
32
- "runtimeExecutable": "node",
33
- "runtimeArgs": [
34
- "--inspect-brk",
35
- "--trace-warnings",
36
- "${workspaceFolder}/node_modules/.bin/jest"
37
- ],
38
- "cwd": "${workspaceFolder}",
39
- "console": "integratedTerminal",
40
- "internalConsoleOptions": "neverOpen"
41
- },
42
- {
43
- "type": "node",
44
- "request": "launch",
45
- "name": "boot",
46
- "runtimeExecutable": "yarn",
47
- "runtimeArgs": [
48
- "run",
49
- "--inspect-brk",
50
- "--trace-warnings",
51
- "boot"
52
- ],
53
- "cwd": "${workspaceFolder}",
54
- "console": "integratedTerminal",
55
- "internalConsoleOptions": "neverOpen"
56
- }
57
- ]
58
- }
@@ -1,67 +0,0 @@
1
- {
2
- "debug.node.autoAttach": "on",
3
- "git.ignoreLimitWarning": true,
4
- "javascript.validate.enable": false,
5
- "files.watcherExclude": {
6
- "**/.git/objects/**": true,
7
- "**/.git/subtree-cache/**": true,
8
- "**/build/**": true,
9
- "**/node_modules/**": true,
10
- },
11
- "search.exclude": {
12
- "**/build/**": true,
13
- "**/node_modules/**": true,
14
- "**/.next/**": true
15
- },
16
- "editor.maxTokenizationLineLength": 20000000,
17
- "[javascript]": {
18
- "editor.formatOnSave": false
19
- },
20
- "[javascriptreact]": {
21
- "editor.formatOnSave": false
22
- },
23
- "[typescript]": {
24
- "editor.formatOnSave": false
25
- },
26
- "[typescriptreact]": {
27
- "editor.formatOnSave": false
28
- },
29
- "[handlebars]": {
30
- "editor.formatOnSave": false
31
- },
32
- "typescript.tsdk": "node_modules/typescript/lib",
33
- "cSpell.ignorePaths": [
34
- "**/package-lock.json",
35
- "**/node_modules/**",
36
- "**/build/**",
37
- "**/vscode-extension/**",
38
- "**/.git/objects/**",
39
- ".vscode",
40
- ".spruce"
41
- ],
42
- "cSpell.words": [
43
- "arkit",
44
- "autogenerated",
45
- "scrollable",
46
- "serializable"
47
- ],
48
- "debug.javascript.unmapMissingSources": true,
49
- "javascript.preferences.importModuleSpecifier": "relative",
50
- "typescript.preferences.importModuleSpecifier": "relative",
51
- "eslint.useFlatConfig": true,
52
- "eslint.enable": true,
53
- "eslint.validate": [
54
- "javascript",
55
- "javascriptreact",
56
- "typescript",
57
- "typescriptreact"
58
- ],
59
- "eslint.workingDirectories": [
60
- "./"
61
- ],
62
- "typescript.validate.enable": true,
63
- "editor.formatOnSave": false,
64
- "editor.codeActionsOnSave": {
65
- "source.fixAll.eslint": "always"
66
- }
67
- }
@@ -1,112 +0,0 @@
1
- {
2
- "version": "2.0.0",
3
- "tasks": [
4
- {
5
- "type": "npm",
6
- "script": "watch.build.dev",
7
- "group": "build",
8
- "label": "watch.build.dev & problem.watcher",
9
- "isBackground": true,
10
- "runOptions": {
11
- "runOn": "folderOpen"
12
- },
13
- "promptOnClose": false,
14
- "presentation": {
15
- "focus": false,
16
- "reveal": "never"
17
- },
18
- "problemMatcher": {
19
- "base": "$tsc-watch",
20
- "applyTo": "allDocuments"
21
- }
22
- },
23
- {
24
- "label": "test.file",
25
- "command": "spruce",
26
- "args": [
27
- "test",
28
- "--inspect",
29
- "5200",
30
- "--pattern",
31
- "${fileBasenameNoExtension}",
32
- "--watchMode",
33
- "standard"
34
- ],
35
- "promptOnClose": false,
36
- "group": {
37
- "kind": "test",
38
- "isDefault": true
39
- },
40
- "presentation": {
41
- "reveal": "always",
42
- "panel": "dedicated",
43
- },
44
- "problemMatcher": []
45
- },
46
- {
47
- "label": "test.reporter",
48
- "command": "spruce",
49
- "args": [
50
- "test",
51
- "--shouldHoldAtStart",
52
- "true",
53
- "--watchMode",
54
- "smart"
55
- ],
56
- "promptOnClose": false,
57
- "group": "test",
58
- "runOptions": {
59
- "runOn": "folderOpen"
60
- },
61
- "presentation": {
62
- "panel": "shared",
63
- "focus": true,
64
- "reveal": "always"
65
- }
66
- },
67
- {
68
- "label": "spruce",
69
- "type": "shell",
70
- "command": "spruce ${input:spruceCommand}",
71
- "problemMatcher": [],
72
- "presentation": {
73
- "reveal": "always",
74
- "focus": true,
75
- "panel": "new",
76
- "clear": false
77
- }
78
- },
79
- {
80
- "label": "shell",
81
- "type": "shell",
82
- "command": "${input:command} ${input:optionsCommand}",
83
- "problemMatcher": [],
84
- "presentation": {
85
- "reveal": "always",
86
- "focus": true,
87
- "panel": "new",
88
- "clear": false
89
- }
90
- }
91
- ],
92
- "inputs": [
93
- {
94
- "id": "spruceCommand",
95
- "description": "spruce command",
96
- "default": "create.test",
97
- "type": "promptString"
98
- },
99
- {
100
- "id": "command",
101
- "description": "command",
102
- "default": "yarn",
103
- "type": "promptString"
104
- },
105
- {
106
- "id": "optionsCommand",
107
- "description": "optionsCommand",
108
- "default": "add",
109
- "type": "promptString"
110
- }
111
- ]
112
- }
package/CHANGELOG.md DELETED
@@ -1,314 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [0.3.5](https://github.com/sprucelabsai-community/regressionproof/compare/v0.3.4...v0.3.5) (2026-01-13)
7
-
8
- **Note:** Version bump only for package @regressionproof/cli
9
-
10
-
11
-
12
-
13
-
14
- ## [0.3.4](https://github.com/sprucelabsai-community/regressionproof/compare/v0.3.3...v0.3.4) (2026-01-13)
15
-
16
- **Note:** Version bump only for package @regressionproof/cli
17
-
18
-
19
-
20
-
21
-
22
- ## [0.3.3](https://github.com/sprucelabsai-community/regressionproof/compare/v0.3.2...v0.3.3) (2026-01-13)
23
-
24
- **Note:** Version bump only for package @regressionproof/cli
25
-
26
-
27
-
28
-
29
-
30
- ## [0.3.2](https://github.com/sprucelabsai-community/regressionproof/compare/v0.3.1...v0.3.2) (2026-01-13)
31
-
32
- **Note:** Version bump only for package @regressionproof/cli
33
-
34
-
35
-
36
-
37
-
38
- ## [0.3.1](https://github.com/sprucelabsai-community/regressionproof/compare/v0.3.0...v0.3.1) (2026-01-13)
39
-
40
- **Note:** Version bump only for package @regressionproof/cli
41
-
42
-
43
-
44
-
45
-
46
- # [0.3.0](https://github.com/sprucelabsai-community/regressionproof/compare/v0.2.25...v0.3.0) (2026-01-12)
47
-
48
-
49
- ### Features
50
-
51
- * add invites storage and cli commands ([20464c9](https://github.com/sprucelabsai-community/regressionproof/commit/20464c9))
52
- * invites rev 1 ([6dbee04](https://github.com/sprucelabsai-community/regressionproof/commit/6dbee04))
53
-
54
-
55
-
56
-
57
-
58
- ## [0.2.25](https://github.com/sprucelabsai-community/regressionproof/compare/v0.2.24...v0.2.25) (2026-01-12)
59
-
60
- **Note:** Version bump only for package @regressionproof/cli
61
-
62
-
63
-
64
-
65
-
66
- ## [0.2.24](https://github.com/sprucelabsai-community/regressionproof/compare/v0.2.23...v0.2.24) (2026-01-12)
67
-
68
- **Note:** Version bump only for package @regressionproof/cli
69
-
70
-
71
-
72
-
73
-
74
- ## [0.2.23](https://github.com/sprucelabsai-community/regressionproof/compare/v0.2.22...v0.2.23) (2026-01-12)
75
-
76
- **Note:** Version bump only for package @regressionproof/cli
77
-
78
-
79
-
80
-
81
-
82
- ## [0.2.22](https://github.com/sprucelabsai-community/regressionproof/compare/v0.2.21...v0.2.22) (2026-01-12)
83
-
84
- **Note:** Version bump only for package @regressionproof/cli
85
-
86
-
87
-
88
-
89
-
90
- ## [0.2.21](https://github.com/sprucelabsai-community/regressionproof/compare/v0.2.20...v0.2.21) (2026-01-12)
91
-
92
- **Note:** Version bump only for package @regressionproof/cli
93
-
94
-
95
-
96
-
97
-
98
- ## [0.2.20](https://github.com/sprucelabsai-community/regressionproof/compare/v0.2.19...v0.2.20) (2026-01-12)
99
-
100
- **Note:** Version bump only for package @regressionproof/cli
101
-
102
-
103
-
104
-
105
-
106
- ## [0.2.19](https://github.com/sprucelabsai-community/regressionproof/compare/v0.2.18...v0.2.19) (2026-01-12)
107
-
108
- **Note:** Version bump only for package @regressionproof/cli
109
-
110
-
111
-
112
-
113
-
114
- ## [0.2.18](https://github.com/sprucelabsai-community/regressionproof/compare/v0.2.17...v0.2.18) (2026-01-12)
115
-
116
- **Note:** Version bump only for package @regressionproof/cli
117
-
118
-
119
-
120
-
121
-
122
- ## [0.2.17](https://github.com/sprucelabsai-community/regressionproof/compare/v0.2.16...v0.2.17) (2026-01-12)
123
-
124
- **Note:** Version bump only for package @regressionproof/cli
125
-
126
-
127
-
128
-
129
-
130
- ## [0.2.16](https://github.com/sprucelabsai-community/regressionproof/compare/v0.2.15...v0.2.16) (2026-01-12)
131
-
132
- **Note:** Version bump only for package @regressionproof/cli
133
-
134
-
135
-
136
-
137
-
138
- ## [0.2.15](https://github.com/sprucelabsai-community/regressionproof/compare/v0.2.14...v0.2.15) (2026-01-12)
139
-
140
- **Note:** Version bump only for package @regressionproof/cli
141
-
142
-
143
-
144
-
145
-
146
- ## [0.2.14](https://github.com/sprucelabsai-community/regressionproof/compare/v0.2.13...v0.2.14) (2026-01-12)
147
-
148
- **Note:** Version bump only for package @regressionproof/cli
149
-
150
-
151
-
152
-
153
-
154
- ## [0.2.13](https://github.com/sprucelabsai-community/regressionproof/compare/v0.2.12...v0.2.13) (2026-01-12)
155
-
156
- **Note:** Version bump only for package @regressionproof/cli
157
-
158
-
159
-
160
-
161
-
162
- ## [0.2.12](https://github.com/sprucelabsai-community/regressionproof/compare/v0.2.11...v0.2.12) (2026-01-12)
163
-
164
- **Note:** Version bump only for package @regressionproof/cli
165
-
166
-
167
-
168
-
169
-
170
- ## [0.2.11](https://github.com/sprucelabsai-community/regressionproof/compare/v0.2.10...v0.2.11) (2026-01-12)
171
-
172
- **Note:** Version bump only for package @regressionproof/cli
173
-
174
-
175
-
176
-
177
-
178
- ## [0.2.10](https://github.com/sprucelabsai-community/regressionproof/compare/v0.2.9...v0.2.10) (2026-01-12)
179
-
180
- **Note:** Version bump only for package @regressionproof/cli
181
-
182
-
183
-
184
-
185
-
186
- ## [0.2.9](https://github.com/sprucelabsai-community/regressionproof/compare/v0.2.8...v0.2.9) (2026-01-12)
187
-
188
- **Note:** Version bump only for package @regressionproof/cli
189
-
190
-
191
-
192
-
193
-
194
- ## [0.2.8](https://github.com/sprucelabsai-community/regressionproof/compare/v0.2.7...v0.2.8) (2026-01-12)
195
-
196
- **Note:** Version bump only for package @regressionproof/cli
197
-
198
-
199
-
200
-
201
-
202
- ## [0.2.7](https://github.com/sprucelabsai-community/regressionproof/compare/v0.2.6...v0.2.7) (2026-01-12)
203
-
204
- **Note:** Version bump only for package @regressionproof/cli
205
-
206
-
207
-
208
-
209
-
210
- ## [0.2.6](https://github.com/sprucelabsai-community/regressionproof/compare/v0.2.5...v0.2.6) (2026-01-12)
211
-
212
- **Note:** Version bump only for package @regressionproof/cli
213
-
214
-
215
-
216
-
217
-
218
- ## [0.2.5](https://github.com/sprucelabsai-community/regressionproof/compare/v0.2.4...v0.2.5) (2026-01-12)
219
-
220
- **Note:** Version bump only for package @regressionproof/cli
221
-
222
-
223
-
224
-
225
-
226
- ## [0.2.4](https://github.com/sprucelabsai-community/regressionproof/compare/v0.2.3...v0.2.4) (2026-01-12)
227
-
228
- **Note:** Version bump only for package @regressionproof/cli
229
-
230
-
231
-
232
-
233
-
234
- ## [0.2.3](https://github.com/sprucelabsai-community/regressionproof/compare/v0.2.2...v0.2.3) (2026-01-12)
235
-
236
- **Note:** Version bump only for package @regressionproof/cli
237
-
238
-
239
-
240
-
241
-
242
- ## [0.2.2](https://github.com/sprucelabsai-community/regressionproof/compare/v0.2.1...v0.2.2) (2026-01-12)
243
-
244
- **Note:** Version bump only for package @regressionproof/cli
245
-
246
-
247
-
248
-
249
-
250
- ## [0.2.1](https://github.com/sprucelabsai-community/regressionproof/compare/v0.2.0...v0.2.1) (2026-01-12)
251
-
252
- **Note:** Version bump only for package @regressionproof/cli
253
-
254
-
255
-
256
-
257
-
258
- # [0.2.0](https://github.com/sprucelabsai-community/regressionproof/compare/v0.1.3...v0.2.0) (2026-01-12)
259
-
260
- **Note:** Version bump only for package @regressionproof/cli
261
-
262
-
263
-
264
-
265
-
266
- ## [0.1.3](https://github.com/sprucelabsai-community/regressionproof/compare/v0.1.2...v0.1.3) (2026-01-12)
267
-
268
- **Note:** Version bump only for package @regressionproof/cli
269
-
270
-
271
-
272
-
273
-
274
- ## [0.1.2](https://github.com/sprucelabsai-community/regressionproof/compare/v0.1.1...v0.1.2) (2026-01-12)
275
-
276
- **Note:** Version bump only for package @regressionproof/cli
277
-
278
-
279
-
280
-
281
-
282
- ## [0.1.1](https://github.com/sprucelabsai-community/regressionproof/compare/v0.1.0...v0.1.1) (2026-01-12)
283
-
284
- **Note:** Version bump only for package @regressionproof/cli
285
-
286
-
287
-
288
-
289
-
290
- # 0.1.0 (2026-01-12)
291
-
292
-
293
- ### Bug Fixes
294
-
295
- * configure package publishing ([fe9f0ca](https://github.com/sprucelabsai-community/regressionproof/commit/fe9f0ca))
296
- * ESM/CJS interop for CLI importing client ([d66b208](https://github.com/sprucelabsai-community/regressionproof/commit/d66b208))
297
-
298
-
299
- ### Documentation
300
-
301
- * simplify README, add ARCHITECTURE.md ([8246e6e](https://github.com/sprucelabsai-community/regressionproof/commit/8246e6e))
302
-
303
-
304
- ### Features
305
-
306
- * add CircleCI config and e2e scripts ([049caa1](https://github.com/sprucelabsai-community/regressionproof/commit/049caa1))
307
- * add parallel watch and fancy CLI banner ([e55a396](https://github.com/sprucelabsai-community/regressionproof/commit/e55a396))
308
- * ESM support and CLI init component ([d60a534](https://github.com/sprucelabsai-community/regressionproof/commit/d60a534))
309
- * lerna, CJS builds, slug validation, jest-reporter scaffold ([2516cac](https://github.com/sprucelabsai-community/regressionproof/commit/2516cac))
310
-
311
-
312
- ### Refactoring
313
-
314
- * extract CLI business logic into dedicated modules ([dadd01c](https://github.com/sprucelabsai-community/regressionproof/commit/dadd01c))
package/eslint.config.mjs DELETED
@@ -1,3 +0,0 @@
1
- import eslintConfigSpruce from 'eslint-config-spruce'
2
-
3
- export default eslintConfigSpruce
@@ -1,16 +0,0 @@
1
- {
2
- "scriptUpdater": {
3
- "skipped": []
4
- },
5
- "writer": {
6
- "skipped": [
7
- "tsconfig.json"
8
- ]
9
- },
10
- "skipped": [
11
- "skill"
12
- ],
13
- "installed": [
14
- "test"
15
- ]
16
- }
package/src/cli.ts DELETED
@@ -1,53 +0,0 @@
1
- #!/usr/bin/env node
2
- import 'dotenv/config'
3
- import { render } from 'ink'
4
- import React from 'react'
5
- import acceptInvite from './commands/invite/AcceptInvite.js'
6
- import createInvite from './commands/invite/CreateInvite.js'
7
- import listInvites from './commands/invite/ListInvites.js'
8
- import revokeInvite from './commands/invite/RevokeInvite.js'
9
- import Init from './components/Init.js'
10
-
11
- const command = process.argv[2]
12
- const projectNameArg = process.argv[3]
13
-
14
- if (command === 'init') {
15
- render(React.createElement(Init, { projectName: projectNameArg }))
16
- } else if (command === 'invite') {
17
- const subcommand = process.argv[3]
18
- const arg = process.argv[4]
19
-
20
- if (subcommand === 'create') {
21
- const noteArg = process.argv.find((value) =>
22
- value.startsWith('--note=')
23
- )
24
- const note = noteArg ? noteArg.replace('--note=', '') : undefined
25
- void createInvite(arg, note)
26
- } else if (subcommand === 'accept') {
27
- if (!arg) {
28
- console.error('Usage: regressionproof invite accept <token>')
29
- process.exit(1)
30
- }
31
- void acceptInvite(arg)
32
- } else if (subcommand === 'list') {
33
- void listInvites(arg)
34
- } else if (subcommand === 'revoke') {
35
- if (!arg) {
36
- console.error('Usage: regressionproof invite revoke <token>')
37
- process.exit(1)
38
- }
39
- void revokeInvite(arg)
40
- } else {
41
- console.error(
42
- 'Usage: regressionproof invite <create|accept|list|revoke>'
43
- )
44
- process.exit(1)
45
- }
46
- } else {
47
- console.log('Usage: regressionproof <command>')
48
- console.log('')
49
- console.log('Commands:')
50
- console.log(' init [projectName] Initialize a new project')
51
- console.log(' invite ... Manage project invites')
52
- process.exit(1)
53
- }
@@ -1,21 +0,0 @@
1
- const API_URL =
2
- process.env.REGRESSIONPROOF_API_URL ?? 'https://api.regressionproof.ai'
3
-
4
- export default async function acceptInvite(token: string): Promise<void> {
5
- const response = await fetch(`${API_URL}/invites/accept`, {
6
- method: 'POST',
7
- headers: {
8
- 'Content-Type': 'application/json',
9
- },
10
- body: JSON.stringify({ token }),
11
- })
12
-
13
- if (!response.ok) {
14
- const text = await response.text()
15
- throw new Error(`Invite accept failed: ${response.status} ${text}`)
16
- }
17
-
18
- const data = (await response.json()) as { url: string; token: string }
19
- console.log('Project URL:', data.url)
20
- console.log('Project token:', data.token)
21
- }