feat(vscode-ail-chat): toggle side panel — run history + pipeline steps#173
Merged
Conversation
…ps (#167) - RunHistoryProvider: calls `ail logs --format json --limit 100` to populate tree; refresh() triggered by ChatViewProvider on pipelineCompleted event; openRunLog command calls `ail log <runId>` and opens result as markdown doc; injectable RunLogFn for unit tests; setBinaryPath() for async binary resolution - PipelineStepsProvider: parses active pipeline YAML via yaml package; top-level steps only; sub-pipeline references show filename label; error node on missing/malformed pipeline; openStep reveals id: line in editor - toggleInfoPanel command flips ail-chat.panelVisible context key; historyView and stepsView gated on ail-chat.panelVisible in package.json; toggle button in chat view title bar via menus.view/title - ChatViewProvider: wired to call historyProvider.refresh() on pipelineCompleted, stepsProvider.refresh() on pipeline change - 18 new unit tests (200 total, all passing)
aeaf4a4 to
834f894
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #167. Depends on #172 (#166).
Summary
RunHistoryProvider— callsail logs --format json --limit 100to list past runs; no direct file access; refresh triggered bypipelineCompletedevent fromChatViewProvider;openRunLogcommand callsail log <runId>and opens output as a markdown documentPipelineStepsProvider— parses active pipeline YAML (via the existingyamldep); top-level steps only; sub-pipeline references render as single node with filename; error node on missing/malformed YAML or passthrough mode;openStepreveals theid:line in the editortoggleInfoPanelcommand — flipsail-chat.panelVisiblecontext key;historyViewandstepsVieware gated on this key inpackage.jsonso they appear/disappear without disposal; toggle button in chat view title bar viamenus["view/title"]ChatViewProviderwired: callshistoryProvider.refresh()onpipelineCompleted,stepsProvider.refresh()on pipeline changeTest plan
id:linenpm test→ 200 tests passing