|
| 1 | +## MODIFIED Requirements |
| 2 | + |
| 3 | +### Requirement: Wizard prompts the user to choose install locations |
| 4 | + |
| 5 | +The wizard's location step SHALL be presented as a tool-selection step: "which tools do you want to enable Taskless for?". It SHALL offer one row per directory: `Claude Code` (`.claude/`), `Cursor` (`.cursor/`), `OpenCode` (`.opencode/`), and a row for `.agents/`. A user who arrived from a harness that reads `.agents/` SHALL NOT have to know that before recognising their harness in the list, so the `.agents/` row SHALL be labelled with harness names: the detected harnesses whose own documentation says they read `.agents/skills` (OpenCode, Codex, Gemini CLI, Crush), in catalog order, followed by `and other .agents harnesses`, for example `OpenCode, Codex, and other .agents harnesses (.agents/)`. When none of them is detected, the row SHALL name all of them, so a harness is still recognisable on a machine where nothing is detected. |
| 6 | + |
| 7 | +Every list of directories derived from the catalog SHALL name each directory at most once, however many detected tools install into it. The pre-checked set SHALL be the union of (a) every directory recorded as a target in the install manifest (`install.targets`) that matches an offered row, and (b) every detected tool's install directory, deduplicated by directory. When the manifest records no targets AND no tools are detected, `.agents/` SHALL be pre-checked as the first-run default. The canonical `.taskless/` store SHALL NOT appear as a selectable entry and SHALL NOT be pre-checked — it is always written and is never a manifest tool-directory target. |
| 8 | + |
| 9 | +Each offered entry SHALL carry an origin hint: `installed` when the entry's directory is recorded in the install manifest; otherwise `detected` when a detected tool installs into the entry's directory; otherwise `not detected`. A harness named on the `.agents/` row only because it reads `.agents/skills`, such as OpenCode, whose own directory is `.opencode/`, SHALL NOT make that row `detected` or pre-check it, since installing into both directories would give that harness the skill twice. The `installed` hint SHALL take precedence over `detected` when both apply. |
| 10 | + |
| 11 | +Unchecking a pre-checked, manifest-recorded entry SHALL cause the resulting install plan to omit that target, so the existing manifest-diff removal path removes Taskless's reference stubs from that directory. The at-least-one-tool selection rule is unchanged: the wizard SHALL require at least one checked entry. |
| 12 | + |
| 13 | +Each selected directory SHALL produce exactly one `reference` stub target; the resulting install plan always contains the single `taskless` skill and no command. The `.agents/` target SHALL be reported in the install summary as `Agent Skills`. The function that maps detected tools and manifest targets to multiselect choices SHALL be pure — it SHALL receive both the detected tools and the manifest target list as arguments and SHALL perform no filesystem access — so the mapping is unit-testable. |
| 14 | + |
| 15 | +#### Scenario: Codex is named in the tool list |
| 16 | + |
| 17 | +- **WHEN** the wizard renders the tool-selection multiselect with Codex detected, or with no `.agents` harness detected |
| 18 | +- **THEN** the `.agents/` row's label SHALL name `Codex` |
| 19 | +- **AND** exactly one entry SHALL be offered for `.agents/` |
| 20 | + |
| 21 | +#### Scenario: Detected .agents harnesses are named in catalog order |
| 22 | + |
| 23 | +- **WHEN** Codex and OpenCode are detected |
| 24 | +- **THEN** the `.agents/` row SHALL be labelled `OpenCode, Codex, and other .agents harnesses (.agents/)` |
| 25 | + |
| 26 | +#### Scenario: OpenCode is named without pre-checking .agents |
| 27 | + |
| 28 | +- **WHEN** OpenCode is the only detected tool |
| 29 | +- **THEN** the `.agents/` row's label SHALL name OpenCode |
| 30 | +- **AND** `.agents/` SHALL NOT be pre-checked and SHALL carry the `not detected` hint |
| 31 | + |
| 32 | +#### Scenario: A directory offered by two rows is pre-checked once |
| 33 | + |
| 34 | +- **WHEN** the wizard reaches the tool-selection step and Codex, Gemini CLI, and Crush are all detected |
| 35 | +- **THEN** `.agents/` SHALL appear exactly once in the pre-checked set |
| 36 | + |
| 37 | +#### Scenario: A directory offered by two rows installs once |
| 38 | + |
| 39 | +- **WHEN** the user's selection includes `.agents/` |
| 40 | +- **THEN** the install plan SHALL contain exactly one `.agents/` target |
| 41 | +- **AND** the `.agents/` skill stub SHALL be written once |
| 42 | + |
| 43 | +#### Scenario: Detected tools are pre-checked |
| 44 | + |
| 45 | +- **WHEN** the wizard reaches the tool-selection step and `.claude/` is detected |
| 46 | +- **THEN** `.claude/` SHALL be pre-checked in the multiselect |
| 47 | +- **AND** `.claude/` SHALL carry the `detected` hint when it is not recorded in the install manifest |
| 48 | + |
| 49 | +#### Scenario: Manifest-recorded locations are pre-checked |
| 50 | + |
| 51 | +- **WHEN** the wizard reaches the tool-selection step and the install manifest records `.agents/` as a target |
| 52 | +- **THEN** `.agents/` SHALL be pre-checked in the multiselect |
| 53 | +- **AND** `.agents/` SHALL carry the `installed` hint |
| 54 | + |
| 55 | +#### Scenario: Installed hint takes precedence over detected |
| 56 | + |
| 57 | +- **WHEN** the wizard reaches the tool-selection step and `.claude/` is both detected on the filesystem and recorded in the install manifest |
| 58 | +- **THEN** `.claude/` SHALL be pre-checked |
| 59 | +- **AND** `.claude/` SHALL carry the `installed` hint, not the `detected` hint |
| 60 | + |
| 61 | +#### Scenario: Unchecking an installed location removes its stubs |
| 62 | + |
| 63 | +- **WHEN** the install manifest records `.claude/` and `.agents/` as targets and the user unchecks `.claude/` while leaving `.agents/` checked |
| 64 | +- **THEN** the resulting install plan SHALL omit the `.claude/` target |
| 65 | +- **AND** the wizard summary SHALL list the `.claude/` reference stubs as removals |
| 66 | + |
| 67 | +#### Scenario: Agents is the default when nothing is detected or installed |
| 68 | + |
| 69 | +- **WHEN** the wizard reaches the tool-selection step, no tools are detected, and the install manifest records no tool-directory targets |
| 70 | +- **THEN** `.agents/` SHALL be pre-checked |
| 71 | + |
| 72 | +#### Scenario: Canonical store is not a selectable entry |
| 73 | + |
| 74 | +- **WHEN** the wizard renders the tool-selection multiselect |
| 75 | +- **THEN** `.taskless/` SHALL NOT appear as a selectable option |
| 76 | +- **AND** `.taskless/` SHALL NOT be pre-checked even though the manifest records it as a target |
| 77 | + |
| 78 | +## ADDED Requirements |
| 79 | + |
| 80 | +### Requirement: Gemini CLI and Crush detection signals |
| 81 | + |
| 82 | +Gemini CLI and Crush SHALL be detected as harnesses that read `.agents/skills`, from their own documentation: Gemini CLI reads workspace skills from `.gemini/skills/` "or the `.agents/skills/` alias", and Crush lists `.agents/skills` among its project skill directories. Each SHALL install into `.agents/`. |
| 83 | + |
| 84 | +Gemini CLI SHALL be detected when a `.gemini/` directory or a `GEMINI.md` file exists in the project root. Crush SHALL be detected when a `.crush/` directory, or a `.crushrc`, `crushrc`, `crush.json`, or `.crush.json` file, exists in the project root. |
| 85 | + |
| 86 | +#### Scenario: Gemini CLI detected by its directory |
| 87 | + |
| 88 | +- **WHEN** `.gemini/` exists in the project root |
| 89 | +- **THEN** Gemini CLI SHALL be detected |
| 90 | +- **AND** skills SHALL be installed to `.agents/skills/` |
| 91 | + |
| 92 | +#### Scenario: Crush detected by its directory |
| 93 | + |
| 94 | +- **WHEN** `.crush/` exists in the project root |
| 95 | +- **THEN** Crush SHALL be detected |
| 96 | +- **AND** skills SHALL be installed to `.agents/skills/` |
0 commit comments