@bacnh85/pi-ux 0.4.4 → 0.4.5
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/CHANGELOG.md +6 -0
- package/extensions/index.js +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/extensions/index.js
CHANGED
|
@@ -178,6 +178,12 @@ export default function uxExtension(pi) {
|
|
|
178
178
|
|
|
179
179
|
pi.registerCommand("ux", {
|
|
180
180
|
description: `Anti-slop UI/UX discipline. Modes: ${RUNTIME_MODES.join("|")}. Commands: status, default <mode>`,
|
|
181
|
+
getArgumentCompletions: (prefix) => {
|
|
182
|
+
const q = String(prefix || "").trim().toLowerCase();
|
|
183
|
+
const vocab = [...RUNTIME_MODES, "status", "default"];
|
|
184
|
+
const items = vocab.filter((k) => k.startsWith(q)).map((k) => ({ value: k, label: k }));
|
|
185
|
+
return items.length > 0 ? items : null;
|
|
186
|
+
},
|
|
181
187
|
handler: async (args, ctx) => {
|
|
182
188
|
const parsed = parseUxCommand(args, configuredDefaultMode);
|
|
183
189
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bacnh85/pi-ux",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"description": "Anti-slop UI/UX design discipline for your Pi agent — anchors a lintable DESIGN.md, runs deterministic slop-audit gates (APCA contrast + tokens + states + slop tells), works with text-only models, ships reference design-system presets.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|