playcademy 0.16.14 → 0.16.15

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/cli.js CHANGED
@@ -1537,20 +1537,20 @@ function validateQueuesConfig(configName, queues) {
1537
1537
  }
1538
1538
  const queueCfg = value;
1539
1539
  const numericFields = {
1540
- maxBatchSize: { min: 1 },
1541
- maxRetries: { min: 0 },
1542
- maxBatchTimeout: { min: 1 },
1543
- maxConcurrency: { min: 1 },
1544
- retryDelay: { min: 0 }
1540
+ maxBatchSize: { min: 1, max: 100 },
1541
+ maxRetries: { min: 0, max: 100 },
1542
+ maxBatchTimeout: { min: 1, max: 60 },
1543
+ maxConcurrency: { min: 1, max: 250 },
1544
+ retryDelay: { min: 0, max: 43200 }
1545
1545
  };
1546
1546
  for (const [field, rules] of Object.entries(numericFields)) {
1547
1547
  const candidate = queueCfg[field];
1548
1548
  if (candidate !== void 0) {
1549
- if (!Number.isInteger(candidate) || Number(candidate) < rules.min) {
1549
+ if (!Number.isInteger(candidate) || Number(candidate) < rules.min || Number(candidate) > rules.max) {
1550
1550
  throw new ConfigError(
1551
1551
  `Queue "${queueKey}" has invalid "${field}"`,
1552
1552
  `integrations.queues.${queueKey}.${field}`,
1553
- `${field} must be an integer >= ${rules.min}`
1553
+ `${field} must be an integer between ${rules.min} and ${rules.max}`
1554
1554
  );
1555
1555
  }
1556
1556
  }
@@ -3113,7 +3113,7 @@ import { join as join13 } from "path";
3113
3113
  // package.json with { type: 'json' }
3114
3114
  var package_default2 = {
3115
3115
  name: "playcademy",
3116
- version: "0.16.13",
3116
+ version: "0.16.14",
3117
3117
  type: "module",
3118
3118
  exports: {
3119
3119
  ".": {
package/dist/index.js CHANGED
@@ -1661,6 +1661,9 @@ function logAndExit(error, options = {}) {
1661
1661
  const { code = 1, prefix } = options;
1662
1662
  if (isConfigError(error)) {
1663
1663
  process.stderr.write("\n");
1664
+ if (prefix) {
1665
+ logger.error(prefix);
1666
+ }
1664
1667
  formatError(error);
1665
1668
  process.stderr.write("\n");
1666
1669
  process.exit(code);
@@ -2198,20 +2201,20 @@ function validateQueuesConfig(configName, queues) {
2198
2201
  }
2199
2202
  const queueCfg = value;
2200
2203
  const numericFields = {
2201
- maxBatchSize: { min: 1 },
2202
- maxRetries: { min: 0 },
2203
- maxBatchTimeout: { min: 1 },
2204
- maxConcurrency: { min: 1 },
2205
- retryDelay: { min: 0 }
2204
+ maxBatchSize: { min: 1, max: 100 },
2205
+ maxRetries: { min: 0, max: 100 },
2206
+ maxBatchTimeout: { min: 1, max: 60 },
2207
+ maxConcurrency: { min: 1, max: 250 },
2208
+ retryDelay: { min: 0, max: 43200 }
2206
2209
  };
2207
2210
  for (const [field, rules] of Object.entries(numericFields)) {
2208
2211
  const candidate = queueCfg[field];
2209
2212
  if (candidate !== void 0) {
2210
- if (!Number.isInteger(candidate) || Number(candidate) < rules.min) {
2213
+ if (!Number.isInteger(candidate) || Number(candidate) < rules.min || Number(candidate) > rules.max) {
2211
2214
  throw new ConfigError(
2212
2215
  `Queue "${queueKey}" has invalid "${field}"`,
2213
2216
  `integrations.queues.${queueKey}.${field}`,
2214
- `${field} must be an integer >= ${rules.min}`
2217
+ `${field} must be an integer between ${rules.min} and ${rules.max}`
2215
2218
  );
2216
2219
  }
2217
2220
  }
@@ -4300,7 +4303,7 @@ import { join as join13 } from "path";
4300
4303
  // package.json with { type: 'json' }
4301
4304
  var package_default2 = {
4302
4305
  name: "playcademy",
4303
- version: "0.16.13",
4306
+ version: "0.16.14",
4304
4307
  type: "module",
4305
4308
  exports: {
4306
4309
  ".": {
@@ -11097,16 +11100,13 @@ async function runLogs(slugArg, options) {
11097
11100
  } else {
11098
11101
  try {
11099
11102
  await findConfigPath();
11100
- const config = await loadConfig();
11101
- slug = getSlugFromConfig(config);
11102
- } catch (error) {
11103
- if (isConfigError(error)) {
11104
- throw error;
11105
- }
11103
+ } catch {
11106
11104
  logger.error("No slug provided and no config file found");
11107
11105
  logger.newLine();
11108
11106
  process.exit(1);
11109
11107
  }
11108
+ const config = await loadConfig();
11109
+ slug = getSlugFromConfig(config);
11110
11110
  }
11111
11111
  logger.newLine();
11112
11112
  const client = await requireAuthenticatedClient();
@@ -11571,7 +11571,7 @@ var getStatusCommand = new Command13("status").description("Check your developer
11571
11571
  });
11572
11572
 
11573
11573
  // package.json
11574
- var version2 = "0.16.13";
11574
+ var version2 = "0.16.14";
11575
11575
 
11576
11576
  // src/commands/dev/server.ts
11577
11577
  function setupCleanupHandlers(workspace, getServer) {
@@ -14265,6 +14265,9 @@ async function runBucketDeleteLocal(key, options) {
14265
14265
  process.exit(1);
14266
14266
  }
14267
14267
  const config = await loadConfig();
14268
+ if (!options.raw && !options.json) {
14269
+ logger.newLine();
14270
+ }
14268
14271
  if (!hasBucketSetup(config)) {
14269
14272
  if (!options.raw && !options.json) {
14270
14273
  logger.error("Bucket storage is not configured");
@@ -14417,6 +14420,9 @@ async function runBucketGetLocal(key, options) {
14417
14420
  process.exit(1);
14418
14421
  }
14419
14422
  const config = await loadConfig();
14423
+ if (!options.raw && !options.json) {
14424
+ logger.newLine();
14425
+ }
14420
14426
  if (!hasBucketSetup(config)) {
14421
14427
  if (!options.raw && !options.json) {
14422
14428
  logger.error("Bucket storage is not configured");
@@ -14794,6 +14800,9 @@ async function runBucketPutLocal(key, filePath, options) {
14794
14800
  process.exit(1);
14795
14801
  }
14796
14802
  const config = await loadConfig();
14803
+ if (!options.raw && !options.json) {
14804
+ logger.newLine();
14805
+ }
14797
14806
  if (!hasBucketSetup(config)) {
14798
14807
  if (!options.raw && !options.json) {
14799
14808
  logger.error("Bucket storage is not configured");
package/dist/utils.js CHANGED
@@ -1574,20 +1574,20 @@ function validateQueuesConfig(configName, queues) {
1574
1574
  }
1575
1575
  const queueCfg = value;
1576
1576
  const numericFields = {
1577
- maxBatchSize: { min: 1 },
1578
- maxRetries: { min: 0 },
1579
- maxBatchTimeout: { min: 1 },
1580
- maxConcurrency: { min: 1 },
1581
- retryDelay: { min: 0 }
1577
+ maxBatchSize: { min: 1, max: 100 },
1578
+ maxRetries: { min: 0, max: 100 },
1579
+ maxBatchTimeout: { min: 1, max: 60 },
1580
+ maxConcurrency: { min: 1, max: 250 },
1581
+ retryDelay: { min: 0, max: 43200 }
1582
1582
  };
1583
1583
  for (const [field, rules] of Object.entries(numericFields)) {
1584
1584
  const candidate = queueCfg[field];
1585
1585
  if (candidate !== void 0) {
1586
- if (!Number.isInteger(candidate) || Number(candidate) < rules.min) {
1586
+ if (!Number.isInteger(candidate) || Number(candidate) < rules.min || Number(candidate) > rules.max) {
1587
1587
  throw new ConfigError(
1588
1588
  `Queue "${queueKey}" has invalid "${field}"`,
1589
1589
  `integrations.queues.${queueKey}.${field}`,
1590
- `${field} must be an integer >= ${rules.min}`
1590
+ `${field} must be an integer between ${rules.min} and ${rules.max}`
1591
1591
  );
1592
1592
  }
1593
1593
  }
@@ -2608,7 +2608,7 @@ import { join as join13 } from "path";
2608
2608
  // package.json with { type: 'json' }
2609
2609
  var package_default2 = {
2610
2610
  name: "playcademy",
2611
- version: "0.16.13",
2611
+ version: "0.16.14",
2612
2612
  type: "module",
2613
2613
  exports: {
2614
2614
  ".": {
package/dist/version.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // package.json with { type: 'json' }
2
2
  var package_default = {
3
3
  name: "playcademy",
4
- version: "0.16.13",
4
+ version: "0.16.14",
5
5
  type: "module",
6
6
  exports: {
7
7
  ".": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playcademy",
3
- "version": "0.16.14",
3
+ "version": "0.16.15",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {