Turtle
ee5132c1e1
refactor(cli): dispatch web as a reserved token, drop parse machinery
...
Simplify the Commander adapter now that behavior can change: dispatch a leading
`web` token to its own parser instead of a subcommand of the root program, and
read opts()/processedArgs after parse() instead of action closures with a
mutable holder.
This removes enablePositionalOptions(), the parent-option leak guard, both
action closures, and the --resume/--prompt argParser threading. Behavior
changes: `dsh -p x web` is a headless prompt (extra positional dropped),
`dsh web -p x` fails loud (web has no -p), and a repeated --resume is natural
last-wins. The two real fail-loud invariants stay as post-parse checks: an empty
--resume= id (agent-loop treats '' as no-resume) and an empty -p task.
Trims args.spec.ts to the routing/fail-loud/help behavior that matters; the
tui-agent keyless PTY smoke still covers bin.ts dispatch end to end. Net ~114
fewer lines across adapter and tests.
2026-07-24 20:01:38 +08:00
..
2026-07-20 16:22:20 +08:00
2026-07-19 22:52:03 +08:00
2026-07-20 00:35:06 +08:00
2026-07-19 22:52:03 +08:00
2026-07-19 22:52:03 +08:00
2026-07-19 22:52:03 +08:00
2026-07-20 00:25:31 +08:00
2026-07-19 22:52:03 +08:00
2026-07-19 22:52:03 +08:00
2026-07-19 22:52:03 +08:00
2026-07-21 14:50:06 +08:00
2026-07-20 00:35:06 +08:00
2026-07-19 22:52:03 +08:00
2026-07-21 12:48:46 +08:00
2026-07-20 19:42:41 +08:00
2026-07-20 00:15:32 +08:00
2026-07-19 22:52:03 +08:00
2026-07-20 20:16:41 +08:00
2026-07-19 22:52:03 +08:00
2026-07-23 03:59:35 +08:00
2026-07-20 18:38:22 +08:00
2026-07-19 22:52:03 +08:00
2026-07-19 22:52:03 +08:00
2026-07-19 22:52:03 +08:00
2026-07-19 22:52:03 +08:00
2026-07-19 22:52:03 +08:00
2026-07-21 20:49:14 +08:00
2026-07-19 22:52:03 +08:00
2026-07-19 22:52:03 +08:00
2026-07-19 22:52:03 +08:00
2026-07-20 19:26:04 +08:00
2026-07-21 21:11:32 +08:00
2026-07-19 22:52:03 +08:00
2026-07-20 20:39:13 +08:00
2026-07-20 20:39:13 +08:00
2026-07-20 03:34:19 +08:00
2026-07-19 22:52:03 +08:00
2026-07-19 23:43:36 +08:00
2026-07-19 22:52:03 +08:00
2026-07-20 19:26:04 +08:00
2026-07-21 10:17:55 +08:00
2026-07-21 10:17:55 +08:00
2026-07-21 10:17:55 +08:00
2026-07-22 16:37:20 +08:00
2026-07-22 16:37:20 +08:00
2026-07-22 16:37:20 +08:00
2026-07-21 22:24:45 +08:00
2026-07-22 12:06:42 +08:00
2026-07-22 12:06:42 +08:00
2026-07-22 12:06:42 +08:00
2026-07-20 03:34:19 +08:00
2026-07-20 03:34:19 +08:00
2026-07-20 03:34:19 +08:00
2026-07-19 22:52:03 +08:00
2026-07-19 22:52:03 +08:00
2026-07-19 22:52:03 +08:00
2026-07-19 22:52:03 +08:00
2026-07-19 22:52:03 +08:00
2026-07-19 22:52:03 +08:00
2026-07-21 13:52:15 +08:00
2026-07-21 13:52:15 +08:00
2026-07-21 13:52:15 +08:00
2026-07-21 21:11:32 +08:00
2026-07-21 21:11:32 +08:00
2026-07-21 21:11:32 +08:00
2026-07-21 12:48:46 +08:00
2026-07-21 12:48:46 +08:00
2026-07-21 12:48:46 +08:00
2026-07-19 23:43:36 +08:00
2026-07-19 23:43:36 +08:00
2026-07-19 23:43:36 +08:00
2026-07-23 03:59:35 +08:00
2026-07-23 03:59:35 +08:00
2026-07-23 03:59:35 +08:00
2026-07-23 04:01:06 +08:00
2026-07-23 03:59:35 +08:00
2026-07-23 03:59:35 +08:00
2026-07-21 20:15:09 +08:00
2026-07-21 20:15:09 +08:00
2026-07-21 20:15:09 +08:00
2026-07-21 01:13:28 +08:00
2026-07-21 01:13:28 +08:00
2026-07-21 01:13:28 +08:00
2026-07-20 20:39:13 +08:00
2026-07-20 20:39:13 +08:00
2026-07-20 20:39:13 +08:00
2026-07-20 15:34:00 +08:00
2026-07-20 15:34:00 +08:00
2026-07-20 15:34:00 +08:00
2026-07-23 03:30:06 +08:00
2026-07-23 03:30:06 +08:00
2026-07-23 03:30:06 +08:00
2026-07-24 20:01:38 +08:00
2026-07-24 20:01:38 +08:00
2026-07-24 20:01:38 +08:00
2026-07-21 15:57:17 +08:00
2026-07-21 15:57:17 +08:00
2026-07-21 15:57:17 +08:00