pi-ui-extend 0.1.11 → 0.1.13

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.
Files changed (45) hide show
  1. package/dist/app/app.js +6 -4
  2. package/dist/app/cli/install.d.ts +14 -0
  3. package/dist/app/cli/install.js +19 -7
  4. package/dist/app/cli/startup-info.js +5 -2
  5. package/dist/app/cli/update.d.ts +7 -0
  6. package/dist/app/cli/update.js +11 -3
  7. package/dist/app/commands/shell-command.d.ts +7 -0
  8. package/dist/app/commands/shell-command.js +12 -4
  9. package/dist/app/icons.d.ts +1 -0
  10. package/dist/app/icons.js +2 -0
  11. package/dist/app/input/prompt-enhancer-controller.d.ts +7 -1
  12. package/dist/app/input/prompt-enhancer-controller.js +12 -3
  13. package/dist/app/input/voice-controller.d.ts +49 -1
  14. package/dist/app/input/voice-controller.js +16 -5
  15. package/dist/app/rendering/conversation-entry-renderer.js +2 -11
  16. package/dist/app/rendering/status-line-renderer.js +3 -11
  17. package/dist/app/rendering/toast-renderer.js +10 -13
  18. package/dist/app/rendering/tool-block-renderer.d.ts +1 -0
  19. package/dist/app/rendering/tool-block-renderer.js +3 -2
  20. package/dist/app/screen/clipboard.d.ts +9 -0
  21. package/dist/app/screen/clipboard.js +19 -6
  22. package/dist/app/screen/file-link-opener.d.ts +8 -0
  23. package/dist/app/screen/file-link-opener.js +11 -3
  24. package/dist/app/screen/file-links.js +3 -3
  25. package/dist/app/screen/image-opener.d.ts +12 -0
  26. package/dist/app/screen/image-opener.js +13 -5
  27. package/dist/app/session/queued-message-controller.js +5 -1
  28. package/dist/app/terminal/nerd-font-controller.d.ts +16 -0
  29. package/dist/app/terminal/nerd-font-controller.js +20 -12
  30. package/dist/default-pix-config.js +7 -6
  31. package/dist/schemas/index.d.ts +5 -0
  32. package/dist/schemas/index.js +5 -0
  33. package/dist/schemas/pi-tools-suite-schema.d.ts +177 -0
  34. package/dist/schemas/pi-tools-suite-schema.js +218 -0
  35. package/dist/schemas/pix-schema.d.ts +65 -0
  36. package/dist/schemas/pix-schema.js +91 -0
  37. package/dist/terminal-width.js +73 -56
  38. package/external/pi-tools-suite/src/async-subagents/async-subagents.sample.jsonc +3 -0
  39. package/external/pi-tools-suite/src/default-pi-tools-suite-config.ts +1 -0
  40. package/external/pi-tools-suite/src/todo/index.ts +4 -2
  41. package/external/pi-tools-suite/src/todo/state/selectors.ts +4 -0
  42. package/external/pi-tools-suite/src/todo/todo.ts +2 -6
  43. package/package.json +12 -3
  44. package/schemas/pi-tools-suite.json +881 -0
  45. package/schemas/pix.json +298 -0
@@ -23,7 +23,7 @@ import {
23
23
  } from "./state/persistence.js";
24
24
  import { AUTO_CLEAR_COMPLETED_MESSAGE, autoClearCompletedTodos } from "./state/auto-clear.js";
25
25
  import { replayFromBranch } from "./state/replay.js";
26
- import { selectTasksByStatus, selectTodoCounts } from "./state/selectors.js";
26
+ import { isTaskBlocked, selectTasksByStatus, selectTodoCounts } from "./state/selectors.js";
27
27
  import { applyTaskMutation } from "./state/state-reducer.js";
28
28
  import { commitState, getState, replaceState } from "./state/store.js";
29
29
  import { buildToolResult, formatContent } from "./tool/response-envelope.js";
@@ -287,11 +287,7 @@ function filterCommandTasks(tasks: readonly Task[], options: TodosCommandOptions
287
287
  if (!options.includeDeleted) view = view.filter((task) => task.status !== "deleted");
288
288
  if (options.activeOnly) view = view.filter((task) => task.status === "pending" || task.status === "in_progress");
289
289
  if (options.readyOnly) {
290
- view = view.filter(
291
- (task) =>
292
- task.status === "pending" &&
293
- (task.blockedBy ?? []).every((id) => byId.get(id)?.status === "completed"),
294
- );
290
+ view = view.filter((task) => task.status === "pending" && !isTaskBlocked(task, byId));
295
291
  }
296
292
  if (options.status) view = view.filter((task) => task.status === options.status);
297
293
  if (options.priority) view = view.filter((task) => task.priority === options.priority);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-ui-extend",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "bin": {
@@ -14,13 +14,16 @@
14
14
  "./sdk": {
15
15
  "types": "./dist/sdk.d.ts",
16
16
  "import": "./dist/sdk.js"
17
- }
17
+ },
18
+ "./schemas/pix.json": "./schemas/pix.json",
19
+ "./schemas/pi-tools-suite.json": "./schemas/pi-tools-suite.json"
18
20
  },
19
21
  "files": [
20
22
  "bin",
21
23
  "docs",
22
24
  "dist",
23
25
  "extensions",
26
+ "schemas",
24
27
  "skills",
25
28
  "external/pi-tools-suite/index.ts",
26
29
  "external/pi-tools-suite/package.json",
@@ -34,22 +37,28 @@
34
37
  "predev": "npm run link:pix --silent",
35
38
  "dev": "mise exec node@24.16.0 -- tsx src/main.ts",
36
39
  "start": "mise exec node@24.16.0 -- tsx src/main.ts",
40
+ "prebuild:pix": "npm run generate-schemas --silent",
37
41
  "build:pix": "mise exec node@24.16.0 -- tsc -p tsconfig.json",
38
42
  "prelink:pix": "npm run build:pix --silent",
39
43
  "link:pix": "mise exec node@24.16.0 -- npm link --silent",
40
44
  "watch:pix": "npm run link:pix --silent && mise exec node@24.16.0 -- tsc -p tsconfig.json --watch --preserveWatchOutput --noEmitOnError",
41
45
  "check": "mise exec node@24.16.0 -- npm run check:inner",
46
+ "precheck:inner": "npm run generate-schemas --silent",
42
47
  "check:inner": "tsc --noEmit && npm run test:inner",
43
48
  "test": "mise exec node@24.16.0 -- npm run test:inner",
44
49
  "test:inner": "node --import tsx --test \"tests/**/*.test.ts\"",
45
50
  "test:tools-suite": "npm --prefix external/pi-tools-suite test",
46
51
  "test:coverage": "mise exec node@24.16.0 -- node --import tsx --test --experimental-test-coverage --test-coverage-include=src/**/*.ts --test-coverage-exclude=src/main.ts --test-coverage-lines=95 --test-coverage-branches=80 --test-coverage-functions=95 \"tests/**/*.test.ts\"",
47
52
  "update-sdk-references": "mise exec node@24.16.0 -- node .pi/skills/pi-sdk/scripts/update-references.mjs",
53
+ "prepack": "npm run generate-schemas --silent",
48
54
  "pack:dry-run": "npm pack --dry-run",
49
55
  "smoke-test": "mise exec node@24.16.0 -- bash scripts/smoke-test-package.sh",
50
56
  "release:check": "npm run check && npm run build:pix && npm run pack:dry-run",
51
57
  "publish-npm": "bash scripts/publish.sh",
52
- "prepublishOnly": "npm run check && npm run build:pix"
58
+ "generate-schemas": "tsx scripts/generate-schemas.ts",
59
+ "generate-schemas:check": "tsx scripts/generate-schemas.ts --check",
60
+ "generate-schemas:watch": "tsx watch scripts/generate-schemas.ts",
61
+ "prepublishOnly": "npm run check && npm run build:pix && npm run generate-schemas"
53
62
  },
54
63
  "dependencies": {
55
64
  "@earendil-works/pi-tui": "0.77.0",