SkillPedia Skills Encyclopedia
中文 EN
今日更新 2026-11-19 UTC

今天还没有新提交

查看更新动态

技能 2026-10-08 08:10 UTC

vercel-pluginlatest

版本【latest】由提交人 vvo 提交,主要更新类型为:功能特性新增与扩展。提交说明:[plugin] Add OpenCode 2 support (#314)。为项目引入了新的能力与模块支持。

vvo 2a1e58d vercel/vercel-plugin

Commit提交信息原文

[plugin] Add OpenCode 2 support (#314)

* [plugin] Add OpenCode 2 support

Ship a native OpenCode 2 plugin entry (hooks/opencode-plugin.mjs, loaded
through package.json exports) that registers the same skills, commands,
agents and Vercel MCP server as the Claude Code plugin, turns the
SessionStart profiler and inject-claude-md output into a per-session
context hook, and reports skill:invoked with an opencode harness.

Install: opencode plugin add github:vercel/vercel-plugin

* [plugin] Rename the build script to build:all

A package.json `build` script makes npm "prepare" Git installs, and
OpenCode 2's bundled npm cannot run that step, so
`opencode plugin add github:vercel/vercel-plugin` failed.

* [plugin] Simplify the OpenCode entry

Keep only the entry point exported, store the telemetry session ID with
the session state, run the Vercel CLI check only when the profiler would,
and skip SSE servers, which OpenCode cannot connect to. Tests now go
through the plugin itself, including the real CLI check against stub
binaries.

* [plugin] Link the upstream OpenCode issues behind two workarounds

* [plugin] Let OpenCode agents read the plugin's skill files without a prompt

Skills point at reference files in the plugin's install directory, which
is outside the project, so OpenCode asked for external_directory
permission on every read. Found while using the preview.