@supatype/cli 0.3.1 โ†’ 0.3.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.
Files changed (99) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/.turbo/turbo-test.log +169 -161
  3. package/.turbo/turbo-typecheck.log +1 -1
  4. package/dist/api-config-cache.d.ts +20 -0
  5. package/dist/api-config-cache.d.ts.map +1 -1
  6. package/dist/api-config-cache.js +27 -0
  7. package/dist/api-config-cache.js.map +1 -1
  8. package/dist/augmentation-generator.d.ts.map +1 -1
  9. package/dist/augmentation-generator.js +63 -18
  10. package/dist/augmentation-generator.js.map +1 -1
  11. package/dist/cli-version-embedded.js +1 -1
  12. package/dist/client-generator.d.ts +3 -0
  13. package/dist/client-generator.d.ts.map +1 -0
  14. package/dist/client-generator.js +108 -0
  15. package/dist/client-generator.js.map +1 -0
  16. package/dist/commands/functions.d.ts.map +1 -1
  17. package/dist/commands/functions.js +2 -2
  18. package/dist/commands/functions.js.map +1 -1
  19. package/dist/commands/init.d.ts.map +1 -1
  20. package/dist/commands/init.js +7 -10
  21. package/dist/commands/init.js.map +1 -1
  22. package/dist/commands/push.d.ts.map +1 -1
  23. package/dist/commands/push.js +14 -13
  24. package/dist/commands/push.js.map +1 -1
  25. package/dist/commands/update.d.ts.map +1 -1
  26. package/dist/commands/update.js +19 -1
  27. package/dist/commands/update.js.map +1 -1
  28. package/dist/db-port.d.ts +36 -0
  29. package/dist/db-port.d.ts.map +1 -0
  30. package/dist/db-port.js +90 -0
  31. package/dist/db-port.js.map +1 -0
  32. package/dist/dev-compose.d.ts.map +1 -1
  33. package/dist/dev-compose.js +108 -13
  34. package/dist/dev-compose.js.map +1 -1
  35. package/dist/functions-context-refresh.d.ts +4 -0
  36. package/dist/functions-context-refresh.d.ts.map +1 -0
  37. package/dist/functions-context-refresh.js +26 -0
  38. package/dist/functions-context-refresh.js.map +1 -0
  39. package/dist/functions-deno-types.d.ts +9 -0
  40. package/dist/functions-deno-types.d.ts.map +1 -1
  41. package/dist/functions-deno-types.js +21 -1
  42. package/dist/functions-deno-types.js.map +1 -1
  43. package/dist/gitignore.d.ts +3 -1
  44. package/dist/gitignore.d.ts.map +1 -1
  45. package/dist/gitignore.js +28 -6
  46. package/dist/gitignore.js.map +1 -1
  47. package/dist/schema-ast-v2.d.ts.map +1 -1
  48. package/dist/schema-ast-v2.js +17 -8
  49. package/dist/schema-ast-v2.js.map +1 -1
  50. package/dist/self-host-compose.d.ts +10 -2
  51. package/dist/self-host-compose.d.ts.map +1 -1
  52. package/dist/self-host-compose.js +67 -6
  53. package/dist/self-host-compose.js.map +1 -1
  54. package/dist/strict.d.ts +29 -0
  55. package/dist/strict.d.ts.map +1 -0
  56. package/dist/strict.js +37 -0
  57. package/dist/strict.js.map +1 -0
  58. package/dist/studio-dev-server.d.ts +12 -2
  59. package/dist/studio-dev-server.d.ts.map +1 -1
  60. package/dist/studio-dev-server.js +12 -2
  61. package/dist/studio-dev-server.js.map +1 -1
  62. package/dist/type-extractor.d.ts.map +1 -1
  63. package/dist/type-extractor.js +8 -2
  64. package/dist/type-extractor.js.map +1 -1
  65. package/dist/type-generation.d.ts +14 -0
  66. package/dist/type-generation.d.ts.map +1 -1
  67. package/dist/type-generation.js +41 -2
  68. package/dist/type-generation.js.map +1 -1
  69. package/package.json +2 -2
  70. package/src/api-config-cache.ts +30 -0
  71. package/src/augmentation-generator.ts +75 -18
  72. package/src/cli-version-embedded.ts +1 -1
  73. package/src/client-generator.ts +122 -0
  74. package/src/commands/functions.ts +5 -2
  75. package/src/commands/init.ts +10 -10
  76. package/src/commands/push.ts +14 -15
  77. package/src/commands/update.ts +20 -1
  78. package/src/db-port.ts +99 -0
  79. package/src/dev-compose.ts +116 -16
  80. package/src/functions-context-refresh.ts +25 -0
  81. package/src/functions-deno-types.ts +24 -1
  82. package/src/gitignore.ts +31 -10
  83. package/src/schema-ast-v2.ts +17 -8
  84. package/src/self-host-compose.ts +68 -6
  85. package/src/strict.ts +40 -0
  86. package/src/studio-dev-server.ts +12 -2
  87. package/src/type-extractor.ts +8 -2
  88. package/src/type-generation.ts +47 -2
  89. package/tests/ast-derived-outputs.test.ts +92 -0
  90. package/tests/augmentation-generator.test.ts +127 -1
  91. package/tests/client-generator.test.ts +103 -0
  92. package/tests/db-port.test.ts +128 -0
  93. package/tests/external-database-compose.test.ts +8 -1
  94. package/tests/functions-context-refresh.test.ts +86 -0
  95. package/tests/gitignore-secrets.test.ts +90 -0
  96. package/tests/runtime-contract.test.ts +115 -2
  97. package/tests/strict.test.ts +78 -0
  98. package/tests/type-extractor.test.ts +34 -0
  99. package/tsconfig.tsbuildinfo +1 -1
@@ -1,4 +1,4 @@
1
1
 
2
- > @supatype/cli@0.3.1 build /home/runner/work/supatype/supatype/packages/cli
2
+ > @supatype/cli@0.3.2 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,14 +1,14 @@
1
1
 
2
- > @supatype/cli@0.3.1 test /home/runner/work/supatype/supatype/packages/cli
2
+ > @supatype/cli@0.3.2 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/type-extractor.test.ts (48 tests) 296ms
9
- โœ“ tests/access-composition.test.ts (26 tests) 223ms
10
- โœ“ tests/model-hooks.test.ts (23 tests) 85ms
11
- โœ“ tests/runtime-contract.test.ts (57 tests) 136ms
8
+ โœ“ tests/access-composition.test.ts (26 tests) 265ms
9
+ โœ“ tests/type-extractor.test.ts (49 tests) 459ms
10
+ โœ“ tests/model-hooks.test.ts (23 tests) 178ms
11
+ โœ“ tests/runtime-contract.test.ts (62 tests) 309ms
12
12
  stdout | tests/init.test.ts > scaffold() > creates all expected files
13
13
   created package.json
14
14
  created supatype.config.ts
@@ -323,21 +323,22 @@
323
323
  created public/.gitkeep
324
324
  created .gitignore
325
325
 
326
- โœ“ tests/init.test.ts (28 tests) 178ms
327
- โœ“ tests/external-database-compose.test.ts (23 tests) 10ms
328
- โœ“ tests/model-constraints.test.ts (18 tests) 146ms
329
- โœ“ tests/model-versions.test.ts (19 tests) 68ms
330
- โœ“ tests/api-config-cache-seed.test.ts (15 tests) 33ms
331
- โœ“ tests/model-cache-declaration.test.ts (18 tests) 83ms
332
- โœ“ tests/field-masking-tier.test.ts (16 tests) 24ms
326
+ โœ“ tests/init.test.ts (28 tests) 173ms
327
+ โœ“ tests/external-database-compose.test.ts (23 tests) 16ms
328
+ โœ“ tests/augmentation-generator.test.ts (16 tests) 30ms
329
+ โœ“ tests/model-constraints.test.ts (18 tests) 243ms
330
+ โœ“ tests/model-versions.test.ts (19 tests) 106ms
331
+ โœ“ tests/api-config-cache-seed.test.ts (15 tests) 42ms
332
+ โœ“ tests/model-cache-declaration.test.ts (18 tests) 115ms
333
+ โœ“ tests/field-masking-tier.test.ts (16 tests) 39ms
333
334
 
334
- โœ“ tests/dev-ui.test.ts (21 tests) 92ms
335
+ โœ“ tests/dev-ui.test.ts (21 tests) 130ms
335
336
 
336
337
  [supatype] Shutting downโ€ฆ
337
- โœ“ tests/hooks-generator.test.ts (7 tests) 6819ms
338
- โœ“ typechecks under strict mode, together with a handler that uses it  2673ms
339
- โœ“ rejects a handler for a table that declares no hook  2226ms
340
- โœ“ typechecks with a validator written the way the docs will show it  1871ms
338
+ โœ“ tests/hooks-generator.test.ts (7 tests) 10509ms
339
+ โœ“ typechecks under strict mode, together with a handler that uses it  3729ms
340
+ โœ“ rejects a handler for a table that declares no hook  3791ms
341
+ โœ“ typechecks with a validator written the way the docs will show it  2921ms
341
342
  stdout | tests/docker-runtime.test.ts > requireDockerDaemon > exits when the daemon is unavailable
342
343
  
343
344
  Start the Docker daemon (e.g. sudo systemctl start docker), then try again.
@@ -346,42 +347,40 @@
346
347
 
347
348
  docker: daemon down
348
349
 
349
- โœ“ tests/docker-runtime.test.ts (10 tests) 14ms
350
- โœ“ tests/config.test.ts (19 tests) 6870ms
351
- โœ“ loads a valid supatype.config.ts (plain export default, no package imports)  881ms
352
- โœ“ normalizes shorthand schema string to { path, pg_schema }  904ms
353
- โœ“ loads a supatype.config.js (plain ESM)  821ms
354
- โœ“ loads config without a versions section (latest by default)  791ms
355
- โœ“ prefers supatype.config.ts over supatype.config.js when both exist  679ms
356
- โœ“ supports optional output field in config  728ms
357
- โœ“ merges supatype.local.config.ts over base  1156ms
358
- โœ“ loads defineConfig import before @supatype/cli is installed (init scaffold)  898ms
359
- โœ“ tests/db-preflight.test.ts (14 tests) 7ms
360
- โœ“ tests/keys-write.test.ts (11 tests) 13ms
361
- โœ“ tests/field-bounds.test.ts (23 tests) 9ms
362
- โœ“ tests/cache-clean.test.ts (8 tests) 1641ms
363
- โœ“ keeps pinned versions and removes the rest  545ms
364
- โœ“ --force removes pinned versions  543ms
365
- โœ“ explicit version removes even when pinned (with warning)  525ms
366
- โœ“ tests/functions-deno-types.test.ts (7 tests) 2130ms
367
- โœ“ tsc fails with Cannot find name Deno without ambient types  1467ms
368
- โœ“ tsc passes for Deno.env after ensureFunctionsDenoTypes  648ms
369
- โœ“ tests/cache-provider-config.test.ts (12 tests) 10ms
370
- โœ“ tests/field-bounds-matrix.test.ts (124 tests) 21ms
371
- โœ“ tests/engine-floor.test.ts (17 tests) 11ms
372
- โœ“ tests/external-database-config.test.ts (14 tests) 8ms
373
- โœ“ tests/compose-services.test.ts (12 tests) 9ms
374
- โœ“ tests/field-validators.test.ts (10 tests) 45ms
375
- โœ“ tests/native-keyspace.test.ts (10 tests) 29ms
376
- โœ“ tests/command-chrome-coverage.test.ts (1 test) 17ms
377
- โœ“ tests/hook-upload.test.ts (8 tests) 10ms
378
- โœ“ tests/env-file.test.ts (9 tests) 12ms
350
+ โœ“ tests/docker-runtime.test.ts (10 tests) 16ms
351
+ โœ“ tests/config.test.ts (19 tests) 10463ms
352
+ โœ“ loads a valid supatype.config.ts (plain export default, no package imports)  1328ms
353
+ โœ“ normalizes shorthand schema string to { path, pg_schema }  1353ms
354
+ โœ“ loads a supatype.config.js (plain ESM)  1161ms
355
+ โœ“ loads config without a versions section (latest by default)  1543ms
356
+ โœ“ prefers supatype.config.ts over supatype.config.js when both exist  1011ms
357
+ โœ“ supports optional output field in config  1040ms
358
+ โœ“ merges supatype.local.config.ts over base  1764ms
359
+ โœ“ loads defineConfig import before @supatype/cli is installed (init scaffold)  1229ms
360
+ โœ“ tests/db-preflight.test.ts (14 tests) 10ms
361
+ โœ“ tests/keys-write.test.ts (11 tests) 21ms
362
+ โœ“ tests/field-bounds.test.ts (23 tests) 12ms
363
+ โœ“ tests/cache-clean.test.ts (8 tests) 2210ms
364
+ โœ“ keeps pinned versions and removes the rest  671ms
365
+ โœ“ --force removes pinned versions  762ms
366
+ โœ“ explicit version removes even when pinned (with warning)  741ms
367
+ โœ“ tests/cache-provider-config.test.ts (12 tests) 8ms
368
+ โœ“ tests/functions-deno-types.test.ts (7 tests) 3188ms
369
+ โœ“ tsc fails with Cannot find name Deno without ambient types  2269ms
370
+ โœ“ tsc passes for Deno.env after ensureFunctionsDenoTypes  899ms
371
+ โœ“ tests/field-bounds-matrix.test.ts (124 tests) 33ms
372
+ โœ“ tests/engine-floor.test.ts (17 tests) 14ms
373
+ โœ“ tests/external-database-config.test.ts (14 tests) 12ms
374
+ โœ“ tests/compose-services.test.ts (12 tests) 13ms
375
+ โœ“ tests/field-validators.test.ts (10 tests) 81ms
376
+ โœ“ tests/native-keyspace.test.ts (10 tests) 39ms
377
+ โœ“ tests/db-port.test.ts (14 tests) 19ms
378
+ โœ“ tests/command-chrome-coverage.test.ts (1 test) 18ms
379
+ โœ“ tests/hook-upload.test.ts (8 tests) 12ms
380
+ โœ“ tests/env-file.test.ts (9 tests) 20ms
379
381
  stdout | tests/link.test.ts > link model > migrates cloud.json into link.json
380
382
   created package.json
381
- stderr | tests/link.test.ts > link model > migrates cloud.json into link.json
382
- [supatype] Migrated .supatype/cloud.json โ†’ .supatype/link.json (legacy files kept; remove manually when ready).
383
383
  created supatype.config.ts
384
-
385
384
  created schema/index.ts
386
385
  created .env
387
386
  created seed.ts
@@ -389,10 +388,13 @@
389
388
  created public/.gitkeep
390
389
  created .gitignore
391
390
 
392
- โœ“ tests/link.test.ts (4 tests) 2351ms
393
- โœ“ resolveTarget returns cloud mode with /api/v1 prefix  769ms
394
- โœ“ resolveTarget returns self-host mode with /platform/v1 prefix  770ms
395
- โœ“ targetSchemaRollback posts to /platform/v1 when linked  802ms
391
+ stderr | tests/link.test.ts > link model > migrates cloud.json into link.json
392
+ [supatype] Migrated .supatype/cloud.json โ†’ .supatype/link.json (legacy files kept; remove manually when ready).
393
+
394
+ โœ“ tests/link.test.ts (4 tests) 3203ms
395
+ โœ“ resolveTarget returns cloud mode with /api/v1 prefix  1058ms
396
+ โœ“ resolveTarget returns self-host mode with /platform/v1 prefix  1015ms
397
+ โœ“ targetSchemaRollback posts to /platform/v1 when linked  1117ms
396
398
  stdout | tests/admin-ensure.test.ts > init admin seed in .env > writes SUPATYPE_ADMIN_* when scaffold options include credentials
397
399
   created package.json
398
400
  created supatype.config.ts
@@ -403,8 +405,8 @@
403
405
  created public/.gitkeep
404
406
  created .gitignore
405
407
 
406
- โœ“ tests/admin-ensure.test.ts (10 tests) 143ms
407
- โœ“ tests/service-role-check.test.ts (10 tests) 9ms
408
+ โœ“ tests/admin-ensure.test.ts (10 tests) 164ms
409
+ โœ“ tests/service-role-check.test.ts (10 tests) 14ms
408
410
  stdout | tests/admin-studio-membership.test.ts > first admin user creation > does not write a role into app_metadata
409
411
  [supatype] Admin user "admin@example.com" created (role: admin).
410
412
  [supatype] Log in at /admin after starting the dev server.
@@ -421,39 +423,42 @@
421
423
  [supatype] Admin user "admin@example.com" created (role: admin).
422
424
  [supatype] Log in at /admin after starting the dev server.
423
425
 
424
- โœ“ tests/admin-studio-membership.test.ts (5 tests) 397ms
425
- โœ“ tests/augmentation-generator.test.ts (6 tests) 12ms
426
+ โœ“ tests/admin-studio-membership.test.ts (5 tests) 492ms
426
427
  โœ“ tests/pull-utils.test.ts (49 tests) 10ms
427
- โœ“ tests/keys.test.ts (11 tests) 12833ms
428
- โœ“ exits 0 with --secret  1269ms
429
- โœ“ outputs ANON_KEY= line  1068ms
430
- โœ“ outputs SERVICE_ROLE_KEY= line  1008ms
431
- โœ“ ANON_KEY is a valid three-part JWT  1079ms
432
- โœ“ SERVICE_ROLE_KEY payload has role: service_role  1036ms
433
- โœ“ JWT has exp in the future  1028ms
434
- โœ“ --exp-years changes the expiry window  2179ms
435
- โœ“ reads JWT_SECRET from environment variable  1092ms
436
- โœ“ reads JWT_SECRET from .env file  1039ms
437
- โœ“ exits non-zero when no secret is available  1019ms
438
- โœ“ keys --help shows --secret and --exp-years options  1010ms
439
- โœ“ tests/preview-config-check.test.ts (9 tests) 5ms
440
- โœ“ tests/schema-sources.test.ts (5 tests) 993ms
441
- โœ“ buildSchemaSourcesPayload includes manifest metadata  485ms
442
- โœ“ restore overwrites modified local files  476ms
428
+ โœ“ tests/schema-sources.test.ts (5 tests) 1316ms
429
+ โœ“ buildSchemaSourcesPayload includes manifest metadata  542ms
430
+ โœ“ restore overwrites modified local files  729ms
431
+ โœ“ tests/preview-config-check.test.ts (9 tests) 9ms
432
+ โœ“ tests/keys.test.ts (11 tests) 18907ms
433
+ โœ“ exits 0 with --secret  1728ms
434
+ โœ“ outputs ANON_KEY= line  1574ms
435
+ โœ“ outputs SERVICE_ROLE_KEY= line  1444ms
436
+ โœ“ ANON_KEY is a valid three-part JWT  1606ms
437
+ โœ“ SERVICE_ROLE_KEY payload has role: service_role  1463ms
438
+ โœ“ JWT has exp in the future  1582ms
439
+ โœ“ --exp-years changes the expiry window  3261ms
440
+ โœ“ reads JWT_SECRET from environment variable  1569ms
441
+ โœ“ reads JWT_SECRET from .env file  1606ms
442
+ โœ“ exits non-zero when no secret is available  1575ms
443
+ โœ“ keys --help shows --secret and --exp-years options  1493ms
443
444
  stderr | tests/binary-cache-cloud-overrides.test.ts > isLinkedToCloudProject > is true when .supatype/cloud.json has projectSlug
444
445
  [supatype] Migrated .supatype/cloud.json โ†’ .supatype/link.json (legacy files kept; remove manually when ready).
445
446
 
446
- โœ“ tests/binary-cache-cloud-overrides.test.ts (11 tests) 15ms
447
- โœ“ tests/homebrew-formula.test.ts (4 tests) 180ms
448
- โœ“ tests/model-cache-manifest.test.ts (12 tests) 7ms
449
- โœ“ tests/minisign.test.ts (5 tests) 11ms
450
- โœ“ tests/local-server-image-env.test.ts (5 tests) 10ms
451
- โœ“ tests/local-secrets.test.ts (5 tests) 7ms
452
- โœ“ tests/functions-concurrency.test.ts (6 tests) 4ms
453
- โœ“ tests/self-host-keys.test.ts (7 tests) 8ms
454
- โœ“ tests/readiness-poll.test.ts (3 tests) 316ms
455
- โœ“ ends promptly when it carries a deadline  313ms
456
- โœ“ tests/api-schemas.test.ts (10 tests) 5ms
447
+ โœ“ tests/binary-cache-cloud-overrides.test.ts (11 tests) 24ms
448
+ โœ“ tests/homebrew-formula.test.ts (4 tests) 271ms
449
+ โœ“ tests/local-server-image-env.test.ts (5 tests) 20ms
450
+ โœ“ tests/minisign.test.ts (5 tests) 12ms
451
+ โœ“ tests/model-cache-manifest.test.ts (12 tests) 10ms
452
+ โœ“ tests/local-secrets.test.ts (5 tests) 8ms
453
+ โœ“ tests/client-generator.test.ts (9 tests) 18ms
454
+ โœ“ tests/functions-concurrency.test.ts (6 tests) 6ms
455
+ โœ“ tests/readiness-poll.test.ts (3 tests) 329ms
456
+ โœ“ ends promptly when it carries a deadline  322ms
457
+ โœ“ tests/ast-derived-outputs.test.ts (5 tests) 27ms
458
+ โœ“ tests/self-host-keys.test.ts (7 tests) 16ms
459
+ โœ“ tests/functions-context-refresh.test.ts (4 tests) 11ms
460
+ โœ“ tests/api-schemas.test.ts (10 tests) 10ms
461
+ โœ“ tests/gitignore-secrets.test.ts (5 tests) 95ms
457
462
  stdout | tests/storage-provision.test.ts > provisionBuckets > POSTs each bucket to the storage API
458
463
  [supatype] Storage bucket "photos" ready.
459
464
 
@@ -461,11 +466,12 @@
461
466
  [supatype] Storage bucket "avatars" ready.
462
467
 
463
468
  โœ“ tests/storage-provision.test.ts (6 tests) 10ms
464
- โœ“ tests/cached-artifact-format.test.ts (7 tests) 10ms
465
- โœ“ tests/cache-identity-scope.test.ts (33 tests) 7ms
466
- โœ“ tests/target-client-refresh.test.ts (3 tests) 8ms
467
- โœ“ tests/studio-admin-roles.test.ts (6 tests) 5ms
468
- โœ“ tests/proxy-dev-app.test.ts (7 tests) 5ms
469
+ โœ“ tests/strict.test.ts (7 tests) 11ms
470
+ โœ“ tests/cached-artifact-format.test.ts (7 tests) 14ms
471
+ โœ“ tests/cache-identity-scope.test.ts (33 tests) 12ms
472
+ โœ“ tests/target-client-refresh.test.ts (3 tests) 11ms
473
+ โœ“ tests/studio-admin-roles.test.ts (6 tests) 9ms
474
+ โœ“ tests/proxy-dev-app.test.ts (7 tests) 6ms
469
475
  stdout | tests/app-command.test.ts > supatype app add --static > sets app.mode=static and static_dir in supatype.config.ts
470
476
   created package.json
471
477
  created supatype.config.ts
@@ -486,77 +492,79 @@
486
492
  created public/.gitkeep
487
493
  created .gitignore
488
494
 
489
- โœ“ tests/service-role-routes.test.ts (4 tests) 1314ms
490
- โœ“ reads the declared list  475ms
491
- โœ“ is an empty list when a project declares none  437ms
492
- โœ“ sends what the project declared, hook entries included  400ms
493
- โœ“ tests/compose-parsable-defaults.test.ts (2 tests) 6ms
494
- โœ“ tests/app-command.test.ts (2 tests) 2406ms
495
- โœ“ sets app.mode=static and static_dir in supatype.config.ts  1266ms
496
- โœ“ creates the static directory when missing  1139ms
497
- โœ“ tests/rest-cache-admin.test.ts (3 tests) 34ms
498
- โœ“ tests/init-dependency-versions.test.ts (4 tests) 23ms
499
- โœ“ tests/type-resolver.test.ts (2 tests) 14ms
500
- โœ“ tests/cli-help.test.ts (16 tests) 17210ms
501
- โœ“ --help lists all top-level commands  1097ms
502
- โœ“ --version prints package.json version  1092ms
503
- โœ“ self-update --help describes the command  1017ms
504
- โœ“ init --help describes the init command  1138ms
505
- โœ“ push --help describes the push command and --yes flag  1144ms
506
- โœ“ diff --help describes the diff command  1098ms
507
- โœ“ pull --help describes scaffold pull command  1074ms
508
- โœ“ doctor --help describes drift report command  1072ms
509
- โœ“ introspect --help describes database introspection command  1044ms
510
- โœ“ adopt --help describes adoption ceremony command  1086ms
511
- โœ“ reset --help shows --yes flag  983ms
512
- โœ“ app --help describes the app command with add/remove subcommands  918ms
513
- โœ“ app add --help shows --static and --port options  1057ms
514
- โœ“ self-host --help shows compose only (legacy commands hidden)  1115ms
515
- โœ“ self-host compose --help shows compose subcommands  1131ms
516
- โœ“ unknown command exits non-zero  1135ms
517
- โœ“ tests/engine-push-output.test.ts (7 tests) 5ms
518
- โœ“ tests/command-chrome-wrap.test.ts (3 tests) 5ms
519
- โœ“ tests/doctor-render.test.ts (3 tests) 5ms
520
- โœ“ tests/cli-install-method.test.ts (8 tests) 11ms
521
- โœ“ tests/port-in-use.test.ts (4 tests) 17ms
522
- โœ“ tests/archive-name-alias.test.ts (4 tests) 5ms
523
- โœ“ tests/ensure-binary.test.ts (2 tests) 7ms
524
- โœ“ tests/init-project-detect.test.ts (4 tests) 6ms
525
- โœ“ tests/tsx-runner.test.ts (7 tests) 2317ms
526
- โœ“ evaluates a simple expression and returns stdout  300ms
527
- โœ“ can serialize a JSON object to stdout  336ms
528
- โœ“ returns non-zero exit code on runtime error  349ms
529
- โœ“ captures stderr separately from stdout  354ms
530
- โœ“ runs a .ts file and returns its stdout  405ms
531
- โœ“ tests/doctor-service-role.test.ts (4 tests) 4ms
532
- โœ“ tests/required-host-components.test.ts (4 tests) 5ms
533
- โœ“ tests/dev-ports-owner.test.ts (6 tests) 3ms
495
+ โœ“ tests/service-role-routes.test.ts (4 tests) 1872ms
496
+ โœ“ reads the declared list  582ms
497
+ โœ“ is an empty list when a project declares none  646ms
498
+ โœ“ sends what the project declared, hook entries included  640ms
499
+ โœ“ tests/compose-parsable-defaults.test.ts (2 tests) 8ms
500
+ โœ“ tests/app-command.test.ts (2 tests) 3419ms
501
+ โœ“ sets app.mode=static and static_dir in supatype.config.ts  1745ms
502
+ โœ“ creates the static directory when missing  1672ms
503
+ โœ“ tests/rest-cache-admin.test.ts (3 tests) 55ms
504
+ โœ“ tests/init-dependency-versions.test.ts (4 tests) 42ms
505
+ โœ“ tests/cli-help.test.ts (16 tests) 24704ms
506
+ โœ“ --help lists all top-level commands  1544ms
507
+ โœ“ --version prints package.json version  1558ms
508
+ โœ“ self-update --help describes the command  1544ms
509
+ โœ“ init --help describes the init command  1554ms
510
+ โœ“ push --help describes the push command and --yes flag  1589ms
511
+ โœ“ diff --help describes the diff command  1493ms
512
+ โœ“ pull --help describes scaffold pull command  1574ms
513
+ โœ“ doctor --help describes drift report command  1472ms
514
+ โœ“ introspect --help describes database introspection command  1583ms
515
+ โœ“ adopt --help describes adoption ceremony command  1508ms
516
+ โœ“ reset --help shows --yes flag  1474ms
517
+ โœ“ app --help describes the app command with add/remove subcommands  1443ms
518
+ โœ“ app add --help shows --static and --port options  1675ms
519
+ โœ“ self-host --help shows compose only (legacy commands hidden)  1568ms
520
+ โœ“ self-host compose --help shows compose subcommands  1558ms
521
+ โœ“ unknown command exits non-zero  1561ms
522
+ โœ“ tests/engine-push-output.test.ts (7 tests) 13ms
523
+ โœ“ tests/type-resolver.test.ts (2 tests) 21ms
524
+ โœ“ tests/command-chrome-wrap.test.ts (3 tests) 7ms
525
+ โœ“ tests/doctor-render.test.ts (3 tests) 6ms
526
+ โœ“ tests/cli-install-method.test.ts (8 tests) 8ms
527
+ โœ“ tests/port-in-use.test.ts (4 tests) 24ms
528
+ โœ“ tests/archive-name-alias.test.ts (4 tests) 7ms
529
+ โœ“ tests/init-project-detect.test.ts (4 tests) 12ms
530
+ โœ“ tests/ensure-binary.test.ts (2 tests) 15ms
531
+ โœ“ tests/tsx-runner.test.ts (7 tests) 3274ms
532
+ โœ“ evaluates a simple expression and returns stdout  466ms
533
+ โœ“ evaluates TypeScript syntax (type annotations)  442ms
534
+ โœ“ can serialize a JSON object to stdout  456ms
535
+ โœ“ returns non-zero exit code on syntax error  419ms
536
+ โœ“ returns non-zero exit code on runtime error  526ms
537
+ โœ“ captures stderr separately from stdout  392ms
538
+ โœ“ runs a .ts file and returns its stdout  568ms
539
+ โœ“ tests/doctor-service-role.test.ts (4 tests) 7ms
540
+ โœ“ tests/required-host-components.test.ts (4 tests) 7ms
534
541
  โœ“ tests/ui-messages.test.ts (5 tests) 7ms
535
- โœ“ tests/normalize-admin-config.test.ts (1 test) 5ms
536
- โœ“ tests/ui-confirm.test.ts (3 tests) 6ms
537
- โœ“ tests/docker-postgres.test.ts (5 tests) 3ms
538
- โœ“ tests/binary-download-lock.test.ts (2 tests) 5ms
539
- โœ“ tests/dev-session-lock.test.ts (2 tests) 4ms
540
- โœ“ tests/config-load-failure.test.ts (2 tests) 2749ms
541
- โœ“ is reported, rather than treated as absent  1585ms
542
- โœ“ does not stop the CLI working with no config at all  1162ms
543
- โœ“ tests/dev-ports.test.ts (3 tests) 4ms
544
- โœ“ tests/route-manifest.test.ts (1 test) 4ms
545
- โœ“ tests/dev-ready-panel.test.ts (2 tests) 3ms
546
- โœ“ tests/realtime-launch.test.ts (1 test) 4ms
547
- โœ“ tests/release-pins.test.ts (2 tests) 3ms
542
+ โœ“ tests/dev-ports-owner.test.ts (6 tests) 6ms
543
+ โœ“ tests/normalize-admin-config.test.ts (1 test) 9ms
544
+ โœ“ tests/ui-confirm.test.ts (3 tests) 8ms
545
+ โœ“ tests/docker-postgres.test.ts (5 tests) 5ms
546
+ โœ“ tests/binary-download-lock.test.ts (2 tests) 9ms
547
+ โœ“ tests/dev-session-lock.test.ts (2 tests) 6ms
548
+ โœ“ tests/config-load-failure.test.ts (2 tests) 3861ms
549
+ โœ“ is reported, rather than treated as absent  2316ms
550
+ โœ“ does not stop the CLI working with no config at all  1542ms
551
+ โœ“ tests/dev-ports.test.ts (3 tests) 7ms
552
+ โœ“ tests/route-manifest.test.ts (1 test) 9ms
553
+ โœ“ tests/realtime-launch.test.ts (1 test) 6ms
554
+ โœ“ tests/release-pins.test.ts (2 tests) 6ms
555
+ โœ“ tests/dev-ready-panel.test.ts (2 tests) 4ms
548
556
  โœ“ tests/ensure-dev-api-config.test.ts (1 test) 4ms
549
- โœ“ tests/seed-discover.test.ts (2 tests) 10ms
550
- โœ“ tests/init-package-json.test.ts (1 test) 3ms
551
- โœ“ tests/pg-spawn-env.test.ts (2 tests) 3ms
552
- โœ“ tests/resolve-api-url.test.ts (2 tests) 3ms
553
- โœ“ tests/cli-package-version.test.ts (1 test) 2ms
554
- โœ“ tests/migrate-from-v1.test.ts (1 test) 9ms
555
- โœ“ tests/postgres-archive-tag.test.ts (1 test) 2ms
556
- โœ“ tests/stdin-after-ink.test.ts (1 test) 2ms
557
-
558
-  Test Files  95 passed (95)
559
-  Tests  997 passed (997)
560
-  Start at  09:25:57
561
-  Duration  39.48s (transform 6.25s, setup 0ms, import 40.35s, tests 62.64s, environment 15ms)
557
+ โœ“ tests/seed-discover.test.ts (2 tests) 24ms
558
+ โœ“ tests/init-package-json.test.ts (1 test) 4ms
559
+ โœ“ tests/pg-spawn-env.test.ts (2 tests) 4ms
560
+ โœ“ tests/resolve-api-url.test.ts (2 tests) 6ms
561
+ โœ“ tests/cli-package-version.test.ts (1 test) 4ms
562
+ โœ“ tests/migrate-from-v1.test.ts (1 test) 12ms
563
+ โœ“ tests/postgres-archive-tag.test.ts (1 test) 3ms
564
+ โœ“ tests/stdin-after-ink.test.ts (1 test) 3ms
565
+
566
+  Test Files  101 passed (101)
567
+  Tests  1057 passed (1057)
568
+  Start at  06:44:27
569
+  Duration  58.81s (transform 9.89s, setup 0ms, import 62.00s, tests 91.35s, environment 20ms)
562
570
 
@@ -1,4 +1,4 @@
1
1
 
2
- > @supatype/cli@0.3.1 typecheck /home/runner/work/supatype/supatype/packages/cli
2
+ > @supatype/cli@0.3.2 typecheck /home/runner/work/supatype/supatype/packages/cli
3
3
  > tsc --project tsconfig.json --noEmit && tsc --project tests/tsconfig.json --noEmit
4
4
 
@@ -14,6 +14,26 @@ export interface CacheSeedResult {
14
14
  * creates it.
15
15
  */
16
16
  export declare function seedApiConfigCache(cwd: string, ast: unknown): CacheSeedResult | null;
17
+ /**
18
+ * What a newly declared table is switched on as.
19
+ *
20
+ * `allow_public` follows the declaration rather than defaulting off: the schema saying `public` is
21
+ * a considered statement that this table's reads are the same for everyone, and `push` has already
22
+ * refused it where the read rule varies by caller. Defaulting it off would make the declaration
23
+ * mean nothing until someone ticked a box that the schema had already justified.
24
+ */
25
+ /**
26
+ * What a push or a dev boot should say about cache seeding, as lines to print.
27
+ *
28
+ * Returns the text rather than printing it, because the two callers write to the console
29
+ * differently and the thing worth sharing is the decision about what to say, not the formatting.
30
+ * Extracted from `push` when `dev` grew the same need: `seedApiConfigCache` had exactly one caller
31
+ * for a long time, which is why a stack brought up with `supatype dev` alone had no cache
32
+ * allowlist at all and nothing anywhere said so.
33
+ *
34
+ * Never an error, and never a rewrite of an entry that already exists. See `seedApiConfigCache`.
35
+ */
36
+ export declare function cacheSeedingNotes(cwd: string, ast: unknown): string[];
17
37
  /**
18
38
  * ยง13.4's note, in the words of the project that will read it โ€” or null when there is nothing to
19
39
  * say.
@@ -1 +1 @@
1
- {"version":3,"file":"api-config-cache.d.ts","sourceRoot":"","sources":["../src/api-config-cache.ts"],"names":[],"mappings":"AAgCA,MAAM,WAAW,eAAe;IAC9B,0FAA0F;IAC1F,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,yFAAyF;IACzF,QAAQ,EAAE,OAAO,CAAA;IACjB,6EAA6E;IAC7E,QAAQ,EAAE,MAAM,EAAE,CAAA;CACnB;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,eAAe,GAAG,IAAI,CA4CpF;AAmBD;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAW9G"}
1
+ {"version":3,"file":"api-config-cache.d.ts","sourceRoot":"","sources":["../src/api-config-cache.ts"],"names":[],"mappings":"AAgCA,MAAM,WAAW,eAAe;IAC9B,0FAA0F;IAC1F,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,yFAAyF;IACzF,QAAQ,EAAE,OAAO,CAAA;IACjB,6EAA6E;IAC7E,QAAQ,EAAE,MAAM,EAAE,CAAA;CACnB;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,eAAe,GAAG,IAAI,CA4CpF;AAED;;;;;;;GAOG;AACH;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,MAAM,EAAE,CAiBrE;AAWD;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAW9G"}
@@ -82,6 +82,33 @@ export function seedApiConfigCache(cwd, ast) {
82
82
  * refused it where the read rule varies by caller. Defaulting it off would make the declaration
83
83
  * mean nothing until someone ticked a box that the schema had already justified.
84
84
  */
85
+ /**
86
+ * What a push or a dev boot should say about cache seeding, as lines to print.
87
+ *
88
+ * Returns the text rather than printing it, because the two callers write to the console
89
+ * differently and the thing worth sharing is the decision about what to say, not the formatting.
90
+ * Extracted from `push` when `dev` grew the same need: `seedApiConfigCache` had exactly one caller
91
+ * for a long time, which is why a stack brought up with `supatype dev` alone had no cache
92
+ * allowlist at all and nothing anywhere said so.
93
+ *
94
+ * Never an error, and never a rewrite of an entry that already exists. See `seedApiConfigCache`.
95
+ */
96
+ export function cacheSeedingNotes(cwd, ast) {
97
+ const result = seedApiConfigCache(cwd, ast);
98
+ if (result === null)
99
+ return [];
100
+ const notes = [];
101
+ if (result.seeded.length > 0) {
102
+ notes.push(`Server cache enabled for ${result.seeded.join(", ")} in .supatype/api-config.json`);
103
+ }
104
+ if (result.ttlIsOff) {
105
+ // A note rather than a fix. Zero is an off switch someone may have chosen, and a push that
106
+ // turned caching on project-wide would be overriding a decision rather than filling in a blank.
107
+ notes.push(`${result.declared.length} table(s) declare a cache, but cache_max_ttl is 0, so nothing ` +
108
+ `is cached until it is set, under API > REST > Settings or in .supatype/api-config.json.`);
109
+ }
110
+ return notes;
111
+ }
85
112
  function seedEntry(entry) {
86
113
  return { enabled: true, allow_public: entry.public === true };
87
114
  }
@@ -1 +1 @@
1
- {"version":3,"file":"api-config-cache.js","sourceRoot":"","sources":["../src/api-config-cache.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5E,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,aAAa,EAA2B,MAAM,kBAAkB,CAAA;AAiBzE;;;;;;GAMG;AACH,MAAM,UAAU,kBAAkB,CAAC,GAAW,EAAE,GAAY;IAC1D,MAAM,QAAQ,GAAG,aAAa,CAAC,GAAG,CAAC,CAAA;IACnC,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAA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