@supatype/cli 0.1.0 → 0.1.1
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 +96 -85
- package/.turbo/turbo-typecheck.log +1 -1
- package/dist/commands/admin.d.ts +28 -1
- package/dist/commands/admin.d.ts.map +1 -1
- package/dist/commands/admin.js +273 -111
- package/dist/commands/admin.js.map +1 -1
- package/dist/commands/dev.d.ts.map +1 -1
- package/dist/commands/dev.js +2 -0
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/init.d.ts +5 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +70 -1
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/push.js +3 -3
- package/dist/commands/push.js.map +1 -1
- package/dist/compose-rename.d.ts +10 -0
- package/dist/compose-rename.d.ts.map +1 -0
- package/dist/compose-rename.js +67 -0
- package/dist/compose-rename.js.map +1 -0
- package/dist/dev-compose.d.ts.map +1 -1
- package/dist/dev-compose.js +34 -50
- package/dist/dev-compose.js.map +1 -1
- package/dist/dev-ports.d.ts +27 -0
- package/dist/dev-ports.d.ts.map +1 -0
- package/dist/dev-ports.js +171 -0
- package/dist/dev-ports.js.map +1 -0
- package/dist/dev-session-lock.d.ts +25 -0
- package/dist/dev-session-lock.d.ts.map +1 -0
- package/dist/dev-session-lock.js +81 -0
- package/dist/dev-session-lock.js.map +1 -0
- package/dist/dev-shutdown.d.ts +18 -2
- package/dist/dev-shutdown.d.ts.map +1 -1
- package/dist/dev-shutdown.js +69 -5
- package/dist/dev-shutdown.js.map +1 -1
- package/dist/env-file.d.ts +5 -0
- package/dist/env-file.d.ts.map +1 -0
- package/dist/env-file.js +33 -0
- package/dist/env-file.js.map +1 -0
- package/dist/self-host-compose.d.ts.map +1 -1
- package/dist/self-host-compose.js +2 -1
- package/dist/self-host-compose.js.map +1 -1
- package/package.json +3 -1
- package/src/commands/admin.ts +361 -136
- package/src/commands/dev.ts +3 -0
- package/src/commands/init.ts +93 -1
- package/src/commands/push.ts +3 -3
- package/src/compose-rename.ts +76 -0
- package/src/dev-compose.ts +44 -50
- package/src/dev-ports.ts +212 -0
- package/src/dev-session-lock.ts +101 -0
- package/src/dev-shutdown.ts +98 -5
- package/src/env-file.ts +37 -0
- package/src/self-host-compose.ts +2 -1
- package/tests/admin-ensure.test.ts +59 -0
- package/tests/dev-ports.test.ts +41 -0
- package/tests/dev-session-lock.test.ts +54 -0
- package/tests/dev-ui.test.ts +24 -1
- package/tsconfig.tsbuildinfo +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @supatype/cli@0.1.
|
|
2
|
+
> @supatype/cli@0.1.1 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,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @supatype/cli@0.1.
|
|
2
|
+
> @supatype/cli@0.1.1 test /home/runner/work/supatype/supatype/packages/cli
|
|
3
3
|
> vitest run
|
|
4
4
|
|
|
5
5
|
|
|
@@ -276,9 +276,9 @@
|
|
|
276
276
|
created public/.gitkeep
|
|
277
277
|
created .gitignore
|
|
278
278
|
|
|
279
|
-
[32m✓[39m tests/init.test.ts [2m([22m[2m25 tests[22m[2m)[22m[32m
|
|
280
|
-
[32m✓[39m tests/type-extractor.test.ts [2m([22m[2m34 tests[22m[2m)[22m[32m
|
|
281
|
-
[32m✓[39m tests/runtime-contract.test.ts [2m([22m[2m40 tests[22m[2m)[22m[32m
|
|
279
|
+
[32m✓[39m tests/init.test.ts [2m([22m[2m25 tests[22m[2m)[22m[32m 138[2mms[22m[39m
|
|
280
|
+
[32m✓[39m tests/type-extractor.test.ts [2m([22m[2m34 tests[22m[2m)[22m[32m 128[2mms[22m[39m
|
|
281
|
+
[32m✓[39m tests/runtime-contract.test.ts [2m([22m[2m40 tests[22m[2m)[22m[32m 106[2mms[22m[39m
|
|
282
282
|
[90mstdout[2m | tests/docker-runtime.test.ts[2m > [22m[2mrequireDockerDaemon[2m > [22m[2mexits when the daemon is unavailable
|
|
283
283
|
[22m[39m
|
|
284
284
|
Start the Docker daemon (e.g. sudo systemctl start docker), then try again.
|
|
@@ -287,15 +287,20 @@
|
|
|
287
287
|
|
|
288
288
|
docker: daemon down
|
|
289
289
|
|
|
290
|
-
[32m✓[39m tests/docker-runtime.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
[33m[2m✓[22m[39m
|
|
298
|
-
[33m[2m✓[22m[39m
|
|
290
|
+
[32m✓[39m tests/docker-runtime.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m 13[2mms[22m[39m
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
[32m✓[39m tests/dev-ui.test.ts [2m([22m[2m16 tests[22m[2m)[22m[32m 96[2mms[22m[39m
|
|
296
|
+
[32m✓[39m tests/config.test.ts [2m([22m[2m18 tests[22m[2m)[22m[33m 3950[2mms[22m[39m
|
|
297
|
+
[33m[2m✓[22m[39m loads a valid supatype.config.ts (plain export default, no package imports) [33m 554[2mms[22m[39m
|
|
298
|
+
[33m[2m✓[22m[39m normalizes shorthand schema string to { path, pg_schema } [33m 471[2mms[22m[39m
|
|
299
|
+
[33m[2m✓[22m[39m loads a supatype.config.js (plain ESM) [33m 508[2mms[22m[39m
|
|
300
|
+
[33m[2m✓[22m[39m loads config without a versions section (latest by default) [33m 474[2mms[22m[39m
|
|
301
|
+
[33m[2m✓[22m[39m prefers supatype.config.ts over supatype.config.js when both exist [33m 467[2mms[22m[39m
|
|
302
|
+
[33m[2m✓[22m[39m supports optional output field in config [33m 491[2mms[22m[39m
|
|
303
|
+
[33m[2m✓[22m[39m merges supatype.local.config.ts over base [33m 975[2mms[22m[39m
|
|
299
304
|
[90mstdout[2m | tests/link.test.ts[2m > [22m[2mlink model[2m > [22m[2mmigrates cloud.json into link.json
|
|
300
305
|
[22m[39m created package.json
|
|
301
306
|
created supatype.config.ts
|
|
@@ -309,50 +314,62 @@
|
|
|
309
314
|
[90mstderr[2m | tests/link.test.ts[2m > [22m[2mlink model[2m > [22m[2mmigrates cloud.json into link.json
|
|
310
315
|
[22m[39m[supatype] Migrated .supatype/cloud.json → .supatype/link.json (legacy files kept; remove manually when ready).
|
|
311
316
|
|
|
312
|
-
[32m✓[39m tests/link.test.ts [2m([22m[2m4 tests[22m[2m)[22m[33m
|
|
313
|
-
[33m[2m✓[22m[39m resolveTarget returns cloud mode with /api/v1 prefix [33m
|
|
314
|
-
[33m[2m✓[22m[39m resolveTarget returns self-host mode with /platform/v1 prefix [33m
|
|
315
|
-
[33m[2m✓[22m[39m targetSchemaRollback posts to /platform/v1 when linked [33m
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
[32m✓[39m tests/dev-ui.test.ts [2m([22m[2m15 tests[22m[2m)[22m[32m 66[2mms[22m[39m
|
|
321
|
-
|
|
317
|
+
[32m✓[39m tests/link.test.ts [2m([22m[2m4 tests[22m[2m)[22m[33m 2657[2mms[22m[39m
|
|
318
|
+
[33m[2m✓[22m[39m resolveTarget returns cloud mode with /api/v1 prefix [33m 904[2mms[22m[39m
|
|
319
|
+
[33m[2m✓[22m[39m resolveTarget returns self-host mode with /platform/v1 prefix [33m 875[2mms[22m[39m
|
|
320
|
+
[33m[2m✓[22m[39m targetSchemaRollback posts to /platform/v1 when linked [33m 868[2mms[22m[39m
|
|
322
321
|
[32m✓[39m tests/pull-utils.test.ts [2m([22m[2m49 tests[22m[2m)[22m[32m 11[2mms[22m[39m
|
|
323
|
-
[32m✓[39m tests/schema-sources.test.ts [2m([22m[2m5 tests[22m[2m)[22m[33m
|
|
324
|
-
[33m[2m✓[22m[39m buildSchemaSourcesPayload includes manifest metadata [33m
|
|
325
|
-
[33m[2m✓[22m[39m restore overwrites modified local files [33m
|
|
322
|
+
[32m✓[39m tests/schema-sources.test.ts [2m([22m[2m5 tests[22m[2m)[22m[33m 1051[2mms[22m[39m
|
|
323
|
+
[33m[2m✓[22m[39m buildSchemaSourcesPayload includes manifest metadata [33m 500[2mms[22m[39m
|
|
324
|
+
[33m[2m✓[22m[39m restore overwrites modified local files [33m 509[2mms[22m[39m
|
|
326
325
|
[90mstderr[2m | tests/binary-cache-cloud-overrides.test.ts[2m > [22m[2misLinkedToCloudProject[2m > [22m[2mis true when .supatype/cloud.json has projectSlug
|
|
327
326
|
[22m[39m[supatype] Migrated .supatype/cloud.json → .supatype/link.json (legacy files kept; remove manually when ready).
|
|
328
327
|
|
|
329
|
-
[32m✓[39m tests/binary-cache-cloud-overrides.test.ts [2m([22m[2m11 tests[22m[2m)[22m[32m
|
|
330
|
-
[32m✓[39m tests/minisign.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m
|
|
328
|
+
[32m✓[39m tests/binary-cache-cloud-overrides.test.ts [2m([22m[2m11 tests[22m[2m)[22m[32m 18[2mms[22m[39m
|
|
329
|
+
[32m✓[39m tests/minisign.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 14[2mms[22m[39m
|
|
331
330
|
[90mstdout[2m | tests/storage-provision.test.ts[2m > [22m[2mprovisionBuckets[2m > [22m[2mPOSTs each bucket to the storage API
|
|
332
331
|
[22m[39m[supatype] Storage bucket "photos" ready.
|
|
333
332
|
|
|
334
333
|
[90mstdout[2m | tests/storage-provision.test.ts[2m > [22m[2mprovisionBuckets[2m > [22m[2mPOSTs each bucket to the storage API
|
|
335
334
|
[22m[39m[supatype] Storage bucket "avatars" ready.
|
|
336
335
|
|
|
337
|
-
[32m✓[39m tests/storage-provision.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m
|
|
338
|
-
[32m✓[39m tests/cached-artifact-format.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m
|
|
336
|
+
[32m✓[39m tests/storage-provision.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
337
|
+
[32m✓[39m tests/cached-artifact-format.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 18[2mms[22m[39m
|
|
339
338
|
[32m✓[39m tests/proxy-dev-app.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
340
|
-
[32m✓[39m tests/keys.test.ts [2m([22m[2m11 tests[22m[2m)[22m[33m
|
|
341
|
-
[33m[2m✓[22m[39m exits 0 with --secret [33m
|
|
342
|
-
[33m[2m✓[22m[39m outputs ANON_KEY= line [33m
|
|
343
|
-
[33m[2m✓[22m[39m outputs SERVICE_ROLE_KEY= line [33m
|
|
344
|
-
[33m[2m✓[22m[39m ANON_KEY is a valid three-part JWT [33m
|
|
345
|
-
[33m[2m✓[22m[39m SERVICE_ROLE_KEY payload has role: service_role [33m
|
|
346
|
-
[33m[2m✓[22m[39m JWT has exp in the future [33m
|
|
347
|
-
[33m[2m✓[22m[39m --exp-years changes the expiry window [33m
|
|
348
|
-
[33m[2m✓[22m[39m reads JWT_SECRET from environment variable [33m
|
|
349
|
-
[33m[2m✓[22m[39m reads JWT_SECRET from .env file [33m
|
|
350
|
-
[33m[2m✓[22m[39m exits non-zero when no secret is available [33m
|
|
351
|
-
[33m[2m✓[22m[39m keys --help shows --secret and --exp-years options [33m
|
|
352
|
-
[32m✓[39m tests/augmentation-generator.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m
|
|
339
|
+
[32m✓[39m tests/keys.test.ts [2m([22m[2m11 tests[22m[2m)[22m[33m 11267[2mms[22m[39m
|
|
340
|
+
[33m[2m✓[22m[39m exits 0 with --secret [33m 1124[2mms[22m[39m
|
|
341
|
+
[33m[2m✓[22m[39m outputs ANON_KEY= line [33m 929[2mms[22m[39m
|
|
342
|
+
[33m[2m✓[22m[39m outputs SERVICE_ROLE_KEY= line [33m 1013[2mms[22m[39m
|
|
343
|
+
[33m[2m✓[22m[39m ANON_KEY is a valid three-part JWT [33m 939[2mms[22m[39m
|
|
344
|
+
[33m[2m✓[22m[39m SERVICE_ROLE_KEY payload has role: service_role [33m 981[2mms[22m[39m
|
|
345
|
+
[33m[2m✓[22m[39m JWT has exp in the future [33m 925[2mms[22m[39m
|
|
346
|
+
[33m[2m✓[22m[39m --exp-years changes the expiry window [33m 1840[2mms[22m[39m
|
|
347
|
+
[33m[2m✓[22m[39m reads JWT_SECRET from environment variable [33m 946[2mms[22m[39m
|
|
348
|
+
[33m[2m✓[22m[39m reads JWT_SECRET from .env file [33m 886[2mms[22m[39m
|
|
349
|
+
[33m[2m✓[22m[39m exits non-zero when no secret is available [33m 827[2mms[22m[39m
|
|
350
|
+
[33m[2m✓[22m[39m keys --help shows --secret and --exp-years options [33m 850[2mms[22m[39m
|
|
351
|
+
[32m✓[39m tests/augmentation-generator.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 28[2mms[22m[39m
|
|
353
352
|
[32m✓[39m tests/type-resolver.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 14[2mms[22m[39m
|
|
354
|
-
[32m✓[39m tests/engine-push-output.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m
|
|
355
|
-
|
|
353
|
+
[32m✓[39m tests/engine-push-output.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 8[2mms[22m[39m
|
|
354
|
+
[90mstdout[2m | tests/admin-ensure.test.ts[2m > [22m[2minit admin seed in .env[2m > [22m[2mwrites SUPATYPE_ADMIN_* when scaffold options include credentials
|
|
355
|
+
[22m[39m created package.json
|
|
356
|
+
created supatype.config.ts
|
|
357
|
+
created schema/index.ts
|
|
358
|
+
created .env
|
|
359
|
+
created seed.ts
|
|
360
|
+
created seeds/.gitkeep
|
|
361
|
+
created public/.gitkeep
|
|
362
|
+
created .gitignore
|
|
363
|
+
|
|
364
|
+
[32m✓[39m tests/admin-ensure.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 111[2mms[22m[39m
|
|
365
|
+
[32m✓[39m tests/tsx-runner.test.ts [2m([22m[2m7 tests[22m[2m)[22m[33m 2571[2mms[22m[39m
|
|
366
|
+
[33m[2m✓[22m[39m evaluates a simple expression and returns stdout [33m 371[2mms[22m[39m
|
|
367
|
+
[33m[2m✓[22m[39m evaluates TypeScript syntax (type annotations) [33m 351[2mms[22m[39m
|
|
368
|
+
[33m[2m✓[22m[39m returns non-zero exit code on syntax error [33m 354[2mms[22m[39m
|
|
369
|
+
[33m[2m✓[22m[39m returns non-zero exit code on runtime error [33m 341[2mms[22m[39m
|
|
370
|
+
[33m[2m✓[22m[39m captures stderr separately from stdout [33m 346[2mms[22m[39m
|
|
371
|
+
[33m[2m✓[22m[39m runs a .ts file and returns its stdout [33m 525[2mms[22m[39m
|
|
372
|
+
[32m✓[39m tests/ui-messages.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 8[2mms[22m[39m
|
|
356
373
|
[32m✓[39m tests/ensure-binary.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 10[2mms[22m[39m
|
|
357
374
|
[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
|
|
358
375
|
[22m[39m created package.json
|
|
@@ -364,16 +381,11 @@
|
|
|
364
381
|
created public/.gitkeep
|
|
365
382
|
created .gitignore
|
|
366
383
|
|
|
367
|
-
[32m✓[39m tests/
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
[33m[2m✓[22m[39m returns non-zero exit code on runtime error [33m 370[2mms[22m[39m
|
|
373
|
-
[33m[2m✓[22m[39m captures stderr separately from stdout [33m 372[2mms[22m[39m
|
|
374
|
-
[33m[2m✓[22m[39m runs a .ts file and returns its stdout [33m 556[2mms[22m[39m
|
|
375
|
-
[32m✓[39m tests/normalize-admin-config.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
376
|
-
[32m✓[39m tests/ui-confirm.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 8[2mms[22m[39m
|
|
384
|
+
[32m✓[39m tests/normalize-admin-config.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
385
|
+
[32m✓[39m tests/dev-session-lock.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
386
|
+
[32m✓[39m tests/ui-confirm.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
387
|
+
[32m✓[39m tests/docker-postgres.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
388
|
+
[32m✓[39m tests/dev-ports.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
377
389
|
[90mstdout[2m | tests/app-command.test.ts[2m > [22m[2msupatype app add --static[2m > [22m[2mcreates the static directory when missing
|
|
378
390
|
[22m[39m created package.json
|
|
379
391
|
created supatype.config.ts
|
|
@@ -384,36 +396,35 @@
|
|
|
384
396
|
created public/.gitkeep
|
|
385
397
|
created .gitignore
|
|
386
398
|
|
|
387
|
-
[32m✓[39m tests/
|
|
388
|
-
[32m✓[39m tests/seed-discover.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 14[2mms[22m[39m
|
|
399
|
+
[32m✓[39m tests/seed-discover.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 11[2mms[22m[39m
|
|
389
400
|
[32m✓[39m tests/studio-admin-roles.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
390
|
-
[32m✓[39m tests/
|
|
391
|
-
[33m[2m✓[22m[39m
|
|
392
|
-
[33m[2m✓[22m[39m
|
|
393
|
-
|
|
394
|
-
[33m[2m✓[22m[39m --help
|
|
395
|
-
[33m[2m✓[22m[39m --
|
|
396
|
-
[33m[2m✓[22m[39m
|
|
397
|
-
[33m[2m✓[22m[39m
|
|
398
|
-
[33m[2m✓[22m[39m
|
|
399
|
-
[33m[2m✓[22m[39m
|
|
400
|
-
[33m[2m✓[22m[39m
|
|
401
|
-
[33m[2m✓[22m[39m
|
|
402
|
-
[33m[2m✓[22m[39m
|
|
403
|
-
[33m[2m✓[22m[39m
|
|
404
|
-
[33m[2m✓[22m[39m
|
|
405
|
-
[33m[2m✓[22m[39m
|
|
406
|
-
[33m[2m✓[22m[39m
|
|
407
|
-
|
|
408
|
-
[33m[2m✓[22m[39m
|
|
409
|
-
[33m[2m✓[22m[39m
|
|
410
|
-
[32m✓[39m tests/pg-spawn-env.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
401
|
+
[32m✓[39m tests/cli-help.test.ts [2m([22m[2m16 tests[22m[2m)[22m[33m 14952[2mms[22m[39m
|
|
402
|
+
[33m[2m✓[22m[39m --help lists all top-level commands [33m 990[2mms[22m[39m
|
|
403
|
+
[33m[2m✓[22m[39m --version prints a semver string [33m 962[2mms[22m[39m
|
|
404
|
+
[33m[2m✓[22m[39m self-update --help describes the command [33m 969[2mms[22m[39m
|
|
405
|
+
[33m[2m✓[22m[39m init --help describes the init command [33m 875[2mms[22m[39m
|
|
406
|
+
[33m[2m✓[22m[39m push --help describes the push command and --yes flag [33m 929[2mms[22m[39m
|
|
407
|
+
[33m[2m✓[22m[39m diff --help describes the diff command [33m 869[2mms[22m[39m
|
|
408
|
+
[33m[2m✓[22m[39m pull --help describes scaffold pull command [33m 939[2mms[22m[39m
|
|
409
|
+
[33m[2m✓[22m[39m doctor --help describes drift report command [33m 959[2mms[22m[39m
|
|
410
|
+
[33m[2m✓[22m[39m introspect --help describes database introspection command [33m 957[2mms[22m[39m
|
|
411
|
+
[33m[2m✓[22m[39m adopt --help describes adoption ceremony command [33m 973[2mms[22m[39m
|
|
412
|
+
[33m[2m✓[22m[39m reset --help shows --yes flag [33m 910[2mms[22m[39m
|
|
413
|
+
[33m[2m✓[22m[39m app --help describes the app command with add/remove subcommands [33m 957[2mms[22m[39m
|
|
414
|
+
[33m[2m✓[22m[39m app add --help shows --static and --port options [33m 959[2mms[22m[39m
|
|
415
|
+
[33m[2m✓[22m[39m self-host --help shows compose only (legacy commands hidden) [33m 950[2mms[22m[39m
|
|
416
|
+
[33m[2m✓[22m[39m self-host compose --help shows compose subcommands [33m 911[2mms[22m[39m
|
|
417
|
+
[33m[2m✓[22m[39m unknown command exits non-zero [33m 836[2mms[22m[39m
|
|
418
|
+
[32m✓[39m tests/app-command.test.ts [2m([22m[2m2 tests[22m[2m)[22m[33m 2024[2mms[22m[39m
|
|
419
|
+
[33m[2m✓[22m[39m sets app.mode=static and static_dir in supatype.config.ts [33m 959[2mms[22m[39m
|
|
420
|
+
[33m[2m✓[22m[39m creates the static directory when missing [33m 1063[2mms[22m[39m
|
|
411
421
|
[32m✓[39m tests/release-pins.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
412
|
-
[32m✓[39m tests/
|
|
413
|
-
[32m✓[39m tests/
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
[2m
|
|
417
|
-
[2m
|
|
418
|
-
[2m
|
|
422
|
+
[32m✓[39m tests/pg-spawn-env.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
423
|
+
[32m✓[39m tests/postgres-archive-tag.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
424
|
+
[32m✓[39m tests/migrate-from-v1.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 14[2mms[22m[39m
|
|
425
|
+
|
|
426
|
+
[2m Test Files [22m [1m[32m35 passed[39m[22m[90m (35)[39m
|
|
427
|
+
[2m Tests [22m [1m[32m320 passed[39m[22m[90m (320)[39m
|
|
428
|
+
[2m Start at [22m 17:52:40
|
|
429
|
+
[2m Duration [22m 19.16s[2m (transform 4.06s, setup 0ms, import 10.97s, tests 39.28s, environment 6ms)[22m
|
|
419
430
|
|
package/dist/commands/admin.d.ts
CHANGED
|
@@ -1,4 +1,31 @@
|
|
|
1
1
|
import type { Command } from "commander";
|
|
2
|
+
import { type SupatypeProjectConfig } from "../project-config.js";
|
|
3
|
+
export declare const ADMIN_EMAIL_ENV = "SUPATYPE_ADMIN_EMAIL";
|
|
4
|
+
export declare const ADMIN_PASSWORD_ENV = "SUPATYPE_ADMIN_PASSWORD";
|
|
5
|
+
export interface EnsureFirstAdminOptions {
|
|
6
|
+
email?: string;
|
|
7
|
+
password?: string;
|
|
8
|
+
cwd?: string;
|
|
9
|
+
role?: string;
|
|
10
|
+
connection?: string;
|
|
11
|
+
compose?: {
|
|
12
|
+
project: string;
|
|
13
|
+
composePath: string;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
2
16
|
export declare function registerAdmin(program: Command): void;
|
|
3
|
-
|
|
17
|
+
/** @deprecated Use ensureFirstAdminUser */
|
|
18
|
+
export declare const promptFirstAdminUser: typeof ensureFirstAdminUser;
|
|
19
|
+
/**
|
|
20
|
+
* Ensure a first admin user exists (idempotent). Called from `dev` and `push`
|
|
21
|
+
* when auth.users is ready and no admin users exist yet.
|
|
22
|
+
*/
|
|
23
|
+
export declare function ensureFirstAdminUser(connection: string, options?: EnsureFirstAdminOptions): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Resolve DB access for the current project (host URL or compose exec when DB
|
|
26
|
+
* is not published to the host).
|
|
27
|
+
*/
|
|
28
|
+
export declare function ensureFirstAdminUserForProject(cwd: string, config: SupatypeProjectConfig, options?: EnsureFirstAdminOptions): Promise<void>;
|
|
29
|
+
export declare function clearAdminSeedPassword(cwd: string): void;
|
|
30
|
+
export declare function hashPasswordForAuth(password: string): Promise<string>;
|
|
4
31
|
//# sourceMappingURL=admin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../src/commands/admin.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../src/commands/admin.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAOxC,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,sBAAsB,CAAA;AAQ7B,eAAO,MAAM,eAAe,yBAAyB,CAAA;AACrD,eAAO,MAAM,kBAAkB,4BAA4B,CAAA;AAI3D,MAAM,WAAW,uBAAuB;IACtC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAA;CACnD;AAID,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAkKpD;AAED,2CAA2C;AAC3C,eAAO,MAAM,oBAAoB,6BAAuB,CAAA;AAExD;;;GAGG;AACH,wBAAsB,oBAAoB,CACxC,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,uBAA4B,GACpC,OAAO,CAAC,IAAI,CAAC,CAaf;AAED;;;GAGG;AACH,wBAAsB,8BAA8B,CAClD,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,qBAAqB,EAC7B,OAAO,GAAE,uBAA4B,GACpC,OAAO,CAAC,IAAI,CAAC,CA0Bf;AAyED,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAExD;AAED,wBAAsB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAE3E"}
|