@neopress/cli 4.8.0 → 4.8.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/dist/bin.cjs CHANGED
@@ -26229,7 +26229,7 @@ function shouldShowDeprecationWarning() {
26229
26229
  }
26230
26230
  if (shouldShowDeprecationWarning()) console.warn("⚠️ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");
26231
26231
  //#endregion
26232
- //#region ../sdk/dist/errors.js
26232
+ //#region ../sdk/src/errors.ts
26233
26233
  /**
26234
26234
  * SDK error classes
26235
26235
  */
@@ -26246,13 +26246,7 @@ var NeopressApiError = class extends Error {
26246
26246
  }
26247
26247
  };
26248
26248
  //#endregion
26249
- //#region ../sdk/dist/serializers.js
26250
- /**
26251
- * SDK serializers — convert DB snake_case rows to SDK camelCase shapes.
26252
- *
26253
- * Ported 1:1 from apps/neopress/src/lib/api/v1/serializers.ts.
26254
- * Do NOT change field mappings without updating both files.
26255
- */
26249
+ //#region ../sdk/src/serializers.ts
26256
26250
  function serializePageFull(page) {
26257
26251
  return {
26258
26252
  id: page.id,
@@ -26501,7 +26495,7 @@ function serializeSiteLayout(siteId, layout) {
26501
26495
  };
26502
26496
  }
26503
26497
  //#endregion
26504
- //#region ../sdk/dist/endpoints/pages.js
26498
+ //#region ../sdk/src/endpoints/pages.ts
26505
26499
  var PagesEndpoint = class {
26506
26500
  client;
26507
26501
  constructor(client) {
@@ -29898,7 +29892,7 @@ function getDefaultLogLevel() {
29898
29892
  }
29899
29893
  getDefaultLogLevel();
29900
29894
  //#endregion
29901
- //#region ../sdk/dist/endpoints/collections.js
29895
+ //#region ../sdk/src/endpoints/collections.ts
29902
29896
  var CollectionsEndpoint = class {
29903
29897
  client;
29904
29898
  constructor(client) {
@@ -29964,7 +29958,7 @@ var CollectionsEndpoint = class {
29964
29958
  }
29965
29959
  };
29966
29960
  //#endregion
29967
- //#region ../sdk/dist/endpoints/entries.js
29961
+ //#region ../sdk/src/endpoints/entries.ts
29968
29962
  var EntriesEndpoint = class {
29969
29963
  client;
29970
29964
  constructor(client) {
@@ -30037,7 +30031,7 @@ var EntriesEndpoint = class {
30037
30031
  }
30038
30032
  };
30039
30033
  //#endregion
30040
- //#region ../sdk/dist/endpoints/forms.js
30034
+ //#region ../sdk/src/endpoints/forms.ts
30041
30035
  var FormsEndpoint = class {
30042
30036
  client;
30043
30037
  constructor(client) {
@@ -30105,7 +30099,7 @@ var FormsEndpoint = class {
30105
30099
  }
30106
30100
  };
30107
30101
  //#endregion
30108
- //#region ../sdk/dist/endpoints/assets.js
30102
+ //#region ../sdk/src/endpoints/assets.ts
30109
30103
  var AssetsEndpoint = class {
30110
30104
  client;
30111
30105
  constructor(client) {
@@ -30166,7 +30160,7 @@ var AssetsEndpoint = class {
30166
30160
  }
30167
30161
  };
30168
30162
  //#endregion
30169
- //#region ../sdk/dist/endpoints/site.js
30163
+ //#region ../sdk/src/endpoints/site.ts
30170
30164
  var SiteEndpoint = class {
30171
30165
  client;
30172
30166
  constructor(client) {
@@ -30211,7 +30205,7 @@ var SiteEndpoint = class {
30211
30205
  }
30212
30206
  };
30213
30207
  //#endregion
30214
- //#region ../sdk/dist/endpoints/redirects.js
30208
+ //#region ../sdk/src/endpoints/redirects.ts
30215
30209
  const DASHBOARD_ONLY_REWRITE_MESSAGE = "Rewrite proxy rules can only be managed in the dashboard.";
30216
30210
  function rejectModeParam(data) {
30217
30211
  if (data && typeof data === "object" && Object.prototype.hasOwnProperty.call(data, "mode")) throw new NeopressApiError("REDIRECT_RULE_DASHBOARD_ONLY", DASHBOARD_ONLY_REWRITE_MESSAGE, 400);
@@ -30272,7 +30266,7 @@ var RedirectsEndpoint = class {
30272
30266
  }
30273
30267
  };
30274
30268
  //#endregion
30275
- //#region ../sdk/dist/endpoints/publish.js
30269
+ //#region ../sdk/src/endpoints/publish.ts
30276
30270
  var PublishEndpoint = class {
30277
30271
  client;
30278
30272
  constructor(client) {
@@ -30286,7 +30280,7 @@ var PublishEndpoint = class {
30286
30280
  }
30287
30281
  };
30288
30282
  //#endregion
30289
- //#region ../sdk/dist/endpoints/entry-references.js
30283
+ //#region ../sdk/src/endpoints/entry-references.ts
30290
30284
  var EntryReferencesEndpoint = class {
30291
30285
  client;
30292
30286
  constructor(client) {
@@ -30317,7 +30311,7 @@ var EntryReferencesEndpoint = class {
30317
30311
  }
30318
30312
  };
30319
30313
  //#endregion
30320
- //#region ../sdk/dist/endpoints/analytics.js
30314
+ //#region ../sdk/src/endpoints/analytics.ts
30321
30315
  const RESERVED_ANALYTICS_PARAMS = /* @__PURE__ */ new Set([
30322
30316
  "pipe",
30323
30317
  "site",
@@ -30402,7 +30396,7 @@ var AnalyticsEndpoint = class {
30402
30396
  }
30403
30397
  };
30404
30398
  //#endregion
30405
- //#region ../sdk/dist/endpoints/templates.js
30399
+ //#region ../sdk/src/endpoints/templates.ts
30406
30400
  var TemplatesEndpoint = class {
30407
30401
  client;
30408
30402
  constructor(client) {
@@ -30466,7 +30460,7 @@ var TemplatesEndpoint = class {
30466
30460
  }
30467
30461
  };
30468
30462
  //#endregion
30469
- //#region ../sdk/dist/endpoints/headshots.js
30463
+ //#region ../sdk/src/endpoints/headshots.ts
30470
30464
  /**
30471
30465
  * headshot_pool is a GLOBAL (not site-scoped) admin table. RLS exposes it only to
30472
30466
  * the super-admin user, so these direct-DB calls return empty/forbidden for any
@@ -30550,7 +30544,7 @@ var HeadshotsEndpoint = class {
30550
30544
  }
30551
30545
  };
30552
30546
  //#endregion
30553
- //#region ../sdk/dist/endpoints/logos.js
30547
+ //#region ../sdk/src/endpoints/logos.ts
30554
30548
  /**
30555
30549
  * logo_pool is a GLOBAL (not site-scoped) admin table. RLS exposes it only to the
30556
30550
  * super-admin user, so these direct-DB calls return empty/forbidden for any other
@@ -30640,7 +30634,7 @@ var LogosEndpoint = class {
30640
30634
  }
30641
30635
  };
30642
30636
  //#endregion
30643
- //#region ../sdk/dist/client.js
30637
+ //#region ../sdk/src/client.ts
30644
30638
  /**
30645
30639
  * @neopress/sdk — API Client
30646
30640
  *
@@ -30717,7 +30711,8 @@ var NeopressClient = class {
30717
30711
  * header so RLS applies. No session persistence/refresh — token freshness is the
30718
30712
  * caller's responsibility (CLI getClientAsync / MCP per-request).
30719
30713
  *
30720
- * `@internal` (with `stripInternal`) keeps this out of the emitted declarations:
30714
+ * `@internal` (with `stripInternal` in the cli/mcp dts configs — sdk itself no
30715
+ * longer emits) keeps this out of the published declarations:
30721
30716
  * it is plumbing for the endpoints in this package, and typing it publicly would
30722
30717
  * drag `SupabaseClient` + the generated `Database` into the published `.d.ts` of
30723
30718
  * `@neopress/cli` / `@neopress/mcp` — packages that declare no dependencies, so
@@ -31918,7 +31913,7 @@ function registerGuideCommands(program) {
31918
31913
  * Designed for use with Claude Code and other AI tools via --json mode.
31919
31914
  */
31920
31915
  const program = new Command();
31921
- program.name("neopress").description("Neopress CLI — manage your site from the terminal").version("4.8.0").option("--json", "Output in JSON format (for AI tools and pipes)").option("--site <idOrHandle>", "Target a specific site (overrides active site; not persisted)").option("--no-input", "Non-interactive mode").hook("preAction", (thisCommand) => {
31916
+ program.name("neopress").description("Neopress CLI — manage your site from the terminal").version("4.8.1").option("--json", "Output in JSON format (for AI tools and pipes)").option("--site <idOrHandle>", "Target a specific site (overrides active site; not persisted)").option("--no-input", "Non-interactive mode").hook("preAction", (thisCommand) => {
31922
31917
  const opts = thisCommand.optsWithGlobals();
31923
31918
  if (opts.site) setSiteOverride(String(opts.site));
31924
31919
  if (opts.json || !process.stdout.isTTY) setJsonMode(true);
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- //#region ../sdk/dist/types.d.ts
1
+ //#region ../sdk/src/types.d.ts
2
2
  /**
3
3
  * @neopress/sdk — First-party API types
4
4
  *
@@ -280,7 +280,7 @@ interface SearchConsoleQueryResult {
280
280
  error?: string;
281
281
  }
282
282
  //#endregion
283
- //#region ../sdk/dist/endpoints/pages.d.ts
283
+ //#region ../sdk/src/endpoints/pages.d.ts
284
284
  interface PageListParams {
285
285
  page?: number;
286
286
  limit?: number;
@@ -330,7 +330,7 @@ declare class PagesEndpoint {
330
330
  }>;
331
331
  }
332
332
  //#endregion
333
- //#region ../sdk/dist/endpoints/collections.d.ts
333
+ //#region ../sdk/src/endpoints/collections.d.ts
334
334
  interface CollectionCreateParams {
335
335
  name: string;
336
336
  presetType?: string;
@@ -363,7 +363,7 @@ declare class CollectionsEndpoint {
363
363
  }>;
364
364
  }
365
365
  //#endregion
366
- //#region ../sdk/dist/endpoints/entries.d.ts
366
+ //#region ../sdk/src/endpoints/entries.d.ts
367
367
  interface EntryListParams {
368
368
  page?: number;
369
369
  limit?: number;
@@ -413,7 +413,7 @@ declare class EntriesEndpoint {
413
413
  }>;
414
414
  }
415
415
  //#endregion
416
- //#region ../sdk/dist/endpoints/forms.d.ts
416
+ //#region ../sdk/src/endpoints/forms.d.ts
417
417
  interface FormCreateParams {
418
418
  name: string;
419
419
  draftSchema?: unknown;
@@ -453,7 +453,7 @@ declare class FormsEndpoint {
453
453
  deleteResponse(formId: number, responseId: number): Promise<void>;
454
454
  }
455
455
  //#endregion
456
- //#region ../sdk/dist/endpoints/assets.d.ts
456
+ //#region ../sdk/src/endpoints/assets.d.ts
457
457
  interface AssetRegisterParams {
458
458
  assetUrl: string;
459
459
  displayName?: string;
@@ -490,7 +490,7 @@ declare class AssetsEndpoint {
490
490
  }>;
491
491
  }
492
492
  //#endregion
493
- //#region ../sdk/dist/endpoints/site.d.ts
493
+ //#region ../sdk/src/endpoints/site.d.ts
494
494
  interface SiteWithRole extends Site {
495
495
  role: string;
496
496
  }
@@ -525,7 +525,7 @@ declare class SiteEndpoint {
525
525
  }>;
526
526
  }
527
527
  //#endregion
528
- //#region ../sdk/dist/endpoints/redirects.d.ts
528
+ //#region ../sdk/src/endpoints/redirects.d.ts
529
529
  interface RedirectCreateParams {
530
530
  source: string;
531
531
  destination: string;
@@ -547,7 +547,7 @@ declare class RedirectsEndpoint {
547
547
  delete(ruleId: number): Promise<void>;
548
548
  }
549
549
  //#endregion
550
- //#region ../sdk/dist/endpoints/publish.d.ts
550
+ //#region ../sdk/src/endpoints/publish.d.ts
551
551
  declare class PublishEndpoint {
552
552
  private readonly client;
553
553
  constructor(client: NeopressClient);
@@ -555,7 +555,7 @@ declare class PublishEndpoint {
555
555
  site(): Promise<unknown>;
556
556
  }
557
557
  //#endregion
558
- //#region ../sdk/dist/endpoints/entry-references.d.ts
558
+ //#region ../sdk/src/endpoints/entry-references.d.ts
559
559
  interface EntryReferenceListParams {
560
560
  fromEntryId?: number;
561
561
  toEntryId?: number;
@@ -575,7 +575,7 @@ declare class EntryReferencesEndpoint {
575
575
  delete(referenceId: number): Promise<void>;
576
576
  }
577
577
  //#endregion
578
- //#region ../sdk/dist/endpoints/analytics.d.ts
578
+ //#region ../sdk/src/endpoints/analytics.d.ts
579
579
  declare class AnalyticsEndpoint {
580
580
  private readonly client;
581
581
  constructor(client: NeopressClient);
@@ -590,7 +590,7 @@ declare class AnalyticsEndpoint {
590
590
  searchConsole(params: SearchConsoleQueryParams): Promise<SearchConsoleQueryResult>;
591
591
  }
592
592
  //#endregion
593
- //#region ../sdk/dist/endpoints/templates.d.ts
593
+ //#region ../sdk/src/endpoints/templates.d.ts
594
594
  interface TemplateMarkParams {
595
595
  name: string;
596
596
  description?: string | null;
@@ -626,7 +626,7 @@ declare class TemplatesEndpoint {
626
626
  }): Promise<TemplateListItem[]>;
627
627
  }
628
628
  //#endregion
629
- //#region ../sdk/dist/endpoints/headshots.d.ts
629
+ //#region ../sdk/src/endpoints/headshots.d.ts
630
630
  type HeadshotAgeBand = 'young' | 'middle';
631
631
  type HeadshotGender = 'male' | 'female';
632
632
  type HeadshotEthnicity = 'asian' | 'white' | 'black' | 'latino';
@@ -693,7 +693,7 @@ declare class HeadshotsEndpoint {
693
693
  delete(id: number): Promise<HeadshotDeleteResult>;
694
694
  }
695
695
  //#endregion
696
- //#region ../sdk/dist/endpoints/logos.d.ts
696
+ //#region ../sdk/src/endpoints/logos.d.ts
697
697
  type LogoType = 'wordmark' | 'lockup' | 'signature';
698
698
  type LogoTone = 'playful' | 'neutral' | 'serious';
699
699
  interface LogoListParams {
@@ -764,7 +764,7 @@ declare class LogosEndpoint {
764
764
  delete(id: number): Promise<LogoDeleteResult>;
765
765
  }
766
766
  //#endregion
767
- //#region ../sdk/dist/client.d.ts
767
+ //#region ../sdk/src/client.d.ts
768
768
  interface NeopressClientOptions {
769
769
  /** OAuth access token */
770
770
  accessToken?: string;
package/dist/index.js CHANGED
@@ -22804,7 +22804,7 @@ function shouldShowDeprecationWarning() {
22804
22804
  }
22805
22805
  if (shouldShowDeprecationWarning()) console.warn("⚠️ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");
22806
22806
  //#endregion
22807
- //#region ../sdk/dist/errors.js
22807
+ //#region ../sdk/src/errors.ts
22808
22808
  /**
22809
22809
  * SDK error classes
22810
22810
  */
@@ -22821,13 +22821,7 @@ var NeopressApiError = class extends Error {
22821
22821
  }
22822
22822
  };
22823
22823
  //#endregion
22824
- //#region ../sdk/dist/serializers.js
22825
- /**
22826
- * SDK serializers — convert DB snake_case rows to SDK camelCase shapes.
22827
- *
22828
- * Ported 1:1 from apps/neopress/src/lib/api/v1/serializers.ts.
22829
- * Do NOT change field mappings without updating both files.
22830
- */
22824
+ //#region ../sdk/src/serializers.ts
22831
22825
  function serializePageFull(page) {
22832
22826
  return {
22833
22827
  id: page.id,
@@ -23076,7 +23070,7 @@ function serializeSiteLayout(siteId, layout) {
23076
23070
  };
23077
23071
  }
23078
23072
  //#endregion
23079
- //#region ../sdk/dist/endpoints/pages.js
23073
+ //#region ../sdk/src/endpoints/pages.ts
23080
23074
  var PagesEndpoint = class {
23081
23075
  client;
23082
23076
  constructor(client) {
@@ -26473,7 +26467,7 @@ function getDefaultLogLevel() {
26473
26467
  }
26474
26468
  getDefaultLogLevel();
26475
26469
  //#endregion
26476
- //#region ../sdk/dist/endpoints/collections.js
26470
+ //#region ../sdk/src/endpoints/collections.ts
26477
26471
  var CollectionsEndpoint = class {
26478
26472
  client;
26479
26473
  constructor(client) {
@@ -26539,7 +26533,7 @@ var CollectionsEndpoint = class {
26539
26533
  }
26540
26534
  };
26541
26535
  //#endregion
26542
- //#region ../sdk/dist/endpoints/entries.js
26536
+ //#region ../sdk/src/endpoints/entries.ts
26543
26537
  var EntriesEndpoint = class {
26544
26538
  client;
26545
26539
  constructor(client) {
@@ -26612,7 +26606,7 @@ var EntriesEndpoint = class {
26612
26606
  }
26613
26607
  };
26614
26608
  //#endregion
26615
- //#region ../sdk/dist/endpoints/forms.js
26609
+ //#region ../sdk/src/endpoints/forms.ts
26616
26610
  var FormsEndpoint = class {
26617
26611
  client;
26618
26612
  constructor(client) {
@@ -26680,7 +26674,7 @@ var FormsEndpoint = class {
26680
26674
  }
26681
26675
  };
26682
26676
  //#endregion
26683
- //#region ../sdk/dist/endpoints/assets.js
26677
+ //#region ../sdk/src/endpoints/assets.ts
26684
26678
  var AssetsEndpoint = class {
26685
26679
  client;
26686
26680
  constructor(client) {
@@ -26741,7 +26735,7 @@ var AssetsEndpoint = class {
26741
26735
  }
26742
26736
  };
26743
26737
  //#endregion
26744
- //#region ../sdk/dist/endpoints/site.js
26738
+ //#region ../sdk/src/endpoints/site.ts
26745
26739
  var SiteEndpoint = class {
26746
26740
  client;
26747
26741
  constructor(client) {
@@ -26786,7 +26780,7 @@ var SiteEndpoint = class {
26786
26780
  }
26787
26781
  };
26788
26782
  //#endregion
26789
- //#region ../sdk/dist/endpoints/redirects.js
26783
+ //#region ../sdk/src/endpoints/redirects.ts
26790
26784
  const DASHBOARD_ONLY_REWRITE_MESSAGE = "Rewrite proxy rules can only be managed in the dashboard.";
26791
26785
  function rejectModeParam(data) {
26792
26786
  if (data && typeof data === "object" && Object.prototype.hasOwnProperty.call(data, "mode")) throw new NeopressApiError("REDIRECT_RULE_DASHBOARD_ONLY", DASHBOARD_ONLY_REWRITE_MESSAGE, 400);
@@ -26847,7 +26841,7 @@ var RedirectsEndpoint = class {
26847
26841
  }
26848
26842
  };
26849
26843
  //#endregion
26850
- //#region ../sdk/dist/endpoints/publish.js
26844
+ //#region ../sdk/src/endpoints/publish.ts
26851
26845
  var PublishEndpoint = class {
26852
26846
  client;
26853
26847
  constructor(client) {
@@ -26861,7 +26855,7 @@ var PublishEndpoint = class {
26861
26855
  }
26862
26856
  };
26863
26857
  //#endregion
26864
- //#region ../sdk/dist/endpoints/entry-references.js
26858
+ //#region ../sdk/src/endpoints/entry-references.ts
26865
26859
  var EntryReferencesEndpoint = class {
26866
26860
  client;
26867
26861
  constructor(client) {
@@ -26892,7 +26886,7 @@ var EntryReferencesEndpoint = class {
26892
26886
  }
26893
26887
  };
26894
26888
  //#endregion
26895
- //#region ../sdk/dist/endpoints/analytics.js
26889
+ //#region ../sdk/src/endpoints/analytics.ts
26896
26890
  const RESERVED_ANALYTICS_PARAMS = /* @__PURE__ */ new Set([
26897
26891
  "pipe",
26898
26892
  "site",
@@ -26977,7 +26971,7 @@ var AnalyticsEndpoint = class {
26977
26971
  }
26978
26972
  };
26979
26973
  //#endregion
26980
- //#region ../sdk/dist/endpoints/templates.js
26974
+ //#region ../sdk/src/endpoints/templates.ts
26981
26975
  var TemplatesEndpoint = class {
26982
26976
  client;
26983
26977
  constructor(client) {
@@ -27041,7 +27035,7 @@ var TemplatesEndpoint = class {
27041
27035
  }
27042
27036
  };
27043
27037
  //#endregion
27044
- //#region ../sdk/dist/endpoints/headshots.js
27038
+ //#region ../sdk/src/endpoints/headshots.ts
27045
27039
  /**
27046
27040
  * headshot_pool is a GLOBAL (not site-scoped) admin table. RLS exposes it only to
27047
27041
  * the super-admin user, so these direct-DB calls return empty/forbidden for any
@@ -27125,7 +27119,7 @@ var HeadshotsEndpoint = class {
27125
27119
  }
27126
27120
  };
27127
27121
  //#endregion
27128
- //#region ../sdk/dist/endpoints/logos.js
27122
+ //#region ../sdk/src/endpoints/logos.ts
27129
27123
  /**
27130
27124
  * logo_pool is a GLOBAL (not site-scoped) admin table. RLS exposes it only to the
27131
27125
  * super-admin user, so these direct-DB calls return empty/forbidden for any other
@@ -27215,7 +27209,7 @@ var LogosEndpoint = class {
27215
27209
  }
27216
27210
  };
27217
27211
  //#endregion
27218
- //#region ../sdk/dist/client.js
27212
+ //#region ../sdk/src/client.ts
27219
27213
  /**
27220
27214
  * @neopress/sdk — API Client
27221
27215
  *
@@ -27292,7 +27286,8 @@ var NeopressClient = class {
27292
27286
  * header so RLS applies. No session persistence/refresh — token freshness is the
27293
27287
  * caller's responsibility (CLI getClientAsync / MCP per-request).
27294
27288
  *
27295
- * `@internal` (with `stripInternal`) keeps this out of the emitted declarations:
27289
+ * `@internal` (with `stripInternal` in the cli/mcp dts configs — sdk itself no
27290
+ * longer emits) keeps this out of the published declarations:
27296
27291
  * it is plumbing for the endpoints in this package, and typing it publicly would
27297
27292
  * drag `SupabaseClient` + the generated `Database` into the published `.d.ts` of
27298
27293
  * `@neopress/cli` / `@neopress/mcp` — packages that declare no dependencies, so
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neopress/cli",
3
- "version": "4.8.0",
3
+ "version": "4.8.1",
4
4
  "description": "Neopress CLI — manage your Neopress site from the terminal",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -36,7 +36,7 @@
36
36
  "@neopress/sdk": "0.4.0"
37
37
  },
38
38
  "scripts": {
39
- "build": "tsdown && node ./scripts/check-dist-contract.mjs",
39
+ "build": "NODE_OPTIONS=--max-old-space-size=4096 tsdown && node ./scripts/check-dist-contract.mjs",
40
40
  "dev": "tsdown --watch",
41
41
  "lint": "tsc --noEmit",
42
42
  "test": "vitest run"