chore: rebuild release package

This commit is contained in:
shiyue
2026-07-20 15:44:07 +08:00
parent a038485ab5
commit 9adc7c99f1
11 changed files with 662 additions and 9 deletions

View File

@@ -200,6 +200,14 @@ function createCodexAppRuntime(deps = {}) {
return entry.step || entry.text || entry.title || entry.name || entry.description || entry.task || entry.item || entry.content || '';
}
function summarizeTodoListProgress(items) {
const normalizedItems = Array.isArray(items) ? items : [];
return {
completed: normalizedItems.filter((item) => item?.completed).length,
total: normalizedItems.length,
};
}
function normalizeTodoListFromPlanItem(item) {
if (!isPlanLikeItem(item)) return null;
const candidates = [
@@ -232,6 +240,7 @@ function createCodexAppRuntime(deps = {}) {
id: item.id || item.itemId || item.planId || 'codex-app-plan',
type: 'todo_list',
items,
progress: summarizeTodoListProgress(items),
};
}
@@ -542,6 +551,7 @@ function createCodexAppRuntime(deps = {}) {
title: 'Plan List',
subtitle: item.explanation || item.title || item.tool || '',
status: todoListPlanStatus(item, todoList),
progress: todoList.progress,
};
}
switch (item.type) {