Skip to content

docs: document v2.0 manifest contract#370

Open
atilafassina wants to merge 1 commit into
manifest-axfrom
manifest-docs
Open

docs: document v2.0 manifest contract#370
atilafassina wants to merge 1 commit into
manifest-axfrom
manifest-docs

Conversation

@atilafassina
Copy link
Copy Markdown
Contributor

Stacked on #261. Documents the v2.0 plugin manifest contract introduced there.

Summary

  • New: docs/docs/plugins/manifest.md — full v2.0 manifest reference: resources (per-type permissions), kind / cli discovery descriptors, dependsOn field ordering, post-scaffold steps, optional metadata.
  • Updated: docs/docs/development/templates.md — covers the synced template manifest's v2.0 additions: computed origin field (with precedence rules), scaffolding descriptor (command + flags + never / must rules), postScaffold propagation.
  • Updated: docs/docs/plugins/custom-plugins.md — recommends the import manifest from "./manifest.json" + static manifest pattern that all core plugins use, with a JSON-side example.

No code changes — docs only. Stacked-PR base will flip to main once #261 lands.

Test plan

  • pnpm docs:build — Docusaurus production build passes, no broken links.
  • pnpm check:fix — Biome clean.
  • pnpm -r typecheck — clean across all packages (docs included).
  • Spot-check rendered output once preview is live.

This pull request and its description were written by Isaac.

Add docs/docs/plugins/manifest.md covering the v2.0 plugin manifest:
resources, kind/cli discovery descriptors, field dependencies, and
post-scaffold steps.

Update templates.md to cover the v2.0 template manifest: computed
`origin` field, `scaffolding` descriptor, and postScaffold propagation.

Update custom-plugins.md to recommend the manifest.json import pattern
matching the core plugins.

Co-authored-by: Isaac
Signed-off-by: Atila Fassina <atila@fassina.eu>
@atilafassina atilafassina marked this pull request as ready for review May 11, 2026 13:10
@atilafassina atilafassina requested a review from a team as a code owner May 11, 2026 13:10
@atilafassina atilafassina requested review from Copilot and pkosiec and removed request for a team May 11, 2026 13:10
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Documents the AppKit plugin manifest v2.0 contract and how it propagates into the synced template manifest used by databricks apps init, giving plugin authors a single reference for resources, discovery, and post-scaffold guidance.

Changes:

  • Added a new “Plugin manifest” reference page covering v2.0 fields, resource permissions, discovery descriptors, dependency ordering, and post-scaffold steps.
  • Updated the templates documentation to describe v2.0 synced-manifest additions (origin, scaffolding, postScaffold propagation).
  • Updated the custom plugins guide to recommend importing manifest.json and attaching it via static manifest (matching core plugin patterns).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
docs/docs/plugins/manifest.md New v2.0 plugin manifest contract reference (resources, discovery, dependencies, post-scaffold, optional metadata).
docs/docs/plugins/custom-plugins.md Updates basic example to use JSON-authored manifests imported into the plugin class.
docs/docs/development/templates.md Documents v2.0 additions to the synced template manifest (origin, scaffolding, and postScaffold propagation).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

The synced manifest is generated by `appkit plugin sync --write` from each plugin's `manifest.json` (see [Plugin manifest](../plugins/manifest.md) for the authoring contract). The on-disk shape carries a `version` field that the CLI uses to negotiate features:

- `"1.0"` / `"1.1"` — earlier shapes; still readable.
- `"2.0"` — current shape. Adds `scaffolding` (required) and the `origin` field on every resource field entry. JSON Schema published at `https://databricks.github.io/appkit/schemas/template-plugins.schema.json`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants