@aotter/mantle 0.1.3 → 0.1.4

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.
Files changed (60) hide show
  1. package/README.md +5 -5
  2. package/dist/cli/main.d.ts +1 -1
  3. package/dist/cli/main.d.ts.map +1 -1
  4. package/dist/cli/main.js +1 -1
  5. package/dist/cli/skills.js +1 -1
  6. package/dist/cli/skills.js.map +1 -1
  7. package/docs/adr/0001-four-atom-manifest-model.md +3 -2
  8. package/docs/adr/0013-agent-provisioned-consumer-projects.md +4 -4
  9. package/docs/adr/0016-site-semantic-layer.md +5 -4
  10. package/docs/adr/0018-core-starters-repository-boundary.md +1 -1
  11. package/docs/adr/README.md +2 -2
  12. package/docs/agent-prompts.md +5 -4
  13. package/docs/assets/mantle-admin-developer.png +0 -0
  14. package/docs/examples/README.md +1 -1
  15. package/docs/examples/host-chatgpt-sites/README.md +29 -12
  16. package/docs/examples/host-chatgpt-sites/drizzle/0003_store_instance_id.sql +1 -0
  17. package/docs/examples/host-chatgpt-sites/drizzle/meta/_journal.json +1 -1
  18. package/docs/examples/host-chatgpt-sites/public/site.css +1 -1
  19. package/docs/examples/host-chatgpt-sites/scripts/build.mjs +2 -1
  20. package/docs/examples/host-chatgpt-sites/scripts/check.mjs +2 -0
  21. package/docs/examples/host-chatgpt-sites/src/index.ts +1 -1
  22. package/docs/examples/host-chatgpt-sites/src/web.ts +1 -1
  23. package/docs/examples/host-minimal-worker/README.md +5 -5
  24. package/docs/handbook/{sites → chatgpt-sites}/equipment-checkout.md +1 -1
  25. package/docs/handbook/{sites → chatgpt-sites}/index.md +15 -3
  26. package/docs/handbook/cloudflare/chatgpt-sites.md +6 -6
  27. package/docs/handbook/cloudflare/deploy-and-operate.md +3 -2
  28. package/docs/handbook/cloudflare/media-r2.md +2 -2
  29. package/docs/handbook/concepts/four-atoms.md +1 -1
  30. package/docs/handbook/concepts/lifecycle-and-locales.md +1 -1
  31. package/docs/handbook/concepts/mcp-and-agents.md +24 -4
  32. package/docs/handbook/concepts/procedures-and-triggers.md +1 -1
  33. package/docs/handbook/concepts/runtime-and-adapters.md +1 -1
  34. package/docs/handbook/concepts/views.md +1 -1
  35. package/docs/handbook/guides/agent-setup.md +6 -5
  36. package/docs/handbook/navigation.json +4 -4
  37. package/docs/handbook/releases/index.md +26 -1
  38. package/docs/handbook/start/overview.md +1 -1
  39. package/docs/handbook/start/project-and-cli.md +5 -5
  40. package/docs/handbook/start/quickstart-worker.md +0 -3
  41. package/docs/release-process.md +3 -2
  42. package/docs/sealed-pipeline-ownership.md +1 -1
  43. package/docs/skills/develop/SKILL.md +250 -0
  44. package/docs/skills/media-gc/SKILL.md +85 -0
  45. package/docs/skills/plugin/SKILL.md +132 -0
  46. package/docs/skills/provision/SKILL.md +194 -0
  47. package/docs/skills/theme/SKILL.md +77 -0
  48. package/docs/skills/update/SKILL.md +51 -0
  49. package/docs/spec-only-host-adoption.md +1 -1
  50. package/package.json +18 -18
  51. package/skills/README.md +26 -21
  52. package/skills/develop/SKILL.md +2 -2
  53. package/skills/install/SKILL.md +19 -7
  54. package/skills/media-gc/SKILL.md +2 -2
  55. package/skills/plugin/SKILL.md +2 -2
  56. package/skills/provision/SKILL.md +3 -3
  57. package/skills/theme/SKILL.md +2 -2
  58. package/skills/update/SKILL.md +2 -2
  59. package/skills/.keep +0 -0
  60. /package/docs/handbook/{sites → chatgpt-sites}/host-reference.md +0 -0
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: install
2
+ name: mantle
3
3
  description: Author a new Mantle application directly from version-matched SDK docs, or continue an existing project. Use when asked to install Mantle, build a Mantle application, or open a Mantle repository.
4
4
  metadata:
5
5
  source: "@aotter/mantle"
@@ -9,18 +9,19 @@ metadata:
9
9
  projectionReason: Creates a new project; nothing to project into an existing one.
10
10
  ---
11
11
 
12
- # Mantle Install
12
+ # Mantle
13
13
 
14
14
  Mantle is an embeddable manifest engine. The application owns its source and
15
15
  provider configuration. There is no Starter/type picker or `mantle create`.
16
16
  Do not use the SDK checkout as the application, copy an old Starter tree, or
17
17
  turn `generate` into implicit scaffolding.
18
+ A same-version `mantle-starters` tag is not required; do not wait for one.
18
19
 
19
20
  ## Locate the version-matched instructions
20
21
 
21
- `npx skills add aotter/mantle --skill install` installs this brief, not the SDK,
22
+ `npx skills add aotter/mantle` installs this brief, not the SDK,
22
23
  a project, or the handbook. Read the path printed by the installer (Codex's
23
- project-local path is `.agents/skills/install/SKILL.md`); `metadata.sourcePath`
24
+ project-local path is `.agents/skills/mantle/SKILL.md`); `metadata.sourcePath`
24
25
  is repository provenance, not a consumer path. A repository install follows
25
26
  the selected Git ref and does not pin an npm release.
26
27
 
@@ -29,6 +30,13 @@ with the selected optional packages. All `docs/...` paths below then mean
29
30
  `node_modules/@aotter/mantle/docs/...`; package skills are under
30
31
  `node_modules/@aotter/mantle/skills/`. Read that package's
31
32
  `skills/install/SKILL.md` before authoring: it supersedes this bootstrap copy.
33
+ Use the new application's installation, never another project's `node_modules`
34
+ or an SDK checkout packing harness, to resolve these paths.
35
+ Before reading a handbook page, verify the version in that application's
36
+ `node_modules/@aotter/mantle/package.json` against its lockfile and confirm
37
+ the page exists under the same package directory. If the package is missing or
38
+ the versions differ, fix the installation first; do not substitute a nearby
39
+ checkout's docs or another project's `node_modules`.
32
40
  If the user requested a prerelease, resolve that channel explicitly; `latest`
33
41
  need not contain prerelease features. Never mix versioned npm code with branch
34
42
  docs. No local CLI exists until the package is installed.
@@ -40,7 +48,7 @@ docs. No local CLI exists until the package is installed.
40
48
  Do not assume Cloudflare, public HTML or Admin is required. Check Node 22+
41
49
  and pnpm 9+ for these SDK examples. A ChatGPT Site is not a conventional
42
50
  Cloudflare Worker deployment; use the installed
43
- `docs/handbook/sites/index.md` integration guide and
51
+ `docs/handbook/chatgpt-sites/index.md` integration guide and
44
52
  `docs/examples/host-chatgpt-sites/` runnable reference when selected.
45
53
  2. Choose the requested exact SDK version, or resolve the intended release
46
54
  channel once. Pin all selected `@aotter/mantle*` dependencies to that same
@@ -60,7 +68,8 @@ docs. No local CLI exists until the package is installed.
60
68
  `createAuth` email-otp + `ConsoleEmailSender`. Do not Vite-build Admin.
61
69
  - ChatGPT Sites with Admin/D1/R2 — follow
62
70
  `docs/examples/host-chatgpt-sites/`, not the email-OTP Worker example.
63
- Copy it outside the SDK checkout, then `npm ci`,
71
+ Copy it outside the SDK checkout, pin its `@aotter/mantle*` dependencies
72
+ to the selected exact version, then `npm install`,
64
73
  `npx mantle validate --phase deploy`, `npm run generate`, `npm run check`,
65
74
  `npx wrangler d1 migrations apply DB --local`,
66
75
  `npm run dev -- --port 4174`, and `npm test` in a second terminal.
@@ -69,12 +78,15 @@ docs. No local CLI exists until the package is installed.
69
78
  and the local/production smoke gates. Sites provisions and deploys; never
70
79
  `wrangler deploy` a Site. Request both D1 and R2 when uploads are in scope.
71
80
  Browser Admin WebMCP and Sites-session `/api/mcp/staff` do not enable remote staff OAuth MCP.
81
+ At handoff, show the owner where Admin WebMCP and the public/staff MCP
82
+ endpoints appear, and state which are usable from the browser versus a
83
+ remote connector.
72
84
  - ChatGPT Sites with custom business rules or an external callback — the
73
85
  runnable reference covers builtin content only. For application-owned
74
86
  operational state, `handler: { kind: ref }` Procedures, staff-only SQL
75
87
  Views, staff MCP Triggers with `requires.auth`, and outbound webhooks
76
88
  called from handler code, follow
77
- `docs/handbook/sites/equipment-checkout.md`. It is an implementation
89
+ `docs/handbook/chatgpt-sites/equipment-checkout.md`. It is an implementation
78
90
  guide, not a shipped app: keep Mantle-owned Schema tables and
79
91
  application-owned tables separate, and give every application table a
80
92
  reviewed migration.
@@ -3,9 +3,9 @@ name: media-gc
3
3
  description: Audit and safely remove stale, uncommitted public media uploads from a Mantle Cloudflare R2 bucket. Use when a Mantle operator asks to inspect or clean orphan media objects left after create_media_upload without commit_media_upload.
4
4
  metadata:
5
5
  source: "@aotter/mantle"
6
- sourcePath: skills/media-gc/SKILL.md
6
+ sourcePath: docs/skills/media-gc/SKILL.md
7
7
  applies_to: mantle grammar v0.1
8
- projection: plugin
8
+ projection: package
9
9
  projectionReason: Destructive remote object deletion and Cloudflare-specific; opt-in only.
10
10
  ---
11
11
 
@@ -3,9 +3,9 @@ name: plugin
3
3
  description: Discover, plan, apply, and verify Mantle marketplace plugins through the Core SDK contract. Use when the user wants to add an installable capability without hand-planning provisioning steps.
4
4
  metadata:
5
5
  source: "@aotter/mantle"
6
- sourcePath: skills/plugin/SKILL.md
6
+ sourcePath: docs/skills/plugin/SKILL.md
7
7
  applies_to: mantle grammar v0.1
8
- projection: project, plugin
8
+ projection: project
9
9
  ---
10
10
 
11
11
  # Mantle Plugin
@@ -3,9 +3,9 @@ name: provision
3
3
  description: Ship a Mantle project through its selected host, routing ChatGPT Sites to its integration guide and conventional Cloudflare Workers to production auth and provisioning.
4
4
  metadata:
5
5
  source: "@aotter/mantle"
6
- sourcePath: skills/provision/SKILL.md
6
+ sourcePath: docs/skills/provision/SKILL.md
7
7
  applies_to: mantle grammar v0.1
8
- projection: plugin
8
+ projection: package
9
9
  projectionReason: Platform-specific deploy that handles production secrets; opt-in only.
10
10
  ---
11
11
 
@@ -16,7 +16,7 @@ user asks to create remote resources or ship production. This flow is for
16
16
  consumer-owned Cloudflare Workers. New direct-authored apps do not need Landing
17
17
  artifacts (`.mantle/launch-state.json`, `.mantle/handoff.md`, or a hosted-auth
18
18
  allocation). Treat any Landing handoff as **legacy/optional**. For a ChatGPT
19
- Site, use the installed `docs/handbook/sites/index.md` integration guide and
19
+ Site, use the installed `docs/handbook/chatgpt-sites/index.md` integration guide and
20
20
  the "Publish with Sites" steps in `docs/examples/host-chatgpt-sites/README.md`:
21
21
  request D1 and R2 on the Site, set `PUBLIC_ORIGIN` and `OWNER_EMAIL` in Sites
22
22
  settings, review the migration, then save and deploy a Sites version. Do not
@@ -3,9 +3,9 @@ name: theme
3
3
  description: Apply brand and visual direction in a Mantle application using its repo-owned theme and UI contracts.
4
4
  metadata:
5
5
  source: "@aotter/mantle"
6
- sourcePath: skills/theme/SKILL.md
6
+ sourcePath: docs/skills/theme/SKILL.md
7
7
  applies_to: mantle grammar v0.1
8
- projection: project, plugin
8
+ projection: project
9
9
  ---
10
10
 
11
11
  # Mantle Theme
@@ -3,9 +3,9 @@ name: update
3
3
  description: Review and upgrade Mantle SDK dependencies and project-local skills while preserving application source, provider identities and plugin lockfiles.
4
4
  metadata:
5
5
  source: "@aotter/mantle"
6
- sourcePath: skills/update/SKILL.md
6
+ sourcePath: docs/skills/update/SKILL.md
7
7
  applies_to: mantle grammar v0.1
8
- projection: project, plugin
8
+ projection: project
9
9
  ---
10
10
 
11
11
  # Mantle Update
package/skills/.keep DELETED
File without changes