drivethrough-cli 0.1.13 → 0.1.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.
Files changed (2) hide show
  1. package/dist/main.mjs +15 -2
  2. package/package.json +1 -1
package/dist/main.mjs CHANGED
@@ -5347,7 +5347,8 @@ var init_names = __esm({
5347
5347
 
5348
5348
  // ../schema/src/site-config.ts
5349
5349
  function parseSiteConfig(input) {
5350
- const result = SiteConfig.safeParse(input);
5350
+ const stripped = stripRemovedKeys(input);
5351
+ const result = SiteConfig.safeParse(stripped);
5351
5352
  if (!result.success) {
5352
5353
  const errors = result.error.issues.map((issue2) => {
5353
5354
  const where = issue2.path.length ? `at ${issue2.path.join(".")}` : "at the top level";
@@ -5357,7 +5358,16 @@ function parseSiteConfig(input) {
5357
5358
  }
5358
5359
  return { ok: true, config: result.data };
5359
5360
  }
5360
- var FieldSpec, RateLimit, TYPE_NAME, TypeConfig, SiteConfig;
5361
+ function stripRemovedKeys(input) {
5362
+ if (typeof input !== "object" || input === null || Array.isArray(input)) return input;
5363
+ const record2 = input;
5364
+ const present = Object.keys(REMOVED_KEYS).filter((key) => key in record2);
5365
+ if (present.length === 0) return input;
5366
+ const copy = { ...record2 };
5367
+ for (const key of present) delete copy[key];
5368
+ return copy;
5369
+ }
5370
+ var FieldSpec, RateLimit, TYPE_NAME, TypeConfig, SiteConfig, REMOVED_KEYS;
5361
5371
  var init_site_config = __esm({
5362
5372
  "../schema/src/site-config.ts"() {
5363
5373
  "use strict";
@@ -5407,6 +5417,9 @@ var init_site_config = __esm({
5407
5417
  /** Pro (§3): additive custom-schema SQL applied to the site database. */
5408
5418
  schema: external_exports.string().max(2e4).optional()
5409
5419
  }).strict();
5420
+ REMOVED_KEYS = {
5421
+ indexes: 'The "indexes" key was replaced by "query" \u2014 see query.<type>.fields.'
5422
+ };
5410
5423
  }
5411
5424
  });
5412
5425
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drivethrough-cli",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "description": "Agent-first hosting CLI. Say what you want. Stay in the car.",
5
5
  "type": "module",
6
6
  "license": "MIT",