@supatype/cli 0.3.0 โ†’ 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 (115) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/.turbo/turbo-test.log +161 -154
  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/admin.d.ts.map +1 -1
  17. package/dist/commands/admin.js +21 -4
  18. package/dist/commands/admin.js.map +1 -1
  19. package/dist/commands/functions.d.ts.map +1 -1
  20. package/dist/commands/functions.js +2 -2
  21. package/dist/commands/functions.js.map +1 -1
  22. package/dist/commands/init.d.ts.map +1 -1
  23. package/dist/commands/init.js +7 -10
  24. package/dist/commands/init.js.map +1 -1
  25. package/dist/commands/keys.d.ts +35 -0
  26. package/dist/commands/keys.d.ts.map +1 -1
  27. package/dist/commands/keys.js +90 -6
  28. package/dist/commands/keys.js.map +1 -1
  29. package/dist/commands/push.d.ts.map +1 -1
  30. package/dist/commands/push.js +23 -13
  31. package/dist/commands/push.js.map +1 -1
  32. package/dist/commands/update.d.ts.map +1 -1
  33. package/dist/commands/update.js +19 -1
  34. package/dist/commands/update.js.map +1 -1
  35. package/dist/db-port.d.ts +36 -0
  36. package/dist/db-port.d.ts.map +1 -0
  37. package/dist/db-port.js +90 -0
  38. package/dist/db-port.js.map +1 -0
  39. package/dist/dev-compose.d.ts +13 -0
  40. package/dist/dev-compose.d.ts.map +1 -1
  41. package/dist/dev-compose.js +205 -18
  42. package/dist/dev-compose.js.map +1 -1
  43. package/dist/functions-context-refresh.d.ts +4 -0
  44. package/dist/functions-context-refresh.d.ts.map +1 -0
  45. package/dist/functions-context-refresh.js +26 -0
  46. package/dist/functions-context-refresh.js.map +1 -0
  47. package/dist/functions-deno-types.d.ts +9 -0
  48. package/dist/functions-deno-types.d.ts.map +1 -1
  49. package/dist/functions-deno-types.js +21 -1
  50. package/dist/functions-deno-types.js.map +1 -1
  51. package/dist/gitignore.d.ts +3 -1
  52. package/dist/gitignore.d.ts.map +1 -1
  53. package/dist/gitignore.js +28 -6
  54. package/dist/gitignore.js.map +1 -1
  55. package/dist/model-cache.d.ts +27 -0
  56. package/dist/model-cache.d.ts.map +1 -1
  57. package/dist/model-cache.js +61 -0
  58. package/dist/model-cache.js.map +1 -1
  59. package/dist/schema-ast-v2.d.ts.map +1 -1
  60. package/dist/schema-ast-v2.js +17 -8
  61. package/dist/schema-ast-v2.js.map +1 -1
  62. package/dist/self-host-compose.d.ts +10 -2
  63. package/dist/self-host-compose.d.ts.map +1 -1
  64. package/dist/self-host-compose.js +114 -9
  65. package/dist/self-host-compose.js.map +1 -1
  66. package/dist/strict.d.ts +29 -0
  67. package/dist/strict.d.ts.map +1 -0
  68. package/dist/strict.js +37 -0
  69. package/dist/strict.js.map +1 -0
  70. package/dist/studio-dev-server.d.ts +12 -2
  71. package/dist/studio-dev-server.d.ts.map +1 -1
  72. package/dist/studio-dev-server.js +12 -2
  73. package/dist/studio-dev-server.js.map +1 -1
  74. package/dist/type-extractor.d.ts.map +1 -1
  75. package/dist/type-extractor.js +8 -2
  76. package/dist/type-extractor.js.map +1 -1
  77. package/dist/type-generation.d.ts +14 -0
  78. package/dist/type-generation.d.ts.map +1 -1
  79. package/dist/type-generation.js +41 -2
  80. package/dist/type-generation.js.map +1 -1
  81. package/package.json +2 -2
  82. package/src/api-config-cache.ts +30 -0
  83. package/src/augmentation-generator.ts +75 -18
  84. package/src/cli-version-embedded.ts +1 -1
  85. package/src/client-generator.ts +122 -0
  86. package/src/commands/admin.ts +23 -6
  87. package/src/commands/functions.ts +5 -2
  88. package/src/commands/init.ts +10 -10
  89. package/src/commands/keys.ts +112 -7
  90. package/src/commands/push.ts +25 -15
  91. package/src/commands/update.ts +20 -1
  92. package/src/db-port.ts +99 -0
  93. package/src/dev-compose.ts +244 -19
  94. package/src/functions-context-refresh.ts +25 -0
  95. package/src/functions-deno-types.ts +24 -1
  96. package/src/gitignore.ts +31 -10
  97. package/src/model-cache.ts +48 -0
  98. package/src/schema-ast-v2.ts +17 -8
  99. package/src/self-host-compose.ts +115 -9
  100. package/src/strict.ts +40 -0
  101. package/src/studio-dev-server.ts +12 -2
  102. package/src/type-extractor.ts +8 -2
  103. package/src/type-generation.ts +47 -2
  104. package/tests/ast-derived-outputs.test.ts +92 -0
  105. package/tests/augmentation-generator.test.ts +127 -1
  106. package/tests/client-generator.test.ts +103 -0
  107. package/tests/db-port.test.ts +128 -0
  108. package/tests/external-database-compose.test.ts +8 -1
  109. package/tests/functions-context-refresh.test.ts +86 -0
  110. package/tests/gitignore-secrets.test.ts +90 -0
  111. package/tests/keys-write.test.ts +148 -0
  112. package/tests/runtime-contract.test.ts +115 -2
  113. package/tests/strict.test.ts +78 -0
  114. package/tests/type-extractor.test.ts +34 -0
  115. package/tsconfig.tsbuildinfo +1 -1
@@ -1,4 +1,4 @@
1
1
 
2
- > @supatype/cli@0.3.0 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.0 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) 507ms
9
- โœ“ tests/access-composition.test.ts (26 tests) 397ms
10
- โœ“ tests/model-hooks.test.ts (23 tests) 241ms
11
- โœ“ tests/runtime-contract.test.ts (57 tests) 323ms
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) 254ms
327
- โœ“ tests/external-database-compose.test.ts (23 tests) 15ms
328
- โœ“ tests/model-constraints.test.ts (18 tests) 174ms
329
- โœ“ tests/model-versions.test.ts (19 tests) 62ms
330
- โœ“ tests/api-config-cache-seed.test.ts (15 tests) 39ms
331
- โœ“ tests/model-cache-declaration.test.ts (18 tests) 102ms
332
- โœ“ tests/field-masking-tier.test.ts (16 tests) 16ms
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) 112ms
335
+ โœ“ tests/dev-ui.test.ts (21 tests) 130ms
335
336
 
336
337
  [supatype] Shutting downโ€ฆ
337
- โœ“ tests/hooks-generator.test.ts (7 tests) 8217ms
338
- โœ“ typechecks under strict mode, together with a handler that uses it  2986ms
339
- โœ“ rejects a handler for a table that declares no hook  2753ms
340
- โœ“ typechecks with a validator written the way the docs will show it  2352ms
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,52 +347,54 @@
346
347
 
347
348
  docker: daemon down
348
349
 
349
- โœ“ tests/docker-runtime.test.ts (10 tests) 18ms
350
- โœ“ tests/config.test.ts (19 tests) 8166ms
351
- โœ“ loads a valid supatype.config.ts (plain export default, no package imports)  865ms
352
- โœ“ normalizes shorthand schema string to { path, pg_schema }  869ms
353
- โœ“ loads a supatype.config.js (plain ESM)  966ms
354
- โœ“ loads config without a versions section (latest by default)  840ms
355
- โœ“ prefers supatype.config.ts over supatype.config.js when both exist  860ms
356
- โœ“ supports optional output field in config  886ms
357
- โœ“ merges supatype.local.config.ts over base  1488ms
358
- โœ“ loads defineConfig import before @supatype/cli is installed (init scaffold)  1378ms
359
- โœ“ tests/db-preflight.test.ts (14 tests) 9ms
360
- โœ“ tests/field-bounds.test.ts (23 tests) 14ms
361
- โœ“ tests/cache-clean.test.ts (8 tests) 2182ms
362
- โœ“ keeps pinned versions and removes the rest  633ms
363
- โœ“ --force removes pinned versions  817ms
364
- โœ“ explicit version removes even when pinned (with warning)  715ms
365
- โœ“ tests/cache-provider-config.test.ts (12 tests) 13ms
366
- โœ“ tests/functions-deno-types.test.ts (7 tests) 2958ms
367
- โœ“ tsc fails with Cannot find name Deno without ambient types  2009ms
368
- โœ“ tsc passes for Deno.env after ensureFunctionsDenoTypes  929ms
369
- โœ“ tests/field-bounds-matrix.test.ts (124 tests) 36ms
370
- โœ“ tests/engine-floor.test.ts (17 tests) 13ms
371
- โœ“ tests/external-database-config.test.ts (14 tests) 20ms
372
- โœ“ tests/compose-services.test.ts (12 tests) 12ms
373
- โœ“ tests/field-validators.test.ts (10 tests) 71ms
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
374
376
  โœ“ tests/native-keyspace.test.ts (10 tests) 39ms
375
- โœ“ tests/command-chrome-coverage.test.ts (1 test) 22ms
376
- โœ“ tests/hook-upload.test.ts (8 tests) 13ms
377
- โœ“ tests/env-file.test.ts (9 tests) 16ms
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
378
381
  stdout | tests/link.test.ts > link model > migrates cloud.json into link.json
379
382
   created package.json
380
383
  created supatype.config.ts
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
384
  created schema/index.ts
384
-
385
385
  created .env
386
386
  created seed.ts
387
387
  created seeds/.gitkeep
388
388
  created public/.gitkeep
389
389
  created .gitignore
390
390
 
391
- โœ“ tests/link.test.ts (4 tests) 3162ms
392
- โœ“ resolveTarget returns cloud mode with /api/v1 prefix  1108ms
393
- โœ“ resolveTarget returns self-host mode with /platform/v1 prefix  992ms
394
- โœ“ targetSchemaRollback posts to /platform/v1 when linked  1051ms
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
395
398
  stdout | tests/admin-ensure.test.ts > init admin seed in .env > writes SUPATYPE_ADMIN_* when scaffold options include credentials
396
399
   created package.json
397
400
  created supatype.config.ts
@@ -402,8 +405,8 @@
402
405
  created public/.gitkeep
403
406
  created .gitignore
404
407
 
405
- โœ“ tests/admin-ensure.test.ts (10 tests) 149ms
406
- โœ“ tests/service-role-check.test.ts (10 tests) 13ms
408
+ โœ“ tests/admin-ensure.test.ts (10 tests) 164ms
409
+ โœ“ tests/service-role-check.test.ts (10 tests) 14ms
407
410
  stdout | tests/admin-studio-membership.test.ts > first admin user creation > does not write a role into app_metadata
408
411
  [supatype] Admin user "admin@example.com" created (role: admin).
409
412
  [supatype] Log in at /admin after starting the dev server.
@@ -420,51 +423,55 @@
420
423
  [supatype] Admin user "admin@example.com" created (role: admin).
421
424
  [supatype] Log in at /admin after starting the dev server.
422
425
 
423
- โœ“ tests/admin-studio-membership.test.ts (5 tests) 499ms
424
- โœ“ tests/augmentation-generator.test.ts (6 tests) 13ms
425
- โœ“ tests/pull-utils.test.ts (49 tests) 13ms
426
- โœ“ tests/keys.test.ts (11 tests) 17971ms
427
- โœ“ exits 0 with --secret  1795ms
428
- โœ“ outputs ANON_KEY= line  1603ms
429
- โœ“ outputs SERVICE_ROLE_KEY= line  1405ms
430
- โœ“ ANON_KEY is a valid three-part JWT  1507ms
431
- โœ“ SERVICE_ROLE_KEY payload has role: service_role  1445ms
432
- โœ“ JWT has exp in the future  1351ms
433
- โœ“ --exp-years changes the expiry window  2906ms
434
- โœ“ reads JWT_SECRET from environment variable  1577ms
435
- โœ“ reads JWT_SECRET from .env file  1520ms
436
- โœ“ exits non-zero when no secret is available  1364ms
437
- โœ“ keys --help shows --secret and --exp-years options  1491ms
438
- โœ“ tests/schema-sources.test.ts (5 tests) 1311ms
439
- โœ“ buildSchemaSourcesPayload includes manifest metadata  664ms
440
- โœ“ restore overwrites modified local files  597ms
441
- โœ“ tests/preview-config-check.test.ts (9 tests) 12ms
426
+ โœ“ tests/admin-studio-membership.test.ts (5 tests) 492ms
427
+ โœ“ tests/pull-utils.test.ts (49 tests) 10ms
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
442
444
  stderr | tests/binary-cache-cloud-overrides.test.ts > isLinkedToCloudProject > is true when .supatype/cloud.json has projectSlug
443
445
  [supatype] Migrated .supatype/cloud.json โ†’ .supatype/link.json (legacy files kept; remove manually when ready).
444
446
 
445
- โœ“ tests/binary-cache-cloud-overrides.test.ts (11 tests) 21ms
446
- โœ“ tests/homebrew-formula.test.ts (4 tests) 223ms
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
447
451
  โœ“ tests/model-cache-manifest.test.ts (12 tests) 10ms
448
- โœ“ tests/local-server-image-env.test.ts (5 tests) 12ms
449
- โœ“ tests/minisign.test.ts (5 tests) 11ms
450
- โœ“ tests/local-secrets.test.ts (5 tests) 10ms
451
- โœ“ tests/functions-concurrency.test.ts (6 tests) 4ms
452
- โœ“ tests/readiness-poll.test.ts (3 tests) 330ms
453
- โœ“ ends promptly when it carries a deadline  326ms
454
- โœ“ tests/self-host-keys.test.ts (7 tests) 14ms
455
- โœ“ tests/api-schemas.test.ts (10 tests) 6ms
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
456
462
  stdout | tests/storage-provision.test.ts > provisionBuckets > POSTs each bucket to the storage API
457
463
  [supatype] Storage bucket "photos" ready.
458
464
 
459
465
  stdout | tests/storage-provision.test.ts > provisionBuckets > POSTs each bucket to the storage API
460
466
  [supatype] Storage bucket "avatars" ready.
461
467
 
462
- โœ“ tests/storage-provision.test.ts (6 tests) 12ms
463
- โœ“ tests/cached-artifact-format.test.ts (7 tests) 10ms
464
- โœ“ tests/cache-identity-scope.test.ts (33 tests) 9ms
465
- โœ“ tests/target-client-refresh.test.ts (3 tests) 22ms
466
- โœ“ tests/studio-admin-roles.test.ts (6 tests) 8ms
467
- โœ“ tests/proxy-dev-app.test.ts (7 tests) 5ms
468
+ โœ“ tests/storage-provision.test.ts (6 tests) 10ms
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
468
475
  stdout | tests/app-command.test.ts > supatype app add --static > sets app.mode=static and static_dir in supatype.config.ts
469
476
   created package.json
470
477
  created supatype.config.ts
@@ -485,79 +492,79 @@
485
492
  created public/.gitkeep
486
493
  created .gitignore
487
494
 
488
- โœ“ tests/service-role-routes.test.ts (4 tests) 1804ms
489
- โœ“ reads the declared list  608ms
490
- โœ“ is an empty list when a project declares none  599ms
491
- โœ“ sends what the project declared, hook entries included  592ms
492
- โœ“ tests/app-command.test.ts (2 tests) 3147ms
493
- โœ“ sets app.mode=static and static_dir in supatype.config.ts  1581ms
494
- โœ“ creates the static directory when missing  1564ms
495
- โœ“ tests/compose-parsable-defaults.test.ts (2 tests) 7ms
496
- โœ“ tests/rest-cache-admin.test.ts (3 tests) 45ms
497
- โœ“ tests/init-dependency-versions.test.ts (4 tests) 60ms
498
- โœ“ tests/type-resolver.test.ts (2 tests) 24ms
499
- โœ“ tests/engine-push-output.test.ts (7 tests) 8ms
500
- โœ“ tests/cli-help.test.ts (16 tests) 23650ms
501
- โœ“ --help lists all top-level commands  1432ms
502
- โœ“ --version prints package.json version  1508ms
503
- โœ“ self-update --help describes the command  1414ms
504
- โœ“ init --help describes the init command  1625ms
505
- โœ“ push --help describes the push command and --yes flag  1503ms
506
- โœ“ diff --help describes the diff command  1457ms
507
- โœ“ pull --help describes scaffold pull command  1344ms
508
- โœ“ doctor --help describes drift report command  1512ms
509
- โœ“ introspect --help describes database introspection command  1351ms
510
- โœ“ adopt --help describes adoption ceremony command  1533ms
511
- โœ“ reset --help shows --yes flag  1421ms
512
- โœ“ app --help describes the app command with add/remove subcommands  1491ms
513
- โœ“ app add --help shows --static and --port options  1418ms
514
- โœ“ self-host --help shows compose only (legacy commands hidden)  1477ms
515
- โœ“ self-host compose --help shows compose subcommands  1538ms
516
- โœ“ unknown command exits non-zero  1613ms
517
- โœ“ tests/command-chrome-wrap.test.ts (3 tests) 6ms
518
- โœ“ tests/cli-install-method.test.ts (8 tests) 6ms
519
- โœ“ tests/port-in-use.test.ts (4 tests) 33ms
520
- โœ“ tests/archive-name-alias.test.ts (4 tests) 6ms
521
- โœ“ tests/doctor-render.test.ts (3 tests) 7ms
522
- โœ“ tests/ensure-binary.test.ts (2 tests) 12ms
523
- โœ“ tests/tsx-runner.test.ts (7 tests) 3052ms
524
- โœ“ evaluates a simple expression and returns stdout  383ms
525
- โœ“ evaluates TypeScript syntax (type annotations)  367ms
526
- โœ“ can serialize a JSON object to stdout  398ms
527
- โœ“ returns non-zero exit code on syntax error  381ms
528
- โœ“ returns non-zero exit code on runtime error  452ms
529
- โœ“ captures stderr separately from stdout  469ms
530
- โœ“ runs a .ts file and returns its stdout  597ms
531
- โœ“ tests/init-project-detect.test.ts (4 tests) 8ms
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
532
539
  โœ“ tests/doctor-service-role.test.ts (4 tests) 7ms
533
- โœ“ tests/dev-ports-owner.test.ts (6 tests) 6ms
534
540
  โœ“ tests/required-host-components.test.ts (4 tests) 7ms
535
- โœ“ tests/ui-messages.test.ts (5 tests) 5ms
536
- โœ“ tests/normalize-admin-config.test.ts (1 test) 8ms
537
- โœ“ tests/ui-confirm.test.ts (3 tests) 16ms
541
+ โœ“ tests/ui-messages.test.ts (5 tests) 7ms
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
538
545
  โœ“ tests/docker-postgres.test.ts (5 tests) 5ms
539
- โœ“ tests/binary-download-lock.test.ts (2 tests) 7ms
546
+ โœ“ tests/binary-download-lock.test.ts (2 tests) 9ms
540
547
  โœ“ tests/dev-session-lock.test.ts (2 tests) 6ms
541
- โœ“ tests/dev-ports.test.ts (3 tests) 6ms
542
- โœ“ tests/route-manifest.test.ts (1 test) 5ms
543
- โœ“ tests/config-load-failure.test.ts (2 tests) 3799ms
544
- โœ“ is reported, rather than treated as absent  2235ms
545
- โœ“ does not stop the CLI working with no config at all  1561ms
546
- โœ“ tests/dev-ready-panel.test.ts (2 tests) 4ms
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
547
553
  โœ“ tests/realtime-launch.test.ts (1 test) 6ms
548
- โœ“ tests/release-pins.test.ts (2 tests) 5ms
554
+ โœ“ tests/release-pins.test.ts (2 tests) 6ms
555
+ โœ“ tests/dev-ready-panel.test.ts (2 tests) 4ms
549
556
  โœ“ tests/ensure-dev-api-config.test.ts (1 test) 4ms
550
- โœ“ tests/seed-discover.test.ts (2 tests) 22ms
557
+ โœ“ tests/seed-discover.test.ts (2 tests) 24ms
551
558
  โœ“ tests/init-package-json.test.ts (1 test) 4ms
552
- โœ“ tests/resolve-api-url.test.ts (2 tests) 4ms
553
- โœ“ tests/migrate-from-v1.test.ts (1 test) 12ms
554
- โœ“ tests/pg-spawn-env.test.ts (2 tests) 5ms
559
+ โœ“ tests/pg-spawn-env.test.ts (2 tests) 4ms
560
+ โœ“ tests/resolve-api-url.test.ts (2 tests) 6ms
555
561
  โœ“ tests/cli-package-version.test.ts (1 test) 4ms
556
- โœ“ tests/stdin-after-ink.test.ts (1 test) 3ms
562
+ โœ“ tests/migrate-from-v1.test.ts (1 test) 12ms
557
563
  โœ“ tests/postgres-archive-tag.test.ts (1 test) 3ms
564
+ โœ“ tests/stdin-after-ink.test.ts (1 test) 3ms
558
565
 
559
-  Test Files  94 passed (94)
560
-  Tests  986 passed (986)
561
-  Start at  09:24:20
562
-  Duration  54.40s (transform 9.67s, setup 0ms, import 58.44s, tests 83.74s, environment 19ms)
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)
563
570
 
@@ -1,4 +1,4 @@
1
1
 
2
- > @supatype/cli@0.3.0 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,kBAAk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