yan-istart_IStart-Note-AI-P.../src
Yan 3cf38ba59e fix(execution): plan drafts are now human-readable, confirm-execute flow added
Before:
  - Plan draft notes contained raw JSON at the bottom
  - No way to execute a pending plan from the UI
  - User saw technical payload with no clear next step

After:
  - Plan drafts are clean markdown: summary table + operation list + affected
    files + detailed preview. No JSON visible.
  - Raw plan data cached in PlanDraftStore memory (not in note)
  - New action: '确认执行此计划' (icon: play)
    - Only visible when current file has type: execution-plan
    - Shows confirmation dialog with risk level and file count
    - Executes via PlanExecutor, marks draft as 'executed'
    - On failure: shows error, draft stays pending
  - PlanDraftStore.getPendingPlans() for listing
  - PlanDraftStore.markExecuted() updates note status

Execution flow now:
  1. Generate plan → save as readable draft note
  2. User opens and reviews the plan
  3. User triggers '确认执行此计划' from command panel or right-click
  4. Confirmation dialog → execute → log written → draft marked done

Limitation: plan cache is in-memory only. If Obsidian restarts between
plan creation and confirmation, user must regenerate. This is acceptable
for v2.0; persistent plan storage comes in v2.1.
2026-05-20 22:15:33 +08:00
..
actions fix(execution): plan drafts are now human-readable, confirm-execute flow added 2026-05-20 22:15:33 +08:00
ai refactor(ai): migrate all callers to core/llm 2026-05-20 15:17:10 +08:00
core fix(execution): plan drafts are now human-readable, confirm-execute flow added 2026-05-20 22:15:33 +08:00
features fix(reading): chapter files prefixed with zero-padded number for sort order 2026-05-20 22:07:13 +08:00
settings feat(panel): execution module visible + icon professionalization 2026-05-20 16:50:26 +08:00
util release: 1.7.0 2026-05-07 09:44:40 +08:00
vault feat: concept completion, question graph, vault QA, debt dashboard actions 2026-05-20 15:17:16 +08:00
main.ts fix(execution): plan drafts are now human-readable, confirm-execute flow added 2026-05-20 22:15:33 +08:00
types.ts release: 1.8.0 2026-05-16 23:48:46 +08:00