@pi-unipi/command-enchantment 2.0.5 → 2.0.8
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/package.json +4 -3
- package/src/__tests__/provider.sorting.test.ts +1 -1
- package/src/index.ts +1 -1
- package/src/provider.ts +2 -2
- package/src/sorting.ts +1 -1
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-unipi/command-enchantment",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"description": "Enhanced TUI autocomplete for /unipi:* commands — colored, sorted, and grouped by package",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"main": "src/index.ts",
|
|
6
7
|
"license": "MIT",
|
|
7
8
|
"author": "Neuron Mr White",
|
|
8
9
|
"repository": {
|
|
@@ -31,8 +32,8 @@
|
|
|
31
32
|
"README.md"
|
|
32
33
|
],
|
|
33
34
|
"peerDependencies": {
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
35
|
+
"@earendil-works/pi-coding-agent": "^0.75.5",
|
|
36
|
+
"@earendil-works/pi-tui": "^0.75.5"
|
|
36
37
|
},
|
|
37
38
|
"scripts": {
|
|
38
39
|
"test": "vitest run"
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
sortTaggedItems,
|
|
12
12
|
type TaggedItem,
|
|
13
13
|
} from "../sorting.js";
|
|
14
|
-
import type { AutocompleteItem } from "@
|
|
14
|
+
import type { AutocompleteItem } from "@earendil-works/pi-tui";
|
|
15
15
|
|
|
16
16
|
// ─── Helpers ─────────────────────────────────────────────────────────
|
|
17
17
|
|
package/src/index.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* Setting: autocompleteEnhanced (default: true)
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import type { ExtensionAPI } from "@
|
|
12
|
+
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
13
13
|
import { createEnchantedProvider } from "./provider.js";
|
|
14
14
|
import { isAutocompleteEnhanced } from "./settings.js";
|
|
15
15
|
|
package/src/provider.ts
CHANGED
|
@@ -10,8 +10,8 @@ import type {
|
|
|
10
10
|
AutocompleteItem,
|
|
11
11
|
AutocompleteProvider,
|
|
12
12
|
AutocompleteSuggestions,
|
|
13
|
-
} from "@
|
|
14
|
-
import { fuzzyFilter } from "@
|
|
13
|
+
} from "@earendil-works/pi-tui";
|
|
14
|
+
import { fuzzyFilter } from "@earendil-works/pi-tui";
|
|
15
15
|
|
|
16
16
|
import {
|
|
17
17
|
COMMAND_REGISTRY,
|
package/src/sorting.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Extracted cross-item priority and merge-sort for testability.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import type { AutocompleteItem } from "@
|
|
7
|
+
import type { AutocompleteItem } from "@earendil-works/pi-tui";
|
|
8
8
|
|
|
9
9
|
// ─── Types ───────────────────────────────────────────────────────────
|
|
10
10
|
|