@timurproko/a1 0.1.8-dev.510 → 0.1.8-dev.518
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DynamicBorder, keyHint, rawKeyHint } from "../startup-public.js";
|
|
2
|
-
import { Container, getKeybindings, Input, Spacer, Text } from "@earendil-works/pi-tui";
|
|
2
|
+
import { Container, getKeybindings, Input, Spacer, Text, TruncatedText } from "@earendil-works/pi-tui";
|
|
3
3
|
import { PINNED_PI_LAYOUT, piTheme } from "./theme.js";
|
|
4
4
|
import { componentPort, ensureTheme } from "./shell-shared-facade.js";
|
|
5
5
|
import { SKILL_COMMAND_PREFIX, skillMatchesQuery } from "./skills-command.js";
|
|
@@ -7,8 +7,8 @@ import { SKILL_COMMAND_PREFIX, skillMatchesQuery } from "./skills-command.js";
|
|
|
7
7
|
* The A1-owned searchable Skills dialog. Its composition is the model selector's (border, spacer,
|
|
8
8
|
* search input, spacer, list, spacer, hint footer, border) built from public pi-tui components; its
|
|
9
9
|
* content follows the v2 skills extension: an accent bold title, `skill:<name>` rows, the selected
|
|
10
|
-
* skill's one
|
|
11
|
-
* empty states. Enter applies the selected skill with no arguments; the query is never appended.
|
|
10
|
+
* skill's description truncated to one line under the rows, the pinned scroll counter on overflow,
|
|
11
|
+
* and the two empty states. Enter applies the selected skill with no arguments; the query is never appended.
|
|
12
12
|
*/
|
|
13
13
|
class SkillsSelectorComponent extends Container {
|
|
14
14
|
#searchInput = new Input();
|
|
@@ -102,7 +102,8 @@ class SkillsSelectorComponent extends Container {
|
|
|
102
102
|
const description = this.#filtered[this.#selectedIndex]?.description ?? "";
|
|
103
103
|
if (description.length > 0) {
|
|
104
104
|
this.#listContainer.addChild(new Spacer(1));
|
|
105
|
-
|
|
105
|
+
// Invariant: the description never wraps; it is cut to the viewport width with an ellipsis.
|
|
106
|
+
this.#listContainer.addChild(new TruncatedText(theme.fg("muted", ` ${description}`), 0, 0));
|
|
106
107
|
}
|
|
107
108
|
}
|
|
108
109
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"platform": "darwin",
|
|
6
6
|
"architecture": "arm64",
|
|
7
7
|
"capability": "supported",
|
|
8
|
-
"builtAt": "2026-09-
|
|
8
|
+
"builtAt": "2026-09-19T16:47:03.520Z",
|
|
9
9
|
"artifact": {
|
|
10
10
|
"filename": "process-guardian",
|
|
11
11
|
"sha256": "9db1726bbe3fc2e8292f2ead1e7e9d0fd4d7d0dc9217b372582bf354b0f565dc",
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"platform": "linux",
|
|
6
6
|
"architecture": "x64",
|
|
7
7
|
"capability": "supported",
|
|
8
|
-
"builtAt": "2026-09-
|
|
8
|
+
"builtAt": "2026-09-19T16:46:51.393Z",
|
|
9
9
|
"artifact": {
|
|
10
10
|
"filename": "process-guardian",
|
|
11
11
|
"sha256": "d8cda6b0c7cb36c0cc41e90802aceebf6c02eaebbc08a83d7d963d2e918dbd7a",
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
"platform": "win32",
|
|
6
6
|
"architecture": "x64",
|
|
7
7
|
"capability": "supported",
|
|
8
|
-
"builtAt": "2026-09-
|
|
8
|
+
"builtAt": "2026-09-19T16:47:27.951Z",
|
|
9
9
|
"artifact": {
|
|
10
10
|
"filename": "process-guardian.exe",
|
|
11
|
-
"sha256": "
|
|
11
|
+
"sha256": "760dc53aa17d5e0df1c0fa5cbd3be56f73b6cf662b0cef5994edffff68ca9d8f",
|
|
12
12
|
"size": 177664
|
|
13
13
|
},
|
|
14
14
|
"provenance": {
|
|
Binary file
|
package/package.json
CHANGED