Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions docs/core/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ actions:

init: myPluginInit

setup:
handler: setupMyPlugin
references: generateMyPluginReferences
description: Configure API credentials
setup: setupMyPlugin
agentkit: generateMyPluginAgentKit
description: Configure API credentials
```

### Fields
Expand All @@ -41,7 +40,9 @@ setup:
| `actions` | array? | Server action exports |
| `routes` | array? | Plugin-provided pages (backoffice tools, admin dashboards) |
| `init` | string? | Export name for `JayInit` constant (auto-discovers `lib/init.ts` if omitted) |
| `setup` | object? | Setup command configuration |
| `setup` | string? | Export name for setup handler (`jay-stack setup`) |
| `agentkit` | string? | Export name for agent-kit handler (`jay-stack agent-kit`) |
| `description` | string? | Human-readable setup description (top-level) |

### contracts

Expand Down Expand Up @@ -121,10 +122,9 @@ CLI commands for admin and batch operations. Run via `jay-stack run <plugin>/<co
### setup

```yaml
setup:
handler: setupMyPlugin # Export name for setup handler
references: generateReferences # Export name for reference data generation
description: Configure API key # Human-readable description
setup: setupMyPlugin # Export name for setup handler
agentkit: generateMyAgentKit # Export name for agent-kit handler
description: Configure API key # Human-readable description (top-level, optional)
```

## Plugin Resolution
Expand Down
15 changes: 6 additions & 9 deletions packages/compiler/compiler-shared/lib/plugin-resolution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,12 @@ export interface PluginManifest {
handler: string;
description?: string;
}>;
/** Plugin setup configuration (Design Log #87) */
setup?: {
/** Export name (NPM) or relative path (local) to setup handler function */
handler: string;
/** Export name for reference data generation (called by jay-stack agent-kit) */
references?: string;
/** Human-readable description of what setup does */
description?: string;
};
/** Export name (NPM) or relative path (local) to setup handler — `jay-stack setup` */
setup?: string;
/** Export name for agent-kit handler — `jay-stack agent-kit` (add-menu, references, skills) */
agentkit?: string;
/** Human-readable description of what setup validates or configures */
description?: string;
}

/**
Expand Down
Loading