@neopress/mcp 1.3.0 → 1.3.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 +18 -23
- package/dist/http-bin.cjs +18 -23
- package/dist/index.d.ts +15 -15
- package/dist/index.js +18 -23
- package/package.json +2 -2
- package/scripts/check-dist-contract.mjs +4 -3
package/dist/bin.cjs
CHANGED
|
@@ -42291,7 +42291,7 @@ function shouldShowDeprecationWarning() {
|
|
|
42291
42291
|
}
|
|
42292
42292
|
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");
|
|
42293
42293
|
//#endregion
|
|
42294
|
-
//#region ../sdk/
|
|
42294
|
+
//#region ../sdk/src/errors.ts
|
|
42295
42295
|
/**
|
|
42296
42296
|
* SDK error classes
|
|
42297
42297
|
*/
|
|
@@ -42308,13 +42308,7 @@ var NeopressApiError = class extends Error {
|
|
|
42308
42308
|
}
|
|
42309
42309
|
};
|
|
42310
42310
|
//#endregion
|
|
42311
|
-
//#region ../sdk/
|
|
42312
|
-
/**
|
|
42313
|
-
* SDK serializers — convert DB snake_case rows to SDK camelCase shapes.
|
|
42314
|
-
*
|
|
42315
|
-
* Ported 1:1 from apps/neopress/src/lib/api/v1/serializers.ts.
|
|
42316
|
-
* Do NOT change field mappings without updating both files.
|
|
42317
|
-
*/
|
|
42311
|
+
//#region ../sdk/src/serializers.ts
|
|
42318
42312
|
function serializePageFull(page) {
|
|
42319
42313
|
return {
|
|
42320
42314
|
id: page.id,
|
|
@@ -42563,7 +42557,7 @@ function serializeSiteLayout(siteId, layout) {
|
|
|
42563
42557
|
};
|
|
42564
42558
|
}
|
|
42565
42559
|
//#endregion
|
|
42566
|
-
//#region ../sdk/
|
|
42560
|
+
//#region ../sdk/src/endpoints/pages.ts
|
|
42567
42561
|
var PagesEndpoint = class {
|
|
42568
42562
|
client;
|
|
42569
42563
|
constructor(client) {
|
|
@@ -42897,7 +42891,7 @@ function getDefaultLogLevel() {
|
|
|
42897
42891
|
}
|
|
42898
42892
|
getDefaultLogLevel();
|
|
42899
42893
|
//#endregion
|
|
42900
|
-
//#region ../sdk/
|
|
42894
|
+
//#region ../sdk/src/endpoints/collections.ts
|
|
42901
42895
|
var CollectionsEndpoint = class {
|
|
42902
42896
|
client;
|
|
42903
42897
|
constructor(client) {
|
|
@@ -42963,7 +42957,7 @@ var CollectionsEndpoint = class {
|
|
|
42963
42957
|
}
|
|
42964
42958
|
};
|
|
42965
42959
|
//#endregion
|
|
42966
|
-
//#region ../sdk/
|
|
42960
|
+
//#region ../sdk/src/endpoints/entries.ts
|
|
42967
42961
|
var EntriesEndpoint = class {
|
|
42968
42962
|
client;
|
|
42969
42963
|
constructor(client) {
|
|
@@ -43036,7 +43030,7 @@ var EntriesEndpoint = class {
|
|
|
43036
43030
|
}
|
|
43037
43031
|
};
|
|
43038
43032
|
//#endregion
|
|
43039
|
-
//#region ../sdk/
|
|
43033
|
+
//#region ../sdk/src/endpoints/forms.ts
|
|
43040
43034
|
var FormsEndpoint = class {
|
|
43041
43035
|
client;
|
|
43042
43036
|
constructor(client) {
|
|
@@ -43104,7 +43098,7 @@ var FormsEndpoint = class {
|
|
|
43104
43098
|
}
|
|
43105
43099
|
};
|
|
43106
43100
|
//#endregion
|
|
43107
|
-
//#region ../sdk/
|
|
43101
|
+
//#region ../sdk/src/endpoints/assets.ts
|
|
43108
43102
|
var AssetsEndpoint = class {
|
|
43109
43103
|
client;
|
|
43110
43104
|
constructor(client) {
|
|
@@ -43165,7 +43159,7 @@ var AssetsEndpoint = class {
|
|
|
43165
43159
|
}
|
|
43166
43160
|
};
|
|
43167
43161
|
//#endregion
|
|
43168
|
-
//#region ../sdk/
|
|
43162
|
+
//#region ../sdk/src/endpoints/site.ts
|
|
43169
43163
|
var SiteEndpoint = class {
|
|
43170
43164
|
client;
|
|
43171
43165
|
constructor(client) {
|
|
@@ -43210,7 +43204,7 @@ var SiteEndpoint = class {
|
|
|
43210
43204
|
}
|
|
43211
43205
|
};
|
|
43212
43206
|
//#endregion
|
|
43213
|
-
//#region ../sdk/
|
|
43207
|
+
//#region ../sdk/src/endpoints/redirects.ts
|
|
43214
43208
|
const DASHBOARD_ONLY_REWRITE_MESSAGE = "Rewrite proxy rules can only be managed in the dashboard.";
|
|
43215
43209
|
function rejectModeParam(data) {
|
|
43216
43210
|
if (data && typeof data === "object" && Object.prototype.hasOwnProperty.call(data, "mode")) throw new NeopressApiError("REDIRECT_RULE_DASHBOARD_ONLY", DASHBOARD_ONLY_REWRITE_MESSAGE, 400);
|
|
@@ -43271,7 +43265,7 @@ var RedirectsEndpoint = class {
|
|
|
43271
43265
|
}
|
|
43272
43266
|
};
|
|
43273
43267
|
//#endregion
|
|
43274
|
-
//#region ../sdk/
|
|
43268
|
+
//#region ../sdk/src/endpoints/publish.ts
|
|
43275
43269
|
var PublishEndpoint = class {
|
|
43276
43270
|
client;
|
|
43277
43271
|
constructor(client) {
|
|
@@ -43285,7 +43279,7 @@ var PublishEndpoint = class {
|
|
|
43285
43279
|
}
|
|
43286
43280
|
};
|
|
43287
43281
|
//#endregion
|
|
43288
|
-
//#region ../sdk/
|
|
43282
|
+
//#region ../sdk/src/endpoints/entry-references.ts
|
|
43289
43283
|
var EntryReferencesEndpoint = class {
|
|
43290
43284
|
client;
|
|
43291
43285
|
constructor(client) {
|
|
@@ -43316,7 +43310,7 @@ var EntryReferencesEndpoint = class {
|
|
|
43316
43310
|
}
|
|
43317
43311
|
};
|
|
43318
43312
|
//#endregion
|
|
43319
|
-
//#region ../sdk/
|
|
43313
|
+
//#region ../sdk/src/endpoints/analytics.ts
|
|
43320
43314
|
const RESERVED_ANALYTICS_PARAMS = /* @__PURE__ */ new Set([
|
|
43321
43315
|
"pipe",
|
|
43322
43316
|
"site",
|
|
@@ -43401,7 +43395,7 @@ var AnalyticsEndpoint = class {
|
|
|
43401
43395
|
}
|
|
43402
43396
|
};
|
|
43403
43397
|
//#endregion
|
|
43404
|
-
//#region ../sdk/
|
|
43398
|
+
//#region ../sdk/src/endpoints/templates.ts
|
|
43405
43399
|
var TemplatesEndpoint = class {
|
|
43406
43400
|
client;
|
|
43407
43401
|
constructor(client) {
|
|
@@ -43465,7 +43459,7 @@ var TemplatesEndpoint = class {
|
|
|
43465
43459
|
}
|
|
43466
43460
|
};
|
|
43467
43461
|
//#endregion
|
|
43468
|
-
//#region ../sdk/
|
|
43462
|
+
//#region ../sdk/src/endpoints/headshots.ts
|
|
43469
43463
|
/**
|
|
43470
43464
|
* headshot_pool is a GLOBAL (not site-scoped) admin table. RLS exposes it only to
|
|
43471
43465
|
* the super-admin user, so these direct-DB calls return empty/forbidden for any
|
|
@@ -43549,7 +43543,7 @@ var HeadshotsEndpoint = class {
|
|
|
43549
43543
|
}
|
|
43550
43544
|
};
|
|
43551
43545
|
//#endregion
|
|
43552
|
-
//#region ../sdk/
|
|
43546
|
+
//#region ../sdk/src/endpoints/logos.ts
|
|
43553
43547
|
/**
|
|
43554
43548
|
* logo_pool is a GLOBAL (not site-scoped) admin table. RLS exposes it only to the
|
|
43555
43549
|
* super-admin user, so these direct-DB calls return empty/forbidden for any other
|
|
@@ -43639,7 +43633,7 @@ var LogosEndpoint = class {
|
|
|
43639
43633
|
}
|
|
43640
43634
|
};
|
|
43641
43635
|
//#endregion
|
|
43642
|
-
//#region ../sdk/
|
|
43636
|
+
//#region ../sdk/src/client.ts
|
|
43643
43637
|
/**
|
|
43644
43638
|
* @neopress/sdk — API Client
|
|
43645
43639
|
*
|
|
@@ -43716,7 +43710,8 @@ var NeopressClient = class {
|
|
|
43716
43710
|
* header so RLS applies. No session persistence/refresh — token freshness is the
|
|
43717
43711
|
* caller's responsibility (CLI getClientAsync / MCP per-request).
|
|
43718
43712
|
*
|
|
43719
|
-
* `@internal` (with `stripInternal`
|
|
43713
|
+
* `@internal` (with `stripInternal` in the cli/mcp dts configs — sdk itself no
|
|
43714
|
+
* longer emits) keeps this out of the published declarations:
|
|
43720
43715
|
* it is plumbing for the endpoints in this package, and typing it publicly would
|
|
43721
43716
|
* drag `SupabaseClient` + the generated `Database` into the published `.d.ts` of
|
|
43722
43717
|
* `@neopress/cli` / `@neopress/mcp` — packages that declare no dependencies, so
|
package/dist/http-bin.cjs
CHANGED
|
@@ -43400,7 +43400,7 @@ function shouldShowDeprecationWarning() {
|
|
|
43400
43400
|
}
|
|
43401
43401
|
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");
|
|
43402
43402
|
//#endregion
|
|
43403
|
-
//#region ../sdk/
|
|
43403
|
+
//#region ../sdk/src/errors.ts
|
|
43404
43404
|
/**
|
|
43405
43405
|
* SDK error classes
|
|
43406
43406
|
*/
|
|
@@ -43417,13 +43417,7 @@ var NeopressApiError = class extends Error {
|
|
|
43417
43417
|
}
|
|
43418
43418
|
};
|
|
43419
43419
|
//#endregion
|
|
43420
|
-
//#region ../sdk/
|
|
43421
|
-
/**
|
|
43422
|
-
* SDK serializers — convert DB snake_case rows to SDK camelCase shapes.
|
|
43423
|
-
*
|
|
43424
|
-
* Ported 1:1 from apps/neopress/src/lib/api/v1/serializers.ts.
|
|
43425
|
-
* Do NOT change field mappings without updating both files.
|
|
43426
|
-
*/
|
|
43420
|
+
//#region ../sdk/src/serializers.ts
|
|
43427
43421
|
function serializePageFull(page) {
|
|
43428
43422
|
return {
|
|
43429
43423
|
id: page.id,
|
|
@@ -43672,7 +43666,7 @@ function serializeSiteLayout(siteId, layout) {
|
|
|
43672
43666
|
};
|
|
43673
43667
|
}
|
|
43674
43668
|
//#endregion
|
|
43675
|
-
//#region ../sdk/
|
|
43669
|
+
//#region ../sdk/src/endpoints/pages.ts
|
|
43676
43670
|
var PagesEndpoint = class {
|
|
43677
43671
|
client;
|
|
43678
43672
|
constructor(client) {
|
|
@@ -44006,7 +44000,7 @@ function getDefaultLogLevel() {
|
|
|
44006
44000
|
}
|
|
44007
44001
|
getDefaultLogLevel();
|
|
44008
44002
|
//#endregion
|
|
44009
|
-
//#region ../sdk/
|
|
44003
|
+
//#region ../sdk/src/endpoints/collections.ts
|
|
44010
44004
|
var CollectionsEndpoint = class {
|
|
44011
44005
|
client;
|
|
44012
44006
|
constructor(client) {
|
|
@@ -44072,7 +44066,7 @@ var CollectionsEndpoint = class {
|
|
|
44072
44066
|
}
|
|
44073
44067
|
};
|
|
44074
44068
|
//#endregion
|
|
44075
|
-
//#region ../sdk/
|
|
44069
|
+
//#region ../sdk/src/endpoints/entries.ts
|
|
44076
44070
|
var EntriesEndpoint = class {
|
|
44077
44071
|
client;
|
|
44078
44072
|
constructor(client) {
|
|
@@ -44145,7 +44139,7 @@ var EntriesEndpoint = class {
|
|
|
44145
44139
|
}
|
|
44146
44140
|
};
|
|
44147
44141
|
//#endregion
|
|
44148
|
-
//#region ../sdk/
|
|
44142
|
+
//#region ../sdk/src/endpoints/forms.ts
|
|
44149
44143
|
var FormsEndpoint = class {
|
|
44150
44144
|
client;
|
|
44151
44145
|
constructor(client) {
|
|
@@ -44213,7 +44207,7 @@ var FormsEndpoint = class {
|
|
|
44213
44207
|
}
|
|
44214
44208
|
};
|
|
44215
44209
|
//#endregion
|
|
44216
|
-
//#region ../sdk/
|
|
44210
|
+
//#region ../sdk/src/endpoints/assets.ts
|
|
44217
44211
|
var AssetsEndpoint = class {
|
|
44218
44212
|
client;
|
|
44219
44213
|
constructor(client) {
|
|
@@ -44274,7 +44268,7 @@ var AssetsEndpoint = class {
|
|
|
44274
44268
|
}
|
|
44275
44269
|
};
|
|
44276
44270
|
//#endregion
|
|
44277
|
-
//#region ../sdk/
|
|
44271
|
+
//#region ../sdk/src/endpoints/site.ts
|
|
44278
44272
|
var SiteEndpoint = class {
|
|
44279
44273
|
client;
|
|
44280
44274
|
constructor(client) {
|
|
@@ -44319,7 +44313,7 @@ var SiteEndpoint = class {
|
|
|
44319
44313
|
}
|
|
44320
44314
|
};
|
|
44321
44315
|
//#endregion
|
|
44322
|
-
//#region ../sdk/
|
|
44316
|
+
//#region ../sdk/src/endpoints/redirects.ts
|
|
44323
44317
|
const DASHBOARD_ONLY_REWRITE_MESSAGE = "Rewrite proxy rules can only be managed in the dashboard.";
|
|
44324
44318
|
function rejectModeParam(data) {
|
|
44325
44319
|
if (data && typeof data === "object" && Object.prototype.hasOwnProperty.call(data, "mode")) throw new NeopressApiError("REDIRECT_RULE_DASHBOARD_ONLY", DASHBOARD_ONLY_REWRITE_MESSAGE, 400);
|
|
@@ -44380,7 +44374,7 @@ var RedirectsEndpoint = class {
|
|
|
44380
44374
|
}
|
|
44381
44375
|
};
|
|
44382
44376
|
//#endregion
|
|
44383
|
-
//#region ../sdk/
|
|
44377
|
+
//#region ../sdk/src/endpoints/publish.ts
|
|
44384
44378
|
var PublishEndpoint = class {
|
|
44385
44379
|
client;
|
|
44386
44380
|
constructor(client) {
|
|
@@ -44394,7 +44388,7 @@ var PublishEndpoint = class {
|
|
|
44394
44388
|
}
|
|
44395
44389
|
};
|
|
44396
44390
|
//#endregion
|
|
44397
|
-
//#region ../sdk/
|
|
44391
|
+
//#region ../sdk/src/endpoints/entry-references.ts
|
|
44398
44392
|
var EntryReferencesEndpoint = class {
|
|
44399
44393
|
client;
|
|
44400
44394
|
constructor(client) {
|
|
@@ -44425,7 +44419,7 @@ var EntryReferencesEndpoint = class {
|
|
|
44425
44419
|
}
|
|
44426
44420
|
};
|
|
44427
44421
|
//#endregion
|
|
44428
|
-
//#region ../sdk/
|
|
44422
|
+
//#region ../sdk/src/endpoints/analytics.ts
|
|
44429
44423
|
const RESERVED_ANALYTICS_PARAMS = /* @__PURE__ */ new Set([
|
|
44430
44424
|
"pipe",
|
|
44431
44425
|
"site",
|
|
@@ -44510,7 +44504,7 @@ var AnalyticsEndpoint = class {
|
|
|
44510
44504
|
}
|
|
44511
44505
|
};
|
|
44512
44506
|
//#endregion
|
|
44513
|
-
//#region ../sdk/
|
|
44507
|
+
//#region ../sdk/src/endpoints/templates.ts
|
|
44514
44508
|
var TemplatesEndpoint = class {
|
|
44515
44509
|
client;
|
|
44516
44510
|
constructor(client) {
|
|
@@ -44574,7 +44568,7 @@ var TemplatesEndpoint = class {
|
|
|
44574
44568
|
}
|
|
44575
44569
|
};
|
|
44576
44570
|
//#endregion
|
|
44577
|
-
//#region ../sdk/
|
|
44571
|
+
//#region ../sdk/src/endpoints/headshots.ts
|
|
44578
44572
|
/**
|
|
44579
44573
|
* headshot_pool is a GLOBAL (not site-scoped) admin table. RLS exposes it only to
|
|
44580
44574
|
* the super-admin user, so these direct-DB calls return empty/forbidden for any
|
|
@@ -44658,7 +44652,7 @@ var HeadshotsEndpoint = class {
|
|
|
44658
44652
|
}
|
|
44659
44653
|
};
|
|
44660
44654
|
//#endregion
|
|
44661
|
-
//#region ../sdk/
|
|
44655
|
+
//#region ../sdk/src/endpoints/logos.ts
|
|
44662
44656
|
/**
|
|
44663
44657
|
* logo_pool is a GLOBAL (not site-scoped) admin table. RLS exposes it only to the
|
|
44664
44658
|
* super-admin user, so these direct-DB calls return empty/forbidden for any other
|
|
@@ -44748,7 +44742,7 @@ var LogosEndpoint = class {
|
|
|
44748
44742
|
}
|
|
44749
44743
|
};
|
|
44750
44744
|
//#endregion
|
|
44751
|
-
//#region ../sdk/
|
|
44745
|
+
//#region ../sdk/src/client.ts
|
|
44752
44746
|
/**
|
|
44753
44747
|
* @neopress/sdk — API Client
|
|
44754
44748
|
*
|
|
@@ -44825,7 +44819,8 @@ var NeopressClient = class {
|
|
|
44825
44819
|
* header so RLS applies. No session persistence/refresh — token freshness is the
|
|
44826
44820
|
* caller's responsibility (CLI getClientAsync / MCP per-request).
|
|
44827
44821
|
*
|
|
44828
|
-
* `@internal` (with `stripInternal`
|
|
44822
|
+
* `@internal` (with `stripInternal` in the cli/mcp dts configs — sdk itself no
|
|
44823
|
+
* longer emits) keeps this out of the published declarations:
|
|
44829
44824
|
* it is plumbing for the endpoints in this package, and typing it publicly would
|
|
44830
44825
|
* drag `SupabaseClient` + the generated `Database` into the published `.d.ts` of
|
|
44831
44826
|
* `@neopress/cli` / `@neopress/mcp` — packages that declare no dependencies, so
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { Server } from "node:http";
|
|
|
4
4
|
import { ServerNotification, ServerRequest } from "@modelcontextprotocol/sdk/types.js";
|
|
5
5
|
import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js";
|
|
6
6
|
import { AddressInfo } from "node:net";
|
|
7
|
-
//#region ../sdk/
|
|
7
|
+
//#region ../sdk/src/types.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* @neopress/sdk — First-party API types
|
|
10
10
|
*
|
|
@@ -286,7 +286,7 @@ interface SearchConsoleQueryResult {
|
|
|
286
286
|
error?: string;
|
|
287
287
|
}
|
|
288
288
|
//#endregion
|
|
289
|
-
//#region ../sdk/
|
|
289
|
+
//#region ../sdk/src/endpoints/pages.d.ts
|
|
290
290
|
interface PageListParams {
|
|
291
291
|
page?: number;
|
|
292
292
|
limit?: number;
|
|
@@ -336,7 +336,7 @@ declare class PagesEndpoint {
|
|
|
336
336
|
}>;
|
|
337
337
|
}
|
|
338
338
|
//#endregion
|
|
339
|
-
//#region ../sdk/
|
|
339
|
+
//#region ../sdk/src/endpoints/collections.d.ts
|
|
340
340
|
interface CollectionCreateParams {
|
|
341
341
|
name: string;
|
|
342
342
|
presetType?: string;
|
|
@@ -369,7 +369,7 @@ declare class CollectionsEndpoint {
|
|
|
369
369
|
}>;
|
|
370
370
|
}
|
|
371
371
|
//#endregion
|
|
372
|
-
//#region ../sdk/
|
|
372
|
+
//#region ../sdk/src/endpoints/entries.d.ts
|
|
373
373
|
interface EntryListParams {
|
|
374
374
|
page?: number;
|
|
375
375
|
limit?: number;
|
|
@@ -419,7 +419,7 @@ declare class EntriesEndpoint {
|
|
|
419
419
|
}>;
|
|
420
420
|
}
|
|
421
421
|
//#endregion
|
|
422
|
-
//#region ../sdk/
|
|
422
|
+
//#region ../sdk/src/endpoints/forms.d.ts
|
|
423
423
|
interface FormCreateParams {
|
|
424
424
|
name: string;
|
|
425
425
|
draftSchema?: unknown;
|
|
@@ -459,7 +459,7 @@ declare class FormsEndpoint {
|
|
|
459
459
|
deleteResponse(formId: number, responseId: number): Promise<void>;
|
|
460
460
|
}
|
|
461
461
|
//#endregion
|
|
462
|
-
//#region ../sdk/
|
|
462
|
+
//#region ../sdk/src/endpoints/assets.d.ts
|
|
463
463
|
interface AssetRegisterParams {
|
|
464
464
|
assetUrl: string;
|
|
465
465
|
displayName?: string;
|
|
@@ -496,7 +496,7 @@ declare class AssetsEndpoint {
|
|
|
496
496
|
}>;
|
|
497
497
|
}
|
|
498
498
|
//#endregion
|
|
499
|
-
//#region ../sdk/
|
|
499
|
+
//#region ../sdk/src/endpoints/site.d.ts
|
|
500
500
|
interface SiteWithRole extends Site {
|
|
501
501
|
role: string;
|
|
502
502
|
}
|
|
@@ -531,7 +531,7 @@ declare class SiteEndpoint {
|
|
|
531
531
|
}>;
|
|
532
532
|
}
|
|
533
533
|
//#endregion
|
|
534
|
-
//#region ../sdk/
|
|
534
|
+
//#region ../sdk/src/endpoints/redirects.d.ts
|
|
535
535
|
interface RedirectCreateParams {
|
|
536
536
|
source: string;
|
|
537
537
|
destination: string;
|
|
@@ -553,7 +553,7 @@ declare class RedirectsEndpoint {
|
|
|
553
553
|
delete(ruleId: number): Promise<void>;
|
|
554
554
|
}
|
|
555
555
|
//#endregion
|
|
556
|
-
//#region ../sdk/
|
|
556
|
+
//#region ../sdk/src/endpoints/publish.d.ts
|
|
557
557
|
declare class PublishEndpoint {
|
|
558
558
|
private readonly client;
|
|
559
559
|
constructor(client: NeopressClient);
|
|
@@ -561,7 +561,7 @@ declare class PublishEndpoint {
|
|
|
561
561
|
site(): Promise<unknown>;
|
|
562
562
|
}
|
|
563
563
|
//#endregion
|
|
564
|
-
//#region ../sdk/
|
|
564
|
+
//#region ../sdk/src/endpoints/entry-references.d.ts
|
|
565
565
|
interface EntryReferenceListParams {
|
|
566
566
|
fromEntryId?: number;
|
|
567
567
|
toEntryId?: number;
|
|
@@ -581,7 +581,7 @@ declare class EntryReferencesEndpoint {
|
|
|
581
581
|
delete(referenceId: number): Promise<void>;
|
|
582
582
|
}
|
|
583
583
|
//#endregion
|
|
584
|
-
//#region ../sdk/
|
|
584
|
+
//#region ../sdk/src/endpoints/analytics.d.ts
|
|
585
585
|
declare class AnalyticsEndpoint {
|
|
586
586
|
private readonly client;
|
|
587
587
|
constructor(client: NeopressClient);
|
|
@@ -596,7 +596,7 @@ declare class AnalyticsEndpoint {
|
|
|
596
596
|
searchConsole(params: SearchConsoleQueryParams): Promise<SearchConsoleQueryResult>;
|
|
597
597
|
}
|
|
598
598
|
//#endregion
|
|
599
|
-
//#region ../sdk/
|
|
599
|
+
//#region ../sdk/src/endpoints/templates.d.ts
|
|
600
600
|
interface TemplateMarkParams {
|
|
601
601
|
name: string;
|
|
602
602
|
description?: string | null;
|
|
@@ -632,7 +632,7 @@ declare class TemplatesEndpoint {
|
|
|
632
632
|
}): Promise<TemplateListItem[]>;
|
|
633
633
|
}
|
|
634
634
|
//#endregion
|
|
635
|
-
//#region ../sdk/
|
|
635
|
+
//#region ../sdk/src/endpoints/headshots.d.ts
|
|
636
636
|
type HeadshotAgeBand = 'young' | 'middle';
|
|
637
637
|
type HeadshotGender = 'male' | 'female';
|
|
638
638
|
type HeadshotEthnicity = 'asian' | 'white' | 'black' | 'latino';
|
|
@@ -699,7 +699,7 @@ declare class HeadshotsEndpoint {
|
|
|
699
699
|
delete(id: number): Promise<HeadshotDeleteResult>;
|
|
700
700
|
}
|
|
701
701
|
//#endregion
|
|
702
|
-
//#region ../sdk/
|
|
702
|
+
//#region ../sdk/src/endpoints/logos.d.ts
|
|
703
703
|
type LogoType = 'wordmark' | 'lockup' | 'signature';
|
|
704
704
|
type LogoTone = 'playful' | 'neutral' | 'serious';
|
|
705
705
|
interface LogoListParams {
|
|
@@ -770,7 +770,7 @@ declare class LogosEndpoint {
|
|
|
770
770
|
delete(id: number): Promise<LogoDeleteResult>;
|
|
771
771
|
}
|
|
772
772
|
//#endregion
|
|
773
|
-
//#region ../sdk/
|
|
773
|
+
//#region ../sdk/src/client.d.ts
|
|
774
774
|
interface NeopressClientOptions {
|
|
775
775
|
/** OAuth access token */
|
|
776
776
|
accessToken?: string;
|
package/dist/index.js
CHANGED
|
@@ -22809,7 +22809,7 @@ function shouldShowDeprecationWarning() {
|
|
|
22809
22809
|
}
|
|
22810
22810
|
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");
|
|
22811
22811
|
//#endregion
|
|
22812
|
-
//#region ../sdk/
|
|
22812
|
+
//#region ../sdk/src/errors.ts
|
|
22813
22813
|
/**
|
|
22814
22814
|
* SDK error classes
|
|
22815
22815
|
*/
|
|
@@ -22826,13 +22826,7 @@ var NeopressApiError = class extends Error {
|
|
|
22826
22826
|
}
|
|
22827
22827
|
};
|
|
22828
22828
|
//#endregion
|
|
22829
|
-
//#region ../sdk/
|
|
22830
|
-
/**
|
|
22831
|
-
* SDK serializers — convert DB snake_case rows to SDK camelCase shapes.
|
|
22832
|
-
*
|
|
22833
|
-
* Ported 1:1 from apps/neopress/src/lib/api/v1/serializers.ts.
|
|
22834
|
-
* Do NOT change field mappings without updating both files.
|
|
22835
|
-
*/
|
|
22829
|
+
//#region ../sdk/src/serializers.ts
|
|
22836
22830
|
function serializePageFull(page) {
|
|
22837
22831
|
return {
|
|
22838
22832
|
id: page.id,
|
|
@@ -23081,7 +23075,7 @@ function serializeSiteLayout(siteId, layout) {
|
|
|
23081
23075
|
};
|
|
23082
23076
|
}
|
|
23083
23077
|
//#endregion
|
|
23084
|
-
//#region ../sdk/
|
|
23078
|
+
//#region ../sdk/src/endpoints/pages.ts
|
|
23085
23079
|
var PagesEndpoint = class {
|
|
23086
23080
|
client;
|
|
23087
23081
|
constructor(client) {
|
|
@@ -23420,7 +23414,7 @@ function getDefaultLogLevel() {
|
|
|
23420
23414
|
}
|
|
23421
23415
|
getDefaultLogLevel();
|
|
23422
23416
|
//#endregion
|
|
23423
|
-
//#region ../sdk/
|
|
23417
|
+
//#region ../sdk/src/endpoints/collections.ts
|
|
23424
23418
|
var CollectionsEndpoint = class {
|
|
23425
23419
|
client;
|
|
23426
23420
|
constructor(client) {
|
|
@@ -23486,7 +23480,7 @@ var CollectionsEndpoint = class {
|
|
|
23486
23480
|
}
|
|
23487
23481
|
};
|
|
23488
23482
|
//#endregion
|
|
23489
|
-
//#region ../sdk/
|
|
23483
|
+
//#region ../sdk/src/endpoints/entries.ts
|
|
23490
23484
|
var EntriesEndpoint = class {
|
|
23491
23485
|
client;
|
|
23492
23486
|
constructor(client) {
|
|
@@ -23559,7 +23553,7 @@ var EntriesEndpoint = class {
|
|
|
23559
23553
|
}
|
|
23560
23554
|
};
|
|
23561
23555
|
//#endregion
|
|
23562
|
-
//#region ../sdk/
|
|
23556
|
+
//#region ../sdk/src/endpoints/forms.ts
|
|
23563
23557
|
var FormsEndpoint = class {
|
|
23564
23558
|
client;
|
|
23565
23559
|
constructor(client) {
|
|
@@ -23627,7 +23621,7 @@ var FormsEndpoint = class {
|
|
|
23627
23621
|
}
|
|
23628
23622
|
};
|
|
23629
23623
|
//#endregion
|
|
23630
|
-
//#region ../sdk/
|
|
23624
|
+
//#region ../sdk/src/endpoints/assets.ts
|
|
23631
23625
|
var AssetsEndpoint = class {
|
|
23632
23626
|
client;
|
|
23633
23627
|
constructor(client) {
|
|
@@ -23688,7 +23682,7 @@ var AssetsEndpoint = class {
|
|
|
23688
23682
|
}
|
|
23689
23683
|
};
|
|
23690
23684
|
//#endregion
|
|
23691
|
-
//#region ../sdk/
|
|
23685
|
+
//#region ../sdk/src/endpoints/site.ts
|
|
23692
23686
|
var SiteEndpoint = class {
|
|
23693
23687
|
client;
|
|
23694
23688
|
constructor(client) {
|
|
@@ -23733,7 +23727,7 @@ var SiteEndpoint = class {
|
|
|
23733
23727
|
}
|
|
23734
23728
|
};
|
|
23735
23729
|
//#endregion
|
|
23736
|
-
//#region ../sdk/
|
|
23730
|
+
//#region ../sdk/src/endpoints/redirects.ts
|
|
23737
23731
|
const DASHBOARD_ONLY_REWRITE_MESSAGE = "Rewrite proxy rules can only be managed in the dashboard.";
|
|
23738
23732
|
function rejectModeParam(data) {
|
|
23739
23733
|
if (data && typeof data === "object" && Object.prototype.hasOwnProperty.call(data, "mode")) throw new NeopressApiError("REDIRECT_RULE_DASHBOARD_ONLY", DASHBOARD_ONLY_REWRITE_MESSAGE, 400);
|
|
@@ -23794,7 +23788,7 @@ var RedirectsEndpoint = class {
|
|
|
23794
23788
|
}
|
|
23795
23789
|
};
|
|
23796
23790
|
//#endregion
|
|
23797
|
-
//#region ../sdk/
|
|
23791
|
+
//#region ../sdk/src/endpoints/publish.ts
|
|
23798
23792
|
var PublishEndpoint = class {
|
|
23799
23793
|
client;
|
|
23800
23794
|
constructor(client) {
|
|
@@ -23808,7 +23802,7 @@ var PublishEndpoint = class {
|
|
|
23808
23802
|
}
|
|
23809
23803
|
};
|
|
23810
23804
|
//#endregion
|
|
23811
|
-
//#region ../sdk/
|
|
23805
|
+
//#region ../sdk/src/endpoints/entry-references.ts
|
|
23812
23806
|
var EntryReferencesEndpoint = class {
|
|
23813
23807
|
client;
|
|
23814
23808
|
constructor(client) {
|
|
@@ -23839,7 +23833,7 @@ var EntryReferencesEndpoint = class {
|
|
|
23839
23833
|
}
|
|
23840
23834
|
};
|
|
23841
23835
|
//#endregion
|
|
23842
|
-
//#region ../sdk/
|
|
23836
|
+
//#region ../sdk/src/endpoints/analytics.ts
|
|
23843
23837
|
const RESERVED_ANALYTICS_PARAMS = /* @__PURE__ */ new Set([
|
|
23844
23838
|
"pipe",
|
|
23845
23839
|
"site",
|
|
@@ -23924,7 +23918,7 @@ var AnalyticsEndpoint = class {
|
|
|
23924
23918
|
}
|
|
23925
23919
|
};
|
|
23926
23920
|
//#endregion
|
|
23927
|
-
//#region ../sdk/
|
|
23921
|
+
//#region ../sdk/src/endpoints/templates.ts
|
|
23928
23922
|
var TemplatesEndpoint = class {
|
|
23929
23923
|
client;
|
|
23930
23924
|
constructor(client) {
|
|
@@ -23988,7 +23982,7 @@ var TemplatesEndpoint = class {
|
|
|
23988
23982
|
}
|
|
23989
23983
|
};
|
|
23990
23984
|
//#endregion
|
|
23991
|
-
//#region ../sdk/
|
|
23985
|
+
//#region ../sdk/src/endpoints/headshots.ts
|
|
23992
23986
|
/**
|
|
23993
23987
|
* headshot_pool is a GLOBAL (not site-scoped) admin table. RLS exposes it only to
|
|
23994
23988
|
* the super-admin user, so these direct-DB calls return empty/forbidden for any
|
|
@@ -24072,7 +24066,7 @@ var HeadshotsEndpoint = class {
|
|
|
24072
24066
|
}
|
|
24073
24067
|
};
|
|
24074
24068
|
//#endregion
|
|
24075
|
-
//#region ../sdk/
|
|
24069
|
+
//#region ../sdk/src/endpoints/logos.ts
|
|
24076
24070
|
/**
|
|
24077
24071
|
* logo_pool is a GLOBAL (not site-scoped) admin table. RLS exposes it only to the
|
|
24078
24072
|
* super-admin user, so these direct-DB calls return empty/forbidden for any other
|
|
@@ -24162,7 +24156,7 @@ var LogosEndpoint = class {
|
|
|
24162
24156
|
}
|
|
24163
24157
|
};
|
|
24164
24158
|
//#endregion
|
|
24165
|
-
//#region ../sdk/
|
|
24159
|
+
//#region ../sdk/src/client.ts
|
|
24166
24160
|
/**
|
|
24167
24161
|
* @neopress/sdk — API Client
|
|
24168
24162
|
*
|
|
@@ -24239,7 +24233,8 @@ var NeopressClient = class {
|
|
|
24239
24233
|
* header so RLS applies. No session persistence/refresh — token freshness is the
|
|
24240
24234
|
* caller's responsibility (CLI getClientAsync / MCP per-request).
|
|
24241
24235
|
*
|
|
24242
|
-
* `@internal` (with `stripInternal`
|
|
24236
|
+
* `@internal` (with `stripInternal` in the cli/mcp dts configs — sdk itself no
|
|
24237
|
+
* longer emits) keeps this out of the published declarations:
|
|
24243
24238
|
* it is plumbing for the endpoints in this package, and typing it publicly would
|
|
24244
24239
|
* drag `SupabaseClient` + the generated `Database` into the published `.d.ts` of
|
|
24245
24240
|
* `@neopress/cli` / `@neopress/mcp` — packages that declare no dependencies, so
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neopress/mcp",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Neopress MCP server for first-party AI agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@neopress/sdk": "0.4.0"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
|
-
"build": "tsdown && node ./scripts/check-dist-contract.mjs",
|
|
42
|
+
"build": "NODE_OPTIONS=--max-old-space-size=4096 tsdown && node ./scripts/check-dist-contract.mjs",
|
|
43
43
|
"mcpb:stage": "node ./scripts/prepare-mcpb-package.mjs",
|
|
44
44
|
"start:http": "node ./dist/http-bin.cjs",
|
|
45
45
|
"lint": "tsc --noEmit",
|
|
@@ -33,7 +33,7 @@ if (missing.length > 0) {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
// Every emitted bundle must have the workspace packages inlined. tsdown reports an
|
|
36
|
-
// unresolved import (
|
|
36
|
+
// unresolved import (an sdk src file that fails to resolve, say) as a *warning* and still exits 0,
|
|
37
37
|
// which would publish a binary carrying a bare require("@neopress/sdk") that no consumer
|
|
38
38
|
// can resolve. Checking the .d.ts alone does not see this.
|
|
39
39
|
for (const file of actualFiles.filter((f) => /\.(cjs|js|mjs)$/.test(f))) {
|
|
@@ -46,8 +46,9 @@ for (const file of actualFiles.filter((f) => /\.(cjs|js|mjs)$/.test(f))) {
|
|
|
46
46
|
if (leaked.length > 0) {
|
|
47
47
|
errors.push(
|
|
48
48
|
`dist/${file} still imports workspace packages at runtime: ${leaked.join(', ')}\n` +
|
|
49
|
-
` They must be bundled.
|
|
50
|
-
`
|
|
49
|
+
` They must be bundled. tsdown only warns on unresolved imports, so a bare\n` +
|
|
50
|
+
` require would ship — sdk exports src directly, so this means the import failed\n` +
|
|
51
|
+
` to resolve (renamed source file or export-map drift), not a missing prebuild.`
|
|
51
52
|
);
|
|
52
53
|
}
|
|
53
54
|
}
|