@aotter/mantle 0.1.4 → 0.2.0-alpha.1
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 +39 -306
- package/dist/admin/consent.d.ts +17 -0
- package/dist/admin/consent.d.ts.map +1 -0
- package/dist/admin/consent.js +17 -0
- package/dist/admin/consent.js.map +1 -0
- package/dist/admin/createAdminSurface.d.ts +22 -0
- package/dist/admin/createAdminSurface.d.ts.map +1 -0
- package/dist/admin/createAdminSurface.js +589 -0
- package/dist/admin/createAdminSurface.js.map +1 -0
- package/dist/admin/developerConsole.d.ts +264 -0
- package/dist/admin/developerConsole.d.ts.map +1 -0
- package/dist/admin/developerConsole.js +136 -0
- package/dist/admin/developerConsole.js.map +1 -0
- package/dist/admin/identity.d.ts +62 -0
- package/dist/admin/identity.d.ts.map +1 -0
- package/dist/admin/identity.js +7 -0
- package/dist/admin/identity.js.map +1 -0
- package/dist/admin/index.d.ts +4 -0
- package/dist/admin/index.d.ts.map +1 -0
- package/dist/admin/index.js +4 -0
- package/dist/admin/index.js.map +1 -0
- package/dist/admin/procedureFlow.d.ts +25 -0
- package/dist/admin/procedureFlow.d.ts.map +1 -0
- package/dist/admin/procedureFlow.js +154 -0
- package/dist/admin/procedureFlow.js.map +1 -0
- package/dist/auth/ConsoleEmailSender.d.ts +15 -0
- package/dist/auth/ConsoleEmailSender.d.ts.map +1 -0
- package/dist/auth/ConsoleEmailSender.js +19 -0
- package/dist/auth/ConsoleEmailSender.js.map +1 -0
- package/dist/auth/appleClientSecret.d.ts +75 -0
- package/dist/auth/appleClientSecret.d.ts.map +1 -0
- package/dist/auth/appleClientSecret.js +116 -0
- package/dist/auth/appleClientSecret.js.map +1 -0
- package/dist/auth/buildAuth.d.ts +4565 -0
- package/dist/auth/buildAuth.d.ts.map +1 -0
- package/dist/auth/buildAuth.js +307 -0
- package/dist/auth/buildAuth.js.map +1 -0
- package/dist/auth/callerResolver.d.ts +48 -0
- package/dist/auth/callerResolver.d.ts.map +1 -0
- package/dist/auth/callerResolver.js +49 -0
- package/dist/auth/callerResolver.js.map +1 -0
- package/dist/auth/createAuthRoutes.d.ts +22 -0
- package/dist/auth/createAuthRoutes.d.ts.map +1 -0
- package/dist/auth/createAuthRoutes.js +128 -0
- package/dist/auth/createAuthRoutes.js.map +1 -0
- package/dist/auth/createMantleAuth.d.ts +3 -0
- package/dist/auth/createMantleAuth.d.ts.map +1 -0
- package/dist/auth/createMantleAuth.js +483 -0
- package/dist/auth/createMantleAuth.js.map +1 -0
- package/dist/auth/db.d.ts +17 -0
- package/dist/auth/db.d.ts.map +1 -0
- package/dist/auth/db.js +24 -0
- package/dist/auth/db.js.map +1 -0
- package/dist/auth/emailTemplates.d.ts +7 -0
- package/dist/auth/emailTemplates.d.ts.map +1 -0
- package/dist/auth/emailTemplates.js +27 -0
- package/dist/auth/emailTemplates.js.map +1 -0
- package/dist/auth/index.d.ts +9 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +7 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/methods.d.ts +717 -0
- package/dist/auth/methods.d.ts.map +1 -0
- package/dist/auth/methods.js +321 -0
- package/dist/auth/methods.js.map +1 -0
- package/dist/auth/oauthTokens.d.ts +24 -0
- package/dist/auth/oauthTokens.d.ts.map +1 -0
- package/dist/auth/oauthTokens.js +146 -0
- package/dist/auth/oauthTokens.js.map +1 -0
- package/dist/auth/setupIncomplete.d.ts +16 -0
- package/dist/auth/setupIncomplete.d.ts.map +1 -0
- package/dist/auth/setupIncomplete.js +50 -0
- package/dist/auth/setupIncomplete.js.map +1 -0
- package/dist/auth/types.d.ts +440 -0
- package/dist/auth/types.d.ts.map +1 -0
- package/dist/auth/types.js +10 -0
- package/dist/auth/types.js.map +1 -0
- package/dist/bun/index.d.ts +65 -0
- package/dist/bun/index.d.ts.map +1 -0
- package/dist/bun/index.js +130 -0
- package/dist/bun/index.js.map +1 -0
- package/dist/cli/emitModule.d.ts +7 -0
- package/dist/cli/emitModule.d.ts.map +1 -0
- package/dist/cli/emitModule.js +127 -0
- package/dist/cli/emitModule.js.map +1 -0
- package/dist/cli/generate.d.ts +4 -16
- package/dist/cli/generate.d.ts.map +1 -1
- package/dist/cli/generate.js +332 -165
- package/dist/cli/generate.js.map +1 -1
- package/dist/cli/main.d.ts +1 -1
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +15 -71
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/preset.d.ts +18 -0
- package/dist/cli/preset.d.ts.map +1 -0
- package/dist/cli/preset.js +352 -0
- package/dist/cli/preset.js.map +1 -0
- package/dist/cloudflare/index.d.ts +21 -0
- package/dist/cloudflare/index.d.ts.map +1 -0
- package/dist/cloudflare/index.js +14 -0
- package/dist/cloudflare/index.js.map +1 -0
- package/dist/cloudflare/r2Media.d.ts +43 -0
- package/dist/cloudflare/r2Media.d.ts.map +1 -0
- package/dist/cloudflare/r2Media.js +69 -0
- package/dist/cloudflare/r2Media.js.map +1 -0
- package/dist/core/caller.d.ts +35 -0
- package/dist/core/caller.d.ts.map +1 -0
- package/dist/core/caller.js +3 -0
- package/dist/core/caller.js.map +1 -0
- package/dist/core/createMantle.d.ts +22 -0
- package/dist/core/createMantle.d.ts.map +1 -0
- package/dist/core/createMantle.js +117 -0
- package/dist/core/createMantle.js.map +1 -0
- package/dist/core/dialect.d.ts +41 -0
- package/dist/core/dialect.d.ts.map +1 -0
- package/dist/core/dialect.js +7 -0
- package/dist/core/dialect.js.map +1 -0
- package/dist/core/driver.d.ts +17 -0
- package/dist/core/driver.d.ts.map +1 -0
- package/dist/core/driver.js +2 -0
- package/dist/core/driver.js.map +1 -0
- package/dist/core/email.d.ts +17 -0
- package/dist/core/email.d.ts.map +1 -0
- package/dist/core/email.js +2 -0
- package/dist/core/email.js.map +1 -0
- package/dist/core/index.d.ts +16 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +16 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/invocation.d.ts +66 -0
- package/dist/core/invocation.d.ts.map +1 -0
- package/dist/core/invocation.js +3 -0
- package/dist/core/invocation.js.map +1 -0
- package/dist/core/runtime/auth.d.ts +9 -0
- package/dist/core/runtime/auth.d.ts.map +1 -0
- package/dist/core/runtime/auth.js +39 -0
- package/dist/core/runtime/auth.js.map +1 -0
- package/dist/core/runtime/createRuntime.d.ts +23 -0
- package/dist/core/runtime/createRuntime.d.ts.map +1 -0
- package/dist/core/runtime/createRuntime.js +214 -0
- package/dist/core/runtime/createRuntime.js.map +1 -0
- package/dist/core/runtime/verifyPlan.d.ts +34 -0
- package/dist/core/runtime/verifyPlan.d.ts.map +1 -0
- package/dist/core/runtime/verifyPlan.js +301 -0
- package/dist/core/runtime/verifyPlan.js.map +1 -0
- package/dist/core/service.d.ts +45 -0
- package/dist/core/service.d.ts.map +1 -0
- package/dist/core/service.js +2 -0
- package/dist/core/service.js.map +1 -0
- package/dist/core/site.d.ts +117 -0
- package/dist/core/site.d.ts.map +1 -0
- package/dist/core/site.js +2 -0
- package/dist/core/site.js.map +1 -0
- package/dist/core/siteConfig.d.ts +5 -0
- package/dist/core/siteConfig.d.ts.map +1 -0
- package/dist/core/siteConfig.js +24 -0
- package/dist/core/siteConfig.js.map +1 -0
- package/dist/core/sql/allowlist.d.ts +65 -0
- package/dist/core/sql/allowlist.d.ts.map +1 -0
- package/dist/core/sql/allowlist.js +705 -0
- package/dist/core/sql/allowlist.js.map +1 -0
- package/dist/core/sql/ast.d.ts +24 -0
- package/dist/core/sql/ast.d.ts.map +1 -0
- package/dist/core/sql/ast.js +32 -0
- package/dist/core/sql/ast.js.map +1 -0
- package/dist/core/sql/compile.d.ts +50 -0
- package/dist/core/sql/compile.d.ts.map +1 -0
- package/dist/core/sql/compile.js +48 -0
- package/dist/core/sql/compile.js.map +1 -0
- package/dist/core/sql/policy.d.ts +121 -0
- package/dist/core/sql/policy.d.ts.map +1 -0
- package/dist/core/sql/policy.js +379 -0
- package/dist/core/sql/policy.js.map +1 -0
- package/dist/core/sql/positions.d.ts +30 -0
- package/dist/core/sql/positions.d.ts.map +1 -0
- package/dist/core/sql/positions.js +22 -0
- package/dist/core/sql/positions.js.map +1 -0
- package/dist/core/sql/run.d.ts +76 -0
- package/dist/core/sql/run.d.ts.map +1 -0
- package/dist/core/sql/run.js +267 -0
- package/dist/core/sql/run.js.map +1 -0
- package/dist/core/store/createStore.d.ts +49 -0
- package/dist/core/store/createStore.d.ts.map +1 -0
- package/dist/core/store/createStore.js +227 -0
- package/dist/core/store/createStore.js.map +1 -0
- package/dist/core/store/cursor.d.ts +4 -0
- package/dist/core/store/cursor.d.ts.map +1 -0
- package/dist/core/store/cursor.js +22 -0
- package/dist/core/store/cursor.js.map +1 -0
- package/dist/core/store/json.d.ts +80 -0
- package/dist/core/store/json.d.ts.map +1 -0
- package/dist/core/store/json.js +342 -0
- package/dist/core/store/json.js.map +1 -0
- package/dist/core/store.d.ts +160 -0
- package/dist/core/store.d.ts.map +1 -0
- package/dist/core/store.js +2 -0
- package/dist/core/store.js.map +1 -0
- package/dist/core/wire.d.ts +20 -0
- package/dist/core/wire.d.ts.map +1 -0
- package/dist/core/wire.js +84 -0
- package/dist/core/wire.js.map +1 -0
- package/dist/core/withCaller.d.ts +16 -0
- package/dist/core/withCaller.d.ts.map +1 -0
- package/dist/core/withCaller.js +29 -0
- package/dist/core/withCaller.js.map +1 -0
- package/dist/d1/adapter.d.ts +12 -0
- package/dist/d1/adapter.d.ts.map +1 -0
- package/dist/d1/adapter.js +23 -0
- package/dist/d1/adapter.js.map +1 -0
- package/dist/d1/codec.d.ts +14 -0
- package/dist/d1/codec.d.ts.map +1 -0
- package/dist/d1/codec.js +136 -0
- package/dist/d1/codec.js.map +1 -0
- package/dist/d1/compile/index.d.ts +9 -0
- package/dist/d1/compile/index.d.ts.map +1 -0
- package/dist/d1/compile/index.js +9 -0
- package/dist/d1/compile/index.js.map +1 -0
- package/dist/d1/dialect.d.ts +4 -0
- package/dist/d1/dialect.d.ts.map +1 -0
- package/dist/d1/dialect.js +13 -0
- package/dist/d1/dialect.js.map +1 -0
- package/dist/d1/executor.d.ts +13 -0
- package/dist/d1/executor.d.ts.map +1 -0
- package/dist/d1/executor.js +91 -0
- package/dist/d1/executor.js.map +1 -0
- package/dist/d1/index.d.ts +6 -0
- package/dist/d1/index.d.ts.map +1 -0
- package/dist/d1/index.js +6 -0
- package/dist/d1/index.js.map +1 -0
- package/dist/d1/lower.d.ts +8 -0
- package/dist/d1/lower.d.ts.map +1 -0
- package/dist/d1/lower.js +167 -0
- package/dist/d1/lower.js.map +1 -0
- package/dist/d1/media.d.ts +5 -0
- package/dist/d1/media.d.ts.map +1 -0
- package/dist/d1/media.js +157 -0
- package/dist/d1/media.js.map +1 -0
- package/dist/d1/migrations.d.ts +12 -0
- package/dist/d1/migrations.d.ts.map +1 -0
- package/dist/d1/migrations.js +111 -0
- package/dist/d1/migrations.js.map +1 -0
- package/dist/d1/print.d.ts +28 -0
- package/dist/d1/print.d.ts.map +1 -0
- package/dist/d1/print.js +54 -0
- package/dist/d1/print.js.map +1 -0
- package/dist/d1/site.d.ts +17 -0
- package/dist/d1/site.d.ts.map +1 -0
- package/dist/d1/site.js +63 -0
- package/dist/d1/site.js.map +1 -0
- package/dist/d1/storage.d.ts +34 -0
- package/dist/d1/storage.d.ts.map +1 -0
- package/dist/d1/storage.js +288 -0
- package/dist/d1/storage.js.map +1 -0
- package/dist/d1/tz.d.ts +21 -0
- package/dist/d1/tz.d.ts.map +1 -0
- package/dist/d1/tz.js +54 -0
- package/dist/d1/tz.js.map +1 -0
- package/dist/d1/validator.d.ts +10 -0
- package/dist/d1/validator.d.ts.map +1 -0
- package/dist/d1/validator.js +33 -0
- package/dist/d1/validator.js.map +1 -0
- package/dist/mcp/apps.d.ts +43 -0
- package/dist/mcp/apps.d.ts.map +1 -0
- package/dist/mcp/apps.js +57 -0
- package/dist/mcp/apps.js.map +1 -0
- package/dist/mcp/catalog.d.ts +55 -0
- package/dist/mcp/catalog.d.ts.map +1 -0
- package/dist/mcp/catalog.js +81 -0
- package/dist/mcp/catalog.js.map +1 -0
- package/dist/mcp/createMcpSurface.d.ts +34 -0
- package/dist/mcp/createMcpSurface.d.ts.map +1 -0
- package/dist/mcp/createMcpSurface.js +150 -0
- package/dist/mcp/createMcpSurface.js.map +1 -0
- package/dist/mcp/index.d.ts +4 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +4 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/postgres/adapter.d.ts +20 -0
- package/dist/postgres/adapter.d.ts.map +1 -0
- package/dist/postgres/adapter.js +44 -0
- package/dist/postgres/adapter.js.map +1 -0
- package/dist/postgres/codec.d.ts +13 -0
- package/dist/postgres/codec.d.ts.map +1 -0
- package/dist/postgres/codec.js +110 -0
- package/dist/postgres/codec.js.map +1 -0
- package/dist/postgres/compile/index.d.ts +9 -0
- package/dist/postgres/compile/index.d.ts.map +1 -0
- package/dist/postgres/compile/index.js +9 -0
- package/dist/postgres/compile/index.js.map +1 -0
- package/dist/postgres/driver.d.ts +92 -0
- package/dist/postgres/driver.d.ts.map +1 -0
- package/dist/postgres/driver.js +110 -0
- package/dist/postgres/driver.js.map +1 -0
- package/dist/postgres/executor.d.ts +20 -0
- package/dist/postgres/executor.d.ts.map +1 -0
- package/dist/postgres/executor.js +69 -0
- package/dist/postgres/executor.js.map +1 -0
- package/dist/postgres/index.d.ts +7 -0
- package/dist/postgres/index.d.ts.map +1 -0
- package/dist/postgres/index.js +7 -0
- package/dist/postgres/index.js.map +1 -0
- package/dist/postgres/lower.d.ts +6 -0
- package/dist/postgres/lower.d.ts.map +1 -0
- package/dist/postgres/lower.js +157 -0
- package/dist/postgres/lower.js.map +1 -0
- package/dist/postgres/print.d.ts +11 -0
- package/dist/postgres/print.d.ts.map +1 -0
- package/dist/postgres/print.js +121 -0
- package/dist/postgres/print.js.map +1 -0
- package/dist/postgres/storage.d.ts +19 -0
- package/dist/postgres/storage.d.ts.map +1 -0
- package/dist/postgres/storage.js +201 -0
- package/dist/postgres/storage.js.map +1 -0
- package/dist/postgres/textRows.d.ts +10 -0
- package/dist/postgres/textRows.d.ts.map +1 -0
- package/dist/postgres/textRows.js +44 -0
- package/dist/postgres/textRows.js.map +1 -0
- package/dist/postgres/validator.d.ts +12 -0
- package/dist/postgres/validator.d.ts.map +1 -0
- package/dist/postgres/validator.js +46 -0
- package/dist/postgres/validator.js.map +1 -0
- package/dist/spec/domain/index.d.ts +3 -0
- package/dist/spec/domain/index.d.ts.map +1 -0
- package/dist/spec/domain/index.js +3 -0
- package/dist/spec/domain/index.js.map +1 -0
- package/dist/spec/domain/model/ContentState.d.ts +8 -0
- package/dist/spec/domain/model/ContentState.d.ts.map +1 -0
- package/dist/spec/domain/model/ContentState.js +7 -0
- package/dist/spec/domain/model/ContentState.js.map +1 -0
- package/dist/spec/domain/model/Entry.d.ts +29 -0
- package/dist/spec/domain/model/Entry.d.ts.map +1 -0
- package/dist/spec/domain/model/Entry.js +16 -0
- package/dist/spec/domain/model/Entry.js.map +1 -0
- package/dist/spec/domain/model/Locale.d.ts +30 -0
- package/dist/spec/domain/model/Locale.d.ts.map +1 -0
- package/dist/spec/domain/model/Locale.js +33 -0
- package/dist/spec/domain/model/Locale.js.map +1 -0
- package/dist/spec/domain/model/ManifestGrammar.d.ts +452 -0
- package/dist/spec/domain/model/ManifestGrammar.d.ts.map +1 -0
- package/dist/spec/domain/model/ManifestGrammar.js +149 -0
- package/dist/spec/domain/model/ManifestGrammar.js.map +1 -0
- package/dist/spec/domain/model/MediaMimeAccept.d.ts +55 -0
- package/dist/spec/domain/model/MediaMimeAccept.d.ts.map +1 -0
- package/dist/spec/domain/model/MediaMimeAccept.js +90 -0
- package/dist/spec/domain/model/MediaMimeAccept.js.map +1 -0
- package/dist/spec/domain/model/RuntimePlan.d.ts +94 -0
- package/dist/spec/domain/model/RuntimePlan.d.ts.map +1 -0
- package/dist/spec/domain/model/RuntimePlan.js +4 -0
- package/dist/spec/domain/model/RuntimePlan.js.map +1 -0
- package/dist/spec/domain/model/SiteConfig.d.ts +173 -0
- package/dist/spec/domain/model/SiteConfig.d.ts.map +1 -0
- package/dist/spec/domain/model/SiteConfig.js +13 -0
- package/dist/spec/domain/model/SiteConfig.js.map +1 -0
- package/dist/spec/domain/model/SqlIr.d.ts +96 -0
- package/dist/spec/domain/model/SqlIr.d.ts.map +1 -0
- package/dist/spec/domain/model/SqlIr.js +95 -0
- package/dist/spec/domain/model/SqlIr.js.map +1 -0
- package/dist/spec/domain/model/index.d.ts +14 -0
- package/dist/spec/domain/model/index.d.ts.map +1 -0
- package/dist/spec/domain/model/index.js +14 -0
- package/dist/spec/domain/model/index.js.map +1 -0
- package/dist/spec/domain/service/CloudflareCron.d.ts +2 -0
- package/dist/spec/domain/service/CloudflareCron.d.ts.map +1 -0
- package/dist/spec/domain/service/CloudflareCron.js +63 -0
- package/dist/spec/domain/service/CloudflareCron.js.map +1 -0
- package/dist/spec/domain/service/CrossSchemaChecker.d.ts +34 -0
- package/dist/spec/domain/service/CrossSchemaChecker.d.ts.map +1 -0
- package/dist/spec/domain/service/CrossSchemaChecker.js +114 -0
- package/dist/spec/domain/service/CrossSchemaChecker.js.map +1 -0
- package/dist/spec/domain/service/EntryDataValidator.d.ts +56 -0
- package/dist/spec/domain/service/EntryDataValidator.d.ts.map +1 -0
- package/dist/spec/domain/service/EntryDataValidator.js +88 -0
- package/dist/spec/domain/service/EntryDataValidator.js.map +1 -0
- package/dist/spec/domain/service/JsonSchemaToZod.d.ts +29 -0
- package/dist/spec/domain/service/JsonSchemaToZod.d.ts.map +1 -0
- package/dist/spec/domain/service/JsonSchemaToZod.js +156 -0
- package/dist/spec/domain/service/JsonSchemaToZod.js.map +1 -0
- package/dist/spec/domain/service/LifecycleStateMachine.d.ts +75 -0
- package/dist/spec/domain/service/LifecycleStateMachine.d.ts.map +1 -0
- package/dist/spec/domain/service/LifecycleStateMachine.js +76 -0
- package/dist/spec/domain/service/LifecycleStateMachine.js.map +1 -0
- package/dist/spec/domain/service/LocaleCanonicalizer.d.ts +29 -0
- package/dist/spec/domain/service/LocaleCanonicalizer.d.ts.map +1 -0
- package/dist/spec/domain/service/LocaleCanonicalizer.js +96 -0
- package/dist/spec/domain/service/LocaleCanonicalizer.js.map +1 -0
- package/dist/spec/domain/service/ManifestFieldChecks.d.ts +60 -0
- package/dist/spec/domain/service/ManifestFieldChecks.d.ts.map +1 -0
- package/dist/spec/domain/service/ManifestFieldChecks.js +116 -0
- package/dist/spec/domain/service/ManifestFieldChecks.js.map +1 -0
- package/dist/spec/domain/service/ManifestGraphValidator.d.ts +15 -0
- package/dist/spec/domain/service/ManifestGraphValidator.d.ts.map +1 -0
- package/dist/spec/domain/service/ManifestGraphValidator.js +225 -0
- package/dist/spec/domain/service/ManifestGraphValidator.js.map +1 -0
- package/dist/spec/domain/service/ManifestLinker.d.ts +45 -0
- package/dist/spec/domain/service/ManifestLinker.d.ts.map +1 -0
- package/dist/spec/domain/service/ManifestLinker.js +92 -0
- package/dist/spec/domain/service/ManifestLinker.js.map +1 -0
- package/dist/spec/domain/service/ManifestLocaleTrimmer.d.ts +16 -0
- package/dist/spec/domain/service/ManifestLocaleTrimmer.d.ts.map +1 -0
- package/dist/spec/domain/service/ManifestLocaleTrimmer.js +76 -0
- package/dist/spec/domain/service/ManifestLocaleTrimmer.js.map +1 -0
- package/dist/spec/domain/service/ManifestParser.d.ts +49 -0
- package/dist/spec/domain/service/ManifestParser.d.ts.map +1 -0
- package/dist/spec/domain/service/ManifestParser.js +203 -0
- package/dist/spec/domain/service/ManifestParser.js.map +1 -0
- package/dist/spec/domain/service/ManifestPartition.d.ts +9 -0
- package/dist/spec/domain/service/ManifestPartition.d.ts.map +1 -0
- package/dist/spec/domain/service/ManifestPartition.js +19 -0
- package/dist/spec/domain/service/ManifestPartition.js.map +1 -0
- package/dist/spec/domain/service/ManifestPathDiagnoser.d.ts +33 -0
- package/dist/spec/domain/service/ManifestPathDiagnoser.d.ts.map +1 -0
- package/dist/spec/domain/service/ManifestPathDiagnoser.js +43 -0
- package/dist/spec/domain/service/ManifestPathDiagnoser.js.map +1 -0
- package/dist/spec/domain/service/ManifestSourceSpans.d.ts +10 -0
- package/dist/spec/domain/service/ManifestSourceSpans.d.ts.map +1 -0
- package/dist/spec/domain/service/ManifestSourceSpans.js +76 -0
- package/dist/spec/domain/service/ManifestSourceSpans.js.map +1 -0
- package/dist/spec/domain/service/McpToolNaming.d.ts +25 -0
- package/dist/spec/domain/service/McpToolNaming.d.ts.map +1 -0
- package/dist/spec/domain/service/McpToolNaming.js +50 -0
- package/dist/spec/domain/service/McpToolNaming.js.map +1 -0
- package/dist/spec/domain/service/PlanFingerprint.d.ts +4 -0
- package/dist/spec/domain/service/PlanFingerprint.d.ts.map +1 -0
- package/dist/spec/domain/service/PlanFingerprint.js +14 -0
- package/dist/spec/domain/service/PlanFingerprint.js.map +1 -0
- package/dist/spec/domain/service/ProcedureViewSpecChecks.d.ts +4 -0
- package/dist/spec/domain/service/ProcedureViewSpecChecks.d.ts.map +1 -0
- package/dist/spec/domain/service/ProcedureViewSpecChecks.js +211 -0
- package/dist/spec/domain/service/ProcedureViewSpecChecks.js.map +1 -0
- package/dist/spec/domain/service/SchemaAdminUiChecker.d.ts +42 -0
- package/dist/spec/domain/service/SchemaAdminUiChecker.d.ts.map +1 -0
- package/dist/spec/domain/service/SchemaAdminUiChecker.js +289 -0
- package/dist/spec/domain/service/SchemaAdminUiChecker.js.map +1 -0
- package/dist/spec/domain/service/SchemaIndexChecker.d.ts +33 -0
- package/dist/spec/domain/service/SchemaIndexChecker.d.ts.map +1 -0
- package/dist/spec/domain/service/SchemaIndexChecker.js +256 -0
- package/dist/spec/domain/service/SchemaIndexChecker.js.map +1 -0
- package/dist/spec/domain/service/SchemaSearchChecker.d.ts +11 -0
- package/dist/spec/domain/service/SchemaSearchChecker.d.ts.map +1 -0
- package/dist/spec/domain/service/SchemaSearchChecker.js +78 -0
- package/dist/spec/domain/service/SchemaSearchChecker.js.map +1 -0
- package/dist/spec/domain/service/SchemaSpecChecks.d.ts +31 -0
- package/dist/spec/domain/service/SchemaSpecChecks.d.ts.map +1 -0
- package/dist/spec/domain/service/SchemaSpecChecks.js +445 -0
- package/dist/spec/domain/service/SchemaSpecChecks.js.map +1 -0
- package/dist/spec/domain/service/SiteDefaultsValidator.d.ts +39 -0
- package/dist/spec/domain/service/SiteDefaultsValidator.d.ts.map +1 -0
- package/dist/spec/domain/service/SiteDefaultsValidator.js +194 -0
- package/dist/spec/domain/service/SiteDefaultsValidator.js.map +1 -0
- package/dist/spec/domain/service/SqlClassify.d.ts +19 -0
- package/dist/spec/domain/service/SqlClassify.d.ts.map +1 -0
- package/dist/spec/domain/service/SqlClassify.js +42 -0
- package/dist/spec/domain/service/SqlClassify.js.map +1 -0
- package/dist/spec/domain/service/SqlRefusal.d.ts +16 -0
- package/dist/spec/domain/service/SqlRefusal.d.ts.map +1 -0
- package/dist/spec/domain/service/SqlRefusal.js +20 -0
- package/dist/spec/domain/service/SqlRefusal.js.map +1 -0
- package/dist/spec/domain/service/SqlTypes.d.ts +40 -0
- package/dist/spec/domain/service/SqlTypes.d.ts.map +1 -0
- package/dist/spec/domain/service/SqlTypes.js +110 -0
- package/dist/spec/domain/service/SqlTypes.js.map +1 -0
- package/dist/spec/domain/service/StaffRoleHierarchy.d.ts +3 -0
- package/dist/spec/domain/service/StaffRoleHierarchy.d.ts.map +1 -0
- package/dist/spec/domain/service/StaffRoleHierarchy.js +19 -0
- package/dist/spec/domain/service/StaffRoleHierarchy.js.map +1 -0
- package/dist/spec/domain/service/TriggerGraphChecks.d.ts +16 -0
- package/dist/spec/domain/service/TriggerGraphChecks.d.ts.map +1 -0
- package/dist/spec/domain/service/TriggerGraphChecks.js +337 -0
- package/dist/spec/domain/service/TriggerGraphChecks.js.map +1 -0
- package/dist/spec/domain/service/TriggerSpecChecks.d.ts +4 -0
- package/dist/spec/domain/service/TriggerSpecChecks.d.ts.map +1 -0
- package/dist/spec/domain/service/TriggerSpecChecks.js +89 -0
- package/dist/spec/domain/service/TriggerSpecChecks.js.map +1 -0
- package/dist/spec/domain/service/ValidatedAdminUiProjection.d.ts +11 -0
- package/dist/spec/domain/service/ValidatedAdminUiProjection.d.ts.map +1 -0
- package/dist/spec/domain/service/ValidatedAdminUiProjection.js +26 -0
- package/dist/spec/domain/service/ValidatedAdminUiProjection.js.map +1 -0
- package/dist/spec/domain/service/ViewAdminUiChecker.d.ts +14 -0
- package/dist/spec/domain/service/ViewAdminUiChecker.d.ts.map +1 -0
- package/dist/spec/domain/service/ViewAdminUiChecker.js +53 -0
- package/dist/spec/domain/service/ViewAdminUiChecker.js.map +1 -0
- package/dist/spec/domain/service/index.d.ts +24 -0
- package/dist/spec/domain/service/index.d.ts.map +1 -0
- package/dist/spec/domain/service/index.js +24 -0
- package/dist/spec/domain/service/index.js.map +1 -0
- package/dist/spec/index.d.ts +10 -0
- package/dist/spec/index.d.ts.map +1 -0
- package/dist/spec/index.js +12 -0
- package/dist/spec/index.js.map +1 -0
- package/dist/spec/infrastructure/cli/parseArgsError.d.ts +16 -0
- package/dist/spec/infrastructure/cli/parseArgsError.d.ts.map +1 -0
- package/dist/spec/infrastructure/cli/parseArgsError.js +34 -0
- package/dist/spec/infrastructure/cli/parseArgsError.js.map +1 -0
- package/dist/spec/infrastructure/index.d.ts +2 -0
- package/dist/spec/infrastructure/index.d.ts.map +1 -0
- package/dist/spec/infrastructure/index.js +2 -0
- package/dist/spec/infrastructure/index.js.map +1 -0
- package/dist/spec/infrastructure/sql/PgQueryParser.d.ts +18 -0
- package/dist/spec/infrastructure/sql/PgQueryParser.d.ts.map +1 -0
- package/dist/spec/infrastructure/sql/PgQueryParser.js +17 -0
- package/dist/spec/infrastructure/sql/PgQueryParser.js.map +1 -0
- package/dist/spec/infrastructure/sql/compilePlan.d.ts +37 -0
- package/dist/spec/infrastructure/sql/compilePlan.d.ts.map +1 -0
- package/dist/spec/infrastructure/sql/compilePlan.js +282 -0
- package/dist/spec/infrastructure/sql/compilePlan.js.map +1 -0
- package/dist/spec/infrastructure/sql/compileSql.d.ts +35 -0
- package/dist/spec/infrastructure/sql/compileSql.d.ts.map +1 -0
- package/dist/spec/infrastructure/sql/compileSql.js +92 -0
- package/dist/spec/infrastructure/sql/compileSql.js.map +1 -0
- package/dist/spec/infrastructure/sql/frontEnd.d.ts +8 -0
- package/dist/spec/infrastructure/sql/frontEnd.d.ts.map +1 -0
- package/dist/spec/infrastructure/sql/frontEnd.js +100 -0
- package/dist/spec/infrastructure/sql/frontEnd.js.map +1 -0
- package/dist/spec/infrastructure/sql/index.d.ts +4 -0
- package/dist/spec/infrastructure/sql/index.d.ts.map +1 -0
- package/dist/spec/infrastructure/sql/index.js +4 -0
- package/dist/spec/infrastructure/sql/index.js.map +1 -0
- package/dist/spec/kernel/diagnostic.d.ts +137 -0
- package/dist/spec/kernel/diagnostic.d.ts.map +1 -0
- package/dist/spec/kernel/diagnostic.js +296 -0
- package/dist/spec/kernel/diagnostic.js.map +1 -0
- package/dist/spec/kernel/index.d.ts +8 -0
- package/dist/spec/kernel/index.d.ts.map +1 -0
- package/dist/spec/kernel/index.js +8 -0
- package/dist/spec/kernel/index.js.map +1 -0
- package/dist/spec/usecase/EmitTypes.d.ts +22 -0
- package/dist/spec/usecase/EmitTypes.d.ts.map +1 -0
- package/dist/spec/usecase/EmitTypes.js +182 -0
- package/dist/spec/usecase/EmitTypes.js.map +1 -0
- package/dist/spec/usecase/ValidateManifestsUseCase.d.ts +8 -0
- package/dist/spec/usecase/ValidateManifestsUseCase.d.ts.map +1 -0
- package/dist/spec/usecase/ValidateManifestsUseCase.js +101 -0
- package/dist/spec/usecase/ValidateManifestsUseCase.js.map +1 -0
- package/dist/spec/usecase/dto/ValidateManifestsRequest.d.ts +27 -0
- package/dist/spec/usecase/dto/ValidateManifestsRequest.d.ts.map +1 -0
- package/dist/spec/usecase/dto/ValidateManifestsRequest.js +2 -0
- package/dist/spec/usecase/dto/ValidateManifestsRequest.js.map +1 -0
- package/dist/spec/usecase/dto/ValidateManifestsResponse.d.ts +14 -0
- package/dist/spec/usecase/dto/ValidateManifestsResponse.d.ts.map +1 -0
- package/dist/spec/usecase/dto/ValidateManifestsResponse.js +2 -0
- package/dist/spec/usecase/dto/ValidateManifestsResponse.js.map +1 -0
- package/dist/spec/usecase/dto/index.d.ts +3 -0
- package/dist/spec/usecase/dto/index.d.ts.map +1 -0
- package/dist/spec/usecase/dto/index.js +3 -0
- package/dist/spec/usecase/dto/index.js.map +1 -0
- package/dist/spec/usecase/index.d.ts +10 -0
- package/dist/spec/usecase/index.d.ts.map +1 -0
- package/dist/spec/usecase/index.js +10 -0
- package/dist/spec/usecase/index.js.map +1 -0
- package/dist/testing/cases/before-hook.d.ts +4 -0
- package/dist/testing/cases/before-hook.d.ts.map +1 -0
- package/dist/testing/cases/before-hook.js +71 -0
- package/dist/testing/cases/before-hook.js.map +1 -0
- package/dist/testing/cases/corpus.d.ts +12 -0
- package/dist/testing/cases/corpus.d.ts.map +1 -0
- package/dist/testing/cases/corpus.js +91 -0
- package/dist/testing/cases/corpus.js.map +1 -0
- package/dist/testing/cases/policy.d.ts +74 -0
- package/dist/testing/cases/policy.d.ts.map +1 -0
- package/dist/testing/cases/policy.js +142 -0
- package/dist/testing/cases/policy.js.map +1 -0
- package/dist/testing/cases/printer.d.ts +4 -0
- package/dist/testing/cases/printer.d.ts.map +1 -0
- package/dist/testing/cases/printer.js +32 -0
- package/dist/testing/cases/printer.js.map +1 -0
- package/dist/testing/cases/report-view.d.ts +5 -0
- package/dist/testing/cases/report-view.d.ts.map +1 -0
- package/dist/testing/cases/report-view.js +33 -0
- package/dist/testing/cases/report-view.js.map +1 -0
- package/dist/testing/cases/requisition.d.ts +4 -0
- package/dist/testing/cases/requisition.d.ts.map +1 -0
- package/dist/testing/cases/requisition.js +38 -0
- package/dist/testing/cases/requisition.js.map +1 -0
- package/dist/testing/cases/search-places.d.ts +4 -0
- package/dist/testing/cases/search-places.d.ts.map +1 -0
- package/dist/testing/cases/search-places.js +60 -0
- package/dist/testing/cases/search-places.js.map +1 -0
- package/dist/testing/cases/stock.d.ts +4 -0
- package/dist/testing/cases/stock.d.ts.map +1 -0
- package/dist/testing/cases/stock.js +35 -0
- package/dist/testing/cases/stock.js.map +1 -0
- package/dist/testing/cases/store.d.ts +4 -0
- package/dist/testing/cases/store.d.ts.map +1 -0
- package/dist/testing/cases/store.js +100 -0
- package/dist/testing/cases/store.js.map +1 -0
- package/dist/testing/harness.d.ts +94 -0
- package/dist/testing/harness.d.ts.map +1 -0
- package/dist/testing/harness.js +168 -0
- package/dist/testing/harness.js.map +1 -0
- package/dist/testing/index.d.ts +37 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +43 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/testing/report.d.ts +15 -0
- package/dist/testing/report.d.ts.map +1 -0
- package/dist/testing/report.js +22 -0
- package/dist/testing/report.js.map +1 -0
- package/dist/web/createRestSurface.d.ts +7 -0
- package/dist/web/createRestSurface.d.ts.map +1 -0
- package/dist/web/createRestSurface.js +39 -0
- package/dist/web/createRestSurface.js.map +1 -0
- package/dist/web/index.d.ts +2 -0
- package/dist/web/index.d.ts.map +1 -0
- package/dist/web/index.js +2 -0
- package/dist/web/index.js.map +1 -0
- package/docs/adr/0008-structured-diagnostic-shape.md +2 -2
- package/docs/adr/0011-adapter-port-spec.md +2 -2
- package/docs/adr/0014-auth-better-auth-and-multi-tenant-mcp.md +21 -2
- package/docs/adr/0019-sealed-manifest-runtime-pipeline.md +5 -1
- package/docs/adr/0021-retire-starter-scaffolding.md +1 -1
- package/docs/adr/0022-caller-observed-version-occ.md +1 -1
- package/docs/adr/0024-manifest-native-schema-tables.md +2 -2
- package/docs/adr/0026-progressive-generate.md +36 -0
- package/docs/adr/0027-scheduled-procedure-triggers.md +31 -0
- package/docs/adr/0028-schema-ttl-expiry.md +33 -0
- package/docs/adr/0029-mcp-apps-interaction-contracts.md +324 -0
- package/docs/adr/0030-store.md +40 -0
- package/docs/adr/0031-host-cloud-core-contract.md +25 -0
- package/docs/adr/0032-store-centric-core-and-service-contract.md +361 -0
- package/docs/adr/0033-storage-converges-to-the-plan.md +92 -0
- package/docs/adr/0034-store-is-authored-as-sql.md +192 -0
- package/docs/adr/0035-sql-dialects.md +154 -0
- package/docs/adr/0036-host-and-dialect.md +65 -0
- package/docs/adr/0037-postgresql-is-the-reference-dialect.md +124 -0
- package/docs/adr/0038-bun-native-host.md +63 -0
- package/docs/adr/README.md +26 -8
- package/docs/adr/adr-lite-861-admin-webmcp.md +6 -0
- package/docs/adr/adr-lite-909-admin-ui-kit.md +1 -1
- package/docs/examples/README.md +16 -18
- package/docs/examples/commerce-inventory.md +481 -0
- package/docs/examples/commerce.md +254 -0
- package/docs/examples/guarded-api.md +238 -0
- package/docs/examples/intake-hooks.md +237 -0
- package/docs/examples/intake.md +127 -0
- package/docs/examples/legal-documents.md +218 -0
- package/docs/examples/procurement.md +215 -0
- package/docs/examples/publication.md +211 -0
- package/docs/examples/reference-service/.dev.vars.example +4 -0
- package/docs/examples/reference-service/.mantle/generated/mantle.ts +174 -0
- package/docs/examples/reference-service/.mantle/generated/plan.json +1936 -0
- package/docs/examples/reference-service/README.md +33 -0
- package/docs/examples/reference-service/manifests/catalog.yaml +103 -0
- package/docs/examples/reference-service/manifests/orders.yaml +120 -0
- package/docs/examples/reference-service/mantle.config.json +1 -0
- package/docs/examples/reference-service/package.json +27 -0
- package/docs/examples/reference-service/smoke.mjs +156 -0
- package/docs/examples/reference-service/src/handlers.ts +36 -0
- package/docs/examples/reference-service/src/index.ts +33 -0
- package/docs/examples/reference-service/src/service.ts +78 -0
- package/docs/examples/{host-minimal-worker → reference-service}/tsconfig.json +7 -2
- package/docs/examples/reference-service/wrangler.jsonc +26 -0
- package/docs/examples/reservation.md +142 -0
- package/docs/handbook/cloudflare/authentication.md +96 -299
- package/docs/handbook/cloudflare/chatgpt-sites.md +104 -15
- package/docs/handbook/cloudflare/deploy-and-operate.md +77 -71
- package/docs/handbook/cloudflare/media-r2.md +64 -187
- package/docs/handbook/cloudflare/service-entry.md +138 -0
- package/docs/handbook/concepts/authorization.md +104 -94
- package/docs/handbook/concepts/four-atoms.md +68 -144
- package/docs/handbook/concepts/lifecycle-and-locales.md +62 -114
- package/docs/handbook/concepts/mcp-and-agents.md +112 -117
- package/docs/handbook/concepts/procedures-and-triggers.md +126 -181
- package/docs/handbook/concepts/runtime-and-adapters.md +177 -156
- package/docs/handbook/concepts/views.md +97 -173
- package/docs/handbook/examples/hub.md +17 -6
- package/docs/handbook/guides/admin-ui.md +101 -96
- package/docs/handbook/guides/agent-setup.md +56 -71
- package/docs/handbook/guides/typed-queries.md +105 -111
- package/docs/handbook/navigation.json +8 -32
- package/docs/handbook/reference/authorization.md +52 -271
- package/docs/handbook/reference/diagnostics.md +69 -173
- package/docs/handbook/reference/features.md +48 -50
- package/docs/handbook/reference/manifest.md +56 -116
- package/docs/handbook/reference/procedure.md +92 -229
- package/docs/handbook/reference/schema.md +156 -215
- package/docs/handbook/reference/site-config.md +58 -211
- package/docs/handbook/reference/surface.md +69 -181
- package/docs/handbook/reference/trigger.md +73 -162
- package/docs/handbook/reference/view.md +140 -241
- package/docs/handbook/releases/index.md +58 -22
- package/docs/handbook/start/overview.md +59 -48
- package/docs/handbook/start/project-and-cli.md +127 -116
- package/docs/handbook/start/quickstart-worker.md +102 -151
- package/docs/skills/develop/SKILL.md +114 -232
- package/docs/skills/develop/mcp-app.md +79 -0
- package/docs/skills/integrate/SKILL.md +96 -0
- package/docs/skills/media-gc/SKILL.md +21 -10
- package/docs/skills/provision/SKILL.md +68 -162
- package/docs/skills/update/SKILL.md +33 -34
- package/docs/upgrade-0.1-to-0.2.md +211 -0
- package/package.json +87 -105
- 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/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/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/agent-prompts.md +0 -102
- 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/meta/_journal.json +0 -1
- 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 -9
- package/docs/examples/host-chatgpt-sites/src/chatgpt-auth.ts +0 -63
- 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/wrangler.jsonc +0 -22
- package/docs/handbook/chatgpt-sites/equipment-checkout.md +0 -231
- package/docs/handbook/chatgpt-sites/host-reference.md +0 -113
- package/docs/handbook/chatgpt-sites/index.md +0 -123
- package/docs/handbook/cloudflare/bindings.md +0 -298
- package/docs/handbook/cloudflare/conventional-worker.md +0 -162
- 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 -50
- 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/README.md +0 -125
- package/skills/develop/SKILL.md +0 -250
- package/skills/install/SKILL.md +0 -149
- 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
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lifecycle-agnostic state-transition error. Thrown by `mantle-runtime`'s
|
|
3
|
+
* dispatcher / entry-writer when a request would violate the transition
|
|
4
|
+
* table; spec defines the type, runtime is the only thrower.
|
|
5
|
+
*/
|
|
6
|
+
export class IllegalTransitionError extends Error {
|
|
7
|
+
from;
|
|
8
|
+
to;
|
|
9
|
+
constructor(from, to) {
|
|
10
|
+
super(`illegal state transition: ${from} → ${to}`);
|
|
11
|
+
this.from = from;
|
|
12
|
+
this.to = to;
|
|
13
|
+
this.name = "IllegalTransitionError";
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=Entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Entry.js","sourceRoot":"","sources":["../../../../src/spec/domain/model/Entry.ts"],"names":[],"mappings":"AAoBA;;;;GAIG;AACH,MAAM,OAAO,sBAAuB,SAAQ,KAAK;IACnB;IAAoC;IAAhE,YAA4B,IAAkB,EAAkB,EAAgB;QAC9E,KAAK,CAAC,6BAA6B,IAAI,MAAM,EAAE,EAAE,CAAC,CAAC;QADzB,SAAI,GAAJ,IAAI,CAAc;QAAkB,OAAE,GAAF,EAAE,CAAc;QAE9E,IAAI,CAAC,IAAI,GAAG,wBAAwB,CAAC;IACvC,CAAC;CACF"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Locale shape constants + the typed parse error.
|
|
3
|
+
*
|
|
4
|
+
* Two forms in play:
|
|
5
|
+
*
|
|
6
|
+
* - **Canonical** (Mantle v0.1 BCP 47 subset): language lowercase,
|
|
7
|
+
* region uppercase — e.g. `zh-TW`, `en-US`, `pt-BR`. Used in
|
|
8
|
+
* storage (entries.locale, KV keys) and HTML metadata
|
|
9
|
+
* (`<html lang>`, `<link hreflang>`, OG locale).
|
|
10
|
+
*
|
|
11
|
+
* - **URL**: always lowercase — e.g. `zh-tw`. Used in public URL
|
|
12
|
+
* paths. Lowercase URLs are more forgiving when users hand-type,
|
|
13
|
+
* get auto-lowercased by chat clients / CDNs, etc.
|
|
14
|
+
*
|
|
15
|
+
* The conversion functions live in `domain/service/LocaleCanonicalizer`;
|
|
16
|
+
* this file holds the pure shape (regex constants + error class) so
|
|
17
|
+
* model-layer types can reference them without depending on services.
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* URL-form regex: lowercase Mantle locale (`xx` or `xx-yy`). Matches
|
|
21
|
+
* what a public-content router should accept verbatim — strict
|
|
22
|
+
* canonical URL form, no mixed case. Consumer routers can plug this
|
|
23
|
+
* into framework route patterns directly (e.g.
|
|
24
|
+
* Hono's `/:locale{${URL_LOCALE.source}}/`).
|
|
25
|
+
*/
|
|
26
|
+
export declare const URL_LOCALE: RegExp;
|
|
27
|
+
export declare class InvalidLocaleError extends Error {
|
|
28
|
+
constructor(value: string);
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=Locale.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Locale.d.ts","sourceRoot":"","sources":["../../../../src/spec/domain/model/Locale.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,QAA6B,CAAC;AAErD,qBAAa,kBAAmB,SAAQ,KAAK;gBAC/B,KAAK,EAAE,MAAM;CAI1B"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Locale shape constants + the typed parse error.
|
|
3
|
+
*
|
|
4
|
+
* Two forms in play:
|
|
5
|
+
*
|
|
6
|
+
* - **Canonical** (Mantle v0.1 BCP 47 subset): language lowercase,
|
|
7
|
+
* region uppercase — e.g. `zh-TW`, `en-US`, `pt-BR`. Used in
|
|
8
|
+
* storage (entries.locale, KV keys) and HTML metadata
|
|
9
|
+
* (`<html lang>`, `<link hreflang>`, OG locale).
|
|
10
|
+
*
|
|
11
|
+
* - **URL**: always lowercase — e.g. `zh-tw`. Used in public URL
|
|
12
|
+
* paths. Lowercase URLs are more forgiving when users hand-type,
|
|
13
|
+
* get auto-lowercased by chat clients / CDNs, etc.
|
|
14
|
+
*
|
|
15
|
+
* The conversion functions live in `domain/service/LocaleCanonicalizer`;
|
|
16
|
+
* this file holds the pure shape (regex constants + error class) so
|
|
17
|
+
* model-layer types can reference them without depending on services.
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* URL-form regex: lowercase Mantle locale (`xx` or `xx-yy`). Matches
|
|
21
|
+
* what a public-content router should accept verbatim — strict
|
|
22
|
+
* canonical URL form, no mixed case. Consumer routers can plug this
|
|
23
|
+
* into framework route patterns directly (e.g.
|
|
24
|
+
* Hono's `/:locale{${URL_LOCALE.source}}/`).
|
|
25
|
+
*/
|
|
26
|
+
export const URL_LOCALE = /^[a-z]{2}(?:-[a-z]{2})?$/;
|
|
27
|
+
export class InvalidLocaleError extends Error {
|
|
28
|
+
constructor(value) {
|
|
29
|
+
super(`invalid locale: ${value}`);
|
|
30
|
+
this.name = "InvalidLocaleError";
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=Locale.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Locale.js","sourceRoot":"","sources":["../../../../src/spec/domain/model/Locale.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,0BAA0B,CAAC;AAErD,MAAM,OAAO,kBAAmB,SAAQ,KAAK;IAC3C,YAAY,KAAa;QACvB,KAAK,CAAC,mBAAmB,KAAK,EAAE,CAAC,CAAC;QAClC,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;IACnC,CAAC;CACF"}
|
|
@@ -0,0 +1,452 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* K8s-style manifest envelope, scoped to the cms group of the mantle universe.
|
|
3
|
+
*
|
|
4
|
+
* apiVersion: cms.mantle.aotter.net/v2
|
|
5
|
+
* kind: <Kind>
|
|
6
|
+
* metadata: { name }
|
|
7
|
+
* spec: { ... kind-specific ... }
|
|
8
|
+
*
|
|
9
|
+
* Sibling group `analytics.mantle.aotter.net/v1` lives in the parallel mantle (OLAP)
|
|
10
|
+
* project and is parsed there — the two systems share lineage and mantle.ai
|
|
11
|
+
* domain but not parsers.
|
|
12
|
+
*
|
|
13
|
+
* The parser rejects keys and enum values outside this shipped grammar.
|
|
14
|
+
* Future syntax is added only with its implementation.
|
|
15
|
+
*/
|
|
16
|
+
export declare const API_VERSION: "cms.mantle.aotter.net/v2";
|
|
17
|
+
export type ApiVersion = typeof API_VERSION;
|
|
18
|
+
/** Media-shaped `x-mcp-hint` values — the subset marking a field as
|
|
19
|
+
* holding a media asset URL. */
|
|
20
|
+
export type MediaMcpHint = "media" | "media-image" | "media-video" | "media-file";
|
|
21
|
+
export declare function isMediaMcpHint(value: unknown): value is MediaMcpHint;
|
|
22
|
+
/** Loose JSON Schema shape — we don't constrain it at the type level.
|
|
23
|
+
* Manifest authoring stays JSON Schema; runtime validators translate
|
|
24
|
+
* to zod (Workers-CSP-safe). Cross-collection refs use the custom
|
|
25
|
+
* keyword `x-mantle-ref: <collectionName>` on string-typed fields holding
|
|
26
|
+
* foreign-key IDs; `x-mcp-hint` is a widget-intent hint. The grammar
|
|
27
|
+
* accepts strings; the conventional values agents and admin
|
|
28
|
+
* widgets understand are `markdown`, `html`, `richtext`, `code`,
|
|
29
|
+
* `media`, `media-image`, `media-video`, `media-file`, `money-minor`,
|
|
30
|
+
* `timestamp-ms`, and `idempotency-key`. */
|
|
31
|
+
export type JsonSchema = {
|
|
32
|
+
readonly $defs?: Readonly<Record<string, JsonSchema>>;
|
|
33
|
+
readonly $ref?: string;
|
|
34
|
+
readonly oneOf?: readonly JsonSchema[];
|
|
35
|
+
readonly const?: unknown;
|
|
36
|
+
readonly type?: string | readonly string[];
|
|
37
|
+
readonly properties?: Readonly<Record<string, JsonSchema>>;
|
|
38
|
+
readonly required?: readonly string[];
|
|
39
|
+
readonly items?: JsonSchema;
|
|
40
|
+
readonly enum?: readonly unknown[];
|
|
41
|
+
readonly format?: string;
|
|
42
|
+
readonly pattern?: string;
|
|
43
|
+
readonly minLength?: number;
|
|
44
|
+
readonly maxLength?: number;
|
|
45
|
+
readonly minimum?: number;
|
|
46
|
+
readonly maximum?: number;
|
|
47
|
+
readonly minItems?: number;
|
|
48
|
+
readonly maxItems?: number;
|
|
49
|
+
readonly nullable?: boolean;
|
|
50
|
+
/** Standard JSON Schema annotation. At the root of a Schema manifest,
|
|
51
|
+
* Mantle keeps generic Admin and Staff MCP authoring read-only while
|
|
52
|
+
* allowing trusted Procedure handlers to maintain the projection. */
|
|
53
|
+
readonly readOnly?: boolean;
|
|
54
|
+
readonly default?: unknown;
|
|
55
|
+
readonly additionalProperties?: boolean | JsonSchema;
|
|
56
|
+
/** Standard JSON Schema keyword: help text for this property, shown
|
|
57
|
+
* under the admin-UI form field (`entry-edit-view.tsx`) and the
|
|
58
|
+
* row-operation dialog's bound-field label fallback
|
|
59
|
+
* (`row-operations.tsx`). Accepts a plain string OR the same
|
|
60
|
+
* `LocalizedText` locale-map shape used by `Schema.spec.description`
|
|
61
|
+
* (#453, mirroring the property `title` keyword's #443 shape) —
|
|
62
|
+
* admin-ui resolves it client-side with `resolveLocalizedText`. `en`
|
|
63
|
+
* can stay the dev/OpenAPI-doc string while `zh-TW` etc. carry
|
|
64
|
+
* operator-readable copy. Optional; absent renders no help text
|
|
65
|
+
* (unchanged v0.1 behavior). */
|
|
66
|
+
readonly description?: LocalizedText;
|
|
67
|
+
/** Standard JSON Schema keyword (#443): a human-facing label for this
|
|
68
|
+
* property, for admin-UI form labels / list column headers /
|
|
69
|
+
* operation form labels. Accepts a plain string OR the same
|
|
70
|
+
* `LocalizedText` locale-map shape used by `Schema.spec.title` —
|
|
71
|
+
* admin-ui resolves it client-side with `resolveLocalizedText`, same
|
|
72
|
+
* as any other `LocalizedText` field. Optional; absent means the
|
|
73
|
+
* consumer humanizes the property name instead (unchanged v0.1
|
|
74
|
+
* behavior). */
|
|
75
|
+
readonly title?: LocalizedText;
|
|
76
|
+
/** Custom: cross-collection reference. The string form names the target
|
|
77
|
+
* Schema and means the value is that entry's `id`; the object form also
|
|
78
|
+
* names the target field (ADR-0029). */
|
|
79
|
+
readonly "x-mantle-ref"?: string | MantleRefTarget;
|
|
80
|
+
/** Custom: hint for MCP tool / agent prompt context. */
|
|
81
|
+
readonly "x-mcp-hint"?: string;
|
|
82
|
+
readonly [key: string]: unknown;
|
|
83
|
+
};
|
|
84
|
+
export declare const MANTLE_REF_KEYWORD: "x-mantle-ref";
|
|
85
|
+
/**
|
|
86
|
+
* A property's string options: its `enum`, or a `oneOf` whose every branch is a string `const` (the standard way to give each
|
|
87
|
+
* option a `title`). Undefined when the property is neither.
|
|
88
|
+
*/
|
|
89
|
+
export declare function enumOptions(property: JsonSchema | undefined): {
|
|
90
|
+
readonly value: string;
|
|
91
|
+
readonly title?: LocalizedText;
|
|
92
|
+
}[] | undefined;
|
|
93
|
+
/** Object form of `x-mantle-ref`: which Schema the value points at, and
|
|
94
|
+
* which of its fields holds the value (`id` or a single-field unique
|
|
95
|
+
* index). */
|
|
96
|
+
export interface MantleRefTarget {
|
|
97
|
+
readonly schema: string;
|
|
98
|
+
readonly field: string;
|
|
99
|
+
}
|
|
100
|
+
/** Normalize either `x-mantle-ref` form, or `null` when the property carries
|
|
101
|
+
* none (or a malformed value, which graph validation reports). */
|
|
102
|
+
export declare function resolveMantleRef(property: unknown): MantleRefTarget | null;
|
|
103
|
+
export declare const MCP_HINT_KEYWORD: "x-mcp-hint";
|
|
104
|
+
/** A 0.1.x Schema-property keyword; 0.2.0 refuses it (Schema.spec.scope and a Procedure's SQL replace it). */
|
|
105
|
+
export declare const MANTLE_BIND_KEYWORD: "x-mantle-bind";
|
|
106
|
+
/**
|
|
107
|
+
* A human-facing label/blurb that is either a plain string (single
|
|
108
|
+
* language, the v0.1 shape) or a map of locale code → string (e.g.
|
|
109
|
+
* `{ en: "Products", "zh-TW": "商品" }`) so one manifest can serve a
|
|
110
|
+
* multi-language admin UI. `Schema.spec.title`/`.description`,
|
|
111
|
+
* `Procedure.spec.title`/`.description`, and `View.spec.title`/`.description`
|
|
112
|
+
* use this shape; consumers resolve it to a single displayable string
|
|
113
|
+
* with `resolveLocalizedText`.
|
|
114
|
+
*/
|
|
115
|
+
export type LocalizedText = string | Readonly<Record<string, string>>;
|
|
116
|
+
/**
|
|
117
|
+
* Resolve a `LocalizedText` value to a single displayable string for
|
|
118
|
+
* `preferred` (typically the viewer's chosen admin language), falling
|
|
119
|
+
* back to `canonical` (the site's canonical locale) and finally to the
|
|
120
|
+
* record's first own-enumerable entry (insertion order). A plain
|
|
121
|
+
* string is returned as-is — even an empty string, since only
|
|
122
|
+
* `null`/`undefined` map to `null` here; shape validation (rejecting
|
|
123
|
+
* empty strings) is the parser's job, not this resolver's. `null` /
|
|
124
|
+
* `undefined` input (the field was never set) resolves to `null`, and
|
|
125
|
+
* an empty record (structurally invalid, but resolved defensively)
|
|
126
|
+
* also resolves to `null` since there is nothing to fall back to.
|
|
127
|
+
*/
|
|
128
|
+
export declare function resolveLocalizedText(value: LocalizedText | null | undefined, preferred: string, canonical?: string | null): string | null;
|
|
129
|
+
/**
|
|
130
|
+
* Four declarative atoms. Each maps 1-to-1 to a Postgres primitive — see
|
|
131
|
+
* ADR-0001 / `docs/handbook/concepts/four-atoms.md` for the mapping. `Procedure`
|
|
132
|
+
* is the only kind with a code seam (handler ref to consumer's TS file).
|
|
133
|
+
*/
|
|
134
|
+
export type ManifestKind = "Schema" | "View" | "Procedure" | "Trigger";
|
|
135
|
+
export interface ManifestMetadata {
|
|
136
|
+
/** Resource identifier, e.g. `posts`. Required. Globally unique within
|
|
137
|
+
* `(kind, deployment)`. */
|
|
138
|
+
readonly name: string;
|
|
139
|
+
}
|
|
140
|
+
interface ManifestEnvelope<K extends ManifestKind, S> {
|
|
141
|
+
readonly apiVersion: ApiVersion;
|
|
142
|
+
readonly kind: K;
|
|
143
|
+
readonly metadata: ManifestMetadata;
|
|
144
|
+
readonly spec: S;
|
|
145
|
+
}
|
|
146
|
+
export type SchemaManifest = ManifestEnvelope<"Schema", SchemaManifestSpec>;
|
|
147
|
+
export interface SchemaManifestSpec {
|
|
148
|
+
/** Human-readable label for the admin UI. Required at v0.1.x —
|
|
149
|
+
* the SPA renders this in the sidebar and elsewhere instead of
|
|
150
|
+
* the bare `metadata.name`. Either a plain string, or a
|
|
151
|
+
* `LocalizedText` map of locale → string (e.g.
|
|
152
|
+
* `{ en: "Products", "zh-TW": "商品" }`) so one manifest can serve a
|
|
153
|
+
* multi-language admin UI — the SPA resolves it client-side via
|
|
154
|
+
* `resolveLocalizedText`. AI authors MUST populate it in the user's
|
|
155
|
+
* primary language (the install-time chosen locale) at minimum,
|
|
156
|
+
* since end-admin users may not even read English. See ADR-0010 and
|
|
157
|
+
* the authoring contract § Schema authoring. */
|
|
158
|
+
readonly title: LocalizedText;
|
|
159
|
+
/** Same string-or-locale-map shape as `title`. Optional. */
|
|
160
|
+
readonly description?: LocalizedText;
|
|
161
|
+
/** JSON Schema Draft 2020-12 describing per-entry data. May carry the
|
|
162
|
+
* property extensions `x-mantle-ref` and `x-mcp-hint`. */
|
|
163
|
+
readonly schema: JsonSchema;
|
|
164
|
+
/** Admin-only presentation. Closed Schema roots: `fields`, `list`,
|
|
165
|
+
* `nav`. Optional. */
|
|
166
|
+
readonly uiSchema?: Record<string, unknown>;
|
|
167
|
+
/** Boolean SQL expressions over this Schema's own columns, enforced by triggers on every insert and update
|
|
168
|
+
* (ADR-0034). No subqueries. Example: `stock >= 0`. */
|
|
169
|
+
readonly checks?: readonly string[];
|
|
170
|
+
/** Composite unique-index declarations, e.g. `[[slug, locale]]`. */
|
|
171
|
+
readonly uniqueIndexes?: ReadonlyArray<ReadonlyArray<string>>;
|
|
172
|
+
/** Ordered composite non-unique indexes over top-level scalar fields. */
|
|
173
|
+
readonly indexes?: ReadonlyArray<ReadonlyArray<string>>;
|
|
174
|
+
/** Top-level string fields included in Admin/MCP free-text search.
|
|
175
|
+
* Entry id is always searched; absent or empty means id-only. This is
|
|
176
|
+
* intentionally independent from `indexes`: substring LIKE queries do
|
|
177
|
+
* not benefit from ordinary B-tree indexes. */
|
|
178
|
+
readonly searchableFields?: readonly string[];
|
|
179
|
+
/** Whether entries in this collection carry a per-row locale. Default
|
|
180
|
+
* `false`. When `true`, `data.locale` MUST be present and ∈ site
|
|
181
|
+
* `locales`; when `false`, `data.locale` MUST be absent. See
|
|
182
|
+
* ADR-0010. Mutually constrained with `translates`. */
|
|
183
|
+
readonly localized?: boolean;
|
|
184
|
+
/** Parent/child translation pattern: this Schema is the translatable
|
|
185
|
+
* companion to a non-localized parent Schema, joined by a shared
|
|
186
|
+
* field. Requires explicit `localized: true` and at least one
|
|
187
|
+
* locale-specific field besides `locale` and the join field. See ADR-0010. */
|
|
188
|
+
readonly translates?: TranslatesBinding;
|
|
189
|
+
/** Content-workflow mode. Default `'publishing'` (draft → published →
|
|
190
|
+
* archived, no approval queue). `'operational'` marks record
|
|
191
|
+
* Schemas (orders, inventory snapshots, audit rows) that are written
|
|
192
|
+
* by Procedures rather than authored: entries are live on creation,
|
|
193
|
+
* editable in place, and have no publish/unpublish transitions — the
|
|
194
|
+
* admin hides the content-lifecycle chrome for them. */
|
|
195
|
+
readonly lifecycle?: LifecycleMode;
|
|
196
|
+
/** Logical expiry policy. Physical removal requires an explicit sweep. */
|
|
197
|
+
readonly ttl?: {
|
|
198
|
+
readonly field: string;
|
|
199
|
+
readonly expireAfterSeconds: number;
|
|
200
|
+
};
|
|
201
|
+
/** Caller identity scope for Store operations: one field bound to `auth.uid()`.
|
|
202
|
+
* The field must be required and indexed first. */
|
|
203
|
+
readonly scope?: Readonly<Record<string, "auth.uid()">>;
|
|
204
|
+
}
|
|
205
|
+
export interface TranslatesBinding {
|
|
206
|
+
/** Name of the parent Schema this translation table joins to. Must
|
|
207
|
+
* resolve to a declared Schema; the parent itself MUST NOT be
|
|
208
|
+
* `localized: true` (it carries the non-translatable facts). */
|
|
209
|
+
readonly parent: string;
|
|
210
|
+
/** Field present in both parent's and this Schema's
|
|
211
|
+
* `spec.schema.properties` and used as the join key. Conventionally
|
|
212
|
+
* `slug` for content, but any stable identifier works. */
|
|
213
|
+
readonly on: string;
|
|
214
|
+
}
|
|
215
|
+
export type LifecycleMode = "publishing" | "operational";
|
|
216
|
+
export type ViewManifest = ManifestEnvelope<"View", ViewManifestSpec>;
|
|
217
|
+
export interface ViewCachePolicy {
|
|
218
|
+
/** Maximum shared-cache staleness for anonymous REST reads, in seconds. */
|
|
219
|
+
readonly sharedMaxAge: number;
|
|
220
|
+
}
|
|
221
|
+
export declare const VIEW_SURFACES: readonly ["public", "staff", "internal"];
|
|
222
|
+
export type ViewSurface = (typeof VIEW_SURFACES)[number];
|
|
223
|
+
export interface ViewManifestSpec {
|
|
224
|
+
/** Human-readable label for the admin UI's report sidebar / report
|
|
225
|
+
* page (#443). Same string-or-locale-map `LocalizedText` shape as
|
|
226
|
+
* `Schema.spec.title`. Optional — Views didn't carry a title before
|
|
227
|
+
* v0.1.x; when absent the admin UI falls back to a Title-Cased
|
|
228
|
+
* rendering of `metadata.name`, exactly as before this field
|
|
229
|
+
* existed. */
|
|
230
|
+
readonly title?: LocalizedText;
|
|
231
|
+
/** What the View answers, for agents and people choosing a query
|
|
232
|
+
* (ADR-0029). Projected into the View's MCP tool description; absent
|
|
233
|
+
* keeps the generated "Query <surface> View '<name>'." text. */
|
|
234
|
+
readonly description?: LocalizedText;
|
|
235
|
+
/** Admin's list for a `surface: staff` View: `uiSchema.list.columns`, and
|
|
236
|
+
* `searchFields` / `filterFields`, which Store compiles to `LIKE` and `=`
|
|
237
|
+
* conditions on the View's outputs for Admin's search box and filters
|
|
238
|
+
* (ADR-0032 decision 5). REST and MCP are unchanged. */
|
|
239
|
+
readonly uiSchema?: Record<string, unknown>;
|
|
240
|
+
/** One read-only `SELECT` over declared Schemas (ADR-0034). It reads the
|
|
241
|
+
* declared `input` as `input.<name>` and the caller as `auth.uid()` /
|
|
242
|
+
* `auth.role()`; the CLI compiles it to the plan's IR. */
|
|
243
|
+
readonly sql: string;
|
|
244
|
+
/** Adapter exposure policy.
|
|
245
|
+
* `"public"` auto-mounts at the public
|
|
246
|
+
* `GET /api/views/<name>` (v0.1 default; `requires` may still gate
|
|
247
|
+
* the call). When `"staff"` the View is
|
|
248
|
+
* NOT mounted on the public path — it mounts at
|
|
249
|
+
* `GET /admin/api/views/<name>` behind the staff gate and becomes
|
|
250
|
+
* the report-sidebar source. Guards data behind a staff session; use
|
|
251
|
+
* it for any View over sensitive rows. `"internal"` mounts on no
|
|
252
|
+
* adapter and is callable only through `runtime.store.as(ctx).view()`. */
|
|
253
|
+
readonly surface: ViewSurface;
|
|
254
|
+
/** Optional anonymous REST response-cache policy. Validation limits this
|
|
255
|
+
* to public Views that read no caller and no TTL or operational Schema. */
|
|
256
|
+
readonly cache?: ViewCachePolicy;
|
|
257
|
+
/** Auth gate. Identical shape to `ProcedureManifestSpec.requires.auth`.
|
|
258
|
+
* When absent the View is public — `ExecuteViewUseCase` skips the
|
|
259
|
+
* predicate check. When present, ALL predicates must hold; the
|
|
260
|
+
* runtime enforces with `evaluateAuthAll`. Closed predicate
|
|
261
|
+
* vocabulary: `ctx.user`, `ctx.staff`, `ctx.auth`, and
|
|
262
|
+
* `ctx.auth.scope`; an optional guard names one consumer Procedure. */
|
|
263
|
+
readonly requires?: AuthorizationRequirements;
|
|
264
|
+
/** Caller-supplied parameters, read in `sql` as `input.<name>`. MUST be
|
|
265
|
+
* `type: "object"` with declared `properties`. `limit` and `cursor` are
|
|
266
|
+
* reserved: the runtime owns them for pagination. */
|
|
267
|
+
readonly input?: JsonSchema;
|
|
268
|
+
}
|
|
269
|
+
/** Reserved query-string names on the View REST surface. A View `input` may
|
|
270
|
+
* not declare them (`VIEW_INPUT_RESERVED_NAME`). */
|
|
271
|
+
export declare const VIEW_INPUT_RESERVED: readonly ["limit", "cursor"];
|
|
272
|
+
export type ProcedureManifest = ManifestEnvelope<"Procedure", ProcedureManifestSpec>;
|
|
273
|
+
export interface ProcedureManifestSpec {
|
|
274
|
+
/** Human-readable label for the admin UI's staff-operations surface
|
|
275
|
+
* (#430). Same string-or-locale-map `LocalizedText` shape as
|
|
276
|
+
* `Schema.spec.title`. Optional — Procedures didn't carry a title
|
|
277
|
+
* before v0.1.x; when absent the admin UI falls back to a
|
|
278
|
+
* Title-Cased rendering of `metadata.name`. */
|
|
279
|
+
readonly title?: LocalizedText;
|
|
280
|
+
/** Same string-or-locale-map shape as `title`. Optional. Surfaced by
|
|
281
|
+
* `GET /admin/api/operations` as the operation's `description`
|
|
282
|
+
* field (replaces the pre-#430 hack of reading
|
|
283
|
+
* `spec.input.description`). */
|
|
284
|
+
readonly description?: LocalizedText;
|
|
285
|
+
/** Authorization via `requires.auth.all` plus one optional
|
|
286
|
+
* `requires.guard.procedure`; static predicates are closed to
|
|
287
|
+
* `ctx.user`, `ctx.staff`, `ctx.auth`, and `ctx.auth.scope`. */
|
|
288
|
+
readonly requires?: AuthorizationRequirements;
|
|
289
|
+
/** JSON Schema for the request body. */
|
|
290
|
+
readonly input: JsonSchema;
|
|
291
|
+
/** Admin-only field widget choices. Does not affect input validation
|
|
292
|
+
* or the MCP tool schema. */
|
|
293
|
+
readonly uiSchema?: Record<string, unknown>;
|
|
294
|
+
/** JSON Schema for the response body. */
|
|
295
|
+
readonly output: JsonSchema;
|
|
296
|
+
/** Handler binding: `{ ref }` (consumer supplies a handler map) or
|
|
297
|
+
* `{ sql }` (write statements, compiled to the plan's IR; ADR-0034). */
|
|
298
|
+
readonly handler: HandlerBinding;
|
|
299
|
+
/** MCP tool annotations the author declares because Core cannot infer
|
|
300
|
+
* them for a `ref` handler (#972). Emitted verbatim on the tool;
|
|
301
|
+
* An `x-mcp-hint: idempotency-key` input does not infer an
|
|
302
|
+
* `idempotentHint` annotation in 0.2. A `readOnlyHint: true` on a `sql`
|
|
303
|
+
* handler, which always writes, is rejected at validation. */
|
|
304
|
+
readonly mcp?: ProcedureMcpAnnotations;
|
|
305
|
+
/** The entity the handler mutates and whose version it locks
|
|
306
|
+
* (ADR-0029). Needed only for entity-bound interactions and automatic
|
|
307
|
+
* version binding. */
|
|
308
|
+
readonly target?: ProcedureTarget;
|
|
309
|
+
}
|
|
310
|
+
export interface ProcedureTarget {
|
|
311
|
+
/** Target Schema. */
|
|
312
|
+
readonly schema: string;
|
|
313
|
+
/** Required string input property carrying the target entry id. */
|
|
314
|
+
readonly id: string;
|
|
315
|
+
/** Number input property carrying the observed version, when locked. */
|
|
316
|
+
readonly version?: string;
|
|
317
|
+
}
|
|
318
|
+
export declare const PROCEDURE_TARGET_KEYS: readonly ["schema", "id", "version"];
|
|
319
|
+
export interface ProcedureMcpAnnotations {
|
|
320
|
+
readonly readOnlyHint?: boolean;
|
|
321
|
+
readonly destructiveHint?: boolean;
|
|
322
|
+
readonly openWorldHint?: boolean;
|
|
323
|
+
}
|
|
324
|
+
export declare const PROCEDURE_MCP_ANNOTATION_KEYS: readonly ["readOnlyHint", "destructiveHint", "openWorldHint"];
|
|
325
|
+
export type HandlerBinding = HandlerRefBinding | HandlerSqlBinding;
|
|
326
|
+
export interface HandlerRefBinding {
|
|
327
|
+
/** Opaque registration key (NOT a path). The consumer passes a matching
|
|
328
|
+
* key in the runtime/Worker `handlers` map. */
|
|
329
|
+
readonly ref: string;
|
|
330
|
+
}
|
|
331
|
+
/** One or more write statements (`INSERT`, `UPDATE`, `DELETE`), applied as
|
|
332
|
+
* one batch. Reads `input.<name>`, `auth.uid()`, `auth.role()`, `now()`. */
|
|
333
|
+
export interface HandlerSqlBinding {
|
|
334
|
+
readonly sql: string;
|
|
335
|
+
}
|
|
336
|
+
/** Closed predicate vocabulary. `ctx.user` and `ctx.auth` are bare
|
|
337
|
+
* strings; `ctx.staff` and `ctx.auth.scope` carry scalar data under
|
|
338
|
+
* literal object keys.
|
|
339
|
+
*/
|
|
340
|
+
export interface AuthorizationRequirements {
|
|
341
|
+
readonly auth?: {
|
|
342
|
+
readonly all: readonly AuthPredicate[];
|
|
343
|
+
};
|
|
344
|
+
/** Dynamic, consumer-owned authorization check. The named Procedure
|
|
345
|
+
* receives the target's validated input/params and the same
|
|
346
|
+
* HandlerContext before the target executes. */
|
|
347
|
+
readonly guard?: {
|
|
348
|
+
readonly procedure: string;
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
export type AuthPredicate = CtxUserPredicate | CtxStaffPredicate | CtxAuthPredicate | CtxAuthScopePredicate;
|
|
352
|
+
export type CtxUserPredicate = "ctx.user";
|
|
353
|
+
/** Requires any verified credential normalized into HandlerContext.auth. */
|
|
354
|
+
export type CtxAuthPredicate = "ctx.auth";
|
|
355
|
+
export interface CtxStaffPredicate {
|
|
356
|
+
readonly "ctx.staff": readonly StaffRole[];
|
|
357
|
+
}
|
|
358
|
+
/** Requires one opaque, consumer-owned scope. Repeat under `all` for
|
|
359
|
+
* multiple required scopes. */
|
|
360
|
+
export interface CtxAuthScopePredicate {
|
|
361
|
+
readonly "ctx.auth.scope": string;
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Staff role hierarchy. `users` is the base identity layer (runtime);
|
|
365
|
+
* `staff` is the privilege overlay (one row per privileged user). A
|
|
366
|
+
* user without a staff row is a regular site member with no admin
|
|
367
|
+
* access.
|
|
368
|
+
*
|
|
369
|
+
* owner — full control, manages staff, manages settings
|
|
370
|
+
* editor — publish, approve/reject, manage all entries
|
|
371
|
+
* contributor — create and edit drafts
|
|
372
|
+
*
|
|
373
|
+
* `StaffRole` lives in spec because the manifest grammar references
|
|
374
|
+
* it directly: `requires.auth.all: [{ "ctx.staff": [<role>, ...] }]`
|
|
375
|
+
* — the parser checks each role string is in `STAFF_ROLES` at boot.
|
|
376
|
+
* The `Staff` runtime row shape (with grantedBy / grantedAt) lives in
|
|
377
|
+
* `mantle-runtime`; only the closed enum is grammar.
|
|
378
|
+
*/
|
|
379
|
+
export declare const STAFF_ROLES: readonly ["owner", "editor", "contributor"];
|
|
380
|
+
export type StaffRole = (typeof STAFF_ROLES)[number];
|
|
381
|
+
export declare function isStaffRole(s: string): s is StaffRole;
|
|
382
|
+
export type TriggerManifest = ManifestEnvelope<"Trigger", TriggerManifestSpec>;
|
|
383
|
+
export interface TriggerManifestSpec {
|
|
384
|
+
readonly source: TriggerSource;
|
|
385
|
+
/** The Procedure invoked when this Trigger fires. */
|
|
386
|
+
readonly target: {
|
|
387
|
+
readonly procedure: string;
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
/** Supported Trigger sources. */
|
|
391
|
+
export type TriggerSource = HttpTriggerSource | LifecycleTriggerSource | McpTriggerSource | ScheduleTriggerSource;
|
|
392
|
+
/** Five-field POSIX cron expression in UTC (weekday 0 = Sunday). Registration remains host-owned. */
|
|
393
|
+
export interface ScheduleTriggerSource {
|
|
394
|
+
readonly kind: "schedule";
|
|
395
|
+
readonly cron: string;
|
|
396
|
+
readonly enabled?: boolean;
|
|
397
|
+
}
|
|
398
|
+
export interface HttpTriggerSource {
|
|
399
|
+
readonly kind: "http";
|
|
400
|
+
readonly method: HttpMethod;
|
|
401
|
+
/** OpenAPI `{param}` syntax. Path params auto-bind to identically-named
|
|
402
|
+
* fields on the target Procedure's `input`. No optional segments. */
|
|
403
|
+
readonly path: string;
|
|
404
|
+
}
|
|
405
|
+
/** Shipped v0.1 lifecycle hook vocabulary: before/after ×
|
|
406
|
+
* create/update/delete plus the publish boundary. New entries require an
|
|
407
|
+
* explicit grammar-revise round. */
|
|
408
|
+
export declare const LIFECYCLE_HOOKS: readonly ["before_create", "after_create", "before_update", "after_update", "before_delete", "after_delete", "before_publish", "after_publish"];
|
|
409
|
+
export type LifecycleHook = (typeof LIFECYCLE_HOOKS)[number];
|
|
410
|
+
export interface LifecycleTriggerSource {
|
|
411
|
+
readonly kind: "lifecycle";
|
|
412
|
+
/** Schema this Trigger watches (`Schema.metadata.name`). */
|
|
413
|
+
readonly schema: string;
|
|
414
|
+
/** Hooks bound by this Trigger. Non-empty. */
|
|
415
|
+
readonly on: readonly LifecycleHook[];
|
|
416
|
+
}
|
|
417
|
+
/** Surfaces an MCP-source Trigger can be bound to. `staff` ⇒
|
|
418
|
+
* `/mcp/staff` (bearer + role gate); `public` ⇒ `/mcp` (bearer only).
|
|
419
|
+
* The procedure's own `requires.auth` still gates the call —
|
|
420
|
+
* surface determines visibility in `tools/list`. */
|
|
421
|
+
export declare const MCP_TRIGGER_SURFACES: readonly ["staff", "public"];
|
|
422
|
+
export type McpTriggerSurface = (typeof MCP_TRIGGER_SURFACES)[number];
|
|
423
|
+
export interface McpTriggerSource {
|
|
424
|
+
readonly kind: "mcp";
|
|
425
|
+
/** Which MCP surface this Procedure is callable from. The
|
|
426
|
+
* Procedure's `requires.auth` continues to evaluate against the
|
|
427
|
+
* authenticated caller — surface only controls discovery. */
|
|
428
|
+
readonly surface: McpTriggerSurface;
|
|
429
|
+
}
|
|
430
|
+
/** v0.1 HTTP methods that may carry a body. GET is intentionally absent
|
|
431
|
+
* — read endpoints are Views, not Procedures. */
|
|
432
|
+
export type HttpMethod = "POST" | "PUT" | "PATCH" | "DELETE";
|
|
433
|
+
export type Manifest = SchemaManifest | ViewManifest | ProcedureManifest | TriggerManifest;
|
|
434
|
+
/** Storage-row metadata columns reserved across every Schema. Used by
|
|
435
|
+
* the View SQL compiler (to project them as native columns rather
|
|
436
|
+
* than `json_extract`) and by the type emitter (to surface them on
|
|
437
|
+
* every Entry interface). Adding a new reserved column is a grammar
|
|
438
|
+
* revise — touch this constant + every consumer. */
|
|
439
|
+
export declare const RESERVED_ENTRY_COLUMNS: readonly ["id", "status", "version", "createdAt", "updatedAt", "authorId"];
|
|
440
|
+
export type ReservedEntryColumn = (typeof RESERVED_ENTRY_COLUMNS)[number];
|
|
441
|
+
/**
|
|
442
|
+
* Reserved Procedure input wire names. `expectedVersion` is the observed
|
|
443
|
+
* native `entry.version` at read time (not version+1). First-party Admin/SDK
|
|
444
|
+
* bind and hide it; other callers supply it. Schema `spec.schema.properties`
|
|
445
|
+
* must not collide — validate is fail-closed (`INVALID_MANIFEST_ENVELOPE`).
|
|
446
|
+
* New reserved names need an ADR (ADR-0022).
|
|
447
|
+
*/
|
|
448
|
+
export declare const EXPECTED_VERSION_PROPERTY: "expectedVersion";
|
|
449
|
+
export declare const RESERVED_PROCEDURE_INPUT_NAMES: readonly ["expectedVersion"];
|
|
450
|
+
export type ReservedProcedureInputName = (typeof RESERVED_PROCEDURE_INPUT_NAMES)[number];
|
|
451
|
+
export {};
|
|
452
|
+
//# sourceMappingURL=ManifestGrammar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ManifestGrammar.d.ts","sourceRoot":"","sources":["../../../../src/spec/domain/model/ManifestGrammar.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,eAAO,MAAM,WAAW,EAAG,0BAAmC,CAAC;AAC/D,MAAM,MAAM,UAAU,GAAG,OAAO,WAAW,CAAC;AAE5C;iCACiC;AACjC,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,aAAa,GAAG,aAAa,GAAG,YAAY,CAAC;AAElF,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,YAAY,CAOpE;AAED;;;;;;;;6CAQ6C;AAC7C,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;IACtD,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,UAAU,EAAE,CAAC;IACvC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAAC;IAC3C,QAAQ,CAAC,UAAU,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;IAC3D,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,QAAQ,CAAC,KAAK,CAAC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