Skip to content

Add copilot-component-minimal template#256

Draft
nick-pape wants to merge 1 commit into
SharePoint:mainfrom
nick-pape:nicpape/copilot-component-template
Draft

Add copilot-component-minimal template#256
nick-pape wants to merge 1 commit into
SharePoint:mainfrom
nick-pape:nicpape/copilot-component-template

Conversation

@nick-pape
Copy link
Copy Markdown
Contributor

Description

Adds a new copilot template category and a minimal Copilot Component template (copilot-component-minimal) based on the greeting-copilot-component reference implementation in odsp-web.

The template scaffolds a hello-world CopilotComponent with:

  • BaseCopilotComponent from @microsoft/sp-copilot-component
  • Zod-based properties schema (single source of truth for TypeScript types + JSON Schema)
  • Declarative agent manifests (copilot/manifest.json, declarativeAgent.json, ai-plugin.json)
  • config/copilot-agent.json for SPFx agent registration

Note: The example is not registered in rush.json because @microsoft/sp-copilot-component has not been published yet — rush update would fail trying to resolve it.

How was this tested

  • rush build — full build passes
  • rushx test in api/spfx-template-api — 357 tests pass (including category validation)
  • rushx test in apps/spfx-cli — 109 tests pass
  • rushx test in tests/spfx-template-test — 20 tests pass (new template scaffolds and matches example)

Type of change

  • New feature (non-breaking change which adds functionality)
  • Template change (new or updated template/example)

🤖 Generated with Claude Code

Adds a new "copilot" template category and a minimal Copilot Component
template based on the greeting-copilot-component reference implementation.
The template scaffolds a hello-world CopilotComponent with Zod-based
properties schema, declarative agent manifests, and copilot agent config.

Note: the example is not registered in rush.json because
@microsoft/sp-copilot-component has not been published yet.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant