@invariant.guru/cli 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +18 -5
  2. package/dist/main.js +624 -611
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -86,22 +86,35 @@ invariant add everything-claude-code --sync
86
86
 
87
87
  Interactively select/unselect what's active — like `yarn upgrade-interactive`. Checked rows reflect the current activation state; checking adds, unchecking removes.
88
88
 
89
+ By default it shows a **hierarchical tree**: package → item type (agents / skills / commands / rules / contexts / instructions) → item. Toggling a package or type **cascades** to all its items. Category rows show a `(selected/total)` count and a tri-state glyph — `◉` all, `◐` some, `◯` none:
90
+
91
+ ```
92
+ ◐ nest-clean-architecture@1.0.0 (1/3)
93
+ ◯ agents (0/1)
94
+ ◯ architect
95
+ ◐ skills (1/2)
96
+ ◉ qweqwe
97
+ ◯ sdgsd
98
+ ```
99
+
100
+ Keys: `↑↓` move · `space` toggle (cascades on a package/type row) · `a` all · `i` invert · `enter` confirm.
101
+
89
102
  ```bash
90
- # Package-level selection (one checkbox per installed package)
103
+ # Item-level tree (default)
91
104
  invariant add-interactive
92
105
 
93
- # Item-level selection, grouped by package
94
- invariant add-interactive --detailed
106
+ # Coarse selection: one checkbox per whole package
107
+ invariant add-interactive --packages
95
108
 
96
109
  # Apply changes and sync immediately
97
110
  invariant add-interactive --sync
98
111
  ```
99
112
 
100
- By default an already-active package left checked is untouched, so a curated partial selection is never silently expanded — use `--detailed` to manage individual items.
113
+ In `--packages` mode an already-active package left checked is untouched, so a curated partial selection is never silently expanded — use the default item view to manage individual items.
101
114
 
102
115
  | Option | Description |
103
116
  |--------|-------------|
104
- | `-d, --detailed` | Select individual items instead of whole packages |
117
+ | `-p, --packages` | Select whole packages instead of individual items |
105
118
  | `-s, --sync` | Run `invariant sync` after applying changes |
106
119
  | `-t, --target <target>` | With `--sync`, sync only to a specific target |
107
120