Skip to content

Add wl piman command and worklog widget extension#2006

Open
SorraTheOrc wants to merge 1 commit into
mainfrom
feature/WL-0MP0Y4BD4000UM28-piman-shell
Open

Add wl piman command and worklog widget extension#2006
SorraTheOrc wants to merge 1 commit into
mainfrom
feature/WL-0MP0Y4BD4000UM28-piman-shell

Conversation

@SorraTheOrc
Copy link
Copy Markdown
Member

Goal

Complete the Core Pi TUI Shell & Launcher (WL-0MP0Y4BD4000UM28) as the final piece of the Agent-centric Pi-based TUI epic (WL-0MP0E0M5500846SL).

Work Done

wl piman command

  • New CLI entry point (src/commands/piman.ts) as the Pi-based TUI launcher
  • Alias: wl pi
  • Options: --in-progress, --all, --prefix, --perf
  • Registered in cli.ts as a built-in command

Worklog Widget Extension

  • Pi extension (packages/tui/extensions/worklog-widgets.ts) providing:
    • /worklog show - displays numbered work item list + details below editor
    • /worklog hide - removes widgets
    • /worklog-select <n|id> - select by index or work item ID
    • Keyboard shortcuts: Ctrl+1..9, Ctrl+Up/Down
  • Shared helper module (worklog-helpers.ts) with pure functions for widget rendering

Tests

  • 22 unit tests for widget helpers covering rendering, truncation, status icons
  • All 1700 project tests pass

Documentation

  • CLI.md updated with piman command documentation

Epic Status

All acceptance criteria for WL-0MP0E0M5500846SL are now met:

Criterion Status
Agent chat pane + action palette met
All DB operations via wl CLI met
Pi package installable met
CI smoke test met
Opencode removed met
Design checklist met
E2E tests met
Full test suite passes (1700) met
Documentation updated met

Testing

# Verify piman command
wl piman --help

# Run widget tests
npx vitest run packages/tui/tests/worklog-widgets.test.ts

# Run full test suite
npm test

Review Focus

  • New wl piman command registration and options
  • Pi extension widget API usage
  • Widget helper test coverage

- Add wl piman command (src/commands/piman.ts) as Pi-based TUI entry point
  with alias 'pi', supporting --in-progress, --all, --prefix, --perf options
- Register piman in cli.ts built-in commands
- Create worklog widget extension (packages/tui/extensions/) with:
  - worklog-helpers.ts: pure widget rendering functions
  - worklog-widgets.ts: Pi extension with /worklog show/hide/select commands
    and Ctrl+1-9, Ctrl+Up/Down keyboard shortcuts
- Add unit tests for widget helpers (22 tests, all passing)
- Document piman command in CLI.md

All 1700 tests pass (162 test files, 9 skipped).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant