Skip to content

Bundle create-agent-plugin by default - #393

Merged
SudoJacky merged 1 commit into
masterfrom
feat/bundled-create-agent-plugin
Aug 8, 2026
Merged

Bundle create-agent-plugin by default#393
SudoJacky merged 1 commit into
masterfrom
feat/bundled-create-agent-plugin

Conversation

@SudoJacky

Copy link
Copy Markdown
Owner

Summary

  • bundle the MIT-licensed create-agent-plugin package directly into Tinybot
  • install and enable it during desktop startup while preserving disablement and user-managed replacements
  • expose built-in plugin state through the backend contract and prevent bundled plugin removal in the UI
  • route Skill/MCP migration through create-agent-plugin:migrate-agent-plugin
  • update desktop and API documentation for the bundled lifecycle

User impact

Users can migrate a standalone Skill, MCP configuration, or client-specific plugin without downloading and importing the example plugin first. The bundled helper can be disabled, but it cannot be uninstalled accidentally.

Validation

  • cargo test plugins::store::tests (10 passed)
  • npm test (512 passed)
  • npm run build
  • cargo check
  • cargo fmt --all -- --check
  • git diff --check

A full local cargo test run reached 913 passing tests and 4 environment/timing failures unrelated to this change. Both Windows process-timing failures passed when rerun individually; the other two tests read the existing user-level ~/.tinybot/plugins catalog instead of an isolated fixture.

@SudoJacky
SudoJacky marked this pull request as ready for review August 8, 2026 05:37

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 727aeca53f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +445 to +448
.plugins
.get(name)
.is_some_and(|plugin| bundled::is_bundled_source(&plugin.source_path))
{

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reject built-in removal before disabling it

When worker_plugin_uninstall is invoked for an enabled built-in plugin, it calls set_enabled(name, false) and reconciles the runtime at src-tauri/src/desktop_commands/plugins.rs:108-113 before this new guard rejects the removal. The failed uninstall therefore still disables create-agent-plugin, unexpectedly making the migration helper unavailable; the command should check the built-in status before changing enablement.

Useful? React with 👍 / 👎.

@SudoJacky
SudoJacky merged commit 126a816 into master Aug 8, 2026
1 check passed
@SudoJacky
SudoJacky deleted the feat/bundled-create-agent-plugin branch August 8, 2026 12:47
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