@supatype/cli 0.1.0-alpha.11 → 0.1.0-alpha.12

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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @supatype/cli@0.1.0-alpha.11 build /home/runner/work/supatype/supatype/packages/cli
2
+ > @supatype/cli@0.1.0-alpha.12 build /home/runner/work/supatype/supatype/packages/cli
3
3
  > tsc --project tsconfig.json && node --input-type=module -e "import{cpSync,mkdirSync}from'node:fs';const a='dist/assets';mkdirSync(a,{recursive:true});cpSync('assets/supatype-logo-wordmark.ascii.txt',a+'/supatype-logo-wordmark.ascii.txt')"
4
4
 
@@ -1,37 +1,37 @@
1
1
 
2
- > @supatype/cli@0.1.0-alpha.11 test /home/runner/work/supatype/supatype/packages/cli
2
+ > @supatype/cli@0.1.0-alpha.12 test /home/runner/work/supatype/supatype/packages/cli
3
3
  > vitest run
4
4
 
5
5
 
6
6
   RUN  v4.0.18 /home/runner/work/supatype/supatype/packages/cli
7
7
 
8
- ✓ tests/runtime-contract.test.ts (32 tests) 196ms
9
- ✓ tests/type-extractor.test.ts (34 tests) 221ms
10
- ✓ tests/config.test.ts (16 tests) 4440ms
11
- ✓ loads a valid supatype.config.ts (plain export default, no package imports)  839ms
12
- ✓ normalizes shorthand schema string to { path, pg_schema }  558ms
13
- ✓ loads a supatype.config.js (plain ESM)  504ms
14
- ✓ loads config without a versions section (latest by default)  451ms
15
- ✓ prefers supatype.config.ts over supatype.config.js when both exist  527ms
16
- ✓ supports optional output field in config  549ms
17
- ✓ merges supatype.local.config.ts over base  999ms
8
+ ✓ tests/runtime-contract.test.ts (32 tests) 153ms
9
+ ✓ tests/type-extractor.test.ts (34 tests) 154ms
10
+ ✓ tests/config.test.ts (16 tests) 4226ms
11
+ ✓ loads a valid supatype.config.ts (plain export default, no package imports)  545ms
12
+ ✓ normalizes shorthand schema string to { path, pg_schema }  495ms
13
+ ✓ loads a supatype.config.js (plain ESM)  454ms
14
+ ✓ loads config without a versions section (latest by default)  546ms
15
+ ✓ prefers supatype.config.ts over supatype.config.js when both exist  539ms
16
+ ✓ supports optional output field in config  575ms
17
+ ✓ merges supatype.local.config.ts over base  1058ms
18
18
  stdout | tests/link.test.ts > link model > migrates cloud.json into link.json
19
19
   created package.json
20
20
  created supatype.config.ts
21
21
  created schema/index.ts
22
22
  created .env
23
23
  created seed.ts
24
- stderr | tests/link.test.ts > link model > migrates cloud.json into link.json
25
24
  created seeds/.gitkeep
26
25
  created public/.gitkeep
27
26
  created .gitignore
28
27
 
28
+ stderr | tests/link.test.ts > link model > migrates cloud.json into link.json
29
29
  Migrated .supatype/cloud.json → .supatype/link.json (legacy files kept; remove manually when ready).
30
30
 
31
- ✓ tests/link.test.ts (4 tests) 2807ms
32
- ✓ resolveTarget returns cloud mode with /api/v1 prefix  947ms
33
- ✓ resolveTarget returns self-host mode with /platform/v1 prefix  944ms
34
- ✓ targetSchemaRollback posts to /platform/v1 when linked  905ms
31
+ ✓ tests/link.test.ts (4 tests) 2837ms
32
+ ✓ resolveTarget returns cloud mode with /api/v1 prefix  929ms
33
+ ✓ resolveTarget returns self-host mode with /platform/v1 prefix  922ms
34
+ ✓ targetSchemaRollback posts to /platform/v1 when linked  973ms
35
35
  stdout | tests/init.test.ts > scaffold() > creates all expected files
36
36
   created package.json
37
37
  created supatype.config.ts
@@ -150,46 +150,46 @@
150
150
  created public/.gitkeep
151
151
  created .gitignore
152
152
 
153
- ✓ tests/init.test.ts (11 tests) 26ms
153
+ ✓ tests/init.test.ts (11 tests) 43ms
154
154
 
155
155
 
156
156
 
157
157
 
158
- ✓ tests/dev-ui.test.ts (15 tests) 68ms
158
+ ✓ tests/dev-ui.test.ts (15 tests) 69ms
159
159
 
160
- ✓ tests/pull-utils.test.ts (49 tests) 11ms
161
- ✓ tests/schema-sources.test.ts (5 tests) 1111ms
162
- ✓ buildSchemaSourcesPayload includes manifest metadata  518ms
163
- ✓ restore overwrites modified local files  551ms
160
+ ✓ tests/pull-utils.test.ts (49 tests) 19ms
161
+ ✓ tests/schema-sources.test.ts (5 tests) 1167ms
162
+ ✓ buildSchemaSourcesPayload includes manifest metadata  572ms
163
+ ✓ restore overwrites modified local files  548ms
164
164
  stderr | tests/binary-cache-cloud-overrides.test.ts > isLinkedToCloudProject > is true when .supatype/cloud.json has projectSlug
165
165
  Migrated .supatype/cloud.json → .supatype/link.json (legacy files kept; remove manually when ready).
166
166
 
167
- ✓ tests/binary-cache-cloud-overrides.test.ts (11 tests) 21ms
167
+ ✓ tests/binary-cache-cloud-overrides.test.ts (11 tests) 19ms
168
168
  stdout | tests/storage-provision.test.ts > provisionBuckets > POSTs each bucket to the storage API
169
169
  [supatype] Storage bucket "photos" ready.
170
170
 
171
171
  stdout | tests/storage-provision.test.ts > provisionBuckets > POSTs each bucket to the storage API
172
172
  [supatype] Storage bucket "avatars" ready.
173
173
 
174
- ✓ tests/storage-provision.test.ts (6 tests) 14ms
175
- ✓ tests/cached-artifact-format.test.ts (7 tests) 9ms
176
- ✓ tests/proxy-dev-app.test.ts (7 tests) 6ms
177
- ✓ tests/keys.test.ts (11 tests) 11952ms
178
- ✓ exits 0 with --secret  1104ms
179
- ✓ outputs ANON_KEY= line  1026ms
180
- ✓ outputs SERVICE_ROLE_KEY= line  1039ms
181
- ✓ ANON_KEY is a valid three-part JWT  1000ms
182
- ✓ SERVICE_ROLE_KEY payload has role: service_role  882ms
183
- ✓ JWT has exp in the future  1009ms
184
- ✓ --exp-years changes the expiry window  2014ms
185
- ✓ reads JWT_SECRET from environment variable  1027ms
186
- ✓ reads JWT_SECRET from .env file  935ms
187
- ✓ exits non-zero when no secret is available  923ms
188
- ✓ keys --help shows --secret and --exp-years options  989ms
189
- ✓ tests/augmentation-generator.test.ts (3 tests) 17ms
190
- ✓ tests/type-resolver.test.ts (2 tests) 14ms
191
- ✓ tests/engine-push-output.test.ts (7 tests) 7ms
192
- ✓ tests/ensure-binary.test.ts (2 tests) 7ms
174
+ ✓ tests/storage-provision.test.ts (6 tests) 13ms
175
+ ✓ tests/cached-artifact-format.test.ts (7 tests) 13ms
176
+ ✓ tests/proxy-dev-app.test.ts (7 tests) 9ms
177
+ ✓ tests/keys.test.ts (11 tests) 12113ms
178
+ ✓ exits 0 with --secret  1125ms
179
+ ✓ outputs ANON_KEY= line  1052ms
180
+ ✓ outputs SERVICE_ROLE_KEY= line  1027ms
181
+ ✓ ANON_KEY is a valid three-part JWT  974ms
182
+ ✓ SERVICE_ROLE_KEY payload has role: service_role  1018ms
183
+ ✓ JWT has exp in the future  955ms
184
+ ✓ --exp-years changes the expiry window  1996ms
185
+ ✓ reads JWT_SECRET from environment variable  981ms
186
+ ✓ reads JWT_SECRET from .env file  1027ms
187
+ ✓ exits non-zero when no secret is available  990ms
188
+ ✓ keys --help shows --secret and --exp-years options  961ms
189
+ ✓ tests/augmentation-generator.test.ts (3 tests) 18ms
190
+ ✓ tests/type-resolver.test.ts (2 tests) 19ms
191
+ ✓ tests/engine-push-output.test.ts (7 tests) 6ms
192
+ ✓ tests/ensure-binary.test.ts (2 tests) 10ms
193
193
  stdout | tests/app-command.test.ts > supatype app add --static > sets app.mode=static and static_dir in supatype.config.ts
194
194
   created package.json
195
195
  created supatype.config.ts
@@ -200,15 +200,16 @@
200
200
  created public/.gitkeep
201
201
  created .gitignore
202
202
 
203
- ✓ tests/tsx-runner.test.ts (7 tests) 2842ms
204
- ✓ evaluates a simple expression and returns stdout  426ms
205
- ✓ evaluates TypeScript syntax (type annotations)  360ms
206
- ✓ can serialize a JSON object to stdout  379ms
207
- ✓ returns non-zero exit code on syntax error  404ms
208
- ✓ returns non-zero exit code on runtime error  355ms
209
- ✓ captures stderr separately from stdout  356ms
210
- ✓ runs a .ts file and returns its stdout  558ms
211
- ✓ tests/normalize-admin-config.test.ts (1 test) 7ms
203
+ ✓ tests/tsx-runner.test.ts (7 tests) 2653ms
204
+ ✓ evaluates a simple expression and returns stdout  363ms
205
+ ✓ evaluates TypeScript syntax (type annotations)  349ms
206
+ ✓ can serialize a JSON object to stdout  343ms
207
+ ✓ returns non-zero exit code on syntax error  390ms
208
+ ✓ returns non-zero exit code on runtime error  343ms
209
+ ✓ captures stderr separately from stdout  407ms
210
+ ✓ runs a .ts file and returns its stdout  455ms
211
+ ✓ tests/normalize-admin-config.test.ts (1 test) 8ms
212
+ ✓ tests/docker-postgres.test.ts (5 tests) 5ms
212
213
  stdout | tests/app-command.test.ts > supatype app add --static > creates the static directory when missing
213
214
   created package.json
214
215
  created supatype.config.ts
@@ -219,36 +220,35 @@
219
220
  created public/.gitkeep
220
221
  created .gitignore
221
222
 
222
- ✓ tests/docker-postgres.test.ts (5 tests) 5ms
223
- ✓ tests/seed-discover.test.ts (2 tests) 17ms
224
- ✓ tests/studio-admin-roles.test.ts (3 tests) 5ms
225
- ✓ tests/app-command.test.ts (2 tests) 2099ms
226
- ✓ sets app.mode=static and static_dir in supatype.config.ts  978ms
227
- ✓ creates the static directory when missing  1119ms
228
- ✓ tests/release-pins.test.ts (2 tests) 4ms
229
- ✓ tests/pg-spawn-env.test.ts (2 tests) 4ms
230
- ✓ tests/cli-help.test.ts (16 tests) 15783ms
231
- ✓ --help lists all top-level commands  1027ms
232
- ✓ --version prints a semver string  977ms
233
- ✓ self-update --help describes the command  982ms
234
- ✓ init --help describes the init command  1018ms
235
- ✓ push --help describes the push command and --yes flag  936ms
236
- ✓ diff --help describes the diff command  949ms
237
- ✓ pull --help describes scaffold pull command  980ms
238
- ✓ doctor --help describes drift report command  1077ms
239
- ✓ introspect --help describes database introspection command  959ms
240
- ✓ adopt --help describes adoption ceremony command  974ms
241
- ✓ reset --help shows --yes flag  1000ms
242
- ✓ app --help describes the app command with add/remove subcommands  1028ms
243
- ✓ app add --help shows --static and --port options  987ms
244
- ✓ self-host --help shows compose only (legacy commands hidden)  989ms
245
- ✓ self-host compose --help shows compose subcommands  997ms
246
- ✓ unknown command exits non-zero  896ms
247
- ✓ tests/postgres-archive-tag.test.ts (1 test) 2ms
248
- ✓ tests/migrate-from-v1.test.ts (1 test) 10ms
223
+ ✓ tests/seed-discover.test.ts (2 tests) 15ms
224
+ ✓ tests/studio-admin-roles.test.ts (3 tests) 4ms
225
+ ✓ tests/app-command.test.ts (2 tests) 2073ms
226
+ ✓ sets app.mode=static and static_dir in supatype.config.ts  1056ms
227
+ ✓ creates the static directory when missing  1016ms
228
+ ✓ tests/release-pins.test.ts (2 tests) 3ms
229
+ ✓ tests/pg-spawn-env.test.ts (2 tests) 5ms
230
+ ✓ tests/postgres-archive-tag.test.ts (1 test) 3ms
231
+ ✓ tests/cli-help.test.ts (16 tests) 16035ms
232
+ ✓ --help lists all top-level commands  1018ms
233
+ ✓ --version prints a semver string  969ms
234
+ ✓ self-update --help describes the command  981ms
235
+ ✓ init --help describes the init command  1105ms
236
+ ✓ push --help describes the push command and --yes flag  977ms
237
+ ✓ diff --help describes the diff command  1007ms
238
+ ✓ pull --help describes scaffold pull command  978ms
239
+ ✓ doctor --help describes drift report command  1020ms
240
+ ✓ introspect --help describes database introspection command  915ms
241
+ ✓ adopt --help describes adoption ceremony command  966ms
242
+ ✓ reset --help shows --yes flag  974ms
243
+ ✓ app --help describes the app command with add/remove subcommands  1080ms
244
+ ✓ app add --help shows --static and --port options  998ms
245
+ ✓ self-host --help shows compose only (legacy commands hidden)  1033ms
246
+ ✓ self-host compose --help shows compose subcommands  1038ms
247
+ ✓ unknown command exits non-zero  970ms
248
+ ✓ tests/migrate-from-v1.test.ts (1 test) 11ms
249
249
 
250
250
   Test Files  28 passed (28)
251
251
   Tests  264 passed (264)
252
-  Start at  18:27:06
253
-  Duration  19.40s (transform 2.69s, setup 0ms, import 9.89s, tests 41.71s, environment 4ms)
252
+  Start at  19:48:26
253
+  Duration  19.22s (transform 2.92s, setup 0ms, import 10.12s, tests 41.70s, environment 5ms)
254
254
 
@@ -1,4 +1,4 @@
1
1
 
2
- > @supatype/cli@0.1.0-alpha.11 typecheck /home/runner/work/supatype/supatype/packages/cli
2
+ > @supatype/cli@0.1.0-alpha.12 typecheck /home/runner/work/supatype/supatype/packages/cli
3
3
  > tsc --project tsconfig.json --noEmit
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supatype/cli",
3
- "version": "0.1.0-alpha.11",
3
+ "version": "0.1.0-alpha.12",
4
4
  "description": "Supatype CLI — schema push, introspect, generate",
5
5
  "type": "module",
6
6
  "bin": {