Skip to content

Plugins: manifest schema, in-repo registry package and plugins:check #3542

Open

Description

@integry

Goal

Define what a plugin is as data, and where official plugins live. This issue adds no database tables, no API and no runtime behaviour: only the manifest schema, the registry package, the check script and one example plugin. Later issues add installation state, contributions, the page, handlers and commands; the schema already reserves their sections so later issues only add behaviour.

Manifest

Each official plugin is a folder packages/plugins/<id>/ containing manifest.json (pure data, so the UI and API can show a plugin without loading its code), an optional README.md, optional skill bundle sources, and later optional handler code. The schema lives in @propr/shared (zod) with these fields:

  • manifestVersion (currently 1), id (lowercase slug, unique), name, description, version (semver), category (messaging, issue-tracking, observability, deployment, context, other), homepage, icon (file in the plugin folder).
  • permissions: list from a closed set defined in shared code (for example events.read, tasks.create, issues.create, pull_requests.read, pull_requests.comment). Declarative-only plugins usually need none.
  • connections: named credentials the plugin needs. Types: oauth (the extension OAuth sign-in, with the same three client registration methods), token (administrator pastes a secret), signing_secret (shared secret for inbound webhooks). Each has a label and help text with a link to where the credential is obtained.
  • settings: a JSON-schema subset (string, number, boolean, enum, string list, repository map) with labels, help, defaults and required.
  • outboundHosts: hostnames the plugin's handlers may call (used by later issues; validated now).
  • contributes:
    • mcpServers: server definitions in the extension library's item shapes. Two kinds are accepted:
      • remote: https endpoint, tools, capability, authentication referencing one of the plugin's connections.
      • package (local server run in the task container): ecosystem (npm; the same closed list as the extension library), package, an exact version, the integrity value recorded in the manifest, optional bin, args, env (plain values), secretEnv (variable name mapped to one of the plugin's token connections), tools and capability. Version ranges, tags, paths, images and free-form commands are refused, exactly as the extension library refuses them.
    • skills: skill bundle sources inside the plugin folder.
    • automationTemplates: automation templates in the existing template format.
    • commands, subscriptions, webhooks: accepted and validated by the schema now, ignored at runtime until their issues land.

Registry

packages/plugins is a workspace package exporting the list of official plugins (manifest + resolved asset paths). A check script npm run plugins:check validates every manifest against the schema, checks unique ids and command names, that referenced connections, skills and icons exist, that every package server has an exact version and an integrity value, and that each plugin has a README; it runs in CI next to the automation template check. An optional --online mode (not run in CI) compares each package server's integrity value with the registry. Include one tiny example plugin (example-pack, hidden from the catalog unless a development flag is set) with one remote server, one package server pointing at the existing test fixture package, one skill and one automation template; later issues use it in tests.

Out of scope

Installation state, API, UI, contributions being applied to runs, handlers, webhooks, commands.

Acceptance criteria

  • Schema tests: valid manifest; each invalid case (bad id, unknown permission, contribution referencing a missing connection, duplicate names, host not a hostname, package server with a range, a tag, a missing integrity value, a path or a command, secretEnv referencing a connection that is not token).
  • npm run plugins:check passes for the registry and fails with a clear message for each broken fixture manifest; it is wired into CI.
  • The registry package builds as a workspace and exports the example plugin only when the development flag is set.
  • New doc page docs/docs/features/plugins.md with the concept and the manifest overview (later issues extend it).

Implementation

  1. Shared: packages/shared/src/plugins.ts with the manifest schema, permission list, settings-schema subset and public projections; reuse the extension library's remote and package server schemas (packages/shared/src/extensionLibrary.ts, packages/shared/src/extensionPackages.ts) rather than redefining them.
  2. New workspace package packages/plugins (registry index, example-pack), added to the root workspaces and build.
  3. scripts/check-plugins.mjs + plugins:check npm script + CI step next to automation-templates:check; fixtures for broken manifests under the script's test folder.
  4. Tests in packages/shared/test and a script test.

Notes

Requires the extensions library (library items, OAuth sign-in, package servers) on the default branch. Official plugins are trusted code shipped with ProPR; nothing is downloaded at install time except a package server's pinned npm package, which goes through the existing package cache. Keep this pull request small: do not add tables, routes or UI. Keep every file within the repository's max-lines lint rule.

Activity

  1. added
    base-3542-epic-plugin-system-xu8
    on Nov 14, 2026
  2. propr-dev commented on Nov 14, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3542/claude-opus-5-5-plugins-manifest-schema-i-20261114-0323-zox
    • Base Branch: 3542-epic-plugin-system-xu8
    • Worktree: issue-3542-20261114-0323-claude-opus-5-5-zox

    🔍 Track Task Execution

  3. added a commit that references this issue on Nov 14, 2026
  4. added a commit that references this issue on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    AIAI-doneauto-mergebase-3542-epic-plugin-system-xu8llm-claude-opus55propr-planned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions