@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.
- package/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-test.log +161 -154
- package/.turbo/turbo-typecheck.log +1 -1
- package/dist/api-config-cache.d.ts +20 -0
- package/dist/api-config-cache.d.ts.map +1 -1
- package/dist/api-config-cache.js +27 -0
- package/dist/api-config-cache.js.map +1 -1
- package/dist/augmentation-generator.d.ts.map +1 -1
- package/dist/augmentation-generator.js +63 -18
- package/dist/augmentation-generator.js.map +1 -1
- package/dist/cli-version-embedded.js +1 -1
- package/dist/client-generator.d.ts +3 -0
- package/dist/client-generator.d.ts.map +1 -0
- package/dist/client-generator.js +108 -0
- package/dist/client-generator.js.map +1 -0
- package/dist/commands/admin.d.ts.map +1 -1
- package/dist/commands/admin.js +21 -4
- package/dist/commands/admin.js.map +1 -1
- package/dist/commands/functions.d.ts.map +1 -1
- package/dist/commands/functions.js +2 -2
- package/dist/commands/functions.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +7 -10
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/keys.d.ts +35 -0
- package/dist/commands/keys.d.ts.map +1 -1
- package/dist/commands/keys.js +90 -6
- package/dist/commands/keys.js.map +1 -1
- package/dist/commands/push.d.ts.map +1 -1
- package/dist/commands/push.js +23 -13
- package/dist/commands/push.js.map +1 -1
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +19 -1
- package/dist/commands/update.js.map +1 -1
- package/dist/db-port.d.ts +36 -0
- package/dist/db-port.d.ts.map +1 -0
- package/dist/db-port.js +90 -0
- package/dist/db-port.js.map +1 -0
- package/dist/dev-compose.d.ts +13 -0
- package/dist/dev-compose.d.ts.map +1 -1
- package/dist/dev-compose.js +205 -18
- package/dist/dev-compose.js.map +1 -1
- package/dist/functions-context-refresh.d.ts +4 -0
- package/dist/functions-context-refresh.d.ts.map +1 -0
- package/dist/functions-context-refresh.js +26 -0
- package/dist/functions-context-refresh.js.map +1 -0
- package/dist/functions-deno-types.d.ts +9 -0
- package/dist/functions-deno-types.d.ts.map +1 -1
- package/dist/functions-deno-types.js +21 -1
- package/dist/functions-deno-types.js.map +1 -1
- package/dist/gitignore.d.ts +3 -1
- package/dist/gitignore.d.ts.map +1 -1
- package/dist/gitignore.js +28 -6
- package/dist/gitignore.js.map +1 -1
- package/dist/model-cache.d.ts +27 -0
- package/dist/model-cache.d.ts.map +1 -1
- package/dist/model-cache.js +61 -0
- package/dist/model-cache.js.map +1 -1
- package/dist/schema-ast-v2.d.ts.map +1 -1
- package/dist/schema-ast-v2.js +17 -8
- package/dist/schema-ast-v2.js.map +1 -1
- package/dist/self-host-compose.d.ts +10 -2
- package/dist/self-host-compose.d.ts.map +1 -1
- package/dist/self-host-compose.js +114 -9
- package/dist/self-host-compose.js.map +1 -1
- package/dist/strict.d.ts +29 -0
- package/dist/strict.d.ts.map +1 -0
- package/dist/strict.js +37 -0
- package/dist/strict.js.map +1 -0
- package/dist/studio-dev-server.d.ts +12 -2
- package/dist/studio-dev-server.d.ts.map +1 -1
- package/dist/studio-dev-server.js +12 -2
- package/dist/studio-dev-server.js.map +1 -1
- package/dist/type-extractor.d.ts.map +1 -1
- package/dist/type-extractor.js +8 -2
- package/dist/type-extractor.js.map +1 -1
- package/dist/type-generation.d.ts +14 -0
- package/dist/type-generation.d.ts.map +1 -1
- package/dist/type-generation.js +41 -2
- package/dist/type-generation.js.map +1 -1
- package/package.json +2 -2
- package/src/api-config-cache.ts +30 -0
- package/src/augmentation-generator.ts +75 -18
- package/src/cli-version-embedded.ts +1 -1
- package/src/client-generator.ts +122 -0
- package/src/commands/admin.ts +23 -6
- package/src/commands/functions.ts +5 -2
- package/src/commands/init.ts +10 -10
- package/src/commands/keys.ts +112 -7
- package/src/commands/push.ts +25 -15
- package/src/commands/update.ts +20 -1
- package/src/db-port.ts +99 -0
- package/src/dev-compose.ts +244 -19
- package/src/functions-context-refresh.ts +25 -0
- package/src/functions-deno-types.ts +24 -1
- package/src/gitignore.ts +31 -10
- package/src/model-cache.ts +48 -0
- package/src/schema-ast-v2.ts +17 -8
- package/src/self-host-compose.ts +115 -9
- package/src/strict.ts +40 -0
- package/src/studio-dev-server.ts +12 -2
- package/src/type-extractor.ts +8 -2
- package/src/type-generation.ts +47 -2
- package/tests/ast-derived-outputs.test.ts +92 -0
- package/tests/augmentation-generator.test.ts +127 -1
- package/tests/client-generator.test.ts +103 -0
- package/tests/db-port.test.ts +128 -0
- package/tests/external-database-compose.test.ts +8 -1
- package/tests/functions-context-refresh.test.ts +86 -0
- package/tests/gitignore-secrets.test.ts +90 -0
- package/tests/keys-write.test.ts +148 -0
- package/tests/runtime-contract.test.ts +115 -2
- package/tests/strict.test.ts +78 -0
- package/tests/type-extractor.test.ts +34 -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.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
|
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
|
-
> @supatype/cli@0.3.
|
|
2
|
+
> @supatype/cli@0.3.2 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/
|
|
9
|
-
[32mโ[39m tests/
|
|
10
|
-
[32mโ[39m tests/model-hooks.test.ts [2m([22m[2m23 tests[22m[2m)[22m[32m
|
|
11
|
-
[32mโ[39m tests/runtime-contract.test.ts [2m([22m[
|
|
8
|
+
[32mโ[39m tests/access-composition.test.ts [2m([22m[2m26 tests[22m[2m)[22m[32m 265[2mms[22m[39m
|
|
9
|
+
[32mโ[39m tests/type-extractor.test.ts [2m([22m[2m49 tests[22m[2m)[22m[33m 459[2mms[22m[39m
|
|
10
|
+
[32mโ[39m tests/model-hooks.test.ts [2m([22m[2m23 tests[22m[2m)[22m[32m 178[2mms[22m[39m
|
|
11
|
+
[32mโ[39m tests/runtime-contract.test.ts [2m([22m[2m62 tests[22m[2m)[22m[33m 309[2mms[22m[39m
|
|
12
12
|
[90mstdout[2m | tests/init.test.ts[2m > [22m[2mscaffold()[2m > [22m[2mcreates all expected files
|
|
13
13
|
[22m[39m 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
|
-
[32mโ[39m tests/init.test.ts [2m([22m[2m28 tests[22m[2m)[22m[32m
|
|
327
|
-
[32mโ[39m tests/external-database-compose.test.ts [2m([22m[2m23 tests[22m[2m)[22m[32m
|
|
328
|
-
[32mโ[39m tests/
|
|
329
|
-
[32mโ[39m tests/model-
|
|
330
|
-
[32mโ[39m tests/
|
|
331
|
-
[32mโ[39m tests/
|
|
332
|
-
[32mโ[39m tests/
|
|
326
|
+
[32mโ[39m tests/init.test.ts [2m([22m[2m28 tests[22m[2m)[22m[32m 173[2mms[22m[39m
|
|
327
|
+
[32mโ[39m tests/external-database-compose.test.ts [2m([22m[2m23 tests[22m[2m)[22m[32m 16[2mms[22m[39m
|
|
328
|
+
[32mโ[39m tests/augmentation-generator.test.ts [2m([22m[2m16 tests[22m[2m)[22m[32m 30[2mms[22m[39m
|
|
329
|
+
[32mโ[39m tests/model-constraints.test.ts [2m([22m[2m18 tests[22m[2m)[22m[32m 243[2mms[22m[39m
|
|
330
|
+
[32mโ[39m tests/model-versions.test.ts [2m([22m[2m19 tests[22m[2m)[22m[32m 106[2mms[22m[39m
|
|
331
|
+
[32mโ[39m tests/api-config-cache-seed.test.ts [2m([22m[2m15 tests[22m[2m)[22m[32m 42[2mms[22m[39m
|
|
332
|
+
[32mโ[39m tests/model-cache-declaration.test.ts [2m([22m[2m18 tests[22m[2m)[22m[32m 115[2mms[22m[39m
|
|
333
|
+
[32mโ[39m tests/field-masking-tier.test.ts [2m([22m[2m16 tests[22m[2m)[22m[32m 39[2mms[22m[39m
|
|
333
334
|
|
|
334
|
-
[32mโ[39m tests/dev-ui.test.ts [2m([22m[2m21 tests[22m[2m)[22m[32m
|
|
335
|
+
[32mโ[39m tests/dev-ui.test.ts [2m([22m[2m21 tests[22m[2m)[22m[32m 130[2mms[22m[39m
|
|
335
336
|
|
|
336
337
|
[supatype] Shutting downโฆ
|
|
337
|
-
[32mโ[39m tests/hooks-generator.test.ts [2m([22m[2m7 tests[22m[2m)[22m[33m
|
|
338
|
-
[33m[2mโ[22m[39m typechecks under strict mode, together with a handler that uses it [33m
|
|
339
|
-
[33m[2mโ[22m[39m rejects a handler for a table that declares no hook [33m
|
|
340
|
-
[33m[2mโ[22m[39m typechecks with a validator written the way the docs will show it [33m
|
|
338
|
+
[32mโ[39m tests/hooks-generator.test.ts [2m([22m[2m7 tests[22m[2m)[22m[33m 10509[2mms[22m[39m
|
|
339
|
+
[33m[2mโ[22m[39m typechecks under strict mode, together with a handler that uses it [33m 3729[2mms[22m[39m
|
|
340
|
+
[33m[2mโ[22m[39m rejects a handler for a table that declares no hook [33m 3791[2mms[22m[39m
|
|
341
|
+
[33m[2mโ[22m[39m typechecks with a validator written the way the docs will show it [33m 2921[2mms[22m[39m
|
|
341
342
|
[90mstdout[2m | tests/docker-runtime.test.ts[2m > [22m[2mrequireDockerDaemon[2m > [22m[2mexits when the daemon is unavailable
|
|
342
343
|
[22m[39m
|
|
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
|
-
[32mโ[39m tests/docker-runtime.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m
|
|
350
|
-
[32mโ[39m tests/config.test.ts [2m([22m[2m19 tests[22m[2m)[22m[33m
|
|
351
|
-
[33m[2mโ[22m[39m loads a valid supatype.config.ts (plain export default, no package imports) [33m
|
|
352
|
-
[33m[2mโ[22m[39m normalizes shorthand schema string to { path, pg_schema } [33m
|
|
353
|
-
[33m[2mโ[22m[39m loads a supatype.config.js (plain ESM) [33m
|
|
354
|
-
[33m[2mโ[22m[39m loads config without a versions section (latest by default) [33m
|
|
355
|
-
[33m[2mโ[22m[39m prefers supatype.config.ts over supatype.config.js when both exist [33m
|
|
356
|
-
[33m[2mโ[22m[39m supports optional output field in config [33m
|
|
357
|
-
[33m[2mโ[22m[39m merges supatype.local.config.ts over base [33m
|
|
358
|
-
[33m[2mโ[22m[39m loads defineConfig import before @supatype/cli is installed (init scaffold) [33m
|
|
359
|
-
[32mโ[39m tests/db-preflight.test.ts [2m([22m[2m14 tests[22m[2m)[22m[32m
|
|
360
|
-
[32mโ[39m tests/
|
|
361
|
-
[32mโ[39m tests/
|
|
362
|
-
|
|
363
|
-
[33m[2mโ[22m[39m
|
|
364
|
-
[33m[2mโ[22m[39m
|
|
365
|
-
|
|
366
|
-
[32mโ[39m tests/
|
|
367
|
-
|
|
368
|
-
[33m[2mโ[22m[39m tsc
|
|
369
|
-
|
|
370
|
-
[32mโ[39m tests/
|
|
371
|
-
[32mโ[39m tests/
|
|
372
|
-
[32mโ[39m tests/
|
|
373
|
-
[32mโ[39m tests/
|
|
350
|
+
[32mโ[39m tests/docker-runtime.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m 16[2mms[22m[39m
|
|
351
|
+
[32mโ[39m tests/config.test.ts [2m([22m[2m19 tests[22m[2m)[22m[33m 10463[2mms[22m[39m
|
|
352
|
+
[33m[2mโ[22m[39m loads a valid supatype.config.ts (plain export default, no package imports) [33m 1328[2mms[22m[39m
|
|
353
|
+
[33m[2mโ[22m[39m normalizes shorthand schema string to { path, pg_schema } [33m 1353[2mms[22m[39m
|
|
354
|
+
[33m[2mโ[22m[39m loads a supatype.config.js (plain ESM) [33m 1161[2mms[22m[39m
|
|
355
|
+
[33m[2mโ[22m[39m loads config without a versions section (latest by default) [33m 1543[2mms[22m[39m
|
|
356
|
+
[33m[2mโ[22m[39m prefers supatype.config.ts over supatype.config.js when both exist [33m 1011[2mms[22m[39m
|
|
357
|
+
[33m[2mโ[22m[39m supports optional output field in config [33m 1040[2mms[22m[39m
|
|
358
|
+
[33m[2mโ[22m[39m merges supatype.local.config.ts over base [33m 1764[2mms[22m[39m
|
|
359
|
+
[33m[2mโ[22m[39m loads defineConfig import before @supatype/cli is installed (init scaffold) [33m 1229[2mms[22m[39m
|
|
360
|
+
[32mโ[39m tests/db-preflight.test.ts [2m([22m[2m14 tests[22m[2m)[22m[32m 10[2mms[22m[39m
|
|
361
|
+
[32mโ[39m tests/keys-write.test.ts [2m([22m[2m11 tests[22m[2m)[22m[32m 21[2mms[22m[39m
|
|
362
|
+
[32mโ[39m tests/field-bounds.test.ts [2m([22m[2m23 tests[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
363
|
+
[32mโ[39m tests/cache-clean.test.ts [2m([22m[2m8 tests[22m[2m)[22m[33m 2210[2mms[22m[39m
|
|
364
|
+
[33m[2mโ[22m[39m keeps pinned versions and removes the rest [33m 671[2mms[22m[39m
|
|
365
|
+
[33m[2mโ[22m[39m --force removes pinned versions [33m 762[2mms[22m[39m
|
|
366
|
+
[33m[2mโ[22m[39m explicit version removes even when pinned (with warning) [33m 741[2mms[22m[39m
|
|
367
|
+
[32mโ[39m tests/cache-provider-config.test.ts [2m([22m[2m12 tests[22m[2m)[22m[32m 8[2mms[22m[39m
|
|
368
|
+
[32mโ[39m tests/functions-deno-types.test.ts [2m([22m[2m7 tests[22m[2m)[22m[33m 3188[2mms[22m[39m
|
|
369
|
+
[33m[2mโ[22m[39m tsc fails with Cannot find name Deno without ambient types [33m 2269[2mms[22m[39m
|
|
370
|
+
[33m[2mโ[22m[39m tsc passes for Deno.env after ensureFunctionsDenoTypes [33m 899[2mms[22m[39m
|
|
371
|
+
[32mโ[39m tests/field-bounds-matrix.test.ts [2m([22m[2m124 tests[22m[2m)[22m[32m 33[2mms[22m[39m
|
|
372
|
+
[32mโ[39m tests/engine-floor.test.ts [2m([22m[2m17 tests[22m[2m)[22m[32m 14[2mms[22m[39m
|
|
373
|
+
[32mโ[39m tests/external-database-config.test.ts [2m([22m[2m14 tests[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
374
|
+
[32mโ[39m tests/compose-services.test.ts [2m([22m[2m12 tests[22m[2m)[22m[32m 13[2mms[22m[39m
|
|
375
|
+
[32mโ[39m tests/field-validators.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m 81[2mms[22m[39m
|
|
374
376
|
[32mโ[39m tests/native-keyspace.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m 39[2mms[22m[39m
|
|
375
|
-
[32mโ[39m tests/
|
|
376
|
-
[32mโ[39m tests/
|
|
377
|
-
[32mโ[39m tests/
|
|
377
|
+
[32mโ[39m tests/db-port.test.ts [2m([22m[2m14 tests[22m[2m)[22m[32m 19[2mms[22m[39m
|
|
378
|
+
[32mโ[39m tests/command-chrome-coverage.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 18[2mms[22m[39m
|
|
379
|
+
[32mโ[39m tests/hook-upload.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
380
|
+
[32mโ[39m tests/env-file.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 20[2mms[22m[39m
|
|
378
381
|
[90mstdout[2m | tests/link.test.ts[2m > [22m[2mlink model[2m > [22m[2mmigrates cloud.json into link.json
|
|
379
382
|
[22m[39m created package.json
|
|
380
383
|
created supatype.config.ts
|
|
381
|
-
[90mstderr[2m | tests/link.test.ts[2m > [22m[2mlink model[2m > [22m[2mmigrates cloud.json into link.json
|
|
382
|
-
[22m[39m[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
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
391
|
+
[90mstderr[2m | tests/link.test.ts[2m > [22m[2mlink model[2m > [22m[2mmigrates cloud.json into link.json
|
|
392
|
+
[22m[39m[supatype] Migrated .supatype/cloud.json โ .supatype/link.json (legacy files kept; remove manually when ready).
|
|
393
|
+
|
|
394
|
+
[32mโ[39m tests/link.test.ts [2m([22m[2m4 tests[22m[2m)[22m[33m 3203[2mms[22m[39m
|
|
395
|
+
[33m[2mโ[22m[39m resolveTarget returns cloud mode with /api/v1 prefix [33m 1058[2mms[22m[39m
|
|
396
|
+
[33m[2mโ[22m[39m resolveTarget returns self-host mode with /platform/v1 prefix [33m 1015[2mms[22m[39m
|
|
397
|
+
[33m[2mโ[22m[39m targetSchemaRollback posts to /platform/v1 when linked [33m 1117[2mms[22m[39m
|
|
395
398
|
[90mstdout[2m | tests/admin-ensure.test.ts[2m > [22m[2minit admin seed in .env[2m > [22m[2mwrites SUPATYPE_ADMIN_* when scaffold options include credentials
|
|
396
399
|
[22m[39m 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
|
-
[32mโ[39m tests/admin-ensure.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m
|
|
406
|
-
[32mโ[39m tests/service-role-check.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m
|
|
408
|
+
[32mโ[39m tests/admin-ensure.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m 164[2mms[22m[39m
|
|
409
|
+
[32mโ[39m tests/service-role-check.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m 14[2mms[22m[39m
|
|
407
410
|
[90mstdout[2m | tests/admin-studio-membership.test.ts[2m > [22m[2mfirst admin user creation[2m > [22m[2mdoes not write a role into app_metadata
|
|
408
411
|
[22m[39m[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
|
[22m[39m[supatype] Admin user "admin@example.com" created (role: admin).
|
|
421
424
|
[supatype] Log in at /admin after starting the dev server.
|
|
422
425
|
|
|
423
|
-
[32mโ[39m tests/admin-studio-membership.test.ts [2m([22m[2m5 tests[22m[2m)[22m[33m
|
|
424
|
-
[32mโ[39m tests/
|
|
425
|
-
[32mโ[39m tests/
|
|
426
|
-
|
|
427
|
-
[33m[2mโ[22m[39m
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
[33m[2mโ[22m[39m
|
|
431
|
-
[33m[2mโ[22m[39m
|
|
432
|
-
[33m[2mโ[22m[39m
|
|
433
|
-
[33m[2mโ[22m[39m
|
|
434
|
-
[33m[2mโ[22m[39m
|
|
435
|
-
[33m[2mโ[22m[39m
|
|
436
|
-
[33m[2mโ[22m[39m
|
|
437
|
-
[33m[2mโ[22m[39m
|
|
438
|
-
|
|
439
|
-
[33m[2mโ[22m[39m
|
|
440
|
-
[33m[2mโ[22m[39m
|
|
441
|
-
[32mโ[39m tests/preview-config-check.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
426
|
+
[32mโ[39m tests/admin-studio-membership.test.ts [2m([22m[2m5 tests[22m[2m)[22m[33m 492[2mms[22m[39m
|
|
427
|
+
[32mโ[39m tests/pull-utils.test.ts [2m([22m[2m49 tests[22m[2m)[22m[32m 10[2mms[22m[39m
|
|
428
|
+
[32mโ[39m tests/schema-sources.test.ts [2m([22m[2m5 tests[22m[2m)[22m[33m 1316[2mms[22m[39m
|
|
429
|
+
[33m[2mโ[22m[39m buildSchemaSourcesPayload includes manifest metadata [33m 542[2mms[22m[39m
|
|
430
|
+
[33m[2mโ[22m[39m restore overwrites modified local files [33m 729[2mms[22m[39m
|
|
431
|
+
[32mโ[39m tests/preview-config-check.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 9[2mms[22m[39m
|
|
432
|
+
[32mโ[39m tests/keys.test.ts [2m([22m[2m11 tests[22m[2m)[22m[33m 18907[2mms[22m[39m
|
|
433
|
+
[33m[2mโ[22m[39m exits 0 with --secret [33m 1728[2mms[22m[39m
|
|
434
|
+
[33m[2mโ[22m[39m outputs ANON_KEY= line [33m 1574[2mms[22m[39m
|
|
435
|
+
[33m[2mโ[22m[39m outputs SERVICE_ROLE_KEY= line [33m 1444[2mms[22m[39m
|
|
436
|
+
[33m[2mโ[22m[39m ANON_KEY is a valid three-part JWT [33m 1606[2mms[22m[39m
|
|
437
|
+
[33m[2mโ[22m[39m SERVICE_ROLE_KEY payload has role: service_role [33m 1463[2mms[22m[39m
|
|
438
|
+
[33m[2mโ[22m[39m JWT has exp in the future [33m 1582[2mms[22m[39m
|
|
439
|
+
[33m[2mโ[22m[39m --exp-years changes the expiry window [33m 3261[2mms[22m[39m
|
|
440
|
+
[33m[2mโ[22m[39m reads JWT_SECRET from environment variable [33m 1569[2mms[22m[39m
|
|
441
|
+
[33m[2mโ[22m[39m reads JWT_SECRET from .env file [33m 1606[2mms[22m[39m
|
|
442
|
+
[33m[2mโ[22m[39m exits non-zero when no secret is available [33m 1575[2mms[22m[39m
|
|
443
|
+
[33m[2mโ[22m[39m keys --help shows --secret and --exp-years options [33m 1493[2mms[22m[39m
|
|
442
444
|
[90mstderr[2m | tests/binary-cache-cloud-overrides.test.ts[2m > [22m[2misLinkedToCloudProject[2m > [22m[2mis true when .supatype/cloud.json has projectSlug
|
|
443
445
|
[22m[39m[supatype] Migrated .supatype/cloud.json โ .supatype/link.json (legacy files kept; remove manually when ready).
|
|
444
446
|
|
|
445
|
-
[32mโ[39m tests/binary-cache-cloud-overrides.test.ts [2m([22m[2m11 tests[22m[2m)[22m[32m
|
|
446
|
-
[32mโ[39m tests/homebrew-formula.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m
|
|
447
|
+
[32mโ[39m tests/binary-cache-cloud-overrides.test.ts [2m([22m[2m11 tests[22m[2m)[22m[32m 24[2mms[22m[39m
|
|
448
|
+
[32mโ[39m tests/homebrew-formula.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 271[2mms[22m[39m
|
|
449
|
+
[32mโ[39m tests/local-server-image-env.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 20[2mms[22m[39m
|
|
450
|
+
[32mโ[39m tests/minisign.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
447
451
|
[32mโ[39m tests/model-cache-manifest.test.ts [2m([22m[2m12 tests[22m[2m)[22m[32m 10[2mms[22m[39m
|
|
448
|
-
[32mโ[39m tests/local-
|
|
449
|
-
[32mโ[39m tests/
|
|
450
|
-
[32mโ[39m tests/
|
|
451
|
-
[32mโ[39m tests/
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
[32mโ[39m tests/self-host-keys.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m
|
|
455
|
-
[32mโ[39m tests/
|
|
452
|
+
[32mโ[39m tests/local-secrets.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 8[2mms[22m[39m
|
|
453
|
+
[32mโ[39m tests/client-generator.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 18[2mms[22m[39m
|
|
454
|
+
[32mโ[39m tests/functions-concurrency.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
455
|
+
[32mโ[39m tests/readiness-poll.test.ts [2m([22m[2m3 tests[22m[2m)[22m[33m 329[2mms[22m[39m
|
|
456
|
+
[33m[2mโ[22m[39m ends promptly when it carries a deadline [33m 322[2mms[22m[39m
|
|
457
|
+
[32mโ[39m tests/ast-derived-outputs.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 27[2mms[22m[39m
|
|
458
|
+
[32mโ[39m tests/self-host-keys.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 16[2mms[22m[39m
|
|
459
|
+
[32mโ[39m tests/functions-context-refresh.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 11[2mms[22m[39m
|
|
460
|
+
[32mโ[39m tests/api-schemas.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m 10[2mms[22m[39m
|
|
461
|
+
[32mโ[39m tests/gitignore-secrets.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 95[2mms[22m[39m
|
|
456
462
|
[90mstdout[2m | tests/storage-provision.test.ts[2m > [22m[2mprovisionBuckets[2m > [22m[2mPOSTs each bucket to the storage API
|
|
457
463
|
[22m[39m[supatype] Storage bucket "photos" ready.
|
|
458
464
|
|
|
459
465
|
[90mstdout[2m | tests/storage-provision.test.ts[2m > [22m[2mprovisionBuckets[2m > [22m[2mPOSTs each bucket to the storage API
|
|
460
466
|
[22m[39m[supatype] Storage bucket "avatars" ready.
|
|
461
467
|
|
|
462
|
-
[32mโ[39m tests/storage-provision.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m
|
|
463
|
-
[32mโ[39m tests/
|
|
464
|
-
[32mโ[39m tests/
|
|
465
|
-
[32mโ[39m tests/
|
|
466
|
-
[32mโ[39m tests/
|
|
467
|
-
[32mโ[39m tests/
|
|
468
|
+
[32mโ[39m tests/storage-provision.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 10[2mms[22m[39m
|
|
469
|
+
[32mโ[39m tests/strict.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 11[2mms[22m[39m
|
|
470
|
+
[32mโ[39m tests/cached-artifact-format.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 14[2mms[22m[39m
|
|
471
|
+
[32mโ[39m tests/cache-identity-scope.test.ts [2m([22m[2m33 tests[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
472
|
+
[32mโ[39m tests/target-client-refresh.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 11[2mms[22m[39m
|
|
473
|
+
[32mโ[39m tests/studio-admin-roles.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 9[2mms[22m[39m
|
|
474
|
+
[32mโ[39m tests/proxy-dev-app.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
468
475
|
[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
|
|
469
476
|
[22m[39m 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
|
-
[32mโ[39m tests/service-role-routes.test.ts [2m([22m[2m4 tests[22m[2m)[22m[33m
|
|
489
|
-
[33m[2mโ[22m[39m reads the declared list [33m
|
|
490
|
-
[33m[2mโ[22m[39m is an empty list when a project declares none [33m
|
|
491
|
-
[33m[2mโ[22m[39m sends what the project declared, hook entries included [33m
|
|
492
|
-
[32mโ[39m tests/
|
|
493
|
-
|
|
494
|
-
[33m[2mโ[22m[39m
|
|
495
|
-
|
|
496
|
-
[32mโ[39m tests/rest-cache-admin.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m
|
|
497
|
-
[32mโ[39m tests/init-dependency-versions.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m
|
|
498
|
-
[32mโ[39m tests/
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
[33m[2mโ[22m[39m --help
|
|
502
|
-
[33m[2mโ[22m[39m --
|
|
503
|
-
[33m[2mโ[22m[39m
|
|
504
|
-
[33m[2mโ[22m[39m
|
|
505
|
-
[33m[2mโ[22m[39m
|
|
506
|
-
[33m[2mโ[22m[39m
|
|
507
|
-
[33m[2mโ[22m[39m
|
|
508
|
-
[33m[2mโ[22m[39m
|
|
509
|
-
[33m[2mโ[22m[39m
|
|
510
|
-
[33m[2mโ[22m[39m
|
|
511
|
-
[33m[2mโ[22m[39m
|
|
512
|
-
[33m[2mโ[22m[39m
|
|
513
|
-
[33m[2mโ[22m[39m
|
|
514
|
-
[33m[2mโ[22m[39m
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
[32mโ[39m tests/command-chrome-wrap.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m
|
|
518
|
-
[32mโ[39m tests/
|
|
519
|
-
[32mโ[39m tests/
|
|
520
|
-
[32mโ[39m tests/
|
|
521
|
-
[32mโ[39m tests/
|
|
522
|
-
[32mโ[39m tests/
|
|
523
|
-
[32mโ[39m tests/
|
|
524
|
-
|
|
525
|
-
[33m[2mโ[22m[39m evaluates
|
|
526
|
-
[33m[2mโ[22m[39m
|
|
527
|
-
[33m[2mโ[22m[39m
|
|
528
|
-
[33m[2mโ[22m[39m returns non-zero exit code on
|
|
529
|
-
[33m[2mโ[22m[39m
|
|
530
|
-
[33m[2mโ[22m[39m
|
|
531
|
-
|
|
495
|
+
[32mโ[39m tests/service-role-routes.test.ts [2m([22m[2m4 tests[22m[2m)[22m[33m 1872[2mms[22m[39m
|
|
496
|
+
[33m[2mโ[22m[39m reads the declared list [33m 582[2mms[22m[39m
|
|
497
|
+
[33m[2mโ[22m[39m is an empty list when a project declares none [33m 646[2mms[22m[39m
|
|
498
|
+
[33m[2mโ[22m[39m sends what the project declared, hook entries included [33m 640[2mms[22m[39m
|
|
499
|
+
[32mโ[39m tests/compose-parsable-defaults.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 8[2mms[22m[39m
|
|
500
|
+
[32mโ[39m tests/app-command.test.ts [2m([22m[2m2 tests[22m[2m)[22m[33m 3419[2mms[22m[39m
|
|
501
|
+
[33m[2mโ[22m[39m sets app.mode=static and static_dir in supatype.config.ts [33m 1745[2mms[22m[39m
|
|
502
|
+
[33m[2mโ[22m[39m creates the static directory when missing [33m 1672[2mms[22m[39m
|
|
503
|
+
[32mโ[39m tests/rest-cache-admin.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 55[2mms[22m[39m
|
|
504
|
+
[32mโ[39m tests/init-dependency-versions.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 42[2mms[22m[39m
|
|
505
|
+
[32mโ[39m tests/cli-help.test.ts [2m([22m[2m16 tests[22m[2m)[22m[33m 24704[2mms[22m[39m
|
|
506
|
+
[33m[2mโ[22m[39m --help lists all top-level commands [33m 1544[2mms[22m[39m
|
|
507
|
+
[33m[2mโ[22m[39m --version prints package.json version [33m 1558[2mms[22m[39m
|
|
508
|
+
[33m[2mโ[22m[39m self-update --help describes the command [33m 1544[2mms[22m[39m
|
|
509
|
+
[33m[2mโ[22m[39m init --help describes the init command [33m 1554[2mms[22m[39m
|
|
510
|
+
[33m[2mโ[22m[39m push --help describes the push command and --yes flag [33m 1589[2mms[22m[39m
|
|
511
|
+
[33m[2mโ[22m[39m diff --help describes the diff command [33m 1493[2mms[22m[39m
|
|
512
|
+
[33m[2mโ[22m[39m pull --help describes scaffold pull command [33m 1574[2mms[22m[39m
|
|
513
|
+
[33m[2mโ[22m[39m doctor --help describes drift report command [33m 1472[2mms[22m[39m
|
|
514
|
+
[33m[2mโ[22m[39m introspect --help describes database introspection command [33m 1583[2mms[22m[39m
|
|
515
|
+
[33m[2mโ[22m[39m adopt --help describes adoption ceremony command [33m 1508[2mms[22m[39m
|
|
516
|
+
[33m[2mโ[22m[39m reset --help shows --yes flag [33m 1474[2mms[22m[39m
|
|
517
|
+
[33m[2mโ[22m[39m app --help describes the app command with add/remove subcommands [33m 1443[2mms[22m[39m
|
|
518
|
+
[33m[2mโ[22m[39m app add --help shows --static and --port options [33m 1675[2mms[22m[39m
|
|
519
|
+
[33m[2mโ[22m[39m self-host --help shows compose only (legacy commands hidden) [33m 1568[2mms[22m[39m
|
|
520
|
+
[33m[2mโ[22m[39m self-host compose --help shows compose subcommands [33m 1558[2mms[22m[39m
|
|
521
|
+
[33m[2mโ[22m[39m unknown command exits non-zero [33m 1561[2mms[22m[39m
|
|
522
|
+
[32mโ[39m tests/engine-push-output.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 13[2mms[22m[39m
|
|
523
|
+
[32mโ[39m tests/type-resolver.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 21[2mms[22m[39m
|
|
524
|
+
[32mโ[39m tests/command-chrome-wrap.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
525
|
+
[32mโ[39m tests/doctor-render.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
526
|
+
[32mโ[39m tests/cli-install-method.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 8[2mms[22m[39m
|
|
527
|
+
[32mโ[39m tests/port-in-use.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 24[2mms[22m[39m
|
|
528
|
+
[32mโ[39m tests/archive-name-alias.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
529
|
+
[32mโ[39m tests/init-project-detect.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
530
|
+
[32mโ[39m tests/ensure-binary.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 15[2mms[22m[39m
|
|
531
|
+
[32mโ[39m tests/tsx-runner.test.ts [2m([22m[2m7 tests[22m[2m)[22m[33m 3274[2mms[22m[39m
|
|
532
|
+
[33m[2mโ[22m[39m evaluates a simple expression and returns stdout [33m 466[2mms[22m[39m
|
|
533
|
+
[33m[2mโ[22m[39m evaluates TypeScript syntax (type annotations) [33m 442[2mms[22m[39m
|
|
534
|
+
[33m[2mโ[22m[39m can serialize a JSON object to stdout [33m 456[2mms[22m[39m
|
|
535
|
+
[33m[2mโ[22m[39m returns non-zero exit code on syntax error [33m 419[2mms[22m[39m
|
|
536
|
+
[33m[2mโ[22m[39m returns non-zero exit code on runtime error [33m 526[2mms[22m[39m
|
|
537
|
+
[33m[2mโ[22m[39m captures stderr separately from stdout [33m 392[2mms[22m[39m
|
|
538
|
+
[33m[2mโ[22m[39m runs a .ts file and returns its stdout [33m 568[2mms[22m[39m
|
|
532
539
|
[32mโ[39m tests/doctor-service-role.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
533
|
-
[32mโ[39m tests/dev-ports-owner.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
534
540
|
[32mโ[39m tests/required-host-components.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
535
|
-
[32mโ[39m tests/ui-messages.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m
|
|
536
|
-
[32mโ[39m tests/
|
|
537
|
-
[32mโ[39m tests/
|
|
541
|
+
[32mโ[39m tests/ui-messages.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
542
|
+
[32mโ[39m tests/dev-ports-owner.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
543
|
+
[32mโ[39m tests/normalize-admin-config.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 9[2mms[22m[39m
|
|
544
|
+
[32mโ[39m tests/ui-confirm.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 8[2mms[22m[39m
|
|
538
545
|
[32mโ[39m tests/docker-postgres.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
539
|
-
[32mโ[39m tests/binary-download-lock.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m
|
|
546
|
+
[32mโ[39m tests/binary-download-lock.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 9[2mms[22m[39m
|
|
540
547
|
[32mโ[39m tests/dev-session-lock.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
541
|
-
[32mโ[39m tests/
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
[32mโ[39m tests/dev-ready-panel.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
548
|
+
[32mโ[39m tests/config-load-failure.test.ts [2m([22m[2m2 tests[22m[2m)[22m[33m 3861[2mms[22m[39m
|
|
549
|
+
[33m[2mโ[22m[39m is reported, rather than treated as absent [33m 2316[2mms[22m[39m
|
|
550
|
+
[33m[2mโ[22m[39m does not stop the CLI working with no config at all [33m 1542[2mms[22m[39m
|
|
551
|
+
[32mโ[39m tests/dev-ports.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
552
|
+
[32mโ[39m tests/route-manifest.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 9[2mms[22m[39m
|
|
547
553
|
[32mโ[39m tests/realtime-launch.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
548
|
-
[32mโ[39m tests/release-pins.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m
|
|
554
|
+
[32mโ[39m tests/release-pins.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
555
|
+
[32mโ[39m tests/dev-ready-panel.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
549
556
|
[32mโ[39m tests/ensure-dev-api-config.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
550
|
-
[32mโ[39m tests/seed-discover.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m
|
|
557
|
+
[32mโ[39m tests/seed-discover.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 24[2mms[22m[39m
|
|
551
558
|
[32mโ[39m tests/init-package-json.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
552
|
-
[32mโ[39m tests/
|
|
553
|
-
[32mโ[39m tests/
|
|
554
|
-
[32mโ[39m tests/pg-spawn-env.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
559
|
+
[32mโ[39m tests/pg-spawn-env.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
560
|
+
[32mโ[39m tests/resolve-api-url.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
555
561
|
[32mโ[39m tests/cli-package-version.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
556
|
-
[32mโ[39m tests/
|
|
562
|
+
[32mโ[39m tests/migrate-from-v1.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
557
563
|
[32mโ[39m tests/postgres-archive-tag.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
564
|
+
[32mโ[39m tests/stdin-after-ink.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
558
565
|
|
|
559
|
-
[2m Test Files [22m [1m[
|
|
560
|
-
[2m Tests [22m [1m[
|
|
561
|
-
[2m Start at [22m
|
|
562
|
-
[2m Duration [22m
|
|
566
|
+
[2m Test Files [22m [1m[32m101 passed[39m[22m[90m (101)[39m
|
|
567
|
+
[2m Tests [22m [1m[32m1057 passed[39m[22m[90m (1057)[39m
|
|
568
|
+
[2m Start at [22m 06:44:27
|
|
569
|
+
[2m Duration [22m 58.81s[2m (transform 9.89s, setup 0ms, import 62.00s, tests 91.35s, environment 20ms)[22m
|
|
563
570
|
|
|
@@ -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;
|
|
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"}
|
package/dist/api-config-cache.js
CHANGED
|
@@ -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,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,OAA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