REQ-DDB-WIKI-037: One click into the wiki — the live hub when it runs, else a built static site¶
What it requires
clew wiki openopens the running wiki hub's page for the repository when the state root'swiki.jsonnames a live process, ignoring a record left by a dead one; otherwise it brings the index current, builds the static site beside the index (where the hub keeps it) and opens it as a file.- It always prints the URL it opened and opens nothing with
--no-browser. - The plugin ships
/wiki, running that verb through uv at the plugin's pinned release with the wiki extra, and its manifest names the 2.0.0 surface (three tools, a prompt, the wiki as resources).
- tier
- PASS
- declared
- implemented
- priority
- P1
How it is met
Implemented by
open_mainclew/wiki/open_command.py:31
Tests (15)
Linked directly
3 tests: 3 passed
3 passed
| test | result | linked by | implementers exercised | calls away |
|---|---|---|---|---|
test_the_plugin_ships_a_wiki_command_at_its_pinned_release | passed | catalog | unknown | — |
test_a_running_hub_is_opened_instead_and_a_dead_one_ignored | passed | measured | 1 of 1: open_main | 1 |
test_without_a_hub_the_static_site_is_built_and_opened | passed | measured | 1 of 1: open_main | 1 |
Reached through calls
12 tests: 12 passed
12 passed
| test | result | linked by | implementers exercised | calls away |
|---|---|---|---|---|
test_check_refresh_brings_the_index_current_first | passed | inferred | 1 of 1: open_main | 2 |
test_the_cli_check_exits_nonzero_on_a_problem | passed | inferred | 1 of 1: open_main | 2 |
test_the_cli_creates_the_output_directory | passed | inferred | 1 of 1: open_main | 2 |
test_the_cli_prints_the_flow_as_json | passed | inferred | 1 of 1: open_main | 2 |
test_the_cli_prints_the_trace | passed | inferred | 1 of 1: open_main | 2 |
test_the_cli_takes_an_out_of_tree_config | passed | inferred | 1 of 1: open_main | 2 |
test_the_cli_writes_markdown_without_sphinx | passed | inferred | 1 of 1: open_main | 2 |
test_the_cli_writes_otlp_json_and_the_overlay | passed | inferred | 1 of 1: open_main | 2 |
test_the_command_prints_yaml_and_applies_a_reviewed_file | passed | inferred | 1 of 1: open_main | 2 |
test_the_flow_verb_prints_svg | passed | inferred | 1 of 1: open_main | 2 |
test_the_trace_cli_reads_imports_from_the_config | passed | inferred | 1 of 1: open_main | 2 |
test_wiki_check_prints_ears_notes_without_failing_on_them | passed | inferred | 1 of 1: open_main | 2 |