cc-flight 0.4.3 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -68,6 +68,16 @@ For future updates, switch scripts and docs to `cc-flight` or `ccflight`.
68
68
 
69
69
  ## Features
70
70
 
71
+ ### New in 0.6.0: Subagent Threads
72
+
73
+ Subagent work is now attached to the user-input journey that launched it:
74
+
75
+ - User-input rows show a `Subagent N` marker when nested workers are detected.
76
+ - The task detail pane has a dedicated **Subagent** tab beside **Context Replay** and **Conversation**.
77
+ - Subagent sessions are shown as a compact thread index plus a focused replay, so multi-worker activity can be scanned without scrolling through one long nested feed.
78
+ - Claude Code subagents are matched by parent session source path and time window, including workers whose `cwd` falls into a child project directory.
79
+ - Codex ingest includes archived sessions from `~/.codex/archived_sessions`.
80
+
71
81
  ### Session Recap
72
82
 
73
83
  A collapsible flight-recorder readout panel with five sections:
@@ -108,7 +118,7 @@ Built-in pricing table for Claude and GPT models (June 2026 rates). All rates ar
108
118
 
109
119
  | Provider | Source | Default Path |
110
120
  |----------|--------|--------------|
111
- | Codex CLI | Session JSONL files | `~/.codex/sessions/**/*.jsonl` |
121
+ | Codex CLI | Session JSONL files | `~/.codex/sessions/**/*.jsonl`, `~/.codex/archived_sessions/**/*.jsonl` |
112
122
  | Claude Code | Project JSONL files | `~/.claude/projects/**/*.jsonl` |
113
123
  | OpenCode | Exported session files | Manual export |
114
124
 
package/README.zh-CN.md CHANGED
@@ -68,6 +68,16 @@ superview
68
68
 
69
69
  ## 功能
70
70
 
71
+ ### 0.6.0 新增:Subagent Threads
72
+
73
+ Subagent 工作现在会关联到发起它的 user-input journey:
74
+
75
+ - 左侧 user-input 行在检测到嵌套 worker 时显示 `Subagent N` 标记。
76
+ - 任务详情面板中,**Subagent** 与 **Context Replay**、**Conversation** 并列为独立 tab。
77
+ - Subagent 会话以紧凑线程索引 + 聚焦回放展示,多个 worker 的全局情况不再需要在长列表里反复滚动。
78
+ - Claude Code subagent 会按父 session source path 和时间窗口关联,包括 `cwd` 落在子项目目录里的 worker。
79
+ - Codex 导入会包含 `~/.codex/archived_sessions` 中的归档 session。
80
+
71
81
  ### 会话概览
72
82
 
73
83
  可折叠的飞行记录仪面板,包含五个模块:
@@ -108,7 +118,7 @@ superview
108
118
 
109
119
  | 提供商 | 数据来源 | 默认路径 |
110
120
  |--------|---------|---------|
111
- | Codex CLI | Session JSONL 文件 | `~/.codex/sessions/**/*.jsonl` |
121
+ | Codex CLI | Session JSONL 文件 | `~/.codex/sessions/**/*.jsonl`、`~/.codex/archived_sessions/**/*.jsonl` |
112
122
  | Claude Code | Project JSONL 文件 | `~/.claude/projects/**/*.jsonl` |
113
123
  | OpenCode | 导出 session 文件 | 手动导出 |
114
124
 
package/core/types.ts CHANGED
@@ -216,14 +216,24 @@ export interface TaskJourney {
216
216
  eventIds: string[];
217
217
  tokenUsage: TokenUsage;
218
218
  skills: SkillUsage[];
219
+ subThreadCount?: number;
219
220
  stageCounts: Partial<Record<TimelineLane, number>>;
220
221
  stages: TaskJourneyStage[];
221
222
  }
222
223
 
224
+ export interface TaskSubThread {
225
+ id: string;
226
+ sourcePath: string;
227
+ session: SessionRecord | null;
228
+ journey: TaskJourney;
229
+ events: TimelineEvent[];
230
+ }
231
+
223
232
  export interface TaskJourneyDetail {
224
233
  journey: TaskJourney;
225
234
  events: TimelineEvent[];
226
235
  causalEdges: CausalEdge[];
236
+ subThreads?: TaskSubThread[];
227
237
  }
228
238
 
229
239
  export type ContextBlockType =