@aotter/mantle 0.1.5-alpha.1 → 0.2.0-alpha.10
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 +166 -298
- package/dist/auth/adapter.d.ts +32 -0
- package/dist/auth/adapter.js +288 -0
- package/dist/auth/admin.d.ts +3 -0
- package/dist/auth/admin.js +21 -0
- package/dist/auth/caller.d.ts +86 -0
- package/dist/auth/caller.js +155 -0
- package/dist/auth/hardening.d.ts +24 -0
- package/dist/auth/hardening.js +40 -0
- package/dist/auth/identity.d.ts +121 -0
- package/dist/auth/identity.js +203 -0
- package/dist/auth/oauth.d.ts +63 -0
- package/dist/auth/oauth.js +217 -0
- package/dist/auth/resource-seeds.js +10 -0
- package/dist/auth/routes.d.ts +32 -0
- package/dist/auth/routes.js +226 -0
- package/dist/build/compiler.d.ts +721 -0
- package/dist/build/compiler.js +7029 -0
- package/dist/build/spec/domain/model/ManifestGrammar.d.ts +439 -0
- package/dist/build/spec/domain/model/RuntimePlan.d.ts +168 -0
- package/dist/build/spec/domain/model/SqlIr.d.ts +129 -0
- package/dist/build/spec/domain/model/UserFields.d.ts +21 -0
- package/dist/build/spec/domain/service/PlanFingerprint.d.ts +7 -0
- package/dist/build/spec/kernel/diagnostic.d.ts +108 -0
- package/dist/bun/assets.d.ts +2 -0
- package/dist/bun/assets.js +24 -0
- package/dist/domain/adminOrder.js +24 -0
- package/dist/domain/columns.js +57 -0
- package/dist/domain/describe/chunk-ZVXBGP7Y.js +424 -0
- package/dist/domain/describe/index.d.ts +58 -0
- package/dist/domain/describe/index.js +115 -0
- package/dist/domain/describe/target-hash.d.ts +8 -0
- package/dist/domain/describe/target-hash.js +12 -0
- package/dist/domain/describe/targets.d.ts +40 -0
- package/dist/domain/entry.js +33 -0
- package/dist/domain/generated-tools.js +19 -0
- package/dist/domain/generation.d.ts +16 -0
- package/dist/domain/generation.js +1 -0
- package/dist/domain/input.js +17 -0
- package/dist/domain/model.js +1 -0
- package/dist/domain/paging.js +230 -0
- package/dist/domain/recipes.js +24 -0
- package/dist/domain/userReferences.js +5 -0
- package/dist/domain/wireScalars.js +47 -0
- package/dist/infrastructure/adminEntries.js +153 -0
- package/dist/infrastructure/adminPaging.js +72 -0
- package/dist/infrastructure/artifacts.js +71 -0
- package/dist/infrastructure/authSchema.js +83 -0
- package/dist/infrastructure/bundle.js +188 -0
- package/dist/infrastructure/cli.js +118 -0
- package/dist/infrastructure/generate.d.ts +12 -0
- package/dist/infrastructure/generate.js +189 -0
- package/dist/infrastructure/generateAuth.d.ts +8 -0
- package/dist/infrastructure/generateAuth.js +74 -0
- package/dist/infrastructure/help.js +60 -0
- package/dist/infrastructure/init.js +54 -0
- package/dist/infrastructure/inputs.js +41 -0
- package/dist/infrastructure/mounts.js +25 -0
- package/dist/infrastructure/wrangler.js +109 -0
- package/dist/kernel/authorization.d.ts +4 -0
- package/dist/kernel/authorization.js +16 -0
- package/dist/kernel/binds.d.ts +60 -0
- package/dist/kernel/binds.js +49 -0
- package/dist/kernel/caller-identity.d.ts +24 -0
- package/dist/kernel/caller-identity.js +22 -0
- package/dist/kernel/contract-error.d.ts +12 -0
- package/dist/kernel/contract-error.js +14 -0
- package/dist/kernel/contracts.d.ts +143 -0
- package/dist/kernel/contracts.js +97 -0
- package/dist/kernel/cron.d.ts +1 -0
- package/dist/kernel/cron.js +58 -0
- package/dist/kernel/dialect/common.d.ts +38 -0
- package/dist/kernel/dialect/common.js +6 -0
- package/dist/kernel/dialect/postgres.d.ts +16 -0
- package/dist/kernel/dialect/postgres.js +18 -0
- package/dist/kernel/dialect/sqlite.d.ts +20 -0
- package/dist/kernel/dialect/sqlite.js +34 -0
- package/dist/kernel/drain.d.ts +5 -0
- package/dist/kernel/drain.js +35 -0
- package/dist/kernel/driver/bun-sqlite.d.ts +19 -0
- package/dist/kernel/driver/bun-sqlite.js +77 -0
- package/dist/kernel/driver/d1.d.ts +24 -0
- package/dist/kernel/driver/d1.js +22 -0
- package/dist/kernel/driver/postgres.d.ts +25 -0
- package/dist/kernel/driver/postgres.js +99 -0
- package/dist/kernel/driver/transaction-context.d.ts +10 -0
- package/dist/kernel/driver/transaction-context.js +29 -0
- package/dist/kernel/email.d.ts +28 -0
- package/dist/kernel/email.js +38 -0
- package/dist/kernel/host-access.d.ts +10 -0
- package/dist/kernel/host-access.js +65 -0
- package/dist/kernel/host-caller.d.ts +39 -0
- package/dist/kernel/host-caller.js +56 -0
- package/dist/kernel/json-body.d.ts +4 -0
- package/dist/kernel/json-body.js +44 -0
- package/dist/kernel/mcp-apps.d.ts +69 -0
- package/dist/kernel/mcp-apps.js +40 -0
- package/dist/kernel/mcp-call.d.ts +5 -0
- package/dist/kernel/mcp-call.js +25 -0
- package/dist/kernel/mcp-handler.js +371 -0
- package/dist/kernel/mcp.d.ts +110 -0
- package/dist/kernel/mcp.js +50 -0
- package/dist/kernel/media.d.ts +27 -0
- package/dist/kernel/media.js +216 -0
- package/dist/kernel/paging.d.ts +55 -0
- package/dist/kernel/paging.js +95 -0
- package/dist/kernel/publishing.d.ts +4 -0
- package/dist/kernel/publishing.js +16 -0
- package/dist/kernel/r2-media.d.ts +42 -0
- package/dist/kernel/r2-media.js +78 -0
- package/dist/kernel/rest-dispatch.js +38 -0
- package/dist/kernel/rest-router.js +64 -0
- package/dist/kernel/rest.d.ts +58 -0
- package/dist/kernel/rest.js +41 -0
- package/dist/kernel/scalars.d.ts +6 -0
- package/dist/kernel/scalars.js +44 -0
- package/dist/kernel/search.js +5 -0
- package/dist/kernel/site-types.d.ts +146 -0
- package/dist/kernel/site-types.js +1 -0
- package/dist/kernel/site.d.ts +39 -0
- package/dist/kernel/site.js +32 -0
- package/dist/kernel/store.d.ts +175 -0
- package/dist/kernel/store.js +269 -0
- package/dist/kernel/surface.d.ts +10 -0
- package/dist/kernel/surface.js +19 -0
- package/dist/kernel/sweep.d.ts +17 -0
- package/dist/kernel/sweep.js +27 -0
- package/dist/kernel/translations.d.ts +1 -0
- package/dist/kernel/translations.js +13 -0
- package/dist/kernel/user-caller.d.ts +31 -0
- package/dist/kernel/user-caller.js +67 -0
- package/dist/kernel/user-field-name.js +3 -0
- package/dist/kernel/user-fields.d.ts +35 -0
- package/dist/kernel/user-fields.js +81 -0
- package/dist/kernel/validation.d.ts +15 -0
- package/dist/kernel/validation.js +54 -0
- package/dist/kernel/web-gateway.js +68 -0
- package/dist/kernel/web-head.js +15 -0
- package/dist/kernel/web-index.js +40 -0
- package/dist/kernel/web-response.js +8 -0
- package/dist/kernel/web.d.ts +77 -0
- package/dist/kernel/web.js +124 -0
- package/dist/kernel/where.js +27 -0
- package/dist/testing/index.d.ts +1 -0
- package/dist/testing/index.js +1 -0
- package/dist/usecase/adminBindings.js +143 -0
- package/dist/usecase/adminClient.js +87 -0
- package/dist/usecase/adminDescriptors.js +107 -0
- package/dist/usecase/generate.js +166 -0
- package/dist/usecase/handlers.js +21 -0
- package/dist/usecase/mcp-media.js +17 -0
- package/dist/usecase/mcp.js +100 -0
- package/dist/usecase/paging.js +71 -0
- package/dist/usecase/publishing.js +63 -0
- package/dist/usecase/refusals.js +27 -0
- package/dist/usecase/rest.js +54 -0
- package/dist/usecase/search.js +7 -0
- package/dist/usecase/site.js +39 -0
- package/dist/usecase/stores.js +64 -0
- package/dist/usecase/tool-version.js +9 -0
- package/dist/usecase/translations.js +78 -0
- package/dist/usecase/ttl.js +20 -0
- package/dist/usecase/validation.js +241 -0
- package/dist/usecase/web.js +23 -0
- package/docs/examples/README.md +39 -18
- package/docs/examples/app-shell/.dev.vars.example +4 -0
- package/docs/examples/app-shell/README.md +121 -0
- package/docs/examples/app-shell/accept.mjs +91 -0
- package/docs/examples/app-shell/gitignore +7 -0
- package/docs/examples/app-shell/package.json +43 -0
- package/docs/examples/app-shell/pnpm-workspace.yaml +8 -0
- package/docs/examples/app-shell/smoke-kit.mjs +168 -0
- package/docs/examples/app-shell/src/auth.ts +58 -0
- package/docs/examples/app-shell/src/handlers.ts +5 -0
- package/docs/examples/app-shell/src/index.ts +4 -0
- package/docs/examples/app-shell/src/routes.ts +14 -0
- package/docs/examples/app-shell/src/schedule.ts +8 -0
- package/docs/examples/app-shell/src/service.ts +70 -0
- package/docs/examples/app-shell/src/sign-in.ts +41 -0
- package/docs/examples/app-shell/src/signup.ts +8 -0
- package/docs/examples/app-shell/tsconfig.json +26 -0
- package/docs/examples/app-shell/worker-configuration.d.ts +22 -0
- package/docs/examples/app-shell/wrangler.jsonc +62 -0
- package/docs/examples/club-events/README.md +65 -0
- package/docs/examples/club-events/manifests/club-events.yaml +247 -0
- package/docs/examples/club-events/smoke.mjs +127 -0
- package/docs/examples/club-events/src/handlers.ts +25 -0
- package/docs/examples/club-events/src/signup.ts +9 -0
- package/docs/examples/generated-web/README.md +78 -0
- package/docs/examples/generated-web/posts.yaml +38 -0
- package/docs/examples/generated-web/seed.sql +6 -0
- package/docs/examples/generated-web/src/worker.ts +43 -0
- package/docs/examples/generated-web/tsconfig.json +8 -0
- package/docs/examples/generated-web/wrangler.jsonc +8 -0
- package/docs/examples/purchasing/.dev.vars.example +6 -0
- package/docs/examples/purchasing/README.md +99 -0
- package/docs/examples/purchasing/manifests/purchasing.yaml +374 -0
- package/docs/examples/purchasing/seed.sql +4 -0
- package/docs/examples/purchasing/smoke.mjs +191 -0
- package/docs/examples/purchasing/src/admin.tsx +13 -0
- package/docs/examples/purchasing/src/handlers.ts +33 -0
- package/docs/examples/purchasing/src/notify.ts +29 -0
- package/docs/examples/purchasing/src/requests-page.ts +57 -0
- package/docs/examples/purchasing/src/routes.ts +53 -0
- package/docs/examples/purchasing/src/schedule.ts +31 -0
- package/docs/examples/purchasing/src/signup.ts +5 -0
- package/docs/examples/purchasing/src/supplier.ts +32 -0
- package/docs/examples/purchasing/wrangler.jsonc +69 -0
- package/docs/examples/recipes/README.md +60 -0
- package/docs/examples/recipes/manifests/recipes.yaml +75 -0
- package/docs/examples/recipes/smoke.mjs +102 -0
- package/docs/examples/recipes/src/media.ts +13 -0
- package/docs/examples/recipes/src/pages.ts +99 -0
- package/docs/examples/recipes/src/routes.ts +71 -0
- package/docs/examples/recipes/src/site-config.ts +12 -0
- package/docs/examples/recipes/wrangler.jsonc +74 -0
- package/docs/handbook/cloudflare/authentication.md +180 -322
- package/docs/handbook/cloudflare/chatgpt-sites.md +5 -23
- package/docs/handbook/cloudflare/deploy-and-operate.md +55 -77
- package/docs/handbook/cloudflare/media-r2.md +61 -205
- package/docs/handbook/cloudflare/service-entry.md +239 -0
- package/docs/handbook/concepts/authorization.md +10 -107
- package/docs/handbook/concepts/four-atoms.md +9 -168
- package/docs/handbook/concepts/lifecycle-and-locales.md +9 -132
- package/docs/handbook/concepts/mcp-and-agents.md +24 -121
- package/docs/handbook/concepts/procedures-and-triggers.md +5 -217
- package/docs/handbook/concepts/runtime-and-adapters.md +15 -169
- package/docs/handbook/concepts/views.md +10 -185
- package/docs/handbook/examples/hub.md +3 -8
- package/docs/handbook/guides/adapter-guide.md +11 -0
- package/docs/handbook/guides/admin-ui.md +115 -133
- package/docs/handbook/guides/agent-setup.md +64 -74
- package/docs/handbook/guides/agent-workflow-acceptance.md +232 -0
- package/docs/handbook/guides/email.md +86 -0
- package/docs/handbook/guides/local-testing.md +40 -0
- package/docs/handbook/guides/mcp-apps.md +560 -0
- package/docs/handbook/guides/native-admin.md +566 -0
- package/docs/handbook/guides/native-execution.md +133 -0
- package/docs/handbook/guides/oauth.md +219 -0
- package/docs/handbook/guides/postgres-adapters.md +56 -0
- package/docs/handbook/guides/public-pages.md +87 -0
- package/docs/handbook/guides/size-and-startup.md +9 -0
- package/docs/handbook/guides/sql-patterns.md +266 -0
- package/docs/handbook/guides/typed-queries.md +211 -107
- package/docs/handbook/navigation.json +176 -55
- package/docs/handbook/reference/admin-descriptors.md +53 -0
- package/docs/handbook/reference/authorization.md +39 -266
- package/docs/handbook/reference/describe.md +56 -0
- package/docs/handbook/reference/diagnostics.md +19 -186
- package/docs/handbook/reference/features.md +45 -55
- package/docs/handbook/reference/manifest.md +6 -129
- package/docs/handbook/reference/procedure.md +11 -303
- package/docs/handbook/reference/schema.md +64 -240
- package/docs/handbook/reference/site-config.md +5 -218
- package/docs/handbook/reference/sql.md +64 -0
- package/docs/handbook/reference/surface.md +392 -201
- package/docs/handbook/reference/trigger.md +56 -192
- package/docs/handbook/reference/view.md +24 -243
- package/docs/handbook/releases/index.md +244 -77
- package/docs/handbook/start/agents.md +45 -0
- package/docs/handbook/start/overview.md +9 -48
- package/docs/handbook/start/project-and-cli.md +51 -104
- package/docs/handbook/start/quickstart-worker.md +43 -178
- package/docs/skills/develop/SKILL.md +79 -249
- package/docs/skills/integrate/SKILL.md +39 -50
- package/docs/skills/media-gc/SKILL.md +34 -10
- package/docs/skills/provision/SKILL.md +36 -186
- package/docs/skills/update/SKILL.md +23 -38
- package/docs/source/scripts/postgres-adapter.ts +101 -0
- package/docs/upgrade-0.1-to-0.2.md +227 -0
- package/package.json +120 -131
- package/skills/README.md +48 -108
- package/skills/mantle/SKILL.md +76 -0
- package/dist/admin-ui.d.ts +0 -2
- package/dist/admin-ui.d.ts.map +0 -1
- package/dist/admin-ui.js +0 -2
- package/dist/admin-ui.js.map +0 -1
- package/dist/admin.d.ts +0 -2
- package/dist/admin.d.ts.map +0 -1
- package/dist/admin.js +0 -2
- package/dist/admin.js.map +0 -1
- package/dist/auth.d.ts +0 -2
- package/dist/auth.d.ts.map +0 -1
- package/dist/auth.js +0 -2
- package/dist/auth.js.map +0 -1
- package/dist/bun.d.ts +0 -2
- package/dist/bun.d.ts.map +0 -1
- package/dist/bun.js +0 -2
- package/dist/bun.js.map +0 -1
- package/dist/cli/generate-cloudflare.d.ts +0 -7
- package/dist/cli/generate-cloudflare.d.ts.map +0 -1
- package/dist/cli/generate-cloudflare.js +0 -123
- package/dist/cli/generate-cloudflare.js.map +0 -1
- package/dist/cli/generate-project.d.ts +0 -25
- package/dist/cli/generate-project.d.ts.map +0 -1
- package/dist/cli/generate-project.js +0 -282
- package/dist/cli/generate-project.js.map +0 -1
- package/dist/cli/generate-sites.d.ts +0 -8
- package/dist/cli/generate-sites.d.ts.map +0 -1
- package/dist/cli/generate-sites.js +0 -273
- package/dist/cli/generate-sites.js.map +0 -1
- package/dist/cli/generate.d.ts +0 -20
- package/dist/cli/generate.d.ts.map +0 -1
- package/dist/cli/generate.js +0 -299
- package/dist/cli/generate.js.map +0 -1
- package/dist/cli/harness.d.ts +0 -3
- package/dist/cli/harness.d.ts.map +0 -1
- package/dist/cli/harness.js +0 -214
- package/dist/cli/harness.js.map +0 -1
- package/dist/cli/main.d.ts +0 -3
- package/dist/cli/main.d.ts.map +0 -1
- package/dist/cli/main.js +0 -77
- package/dist/cli/main.js.map +0 -1
- package/dist/cli/skills.d.ts +0 -3
- package/dist/cli/skills.d.ts.map +0 -1
- package/dist/cli/skills.js +0 -128
- package/dist/cli/skills.js.map +0 -1
- package/dist/cloudflare.d.ts +0 -2
- package/dist/cloudflare.d.ts.map +0 -1
- package/dist/cloudflare.js +0 -2
- package/dist/cloudflare.js.map +0 -1
- package/dist/codegen/emitMantleModule.d.ts +0 -22
- package/dist/codegen/emitMantleModule.d.ts.map +0 -1
- package/dist/codegen/emitMantleModule.js +0 -291
- package/dist/codegen/emitMantleModule.js.map +0 -1
- package/dist/codegen.d.ts +0 -2
- package/dist/codegen.d.ts.map +0 -1
- package/dist/codegen.js +0 -2
- package/dist/codegen.js.map +0 -1
- package/dist/runtime-testing.d.ts +0 -2
- package/dist/runtime-testing.d.ts.map +0 -1
- package/dist/runtime-testing.js +0 -2
- package/dist/runtime-testing.js.map +0 -1
- package/dist/runtime.d.ts +0 -2
- package/dist/runtime.d.ts.map +0 -1
- package/dist/runtime.js +0 -2
- package/dist/runtime.js.map +0 -1
- package/dist/spec.d.ts +0 -2
- package/dist/spec.d.ts.map +0 -1
- package/dist/spec.js +0 -2
- package/dist/spec.js.map +0 -1
- package/dist/vercel-libsql.d.ts +0 -2
- package/dist/vercel-libsql.d.ts.map +0 -1
- package/dist/vercel-libsql.js +0 -2
- package/dist/vercel-libsql.js.map +0 -1
- package/dist/vercel.d.ts +0 -2
- package/dist/vercel.d.ts.map +0 -1
- package/dist/vercel.js +0 -2
- package/dist/vercel.js.map +0 -1
- package/dist/web.d.ts +0 -2
- package/dist/web.d.ts.map +0 -1
- package/dist/web.js +0 -2
- package/dist/web.js.map +0 -1
- package/docs/adapter-guide.md +0 -222
- package/docs/adr/0001-four-atom-manifest-model.md +0 -440
- package/docs/adr/0002-closed-enums-for-bindings.md +0 -253
- package/docs/adr/0007-ai-as-primary-author.md +0 -473
- package/docs/adr/0008-structured-diagnostic-shape.md +0 -338
- package/docs/adr/0009-consumer-supplied-manifests.md +0 -149
- package/docs/adr/0010-locale-and-translates.md +0 -453
- package/docs/adr/0011-adapter-port-spec.md +0 -281
- package/docs/adr/0012-views-as-public-rest.md +0 -161
- package/docs/adr/0013-agent-provisioned-consumer-projects.md +0 -154
- package/docs/adr/0014-auth-better-auth-and-multi-tenant-mcp.md +0 -900
- package/docs/adr/0016-site-semantic-layer.md +0 -70
- package/docs/adr/0017-media-multi-variant-agent-side-optimization.md +0 -181
- package/docs/adr/0018-core-starters-repository-boundary.md +0 -179
- package/docs/adr/0019-sealed-manifest-runtime-pipeline.md +0 -240
- package/docs/adr/0020-builtin-handler-contracts-and-matched-upsert.md +0 -199
- package/docs/adr/0021-retire-starter-scaffolding.md +0 -30
- package/docs/adr/0022-caller-observed-version-occ.md +0 -212
- package/docs/adr/0023-port-failure-contract.md +0 -69
- package/docs/adr/0024-manifest-native-schema-tables.md +0 -264
- package/docs/adr/0025-reserved-native-columns-and-published-only-public-views.md +0 -105
- package/docs/adr/0026-progressive-generate.md +0 -36
- package/docs/adr/0027-scheduled-procedure-triggers.md +0 -31
- package/docs/adr/0028-schema-ttl-expiry.md +0 -33
- package/docs/adr/README.md +0 -81
- package/docs/adr/adr-lite-803-request-diagnostics.md +0 -38
- package/docs/adr/adr-lite-808-route-readiness.md +0 -47
- package/docs/adr/adr-lite-809-bounded-public-content.md +0 -71
- package/docs/adr/adr-lite-812-native-parity.md +0 -150
- package/docs/adr/adr-lite-823-home-statistics.md +0 -64
- package/docs/adr/adr-lite-842-mcp-authoring.md +0 -30
- package/docs/adr/adr-lite-845-frontend-client.md +0 -38
- package/docs/adr/adr-lite-861-admin-webmcp.md +0 -42
- package/docs/adr/adr-lite-909-admin-ui-kit.md +0 -37
- package/docs/agent-prompts.md +0 -64
- package/docs/api-mcp-authorization.md +0 -5
- package/docs/assets/mantle-admin-developer.png +0 -0
- package/docs/assets/mantle-admin-operations.png +0 -0
- package/docs/assets/mantle-hero.jpg +0 -0
- package/docs/auth-hosting-model.md +0 -166
- package/docs/cloudflare-low-level-composition.md +0 -5
- package/docs/consumer-onboarding-audit.md +0 -65
- package/docs/deferred-lifecycle-queues.md +0 -5
- package/docs/design-atoms.md +0 -16
- package/docs/design-references/editorial-blog-2026-05-05.md +0 -218
- package/docs/direct-authoring.md +0 -5
- package/docs/examples/builtin-commerce.md +0 -269
- package/docs/examples/builtin-intake.md +0 -143
- package/docs/examples/builtin-legal-documents.md +0 -189
- package/docs/examples/builtin-procurement.md +0 -241
- package/docs/examples/builtin-publication.md +0 -241
- package/docs/examples/builtin-reservation.md +0 -149
- package/docs/examples/cf-primitives-commerce-inventory.md +0 -809
- package/docs/examples/cf-primitives-guarded-api.md +0 -429
- package/docs/examples/cf-primitives-intake-hooks.md +0 -319
- package/docs/examples/host-chatgpt-sites/.openai/hosting.json +0 -1
- package/docs/examples/host-chatgpt-sites/README.md +0 -70
- package/docs/examples/host-chatgpt-sites/drizzle/0000_sites_users.sql +0 -8
- package/docs/examples/host-chatgpt-sites/drizzle/0001_mantle.sql +0 -294
- package/docs/examples/host-chatgpt-sites/drizzle/0002_article_cover.sql +0 -5
- package/docs/examples/host-chatgpt-sites/drizzle/0003_store_instance_id.sql +0 -1
- package/docs/examples/host-chatgpt-sites/drizzle/0004_mantle.sql +0 -10
- package/docs/examples/host-chatgpt-sites/drizzle/0005_mantle.sql +0 -24
- package/docs/examples/host-chatgpt-sites/drizzle/meta/_journal.json +0 -1
- package/docs/examples/host-chatgpt-sites/drizzle/meta/mantle-state.json +0 -60
- package/docs/examples/host-chatgpt-sites/manifests/site.yaml +0 -27
- package/docs/examples/host-chatgpt-sites/package.json +0 -1
- package/docs/examples/host-chatgpt-sites/public/site.css +0 -1
- package/docs/examples/host-chatgpt-sites/scripts/build.mjs +0 -13
- package/docs/examples/host-chatgpt-sites/scripts/check.mjs +0 -101
- package/docs/examples/host-chatgpt-sites/scripts/migration.mjs +0 -43
- package/docs/examples/host-chatgpt-sites/src/chatgpt-auth.ts +0 -66
- package/docs/examples/host-chatgpt-sites/src/index.ts +0 -46
- package/docs/examples/host-chatgpt-sites/src/mcp.ts +0 -49
- package/docs/examples/host-chatgpt-sites/src/media.ts +0 -109
- package/docs/examples/host-chatgpt-sites/src/r2-lab.ts +0 -38
- package/docs/examples/host-chatgpt-sites/src/storage-fingerprint.json +0 -1
- package/docs/examples/host-chatgpt-sites/src/web.ts +0 -35
- package/docs/examples/host-chatgpt-sites/tsconfig.json +0 -1
- package/docs/examples/host-chatgpt-sites/wrangler.jsonc +0 -10
- package/docs/examples/host-local-admin-otp/.dev.vars.example +0 -3
- package/docs/examples/host-local-admin-otp/README.md +0 -80
- package/docs/examples/host-local-admin-otp/ensure-dev-vars.mjs +0 -5
- package/docs/examples/host-local-admin-otp/manifests/site.yaml +0 -25
- package/docs/examples/host-local-admin-otp/package.json +0 -29
- package/docs/examples/host-local-admin-otp/public/.gitkeep +0 -1
- package/docs/examples/host-local-admin-otp/smoke.mjs +0 -141
- package/docs/examples/host-local-admin-otp/src/index.ts +0 -54
- package/docs/examples/host-local-admin-otp/tsconfig.json +0 -17
- package/docs/examples/host-local-admin-otp/wrangler.jsonc +0 -23
- package/docs/examples/host-minimal-worker/README.md +0 -41
- package/docs/examples/host-minimal-worker/manifests/site.yaml +0 -25
- package/docs/examples/host-minimal-worker/package.json +0 -26
- package/docs/examples/host-minimal-worker/smoke.mjs +0 -23
- package/docs/examples/host-minimal-worker/src/index.ts +0 -4
- package/docs/examples/host-minimal-worker/tsconfig.json +0 -17
- package/docs/examples/host-minimal-worker/wrangler.jsonc +0 -22
- package/docs/handbook/chatgpt-sites/equipment-checkout.md +0 -231
- package/docs/handbook/chatgpt-sites/generated-app.md +0 -84
- package/docs/handbook/chatgpt-sites/host-reference.md +0 -113
- package/docs/handbook/chatgpt-sites/index.md +0 -133
- package/docs/handbook/cloudflare/bindings.md +0 -291
- package/docs/handbook/cloudflare/conventional-worker.md +0 -166
- package/docs/handbook/cloudflare/deferred-hooks-queues.md +0 -170
- package/docs/handbook/cloudflare/low-level-composition.md +0 -169
- package/docs/handbook/cloudflare/public-web.md +0 -144
- package/docs/handbook/cloudflare/site-chrome.md +0 -75
- package/docs/handbook/examples/commerce-transaction.md +0 -11
- package/docs/handbook/examples/commerce.md +0 -11
- package/docs/handbook/examples/guarded-api.md +0 -10
- package/docs/handbook/examples/intake-form.md +0 -12
- package/docs/handbook/examples/intake-hooks.md +0 -11
- package/docs/handbook/examples/legal-documents.md +0 -10
- package/docs/handbook/examples/procurement-approvals.md +0 -10
- package/docs/handbook/examples/publication.md +0 -10
- package/docs/handbook/examples/reservation.md +0 -10
- package/docs/handbook/start/quickstart-admin.md +0 -52
- package/docs/labels.md +0 -71
- package/docs/media-uploads.md +0 -5
- package/docs/migration-0.1.2.md +0 -13
- package/docs/performance-harness.md +0 -228
- package/docs/release-process.md +0 -244
- package/docs/schema-indexes.md +0 -5
- package/docs/sealed-pipeline-ownership.md +0 -101
- package/docs/skills/plugin/SKILL.md +0 -132
- package/docs/skills/theme/SKILL.md +0 -77
- package/docs/spec-only-host-adoption.md +0 -157
- package/docs/transaction-patterns.md +0 -5
- package/skills/develop/SKILL.md +0 -258
- package/skills/install/SKILL.md +0 -112
- package/skills/integrate/SKILL.md +0 -60
- package/skills/media-gc/SKILL.md +0 -85
- package/skills/plugin/SKILL.md +0 -132
- package/skills/provision/SKILL.md +0 -194
- package/skills/theme/SKILL.md +0 -77
- package/skills/update/SKILL.md +0 -51
- package/templates/chatgpt-sites/auth.ts +0 -66
- package/templates/chatgpt-sites/build.mjs +0 -14
- package/templates/chatgpt-sites/env.ts +0 -1
- package/templates/chatgpt-sites/mcp.ts +0 -48
- package/templates/chatgpt-sites/public-mcp.ts +0 -29
- package/templates/chatgpt-sites/smoke-local.mjs +0 -20
|
@@ -4,91 +4,212 @@
|
|
|
4
4
|
{
|
|
5
5
|
"text": "Start here",
|
|
6
6
|
"items": [
|
|
7
|
-
{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
{
|
|
7
|
+
{
|
|
8
|
+
"text": "Build with an agent",
|
|
9
|
+
"link": "/start/agents"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"text": "Handbook overview",
|
|
13
|
+
"link": "/start/overview"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"text": "Quickstart: a service on Workers",
|
|
17
|
+
"link": "/start/quickstart-worker"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"text": "Project layout and CLI",
|
|
21
|
+
"link": "/start/project-and-cli"
|
|
22
|
+
}
|
|
12
23
|
]
|
|
13
24
|
},
|
|
14
25
|
{
|
|
15
26
|
"text": "Task guides",
|
|
16
27
|
"items": [
|
|
17
|
-
{
|
|
18
|
-
|
|
19
|
-
|
|
28
|
+
{
|
|
29
|
+
"text": "Agent installation and handoff",
|
|
30
|
+
"link": "/guides/agent-setup"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"text": "Query from TypeScript",
|
|
34
|
+
"link": "/guides/typed-queries"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"text": "Public pages: SEO, AEO and languages",
|
|
38
|
+
"link": "/guides/public-pages"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"text": "Local HTTP checks",
|
|
42
|
+
"link": "/guides/local-testing"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"text": "SQL patterns",
|
|
46
|
+
"link": "/guides/sql-patterns"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"text": "Native Admin",
|
|
50
|
+
"link": "/guides/native-admin"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"text": "Customize Admin",
|
|
54
|
+
"link": "/guides/admin-ui"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"text": "Another host or engine",
|
|
58
|
+
"link": "/guides/adapter-guide"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"text": "Native execution",
|
|
62
|
+
"link": "/guides/native-execution"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"text": "PostgreSQL adapters",
|
|
66
|
+
"link": "/guides/postgres-adapters"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"text": "OAuth and consent",
|
|
70
|
+
"link": "/guides/oauth"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"text": "Transactional email",
|
|
74
|
+
"link": "/guides/email"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"text": "MCP Apps",
|
|
78
|
+
"link": "/guides/mcp-apps"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"text": "Size and startup",
|
|
82
|
+
"link": "/guides/size-and-startup"
|
|
83
|
+
}
|
|
20
84
|
]
|
|
21
85
|
},
|
|
22
86
|
{
|
|
23
87
|
"text": "Concepts",
|
|
24
88
|
"items": [
|
|
25
|
-
{
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
{
|
|
30
|
-
|
|
31
|
-
|
|
89
|
+
{
|
|
90
|
+
"text": "The four atoms",
|
|
91
|
+
"link": "/concepts/four-atoms"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"text": "Lifecycle and locales",
|
|
95
|
+
"link": "/concepts/lifecycle-and-locales"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"text": "Reads: Views, REST and MCP",
|
|
99
|
+
"link": "/concepts/views"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"text": "Writes: Procedures and Triggers",
|
|
103
|
+
"link": "/concepts/procedures-and-triggers"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"text": "Authorization",
|
|
107
|
+
"link": "/concepts/authorization"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"text": "MCP and agents",
|
|
111
|
+
"link": "/concepts/mcp-and-agents"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"text": "Runtime, Store and dialects",
|
|
115
|
+
"link": "/concepts/runtime-and-adapters"
|
|
116
|
+
}
|
|
32
117
|
]
|
|
33
118
|
},
|
|
34
119
|
{
|
|
35
120
|
"text": "Reference",
|
|
36
121
|
"items": [
|
|
37
|
-
{
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
{
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
{
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
{
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
122
|
+
{
|
|
123
|
+
"text": "Manifest feature table",
|
|
124
|
+
"link": "/reference/features"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"text": "Manifest envelope",
|
|
128
|
+
"link": "/reference/manifest"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"text": "Schema",
|
|
132
|
+
"link": "/reference/schema"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"text": "View",
|
|
136
|
+
"link": "/reference/view"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"text": "Procedure",
|
|
140
|
+
"link": "/reference/procedure"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"text": "Trigger",
|
|
144
|
+
"link": "/reference/trigger"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"text": "SQL accepted by each dialect",
|
|
148
|
+
"link": "/reference/sql"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"text": "Authorization requirements",
|
|
152
|
+
"link": "/reference/authorization"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"text": "Site defaults and site_config",
|
|
156
|
+
"link": "/reference/site-config"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"text": "Diagnostic codes",
|
|
160
|
+
"link": "/reference/diagnostics"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"text": "HTTP, MCP, CLI and packages",
|
|
164
|
+
"link": "/reference/surface"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"text": "Generated Admin descriptors",
|
|
168
|
+
"link": "/reference/admin-descriptors"
|
|
169
|
+
}
|
|
57
170
|
]
|
|
58
171
|
},
|
|
59
172
|
{
|
|
60
173
|
"text": "Cloudflare",
|
|
61
174
|
"items": [
|
|
62
|
-
{
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
{
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
{
|
|
175
|
+
{
|
|
176
|
+
"text": "The service and its entry",
|
|
177
|
+
"link": "/cloudflare/service-entry"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"text": "Authentication",
|
|
181
|
+
"link": "/cloudflare/authentication"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"text": "Media uploads with R2",
|
|
185
|
+
"link": "/cloudflare/media-r2"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"text": "Deploy and operate",
|
|
189
|
+
"link": "/cloudflare/deploy-and-operate"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"text": "Mantle on ChatGPT Sites",
|
|
193
|
+
"link": "/cloudflare/chatgpt-sites"
|
|
194
|
+
}
|
|
71
195
|
]
|
|
72
196
|
},
|
|
73
197
|
{
|
|
74
198
|
"text": "Examples",
|
|
75
199
|
"items": [
|
|
76
|
-
{
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
{ "text": "Legal documents and consent", "link": "/examples/legal-documents" },
|
|
81
|
-
{ "text": "Reservation requests", "link": "/examples/reservation" },
|
|
82
|
-
{ "text": "Procurement approvals", "link": "/examples/procurement-approvals" },
|
|
83
|
-
{ "text": "Commerce catalog (builtin)", "link": "/examples/commerce" },
|
|
84
|
-
{ "text": "Commerce inventory (DO/Queue)", "link": "/examples/commerce-transaction" },
|
|
85
|
-
{ "text": "Guarded API access", "link": "/examples/guarded-api" }
|
|
200
|
+
{
|
|
201
|
+
"text": "Examples",
|
|
202
|
+
"link": "/examples/hub"
|
|
203
|
+
}
|
|
86
204
|
]
|
|
87
205
|
},
|
|
88
206
|
{
|
|
89
207
|
"text": "Releases",
|
|
90
208
|
"items": [
|
|
91
|
-
{
|
|
209
|
+
{
|
|
210
|
+
"text": "Releases",
|
|
211
|
+
"link": "/releases/index"
|
|
212
|
+
}
|
|
92
213
|
]
|
|
93
214
|
}
|
|
94
215
|
]
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Generated Admin descriptors
|
|
2
|
+
|
|
3
|
+
Experimental native preview; use the matching installed SDK/Admin versions.
|
|
4
|
+
[Native Admin](../guides/native-admin.md) explains execution and mounting
|
|
5
|
+
with `entries(bindings.schemas, bindings.adapter)`. Descriptors remain static
|
|
6
|
+
data, not runtime authorization or a storage interpreter.
|
|
7
|
+
|
|
8
|
+
`mantle generate` emits `admin-descriptors.ts`. Its exports are static data;
|
|
9
|
+
importing a query does not import them. Selecting only `collections` also drops
|
|
10
|
+
the developer snapshot and MCP catalogues from a bundle. No request-time parser,
|
|
11
|
+
execution plan or SQL AST, storage access or execution observer is included.
|
|
12
|
+
|
|
13
|
+
- `collections` matches the 0.2 navigation projection: translation Schemas fold
|
|
14
|
+
into their parents; composition, parent picker, media fields, indexed sorts,
|
|
15
|
+
enum filters and list presentation retain their declared field names.
|
|
16
|
+
- `allCollections` includes translation and child editor descriptors by name.
|
|
17
|
+
`scopeField` identifies the private scope field; `exportFields` lists only
|
|
18
|
+
declared, exportable data fields (excluding scope/geo). CSV uses these facts
|
|
19
|
+
instead of guessing from row keys. `fieldNames` maps storage column names to authored names; `viewNames` does the
|
|
20
|
+
same for admin View outputs whose fields are read unchanged.
|
|
21
|
+
- `views` and `operations` preserve the 0.2 admin descriptor shapes. Generated
|
|
22
|
+
publishing transitions stay out of Admin operations and WebMCP, preserving
|
|
23
|
+
the SPA's native Publish/Unpublish buttons. Operation
|
|
24
|
+
bindings use declared targets and version inputs; `preconditions` contains
|
|
25
|
+
necessary string (including enum) and boolean equality/IN predicates from one
|
|
26
|
+
target-row write. Numeric, temporal and JSON fields are skipped; these hints
|
|
27
|
+
do not authorize execution.
|
|
28
|
+
- `authorizations` is a separate View/Procedure lookup for the generated Admin
|
|
29
|
+
handler to filter descriptors by the resolved Caller. These constants do not
|
|
30
|
+
authorize a request; session/admin gates and execution checks remain required.
|
|
31
|
+
- `developerConsole` is the 0.2 data-model, logic, interface, relationship and
|
|
32
|
+
operations snapshot, derived once during generation. SQL logic is display
|
|
33
|
+
data, not executable IR. Observations remain unavailable and run history empty.
|
|
34
|
+
- `mcpAppCatalogues` contains public/admin App catalogues. Row actions require
|
|
35
|
+
the same single-table, unchanged-id provenance as 0.2. Publishing transitions
|
|
36
|
+
use the actual `<schema>.<verb>` Procedures and canonical `<verb>_<schema>`
|
|
37
|
+
admin tool names. A conflicting declared admin tool is refused.
|
|
38
|
+
- `webmcp` carries static tool declarations and Admin page routes. `bootstrap`
|
|
39
|
+
combines `collections`, `operations`, `views` and `webmcp`; the handler adds
|
|
40
|
+
request-owned `me`, `site` and any selected entries page.
|
|
41
|
+
|
|
42
|
+
Generation reuses the 0.2 projection and SQL-logic helpers. View columns come
|
|
43
|
+
from the compiled plan (Core's `viewOutputs` provenance, including aliases,
|
|
44
|
+
stars, CTEs and subqueries). Translation
|
|
45
|
+
metadata and selected execution share the generated translation policy. Child
|
|
46
|
+
fields win; private scope fields cannot be overlaid by inherited parent fields.
|
|
47
|
+
|
|
48
|
+
`adminBindings()` provides the selected adapter and checked entry/View/operation
|
|
49
|
+
bindings. The server shares native read templates across collections; descriptors
|
|
50
|
+
carry compiler-verified policy/field fragments and generated validators, not a
|
|
51
|
+
copy of full SQL for every order/direction. Metadata endpoints perform no storage
|
|
52
|
+
read of their own; caller resolution and optional site/user enrichment may query.
|
|
53
|
+
Statistics capability is advertised only when its native route is mounted.
|