🎨 style(vscode): eslint 自动修复格式与排序

Claude-Session: https://claude.ai/code/session_01HTMgwaE3woqM5yvsHiuSAa
This commit is contained in:
cruldra committed 2026-08-31 22:30:42 +08:00
1 parent df35bcfd49
commit 8c22a29ce5
41 files changed
+248 -167

No files matched your search

+56 -28
View File
@@ -8,26 +8,36 @@
export type IssueColumn = 'todo' | 'in-progress' | 'review' | 'done'
export interface Issue {
/** Stable identifier: `${owner}/${repo}#${index}` (gitea) or
/**
* Stable identifier: `${owner}/${repo}#${index}` (gitea) or
* `youtrack:${idReadable}` (youtrack). Used to route mutations to the right
* source when both kinds of cards share the board. */
* source when both kinds of cards share the board.
*/
id: string
/** Which tracker this issue came from. Absent is treated as `'gitea'` for
* backward compatibility with state written before the second source. */
/**
* Which tracker this issue came from. Absent is treated as `'gitea'` for
* backward compatibility with state written before the second source.
*/
source?: 'gitea' | 'youtrack'
/** YouTrack readable id (`LXF-12`) — present only on youtrack issues; needed
* for REST calls that key by readable id. */
/**
* YouTrack readable id (`LXF-12`) — present only on youtrack issues; needed
* for REST calls that key by readable id.
*/
externalId?: string
/** Equals the Gitea issue number / tea's `index` field; for youtrack it's the
/**
* Equals the Gitea issue number / tea's `index` field; for youtrack it's the
* numeric tail of `externalId` (collides across sources — never use alone as
* a key, pair with `source`). */
* a key, pair with `source`).
*/
number: number
title: string
column: IssueColumn
/** YouTrack attachments (name + absolute URL). Links only; not downloaded. */
attachments?: Array<{ name: string, url: string }>
/** Optional Claude Code session id stored alongside the column marker in
* the issue's state-JSON comment. Used to resume the conversation. */
/**
* Optional Claude Code session id stored alongside the column marker in
* the issue's state-JSON comment. Used to resume the conversation.
*/
sessionId?: string
/** 实施会话专用的 Claude 配置文件;空 = DEFAULT_PROFILE_PATH,不回退其它字段。 */
profilePath?: string
@@ -35,21 +45,27 @@ export interface Issue {
brainstormProfilePath?: string
/** 测试会话专用的 Claude 配置文件;空 = DEFAULT_PROFILE_PATH,不回退其它字段。 */
testProfilePath?: string
/** Optional workspace-relative path to the spec file for this issue, as
/**
* Optional workspace-relative path to the spec file for this issue, as
* surfaced from the Claude session transcript. Lives under
* `docs/superpowers/specs/*.md`. */
* `docs/superpowers/specs/*.md`.
*/
specFile?: string
/** Optional workspace-relative path to the plan file for this issue, as
/**
* Optional workspace-relative path to the plan file for this issue, as
* surfaced from the Claude session transcript. Lives under
* `docs/superpowers/plans/*.md`. */
* `docs/superpowers/plans/*.md`.
*/
planFile?: string
/** Optional workspace-relative path to the generated PR diff summary. */
prDiffFile?: string
/** PR number associated with this issue (set after webhook fires). */
pr?: string
/** Whether the associated PR has been merged. Set when the user drags to
/**
* Whether the associated PR has been merged. Set when the user drags to
* the 完成 列 (扩展代为合并) or when a `pull_request.closed` webhook arrives
* with `merged === true`. Persisted in the state JSON. */
* with `merged === true`. Persisted in the state JSON.
*/
prMerged?: boolean
/** PR 合并时间(ISO 8601,来自 PR API 的 merged_at)。完成列按它降序排序,未合并为 undefined。合并时持久化进 state JSON;完成工单加载时不再实时拉 PR,直接读持久化值(缺失则按工单号回退排序)。 */
prMergedAt?: string
@@ -61,32 +77,44 @@ export interface Issue {
worktreeExists?: boolean
/** Lifecycle of the implementation flow. */
implementStatus?: 'running' | 'done' | 'failed'
/** Session id of the implementation conversation (separate from
* discussion-session `sessionId`). */
/**
* Session id of the implementation conversation (separate from
* discussion-session `sessionId`).
*/
implementSessionId?: string
/** Backend-agnostic review session id (v1 stores a codex thread id). Set
/**
* Backend-agnostic review session id (v1 stores a codex thread id). Set
* the first time auto-review runs; reused for subsequent `synchronize`
* webhook callbacks via `codex exec resume`. */
* webhook callbacks via `codex exec resume`.
*/
reviewSessionId?: string
/** Whether the codex session file (`~/.codex/sessions/YYYY/MM/DD/rollout-...-<id>.jsonl`)
/**
* Whether the codex session file (`~/.codex/sessions/YYYY/MM/DD/rollout-...-<id>.jsonl`)
* for `reviewSessionId` exists on this machine; computed on load, never
* persisted. codex resume 只依赖这个文件,与 worktree 无关。 */
* persisted. codex resume 只依赖这个文件,与 worktree 无关。
*/
reviewSessionFileExists?: boolean
/** Session id of the test conversation (a Claude Code session id). Set the
/**
* Session id of the test conversation (a Claude Code session id). Set the
* first time the user manually starts a test session after the issue's PR
* is merged; reused for resume from the detail panel. */
* is merged; reused for resume from the detail panel.
*/
testSessionId?: string
/** Browser URL to the Gitea issue page (escape hatch button in the UI). */
htmlUrl: string
/** 前置任务 issue number (Gitea dependencies 取第一个) */
prerequisite?: number
/** Terminal/tab color id (a `terminal.ansi*` ThemeColor key) chosen the
/**
* Terminal/tab color id (a `terminal.ansi*` ThemeColor key) chosen the
* first time a session is opened for this issue, persisted in the state
* JSON so all subsequent sessions reuse the same tone. */
* JSON so all subsequent sessions reuse the same tone.
*/
color?: string
/** Per-issue override of the global `autoReview` setting. When set, the
/**
* Per-issue override of the global `autoReview` setting. When set, the
* webhook coordinator uses this value instead of the global flag. Stored
* in the issue's state-JSON comment so it survives reloads. */
* in the issue's state-JSON comment so it survives reloads.
*/
autoReview?: boolean
/** Gitea assignee login 列表;接管按钮只对 assignee 含当前登录者的工单显示。 */
assignees?: string[]