@herbertgao/pi-extensions 2026.11.11 → 2026.11.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 (262) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +13 -11
  3. package/THIRD_PARTY_NOTICES.md +3 -3
  4. package/node_modules/@herbertgao/pi-cc-extensions/CHANGELOG.md +10 -0
  5. package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +3 -4
  6. package/node_modules/@herbertgao/pi-cc-extensions/README.md +3 -4
  7. package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/agent-summary/core.ts +22 -15
  8. package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/agent-summary/index.ts +22 -8
  9. package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/context.ts +0 -29
  10. package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/prompt-editor.ts +5 -2
  11. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/compact-mode.ts +60 -39
  12. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/mouse/interaction.ts +3 -2
  13. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/codemode.ts +0 -40
  14. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/diff-parse.ts +4 -1
  15. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/grouping.ts +21 -3
  16. package/node_modules/@herbertgao/pi-cc-extensions/extensions/utils/format.ts +15 -0
  17. package/node_modules/@herbertgao/pi-cc-extensions/package.json +4 -4
  18. package/node_modules/@herbertgao/pi-impeccable/CHANGELOG.md +6 -0
  19. package/node_modules/@herbertgao/pi-impeccable/README.md +2 -2
  20. package/node_modules/@herbertgao/pi-impeccable/package.json +4 -4
  21. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/SKILL.md +2 -2
  22. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/adapt.md +1 -1
  23. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/animate.md +17 -0
  24. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/critique-rubric.md +496 -0
  25. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/critique.md +12 -504
  26. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/motion-reviewer.md +29 -0
  27. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/hooks.md +3 -3
  28. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work-comp.md +24 -0
  29. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work-world.md +20 -0
  30. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work.md +5 -34
  31. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/typeset.md +6 -0
  32. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/VERSION +1 -1
  33. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/engine-checksums.txt +5 -5
  34. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/live-browser.js +17 -18
  35. package/node_modules/@herbertgao/pi-inline-skill-commands/LICENSE +21 -0
  36. package/node_modules/@herbertgao/pi-inline-skill-commands/README.md +33 -0
  37. package/node_modules/@herbertgao/pi-inline-skill-commands/package.json +53 -0
  38. package/node_modules/@herbertgao/pi-inline-skill-commands/src/index.ts +213 -0
  39. package/node_modules/pi-antigravity/README.md +58 -9
  40. package/node_modules/pi-antigravity/docs/reader-guarantees.md +35 -0
  41. package/node_modules/pi-antigravity/package.json +15 -6
  42. package/node_modules/pi-antigravity/src/client/client.ts +63 -14
  43. package/node_modules/pi-antigravity/src/client/enterprise.ts +150 -0
  44. package/node_modules/pi-antigravity/src/client/index.ts +1 -0
  45. package/node_modules/pi-antigravity/src/diagnostics/diagnostics.ts +7 -0
  46. package/node_modules/pi-antigravity/src/features/generate-image.ts +56 -2
  47. package/node_modules/pi-antigravity/src/features/read-url-content.ts +124 -0
  48. package/node_modules/pi-antigravity/src/image/image.ts +16 -2
  49. package/node_modules/pi-antigravity/src/index.ts +145 -2
  50. package/node_modules/pi-antigravity/src/models/discovery.ts +3 -4
  51. package/node_modules/pi-antigravity/src/models/grouping.ts +39 -15
  52. package/node_modules/pi-antigravity/src/models/models.ts +126 -14
  53. package/node_modules/pi-antigravity/src/stream/stream.ts +189 -30
  54. package/node_modules/pi-antigravity/src/types/types.ts +30 -1
  55. package/node_modules/pi-antigravity/src/usage/usage.ts +58 -0
  56. package/node_modules/pi-antigravity/src/utils/address.ts +180 -0
  57. package/node_modules/pi-antigravity/src/utils/credits.ts +149 -0
  58. package/node_modules/pi-antigravity/src/utils/html.ts +31 -0
  59. package/node_modules/pi-antigravity/src/utils/index.ts +2 -0
  60. package/node_modules/pi-antigravity/src/utils/security.ts +172 -13
  61. package/node_modules/pi-antigravity/src/utils/text.ts +66 -0
  62. package/node_modules/pi-antigravity/src/utils/util.ts +5 -4
  63. package/node_modules/pi-antigravity/src/web-fetch/document.ts +83 -0
  64. package/node_modules/pi-antigravity/src/web-fetch/fences.ts +24 -0
  65. package/node_modules/pi-antigravity/src/web-fetch/header.ts +97 -0
  66. package/node_modules/pi-antigravity/src/web-fetch/index.ts +3 -0
  67. package/node_modules/pi-antigravity/src/web-fetch/inspect.ts +328 -0
  68. package/node_modules/pi-antigravity/src/web-fetch/limits.ts +4 -0
  69. package/node_modules/pi-antigravity/src/web-fetch/markdown.ts +744 -0
  70. package/node_modules/pi-antigravity/src/web-fetch/mdn.ts +164 -0
  71. package/node_modules/pi-antigravity/src/web-fetch/media.ts +11 -0
  72. package/node_modules/pi-antigravity/src/web-fetch/metadata.ts +9 -0
  73. package/node_modules/pi-antigravity/src/web-fetch/representation.ts +93 -0
  74. package/node_modules/pi-antigravity/src/web-fetch/save.ts +71 -0
  75. package/node_modules/pi-antigravity/src/web-fetch/sites.ts +138 -0
  76. package/node_modules/pi-antigravity/src/web-fetch/vendor.d.ts +9 -0
  77. package/node_modules/pi-antigravity/src/web-fetch/web-fetch.ts +957 -0
  78. package/node_modules/pi-antigravity/tsconfig.json +2 -2
  79. package/node_modules/pi-commandcode-provider/CHANGELOG.md +10 -0
  80. package/node_modules/pi-commandcode-provider/README.md +2 -2
  81. package/node_modules/pi-commandcode-provider/package.json +1 -1
  82. package/node_modules/pi-commandcode-provider/src/commandcode-catalog.ts +15 -9
  83. package/node_modules/pi-commandcode-provider/src/oauth.ts +69 -12
  84. package/node_modules/pi-lens/CHANGELOG-USER.md +6 -6
  85. package/node_modules/pi-lens/CHANGELOG.md +172 -0
  86. package/node_modules/pi-lens/README.md +103 -217
  87. package/node_modules/pi-lens/dist/{chunk-KXDQD34C.js → chunk-27JQHK7Y.js} +1 -1
  88. package/node_modules/pi-lens/dist/{chunk-W6VLB6LL.js → chunk-2APSZHHI.js} +61 -3
  89. package/node_modules/pi-lens/dist/{chunk-5EEWCJG7.js → chunk-2H5GHZKC.js} +8 -8
  90. package/node_modules/pi-lens/dist/{chunk-TS5EIWEF.js → chunk-2H7NFZ4Q.js} +11 -11
  91. package/node_modules/pi-lens/dist/{chunk-6GWCYEP7.js → chunk-37IDWT6O.js} +64 -16
  92. package/node_modules/pi-lens/dist/{chunk-OEPWTSUG.js → chunk-3PAS2ERX.js} +8 -8
  93. package/node_modules/pi-lens/dist/{chunk-ET3DSSFZ.js → chunk-3PO4YYOX.js} +9 -17
  94. package/node_modules/pi-lens/dist/{chunk-C6V2DSZZ.js → chunk-3QXFUP6T.js} +11 -11
  95. package/node_modules/pi-lens/dist/{chunk-HWMNTQBJ.js → chunk-3TSMQZG6.js} +32 -11
  96. package/node_modules/pi-lens/dist/{chunk-QY6J2FTK.js → chunk-4DAHGU3V.js} +15 -14
  97. package/node_modules/pi-lens/dist/{chunk-PCREZ4HJ.js → chunk-4IZZEN63.js} +33 -34
  98. package/node_modules/pi-lens/dist/{chunk-OYXD2MOM.js → chunk-5HBQL7DH.js} +2 -2
  99. package/node_modules/pi-lens/dist/{chunk-B4FAFEBP.js → chunk-5JB4WENL.js} +1 -1
  100. package/node_modules/pi-lens/dist/chunk-5YJXF2IS.js +56 -0
  101. package/node_modules/pi-lens/dist/{chunk-GHATCG2A.js → chunk-6CFSDLHE.js} +22 -18
  102. package/node_modules/pi-lens/dist/{chunk-FVQKX5KI.js → chunk-6E5QLMWI.js} +24 -22
  103. package/node_modules/pi-lens/dist/{chunk-AVBEPUCD.js → chunk-6GLMMGCX.js} +2 -2
  104. package/node_modules/pi-lens/dist/{chunk-YTXFNCVN.js → chunk-74AMPWNC.js} +2 -2
  105. package/node_modules/pi-lens/dist/{chunk-K2GV34T2.js → chunk-7CLWC2UH.js} +26 -37
  106. package/node_modules/pi-lens/dist/{chunk-MOEWCPMC.js → chunk-7DPXUPRF.js} +2 -2
  107. package/node_modules/pi-lens/dist/{chunk-7BEADGAZ.js → chunk-7U36VQL6.js} +2 -2
  108. package/node_modules/pi-lens/dist/{chunk-PPYUBO6Y.js → chunk-7WKVCZI4.js} +1 -1
  109. package/node_modules/pi-lens/dist/{chunk-ILC2B7IJ.js → chunk-7ZVTFLCC.js} +10 -10
  110. package/node_modules/pi-lens/dist/{chunk-IT7MFVGP.js → chunk-ADYQRETD.js} +2 -2
  111. package/node_modules/pi-lens/dist/{chunk-NCDH2JB7.js → chunk-ARTYCUGF.js} +25 -10
  112. package/node_modules/pi-lens/dist/{chunk-Z6WTLVUL.js → chunk-AXAR5ZW2.js} +225 -104
  113. package/node_modules/pi-lens/dist/{chunk-PK3GDU4M.js → chunk-AZG5UJYY.js} +1 -1
  114. package/node_modules/pi-lens/dist/{chunk-NRVWLTOY.js → chunk-B2OXE4AH.js} +60 -21
  115. package/node_modules/pi-lens/dist/{chunk-ORYQGVC3.js → chunk-B42AIWPJ.js} +2 -2
  116. package/node_modules/pi-lens/dist/{chunk-IC4L65U7.js → chunk-BBSDJTOV.js} +12 -13
  117. package/node_modules/pi-lens/dist/{chunk-HJWF7CGW.js → chunk-BKWFDWYM.js} +16 -16
  118. package/node_modules/pi-lens/dist/{chunk-D2ZYRI7M.js → chunk-C5PLBTNR.js} +1 -1
  119. package/node_modules/pi-lens/dist/{chunk-SRXYSLMW.js → chunk-CQY2HEH7.js} +1 -1
  120. package/node_modules/pi-lens/dist/{chunk-7424ANRU.js → chunk-CXQYK4YT.js} +1 -1
  121. package/node_modules/pi-lens/dist/{chunk-HYR25MV3.js → chunk-CZJGAOKL.js} +8 -7
  122. package/node_modules/pi-lens/dist/{chunk-DIIDMDZU.js → chunk-DCA2MXVQ.js} +11 -11
  123. package/node_modules/pi-lens/dist/{chunk-K2LD6YNH.js → chunk-DFKOA74L.js} +9 -9
  124. package/node_modules/pi-lens/dist/{chunk-AYDE7RFV.js → chunk-DI4AZZNY.js} +2 -2
  125. package/node_modules/pi-lens/dist/{chunk-6EXGCXM5.js → chunk-G53LBDNU.js} +99 -5
  126. package/node_modules/pi-lens/dist/chunk-GCSDF5IE.js +27 -0
  127. package/node_modules/pi-lens/dist/{chunk-5KLRCUDT.js → chunk-H5API74E.js} +6 -6
  128. package/node_modules/pi-lens/dist/chunk-HBX55MWO.js +27 -0
  129. package/node_modules/pi-lens/dist/{chunk-JRSS6KM4.js → chunk-HIJ4CHFF.js} +2 -2
  130. package/node_modules/pi-lens/dist/{chunk-3MHY4BQY.js → chunk-HIRBC72R.js} +4 -4
  131. package/node_modules/pi-lens/dist/{chunk-F7AMFFVK.js → chunk-HRLF35WL.js} +8 -8
  132. package/node_modules/pi-lens/dist/{chunk-HSTN27NR.js → chunk-I2FYOZNW.js} +9 -9
  133. package/node_modules/pi-lens/dist/{chunk-5FDUKJZO.js → chunk-I3NZVAMN.js} +9 -9
  134. package/node_modules/pi-lens/dist/{chunk-NZINZCHB.js → chunk-INBK3HIT.js} +3 -3
  135. package/node_modules/pi-lens/dist/{chunk-PXGVB2CY.js → chunk-J2ZB5MDS.js} +20 -18
  136. package/node_modules/pi-lens/dist/{chunk-HYDJUVOE.js → chunk-JGUDT5KD.js} +4 -4
  137. package/node_modules/pi-lens/dist/chunk-JOIKBUQN.js +88 -0
  138. package/node_modules/pi-lens/dist/{chunk-AZXTLZHE.js → chunk-K4Z7MK6T.js} +169 -165
  139. package/node_modules/pi-lens/dist/{chunk-WTSQKJAR.js → chunk-K7O6AHSJ.js} +10 -10
  140. package/node_modules/pi-lens/dist/{chunk-S6ZQFPOX.js → chunk-KNJH6WJQ.js} +6 -6
  141. package/node_modules/pi-lens/dist/{chunk-SUIZOCSY.js → chunk-KNSOA43J.js} +1 -1
  142. package/node_modules/pi-lens/dist/{chunk-3QMLB4TI.js → chunk-KXGTLAUW.js} +2 -2
  143. package/node_modules/pi-lens/dist/{chunk-OHEUOWYT.js → chunk-KZ732ZVW.js} +1 -1
  144. package/node_modules/pi-lens/dist/{chunk-G3LR6V6N.js → chunk-L6BDRYUK.js} +19 -17
  145. package/node_modules/pi-lens/dist/{chunk-OVPR3GQ6.js → chunk-LGH2HHZG.js} +24 -6
  146. package/node_modules/pi-lens/dist/{chunk-3R3Z54J7.js → chunk-LOEJFTF2.js} +1 -1
  147. package/node_modules/pi-lens/dist/{chunk-HGEE5LDW.js → chunk-LQQNFCQJ.js} +1 -1
  148. package/node_modules/pi-lens/dist/chunk-LVLPA32Q.js +810 -0
  149. package/node_modules/pi-lens/dist/chunk-M2YMBT5G.js +73 -0
  150. package/node_modules/pi-lens/dist/{chunk-Z2W5YJBW.js → chunk-MJRGPEQ5.js} +11 -11
  151. package/node_modules/pi-lens/dist/{chunk-3EIZMRXI.js → chunk-MOAVEPC4.js} +10 -10
  152. package/node_modules/pi-lens/dist/{chunk-TOOXNL6M.js → chunk-NGNBJIUO.js} +7 -7
  153. package/node_modules/pi-lens/dist/{chunk-AGEQRJ5A.js → chunk-NHA5K226.js} +1 -1
  154. package/node_modules/pi-lens/dist/{chunk-YLW26OHX.js → chunk-NNEQOC3U.js} +31 -59
  155. package/node_modules/pi-lens/dist/{chunk-ZWZD4TJ5.js → chunk-O2MHF7QM.js} +35 -36
  156. package/node_modules/pi-lens/dist/{chunk-PTJXMYRY.js → chunk-OLWGYBYT.js} +15 -16
  157. package/node_modules/pi-lens/dist/{chunk-JKAVKTMY.js → chunk-OZQQ3AIR.js} +17 -20
  158. package/node_modules/pi-lens/dist/{chunk-6JLNZ6DP.js → chunk-P5MSLVUW.js} +10 -10
  159. package/node_modules/pi-lens/dist/{chunk-OF2YGDUE.js → chunk-PFJLYRO3.js} +37 -38
  160. package/node_modules/pi-lens/dist/chunk-PKWEBMCA.js +2957 -0
  161. package/node_modules/pi-lens/dist/{chunk-JLMS7EMD.js → chunk-PPQHMSPH.js} +16 -15
  162. package/node_modules/pi-lens/dist/{chunk-6EIV3H7O.js → chunk-PQF6YGYB.js} +12 -5
  163. package/node_modules/pi-lens/dist/{chunk-VU2PRGRI.js → chunk-PQXUZYTQ.js} +4 -4
  164. package/node_modules/pi-lens/dist/{chunk-MV6ST2KT.js → chunk-Q7J3JYJ2.js} +13 -12
  165. package/node_modules/pi-lens/dist/{chunk-BMMRLJA4.js → chunk-QE5DJ7MX.js} +27 -10
  166. package/node_modules/pi-lens/dist/{chunk-IZ36G463.js → chunk-QE7BJQ6K.js} +7 -7
  167. package/node_modules/pi-lens/dist/{chunk-E5SSUV2A.js → chunk-QMWKSYWB.js} +4 -4
  168. package/node_modules/pi-lens/dist/{chunk-QJ4T73J5.js → chunk-QV3JPCMK.js} +1 -1
  169. package/node_modules/pi-lens/dist/{chunk-3PMLYGJN.js → chunk-R4L7KZ7R.js} +5 -5
  170. package/node_modules/pi-lens/dist/{chunk-7ZVEFWOE.js → chunk-RIH3UBK4.js} +10 -10
  171. package/node_modules/pi-lens/dist/{chunk-T5EGSBM2.js → chunk-RJ3APNIP.js} +3 -3
  172. package/node_modules/pi-lens/dist/{chunk-AAIVSSUU.js → chunk-S6MCMD27.js} +35 -12
  173. package/node_modules/pi-lens/dist/{chunk-SF7KSXB5.js → chunk-SCU62JLX.js} +6 -6
  174. package/node_modules/pi-lens/dist/{chunk-FDLGJFAE.js → chunk-SDYLT45T.js} +3 -3
  175. package/node_modules/pi-lens/dist/chunk-TFKN5EIR.js +27 -0
  176. package/node_modules/pi-lens/dist/{chunk-Y7XMKBFP.js → chunk-TKOFTLGB.js} +34 -26
  177. package/node_modules/pi-lens/dist/chunk-TQWRH25U.js +35 -0
  178. package/node_modules/pi-lens/dist/{chunk-DZSQXG66.js → chunk-TWEOJE3D.js} +277 -62
  179. package/node_modules/pi-lens/dist/{chunk-R67WQ5RY.js → chunk-UN72ZAJ5.js} +8 -8
  180. package/node_modules/pi-lens/dist/{chunk-AD7JDEI6.js → chunk-UNP6Y4JV.js} +16 -16
  181. package/node_modules/pi-lens/dist/{chunk-D6ANA6YU.js → chunk-VGRGW4UL.js} +63 -55
  182. package/node_modules/pi-lens/dist/{chunk-DFAY7JUN.js → chunk-VSQT6IHZ.js} +2 -2
  183. package/node_modules/pi-lens/dist/{chunk-7T64QA5D.js → chunk-VWEBZ2JV.js} +39 -38
  184. package/node_modules/pi-lens/dist/{chunk-HRQTYU2T.js → chunk-W26QZ3OM.js} +1 -1
  185. package/node_modules/pi-lens/dist/{chunk-2HWVG3IM.js → chunk-XDNWR7SG.js} +2 -2
  186. package/node_modules/pi-lens/dist/{chunk-75TVYCQW.js → chunk-XSC3BCN3.js} +5 -5
  187. package/node_modules/pi-lens/dist/{chunk-ME6MF2N2.js → chunk-YCR6ZYTE.js} +1 -1
  188. package/node_modules/pi-lens/dist/{chunk-LD7SXICE.js → chunk-ZI7YHV6I.js} +5 -5
  189. package/node_modules/pi-lens/dist/{chunk-E3PNZDPH.js → chunk-ZQSSO7LO.js} +33 -1
  190. package/node_modules/pi-lens/dist/{chunk-T6PPK3T6.js → chunk-ZULZS2I6.js} +385 -407
  191. package/node_modules/pi-lens/dist/index.js +6508 -5413
  192. package/node_modules/pi-lens/dist/mcp/analyze-cli.js +9 -9
  193. package/node_modules/pi-lens/dist/mcp/cli.js +39 -38
  194. package/node_modules/pi-lens/dist/mcp/server.js +602 -345
  195. package/node_modules/pi-lens/dist/mcp/worker.js +57 -58
  196. package/node_modules/pi-lens/dist/probes/installer.js +19 -17
  197. package/node_modules/pi-lens/docs/architecture.md +113 -0
  198. package/node_modules/pi-lens/docs/ast-grep_rules_catalog.md +2 -2
  199. package/node_modules/pi-lens/docs/ci.md +18 -4
  200. package/node_modules/pi-lens/docs/defect-shapes.md +41 -3
  201. package/node_modules/pi-lens/docs/dependencies.md +10 -10
  202. package/node_modules/pi-lens/docs/features.md +3 -3
  203. package/node_modules/pi-lens/docs/invariants/dispatch-runners.md +13 -1
  204. package/node_modules/pi-lens/docs/invariants/lsp-trust-exec.md +19 -0
  205. package/node_modules/pi-lens/docs/language-coverage.md +39 -0
  206. package/node_modules/pi-lens/docs/lsp-capability-matrix.md +10 -4
  207. package/node_modules/pi-lens/docs/lsp-idle-eviction.md +1 -1
  208. package/node_modules/pi-lens/docs/pi-lens-fixer.md +4 -0
  209. package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +1 -1
  210. package/node_modules/pi-lens/docs/pi-lens-reviewer.md +4 -5
  211. package/node_modules/pi-lens/docs/pi-lens-subagent.md +5 -2
  212. package/node_modules/pi-lens/docs/prose-standard.md +112 -0
  213. package/node_modules/pi-lens/docs/servercapabilities.md +1 -1
  214. package/node_modules/pi-lens/docs/usage.md +50 -0
  215. package/node_modules/pi-lens/package.json +1 -1
  216. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/array-callback-return-js-test.yml +23 -0
  217. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/array-callback-return-test.yml +23 -0
  218. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/no-negation-in-equality-check-js-test.yml +8 -0
  219. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/no-negation-in-equality-check-test.yml +8 -0
  220. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/unchecked-throwing-call-js-test.yml +16 -0
  221. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/unchecked-throwing-call-test.yml +16 -0
  222. package/node_modules/pi-lens/rules/ast-grep-rules/rules/array-callback-return-js.yml +8 -0
  223. package/node_modules/pi-lens/rules/ast-grep-rules/rules/array-callback-return.yml +8 -0
  224. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-negation-in-equality-check-js.yml +17 -5
  225. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-negation-in-equality-check.yml +17 -5
  226. package/node_modules/pi-lens/rules/ast-grep-rules/rules/unchecked-throwing-call-js.yml +8 -1
  227. package/node_modules/pi-lens/rules/ast-grep-rules/rules/unchecked-throwing-call.yml +8 -1
  228. package/node_modules/pi-lens/rules/tree-sitter-queries/typescript/ts-react-antipatterns.yml +8 -0
  229. package/node_modules/pi-web-access/CHANGELOG.md +29 -0
  230. package/node_modules/pi-web-access/README.md +35 -15
  231. package/node_modules/pi-web-access/anysearch.ts +7 -3
  232. package/node_modules/pi-web-access/autom.ts +196 -0
  233. package/node_modules/pi-web-access/cloro.ts +254 -0
  234. package/node_modules/pi-web-access/curator-page.ts +7 -1
  235. package/node_modules/pi-web-access/curator-server.ts +3 -0
  236. package/node_modules/pi-web-access/dist/index.js +12931 -12111
  237. package/node_modules/pi-web-access/dist/mcp-cli.js +1188 -416
  238. package/node_modules/pi-web-access/domain-filter-normalization.ts +30 -0
  239. package/node_modules/pi-web-access/duckduckgo-rate-limit.ts +144 -34
  240. package/node_modules/pi-web-access/duckduckgo.ts +11 -3
  241. package/node_modules/pi-web-access/extract.ts +60 -4
  242. package/node_modules/pi-web-access/gemini-search.ts +25 -5
  243. package/node_modules/pi-web-access/index.ts +9 -1
  244. package/node_modules/pi-web-access/package.json +2 -2
  245. package/node_modules/pi-web-access/page-query.ts +12 -3
  246. package/node_modules/pi-web-access/specstream.ts +276 -0
  247. package/node_modules/pi-web-access/tool-activation.ts +21 -6
  248. package/node_modules/pi-web-access/utils.ts +4 -0
  249. package/node_modules/pi-web-access/video-extract.ts +2 -2
  250. package/node_modules/pi-web-access/web-tool-core.ts +24 -5
  251. package/node_modules/pi-web-access/youtube-extract.ts +2 -2
  252. package/package.json +13 -7
  253. package/node_modules/pi-lens/dist/chunk-3VWEZ6H2.js +0 -72
  254. package/node_modules/pi-lens/dist/chunk-7KWI5UHL.js +0 -28
  255. package/node_modules/pi-lens/dist/chunk-7M64NTAK.js +0 -38
  256. package/node_modules/pi-lens/dist/chunk-BEIPWPVR.js +0 -1037
  257. package/node_modules/pi-lens/dist/chunk-D7OEGXDX.js +0 -2417
  258. package/node_modules/pi-lens/dist/chunk-KUDUKKQE.js +0 -89
  259. package/node_modules/pi-lens/dist/chunk-TM3A3K7T.js +0 -28
  260. package/node_modules/pi-lens/dist/chunk-VD7MQFEV.js +0 -56
  261. package/node_modules/pi-lens/dist/chunk-YLHJWAQS.js +0 -256
  262. package/node_modules/pi-lens/dist/chunk-YULIERZW.js +0 -27
@@ -38,7 +38,7 @@ Sub-agent gate (all harnesses):
38
38
  - Unless a harness-specific gate below overrides this, spawn A and B as two isolated, parallel sub-agents whenever a sub-agent/Task tool is exposed. This is the default and is mandatory; do not run them inline because it is faster.
39
39
  - Desktop apps (see **Desktop apps** under Assessment B) are the one exception to parallel: both sub-agents would drive the app's single window at once. Seed the window, spawn A, wait until it has finished and put the window back, then spawn B. They are still two isolated sub-agents, so this is not the degraded path.
40
40
  - "Unavailable" means exactly one thing: no sub-agent/Task tool is exposed in this session (or, on harnesses that ask, the user declined). It does not mean inconvenient.
41
- - If and only if sub-agents are unavailable, fall back sequentially: finish and record Assessment A, then run Assessment B, then synthesize, and emit the degraded banner.
41
+ - If and only if sub-agents are unavailable, fall back sequentially: read [critique-rubric.md](critique-rubric.md) now, finish and record Assessment A, then run Assessment B, then synthesize, and emit the degraded banner.
42
42
  - Whichever path you take, declare it in the report header (see Report header provenance). Skipping sub-agents without the banner is the most common failure of this command.
43
43
 
44
44
  If browser automation is available, each assessment creates its own new tab. Never reuse an existing tab, even if it is already at the right URL. Desktop apps are the exception (see **Desktop apps** under Assessment B).
@@ -50,9 +50,13 @@ Read relevant source files and visually inspect the live page when browser autom
50
50
  Evaluate:
51
51
  - **Design specificity**: Is the composition, interaction, and visual language grounded in this product, or could an unrelated product use it unchanged? Make this judgment before seeing detector output.
52
52
  - **Holistic design**: hierarchy, IA, emotional fit, discoverability, composition, typography, color, accessibility, states, copy, and edge cases.
53
- - **Cognitive load**: consult the [Cognitive Load Assessment](#cognitive-load-assessment) section below; report checklist failures and decision points with >4 visible options.
53
+ - **Cognitive load**: consult the Cognitive Load Assessment in [critique-rubric.md](critique-rubric.md); report checklist failures and decision points with >4 visible options.
54
54
  - **Emotional journey**: peak-end rule, emotional valleys, reassurance at high-stakes moments.
55
- - **Nielsen heuristics**: consult the [Heuristics Scoring Guide](#heuristics-scoring-guide) section below; score all 10 heuristics 0-4, marking any heuristic the mode-applicability rule allows as `n/a` instead of forcing a number.
55
+ - **Nielsen heuristics**: consult the Heuristics Scoring Guide in [critique-rubric.md](critique-rubric.md); score all 10 heuristics 0-4, marking any heuristic the mode-applicability rule allows as `n/a` instead of forcing a number.
56
+
57
+ - **Persona red flags**: select personas with the Selecting Personas table in [critique-rubric.md](critique-rubric.md), plus 1-2 project-specific ones from PRODUCT.md's `## Users` when it has one, and walk each through the primary action.
58
+
59
+ Read critique-rubric.md as part of Assessment A. When a sub-agent runs A, give it the file's path so it reads the rubric itself, and the parent does not load it. When A runs in this context (native critiques, or the single-context fallback), read the rubric here before scoring.
56
60
 
57
61
  Return: design-specificity verdict, heuristic scores, cognitive load, emotional journey, 2-3 strengths, 3-5 priority issues, persona red flags, minor observations, and provocative questions.
58
62
 
@@ -108,7 +112,7 @@ The report's first line MUST declare how the assessments were run, so a degraded
108
112
  - Native: `Method: design review only (detector not applicable, native platform)`
109
113
 
110
114
  #### Design Health Score
111
- > *Consult the [Heuristics Scoring Guide](#heuristics-scoring-guide) section below.*
115
+ > *Use Assessment A's scores; the bands are under [Scoring the report](#scoring-the-report) below.*
112
116
 
113
117
  Present the Nielsen's 10 heuristics scores as a table:
114
118
 
@@ -158,9 +162,9 @@ For each issue, tag with **P0-P3 severity** (see [Issue Severity below](#issue-s
158
162
  - **Suggested command**: Which command could address this (from: /impeccable adapt, /impeccable animate, /impeccable audit, /impeccable bolder, /impeccable clarify, /impeccable colorize, /impeccable critique, /impeccable delight, /impeccable distill, /impeccable document, /impeccable harden, /impeccable layout, /impeccable onboard, /impeccable optimize, /impeccable overdrive, /impeccable polish, /impeccable quieter, /impeccable shape, /impeccable typeset)
159
163
 
160
164
  #### Persona Red Flags
161
- > *Consult the [Personas reference](#persona-based-design-testing) below.*
165
+ > *Use Assessment A's persona red flags; it selected the personas from [critique-rubric.md](critique-rubric.md).*
162
166
 
163
- Auto-select 2-3 personas most relevant to this interface type (use the selection table in the reference). If PRODUCT.md has a `## Users` section, also generate 1-2 project-specific personas from it and from `## Brand Commitments`.
167
+ Assessment A selected 2-3 personas most relevant to this interface type (the selection table in critique-rubric.md). If PRODUCT.md has a `## Users` section, also generate 1-2 project-specific personas from it and from `## Brand Commitments`.
164
168
 
165
169
  For each selected persona, walk through the primary user action and list specific red flags found:
166
170
 
@@ -289,324 +293,9 @@ After presenting the summary, tell the user:
289
293
 
290
294
  ## Reference Material
291
295
 
292
- The sections below were previously separate reference files (`cognitive-load.md`, `heuristics-scoring.md`, `personas.md`). They live inline now so the critique flow has all its deep context in one place.
293
-
294
- ### Cognitive Load Assessment
295
-
296
- Cognitive load is the total mental effort required to use an interface. Overloaded users make mistakes, get frustrated, and leave. This reference helps identify and fix cognitive overload.
297
-
298
- ---
299
-
300
- #### Three Types of Cognitive Load
296
+ Assessment A scores against [critique-rubric.md](critique-rubric.md): the cognitive load checklist, the heuristic scoring guide, and the personas. The report uses the bands and severities below.
301
297
 
302
- ##### Intrinsic Load: The Task Itself
303
- Complexity inherent to what the user is trying to do. You can't eliminate this, but you can structure it.
304
-
305
- **Manage it by**:
306
- - Breaking complex tasks into discrete steps
307
- - Providing scaffolding (templates, defaults, examples)
308
- - Progressive disclosure: show what's needed now, hide the rest
309
- - Grouping related decisions together
310
-
311
- ##### Extraneous Load: Bad Design
312
- Mental effort caused by poor design choices. **Eliminate this ruthlessly.** It's pure waste.
313
-
314
- **Common sources**:
315
- - Confusing navigation that requires mental mapping
316
- - Unclear labels that force users to guess meaning
317
- - Visual clutter competing for attention
318
- - Inconsistent patterns that prevent learning
319
- - Unnecessary steps between user intent and result
320
-
321
- ##### Germane Load: Learning Effort
322
- Mental effort spent building understanding. This is *good* cognitive load; it leads to mastery.
323
-
324
- **Support it by**:
325
- - Progressive disclosure that reveals complexity gradually
326
- - Consistent patterns that reward learning
327
- - Feedback that confirms correct understanding
328
- - Onboarding that teaches through action, not walls of text
329
-
330
- ---
331
-
332
- #### Cognitive Load Checklist
333
-
334
- Evaluate the interface against these 8 items:
335
-
336
- - [ ] **Single focus**: Can the user complete their primary task without distraction from competing elements?
337
- - [ ] **Chunking**: Is information presented in digestible groups (≤4 items per group)?
338
- - [ ] **Grouping**: Are related items visually grouped together (proximity, borders, shared background)?
339
- - [ ] **Visual hierarchy**: Is it immediately clear what's most important on the screen?
340
- - [ ] **One thing at a time**: Can the user focus on a single decision before moving to the next?
341
- - [ ] **Minimal choices**: Are decisions simplified (≤4 visible options at any decision point)?
342
- - [ ] **Working memory**: Does the user need to remember information from a previous screen to act on the current one?
343
- - [ ] **Progressive disclosure**: Is complexity revealed only when the user needs it?
344
-
345
- **Scoring**: Count the failed items. 0–1 failures = low cognitive load (good). 2–3 = moderate (address soon). 4+ = high cognitive load (critical fix needed).
346
-
347
- ---
348
-
349
- #### The Working Memory Rule
350
-
351
- **Humans can hold ≤4 items in working memory at once** (Miller's Law revised by Cowan, 2001).
352
-
353
- At any decision point, count the number of distinct options, actions, or pieces of information a user must simultaneously consider:
354
- - **≤4 items**: Within working memory limits, manageable
355
- - **5–7 items**: Pushing the boundary; consider grouping or progressive disclosure
356
- - **8+ items**: Overloaded; users will skip, misclick, or abandon
357
-
358
- **Practical applications**:
359
- - Action buttons: 1 primary, 1–2 secondary, group the rest in a menu
360
- - Navigation menus: ≤5 top-level items (group the rest under clear categories)
361
- - Long-form articles: one reading path; gather related links into a single block at the end instead of scattering them mid-flow
362
- - Documentation sidebars: ≤4 sibling choices visible per level before grouping kicks in
363
- - Portfolio and gallery indexes: one decision per screen (which piece to open), not filter, sort, and tag controls all at once
364
-
365
- ---
366
-
367
- #### Common Cognitive Load Violations
368
-
369
- ##### 1. The Wall of Options
370
- **Problem**: Presenting 10+ choices at once with no hierarchy.
371
- **Fix**: Group into categories, highlight recommended, use progressive disclosure.
372
-
373
- ##### 2. The Memory Bridge
374
- **Problem**: User must remember info from step 1 to complete step 3.
375
- **Fix**: Keep relevant context visible, or repeat it where it's needed.
376
-
377
- ##### 3. The Hidden Navigation
378
- **Problem**: User must build a mental map of where things are.
379
- **Fix**: Always show current location (breadcrumbs, active states, progress indicators).
380
-
381
- ##### 4. The Jargon Barrier
382
- **Problem**: Technical or domain language forces translation effort.
383
- **Fix**: Use plain language. If domain terms are unavoidable, define them inline.
384
-
385
- ##### 5. The Visual Noise Floor
386
- **Problem**: Every element has the same visual weight; nothing stands out.
387
- **Fix**: Establish clear hierarchy: one primary element, 2–3 secondary, everything else muted.
388
-
389
- ##### 6. The Inconsistent Pattern
390
- **Problem**: Similar actions work differently in different places.
391
- **Fix**: Standardize interaction patterns. Same type of action = same type of UI.
392
-
393
- ##### 7. The Multi-Task Demand
394
- **Problem**: Interface requires processing multiple simultaneous inputs (reading + deciding + navigating).
395
- **Fix**: Sequence the steps. Let the user do one thing at a time.
396
-
397
- ##### 8. The Context Switch
398
- **Problem**: User must jump between screens/tabs/modals to gather info for a single decision.
399
- **Fix**: Co-locate the information needed for each decision. Reduce back-and-forth.
400
-
401
- ---
402
-
403
- ### Heuristics Scoring Guide
404
-
405
- Score each of Nielsen's 10 Usability Heuristics on a 0–4 scale. Be honest: a 4 means genuinely excellent, not "good enough."
406
-
407
- #### Nielsen's 10 Heuristics
408
-
409
- ##### 1. Visibility of System Status
410
-
411
- Keep users informed about what's happening through timely, appropriate feedback.
412
-
413
- **Check for**:
414
- - Loading indicators during async operations
415
- - Confirmation of user actions (save, submit, delete)
416
- - Progress indicators for multi-step processes
417
- - Current location in navigation (breadcrumbs, active states)
418
- - Form validation feedback (inline, not just on submit)
419
-
420
- **Scoring**:
421
- | Score | Criteria |
422
- |-------|----------|
423
- | 0 | No feedback; user is guessing what happened |
424
- | 1 | Rare feedback; most actions produce no visible response |
425
- | 2 | Partial; some states communicated, major gaps remain |
426
- | 3 | Good; most operations give clear feedback, minor gaps |
427
- | 4 | Excellent; every action confirms, progress is always visible |
428
-
429
- ##### 2. Match Between System and Real World
430
-
431
- Speak the user's language. Follow real-world conventions. Information appears in natural, logical order.
432
-
433
- **Check for**:
434
- - Familiar terminology (no unexplained jargon)
435
- - Logical information order matching user expectations
436
- - Recognizable icons and metaphors
437
- - Domain-appropriate language for the target audience
438
- - Natural reading flow (left-to-right, top-to-bottom priority)
439
-
440
- **Scoring**:
441
- | Score | Criteria |
442
- |-------|----------|
443
- | 0 | Pure tech jargon, alien to users |
444
- | 1 | Mostly confusing; requires domain expertise to navigate |
445
- | 2 | Mixed; some plain language, some jargon leaks through |
446
- | 3 | Mostly natural; occasional term needs context |
447
- | 4 | Speaks the user's language fluently throughout |
448
-
449
- ##### 3. User Control and Freedom
450
-
451
- Users need a clear "emergency exit" from unwanted states without extended dialogue.
452
-
453
- **Check for**:
454
- - Undo/redo functionality
455
- - Cancel buttons on forms and modals
456
- - Clear navigation back to safety (home, previous)
457
- - Easy way to clear filters, search, selections
458
- - Escape from long or multi-step processes
459
-
460
- **Scoring**:
461
- | Score | Criteria |
462
- |-------|----------|
463
- | 0 | Users get trapped; no way out without refreshing |
464
- | 1 | Difficult exits; must find obscure paths to escape |
465
- | 2 | Some exits; main flows have escape, edge cases don't |
466
- | 3 | Good control; users can exit and undo most actions |
467
- | 4 | Full control; undo, cancel, back, and escape everywhere |
468
-
469
- ##### 4. Consistency and Standards
470
-
471
- Users shouldn't wonder whether different words, situations, or actions mean the same thing.
472
-
473
- **Check for**:
474
- - Consistent terminology throughout the interface
475
- - Same actions produce same results everywhere
476
- - Platform conventions followed (standard UI patterns)
477
- - Visual consistency (colors, typography, spacing, components)
478
- - Consistent interaction patterns (same gesture = same behavior)
479
-
480
- **Scoring**:
481
- | Score | Criteria |
482
- |-------|----------|
483
- | 0 | Inconsistent everywhere; feels like different products stitched together |
484
- | 1 | Many inconsistencies; similar things look/behave differently |
485
- | 2 | Partially consistent; main flows match, details diverge |
486
- | 3 | Mostly consistent; occasional deviation, nothing confusing |
487
- | 4 | Fully consistent; cohesive system, predictable behavior |
488
-
489
- ##### 5. Error Prevention
490
-
491
- Better than good error messages is a design that prevents problems in the first place.
492
-
493
- **Check for**:
494
- - Confirmation before destructive actions (delete, overwrite)
495
- - Constraints preventing invalid input (date pickers, dropdowns)
496
- - Smart defaults that reduce errors
497
- - Clear labels that prevent misunderstanding
498
- - Autosave and draft recovery
499
-
500
- **Scoring**:
501
- | Score | Criteria |
502
- |-------|----------|
503
- | 0 | Errors easy to make; no guardrails anywhere |
504
- | 1 | Few safeguards; some inputs validated, most aren't |
505
- | 2 | Partial prevention; common errors caught, edge cases slip |
506
- | 3 | Good prevention; most error paths blocked proactively |
507
- | 4 | Excellent; errors nearly impossible through smart constraints |
508
-
509
- ##### 6. Recognition Rather Than Recall
510
-
511
- Minimize memory load. Make objects, actions, and options visible or easily retrievable.
512
-
513
- **Check for**:
514
- - Visible options (not buried in hidden menus)
515
- - Contextual help when needed (tooltips, inline hints)
516
- - Recent items and history
517
- - Autocomplete and suggestions
518
- - Labels on icons (not icon-only navigation)
519
-
520
- **Scoring**:
521
- | Score | Criteria |
522
- |-------|----------|
523
- | 0 | Heavy memorization; users must remember paths and commands |
524
- | 1 | Mostly recall; many hidden features, few visible cues |
525
- | 2 | Some aids; main actions visible, secondary features hidden |
526
- | 3 | Good recognition; most things discoverable, few memory demands |
527
- | 4 | Everything discoverable; users never need to memorize |
528
-
529
- ##### 7. Flexibility and Efficiency of Use
530
-
531
- Accelerators, invisible to novices, speed up expert interaction.
532
-
533
- **Check for**:
534
- - Keyboard shortcuts for common actions
535
- - Customizable interface elements
536
- - Recent items and favorites
537
- - Bulk/batch actions
538
- - Power user features that don't complicate the basics
539
-
540
- **Scoring**:
541
- | Score | Criteria |
542
- |-------|----------|
543
- | 0 | One rigid path; no shortcuts or alternatives |
544
- | 1 | Limited flexibility; few alternatives to the main path |
545
- | 2 | Some shortcuts; basic keyboard support, limited bulk actions |
546
- | 3 | Good accelerators; keyboard nav, some customization |
547
- | 4 | Highly flexible; multiple paths, power features, customizable |
548
-
549
- ##### 8. Aesthetic and Minimalist Design
550
-
551
- Interfaces should not contain irrelevant or rarely needed information. Every element should serve a purpose.
552
-
553
- **Check for**:
554
- - Only necessary information visible at each step
555
- - Clear visual hierarchy directing attention
556
- - Purposeful use of color and emphasis
557
- - No decorative clutter competing for attention
558
- - Focused, uncluttered layouts
559
-
560
- **Scoring**:
561
- | Score | Criteria |
562
- |-------|----------|
563
- | 0 | Overwhelming; everything competes for attention equally |
564
- | 1 | Cluttered; too much noise, hard to find what matters |
565
- | 2 | Some clutter; main content clear, periphery noisy |
566
- | 3 | Mostly clean; focused design, minor visual noise |
567
- | 4 | Perfectly minimal; every element earns its pixel |
568
-
569
- ##### 9. Help Users Recognize, Diagnose, and Recover from Errors
570
-
571
- Error messages should use plain language, precisely indicate the problem, and constructively suggest a solution.
572
-
573
- **Check for**:
574
- - Plain language error messages (no error codes for users)
575
- - Specific problem identification ("Email is missing @" not "Invalid input")
576
- - Actionable recovery suggestions
577
- - Errors displayed near the source of the problem
578
- - Non-blocking error handling (don't wipe the form)
579
-
580
- **Scoring**:
581
- | Score | Criteria |
582
- |-------|----------|
583
- | 0 | Cryptic errors; codes, jargon, or no message at all |
584
- | 1 | Vague errors; "Something went wrong" with no guidance |
585
- | 2 | Clear but unhelpful; names the problem but not the fix |
586
- | 3 | Clear with suggestions; identifies problem and offers next steps |
587
- | 4 | Perfect recovery; pinpoints issue, suggests fix, preserves user work |
588
-
589
- ##### 10. Help and Documentation
590
-
591
- Even if the system is usable without docs, help should be easy to find, task-focused, and concise.
592
-
593
- **Check for**:
594
- - Searchable help or documentation
595
- - Contextual help (tooltips, inline hints, guided tours)
596
- - Task-focused organization (not feature-organized)
597
- - Concise, scannable content
598
- - Easy access without leaving current context
599
-
600
- **Scoring**:
601
- | Score | Criteria |
602
- |-------|----------|
603
- | 0 | No help available anywhere |
604
- | 1 | Help exists but hard to find or irrelevant |
605
- | 2 | Basic help; FAQ or docs exist, not contextual |
606
- | 3 | Good documentation; searchable, mostly task-focused |
607
- | 4 | Excellent contextual help; right info at the right moment |
608
-
609
- ---
298
+ ### Scoring the report
610
299
 
611
300
  #### Score Summary
612
301
 
@@ -636,184 +325,3 @@ Tag each individual issue found during scoring with a priority level:
636
325
  | **P3** | Polish | Nice-to-fix, no real user impact | Fix if time permits |
637
326
 
638
327
  **Tip**: If you're unsure between two levels, ask: "Would a user contact support about this?" If yes, it's at least P1.
639
-
640
- ---
641
-
642
- ### Persona-Based Design Testing
643
-
644
- Test the interface through the eyes of 5 distinct user archetypes. Each persona exposes different failure modes that a single "design director" perspective would miss.
645
-
646
- **How to use**: Select 2–3 personas most relevant to the interface being critiqued. Walk through the primary user action as each persona. Report specific red flags, not generic concerns.
647
-
648
- ---
649
-
650
- #### 1. Impatient Power User: "Alex"
651
-
652
- **Profile**: Expert with similar products. Expects efficiency, hates hand-holding. Will find shortcuts or leave.
653
-
654
- **Behaviors**:
655
- - Skips all onboarding and instructions
656
- - Looks for keyboard shortcuts immediately
657
- - Tries to bulk-select, batch-edit, and automate
658
- - Gets frustrated by required steps that feel unnecessary
659
- - Abandons if anything feels slow or patronizing
660
-
661
- **Test Questions**:
662
- - Can Alex complete the core task in under 60 seconds?
663
- - Are there keyboard shortcuts for common actions?
664
- - Can onboarding be skipped entirely?
665
- - Do modals have keyboard dismiss (Esc)?
666
- - Is there a "power user" path (shortcuts, bulk actions)?
667
-
668
- **Red Flags** (report these specifically):
669
- - Forced tutorials or unskippable onboarding
670
- - No keyboard navigation for primary actions
671
- - Slow animations that can't be skipped
672
- - One-item-at-a-time workflows where batch would be natural
673
- - Redundant confirmation steps for low-risk actions
674
-
675
- ---
676
-
677
- #### 2. Confused First-Timer: "Jordan"
678
-
679
- **Profile**: Never used this type of product. Needs guidance at every step. Will abandon rather than figure it out.
680
-
681
- **Behaviors**:
682
- - Reads all instructions carefully
683
- - Hesitates before clicking anything unfamiliar
684
- - Looks for help or support constantly
685
- - Misunderstands jargon and abbreviations
686
- - Takes the most literal interpretation of any label
687
-
688
- **Test Questions**:
689
- - Is the first action obviously clear within 5 seconds?
690
- - Are all icons labeled with text?
691
- - Is there contextual help at decision points?
692
- - Does terminology assume prior knowledge?
693
- - Is there a clear "back" or "undo" at every step?
694
-
695
- **Red Flags** (report these specifically):
696
- - Icon-only navigation with no labels
697
- - Technical jargon without explanation
698
- - No visible help option or guidance
699
- - Ambiguous next steps after completing an action
700
- - No confirmation that an action succeeded
701
-
702
- ---
703
-
704
- #### 3. Accessibility-Dependent User: "Sam"
705
-
706
- **Profile**: Uses screen reader (VoiceOver/NVDA), keyboard-only navigation. May have low vision, motor impairment, or cognitive differences.
707
-
708
- **Behaviors**:
709
- - Tabs through the interface linearly
710
- - Relies on ARIA labels and heading structure
711
- - Cannot see hover states or visual-only indicators
712
- - Needs adequate color contrast (4.5:1 minimum)
713
- - May use browser zoom up to 200%
714
-
715
- **Test Questions**:
716
- - Can the entire primary flow be completed keyboard-only?
717
- - Are all interactive elements focusable with visible focus indicators?
718
- - Do images have meaningful alt text?
719
- - Is color contrast WCAG AA compliant (4.5:1 for text)?
720
- - Does the screen reader announce state changes (loading, success, errors)?
721
-
722
- **Red Flags** (report these specifically):
723
- - Click-only interactions with no keyboard alternative
724
- - Missing or invisible focus indicators
725
- - Meaning conveyed by color alone (red = error, green = success)
726
- - Unlabeled form fields or buttons
727
- - Time-limited actions without extension option
728
- - Custom components that break screen reader flow
729
-
730
- ---
731
-
732
- #### 4. Deliberate Stress Tester: "Riley"
733
-
734
- **Profile**: Methodical user who pushes interfaces beyond the happy path. Tests edge cases, tries unexpected inputs, and probes for gaps in the experience.
735
-
736
- **Behaviors**:
737
- - Tests edge cases intentionally (empty states, long strings, special characters)
738
- - Submits forms with unexpected data (emoji, RTL text, very long values)
739
- - Tries to break workflows by navigating backwards, refreshing mid-flow, or opening in multiple tabs
740
- - Looks for inconsistencies between what the UI promises and what actually happens
741
- - Documents problems methodically
742
-
743
- **Test Questions**:
744
- - What happens at the edges (0 items, 1000 items, very long text)?
745
- - Do error states recover gracefully or leave the UI in a broken state?
746
- - What happens on refresh mid-workflow? Is state preserved?
747
- - Are there features that appear to work but produce broken results?
748
- - How does the UI handle unexpected input (emoji, special chars, paste from Excel)?
749
-
750
- **Red Flags** (report these specifically):
751
- - Features that appear to work but silently fail or produce wrong results
752
- - Error handling that exposes technical details or leaves UI in a broken state
753
- - Empty states that show nothing useful ("No results" with no guidance)
754
- - Workflows that lose user data on refresh or navigation
755
- - Inconsistent behavior between similar interactions in different parts of the UI
756
-
757
- ---
758
-
759
- #### 5. Distracted Mobile User: "Casey"
760
-
761
- **Profile**: Using phone one-handed on the go. Frequently interrupted. Possibly on a slow connection.
762
-
763
- **Behaviors**:
764
- - Uses thumb only; prefers bottom-of-screen actions
765
- - Gets interrupted mid-flow and returns later
766
- - Switches between apps frequently
767
- - Has limited attention span and low patience
768
- - Types as little as possible, prefers taps and selections
769
-
770
- **Test Questions**:
771
- - Are primary actions in the thumb zone (bottom half of screen)?
772
- - Is state preserved if the user leaves and returns?
773
- - Does it work on slow connections (3G)?
774
- - Can forms use autocomplete and smart defaults?
775
- - Are touch targets at least 44×44pt?
776
-
777
- **Red Flags** (report these specifically):
778
- - Important actions positioned at the top of the screen (unreachable by thumb)
779
- - No state persistence; progress lost on tab switch or interruption
780
- - Large text inputs required where selection would work
781
- - Heavy assets loading on every page (no lazy loading)
782
- - Tiny tap targets or targets too close together
783
-
784
- ---
785
-
786
- #### Selecting Personas
787
-
788
- Choose personas based on the interface type:
789
-
790
- | Interface Type | Primary Personas | Why |
791
- |---------------|-----------------|-----|
792
- | Landing page / marketing | Jordan, Riley, Casey | First impressions, trust, mobile |
793
- | Dashboard / admin | Alex, Sam | Power users, accessibility |
794
- | E-commerce / checkout | Casey, Riley, Jordan | Mobile, edge cases, clarity |
795
- | Onboarding flow | Jordan, Casey | Confusion, interruption |
796
- | Data-heavy / analytics | Alex, Sam | Efficiency, keyboard nav |
797
- | Form-heavy / wizard | Jordan, Sam, Casey | Clarity, accessibility, mobile |
798
-
799
- ---
800
-
801
- #### Project-Specific Personas
802
-
803
- If PRODUCT.md has a `## Users` section (written by `impeccable init`), derive 1–2 additional personas from it and from `## Brand Commitments`:
804
-
805
- 1. Read the target audience description
806
- 2. Identify the primary user archetype not covered by the 5 predefined personas
807
- 3. Create a persona following this template:
808
-
809
- ```
810
- ##### [Role]: "[Name]"
811
-
812
- **Profile**: [2-3 key characteristics derived from PRODUCT.md]
813
-
814
- **Behaviors**: [3-4 specific behaviors based on the described audience]
815
-
816
- **Red Flags**: [3-4 things that would alienate this specific user type]
817
- ```
818
-
819
- Only generate project-specific personas when PRODUCT.md describes real users. Don't invent audience details; use the 5 predefined personas when no context exists.
@@ -0,0 +1,29 @@
1
+ <!-- Generated from skill/agents/ at build time. Do not edit; edit the agent definition. -->
2
+ This harness has no subagent capability, so you are running this role inline. Step fully out of the work you just finished, adopt only this file's instructions for the pass, and disclose the substitution in one line of your closing message to the user, outside the output contract. Where the text below addresses a parent agent, you are both parties: produce the full output contract first, then act on it yourself.
3
+
4
+ # Impeccable Motion Reviewer
5
+
6
+ You are fresh eyes on implemented motion. Edit nothing; the parent applies your fixes. You have no browser: never render, screenshot, serve, or open a page, and use Bash only to inspect the provided evidence files, never to run page code or captures.
7
+
8
+ Read the normal and reduced-motion filmstrips and boundary frames first, then their reports, the motion thesis, and the supplied rules. Batch reads. Stop reading by roughly the tenth turn and write the complete output contract; name unread or missing inputs without pretending to have checked them.
9
+
10
+ ## Input Contract
11
+
12
+ Expect the original request; the motion thesis from animate's plan (focal moment, continuity, feedback, budget); capture directories for the same interaction in normal and reduced motion under `.impeccable/review/motion/`; DESIGN.md's motion rules if present; and the skill's `reference/craft-floor.md` path. Each directory contains `report.json`, numbered frame PNGs, `filmstrip.png`, and a self-contained `index.html` scrubber. The report names frame paths, phases, times, geometry, animation timing, findings, and measurement limitations; its `setup` lists any steps that reached the starting state, as an exit capture needs. Passed paths are authoritative; never invent filenames. The parent also supplies entrance and exit captures when both exist, and timing/easing/stagger information for effects the engine cannot measure. Missing design rules are not a defect; missing required capture evidence is.
13
+
14
+ ## Checks, in order
15
+
16
+ 0. **Evidence.** Both normal and reduced-motion reports must exist, parse, and describe the same interaction and region. Confirm the reduced report says `reducedMotion: true`. Every referenced frame must exist, decode, have consistent dimensions, and show the claimed state. Require before, first, middle, last animated, and settled frames. Blank, half-loaded, wrong-region, stale, missing, or incomplete evidence requires `disposition: recapture`; list exact files and the evidence needed under material_fixes and stop substantive judgment. A partial recording cannot earn ship. Treat report limitations as unmeasured checks; when the provided pixels cannot answer a material check, request evidence rather than assume it passed.
17
+ 1. **Continuity.** Read every report finding. Each is a material fix unless the frames prove it wrong; cite the counterevidence explicitly when rejecting one. Compare before against first, every middle against its neighbors, and last animated against settled. Inspect the entire region: content replacement during a morph, cross-fade at frame zero, sibling occlusion or stacking changes, clipping, late hover/focus lifts, and interruption artifacts. Explicitly check these five failure shapes and cite their frames: repeated CSS entrances on existing content (`entrance-replay`); old/new opacity sums below 0.95 or above 1.05 across multiple samples, including plus-lighter over an opaque isolated layer (`crossfade-dip`); old-only or new-only content whose animation outlasts surrounding motion (`orphan-linger`); a top item that swaps when transition layers disappear (`end-paint-swap`); and a shadow switched off at the start or on at the end (`start-jump`/`end-jump`, property `box-shadow`). Check shadow and opacity boundaries even when the boxes align. Confirm old/new fades preserve both brightness and legibility; complementary opacity alone does not prove correct compositing. The numbers cannot see all pseudo-element paint, masks, text texture, or attention shifts. A smooth box trajectory alone proves nothing. During View Transitions the underlying new DOM is not the painted frame; judge the captured old/new layers in the PNGs.
18
+ 2. **Craft.** Judge duration against distance and consequence: 100–150 ms immediate feedback; 150–300 ms routine state change; 300–500 ms layout, overlay, or view transition; 500–800 ms deliberately authored focal entrance. These are context-sensitive ranges, not automatic failures. Exits should be faster than entrances. Arrivals should decelerate naturally; bounce and elastic need a reason. Check one focal moment, quiet supporting motion, and bounded total sibling stagger. Apply the thesis, DESIGN.md rules, and craft floor. Cite frames and report times; do not invent timing the captures do not measure.
19
+ 3. **Reduced motion.** Compare matching normal/reduced states. Spatial movement should be removed or substantially reduced, while state, feedback, and meaning remain visible. Full-length movement is a fix even if it seems smooth. A shorter duration alone does not prove reduced spatial motion; examine distance and the frame sequence. An opacity or color alternative can preserve meaning without moving the interface.
20
+
21
+ ## Output Contract
22
+
23
+ First line: `disposition: ship|fix|recapture`, with exactly one word selected. Then exactly five sections: `continuity`, `craft`, `reduced_motion`, `material_fixes`, `keep`. Material fixes are ordered by impact and each cites frame paths or indices and times, including both captures where relevant. A recapture lists missing or invalid evidence there and marks the substantive sections unreviewable. Keep names what must survive the fixes. No praise or summary prose.
24
+
25
+ Derive the disposition: recapture for invalid or insufficient evidence; fix for any material finding; ship only with valid evidence and no material fixes. Never soften a finding because the implementation took effort. Report limits of the verdict's scope.
26
+
27
+ ## Verdict Pass
28
+
29
+ After a fix batch, re-read the reports and the exact recaptured frame paths. The parent's account of the edits is not evidence. Score each prior material fix resolved, partial, or unresolved, citing the new frames, and name at most three regressions introduced by the batch. Do not start a new hunt. Keep the same disposition-first five-section contract; material_fixes contains the scored list and remaining work. A partial or unresolved fix forbids ship. Invalid recaptures require recapture and a full review on valid evidence, never a scoring pass over broken frames. A ship here covers the scored fixes, not an unbounded whole-surface approval.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Manage the **design detector hook** for the current project.
4
4
 
5
- The hook runs the impeccable design detector on direct file edits to design-relevant files (`.tsx`, `.jsx`, `.html`, `.vue`, `.svelte`, `.astro`, `.css`, `.scss`, `.sass`, `.less`, `.ts`, `.js`). Claude Code, Codex, Cursor, and GitHub Copilot use a post-tool-use hook and push a short system reminder into the agent's context after the edit; findings get a correction prompt, pending issues get a re-nudge, and clean UI-ish files get a short ack unless quiet mode is on (`hook.quiet` in config). Plain `.ts` and `.js` files are still scanned, but stay quiet unless the detector finds something. Grok Build fires the same PostToolUse scan to mark touched files, then surfaces findings on Stop `additionalContext`. Do not expect a Grok per-edit reminder: Grok discards that stdout. On Hermes Agent the per-edit findings arrive inside the `write_file` or `patch` tool result itself, as its `impeccable` field.
5
+ The hook runs the impeccable design detector on direct file edits to design-relevant files (`.tsx`, `.jsx`, `.html`, `.vue`, `.svelte`, `.astro`, `.css`, `.scss`, `.sass`, `.less`, and plain `.ts` and `.js` in a project with a PRODUCT.md, DESIGN.md or `.impeccable` folder). Claude Code, Codex, Cursor, and GitHub Copilot use a post-tool-use hook and push a short system reminder into the agent's context after the edit; findings get a correction prompt, pending issues get a re-nudge, and clean UI-ish files get a short ack unless quiet mode is on (`hook.quiet` in config). Plain `.ts` and `.js` files are still scanned, but stay quiet unless the detector finds something. Grok Build fires the same PostToolUse scan to mark touched files, then surfaces findings on Stop `additionalContext`. Do not expect a Grok per-edit reminder: Grok discards that stdout. On Hermes Agent the per-edit findings arrive inside the `write_file` or `patch` tool result itself, as its `impeccable` field.
6
6
 
7
7
  The detector rules run in two tiers. The per-edit hook surfaces only the immediate tier: mechanical, unambiguous problems worth interrupting an edit for, such as broken images, overflowing content, contrast and legibility failures, gradient text, glow shadows, and design-system drift. Everything else (copy cadence, palette and typography taste, layout rhythm) is deferred to a deep pass on the `Stop` hook event, which runs the full rule set over every UI file touched in the session and surfaces the remaining findings once, deduplicated against what the per-edit pass already reported. A session with nothing left to report stops silently. Set `hook.perEditRules` to `"all"` in `.impeccable/config.json` to restore the full rule set on every edit. The Stop deep pass is wired for Claude Code, Codex, and Grok Build, which dispatch a native `Stop` hook event, and for Hermes Agent, whose plugin sends it from `pre_verify`. Cursor does not get one (its `stop` hook can only answer with a follow-up user message), and GitHub Copilot's stop-style events do not feed context back to the model, so they keep the full detector per edit. Grok also fires an observe-only Stop with `reason: "shutdown"` after `end_turn`; skip that one, scan only `end_turn`.
8
8
 
@@ -14,7 +14,7 @@ Declare server-side template extensions under **`detector.extensions`** when the
14
14
 
15
15
  Manual `.pi/skills/impeccable/scripts/impeccable detect` scans use the same project filter config by default: `detector.ignoreRules`, `detector.ignoreFiles`, `detector.ignoreValues`, and `detector.designSystem.enabled`. `hook.enabled` only controls automatic hook execution, not manual CLI scans. Use `.pi/skills/impeccable/scripts/impeccable detect --no-config ...` for a raw detector run that ignores project config/context. Use `.pi/skills/impeccable/scripts/impeccable ignores ...` for direct CLI CRUD on the same detector ignores.
16
16
 
17
- Supported harnesses: Claude Code (`.claude/settings.local.json` for a project-scope install; `$CLAUDE_CONFIG_DIR/settings.json` for a user-scope install, defaulting to `~/.claude/settings.json`; a project hook moved into shared `.claude/settings.json` is honored in place too), Codex (`.codex/hooks.json` in the project), Cursor (`.cursor/hooks.json` in the project), Grok Build (`.grok/hooks/impeccable.json` in the project; requires `/hooks-trust` or `--trust`), GitHub Copilot (`.github/hooks/impeccable.json` in the project, a team-shared committed file that both the Copilot CLI and the cloud agent read), and Hermes Agent (the `impeccable-design-hook` plugin in `~/.hermes/plugins/`; the user enables it once with `hermes plugins enable impeccable-design-hook`; a project install's launcher runs only in a project Hermes trusts, via `hermes skills trust`). For the Copilot CLI, repo-level hooks fire once `.github/hooks/impeccable.json` is committed to the repository's default branch.
17
+ Supported harnesses: Claude Code (`.claude/settings.local.json` for a project-scope install; `$CLAUDE_CONFIG_DIR/settings.json` for a user-scope install, defaulting to `~/.claude/settings.json`; a project hook moved into shared `.claude/settings.json` is honored in place too), Codex (`.codex/hooks.json` in the project; `$CODEX_HOME/hooks.json`, default `~/.codex/hooks.json`, for a user-scope install), Cursor (`.cursor/hooks.json` in the project; `~/.cursor/hooks.json` for a user-scope install), Grok Build (`.grok/hooks/impeccable.json` in the project, which requires `/hooks-trust` or `--trust`; the personal `~/.grok/hooks/impeccable.json` for a user-scope install), GitHub Copilot (`.github/hooks/impeccable.json` in the project, a team-shared committed file that both the Copilot CLI and the cloud agent read), and Hermes Agent (the `impeccable-design-hook` plugin in `~/.hermes/plugins/`; the user enables it once with `hermes plugins enable impeccable-design-hook`; a project install's launcher runs only in a project Hermes trusts, via `hermes skills trust`). For the Copilot CLI, repo-level hooks fire once `.github/hooks/impeccable.json` is committed to the repository's default branch.
18
18
 
19
19
  On **Cursor**, the hook runs on `postToolUse` for the `Write` tool (every agent file edit) and returns its reminder as `additional_context`, which Cursor adds after the tool result. Projects set up before this ran a `preToolUse` gate (`hook-before-edit`) that blocked bad writes before they landed; that gate still works until `hooks on`, `impeccable update`, or `impeccable doctor --fix` moves the entry to `postToolUse`.
20
20
 
@@ -112,7 +112,7 @@ Example whole-file exception, for a file that is out of scope entirely:
112
112
  - Do not edit the launcher or the binary behind `impeccable hook` and `impeccable hook-before-edit` from this flow. Those are skill plumbing.
113
113
  - When a user asks how far to trust the hook, say it runs the engine unsandboxed with the agent's environment and network access (in the Copilot cloud agent too, once `.github/hooks/impeccable.json` is committed), and that the launcher checks a downloaded engine against `.pi/skills/impeccable/scripts/engine-checksums.txt` before its first run; **never** call it sandboxed.
114
114
  - The hook never blocks an edit; it emits a post-edit reminder. (A Cursor project still on the old `preToolUse` gate can block a write until its manifest is migrated.) Disabling stops the reminders.
115
- - The hook is bundled with the Impeccable skill. Project installs use `.claude/settings.local.json`, `.codex/hooks.json`, `.cursor/hooks.json`, `.github/hooks/impeccable.json`, and `.gemini/settings.json`; a user-scope Claude install uses the active account's `$CLAUDE_CONFIG_DIR/settings.json` (default `~/.claude/settings.json`). On Codex, the user must approve the hook via `/hooks` the first time. On Cursor, confirm hooks are enabled under Settings -> Hooks. On GitHub Copilot, the CLI loads `.github/hooks/impeccable.json` once it is committed to the repository's default branch, and the cloud agent reads it from the repo directly.
115
+ - The hook is bundled with the Impeccable skill. Project installs use `.claude/settings.local.json`, `.codex/hooks.json`, `.cursor/hooks.json`, `.github/hooks/impeccable.json`, and `.gemini/settings.json`; a user-scope Claude install uses the active account's `$CLAUDE_CONFIG_DIR/settings.json` (default `~/.claude/settings.json`), and a user-scope Codex, Cursor or Grok install uses `~/.codex/hooks.json`, `~/.cursor/hooks.json` or `~/.grok/hooks/impeccable.json`. On Codex, the user must approve the hook via `/hooks` the first time. On Cursor, confirm hooks are enabled under Settings -> Hooks. On GitHub Copilot, the CLI loads `.github/hooks/impeccable.json` once it is committed to the repository's default branch, and the cloud agent reads it from the repo directly.
116
116
 
117
117
  ## Failure modes
118
118