playcademy 0.25.1-beta.2 → 0.25.1-beta.3

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/dist/bucket.js CHANGED
@@ -94,7 +94,7 @@ var DEFAULT_API_ROUTES_DIRECTORY = join2(SERVER_ROOT_DIRECTORY, "api");
94
94
  // ../better-auth/package.json
95
95
  var package_default = {
96
96
  name: "@playcademy/better-auth",
97
- version: "0.0.18-beta.2",
97
+ version: "0.0.18-beta.3",
98
98
  type: "module",
99
99
  exports: {
100
100
  "./server": {
@@ -230,6 +230,43 @@ import { colorize } from "json-colorizer";
230
230
  import { bold, dim, redBright } from "colorette";
231
231
  import { ApiError, extractApiErrorInfo } from "@playcademy/sdk/internal";
232
232
 
233
+ // src/lib/core/logger.ts
234
+ var lastWasBlank = false;
235
+ var ANSI_ESCAPE_RE = /\x1b\[[^a-zA-Z]*[a-zA-Z]/g;
236
+ function hasVisibleContent(str) {
237
+ return str.replace(ANSI_ESCAPE_RE, "").trim().length > 0;
238
+ }
239
+ var _consoleLog = console.log.bind(console);
240
+ var _consoleError = console.error.bind(console);
241
+ var _stdoutWrite = process.stdout.write.bind(process.stdout);
242
+ var _stderrWrite = process.stderr.write.bind(process.stderr);
243
+ console.log = (...args) => {
244
+ _consoleLog(...args);
245
+ if (args.length > 0) {
246
+ lastWasBlank = false;
247
+ }
248
+ };
249
+ console.error = (...args) => {
250
+ _consoleError(...args);
251
+ if (args.length > 0) {
252
+ lastWasBlank = false;
253
+ }
254
+ };
255
+ process.stdout.write = (chunk, ...rest) => {
256
+ const result = _stdoutWrite(chunk, ...rest);
257
+ if (typeof chunk === "string" && hasVisibleContent(chunk)) {
258
+ lastWasBlank = false;
259
+ }
260
+ return result;
261
+ };
262
+ process.stderr.write = (chunk, ...rest) => {
263
+ const result = _stderrWrite(chunk, ...rest);
264
+ if (typeof chunk === "string" && hasVisibleContent(chunk)) {
265
+ lastWasBlank = false;
266
+ }
267
+ return result;
268
+ };
269
+
233
270
  // src/lib/core/errors.ts
234
271
  import { ApiError as ApiError2 } from "@playcademy/sdk/internal";
235
272
 
package/dist/cli.js CHANGED
@@ -319,19 +319,51 @@ import {
319
319
  } from "colorette";
320
320
  import { colorize } from "json-colorizer";
321
321
  var lastWasBlank = false;
322
+ var ANSI_ESCAPE_RE = /\x1b\[[^a-zA-Z]*[a-zA-Z]/g;
323
+ function hasVisibleContent(str) {
324
+ return str.replace(ANSI_ESCAPE_RE, "").trim().length > 0;
325
+ }
326
+ var _consoleLog = console.log.bind(console);
327
+ var _consoleError = console.error.bind(console);
328
+ var _stdoutWrite = process.stdout.write.bind(process.stdout);
329
+ var _stderrWrite = process.stderr.write.bind(process.stderr);
330
+ console.log = (...args) => {
331
+ _consoleLog(...args);
332
+ if (args.length > 0) {
333
+ lastWasBlank = false;
334
+ }
335
+ };
336
+ console.error = (...args) => {
337
+ _consoleError(...args);
338
+ if (args.length > 0) {
339
+ lastWasBlank = false;
340
+ }
341
+ };
342
+ process.stdout.write = (chunk, ...rest) => {
343
+ const result = _stdoutWrite(chunk, ...rest);
344
+ if (typeof chunk === "string" && hasVisibleContent(chunk)) {
345
+ lastWasBlank = false;
346
+ }
347
+ return result;
348
+ };
349
+ process.stderr.write = (chunk, ...rest) => {
350
+ const result = _stderrWrite(chunk, ...rest);
351
+ if (typeof chunk === "string" && hasVisibleContent(chunk)) {
352
+ lastWasBlank = false;
353
+ }
354
+ return result;
355
+ };
322
356
  function writeOut(line) {
323
357
  console.log(line);
324
- lastWasBlank = false;
325
358
  }
326
359
  function writeErr(line) {
327
360
  console.error(line);
328
- lastWasBlank = false;
329
361
  }
330
362
  function writeBlank() {
331
363
  if (lastWasBlank) {
332
364
  return;
333
365
  }
334
- console.log();
366
+ _consoleLog();
335
367
  lastWasBlank = true;
336
368
  }
337
369
  function customTransform(text) {
@@ -693,7 +725,7 @@ function setupGlobalErrorHandlers() {
693
725
  import { execSync as execSync5 } from "child_process";
694
726
  import { writeFileSync as writeFileSync10 } from "fs";
695
727
  import { resolve as resolve9 } from "path";
696
- import { confirm as confirm5 } from "@inquirer/prompts";
728
+ import { confirm as confirm6 } from "@inquirer/prompts";
697
729
 
698
730
  // ../utils/src/ansi.ts
699
731
  var colors = {
@@ -1083,7 +1115,7 @@ var SAMPLE_BUCKET_FILENAME = "bucket.ts";
1083
1115
  // ../better-auth/package.json
1084
1116
  var package_default = {
1085
1117
  name: "@playcademy/better-auth",
1086
- version: "0.0.18-beta.2",
1118
+ version: "0.0.18-beta.3",
1087
1119
  type: "module",
1088
1120
  exports: {
1089
1121
  "./server": {
@@ -2951,7 +2983,7 @@ import { existsSync as existsSync11, mkdirSync as mkdirSync5, readFileSync as re
2951
2983
  import { join as join13 } from "node:path";
2952
2984
 
2953
2985
  // src/version.ts
2954
- var cliVersion = false ? "0.0.0-dev" : "0.25.1-beta.2";
2986
+ var cliVersion = false ? "0.0.0-dev" : "0.25.1-beta.3";
2955
2987
 
2956
2988
  // src/lib/init/database.ts
2957
2989
  var drizzleConfigTemplate = loadTemplateString("database/drizzle-config.ts");
@@ -3373,11 +3405,15 @@ function hasHooksModule(workspace) {
3373
3405
  // src/lib/bundle/hash.ts
3374
3406
  init_file_loader();
3375
3407
 
3408
+ // src/lib/timeback/update.ts
3409
+ import { confirm as confirm4, select as select5 } from "@inquirer/prompts";
3410
+ import { green as green3, red as red3 } from "colorette";
3411
+
3376
3412
  // src/lib/secrets/diff.ts
3377
- import { green as green3, red as red3, yellow as yellow4 } from "colorette";
3413
+ import { green as green4, red as red4, yellow as yellow4 } from "colorette";
3378
3414
 
3379
3415
  // src/lib/secrets/sync.ts
3380
- import { confirm as confirm4 } from "@inquirer/prompts";
3416
+ import { confirm as confirm5 } from "@inquirer/prompts";
3381
3417
  import { bold as bold5 } from "colorette";
3382
3418
 
3383
3419
  // src/lib/init/bucket.ts
@@ -3735,7 +3771,7 @@ async function checkExistingConfig(force) {
3735
3771
  logger.newLine();
3736
3772
  return false;
3737
3773
  }
3738
- const shouldOverwrite = await confirm5({
3774
+ const shouldOverwrite = await confirm6({
3739
3775
  message: "Do you want to overwrite it?",
3740
3776
  default: false
3741
3777
  });
package/dist/constants.js CHANGED
@@ -20,7 +20,7 @@ var SAMPLE_BUCKET_FILENAME = "bucket.ts";
20
20
  // ../better-auth/package.json
21
21
  var package_default = {
22
22
  name: "@playcademy/better-auth",
23
- version: "0.0.18-beta.2",
23
+ version: "0.0.18-beta.3",
24
24
  type: "module",
25
25
  exports: {
26
26
  "./server": {
package/dist/db.js CHANGED
@@ -36,7 +36,7 @@ var DEFAULT_API_ROUTES_DIRECTORY = join2(SERVER_ROOT_DIRECTORY, "api");
36
36
  // ../better-auth/package.json
37
37
  var package_default = {
38
38
  name: "@playcademy/better-auth",
39
- version: "0.0.18-beta.2",
39
+ version: "0.0.18-beta.3",
40
40
  type: "module",
41
41
  exports: {
42
42
  "./server": {
@@ -810,19 +810,51 @@ function formatError(error, indent = 0) {
810
810
 
811
811
  // src/lib/core/logger.ts
812
812
  var lastWasBlank = false;
813
+ var ANSI_ESCAPE_RE = /\x1b\[[^a-zA-Z]*[a-zA-Z]/g;
814
+ function hasVisibleContent(str) {
815
+ return str.replace(ANSI_ESCAPE_RE, "").trim().length > 0;
816
+ }
817
+ var _consoleLog = console.log.bind(console);
818
+ var _consoleError = console.error.bind(console);
819
+ var _stdoutWrite = process.stdout.write.bind(process.stdout);
820
+ var _stderrWrite = process.stderr.write.bind(process.stderr);
821
+ console.log = (...args) => {
822
+ _consoleLog(...args);
823
+ if (args.length > 0) {
824
+ lastWasBlank = false;
825
+ }
826
+ };
827
+ console.error = (...args) => {
828
+ _consoleError(...args);
829
+ if (args.length > 0) {
830
+ lastWasBlank = false;
831
+ }
832
+ };
833
+ process.stdout.write = (chunk, ...rest) => {
834
+ const result = _stdoutWrite(chunk, ...rest);
835
+ if (typeof chunk === "string" && hasVisibleContent(chunk)) {
836
+ lastWasBlank = false;
837
+ }
838
+ return result;
839
+ };
840
+ process.stderr.write = (chunk, ...rest) => {
841
+ const result = _stderrWrite(chunk, ...rest);
842
+ if (typeof chunk === "string" && hasVisibleContent(chunk)) {
843
+ lastWasBlank = false;
844
+ }
845
+ return result;
846
+ };
813
847
  function writeOut(line) {
814
848
  console.log(line);
815
- lastWasBlank = false;
816
849
  }
817
850
  function writeErr(line) {
818
851
  console.error(line);
819
- lastWasBlank = false;
820
852
  }
821
853
  function writeBlank() {
822
854
  if (lastWasBlank) {
823
855
  return;
824
856
  }
825
- console.log();
857
+ _consoleLog();
826
858
  lastWasBlank = true;
827
859
  }
828
860
  function customTransform(text) {
package/dist/index.d.ts CHANGED
@@ -830,6 +830,8 @@ interface DeploymentContext {
830
830
  isDryRun: boolean;
831
831
  deployBackend: boolean;
832
832
  forceBackend: boolean;
833
+ forceIntegrationConfigSync?: string[];
834
+ cancellationHandled?: boolean;
833
835
  minify: boolean;
834
836
  verbose: boolean;
835
837
  debug: boolean;