@invariant.guru/cli 0.5.0 → 0.5.1
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.
- package/README.md +16 -5
- package/dist/main.js +252 -252
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -86,22 +86,33 @@ 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 an **item-level tree** grouped per package and item type (agents / skills / commands / rules / contexts / instructions). Package and type rows are headers; you toggle the individual items below them (`space` toggles, `a` toggles all):
|
|
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
|
+
|
|
89
100
|
```bash
|
|
90
|
-
#
|
|
101
|
+
# Item-level tree (default)
|
|
91
102
|
invariant add-interactive
|
|
92
103
|
|
|
93
|
-
#
|
|
94
|
-
invariant add-interactive --
|
|
104
|
+
# Coarse selection: one checkbox per whole package
|
|
105
|
+
invariant add-interactive --packages
|
|
95
106
|
|
|
96
107
|
# Apply changes and sync immediately
|
|
97
108
|
invariant add-interactive --sync
|
|
98
109
|
```
|
|
99
110
|
|
|
100
|
-
|
|
111
|
+
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
112
|
|
|
102
113
|
| Option | Description |
|
|
103
114
|
|--------|-------------|
|
|
104
|
-
| `-
|
|
115
|
+
| `-p, --packages` | Select whole packages instead of individual items |
|
|
105
116
|
| `-s, --sync` | Run `invariant sync` after applying changes |
|
|
106
117
|
| `-t, --target <target>` | With `--sync`, sync only to a specific target |
|
|
107
118
|
|