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

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

7 lines
418 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.
/**
* 标识一次模型/API 调用的业务来源,用于遥测拆分、缓存控制与 529 重试策略。
* 值域随功能增长而扩展(含 `repl_main_thread:*`、`agent:*` 等前缀),故使用 `string`
* 常见字面量见各调用点及 `withRetry.ts` 中的 `FOREGROUND_529_RETRY_SOURCES`。
*/
export type QuerySource = string // 与日志/统计中的 source 字段对齐的自由文本标签