* chore: rebrand user-facing copy to OpenClaude Replace lingering Claude Code branding in CLI, tips, and runtime UI with OpenClaude/openclaude, including the startup tip Gitlawb mention. Co-Authored-By: Claude GPT-5.4 <noreply@openclaude.dev> * chore: address branding-sweep review feedback - PermissionRequest.tsx: rebrand the two remaining "Claude needs your approval/permission" notifications to OpenClaude (review-artifact and generic tool permission paths). - main.tsx, teleport.tsx, session.tsx, WebFetchTool/utils.ts, skills/bundled/{debug,updateConfig}.ts: replace leftover `claude --…` CLI hints and "Claude Code" labels missed by the original sweep. - main.tsx: drop the inline gitlawb.com marketing copy from the stale-prompt tip; keep it a pure rebrand. - auth.ts: finish the half-rename so both `claude setup-token` and `claude auth login` references in the same error block now read `openclaude …`. - mcp/client.ts: keep `name: 'claude-code'` for MCP server allowlist compatibility (now explicit via comment) and replace the "Anthropic's agentic coding tool" description with an OpenClaude one. - MCPSettings.tsx: point the empty-server-list hint at https://github.com/Gitlawb/openclaude instead of code.claude.com. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore: replace help link with OpenClaude repo URL Replace https://code.claude.com/docs/en/overview with https://github.com/Gitlawb/openclaude in the help screen. Co-Authored-By: OpenClaude <openclaude@gitlawb.com> --------- Co-authored-by: Claude GPT-5.4 <noreply@openclaude.dev> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Co-authored-by: OpenClaude <openclaude@gitlawb.com>
66 lines
1.8 KiB
TypeScript
66 lines
1.8 KiB
TypeScript
import type { ContentBlockParam } from '@anthropic-ai/sdk/resources/messages.js'
|
|
import type { Command } from '../commands.js'
|
|
import type { ToolUseContext } from '../Tool.js'
|
|
|
|
type Options = {
|
|
name: string
|
|
description: string
|
|
progressMessage: string
|
|
pluginName: string
|
|
pluginCommand: string
|
|
/**
|
|
* The prompt to use while the marketplace is private.
|
|
* External users will get this prompt. Once the marketplace is public,
|
|
* this parameter and the fallback logic can be removed.
|
|
*/
|
|
getPromptWhileMarketplaceIsPrivate: (
|
|
args: string,
|
|
context: ToolUseContext,
|
|
) => Promise<ContentBlockParam[]>
|
|
}
|
|
|
|
export function createMovedToPluginCommand({
|
|
name,
|
|
description,
|
|
progressMessage,
|
|
pluginName,
|
|
pluginCommand,
|
|
getPromptWhileMarketplaceIsPrivate,
|
|
}: Options): Command {
|
|
return {
|
|
type: 'prompt',
|
|
name,
|
|
description,
|
|
progressMessage,
|
|
contentLength: 0, // Dynamic content
|
|
userFacingName() {
|
|
return name
|
|
},
|
|
source: 'builtin',
|
|
async getPromptForCommand(
|
|
args: string,
|
|
context: ToolUseContext,
|
|
): Promise<ContentBlockParam[]> {
|
|
if (process.env.USER_TYPE === 'ant') {
|
|
return [
|
|
{
|
|
type: 'text',
|
|
text: `This command has been moved to a plugin. Tell the user:
|
|
|
|
1. To install the plugin, run:
|
|
openclaude plugin install ${pluginName}@claude-code-marketplace
|
|
|
|
2. After installation, use /${pluginName}:${pluginCommand} to run this command
|
|
|
|
3. For more information, see: https://github.com/anthropics/claude-code-marketplace/blob/main/${pluginName}/README.md
|
|
|
|
Do not attempt to run the command. Simply inform the user about the plugin installation.`,
|
|
},
|
|
]
|
|
}
|
|
|
|
return getPromptWhileMarketplaceIsPrivate(args, context)
|
|
},
|
|
}
|
|
}
|