Skip to content

v0.3.0

Latest

Choose a tag to compare

@sgttomas sgttomas released this 29 Nov 23:58
· 9 commits to main since this release
3c044f2

Workflow reading, live workflow list refresh, source distinction in the picker, and safe Markdown link handling on top of v0.2.1. Built and tested against Codex 0.171.0 and Chirality Library 3.6.0.

Consumer note: crates/tauri/permissions/engine.toml adds "engine:read_workflow". Applications using tauri_build::AppManifest should update their copied src-tauri/permissions/engine.toml. Existing Panel, PanelControl, and PanelView shapes remain backwards-compatible.

Read workflow instructions (crates/engine, crates/tauri, @chirality/engine-ui)

  • Added Engine::read_workflow(project, workflow) -> Result<WorkflowDocument> (engine:read_workflow, EngineClient.readWorkflow, generated WorkflowDocument TypeScript binding), returning a workflow's metadata (Workflow) and full WORKFLOW.md body atomically from one validated file read.
  • Enforces canonical symlink containment within configured roots and registration-time canonical project paths, exact WORKFLOW.md target filename, and regular-file checks (blocking symlinks outside roots, aliases to differently named files, and named pipes).
  • WorkflowTab renders WORKFLOW.md as Markdown (with YAML front matter stripped) alongside the metadata from that same read, reachable from each picker row's Read button and from clicking the picked workflow chip (scoped to the thread/project even across closed-panel switches and omitted when a layout has no workflow tab). Every explicit Read re-fetches fresh instructions without blank flicker.

Live workflow list refresh and source distinction (@chirality/engine-ui, crates/engine)

  • Store.refreshWorkflows re-reads a project's workflow list when the picker opens and on project/thread selection, coalescing concurrent refreshes without clearing the visible list and guarding both sync and async results across dispose() / restart.
  • Picker rows are keyed by Workflow.id with the source tag placed beside the workflow name (distinct styling for Project vs Library), keeping same-name workflows clearly told apart while leaving summaries clean on the detail line.
  • Fixed YAML front-matter quote trimming in workflows.rs so single-quoted description summaries lose one matched pair of outer quotes.

Safe Markdown links and fragment focus (@chirality/engine-ui)

  • Markdown only passes http(s):// links to host.openUrl; relative file references and other unsupported schemes render as non-clickable text (<span class="md-ref">) with tooltips instead of triggering opener errors.
  • #fragment links (headings and GFM footnotes, including non-ASCII labels and #footnote-label) scroll and move keyboard focus within their own Markdown block, with unique per-block footnote heading ids, preserved aria-label / aria-describedby, and visible keyboard focus on focused .sr-only footnote headings.

Pin it by tag v0.3.0 or by commit 3c044f2bf11b642311bef577eda82c4abae3b5a7.