suppa-mcp-2 1.47.0 → 1.47.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/README.md +2 -2
- package/dist/server.js +3 -3
- package/dist/toolTable.js +1 -1
- package/dist/tools/formInheritance.js +238 -0
- package/dist/tools/formLifecycle.js +117 -6
- package/dist/tools/formV2.js +126 -10
- package/package.json +1 -1
- package/skills/suppa-form-v2/SKILL.md +5 -5
- package/skills/suppa-form-v2/SOURCE.json +4 -4
- package/skills/suppa-form-v2/data/base-props.json +9 -0
- package/skills/suppa-form-v2/data/component-index.json +32 -1
- package/skills/suppa-form-v2/data/component-props.json +1199 -19
- package/skills/suppa-form-v2/data/templates/entity-workspace.json +22 -23
- package/skills/suppa-form-v2/data/templates/list-management.json +22 -0
- package/skills/suppa-form-v2/notes/dynamicComponent.md +57 -1
- package/skills/suppa-form-v2/references/choosing-elements.md +2 -2
- package/skills/suppa-form-v2/references/code-form.md +13 -0
- package/skills/suppa-form-v2/references/publishing.md +2 -0
- package/skills/suppa-form-v2/scripts/form-core.mjs +979 -488
- package/skills/suppa-form-v2/scripts/form-rules.mjs +2 -2
- package/skills/suppa-form-v2/scripts/manifest-corrections.mjs +37 -0
- package/skills/suppa-form-v2/scripts/validate-form-schema.mjs +188 -10
package/dist/tools/formV2.js
CHANGED
|
@@ -18,6 +18,7 @@ import { makeRequest, selectEntity } from "../httpClient.js";
|
|
|
18
18
|
import * as tasks from "./tasks.js";
|
|
19
19
|
import { confirmRequired, jsonResponse } from "../utils.js";
|
|
20
20
|
import { current as currentTenant } from "../tenants.js";
|
|
21
|
+
import { elementIdSet, envelopeFromEffective, envelopeWithOwnLayer, mergedTreeNote, readChildTree } from "./formInheritance.js";
|
|
21
22
|
/** A file inside the bundled suppa-form-v2 skill, from dist/tools/ or src/tools/ alike. */
|
|
22
23
|
export function skillFile(...parts) {
|
|
23
24
|
const here = dirname(fileURLToPath(import.meta.url));
|
|
@@ -38,7 +39,7 @@ export function skillFile(...parts) {
|
|
|
38
39
|
* agents with all 96 tools both reached for suppa_create_form, which writes the v1 blob.
|
|
39
40
|
*/
|
|
40
41
|
export const FORM_V2_INSTRUCTION_LINE = "FORMS — TWO PRODUCTS: suppa_create_form/update_form write `data.formShema` (Suppa 1.0). A Suppa 2.x form " +
|
|
41
|
-
"is the `schema` COLUMN,
|
|
42
|
+
"is the `schema` COLUMN, 62 types (pre-2.1: `data.formSchema`): suppa_get_form reads it; suppa_form_kb, " +
|
|
42
43
|
"suppa_validate_form_schema (skills/suppa-form-v2/SKILL.md). Publish only on the user's yes.";
|
|
43
44
|
/**
|
|
44
45
|
* Is the vendored core actually USABLE, not merely present?
|
|
@@ -200,7 +201,7 @@ export async function validateFormSchema(path, baselinePath, normalize = false,
|
|
|
200
201
|
}
|
|
201
202
|
let res;
|
|
202
203
|
try {
|
|
203
|
-
res = await mod.validateForm(draft.value, { baseline, normalize, purpose });
|
|
204
|
+
res = await mod.validateForm(draft.value, { baseline, normalize, purpose, mergesStoredSettings: Boolean(baseline) });
|
|
204
205
|
}
|
|
205
206
|
catch (e) {
|
|
206
207
|
// Measured by truncating the vendored core: a bare parse-error message here reads as "your
|
|
@@ -243,7 +244,7 @@ export async function validateFormSchema(path, baselinePath, normalize = false,
|
|
|
243
244
|
/**
|
|
244
245
|
* How many prop tables one `mode='api'` call may return.
|
|
245
246
|
*
|
|
246
|
-
* Twelve is more types than any one form needs at once and far less than the
|
|
247
|
+
* Twelve is more types than any one form needs at once and far less than the 62 that would hand an
|
|
247
248
|
* agent the whole catalog. It exists because the tool's own message promised the catalog could not
|
|
248
249
|
* be fetched in one call, and until this cap that promise was not kept.
|
|
249
250
|
*/
|
|
@@ -269,7 +270,7 @@ export async function formKb(mode, types, topic) {
|
|
|
269
270
|
if (!list.length) {
|
|
270
271
|
return jsonResponse({
|
|
271
272
|
error: "types is required for mode='api' — name the element types you are about to author, e.g. ['input','select'].",
|
|
272
|
-
note: `There is deliberately no way to fetch all
|
|
273
|
+
note: `There is deliberately no way to fetch all 62 at once: stripped of prose they are ~14,200 tokens, and the point of this tool is not to carry them. At most ${MAX_API_TYPES} per call.`,
|
|
273
274
|
});
|
|
274
275
|
}
|
|
275
276
|
// The cap is what makes the sentence above TRUE. Without it, listing all 58 in `types` returned
|
|
@@ -278,7 +279,7 @@ export async function formKb(mode, types, topic) {
|
|
|
278
279
|
if (list.length > MAX_API_TYPES) {
|
|
279
280
|
return jsonResponse({
|
|
280
281
|
error: `types names ${list.length} types; the cap is ${MAX_API_TYPES} per call.`,
|
|
281
|
-
note: "Name the types you are about to author — another call is free. Asking for all
|
|
282
|
+
note: "Name the types you are about to author — another call is free. Asking for all 62 is ~16,300 tokens, which is the cost this tool exists to avoid, not a shortcut.",
|
|
282
283
|
cap: MAX_API_TYPES,
|
|
283
284
|
asked: list.length,
|
|
284
285
|
});
|
|
@@ -302,7 +303,7 @@ export async function formKb(mode, types, topic) {
|
|
|
302
303
|
const haveNotes = list.filter((t) => notes && existsSync(join(notes, `${t}.md`)));
|
|
303
304
|
return jsonResponse({
|
|
304
305
|
props: out,
|
|
305
|
-
...(unknown.length ? { unknown_types: unknown, hint: "Not a V2 component type. Run mode='components' — there are
|
|
306
|
+
...(unknown.length ? { unknown_types: unknown, hint: "Not a V2 component type. Run mode='components' — there are 62, and the name you want may be one you have not met." } : {}),
|
|
306
307
|
...(haveNotes.length ? { notes_available: haveNotes, next: `These types have behaviour notes: mode='note', topic='<type>'. A prop that validates is not a prop that works.` } : {}),
|
|
307
308
|
reminder: "This is the options PANEL, not the runtime. Never invent a prop name or an option value.",
|
|
308
309
|
});
|
|
@@ -858,18 +859,129 @@ export function subtractLiveFindings(errors, live) {
|
|
|
858
859
|
* ({@link subtractLiveFindings}).
|
|
859
860
|
*
|
|
860
861
|
* `already_live` lists what was subtracted, so the answer says it rather than going quiet.
|
|
862
|
+
*
|
|
863
|
+
* A CHILD form (`child` given) is judged on its MERGED tree as the write will leave it (formInheritance.ts
|
|
864
|
+
* envelopeWithOwnLayer), against the merged tree it has now: its own layer alone reads every inherited container
|
|
865
|
+
* as missing and the root grid as 1 column. The own-layer pass still runs — it is what normalizes the draft and
|
|
866
|
+
* compiles its widgets, and its `draft` is what gets WRITTEN (never the merged tree: written as the child's own
|
|
867
|
+
* layer, that would detach the form from its parent) — but the verdict is the merged one. A merged tree that could
|
|
868
|
+
* not be read refuses: the own layer is never the fallback.
|
|
869
|
+
*
|
|
870
|
+
* `--normalize` on a child repairs its own layer against the MERGED settings (the parent's grid and gaps, not a
|
|
871
|
+
* child's empty own settings), and only the settings keys the draft itself carries are written back: the repair's
|
|
872
|
+
* defaults (columnsNumber 12, xGap, yGap …) would otherwise become the child's own settings and shadow the parent's
|
|
873
|
+
* for good.
|
|
861
874
|
*/
|
|
862
|
-
async function gateEdit(mod, draft, live, normalize) {
|
|
875
|
+
async function gateEdit(mod, draft, live, normalize, child = null, sentVars = null) {
|
|
863
876
|
const baseline = live ? liveEnvelope(live) : null;
|
|
864
877
|
// The form row's type is its purpose to the record-card kit (create / update); the gate maps it.
|
|
865
878
|
const purpose = live && typeof live.type === "string" ? live.type : null;
|
|
866
|
-
const
|
|
879
|
+
const context = child && normalize ? withMergedSettings(mod, draft, child) : null;
|
|
880
|
+
const input = context ? context.input : draft;
|
|
881
|
+
// This write merges the draft's settings over the row's, so a draft silent about the root's column count keeps the
|
|
882
|
+
// form's (mergesStoredSettings). A publish or a rollback freezes what is stored, unmerged, and never passes it.
|
|
883
|
+
const g = await mod.validateForm(input, baseline ? { baseline, normalize, purpose, mergesStoredSettings: true } : { normalize, purpose });
|
|
884
|
+
if (child && !g.refused)
|
|
885
|
+
return gateChildEdit(mod, g, child, live, sentVars, purpose, context ? context.ownKeys : null);
|
|
867
886
|
if (g.refused || g.ok || !baseline)
|
|
868
887
|
return { ...g, already_live: [] };
|
|
869
888
|
const own = await mod.validateForm(baseline, { baseline, purpose });
|
|
870
889
|
const { added, already } = subtractLiveFindings(g.errors ?? [], own.refused ? [] : (own.errors ?? []));
|
|
871
890
|
return { ...g, ok: added.length === 0, errors: added, already_live: already };
|
|
872
891
|
}
|
|
892
|
+
/**
|
|
893
|
+
* A child's own layer with the merged settings under its own — what `--normalize` repairs against — and the
|
|
894
|
+
* settings keys the draft itself carries, the only ones written back. Null when either cannot be read (the
|
|
895
|
+
* own-layer pass then runs on the file as it is, and the merged verdict refuses an unreadable tree anyway).
|
|
896
|
+
*/
|
|
897
|
+
function withMergedSettings(mod, draft, child) {
|
|
898
|
+
if (child.error !== undefined || typeof mod.normalizeEnvelope !== "function")
|
|
899
|
+
return null;
|
|
900
|
+
const env = mod.normalizeEnvelope(draft);
|
|
901
|
+
const merged = envelopeFromEffective(child.eff);
|
|
902
|
+
if (!env || env.error || "error" in merged)
|
|
903
|
+
return null;
|
|
904
|
+
const d = env.draft;
|
|
905
|
+
const own = Array.isArray(d.schema) ? d.schema : [];
|
|
906
|
+
const wires = Array.isArray(d.connections) ? { connections: d.connections } : {};
|
|
907
|
+
const ownSettings = d.settings && typeof d.settings === "object" ? d.settings : {};
|
|
908
|
+
const theme = draft && typeof draft === "object" && "theme" in draft ? { theme: draft.theme } : {};
|
|
909
|
+
return {
|
|
910
|
+
input: {
|
|
911
|
+
// An empty own layer is the 2.1 column shape, so that the gate still reads the form as a child (not E202).
|
|
912
|
+
...(own.length ? { schema: own, ...wires } : { schema: { components: [], ...wires } }),
|
|
913
|
+
settings: { ...merged.envelope.settings, ...ownSettings },
|
|
914
|
+
variables: Array.isArray(d.variables) ? d.variables : [],
|
|
915
|
+
...(Array.isArray(d.mobileSchema) ? { mobileSchema: d.mobileSchema } : {}),
|
|
916
|
+
...theme,
|
|
917
|
+
parent: { id: child.parent },
|
|
918
|
+
},
|
|
919
|
+
ownKeys: Object.keys(ownSettings),
|
|
920
|
+
};
|
|
921
|
+
}
|
|
922
|
+
/**
|
|
923
|
+
* The own-layer pass's explanations of a child judged on its layer alone («this is a CHILD form: … only this form's
|
|
924
|
+
* OWN layer», «this child form has NO components of its own … Nothing below was checked») — wrong next to a merged
|
|
925
|
+
* verdict, which did check the whole tree. When the --normalize pass was handed the rebuilt own layer
|
|
926
|
+
* (withMergedSettings), its note on where the element list was read from describes that rebuild, not the file.
|
|
927
|
+
*/
|
|
928
|
+
const OWN_LAYER_CHILD_NOTES = ["this is a CHILD form:", "this child form has NO components of its own"];
|
|
929
|
+
const REBUILT_LAYER_NOTE = "the element list was read from `schema.components`";
|
|
930
|
+
const ownLayerOnlyNote = (note, rebuilt) => {
|
|
931
|
+
const text = String(note);
|
|
932
|
+
return OWN_LAYER_CHILD_NOTES.some((p) => text.startsWith(p)) || (rebuilt && text.startsWith(REBUILT_LAYER_NOTE));
|
|
933
|
+
};
|
|
934
|
+
/** The --normalize note on a child — a count, not the key names: it stays under the 200 characters a preview keeps. */
|
|
935
|
+
export function childNormalizeNote(keysLeftToParent) {
|
|
936
|
+
const n = keysLeftToParent;
|
|
937
|
+
return ("--normalize on a child: repaired against the merged settings; only the draft's own keys are written" +
|
|
938
|
+
(n ? ` (${n} settings key${n === 1 ? " stays" : "s stay"} with the parent)` : "") +
|
|
939
|
+
"; own elements laid out without inherited siblings");
|
|
940
|
+
}
|
|
941
|
+
/** The merged verdict on a child's draft — see {@link gateEdit}. `g` is the own-layer pass, whose `draft` is written. */
|
|
942
|
+
async function gateChildEdit(mod, g, child, live, sentVars, purpose, ownKeys) {
|
|
943
|
+
const unavailable = (detail) => ({
|
|
944
|
+
...g,
|
|
945
|
+
ok: false,
|
|
946
|
+
errors: [{ code: "merged_tree_unavailable", detail }],
|
|
947
|
+
already_live: [],
|
|
948
|
+
});
|
|
949
|
+
if (child.error !== undefined)
|
|
950
|
+
return unavailable(child.error);
|
|
951
|
+
// Under --normalize the repair ran against the merged settings: write back only the keys the draft carries.
|
|
952
|
+
let draftOut = g.draft ?? {};
|
|
953
|
+
const normalizeNotes = [];
|
|
954
|
+
if (ownKeys) {
|
|
955
|
+
const repaired = draftOut.settings && typeof draftOut.settings === "object" ? draftOut.settings : {};
|
|
956
|
+
const kept = Object.fromEntries(Object.entries(repaired).filter(([k]) => ownKeys.includes(k)));
|
|
957
|
+
const left = Object.keys(repaired).filter((k) => !ownKeys.includes(k));
|
|
958
|
+
draftOut = { ...draftOut, settings: kept };
|
|
959
|
+
normalizeNotes.push(childNormalizeNote(left.length));
|
|
960
|
+
}
|
|
961
|
+
const liveSchema = live && live.schema && typeof live.schema === "object" && !Array.isArray(live.schema) ? live.schema : {};
|
|
962
|
+
const own = { components: elementIdSet(liveSchema.components), connections: elementIdSet(liveSchema.connections) };
|
|
963
|
+
const current = envelopeFromEffective(child.eff, own.connections);
|
|
964
|
+
const candidate = envelopeWithOwnLayer(child.eff, own, draftOut, sentVars);
|
|
965
|
+
if ("error" in current)
|
|
966
|
+
return unavailable(current.error);
|
|
967
|
+
if ("error" in candidate)
|
|
968
|
+
return unavailable(candidate.error);
|
|
969
|
+
// The own part is already normalized (and compiled) by the own-layer pass; the inherited part is the parent's and is
|
|
970
|
+
// never repaired here, so the merged pass runs without --normalize.
|
|
971
|
+
const m = await mod.validateForm(candidate.envelope, { baseline: current.envelope, purpose });
|
|
972
|
+
const ownCount = Array.isArray(draftOut.schema) ? draftOut.schema.length : null;
|
|
973
|
+
const notes = [
|
|
974
|
+
...(g.notes ?? []).filter((n) => !ownLayerOnlyNote(n, ownKeys !== null)),
|
|
975
|
+
mergedTreeNote(child.parent, candidate.envelope, ownCount, candidate.droppedWires),
|
|
976
|
+
...normalizeNotes,
|
|
977
|
+
];
|
|
978
|
+
const base = { ...g, draft: draftOut, notes };
|
|
979
|
+
if (m.refused)
|
|
980
|
+
return { ...base, ok: false, errors: m.errors ?? [], warnings: m.warnings ?? [], already_live: [] };
|
|
981
|
+
const self = await mod.validateForm(current.envelope, { baseline: current.envelope, purpose });
|
|
982
|
+
const { added, already } = subtractLiveFindings(m.errors ?? [], self.refused ? [] : (self.errors ?? []));
|
|
983
|
+
return { ...base, ok: added.length === 0, errors: added, warnings: m.warnings ?? [], already_live: already };
|
|
984
|
+
}
|
|
873
985
|
const alreadyLive = (list) => list.map((f) => ({ code: f?.code, elementId: f?.elementId ?? null }));
|
|
874
986
|
/**
|
|
875
987
|
* SOMEONE ELSE HAS IT OPEN. The builder holds `lockedBy` while a form is being edited; writing under them means
|
|
@@ -1061,7 +1173,9 @@ export async function writeFormDraft(formId, path, confirm = false, normalize =
|
|
|
1061
1173
|
if (s) {
|
|
1062
1174
|
const mod = await import(pathToFileURL(s).href);
|
|
1063
1175
|
const live = row && typeof row === "object" ? { ...row, ...(liveVars ? { variables: liveVars } : {}) } : null;
|
|
1064
|
-
|
|
1176
|
+
// A child is judged on its merged tree; an unreadable one is said here and refused on the confirmed call.
|
|
1177
|
+
const child = row ? await readChildTree(id, row) : null;
|
|
1178
|
+
const g = await gateEdit(mod, peek.value, live, normalize, child, draftVars);
|
|
1065
1179
|
draftSettings = (g.draft && typeof g.draft.settings === "object" && g.draft.settings) || {};
|
|
1066
1180
|
draftComponents = g.draft?.schema ?? null;
|
|
1067
1181
|
// The blocking findings travel in `warnings`, whole: a finding's detail is often longer
|
|
@@ -1268,9 +1382,11 @@ export async function writeFormDraft(formId, path, confirm = false, normalize =
|
|
|
1268
1382
|
});
|
|
1269
1383
|
}
|
|
1270
1384
|
}
|
|
1385
|
+
// A child is judged on its merged tree (see gateEdit); when that cannot be read the gate refuses the write.
|
|
1386
|
+
const child = await readChildTree(id, row);
|
|
1271
1387
|
let gate;
|
|
1272
1388
|
try {
|
|
1273
|
-
gate = await gateEdit(mod, read.value, liveVars ? { ...row, variables: liveVars } : row, normalize);
|
|
1389
|
+
gate = await gateEdit(mod, read.value, liveVars ? { ...row, variables: liveVars } : row, normalize, child, draftVars);
|
|
1274
1390
|
}
|
|
1275
1391
|
catch (e) {
|
|
1276
1392
|
return jsonResponse({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "suppa-mcp-2",
|
|
3
|
-
"version": "1.47.
|
|
3
|
+
"version": "1.47.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": {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: suppa-form-v2
|
|
3
|
-
description: Author a Suppa 2.0/2.1 (entity-builder) FORM — the element canvas with
|
|
3
|
+
description: Author a Suppa 2.0/2.1 (entity-builder) FORM — the element canvas with 62 component types, grid/flex layout, data binding and conditions — and write it to a tenant. Use whenever the user wants to build, edit or lay out a form, a workspace, a dashboard or a record card in Suppa 2.0, or asks about form elements, form layout, binding a field to entity data, or a form's settings. NOT for Suppa 1.0 forms — those are suppa_create_form and the `formShema` blob, a different product. Trigger phrases (English) — "build a form", "create a form", "edit the form", "form layout", "add a field to the form", "record card", "workspace form", "dashboard", "bind this field"; (Ukrainian / Українська) — "зроби форму", "створи форму", "додай поле у форму", "виправ форму", "картка запису", "робочий простір", "дашборд", "прив'яжи поле".
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Suppa 2.x forms (the entity-builder canvas)
|
|
7
7
|
|
|
8
|
-
A form is a **flat array of elements**, rendered from
|
|
8
|
+
A form is a **flat array of elements**, rendered from 62 component types. Nesting, geometry and
|
|
9
9
|
every layout decision live inside each element's `layout` map, not in the array's order.
|
|
10
10
|
|
|
11
11
|
**Where it is stored changed in 2.1.** The live form is first-class columns on the `Forms` row —
|
|
@@ -20,7 +20,7 @@ the form.**
|
|
|
20
20
|
`suppa_create_form`, `suppa_update_form`, `suppa_add_field_to_form` and `suppa_generate_form_schema`
|
|
21
21
|
write `data.formShema` — the platform's misspelling, and the **Suppa 1.0** form. Its field types are
|
|
22
22
|
`text`, `number`, `group`, `static`, `flexGroup`, `richtext`, `userSelect`, `toogle`. None of those
|
|
23
|
-
exist among the
|
|
23
|
+
exist among the 62 2.x types, and the 2.x builder does not read that key. There is no conversion.
|
|
24
24
|
Reach for those tools only when the user explicitly wants a 1.0 form.
|
|
25
25
|
|
|
26
26
|
## Before the loop
|
|
@@ -48,7 +48,7 @@ record's card → `flat`. The gate judges it by the form's type.
|
|
|
48
48
|
| 7 | Write it | `suppa write-form-draft --form-id <id> --path <abs>` — see **The write path** |
|
|
49
49
|
| 8 | Look at it | `/form/<id>?version=draft` at 1600, 1366, 1000, 760, 600 and 375 px: every tab and accordion section open, each control hovered and Tab-focused. No sideways scroll, control rows ≥ 8px apart, no clipped focus ring. The gate sees none of this. |
|
|
50
50
|
|
|
51
|
-
Steps 2 and 3 are not optional reading. The catalog is
|
|
51
|
+
Steps 2 and 3 are not optional reading. The catalog is 62 types and the prop tables are ~14,200
|
|
52
52
|
tokens in total — which is exactly why they are fetched per type instead of carried. Skipping them
|
|
53
53
|
produces a form built out of `input` and `html` that passes every check and is the wrong form.
|
|
54
54
|
|
|
@@ -81,7 +81,7 @@ rules — plus your own reading of the warnings — are what stands between that
|
|
|
81
81
|
1, and 1 is a real count, not an "unset" flag** — the root grid reads `settings.columnsNumber`,
|
|
82
82
|
a grid container its own (1–12). Write the count you intend *before* you lay out spans; change
|
|
83
83
|
it and you re-span its children in the same turn.
|
|
84
|
-
4. **There are
|
|
84
|
+
4. **There are 62 dedicated types.** Never assemble something out of `input` + `html` because no
|
|
85
85
|
type came to mind. `html` is author-written static markup and is never a home for record data —
|
|
86
86
|
bind an element instead. Six pairs where both choices validate are in
|
|
87
87
|
`references/choosing-elements.md`; read it before picking between `date` and `datePicker`,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"source": "suppa-ai-agent/packages/formbuilder-agent",
|
|
3
|
-
"sha": "
|
|
4
|
-
"pulledAt": "2026-
|
|
5
|
-
"components":
|
|
3
|
+
"sha": "5a5a810a0a9d670af828d615a25b1be19a8c0e7b",
|
|
4
|
+
"pulledAt": "2026-12-01",
|
|
5
|
+
"components": 62,
|
|
6
6
|
"templates": 8,
|
|
7
|
-
"coreBytes":
|
|
7
|
+
"coreBytes": 1597424,
|
|
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
|
}
|
|
@@ -236,6 +236,15 @@
|
|
|
236
236
|
"path": "containerSettings.size.maxHeight",
|
|
237
237
|
"control": "unit"
|
|
238
238
|
},
|
|
239
|
+
{
|
|
240
|
+
"path": "containerSettings.pinOnScroll",
|
|
241
|
+
"control": "segmented",
|
|
242
|
+
"options": [
|
|
243
|
+
"none",
|
|
244
|
+
"top",
|
|
245
|
+
"bottom"
|
|
246
|
+
]
|
|
247
|
+
},
|
|
239
248
|
{
|
|
240
249
|
"path": "containerSettings.padding",
|
|
241
250
|
"control": "edges"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"note": "Type names only. Fetch a type's full prop table before setting any prop on it.",
|
|
2
|
+
"note": "Type names only. Fetch a type's full prop table before setting any prop on it. A type marked `retired` is not authorable: never add one — it is listed only so that a form already holding it is echoed unchanged.",
|
|
3
3
|
"types": [
|
|
4
4
|
{
|
|
5
5
|
"type": "accordion",
|
|
@@ -11,6 +11,25 @@
|
|
|
11
11
|
"label": "Section",
|
|
12
12
|
"category": "structure"
|
|
13
13
|
},
|
|
14
|
+
{
|
|
15
|
+
"type": "aiInsight",
|
|
16
|
+
"label": "AI block",
|
|
17
|
+
"category": "widgets",
|
|
18
|
+
"purpose": "«AI block» on a saved record's card: on request a module agent writes a summary or an analysis of the open record into it; it saves nothing"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"type": "aiTaskDraft",
|
|
22
|
+
"label": "Draft with AI",
|
|
23
|
+
"category": "widgets",
|
|
24
|
+
"retired": true,
|
|
25
|
+
"purpose": "retired from the palette — do not add it; author `aiVoiceFill` («Fill with AI»), which fills a create form or a record card of any entity from the words a person types or dictates. A form that already holds an `aiTaskDraft` keeps it: echo that element unchanged"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"type": "aiVoiceFill",
|
|
29
|
+
"label": "Fill with AI",
|
|
30
|
+
"category": "widgets",
|
|
31
|
+
"purpose": "«Fill with AI»: a person types or dictates what the record is about and a module agent fills the form's fields — on a create form or a saved record's card, any entity; holds no value, never mandatory"
|
|
32
|
+
},
|
|
14
33
|
{
|
|
15
34
|
"type": "approvals",
|
|
16
35
|
"label": "Approvals",
|
|
@@ -229,12 +248,24 @@
|
|
|
229
248
|
"label": "Radio group",
|
|
230
249
|
"category": "fields"
|
|
231
250
|
},
|
|
251
|
+
{
|
|
252
|
+
"type": "recordAccess",
|
|
253
|
+
"label": "Record access",
|
|
254
|
+
"category": "widgets",
|
|
255
|
+
"purpose": "who has access to the open record — role tiles, the people list, add / change role / remove; needs a saved record"
|
|
256
|
+
},
|
|
232
257
|
{
|
|
233
258
|
"type": "recordDetail",
|
|
234
259
|
"label": "Record Detail",
|
|
235
260
|
"category": "structure",
|
|
236
261
|
"purpose": "one record's fields rendered read-only"
|
|
237
262
|
},
|
|
263
|
+
{
|
|
264
|
+
"type": "recurrence",
|
|
265
|
+
"label": "Repeat",
|
|
266
|
+
"category": "widgets",
|
|
267
|
+
"purpose": "the record's repeat schedule («Weekly · Mon, Wed») on its card"
|
|
268
|
+
},
|
|
238
269
|
{
|
|
239
270
|
"type": "resizableWindow",
|
|
240
271
|
"label": "Resizable Window",
|