Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,34 @@ tag is the v0.2.0 cut.
(PR-3.)
- **`RolesChangedMessage`** public message added to
`acc/tui/messages.py` (PR-3).
- **TUI: Configuration pane (pane 8).** New `ConfigurationScreen`
at `acc/tui/screens/configuration.py` with three tabs:
*LLM Endpoints*, *Skills*, *MCPs*. Reachable via the new `8`
keybinding from any screen. (PR-4 of proposal 003 — PR #57.)
- **TUI: LLM Endpoints tab.** Shows the configured
`ACCConfig.llm` summary (backend, model, base_url, timeout) as
read-only text plus a live per-agent table fed from snapshots.
*Test connection* button HEAD-pings the configured `base_url`
via stdlib `urllib.request` (no new dependency) and surfaces
latency + status / unreachable reason. Writing back to
role.yaml under a new `llm_endpoint` key is deferred to a
follow-up. (PR-4.)
- **TUI: Skills + MCPs tabs (canonical home).** The Skills and
MCP-servers tables (plus their *Upload skill* / *Upload MCP*
file-picker flows) now have their canonical home on the
Configuration pane. The Ecosystem copies remain for one
release as a migration aid; a follow-up PR will remove them.
(PR-4.)

### Changed

- **NavigationBar extended to 8 panes.** Module docstring + key
list + `BINDINGS` updated; every screen's local BINDINGS list
now includes `("8", "navigate('configuration')",
"Configuration")`. (PR-4.)
- **Snapshot fan-out** in `acc/tui/app.py:_apply_snapshot` now
pushes the active snapshot into the Configuration screen too,
so its live LLM-backends table refreshes per HEARTBEAT. (PR-4.)

### Fixed

Expand Down
24 changes: 14 additions & 10 deletions acc/tui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
from acc.tui.models import CollectiveSnapshot
from acc.tui.screens.compliance import ComplianceScreen, _OversightAction
from acc.tui.screens.comms import CommunicationsScreen
from acc.tui.screens.configuration import ConfigurationScreen
from acc.tui.screens.dashboard import DashboardScreen, _RefreshMessage
from acc.tui.screens.ecosystem import EcosystemScreen
from acc.tui.screens.infuse import InfuseScreen, _PublishMessage
Expand Down Expand Up @@ -79,18 +80,20 @@ class ACCTUIApp(App):
("question_mark", "show_help", "Help"),
]

# Seven screens — six biological + PR-B prompt pane (REQ-TUI-003)
# Eight screens — six biological + PR-B prompt pane +
# proposal-003 PR-4 configuration pane (REQ-TUI-003).
SCREENS = {
"soma": DashboardScreen,
"nucleus": InfuseScreen,
"compliance": ComplianceScreen,
"comms": CommunicationsScreen,
"performance": PerformanceScreen,
"ecosystem": EcosystemScreen,
"prompt": PromptScreen, # PR-B
"soma": DashboardScreen,
"nucleus": InfuseScreen,
"compliance": ComplianceScreen,
"comms": CommunicationsScreen,
"performance": PerformanceScreen,
"ecosystem": EcosystemScreen,
"prompt": PromptScreen, # PR-B
"configuration": ConfigurationScreen, # proposal 003 PR-4
# Legacy aliases so existing code using "dashboard"/"infuse" still works
"dashboard": DashboardScreen,
"infuse": InfuseScreen,
"dashboard": DashboardScreen,
"infuse": InfuseScreen,
}

def __init__(
Expand Down Expand Up @@ -284,6 +287,7 @@ def _apply_snapshot(self, snapshot: CollectiveSnapshot) -> None:
("comms", CommunicationsScreen),
("performance", PerformanceScreen),
("ecosystem", EcosystemScreen),
("configuration", ConfigurationScreen), # proposal 003 PR-4
]
for screen_name, screen_cls in _SNAPSHOT_SCREENS:
try:
Expand Down
1 change: 1 addition & 0 deletions acc/tui/screens/comms.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ class CommunicationsScreen(Screen):
("5", "navigate('performance')", "Performance"),
("6", "navigate('ecosystem')", "Ecosystem"),
("7", "navigate('prompt')", "Prompt"),
("8", "navigate('configuration')", "Configuration"),
]

snapshot: reactive["CollectiveSnapshot | None"] = reactive(None, layout=True)
Expand Down
1 change: 1 addition & 0 deletions acc/tui/screens/compliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ class ComplianceScreen(Screen):
("5", "navigate('performance')", "Performance"),
("6", "navigate('ecosystem')", "Ecosystem"),
("7", "navigate('prompt')", "Prompt"),
("8", "navigate('configuration')", "Configuration"),
]

snapshot: reactive["CollectiveSnapshot | None"] = reactive(None, layout=True)
Expand Down
Loading