@pi-unipi/command-enchantment 2.0.2 → 2.0.4
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 +36 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# @pi-unipi/command-enchantment
|
|
2
|
+
|
|
3
|
+
Enhanced autocomplete for Unipi commands. It wraps Pi's base autocomplete provider and makes `/unipi:*` suggestions easier to scan with package grouping, stable sorting, short descriptions, and package colors.
|
|
4
|
+
|
|
5
|
+
## Commands
|
|
6
|
+
|
|
7
|
+
Command Enchantment has no user commands. It improves the editor autocomplete experience automatically when the package is installed.
|
|
8
|
+
|
|
9
|
+
## What It Does
|
|
10
|
+
|
|
11
|
+
- Groups `/unipi:*` commands by package so workflow, memory, web, footer, and other commands are visually distinct.
|
|
12
|
+
- Sorts matches in predictable tiers: exact Unipi matches first, then other Unipi matches, then system commands.
|
|
13
|
+
- Preserves dynamic argument completions from command providers, including workflow document and worktree suggestions.
|
|
14
|
+
- Ships an audit test that checks registered Unipi commands are represented in the autocomplete registry and have descriptions.
|
|
15
|
+
|
|
16
|
+
## Development Checks
|
|
17
|
+
|
|
18
|
+
Run the registry audit before releases:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm --workspace packages/autocomplete test -- src/__tests__/command-registry.audit.test.ts
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Run all autocomplete tests:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npm --workspace packages/autocomplete test
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Configuration
|
|
31
|
+
|
|
32
|
+
Autocomplete enhancement is enabled by default. The package stores its toggle in the Unipi config and can be disabled by setting `autocompleteEnhanced` to `false`.
|
|
33
|
+
|
|
34
|
+
## License
|
|
35
|
+
|
|
36
|
+
MIT
|