chore: rebuild release package
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user