@aotter/mantle 0.0.11-alpha.56 → 0.0.11-alpha.58

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.
@@ -171,7 +171,8 @@ entry's state machine.
171
171
  with `CONFLICT`). The admin console renders these collections flat —
172
172
  no draft/published filter buckets, no publish controls. Declare it
173
173
  on any Schema whose rows a human should *inspect and correct*, never
174
- *stage and publish*.
174
+ *stage and publish*. Staff MCP emits `create_record_<schema>` and
175
+ `update_record_<schema>` for these Schemas instead of draft tools.
175
176
 
176
177
  The modes are **per-Schema and mix freely** within a site. There is no
177
178
  site-wide lifecycle setting; one Schema can be `simple` while another
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aotter/mantle",
3
- "version": "0.0.11-alpha.56",
3
+ "version": "0.0.11-alpha.58",
4
4
  "description": "Umbrella entry for @aotter/mantle. Adopters install this one package and import from subpaths: /spec, /runtime, /cloudflare, /admin-ui. Sub-packages remain individually installable on npm for tooling / alt-adapter authors. The Netlify adapter ships as a private workspace stub in v0.1 — its subpath will be added when the impl lands in v0.2.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://mantle.tools/",
@@ -47,10 +47,10 @@
47
47
  "README.md"
48
48
  ],
49
49
  "dependencies": {
50
- "@aotter/mantle-admin-ui": "0.0.11-alpha.56",
51
- "@aotter/mantle-cloudflare": "0.0.11-alpha.56",
52
- "@aotter/mantle-spec": "0.0.11-alpha.56",
53
- "@aotter/mantle-runtime": "0.0.11-alpha.56"
50
+ "@aotter/mantle-cloudflare": "0.0.11-alpha.58",
51
+ "@aotter/mantle-admin-ui": "0.0.11-alpha.58",
52
+ "@aotter/mantle-spec": "0.0.11-alpha.58",
53
+ "@aotter/mantle-runtime": "0.0.11-alpha.58"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@cloudflare/workers-oauth-provider": "^0.8.0",
@@ -82,6 +82,12 @@ the atoms cannot express the behavior.
82
82
  `Procedure.spec.input` before the seed/form. Keep public mutation inputs
83
83
  `additionalProperties: false`; otherwise JSON Schema's default may strip an
84
84
  undeclared field while returning success.
85
+ - Use `lifecycle: none` for submissions, inquiries, orders, and other
86
+ Procedure-created operational records that staff inspect or correct. Reserve
87
+ `simple` for content a person stages and publishes.
88
+ - When a form's fixed option values change, update the stored Schema and public
89
+ Procedure input `enum` together. Keep translated labels in the page seed;
90
+ Admin and Staff MCP derive their typed controls from the manifest values.
85
91
  - For a new section display property, update the content type and the `page`
86
92
  Schema's `sections[].properties`; an undeclared property has no
87
93
  runtime-backed Admin or Staff MCP path.
@@ -146,7 +146,10 @@ pnpm view-smoke # 10 cases against /api/views/*
146
146
  pnpm mcp-smoke # 12 cases against /mcp
147
147
  ```
148
148
 
149
- If you added a new MCP-relevant Schema, the per-collection authoring tools (`create_draft_<segment>`, `update_draft_<segment>`) auto-emit; verify with `tools/list`.
149
+ If you added a new MCP-relevant Schema, per-collection authoring tools auto-emit:
150
+ `create_draft_<segment>` / `update_draft_<segment>` for content lifecycles,
151
+ or `create_record_<segment>` / `update_record_<segment>` for
152
+ `lifecycle: none`. Verify the actual surface with `tools/list`.
150
153
 
151
154
  ## API and MCP authorization
152
155
 
@@ -33,8 +33,9 @@ tokens, or recipes, but the skill contract is Core-owned.
33
33
  ## Work
34
34
 
35
35
  - Use existing tokens, CSS, components, and installed dependencies first.
36
- - When the generated section type exposes `showImage`, set it to `false` for
37
- a text-only hero/content block. Put custom media in a project-owned section.
36
+ - For a standard hero image, set the section's `image: { src, alt }`; use
37
+ `showImage: false` for text-only hero/content blocks. Put non-image media in
38
+ a project-owned section.
38
39
  - Keep accessibility basics: semantic HTML, focus states, contrast, and
39
40
  keyboard reachability. Against a non-default background, check
40
41
  `--foreground-muted` and `--primary`, not only `--foreground`; keep normal