@herbertgao/pi-extensions 2026.11.10 → 2026.11.12

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 (296) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +10 -10
  3. package/THIRD_PARTY_NOTICES.md +3 -3
  4. package/node_modules/@herbertgao/pi-cc-extensions/CHANGELOG.md +16 -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 +73 -47
  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 +79 -18
  16. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/tool-io.ts +0 -5
  17. package/node_modules/@herbertgao/pi-cc-extensions/extensions/utils/ansi-text.ts +18 -4
  18. package/node_modules/@herbertgao/pi-cc-extensions/extensions/utils/format.ts +15 -0
  19. package/node_modules/@herbertgao/pi-cc-extensions/package.json +4 -4
  20. package/node_modules/@herbertgao/pi-impeccable/CHANGELOG.md +12 -0
  21. package/node_modules/@herbertgao/pi-impeccable/README.md +2 -2
  22. package/node_modules/@herbertgao/pi-impeccable/package.json +4 -4
  23. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/SKILL.md +4 -2
  24. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/adapt.md +2 -2
  25. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/animate.md +17 -0
  26. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/audit.md +12 -1
  27. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/audit.native.md +4 -0
  28. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/critique-rubric.md +496 -0
  29. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/critique.md +13 -505
  30. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/documenter.md +1 -1
  31. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/finish-reviewer.md +1 -1
  32. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/motion-reviewer.md +29 -0
  33. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/distill.md +1 -1
  34. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/document.md +3 -1
  35. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/foundations.md +44 -0
  36. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/hooks.md +3 -3
  37. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/live-setup.md +1 -1
  38. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/live.md +26 -12
  39. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work-comp.md +24 -0
  40. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work-world.md +20 -0
  41. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work.md +9 -37
  42. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/onboard.md +7 -6
  43. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/overdrive.md +2 -2
  44. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/quieter.md +1 -1
  45. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/typeset.md +6 -0
  46. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/visualize.md +1 -1
  47. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/VERSION +1 -1
  48. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/engine-checksums.txt +5 -5
  49. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/impeccable +69 -16
  50. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/impeccable.cmd +55 -7
  51. package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/live-browser.js +51 -22
  52. package/node_modules/@herbertgao/pi-subagents/CHANGELOG.md +6 -0
  53. package/node_modules/@herbertgao/pi-subagents/README.md +27 -9
  54. package/node_modules/@herbertgao/pi-subagents/docs/workflows.md +11 -11
  55. package/node_modules/@herbertgao/pi-subagents/package.json +4 -4
  56. package/node_modules/@herbertgao/pi-subagents/src/agent-manager.ts +13 -0
  57. package/node_modules/@herbertgao/pi-subagents/src/agent-runner.ts +51 -32
  58. package/node_modules/@herbertgao/pi-subagents/src/default-agents.ts +7 -0
  59. package/node_modules/@herbertgao/pi-subagents/src/index.ts +334 -893
  60. package/node_modules/@herbertgao/pi-subagents/src/nested-tools.ts +4 -1
  61. package/node_modules/@herbertgao/pi-subagents/src/prompts.ts +13 -0
  62. package/node_modules/@herbertgao/pi-subagents/src/schedule-store.ts +18 -13
  63. package/node_modules/@herbertgao/pi-subagents/src/schedule.ts +25 -5
  64. package/node_modules/@herbertgao/pi-subagents/src/settings.ts +215 -69
  65. package/node_modules/@herbertgao/pi-subagents/src/types.ts +17 -0
  66. package/node_modules/@herbertgao/pi-subagents/src/ui/agent-widget.ts +9 -0
  67. package/node_modules/@herbertgao/pi-subagents/src/ui/agents-menu.ts +705 -0
  68. package/node_modules/@herbertgao/pi-subagents/src/ui/settings-menu.ts +361 -0
  69. package/node_modules/@herbertgao/pi-subagents/src/ui/viewer-keys.ts +1 -1
  70. package/node_modules/pi-antigravity/README.md +58 -9
  71. package/node_modules/pi-antigravity/docs/reader-guarantees.md +35 -0
  72. package/node_modules/pi-antigravity/package.json +15 -6
  73. package/node_modules/pi-antigravity/src/client/client.ts +63 -14
  74. package/node_modules/pi-antigravity/src/client/enterprise.ts +150 -0
  75. package/node_modules/pi-antigravity/src/client/index.ts +1 -0
  76. package/node_modules/pi-antigravity/src/diagnostics/diagnostics.ts +7 -0
  77. package/node_modules/pi-antigravity/src/features/generate-image.ts +56 -2
  78. package/node_modules/pi-antigravity/src/features/read-url-content.ts +124 -0
  79. package/node_modules/pi-antigravity/src/image/image.ts +16 -2
  80. package/node_modules/pi-antigravity/src/index.ts +145 -2
  81. package/node_modules/pi-antigravity/src/models/discovery.ts +3 -4
  82. package/node_modules/pi-antigravity/src/models/grouping.ts +39 -15
  83. package/node_modules/pi-antigravity/src/models/models.ts +126 -14
  84. package/node_modules/pi-antigravity/src/stream/stream.ts +189 -30
  85. package/node_modules/pi-antigravity/src/types/types.ts +30 -1
  86. package/node_modules/pi-antigravity/src/usage/usage.ts +58 -0
  87. package/node_modules/pi-antigravity/src/utils/address.ts +180 -0
  88. package/node_modules/pi-antigravity/src/utils/credits.ts +149 -0
  89. package/node_modules/pi-antigravity/src/utils/html.ts +31 -0
  90. package/node_modules/pi-antigravity/src/utils/index.ts +2 -0
  91. package/node_modules/pi-antigravity/src/utils/security.ts +172 -13
  92. package/node_modules/pi-antigravity/src/utils/text.ts +66 -0
  93. package/node_modules/pi-antigravity/src/utils/util.ts +5 -4
  94. package/node_modules/pi-antigravity/src/web-fetch/document.ts +83 -0
  95. package/node_modules/pi-antigravity/src/web-fetch/fences.ts +24 -0
  96. package/node_modules/pi-antigravity/src/web-fetch/header.ts +97 -0
  97. package/node_modules/pi-antigravity/src/web-fetch/index.ts +3 -0
  98. package/node_modules/pi-antigravity/src/web-fetch/inspect.ts +328 -0
  99. package/node_modules/pi-antigravity/src/web-fetch/limits.ts +4 -0
  100. package/node_modules/pi-antigravity/src/web-fetch/markdown.ts +744 -0
  101. package/node_modules/pi-antigravity/src/web-fetch/mdn.ts +164 -0
  102. package/node_modules/pi-antigravity/src/web-fetch/media.ts +11 -0
  103. package/node_modules/pi-antigravity/src/web-fetch/metadata.ts +9 -0
  104. package/node_modules/pi-antigravity/src/web-fetch/representation.ts +93 -0
  105. package/node_modules/pi-antigravity/src/web-fetch/save.ts +71 -0
  106. package/node_modules/pi-antigravity/src/web-fetch/sites.ts +138 -0
  107. package/node_modules/pi-antigravity/src/web-fetch/vendor.d.ts +9 -0
  108. package/node_modules/pi-antigravity/src/web-fetch/web-fetch.ts +957 -0
  109. package/node_modules/pi-antigravity/tsconfig.json +2 -2
  110. package/node_modules/pi-commandcode-provider/CHANGELOG.md +21 -1
  111. package/node_modules/pi-commandcode-provider/README.md +2 -2
  112. package/node_modules/pi-commandcode-provider/index.ts +2 -1
  113. package/node_modules/pi-commandcode-provider/package.json +5 -4
  114. package/node_modules/pi-commandcode-provider/src/commandcode-catalog.ts +15 -9
  115. package/node_modules/pi-commandcode-provider/src/oauth.ts +69 -12
  116. package/node_modules/pi-commandcode-provider/src/pricing.ts +8 -1
  117. package/node_modules/pi-commandcode-provider/src/responses-compat.ts +137 -0
  118. package/node_modules/pi-lens/CHANGELOG-USER.md +6 -6
  119. package/node_modules/pi-lens/CHANGELOG.md +172 -0
  120. package/node_modules/pi-lens/README.md +103 -217
  121. package/node_modules/pi-lens/dist/{chunk-KXDQD34C.js → chunk-27JQHK7Y.js} +1 -1
  122. package/node_modules/pi-lens/dist/{chunk-W6VLB6LL.js → chunk-2APSZHHI.js} +61 -3
  123. package/node_modules/pi-lens/dist/{chunk-5EEWCJG7.js → chunk-2H5GHZKC.js} +8 -8
  124. package/node_modules/pi-lens/dist/{chunk-TS5EIWEF.js → chunk-2H7NFZ4Q.js} +11 -11
  125. package/node_modules/pi-lens/dist/{chunk-6GWCYEP7.js → chunk-37IDWT6O.js} +64 -16
  126. package/node_modules/pi-lens/dist/{chunk-OEPWTSUG.js → chunk-3PAS2ERX.js} +8 -8
  127. package/node_modules/pi-lens/dist/{chunk-ET3DSSFZ.js → chunk-3PO4YYOX.js} +9 -17
  128. package/node_modules/pi-lens/dist/{chunk-C6V2DSZZ.js → chunk-3QXFUP6T.js} +11 -11
  129. package/node_modules/pi-lens/dist/{chunk-HWMNTQBJ.js → chunk-3TSMQZG6.js} +32 -11
  130. package/node_modules/pi-lens/dist/{chunk-QY6J2FTK.js → chunk-4DAHGU3V.js} +15 -14
  131. package/node_modules/pi-lens/dist/{chunk-PCREZ4HJ.js → chunk-4IZZEN63.js} +33 -34
  132. package/node_modules/pi-lens/dist/{chunk-OYXD2MOM.js → chunk-5HBQL7DH.js} +2 -2
  133. package/node_modules/pi-lens/dist/{chunk-B4FAFEBP.js → chunk-5JB4WENL.js} +1 -1
  134. package/node_modules/pi-lens/dist/chunk-5YJXF2IS.js +56 -0
  135. package/node_modules/pi-lens/dist/{chunk-GHATCG2A.js → chunk-6CFSDLHE.js} +22 -18
  136. package/node_modules/pi-lens/dist/{chunk-FVQKX5KI.js → chunk-6E5QLMWI.js} +24 -22
  137. package/node_modules/pi-lens/dist/{chunk-AVBEPUCD.js → chunk-6GLMMGCX.js} +2 -2
  138. package/node_modules/pi-lens/dist/{chunk-YTXFNCVN.js → chunk-74AMPWNC.js} +2 -2
  139. package/node_modules/pi-lens/dist/{chunk-K2GV34T2.js → chunk-7CLWC2UH.js} +26 -37
  140. package/node_modules/pi-lens/dist/{chunk-MOEWCPMC.js → chunk-7DPXUPRF.js} +2 -2
  141. package/node_modules/pi-lens/dist/{chunk-7BEADGAZ.js → chunk-7U36VQL6.js} +2 -2
  142. package/node_modules/pi-lens/dist/{chunk-PPYUBO6Y.js → chunk-7WKVCZI4.js} +1 -1
  143. package/node_modules/pi-lens/dist/{chunk-ILC2B7IJ.js → chunk-7ZVTFLCC.js} +10 -10
  144. package/node_modules/pi-lens/dist/{chunk-IT7MFVGP.js → chunk-ADYQRETD.js} +2 -2
  145. package/node_modules/pi-lens/dist/{chunk-NCDH2JB7.js → chunk-ARTYCUGF.js} +25 -10
  146. package/node_modules/pi-lens/dist/{chunk-Z6WTLVUL.js → chunk-AXAR5ZW2.js} +225 -104
  147. package/node_modules/pi-lens/dist/{chunk-PK3GDU4M.js → chunk-AZG5UJYY.js} +1 -1
  148. package/node_modules/pi-lens/dist/{chunk-NRVWLTOY.js → chunk-B2OXE4AH.js} +60 -21
  149. package/node_modules/pi-lens/dist/{chunk-ORYQGVC3.js → chunk-B42AIWPJ.js} +2 -2
  150. package/node_modules/pi-lens/dist/{chunk-IC4L65U7.js → chunk-BBSDJTOV.js} +12 -13
  151. package/node_modules/pi-lens/dist/{chunk-HJWF7CGW.js → chunk-BKWFDWYM.js} +16 -16
  152. package/node_modules/pi-lens/dist/{chunk-D2ZYRI7M.js → chunk-C5PLBTNR.js} +1 -1
  153. package/node_modules/pi-lens/dist/{chunk-SRXYSLMW.js → chunk-CQY2HEH7.js} +1 -1
  154. package/node_modules/pi-lens/dist/{chunk-7424ANRU.js → chunk-CXQYK4YT.js} +1 -1
  155. package/node_modules/pi-lens/dist/{chunk-HYR25MV3.js → chunk-CZJGAOKL.js} +8 -7
  156. package/node_modules/pi-lens/dist/{chunk-DIIDMDZU.js → chunk-DCA2MXVQ.js} +11 -11
  157. package/node_modules/pi-lens/dist/{chunk-K2LD6YNH.js → chunk-DFKOA74L.js} +9 -9
  158. package/node_modules/pi-lens/dist/{chunk-AYDE7RFV.js → chunk-DI4AZZNY.js} +2 -2
  159. package/node_modules/pi-lens/dist/{chunk-6EXGCXM5.js → chunk-G53LBDNU.js} +99 -5
  160. package/node_modules/pi-lens/dist/chunk-GCSDF5IE.js +27 -0
  161. package/node_modules/pi-lens/dist/{chunk-5KLRCUDT.js → chunk-H5API74E.js} +6 -6
  162. package/node_modules/pi-lens/dist/chunk-HBX55MWO.js +27 -0
  163. package/node_modules/pi-lens/dist/{chunk-JRSS6KM4.js → chunk-HIJ4CHFF.js} +2 -2
  164. package/node_modules/pi-lens/dist/{chunk-3MHY4BQY.js → chunk-HIRBC72R.js} +4 -4
  165. package/node_modules/pi-lens/dist/{chunk-F7AMFFVK.js → chunk-HRLF35WL.js} +8 -8
  166. package/node_modules/pi-lens/dist/{chunk-HSTN27NR.js → chunk-I2FYOZNW.js} +9 -9
  167. package/node_modules/pi-lens/dist/{chunk-5FDUKJZO.js → chunk-I3NZVAMN.js} +9 -9
  168. package/node_modules/pi-lens/dist/{chunk-NZINZCHB.js → chunk-INBK3HIT.js} +3 -3
  169. package/node_modules/pi-lens/dist/{chunk-PXGVB2CY.js → chunk-J2ZB5MDS.js} +20 -18
  170. package/node_modules/pi-lens/dist/{chunk-HYDJUVOE.js → chunk-JGUDT5KD.js} +4 -4
  171. package/node_modules/pi-lens/dist/chunk-JOIKBUQN.js +88 -0
  172. package/node_modules/pi-lens/dist/{chunk-AZXTLZHE.js → chunk-K4Z7MK6T.js} +169 -165
  173. package/node_modules/pi-lens/dist/{chunk-WTSQKJAR.js → chunk-K7O6AHSJ.js} +10 -10
  174. package/node_modules/pi-lens/dist/{chunk-S6ZQFPOX.js → chunk-KNJH6WJQ.js} +6 -6
  175. package/node_modules/pi-lens/dist/{chunk-SUIZOCSY.js → chunk-KNSOA43J.js} +1 -1
  176. package/node_modules/pi-lens/dist/{chunk-3QMLB4TI.js → chunk-KXGTLAUW.js} +2 -2
  177. package/node_modules/pi-lens/dist/{chunk-OHEUOWYT.js → chunk-KZ732ZVW.js} +1 -1
  178. package/node_modules/pi-lens/dist/{chunk-G3LR6V6N.js → chunk-L6BDRYUK.js} +19 -17
  179. package/node_modules/pi-lens/dist/{chunk-OVPR3GQ6.js → chunk-LGH2HHZG.js} +24 -6
  180. package/node_modules/pi-lens/dist/{chunk-3R3Z54J7.js → chunk-LOEJFTF2.js} +1 -1
  181. package/node_modules/pi-lens/dist/{chunk-HGEE5LDW.js → chunk-LQQNFCQJ.js} +1 -1
  182. package/node_modules/pi-lens/dist/chunk-LVLPA32Q.js +810 -0
  183. package/node_modules/pi-lens/dist/chunk-M2YMBT5G.js +73 -0
  184. package/node_modules/pi-lens/dist/{chunk-Z2W5YJBW.js → chunk-MJRGPEQ5.js} +11 -11
  185. package/node_modules/pi-lens/dist/{chunk-3EIZMRXI.js → chunk-MOAVEPC4.js} +10 -10
  186. package/node_modules/pi-lens/dist/{chunk-TOOXNL6M.js → chunk-NGNBJIUO.js} +7 -7
  187. package/node_modules/pi-lens/dist/{chunk-AGEQRJ5A.js → chunk-NHA5K226.js} +1 -1
  188. package/node_modules/pi-lens/dist/{chunk-YLW26OHX.js → chunk-NNEQOC3U.js} +31 -59
  189. package/node_modules/pi-lens/dist/{chunk-ZWZD4TJ5.js → chunk-O2MHF7QM.js} +35 -36
  190. package/node_modules/pi-lens/dist/{chunk-PTJXMYRY.js → chunk-OLWGYBYT.js} +15 -16
  191. package/node_modules/pi-lens/dist/{chunk-JKAVKTMY.js → chunk-OZQQ3AIR.js} +17 -20
  192. package/node_modules/pi-lens/dist/{chunk-6JLNZ6DP.js → chunk-P5MSLVUW.js} +10 -10
  193. package/node_modules/pi-lens/dist/{chunk-OF2YGDUE.js → chunk-PFJLYRO3.js} +37 -38
  194. package/node_modules/pi-lens/dist/chunk-PKWEBMCA.js +2957 -0
  195. package/node_modules/pi-lens/dist/{chunk-JLMS7EMD.js → chunk-PPQHMSPH.js} +16 -15
  196. package/node_modules/pi-lens/dist/{chunk-6EIV3H7O.js → chunk-PQF6YGYB.js} +12 -5
  197. package/node_modules/pi-lens/dist/{chunk-VU2PRGRI.js → chunk-PQXUZYTQ.js} +4 -4
  198. package/node_modules/pi-lens/dist/{chunk-MV6ST2KT.js → chunk-Q7J3JYJ2.js} +13 -12
  199. package/node_modules/pi-lens/dist/{chunk-BMMRLJA4.js → chunk-QE5DJ7MX.js} +27 -10
  200. package/node_modules/pi-lens/dist/{chunk-IZ36G463.js → chunk-QE7BJQ6K.js} +7 -7
  201. package/node_modules/pi-lens/dist/{chunk-E5SSUV2A.js → chunk-QMWKSYWB.js} +4 -4
  202. package/node_modules/pi-lens/dist/{chunk-QJ4T73J5.js → chunk-QV3JPCMK.js} +1 -1
  203. package/node_modules/pi-lens/dist/{chunk-3PMLYGJN.js → chunk-R4L7KZ7R.js} +5 -5
  204. package/node_modules/pi-lens/dist/{chunk-7ZVEFWOE.js → chunk-RIH3UBK4.js} +10 -10
  205. package/node_modules/pi-lens/dist/{chunk-T5EGSBM2.js → chunk-RJ3APNIP.js} +3 -3
  206. package/node_modules/pi-lens/dist/{chunk-AAIVSSUU.js → chunk-S6MCMD27.js} +35 -12
  207. package/node_modules/pi-lens/dist/{chunk-SF7KSXB5.js → chunk-SCU62JLX.js} +6 -6
  208. package/node_modules/pi-lens/dist/{chunk-FDLGJFAE.js → chunk-SDYLT45T.js} +3 -3
  209. package/node_modules/pi-lens/dist/chunk-TFKN5EIR.js +27 -0
  210. package/node_modules/pi-lens/dist/{chunk-Y7XMKBFP.js → chunk-TKOFTLGB.js} +34 -26
  211. package/node_modules/pi-lens/dist/chunk-TQWRH25U.js +35 -0
  212. package/node_modules/pi-lens/dist/{chunk-DZSQXG66.js → chunk-TWEOJE3D.js} +277 -62
  213. package/node_modules/pi-lens/dist/{chunk-R67WQ5RY.js → chunk-UN72ZAJ5.js} +8 -8
  214. package/node_modules/pi-lens/dist/{chunk-AD7JDEI6.js → chunk-UNP6Y4JV.js} +16 -16
  215. package/node_modules/pi-lens/dist/{chunk-D6ANA6YU.js → chunk-VGRGW4UL.js} +63 -55
  216. package/node_modules/pi-lens/dist/{chunk-DFAY7JUN.js → chunk-VSQT6IHZ.js} +2 -2
  217. package/node_modules/pi-lens/dist/{chunk-7T64QA5D.js → chunk-VWEBZ2JV.js} +39 -38
  218. package/node_modules/pi-lens/dist/{chunk-HRQTYU2T.js → chunk-W26QZ3OM.js} +1 -1
  219. package/node_modules/pi-lens/dist/{chunk-2HWVG3IM.js → chunk-XDNWR7SG.js} +2 -2
  220. package/node_modules/pi-lens/dist/{chunk-75TVYCQW.js → chunk-XSC3BCN3.js} +5 -5
  221. package/node_modules/pi-lens/dist/{chunk-ME6MF2N2.js → chunk-YCR6ZYTE.js} +1 -1
  222. package/node_modules/pi-lens/dist/{chunk-LD7SXICE.js → chunk-ZI7YHV6I.js} +5 -5
  223. package/node_modules/pi-lens/dist/{chunk-E3PNZDPH.js → chunk-ZQSSO7LO.js} +33 -1
  224. package/node_modules/pi-lens/dist/{chunk-T6PPK3T6.js → chunk-ZULZS2I6.js} +385 -407
  225. package/node_modules/pi-lens/dist/index.js +6508 -5413
  226. package/node_modules/pi-lens/dist/mcp/analyze-cli.js +9 -9
  227. package/node_modules/pi-lens/dist/mcp/cli.js +39 -38
  228. package/node_modules/pi-lens/dist/mcp/server.js +602 -345
  229. package/node_modules/pi-lens/dist/mcp/worker.js +57 -58
  230. package/node_modules/pi-lens/dist/probes/installer.js +19 -17
  231. package/node_modules/pi-lens/docs/architecture.md +113 -0
  232. package/node_modules/pi-lens/docs/ast-grep_rules_catalog.md +2 -2
  233. package/node_modules/pi-lens/docs/ci.md +18 -4
  234. package/node_modules/pi-lens/docs/defect-shapes.md +41 -3
  235. package/node_modules/pi-lens/docs/dependencies.md +10 -10
  236. package/node_modules/pi-lens/docs/features.md +3 -3
  237. package/node_modules/pi-lens/docs/invariants/dispatch-runners.md +13 -1
  238. package/node_modules/pi-lens/docs/invariants/lsp-trust-exec.md +19 -0
  239. package/node_modules/pi-lens/docs/language-coverage.md +39 -0
  240. package/node_modules/pi-lens/docs/lsp-capability-matrix.md +10 -4
  241. package/node_modules/pi-lens/docs/lsp-idle-eviction.md +1 -1
  242. package/node_modules/pi-lens/docs/pi-lens-fixer.md +4 -0
  243. package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +1 -1
  244. package/node_modules/pi-lens/docs/pi-lens-reviewer.md +4 -5
  245. package/node_modules/pi-lens/docs/pi-lens-subagent.md +5 -2
  246. package/node_modules/pi-lens/docs/prose-standard.md +112 -0
  247. package/node_modules/pi-lens/docs/servercapabilities.md +1 -1
  248. package/node_modules/pi-lens/docs/usage.md +50 -0
  249. package/node_modules/pi-lens/package.json +1 -1
  250. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/array-callback-return-js-test.yml +23 -0
  251. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/array-callback-return-test.yml +23 -0
  252. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/no-negation-in-equality-check-js-test.yml +8 -0
  253. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/no-negation-in-equality-check-test.yml +8 -0
  254. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/unchecked-throwing-call-js-test.yml +16 -0
  255. package/node_modules/pi-lens/rules/ast-grep-rules/rule-tests/unchecked-throwing-call-test.yml +16 -0
  256. package/node_modules/pi-lens/rules/ast-grep-rules/rules/array-callback-return-js.yml +8 -0
  257. package/node_modules/pi-lens/rules/ast-grep-rules/rules/array-callback-return.yml +8 -0
  258. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-negation-in-equality-check-js.yml +17 -5
  259. package/node_modules/pi-lens/rules/ast-grep-rules/rules/no-negation-in-equality-check.yml +17 -5
  260. package/node_modules/pi-lens/rules/ast-grep-rules/rules/unchecked-throwing-call-js.yml +8 -1
  261. package/node_modules/pi-lens/rules/ast-grep-rules/rules/unchecked-throwing-call.yml +8 -1
  262. package/node_modules/pi-lens/rules/tree-sitter-queries/typescript/ts-react-antipatterns.yml +8 -0
  263. package/node_modules/pi-web-access/CHANGELOG.md +29 -0
  264. package/node_modules/pi-web-access/README.md +35 -15
  265. package/node_modules/pi-web-access/anysearch.ts +7 -3
  266. package/node_modules/pi-web-access/autom.ts +196 -0
  267. package/node_modules/pi-web-access/cloro.ts +254 -0
  268. package/node_modules/pi-web-access/curator-page.ts +7 -1
  269. package/node_modules/pi-web-access/curator-server.ts +3 -0
  270. package/node_modules/pi-web-access/dist/index.js +12931 -12111
  271. package/node_modules/pi-web-access/dist/mcp-cli.js +1188 -416
  272. package/node_modules/pi-web-access/domain-filter-normalization.ts +30 -0
  273. package/node_modules/pi-web-access/duckduckgo-rate-limit.ts +144 -34
  274. package/node_modules/pi-web-access/duckduckgo.ts +11 -3
  275. package/node_modules/pi-web-access/extract.ts +60 -4
  276. package/node_modules/pi-web-access/gemini-search.ts +25 -5
  277. package/node_modules/pi-web-access/index.ts +9 -1
  278. package/node_modules/pi-web-access/package.json +2 -2
  279. package/node_modules/pi-web-access/page-query.ts +12 -3
  280. package/node_modules/pi-web-access/specstream.ts +276 -0
  281. package/node_modules/pi-web-access/tool-activation.ts +21 -6
  282. package/node_modules/pi-web-access/utils.ts +4 -0
  283. package/node_modules/pi-web-access/video-extract.ts +2 -2
  284. package/node_modules/pi-web-access/web-tool-core.ts +24 -5
  285. package/node_modules/pi-web-access/youtube-extract.ts +2 -2
  286. package/package.json +11 -8
  287. package/node_modules/pi-lens/dist/chunk-3VWEZ6H2.js +0 -72
  288. package/node_modules/pi-lens/dist/chunk-7KWI5UHL.js +0 -28
  289. package/node_modules/pi-lens/dist/chunk-7M64NTAK.js +0 -38
  290. package/node_modules/pi-lens/dist/chunk-BEIPWPVR.js +0 -1037
  291. package/node_modules/pi-lens/dist/chunk-D7OEGXDX.js +0 -2417
  292. package/node_modules/pi-lens/dist/chunk-KUDUKKQE.js +0 -89
  293. package/node_modules/pi-lens/dist/chunk-TM3A3K7T.js +0 -28
  294. package/node_modules/pi-lens/dist/chunk-VD7MQFEV.js +0 -56
  295. package/node_modules/pi-lens/dist/chunk-YLHJWAQS.js +0 -256
  296. package/node_modules/pi-lens/dist/chunk-YULIERZW.js +0 -27
@@ -167,7 +167,7 @@ Projects help you organize your work and collaborate with your team.
167
167
 
168
168
  ## Empty State Design
169
169
 
170
- Every empty state needs:
170
+ A first-use empty state carries all five parts below. The other types listed after them need fewer: a user-cleared state stays light, and a no-results state mostly needs a way out.
171
171
 
172
172
  ### What Will Be Here
173
173
  "Your recent projects will appear here"
@@ -195,17 +195,18 @@ Illustration or icon (not just text on blank page)
195
195
 
196
196
  ### Technical approaches:
197
197
 
198
- **Tooltip libraries**: Tippy.js, Popper.js
199
- **Tour libraries**: Intro.js, Shepherd.js, React Joyride
198
+ **Tooltip libraries**: Floating UI, Tippy.js
199
+ **Tour libraries**: Driver.js, React Joyride (both MIT)
200
200
  **Modal patterns**: Focus trap, backdrop, ESC to close
201
201
  **Progress tracking**: LocalStorage for "seen" states
202
202
  **Analytics**: Track completion, drop-off points
203
203
 
204
204
  **Storage patterns**:
205
205
  ```javascript
206
- // Track which onboarding steps user has seen
207
- localStorage.setItem('onboarding-completed', 'true');
208
- localStorage.setItem('feature-tooltip-seen-reports', 'true');
206
+ // Namespace keys by account id + onboarding version, so a shared browser
207
+ // doesn't let one account's progress hide onboarding for another.
208
+ localStorage.setItem('onboarding-completed:v1:' + userId, 'true');
209
+ localStorage.setItem('feature-tooltip-seen-reports:v1:' + userId, 'true');
209
210
  ```
210
211
 
211
212
  Show onboarding once: track completion and respect dismissals.
@@ -57,7 +57,7 @@ Organized by what you're trying to achieve, not by technology name.
57
57
 
58
58
  ### Render beyond CSS
59
59
  - **WebGL** (all browsers): shader effects, post-processing, particle systems. Libraries: Three.js, OGL (lightweight), regl. Use for effects CSS can't express.
60
- - **WebGPU** (Chrome/Edge; Safari 26+; Firefox on Windows/macOS; flag only on Firefox Linux/Android): next-gen GPU compute, more powerful than WebGL. Always fall back to WebGL2.
60
+ - **WebGPU** (Chrome/Edge; Safari 26+; Firefox on Windows/macOS; flag only on Firefox Linux/Android): next-gen GPU compute, more powerful than WebGL. Always fall back to WebGL2; gate it behind API detection plus a `navigator.gpu.requestAdapter()` null check, so a blocklisted or headless GPU still reaches the fallback.
61
61
  - **Canvas 2D / OffscreenCanvas**: custom rendering, pixel manipulation, or moving heavy rendering off the main thread entirely via Web Workers + OffscreenCanvas.
62
62
  - **SVG filter chains**: displacement maps, turbulence, morphology for organic distortion effects. CSS-animatable.
63
63
 
@@ -94,7 +94,7 @@ Every technique must degrade gracefully. The experience without the enhancement
94
94
  ```
95
95
 
96
96
  ```javascript
97
- if ('gpu' in navigator) { /* WebGPU */ }
97
+ if ('gpu' in navigator && await navigator.gpu.requestAdapter()) { /* WebGPU */ }
98
98
  else if (canvas.getContext('webgl2')) { /* WebGL2 fallback */ }
99
99
  /* CSS-only fallback must still look good */
100
100
  ```
@@ -54,7 +54,7 @@ Systematically reduce intensity across these dimensions:
54
54
  - **Neutral dominance**: Let neutrals do more work, use color as accent (10% rule)
55
55
  - **Gentler contrasts**: High contrast only where it matters most
56
56
  - **Tinted grays**: Use warm or cool tinted grays instead of pure gray. Adds depth without loudness
57
- - **Never gray on color**: If you have gray text on a colored background, use a darker shade of that color or transparency instead
57
+ - **Never gray on color**: If you have gray text on a colored background, use a darker shade of that color instead; transparency ties contrast to whatever sits behind the text
58
58
 
59
59
  ### Visual Weight Reduction
60
60
  - **Typography**: Reduce font weights (900 → 600, 700 → 500), decrease sizes where appropriate
@@ -66,6 +66,12 @@ After Matthew Butterick's *Practical Typography*, paraphrased; where his numbers
66
66
  - Break a heading by hand only between phrases, and check the break at every width the heading renders at. A hard break that lands mid-line on a phone is worse than the default wrap.
67
67
  - An uneven break can carry meaning: a headline that lands on one word for weight, a poster line, a pull quote. Make it deliberate with a hard break or a wrap set on that element, and keep it rare. The detector's `straggler` and `unbalanced-heading` findings are advisory for this reason; say which breaks are intended.
68
68
 
69
+ ## Optical alignment
70
+
71
+ - Put `text-box: trim-both cap alphabetic` on the label element, not the flex container. On an `inline-flex` button the text is an anonymous flex item, and trim on the button never reaches it. Wrap the label in a `<span>` with `display: block` and trim that.
72
+ - For a trimmed label's fallback face, set `size-adjust` in the fallback `@font-face` to the web font's cap height over the fallback's, both per em. `ascent-override`, `descent-override` and `line-gap-override` change only what trim removes.
73
+ - Judge the rendered component: centered caps are not a centered word. Most of a mixed-case label sits in the x-height, whose center is below the cap center, so a trimmed label can still look low. Check real labels at every size the control ships.
74
+
69
75
  ## Verify
70
76
 
71
77
  - Primary, secondary, body, and metadata roles are recognizable without reading the copy.
@@ -8,7 +8,7 @@ A probe tests composition, narrative, hierarchy, density, focal moment, signatur
8
8
 
9
9
  The comp round runs inside the build's phase state: `impeccable build-phase start --direction <seed reference>` has already run (with `--decision-comp <path>` when the chosen card has a decision comp) and its `comps` phase is open before the first comp is generated; a comp rendered before that sits outside the state, and a session resumed from that point has no phases to follow. `impeccable generate-image` refuses to write under `.impeccable/mocks/` until start has run; a harness-native image tool is bound by the same order.
10
10
 
11
- Render three distinct high-fidelity north-star comps of the requested surface, saved under `.impeccable/mocks/` so they survive the session. When the chosen card has a decision comp, it is option one: it stays at its path under `.impeccable/mocks/decision/`, where the gate counts it through `--decision-comp`, and is never regenerated; render the other two. Comp at the surface's own viewport: portrait at device size for a native app or mobile-first surface, desktop landscape otherwise; a phone screen comped landscape misstates the composition before anything is built against it. Comps are the build thread's own work, never delegated: the thread that writes the prompts holds the direction's full context and has seen every comp when the build starts. Open every image by its workspace-relative path; sandboxed viewers reject absolute paths, and everything under the project root has a relative one. Base the comps on real content and the surface concepts already developed with the user. On an established world, anchor every comp on the real identity: capture a screenshot of a representative existing page and pass it as a reference image (the harness image tool's input image, or `impeccable generate-image --ref`); the prompt leads with the new surface's structure while the reference carries palette, type, and component character, because DESIGN.md words alone drift where a pixel reference does not. Name what the reference contributes and what it must not: chrome, palette, type, and component character carry over; the reference page's own content does not, and a banner, hero, or card lifted verbatim is the reference leaking, not fidelity. Three is the number: one comp invites rubber-stamping; the spread between three surfaces the composition worth building. The chosen card's decision comp is the first of the three: it already renders this direction at full fidelity under this discipline, so generate two more that vary what the first held fixed, from the direction in words rather than with the first comp as an input image (a reference image anchors the layout, and three comps collapse into one composition). How comps two and three vary from the first is the mode's call, in its COMPS rules. A variant that simplifies the first into a tidier version of itself adds no choice to the round. Send all three to the approval point together. Only a round arriving with no decision comp (a degraded roll, an identity-mode page, a direction pinned without the decision round) renders all three here.
11
+ Render three distinct high-fidelity north-star comps of the requested surface, saved under `.impeccable/mocks/` so they survive the session. When the chosen card has a decision comp, it is option one: it stays at its path under `.impeccable/mocks/decision/`, where the gate counts it through `--decision-comp`, and is never regenerated; render the other two. Comp at the surface's own viewport: portrait at device size for a native app or mobile-first surface, desktop landscape otherwise; a phone screen comped landscape misstates the composition before anything is built against it. Comps are the build thread's own work, never delegated: the thread that writes the prompts holds the direction's full context and has seen every comp when the build starts. Open every image by its workspace-relative path; sandboxed viewers reject absolute paths, and everything under the project root has a relative one. Base the comps on real content and the surface concepts already developed with the user. On an established world, anchor every comp on the real identity: capture a screenshot of a representative existing page (on a seeded world with no page yet, use the image its DESIGN.md names under `Reference image:`) and pass it as a reference image (the harness image tool's input image, or `impeccable generate-image --ref`); the prompt leads with the new surface's structure while the reference carries palette, type, and component character, because DESIGN.md words alone drift where a pixel reference does not. Name what the reference contributes and what it must not: chrome, palette, type, and component character carry over; the reference page's own content does not, and a banner, hero, or card lifted verbatim is the reference leaking, not fidelity. Three is the number: one comp invites rubber-stamping; the spread between three surfaces the composition worth building. The chosen card's decision comp is the first of the three: it already renders this direction at full fidelity under this discipline, so generate two more that vary what the first held fixed, from the direction in words rather than with the first comp as an input image (a reference image anchors the layout, and three comps collapse into one composition). How comps two and three vary from the first is the mode's call, in its COMPS rules. A variant that simplifies the first into a tidier version of itself adds no choice to the round. Send all three to the approval point together. Only a round arriving with no decision comp (a degraded roll, an identity-mode page, a direction pinned without the decision round) renders all three here.
12
12
 
13
13
  - A comp prompt is short, 150 to 300 words, and carries only what the image model cannot know. The model draws what the prompt names and stops deciding whatever the prompt pins down, so a prompt that specifies everything gets back a template. Open with the surface: the kind of screen it is (a desktop web app, a documentation page, a landing page, a native app screen at its device viewport) for the product, by name, rendered edge to edge with crisp readable text and no browser window, device, or desk around it. Then the product and the visitor's job in plain words, with the real content that answers it: names, numbers with units, the offer or the state, any claim at its honest certainty, and the next action by name. Then what leads this comp, its product concept (summary-led, timeline-led, offer-led, reference-led), and the parts the screen holds in reading order, a phrase each. Then the frame in one line: the product's mark and name, its navigation, its utility controls, and the far edge, so the comp is a finished screen, never a fragment; a page with no navigation says so instead of inventing one. Leave sizes, positions, colours, and component styling out, except a colour, typeface, or brand element the user pinned: that is content, so state it. Self-check every render: if it could hang as a poster, or reads as a photograph with some text on it, it is not a comp; regenerate.
14
14
  - The look comes from the world, and from a picture wherever one exists. An established world has the screenshot reference above: it carries the look, so the prompt adds one sentence on what the reference contributes and nothing more about style. A catalog world has card images: attach its board and hero as reference images (the NEXT line names them; `impeccable generate-image --ref <board> --ref <hero>`, or the harness image tool's input images) and write one sentence, that the references are style inspiration adapted into a real working product, their layout and content not to be copied. Describing the style as well overrides the picture. A direction with no card images carries its look in two to four sentences of concrete visual law: the ground and main colours with what each does, the type voices, and the one signature that makes it recognisable. No path lists colours past the main few or describes components one by one.
@@ -2,8 +2,8 @@
2
2
  # The launchers, the npm shim, `impeccable install` and scripts/fetch-engine.mjs verify
3
3
  # every engine download against this file. Written by
4
4
  # `node scripts/check-engine-release.mjs --record` after each engine release.
5
- 0.1.21 impeccable-darwin-arm64 086fd22e54c445a0e792f66d2f168e35ec93f7c59054e1fde539d0d95b01ce41
6
- 0.1.21 impeccable-darwin-x64 bbcd4307b4dd7e0c8a3a264b880b5d73ae1971cc1d219677b6f7e044b9f05eb7
7
- 0.1.21 impeccable-linux-x64 579a0b6ff639ed28812ae632c556b6524a5b7d13fff4227cd3095a65554415b6
8
- 0.1.21 impeccable-linux-arm64 e2cda6ac3eefb1cdd51d147f6e897a19c773fe7bbfbdbd1361eef744d4137080
9
- 0.1.21 impeccable-windows-x64.exe 4cb1d921315e51ace39af5abbfd2e1be3c8624fcfc5074539f43ba894777fece
5
+ 0.1.25 impeccable-darwin-arm64 a91bc3ef3aefc8099475841565e4108b9c62b0302b7e7b61a457d5212d7abc3c
6
+ 0.1.25 impeccable-darwin-x64 e8ffbee520674f371dfab3cb936ab66c543bf23e5b9f09a4efa696b1780ce2bc
7
+ 0.1.25 impeccable-linux-x64 f48aca43294a9ba1ea3eb7b1d0a0b2d595c480e8c65003e410247b9884820ddd
8
+ 0.1.25 impeccable-linux-arm64 2b4713a029bb6c56f95a5477e269e174053b74ef2133bf5250403a49db68b917
9
+ 0.1.25 impeccable-windows-x64.exe ef4ef9df8871eff2b219cede89ca7e7086eed9531aafdc9a8afbc74b0be5fbba
@@ -32,18 +32,23 @@ probe_ok() {
32
32
  return 1
33
33
  }
34
34
  probing=${IMPECCABLE_LAUNCHER_PROBE:-}
35
+ # Space, tab and CR, made once: hooks run this launcher on every edit and turn
36
+ # end, and every process it starts before the engine costs real time on a busy
37
+ # Windows machine (#1237), so the hot path below sticks to shell builtins.
38
+ ws=$(printf ' \t\r')
35
39
 
36
- # Prints the digest engine-checksums.txt records for engine version $1 and
37
- # asset $2 (lines are "<version> <asset> <sha256>"), nothing when there is none.
40
+ # Sets $digest_out to the digest engine-checksums.txt records for engine
41
+ # version $1 and asset $2 (lines are "<version> <asset> <sha256>"), empty when
42
+ # there is none.
38
43
  # A CR is a separator too (CRLF checkouts), and a last line with no newline
39
44
  # still counts.
40
45
  manifest_digest() {
46
+ digest_out=""
41
47
  [ -f "$manifest" ] || return 0
42
- sep=$(printf ' \t\r')
43
- while IFS="$sep" read -r m_version m_asset m_sum _ || [ -n "$m_version" ]; do
48
+ while IFS="$ws" read -r m_version m_asset m_sum _ || [ -n "$m_version" ]; do
44
49
  case "$m_version" in ''|'#'*) continue ;; esac
45
50
  if [ "$m_version" = "$1" ] && [ "$m_asset" = "$2" ]; then
46
- printf '%s' "$m_sum"
51
+ digest_out=$m_sum
47
52
  return 0
48
53
  fi
49
54
  done < "$manifest"
@@ -52,10 +57,12 @@ manifest_digest() {
52
57
  # Sets $expected (and, on Windows on ARM, which runs x64 binaries,
53
58
  # $expected_x64) from engine-checksums.txt.
54
59
  read_expected() {
55
- expected=$(manifest_digest "$version" "$asset")
60
+ manifest_digest "$version" "$asset"
61
+ expected=$digest_out
56
62
  expected_x64=""
57
63
  if [ "$os" = windows ] && [ "$arch" = arm64 ]; then
58
- expected_x64=$(manifest_digest "$version" impeccable-windows-x64.exe)
64
+ manifest_digest "$version" impeccable-windows-x64.exe
65
+ expected_x64=$digest_out
59
66
  fi
60
67
  }
61
68
  # Sets $size to the byte count of the cached binary (BSD wc pads it).
@@ -73,7 +80,19 @@ hash_file() {
73
80
  fi
74
81
  }
75
82
 
76
- dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
83
+ # This script's directory without dirname or a subshell: what dirname "$0"
84
+ # gives, made absolute by a cd there and back.
85
+ case $0 in
86
+ */*) dir=${0%/*} ;;
87
+ *) dir=. ;;
88
+ esac
89
+ [ -n "$dir" ] || dir=/
90
+ caller_pwd=$PWD
91
+ CDPATH= cd -- "$dir" || { echo "impeccable: cannot enter the launcher directory $dir" >&2; exit 127; }
92
+ dir=$PWD
93
+ skill_dir=${dir%/*}
94
+ [ -n "$skill_dir" ] || skill_dir=/
95
+ cd -- "$caller_pwd" || { echo "impeccable: cannot return to $caller_pwd" >&2; exit 127; }
77
96
  # VS Code syncs a plugin without the executable bit. Its hooks run this through
78
97
  # sh, so restore the bit for the commands the skill runs directly (#1249).
79
98
  [ -x "$0" ] || chmod +x "$0" 2>/dev/null || :
@@ -86,7 +105,7 @@ manifest="$dir/engine-checksums.txt"
86
105
  # cannot find reference/*.md (so native platform refs never inline) or read its
87
106
  # own version (so UPDATE_AVAILABLE never fires). Setting it here covers every
88
107
  # candidate the launcher can exec.
89
- : "${IMPECCABLE_SKILL_DIR:=$(CDPATH= cd -- "$dir/.." && pwd)}"
108
+ : "${IMPECCABLE_SKILL_DIR:=$skill_dir}"
90
109
  : "${IMPECCABLE_SELF:=$0}"
91
110
  export IMPECCABLE_SKILL_DIR IMPECCABLE_SELF
92
111
 
@@ -94,20 +113,29 @@ if [ -n "${IMPECCABLE_BIN:-}" ] && [ -x "${IMPECCABLE_BIN}" ]; then
94
113
  exec "${IMPECCABLE_BIN}" "$@"
95
114
  fi
96
115
 
97
- case "$(uname -s 2>/dev/null || echo unknown)" in
116
+ # Windows names itself in the environment, which saves a process there; one
117
+ # uname covers the rest. PROCESSOR_ARCHITECTURE is what impeccable.cmd reads,
118
+ # so both launchers pick the same cached engine (AMD64 under x64 Git Bash on
119
+ # ARM64, as uname -m reported before).
120
+ if [ "${OS:-}" = Windows_NT ]; then
121
+ sys="Windows_NT ${PROCESSOR_ARCHITECTURE:-unknown}"
122
+ else
123
+ sys=$(uname -sm 2>/dev/null) || sys="unknown unknown"
124
+ fi
125
+ case "${sys%% *}" in
98
126
  Darwin) os=darwin ;;
99
127
  Linux) os=linux ;;
100
128
  MINGW*|MSYS*|CYGWIN*|Windows_NT) os=windows ;;
101
129
  *) os=unknown ;;
102
130
  esac
103
- case "$(uname -m 2>/dev/null || echo unknown)" in
104
- arm64|aarch64) arch=arm64 ;;
105
- x86_64|amd64) arch=x64 ;;
131
+ case "${sys##* }" in
132
+ arm64|aarch64|ARM64) arch=arm64 ;;
133
+ x86_64|amd64|AMD64) arch=x64 ;;
106
134
  *) arch=unknown ;;
107
135
  esac
108
136
 
109
137
  version=""
110
- [ -f "$dir/VERSION" ] && version=$(tr -d '[:space:]' < "$dir/VERSION")
138
+ [ -f "$dir/VERSION" ] && { IFS="$ws" read -r version _ < "$dir/VERSION" || :; }
111
139
  bin="$dir/bin/$os-$arch/impeccable"
112
140
  [ "$os" = windows ] && bin="$bin.exe"
113
141
 
@@ -136,7 +164,7 @@ if [ -n "$version" ] && [ -x "$cached" ]; then
136
164
  cached_size
137
165
  stamp=""
138
166
  stamp_size=""
139
- { IFS="$(printf ' \t\r')" read -r stamp stamp_size _ < "$cached.verified"; } 2>/dev/null || :
167
+ { IFS="$ws" read -r stamp stamp_size _ < "$cached.verified"; } 2>/dev/null || :
140
168
  if [ -n "$stamp" ] && [ "$stamp_size" = "$size" ] && { [ "$stamp" = "$expected" ] || [ "$stamp" = "$expected_x64" ]; } && [ ! "$cached" -nt "$cached.verified" ]; then
141
169
  exec "$cached" "$@"
142
170
  fi
@@ -160,8 +188,23 @@ setup_help() {
160
188
  echo "Alternatively, set IMPECCABLE_HOME to a writable cache location, or IMPECCABLE_BIN to a preinstalled engine binary." >&2
161
189
  }
162
190
  fetch_url() {
191
+ http_status=""
192
+ download_host=""
163
193
  if command -v curl >/dev/null 2>&1; then
164
- curl -fsSL --retry 2 -o "$tmp" "$1" 2>/dev/null
194
+ fetch_result=0
195
+ metadata=$(curl -fsSL --retry 2 -w '%{http_code} %{url_effective}' -o "$tmp" "$1" 2>/dev/null) || fetch_result=$?
196
+ http_status=${metadata%% *}
197
+ effective_url=${metadata#* }
198
+ # Only the authority is needed, never the signed storage URL's query.
199
+ download_host=${effective_url#*://}
200
+ download_host=${download_host%%/*}
201
+ download_host=${download_host##*@}
202
+ case "$download_host" in
203
+ \[*) download_host=${download_host%%]*}] ;;
204
+ *) download_host=${download_host%%:*} ;;
205
+ esac
206
+ download_host=$(printf '%s' "$download_host" | tr '[:upper:]' '[:lower:]')
207
+ return "$fetch_result"
165
208
  elif command -v wget >/dev/null 2>&1; then
166
209
  wget -q -O "$tmp" "$1" 2>/dev/null
167
210
  else
@@ -256,6 +299,16 @@ if [ -n "$version" ] && [ "$os" != unknown ] && [ "$arch" != unknown ]; then
256
299
  exec "$cached" "$@"
257
300
  fi
258
301
  rm -f "$tmp" 2>/dev/null
302
+ case "$http_status" in
303
+ 5[0-9][0-9])
304
+ case "$download_host" in
305
+ github.com|*.github.com|githubusercontent.com|*.githubusercontent.com)
306
+ echo "impeccable: could not download engine $version: GitHub's downloads are failing right now (HTTP $http_status from $download_host). This is an outage on GitHub's side, not a problem with your setup or the CLI, so updating won't help. Check https://www.githubstatus.com and run the same command again once GitHub has recovered." >&2 ;;
307
+ *)
308
+ echo "impeccable: could not download engine $version: $download_host is failing right now (HTTP $http_status), a server error on $download_host's side. Try again later." >&2 ;;
309
+ esac
310
+ exit 127 ;;
311
+ esac
259
312
  echo "impeccable: could not download engine $version from $url; check network access, the release URL, and curl or wget availability." >&2
260
313
  setup_help
261
314
  exit 127
@@ -93,11 +93,26 @@ goto run
93
93
  :no_cache
94
94
 
95
95
  if defined IMPECCABLE_LAUNCHER_PROBE goto download
96
- where impeccable >nul 2>nul
97
- if errorlevel 1 goto download
98
- call :probe impeccable
96
+ rem The first impeccable on PATH, resolved once so the probe and the run see
97
+ rem the same file. A batch shim (npm writes impeccable.cmd) must run under
98
+ rem call to return here (#1240), and call expands % in the arguments a second
99
+ rem time; a real binary runs directly so a target such as a%20b reaches it intact.
100
+ set "path_bin="
101
+ rem where also lists npm's extensionless POSIX shim, which cmd cannot run:
102
+ rem take the first match with a runnable extension.
103
+ rem Loop letters c and k are not path modifiers, so %%~xc reads as the
104
+ rem extension of c and never as a loop variable followed by text.
105
+ for /f "delims=" %%c in ('where impeccable 2^>nul') do if not defined path_bin for %%k in (.exe .com .cmd .bat) do if /I "%%~xc"=="%%k" set "path_bin=%%c"
106
+ if not defined path_bin goto download
107
+ call :probe "%path_bin%"
99
108
  if not "%probe_ok%"=="1" goto download
100
- impeccable %*
109
+ for %%k in ("%path_bin%") do set "path_ext=%%~xk"
110
+ if /I "%path_ext%"==".cmd" goto path_shim
111
+ if /I "%path_ext%"==".bat" goto path_shim
112
+ "%path_bin%" %*
113
+ exit /b %errorlevel%
114
+ :path_shim
115
+ call "%path_bin%" %*
101
116
  exit /b %errorlevel%
102
117
 
103
118
  :download
@@ -139,14 +154,14 @@ rem branch on the command's failure directly.
139
154
  (type nul >"%part%") 2>nul || goto staging_write_failed
140
155
  set "url=%IMPECCABLE_DOWNLOAD_BASE%/engine-v%version%/%asset%"
141
156
  if not defined expected goto fetch_x64
142
- curl.exe -fsSL -o "%part%" "%url%" >nul 2>nul
157
+ call :fetch_url
143
158
  if not errorlevel 1 goto verify
144
159
  :fetch_x64
145
160
  if not defined expected_x64 goto download_failed
146
161
  set "asset=impeccable-windows-x64.exe"
147
162
  set "expected=%expected_x64%"
148
163
  set "url=%IMPECCABLE_DOWNLOAD_BASE%/engine-v%version%/%asset%"
149
- curl.exe -fsSL -o "%part%" "%url%" >nul 2>nul
164
+ call :fetch_url
150
165
  if errorlevel 1 goto download_failed
151
166
 
152
167
  :verify
@@ -172,6 +187,25 @@ call :discard_staging
172
187
  echo impeccable: cannot verify %url% (certutil could not hash it); refusing the unverified download 1>&2
173
188
  exit /b 127
174
189
 
190
+ :fetch_url
191
+ set "http_status="
192
+ set "effective_url="
193
+ set "download_host="
194
+ curl.exe -fsSL --retry 2 -w "%%{http_code} %%{url_effective}" -o "%part%" "%url%" >"%staging%\http.txt" 2>nul
195
+ set "fetch_result=%errorlevel%"
196
+ for /f "usebackq tokens=1" %%a in ("%staging%\http.txt") do set "http_status=%%a"
197
+ for /f "usebackq tokens=2" %%a in ("%staging%\http.txt") do set "effective_url=%%a"
198
+ rem Token 2 is the authority after scheme://. Drop userinfo and the port.
199
+ for /f "tokens=2 delims=/" %%h in ("%effective_url%") do set "download_host=%%h"
200
+ for /f "tokens=1,* delims=@" %%h in ("%download_host%") do if not "%%i"=="" set "download_host=%%i"
201
+ rem Bracketed IPv6 hosts contain colons that are not port separators.
202
+ if "%download_host:~0,1%"=="[" goto fetch_ipv6
203
+ for /f "tokens=1 delims=:" %%h in ("%download_host%") do set "download_host=%%h"
204
+ exit /b %fetch_result%
205
+ :fetch_ipv6
206
+ for /f "tokens=1 delims=]" %%h in ("%download_host%") do set "download_host=%%h]"
207
+ exit /b %fetch_result%
208
+
175
209
  :read_expected
176
210
  rem Sets expected (and, on ARM64, expected_x64: Windows on ARM runs x64
177
211
  rem binaries) from engine-checksums.txt.
@@ -255,11 +289,13 @@ rem Sets probe_ok=1 when %1 answers the engine handshake: prints
255
289
  rem "impeccable-engine <version>" and exits 0, and probe_version to that
256
290
  rem version. The 3.x npm CLI answers any unknown verb with "Unknown command",
257
291
  rem exit 1, so it never passes.
292
+ rem The candidate runs under call: an npm .cmd shim run without it takes
293
+ rem over this script and never returns (#1240).
258
294
  set "probe_ok="
259
295
  set "probe_version="
260
296
  set "probe_tmp=%TEMP%\impeccable-probe-%RANDOM%%RANDOM%.txt"
261
297
  set "IMPECCABLE_LAUNCHER_PROBE=1"
262
- "%~1" engine-probe >"%probe_tmp%" 2>nul
298
+ call "%~1" engine-probe >"%probe_tmp%" 2>nul
263
299
  set "probe_err=%ERRORLEVEL%"
264
300
  set "IMPECCABLE_LAUNCHER_PROBE="
265
301
  if not "%probe_err%"=="0" goto probe_done
@@ -292,6 +328,18 @@ goto setup_failed
292
328
 
293
329
  :download_failed
294
330
  call :discard_staging
331
+ if not "%http_status:~0,1%"=="5" goto download_generic
332
+ if "%http_status:~2,1%"=="" goto download_generic
333
+ if /I "%download_host%"=="github.com" goto download_github
334
+ if /I "%download_host:~-11%"==".github.com" goto download_github
335
+ if /I "%download_host%"=="githubusercontent.com" goto download_github
336
+ if /I "%download_host:~-22%"==".githubusercontent.com" goto download_github
337
+ echo impeccable: could not download engine %version%: %download_host% is failing right now (HTTP %http_status%), a server error on %download_host%'s side. Try again later. 1>&2
338
+ exit /b 127
339
+ :download_github
340
+ echo impeccable: could not download engine %version%: GitHub's downloads are failing right now (HTTP %http_status% from %download_host%). This is an outage on GitHub's side, not a problem with your setup or the CLI, so updating won't help. Check https://www.githubstatus.com and run the same command again once GitHub has recovered. 1>&2
341
+ exit /b 127
342
+ :download_generic
295
343
  echo impeccable: could not download engine %version% from %url%; check network access and the release URL. 1>&2
296
344
 
297
345
  :setup_failed
@@ -103,7 +103,7 @@
103
103
  ]);
104
104
 
105
105
  // Command vocabulary (values + labels + icons) comes from the canonical source,
106
- // skill/scripts/live/vocabulary.mjs, which live-server.mjs serializes into
106
+ // crates/live/src/vocabulary.rs, which the engine's live server serializes into
107
107
  // window.__IMPECCABLE_VOCAB__ when it serves /live.js (same injection path as
108
108
  // the token/port above, so it is always present here). The icons stack above
109
109
  // each chip label and recolor to C.brand when selected (strokes use
@@ -116,13 +116,12 @@
116
116
  });
117
117
 
118
118
  // The Live chrome inventory (which surfaces exist, and the element ids each
119
- // one owns) comes from the canonical source, skill/scripts/live/ui-surfaces.mjs,
120
- // which the /live.js assembler serializes into these globals alongside the
121
- // token/port/vocabulary. This file is served raw and injected as a classic
122
- // script, so it cannot import that module; the private impeccable-site repo
123
- // imports it directly to check its Live UI lab holds a snapshot for every
124
- // surface, which only works while the list has exactly one definition.
125
- // Add a surface in ui-surfaces.mjs, not here.
119
+ // one owns) comes from the canonical source, SURFACES in
120
+ // crates/live/src/vocabulary.rs, which the /live.js assembler
121
+ // (crates/live/src/browser_assets.rs) serializes into these globals alongside
122
+ // the token/port/vocabulary. This file is served raw and injected as a classic
123
+ // script, so it cannot import that list, which must keep exactly one
124
+ // definition. Add a surface in vocabulary.rs, not here.
126
125
  const LIVE_CHROME_MOUNT_CONTRACT = Array.isArray(window.__IMPECCABLE_LIVE_MOUNT_CONTRACT__)
127
126
  ? window.__IMPECCABLE_LIVE_MOUNT_CONTRACT__
128
127
  : ['root', 'transport', 'state', 'actions'];
@@ -153,9 +152,9 @@
153
152
  // behind checkpoint), and without this the bar jumps backward mid-generation.
154
153
  // Unranked phases always pass so we never block a phase we do not model.
155
154
  //
156
- // Every `agent_phase` name here is emitted by recordAgentPhase() in
157
- // live-server.mjs and listed in AGENT_PHASES in live/vocabulary.mjs, which the
158
- // event validator enforces. This file is served raw and injected as an IIFE,
155
+ // Every `agent_phase` name here is recorded by record_agent_phase() in
156
+ // crates/live/src/server_state.rs and listed in AGENT_PHASES in
157
+ // crates/live/src/vocabulary.rs, which the event validator enforces. This file is served raw and injected as an IIFE,
159
158
  // so it cannot import that list; adding a phase means adding it in both.
160
159
  // `queued`, `generating`, `variants_progress`, and `variants_ready` are set
161
160
  // locally by this file and never arrive over the wire.
@@ -212,7 +211,7 @@
212
211
  // Survives cleanupAcceptedSession on purpose: the id of an accept whose
213
212
  // POST was acknowledged (intent durable, epoch fenced) but whose actual
214
213
  // source promotion hasn't reported back yet. Accept is optimistic, so the
215
- // teardown nulls pendingAcceptedSession long before live-accept.mjs runs;
214
+ // teardown nulls pendingAcceptedSession long before `impeccable live-accept` runs;
216
215
  // this marker is what lets the SSE 'error' branch still recognize a late
217
216
  // accept failure and say the variant was not saved (issue #384). Released
218
217
  // when the real accept result arrives or a new session starts.
@@ -1734,7 +1733,7 @@
1734
1733
  return btn;
1735
1734
  }
1736
1735
 
1737
- // Insert mode helpers (mirrors skill/scripts/live/insert-ui.mjs)
1736
+ // Insert mode helpers (the engine's insert checks are in crates/live/src/event_validation.rs)
1738
1737
 
1739
1738
  function detectInsertAxisFromStyle(style) {
1740
1739
  const display = style?.display || 'block';
@@ -6243,7 +6242,7 @@
6243
6242
  // carry that answer back, so the journal, `live-status`, and `live-resume`
6244
6243
  // can tell "the user is comparing variants" from "nothing ever rendered".
6245
6244
 
6246
- // Mirror of the caps in live/event-validation.mjs. Trimming here keeps a
6245
+ // Mirror of the caps in crates/live/src/event_validation.rs. Trimming here keeps a
6247
6246
  // stack-trace-sized error from being rejected outright and lost.
6248
6247
  const MOUNT_URL_MAX = 2000;
6249
6248
  const MOUNT_ERROR_MAX = 1000;
@@ -6468,7 +6467,7 @@
6468
6467
  removeVariantStateStylesheet();
6469
6468
  clearMountErrorCard();
6470
6469
  clearSession();
6471
- clearHandled();
6470
+ clearHandled(sessionId);
6472
6471
  resetSessionFileMeta();
6473
6472
  currentSessionId = null;
6474
6473
  parameterGenerationState = 'idle';
@@ -7519,8 +7518,25 @@
7519
7518
  let liveBarHiddenByHelper = false;
7520
7519
 
7521
7520
  function applyLiveBarPreference(hidden) {
7521
+ const wasHidden = liveBarHiddenByHelper;
7522
7522
  liveBarHiddenByHelper = hidden === true;
7523
7523
  setLiveBarHidden(liveBarHiddenByHelper);
7524
+ // A hidden bar has no Pick or Insert control, so a choice remembered
7525
+ // from a visible session stops capturing the page's clicks until the
7526
+ // bar is back. The stored prefs stay as they are.
7527
+ if (liveBarHiddenByHelper && !wasHidden && state === 'PICKING') {
7528
+ clearInsertPicking();
7529
+ hideHighlight();
7530
+ setLiveState('IDLE');
7531
+ syncPageInteractionCursor();
7532
+ } else if (!liveBarHiddenByHelper && wasHidden) {
7533
+ enterPickingIfArmed();
7534
+ syncPageInteractionCursor();
7535
+ }
7536
+ }
7537
+
7538
+ function enterPickingIfArmed() {
7539
+ if (state === 'IDLE' && (pickActive || insertActive) && !liveBarHiddenByHelper) setLiveState('PICKING');
7524
7540
  }
7525
7541
 
7526
7542
  // A plain live session must never notice this code: hiding remembers the
@@ -7825,13 +7841,21 @@
7825
7841
  hasProjectContext = !!msg.hasProjectContext;
7826
7842
  // The generate lane runs without PRODUCT.md by design and never
7827
7843
  // sends the user to init, so its quiet chrome skips this notice.
7828
- if (!hasProjectContext && !liveBarHiddenByHelper) showToast(`No PRODUCT.md found. Variants will be brand-agnostic. Run ${IMPECCABLE_COMMAND} init to generate one.`, 7000);
7844
+ // A first session gets the first move instead: what to click
7845
+ // matters more than a missing file, and it shows once.
7846
+ if (liveFirstRun && !liveBarHiddenByHelper) {
7847
+ liveFirstRun = false;
7848
+ if (!insertActive) pickActive = true;
7849
+ saveInteractionPrefs();
7850
+ updateGlobalBarState();
7851
+ showToast('Click anything on the page to restyle it.', 8000);
7852
+ } else if (!hasProjectContext && !liveBarHiddenByHelper) showToast(`No PRODUCT.md found. Variants will be brand-agnostic. Run ${IMPECCABLE_COMMAND} init to generate one.`, 7000);
7829
7853
  console.log('[impeccable] Live mode connected.');
7830
7854
  syncAgentPollingUi(!!msg.agentPolling);
7831
7855
  startAgentStatusPoll();
7832
7856
  restoreFromActiveSessions(msg.activeSessions, 'sse_connected');
7833
7857
  recoverMissedGenerationCompletion(msg.activeSessions);
7834
- if (state === 'IDLE' && (pickActive || insertActive)) setLiveState('PICKING');
7858
+ enterPickingIfArmed();
7835
7859
  syncPageInteractionCursor();
7836
7860
  syncPageChatFocus('sse-connected');
7837
7861
  break;
@@ -8028,7 +8052,7 @@
8028
8052
  function handleServerLost() {
8029
8053
  const recoveryState = currentSessionId ? state : 'IDLE';
8030
8054
  if (state === 'GENERATING' || state === 'CYCLING' || state === 'SAVING') {
8031
- showToast('Live server connection lost. Your session is saved; reopen this page or restart live-poll.mjs to continue.', 6000);
8055
+ showToast('Live server connection lost. Your session is saved; reopen this page or restart `impeccable live-poll` to continue.', 6000);
8032
8056
  }
8033
8057
  hideBar();
8034
8058
  hideHighlight();
@@ -10549,7 +10573,11 @@ void main() {
10549
10573
  return { pickActive: !!prefs.pickActive, insertActive: false };
10550
10574
  }
10551
10575
  } catch { /* ignore */ }
10552
- return { pickActive: false, insertActive: false };
10576
+ // Nothing stored: this browser's first Live session here. Pick turns on
10577
+ // when the helper connects with the bar visible (see `connected`), so the
10578
+ // first click on the page already does something; the generate lane hides
10579
+ // the bar, and a Pick nobody can see or turn off would eat app clicks.
10580
+ return { pickActive: false, insertActive: false, firstRun: true };
10553
10581
  }
10554
10582
 
10555
10583
  function saveInteractionPrefs() {
@@ -10567,6 +10595,7 @@ void main() {
10567
10595
  }
10568
10596
 
10569
10597
  let pickActive = loadInteractionPrefs().pickActive;
10598
+ let liveFirstRun = loadInteractionPrefs().firstRun === true;
10570
10599
  let insertActive = loadInteractionPrefs().insertActive;
10571
10600
  let configureKind = 'replace';
10572
10601
  let insertLineEl = null;
@@ -10620,7 +10649,7 @@ void main() {
10620
10649
  const STEER_AWAIT_TIMEOUT_MS = 120000;
10621
10650
  const AGENT_STATUS_POLL_MS = 5000;
10622
10651
  const AGENT_DISCONNECTED_MARK = 'oklch(62% 0 0 / 0.78)';
10623
- const AGENT_DISCONNECTED_TIP = 'Agent disconnected - run live-poll.mjs to connect';
10652
+ const AGENT_DISCONNECTED_TIP = 'Agent disconnected - run impeccable live-poll to connect';
10624
10653
  // The indicator tracks whether a poll is parked, which is what decides if
10625
10654
  // steering can reach the agent right now. That goes quiet two ways, and they
10626
10655
  // need different copy: nobody is polling at all, or the agent took the work
@@ -11211,7 +11240,7 @@ void main() {
11211
11240
  return head + 'The agent is still busy with the current generation - your message was not lost, but it never got picked up. Send it again once the variants land.';
11212
11241
  }
11213
11242
  if (!agentPollingConnected) {
11214
- return head + 'No agent is polling right now. Run live-poll.mjs, then send it again.';
11243
+ return head + 'No agent is polling right now. Run impeccable live-poll, then send it again.';
11215
11244
  }
11216
11245
  return head + 'The agent picked it up but never replied with steer_done. Check the agent session for a stalled or failed steer.';
11217
11246
  }
@@ -13865,7 +13894,7 @@ void main() {
13865
13894
  scout.observe(document.body, { childList: true, subtree: true });
13866
13895
  }
13867
13896
 
13868
- if (state === 'IDLE' && (pickActive || insertActive)) setLiveState('PICKING');
13897
+ enterPickingIfArmed();
13869
13898
  syncPageInteractionCursor();
13870
13899
  syncPageChatFocus('init-complete');
13871
13900
  }
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.25.0-local.1
4
+
5
+ ### Minor Changes
6
+
7
+ - [#377](https://github.com/HerbertGao/pi-extensions/pull/377) [`b02be94`](https://github.com/HerbertGao/pi-extensions/commit/b02be9410f637abc110fd2ee02def0f9d75fd419) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Replay upstream pi-subagents 0.25.0. The built-in general-purpose agent can spawn its own subagents, and Settings writes the global file unless the project already has one. A finished nested agent is dropped with its parent on a session switch. Unconsumed top-level results and a failed worktree cleanup still stay recoverable.
8
+
3
9
  ## 0.24.0-local.1
4
10
 
5
11
  ### Minor Changes