Every built-in is a command typed under its own name (FZTA-24) #209

Merged
merge-queue merged 2 commits from fzta-24-typeable-builtins into main 2026-11-29 16:04:47 -08:00
Owner

Work package: https://openproject.home.romaine.life/wp/FZTA-24
Needs: https://openproject.home.romaine.life/wp/AHT-234 (at-update's commands field) delivered to every PC first. Until then at-update rejects this at-app.json as an unknown field, so this PR is held.

Nelson's requirement: nothing is reachable only through the at menu. Every built-in must be typeable in a shell under its own name, and that must be enforced.

Added:

  • at-app.json lists every built-in under commands. at-update installs each name as a hard link to fzt-automate.exe in current, which is on PATH.
  • main runs the built-in named by the program's own name, so resume-claude.exe is fzt-automate resume-claude.
  • TestEveryBuiltinIsACommand fails when the built-ins and that list differ. A new built-in can't ship without its command.
  • A folder built-in (windows, programs, reboot, …) typed at a prompt opens its folder as a picker and runs the pick, as the menu does. Piped, it prints rows as before.
  • The README states the rule.

Renamed: the fzt-picker built-in is now restart-fzt-picker. As a command, the old name would collide on PATH with the fzt-picker tool itself. The at menu's "fzt-picker" entry runs by its name, so it gets an explicit restart-fzt-picker action through menu-save once this release is installed.

Unchanged: fzt-automate <built-in> and every menu entry work as before.

Tested: unit tests (the list check, program-name parsing). On this PC with test copies: a hard-linked resume-claude.exe ran the resume-claude built-in (usage error for bad arguments), windows.exe | … printed rows, and windows.exe typed in a PowerShell tab on a throwaway tmux server opened the window picker, which Esc closed with exit 130.

🤖 Generated with Claude Code

Work package: https://openproject.home.romaine.life/wp/FZTA-24 Needs: https://openproject.home.romaine.life/wp/AHT-234 (at-update's `commands` field) delivered to every PC first. Until then at-update rejects this at-app.json as an unknown field, so this PR is held. Nelson's requirement: nothing is reachable only through the at menu. Every built-in must be typeable in a shell under its own name, and that must be enforced. **Added:** - `at-app.json` lists every built-in under `commands`. at-update installs each name as a hard link to `fzt-automate.exe` in `current`, which is on PATH. - `main` runs the built-in named by the program's own name, so `resume-claude.exe` is `fzt-automate resume-claude`. - `TestEveryBuiltinIsACommand` fails when the built-ins and that list differ. A new built-in can't ship without its command. - A folder built-in (`windows`, `programs`, `reboot`, …) typed at a prompt opens its folder as a picker and runs the pick, as the menu does. Piped, it prints rows as before. - The README states the rule. **Renamed:** the `fzt-picker` built-in is now `restart-fzt-picker`. As a command, the old name would collide on PATH with the fzt-picker tool itself. The at menu's "fzt-picker" entry runs by its name, so it gets an explicit `restart-fzt-picker` action through `menu-save` once this release is installed. **Unchanged:** `fzt-automate <built-in>` and every menu entry work as before. Tested: unit tests (the list check, program-name parsing). On this PC with test copies: a hard-linked `resume-claude.exe` ran the resume-claude built-in (usage error for bad arguments), `windows.exe | …` printed rows, and `windows.exe` typed in a PowerShell tab on a throwaway tmux server opened the window picker, which Esc closed with exit 130. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Every built-in is a command typed under its own name (FZTA-24)
Some checks failed
Suite release / deliver (pull_request) Has been skipped
Suite default / scope (pull_request) Successful in 5s
Suite go / scope (pull_request) Successful in 5s
Suite default / check-fetches (pull_request) Has been skipped
Suite release / scope (pull_request) Successful in 5s
Suite release / module (pull_request) Has been skipped
Suite release / reserve (pull_request) Has been skipped
Suite release / check-build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (pull_request) Has been skipped
Suite release / check-package (pull_request) Has been skipped
Suite release / deliver-prune (pull_request) Has been skipped
Suite go / check-services (pull_request) Has been skipped
Suite default / check-rules (pull_request) Successful in 6s
Suite default / check-logs (pull_request) Successful in 6s
Suite go / check-format (pull_request) Successful in 7s
Suite go / check-test-linux (pull_request) Failing after 11s
Suite default / reused-checks (pull_request) Successful in 5s
Suite go / check-test-windows (pull_request) Successful in 43s
Suite go / reused-checks (pull_request) Successful in 4s
Suite release / build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (pull_request) Has been skipped
Suite release / finalize (pull_request) Has been skipped
Suite release / publish (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite release / reused-checks (pull_request) Successful in 6s
merge-queue CI failed: Suite go / check-test-linux (pull_request)
a94c16df9a
Collaborator

merge-queue stopped this at a94c16d: CI failed: Suite go / check-test-linux (pull_request). Push a fix. A failure fixed on main lands once the queue label is removed and added again: the queue merges main in and CI runs on the new head.

merge-queue stopped this at a94c16d: CI failed: Suite go / check-test-linux (pull_request). Push a fix. A failure fixed on main lands once the `queue` label is removed and added again: the queue merges main in and CI runs on the new head.
The commands list is exact on Windows, where at-update installs it (FZTA-24)
All checks were successful
Suite release / publish (pull_request) Has been skipped
Suite go / reused-checks (pull_request) Successful in 4s
merge-queue landed on main
Suite release / scope (pull_request) Successful in 5s
Suite release / deliver (pull_request) Has been skipped
Suite default / check-rules (pull_request) Successful in 6s
Suite default / check-logs (pull_request) Successful in 6s
Suite release / reused-checks (pull_request) Successful in 6s
Suite release / deliver-prune (pull_request) Has been skipped
Suite go / check-format (pull_request) Successful in 7s
Suite default / reused-checks (pull_request) Successful in 4s
Suite go / check-test-windows (pull_request) Successful in 44s
Suite go / check-test-linux (pull_request) Successful in 11s
Suite release / check-package (pull_request) Has been skipped
Suite release / build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (pull_request) Has been skipped
Suite release / finalize (pull_request) Has been skipped
Suite go / scope (pull_request) Successful in 5s
Suite default / scope (pull_request) Successful in 5s
Suite go / check-services (pull_request) Has been skipped
Suite default / check-fetches (pull_request) Has been skipped
Suite release / module (pull_request) Has been skipped
Suite release / reserve (pull_request) Has been skipped
Suite release / check-build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
c7ead45546
merge-queue deleted branch fzta-24-typeable-builtins 2026-11-29 16:04:47 -08:00
Sign in to join this conversation.
No description provided.