Files
claude-code/src/types/fileSuggestion.ts
xiaoFjun-eng ea399f1862 Fix type (#1239)
* 完善所有用到的type对象,并添加中文注释

* 补充遗失的type
2026-05-19 09:05:04 +08:00

14 lines
596 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* `FileSuggestion` 自定义命令通过 stdin 接收的 JSON 负载,
* 字段与 `createBaseHookInput()` 一致并附加当前路径前缀 `query`。
*/
export type FileSuggestionCommandInput = {
session_id: string // 当前会话 id
transcript_path: string // 会话 transcript 文件路径
cwd: string // 工作目录
permission_mode?: string // 权限模式快照(若有)
agent_id?: string // 子代理 id若在 agent 内触发)
agent_type?: string // 子代理类型或主线程类型
query: string // 用户当前输入的路径前缀(待补全部分)
}