@amg555/frameforge-mcp 2.7.6 → 2.7.8

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 (1141) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/CHANGELOG.md +8 -0
  3. package/package.json +1 -1
  4. package/plugins/video-pipeline/.claude-plugin/plugin.json +1 -1
  5. package/plugins/video-pipeline/skills/.upstream-skills.json +1 -1
  6. package/plugins/video-pipeline/skills/video-pipeline/references/mcp-tools.md +1 -1
  7. package/scripts/deep-validate.js +2 -2
  8. package/src/mcp-server/server.js +5 -5
  9. package/src/skills/sync-upstream.js +3 -3
  10. package/.agent/skills/ai-video-editor/README.md +0 -32
  11. package/.agent/skills/ai-video-editor/SKILL.md +0 -152
  12. package/.agent/skills/ai-video-editor/assets/fonts/fonts.css +0 -2409
  13. package/.agent/skills/ai-video-editor/assets/fonts/ttf/anton-400.ttf +0 -0
  14. package/.agent/skills/ai-video-editor/assets/fonts/ttf/archivo-800.ttf +0 -0
  15. package/.agent/skills/ai-video-editor/assets/fonts/ttf/cabin-sketch-700.ttf +0 -0
  16. package/.agent/skills/ai-video-editor/assets/fonts/ttf/dm-sans-700.ttf +0 -0
  17. package/.agent/skills/ai-video-editor/assets/fonts/ttf/fraunces-600.ttf +0 -0
  18. package/.agent/skills/ai-video-editor/assets/fonts/ttf/fraunces-700.ttf +0 -0
  19. package/.agent/skills/ai-video-editor/assets/fonts/ttf/fredoka-700.ttf +0 -0
  20. package/.agent/skills/ai-video-editor/assets/fonts/ttf/inter-700.ttf +0 -0
  21. package/.agent/skills/ai-video-editor/assets/fonts/ttf/inter-800.ttf +0 -0
  22. package/.agent/skills/ai-video-editor/assets/fonts/ttf/inter-tight-800.ttf +0 -0
  23. package/.agent/skills/ai-video-editor/assets/fonts/ttf/kalam-700.ttf +0 -0
  24. package/.agent/skills/ai-video-editor/assets/fonts/ttf/noto-sans-devanagari-700.ttf +0 -0
  25. package/.agent/skills/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-400-normal.woff2 +0 -0
  26. package/.agent/skills/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-500-normal.woff2 +0 -0
  27. package/.agent/skills/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-600-normal.woff2 +0 -0
  28. package/.agent/skills/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-700-normal.woff2 +0 -0
  29. package/.agent/skills/ai-video-editor/assets/fonts/web/noto-sans-devanagari-devanagari-800-normal.woff2 +0 -0
  30. package/.agent/skills/ai-video-editor/engine/hidpi.js +0 -117
  31. package/.agent/skills/ai-video-editor/engine/page.html +0 -43
  32. package/.agent/skills/ai-video-editor/engine/player.js +0 -145
  33. package/.agent/skills/ai-video-editor/references/example-story-warm-canvas.js +0 -95
  34. package/.agent/skills/ai-video-editor/references/story-guide.md +0 -112
  35. package/.agent/skills/ai-video-editor/requirements.txt +0 -4
  36. package/.agent/skills/ai-video-editor/styles/chalk-talk/base.js +0 -490
  37. package/.agent/skills/ai-video-editor/styles/chalk-talk/style.json +0 -14
  38. package/.agent/skills/ai-video-editor/styles/chalk-talk/style.md +0 -41
  39. package/.agent/skills/ai-video-editor/styles/clean-tech/base.js +0 -447
  40. package/.agent/skills/ai-video-editor/styles/clean-tech/style.json +0 -15
  41. package/.agent/skills/ai-video-editor/styles/clean-tech/style.md +0 -38
  42. package/.agent/skills/ai-video-editor/styles/creator-motion-graphics/base.js +0 -698
  43. package/.agent/skills/ai-video-editor/styles/creator-motion-graphics/style.json +0 -16
  44. package/.agent/skills/ai-video-editor/styles/creator-motion-graphics/style.md +0 -39
  45. package/.agent/skills/ai-video-editor/styles/data-story/base.js +0 -432
  46. package/.agent/skills/ai-video-editor/styles/data-story/style.json +0 -14
  47. package/.agent/skills/ai-video-editor/styles/data-story/style.md +0 -38
  48. package/.agent/skills/ai-video-editor/styles/index.json +0 -103
  49. package/.agent/skills/ai-video-editor/styles/pop-info/base.js +0 -570
  50. package/.agent/skills/ai-video-editor/styles/pop-info/style.json +0 -13
  51. package/.agent/skills/ai-video-editor/styles/pop-info/style.md +0 -37
  52. package/.agent/skills/ai-video-editor/styles/software-walkthrough/base.js +0 -544
  53. package/.agent/skills/ai-video-editor/styles/software-walkthrough/style.json +0 -15
  54. package/.agent/skills/ai-video-editor/styles/software-walkthrough/style.md +0 -38
  55. package/.agent/skills/ai-video-editor/styles/warm-canvas/base.js +0 -610
  56. package/.agent/skills/ai-video-editor/styles/warm-canvas/style.json +0 -14
  57. package/.agent/skills/ai-video-editor/styles/warm-canvas/style.md +0 -37
  58. package/.agent/skills/faceless-shorts/README.md +0 -34
  59. package/.agent/skills/faceless-shorts/SKILL.md +0 -124
  60. package/.agent/skills/faceless-shorts/styles/deep-dive/STYLE.md +0 -58
  61. package/.agent/skills/faceless-shorts/styles/deep-dive/example/data/cues.json +0 -140
  62. package/.agent/skills/faceless-shorts/styles/deep-dive/example/data/lines.json +0 -67
  63. package/.agent/skills/faceless-shorts/styles/deep-dive/example/data/words.json +0 -614
  64. package/.agent/skills/faceless-shorts/styles/deep-dive/example/data/words.txt +0 -102
  65. package/.agent/skills/faceless-shorts/styles/deep-dive/example/fonts/Inter-Black.otf +0 -0
  66. package/.agent/skills/faceless-shorts/styles/deep-dive/example/fonts/Inter-ExtraBold.otf +0 -0
  67. package/.agent/skills/faceless-shorts/styles/deep-dive/example/index.html +0 -16
  68. package/.agent/skills/faceless-shorts/styles/deep-dive/example/script.json +0 -27
  69. package/.agent/skills/faceless-shorts/styles/deep-dive/example/sheet.html +0 -10
  70. package/.agent/skills/faceless-shorts/styles/deep-dive/example/src/core/board.js +0 -62
  71. package/.agent/skills/faceless-shorts/styles/deep-dive/example/src/core/captions.js +0 -68
  72. package/.agent/skills/faceless-shorts/styles/deep-dive/example/src/core/engine.js +0 -65
  73. package/.agent/skills/faceless-shorts/styles/deep-dive/example/src/core/human.js +0 -128
  74. package/.agent/skills/faceless-shorts/styles/deep-dive/example/src/core/lib.js +0 -44
  75. package/.agent/skills/faceless-shorts/styles/deep-dive/example/src/core/look2d.js +0 -33
  76. package/.agent/skills/faceless-shorts/styles/deep-dive/example/src/core/sdf.js +0 -79
  77. package/.agent/skills/faceless-shorts/styles/deep-dive/example/src/core/sets.js +0 -107
  78. package/.agent/skills/faceless-shorts/styles/deep-dive/example/src/core/timing.js +0 -23
  79. package/.agent/skills/faceless-shorts/styles/deep-dive/example/src/main.js +0 -56
  80. package/.agent/skills/faceless-shorts/styles/deep-dive/example/src/sheet.js +0 -79
  81. package/.agent/skills/faceless-shorts/styles/deep-dive/example/src/shots.js +0 -136
  82. package/.agent/skills/faceless-shorts/styles/deep-dive/example/tools/capture.mjs +0 -122
  83. package/.agent/skills/faceless-shorts/styles/deep-dive/example/tools/mix.py +0 -172
  84. package/.agent/skills/faceless-shorts/styles/deep-dive/example/vendor/LICENSE-three.txt +0 -21
  85. package/.agent/skills/faceless-shorts/styles/deep-dive/example/vendor/addons/environments/RoomEnvironment.js +0 -144
  86. package/.agent/skills/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/BokehPass.js +0 -141
  87. package/.agent/skills/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/EffectComposer.js +0 -231
  88. package/.agent/skills/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/MaskPass.js +0 -104
  89. package/.agent/skills/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/OutputPass.js +0 -97
  90. package/.agent/skills/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/Pass.js +0 -95
  91. package/.agent/skills/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/RenderPass.js +0 -99
  92. package/.agent/skills/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/ShaderPass.js +0 -77
  93. package/.agent/skills/faceless-shorts/styles/deep-dive/example/vendor/addons/postprocessing/UnrealBloomPass.js +0 -415
  94. package/.agent/skills/faceless-shorts/styles/deep-dive/example/vendor/addons/shaders/BokehShader.js +0 -145
  95. package/.agent/skills/faceless-shorts/styles/deep-dive/example/vendor/addons/shaders/CopyShader.js +0 -45
  96. package/.agent/skills/faceless-shorts/styles/deep-dive/example/vendor/addons/shaders/LuminosityHighPassShader.js +0 -64
  97. package/.agent/skills/faceless-shorts/styles/deep-dive/example/vendor/addons/shaders/OutputShader.js +0 -85
  98. package/.agent/skills/faceless-shorts/styles/deep-dive/example/vendor/three.module.js +0 -6
  99. package/.agent/skills/faceless-shorts/styles/deep-dive/style-sheet.png +0 -0
  100. package/.agent/skills/faceless-shorts/styles/inside-out/STYLE.md +0 -97
  101. package/.agent/skills/faceless-shorts/styles/inside-out/example/data/cues.json +0 -178
  102. package/.agent/skills/faceless-shorts/styles/inside-out/example/data/lines.json +0 -73
  103. package/.agent/skills/faceless-shorts/styles/inside-out/example/data/words.json +0 -662
  104. package/.agent/skills/faceless-shorts/styles/inside-out/example/fonts/Inter-Black.otf +0 -0
  105. package/.agent/skills/faceless-shorts/styles/inside-out/example/index.html +0 -16
  106. package/.agent/skills/faceless-shorts/styles/inside-out/example/script.json +0 -26
  107. package/.agent/skills/faceless-shorts/styles/inside-out/example/src/core/captions.js +0 -68
  108. package/.agent/skills/faceless-shorts/styles/inside-out/example/src/core/kit.js +0 -345
  109. package/.agent/skills/faceless-shorts/styles/inside-out/example/src/core/lib.js +0 -44
  110. package/.agent/skills/faceless-shorts/styles/inside-out/example/src/core/timing.js +0 -23
  111. package/.agent/skills/faceless-shorts/styles/inside-out/example/src/main.js +0 -62
  112. package/.agent/skills/faceless-shorts/styles/inside-out/example/src/shots.js +0 -195
  113. package/.agent/skills/faceless-shorts/styles/inside-out/example/tools/capture.mjs +0 -122
  114. package/.agent/skills/faceless-shorts/styles/inside-out/example/tools/mix.py +0 -172
  115. package/.agent/skills/faceless-shorts/styles/inside-out/style-sheet.png +0 -0
  116. package/.agent/skills/faceless-shorts/styles/night-file/STYLE.md +0 -36
  117. package/.agent/skills/faceless-shorts/styles/night-file/example/data/cues.json +0 -146
  118. package/.agent/skills/faceless-shorts/styles/night-file/example/data/lines.json +0 -73
  119. package/.agent/skills/faceless-shorts/styles/night-file/example/data/words.json +0 -572
  120. package/.agent/skills/faceless-shorts/styles/night-file/example/data/words.txt +0 -95
  121. package/.agent/skills/faceless-shorts/styles/night-file/example/fonts/FreeMonoBold.ttf +0 -0
  122. package/.agent/skills/faceless-shorts/styles/night-file/example/fonts/Inter-Black.otf +0 -0
  123. package/.agent/skills/faceless-shorts/styles/night-file/example/index.html +0 -16
  124. package/.agent/skills/faceless-shorts/styles/night-file/example/script.json +0 -26
  125. package/.agent/skills/faceless-shorts/styles/night-file/example/sheet.html +0 -11
  126. package/.agent/skills/faceless-shorts/styles/night-file/example/src/core/board.js +0 -62
  127. package/.agent/skills/faceless-shorts/styles/night-file/example/src/core/captions.js +0 -49
  128. package/.agent/skills/faceless-shorts/styles/night-file/example/src/core/engine.js +0 -65
  129. package/.agent/skills/faceless-shorts/styles/night-file/example/src/core/human.js +0 -128
  130. package/.agent/skills/faceless-shorts/styles/night-file/example/src/core/kit.js +0 -151
  131. package/.agent/skills/faceless-shorts/styles/night-file/example/src/core/lib.js +0 -44
  132. package/.agent/skills/faceless-shorts/styles/night-file/example/src/core/sdf.js +0 -79
  133. package/.agent/skills/faceless-shorts/styles/night-file/example/src/core/sets3d.js +0 -106
  134. package/.agent/skills/faceless-shorts/styles/night-file/example/src/core/timing.js +0 -23
  135. package/.agent/skills/faceless-shorts/styles/night-file/example/src/main.js +0 -56
  136. package/.agent/skills/faceless-shorts/styles/night-file/example/src/sheet.js +0 -86
  137. package/.agent/skills/faceless-shorts/styles/night-file/example/src/shots.js +0 -130
  138. package/.agent/skills/faceless-shorts/styles/night-file/example/tools/capture.mjs +0 -122
  139. package/.agent/skills/faceless-shorts/styles/night-file/example/tools/mix.py +0 -172
  140. package/.agent/skills/faceless-shorts/styles/night-file/example/vendor/LICENSE-three.txt +0 -21
  141. package/.agent/skills/faceless-shorts/styles/night-file/example/vendor/addons/environments/RoomEnvironment.js +0 -144
  142. package/.agent/skills/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/BokehPass.js +0 -141
  143. package/.agent/skills/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/EffectComposer.js +0 -231
  144. package/.agent/skills/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/MaskPass.js +0 -104
  145. package/.agent/skills/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/OutputPass.js +0 -97
  146. package/.agent/skills/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/Pass.js +0 -95
  147. package/.agent/skills/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/RenderPass.js +0 -99
  148. package/.agent/skills/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/ShaderPass.js +0 -77
  149. package/.agent/skills/faceless-shorts/styles/night-file/example/vendor/addons/postprocessing/UnrealBloomPass.js +0 -415
  150. package/.agent/skills/faceless-shorts/styles/night-file/example/vendor/addons/shaders/BokehShader.js +0 -145
  151. package/.agent/skills/faceless-shorts/styles/night-file/example/vendor/addons/shaders/CopyShader.js +0 -45
  152. package/.agent/skills/faceless-shorts/styles/night-file/example/vendor/addons/shaders/LuminosityHighPassShader.js +0 -64
  153. package/.agent/skills/faceless-shorts/styles/night-file/example/vendor/addons/shaders/OutputShader.js +0 -85
  154. package/.agent/skills/faceless-shorts/styles/night-file/example/vendor/three.module.js +0 -6
  155. package/.agent/skills/faceless-shorts/styles/night-file/style-sheet.png +0 -0
  156. package/.agent/skills/faceless-shorts/styles/paper-atlas/STYLE.md +0 -30
  157. package/.agent/skills/faceless-shorts/styles/paper-atlas/example/data/cues.json +0 -167
  158. package/.agent/skills/faceless-shorts/styles/paper-atlas/example/data/lines.json +0 -67
  159. package/.agent/skills/faceless-shorts/styles/paper-atlas/example/data/words.json +0 -614
  160. package/.agent/skills/faceless-shorts/styles/paper-atlas/example/data/words.txt +0 -102
  161. package/.agent/skills/faceless-shorts/styles/paper-atlas/example/fonts/Caladea-Bold.ttf +0 -0
  162. package/.agent/skills/faceless-shorts/styles/paper-atlas/example/fonts/Inter-Black.otf +0 -0
  163. package/.agent/skills/faceless-shorts/styles/paper-atlas/example/index.html +0 -13
  164. package/.agent/skills/faceless-shorts/styles/paper-atlas/example/script.json +0 -26
  165. package/.agent/skills/faceless-shorts/styles/paper-atlas/example/sheet.html +0 -10
  166. package/.agent/skills/faceless-shorts/styles/paper-atlas/example/src/core/board.js +0 -62
  167. package/.agent/skills/faceless-shorts/styles/paper-atlas/example/src/core/captions.js +0 -47
  168. package/.agent/skills/faceless-shorts/styles/paper-atlas/example/src/core/kit.js +0 -152
  169. package/.agent/skills/faceless-shorts/styles/paper-atlas/example/src/core/lib.js +0 -44
  170. package/.agent/skills/faceless-shorts/styles/paper-atlas/example/src/core/timing.js +0 -23
  171. package/.agent/skills/faceless-shorts/styles/paper-atlas/example/src/main.js +0 -62
  172. package/.agent/skills/faceless-shorts/styles/paper-atlas/example/src/sheet.js +0 -61
  173. package/.agent/skills/faceless-shorts/styles/paper-atlas/example/src/shots.js +0 -139
  174. package/.agent/skills/faceless-shorts/styles/paper-atlas/example/tools/capture.mjs +0 -122
  175. package/.agent/skills/faceless-shorts/styles/paper-atlas/example/tools/mix.py +0 -172
  176. package/.agent/skills/faceless-shorts/styles/paper-atlas/style-sheet.png +0 -0
  177. package/.agent/skills/faceless-shorts/styles/stick-story/STYLE.md +0 -32
  178. package/.agent/skills/faceless-shorts/styles/stick-story/example/data/cues.json +0 -182
  179. package/.agent/skills/faceless-shorts/styles/stick-story/example/data/lines.json +0 -79
  180. package/.agent/skills/faceless-shorts/styles/stick-story/example/data/words.json +0 -662
  181. package/.agent/skills/faceless-shorts/styles/stick-story/example/data/words.txt +0 -110
  182. package/.agent/skills/faceless-shorts/styles/stick-story/example/fonts/Inter-Black.otf +0 -0
  183. package/.agent/skills/faceless-shorts/styles/stick-story/example/fonts/Inter-ExtraBold.otf +0 -0
  184. package/.agent/skills/faceless-shorts/styles/stick-story/example/index.html +0 -12
  185. package/.agent/skills/faceless-shorts/styles/stick-story/example/script.json +0 -27
  186. package/.agent/skills/faceless-shorts/styles/stick-story/example/sheet.html +0 -9
  187. package/.agent/skills/faceless-shorts/styles/stick-story/example/src/core/board.js +0 -62
  188. package/.agent/skills/faceless-shorts/styles/stick-story/example/src/core/captions.js +0 -47
  189. package/.agent/skills/faceless-shorts/styles/stick-story/example/src/core/kit.js +0 -166
  190. package/.agent/skills/faceless-shorts/styles/stick-story/example/src/core/lib.js +0 -44
  191. package/.agent/skills/faceless-shorts/styles/stick-story/example/src/core/timing.js +0 -23
  192. package/.agent/skills/faceless-shorts/styles/stick-story/example/src/main.js +0 -62
  193. package/.agent/skills/faceless-shorts/styles/stick-story/example/src/sheet.js +0 -64
  194. package/.agent/skills/faceless-shorts/styles/stick-story/example/src/shots.js +0 -148
  195. package/.agent/skills/faceless-shorts/styles/stick-story/example/tools/capture.mjs +0 -122
  196. package/.agent/skills/faceless-shorts/styles/stick-story/example/tools/mix.py +0 -172
  197. package/.agent/skills/faceless-shorts/styles/stick-story/style-sheet.png +0 -0
  198. package/.agent/skills/faceless-shorts/styles/tall-tale/STYLE.md +0 -51
  199. package/.agent/skills/faceless-shorts/styles/tall-tale/example/data/cues.json +0 -271
  200. package/.agent/skills/faceless-shorts/styles/tall-tale/example/data/lines.json +0 -127
  201. package/.agent/skills/faceless-shorts/styles/tall-tale/example/data/words.json +0 -908
  202. package/.agent/skills/faceless-shorts/styles/tall-tale/example/data/words.txt +0 -151
  203. package/.agent/skills/faceless-shorts/styles/tall-tale/example/fonts/Caladea-Bold.ttf +0 -0
  204. package/.agent/skills/faceless-shorts/styles/tall-tale/example/fonts/Inter-Black.otf +0 -0
  205. package/.agent/skills/faceless-shorts/styles/tall-tale/example/fonts/Inter-ExtraBold.otf +0 -0
  206. package/.agent/skills/faceless-shorts/styles/tall-tale/example/index.html +0 -17
  207. package/.agent/skills/faceless-shorts/styles/tall-tale/example/script.json +0 -37
  208. package/.agent/skills/faceless-shorts/styles/tall-tale/example/sheet.html +0 -11
  209. package/.agent/skills/faceless-shorts/styles/tall-tale/example/src/core/board.js +0 -62
  210. package/.agent/skills/faceless-shorts/styles/tall-tale/example/src/core/captions.js +0 -56
  211. package/.agent/skills/faceless-shorts/styles/tall-tale/example/src/core/engine.js +0 -65
  212. package/.agent/skills/faceless-shorts/styles/tall-tale/example/src/core/lib.js +0 -44
  213. package/.agent/skills/faceless-shorts/styles/tall-tale/example/src/core/props.js +0 -166
  214. package/.agent/skills/faceless-shorts/styles/tall-tale/example/src/core/timing.js +0 -23
  215. package/.agent/skills/faceless-shorts/styles/tall-tale/example/src/core/toon.js +0 -352
  216. package/.agent/skills/faceless-shorts/styles/tall-tale/example/src/core/world.js +0 -340
  217. package/.agent/skills/faceless-shorts/styles/tall-tale/example/src/main.js +0 -56
  218. package/.agent/skills/faceless-shorts/styles/tall-tale/example/src/sheet.js +0 -99
  219. package/.agent/skills/faceless-shorts/styles/tall-tale/example/src/shots.js +0 -377
  220. package/.agent/skills/faceless-shorts/styles/tall-tale/example/tools/capture.mjs +0 -122
  221. package/.agent/skills/faceless-shorts/styles/tall-tale/example/tools/mix.py +0 -204
  222. package/.agent/skills/faceless-shorts/styles/tall-tale/example/vendor/LICENSE-three.txt +0 -21
  223. package/.agent/skills/faceless-shorts/styles/tall-tale/example/vendor/addons/environments/RoomEnvironment.js +0 -144
  224. package/.agent/skills/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/BokehPass.js +0 -141
  225. package/.agent/skills/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/EffectComposer.js +0 -231
  226. package/.agent/skills/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/MaskPass.js +0 -104
  227. package/.agent/skills/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/OutputPass.js +0 -97
  228. package/.agent/skills/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/Pass.js +0 -95
  229. package/.agent/skills/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/RenderPass.js +0 -99
  230. package/.agent/skills/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/ShaderPass.js +0 -77
  231. package/.agent/skills/faceless-shorts/styles/tall-tale/example/vendor/addons/postprocessing/UnrealBloomPass.js +0 -415
  232. package/.agent/skills/faceless-shorts/styles/tall-tale/example/vendor/addons/shaders/BokehShader.js +0 -145
  233. package/.agent/skills/faceless-shorts/styles/tall-tale/example/vendor/addons/shaders/CopyShader.js +0 -45
  234. package/.agent/skills/faceless-shorts/styles/tall-tale/example/vendor/addons/shaders/LuminosityHighPassShader.js +0 -64
  235. package/.agent/skills/faceless-shorts/styles/tall-tale/example/vendor/addons/shaders/OutputShader.js +0 -85
  236. package/.agent/skills/faceless-shorts/styles/tall-tale/example/vendor/three.module.js +0 -6
  237. package/.agent/skills/faceless-shorts/styles/tall-tale/style-sheet.png +0 -0
  238. package/.agent/skills/gstack-autoplan/SKILL.md +0 -972
  239. package/.agent/skills/gstack-autoplan/SKILL.md.tmpl +0 -468
  240. package/.agent/skills/gstack-autoplan/bin/guard-journal.ts +0 -115
  241. package/.agent/skills/gstack-autoplan/bin/guard-log.ts +0 -40
  242. package/.agent/skills/gstack-autoplan/bin/guard-reasons.ts +0 -92
  243. package/.agent/skills/gstack-autoplan/bin/owned-read.ts +0 -72
  244. package/.agent/skills/gstack-autoplan/bin/phase-publication-hook +0 -15
  245. package/.agent/skills/gstack-autoplan/bin/phase-publication-hook.ts +0 -769
  246. package/.agent/skills/gstack-autoplan/sections/ceo-phase.md +0 -195
  247. package/.agent/skills/gstack-autoplan/sections/ceo-phase.md.tmpl +0 -147
  248. package/.agent/skills/gstack-autoplan/sections/design-phase.md +0 -128
  249. package/.agent/skills/gstack-autoplan/sections/design-phase.md.tmpl +0 -82
  250. package/.agent/skills/gstack-autoplan/sections/dx-phase.md +0 -155
  251. package/.agent/skills/gstack-autoplan/sections/dx-phase.md.tmpl +0 -109
  252. package/.agent/skills/gstack-autoplan/sections/eng-phase.md +0 -164
  253. package/.agent/skills/gstack-autoplan/sections/eng-phase.md.tmpl +0 -116
  254. package/.agent/skills/gstack-autoplan/sections/manifest.json +0 -50
  255. package/.agent/skills/gstack-autoplan/sections/phase-close.md +0 -70
  256. package/.agent/skills/gstack-autoplan/sections/phase-close.md.tmpl +0 -68
  257. package/.agent/skills/gstack-autoplan/sections/tasks-aggregator.md +0 -71
  258. package/.agent/skills/gstack-autoplan/sections/tasks-aggregator.md.tmpl +0 -1
  259. package/.agent/skills/gstack-autoplan/sections/unattended.md +0 -11
  260. package/.agent/skills/gstack-autoplan/sections/unattended.md.tmpl +0 -9
  261. package/.agent/skills/gstack-benchmark/SKILL.md +0 -456
  262. package/.agent/skills/gstack-benchmark/SKILL.md.tmpl +0 -249
  263. package/.agent/skills/gstack-benchmark-models/SKILL.md +0 -285
  264. package/.agent/skills/gstack-benchmark-models/SKILL.md.tmpl +0 -155
  265. package/.agent/skills/gstack-browse/PLAN-snapshot-dropdown-interactive.md +0 -102
  266. package/.agent/skills/gstack-browse/SKILL.md +0 -470
  267. package/.agent/skills/gstack-browse/SKILL.md.tmpl +0 -129
  268. package/.agent/skills/gstack-browse/bin/find-browse +0 -21
  269. package/.agent/skills/gstack-browse/bin/remote-slug +0 -18
  270. package/.agent/skills/gstack-browse/sections/command-list.md +0 -176
  271. package/.agent/skills/gstack-browse/sections/command-list.md.tmpl +0 -7
  272. package/.agent/skills/gstack-browse/sections/manifest.json +0 -14
  273. package/.agent/skills/gstack-browse/src/activity.ts +0 -209
  274. package/.agent/skills/gstack-browse/src/audit.ts +0 -69
  275. package/.agent/skills/gstack-browse/src/browse-client.ts +0 -264
  276. package/.agent/skills/gstack-browse/src/browser-manager.ts +0 -2334
  277. package/.agent/skills/gstack-browse/src/browser-skill-commands.ts +0 -466
  278. package/.agent/skills/gstack-browse/src/browser-skill-write.ts +0 -216
  279. package/.agent/skills/gstack-browse/src/browser-skills.ts +0 -420
  280. package/.agent/skills/gstack-browse/src/buffers.ts +0 -137
  281. package/.agent/skills/gstack-browse/src/bun-child-config.ts +0 -35
  282. package/.agent/skills/gstack-browse/src/bun-polyfill.cjs +0 -276
  283. package/.agent/skills/gstack-browse/src/cdp-allowlist.ts +0 -235
  284. package/.agent/skills/gstack-browse/src/cdp-bridge.ts +0 -180
  285. package/.agent/skills/gstack-browse/src/cdp-commands.ts +0 -64
  286. package/.agent/skills/gstack-browse/src/cdp-inspector.ts +0 -824
  287. package/.agent/skills/gstack-browse/src/chromium-profiles.ts +0 -212
  288. package/.agent/skills/gstack-browse/src/claude-bin.ts +0 -2
  289. package/.agent/skills/gstack-browse/src/cli.ts +0 -2254
  290. package/.agent/skills/gstack-browse/src/commands.ts +0 -296
  291. package/.agent/skills/gstack-browse/src/config.ts +0 -307
  292. package/.agent/skills/gstack-browse/src/content-security.ts +0 -373
  293. package/.agent/skills/gstack-browse/src/cookie-auth-verification.ts +0 -225
  294. package/.agent/skills/gstack-browse/src/cookie-database.ts +0 -73
  295. package/.agent/skills/gstack-browse/src/cookie-import-browser.ts +0 -929
  296. package/.agent/skills/gstack-browse/src/cookie-import-native-integrity.ts +0 -95
  297. package/.agent/skills/gstack-browse/src/cookie-import-native-job.ts +0 -161
  298. package/.agent/skills/gstack-browse/src/cookie-import-native-qualification.json +0 -1
  299. package/.agent/skills/gstack-browse/src/cookie-import-native-worker.ts +0 -268
  300. package/.agent/skills/gstack-browse/src/cookie-import-native.ts +0 -166
  301. package/.agent/skills/gstack-browse/src/cookie-import-operation.ts +0 -232
  302. package/.agent/skills/gstack-browse/src/cookie-picker-routes.ts +0 -343
  303. package/.agent/skills/gstack-browse/src/cookie-picker-ui.ts +0 -717
  304. package/.agent/skills/gstack-browse/src/domain-skill-commands.ts +0 -301
  305. package/.agent/skills/gstack-browse/src/domain-skills.ts +0 -438
  306. package/.agent/skills/gstack-browse/src/error-handling.ts +0 -2
  307. package/.agent/skills/gstack-browse/src/extension-id.ts +0 -25
  308. package/.agent/skills/gstack-browse/src/file-permissions.ts +0 -370
  309. package/.agent/skills/gstack-browse/src/find-browse.ts +0 -118
  310. package/.agent/skills/gstack-browse/src/find-security-sidecar.ts +0 -78
  311. package/.agent/skills/gstack-browse/src/media-extract.ts +0 -177
  312. package/.agent/skills/gstack-browse/src/memory-command.ts +0 -115
  313. package/.agent/skills/gstack-browse/src/memory-snapshot.ts +0 -73
  314. package/.agent/skills/gstack-browse/src/meta-commands.ts +0 -1150
  315. package/.agent/skills/gstack-browse/src/network-capture.ts +0 -179
  316. package/.agent/skills/gstack-browse/src/path-security.ts +0 -132
  317. package/.agent/skills/gstack-browse/src/platform.ts +0 -38
  318. package/.agent/skills/gstack-browse/src/port-allocator.ts +0 -140
  319. package/.agent/skills/gstack-browse/src/project-slug.ts +0 -36
  320. package/.agent/skills/gstack-browse/src/proxy-config.ts +0 -283
  321. package/.agent/skills/gstack-browse/src/proxy-redact.ts +0 -46
  322. package/.agent/skills/gstack-browse/src/pty-session-cookie.ts +0 -64
  323. package/.agent/skills/gstack-browse/src/pty-session-lease.ts +0 -137
  324. package/.agent/skills/gstack-browse/src/read-commands.ts +0 -756
  325. package/.agent/skills/gstack-browse/src/routes/activity.ts +0 -63
  326. package/.agent/skills/gstack-browse/src/routes/commands.ts +0 -154
  327. package/.agent/skills/gstack-browse/src/routes/core.ts +0 -123
  328. package/.agent/skills/gstack-browse/src/routes/files.ts +0 -47
  329. package/.agent/skills/gstack-browse/src/routes/index.ts +0 -27
  330. package/.agent/skills/gstack-browse/src/routes/inspector.ts +0 -132
  331. package/.agent/skills/gstack-browse/src/routes/pairing.ts +0 -158
  332. package/.agent/skills/gstack-browse/src/routes/pty.ts +0 -254
  333. package/.agent/skills/gstack-browse/src/routes/table.ts +0 -182
  334. package/.agent/skills/gstack-browse/src/routes/tokens.ts +0 -86
  335. package/.agent/skills/gstack-browse/src/routes/tunnel.ts +0 -62
  336. package/.agent/skills/gstack-browse/src/sanitize.ts +0 -49
  337. package/.agent/skills/gstack-browse/src/screenshot-size-guard.ts +0 -106
  338. package/.agent/skills/gstack-browse/src/security-classifier.ts +0 -258
  339. package/.agent/skills/gstack-browse/src/security-sidecar-client.ts +0 -234
  340. package/.agent/skills/gstack-browse/src/security-sidecar-entry.ts +0 -120
  341. package/.agent/skills/gstack-browse/src/security.ts +0 -328
  342. package/.agent/skills/gstack-browse/src/server.ts +0 -2220
  343. package/.agent/skills/gstack-browse/src/session-cookie-store.ts +0 -124
  344. package/.agent/skills/gstack-browse/src/session-persist.ts +0 -178
  345. package/.agent/skills/gstack-browse/src/skill-token.ts +0 -91
  346. package/.agent/skills/gstack-browse/src/snapshot-flags.ts +0 -30
  347. package/.agent/skills/gstack-browse/src/snapshot.ts +0 -656
  348. package/.agent/skills/gstack-browse/src/socks-bridge.ts +0 -314
  349. package/.agent/skills/gstack-browse/src/sse-helpers.ts +0 -147
  350. package/.agent/skills/gstack-browse/src/sse-session-cookie.ts +0 -65
  351. package/.agent/skills/gstack-browse/src/stealth.ts +0 -574
  352. package/.agent/skills/gstack-browse/src/tab-session.ts +0 -210
  353. package/.agent/skills/gstack-browse/src/telemetry.ts +0 -115
  354. package/.agent/skills/gstack-browse/src/terminal-agent-control.ts +0 -379
  355. package/.agent/skills/gstack-browse/src/terminal-agent.ts +0 -1124
  356. package/.agent/skills/gstack-browse/src/terminal-pty-lifecycle.ts +0 -144
  357. package/.agent/skills/gstack-browse/src/token-registry.ts +0 -721
  358. package/.agent/skills/gstack-browse/src/tunnel-denial-log.ts +0 -97
  359. package/.agent/skills/gstack-browse/src/url-validation.ts +0 -299
  360. package/.agent/skills/gstack-browse/src/welcome.html +0 -237
  361. package/.agent/skills/gstack-browse/src/write-commands.ts +0 -1438
  362. package/.agent/skills/gstack-browse/src/xprotect-heal.ts +0 -439
  363. package/.agent/skills/gstack-browse/src/xvfb.ts +0 -313
  364. package/.agent/skills/gstack-browse/test/activity.test.ts +0 -120
  365. package/.agent/skills/gstack-browse/test/adversarial-security.test.ts +0 -32
  366. package/.agent/skills/gstack-browse/test/batch.test.ts +0 -267
  367. package/.agent/skills/gstack-browse/test/bridge-chromium-e2e.test.ts +0 -205
  368. package/.agent/skills/gstack-browse/test/browse-client.test.ts +0 -300
  369. package/.agent/skills/gstack-browse/test/browse-eval-wrapping.test.ts +0 -86
  370. package/.agent/skills/gstack-browse/test/browser-manager-custom-chromium.test.ts +0 -67
  371. package/.agent/skills/gstack-browse/test/browser-manager-unit.test.ts +0 -335
  372. package/.agent/skills/gstack-browse/test/browser-skill-commands.test.ts +0 -433
  373. package/.agent/skills/gstack-browse/test/browser-skill-write.test.ts +0 -350
  374. package/.agent/skills/gstack-browse/test/browser-skills-e2e.test.ts +0 -101
  375. package/.agent/skills/gstack-browse/test/browser-skills-storage.test.ts +0 -283
  376. package/.agent/skills/gstack-browse/test/build-command-response.test.ts +0 -68
  377. package/.agent/skills/gstack-browse/test/build.test.ts +0 -52
  378. package/.agent/skills/gstack-browse/test/bun-child-config.test.ts +0 -83
  379. package/.agent/skills/gstack-browse/test/bun-polyfill.test.ts +0 -402
  380. package/.agent/skills/gstack-browse/test/busy-daemon-iron-rule.test.ts +0 -270
  381. package/.agent/skills/gstack-browse/test/busy-daemon-recovery.test.ts +0 -134
  382. package/.agent/skills/gstack-browse/test/cdp-allowlist.test.ts +0 -109
  383. package/.agent/skills/gstack-browse/test/cdp-e2e.test.ts +0 -117
  384. package/.agent/skills/gstack-browse/test/cdp-inspector-history-cap.test.ts +0 -95
  385. package/.agent/skills/gstack-browse/test/cdp-mutex.test.ts +0 -113
  386. package/.agent/skills/gstack-browse/test/cdp-session-cleanup.test.ts +0 -171
  387. package/.agent/skills/gstack-browse/test/chromium-profile-isolation.test.ts +0 -418
  388. package/.agent/skills/gstack-browse/test/claude-bin.test.ts +0 -95
  389. package/.agent/skills/gstack-browse/test/cli-chain-stdin.test.ts +0 -122
  390. package/.agent/skills/gstack-browse/test/cli-config-mismatch-message.test.ts +0 -72
  391. package/.agent/skills/gstack-browse/test/cli-lock.test.ts +0 -120
  392. package/.agent/skills/gstack-browse/test/cli-loopback-no-proxy.test.ts +0 -77
  393. package/.agent/skills/gstack-browse/test/cli-setsid-daemonize.test.ts +0 -75
  394. package/.agent/skills/gstack-browse/test/cli-start-final-healthcheck.test.ts +0 -77
  395. package/.agent/skills/gstack-browse/test/cli-supervisor.test.ts +0 -194
  396. package/.agent/skills/gstack-browse/test/commands.test.ts +0 -2779
  397. package/.agent/skills/gstack-browse/test/compare-board.test.ts +0 -382
  398. package/.agent/skills/gstack-browse/test/config.test.ts +0 -519
  399. package/.agent/skills/gstack-browse/test/content-security.test.ts +0 -681
  400. package/.agent/skills/gstack-browse/test/cookie-auth-verification.test.ts +0 -760
  401. package/.agent/skills/gstack-browse/test/cookie-credential-deadline.test.ts +0 -225
  402. package/.agent/skills/gstack-browse/test/cookie-database.test.ts +0 -277
  403. package/.agent/skills/gstack-browse/test/cookie-fixture-delete-lease.test.ts +0 -256
  404. package/.agent/skills/gstack-browse/test/cookie-import-browser.test.ts +0 -523
  405. package/.agent/skills/gstack-browse/test/cookie-import-native-job.test.ts +0 -1645
  406. package/.agent/skills/gstack-browse/test/cookie-import-native-qualification.ts +0 -128
  407. package/.agent/skills/gstack-browse/test/cookie-import-native.test.ts +0 -436
  408. package/.agent/skills/gstack-browse/test/cookie-import-node.test.ts +0 -166
  409. package/.agent/skills/gstack-browse/test/cookie-import-operation.test.ts +0 -452
  410. package/.agent/skills/gstack-browse/test/cookie-import-reliability.test.ts +0 -659
  411. package/.agent/skills/gstack-browse/test/cookie-import-transport.test.ts +0 -38
  412. package/.agent/skills/gstack-browse/test/cookie-picker-binding-browser.test.ts +0 -96
  413. package/.agent/skills/gstack-browse/test/cookie-picker-binding.test.ts +0 -155
  414. package/.agent/skills/gstack-browse/test/cookie-picker-csrf-browser.test.ts +0 -50
  415. package/.agent/skills/gstack-browse/test/cookie-picker-routes.test.ts +0 -460
  416. package/.agent/skills/gstack-browse/test/cookie-picker-ui.test.ts +0 -535
  417. package/.agent/skills/gstack-browse/test/daemon-log-hygiene.test.ts +0 -135
  418. package/.agent/skills/gstack-browse/test/daemon-mismatch-refuse.test.ts +0 -178
  419. package/.agent/skills/gstack-browse/test/data-platform.test.ts +0 -176
  420. package/.agent/skills/gstack-browse/test/dia-gui-readiness.test.ts +0 -174
  421. package/.agent/skills/gstack-browse/test/dia-launch-comparison.test.ts +0 -180
  422. package/.agent/skills/gstack-browse/test/dia-macos-qualification.test.ts +0 -1695
  423. package/.agent/skills/gstack-browse/test/domain-skills-e2e.test.ts +0 -142
  424. package/.agent/skills/gstack-browse/test/domain-skills-storage.test.ts +0 -263
  425. package/.agent/skills/gstack-browse/test/dotenv-isolation.test.ts +0 -121
  426. package/.agent/skills/gstack-browse/test/dual-listener.test.ts +0 -411
  427. package/.agent/skills/gstack-browse/test/dx-polish.test.ts +0 -101
  428. package/.agent/skills/gstack-browse/test/error-handling.test.ts +0 -47
  429. package/.agent/skills/gstack-browse/test/extension-sender-auth.test.ts +0 -285
  430. package/.agent/skills/gstack-browse/test/extension-token.test.ts +0 -232
  431. package/.agent/skills/gstack-browse/test/file-drop.test.ts +0 -271
  432. package/.agent/skills/gstack-browse/test/file-permissions.test.ts +0 -346
  433. package/.agent/skills/gstack-browse/test/fill-change-event.test.ts +0 -78
  434. package/.agent/skills/gstack-browse/test/find-browse.test.ts +0 -61
  435. package/.agent/skills/gstack-browse/test/findport.test.ts +0 -232
  436. package/.agent/skills/gstack-browse/test/fixtures/basic.html +0 -33
  437. package/.agent/skills/gstack-browse/test/fixtures/change-only-validator.html +0 -31
  438. package/.agent/skills/gstack-browse/test/fixtures/cursor-interactive.html +0 -22
  439. package/.agent/skills/gstack-browse/test/fixtures/dialog.html +0 -15
  440. package/.agent/skills/gstack-browse/test/fixtures/dropdown.html +0 -61
  441. package/.agent/skills/gstack-browse/test/fixtures/empty.html +0 -2
  442. package/.agent/skills/gstack-browse/test/fixtures/forms.html +0 -55
  443. package/.agent/skills/gstack-browse/test/fixtures/iframe.html +0 -30
  444. package/.agent/skills/gstack-browse/test/fixtures/injection-combined.html +0 -58
  445. package/.agent/skills/gstack-browse/test/fixtures/injection-hidden.html +0 -62
  446. package/.agent/skills/gstack-browse/test/fixtures/injection-social.html +0 -25
  447. package/.agent/skills/gstack-browse/test/fixtures/injection-visible.html +0 -26
  448. package/.agent/skills/gstack-browse/test/fixtures/media-page.html +0 -67
  449. package/.agent/skills/gstack-browse/test/fixtures/mock-claude/claude +0 -185
  450. package/.agent/skills/gstack-browse/test/fixtures/native-cookie-delete-lease.ts +0 -125
  451. package/.agent/skills/gstack-browse/test/fixtures/native-cookie-file-owners.ts +0 -132
  452. package/.agent/skills/gstack-browse/test/fixtures/native-cookie-launch.cjs +0 -139
  453. package/.agent/skills/gstack-browse/test/fixtures/native-cookie-process-observer.ts +0 -150
  454. package/.agent/skills/gstack-browse/test/fixtures/native-cookie-process.cjs +0 -13
  455. package/.agent/skills/gstack-browse/test/fixtures/native-cookie-remove-fixture.cjs +0 -42
  456. package/.agent/skills/gstack-browse/test/fixtures/network-idle.html +0 -30
  457. package/.agent/skills/gstack-browse/test/fixtures/qa-eval-checkout.html +0 -108
  458. package/.agent/skills/gstack-browse/test/fixtures/qa-eval-spa.html +0 -98
  459. package/.agent/skills/gstack-browse/test/fixtures/qa-eval.html +0 -51
  460. package/.agent/skills/gstack-browse/test/fixtures/qa-only.html +0 -13
  461. package/.agent/skills/gstack-browse/test/fixtures/responsive.html +0 -49
  462. package/.agent/skills/gstack-browse/test/fixtures/route-dispatch-allowlist.json +0 -22
  463. package/.agent/skills/gstack-browse/test/fixtures/snapshot-ambiguous.html +0 -24
  464. package/.agent/skills/gstack-browse/test/fixtures/snapshot.html +0 -55
  465. package/.agent/skills/gstack-browse/test/fixtures/spa.html +0 -24
  466. package/.agent/skills/gstack-browse/test/fixtures/states.html +0 -17
  467. package/.agent/skills/gstack-browse/test/fixtures/upload-path-validation.ts +0 -91
  468. package/.agent/skills/gstack-browse/test/fixtures/upload.html +0 -25
  469. package/.agent/skills/gstack-browse/test/from-file-path-validation.test.ts +0 -68
  470. package/.agent/skills/gstack-browse/test/gstack-config.test.ts +0 -252
  471. package/.agent/skills/gstack-browse/test/gstack-update-check.test.ts +0 -614
  472. package/.agent/skills/gstack-browse/test/handoff.test.ts +0 -508
  473. package/.agent/skills/gstack-browse/test/headless-gpu-and-reap.test.ts +0 -286
  474. package/.agent/skills/gstack-browse/test/headless-launch-options.test.ts +0 -93
  475. package/.agent/skills/gstack-browse/test/launch-signal-flags.test.ts +0 -75
  476. package/.agent/skills/gstack-browse/test/learnings-injection.test.ts +0 -33
  477. package/.agent/skills/gstack-browse/test/media-extract-unit.test.ts +0 -294
  478. package/.agent/skills/gstack-browse/test/memory-command.test.ts +0 -219
  479. package/.agent/skills/gstack-browse/test/memory-leak-reproducer.test.ts +0 -133
  480. package/.agent/skills/gstack-browse/test/navigation-guard.test.ts +0 -106
  481. package/.agent/skills/gstack-browse/test/output-path-symlinks.test.ts +0 -76
  482. package/.agent/skills/gstack-browse/test/pair-agent-e2e.test.ts +0 -793
  483. package/.agent/skills/gstack-browse/test/pair-agent-optin-gate.test.ts +0 -171
  484. package/.agent/skills/gstack-browse/test/pair-agent-tunnel-eval.test.ts +0 -501
  485. package/.agent/skills/gstack-browse/test/path-security-realpath.test.ts +0 -89
  486. package/.agent/skills/gstack-browse/test/path-validation.test.ts +0 -268
  487. package/.agent/skills/gstack-browse/test/pdf-flags.test.ts +0 -86
  488. package/.agent/skills/gstack-browse/test/platform.test.ts +0 -37
  489. package/.agent/skills/gstack-browse/test/playwright-core-patch.test.ts +0 -62
  490. package/.agent/skills/gstack-browse/test/poisoned-bundle-probe.test.ts +0 -148
  491. package/.agent/skills/gstack-browse/test/process-liveness-windows.test.ts +0 -176
  492. package/.agent/skills/gstack-browse/test/proxy-config.test.ts +0 -189
  493. package/.agent/skills/gstack-browse/test/proxy-env-daemon.test.ts +0 -137
  494. package/.agent/skills/gstack-browse/test/proxy-env.test.ts +0 -189
  495. package/.agent/skills/gstack-browse/test/proxy-redact.test.ts +0 -64
  496. package/.agent/skills/gstack-browse/test/pty-inject-scan.test.ts +0 -153
  497. package/.agent/skills/gstack-browse/test/pty-session-lease.test.ts +0 -98
  498. package/.agent/skills/gstack-browse/test/rebrand-signed-bundle.test.ts +0 -53
  499. package/.agent/skills/gstack-browse/test/regression-pr1169-pdf-from-file-invalid-json.test.ts +0 -84
  500. package/.agent/skills/gstack-browse/test/restart-env.test.ts +0 -39
  501. package/.agent/skills/gstack-browse/test/route-test-harness.ts +0 -121
  502. package/.agent/skills/gstack-browse/test/runtime-root-server-bundle.test.ts +0 -100
  503. package/.agent/skills/gstack-browse/test/sanitize.test.ts +0 -112
  504. package/.agent/skills/gstack-browse/test/screenshot-size-guard.test.ts +0 -118
  505. package/.agent/skills/gstack-browse/test/security-adversarial-fixes.test.ts +0 -101
  506. package/.agent/skills/gstack-browse/test/security-adversarial.test.ts +0 -342
  507. package/.agent/skills/gstack-browse/test/security-audit-r2.test.ts +0 -432
  508. package/.agent/skills/gstack-browse/test/security-bench.test.ts +0 -159
  509. package/.agent/skills/gstack-browse/test/security-classifier-download-cleanup.test.ts +0 -138
  510. package/.agent/skills/gstack-browse/test/security-classifier.test.ts +0 -29
  511. package/.agent/skills/gstack-browse/test/security-integration.test.ts +0 -184
  512. package/.agent/skills/gstack-browse/test/security-live-playwright.test.ts +0 -195
  513. package/.agent/skills/gstack-browse/test/security-sidecar-client.test.ts +0 -66
  514. package/.agent/skills/gstack-browse/test/security.test.ts +0 -268
  515. package/.agent/skills/gstack-browse/test/server-auth.test.ts +0 -600
  516. package/.agent/skills/gstack-browse/test/server-embedder-terminal-port.test.ts +0 -301
  517. package/.agent/skills/gstack-browse/test/server-factory.test.ts +0 -640
  518. package/.agent/skills/gstack-browse/test/server-flush-trackers.test.ts +0 -73
  519. package/.agent/skills/gstack-browse/test/server-launch-resolution.test.ts +0 -49
  520. package/.agent/skills/gstack-browse/test/server-lock-errors.test.ts +0 -124
  521. package/.agent/skills/gstack-browse/test/server-no-import-side-effects.test.ts +0 -110
  522. package/.agent/skills/gstack-browse/test/server-proxy-fail-fast.test.ts +0 -98
  523. package/.agent/skills/gstack-browse/test/server-pty-lease-routes.test.ts +0 -156
  524. package/.agent/skills/gstack-browse/test/server-route-auth-blackbox.test.ts +0 -270
  525. package/.agent/skills/gstack-browse/test/server-route-dispatch-ratchet.test.ts +0 -129
  526. package/.agent/skills/gstack-browse/test/server-route-table.test.ts +0 -238
  527. package/.agent/skills/gstack-browse/test/server-sanitize-surrogates.test.ts +0 -182
  528. package/.agent/skills/gstack-browse/test/server-tmp-state-path.test.ts +0 -110
  529. package/.agent/skills/gstack-browse/test/session-cookie-store.test.ts +0 -159
  530. package/.agent/skills/gstack-browse/test/session-persist.test.ts +0 -287
  531. package/.agent/skills/gstack-browse/test/sidebar-tabs.test.ts +0 -268
  532. package/.agent/skills/gstack-browse/test/sidebar-ux.test.ts +0 -1006
  533. package/.agent/skills/gstack-browse/test/sidepanel-font-size.test.ts +0 -147
  534. package/.agent/skills/gstack-browse/test/sidepanel-patient-autoconnect.test.ts +0 -70
  535. package/.agent/skills/gstack-browse/test/sidepanel-reattach.test.ts +0 -93
  536. package/.agent/skills/gstack-browse/test/sidepanel-restart-dispose.test.ts +0 -106
  537. package/.agent/skills/gstack-browse/test/skill-token.test.ts +0 -167
  538. package/.agent/skills/gstack-browse/test/snapshot.test.ts +0 -593
  539. package/.agent/skills/gstack-browse/test/socks-bridge.test.ts +0 -461
  540. package/.agent/skills/gstack-browse/test/sse-helpers.test.ts +0 -194
  541. package/.agent/skills/gstack-browse/test/sse-session-cookie.test.ts +0 -155
  542. package/.agent/skills/gstack-browse/test/state-ttl.test.ts +0 -35
  543. package/.agent/skills/gstack-browse/test/stealth-extended.test.ts +0 -127
  544. package/.agent/skills/gstack-browse/test/stealth-layer-c.test.ts +0 -284
  545. package/.agent/skills/gstack-browse/test/stealth-webdriver.test.ts +0 -394
  546. package/.agent/skills/gstack-browse/test/stop-ack-before-shutdown.test.ts +0 -23
  547. package/.agent/skills/gstack-browse/test/stop-dead-daemon.test.ts +0 -153
  548. package/.agent/skills/gstack-browse/test/tab-each.test.ts +0 -196
  549. package/.agent/skills/gstack-browse/test/tab-guardrail.test.ts +0 -118
  550. package/.agent/skills/gstack-browse/test/tab-isolation.test.ts +0 -309
  551. package/.agent/skills/gstack-browse/test/tab-session-frame-detach.test.ts +0 -154
  552. package/.agent/skills/gstack-browse/test/telemetry-optout.test.ts +0 -171
  553. package/.agent/skills/gstack-browse/test/telemetry.test.ts +0 -77
  554. package/.agent/skills/gstack-browse/test/temp-dirs.test.ts +0 -129
  555. package/.agent/skills/gstack-browse/test/terminal-agent-detach-reattach.test.ts +0 -84
  556. package/.agent/skills/gstack-browse/test/terminal-agent-import.test.ts +0 -42
  557. package/.agent/skills/gstack-browse/test/terminal-agent-integration.test.ts +0 -565
  558. package/.agent/skills/gstack-browse/test/terminal-agent-keepalive.test.ts +0 -88
  559. package/.agent/skills/gstack-browse/test/terminal-agent-lifecycle.test.ts +0 -371
  560. package/.agent/skills/gstack-browse/test/terminal-agent-native-observation.test.ts +0 -66
  561. package/.agent/skills/gstack-browse/test/terminal-agent-owner-watchdog.test.ts +0 -81
  562. package/.agent/skills/gstack-browse/test/terminal-agent-pid-identity.test.ts +0 -161
  563. package/.agent/skills/gstack-browse/test/terminal-agent-port-range.test.ts +0 -80
  564. package/.agent/skills/gstack-browse/test/terminal-agent-publication-lock.test.ts +0 -289
  565. package/.agent/skills/gstack-browse/test/terminal-agent-ring-buffer-runtime.test.ts +0 -157
  566. package/.agent/skills/gstack-browse/test/terminal-agent-session-routing.test.ts +0 -96
  567. package/.agent/skills/gstack-browse/test/terminal-agent-watchdog.test.ts +0 -101
  568. package/.agent/skills/gstack-browse/test/terminal-agent.test.ts +0 -259
  569. package/.agent/skills/gstack-browse/test/terminal-pty-lifecycle.test.ts +0 -212
  570. package/.agent/skills/gstack-browse/test/test-server.ts +0 -57
  571. package/.agent/skills/gstack-browse/test/token-registry.test.ts +0 -615
  572. package/.agent/skills/gstack-browse/test/tunnel-gate-unit.test.ts +0 -129
  573. package/.agent/skills/gstack-browse/test/tunnel-revoke-cli.test.ts +0 -455
  574. package/.agent/skills/gstack-browse/test/url-validation.test.ts +0 -384
  575. package/.agent/skills/gstack-browse/test/watch.test.ts +0 -129
  576. package/.agent/skills/gstack-browse/test/watchdog.test.ts +0 -352
  577. package/.agent/skills/gstack-browse/test/welcome-page.test.ts +0 -143
  578. package/.agent/skills/gstack-browse/test/windows-spawn-hide.test.ts +0 -167
  579. package/.agent/skills/gstack-browse/test/xprotect-heal.test.ts +0 -457
  580. package/.agent/skills/gstack-browse/test/xvfb.test.ts +0 -603
  581. package/.agent/skills/gstack-canary/SKILL.md +0 -699
  582. package/.agent/skills/gstack-canary/SKILL.md.tmpl +0 -254
  583. package/.agent/skills/gstack-careful/SKILL.md +0 -96
  584. package/.agent/skills/gstack-careful/SKILL.md.tmpl +0 -107
  585. package/.agent/skills/gstack-careful/bin/check-careful.sh +0 -407
  586. package/.agent/skills/gstack-careful/bin/hook-extract.sh +0 -198
  587. package/.agent/skills/gstack-codex/SKILL.md +0 -889
  588. package/.agent/skills/gstack-codex/SKILL.md.tmpl +0 -358
  589. package/.agent/skills/gstack-codex/sections/challenge-mode.md +0 -150
  590. package/.agent/skills/gstack-codex/sections/challenge-mode.md.tmpl +0 -136
  591. package/.agent/skills/gstack-codex/sections/consult-mode.md +0 -221
  592. package/.agent/skills/gstack-codex/sections/consult-mode.md.tmpl +0 -207
  593. package/.agent/skills/gstack-codex/sections/manifest.json +0 -26
  594. package/.agent/skills/gstack-codex/sections/review-mode.md +0 -265
  595. package/.agent/skills/gstack-codex/sections/review-mode.md.tmpl +0 -246
  596. package/.agent/skills/gstack-context-restore/SKILL.md +0 -612
  597. package/.agent/skills/gstack-context-restore/SKILL.md.tmpl +0 -289
  598. package/.agent/skills/gstack-context-save/SKILL.md +0 -631
  599. package/.agent/skills/gstack-context-save/SKILL.md.tmpl +0 -307
  600. package/.agent/skills/gstack-cso/ACKNOWLEDGEMENTS.md +0 -17
  601. package/.agent/skills/gstack-cso/SKILL.md +0 -166
  602. package/.agent/skills/gstack-cso/SKILL.md.tmpl +0 -162
  603. package/.agent/skills/gstack-cso/sections/audit-phases.md +0 -116
  604. package/.agent/skills/gstack-cso/sections/audit-phases.md.tmpl +0 -114
  605. package/.agent/skills/gstack-cso/sections/manifest.json +0 -14
  606. package/.agent/skills/gstack-design-consultation/SKILL.md +0 -795
  607. package/.agent/skills/gstack-design-consultation/SKILL.md.tmpl +0 -234
  608. package/.agent/skills/gstack-design-consultation/sections/manifest.json +0 -14
  609. package/.agent/skills/gstack-design-consultation/sections/proposal-and-preview.md +0 -595
  610. package/.agent/skills/gstack-design-consultation/sections/proposal-and-preview.md.tmpl +0 -350
  611. package/.agent/skills/gstack-design-html/SKILL.md +0 -866
  612. package/.agent/skills/gstack-design-html/SKILL.md.tmpl +0 -476
  613. package/.agent/skills/gstack-design-html/sections/detector-install-offer.md +0 -40
  614. package/.agent/skills/gstack-design-html/sections/detector-install-offer.md.tmpl +0 -6
  615. package/.agent/skills/gstack-design-html/sections/doctrine.md +0 -86
  616. package/.agent/skills/gstack-design-html/sections/doctrine.md.tmpl +0 -1
  617. package/.agent/skills/gstack-design-html/sections/manifest.json +0 -26
  618. package/.agent/skills/gstack-design-html/sections/pretext-patterns.md +0 -145
  619. package/.agent/skills/gstack-design-html/sections/pretext-patterns.md.tmpl +0 -143
  620. package/.agent/skills/gstack-design-html/vendor/pretext.js +0 -5
  621. package/.agent/skills/gstack-design-review/SKILL.md +0 -1957
  622. package/.agent/skills/gstack-design-review/SKILL.md.tmpl +0 -344
  623. package/.agent/skills/gstack-design-shotgun/SKILL.md +0 -885
  624. package/.agent/skills/gstack-design-shotgun/SKILL.md.tmpl +0 -310
  625. package/.agent/skills/gstack-design-shotgun/sections/doctrine.md +0 -86
  626. package/.agent/skills/gstack-design-shotgun/sections/doctrine.md.tmpl +0 -1
  627. package/.agent/skills/gstack-design-shotgun/sections/manifest.json +0 -14
  628. package/.agent/skills/gstack-deslop-shared-libs/SKILL.md +0 -209
  629. package/.agent/skills/gstack-deslop-shared-libs/SKILL.md.tmpl +0 -181
  630. package/.agent/skills/gstack-devex-review/SKILL.md +0 -1107
  631. package/.agent/skills/gstack-devex-review/SKILL.md.tmpl +0 -241
  632. package/.agent/skills/gstack-diagram/SKILL.md +0 -295
  633. package/.agent/skills/gstack-diagram/SKILL.md.tmpl +0 -175
  634. package/.agent/skills/gstack-document-generate/SKILL.md +0 -814
  635. package/.agent/skills/gstack-document-generate/SKILL.md.tmpl +0 -460
  636. package/.agent/skills/gstack-document-release/SKILL.md +0 -557
  637. package/.agent/skills/gstack-document-release/SKILL.md.tmpl +0 -188
  638. package/.agent/skills/gstack-document-release/sections/audit-scope.md +0 -51
  639. package/.agent/skills/gstack-document-release/sections/audit-scope.md.tmpl +0 -49
  640. package/.agent/skills/gstack-document-release/sections/manifest.json +0 -20
  641. package/.agent/skills/gstack-document-release/sections/release-body.md +0 -640
  642. package/.agent/skills/gstack-document-release/sections/release-body.md.tmpl +0 -428
  643. package/.agent/skills/gstack-eval-plan/SKILL.md +0 -472
  644. package/.agent/skills/gstack-eval-plan/SKILL.md.tmpl +0 -157
  645. package/.agent/skills/gstack-freeze/SKILL.md +0 -79
  646. package/.agent/skills/gstack-freeze/SKILL.md.tmpl +0 -96
  647. package/.agent/skills/gstack-freeze/bin/check-freeze.sh +0 -210
  648. package/.agent/skills/gstack-freeze/bin/freeze-state.sh +0 -68
  649. package/.agent/skills/gstack-gstack-upgrade/SKILL.md +0 -410
  650. package/.agent/skills/gstack-gstack-upgrade/SKILL.md.tmpl +0 -413
  651. package/.agent/skills/gstack-gstack-upgrade/migrations/v0.15.2.0.sh +0 -20
  652. package/.agent/skills/gstack-gstack-upgrade/migrations/v0.16.2.0.sh +0 -56
  653. package/.agent/skills/gstack-gstack-upgrade/migrations/v1.0.0.0.sh +0 -40
  654. package/.agent/skills/gstack-gstack-upgrade/migrations/v1.1.3.0.sh +0 -137
  655. package/.agent/skills/gstack-gstack-upgrade/migrations/v1.17.0.0.sh +0 -59
  656. package/.agent/skills/gstack-gstack-upgrade/migrations/v1.27.0.0.sh +0 -432
  657. package/.agent/skills/gstack-gstack-upgrade/migrations/v1.37.0.0.sh +0 -104
  658. package/.agent/skills/gstack-gstack-upgrade/migrations/v1.38.1.0.sh +0 -104
  659. package/.agent/skills/gstack-gstack-upgrade/migrations/v1.40.0.0.sh +0 -144
  660. package/.agent/skills/gstack-gstack-upgrade/migrations/v1.58.0.0.sh +0 -65
  661. package/.agent/skills/gstack-gstack-upgrade/migrations/v1.65.0.0.sh +0 -152
  662. package/.agent/skills/gstack-gstack-upgrade/migrations/v1.67.0.0.sh +0 -73
  663. package/.agent/skills/gstack-gstack-upgrade/migrations/v1.78.0.0.sh +0 -30
  664. package/.agent/skills/gstack-gstack-upgrade/migrations/v1.86.0.0.sh +0 -12
  665. package/.agent/skills/gstack-gstack-upgrade/migrations/v1.91.19.0.sh +0 -53
  666. package/.agent/skills/gstack-gstack-upgrade/migrations/v1.91.65.0.sh +0 -31
  667. package/.agent/skills/gstack-guard/SKILL.md +0 -60
  668. package/.agent/skills/gstack-guard/SKILL.md.tmpl +0 -88
  669. package/.agent/skills/gstack-health/SKILL.md +0 -710
  670. package/.agent/skills/gstack-health/SKILL.md.tmpl +0 -386
  671. package/.agent/skills/gstack-investigate/SKILL.md +0 -706
  672. package/.agent/skills/gstack-investigate/SKILL.md.tmpl +0 -305
  673. package/.agent/skills/gstack-investigate/sections/backlog.md +0 -31
  674. package/.agent/skills/gstack-investigate/sections/backlog.md.tmpl +0 -29
  675. package/.agent/skills/gstack-investigate/sections/eval-bisect.md +0 -25
  676. package/.agent/skills/gstack-investigate/sections/eval-bisect.md.tmpl +0 -23
  677. package/.agent/skills/gstack-investigate/sections/flake.md +0 -50
  678. package/.agent/skills/gstack-investigate/sections/flake.md.tmpl +0 -43
  679. package/.agent/skills/gstack-investigate/sections/manifest.json +0 -38
  680. package/.agent/skills/gstack-investigate/sections/polluter.md +0 -33
  681. package/.agent/skills/gstack-investigate/sections/polluter.md.tmpl +0 -31
  682. package/.agent/skills/gstack-investigate/sections/race.md +0 -27
  683. package/.agent/skills/gstack-investigate/sections/race.md.tmpl +0 -25
  684. package/.agent/skills/gstack-ios-clean/SKILL.md +0 -427
  685. package/.agent/skills/gstack-ios-clean/SKILL.md.tmpl +0 -107
  686. package/.agent/skills/gstack-ios-design-review/SKILL.md +0 -434
  687. package/.agent/skills/gstack-ios-design-review/SKILL.md.tmpl +0 -111
  688. package/.agent/skills/gstack-ios-fix/SKILL.md +0 -423
  689. package/.agent/skills/gstack-ios-fix/SKILL.md.tmpl +0 -103
  690. package/.agent/skills/gstack-ios-qa/SKILL.md +0 -643
  691. package/.agent/skills/gstack-ios-qa/SKILL.md.tmpl +0 -297
  692. package/.agent/skills/gstack-ios-qa/daemon/src/allowlist.ts +0 -114
  693. package/.agent/skills/gstack-ios-qa/daemon/src/audit.ts +0 -97
  694. package/.agent/skills/gstack-ios-qa/daemon/src/auth-mint.ts +0 -89
  695. package/.agent/skills/gstack-ios-qa/daemon/src/cli-mint.ts +0 -149
  696. package/.agent/skills/gstack-ios-qa/daemon/src/devicectl.ts +0 -335
  697. package/.agent/skills/gstack-ios-qa/daemon/src/index.ts +0 -697
  698. package/.agent/skills/gstack-ios-qa/daemon/src/proxy.ts +0 -160
  699. package/.agent/skills/gstack-ios-qa/daemon/src/session-tokens.ts +0 -126
  700. package/.agent/skills/gstack-ios-qa/daemon/src/single-instance.ts +0 -171
  701. package/.agent/skills/gstack-ios-qa/daemon/src/tailscale-localapi.ts +0 -120
  702. package/.agent/skills/gstack-ios-qa/daemon/src/tunnel-bootstrap.ts +0 -459
  703. package/.agent/skills/gstack-ios-qa/daemon/src/types.ts +0 -91
  704. package/.agent/skills/gstack-ios-qa/daemon/test/allowlist.test.ts +0 -146
  705. package/.agent/skills/gstack-ios-qa/daemon/test/audit.test.ts +0 -111
  706. package/.agent/skills/gstack-ios-qa/daemon/test/auth-mint.test.ts +0 -106
  707. package/.agent/skills/gstack-ios-qa/daemon/test/cli-mint.test.ts +0 -120
  708. package/.agent/skills/gstack-ios-qa/daemon/test/daemon-integration.test.ts +0 -855
  709. package/.agent/skills/gstack-ios-qa/daemon/test/fake-device.ts +0 -238
  710. package/.agent/skills/gstack-ios-qa/daemon/test/proxy-classify.test.ts +0 -47
  711. package/.agent/skills/gstack-ios-qa/daemon/test/proxy-transport.test.ts +0 -499
  712. package/.agent/skills/gstack-ios-qa/daemon/test/session-tokens.test.ts +0 -156
  713. package/.agent/skills/gstack-ios-qa/daemon/test/single-instance.test.ts +0 -96
  714. package/.agent/skills/gstack-ios-qa/daemon/test/tailscale-localapi.test.ts +0 -55
  715. package/.agent/skills/gstack-ios-qa/daemon/test/tunnel-bootstrap.test.ts +0 -1030
  716. package/.agent/skills/gstack-ios-qa/templates/Bridges.swift.template +0 -474
  717. package/.agent/skills/gstack-ios-qa/templates/DebugBridgeManager.swift.template +0 -38
  718. package/.agent/skills/gstack-ios-qa/templates/DebugBridgeTouch.h.template +0 -38
  719. package/.agent/skills/gstack-ios-qa/templates/DebugBridgeTouch.m.template +0 -365
  720. package/.agent/skills/gstack-ios-qa/templates/DebugBridgeWiring.swift.template +0 -59
  721. package/.agent/skills/gstack-ios-qa/templates/DebugOverlay.swift.template +0 -137
  722. package/.agent/skills/gstack-ios-qa/templates/Package.swift.template +0 -82
  723. package/.agent/skills/gstack-ios-qa/templates/StateAccessor.swift.template +0 -41
  724. package/.agent/skills/gstack-ios-qa/templates/StateServer.swift.template +0 -625
  725. package/.agent/skills/gstack-ios-sync/SKILL.md +0 -418
  726. package/.agent/skills/gstack-ios-sync/SKILL.md.tmpl +0 -99
  727. package/.agent/skills/gstack-land-and-deploy/SKILL.md +0 -1028
  728. package/.agent/skills/gstack-land-and-deploy/SKILL.md.tmpl +0 -509
  729. package/.agent/skills/gstack-land-and-deploy/sections/first-run-validation.md +0 -188
  730. package/.agent/skills/gstack-land-and-deploy/sections/first-run-validation.md.tmpl +0 -150
  731. package/.agent/skills/gstack-land-and-deploy/sections/manifest.json +0 -26
  732. package/.agent/skills/gstack-land-and-deploy/sections/merge-and-deploy.md +0 -250
  733. package/.agent/skills/gstack-land-and-deploy/sections/merge-and-deploy.md.tmpl +0 -248
  734. package/.agent/skills/gstack-land-and-deploy/sections/readiness-gate.md +0 -308
  735. package/.agent/skills/gstack-land-and-deploy/sections/readiness-gate.md.tmpl +0 -306
  736. package/.agent/skills/gstack-landing-report/SKILL.md +0 -488
  737. package/.agent/skills/gstack-landing-report/SKILL.md.tmpl +0 -164
  738. package/.agent/skills/gstack-learn/SKILL.md +0 -519
  739. package/.agent/skills/gstack-learn/SKILL.md.tmpl +0 -197
  740. package/.agent/skills/gstack-make-pdf/SKILL.md +0 -409
  741. package/.agent/skills/gstack-make-pdf/SKILL.md.tmpl +0 -253
  742. package/.agent/skills/gstack-make-pdf/src/asideClient.ts +0 -114
  743. package/.agent/skills/gstack-make-pdf/src/cli.ts +0 -294
  744. package/.agent/skills/gstack-make-pdf/src/commands.ts +0 -62
  745. package/.agent/skills/gstack-make-pdf/src/diagram-prepass.ts +0 -834
  746. package/.agent/skills/gstack-make-pdf/src/html-to-docx.d.ts +0 -7
  747. package/.agent/skills/gstack-make-pdf/src/image-policy.ts +0 -236
  748. package/.agent/skills/gstack-make-pdf/src/image-size.ts +0 -117
  749. package/.agent/skills/gstack-make-pdf/src/orchestrator.ts +0 -339
  750. package/.agent/skills/gstack-make-pdf/src/pdftotext.ts +0 -318
  751. package/.agent/skills/gstack-make-pdf/src/print-css.ts +0 -452
  752. package/.agent/skills/gstack-make-pdf/src/render.ts +0 -636
  753. package/.agent/skills/gstack-make-pdf/src/setup.ts +0 -113
  754. package/.agent/skills/gstack-make-pdf/src/smartypants.ts +0 -105
  755. package/.agent/skills/gstack-make-pdf/src/toc-pages.ts +0 -197
  756. package/.agent/skills/gstack-make-pdf/src/types.ts +0 -109
  757. package/.agent/skills/gstack-make-pdf/test/asideClient.test.ts +0 -153
  758. package/.agent/skills/gstack-make-pdf/test/cli-args.test.ts +0 -94
  759. package/.agent/skills/gstack-make-pdf/test/cli-exit-codes.test.ts +0 -329
  760. package/.agent/skills/gstack-make-pdf/test/diagram-prepass.test.ts +0 -743
  761. package/.agent/skills/gstack-make-pdf/test/e2e/ci-prereqs.test.ts +0 -48
  762. package/.agent/skills/gstack-make-pdf/test/e2e/combined-gate.test.ts +0 -74
  763. package/.agent/skills/gstack-make-pdf/test/e2e/diagram-gate.test.ts +0 -173
  764. package/.agent/skills/gstack-make-pdf/test/e2e/emoji-gate.test.ts +0 -191
  765. package/.agent/skills/gstack-make-pdf/test/e2e/format-gate.test.ts +0 -130
  766. package/.agent/skills/gstack-make-pdf/test/e2e/landscape-gate.test.ts +0 -150
  767. package/.agent/skills/gstack-make-pdf/test/e2e/toc-gate.test.ts +0 -143
  768. package/.agent/skills/gstack-make-pdf/test/fixtures/combined-gate.expected.txt +0 -20
  769. package/.agent/skills/gstack-make-pdf/test/fixtures/combined-gate.md +0 -30
  770. package/.agent/skills/gstack-make-pdf/test/fixtures/diagram-assets/huge-noise.png +0 -0
  771. package/.agent/skills/gstack-make-pdf/test/fixtures/diagram-assets/red-box.png +0 -0
  772. package/.agent/skills/gstack-make-pdf/test/fixtures/diagram-assets/wide-arch.png +0 -0
  773. package/.agent/skills/gstack-make-pdf/test/fixtures/diagram-assets/wide-screenshot.png +0 -0
  774. package/.agent/skills/gstack-make-pdf/test/fixtures/diagram-gate.md +0 -48
  775. package/.agent/skills/gstack-make-pdf/test/fixtures/emoji-gate.md +0 -12
  776. package/.agent/skills/gstack-make-pdf/test/fixtures/landscape-gate.md +0 -52
  777. package/.agent/skills/gstack-make-pdf/test/image-policy.test.ts +0 -215
  778. package/.agent/skills/gstack-make-pdf/test/pdftotext.test.ts +0 -327
  779. package/.agent/skills/gstack-make-pdf/test/render-offline-sanitize.test.ts +0 -268
  780. package/.agent/skills/gstack-make-pdf/test/render.test.ts +0 -603
  781. package/.agent/skills/gstack-make-pdf/test/setup-smoke.test.ts +0 -259
  782. package/.agent/skills/gstack-make-pdf/test/toc-anchors.test.ts +0 -95
  783. package/.agent/skills/gstack-make-pdf/test/toc-pages.test.ts +0 -148
  784. package/.agent/skills/gstack-office-hours/SKILL.md +0 -1324
  785. package/.agent/skills/gstack-office-hours/SKILL.md.tmpl +0 -372
  786. package/.agent/skills/gstack-office-hours/sections/design-and-handoff.md +0 -706
  787. package/.agent/skills/gstack-office-hours/sections/design-and-handoff.md.tmpl +0 -547
  788. package/.agent/skills/gstack-office-hours/sections/manifest.json +0 -26
  789. package/.agent/skills/gstack-office-hours/sections/phase-2a-startup-diagnostic.md +0 -163
  790. package/.agent/skills/gstack-office-hours/sections/phase-2a-startup-diagnostic.md.tmpl +0 -161
  791. package/.agent/skills/gstack-office-hours/sections/phase-2b-builder-brainstorm.md +0 -43
  792. package/.agent/skills/gstack-office-hours/sections/phase-2b-builder-brainstorm.md.tmpl +0 -41
  793. package/.agent/skills/gstack-open-gstack-browser/SKILL.md +0 -414
  794. package/.agent/skills/gstack-open-gstack-browser/SKILL.md.tmpl +0 -248
  795. package/.agent/skills/gstack-pair-agent/SKILL.md +0 -730
  796. package/.agent/skills/gstack-pair-agent/SKILL.md.tmpl +0 -366
  797. package/.agent/skills/gstack-plan-ceo-review/SKILL.md +0 -1245
  798. package/.agent/skills/gstack-plan-ceo-review/SKILL.md.tmpl +0 -596
  799. package/.agent/skills/gstack-plan-ceo-review/bin/mode-handoff-hook +0 -5
  800. package/.agent/skills/gstack-plan-ceo-review/bin/mode-handoff-hook.ts +0 -34
  801. package/.agent/skills/gstack-plan-ceo-review/sections/checklist.md +0 -37
  802. package/.agent/skills/gstack-plan-ceo-review/sections/checklist.md.tmpl +0 -35
  803. package/.agent/skills/gstack-plan-ceo-review/sections/manifest.json +0 -23
  804. package/.agent/skills/gstack-plan-ceo-review/sections/review-sections.md +0 -1207
  805. package/.agent/skills/gstack-plan-ceo-review/sections/review-sections.md.tmpl +0 -605
  806. package/.agent/skills/gstack-plan-design-review/SKILL.md +0 -1230
  807. package/.agent/skills/gstack-plan-design-review/SKILL.md.tmpl +0 -344
  808. package/.agent/skills/gstack-plan-design-review/sections/checklist.md +0 -27
  809. package/.agent/skills/gstack-plan-design-review/sections/checklist.md.tmpl +0 -25
  810. package/.agent/skills/gstack-plan-design-review/sections/manifest.json +0 -23
  811. package/.agent/skills/gstack-plan-design-review/sections/review-sections.md +0 -727
  812. package/.agent/skills/gstack-plan-design-review/sections/review-sections.md.tmpl +0 -281
  813. package/.agent/skills/gstack-plan-devex-review/SKILL.md +0 -1072
  814. package/.agent/skills/gstack-plan-devex-review/SKILL.md.tmpl +0 -459
  815. package/.agent/skills/gstack-plan-devex-review/dx-hall-of-fame.md +0 -127
  816. package/.agent/skills/gstack-plan-devex-review/sections/checklist.md +0 -33
  817. package/.agent/skills/gstack-plan-devex-review/sections/checklist.md.tmpl +0 -31
  818. package/.agent/skills/gstack-plan-devex-review/sections/manifest.json +0 -23
  819. package/.agent/skills/gstack-plan-devex-review/sections/review-sections.md +0 -1037
  820. package/.agent/skills/gstack-plan-devex-review/sections/review-sections.md.tmpl +0 -446
  821. package/.agent/skills/gstack-plan-eng-review/SKILL.md +0 -702
  822. package/.agent/skills/gstack-plan-eng-review/SKILL.md.tmpl +0 -191
  823. package/.agent/skills/gstack-plan-eng-review/sections/checklist.md +0 -34
  824. package/.agent/skills/gstack-plan-eng-review/sections/checklist.md.tmpl +0 -32
  825. package/.agent/skills/gstack-plan-eng-review/sections/manifest.json +0 -23
  826. package/.agent/skills/gstack-plan-eng-review/sections/review-sections.md +0 -1545
  827. package/.agent/skills/gstack-plan-eng-review/sections/review-sections.md.tmpl +0 -614
  828. package/.agent/skills/gstack-plan-tune/SKILL.md +0 -986
  829. package/.agent/skills/gstack-plan-tune/SKILL.md.tmpl +0 -669
  830. package/.agent/skills/gstack-qa/SKILL.md +0 -781
  831. package/.agent/skills/gstack-qa/SKILL.md.tmpl +0 -305
  832. package/.agent/skills/gstack-qa/references/issue-taxonomy.md +0 -85
  833. package/.agent/skills/gstack-qa/sections/browser-setup.md +0 -114
  834. package/.agent/skills/gstack-qa/sections/browser-setup.md.tmpl +0 -28
  835. package/.agent/skills/gstack-qa/sections/browser-verify.md +0 -19
  836. package/.agent/skills/gstack-qa/sections/browser-verify.md.tmpl +0 -17
  837. package/.agent/skills/gstack-qa/sections/exploratory.md +0 -92
  838. package/.agent/skills/gstack-qa/sections/exploratory.md.tmpl +0 -1
  839. package/.agent/skills/gstack-qa/sections/manifest.json +0 -50
  840. package/.agent/skills/gstack-qa/sections/qa-patterns.md +0 -226
  841. package/.agent/skills/gstack-qa/sections/qa-patterns.md.tmpl +0 -1
  842. package/.agent/skills/gstack-qa/sections/scope.md +0 -23
  843. package/.agent/skills/gstack-qa/sections/scope.md.tmpl +0 -1
  844. package/.agent/skills/gstack-qa/sections/system-functional.md +0 -61
  845. package/.agent/skills/gstack-qa/sections/system-functional.md.tmpl +0 -1
  846. package/.agent/skills/gstack-qa/sections/test-bootstrap.md +0 -86
  847. package/.agent/skills/gstack-qa/sections/test-bootstrap.md.tmpl +0 -74
  848. package/.agent/skills/gstack-qa/templates/functional-report-template.md +0 -55
  849. package/.agent/skills/gstack-qa/templates/qa-report-template.md +0 -124
  850. package/.agent/skills/gstack-qa-only/SKILL.md +0 -595
  851. package/.agent/skills/gstack-qa-only/SKILL.md.tmpl +0 -214
  852. package/.agent/skills/gstack-qa-only/sections/exploratory.md +0 -107
  853. package/.agent/skills/gstack-qa-only/sections/exploratory.md.tmpl +0 -1
  854. package/.agent/skills/gstack-qa-only/sections/manifest.json +0 -19
  855. package/.agent/skills/gstack-qa-only/sections/reporting.md +0 -78
  856. package/.agent/skills/gstack-qa-only/sections/reporting.md.tmpl +0 -76
  857. package/.agent/skills/gstack-retro/SKILL.md +0 -1178
  858. package/.agent/skills/gstack-retro/SKILL.md.tmpl +0 -769
  859. package/.agent/skills/gstack-retro/sections/manifest.json +0 -14
  860. package/.agent/skills/gstack-retro/sections/report-format.md +0 -127
  861. package/.agent/skills/gstack-retro/sections/report-format.md.tmpl +0 -125
  862. package/.agent/skills/gstack-review/SKILL.md +0 -1199
  863. package/.agent/skills/gstack-review/SKILL.md.tmpl +0 -482
  864. package/.agent/skills/gstack-review/TODOS-format.md +0 -61
  865. package/.agent/skills/gstack-review/checklist.md +0 -222
  866. package/.agent/skills/gstack-review/design-checklist.md +0 -193
  867. package/.agent/skills/gstack-review/gate-integrity.md +0 -171
  868. package/.agent/skills/gstack-review/greptile-triage.md +0 -261
  869. package/.agent/skills/gstack-review/sections/adversarial.md +0 -296
  870. package/.agent/skills/gstack-review/sections/adversarial.md.tmpl +0 -1
  871. package/.agent/skills/gstack-review/sections/manifest.json +0 -32
  872. package/.agent/skills/gstack-review/sections/plan-completion.md +0 -232
  873. package/.agent/skills/gstack-review/sections/plan-completion.md.tmpl +0 -3
  874. package/.agent/skills/gstack-review/sections/review-army.md +0 -263
  875. package/.agent/skills/gstack-review/sections/review-army.md.tmpl +0 -1
  876. package/.agent/skills/gstack-review/sections/shared-code-reuse.md +0 -34
  877. package/.agent/skills/gstack-review/sections/shared-code-reuse.md.tmpl +0 -1
  878. package/.agent/skills/gstack-review/specialists/api-contract.md +0 -49
  879. package/.agent/skills/gstack-review/specialists/data-migration.md +0 -48
  880. package/.agent/skills/gstack-review/specialists/maintainability.md +0 -46
  881. package/.agent/skills/gstack-review/specialists/performance.md +0 -52
  882. package/.agent/skills/gstack-review/specialists/red-team.md +0 -45
  883. package/.agent/skills/gstack-review/specialists/security.md +0 -65
  884. package/.agent/skills/gstack-review/specialists/simplification.md +0 -49
  885. package/.agent/skills/gstack-review/specialists/testing.md +0 -160
  886. package/.agent/skills/gstack-scrape/SKILL.md +0 -431
  887. package/.agent/skills/gstack-scrape/SKILL.md.tmpl +0 -187
  888. package/.agent/skills/gstack-setup-browser-cookies/SKILL.md +0 -231
  889. package/.agent/skills/gstack-setup-browser-cookies/SKILL.md.tmpl +0 -64
  890. package/.agent/skills/gstack-setup-deploy/SKILL.md +0 -605
  891. package/.agent/skills/gstack-setup-deploy/SKILL.md.tmpl +0 -250
  892. package/.agent/skills/gstack-setup-gbrain/SKILL.md +0 -1074
  893. package/.agent/skills/gstack-setup-gbrain/SKILL.md.tmpl +0 -742
  894. package/.agent/skills/gstack-setup-gbrain/memory.md +0 -426
  895. package/.agent/skills/gstack-setup-gbrain/sections/brain-init.md +0 -269
  896. package/.agent/skills/gstack-setup-gbrain/sections/brain-init.md.tmpl +0 -267
  897. package/.agent/skills/gstack-setup-gbrain/sections/claude-md-persist.md +0 -40
  898. package/.agent/skills/gstack-setup-gbrain/sections/claude-md-persist.md.tmpl +0 -38
  899. package/.agent/skills/gstack-setup-gbrain/sections/engine-remediation.md +0 -71
  900. package/.agent/skills/gstack-setup-gbrain/sections/engine-remediation.md.tmpl +0 -69
  901. package/.agent/skills/gstack-setup-gbrain/sections/manifest.json +0 -32
  902. package/.agent/skills/gstack-setup-gbrain/sections/transcript-gate.md +0 -105
  903. package/.agent/skills/gstack-setup-gbrain/sections/transcript-gate.md.tmpl +0 -103
  904. package/.agent/skills/gstack-ship/SKILL.md +0 -1220
  905. package/.agent/skills/gstack-ship/SKILL.md.tmpl +0 -694
  906. package/.agent/skills/gstack-ship/sections/adversarial.md +0 -362
  907. package/.agent/skills/gstack-ship/sections/adversarial.md.tmpl +0 -22
  908. package/.agent/skills/gstack-ship/sections/apple-release.md +0 -98
  909. package/.agent/skills/gstack-ship/sections/apple-release.md.tmpl +0 -96
  910. package/.agent/skills/gstack-ship/sections/changelog.md +0 -47
  911. package/.agent/skills/gstack-ship/sections/changelog.md.tmpl +0 -5
  912. package/.agent/skills/gstack-ship/sections/documentation.md +0 -118
  913. package/.agent/skills/gstack-ship/sections/documentation.md.tmpl +0 -116
  914. package/.agent/skills/gstack-ship/sections/greptile-early.md +0 -57
  915. package/.agent/skills/gstack-ship/sections/greptile-early.md.tmpl +0 -48
  916. package/.agent/skills/gstack-ship/sections/greptile.md +0 -95
  917. package/.agent/skills/gstack-ship/sections/greptile.md.tmpl +0 -93
  918. package/.agent/skills/gstack-ship/sections/handoff.md +0 -22
  919. package/.agent/skills/gstack-ship/sections/handoff.md.tmpl +0 -20
  920. package/.agent/skills/gstack-ship/sections/manifest.json +0 -92
  921. package/.agent/skills/gstack-ship/sections/measure.md +0 -66
  922. package/.agent/skills/gstack-ship/sections/measure.md.tmpl +0 -64
  923. package/.agent/skills/gstack-ship/sections/plan-completion.md +0 -387
  924. package/.agent/skills/gstack-ship/sections/plan-completion.md.tmpl +0 -67
  925. package/.agent/skills/gstack-ship/sections/pr-body.md +0 -258
  926. package/.agent/skills/gstack-ship/sections/pr-body.md.tmpl +0 -241
  927. package/.agent/skills/gstack-ship/sections/review-army.md +0 -728
  928. package/.agent/skills/gstack-ship/sections/review-army.md.tmpl +0 -171
  929. package/.agent/skills/gstack-ship/sections/shared-code-reuse.md +0 -34
  930. package/.agent/skills/gstack-ship/sections/shared-code-reuse.md.tmpl +0 -1
  931. package/.agent/skills/gstack-ship/sections/test-coverage.md +0 -478
  932. package/.agent/skills/gstack-ship/sections/test-coverage.md.tmpl +0 -118
  933. package/.agent/skills/gstack-ship/sections/tests.md +0 -453
  934. package/.agent/skills/gstack-ship/sections/tests.md.tmpl +0 -144
  935. package/.agent/skills/gstack-skillify/SKILL.md +0 -790
  936. package/.agent/skills/gstack-skillify/SKILL.md.tmpl +0 -437
  937. package/.agent/skills/gstack-spec/SKILL.md +0 -893
  938. package/.agent/skills/gstack-spec/SKILL.md.tmpl +0 -498
  939. package/.agent/skills/gstack-spec/sections/gate-and-file.md +0 -470
  940. package/.agent/skills/gstack-spec/sections/gate-and-file.md.tmpl +0 -319
  941. package/.agent/skills/gstack-spec/sections/manifest.json +0 -14
  942. package/.agent/skills/gstack-sync-gbrain/SKILL.md +0 -935
  943. package/.agent/skills/gstack-sync-gbrain/SKILL.md.tmpl +0 -615
  944. package/.agent/skills/gstack-test-audit/SKILL.md +0 -500
  945. package/.agent/skills/gstack-test-audit/SKILL.md.tmpl +0 -149
  946. package/.agent/skills/gstack-unfreeze/SKILL.md +0 -39
  947. package/.agent/skills/gstack-unfreeze/SKILL.md.tmpl +0 -39
  948. package/.agent/skills/gstack-upgrade/SKILL.md +0 -410
  949. package/.agent/skills/gstack-upgrade/SKILL.md.tmpl +0 -413
  950. package/.agent/skills/gstack-upgrade/migrations/v0.15.2.0.sh +0 -20
  951. package/.agent/skills/gstack-upgrade/migrations/v0.16.2.0.sh +0 -56
  952. package/.agent/skills/gstack-upgrade/migrations/v1.0.0.0.sh +0 -40
  953. package/.agent/skills/gstack-upgrade/migrations/v1.1.3.0.sh +0 -137
  954. package/.agent/skills/gstack-upgrade/migrations/v1.17.0.0.sh +0 -59
  955. package/.agent/skills/gstack-upgrade/migrations/v1.27.0.0.sh +0 -432
  956. package/.agent/skills/gstack-upgrade/migrations/v1.37.0.0.sh +0 -104
  957. package/.agent/skills/gstack-upgrade/migrations/v1.38.1.0.sh +0 -104
  958. package/.agent/skills/gstack-upgrade/migrations/v1.40.0.0.sh +0 -144
  959. package/.agent/skills/gstack-upgrade/migrations/v1.58.0.0.sh +0 -65
  960. package/.agent/skills/gstack-upgrade/migrations/v1.65.0.0.sh +0 -152
  961. package/.agent/skills/gstack-upgrade/migrations/v1.67.0.0.sh +0 -73
  962. package/.agent/skills/gstack-upgrade/migrations/v1.78.0.0.sh +0 -30
  963. package/.agent/skills/gstack-upgrade/migrations/v1.86.0.0.sh +0 -12
  964. package/.agent/skills/gstack-upgrade/migrations/v1.91.19.0.sh +0 -53
  965. package/.agent/skills/gstack-upgrade/migrations/v1.91.65.0.sh +0 -31
  966. package/.agent/skills/html-renderer/SKILL.md +0 -336
  967. package/.agent/skills/html-renderer/references/animation-patterns.md +0 -609
  968. package/.agent/skills/html-renderer/references/character-animation.md +0 -388
  969. package/.agent/skills/html-renderer/references/collage-broll.md +0 -41
  970. package/.agent/skills/html-renderer/references/design.md +0 -217
  971. package/.agent/skills/html-renderer/references/directing.md +0 -165
  972. package/.agent/skills/html-renderer/references/earshot-audio.md +0 -201
  973. package/.agent/skills/html-renderer/references/engine-api.md +0 -480
  974. package/.agent/skills/html-renderer/references/film-styles.md +0 -95
  975. package/.agent/skills/html-renderer/references/hyperframes-motion.md +0 -208
  976. package/.agent/skills/html-renderer/references/motion-craft.md +0 -92
  977. package/.agent/skills/html-renderer/references/onetake-camera.md +0 -59
  978. package/.agent/skills/html-renderer/references/procedural-sfx.md +0 -147
  979. package/.agent/skills/html-renderer/references/remotion-patterns.md +0 -159
  980. package/.agent/skills/html-renderer/references/render-contract.md +0 -66
  981. package/.agent/skills/motion-styles/LIBRARY.md +0 -896
  982. package/.agent/skills/motion-styles/README.md +0 -29
  983. package/.agent/skills/motion-styles/SKILL.md +0 -70
  984. package/.agent/skills/motion-styles/catalog.json +0 -2253
  985. package/.agent/skills/motion-styles/prompts/bio-glow.md +0 -149
  986. package/.agent/skills/motion-styles/prompts/blueprint.md +0 -145
  987. package/.agent/skills/motion-styles/prompts/breaking-desk.md +0 -147
  988. package/.agent/skills/motion-styles/prompts/callout-kit.md +0 -147
  989. package/.agent/skills/motion-styles/prompts/chalk-talk.md +0 -153
  990. package/.agent/skills/motion-styles/prompts/chat-story.md +0 -143
  991. package/.agent/skills/motion-styles/prompts/clay-diorama.md +0 -149
  992. package/.agent/skills/motion-styles/prompts/clean-tech.md +0 -147
  993. package/.agent/skills/motion-styles/prompts/comic-panels.md +0 -145
  994. package/.agent/skills/motion-styles/prompts/cosmic-scale.md +0 -147
  995. package/.agent/skills/motion-styles/prompts/creator-motion.md +0 -149
  996. package/.agent/skills/motion-styles/prompts/data-city.md +0 -149
  997. package/.agent/skills/motion-styles/prompts/data-story.md +0 -147
  998. package/.agent/skills/motion-styles/prompts/deep-layers.md +0 -147
  999. package/.agent/skills/motion-styles/prompts/doc-cinema.md +0 -145
  1000. package/.agent/skills/motion-styles/prompts/evidence-board.md +0 -145
  1001. package/.agent/skills/motion-styles/prompts/exploded-view.md +0 -149
  1002. package/.agent/skills/motion-styles/prompts/glass-icons.md +0 -147
  1003. package/.agent/skills/motion-styles/prompts/glitch-pack.md +0 -145
  1004. package/.agent/skills/motion-styles/prompts/globe-arcs.md +0 -147
  1005. package/.agent/skills/motion-styles/prompts/headline-backdrop.md +0 -145
  1006. package/.agent/skills/motion-styles/prompts/iso-cutaway.md +0 -147
  1007. package/.agent/skills/motion-styles/prompts/isotype.md +0 -145
  1008. package/.agent/skills/motion-styles/prompts/karaoke-subs.md +0 -145
  1009. package/.agent/skills/motion-styles/prompts/low-poly-atlas.md +0 -149
  1010. package/.agent/skills/motion-styles/prompts/lower-thirds.md +0 -147
  1011. package/.agent/skills/motion-styles/prompts/marker-board.md +0 -145
  1012. package/.agent/skills/motion-styles/prompts/market-tape.md +0 -145
  1013. package/.agent/skills/motion-styles/prompts/math-canvas.md +0 -145
  1014. package/.agent/skills/motion-styles/prompts/myth-or-fact.md +0 -145
  1015. package/.agent/skills/motion-styles/prompts/neon-line.md +0 -145
  1016. package/.agent/skills/motion-styles/prompts/paper-craft.md +0 -145
  1017. package/.agent/skills/motion-styles/prompts/parchment-map.md +0 -147
  1018. package/.agent/skills/motion-styles/prompts/physics-toybox.md +0 -147
  1019. package/.agent/skills/motion-styles/prompts/pixel-quest.md +0 -145
  1020. package/.agent/skills/motion-styles/prompts/podcast-clip.md +0 -147
  1021. package/.agent/skills/motion-styles/prompts/pop-info.md +0 -145
  1022. package/.agent/skills/motion-styles/prompts/product-turntable.md +0 -149
  1023. package/.agent/skills/motion-styles/prompts/punch-captions.md +0 -145
  1024. package/.agent/skills/motion-styles/prompts/quiz-countdown.md +0 -145
  1025. package/.agent/skills/motion-styles/prompts/quote-cinema.md +0 -145
  1026. package/.agent/skills/motion-styles/prompts/recipe-steps.md +0 -145
  1027. package/.agent/skills/motion-styles/prompts/rubber-hose-reel.md +0 -145
  1028. package/.agent/skills/motion-styles/prompts/shadow-puppets.md +0 -145
  1029. package/.agent/skills/motion-styles/prompts/size-lineup.md +0 -149
  1030. package/.agent/skills/motion-styles/prompts/software-walkthrough.md +0 -147
  1031. package/.agent/skills/motion-styles/prompts/stack-split.md +0 -145
  1032. package/.agent/skills/motion-styles/prompts/sticker-pop.md +0 -145
  1033. package/.agent/skills/motion-styles/prompts/storybook.md +0 -145
  1034. package/.agent/skills/motion-styles/prompts/swiss-grid.md +0 -145
  1035. package/.agent/skills/motion-styles/prompts/synth-grid.md +0 -147
  1036. package/.agent/skills/motion-styles/prompts/tactics-board.md +0 -145
  1037. package/.agent/skills/motion-styles/prompts/terminal.md +0 -145
  1038. package/.agent/skills/motion-styles/prompts/tier-list.md +0 -143
  1039. package/.agent/skills/motion-styles/prompts/timeline-rail.md +0 -145
  1040. package/.agent/skills/motion-styles/prompts/top-5-countdown.md +0 -145
  1041. package/.agent/skills/motion-styles/prompts/versus-split.md +0 -145
  1042. package/.agent/skills/motion-styles/prompts/vhs-camcorder.md +0 -145
  1043. package/.agent/skills/motion-styles/prompts/visual-novel.md +0 -145
  1044. package/.agent/skills/motion-styles/prompts/warm-canvas.md +0 -145
  1045. package/.agent/skills/motion-styles/prompts/woodcut-tale.md +0 -145
  1046. package/.agent/skills/motion-styles/prompts/zine-collage.md +0 -145
  1047. package/.agent/skills/motion-styles/sources/bio-glow.html +0 -639
  1048. package/.agent/skills/motion-styles/sources/blueprint.html +0 -617
  1049. package/.agent/skills/motion-styles/sources/breaking-desk.html +0 -585
  1050. package/.agent/skills/motion-styles/sources/callout-kit.html +0 -586
  1051. package/.agent/skills/motion-styles/sources/chalk-talk.html +0 -597
  1052. package/.agent/skills/motion-styles/sources/chat-story.html +0 -597
  1053. package/.agent/skills/motion-styles/sources/clay-diorama.html +0 -681
  1054. package/.agent/skills/motion-styles/sources/clean-tech.html +0 -554
  1055. package/.agent/skills/motion-styles/sources/comic-panels.html +0 -608
  1056. package/.agent/skills/motion-styles/sources/cosmic-scale.html +0 -628
  1057. package/.agent/skills/motion-styles/sources/creator-motion.html +0 -805
  1058. package/.agent/skills/motion-styles/sources/data-city.html +0 -613
  1059. package/.agent/skills/motion-styles/sources/data-story.html +0 -539
  1060. package/.agent/skills/motion-styles/sources/deep-layers.html +0 -624
  1061. package/.agent/skills/motion-styles/sources/doc-cinema.html +0 -590
  1062. package/.agent/skills/motion-styles/sources/evidence-board.html +0 -610
  1063. package/.agent/skills/motion-styles/sources/exploded-view.html +0 -618
  1064. package/.agent/skills/motion-styles/sources/glass-icons.html +0 -612
  1065. package/.agent/skills/motion-styles/sources/glitch-pack.html +0 -583
  1066. package/.agent/skills/motion-styles/sources/globe-arcs.html +0 -621
  1067. package/.agent/skills/motion-styles/sources/headline-backdrop.html +0 -584
  1068. package/.agent/skills/motion-styles/sources/iso-cutaway.html +0 -621
  1069. package/.agent/skills/motion-styles/sources/isotype.html +0 -588
  1070. package/.agent/skills/motion-styles/sources/karaoke-subs.html +0 -577
  1071. package/.agent/skills/motion-styles/sources/low-poly-atlas.html +0 -621
  1072. package/.agent/skills/motion-styles/sources/lower-thirds.html +0 -582
  1073. package/.agent/skills/motion-styles/sources/marker-board.html +0 -598
  1074. package/.agent/skills/motion-styles/sources/market-tape.html +0 -598
  1075. package/.agent/skills/motion-styles/sources/math-canvas.html +0 -592
  1076. package/.agent/skills/motion-styles/sources/myth-or-fact.html +0 -587
  1077. package/.agent/skills/motion-styles/sources/neon-line.html +0 -597
  1078. package/.agent/skills/motion-styles/sources/paper-craft.html +0 -612
  1079. package/.agent/skills/motion-styles/sources/parchment-map.html +0 -624
  1080. package/.agent/skills/motion-styles/sources/physics-toybox.html +0 -617
  1081. package/.agent/skills/motion-styles/sources/pixel-quest.html +0 -609
  1082. package/.agent/skills/motion-styles/sources/podcast-clip.html +0 -585
  1083. package/.agent/skills/motion-styles/sources/pop-info.html +0 -677
  1084. package/.agent/skills/motion-styles/sources/product-turntable.html +0 -611
  1085. package/.agent/skills/motion-styles/sources/punch-captions.html +0 -583
  1086. package/.agent/skills/motion-styles/sources/quiz-countdown.html +0 -593
  1087. package/.agent/skills/motion-styles/sources/quote-cinema.html +0 -581
  1088. package/.agent/skills/motion-styles/sources/recipe-steps.html +0 -599
  1089. package/.agent/skills/motion-styles/sources/rubber-hose-reel.html +0 -627
  1090. package/.agent/skills/motion-styles/sources/shadow-puppets.html +0 -609
  1091. package/.agent/skills/motion-styles/sources/size-lineup.html +0 -620
  1092. package/.agent/skills/motion-styles/sources/software-walkthrough.html +0 -651
  1093. package/.agent/skills/motion-styles/sources/stack-split.html +0 -588
  1094. package/.agent/skills/motion-styles/sources/sticker-pop.html +0 -587
  1095. package/.agent/skills/motion-styles/sources/storybook.html +0 -600
  1096. package/.agent/skills/motion-styles/sources/swiss-grid.html +0 -590
  1097. package/.agent/skills/motion-styles/sources/synth-grid.html +0 -614
  1098. package/.agent/skills/motion-styles/sources/tactics-board.html +0 -608
  1099. package/.agent/skills/motion-styles/sources/terminal.html +0 -593
  1100. package/.agent/skills/motion-styles/sources/tier-list.html +0 -600
  1101. package/.agent/skills/motion-styles/sources/timeline-rail.html +0 -598
  1102. package/.agent/skills/motion-styles/sources/top-5-countdown.html +0 -589
  1103. package/.agent/skills/motion-styles/sources/versus-split.html +0 -592
  1104. package/.agent/skills/motion-styles/sources/vhs-camcorder.html +0 -587
  1105. package/.agent/skills/motion-styles/sources/visual-novel.html +0 -623
  1106. package/.agent/skills/motion-styles/sources/warm-canvas.html +0 -742
  1107. package/.agent/skills/motion-styles/sources/woodcut-tale.html +0 -598
  1108. package/.agent/skills/motion-styles/sources/zine-collage.html +0 -594
  1109. package/.agent/skills/reverse-engineer-anything/SKILL.md +0 -356
  1110. package/.agent/skills/reverse-engineer-anything/references/android-applications.md +0 -36
  1111. package/.agent/skills/reverse-engineer-anything/references/connection-and-recovery.md +0 -127
  1112. package/.agent/skills/reverse-engineer-anything/references/evidence-workflows.md +0 -71
  1113. package/.agent/skills/reverse-engineer-anything/references/javascript-applications.md +0 -218
  1114. package/.agent/skills/reverse-engineer-anything/references/native-and-artifacts.md +0 -297
  1115. package/.agent/skills/reverse-engineer-anything/references/runtime-observation.md +0 -78
  1116. package/.agent/skills/video-pipeline/SKILL.md +0 -384
  1117. package/.agent/skills/video-pipeline/assets/project/ANIMATION_GUIDE.md +0 -258
  1118. package/.agent/skills/video-pipeline/assets/project/STORYBOARD.md +0 -77
  1119. package/.agent/skills/video-pipeline/assets/project/index.html +0 -80
  1120. package/.agent/skills/video-pipeline/assets/project/pipeline/briefings/diagram-author.md +0 -43
  1121. package/.agent/skills/video-pipeline/assets/project/pipeline/briefings/orchestrator.md +0 -75
  1122. package/.agent/skills/video-pipeline/assets/project/pipeline/briefings/scene-author.md +0 -63
  1123. package/.agent/skills/video-pipeline/assets/project/reel/engine.css +0 -140
  1124. package/.agent/skills/video-pipeline/assets/project/reel/engine.js +0 -2143
  1125. package/.agent/skills/video-pipeline/assets/project/reel/virtual-clock.js +0 -168
  1126. package/.agent/skills/video-pipeline/references/mcp-tools.md +0 -441
  1127. package/.agent/skills/video-pipeline/references/motion-craft.md +0 -91
  1128. package/.agent/skills/video-pipeline/references/providers.md +0 -174
  1129. package/.agent/skills/video-pipeline/references/render-contract.md +0 -65
  1130. package/plugins/aiinsight-shorts/styles/deep-dive/style-sheet.png +0 -0
  1131. package/plugins/aiinsight-shorts/styles/inside-out/style-sheet.png +0 -0
  1132. package/plugins/aiinsight-shorts/styles/night-file/style-sheet.png +0 -0
  1133. package/plugins/aiinsight-shorts/styles/paper-atlas/style-sheet.png +0 -0
  1134. package/plugins/aiinsight-shorts/styles/stick-story/style-sheet.png +0 -0
  1135. package/plugins/aiinsight-shorts/styles/tall-tale/style-sheet.png +0 -0
  1136. package/plugins/faceless-shorts/styles/deep-dive/style-sheet.png +0 -0
  1137. package/plugins/faceless-shorts/styles/inside-out/style-sheet.png +0 -0
  1138. package/plugins/faceless-shorts/styles/night-file/style-sheet.png +0 -0
  1139. package/plugins/faceless-shorts/styles/paper-atlas/style-sheet.png +0 -0
  1140. package/plugins/faceless-shorts/styles/stick-story/style-sheet.png +0 -0
  1141. package/plugins/faceless-shorts/styles/tall-tale/style-sheet.png +0 -0
@@ -1,1006 +0,0 @@
1
- /**
2
- * Structural tests for the sidebar's surviving UX surfaces:
3
- * - Quick-action toolbar (cleanup via PTY injection, screenshot, cookies)
4
- * - CSP fallback basic picker (content.js) + inspector allowlist
5
- * - Deterministic cleanup heuristics (write-commands.ts)
6
- * - Welcome page + sidebar auto-open + arrow hint signal chain
7
- * - Connection/auth race prevention + startup health check
8
- * - browser-manager tab tracking + no-focus-steal invariants
9
- * - Server shutdown teardown of the terminal-agent
10
- *
11
- * History: this file used to also pin the chat-queue architecture
12
- * (sidebar-agent.ts, /sidebar-command, /sidebar-chat, /sidebar-tabs,
13
- * per-tab chat context, stop button, chat polling, processAgentEvent,
14
- * pickSidebarModel). That entire path was deliberately ripped in PR #1216
15
- * (v1.14.0.0) when the interactive claude PTY (terminal-agent.ts) proved
16
- * strictly more capable — see docs/designs/SIDEBAR_MESSAGE_FLOW.md. The
17
- * stale blocks kept "passing" only because a teardown bug made `bun test`
18
- * exit 0 before reporting; once that was fixed (PR #2172) they surfaced as
19
- * failures and were removed. The rip itself is pinned as absence tests in
20
- * browse/test/sidebar-tabs.test.ts.
21
- */
22
-
23
- import { describe, test, expect } from 'bun:test';
24
- import * as fs from 'fs';
25
- import * as path from 'path';
26
- import * as os from 'os';
27
- import { stubRouteContext, callRoute, routeEntry } from './route-test-harness';
28
- import { EventEmitter } from 'node:events';
29
- import { BrowserManager } from '../src/browser-manager';
30
-
31
- const ROOT = path.resolve(__dirname, '..');
32
-
33
- describe('browser tab bar (sidepanel.html)', () => {
34
- const html = fs.readFileSync(path.join(ROOT, '..', 'extension', 'sidepanel.html'), 'utf-8');
35
-
36
- test('browser-tabs container exists', () => {
37
- expect(html).toContain('id="browser-tabs"');
38
- });
39
-
40
- test('browser-tabs hidden by default', () => {
41
- const match = html.match(/id="browser-tabs"[^>]*/);
42
- expect(match).not.toBeNull();
43
- expect(match![0]).toContain('display:none');
44
- });
45
- });
46
-
47
- // ─── Bidirectional tab sync ──────────────────────────────────────
48
-
49
- describe('sidebar→browser tab switch', () => {
50
- const bmSrc = fs.readFileSync(path.join(ROOT, 'src', 'browser-manager.ts'), 'utf-8');
51
-
52
- test('switchTab supports bringToFront option', () => {
53
- expect(bmSrc).toContain('switchTab(id: number, opts?');
54
- expect(bmSrc).toContain('bringToFront');
55
- // Default behavior still brings to front (opt-out, not opt-in)
56
- expect(bmSrc).toContain('bringToFront !== false');
57
- });
58
- });
59
-
60
- describe('browser→sidebar tab sync', () => {
61
- const bmSrc = fs.readFileSync(path.join(ROOT, 'src', 'browser-manager.ts'), 'utf-8');
62
-
63
- test('syncActiveTabByUrl method exists on BrowserManager', () => {
64
- expect(bmSrc).toContain('syncActiveTabByUrl(activeUrl: string)');
65
- });
66
-
67
- test('syncActiveTabByUrl updates activeTabId when URL matches a different tab', () => {
68
- const fn = bmSrc.slice(
69
- bmSrc.indexOf('syncActiveTabByUrl('),
70
- bmSrc.indexOf('syncActiveTabByUrl(') + 1200,
71
- );
72
- expect(fn).toContain('this.activeTabId = id');
73
- // Exact match
74
- expect(fn).toContain('pageUrl === activeUrl');
75
- // Fuzzy match (origin+pathname)
76
- expect(fn).toContain('activeOriginPath');
77
- expect(fn).toContain('fuzzyId');
78
- });
79
-
80
- test('context.on("page") tracks user-created tabs', () => {
81
- expect(bmSrc).toContain("context.on('page'");
82
- expect(bmSrc).toContain('this.pages.set(id, page)');
83
- // Should log when new tab detected
84
- expect(bmSrc).toContain('New tab detected');
85
- });
86
-
87
- test('page close handler removes tab from pages map', () => {
88
- const manager = new BrowserManager() as any;
89
- const closed = new EventEmitter();
90
- const remaining = new EventEmitter();
91
- manager.pages = new Map([[1, closed], [2, remaining]]);
92
- manager.tabSessions = new Map([[1, { page: closed }], [2, { page: remaining }]]);
93
- manager.activeTabId = 1;
94
- manager.wirePageEvents(closed);
95
-
96
- closed.emit('close');
97
-
98
- expect(manager.pages.has(1)).toBe(false);
99
- expect(manager.tabSessions.has(1)).toBe(false);
100
- expect(manager.pages.get(2)).toBe(remaining);
101
- expect(manager.tabSessions.get(2).page).toBe(remaining);
102
- expect(manager.activeTabId).toBe(2);
103
- });
104
-
105
- test('old page close during handoff preserves the replacement browser tabs', () => {
106
- const manager = new BrowserManager() as any;
107
- const closed = new EventEmitter();
108
- const remaining = new EventEmitter();
109
- const replacement = new EventEmitter();
110
- manager.pages = new Map([[1, closed], [2, remaining]]);
111
- manager.tabSessions = new Map([[1, { page: closed }], [2, { page: remaining }]]);
112
- manager.activeTabId = 1;
113
- manager.wirePageEvents(closed);
114
- manager.wirePageEvents(remaining);
115
- const previous = { pages: manager.pages, tabSessions: manager.tabSessions, activeTabId: 1 };
116
- manager.handoffPrevious = previous;
117
- manager.pages = new Map([[1, replacement]]);
118
- manager.tabSessions = new Map([[1, { page: replacement }]]);
119
-
120
- closed.emit('close');
121
-
122
- expect(previous.pages.has(1)).toBe(false);
123
- expect(previous.tabSessions.has(1)).toBe(false);
124
- expect(previous.pages.get(2)).toBe(remaining);
125
- expect(previous.activeTabId).toBe(2);
126
- expect(manager.pages.get(1)).toBe(replacement);
127
- expect(manager.tabSessions.get(1).page).toBe(replacement);
128
- expect(manager.activeTabId).toBe(1);
129
-
130
- manager.handoffPrevious = null;
131
- remaining.emit('close');
132
-
133
- expect(previous.pages.size).toBe(0);
134
- expect(previous.tabSessions.size).toBe(0);
135
- expect(manager.pages.get(1)).toBe(replacement);
136
- expect(manager.tabSessions.get(1).page).toBe(replacement);
137
- expect(manager.activeTabId).toBe(1);
138
- });
139
-
140
- test('syncActiveTabByUrl skips when only 1 tab (no ambiguity)', () => {
141
- const fn = bmSrc.slice(
142
- bmSrc.indexOf('syncActiveTabByUrl('),
143
- bmSrc.indexOf('syncActiveTabByUrl(') + 600,
144
- );
145
- expect(fn).toContain('this.pages.size <= 1');
146
- });
147
-
148
- // NOTE: the /sidebar-tabs + /sidebar-command server consumers of
149
- // syncActiveTabByUrl and the sidepanel chat-tab handlers were removed
150
- // with the chat-queue rip (PR #1216). The BrowserManager primitives above
151
- // survive (tab tracking feeds active-tab.json for the PTY claude).
152
-
153
- test('background.js listens for chrome.tabs.onActivated', () => {
154
- const bgSrc = fs.readFileSync(path.join(ROOT, '..', 'extension', 'background.js'), 'utf-8');
155
- expect(bgSrc).toContain('chrome.tabs.onActivated.addListener');
156
- expect(bgSrc).toContain('browserTabActivated');
157
- });
158
- });
159
-
160
- describe('browser tab bar (sidepanel.css)', () => {
161
- const css = fs.readFileSync(path.join(ROOT, '..', 'extension', 'sidepanel.css'), 'utf-8');
162
-
163
- test('browser-tabs styles exist', () => {
164
- expect(css).toContain('.browser-tabs');
165
- expect(css).toContain('.browser-tab');
166
- expect(css).toContain('.browser-tab.active');
167
- });
168
-
169
- test('tab bar is horizontally scrollable', () => {
170
- const barStyle = css.slice(
171
- css.indexOf('.browser-tabs {'),
172
- css.indexOf('}', css.indexOf('.browser-tabs {')) + 1,
173
- );
174
- expect(barStyle).toContain('overflow-x: auto');
175
- });
176
-
177
- test('active tab is visually distinct', () => {
178
- const activeStyle = css.slice(
179
- css.indexOf('.browser-tab.active {'),
180
- css.indexOf('}', css.indexOf('.browser-tab.active {')) + 1,
181
- );
182
- expect(activeStyle).toContain('--bg-surface');
183
- expect(activeStyle).toContain('--text-body');
184
- });
185
- });
186
-
187
- // ─── Inspector message allowlist fix ────────────────────────────
188
-
189
- describe('inspector message allowlist fix', () => {
190
- const bgSrc = fs.readFileSync(path.join(ROOT, '..', 'extension', 'background.js'), 'utf-8');
191
-
192
- test('ALLOWED_TYPES includes inspector message types', () => {
193
- const allowListSection = bgSrc.slice(
194
- bgSrc.indexOf('const ALLOWED_TYPES'),
195
- bgSrc.indexOf(']);', bgSrc.indexOf('const ALLOWED_TYPES')) + 3,
196
- );
197
- expect(allowListSection).toContain('startInspector');
198
- expect(allowListSection).toContain('stopInspector');
199
- expect(allowListSection).toContain('elementPicked');
200
- expect(allowListSection).toContain('pickerCancelled');
201
- expect(allowListSection).toContain('applyStyle');
202
- expect(allowListSection).toContain('inspectResult');
203
- });
204
- });
205
-
206
- // ─── CSP fallback basic picker ──────────────────────────────────
207
-
208
- describe('CSP fallback basic picker', () => {
209
- const contentSrc = fs.readFileSync(path.join(ROOT, '..', 'extension', 'content.js'), 'utf-8');
210
- const bgSrc = fs.readFileSync(path.join(ROOT, '..', 'extension', 'background.js'), 'utf-8');
211
-
212
- test('content.js contains startBasicPicker message handler', () => {
213
- expect(contentSrc).toContain("msg.type === 'startBasicPicker'");
214
- expect(contentSrc).toContain('startBasicPicker()');
215
- });
216
-
217
- test('content.js contains captureBasicData function with getComputedStyle', () => {
218
- expect(contentSrc).toContain('function captureBasicData(');
219
- expect(contentSrc).toContain('getComputedStyle(');
220
- expect(contentSrc).toContain('getBoundingClientRect()');
221
- });
222
-
223
- test('content.js contains CSSOM iteration guarded against cross-origin sheets', () => {
224
- expect(contentSrc).toContain('document.styleSheets');
225
- expect(contentSrc).toContain('cssRules');
226
- // Cross-origin stylesheets throw DOMException on cssRules access. The
227
- // iteration must swallow exactly that (typed catch, not a bare catch {}
228
- // — see the slop-scan philosophy in CLAUDE.md).
229
- expect(contentSrc).toContain('(same-origin only)');
230
- expect(contentSrc).toMatch(/catch \(e\) \{ if \(!\(e instanceof DOMException\)\) throw e; \}/);
231
- });
232
-
233
- test('content.js saves and restores outline on elements', () => {
234
- expect(contentSrc).toContain('basicPickerSavedOutline');
235
- // Outline is restored in cleanup and highlight functions
236
- expect(contentSrc).toContain('.style.outline = basicPickerSavedOutline');
237
- });
238
-
239
- test('content.js basic picker sends inspectResult with mode basic', () => {
240
- expect(contentSrc).toContain("mode: 'basic'");
241
- expect(contentSrc).toContain("type: 'inspectResult'");
242
- });
243
-
244
- test('content.js basic picker cleans up on Escape', () => {
245
- expect(contentSrc).toContain('onBasicKeydown');
246
- expect(contentSrc).toContain("e.key === 'Escape'");
247
- expect(contentSrc).toContain('basicPickerCleanup');
248
- });
249
-
250
- test('background.js injectInspector has separate try blocks for executeScript and insertCSS', () => {
251
- const injectFn = bgSrc.slice(
252
- bgSrc.indexOf('async function injectInspector('),
253
- bgSrc.indexOf('\n}', bgSrc.indexOf('async function injectInspector(') + 1) + 2,
254
- );
255
- // executeScript and insertCSS should be in separate try blocks
256
- expect(injectFn).toContain('executeScript');
257
- expect(injectFn).toContain('insertCSS');
258
- // Fallback sends startBasicPicker
259
- expect(injectFn).toContain("type: 'startBasicPicker'");
260
- expect(injectFn).toContain("mode: 'basic'");
261
- });
262
-
263
- test('background.js stores inspectorMode for routing', () => {
264
- expect(bgSrc).toContain('inspectorMode');
265
- });
266
- });
267
-
268
- // ─── Cleanup and screenshot buttons ─────────────────────────────
269
-
270
- describe('cleanup and screenshot buttons', () => {
271
- const html = fs.readFileSync(path.join(ROOT, '..', 'extension', 'sidepanel.html'), 'utf-8');
272
- const js = fs.readFileSync(path.join(ROOT, '..', 'extension', 'sidepanel.js'), 'utf-8');
273
- const css = fs.readFileSync(path.join(ROOT, '..', 'extension', 'sidepanel.css'), 'utf-8');
274
-
275
- test('sidepanel.html contains cleanup and screenshot buttons in inspector', () => {
276
- expect(html).toContain('inspector-cleanup-btn');
277
- expect(html).toContain('inspector-screenshot-btn');
278
- expect(html).toContain('inspector-action-btn');
279
- });
280
-
281
- test('sidepanel.html contains cleanup and screenshot buttons in chat toolbar', () => {
282
- expect(html).toContain('chat-cleanup-btn');
283
- expect(html).toContain('chat-screenshot-btn');
284
- expect(html).toContain('quick-actions');
285
- });
286
-
287
- test('cleanup button injects smart prompt into the live PTY (not just deterministic selectors)', () => {
288
- // Cleanup pipes a prompt into the running claude PTY via
289
- // gstackInjectToTerminal (the chat-queue POST to /sidebar-command was
290
- // ripped in PR #1216 — the live REPL is the only execution surface).
291
- const cleanupFn = js.slice(
292
- js.indexOf('async function runCleanup('),
293
- js.indexOf('async function runScreenshot('),
294
- );
295
- expect(cleanupFn).toContain('gstackInjectToTerminal');
296
- expect(cleanupFn).toContain('cleanupPrompt');
297
- // Should include both deterministic first pass AND agent snapshot analysis
298
- expect(cleanupFn).toContain('cleanup --all');
299
- expect(cleanupFn).toContain('snapshot -i');
300
- // Should instruct claude to keep site branding
301
- expect(cleanupFn).toContain('Keep the site');
302
- expect(cleanupFn).toContain('header/masthead');
303
- });
304
-
305
- test('sidepanel.js screenshot handler POSTs to /command with screenshot', () => {
306
- expect(js).toContain("command: 'screenshot'");
307
- });
308
-
309
- test('sidepanel.css contains inspector-action-btn styles', () => {
310
- expect(css).toContain('.inspector-action-btn');
311
- expect(css).toContain('.inspector-action-btn.loading');
312
- });
313
-
314
- test('sidepanel.css contains quick-action-btn styles for chat toolbar', () => {
315
- expect(css).toContain('.quick-action-btn');
316
- expect(css).toContain('.quick-action-btn.loading');
317
- expect(css).toContain('.quick-actions');
318
- });
319
-
320
- test('cleanup and screenshot use shared helper functions', () => {
321
- expect(js).toContain('async function runCleanup(');
322
- expect(js).toContain('async function runScreenshot(');
323
- // Both inspector and chat buttons are wired
324
- expect(js).toContain('chatCleanupBtn');
325
- expect(js).toContain('chatScreenshotBtn');
326
- });
327
-
328
- test('sidepanel.css contains chat-notification styles', () => {
329
- expect(css).toContain('.chat-notification');
330
- });
331
- });
332
-
333
- describe('cleanup heuristics (write-commands.ts)', () => {
334
- const wcSrc = fs.readFileSync(path.join(ROOT, 'src', 'write-commands.ts'), 'utf-8');
335
-
336
- test('cleanup defaults to --all when no args provided', () => {
337
- // Should not throw on empty args, should default to doAll
338
- expect(wcSrc).toContain('if (args.length === 0)');
339
- expect(wcSrc).toContain('doAll = true');
340
- });
341
-
342
- test('CLEANUP_SELECTORS has overlays category', () => {
343
- expect(wcSrc).toContain('overlays: [');
344
- expect(wcSrc).toContain('paywall');
345
- expect(wcSrc).toContain('newsletter');
346
- expect(wcSrc).toContain('interstitial');
347
- expect(wcSrc).toContain('push-notification');
348
- expect(wcSrc).toContain('app-banner');
349
- });
350
-
351
- test('CLEANUP_SELECTORS ads has major ad networks', () => {
352
- expect(wcSrc).toContain('doubleclick');
353
- expect(wcSrc).toContain('googlesyndication');
354
- expect(wcSrc).toContain('amazon-adsystem');
355
- expect(wcSrc).toContain('outbrain');
356
- expect(wcSrc).toContain('taboola');
357
- expect(wcSrc).toContain('criteo');
358
- });
359
-
360
- test('CLEANUP_SELECTORS cookies has major consent frameworks', () => {
361
- expect(wcSrc).toContain('onetrust');
362
- expect(wcSrc).toContain('CybotCookiebot');
363
- expect(wcSrc).toContain('truste');
364
- expect(wcSrc).toContain('qc-cmp2');
365
- expect(wcSrc).toContain('Quantcast');
366
- });
367
-
368
- test('cleanup uses !important to override inline styles', () => {
369
- // Elements with inline style="display:block" need !important to hide
370
- expect(wcSrc).toContain("setProperty('display', 'none', 'important')");
371
- });
372
-
373
- test('cleanup unlocks scroll (body overflow:hidden)', () => {
374
- expect(wcSrc).toContain("overflow === 'hidden'");
375
- expect(wcSrc).toContain("setProperty('overflow', 'auto', 'important')");
376
- });
377
-
378
- test('cleanup removes blur effects (paywall blur)', () => {
379
- expect(wcSrc).toContain("filter?.includes('blur')");
380
- expect(wcSrc).toContain("setProperty('filter', 'none', 'important')");
381
- });
382
-
383
- test('cleanup removes article truncation (max-height)', () => {
384
- expect(wcSrc).toContain('truncat');
385
- expect(wcSrc).toContain("setProperty('max-height', 'none', 'important')");
386
- });
387
-
388
- test('cleanup collapses empty ad placeholder whitespace', () => {
389
- expect(wcSrc).toContain('empty placeholders');
390
- // Should check text content length before collapsing
391
- expect(wcSrc).toContain('text.length < 20');
392
- });
393
-
394
- test('sticky cleanup skips gstack control indicator', () => {
395
- expect(wcSrc).toContain("gstack-ctrl");
396
- });
397
-
398
- test('CLEANUP_SELECTORS has clutter category', () => {
399
- expect(wcSrc).toContain('clutter: [');
400
- expect(wcSrc).toContain('audio-player');
401
- expect(wcSrc).toContain('podcast-player');
402
- expect(wcSrc).toContain('puzzle');
403
- expect(wcSrc).toContain('recirculation');
404
- expect(wcSrc).toContain('everlit');
405
- });
406
-
407
- test('cleanup removes "ADVERTISEMENT" text labels', () => {
408
- expect(wcSrc).toContain('adTextPatterns');
409
- expect(wcSrc).toContain('/^advertisement$/i');
410
- expect(wcSrc).toContain('/article continues/i');
411
- expect(wcSrc).toContain('ad labels');
412
- });
413
-
414
- test('sticky cleanup preserves topmost full-width nav bar', () => {
415
- // Should preserve the first full-width element near the top
416
- expect(wcSrc).toContain('preservedTopNav');
417
- expect(wcSrc).toContain('viewportWidth * 0.8');
418
- // Should sort sticky elements by vertical position
419
- expect(wcSrc).toContain('sort((a, b) => a.top - b.top)');
420
- });
421
- });
422
-
423
- describe('chat toolbar buttons disabled state', () => {
424
- const js = fs.readFileSync(path.join(ROOT, '..', 'extension', 'sidepanel.js'), 'utf-8');
425
- const css = fs.readFileSync(path.join(ROOT, '..', 'extension', 'sidepanel.css'), 'utf-8');
426
-
427
- test('setActionButtonsEnabled function exists', () => {
428
- expect(js).toContain('function setActionButtonsEnabled(enabled)');
429
- });
430
-
431
- test('buttons are disabled when disconnected', () => {
432
- // updateConnection should call setActionButtonsEnabled(false) when no URL
433
- expect(js).toContain('setActionButtonsEnabled(false)');
434
- expect(js).toContain('setActionButtonsEnabled(true)');
435
- });
436
-
437
- test('runCleanup silently returns when disconnected (no error spam)', () => {
438
- // Should NOT show "Not connected" notification, just return silently
439
- const cleanupFn = js.slice(
440
- js.indexOf('async function runCleanup('),
441
- js.indexOf('\n}', js.indexOf('async function runCleanup(') + 1) + 2,
442
- );
443
- expect(cleanupFn).not.toContain('Not connected to browse server');
444
- });
445
-
446
- test('CSS has disabled style for action buttons', () => {
447
- expect(css).toContain('.quick-action-btn.disabled');
448
- expect(css).toContain('.inspector-action-btn.disabled');
449
- expect(css).toContain('pointer-events: none');
450
- });
451
- });
452
-
453
- // ─── Focus stealing prevention ──────────────────────────────────
454
-
455
- describe('tab switching does not steal focus', () => {
456
- const serverSrc = fs.readFileSync(path.join(ROOT, 'src', 'server.ts'), 'utf-8');
457
- const bmSrc = fs.readFileSync(path.join(ROOT, 'src', 'browser-manager.ts'), 'utf-8');
458
-
459
- test('handleCommand tab pinning does NOT steal focus', () => {
460
- // All switchTab calls in handleCommand should use bringToFront: false
461
- const handleFn = serverSrc.slice(
462
- serverSrc.indexOf('async function handleCommand('),
463
- serverSrc.indexOf('\n// ', serverSrc.indexOf('async function handleCommand(') + 200),
464
- );
465
- const switchCalls = handleFn.match(/switchTab\([^)]+\)/g) || [];
466
- for (const call of switchCalls) {
467
- expect(call).toContain('bringToFront: false');
468
- }
469
- });
470
- });
471
-
472
- // ─── LLM-based cleanup architecture ─────────────────────────────
473
-
474
- describe('LLM-based cleanup (smart agent cleanup)', () => {
475
- const js = fs.readFileSync(path.join(ROOT, '..', 'extension', 'sidepanel.js'), 'utf-8');
476
- const wcSrc = fs.readFileSync(path.join(ROOT, 'src', 'write-commands.ts'), 'utf-8');
477
-
478
- test('cleanup button does not bypass the agent with a direct /command POST', () => {
479
- const cleanupFn = js.slice(
480
- js.indexOf('async function runCleanup('),
481
- js.indexOf('async function runScreenshot('),
482
- );
483
- // The smart cleanup goes through the claude PTY, never a raw
484
- // deterministic /command fetch. (The PTY-injection wiring itself is
485
- // pinned in sidebar-tabs.test.ts.)
486
- expect(cleanupFn).not.toMatch(/fetch.*\/command['"]/);
487
- });
488
-
489
- test('cleanup prompt includes deterministic first pass', () => {
490
- const cleanupFn = js.slice(
491
- js.indexOf('async function runCleanup('),
492
- js.indexOf('async function runScreenshot('),
493
- );
494
- // First run the deterministic sweep
495
- expect(cleanupFn).toContain('cleanup --all');
496
- });
497
-
498
- test('cleanup prompt instructs agent to snapshot and analyze', () => {
499
- const cleanupFn = js.slice(
500
- js.indexOf('async function runCleanup('),
501
- js.indexOf('async function runScreenshot('),
502
- );
503
- // Agent should take a snapshot to see what deterministic pass missed
504
- expect(cleanupFn).toContain('snapshot -i');
505
- // Agent should analyze what remains
506
- expect(cleanupFn).toContain('identify any remaining');
507
- });
508
-
509
- test('cleanup prompt lists specific clutter categories for agent', () => {
510
- const cleanupFn = js.slice(
511
- js.indexOf('async function runCleanup('),
512
- js.indexOf('async function runScreenshot('),
513
- );
514
- // Should guide the agent on what to look for
515
- expect(cleanupFn).toContain('cookie/consent banners');
516
- expect(cleanupFn).toContain('newsletter popups');
517
- expect(cleanupFn).toContain('login walls');
518
- expect(cleanupFn).toContain('video autoplay');
519
- expect(cleanupFn).toContain('sidebar');
520
- expect(cleanupFn).toContain('share');
521
- expect(cleanupFn).toContain('floating chat');
522
- });
523
-
524
- test('cleanup prompt instructs agent to preserve site identity', () => {
525
- const cleanupFn = js.slice(
526
- js.indexOf('async function runCleanup('),
527
- js.indexOf('async function runScreenshot('),
528
- );
529
- // Must keep the site looking like itself
530
- expect(cleanupFn).toContain('Keep the site');
531
- expect(cleanupFn).toContain('header/masthead');
532
- expect(cleanupFn).toContain('headline');
533
- expect(cleanupFn).toContain('article body');
534
- expect(cleanupFn).toContain('byline');
535
- });
536
-
537
- test('cleanup prompt instructs agent to unlock scrolling', () => {
538
- const cleanupFn = js.slice(
539
- js.indexOf('async function runCleanup('),
540
- js.indexOf('async function runScreenshot('),
541
- );
542
- expect(cleanupFn).toContain('unlock scrolling');
543
- expect(cleanupFn).toContain('scroll-locked');
544
- });
545
-
546
- test('cleanup prompt instructs agent to use $B eval for removal', () => {
547
- const cleanupFn = js.slice(
548
- js.indexOf('async function runCleanup('),
549
- js.indexOf('async function runScreenshot('),
550
- );
551
- // Agent should use $B eval to hide elements via JavaScript
552
- expect(cleanupFn).toContain('$B eval');
553
- expect(cleanupFn).toContain('hide each');
554
- });
555
-
556
- test('cleanup removes loading state after short delay (agent is async)', () => {
557
- const cleanupFn = js.slice(
558
- js.indexOf('async function runCleanup('),
559
- js.indexOf('async function runScreenshot('),
560
- );
561
- // Should use setTimeout since agent runs asynchronously
562
- expect(cleanupFn).toContain('setTimeout');
563
- expect(cleanupFn).toContain("classList.remove('loading')");
564
- });
565
-
566
- test('deterministic cleanup still has comprehensive selectors as first pass', () => {
567
- // The deterministic $B cleanup --all still needs good selectors for the quick pass
568
- expect(wcSrc).toContain('ads: [');
569
- expect(wcSrc).toContain('cookies: [');
570
- expect(wcSrc).toContain('social: [');
571
- expect(wcSrc).toContain('overlays: [');
572
- expect(wcSrc).toContain('clutter: [');
573
- });
574
-
575
- test('deterministic cleanup clutter covers audio/podcast widgets', () => {
576
- expect(wcSrc).toContain('audio-player');
577
- expect(wcSrc).toContain('podcast-player');
578
- expect(wcSrc).toContain('listen-widget');
579
- expect(wcSrc).toContain('everlit');
580
- expect(wcSrc).toContain("'audio'"); // bare audio elements
581
- });
582
-
583
- test('deterministic cleanup clutter covers sidebar recirculation', () => {
584
- expect(wcSrc).toContain('most-popular');
585
- expect(wcSrc).toContain('most-read');
586
- expect(wcSrc).toContain('recommended');
587
- expect(wcSrc).toContain('taboola');
588
- expect(wcSrc).toContain('outbrain');
589
- expect(wcSrc).toContain('nativo');
590
- });
591
-
592
- test('deterministic cleanup clutter covers games/puzzles', () => {
593
- expect(wcSrc).toContain('puzzle');
594
- expect(wcSrc).toContain('daily-game');
595
- expect(wcSrc).toContain('crossword-promo');
596
- });
597
-
598
- test('ad label text detection catches common patterns', () => {
599
- expect(wcSrc).toContain('/^advertisement$/i');
600
- expect(wcSrc).toContain('/^sponsored$/i');
601
- expect(wcSrc).toContain('/^promoted$/i');
602
- expect(wcSrc).toContain('/article continues/i');
603
- expect(wcSrc).toContain('/continues below/i');
604
- expect(wcSrc).toContain('/^paid content$/i');
605
- expect(wcSrc).toContain('/^partner content$/i');
606
- });
607
-
608
- test('ad label detection skips elements with too much text (not a label)', () => {
609
- // Should skip elements with >50 chars (probably real content)
610
- expect(wcSrc).toContain('text.length > 50');
611
- });
612
-
613
- test('ad label detection hides parent wrapper when small enough', () => {
614
- // If parent has little content, hide the whole wrapper
615
- expect(wcSrc).toContain('parent.textContent');
616
- expect(wcSrc).toContain('trim().length < 80');
617
- });
618
-
619
- test('sticky removal sorts by vertical position (topmost first)', () => {
620
- expect(wcSrc).toContain('sort((a, b) => a.top - b.top)');
621
- });
622
-
623
- test('sticky removal preserves first full-width element near top', () => {
624
- expect(wcSrc).toContain('preservedTopNav');
625
- // Should check element spans most of viewport
626
- expect(wcSrc).toContain('viewportWidth * 0.8');
627
- // Should only preserve the first one
628
- expect(wcSrc).toContain('!preservedTopNav');
629
- // Should check it's near the top
630
- expect(wcSrc).toContain('top <= 50');
631
- // Should check it's not too tall (it's a nav, not a hero)
632
- expect(wcSrc).toContain('height < 120');
633
- });
634
-
635
- test('sticky removal still skips semantic nav/header elements', () => {
636
- expect(wcSrc).toContain("tag === 'nav'");
637
- expect(wcSrc).toContain("tag === 'header'");
638
- expect(wcSrc).toContain("role') === 'navigation'");
639
- });
640
- });
641
-
642
- // ─── Welcome page + sidebar auto-open ────────────────────────────
643
-
644
- describe('welcome page', () => {
645
- const welcomePath = path.join(ROOT, 'src', 'welcome.html');
646
- const welcomeExists = fs.existsSync(welcomePath);
647
- const welcomeSrc = welcomeExists ? fs.readFileSync(welcomePath, 'utf-8') : '';
648
-
649
- test('welcome.html exists in browse/src/', () => {
650
- expect(welcomeExists).toBe(true);
651
- });
652
-
653
- test('welcome page has GStack Browser branding', () => {
654
- expect(welcomeSrc).toContain('GStack Browser');
655
- });
656
-
657
- test('welcome page has extension-ready listener to hide prompt', () => {
658
- expect(welcomeSrc).toContain('gstack-extension-ready');
659
- expect(welcomeSrc).toContain('sidebar-prompt');
660
- });
661
-
662
- test('welcome page points RIGHT toward sidebar (not UP at toolbar)', () => {
663
- // Up arrow can never align with browser chrome. Right arrow always
664
- // points toward the sidebar area regardless of window size.
665
- expect(welcomeSrc).not.toContain('arrow-up');
666
- expect(welcomeSrc).toContain('arrow-right');
667
- });
668
-
669
- test('welcome page has left-aligned text (no center-align on headings)', () => {
670
- // User preference: always left-align, never center
671
- expect(welcomeSrc).not.toMatch(/text-align:\s*center/);
672
- });
673
-
674
- test('welcome page uses dark theme', () => {
675
- expect(welcomeSrc).toContain('#0C0C0C'); // --base (near-black)
676
- expect(welcomeSrc).toContain('#141414'); // --surface (card bg)
677
- });
678
- });
679
-
680
- describe('server /welcome endpoint', () => {
681
- // Resolve against empty HOME / skill-root dirs so neither the project
682
- // welcome page nor the installed one exists.
683
- async function welcomeWithoutPages(): Promise<Response> {
684
- const empty = fs.mkdtempSync(path.join(os.tmpdir(), 'gstack-welcome-empty-'));
685
- const saved = { HOME: process.env.HOME, GSTACK_SKILL_ROOT: process.env.GSTACK_SKILL_ROOT };
686
- try {
687
- process.env.HOME = empty;
688
- process.env.GSTACK_SKILL_ROOT = empty;
689
- return await callRoute('GET', '/welcome', stubRouteContext());
690
- } finally {
691
- for (const [k, v] of Object.entries(saved)) {
692
- if (v === undefined) delete process.env[k]; else process.env[k] = v;
693
- }
694
- fs.rmSync(empty, { recursive: true, force: true });
695
- }
696
- }
697
-
698
- test('/welcome endpoint exists in the route table', () => {
699
- expect(routeEntry('GET', '/welcome')).toMatchObject({ path: '/welcome', auth: 'none', surfaces: ['local'] });
700
- });
701
-
702
- test('/welcome serves HTML content type', async () => {
703
- expect((await welcomeWithoutPages()).headers.get('content-type')).toBe('text/html; charset=utf-8');
704
- });
705
-
706
- test('/welcome serves fallback HTML if no welcome file found', async () => {
707
- // Changed from 302 redirect to about:blank (ERR_UNSAFE_REDIRECT on Windows)
708
- // to inline HTML fallback page (PR #822)
709
- const resp = await welcomeWithoutPages();
710
- expect(resp.status).toBe(200);
711
- expect(await resp.text()).toContain('GStack Browser ready');
712
- });
713
- });
714
-
715
- describe('headed launch navigates to welcome page', () => {
716
- const serverSrc = fs.readFileSync(path.join(ROOT, 'src', 'server.ts'), 'utf-8');
717
-
718
- test('server navigates to /welcome after startup in headed mode', () => {
719
- // Navigation must happen AFTER Bun.serve() starts (not during launchHeaded)
720
- // because the HTTP server needs to be listening before the browser requests /welcome
721
- const afterServe = serverSrc.slice(serverSrc.indexOf('Bun.serve('));
722
- expect(afterServe).toContain('/welcome');
723
- expect(afterServe).toContain("getConnectionMode() === 'headed'");
724
- });
725
-
726
- test('welcome navigation does NOT happen in browser-manager (too early)', () => {
727
- const bmSrc = fs.readFileSync(path.join(ROOT, 'src', 'browser-manager.ts'), 'utf-8');
728
- // browser-manager.ts should NOT navigate to /welcome because the server
729
- // isn't listening yet when launchHeaded() runs
730
- const launchHeadedSection = bmSrc.slice(
731
- bmSrc.indexOf('async launchHeaded('),
732
- bmSrc.indexOf('// Browser disconnect handler'),
733
- );
734
- expect(launchHeadedSection).not.toContain('/welcome');
735
- });
736
- });
737
-
738
- describe('sidebar auto-open (background.js)', () => {
739
- const bgSrc = fs.readFileSync(path.join(ROOT, '..', 'extension', 'background.js'), 'utf-8');
740
-
741
- test('autoOpenSidePanel function exists with retry logic', () => {
742
- expect(bgSrc).toContain('async function autoOpenSidePanel');
743
- expect(bgSrc).toContain('attempt < 5');
744
- });
745
-
746
- test('auto-open fires on install AND on every service worker startup', () => {
747
- // onInstalled fires on first install / extension update
748
- expect(bgSrc).toContain('chrome.runtime.onInstalled.addListener');
749
- expect(bgSrc).toContain('autoOpenSidePanel()');
750
- // Top-level call fires on every service worker startup
751
- const topLevelCalls = bgSrc.match(/^autoOpenSidePanel\(\)/gm);
752
- expect(topLevelCalls).not.toBeNull();
753
- expect(topLevelCalls!.length).toBeGreaterThanOrEqual(1);
754
- });
755
-
756
- test('retry uses backoff delays (not fixed interval)', () => {
757
- expect(bgSrc).toContain('500');
758
- expect(bgSrc).toContain('1000');
759
- expect(bgSrc).toContain('2000');
760
- expect(bgSrc).toContain('3000');
761
- expect(bgSrc).toContain('5000');
762
- });
763
-
764
- test('auto-open uses chrome.sidePanel.open with windowId', () => {
765
- expect(bgSrc).toContain('chrome.sidePanel.open');
766
- expect(bgSrc).toContain('windowId');
767
- });
768
-
769
- test('auto-open logs success and failure for debugging', () => {
770
- expect(bgSrc).toContain('Side panel opened on attempt');
771
- expect(bgSrc).toContain('Side panel auto-open failed');
772
- });
773
- });
774
-
775
- describe('sidebar arrow hint hide flow (4-step signal chain)', () => {
776
- // The arrow hint on the welcome page should ONLY hide when the sidebar
777
- // is actually opened, not when the extension content script loads.
778
- //
779
- // Signal flow:
780
- // 1. sidepanel.js connects → sends { type: 'sidebarOpened' } to background
781
- // 2. background.js receives → relays to active tab's content script
782
- // 3. content.js receives 'sidebarOpened' → dispatches 'gstack-extension-ready'
783
- // 4. welcome.html listens for 'gstack-extension-ready' → hides arrow
784
- //
785
- const contentSrc = fs.readFileSync(path.join(ROOT, '..', 'extension', 'content.js'), 'utf-8');
786
- const bgSrc = fs.readFileSync(path.join(ROOT, '..', 'extension', 'background.js'), 'utf-8');
787
- const spSrc = fs.readFileSync(path.join(ROOT, '..', 'extension', 'sidepanel.js'), 'utf-8');
788
- const welcomeSrc = fs.readFileSync(path.join(ROOT, 'src', 'welcome.html'), 'utf-8');
789
-
790
- // Step 1: sidepanel sends sidebarOpened when connected
791
- test('step 1: sidepanel sends sidebarOpened message on connect', () => {
792
- expect(spSrc).toContain("{ type: 'sidebarOpened' }");
793
- // Should be in updateConnection, after setConnState('connected').
794
- // Window is generous: updateConnection also exposes the PTY bootstrap
795
- // globals (gstackServerPort/gstackAuthToken) before the connected branch.
796
- const connectFn = spSrc.slice(
797
- spSrc.indexOf('function updateConnection('),
798
- spSrc.indexOf('function updateConnection(') + 2500,
799
- );
800
- const connectedIdx = connectFn.indexOf("setConnState('connected')");
801
- const openedIdx = connectFn.indexOf('sidebarOpened');
802
- expect(connectedIdx).toBeGreaterThan(0);
803
- expect(openedIdx).toBeGreaterThan(connectedIdx);
804
- });
805
-
806
- // Step 2: background.js accepts and relays sidebarOpened
807
- test('step 2: background.js allows sidebarOpened message type', () => {
808
- expect(bgSrc).toContain("'sidebarOpened'");
809
- // Must be in ALLOWED_TYPES
810
- const allowedBlock = bgSrc.slice(
811
- bgSrc.indexOf('ALLOWED_TYPES'),
812
- bgSrc.indexOf('ALLOWED_TYPES') + 300,
813
- );
814
- expect(allowedBlock).toContain('sidebarOpened');
815
- });
816
-
817
- test('step 2: background.js relays sidebarOpened to active tab content script', () => {
818
- expect(bgSrc).toContain("msg.type === 'sidebarOpened'");
819
- // Should send to active tab via chrome.tabs.sendMessage
820
- const handler = bgSrc.slice(
821
- bgSrc.indexOf("msg.type === 'sidebarOpened'"),
822
- bgSrc.indexOf("msg.type === 'sidebarOpened'") + 400,
823
- );
824
- expect(handler).toContain('chrome.tabs.sendMessage');
825
- expect(handler).toContain("{ type: 'sidebarOpened' }");
826
- });
827
-
828
- // Step 3: content.js fires gstack-extension-ready ONLY on sidebarOpened
829
- test('step 3: content.js dispatches extension-ready on sidebarOpened message', () => {
830
- expect(contentSrc).toContain("msg.type === 'sidebarOpened'");
831
- expect(contentSrc).toContain("new CustomEvent('gstack-extension-ready')");
832
- });
833
-
834
- test('step 3: content.js does NOT auto-fire extension-ready on load', () => {
835
- // The old pattern was: fire immediately when content script loads.
836
- // Now it should only fire when sidebarOpened message arrives.
837
- // Check there's no top-level dispatchEvent outside the message handler.
838
- const beforeListener = contentSrc.slice(0, contentSrc.indexOf('chrome.runtime.onMessage'));
839
- expect(beforeListener).not.toContain("dispatchEvent(new CustomEvent('gstack-extension-ready'))");
840
- });
841
-
842
- // Step 4: welcome page hides arrow on gstack-extension-ready
843
- test('step 4: welcome page hides arrow on gstack-extension-ready event', () => {
844
- expect(welcomeSrc).toContain("'gstack-extension-ready'");
845
- expect(welcomeSrc).toContain("classList.add('hidden')");
846
- });
847
-
848
- test('step 4: welcome page does NOT auto-hide via status pill polling', () => {
849
- // The old fallback (checkPill/gstack-status-pill) would hide the arrow
850
- // as soon as the content script injected the pill, even without sidebar open.
851
- expect(welcomeSrc).not.toContain('checkPill');
852
- expect(welcomeSrc).not.toContain('gstack-status-pill');
853
- });
854
- });
855
-
856
- describe('sidebar auth race prevention', () => {
857
- const bgSrc = fs.readFileSync(path.join(ROOT, '..', 'extension', 'background.js'), 'utf-8');
858
- const spSrc = fs.readFileSync(path.join(ROOT, '..', 'extension', 'sidepanel.js'), 'utf-8');
859
-
860
- test('getPort response includes authToken (not just port + connected)', () => {
861
- // The auth race: sidepanel calls getPort, gets {port, connected} but no token.
862
- // All subsequent requests fail 401. Token must be in the getPort response.
863
- const getPortHandler = bgSrc.slice(
864
- bgSrc.indexOf("msg.type === 'getPort'"),
865
- bgSrc.indexOf("msg.type === 'setPort'"),
866
- );
867
- expect(getPortHandler).toContain('token: authToken');
868
- });
869
-
870
- test('tryConnect uses token from getPort response', () => {
871
- // Sidepanel must pass resp.token to updateConnection, not null
872
- const start = spSrc.indexOf('function tryConnect()');
873
- const end = spSrc.indexOf('\ntryConnect();', start); // top-level call after the function
874
- const tryConnectFn = spSrc.slice(start, end);
875
- expect(tryConnectFn).toContain('resp.token');
876
- expect(tryConnectFn).not.toContain('updateConnection(url, null)');
877
- });
878
- });
879
-
880
- describe('startup health check fast-retry', () => {
881
- const bgSrc = fs.readFileSync(path.join(ROOT, '..', 'extension', 'background.js'), 'utf-8');
882
-
883
- test('initial health check retries every 1s (not 10s)', () => {
884
- // The server may not be listening when the extension starts because
885
- // Chromium launches before Bun.serve(). A 10s gap means the user
886
- // stares at "Connecting..." for 10 seconds. 1s retry fixes this.
887
- expect(bgSrc).toContain('startupAttempts');
888
- expect(bgSrc).toContain('setInterval(async ()');
889
- // Fast retry uses 1000ms, not the 10000ms slow poll
890
- expect(bgSrc).toContain('}, 1000);');
891
- });
892
-
893
- test('startup retry stops after connection or max attempts', () => {
894
- expect(bgSrc).toContain('isConnected || startupAttempts >= 15');
895
- expect(bgSrc).toContain('clearInterval(startupCheck)');
896
- });
897
-
898
- test('slow 10s polling only starts after startup phase completes', () => {
899
- expect(bgSrc).toContain('if (!healthInterval)');
900
- expect(bgSrc).toContain('setInterval(checkHealth, 10000)');
901
- });
902
- });
903
-
904
- describe('sidebar debug visibility when stuck', () => {
905
- const spSrc = fs.readFileSync(path.join(ROOT, '..', 'extension', 'sidepanel.js'), 'utf-8');
906
-
907
- test('connection state machine has a dead state with user-visible message', () => {
908
- expect(spSrc).toContain("'dead'");
909
- expect(spSrc).toContain('MAX_RECONNECT_ATTEMPTS');
910
- });
911
-
912
- test('reconnect attempt counter is visible in the UI', () => {
913
- // The banner should show attempt count so user knows something is happening
914
- expect(spSrc).toContain('reconnectAttempts');
915
- });
916
- });
917
-
918
- describe('BROWSE_NO_AUTOSTART (sidebar headless prevention)', () => {
919
- const cliSrc = fs.readFileSync(path.join(ROOT, 'src', 'cli.ts'), 'utf-8');
920
- const termAgentSrc = fs.readFileSync(path.join(ROOT, 'src', 'terminal-agent.ts'), 'utf-8');
921
-
922
- test('cli.ts checks BROWSE_NO_AUTOSTART before starting a new server', () => {
923
- // ensureServer must check this env var BEFORE spawning a server.
924
- // (Anchor on the open paren — both functions grew parameters.)
925
- const ensureStart = cliSrc.indexOf('async function ensureServer(');
926
- const ensureEnd = cliSrc.indexOf('\nasync function ', ensureStart + 1);
927
- const ensureServerFn = cliSrc.slice(
928
- ensureStart,
929
- ensureEnd > ensureStart ? ensureEnd : undefined,
930
- );
931
- expect(ensureServerFn).toContain('BROWSE_NO_AUTOSTART');
932
- expect(ensureServerFn).toContain('process.exit(1)');
933
- });
934
-
935
- test('cli.ts shows actionable error message when BROWSE_NO_AUTOSTART blocks', () => {
936
- expect(cliSrc).toContain('/open-gstack-browser');
937
- expect(cliSrc).toContain('BROWSE_NO_AUTOSTART is set');
938
- });
939
-
940
- test('terminal-agent.ts sets BROWSE_NO_AUTOSTART=1 for the claude PTY', () => {
941
- // The PTY claude must reuse THIS headed server, never race to spawn
942
- // its own. (sidebar-agent.ts, the original setter, was ripped in
943
- // PR #1216 — the PTY agent inherited the same env contract.)
944
- expect(termAgentSrc).toContain("BROWSE_NO_AUTOSTART: '1'");
945
- });
946
-
947
- test('terminal-agent.ts sets BROWSE_PORT for headed server reuse', () => {
948
- expect(termAgentSrc).toContain('BROWSE_PORT');
949
- });
950
-
951
- test('BROWSE_NO_AUTOSTART check happens before lock acquisition', () => {
952
- // The guard must be BEFORE the lock acquisition. If it's after,
953
- // we'd acquire a lock and then exit, leaving a stale lock file.
954
- const ensureServerStart = cliSrc.indexOf('async function ensureServer(');
955
- const noAutoStart = cliSrc.indexOf('BROWSE_NO_AUTOSTART', ensureServerStart);
956
- const lockAcquisition = cliSrc.indexOf('Acquire lock', ensureServerStart);
957
- expect(noAutoStart).toBeGreaterThan(0);
958
- expect(lockAcquisition).toBeGreaterThan(0);
959
- expect(noAutoStart).toBeLessThan(lockAcquisition);
960
- });
961
- });
962
-
963
- // ─── Idle timeout disabled in headed mode (server.ts) ───────────
964
- //
965
- // The original 'idle check skips in headed mode' string-grep test was deleted
966
- // in v1.42.3.0 — it would have passed even with the dual-instance bug present
967
- // because it only grepped for "=== 'headed'" + 'return' in the same window.
968
- // Behavioral coverage lives in browse/test/server-factory.test.ts under the
969
- // 'idle timer + onDisconnect dual-instance fix' describe block, which
970
- // exercises the headed/headless/tunnel branches of idleCheckTick directly.
971
- // The companion '/sidebar-command resets idle timer' test went with the
972
- // chat-queue rip (PR #1216) — /command and /batch reset the timer and are
973
- // covered by that factory suite.
974
-
975
- // ─── Cookie button in sidebar footer ────────────────────────────
976
-
977
- describe('cookie import button (sidebar)', () => {
978
- const html = fs.readFileSync(path.join(ROOT, '..', 'extension', 'sidepanel.html'), 'utf-8');
979
- const js = fs.readFileSync(path.join(ROOT, '..', 'extension', 'sidepanel.js'), 'utf-8');
980
-
981
- test('cookies button navigates to cookie-picker', () => {
982
- expect(js).toContain("'chat-cookies-btn'");
983
- expect(js).toContain('cookie-picker');
984
- });
985
- });
986
-
987
- // #2287 (@tomfluff): xterm sizes its cell from the first font that resolves.
988
- // On Windows none of the Mac/Linux monospace fonts exist, so Malgun Gothic won
989
- // and every Latin glyph sat in a double-wide cell. Consolas ships with every
990
- // Windows install and must come before the CJK fallbacks in both stacks.
991
- describe('sidebar mono font stacks put a Windows Latin monospace before the CJK fallbacks (#2287)', () => {
992
- const stacks: Record<string, string | undefined> = {
993
- 'sidepanel-terminal.js fontFamily': fs.readFileSync(path.join(ROOT, '..', 'extension', 'sidepanel-terminal.js'), 'utf-8').match(/fontFamily:\s*'([^']+)'/)?.[1],
994
- 'sidepanel.css --font-mono': fs.readFileSync(path.join(ROOT, '..', 'extension', 'sidepanel.css'), 'utf-8').match(/--font-mono:\s*([^;]+);/)?.[1],
995
- };
996
- for (const [name, stack] of Object.entries(stacks)) {
997
- test(name, () => {
998
- expect(stack).toBeDefined();
999
- const fonts = stack!.split(',').map(f => f.trim().replace(/^['"]|['"]$/g, ''));
1000
- const consolas = fonts.indexOf('Consolas');
1001
- expect(consolas).toBeGreaterThanOrEqual(0);
1002
- for (const cjk of ['Noto Sans Mono CJK KR', 'Malgun Gothic']) expect(fonts.indexOf(cjk)).toBeGreaterThan(consolas);
1003
- expect(fonts.at(-1)).toBe('monospace');
1004
- });
1005
- }
1006
- });