oh-my-opencode 5.1.62 → 5.1.64

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 (372) hide show
  1. package/dist/cli/index.js +1598 -284
  2. package/dist/cli/service-auth/closed-device-login.fixture.d.ts +1 -0
  3. package/dist/cli/service-auth/credential-lock.d.ts +8 -2
  4. package/dist/cli/service-auth/keychain-helper/access.d.ts +27 -0
  5. package/dist/cli/service-auth/keychain-helper/approval-cache.d.ts +51 -0
  6. package/dist/cli/service-auth/keychain-helper/client.d.ts +68 -0
  7. package/dist/cli/service-auth/keychain-helper/creator-handoff.d.ts +31 -0
  8. package/dist/cli/service-auth/keychain-helper/darwin-backend.d.ts +75 -0
  9. package/dist/cli/service-auth/keychain-helper/darwin-read.d.ts +46 -0
  10. package/dist/cli/service-auth/keychain-helper/darwin-store.d.ts +28 -0
  11. package/dist/cli/service-auth/keychain-helper/fake-keychain.test-support.d.ts +85 -0
  12. package/dist/cli/service-auth/keychain-helper/location.d.ts +28 -0
  13. package/dist/cli/service-auth/keychain-helper/migration.d.ts +20 -0
  14. package/dist/cli/service-auth/keychain-helper/owner-marker.d.ts +7 -0
  15. package/dist/cli/service-auth/keychain-helper/pin.d.ts +20 -0
  16. package/dist/cli/service-auth/keychain-helper/process-copy.test-support.d.ts +3 -0
  17. package/dist/cli/service-auth/keychain-helper/process-state.d.ts +19 -0
  18. package/dist/cli/service-auth/keychain-helper/prompt-lock.d.ts +14 -0
  19. package/dist/cli/service-auth/keychain-helper/recovery.d.ts +34 -0
  20. package/dist/cli/service-auth/keychain-helper/runtime-capabilities.d.ts +13 -0
  21. package/dist/cli/service-auth/keychain-helper/secrets-gate.d.ts +4 -0
  22. package/dist/cli/service-auth/keychain-helper/signature.d.ts +17 -0
  23. package/dist/cli/service-auth/keychain-helper/store-binding.d.ts +46 -0
  24. package/dist/cli/service-auth/keystore.d.ts +18 -3
  25. package/dist/cli/service-auth/session.d.ts +2 -2
  26. package/dist/cli-node/index.js +1598 -284
  27. package/dist/features/builtin-commands/templates/refactor-sections/intro-and-analysis.d.ts +1 -1
  28. package/dist/features/builtin-commands/templates/refactor-sections/plan-and-execution.d.ts +1 -1
  29. package/dist/index.js +479 -376
  30. package/dist/skills/ast-grep/AGENTS.md +2 -2
  31. package/dist/skills/ast-grep/README.md +4 -4
  32. package/dist/skills/ast-grep/SKILL.md +10 -8
  33. package/dist/skills/ast-grep/references/cli.md +4 -3
  34. package/dist/skills/ast-grep/references/patterns.md +5 -5
  35. package/dist/skills/ast-grep/references/pitfalls.md +3 -3
  36. package/dist/skills/ast-grep/references/recipes.md +6 -4
  37. package/dist/skills/ast-grep/references/yaml-rules.md +3 -3
  38. package/dist/skills/ast-grep/scripts/ast_grep_helper.py +3 -3
  39. package/dist/skills/browser/SKILL.md +2 -3
  40. package/dist/skills/browser/runtime/omowright/manifest.json +1 -1
  41. package/dist/skills/coding-agent-sessions/AGENTS.md +1 -1
  42. package/dist/skills/coding-agent-sessions/SKILL.md +2 -1
  43. package/dist/skills/data-scientist/SKILL.md +8 -6
  44. package/dist/skills/data-scientist/references/placement.md +9 -5
  45. package/dist/skills/data-scientist/references/uv-setup.md +3 -3
  46. package/dist/skills/data-scientist/references/visualization.md +19 -4
  47. package/dist/skills/debugging/SKILL.md +5 -5
  48. package/dist/skills/debugging/references/methodology/02-investigate.md +2 -2
  49. package/dist/skills/debugging/references/methodology/06-fix.md +2 -0
  50. package/dist/skills/debugging/references/methodology/09-cleanup.md +2 -2
  51. package/dist/skills/debugging/references/methodology/partial-runtime-evidence.md +1 -1
  52. package/dist/skills/debugging/references/runtimes/bundled-js-binary.md +1 -1
  53. package/dist/skills/debugging/references/runtimes/native-binary.md +1 -1
  54. package/dist/skills/debugging/references/tools/browser-qa.md +1 -2
  55. package/dist/skills/frontend/SKILL.md +2 -2
  56. package/dist/skills/frontend/references/design/design-system-architecture.md +1 -1
  57. package/dist/skills/frontend/references/design/print-paged-media.md +1 -1
  58. package/dist/skills/frontend/references/perfection/README.md +0 -1
  59. package/dist/skills/frontend/references/perfection/react-perf-tooling.md +27 -8
  60. package/dist/skills/frontend/scripts/perfection/lighthouse-audit.py +0 -1
  61. package/dist/skills/git-master/SKILL.md +12 -2
  62. package/dist/skills/init-deep/SKILL.md +1 -1
  63. package/dist/skills/lsp-setup/SKILL.md +24 -15
  64. package/dist/skills/lsp-setup/references/bash/README.md +3 -3
  65. package/dist/skills/lsp-setup/references/c-cpp/README.md +2 -2
  66. package/dist/skills/lsp-setup/references/csharp/README.md +2 -2
  67. package/dist/skills/lsp-setup/references/dart/README.md +2 -2
  68. package/dist/skills/lsp-setup/references/elixir/README.md +2 -2
  69. package/dist/skills/lsp-setup/references/go/README.md +2 -2
  70. package/dist/skills/lsp-setup/references/haskell/README.md +2 -2
  71. package/dist/skills/lsp-setup/references/java/README.md +3 -3
  72. package/dist/skills/lsp-setup/references/julia/README.md +3 -3
  73. package/dist/skills/lsp-setup/references/kotlin/README.md +4 -4
  74. package/dist/skills/lsp-setup/references/lua/README.md +2 -2
  75. package/dist/skills/lsp-setup/references/php/README.md +3 -3
  76. package/dist/skills/lsp-setup/references/python/README.md +13 -12
  77. package/dist/skills/lsp-setup/references/ruby/README.md +2 -2
  78. package/dist/skills/lsp-setup/references/rust/README.md +2 -2
  79. package/dist/skills/lsp-setup/references/swift/README.md +4 -4
  80. package/dist/skills/lsp-setup/references/terraform/README.md +2 -2
  81. package/dist/skills/lsp-setup/references/typescript/README.md +3 -3
  82. package/dist/skills/lsp-setup/references/yaml/README.md +2 -2
  83. package/dist/skills/lsp-setup/references/zig/README.md +2 -2
  84. package/dist/skills/lsp-setup/scripts/detect-lsp.ts +1 -1
  85. package/dist/skills/lsp-setup/scripts/lsp-server-table.ts +3 -2
  86. package/dist/skills/programming/SKILL.md +5 -5
  87. package/dist/skills/programming/references/code-smells.md +2 -2
  88. package/dist/skills/programming/references/go/README.md +3 -3
  89. package/dist/skills/programming/references/python/README.md +8 -8
  90. package/dist/skills/programming/references/python/data-processing.md +9 -9
  91. package/dist/skills/programming/references/rust-ub/README.md +3 -3
  92. package/dist/skills/programming/references/typescript/README.md +5 -5
  93. package/dist/skills/programming/scripts/typescript/new-project.ts +1 -1
  94. package/dist/skills/refactor/SKILL.md +35 -35
  95. package/dist/skills/remove-ai-slops/SKILL.md +6 -6
  96. package/dist/skills/review-work/SKILL.md +2 -2
  97. package/dist/skills/ultimate-browsing/SKILL.md +10 -7
  98. package/dist/skills/ultimate-browsing/engine/AGENTS.md +4 -4
  99. package/dist/skills/ultimate-browsing/references/agent-reach/README.md +2 -2
  100. package/dist/skills/ultimate-browsing/references/agent-reach/career.md +1 -1
  101. package/dist/skills/ultimate-browsing/references/agent-reach/social.md +1 -1
  102. package/dist/skills/ultimate-browsing/references/agent-reach/web.md +4 -4
  103. package/dist/skills/ultimate-browsing/references/chrome-stealth.md +2 -1
  104. package/dist/skills/ultimate-browsing/references/insane-search/README.md +16 -17
  105. package/dist/skills/ultimate-browsing/references/insane-search/fallback.md +10 -6
  106. package/dist/skills/ultimate-browsing/references/insane-search/jina.md +12 -12
  107. package/dist/skills/ultimate-browsing/references/insane-search/naver.md +3 -3
  108. package/dist/skills/ultimate-browsing/references/insane-search/playwright.md +1 -1
  109. package/dist/skills/ultimate-browsing/references/insane-search/rss.md +1 -1
  110. package/dist/skills/ultimate-browsing/references/insane-search/tls-impersonate.md +12 -7
  111. package/dist/skills/ulw-execute/SKILL.md +9 -6
  112. package/dist/skills/ulw-plan/references/full-workflow.md +1 -1
  113. package/dist/skills/ulw-plan/references/intent-unclear.md +2 -2
  114. package/dist/skills/ulw-research/SKILL.md +3 -3
  115. package/dist/skills/ulw-research/references/deliverable-phase.md +5 -5
  116. package/dist/skills/ulw-research/references/report-visualization.md +2 -2
  117. package/dist/skills/ulw-research/references/research-collection.md +2 -2
  118. package/dist/skills/ulw-research/references/unit-rules.md +2 -2
  119. package/dist/skills/visual-qa/AGENTS.md +1 -1
  120. package/dist/skills/visual-qa/SKILL.md +5 -5
  121. package/dist/skills/visual-qa/references/browser-setup.md +4 -2
  122. package/dist/tui.js +13 -13
  123. package/package.json +13 -13
  124. package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
  125. package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +1 -1
  126. package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
  127. package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
  128. package/packages/omo-codex/plugin/components/comment-checker/package.json +1 -1
  129. package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
  130. package/packages/omo-codex/plugin/components/git-bash/package.json +1 -1
  131. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/hooks/hooks.json +1 -1
  132. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +1 -1
  133. package/packages/omo-codex/plugin/components/lsp/dist/.omo-runtime-manifest.json +2 -2
  134. package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
  135. package/packages/omo-codex/plugin/components/lsp/package.json +1 -1
  136. package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
  137. package/packages/omo-codex/plugin/components/rules/package.json +1 -1
  138. package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +1 -1
  139. package/packages/omo-codex/plugin/components/teammode/package.json +1 -1
  140. package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
  141. package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
  142. package/packages/omo-codex/plugin/components/ultrawork/dist/cli.js +2 -0
  143. package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
  144. package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
  145. package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/references/full-workflow.md +1 -1
  146. package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/references/intent-unclear.md +2 -2
  147. package/packages/omo-codex/plugin/components/ultrawork/src/directive-content.ts +1 -1
  148. package/packages/omo-codex/plugin/components/ulw-execute-continuation/directive.md +1 -1
  149. package/packages/omo-codex/plugin/components/ulw-execute-continuation/hooks/hooks.json +1 -1
  150. package/packages/omo-codex/plugin/components/ulw-execute-continuation/package.json +1 -1
  151. package/packages/omo-codex/plugin/components/ulw-loop/directive.md +2 -0
  152. package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +5 -5
  153. package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
  154. package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/SKILL.md +1 -1
  155. package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/references/define-goal.md +1 -1
  156. package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/references/full-workflow.md +10 -10
  157. package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +1 -1
  158. package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +1 -1
  159. package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +1 -1
  160. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +1 -1
  161. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +1 -1
  162. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +1 -1
  163. package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +1 -1
  164. package/packages/omo-codex/plugin/hooks/post-tool-use-recording-spawn-admission.json +1 -1
  165. package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +1 -1
  166. package/packages/omo-codex/plugin/hooks/pre-tool-use-guarding-ulw-loop-spawns.json +1 -1
  167. package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +1 -1
  168. package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +1 -1
  169. package/packages/omo-codex/plugin/hooks/session-start-checking-bootstrap-provisioning.json +1 -1
  170. package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +1 -1
  171. package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +1 -1
  172. package/packages/omo-codex/plugin/hooks/stop-checking-ulw-execute-continuation.json +1 -1
  173. package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +1 -1
  174. package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +1 -1
  175. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +1 -1
  176. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +1 -1
  177. package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +1 -1
  178. package/packages/omo-codex/plugin/package-lock.json +12 -12
  179. package/packages/omo-codex/plugin/package.json +1 -1
  180. package/packages/omo-codex/plugin/scripts/sync-skills.mjs +6 -3
  181. package/packages/omo-codex/plugin/skills/ast-grep/AGENTS.md +2 -2
  182. package/packages/omo-codex/plugin/skills/ast-grep/README.md +4 -4
  183. package/packages/omo-codex/plugin/skills/ast-grep/SKILL.md +10 -8
  184. package/packages/omo-codex/plugin/skills/ast-grep/references/cli.md +4 -3
  185. package/packages/omo-codex/plugin/skills/ast-grep/references/patterns.md +5 -5
  186. package/packages/omo-codex/plugin/skills/ast-grep/references/pitfalls.md +3 -3
  187. package/packages/omo-codex/plugin/skills/ast-grep/references/recipes.md +6 -4
  188. package/packages/omo-codex/plugin/skills/ast-grep/references/yaml-rules.md +3 -3
  189. package/packages/omo-codex/plugin/skills/ast-grep/scripts/ast_grep_helper.py +3 -3
  190. package/packages/omo-codex/plugin/skills/browser/SKILL.md +2 -3
  191. package/packages/omo-codex/plugin/skills/browser/runtime/omowright/manifest.json +1 -1
  192. package/packages/omo-codex/plugin/skills/coding-agent-sessions/AGENTS.md +1 -1
  193. package/packages/omo-codex/plugin/skills/coding-agent-sessions/SKILL.md +2 -1
  194. package/packages/omo-codex/plugin/skills/data-scientist/SKILL.md +8 -6
  195. package/packages/omo-codex/plugin/skills/data-scientist/references/placement.md +9 -5
  196. package/packages/omo-codex/plugin/skills/data-scientist/references/uv-setup.md +3 -3
  197. package/packages/omo-codex/plugin/skills/data-scientist/references/visualization.md +19 -4
  198. package/packages/omo-codex/plugin/skills/debugging/SKILL.md +5 -5
  199. package/packages/omo-codex/plugin/skills/debugging/references/methodology/02-investigate.md +2 -2
  200. package/packages/omo-codex/plugin/skills/debugging/references/methodology/06-fix.md +2 -0
  201. package/packages/omo-codex/plugin/skills/debugging/references/methodology/09-cleanup.md +2 -2
  202. package/packages/omo-codex/plugin/skills/debugging/references/methodology/partial-runtime-evidence.md +1 -1
  203. package/packages/omo-codex/plugin/skills/debugging/references/runtimes/bundled-js-binary.md +1 -1
  204. package/packages/omo-codex/plugin/skills/debugging/references/runtimes/native-binary.md +1 -1
  205. package/packages/omo-codex/plugin/skills/debugging/references/tools/browser-qa.md +1 -2
  206. package/packages/omo-codex/plugin/skills/frontend/SKILL.md +2 -2
  207. package/packages/omo-codex/plugin/skills/frontend/references/design/design-system-architecture.md +1 -1
  208. package/packages/omo-codex/plugin/skills/frontend/references/design/print-paged-media.md +1 -1
  209. package/packages/omo-codex/plugin/skills/frontend/references/perfection/README.md +0 -1
  210. package/packages/omo-codex/plugin/skills/frontend/references/perfection/react-perf-tooling.md +27 -8
  211. package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/lighthouse-audit.py +0 -1
  212. package/packages/omo-codex/plugin/skills/git-master/SKILL.md +12 -2
  213. package/packages/omo-codex/plugin/skills/init-deep/SKILL.md +1 -1
  214. package/packages/omo-codex/plugin/skills/lsp-setup/SKILL.md +24 -15
  215. package/packages/omo-codex/plugin/skills/lsp-setup/references/bash/README.md +3 -3
  216. package/packages/omo-codex/plugin/skills/lsp-setup/references/c-cpp/README.md +2 -2
  217. package/packages/omo-codex/plugin/skills/lsp-setup/references/csharp/README.md +2 -2
  218. package/packages/omo-codex/plugin/skills/lsp-setup/references/dart/README.md +2 -2
  219. package/packages/omo-codex/plugin/skills/lsp-setup/references/elixir/README.md +2 -2
  220. package/packages/omo-codex/plugin/skills/lsp-setup/references/go/README.md +2 -2
  221. package/packages/omo-codex/plugin/skills/lsp-setup/references/haskell/README.md +2 -2
  222. package/packages/omo-codex/plugin/skills/lsp-setup/references/java/README.md +3 -3
  223. package/packages/omo-codex/plugin/skills/lsp-setup/references/julia/README.md +3 -3
  224. package/packages/omo-codex/plugin/skills/lsp-setup/references/kotlin/README.md +4 -4
  225. package/packages/omo-codex/plugin/skills/lsp-setup/references/lua/README.md +2 -2
  226. package/packages/omo-codex/plugin/skills/lsp-setup/references/php/README.md +3 -3
  227. package/packages/omo-codex/plugin/skills/lsp-setup/references/python/README.md +13 -12
  228. package/packages/omo-codex/plugin/skills/lsp-setup/references/ruby/README.md +2 -2
  229. package/packages/omo-codex/plugin/skills/lsp-setup/references/rust/README.md +2 -2
  230. package/packages/omo-codex/plugin/skills/lsp-setup/references/swift/README.md +4 -4
  231. package/packages/omo-codex/plugin/skills/lsp-setup/references/terraform/README.md +2 -2
  232. package/packages/omo-codex/plugin/skills/lsp-setup/references/typescript/README.md +3 -3
  233. package/packages/omo-codex/plugin/skills/lsp-setup/references/yaml/README.md +2 -2
  234. package/packages/omo-codex/plugin/skills/lsp-setup/references/zig/README.md +2 -2
  235. package/packages/omo-codex/plugin/skills/lsp-setup/scripts/detect-lsp.ts +1 -1
  236. package/packages/omo-codex/plugin/skills/lsp-setup/scripts/lsp-server-table.ts +3 -2
  237. package/packages/omo-codex/plugin/skills/programming/SKILL.md +5 -5
  238. package/packages/omo-codex/plugin/skills/programming/references/code-smells.md +2 -2
  239. package/packages/omo-codex/plugin/skills/programming/references/go/README.md +3 -3
  240. package/packages/omo-codex/plugin/skills/programming/references/python/README.md +8 -8
  241. package/packages/omo-codex/plugin/skills/programming/references/python/data-processing.md +9 -9
  242. package/packages/omo-codex/plugin/skills/programming/references/rust-ub/README.md +3 -3
  243. package/packages/omo-codex/plugin/skills/programming/references/typescript/README.md +5 -5
  244. package/packages/omo-codex/plugin/skills/programming/scripts/typescript/new-project.ts +1 -1
  245. package/packages/omo-codex/plugin/skills/refactor/SKILL.md +35 -35
  246. package/packages/omo-codex/plugin/skills/remove-ai-slops/SKILL.md +6 -6
  247. package/packages/omo-codex/plugin/skills/review-work/SKILL.md +2 -2
  248. package/packages/omo-codex/plugin/skills/ultimate-browsing/SKILL.md +10 -7
  249. package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/AGENTS.md +4 -4
  250. package/packages/omo-codex/plugin/skills/ultimate-browsing/references/agent-reach/README.md +2 -2
  251. package/packages/omo-codex/plugin/skills/ultimate-browsing/references/agent-reach/career.md +1 -1
  252. package/packages/omo-codex/plugin/skills/ultimate-browsing/references/agent-reach/social.md +1 -1
  253. package/packages/omo-codex/plugin/skills/ultimate-browsing/references/agent-reach/web.md +4 -4
  254. package/packages/omo-codex/plugin/skills/ultimate-browsing/references/chrome-stealth.md +2 -1
  255. package/packages/omo-codex/plugin/skills/ultimate-browsing/references/insane-search/README.md +16 -17
  256. package/packages/omo-codex/plugin/skills/ultimate-browsing/references/insane-search/fallback.md +10 -6
  257. package/packages/omo-codex/plugin/skills/ultimate-browsing/references/insane-search/jina.md +12 -12
  258. package/packages/omo-codex/plugin/skills/ultimate-browsing/references/insane-search/naver.md +3 -3
  259. package/packages/omo-codex/plugin/skills/ultimate-browsing/references/insane-search/playwright.md +1 -1
  260. package/packages/omo-codex/plugin/skills/ultimate-browsing/references/insane-search/rss.md +1 -1
  261. package/packages/omo-codex/plugin/skills/ultimate-browsing/references/insane-search/tls-impersonate.md +12 -7
  262. package/packages/omo-codex/plugin/skills/ultrawork/SKILL.md +2 -0
  263. package/packages/omo-codex/plugin/skills/ulw-execute/SKILL.md +9 -6
  264. package/packages/omo-codex/plugin/skills/ulw-loop/SKILL.md +1 -1
  265. package/packages/omo-codex/plugin/skills/ulw-loop/references/define-goal.md +1 -1
  266. package/packages/omo-codex/plugin/skills/ulw-loop/references/full-workflow.md +10 -10
  267. package/packages/omo-codex/plugin/skills/ulw-plan/references/full-workflow.md +1 -1
  268. package/packages/omo-codex/plugin/skills/ulw-plan/references/intent-unclear.md +2 -2
  269. package/packages/omo-codex/plugin/skills/ulw-research/SKILL.md +2 -2
  270. package/packages/omo-codex/plugin/skills/ulw-research/references/deliverable-phase.md +5 -5
  271. package/packages/omo-codex/plugin/skills/ulw-research/references/report-visualization.md +2 -2
  272. package/packages/omo-codex/plugin/skills/ulw-research/references/research-collection.md +2 -2
  273. package/packages/omo-codex/plugin/skills/ulw-research/references/unit-rules.md +2 -2
  274. package/packages/omo-codex/plugin/skills/visual-qa/AGENTS.md +1 -1
  275. package/packages/omo-codex/plugin/skills/visual-qa/SKILL.md +5 -5
  276. package/packages/omo-codex/plugin/skills/visual-qa/references/browser-setup.md +4 -2
  277. package/packages/omo-codex/plugin/test/sync-skills-codex-compatibility.test.mjs +2 -0
  278. package/packages/omo-codex/plugin/test/sync-skills-test-support.mjs +7 -3
  279. package/packages/omo-codex/scripts/install-dist/install-local.mjs +2 -2
  280. package/packages/prompts-core/prompts/ultrawork/codex.md +2 -0
  281. package/packages/shared-skills/skills/ast-grep/AGENTS.md +2 -2
  282. package/packages/shared-skills/skills/ast-grep/README.md +4 -4
  283. package/packages/shared-skills/skills/ast-grep/SKILL.md +10 -8
  284. package/packages/shared-skills/skills/ast-grep/references/cli.md +4 -3
  285. package/packages/shared-skills/skills/ast-grep/references/patterns.md +5 -5
  286. package/packages/shared-skills/skills/ast-grep/references/pitfalls.md +3 -3
  287. package/packages/shared-skills/skills/ast-grep/references/recipes.md +6 -4
  288. package/packages/shared-skills/skills/ast-grep/references/yaml-rules.md +3 -3
  289. package/packages/shared-skills/skills/ast-grep/scripts/ast_grep_helper.py +3 -3
  290. package/packages/shared-skills/skills/browser/SKILL.md +2 -3
  291. package/packages/shared-skills/skills/browser/runtime/omowright/manifest.json +1 -1
  292. package/packages/shared-skills/skills/coding-agent-sessions/AGENTS.md +1 -1
  293. package/packages/shared-skills/skills/coding-agent-sessions/SKILL.md +2 -1
  294. package/packages/shared-skills/skills/data-scientist/SKILL.md +8 -6
  295. package/packages/shared-skills/skills/data-scientist/references/placement.md +9 -5
  296. package/packages/shared-skills/skills/data-scientist/references/uv-setup.md +3 -3
  297. package/packages/shared-skills/skills/data-scientist/references/visualization.md +19 -4
  298. package/packages/shared-skills/skills/debugging/SKILL.md +5 -5
  299. package/packages/shared-skills/skills/debugging/references/methodology/02-investigate.md +2 -2
  300. package/packages/shared-skills/skills/debugging/references/methodology/06-fix.md +2 -0
  301. package/packages/shared-skills/skills/debugging/references/methodology/09-cleanup.md +2 -2
  302. package/packages/shared-skills/skills/debugging/references/methodology/partial-runtime-evidence.md +1 -1
  303. package/packages/shared-skills/skills/debugging/references/runtimes/bundled-js-binary.md +1 -1
  304. package/packages/shared-skills/skills/debugging/references/runtimes/native-binary.md +1 -1
  305. package/packages/shared-skills/skills/debugging/references/tools/browser-qa.md +1 -2
  306. package/packages/shared-skills/skills/frontend/SKILL.md +2 -2
  307. package/packages/shared-skills/skills/frontend/references/design/design-system-architecture.md +1 -1
  308. package/packages/shared-skills/skills/frontend/references/design/print-paged-media.md +1 -1
  309. package/packages/shared-skills/skills/frontend/references/perfection/README.md +0 -1
  310. package/packages/shared-skills/skills/frontend/references/perfection/react-perf-tooling.md +27 -8
  311. package/packages/shared-skills/skills/frontend/scripts/perfection/lighthouse-audit.py +0 -1
  312. package/packages/shared-skills/skills/git-master/SKILL.md +12 -2
  313. package/packages/shared-skills/skills/init-deep/SKILL.md +1 -1
  314. package/packages/shared-skills/skills/lsp-setup/SKILL.md +24 -15
  315. package/packages/shared-skills/skills/lsp-setup/references/bash/README.md +3 -3
  316. package/packages/shared-skills/skills/lsp-setup/references/c-cpp/README.md +2 -2
  317. package/packages/shared-skills/skills/lsp-setup/references/csharp/README.md +2 -2
  318. package/packages/shared-skills/skills/lsp-setup/references/dart/README.md +2 -2
  319. package/packages/shared-skills/skills/lsp-setup/references/elixir/README.md +2 -2
  320. package/packages/shared-skills/skills/lsp-setup/references/go/README.md +2 -2
  321. package/packages/shared-skills/skills/lsp-setup/references/haskell/README.md +2 -2
  322. package/packages/shared-skills/skills/lsp-setup/references/java/README.md +3 -3
  323. package/packages/shared-skills/skills/lsp-setup/references/julia/README.md +3 -3
  324. package/packages/shared-skills/skills/lsp-setup/references/kotlin/README.md +4 -4
  325. package/packages/shared-skills/skills/lsp-setup/references/lua/README.md +2 -2
  326. package/packages/shared-skills/skills/lsp-setup/references/php/README.md +3 -3
  327. package/packages/shared-skills/skills/lsp-setup/references/python/README.md +13 -12
  328. package/packages/shared-skills/skills/lsp-setup/references/ruby/README.md +2 -2
  329. package/packages/shared-skills/skills/lsp-setup/references/rust/README.md +2 -2
  330. package/packages/shared-skills/skills/lsp-setup/references/swift/README.md +4 -4
  331. package/packages/shared-skills/skills/lsp-setup/references/terraform/README.md +2 -2
  332. package/packages/shared-skills/skills/lsp-setup/references/typescript/README.md +3 -3
  333. package/packages/shared-skills/skills/lsp-setup/references/yaml/README.md +2 -2
  334. package/packages/shared-skills/skills/lsp-setup/references/zig/README.md +2 -2
  335. package/packages/shared-skills/skills/lsp-setup/scripts/detect-lsp.ts +1 -1
  336. package/packages/shared-skills/skills/lsp-setup/scripts/lsp-server-table.ts +3 -2
  337. package/packages/shared-skills/skills/programming/SKILL.md +5 -5
  338. package/packages/shared-skills/skills/programming/references/code-smells.md +2 -2
  339. package/packages/shared-skills/skills/programming/references/go/README.md +3 -3
  340. package/packages/shared-skills/skills/programming/references/python/README.md +8 -8
  341. package/packages/shared-skills/skills/programming/references/python/data-processing.md +9 -9
  342. package/packages/shared-skills/skills/programming/references/rust-ub/README.md +3 -3
  343. package/packages/shared-skills/skills/programming/references/typescript/README.md +5 -5
  344. package/packages/shared-skills/skills/programming/scripts/typescript/new-project.ts +1 -1
  345. package/packages/shared-skills/skills/refactor/SKILL.md +35 -35
  346. package/packages/shared-skills/skills/remove-ai-slops/SKILL.md +6 -6
  347. package/packages/shared-skills/skills/review-work/SKILL.md +2 -2
  348. package/packages/shared-skills/skills/ultimate-browsing/SKILL.md +10 -7
  349. package/packages/shared-skills/skills/ultimate-browsing/engine/AGENTS.md +4 -4
  350. package/packages/shared-skills/skills/ultimate-browsing/references/agent-reach/README.md +2 -2
  351. package/packages/shared-skills/skills/ultimate-browsing/references/agent-reach/career.md +1 -1
  352. package/packages/shared-skills/skills/ultimate-browsing/references/agent-reach/social.md +1 -1
  353. package/packages/shared-skills/skills/ultimate-browsing/references/agent-reach/web.md +4 -4
  354. package/packages/shared-skills/skills/ultimate-browsing/references/chrome-stealth.md +2 -1
  355. package/packages/shared-skills/skills/ultimate-browsing/references/insane-search/README.md +16 -17
  356. package/packages/shared-skills/skills/ultimate-browsing/references/insane-search/fallback.md +10 -6
  357. package/packages/shared-skills/skills/ultimate-browsing/references/insane-search/jina.md +12 -12
  358. package/packages/shared-skills/skills/ultimate-browsing/references/insane-search/naver.md +3 -3
  359. package/packages/shared-skills/skills/ultimate-browsing/references/insane-search/playwright.md +1 -1
  360. package/packages/shared-skills/skills/ultimate-browsing/references/insane-search/rss.md +1 -1
  361. package/packages/shared-skills/skills/ultimate-browsing/references/insane-search/tls-impersonate.md +12 -7
  362. package/packages/shared-skills/skills/ulw-execute/SKILL.md +9 -6
  363. package/packages/shared-skills/skills/ulw-plan/references/full-workflow.md +1 -1
  364. package/packages/shared-skills/skills/ulw-plan/references/intent-unclear.md +2 -2
  365. package/packages/shared-skills/skills/ulw-research/SKILL.md +3 -3
  366. package/packages/shared-skills/skills/ulw-research/references/deliverable-phase.md +5 -5
  367. package/packages/shared-skills/skills/ulw-research/references/report-visualization.md +2 -2
  368. package/packages/shared-skills/skills/ulw-research/references/research-collection.md +2 -2
  369. package/packages/shared-skills/skills/ulw-research/references/unit-rules.md +2 -2
  370. package/packages/shared-skills/skills/visual-qa/AGENTS.md +1 -1
  371. package/packages/shared-skills/skills/visual-qa/SKILL.md +5 -5
  372. package/packages/shared-skills/skills/visual-qa/references/browser-setup.md +4 -2
@@ -1 +1 @@
1
- export declare const REFACTOR_INTRO_AND_ANALYSIS = "# Intelligent Refactor Command\n\n## Codex Harness Tool Compatibility\n\nThis command includes examples for the OpenCode harness. In Codex, do not call OpenCode-only tools such as `call_omo_agent(...)`, `task(...)`, `background_output(...)`, or `team_*(...)` literally. Translate those examples to Codex native tools:\n\n| OpenCode example | Codex tool to use |\n| --- | --- |\n| `call_omo_agent(subagent_type=\"explore\", ...)` | `multi_agent_v1.spawn_agent({\"message\":\"TASK: act as an explorer. ...\",\"agent_type\":\"explorer\",\"fork_context\":false})` |\n| `call_omo_agent(subagent_type=\"librarian\", ...)` | `multi_agent_v1.spawn_agent({\"message\":\"TASK: act as a librarian. ...\",\"agent_type\":\"librarian\",\"fork_context\":false})` |\n| `task(subagent_type=\"plan\", ...)` | `multi_agent_v1.spawn_agent({\"message\":\"TASK: act as a planning agent. ...\",\"agent_type\":\"plan\",\"fork_context\":false})` |\n| `task(subagent_type=\"oracle\", ...)` | `multi_agent_v1.spawn_agent({\"message\":\"TASK: act as a rigorous reviewer. ...\",\"agent_type\":\"lazycodex-gate-reviewer\",\"fork_context\":false})` |\n| `task(category=\"...\", ...)` | `multi_agent_v1.spawn_agent({\"message\":\"TASK: act as an implementation or QA worker. ...\",\"fork_context\":false})` |\n| `background_output(task_id=\"...\")` | `multi_agent_v1.wait_agent(...)` for mailbox signals |\n| `team_*(...)` | Use Codex native subagents via `multi_agent_v1.spawn_agent` and `multi_agent_v1.wait_agent`; use `multi_agent_v1.send_input` and `multi_agent_v1.close_agent` only when exposed in the active tools list |\n\nCodex exposes ONE of two subagent tool surfaces per session; check your own tool list and route accordingly. If `multi_agent_v1.*` tools exist, use the table above as written. If instead a flat `spawn_agent` with a required `task_name` exists (`multi_agent_v2`), rewrite every `multi_agent_v1.*` example: `multi_agent_v1.spawn_agent({...,\"fork_context\":false})` becomes `spawn_agent({\"task_name\":\"<lowercase_digits_underscores>\",\"message\":...,\"agent_type\":...,\"fork_turns\":\"none\"})` (`\"all\"` only when full parent history is truly required); `send_input` becomes `send_message`; do not call `close_agent`/`resume_agent` (finished agents end on their own; `followup_task` re-tasks one, `interrupt_agent` stops one); `wait_agent` takes only `timeout_ms` and returns on any child mailbox activity. `agent_type` works the same on both surfaces. If a code block below conflicts with this section, this section wins.\n\nWhen translating `load_skills=[...]`, include the requested skill names in the spawned agent's `message`. If a code block below conflicts with this section, this section wins.\n\n## Usage\n```\n/refactor <refactoring-target> [--scope=<file|module|project>] [--strategy=<safe|aggressive>]\n\nArguments:\n refactoring-target: What to refactor. Can be:\n - File path: src/auth/handler.ts\n - Symbol name: \"AuthService class\"\n - Pattern: \"all functions using deprecated API\"\n - Description: \"extract validation logic into separate module\"\n\nOptions:\n --scope: Refactoring scope (default: module)\n - file: Single file only\n - module: Module/directory scope\n - project: Entire codebase\n\n --strategy: Risk tolerance (default: safe)\n - safe: Conservative, maximum test coverage required\n - aggressive: Allow broader changes with adequate coverage\n```\n\n## What This Command Does\n\nPerforms intelligent, deterministic refactoring with full codebase awareness. Unlike blind search-and-replace, this command:\n\n1. **Understands your intent** - Analyzes what you actually want to achieve\n2. **Maps the codebase** - Builds a definitive codemap before touching anything\n3. **Assesses risk** - Evaluates test coverage and determines verification strategy\n4. **Plans meticulously** - Creates a detailed plan with Plan agent\n5. **Executes precisely** - Step-by-step refactoring with LSP and AST-grep\n6. **Verifies constantly** - Runs tests after each change to ensure zero regression\n\n---\n\n# PHASE 0: INTENT GATE (MANDATORY FIRST STEP)\n\n**BEFORE ANY ACTION, classify and validate the request.**\n\n## Step 0.1: Parse Request Type\n\n| Signal | Classification | Action |\n|--------|----------------|--------|\n| Specific file/symbol | Explicit | Proceed to codebase analysis |\n| \"Refactor X to Y\" | Clear transformation | Proceed to codebase analysis |\n| \"Improve\", \"Clean up\" | Open-ended | **MUST ask**: \"What specific improvement?\" |\n| Ambiguous scope | Uncertain | **MUST ask**: \"Which modules/files?\" |\n| Missing context | Incomplete | **MUST ask**: \"What's the desired outcome?\" |\n\n## Step 0.2: Validate Understanding\n\nBefore proceeding, confirm:\n- [ ] Target is clearly identified\n- [ ] Desired outcome is understood\n- [ ] Scope is defined (file/module/project)\n- [ ] Success criteria can be articulated\n\n**If ANY of above is unclear, ASK CLARIFYING QUESTION:**\n\n```\nI want to make sure I understand the refactoring goal correctly.\n\n**What I understood**: [interpretation]\n**What I'm unsure about**: [specific ambiguity]\n\nOptions I see:\n1. [Option A] - [implications]\n2. [Option B] - [implications]\n\n**My recommendation**: [suggestion with reasoning]\n\nShould I proceed with [recommendation], or would you prefer differently?\n```\n\n## Step 0.3: Create Initial Todos\n\n**IMMEDIATELY after understanding the request, create todos:**\n\n```\nTodoWrite([\n {\"id\": \"phase-1\", \"content\": \"PHASE 1: Codebase Analysis - launch parallel explore agents\", \"status\": \"pending\", \"priority\": \"high\"},\n {\"id\": \"phase-2\", \"content\": \"PHASE 2: Build Codemap - map dependencies and impact zones\", \"status\": \"pending\", \"priority\": \"high\"},\n {\"id\": \"phase-3\", \"content\": \"PHASE 3: Test Assessment - analyze test coverage and verification strategy\", \"status\": \"pending\", \"priority\": \"high\"},\n {\"id\": \"phase-4\", \"content\": \"PHASE 4: Plan Generation - invoke Plan agent for detailed refactoring plan\", \"status\": \"pending\", \"priority\": \"high\"},\n {\"id\": \"phase-5\", \"content\": \"PHASE 5: Execute Refactoring - step-by-step with continuous verification\", \"status\": \"pending\", \"priority\": \"high\"},\n {\"id\": \"phase-6\", \"content\": \"PHASE 6: Final Verification - full test suite and regression check\", \"status\": \"pending\", \"priority\": \"high\"}\n])\n```\n\n---\n\n# PHASE 1: CODEBASE ANALYSIS (PARALLEL EXPLORATION)\n\n**Mark phase-1 as in_progress.**\n\n## 1.1: Launch Parallel Explore Agents (BACKGROUND)\n\nFire ALL of these simultaneously using `call_omo_agent`:\n\n```\n// Agent 1: Find the refactoring target\ncall_omo_agent(\n subagent_type=\"explore\",\n run_in_background=true,\n prompt=\"Find all occurrences and definitions of [TARGET]. \n Report: file paths, line numbers, usage patterns.\"\n)\n\n// Agent 2: Find related code\ncall_omo_agent(\n subagent_type=\"explore\", \n run_in_background=true,\n prompt=\"Find all code that imports, uses, or depends on [TARGET].\n Report: dependency chains, import graphs.\"\n)\n\n// Agent 3: Find similar patterns\ncall_omo_agent(\n subagent_type=\"explore\",\n run_in_background=true,\n prompt=\"Find similar code patterns to [TARGET] in the codebase.\n Report: analogous implementations, established conventions.\"\n)\n\n// Agent 4: Find tests\ncall_omo_agent(\n subagent_type=\"explore\",\n run_in_background=true,\n prompt=\"Find all test files related to [TARGET].\n Report: test file paths, test case names, coverage indicators.\"\n)\n\n// Agent 5: Architecture context\ncall_omo_agent(\n subagent_type=\"explore\",\n run_in_background=true,\n prompt=\"Find architectural patterns and module organization around [TARGET].\n Report: module boundaries, layer structure, design patterns in use.\"\n)\n```\n\n## 1.2: Direct Tool Exploration (WHILE AGENTS RUN)\n\nWhile background agents are running, use direct tools:\n\n### LSP Tools for Precise Analysis:\n\n```typescript\n// Find definition(s)\nLspGotoDefinition(filePath, line, character) // Where is it defined?\n\n// Find ALL usages across workspace\nLspFindReferences(filePath, line, character, includeDeclaration=true)\n\n// Get file structure\nLspDocumentSymbols(filePath) // Hierarchical outline\nLspWorkspaceSymbols(filePath, query=\"[target_symbol]\") // Search by name\n\n// Get current diagnostics\nlsp_diagnostics(filePath) // Errors, warnings before we start\n```\n\n### AST-Grep Skill for Pattern Analysis:\n\n```bash\n// Find structural patterns\npython3 scripts/ast_grep_helper.py search 'function $NAME($$$) { $$$ }' --lang ts src/\n\n# Preview refactoring first\nsg --pattern '[old_pattern]' --rewrite '[new_pattern]' --lang ts src/\n```\n\n### Grep for Text Patterns:\n\n```\ngrep(pattern=\"[search_term]\", path=\"src/\", include=\"*.ts\")\n```\n\n## 1.3: Collect Background Results\n\n```\nbackground_output(task_id=\"[agent_1_id]\")\nbackground_output(task_id=\"[agent_2_id]\")\n...\n```\n\n**Mark phase-1 as completed after all results collected.**\n\n---\n\n";
1
+ export declare const REFACTOR_INTRO_AND_ANALYSIS = "# Intelligent Refactor Command\n\n## Codex Harness Tool Compatibility\n\nThis command includes examples for the OpenCode harness. In Codex, do not call OpenCode-only tools such as `call_omo_agent(...)`, `task(...)`, `background_output(...)`, or `team_*(...)` literally. Translate those examples to Codex native tools:\n\n| OpenCode example | Codex tool to use |\n| --- | --- |\n| `call_omo_agent(subagent_type=\"explore\", ...)` | `multi_agent_v1.spawn_agent({\"message\":\"TASK: act as an explorer. ...\",\"agent_type\":\"explorer\",\"fork_context\":false})` |\n| `call_omo_agent(subagent_type=\"librarian\", ...)` | `multi_agent_v1.spawn_agent({\"message\":\"TASK: act as a librarian. ...\",\"agent_type\":\"librarian\",\"fork_context\":false})` |\n| `task(subagent_type=\"plan\", ...)` | `multi_agent_v1.spawn_agent({\"message\":\"TASK: act as a planning agent. ...\",\"agent_type\":\"plan\",\"fork_context\":false})` |\n| `task(subagent_type=\"oracle\", ...)` | `multi_agent_v1.spawn_agent({\"message\":\"TASK: act as a rigorous reviewer. ...\",\"agent_type\":\"lazycodex-gate-reviewer\",\"fork_context\":false})` |\n| `task(category=\"...\", ...)` | `multi_agent_v1.spawn_agent({\"message\":\"TASK: act as an implementation or QA worker. ...\",\"fork_context\":false})` |\n| `background_output(task_id=\"...\")` | `multi_agent_v1.wait_agent(...)` for mailbox signals |\n| `team_*(...)` | Use Codex native subagents via `multi_agent_v1.spawn_agent` and `multi_agent_v1.wait_agent`; use `multi_agent_v1.send_input` and `multi_agent_v1.close_agent` only when exposed in the active tools list |\n\nCodex exposes ONE of two subagent tool surfaces per session; check your own tool list and route accordingly. If `multi_agent_v1.*` tools exist, use the table above as written. If instead a flat `spawn_agent` with a required `task_name` exists (`multi_agent_v2`), rewrite every `multi_agent_v1.*` example: `multi_agent_v1.spawn_agent({...,\"fork_context\":false})` becomes `spawn_agent({\"task_name\":\"<lowercase_digits_underscores>\",\"message\":...,\"agent_type\":...,\"fork_turns\":\"none\"})` (`\"all\"` only when full parent history is truly required); `send_input` becomes `send_message`; do not call `close_agent`/`resume_agent` (finished agents end on their own; `followup_task` re-tasks one, `interrupt_agent` stops one); `wait_agent` takes only `timeout_ms` and returns on any child mailbox activity. `agent_type` works the same on both surfaces. If a code block below conflicts with this section, this section wins.\n\nWhen translating `load_skills=[...]`, include the requested skill names in the spawned agent's `message`. If a code block below conflicts with this section, this section wins.\n\n## Usage\n```\n/refactor <refactoring-target> [--scope=<file|module|project>] [--strategy=<safe|aggressive>]\n\nArguments:\n refactoring-target: What to refactor. Can be:\n - File path: src/auth/handler.ts\n - Symbol name: \"AuthService class\"\n - Pattern: \"all functions using deprecated API\"\n - Description: \"extract validation logic into separate module\"\n\nOptions:\n --scope: Refactoring scope (default: module)\n - file: Single file only\n - module: Module/directory scope\n - project: Entire codebase\n\n --strategy: Risk tolerance (default: safe)\n - safe: Conservative, maximum test coverage required\n - aggressive: Allow broader changes with adequate coverage\n```\n\n## What This Command Does\n\nPerforms intelligent, deterministic refactoring with full codebase awareness. Unlike blind search-and-replace, this command:\n\n1. **Understands your intent** - Analyzes what you actually want to achieve\n2. **Maps the codebase** - Builds a definitive codemap before touching anything\n3. **Assesses risk** - Evaluates test coverage and determines verification strategy\n4. **Plans meticulously** - Creates a detailed plan with Plan agent\n5. **Executes precisely** - Step-by-step refactoring with LSP and AST-grep\n6. **Verifies constantly** - Runs tests after each change to ensure zero regression\n\n---\n\n# PHASE 0: INTENT GATE (MANDATORY FIRST STEP)\n\n**BEFORE ANY ACTION, classify and validate the request.**\n\n## Step 0.1: Parse Request Type\n\n| Signal | Classification | Action |\n|--------|----------------|--------|\n| Specific file/symbol | Explicit | Proceed to codebase analysis |\n| \"Refactor X to Y\" | Clear transformation | Proceed to codebase analysis |\n| \"Improve\", \"Clean up\" | Open-ended | **MUST ask**: \"What specific improvement?\" |\n| Ambiguous scope | Uncertain | **MUST ask**: \"Which modules/files?\" |\n| Missing context | Incomplete | **MUST ask**: \"What's the desired outcome?\" |\n\n## Step 0.2: Validate Understanding\n\nBefore proceeding, confirm:\n- [ ] Target is clearly identified\n- [ ] Desired outcome is understood\n- [ ] Scope is defined (file/module/project)\n- [ ] Success criteria can be articulated\n\n**If ANY of above is unclear, ASK CLARIFYING QUESTION:**\n\n```\nI want to make sure I understand the refactoring goal correctly.\n\n**What I understood**: [interpretation]\n**What I'm unsure about**: [specific ambiguity]\n\nOptions I see:\n1. [Option A] - [implications]\n2. [Option B] - [implications]\n\n**My recommendation**: [suggestion with reasoning]\n\nShould I proceed with [recommendation], or would you prefer differently?\n```\n\n## Step 0.3: Create Initial Todos\n\n**IMMEDIATELY after understanding the request, create todos:**\n\n```\nTodoWrite([\n {\"id\": \"phase-1\", \"content\": \"PHASE 1: Codebase Analysis - launch parallel explore agents\", \"status\": \"pending\", \"priority\": \"high\"},\n {\"id\": \"phase-2\", \"content\": \"PHASE 2: Build Codemap - map dependencies and impact zones\", \"status\": \"pending\", \"priority\": \"high\"},\n {\"id\": \"phase-3\", \"content\": \"PHASE 3: Test Assessment - analyze test coverage and verification strategy\", \"status\": \"pending\", \"priority\": \"high\"},\n {\"id\": \"phase-4\", \"content\": \"PHASE 4: Plan Generation - invoke Plan agent for detailed refactoring plan\", \"status\": \"pending\", \"priority\": \"high\"},\n {\"id\": \"phase-5\", \"content\": \"PHASE 5: Execute Refactoring - step-by-step with continuous verification\", \"status\": \"pending\", \"priority\": \"high\"},\n {\"id\": \"phase-6\", \"content\": \"PHASE 6: Final Verification - full test suite and regression check\", \"status\": \"pending\", \"priority\": \"high\"}\n])\n```\n\n---\n\n# PHASE 1: CODEBASE ANALYSIS (PARALLEL EXPLORATION)\n\n**Mark phase-1 as in_progress.**\n\n## 1.1: Launch Parallel Explore Agents (BACKGROUND)\n\nFire ALL of these simultaneously using `call_omo_agent`:\n\n```\n// Agent 1: Find the refactoring target\ncall_omo_agent(\n subagent_type=\"explore\",\n run_in_background=true,\n prompt=\"Find all occurrences and definitions of [TARGET]. \n Report: file paths, line numbers, usage patterns.\"\n)\n\n// Agent 2: Find related code\ncall_omo_agent(\n subagent_type=\"explore\", \n run_in_background=true,\n prompt=\"Find all code that imports, uses, or depends on [TARGET].\n Report: dependency chains, import graphs.\"\n)\n\n// Agent 3: Find similar patterns\ncall_omo_agent(\n subagent_type=\"explore\",\n run_in_background=true,\n prompt=\"Find similar code patterns to [TARGET] in the codebase.\n Report: analogous implementations, established conventions.\"\n)\n\n// Agent 4: Find tests\ncall_omo_agent(\n subagent_type=\"explore\",\n run_in_background=true,\n prompt=\"Find all test files related to [TARGET].\n Report: test file paths, test case names, coverage indicators.\"\n)\n\n// Agent 5: Architecture context\ncall_omo_agent(\n subagent_type=\"explore\",\n run_in_background=true,\n prompt=\"Find architectural patterns and module organization around [TARGET].\n Report: module boundaries, layer structure, design patterns in use.\"\n)\n```\n\n## 1.2: Direct Tool Exploration (WHILE AGENTS RUN)\n\nWhile background agents are running, use direct tools:\n\n### LSP Tools for Precise Analysis:\n\n```typescript\n// Find definition(s)\nLspGotoDefinition(filePath, line, character) // Where is it defined?\n\n// Find ALL usages across workspace\nLspFindReferences(filePath, line, character, includeDeclaration=true)\n\n// Get file structure\nLspDocumentSymbols(filePath) // Hierarchical outline\nLspWorkspaceSymbols(filePath, query=\"[target_symbol]\") // Search by name\n\n// Get current diagnostics\nlsp_diagnostics(filePath) // Errors, warnings before we start\n```\n\n### AST-Grep Skill for Pattern Analysis:\n\n```bash\n// Find structural patterns\npython3 scripts/ast_grep_helper.py search 'function $NAME($$$) { $$$ }' src/ --lang ts\n\n# Preview refactoring first\nsg --pattern '[old_pattern]' --rewrite '[new_pattern]' --lang ts src/\n```\n\n### Grep for Text Patterns:\n\n```\ngrep(pattern=\"[search_term]\", path=\"src/\", include=\"*.ts\")\n```\n\n## 1.3: Collect Background Results\n\n```\nbackground_output(task_id=\"[agent_1_id]\")\nbackground_output(task_id=\"[agent_2_id]\")\n...\n```\n\n**Mark phase-1 as completed after all results collected.**\n\n---\n\n";
@@ -1 +1 @@
1
- export declare const REFACTOR_PLAN_AND_EXECUTION = "# PHASE 4: PLAN GENERATION (PLAN AGENT)\n\n**Mark phase-4 as in_progress.**\n\n## 4.1: Invoke Plan Agent\n\n```\nTask(\n subagent_type=\"plan\",\n prompt=\"Create a detailed refactoring plan:\n\n ## Refactoring Goal\n [User's original request]\n\n ## Codemap (from Phase 2)\n [Insert codemap here]\n\n ## Test Coverage (from Phase 3)\n [Insert verification plan here]\n\n ## Constraints\n - MUST follow existing patterns: [list]\n - MUST NOT break: [critical paths]\n - MUST run tests after each step\n\n ## Requirements\n 1. Break down into atomic refactoring steps\n 2. Each step must be independently verifiable\n 3. Order steps by dependency (what must happen first)\n 4. Specify exact files and line ranges for each step\n 5. Include rollback strategy for each step\n 6. Define commit checkpoints\"\n)\n```\n\n## 4.2: Review and Validate Plan\n\nAfter receiving plan from Plan agent:\n\n1. **Verify completeness**: All identified files addressed?\n2. **Verify safety**: Each step reversible?\n3. **Verify order**: Dependencies respected?\n4. **Verify verification**: Test commands specified?\n\n## 4.3: Register Detailed Todos\n\nConvert Plan agent output into granular todos:\n\n```\nTodoWrite([\n // Each step from the plan becomes a todo\n {\"id\": \"refactor-1\", \"content\": \"Step 1: [description]\", \"status\": \"pending\", \"priority\": \"high\"},\n {\"id\": \"verify-1\", \"content\": \"Verify Step 1: run tests\", \"status\": \"pending\", \"priority\": \"high\"},\n {\"id\": \"refactor-2\", \"content\": \"Step 2: [description]\", \"status\": \"pending\", \"priority\": \"medium\"},\n {\"id\": \"verify-2\", \"content\": \"Verify Step 2: run tests\", \"status\": \"pending\", \"priority\": \"medium\"},\n // ... continue for all steps\n])\n```\n\n**Mark phase-4 as completed.**\n\n---\n\n# PHASE 5: EXECUTE REFACTORING (DETERMINISTIC EXECUTION)\n\n**Mark phase-5 as in_progress.**\n\n## 5.1: Execution Protocol\n\nFor EACH refactoring step:\n\n### Pre-Step\n1. Mark step todo as `in_progress`\n2. Read current file state\n3. Verify lsp_diagnostics is baseline\n\n### Execute Step\nUse appropriate tool:\n\n**For Symbol Renames:**\n```typescript\nlsp_prepare_rename(filePath, line, character) // Validate rename is possible\nlsp_rename(filePath, line, character, newName) // Execute rename\n```\n\n**For Pattern Transformations:**\n```bash\n// Preview first\nsg --pattern '[pattern]' --rewrite '[rewrite]' --lang ts path/to/file.ts\n\n// If preview looks good, execute\npython3 scripts/ast_grep_helper.py replace '[pattern]' '[rewrite]' --lang ts path/to/file.ts --apply\n```\n\n**For Structural Changes:**\n```typescript\n// Use Edit tool for precise changes\nedit(filePath, oldString, newString)\n```\n\n### Post-Step Verification (MANDATORY)\n\n```typescript\n// 1. Check diagnostics\nlsp_diagnostics(filePath) // Must be clean or same as baseline\n\n// 2. Run tests\nbash(\"bun test\") // Or appropriate test command\n\n// 3. Type check\nbash(\"tsc --noEmit\") // Or appropriate type check\n```\n\n### Step Completion\n1. If verification passes \u2192 Mark step todo as `completed`\n2. If verification fails \u2192 **STOP AND FIX**\n\n## 5.2: Failure Recovery Protocol\n\nIf ANY verification fails:\n\n1. **STOP** immediately\n2. **REVERT** the failed change\n3. **DIAGNOSE** what went wrong\n4. **OPTIONS**:\n - Fix the issue and retry\n - Skip this step (if optional)\n - Consult oracle agent for help\n - Ask user for guidance\n\n**NEVER proceed to next step with broken tests.**\n\n## 5.3: Commit Checkpoints\n\nAfter each logical group of changes:\n\n```bash\ngit add [changed-files]\ngit commit -m \"refactor(scope): description\n\n[details of what was changed and why]\"\n```\n\n**Mark phase-5 as completed when all refactoring steps done.**\n\n---\n\n";
1
+ export declare const REFACTOR_PLAN_AND_EXECUTION = "# PHASE 4: PLAN GENERATION (PLAN AGENT)\n\n**Mark phase-4 as in_progress.**\n\n## 4.1: Invoke Plan Agent\n\n```\nTask(\n subagent_type=\"plan\",\n prompt=\"Create a detailed refactoring plan:\n\n ## Refactoring Goal\n [User's original request]\n\n ## Codemap (from Phase 2)\n [Insert codemap here]\n\n ## Test Coverage (from Phase 3)\n [Insert verification plan here]\n\n ## Constraints\n - MUST follow existing patterns: [list]\n - MUST NOT break: [critical paths]\n - MUST run tests after each step\n\n ## Requirements\n 1. Break down into atomic refactoring steps\n 2. Each step must be independently verifiable\n 3. Order steps by dependency (what must happen first)\n 4. Specify exact files and line ranges for each step\n 5. Include rollback strategy for each step\n 6. Define commit checkpoints\"\n)\n```\n\n## 4.2: Review and Validate Plan\n\nAfter receiving plan from Plan agent:\n\n1. **Verify completeness**: All identified files addressed?\n2. **Verify safety**: Each step reversible?\n3. **Verify order**: Dependencies respected?\n4. **Verify verification**: Test commands specified?\n\n## 4.3: Register Detailed Todos\n\nConvert Plan agent output into granular todos:\n\n```\nTodoWrite([\n // Each step from the plan becomes a todo\n {\"id\": \"refactor-1\", \"content\": \"Step 1: [description]\", \"status\": \"pending\", \"priority\": \"high\"},\n {\"id\": \"verify-1\", \"content\": \"Verify Step 1: run tests\", \"status\": \"pending\", \"priority\": \"high\"},\n {\"id\": \"refactor-2\", \"content\": \"Step 2: [description]\", \"status\": \"pending\", \"priority\": \"medium\"},\n {\"id\": \"verify-2\", \"content\": \"Verify Step 2: run tests\", \"status\": \"pending\", \"priority\": \"medium\"},\n // ... continue for all steps\n])\n```\n\n**Mark phase-4 as completed.**\n\n---\n\n# PHASE 5: EXECUTE REFACTORING (DETERMINISTIC EXECUTION)\n\n**Mark phase-5 as in_progress.**\n\n## 5.1: Execution Protocol\n\nFor EACH refactoring step:\n\n### Pre-Step\n1. Mark step todo as `in_progress`\n2. Read current file state\n3. Verify lsp_diagnostics is baseline\n\n### Execute Step\nUse appropriate tool:\n\n**For Symbol Renames:**\n```typescript\nlsp_prepare_rename(filePath, line, character) // Validate rename is possible\nlsp_rename(filePath, line, character, newName) // Execute rename\n```\n\n**For Pattern Transformations:**\n```bash\n// Preview first\nsg --pattern '[pattern]' --rewrite '[rewrite]' --lang ts path/to/file.ts\n\n// If preview looks good, execute\npython3 scripts/ast_grep_helper.py replace '[pattern]' '[rewrite]' path/to/file.ts --lang ts --apply\n```\n\n**For Structural Changes:**\n```typescript\n// Use Edit tool for precise changes\nedit(filePath, oldString, newString)\n```\n\n### Post-Step Verification (MANDATORY)\n\n```typescript\n// 1. Check diagnostics\nlsp_diagnostics(filePath) // Must be clean or same as baseline\n\n// 2. Run tests\nbash(\"bun test\") // Or appropriate test command\n\n// 3. Type check\nbash(\"tsc --noEmit\") // Or appropriate type check\n```\n\n### Step Completion\n1. If verification passes \u2192 Mark step todo as `completed`\n2. If verification fails \u2192 **STOP AND FIX**\n\n## 5.2: Failure Recovery Protocol\n\nIf ANY verification fails:\n\n1. **STOP** immediately\n2. **REVERT** the failed change\n3. **DIAGNOSE** what went wrong\n4. **OPTIONS**:\n - Fix the issue and retry\n - Skip this step (if optional)\n - Consult oracle agent for help\n - Ask user for guidance\n\n**NEVER proceed to next step with broken tests.**\n\n## 5.3: Commit Checkpoints\n\nAfter each logical group of changes:\n\n```bash\ngit add [changed-files]\ngit commit -m \"refactor(scope): description\n\n[details of what was changed and why]\"\n```\n\n**Mark phase-5 as completed when all refactoring steps done.**\n\n---\n\n";