suppa-mcp-2 1.40.4 → 1.40.5
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "suppa-mcp-2",
|
|
3
|
-
"version": "1.40.
|
|
3
|
+
"version": "1.40.5",
|
|
4
4
|
"description": "MCP server for the Suppa platform (modern.suppa.me) — Tasks, Docs/Pages, Entities & Schema, Forms, Automations, and file attachments, with multi-tenant Google auth. Node port of PyPI suppa-mcp.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -72,7 +72,7 @@ wrong type too (**E503**):
|
|
|
72
72
|
|---|---|---|
|
|
73
73
|
| `comments` | boolean | comments |
|
|
74
74
|
| `reactions` | boolean | reactions |
|
|
75
|
-
| `hierarchy` | `"single" \| "multi"` | a tree over the entity's own records — `"single"` generates the self-relations `parent` and `children` (read off the live `Forms` entity); `"multi"` gives a record several parents,
|
|
75
|
+
| `hierarchy` | `"single" \| "multi"` | a tree over the entity's own records — `"single"` generates the self-relations `parent` and `children` (read off the live `Forms` entity); `"multi"` gives a record several parents — it keeps those two and adds `parents` (many-to-many, what the front end writes) and `multiChildren` (its back-reference), read off the live `Projects` entity |
|
|
76
76
|
| `folders` | `"single" \| "multi"` | folders to file records into |
|
|
77
77
|
| `trackChangeHistory` | boolean | change tracking |
|
|
78
78
|
| `browsingHistory` | boolean or number | browsing history |
|
|
@@ -3479,7 +3479,9 @@ function loadSdkCatalog(ts, rootDir) {
|
|
|
3479
3479
|
if (!rootDir) return catalog;
|
|
3480
3480
|
let dir = resolve(rootDir);
|
|
3481
3481
|
let sdkDir = null;
|
|
3482
|
-
|
|
3482
|
+
// Up to the filesystem root, as Node's own resolution walks: the lookup can start at a single
|
|
3483
|
+
// file's directory, and a hoisted monorepo puts node_modules well above that.
|
|
3484
|
+
for (;;) {
|
|
3483
3485
|
const cand = join(dir, "node_modules", "@suppa", "sdk");
|
|
3484
3486
|
if (existsSync(cand)) { sdkDir = cand; break; }
|
|
3485
3487
|
const parent = dirname(dir);
|
|
@@ -3592,8 +3594,13 @@ function parseSchemaFile(ts, file) {
|
|
|
3592
3594
|
|
|
3593
3595
|
// ── public API ──
|
|
3594
3596
|
export function validateSchema({ files = [], rootDir = null } = {}) {
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
+
// Where the compiler and the SDK typings are looked up: the repo being validated. For named
|
|
3598
|
+
// files that is the first file's own directory — without it an INSTALLED gate (no typescript
|
|
3599
|
+
// of its own) refused a file whose app had one, and the SDK catalog came back empty. rootDir
|
|
3600
|
+
// stays null: it switches on the whole-repo rules, which one file cannot satisfy.
|
|
3601
|
+
const lookupRoot = rootDir ?? (files.length ? dirname(resolve(files[0])) : null);
|
|
3602
|
+
const ts = loadTypescript(lookupRoot);
|
|
3603
|
+
const sdk = loadSdkCatalog(ts, lookupRoot);
|
|
3597
3604
|
const model = {
|
|
3598
3605
|
entities: new Map(), entityByName: new Map(),
|
|
3599
3606
|
seeds: [], modules: [], stringEnums: new Map(),
|