Repository navigation
Conversation
1b63b7f to
d9d8e8b
Compare
Derive UI metadata from one typed manifest and load validated catalogue providers only in the Electron main process. Preserve existing target availability and catalogue content while enforcing the renderer bundle boundary. Co-authored-by: Copilot App <[email protected]> Copilot-Session: e4d624ee-fa8f-49d2-8b39-0ec71fc31e84
d9d8e8b to
78eeb4a
Compare
|
Really nice refactor — this cleanly kills the "add a target, edit five separate lists" problem from #20, and the bundle-boundary script that proves catalogue text stays out of the renderer is a great touch. I built it locally: tests / typecheck / build / boundary all pass, and the catalogues move byte-for-byte. One design thought for a follow-up (not blocking this PR): Now that the manifest declares which architecture offers skill/automation, the choice grid is fully data-driven (
That's the same "one target, many edits" smell #20 was about, just on the delivery dimension. I think we can lift it into the same manifest as capabilities rather than identities: { id: "scout", installTargetLabel: "Scout",
targets: [
{ kind: "skill", placements: ["install", "export"] },
{ kind: "automation", placements: ["install"] },
] }
{ id: "cowork", installTargetLabel: "Microsoft 365 Copilot",
targets: [
{ kind: "skill", placements: ["export"] },
] }Then the renderer derives default = first enabled target, placement buttons = Where I'd stop so the config doesn't turn into a UI DSL: keep config for data/capabilities (labels, enabled, kinds, placements, icon key) — the same UI-safe boundary you already enforce for catalogue text — and keep behavior in code. Happy to file this as a separate issue so it doesn't hold up the merge — wdyt? |
Thanks, this is a good catch. I agree placement is another architecture-specific concern worth making data-driven. Since it introduces some additional behavior decisions beyond #20, I think a separate follow-up issue would be the cleanest approach. Can you file one? I'll pick it up as a follow-up. |
Summary
Issue #20 identified that adding a target architecture required updating several separate lists and builder-specific lookup functions. This change moves the UI-safe architecture metadata into one typed manifest and lets the Electron main process discover catalogue providers automatically.
The metadata and catalogue content are intentionally separate. The renderer imports only the labels and availability information it needs, while catalogue text and versions remain in the Electron main process. Skill and automation builders now ask the registry for the appropriate catalogue instead of maintaining architecture-specific dispatch code.
The existing Scout and Cowork catalogues were moved without changing their content. Target availability is also unchanged: Scout supports skills and automations, Cowork supports skills, and Copilot Studio remains disabled.
Validation
npm testnpm run buildnpm run typecheck:evalsCloses #20