@intisy/bayonet
    Preparing search index...

    Interface PluginManifest

    The contents of a repo's plugin.json.

    No index signature and no additionalProperties: an author gets excess-property checking while writing one, and the runtime validator still ignores fields it does not know, so a manifest written against a later version loads on today's host.

    interface PluginManifest {
        $schema?: string;
        api: number;
        app?: AppDescriptor;
        capabilities?: string[];
        commands?: ManifestCommand[];
        config?: ManifestConfig;
        data?: ManifestData;
        displayName?: string;
        entry?: string;
        icon?: string;
        icons?: Record<string, string>;
        id: string;
        lifecycle?: ManifestLifecycle;
        marketplace?: ManifestMarketplace;
        permissions?: string[];
        publish?: ManifestPublish;
        repo?: RepoMeta;
        services?: ManifestServices;
    }
    Index
    $schema?: string

    Pointer at the published manifest schema, for an editor's completion and validation.

    Declared although nothing reads it, because every manifest in the ecosystem carries it and the published schema accepts it: without it an author writing a manifest literal in TypeScript could not include a field their own plugin.json has.

    api: number

    The lowest API major version this plugin needs. A floor, not a build tag.

    The app this repo is the loader for, declared by the app's own project.

    Present only on a repo that IS an app's loader, which is what makes "whose loader is this" answerable from the manifest alone, with no consumer naming a plugin.

    capabilities?: string[]

    Host-facing abilities this plugin provides at activation, declared statically so a host can answer what it can do without executing it.

    commands?: ManifestCommand[]

    Slash commands this plugin contributes, which a host deploys without importing it.

    This plugin's settings as it ships them.

    Where this plugin keeps state that is not named after it.

    displayName?: string

    The name a surface shows instead of the id.

    Optionalentry

    entry?: string

    The built module a host imports. Required once capabilities is non-empty.

    icon?: string

    Path to a square-viewBox SVG mark, relative to the repo root.

    icons?: Record<string, string>

    Further marks this repo ships, each keyed by the id of the thing it belongs to.

    One repo can contribute several named things, and a single repo-level icon cannot serve them. Keyed by id rather than by kind, so this package carries the marks without learning what any of the ids name.

    id: string

    The plugin's permanent identity, matching its repository name.

    lifecycle?: ManifestLifecycle

    Which optional lifecycle hooks the entry exports.

    marketplace?: ManifestMarketplace

    What this plugin contributes to a host's catalog of installable things.

    permissions?: string[]

    Declared permissions, surfaced at install and in dashboards. Not sandbox-enforced.

    publish?: ManifestPublish

    How the repo is published to npm.

    repo?: RepoMeta

    Repository metadata.

    services?: ManifestServices

    The inter-plugin contract.