unused-local-variable / useless-assignment (~30 alerts): - mcp-client: manager.ts (11), connection.ts (3) - acp-link: server.ts (4), rcs-upstream.ts - remote-control-server: 10 files (SessionDetail, acp/client, transports, etc.) - src: constants/tools.ts, attribution.ts, win32.ts, main.tsx, attachments.ts log-injection (2): - chromeNativeHost.ts, rcs-upstream.ts — apply sanitizeLog() indirect-command-line-injection (4): - imagePaste.ts: convert shell:true to explicit sh -c pattern use-before-declaration (4): - query.ts, claude.ts, tools.ts, attachments.ts — move feature() import up comparison-between-incompatible-types (2): - ExitPlanModePermissionRequest.tsx, useTerminalNotification.ts shared: sensitive.ts — sanitizeLog() helper
27 lines
954 B
TypeScript
27 lines
954 B
TypeScript
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',
|
|
description: "Set up Claude Code's status line UI",
|
|
contentLength: 0, // Dynamic content
|
|
aliases: [],
|
|
name: 'statusline',
|
|
progressMessage: 'setting up statusLine',
|
|
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';
|
|
return [
|
|
{
|
|
type: 'text',
|
|
text: `Create an ${AGENT_TOOL_NAME} with subagent_type "statusline-setup" and the prompt "${prompt}"`,
|
|
},
|
|
];
|
|
},
|
|
} satisfies Command;
|
|
|
|
export default statusline;
|