@supatype/cli 0.3.3 → 0.3.4
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-test.log +161 -160
- package/.turbo/turbo-typecheck.log +1 -1
- package/dist/cli-version-embedded.js +1 -1
- package/dist/dev-compose.d.ts.map +1 -1
- package/dist/dev-compose.js +12 -10
- package/dist/dev-compose.js.map +1 -1
- package/dist/self-host-compose.d.ts +15 -0
- package/dist/self-host-compose.d.ts.map +1 -1
- package/dist/self-host-compose.js +18 -1
- package/dist/self-host-compose.js.map +1 -1
- package/package.json +2 -2
- package/src/cli-version-embedded.ts +1 -1
- package/src/dev-compose.ts +12 -11
- package/src/self-host-compose.ts +19 -1
- package/tests/db-published-and-addressable.test.ts +69 -0
- package/tsconfig.tsbuildinfo +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @supatype/cli@0.3.
|
|
2
|
+
> @supatype/cli@0.3.4 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
|
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
|
|
2
|
-
> @supatype/cli@0.3.
|
|
2
|
+
> @supatype/cli@0.3.4 test /home/runner/work/supatype/supatype/packages/cli
|
|
3
3
|
> vitest run
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
[1m[46m RUN [49m[22m [36mv4.0.18 [39m[90m/home/runner/work/supatype/supatype/packages/cli[39m
|
|
7
7
|
|
|
8
|
-
[32m✓[39m tests/type-extractor.test.ts [2m([22m[2m49 tests[22m[2m)[22m[
|
|
9
|
-
[32m✓[39m tests/access-composition.test.ts [2m([22m[2m32 tests[22m[2m)[22m[32m
|
|
10
|
-
[32m✓[39m tests/model-hooks.test.ts [2m([22m[2m23 tests[22m[2m)[22m[32m
|
|
8
|
+
[32m✓[39m tests/type-extractor.test.ts [2m([22m[2m49 tests[22m[2m)[22m[32m 233[2mms[22m[39m
|
|
9
|
+
[32m✓[39m tests/access-composition.test.ts [2m([22m[2m32 tests[22m[2m)[22m[32m 217[2mms[22m[39m
|
|
10
|
+
[32m✓[39m tests/model-hooks.test.ts [2m([22m[2m23 tests[22m[2m)[22m[32m 112[2mms[22m[39m
|
|
11
|
+
[32m✓[39m tests/runtime-contract.test.ts [2m([22m[2m64 tests[22m[2m)[22m[32m 222[2mms[22m[39m
|
|
12
|
+
[32m✓[39m tests/augmentation-generator.test.ts [2m([22m[2m24 tests[22m[2m)[22m[32m 26[2mms[22m[39m
|
|
13
|
+
[32m✓[39m tests/seed-ir.test.ts [2m([22m[2m15 tests[22m[2m)[22m[32m 46[2mms[22m[39m
|
|
11
14
|
[90mstdout[2m | tests/init.test.ts[2m > [22m[2mscaffold()[2m > [22m[2mcreates all expected files
|
|
12
15
|
[22m[39m created package.json
|
|
13
16
|
created supatype.config.ts
|
|
@@ -322,34 +325,31 @@
|
|
|
322
325
|
created public/.gitkeep
|
|
323
326
|
created .gitignore
|
|
324
327
|
|
|
325
|
-
[32m✓[39m tests/init.test.ts [2m([22m[2m28 tests[22m[2m)[22m[32m
|
|
326
|
-
[32m✓[39m tests/
|
|
327
|
-
[32m✓[39m tests/
|
|
328
|
-
[32m✓[39m tests/
|
|
329
|
-
[32m✓[39m tests/
|
|
330
|
-
[32m✓[39m tests/
|
|
331
|
-
[32m✓[39m tests/model-
|
|
332
|
-
[32m✓[39m tests/
|
|
333
|
-
|
|
334
|
-
[32m✓[39m tests/
|
|
335
|
-
[32m✓[39m tests/field-masking-tier.test.ts [2m([22m[2m16 tests[22m[2m)[22m[32m 21[2mms[22m[39m
|
|
336
|
-
[32m✓[39m tests/hooks-generator.test.ts [2m([22m[2m7 tests[22m[2m)[22m[33m 9843[2mms[22m[39m
|
|
337
|
-
[33m[2m✓[22m[39m typechecks under strict mode, together with a handler that uses it [33m 4001[2mms[22m[39m
|
|
338
|
-
[33m[2m✓[22m[39m rejects a handler for a table that declares no hook [33m 3169[2mms[22m[39m
|
|
339
|
-
[33m[2m✓[22m[39m typechecks with a validator written the way the docs will show it [33m 2605[2mms[22m[39m
|
|
340
|
-
|
|
341
|
-
[32m✓[39m tests/dev-ui.test.ts [2m([22m[2m21 tests[22m[2m)[22m[32m 125[2mms[22m[39m
|
|
328
|
+
[32m✓[39m tests/init.test.ts [2m([22m[2m28 tests[22m[2m)[22m[32m 209[2mms[22m[39m
|
|
329
|
+
[32m✓[39m tests/engine-floor.test.ts [2m([22m[2m28 tests[22m[2m)[22m[32m 34[2mms[22m[39m
|
|
330
|
+
[32m✓[39m tests/external-database-compose.test.ts [2m([22m[2m23 tests[22m[2m)[22m[32m 38[2mms[22m[39m
|
|
331
|
+
[32m✓[39m tests/model-constraints.test.ts [2m([22m[2m18 tests[22m[2m)[22m[32m 222[2mms[22m[39m
|
|
332
|
+
[32m✓[39m tests/model-versions.test.ts [2m([22m[2m19 tests[22m[2m)[22m[32m 143[2mms[22m[39m
|
|
333
|
+
[32m✓[39m tests/api-config-cache-seed.test.ts [2m([22m[2m15 tests[22m[2m)[22m[32m 46[2mms[22m[39m
|
|
334
|
+
[32m✓[39m tests/model-cache-declaration.test.ts [2m([22m[2m18 tests[22m[2m)[22m[32m 114[2mms[22m[39m
|
|
335
|
+
[32m✓[39m tests/field-masking-tier.test.ts [2m([22m[2m16 tests[22m[2m)[22m[32m 18[2mms[22m[39m
|
|
336
|
+
|
|
337
|
+
[32m✓[39m tests/dev-ui.test.ts [2m([22m[2m21 tests[22m[2m)[22m[32m 166[2mms[22m[39m
|
|
342
338
|
|
|
343
339
|
[supatype] Shutting down…
|
|
344
|
-
[32m✓[39m tests/
|
|
345
|
-
[33m[2m✓[22m[39m
|
|
346
|
-
[33m[2m✓[22m[39m
|
|
347
|
-
[33m[2m✓[22m[39m
|
|
348
|
-
|
|
349
|
-
[33m[2m✓[22m[39m
|
|
350
|
-
[33m[2m✓[22m[39m
|
|
351
|
-
[33m[2m✓[22m[39m
|
|
352
|
-
[33m[2m✓[22m[39m loads
|
|
340
|
+
[32m✓[39m tests/hooks-generator.test.ts [2m([22m[2m7 tests[22m[2m)[22m[33m 9881[2mms[22m[39m
|
|
341
|
+
[33m[2m✓[22m[39m typechecks under strict mode, together with a handler that uses it [33m 3886[2mms[22m[39m
|
|
342
|
+
[33m[2m✓[22m[39m rejects a handler for a table that declares no hook [33m 3521[2mms[22m[39m
|
|
343
|
+
[33m[2m✓[22m[39m typechecks with a validator written the way the docs will show it [33m 2367[2mms[22m[39m
|
|
344
|
+
[32m✓[39m tests/config.test.ts [2m([22m[2m19 tests[22m[2m)[22m[33m 9093[2mms[22m[39m
|
|
345
|
+
[33m[2m✓[22m[39m loads a valid supatype.config.ts (plain export default, no package imports) [33m 1136[2mms[22m[39m
|
|
346
|
+
[33m[2m✓[22m[39m normalizes shorthand schema string to { path, pg_schema } [33m 1487[2mms[22m[39m
|
|
347
|
+
[33m[2m✓[22m[39m loads a supatype.config.js (plain ESM) [33m 1023[2mms[22m[39m
|
|
348
|
+
[33m[2m✓[22m[39m loads config without a versions section (latest by default) [33m 1103[2mms[22m[39m
|
|
349
|
+
[33m[2m✓[22m[39m prefers supatype.config.ts over supatype.config.js when both exist [33m 922[2mms[22m[39m
|
|
350
|
+
[33m[2m✓[22m[39m supports optional output field in config [33m 858[2mms[22m[39m
|
|
351
|
+
[33m[2m✓[22m[39m merges supatype.local.config.ts over base [33m 1337[2mms[22m[39m
|
|
352
|
+
[33m[2m✓[22m[39m loads defineConfig import before @supatype/cli is installed (init scaffold) [33m 1214[2mms[22m[39m
|
|
353
353
|
[90mstdout[2m | tests/docker-runtime.test.ts[2m > [22m[2mrequireDockerDaemon[2m > [22m[2mexits when the daemon is unavailable
|
|
354
354
|
[22m[39m
|
|
355
355
|
Start the Docker daemon (e.g. sudo systemctl start docker), then try again.
|
|
@@ -358,45 +358,45 @@
|
|
|
358
358
|
|
|
359
359
|
docker: daemon down
|
|
360
360
|
|
|
361
|
-
[32m✓[39m tests/docker-runtime.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m
|
|
362
|
-
[32m✓[39m tests/db-preflight.test.ts [2m([22m[2m14 tests[22m[2m)[22m[32m
|
|
363
|
-
[32m✓[39m tests/keys-write.test.ts [2m([22m[2m11 tests[22m[2m)[22m[32m
|
|
364
|
-
[32m✓[39m tests/field-bounds.test.ts [2m([22m[2m23 tests[22m[2m)[22m[32m
|
|
365
|
-
[32m✓[39m tests/cache-clean.test.ts [2m([22m[2m8 tests[22m[2m)[22m[33m
|
|
366
|
-
[33m[2m✓[22m[39m keeps pinned versions and removes the rest [33m
|
|
367
|
-
[33m[2m✓[22m[39m --force removes pinned versions [33m
|
|
368
|
-
[33m[2m✓[22m[39m explicit version removes even when pinned (with warning) [33m
|
|
369
|
-
[32m✓[39m tests/cache-provider-config.test.ts [2m([22m[2m12 tests[22m[2m)[22m[32m
|
|
370
|
-
[32m✓[39m tests/functions-deno-types.test.ts [2m([22m[2m7 tests[22m[2m)[22m[33m
|
|
371
|
-
[33m[2m✓[22m[39m tsc fails with Cannot find name Deno without ambient types [33m
|
|
372
|
-
[33m[2m✓[22m[39m tsc passes for Deno.env after ensureFunctionsDenoTypes [33m
|
|
373
|
-
[32m✓[39m tests/seed-connection.test.ts [2m([22m[2m13 tests[22m[2m)[22m[32m
|
|
374
|
-
[32m✓[39m tests/field-bounds-matrix.test.ts [2m([22m[2m124 tests[22m[2m)[22m[32m
|
|
361
|
+
[32m✓[39m tests/docker-runtime.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m 14[2mms[22m[39m
|
|
362
|
+
[32m✓[39m tests/db-preflight.test.ts [2m([22m[2m14 tests[22m[2m)[22m[32m 10[2mms[22m[39m
|
|
363
|
+
[32m✓[39m tests/keys-write.test.ts [2m([22m[2m11 tests[22m[2m)[22m[32m 24[2mms[22m[39m
|
|
364
|
+
[32m✓[39m tests/field-bounds.test.ts [2m([22m[2m23 tests[22m[2m)[22m[32m 15[2mms[22m[39m
|
|
365
|
+
[32m✓[39m tests/cache-clean.test.ts [2m([22m[2m8 tests[22m[2m)[22m[33m 2007[2mms[22m[39m
|
|
366
|
+
[33m[2m✓[22m[39m keeps pinned versions and removes the rest [33m 562[2mms[22m[39m
|
|
367
|
+
[33m[2m✓[22m[39m --force removes pinned versions [33m 731[2mms[22m[39m
|
|
368
|
+
[33m[2m✓[22m[39m explicit version removes even when pinned (with warning) [33m 698[2mms[22m[39m
|
|
369
|
+
[32m✓[39m tests/cache-provider-config.test.ts [2m([22m[2m12 tests[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
370
|
+
[32m✓[39m tests/functions-deno-types.test.ts [2m([22m[2m7 tests[22m[2m)[22m[33m 2956[2mms[22m[39m
|
|
371
|
+
[33m[2m✓[22m[39m tsc fails with Cannot find name Deno without ambient types [33m 2063[2mms[22m[39m
|
|
372
|
+
[33m[2m✓[22m[39m tsc passes for Deno.env after ensureFunctionsDenoTypes [33m 879[2mms[22m[39m
|
|
373
|
+
[32m✓[39m tests/seed-connection.test.ts [2m([22m[2m13 tests[22m[2m)[22m[32m 16[2mms[22m[39m
|
|
374
|
+
[32m✓[39m tests/field-bounds-matrix.test.ts [2m([22m[2m124 tests[22m[2m)[22m[32m 34[2mms[22m[39m
|
|
375
375
|
[32m✓[39m tests/external-database-config.test.ts [2m([22m[2m14 tests[22m[2m)[22m[32m 10[2mms[22m[39m
|
|
376
|
-
[32m✓[39m tests/compose-services.test.ts [2m([22m[2m12 tests[22m[2m)[22m[32m
|
|
377
|
-
[32m✓[39m tests/field-validators.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m
|
|
378
|
-
[32m✓[39m tests/native-keyspace.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m
|
|
376
|
+
[32m✓[39m tests/compose-services.test.ts [2m([22m[2m12 tests[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
377
|
+
[32m✓[39m tests/field-validators.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m 68[2mms[22m[39m
|
|
378
|
+
[32m✓[39m tests/native-keyspace.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m 39[2mms[22m[39m
|
|
379
379
|
[32m✓[39m tests/db-port.test.ts [2m([22m[2m14 tests[22m[2m)[22m[32m 17[2mms[22m[39m
|
|
380
|
-
[32m✓[39m tests/command-chrome-coverage.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m
|
|
381
|
-
[32m✓[39m tests/hook-upload.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m
|
|
382
|
-
[32m✓[39m tests/env-file.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m
|
|
380
|
+
[32m✓[39m tests/command-chrome-coverage.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 22[2mms[22m[39m
|
|
381
|
+
[32m✓[39m tests/hook-upload.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 14[2mms[22m[39m
|
|
382
|
+
[32m✓[39m tests/env-file.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 17[2mms[22m[39m
|
|
383
383
|
[90mstdout[2m | tests/link.test.ts[2m > [22m[2mlink model[2m > [22m[2mmigrates cloud.json into link.json
|
|
384
384
|
[22m[39m created package.json
|
|
385
385
|
created supatype.config.ts
|
|
386
386
|
created schema/index.ts
|
|
387
387
|
created .env
|
|
388
388
|
created seed.ts
|
|
389
|
-
[90mstderr[2m | tests/link.test.ts[2m > [22m[2mlink model[2m > [22m[2mmigrates cloud.json into link.json
|
|
390
389
|
created seeds/.gitkeep
|
|
391
390
|
created public/.gitkeep
|
|
392
391
|
created .gitignore
|
|
393
392
|
|
|
393
|
+
[90mstderr[2m | tests/link.test.ts[2m > [22m[2mlink model[2m > [22m[2mmigrates cloud.json into link.json
|
|
394
394
|
[22m[39m[supatype] Migrated .supatype/cloud.json → .supatype/link.json (legacy files kept; remove manually when ready).
|
|
395
395
|
|
|
396
|
-
[32m✓[39m tests/link.test.ts [2m([22m[2m4 tests[22m[2m)[22m[33m
|
|
397
|
-
[33m[2m✓[22m[39m resolveTarget returns cloud mode with /api/v1 prefix [33m
|
|
398
|
-
[33m[2m✓[22m[39m resolveTarget returns self-host mode with /platform/v1 prefix [33m
|
|
399
|
-
[33m[2m✓[22m[39m targetSchemaRollback posts to /platform/v1 when linked [33m
|
|
396
|
+
[32m✓[39m tests/link.test.ts [2m([22m[2m4 tests[22m[2m)[22m[33m 3052[2mms[22m[39m
|
|
397
|
+
[33m[2m✓[22m[39m resolveTarget returns cloud mode with /api/v1 prefix [33m 984[2mms[22m[39m
|
|
398
|
+
[33m[2m✓[22m[39m resolveTarget returns self-host mode with /platform/v1 prefix [33m 1012[2mms[22m[39m
|
|
399
|
+
[33m[2m✓[22m[39m targetSchemaRollback posts to /platform/v1 when linked [33m 1043[2mms[22m[39m
|
|
400
400
|
[90mstdout[2m | tests/admin-ensure.test.ts[2m > [22m[2minit admin seed in .env[2m > [22m[2mwrites SUPATYPE_ADMIN_* when scaffold options include credentials
|
|
401
401
|
[22m[39m created package.json
|
|
402
402
|
created supatype.config.ts
|
|
@@ -407,8 +407,8 @@
|
|
|
407
407
|
created public/.gitkeep
|
|
408
408
|
created .gitignore
|
|
409
409
|
|
|
410
|
-
[32m✓[39m tests/admin-ensure.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m
|
|
411
|
-
[32m✓[39m tests/service-role-check.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m
|
|
410
|
+
[32m✓[39m tests/admin-ensure.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m 173[2mms[22m[39m
|
|
411
|
+
[32m✓[39m tests/service-role-check.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m 13[2mms[22m[39m
|
|
412
412
|
[90mstdout[2m | tests/admin-studio-membership.test.ts[2m > [22m[2mfirst admin user creation[2m > [22m[2mdoes not write a role into app_metadata
|
|
413
413
|
[22m[39m[supatype] Admin user "admin@example.com" created (role: admin).
|
|
414
414
|
[supatype] Log in at /admin after starting the dev server.
|
|
@@ -425,55 +425,56 @@
|
|
|
425
425
|
[22m[39m[supatype] Admin user "admin@example.com" created (role: admin).
|
|
426
426
|
[supatype] Log in at /admin after starting the dev server.
|
|
427
427
|
|
|
428
|
-
[32m✓[39m tests/admin-studio-membership.test.ts [2m([22m[2m5 tests[22m[2m)[22m[33m
|
|
429
|
-
[32m✓[39m tests/pull-utils.test.ts [2m([22m[2m49 tests[22m[2m)[22m[32m
|
|
430
|
-
[32m✓[39m tests/schema-sources.test.ts [2m([22m[2m5 tests[22m[2m)[22m[33m
|
|
431
|
-
[33m[2m✓[22m[39m buildSchemaSourcesPayload includes manifest metadata [33m
|
|
432
|
-
[33m[2m✓[22m[39m restore overwrites modified local files [33m
|
|
433
|
-
[32m✓[39m tests/preview-config-check.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m
|
|
434
|
-
[32m✓[39m tests/keys.test.ts [2m([22m[2m11 tests[22m[2m)[22m[33m
|
|
435
|
-
[33m[2m✓[22m[39m exits 0 with --secret [33m
|
|
436
|
-
[33m[2m✓[22m[39m outputs ANON_KEY= line [33m
|
|
437
|
-
[33m[2m✓[22m[39m outputs SERVICE_ROLE_KEY= line [33m
|
|
438
|
-
[33m[2m✓[22m[39m ANON_KEY is a valid three-part JWT [33m
|
|
439
|
-
[33m[2m✓[22m[39m SERVICE_ROLE_KEY payload has role: service_role [33m
|
|
440
|
-
[33m[2m✓[22m[39m JWT has exp in the future [33m
|
|
441
|
-
[33m[2m✓[22m[39m --exp-years changes the expiry window [33m
|
|
442
|
-
[33m[2m✓[22m[39m reads JWT_SECRET from environment variable [33m
|
|
443
|
-
[33m[2m✓[22m[39m reads JWT_SECRET from .env file [33m
|
|
444
|
-
[33m[2m✓[22m[39m exits non-zero when no secret is available [33m
|
|
445
|
-
[33m[2m✓[22m[39m keys --help shows --secret and --exp-years options [33m
|
|
428
|
+
[32m✓[39m tests/admin-studio-membership.test.ts [2m([22m[2m5 tests[22m[2m)[22m[33m 562[2mms[22m[39m
|
|
429
|
+
[32m✓[39m tests/pull-utils.test.ts [2m([22m[2m49 tests[22m[2m)[22m[32m 10[2mms[22m[39m
|
|
430
|
+
[32m✓[39m tests/schema-sources.test.ts [2m([22m[2m5 tests[22m[2m)[22m[33m 1198[2mms[22m[39m
|
|
431
|
+
[33m[2m✓[22m[39m buildSchemaSourcesPayload includes manifest metadata [33m 612[2mms[22m[39m
|
|
432
|
+
[33m[2m✓[22m[39m restore overwrites modified local files [33m 544[2mms[22m[39m
|
|
433
|
+
[32m✓[39m tests/preview-config-check.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
434
|
+
[32m✓[39m tests/keys.test.ts [2m([22m[2m11 tests[22m[2m)[22m[33m 17909[2mms[22m[39m
|
|
435
|
+
[33m[2m✓[22m[39m exits 0 with --secret [33m 1677[2mms[22m[39m
|
|
436
|
+
[33m[2m✓[22m[39m outputs ANON_KEY= line [33m 1546[2mms[22m[39m
|
|
437
|
+
[33m[2m✓[22m[39m outputs SERVICE_ROLE_KEY= line [33m 1372[2mms[22m[39m
|
|
438
|
+
[33m[2m✓[22m[39m ANON_KEY is a valid three-part JWT [33m 1425[2mms[22m[39m
|
|
439
|
+
[33m[2m✓[22m[39m SERVICE_ROLE_KEY payload has role: service_role [33m 1469[2mms[22m[39m
|
|
440
|
+
[33m[2m✓[22m[39m JWT has exp in the future [33m 1628[2mms[22m[39m
|
|
441
|
+
[33m[2m✓[22m[39m --exp-years changes the expiry window [33m 2967[2mms[22m[39m
|
|
442
|
+
[33m[2m✓[22m[39m reads JWT_SECRET from environment variable [33m 1526[2mms[22m[39m
|
|
443
|
+
[33m[2m✓[22m[39m reads JWT_SECRET from .env file [33m 1486[2mms[22m[39m
|
|
444
|
+
[33m[2m✓[22m[39m exits non-zero when no secret is available [33m 1489[2mms[22m[39m
|
|
445
|
+
[33m[2m✓[22m[39m keys --help shows --secret and --exp-years options [33m 1319[2mms[22m[39m
|
|
446
446
|
[90mstderr[2m | tests/binary-cache-cloud-overrides.test.ts[2m > [22m[2misLinkedToCloudProject[2m > [22m[2mis true when .supatype/cloud.json has projectSlug
|
|
447
447
|
[22m[39m[supatype] Migrated .supatype/cloud.json → .supatype/link.json (legacy files kept; remove manually when ready).
|
|
448
448
|
|
|
449
|
-
[32m✓[39m tests/binary-cache-cloud-overrides.test.ts [2m([22m[2m11 tests[22m[2m)[22m[32m
|
|
450
|
-
[32m✓[39m tests/local-server-image-env.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m
|
|
451
|
-
[32m✓[39m tests/
|
|
452
|
-
[32m✓[39m tests/
|
|
453
|
-
[32m✓[39m tests/minisign.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m
|
|
454
|
-
[32m✓[39m tests/client-generator.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m
|
|
455
|
-
[32m✓[39m tests/local-secrets.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m
|
|
456
|
-
[32m✓[39m tests/functions-concurrency.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m
|
|
457
|
-
[32m✓[39m tests/readiness-poll.test.ts [2m([22m[2m3 tests[22m[2m)[22m[33m
|
|
458
|
-
[33m[2m✓[22m[39m ends promptly when it carries a deadline [33m
|
|
459
|
-
[32m✓[39m tests/ast-derived-outputs.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m
|
|
460
|
-
[32m✓[39m tests/
|
|
461
|
-
[32m✓[39m tests/
|
|
462
|
-
[32m✓[39m tests/
|
|
463
|
-
[32m✓[39m tests/
|
|
449
|
+
[32m✓[39m tests/binary-cache-cloud-overrides.test.ts [2m([22m[2m11 tests[22m[2m)[22m[32m 16[2mms[22m[39m
|
|
450
|
+
[32m✓[39m tests/local-server-image-env.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 15[2mms[22m[39m
|
|
451
|
+
[32m✓[39m tests/model-cache-manifest.test.ts [2m([22m[2m12 tests[22m[2m)[22m[32m 8[2mms[22m[39m
|
|
452
|
+
[32m✓[39m tests/homebrew-formula.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 191[2mms[22m[39m
|
|
453
|
+
[32m✓[39m tests/minisign.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 14[2mms[22m[39m
|
|
454
|
+
[32m✓[39m tests/client-generator.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 10[2mms[22m[39m
|
|
455
|
+
[32m✓[39m tests/local-secrets.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 13[2mms[22m[39m
|
|
456
|
+
[32m✓[39m tests/functions-concurrency.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
457
|
+
[32m✓[39m tests/readiness-poll.test.ts [2m([22m[2m3 tests[22m[2m)[22m[33m 325[2mms[22m[39m
|
|
458
|
+
[33m[2m✓[22m[39m ends promptly when it carries a deadline [33m 320[2mms[22m[39m
|
|
459
|
+
[32m✓[39m tests/ast-derived-outputs.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 14[2mms[22m[39m
|
|
460
|
+
[32m✓[39m tests/functions-context-refresh.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
461
|
+
[32m✓[39m tests/self-host-keys.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 11[2mms[22m[39m
|
|
462
|
+
[32m✓[39m tests/gitignore-secrets.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 102[2mms[22m[39m
|
|
463
|
+
[32m✓[39m tests/api-schemas.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m 9[2mms[22m[39m
|
|
464
464
|
[90mstdout[2m | tests/storage-provision.test.ts[2m > [22m[2mprovisionBuckets[2m > [22m[2mPOSTs each bucket to the storage API
|
|
465
465
|
[22m[39m[supatype] Storage bucket "photos" ready.
|
|
466
466
|
|
|
467
467
|
[90mstdout[2m | tests/storage-provision.test.ts[2m > [22m[2mprovisionBuckets[2m > [22m[2mPOSTs each bucket to the storage API
|
|
468
468
|
[22m[39m[supatype] Storage bucket "avatars" ready.
|
|
469
469
|
|
|
470
|
-
[32m✓[39m tests/storage-provision.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m
|
|
471
|
-
[32m✓[39m tests/strict.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m
|
|
472
|
-
[32m✓[39m tests/cached-artifact-format.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m
|
|
470
|
+
[32m✓[39m tests/storage-provision.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 13[2mms[22m[39m
|
|
471
|
+
[32m✓[39m tests/strict.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 8[2mms[22m[39m
|
|
472
|
+
[32m✓[39m tests/cached-artifact-format.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 13[2mms[22m[39m
|
|
473
|
+
[32m✓[39m tests/db-published-and-addressable.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
473
474
|
[32m✓[39m tests/cache-identity-scope.test.ts [2m([22m[2m33 tests[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
474
|
-
[32m✓[39m tests/target-client-refresh.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m
|
|
475
|
-
[32m✓[39m tests/studio-admin-roles.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m
|
|
476
|
-
[32m✓[39m tests/proxy-dev-app.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m
|
|
475
|
+
[32m✓[39m tests/target-client-refresh.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 11[2mms[22m[39m
|
|
476
|
+
[32m✓[39m tests/studio-admin-roles.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 8[2mms[22m[39m
|
|
477
|
+
[32m✓[39m tests/proxy-dev-app.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
477
478
|
[90mstdout[2m | tests/app-command.test.ts[2m > [22m[2msupatype app add --static[2m > [22m[2msets app.mode=static and static_dir in supatype.config.ts
|
|
478
479
|
[22m[39m created package.json
|
|
479
480
|
created supatype.config.ts
|
|
@@ -494,79 +495,79 @@
|
|
|
494
495
|
created public/.gitkeep
|
|
495
496
|
created .gitignore
|
|
496
497
|
|
|
497
|
-
[32m✓[39m tests/service-role-routes.test.ts [2m([22m[2m4 tests[22m[2m)[22m[33m
|
|
498
|
-
[33m[2m✓[22m[39m reads the declared list [33m
|
|
499
|
-
[33m[2m✓[22m[39m is an empty list when a project declares none [33m
|
|
500
|
-
[33m[2m✓[22m[39m sends what the project declared, hook entries included [33m
|
|
501
|
-
[32m✓[39m tests/cli-help.test.ts [2m([22m[2m16 tests[22m[2m)[22m[33m
|
|
502
|
-
[33m[2m✓[22m[39m --help lists all top-level commands [33m
|
|
503
|
-
[33m[2m✓[22m[39m --version prints package.json version [33m
|
|
504
|
-
[33m[2m✓[22m[39m self-update --help describes the command [33m
|
|
505
|
-
[33m[2m✓[22m[39m init --help describes the init command [33m
|
|
506
|
-
[33m[2m✓[22m[39m push --help describes the push command and --yes flag [33m
|
|
507
|
-
[33m[2m✓[22m[39m diff --help describes the diff command [33m
|
|
508
|
-
[33m[2m✓[22m[39m pull --help describes scaffold pull command [33m
|
|
509
|
-
[33m[2m✓[22m[39m doctor --help describes drift report command [33m
|
|
510
|
-
[33m[2m✓[22m[39m introspect --help describes database introspection command [33m
|
|
511
|
-
[33m[2m✓[22m[39m adopt --help describes adoption ceremony command [33m
|
|
512
|
-
[33m[2m✓[22m[39m reset --help shows --yes flag [33m
|
|
513
|
-
[33m[2m✓[22m[39m app --help describes the app command with add/remove subcommands [33m
|
|
514
|
-
[33m[2m✓[22m[39m app add --help shows --static and --port options [33m
|
|
515
|
-
[33m[2m✓[22m[39m self-host --help shows compose only (legacy commands hidden) [33m
|
|
516
|
-
[33m[2m✓[22m[39m self-host compose --help shows compose subcommands [33m
|
|
517
|
-
[33m[2m✓[22m[39m unknown command exits non-zero [33m
|
|
518
|
-
[32m✓[39m tests/
|
|
519
|
-
[32m✓[39m tests/
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
498
|
+
[32m✓[39m tests/service-role-routes.test.ts [2m([22m[2m4 tests[22m[2m)[22m[33m 1658[2mms[22m[39m
|
|
499
|
+
[33m[2m✓[22m[39m reads the declared list [33m 538[2mms[22m[39m
|
|
500
|
+
[33m[2m✓[22m[39m is an empty list when a project declares none [33m 532[2mms[22m[39m
|
|
501
|
+
[33m[2m✓[22m[39m sends what the project declared, hook entries included [33m 584[2mms[22m[39m
|
|
502
|
+
[32m✓[39m tests/cli-help.test.ts [2m([22m[2m16 tests[22m[2m)[22m[33m 23281[2mms[22m[39m
|
|
503
|
+
[33m[2m✓[22m[39m --help lists all top-level commands [33m 1493[2mms[22m[39m
|
|
504
|
+
[33m[2m✓[22m[39m --version prints package.json version [33m 1517[2mms[22m[39m
|
|
505
|
+
[33m[2m✓[22m[39m self-update --help describes the command [33m 1364[2mms[22m[39m
|
|
506
|
+
[33m[2m✓[22m[39m init --help describes the init command [33m 1405[2mms[22m[39m
|
|
507
|
+
[33m[2m✓[22m[39m push --help describes the push command and --yes flag [33m 1538[2mms[22m[39m
|
|
508
|
+
[33m[2m✓[22m[39m diff --help describes the diff command [33m 1459[2mms[22m[39m
|
|
509
|
+
[33m[2m✓[22m[39m pull --help describes scaffold pull command [33m 1423[2mms[22m[39m
|
|
510
|
+
[33m[2m✓[22m[39m doctor --help describes drift report command [33m 1526[2mms[22m[39m
|
|
511
|
+
[33m[2m✓[22m[39m introspect --help describes database introspection command [33m 1444[2mms[22m[39m
|
|
512
|
+
[33m[2m✓[22m[39m adopt --help describes adoption ceremony command [33m 1508[2mms[22m[39m
|
|
513
|
+
[33m[2m✓[22m[39m reset --help shows --yes flag [33m 1447[2mms[22m[39m
|
|
514
|
+
[33m[2m✓[22m[39m app --help describes the app command with add/remove subcommands [33m 1249[2mms[22m[39m
|
|
515
|
+
[33m[2m✓[22m[39m app add --help shows --static and --port options [33m 1475[2mms[22m[39m
|
|
516
|
+
[33m[2m✓[22m[39m self-host --help shows compose only (legacy commands hidden) [33m 1394[2mms[22m[39m
|
|
517
|
+
[33m[2m✓[22m[39m self-host compose --help shows compose subcommands [33m 1455[2mms[22m[39m
|
|
518
|
+
[33m[2m✓[22m[39m unknown command exits non-zero [33m 1574[2mms[22m[39m
|
|
519
|
+
[32m✓[39m tests/rest-cache-admin.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 42[2mms[22m[39m
|
|
520
|
+
[32m✓[39m tests/init-dependency-versions.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 38[2mms[22m[39m
|
|
521
|
+
[32m✓[39m tests/compose-parsable-defaults.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 8[2mms[22m[39m
|
|
522
|
+
[32m✓[39m tests/app-command.test.ts [2m([22m[2m2 tests[22m[2m)[22m[33m 3178[2mms[22m[39m
|
|
523
|
+
[33m[2m✓[22m[39m sets app.mode=static and static_dir in supatype.config.ts [33m 1650[2mms[22m[39m
|
|
524
|
+
[33m[2m✓[22m[39m creates the static directory when missing [33m 1526[2mms[22m[39m
|
|
524
525
|
[32m✓[39m tests/engine-push-output.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
525
|
-
[32m✓[39m tests/type-resolver.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m
|
|
526
|
-
[32m✓[39m tests/command-chrome-wrap.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m
|
|
526
|
+
[32m✓[39m tests/type-resolver.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 16[2mms[22m[39m
|
|
527
|
+
[32m✓[39m tests/command-chrome-wrap.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
527
528
|
[32m✓[39m tests/cli-install-method.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 8[2mms[22m[39m
|
|
528
|
-
[32m✓[39m tests/port-in-use.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m
|
|
529
|
-
[32m✓[39m tests/doctor-render.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m
|
|
530
|
-
[32m✓[39m tests/archive-name-alias.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m
|
|
531
|
-
[32m✓[39m tests/
|
|
532
|
-
[32m✓[39m tests/
|
|
533
|
-
[32m✓[39m tests/tsx-runner.test.ts [2m([22m[2m7 tests[22m[2m)[22m[33m
|
|
534
|
-
[33m[2m✓[22m[39m evaluates a simple expression and returns stdout [33m
|
|
535
|
-
[33m[2m✓[22m[39m evaluates TypeScript syntax (type annotations) [33m
|
|
536
|
-
[33m[2m✓[22m[39m can serialize a JSON object to stdout [33m
|
|
537
|
-
[33m[2m✓[22m[39m returns non-zero exit code on syntax error [33m
|
|
538
|
-
[33m[2m✓[22m[39m returns non-zero exit code on runtime error [33m
|
|
539
|
-
[33m[2m✓[22m[39m captures stderr separately from stdout [33m
|
|
540
|
-
[33m[2m✓[22m[39m runs a .ts file and returns its stdout [33m
|
|
541
|
-
[32m✓[39m tests/doctor-service-role.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m
|
|
542
|
-
[32m✓[39m tests/required-host-components.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m
|
|
543
|
-
[32m✓[39m tests/ui-messages.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m
|
|
544
|
-
[32m✓[39m tests/
|
|
545
|
-
[32m✓[39m tests/
|
|
529
|
+
[32m✓[39m tests/port-in-use.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 29[2mms[22m[39m
|
|
530
|
+
[32m✓[39m tests/doctor-render.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
531
|
+
[32m✓[39m tests/archive-name-alias.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
532
|
+
[32m✓[39m tests/init-project-detect.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
533
|
+
[32m✓[39m tests/ensure-binary.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 9[2mms[22m[39m
|
|
534
|
+
[32m✓[39m tests/tsx-runner.test.ts [2m([22m[2m7 tests[22m[2m)[22m[33m 2963[2mms[22m[39m
|
|
535
|
+
[33m[2m✓[22m[39m evaluates a simple expression and returns stdout [33m 368[2mms[22m[39m
|
|
536
|
+
[33m[2m✓[22m[39m evaluates TypeScript syntax (type annotations) [33m 445[2mms[22m[39m
|
|
537
|
+
[33m[2m✓[22m[39m can serialize a JSON object to stdout [33m 372[2mms[22m[39m
|
|
538
|
+
[33m[2m✓[22m[39m returns non-zero exit code on syntax error [33m 402[2mms[22m[39m
|
|
539
|
+
[33m[2m✓[22m[39m returns non-zero exit code on runtime error [33m 411[2mms[22m[39m
|
|
540
|
+
[33m[2m✓[22m[39m captures stderr separately from stdout [33m 403[2mms[22m[39m
|
|
541
|
+
[33m[2m✓[22m[39m runs a .ts file and returns its stdout [33m 554[2mms[22m[39m
|
|
542
|
+
[32m✓[39m tests/doctor-service-role.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
543
|
+
[32m✓[39m tests/required-host-components.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
544
|
+
[32m✓[39m tests/ui-messages.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
545
|
+
[32m✓[39m tests/dev-ports-owner.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 8[2mms[22m[39m
|
|
546
|
+
[32m✓[39m tests/normalize-admin-config.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 8[2mms[22m[39m
|
|
546
547
|
[32m✓[39m tests/ui-confirm.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 9[2mms[22m[39m
|
|
547
|
-
[32m✓[39m tests/docker-postgres.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m
|
|
548
|
-
[32m✓[39m tests/binary-download-lock.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m
|
|
549
|
-
[32m✓[39m tests/dev-session-lock.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m
|
|
550
|
-
[32m✓[39m tests/config-load-failure.test.ts [2m([22m[2m2 tests[22m[2m)[22m[33m 3614[2mms[22m[39m
|
|
551
|
-
[33m[2m✓[22m[39m is reported, rather than treated as absent [33m 2066[2mms[22m[39m
|
|
552
|
-
[33m[2m✓[22m[39m does not stop the CLI working with no config at all [33m 1545[2mms[22m[39m
|
|
553
|
-
[32m✓[39m tests/route-manifest.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
548
|
+
[32m✓[39m tests/docker-postgres.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
549
|
+
[32m✓[39m tests/binary-download-lock.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
550
|
+
[32m✓[39m tests/dev-session-lock.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
554
551
|
[32m✓[39m tests/dev-ports.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
555
|
-
[32m✓[39m tests/
|
|
556
|
-
|
|
552
|
+
[32m✓[39m tests/config-load-failure.test.ts [2m([22m[2m2 tests[22m[2m)[22m[33m 3819[2mms[22m[39m
|
|
553
|
+
[33m[2m✓[22m[39m is reported, rather than treated as absent [33m 2219[2mms[22m[39m
|
|
554
|
+
[33m[2m✓[22m[39m does not stop the CLI working with no config at all [33m 1597[2mms[22m[39m
|
|
555
|
+
[32m✓[39m tests/route-manifest.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
557
556
|
[32m✓[39m tests/dev-ready-panel.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
558
|
-
[32m✓[39m tests/
|
|
557
|
+
[32m✓[39m tests/realtime-launch.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
558
|
+
[32m✓[39m tests/release-pins.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
559
|
+
[32m✓[39m tests/ensure-dev-api-config.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
559
560
|
[32m✓[39m tests/seed-discover.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 19[2mms[22m[39m
|
|
560
561
|
[32m✓[39m tests/init-package-json.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
561
|
-
[32m✓[39m tests/pg-spawn-env.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m
|
|
562
|
+
[32m✓[39m tests/pg-spawn-env.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
562
563
|
[32m✓[39m tests/resolve-api-url.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
563
|
-
[32m✓[39m tests/migrate-from-v1.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m
|
|
564
|
+
[32m✓[39m tests/migrate-from-v1.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 17[2mms[22m[39m
|
|
564
565
|
[32m✓[39m tests/cli-package-version.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
565
|
-
[32m✓[39m tests/postgres-archive-tag.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m
|
|
566
|
+
[32m✓[39m tests/postgres-archive-tag.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
566
567
|
[32m✓[39m tests/stdin-after-ink.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
567
568
|
|
|
568
|
-
[2m Test Files [22m [1m[
|
|
569
|
-
[2m Tests [22m [1m[
|
|
570
|
-
[2m Start at [22m
|
|
571
|
-
[2m Duration [22m
|
|
569
|
+
[2m Test Files [22m [1m[32m104 passed[39m[22m[90m (104)[39m
|
|
570
|
+
[2m Tests [22m [1m[32m1116 passed[39m[22m[90m (1116)[39m
|
|
571
|
+
[2m Start at [22m 07:44:24
|
|
572
|
+
[2m Duration [22m 54.40s[2m (transform 8.08s, setup 0ms, import 55.68s, tests 85.10s, environment 24ms)[22m
|
|
572
573
|
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
// Annotated `string`, not left to inference: once a release stamps a value here, the
|
|
10
10
|
// inferred literal type makes the `!== ""` test in cliPackageVersion() a compile error
|
|
11
11
|
// (TS2367, no overlap), so the build would only fail during a release.
|
|
12
|
-
export const EMBEDDED_CLI_VERSION = "0.3.
|
|
12
|
+
export const EMBEDDED_CLI_VERSION = "0.3.4";
|
|
13
13
|
//# sourceMappingURL=cli-version-embedded.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-compose.d.ts","sourceRoot":"","sources":["../src/dev-compose.ts"],"names":[],"mappings":"AAAA;;GAEG;AAWH,OAAO,EAQL,KAAK,qBAAqB,EAC3B,MAAM,qBAAqB,CAAA;AAc5B,OAAO,
|
|
1
|
+
{"version":3,"file":"dev-compose.d.ts","sourceRoot":"","sources":["../src/dev-compose.ts"],"names":[],"mappings":"AAAA;;GAEG;AAWH,OAAO,EAQL,KAAK,qBAAqB,EAC3B,MAAM,qBAAqB,CAAA;AAc5B,OAAO,EAUL,KAAK,oBAAoB,EAC1B,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAQ7D,OAAO,EAA+B,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAA;AA4BjF,iFAAiF;AACjF,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB,GAAG,IAAI,CASrF;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,OAAO,CAAA;CACf;AAED,kEAAkE;AAClE,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAIhD;AA+BD;;;GAGG;AACH,wBAAsB,oCAAoC,CACxD,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,qBAAqB,EAC7B,KAAK,CAAC,EAAE,kBAAkB,GACzB,OAAO,CAAC,IAAI,CAAC,CAuBf;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,qBAAqB,EAC7B,kBAAkB,CAAC,EAAE,MAAM,GAC1B,OAAO,CAOT;AAED;;;;GAIG;AACH,wBAAsB,4BAA4B,CAChD,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,qBAAqB,EAC7B,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,MAAM,CAAC,CAQjB;AAoED,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,qBAAqB,EAC7B,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,MAAM,EAChB,SAAS,CAAC,EAAE,MAAM,GACjB,IAAI,CAiFN;AAwlBD;;;;GAIG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,UAAU,CAAC,CA+DtG;AAED;;;;GAIG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CA8ChG;AAED,wBAAsB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB,EAAE,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAsRtH;AA+ID;;;;;;;;;;GAUG;AACH,wBAAsB,wBAAwB,CAC5C,KAAK,EAAE,oBAAoB,EAC3B,GAAG,EAAE,MAAM,EACX,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,qBAAqB,EAC7B,GAAG,EAAE,OAAO,EACZ,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,OAAO,CAAC,CAwClB"}
|
package/dist/dev-compose.js
CHANGED
|
@@ -24,7 +24,7 @@ import { cacheSeedingNotes } from "./api-config-cache.js";
|
|
|
24
24
|
import { refreshFunctionsContext } from "./functions-context-refresh.js";
|
|
25
25
|
import { DB_PORT_ENV, syncDatabaseUrlPort } from "./db-port.js";
|
|
26
26
|
import { degraded } from "./strict.js";
|
|
27
|
-
import { COMPOSE_PINNED_IMAGE_ENV_KEYS, composeDockerImageEnv, composeProjectName, exitComposeFailed, runDockerCompose, schemaEngineImageForPush, writeSelfHostCompose, selfHostComposePaths, } from "./self-host-compose.js";
|
|
27
|
+
import { COMPOSE_PINNED_IMAGE_ENV_KEYS, composeDockerImageEnv, composeProjectName, exitComposeFailed, publishesDbToHost, runDockerCompose, schemaEngineImageForPush, writeSelfHostCompose, selfHostComposePaths, } from "./self-host-compose.js";
|
|
28
28
|
import { hasEngineOverride } from "./binary-cache.js";
|
|
29
29
|
import { STUDIO_DEV_PORT, startStudioViteDevServer } from "./studio-dev-server.js";
|
|
30
30
|
import { ensureLocalServerDockerImage, usesLocalServerImage, LOCAL_SERVER_DOCKER_IMAGE, } from "./compose-local-server-image.js";
|
|
@@ -94,9 +94,9 @@ export async function ensureDockerDbPublishedForHostEngine(cwd, config, brand) {
|
|
|
94
94
|
if (resolveRuntimeProvider(config) !== "docker") {
|
|
95
95
|
throw new Error("ensureDockerDbPublishedForHostEngine requires provider: docker");
|
|
96
96
|
}
|
|
97
|
-
if (!
|
|
98
|
-
throw new Error("
|
|
99
|
-
"
|
|
97
|
+
if (!publishesDbToHost(config)) {
|
|
98
|
+
throw new Error("This project uses an external database, so there is no Docker Postgres to publish. " +
|
|
99
|
+
"Point DATABASE_URL at it, or pass --connection.");
|
|
100
100
|
}
|
|
101
101
|
const project = composeProjectName(config.project.name);
|
|
102
102
|
const kongPort = await resolveKongPort(cwd, project);
|
|
@@ -824,9 +824,10 @@ export async function pushSchemaDocker(cwd, config) {
|
|
|
824
824
|
// No dev db port for an external database: `ensureDevDbPort` allocates a host port for the `db`
|
|
825
825
|
// container *and persists a matching DATABASE_URL*, which overwrote the operator's own URL, the
|
|
826
826
|
// one the whole stack and every CLI command reads.
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
827
|
+
// Whatever compose publishes, `DATABASE_URL` has to point at. Gating this on
|
|
828
|
+
// `overrides.engine` while the compose file published unconditionally is what left a project
|
|
829
|
+
// with a database on 54329 and a URL still saying 5432.
|
|
830
|
+
const devDbPort = publishesDbToHost(config) ? await resolveDevDbPort(cwd) : undefined;
|
|
830
831
|
const now = Math.floor(Date.now() / 1000);
|
|
831
832
|
const jwtBase = { iss: "supatype", iat: now, exp: now + 315_360_000 };
|
|
832
833
|
const anonKey = signJwt({ ...jwtBase, role: "anon" }, devJwtSecret(cwd));
|
|
@@ -865,9 +866,10 @@ export async function runDevCompose(cwd, config, opts) {
|
|
|
865
866
|
// No dev db port for an external database: `ensureDevDbPort` allocates a host port for the `db`
|
|
866
867
|
// container *and persists a matching DATABASE_URL*, which overwrote the operator's own URL, the
|
|
867
868
|
// one the whole stack and every CLI command reads.
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
869
|
+
// Whatever compose publishes, `DATABASE_URL` has to point at. Gating this on
|
|
870
|
+
// `overrides.engine` while the compose file published unconditionally is what left a project
|
|
871
|
+
// with a database on 54329 and a URL still saying 5432.
|
|
872
|
+
const devDbPort = publishesDbToHost(config) ? await resolveDevDbPort(cwd) : undefined;
|
|
871
873
|
const now = Math.floor(Date.now() / 1000);
|
|
872
874
|
const jwtBase = { iss: "supatype", iat: now, exp: now + 315_360_000 };
|
|
873
875
|
const anonKey = signJwt({ ...jwtBase, role: "anon" }, devJwtSecret(cwd));
|