fix(intent): make first-run permission selection compact #243
Merged
LadyBluenotes(GitHub profile, opens in a new tab)merged 3 commits into
main fromrefs/pull/243/head·merged by LadyBluenotes(GitHub profile, opens in a new tab) Showing 13 changed files with 39 additions and 20 deletions (loading 10).
x
@@ -2,4 +2,4 @@
-Add grouped interactive first-run skill permission setup to `intent install`. Preview discovered skills and their permission scope, choose package-wide or exact-skill access, and confirm before saving. Excluded skills cannot be selected, empty discovery leaves setup available for retry, and completion reports available skills and the next command.
+Add interactive first-run skill permission setup to `intent install`. Enable all sources, choose packages or scopes, or select individual skills in compact searchable lists. Save package and scope rules without expanding them into individual names. Optional skill review shows only selected packages and opens individual skill lists only for packages chosen for review. Keep all other selections and exclusions, with one confirmation before saving. Inspect descriptions and existing exclusions on demand; excluded skills cannot be enabled, empty discovery leaves setup available for retry, and completion reports available skills and the next command.
@@ -33,21 +33,28 @@
-1. **Review** discovered npm and workspace packages, versions, and skill descriptions. Excluded candidates appear in the overview but cannot be selected.
-2. **Choose** permissions. After the overview, Intent asks about allow-all; choose No to select individual packages or skills. Press Space to toggle grouped choices and Enter to review.
-3. **Confirm** the exact `intent.skills` value, destination file, and trust change. Confirmation defaults to No.
-4. **Finish** with verified guidance, available skill and package counts, and a package-manager-aware `list` command. If no skills are enabled, Intent explains how to edit `intent.skills`.
+1. **Choose what to enable.** Pick **Enable all**, **Choose packages or scopes**, or **Choose individual skills**. Package and skill lists support search.
+2. **Confirm once.** Check the current skill count, saved rules, and destination file. Choose **Continue with all selected skills** to save, **Review individual skills** to inspect specific packages, or **Cancel**. Cancel is selected by default.
+3. **Finish** with verified guidance, available skill and package counts, and a command to list those skills.
-#### Permission choices
+Descriptions, exclusions, and information about skill updates are optional choices on the setup screen.
-| Choice | Effect |
-| --- | --- |
-| All skills in a package | Permits its current and future skills. |
-| Individual skill | Permits only the named skill. |
-| Allow all sources | Writes `["*"]` and skips narrower selection. |
-| Select nothing | Explicitly confirms writing `[]`, disabling current and future sources until `intent.skills` is edited. |