suppa-mcp-2 1.42.1 → 1.42.3

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/server.js CHANGED
@@ -1023,7 +1023,9 @@ export function buildToolTable() {
1023
1023
  " Runs with the caller's read permissions; deleted rows are excluded. A missing LIMIT\n" +
1024
1024
  " is added and a bigger literal one clamped, so at most `limit` rows come back, with\n" +
1025
1025
  " `truncated` and `columns` — the result keys, nested ones as dot paths\n" +
1026
- " (owner.firstName), which is what sqlValueColumns[].key and table columns must use.",
1026
+ " (owner.firstName): a TABLE column's key. A CHART's sqlCategoryColumn and\n" +
1027
+ " sqlValueColumns[].key take the alias, else the last segment (firstName); a dot path\n" +
1028
+ " there matches nothing and the chart shows demo data.",
1027
1029
  inputSchema: {
1028
1030
  query: z
1029
1031
  .string()
@@ -1031,7 +1033,7 @@ export function buildToolTable() {
1031
1033
  bind_params_json: z
1032
1034
  .string()
1033
1035
  .optional()
1034
- .describe('JSON object of bind values for $name / $1 / = ANY($arr), e.g. {"owner": 479}. $current-user is set by the server.'),
1036
+ .describe('JSON object of bind values for $name / $1 / = ANY($arr), e.g. {"owner": 479}. $current-user is set by the server, but not in an FB2 widget; $now / $current_date never are (use NOW()).'),
1035
1037
  limit: z
1036
1038
  .number()
1037
1039
  .int()
@@ -183,7 +183,11 @@ export function prepareQuery(query, limit = QUERY_DEFAULT_LIMIT) {
183
183
  limitNote: `LIMIT ${raw} was clamped to ${cap}: this tool shows at most ${limit} rows (limit can go to ${QUERY_MAX_LIMIT}).`,
184
184
  };
185
185
  }
186
- /** The keys a SQL table column or `sqlValueColumns[].key` must use: nested objects as dot paths. */
186
+ /**
187
+ * The result keys, nested objects as dot paths — what a SQL TABLE column's key must use (FE
188
+ * sqlSourceColumns.ts keys a column by where its value sits). A CHART key is the alias or the
189
+ * path's last segment instead (FE suppaSql/analyzer.ts), which is not derived here.
190
+ */
187
191
  function resultColumns(row, prefix = "") {
188
192
  if (!row || typeof row !== "object" || Array.isArray(row))
189
193
  return [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "suppa-mcp-2",
3
- "version": "1.42.1",
3
+ "version": "1.42.3",
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": {
@@ -55,10 +55,10 @@ rules — plus your own reading of the warnings — are what stands between that
55
55
  **Every element needs an explicit `layout[bp]` for every key in `settings.breakpoints` — there
56
56
  is no fallback**: the form switches only to a breakpoint every element has, so one missing
57
57
  record turns that layout off for the whole form.
58
- 2. **`layout[bp].height` is a row span, and the only thing that makes an element taller.**
59
- `containerSettings.size.heightMode` (`auto` | `fixed` | `fill`) is scroll behaviour. `fill` on a
60
- table or a leaf field does not enlarge it; it makes it share leftover height with its siblings.
61
- Both keys are legal on the same element, so nothing can flag the mix-up.
58
+ 2. **Height is `containerSettings.size.height` (px, `heightMode: 'fixed'`); `layout[bp].height`
59
+ only places.** Grid rows are `min-content`: a longer span adds no pixels, a chart with no
60
+ height is 0px. `fill` shares leftover height with siblings, it does not grow. Both keys are
61
+ legal together, so nothing flags the mix-up.
62
62
  3. **A grid child spans its parent's columns, not the form's.** Inside a 12-column section, full
63
63
  width is `width: 12`; inside a 2-column container it is `width: 2`. **Column count defaults to
64
64
  1, and 1 is a real count, not an "unset" flag** — the root grid reads `settings.columnsNumber`,
@@ -69,7 +69,7 @@ rules — plus your own reading of the warnings — are what stands between that
69
69
  bind an element instead. Six pairs where both choices validate are in
70
70
  `references/choosing-elements.md`; read it before picking between `date` and `datePicker`,
71
71
  `textarea` and `richText`, `select` and `radio` and `buttonList` and `chips`, `image` and
72
- `files`, `entityList` and `table`, or reaching for `code`.
72
+ `files`, a `table` and the `entity-workspace` composition (`entityList` is gone), or reaching for `code`.
73
73
  5. **The prop table is the options panel, not the runtime.** A prop that validates is not a prop
74
74
  that works: `unknown_prop` catches an invented name, nothing catches a real name that the runtime
75
75
  ignores on that type. Never invent a prop or an option value, and read the type's note before
@@ -179,7 +179,7 @@ Read on demand, never up front — `suppa form-kb --mode ref --topic <name>`.
179
179
  | `references/choosing-elements.md` | Picking between two types that both validate |
180
180
  | `references/layout.md` | Sections, wizards, scroll regions, breakpoints, heights |
181
181
  | `references/binding.md` | `dataSource`, variables, filters, enum values |
182
- | `references/tables.md` | Any `table` or `entityList` |
182
+ | `references/tables.md` | Any `table` |
183
183
  | `references/charts.md` | Any `chart` — the one tall element with no automatic height |
184
184
  | `references/custom-chart.md` | `chartType: 'custom'` — named sources, the widget, `chart.*` |
185
185
  | `references/conditions.md` | `visible`/`readonly`/`required`/`disabled`/`readMode` as rules |
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "source": "suppa-ai-agent/packages/formbuilder-agent",
3
- "sha": "31991c65b88e189ff6b8e3c9fbcec0cb5e5ef815",
4
- "pulledAt": "2026-09-18",
3
+ "sha": "ece894241cc602c2712874158870183d492c08e0",
4
+ "pulledAt": "2026-10-05",
5
5
  "components": 58,
6
- "templates": 7,
7
- "coreBytes": 699440,
6
+ "templates": 8,
7
+ "coreBytes": 825827,
8
8
  "why": "Vendored, not depended on. Re-run scripts/sync-formbuilder.mjs after every frontend release: the manifest is a snapshot, and drift in the ACCEPT direction is silent."
9
9
  }
@@ -14,7 +14,7 @@
14
14
  {
15
15
  "type": "approvals",
16
16
  "label": "Approvals",
17
- "category": "fields",
17
+ "category": "widgets",
18
18
  "purpose": "the record's approval flow — needs the entity option ON"
19
19
  },
20
20
  {
@@ -84,7 +84,7 @@
84
84
  {
85
85
  "type": "comments",
86
86
  "label": "Comments",
87
- "category": "fields",
87
+ "category": "widgets",
88
88
  "purpose": "the record's comment feed — needs the entity option ON"
89
89
  },
90
90
  {
@@ -120,7 +120,7 @@
120
120
  "type": "entityLayouts",
121
121
  "label": "Entity Layouts",
122
122
  "category": "workspace",
123
- "purpose": "an entityList's view area, decomposed — needs wiring to be useful"
123
+ "purpose": "the saved-views tab strip, their only owner — wire it to a data widget (template entity-workspace)"
124
124
  },
125
125
  {
126
126
  "type": "entityLinks",
@@ -128,17 +128,11 @@
128
128
  "category": "widgets",
129
129
  "purpose": "record-to-record connections"
130
130
  },
131
- {
132
- "type": "entityList",
133
- "label": "Entity List",
134
- "category": "workspace",
135
- "purpose": "a whole entity's records as one element, with its own view switcher"
136
- },
137
131
  {
138
132
  "type": "entityToolbar",
139
133
  "label": "Entity Toolbar",
140
134
  "category": "workspace",
141
- "purpose": "an entityList's toolbar, decomposed — needs wiring to be useful"
135
+ "purpose": "a record list's search / filters / Create strip — wire it to a data widget (template entity-workspace)"
142
136
  },
143
137
  {
144
138
  "type": "entityTree",
@@ -165,7 +159,7 @@
165
159
  {
166
160
  "type": "history",
167
161
  "label": "History",
168
- "category": "fields",
162
+ "category": "widgets",
169
163
  "purpose": "the record's change history — needs the entity option ON"
170
164
  },
171
165
  {
@@ -292,6 +286,12 @@
292
286
  "label": "Tab",
293
287
  "category": "structure"
294
288
  },
289
+ {
290
+ "type": "tasksGantt",
291
+ "label": "Tasks Gantt",
292
+ "category": "widgets",
293
+ "purpose": "the task manager's Gantt — shows the Tasks entity only (dataSource.entity is always 'Tasks')"
294
+ },
295
295
  {
296
296
  "type": "textarea",
297
297
  "label": "Text area",
@@ -323,7 +323,7 @@
323
323
  {
324
324
  "type": "usersOnline",
325
325
  "label": "Users online",
326
- "category": "fields",
326
+ "category": "widgets",
327
327
  "purpose": "who is looking at this record right now"
328
328
  },
329
329
  {