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
6 changes: 2 additions & 4 deletions .stack/config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@
# ---------------------------------------------------------------------------
prelude = {
tagline = "Stackpanel devshell";
subtitle = "your environment is ready";
subtitle = "Nix shell for the framework, agent, and Studio";
settings.motd.title.text = ./title.txt;
};

Expand All @@ -679,9 +679,7 @@
motd = {
enable = true;
hints = [
"Run 'just test' to test the stackpanel shell and templates"
"Run 'just test-smoke' to test the dev shell"
"Run 'nix flake check' to run all flake checks"
"Build Stackpanel's Nix framework, Go agent, and Studio UI from here. Use 'menu' for commands; run 'just test-smoke' for a quick check."
];
};

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/modules/prelude.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ prelude = {

## Command catalogue façade

Existing modules keep writing `stackpanel.motd.commands` / `features` / `hints`. Stackpanel maps those into `prelude.commands` (sanitized keys, first five on Getting Started). Live agent/service status still comes from `stack motd --json` into Prelude’s MOTD status lights — there is **one** banner.
Existing modules keep writing `stackpanel.motd.commands` / `features` / `hints`. Stackpanel maps those into `prelude.commands` (sanitized keys, first five on Getting Started). Live agent and aggregate health status still come from `stack motd --json` into Prelude’s MOTD status lights — there is **one** banner.

```nix
stackpanel.motd.commands = [
Expand Down
2 changes: 1 addition & 1 deletion docs/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ nix develop
```

You should see **one** Prelude MOTD — project name, Getting Started commands,
feature chips, and live status lights (agent / services / health).
feature chips, and live status lights (agent / health).

## 2. Reprint the welcome banner

Expand Down
15 changes: 1 addition & 14 deletions nix/stackpanel/modules/prelude/facade.nix
Original file line number Diff line number Diff line change
Expand Up @@ -126,21 +126,8 @@ let
failLevel = "warning";
async = true;
};
services = {
order = 200;
label = "services";
check = ''
command -v stack >/dev/null 2>&1 || exit 1
json=$(stack motd --json 2>/dev/null) || exit 1
echo "$json" | jq -e '(.Services | length) == 0 or ([.Services[] | select(.Running != true)] | length) == 0' >/dev/null
'';
ok = "ok";
fail = "down";
failLevel = "warning";
async = true;
};
health = {
order = 300;
order = 200;
label = "health";
check = ''
command -v stack >/dev/null 2>&1 || exit 1
Expand Down
Loading