mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-24 17:15:50 +00:00
style: 完成所有文件的lint
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import type { ContentBlockParam } from '@anthropic-ai/sdk/resources/index.mjs'
|
||||
import type { Command } from '../commands.js'
|
||||
import { AGENT_TOOL_NAME } from '@claude-code-best/builtin-tools/tools/AgentTool/constants.js'
|
||||
import type { ContentBlockParam } from '@anthropic-ai/sdk/resources/index.mjs';
|
||||
import type { Command } from '../commands.js';
|
||||
import { AGENT_TOOL_NAME } from '@claude-code-best/builtin-tools/tools/AgentTool/constants.js';
|
||||
|
||||
const statusline = {
|
||||
type: 'prompt',
|
||||
@@ -9,23 +9,18 @@ const statusline = {
|
||||
aliases: [],
|
||||
name: 'statusline',
|
||||
progressMessage: 'setting up statusLine',
|
||||
allowedTools: [
|
||||
AGENT_TOOL_NAME,
|
||||
'Read(~/**)',
|
||||
'Edit(~/.claude/settings.json)',
|
||||
],
|
||||
allowedTools: [AGENT_TOOL_NAME, 'Read(~/**)', 'Edit(~/.claude/settings.json)'],
|
||||
source: 'builtin',
|
||||
disableNonInteractive: true,
|
||||
async getPromptForCommand(args): Promise<ContentBlockParam[]> {
|
||||
const prompt =
|
||||
args.trim() || 'Configure my statusLine from my shell PS1 configuration'
|
||||
const prompt = args.trim() || 'Configure my statusLine from my shell PS1 configuration';
|
||||
return [
|
||||
{
|
||||
type: 'text',
|
||||
text: `Create an ${AGENT_TOOL_NAME} with subagent_type "statusline-setup" and the prompt "${prompt}"`,
|
||||
},
|
||||
]
|
||||
];
|
||||
},
|
||||
} satisfies Command
|
||||
} satisfies Command;
|
||||
|
||||
export default statusline
|
||||
export default statusline;
|
||||
|
||||
Reference in New Issue
Block a user