mirror of
https://mirror.skon.top/github.com/code-yeongyu/oh-my-opencode
synced 2026-05-01 03:59:23 +08:00
feat(tools): register team-mode skill tooling and update exports
This commit is contained in:
@@ -44,6 +44,7 @@ export {
|
||||
createTaskUpdateTool,
|
||||
} from "./task"
|
||||
export { createHashlineEditTool } from "./hashline-edit"
|
||||
export { createTeamSendMessageTool } from "../features/team-mode/tools/messaging"
|
||||
|
||||
export function createBackgroundTools(manager: BackgroundManager, client: OpencodeClient): Record<string, ToolDefinition> {
|
||||
const outputManager: BackgroundOutputManager = manager
|
||||
|
||||
@@ -36,6 +36,7 @@ export function createSkillTool(options: SkillLoadOptions = {}): ToolDefinition
|
||||
const discovered = (await getAllSkills({
|
||||
disabledSkills: options?.disabledSkills,
|
||||
browserProvider: options?.browserProvider,
|
||||
teamModeEnabled: options?.teamModeEnabled,
|
||||
})) ?? []
|
||||
const allSkills = options.skills ? [...options.skills] : discovered
|
||||
|
||||
|
||||
@@ -35,6 +35,8 @@ export interface SkillLoadOptions {
|
||||
disabledSkills?: Set<string>
|
||||
/** Browser automation provider for provider-gated skill filtering */
|
||||
browserProvider?: BrowserAutomationProvider
|
||||
/** Whether team mode built-in docs should be exposed */
|
||||
teamModeEnabled?: boolean
|
||||
/** Include Claude marketplace plugin commands in discovery (default: true) */
|
||||
pluginsEnabled?: boolean
|
||||
/** Override plugin enablement from Claude settings by plugin key */
|
||||
|
||||
Reference in New Issue
Block a user