feat(ui): open Develop artifacts in the OS editor

Develop stays read-first: each artifact whose source is a repository
path gains an Open in editor action routed through a path-validated
main-process handler (shell.openPath), instead of an in-app write path.
Persona and prompt-assembly sources open the governing cordis.yml or
source file directly.
This commit is contained in:
NI0317
2026-07-19 21:39:08 +08:00
parent 97df884937
commit c2fdfae170
8 changed files with 63 additions and 4 deletions

View File

@@ -93,7 +93,7 @@ describe('desktop renderer chat lifecycle', () => {
},
trace: { read: async () => traceRead },
feedback: { list: async () => [], add: async () => ({}) },
dev: { status: async () => ({ git: {} }) },
dev: { status: async () => ({ git: {} }), openPath: async () => ({}) },
}
await import('../src/app.ts')
@@ -276,7 +276,7 @@ describe('desktop renderer chat lifecycle', () => {
},
trace: { read: async () => traceRead },
feedback: { list: async () => [], add: async () => ({}) },
dev: { status: async () => ({ git: {} }) },
dev: { status: async () => ({ git: {} }), openPath: async () => ({}) },
}
await import('../src/app.ts')