oh-my-opencode 5.1.84 → 5.1.86

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 (405) hide show
  1. package/.agents/command/remove-deadcode.md +1 -1
  2. package/.agents/skills/remove-deadcode/SKILL.md +1 -1
  3. package/.agents/skills/work-with-pr/SKILL.md +2 -2
  4. package/.opencode/command/remove-deadcode.md +1 -1
  5. package/.opencode/skills/work-with-pr/SKILL.md +2 -2
  6. package/THIRD-PARTY-NOTICES.md +9 -3
  7. package/dist/cli/index.js +1022 -842
  8. package/dist/cli/service-auth/devices.d.ts +5 -2
  9. package/dist/cli-node/index.js +1022 -842
  10. package/dist/config/schema/agent-names.d.ts +1 -0
  11. package/dist/index.js +180 -205
  12. package/dist/skills/browser/SKILL.md +4 -1
  13. package/dist/skills/browser/references/commands.md +5 -2
  14. package/dist/skills/browser/references/desktop.md +1 -0
  15. package/dist/skills/browser/references/owned-engine/README.md +2 -0
  16. package/dist/skills/browser/references/owned-engine/frames-and-humans.md +2 -0
  17. package/dist/skills/browser/references/owned-engine/network.md +10 -5
  18. package/dist/skills/browser/references/recipes/1password.md +2 -0
  19. package/dist/skills/browser/runtime/omowright/index.js +11 -11
  20. package/dist/skills/browser/runtime/omowright/manifest.json +4 -4
  21. package/dist/skills/debugging/SKILL.md +1 -1
  22. package/dist/skills/git/SKILL.md +62 -0
  23. package/dist/skills/git/agents/openai.yaml +13 -0
  24. package/dist/skills/github/SKILL.md +94 -0
  25. package/dist/skills/github/references/branch-rules.md +129 -0
  26. package/dist/skills/github/references/evidence-attachments.md +16 -0
  27. package/dist/skills/github/references/repo-setup.md +152 -0
  28. package/dist/skills/github/references/waiting.md +52 -0
  29. package/dist/skills/github/references/workflows.md +161 -0
  30. package/dist/skills/github/scripts/cli.ts +8 -0
  31. package/dist/skills/github/scripts/package.json +12 -0
  32. package/dist/skills/github/scripts/sdk.ts +11 -0
  33. package/dist/skills/github/scripts/src/account.ts +243 -0
  34. package/dist/skills/github/scripts/src/actions-write.ts +86 -0
  35. package/dist/skills/github/scripts/src/actions.ts +210 -0
  36. package/dist/skills/github/scripts/src/attestations.ts +136 -0
  37. package/dist/skills/github/scripts/src/blake2b.ts +102 -0
  38. package/dist/skills/github/scripts/src/branch-protection.ts +192 -0
  39. package/dist/skills/github/scripts/src/caches.ts +105 -0
  40. package/dist/skills/github/scripts/src/checks.ts +107 -0
  41. package/dist/skills/github/scripts/src/codespaces.ts +230 -0
  42. package/dist/skills/github/scripts/src/conversation-lock.ts +50 -0
  43. package/dist/skills/github/scripts/src/discussion-list.ts +126 -0
  44. package/dist/skills/github/scripts/src/discussion-lookup.ts +127 -0
  45. package/dist/skills/github/scripts/src/discussions.ts +234 -0
  46. package/dist/skills/github/scripts/src/env.ts +100 -0
  47. package/dist/skills/github/scripts/src/errors.ts +79 -0
  48. package/dist/skills/github/scripts/src/fields.ts +27 -0
  49. package/dist/skills/github/scripts/src/gist-shape.ts +58 -0
  50. package/dist/skills/github/scripts/src/gists-write.ts +130 -0
  51. package/dist/skills/github/scripts/src/gists.ts +118 -0
  52. package/dist/skills/github/scripts/src/git-auth.ts +46 -0
  53. package/dist/skills/github/scripts/src/http.ts +159 -0
  54. package/dist/skills/github/scripts/src/issue-develop.ts +118 -0
  55. package/dist/skills/github/scripts/src/issues-extra.ts +135 -0
  56. package/dist/skills/github/scripts/src/issues-write.ts +174 -0
  57. package/dist/skills/github/scripts/src/issues.ts +156 -0
  58. package/dist/skills/github/scripts/src/keys.ts +176 -0
  59. package/dist/skills/github/scripts/src/labels.ts +209 -0
  60. package/dist/skills/github/scripts/src/merge.ts +115 -0
  61. package/dist/skills/github/scripts/src/poly1305.ts +22 -0
  62. package/dist/skills/github/scripts/src/pr-checkout.ts +92 -0
  63. package/dist/skills/github/scripts/src/pr-view.ts +106 -0
  64. package/dist/skills/github/scripts/src/project-fields.ts +144 -0
  65. package/dist/skills/github/scripts/src/project-item-edit.ts +153 -0
  66. package/dist/skills/github/scripts/src/project-items.ts +191 -0
  67. package/dist/skills/github/scripts/src/project-links.ts +104 -0
  68. package/dist/skills/github/scripts/src/project-ref.ts +145 -0
  69. package/dist/skills/github/scripts/src/project-state.ts +99 -0
  70. package/dist/skills/github/scripts/src/projects.ts +158 -0
  71. package/dist/skills/github/scripts/src/pulls-extra.ts +165 -0
  72. package/dist/skills/github/scripts/src/pulls-read.ts +176 -0
  73. package/dist/skills/github/scripts/src/pulls-review.ts +206 -0
  74. package/dist/skills/github/scripts/src/pulls-write.ts +187 -0
  75. package/dist/skills/github/scripts/src/raw.ts +78 -0
  76. package/dist/skills/github/scripts/src/read.ts +77 -0
  77. package/dist/skills/github/scripts/src/release-assets.ts +111 -0
  78. package/dist/skills/github/scripts/src/release-download.ts +151 -0
  79. package/dist/skills/github/scripts/src/release-write.ts +197 -0
  80. package/dist/skills/github/scripts/src/repo-admin.ts +112 -0
  81. package/dist/skills/github/scripts/src/repo-content.ts +187 -0
  82. package/dist/skills/github/scripts/src/repo-create.ts +139 -0
  83. package/dist/skills/github/scripts/src/repo-extras.ts +217 -0
  84. package/dist/skills/github/scripts/src/repo-list.ts +143 -0
  85. package/dist/skills/github/scripts/src/repo-settings.ts +176 -0
  86. package/dist/skills/github/scripts/src/repo-sync.ts +81 -0
  87. package/dist/skills/github/scripts/src/repo-url.ts +104 -0
  88. package/dist/skills/github/scripts/src/repos.ts +87 -0
  89. package/dist/skills/github/scripts/src/ruleset-shape.ts +96 -0
  90. package/dist/skills/github/scripts/src/rulesets-write.ts +124 -0
  91. package/dist/skills/github/scripts/src/rulesets.ts +80 -0
  92. package/dist/skills/github/scripts/src/run-download.ts +88 -0
  93. package/dist/skills/github/scripts/src/salsa20.ts +97 -0
  94. package/dist/skills/github/scripts/src/scopes.ts +165 -0
  95. package/dist/skills/github/scripts/src/sealed-box.ts +75 -0
  96. package/dist/skills/github/scripts/src/search-commits.ts +114 -0
  97. package/dist/skills/github/scripts/src/search.ts +116 -0
  98. package/dist/skills/github/scripts/src/secrets.ts +131 -0
  99. package/dist/skills/github/scripts/src/snappy.ts +57 -0
  100. package/dist/skills/github/scripts/src/status-search.ts +55 -0
  101. package/dist/skills/github/scripts/src/transfer.ts +97 -0
  102. package/dist/skills/github/scripts/src/types.ts +75 -0
  103. package/dist/skills/github/scripts/src/variables.ts +86 -0
  104. package/dist/skills/github/scripts/src/wait.ts +164 -0
  105. package/dist/skills/github/scripts/src/wire.ts +159 -0
  106. package/dist/skills/github/scripts/src/workflows.ts +144 -0
  107. package/dist/skills/github/scripts/src/zip.ts +104 -0
  108. package/dist/skills/github/scripts/surface.ts +106 -0
  109. package/dist/skills/github/scripts/vendor/surface/SOURCE.json +15 -0
  110. package/dist/skills/github/scripts/vendor/surface/cli.ts +203 -0
  111. package/dist/skills/github/scripts/vendor/surface/flags.ts +195 -0
  112. package/dist/skills/github/scripts/vendor/surface/help.ts +89 -0
  113. package/dist/skills/github/scripts/vendor/surface/http.ts +180 -0
  114. package/dist/skills/github/scripts/vendor/surface/index.ts +44 -0
  115. package/dist/skills/github/scripts/vendor/surface/mcp.ts +241 -0
  116. package/dist/skills/github/scripts/vendor/surface/schema.ts +200 -0
  117. package/dist/skills/github/scripts/vendor/surface/stdio.ts +54 -0
  118. package/dist/skills/github/scripts/vendor/surface/surface.ts +250 -0
  119. package/dist/skills/github/scripts/vendor/surface/tools.ts +80 -0
  120. package/dist/skills/programming/SKILL.md +1 -1
  121. package/dist/skills/ulw-execute/SKILL.md +1 -1
  122. package/dist/tui.js +30 -27
  123. package/package.json +28 -26
  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/hooks/hooks.json +1 -1
  143. package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
  144. package/packages/omo-codex/plugin/components/ulw-execute-continuation/hooks/hooks.json +1 -1
  145. package/packages/omo-codex/plugin/components/ulw-execute-continuation/package.json +1 -1
  146. package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +5 -5
  147. package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
  148. package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/SKILL.md +1 -1
  149. package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/references/full-workflow.md +3 -3
  150. package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +1 -1
  151. package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +1 -1
  152. package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +1 -1
  153. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +1 -1
  154. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +1 -1
  155. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +1 -1
  156. package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +1 -1
  157. package/packages/omo-codex/plugin/hooks/post-tool-use-recording-spawn-admission.json +1 -1
  158. package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +1 -1
  159. package/packages/omo-codex/plugin/hooks/pre-tool-use-guarding-ulw-loop-spawns.json +1 -1
  160. package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +1 -1
  161. package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +1 -1
  162. package/packages/omo-codex/plugin/hooks/session-start-checking-bootstrap-provisioning.json +1 -1
  163. package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +1 -1
  164. package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +1 -1
  165. package/packages/omo-codex/plugin/hooks/stop-checking-ulw-execute-continuation.json +1 -1
  166. package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +1 -1
  167. package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +1 -1
  168. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +1 -1
  169. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +1 -1
  170. package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +1 -1
  171. package/packages/omo-codex/plugin/package-lock.json +12 -12
  172. package/packages/omo-codex/plugin/package.json +1 -1
  173. package/packages/omo-codex/plugin/skills/browser/SKILL.md +4 -1
  174. package/packages/omo-codex/plugin/skills/browser/references/commands.md +5 -2
  175. package/packages/omo-codex/plugin/skills/browser/references/desktop.md +1 -0
  176. package/packages/omo-codex/plugin/skills/browser/references/owned-engine/README.md +2 -0
  177. package/packages/omo-codex/plugin/skills/browser/references/owned-engine/frames-and-humans.md +2 -0
  178. package/packages/omo-codex/plugin/skills/browser/references/owned-engine/network.md +10 -5
  179. package/packages/omo-codex/plugin/skills/browser/references/recipes/1password.md +2 -0
  180. package/packages/omo-codex/plugin/skills/browser/runtime/omowright/index.js +11 -11
  181. package/packages/omo-codex/plugin/skills/browser/runtime/omowright/manifest.json +4 -4
  182. package/packages/omo-codex/plugin/skills/debugging/SKILL.md +1 -1
  183. package/packages/omo-codex/plugin/skills/git/SKILL.md +62 -0
  184. package/packages/omo-codex/plugin/skills/git/agents/openai.yaml +13 -0
  185. package/packages/omo-codex/plugin/skills/github/SKILL.md +94 -0
  186. package/packages/omo-codex/plugin/skills/github/agents/openai.yaml +2 -0
  187. package/packages/omo-codex/plugin/skills/github/references/branch-rules.md +129 -0
  188. package/packages/omo-codex/plugin/skills/github/references/evidence-attachments.md +16 -0
  189. package/packages/omo-codex/plugin/skills/github/references/repo-setup.md +152 -0
  190. package/packages/omo-codex/plugin/skills/github/references/waiting.md +52 -0
  191. package/packages/omo-codex/plugin/skills/github/references/workflows.md +161 -0
  192. package/packages/omo-codex/plugin/skills/github/scripts/cli.ts +8 -0
  193. package/packages/omo-codex/plugin/skills/github/scripts/package.json +12 -0
  194. package/packages/omo-codex/plugin/skills/github/scripts/sdk.ts +11 -0
  195. package/packages/omo-codex/plugin/skills/github/scripts/src/account.ts +243 -0
  196. package/packages/omo-codex/plugin/skills/github/scripts/src/actions-write.ts +86 -0
  197. package/packages/omo-codex/plugin/skills/github/scripts/src/actions.ts +210 -0
  198. package/packages/omo-codex/plugin/skills/github/scripts/src/attestations.ts +136 -0
  199. package/packages/omo-codex/plugin/skills/github/scripts/src/blake2b.ts +102 -0
  200. package/packages/omo-codex/plugin/skills/github/scripts/src/branch-protection.ts +192 -0
  201. package/packages/omo-codex/plugin/skills/github/scripts/src/caches.ts +105 -0
  202. package/packages/omo-codex/plugin/skills/github/scripts/src/checks.ts +107 -0
  203. package/packages/omo-codex/plugin/skills/github/scripts/src/codespaces.ts +230 -0
  204. package/packages/omo-codex/plugin/skills/github/scripts/src/conversation-lock.ts +50 -0
  205. package/packages/omo-codex/plugin/skills/github/scripts/src/discussion-list.ts +126 -0
  206. package/packages/omo-codex/plugin/skills/github/scripts/src/discussion-lookup.ts +127 -0
  207. package/packages/omo-codex/plugin/skills/github/scripts/src/discussions.ts +234 -0
  208. package/packages/omo-codex/plugin/skills/github/scripts/src/env.ts +100 -0
  209. package/packages/omo-codex/plugin/skills/github/scripts/src/errors.ts +79 -0
  210. package/packages/omo-codex/plugin/skills/github/scripts/src/fields.ts +27 -0
  211. package/packages/omo-codex/plugin/skills/github/scripts/src/gist-shape.ts +58 -0
  212. package/packages/omo-codex/plugin/skills/github/scripts/src/gists-write.ts +130 -0
  213. package/packages/omo-codex/plugin/skills/github/scripts/src/gists.ts +118 -0
  214. package/packages/omo-codex/plugin/skills/github/scripts/src/git-auth.ts +46 -0
  215. package/packages/omo-codex/plugin/skills/github/scripts/src/http.ts +159 -0
  216. package/packages/omo-codex/plugin/skills/github/scripts/src/issue-develop.ts +118 -0
  217. package/packages/omo-codex/plugin/skills/github/scripts/src/issues-extra.ts +135 -0
  218. package/packages/omo-codex/plugin/skills/github/scripts/src/issues-write.ts +174 -0
  219. package/packages/omo-codex/plugin/skills/github/scripts/src/issues.ts +156 -0
  220. package/packages/omo-codex/plugin/skills/github/scripts/src/keys.ts +176 -0
  221. package/packages/omo-codex/plugin/skills/github/scripts/src/labels.ts +209 -0
  222. package/packages/omo-codex/plugin/skills/github/scripts/src/merge.ts +115 -0
  223. package/packages/omo-codex/plugin/skills/github/scripts/src/poly1305.ts +22 -0
  224. package/packages/omo-codex/plugin/skills/github/scripts/src/pr-checkout.ts +92 -0
  225. package/packages/omo-codex/plugin/skills/github/scripts/src/pr-view.ts +106 -0
  226. package/packages/omo-codex/plugin/skills/github/scripts/src/project-fields.ts +144 -0
  227. package/packages/omo-codex/plugin/skills/github/scripts/src/project-item-edit.ts +153 -0
  228. package/packages/omo-codex/plugin/skills/github/scripts/src/project-items.ts +191 -0
  229. package/packages/omo-codex/plugin/skills/github/scripts/src/project-links.ts +104 -0
  230. package/packages/omo-codex/plugin/skills/github/scripts/src/project-ref.ts +145 -0
  231. package/packages/omo-codex/plugin/skills/github/scripts/src/project-state.ts +99 -0
  232. package/packages/omo-codex/plugin/skills/github/scripts/src/projects.ts +158 -0
  233. package/packages/omo-codex/plugin/skills/github/scripts/src/pulls-extra.ts +165 -0
  234. package/packages/omo-codex/plugin/skills/github/scripts/src/pulls-read.ts +176 -0
  235. package/packages/omo-codex/plugin/skills/github/scripts/src/pulls-review.ts +206 -0
  236. package/packages/omo-codex/plugin/skills/github/scripts/src/pulls-write.ts +187 -0
  237. package/packages/omo-codex/plugin/skills/github/scripts/src/raw.ts +78 -0
  238. package/packages/omo-codex/plugin/skills/github/scripts/src/read.ts +77 -0
  239. package/packages/omo-codex/plugin/skills/github/scripts/src/release-assets.ts +111 -0
  240. package/packages/omo-codex/plugin/skills/github/scripts/src/release-download.ts +151 -0
  241. package/packages/omo-codex/plugin/skills/github/scripts/src/release-write.ts +197 -0
  242. package/packages/omo-codex/plugin/skills/github/scripts/src/repo-admin.ts +112 -0
  243. package/packages/omo-codex/plugin/skills/github/scripts/src/repo-content.ts +187 -0
  244. package/packages/omo-codex/plugin/skills/github/scripts/src/repo-create.ts +139 -0
  245. package/packages/omo-codex/plugin/skills/github/scripts/src/repo-extras.ts +217 -0
  246. package/packages/omo-codex/plugin/skills/github/scripts/src/repo-list.ts +143 -0
  247. package/packages/omo-codex/plugin/skills/github/scripts/src/repo-settings.ts +176 -0
  248. package/packages/omo-codex/plugin/skills/github/scripts/src/repo-sync.ts +81 -0
  249. package/packages/omo-codex/plugin/skills/github/scripts/src/repo-url.ts +104 -0
  250. package/packages/omo-codex/plugin/skills/github/scripts/src/repos.ts +87 -0
  251. package/packages/omo-codex/plugin/skills/github/scripts/src/ruleset-shape.ts +96 -0
  252. package/packages/omo-codex/plugin/skills/github/scripts/src/rulesets-write.ts +124 -0
  253. package/packages/omo-codex/plugin/skills/github/scripts/src/rulesets.ts +80 -0
  254. package/packages/omo-codex/plugin/skills/github/scripts/src/run-download.ts +88 -0
  255. package/packages/omo-codex/plugin/skills/github/scripts/src/salsa20.ts +97 -0
  256. package/packages/omo-codex/plugin/skills/github/scripts/src/scopes.ts +165 -0
  257. package/packages/omo-codex/plugin/skills/github/scripts/src/sealed-box.ts +75 -0
  258. package/packages/omo-codex/plugin/skills/github/scripts/src/search-commits.ts +114 -0
  259. package/packages/omo-codex/plugin/skills/github/scripts/src/search.ts +116 -0
  260. package/packages/omo-codex/plugin/skills/github/scripts/src/secrets.ts +131 -0
  261. package/packages/omo-codex/plugin/skills/github/scripts/src/snappy.ts +57 -0
  262. package/packages/omo-codex/plugin/skills/github/scripts/src/status-search.ts +55 -0
  263. package/packages/omo-codex/plugin/skills/github/scripts/src/transfer.ts +97 -0
  264. package/packages/omo-codex/plugin/skills/github/scripts/src/types.ts +75 -0
  265. package/packages/omo-codex/plugin/skills/github/scripts/src/variables.ts +86 -0
  266. package/packages/omo-codex/plugin/skills/github/scripts/src/wait.ts +164 -0
  267. package/packages/omo-codex/plugin/skills/github/scripts/src/wire.ts +159 -0
  268. package/packages/omo-codex/plugin/skills/github/scripts/src/workflows.ts +144 -0
  269. package/packages/omo-codex/plugin/skills/github/scripts/src/zip.ts +104 -0
  270. package/packages/omo-codex/plugin/skills/github/scripts/surface.ts +106 -0
  271. package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/SOURCE.json +15 -0
  272. package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/cli.ts +203 -0
  273. package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/flags.ts +195 -0
  274. package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/help.ts +89 -0
  275. package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/http.ts +180 -0
  276. package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/index.ts +44 -0
  277. package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/mcp.ts +241 -0
  278. package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/schema.ts +200 -0
  279. package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/stdio.ts +54 -0
  280. package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/surface.ts +250 -0
  281. package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/tools.ts +80 -0
  282. package/packages/omo-codex/plugin/skills/programming/SKILL.md +1 -1
  283. package/packages/omo-codex/plugin/skills/ulw-execute/SKILL.md +1 -1
  284. package/packages/omo-codex/plugin/skills/ulw-loop/SKILL.md +1 -1
  285. package/packages/omo-codex/plugin/skills/ulw-loop/references/full-workflow.md +3 -3
  286. package/packages/omo-codex/plugin/test/sync-skills-codex-compatibility.test.mjs +1 -1
  287. package/packages/omo-codex/plugin/test/sync-skills-test-support.mjs +2 -1
  288. package/packages/omo-codex/plugin/test/sync-skills.test.mjs +5 -5
  289. package/packages/omo-codex/scripts/install-dist/install-local.mjs +20 -15
  290. package/packages/shared-skills/skills/browser/SKILL.md +4 -1
  291. package/packages/shared-skills/skills/browser/references/commands.md +5 -2
  292. package/packages/shared-skills/skills/browser/references/desktop.md +1 -0
  293. package/packages/shared-skills/skills/browser/references/owned-engine/README.md +2 -0
  294. package/packages/shared-skills/skills/browser/references/owned-engine/frames-and-humans.md +2 -0
  295. package/packages/shared-skills/skills/browser/references/owned-engine/network.md +10 -5
  296. package/packages/shared-skills/skills/browser/references/recipes/1password.md +2 -0
  297. package/packages/shared-skills/skills/browser/runtime/omowright/index.js +11 -11
  298. package/packages/shared-skills/skills/browser/runtime/omowright/manifest.json +4 -4
  299. package/packages/shared-skills/skills/debugging/SKILL.md +1 -1
  300. package/packages/shared-skills/skills/git/SKILL.md +62 -0
  301. package/packages/shared-skills/skills/git/agents/openai.yaml +13 -0
  302. package/packages/shared-skills/skills/github/SKILL.md +94 -0
  303. package/packages/shared-skills/skills/github/references/branch-rules.md +129 -0
  304. package/packages/shared-skills/skills/github/references/evidence-attachments.md +16 -0
  305. package/packages/shared-skills/skills/github/references/repo-setup.md +152 -0
  306. package/packages/shared-skills/skills/github/references/waiting.md +52 -0
  307. package/packages/shared-skills/skills/github/references/workflows.md +161 -0
  308. package/packages/shared-skills/skills/github/scripts/cli.ts +8 -0
  309. package/packages/shared-skills/skills/github/scripts/package.json +12 -0
  310. package/packages/shared-skills/skills/github/scripts/sdk.ts +11 -0
  311. package/packages/shared-skills/skills/github/scripts/src/account.ts +243 -0
  312. package/packages/shared-skills/skills/github/scripts/src/actions-write.ts +86 -0
  313. package/packages/shared-skills/skills/github/scripts/src/actions.ts +210 -0
  314. package/packages/shared-skills/skills/github/scripts/src/attestations.ts +136 -0
  315. package/packages/shared-skills/skills/github/scripts/src/blake2b.ts +102 -0
  316. package/packages/shared-skills/skills/github/scripts/src/branch-protection.ts +192 -0
  317. package/packages/shared-skills/skills/github/scripts/src/caches.ts +105 -0
  318. package/packages/shared-skills/skills/github/scripts/src/checks.ts +107 -0
  319. package/packages/shared-skills/skills/github/scripts/src/codespaces.ts +230 -0
  320. package/packages/shared-skills/skills/github/scripts/src/conversation-lock.ts +50 -0
  321. package/packages/shared-skills/skills/github/scripts/src/discussion-list.ts +126 -0
  322. package/packages/shared-skills/skills/github/scripts/src/discussion-lookup.ts +127 -0
  323. package/packages/shared-skills/skills/github/scripts/src/discussions.ts +234 -0
  324. package/packages/shared-skills/skills/github/scripts/src/env.ts +100 -0
  325. package/packages/shared-skills/skills/github/scripts/src/errors.ts +79 -0
  326. package/packages/shared-skills/skills/github/scripts/src/fields.ts +27 -0
  327. package/packages/shared-skills/skills/github/scripts/src/gist-shape.ts +58 -0
  328. package/packages/shared-skills/skills/github/scripts/src/gists-write.ts +130 -0
  329. package/packages/shared-skills/skills/github/scripts/src/gists.ts +118 -0
  330. package/packages/shared-skills/skills/github/scripts/src/git-auth.ts +46 -0
  331. package/packages/shared-skills/skills/github/scripts/src/http.ts +159 -0
  332. package/packages/shared-skills/skills/github/scripts/src/issue-develop.ts +118 -0
  333. package/packages/shared-skills/skills/github/scripts/src/issues-extra.ts +135 -0
  334. package/packages/shared-skills/skills/github/scripts/src/issues-write.ts +174 -0
  335. package/packages/shared-skills/skills/github/scripts/src/issues.ts +156 -0
  336. package/packages/shared-skills/skills/github/scripts/src/keys.ts +176 -0
  337. package/packages/shared-skills/skills/github/scripts/src/labels.ts +209 -0
  338. package/packages/shared-skills/skills/github/scripts/src/merge.ts +115 -0
  339. package/packages/shared-skills/skills/github/scripts/src/poly1305.ts +22 -0
  340. package/packages/shared-skills/skills/github/scripts/src/pr-checkout.ts +92 -0
  341. package/packages/shared-skills/skills/github/scripts/src/pr-view.ts +106 -0
  342. package/packages/shared-skills/skills/github/scripts/src/project-fields.ts +144 -0
  343. package/packages/shared-skills/skills/github/scripts/src/project-item-edit.ts +153 -0
  344. package/packages/shared-skills/skills/github/scripts/src/project-items.ts +191 -0
  345. package/packages/shared-skills/skills/github/scripts/src/project-links.ts +104 -0
  346. package/packages/shared-skills/skills/github/scripts/src/project-ref.ts +145 -0
  347. package/packages/shared-skills/skills/github/scripts/src/project-state.ts +99 -0
  348. package/packages/shared-skills/skills/github/scripts/src/projects.ts +158 -0
  349. package/packages/shared-skills/skills/github/scripts/src/pulls-extra.ts +165 -0
  350. package/packages/shared-skills/skills/github/scripts/src/pulls-read.ts +176 -0
  351. package/packages/shared-skills/skills/github/scripts/src/pulls-review.ts +206 -0
  352. package/packages/shared-skills/skills/github/scripts/src/pulls-write.ts +187 -0
  353. package/packages/shared-skills/skills/github/scripts/src/raw.ts +78 -0
  354. package/packages/shared-skills/skills/github/scripts/src/read.ts +77 -0
  355. package/packages/shared-skills/skills/github/scripts/src/release-assets.ts +111 -0
  356. package/packages/shared-skills/skills/github/scripts/src/release-download.ts +151 -0
  357. package/packages/shared-skills/skills/github/scripts/src/release-write.ts +197 -0
  358. package/packages/shared-skills/skills/github/scripts/src/repo-admin.ts +112 -0
  359. package/packages/shared-skills/skills/github/scripts/src/repo-content.ts +187 -0
  360. package/packages/shared-skills/skills/github/scripts/src/repo-create.ts +139 -0
  361. package/packages/shared-skills/skills/github/scripts/src/repo-extras.ts +217 -0
  362. package/packages/shared-skills/skills/github/scripts/src/repo-list.ts +143 -0
  363. package/packages/shared-skills/skills/github/scripts/src/repo-settings.ts +176 -0
  364. package/packages/shared-skills/skills/github/scripts/src/repo-sync.ts +81 -0
  365. package/packages/shared-skills/skills/github/scripts/src/repo-url.ts +104 -0
  366. package/packages/shared-skills/skills/github/scripts/src/repos.ts +87 -0
  367. package/packages/shared-skills/skills/github/scripts/src/ruleset-shape.ts +96 -0
  368. package/packages/shared-skills/skills/github/scripts/src/rulesets-write.ts +124 -0
  369. package/packages/shared-skills/skills/github/scripts/src/rulesets.ts +80 -0
  370. package/packages/shared-skills/skills/github/scripts/src/run-download.ts +88 -0
  371. package/packages/shared-skills/skills/github/scripts/src/salsa20.ts +97 -0
  372. package/packages/shared-skills/skills/github/scripts/src/scopes.ts +165 -0
  373. package/packages/shared-skills/skills/github/scripts/src/sealed-box.ts +75 -0
  374. package/packages/shared-skills/skills/github/scripts/src/search-commits.ts +114 -0
  375. package/packages/shared-skills/skills/github/scripts/src/search.ts +116 -0
  376. package/packages/shared-skills/skills/github/scripts/src/secrets.ts +131 -0
  377. package/packages/shared-skills/skills/github/scripts/src/snappy.ts +57 -0
  378. package/packages/shared-skills/skills/github/scripts/src/status-search.ts +55 -0
  379. package/packages/shared-skills/skills/github/scripts/src/transfer.ts +97 -0
  380. package/packages/shared-skills/skills/github/scripts/src/types.ts +75 -0
  381. package/packages/shared-skills/skills/github/scripts/src/variables.ts +86 -0
  382. package/packages/shared-skills/skills/github/scripts/src/wait.ts +164 -0
  383. package/packages/shared-skills/skills/github/scripts/src/wire.ts +159 -0
  384. package/packages/shared-skills/skills/github/scripts/src/workflows.ts +144 -0
  385. package/packages/shared-skills/skills/github/scripts/src/zip.ts +104 -0
  386. package/packages/shared-skills/skills/github/scripts/surface.ts +106 -0
  387. package/packages/shared-skills/skills/github/scripts/vendor/surface/SOURCE.json +15 -0
  388. package/packages/shared-skills/skills/github/scripts/vendor/surface/cli.ts +203 -0
  389. package/packages/shared-skills/skills/github/scripts/vendor/surface/flags.ts +195 -0
  390. package/packages/shared-skills/skills/github/scripts/vendor/surface/help.ts +89 -0
  391. package/packages/shared-skills/skills/github/scripts/vendor/surface/http.ts +180 -0
  392. package/packages/shared-skills/skills/github/scripts/vendor/surface/index.ts +44 -0
  393. package/packages/shared-skills/skills/github/scripts/vendor/surface/mcp.ts +241 -0
  394. package/packages/shared-skills/skills/github/scripts/vendor/surface/schema.ts +200 -0
  395. package/packages/shared-skills/skills/github/scripts/vendor/surface/stdio.ts +54 -0
  396. package/packages/shared-skills/skills/github/scripts/vendor/surface/surface.ts +250 -0
  397. package/packages/shared-skills/skills/github/scripts/vendor/surface/tools.ts +80 -0
  398. package/packages/shared-skills/skills/programming/SKILL.md +1 -1
  399. package/packages/shared-skills/skills/ulw-execute/SKILL.md +1 -1
  400. package/dist/skills/git-master/SKILL.md +0 -114
  401. package/dist/skills/git-master/agents/openai.yaml +0 -13
  402. package/packages/omo-codex/plugin/skills/git-master/SKILL.md +0 -114
  403. package/packages/omo-codex/plugin/skills/git-master/agents/openai.yaml +0 -13
  404. package/packages/shared-skills/skills/git-master/SKILL.md +0 -114
  405. package/packages/shared-skills/skills/git-master/agents/openai.yaml +0 -13
@@ -0,0 +1,250 @@
1
+ // One definition of a skill's operations. `op` pairs a schema-typed input with a handler;
2
+ // `defineSurface` names the set. From that definition `bind` builds the typed SDK client,
3
+ // `runCli` the command line and `mcpHandler` the MCP server, so the three never drift apart.
4
+ import {
5
+ conforms,
6
+ problems,
7
+ type Infer,
8
+ type JsonSchema,
9
+ type Schema,
10
+ } from "./schema.ts";
11
+
12
+ export type Annotations = {
13
+ /** Reads only: changes nothing anywhere. */
14
+ readonly readOnly?: boolean;
15
+ /** May delete or overwrite what it touches (meaningful when not readOnly). */
16
+ readonly destructive?: boolean;
17
+ /** Calling it twice with the same input does no more than calling it once. */
18
+ readonly idempotent?: boolean;
19
+ /** Reaches beyond this machine's own state (other machines, the network). */
20
+ readonly openWorld?: boolean;
21
+ };
22
+
23
+ type OpDefinition<I, O> = {
24
+ readonly description: string;
25
+ readonly title?: string;
26
+ readonly input: Schema<I>;
27
+ readonly output?: Schema<O>;
28
+ readonly annotations?: Annotations;
29
+ readonly run: (input: I) => O | Promise<O>;
30
+ };
31
+
32
+ /** An operation: its documentation, its schemas and `invoke`, which validates and then runs. */
33
+ export type Op<I, O> = OpDefinition<I, O> & {
34
+ readonly invoke: (input: unknown) => Promise<O>;
35
+ };
36
+
37
+ export type AnyOp = {
38
+ readonly description: string;
39
+ readonly title?: string;
40
+ readonly input: { readonly json: JsonSchema };
41
+ readonly output?: { readonly json: JsonSchema };
42
+ readonly annotations?: Annotations;
43
+ readonly invoke: (input: unknown) => Promise<unknown>;
44
+ };
45
+
46
+ export type Ops = { readonly [name: string]: AnyOp | Ops };
47
+
48
+ export type SurfaceDefinition<O extends Ops> = {
49
+ readonly name: string;
50
+ readonly version: string;
51
+ readonly description?: string;
52
+ /** Guidance an MCP client hands its model: when to use these tools, and how. */
53
+ readonly instructions?: string;
54
+ /** Removes secrets from text. Everything the CLI prints and every MCP tool reply passes through it. */
55
+ readonly redact?: (text: string) => string | Promise<string>;
56
+ readonly ops: O;
57
+ };
58
+
59
+ /** A failure every surface reports the same way: `kind` is machine-readable, `hint` says what to do. */
60
+ export class SurfaceError extends Error {
61
+ override readonly name = "SurfaceError";
62
+ readonly kind: string;
63
+ readonly hint: string | undefined;
64
+ constructor(kind: string, message: string, hint?: string) {
65
+ super(message);
66
+ this.kind = kind;
67
+ this.hint = hint;
68
+ }
69
+ }
70
+
71
+ export const op = <I, O>(definition: OpDefinition<I, O>): Op<I, O> => ({
72
+ ...definition,
73
+ invoke: async (input: unknown) => {
74
+ const given = input ?? {};
75
+ if (!conforms(definition.input, given)) {
76
+ throw new SurfaceError(
77
+ "usage",
78
+ problems(definition.input.json, given).join("; "),
79
+ "see the operation's input schema (--help on the CLI, inputSchema over MCP)",
80
+ );
81
+ }
82
+ return definition.run(given);
83
+ },
84
+ });
85
+
86
+ export const defineSurface = <const O extends Ops>(
87
+ definition: SurfaceDefinition<O>,
88
+ ): SurfaceDefinition<O> => definition;
89
+
90
+ export const isOp = (value: AnyOp | Ops): value is AnyOp =>
91
+ typeof value["invoke"] === "function" &&
92
+ typeof value["description"] === "string";
93
+
94
+ export type Entry = { readonly path: readonly string[]; readonly op: AnyOp };
95
+
96
+ /** Every operation with its path, depth-first in definition order. */
97
+ export const entries = (
98
+ ops: Ops,
99
+ prefix: readonly string[] = [],
100
+ ): readonly Entry[] =>
101
+ Object.entries(ops).flatMap(([name, value]) =>
102
+ isOp(value)
103
+ ? [{ path: [...prefix, name], op: value }]
104
+ : entries(value, [...prefix, name]),
105
+ );
106
+
107
+ type Call<I, O> =
108
+ Readonly<Record<string, never>> extends I
109
+ ? (input?: I) => Promise<O>
110
+ : (input: I) => Promise<O>;
111
+
112
+ /** The typed SDK a surface defines: `client.group.op(input)`. */
113
+ export type Client<O extends Ops> = {
114
+ readonly [K in keyof O]: O[K] extends Op<infer I, infer R>
115
+ ? Call<I, Awaited<R>>
116
+ : O[K] extends Ops
117
+ ? Client<O[K]>
118
+ : never;
119
+ };
120
+
121
+ export function bind<O extends Ops>(ops: O): Client<O>;
122
+ export function bind(ops: Ops): unknown {
123
+ return Object.fromEntries(
124
+ Object.entries(ops).map(([name, value]) => [
125
+ name,
126
+ isOp(value) ? (input?: unknown) => value.invoke(input) : bind(value),
127
+ ]),
128
+ );
129
+ }
130
+
131
+ export type Described = {
132
+ readonly kind: string;
133
+ readonly message: string;
134
+ readonly hint?: string;
135
+ };
136
+
137
+ // A thrown value can be hostile to reading it (a throwing getter, a Proxy trap, a cycle, a BigInt):
138
+ // each read below falls back instead of throwing, so describing a failure never fails.
139
+ const field = (error: object, key: string): string | undefined => {
140
+ try {
141
+ const value: unknown = Reflect.get(error, key);
142
+ return typeof value === "string" && value !== "" ? value : undefined;
143
+ } catch {
144
+ return undefined;
145
+ }
146
+ };
147
+
148
+ const json = (value: object): string | undefined => {
149
+ try {
150
+ return JSON.stringify(value);
151
+ } catch {
152
+ return undefined;
153
+ }
154
+ };
155
+
156
+ /** Any thrown value as `{ kind, message, hint }`, reading `kind` and `hint` where errors carry them; it never throws. */
157
+ export const describeError = (error: unknown): Described => {
158
+ if (typeof error !== "object" || error === null) {
159
+ return { kind: "error", message: String(error) };
160
+ }
161
+ const hint = field(error, "hint");
162
+ return {
163
+ kind:
164
+ field(error, "kind") ??
165
+ field(error, "code") ??
166
+ field(error, "name") ??
167
+ "error",
168
+ message:
169
+ field(error, "message") ??
170
+ json(error) ??
171
+ "a thrown value that could not be described",
172
+ ...(hint === undefined ? {} : { hint }),
173
+ };
174
+ };
175
+
176
+ /**
177
+ * A thrown value that is not an Error (or cannot even be asked: `instanceof` throws for a revoked
178
+ * Proxy or a throwing getPrototypeOf trap), as the SurfaceError internal a boundary reports.
179
+ */
180
+ export const internalError = (value: unknown): SurfaceError =>
181
+ new SurfaceError("internal", describeError(value).message);
182
+
183
+ /**
184
+ * The secrets a skill has read, for its surface's `redact`: call `remember` where a secret is read
185
+ * and pass `redact` to `defineSurface`, so no answer the surface prints carries one.
186
+ */
187
+ export const secretTally = () => {
188
+ const secrets = new Set<string>();
189
+ return {
190
+ remember: (secret: string): string => {
191
+ if (secret !== "") secrets.add(secret);
192
+ return secret;
193
+ },
194
+ // The longest first, so a secret that contains another is redacted whole.
195
+ redact: (text: string): string =>
196
+ [...secrets]
197
+ .toSorted((a, b) => b.length - a.length)
198
+ .reduce((out, secret) => out.split(secret).join("[redacted]"), text),
199
+ };
200
+ };
201
+
202
+ type Redact = SurfaceDefinition<Ops>["redact"];
203
+ type Redactor = NonNullable<Redact>;
204
+ type Fields = { readonly [key: string]: unknown };
205
+
206
+ const isFields = (value: unknown): value is Fields =>
207
+ typeof value === "object" && value !== null && !Array.isArray(value);
208
+
209
+ // Keys are redacted as well as values: a secret is as readable as a property name as it is as a string.
210
+ const walkFields = async (redact: Redactor, record: Fields): Promise<Fields> =>
211
+ Object.fromEntries(
212
+ await Promise.all(
213
+ Object.entries(record).map(
214
+ async ([key, value]) =>
215
+ [await redact(key), await walk(redact, value)] as const,
216
+ ),
217
+ ),
218
+ );
219
+
220
+ const walk = async (redact: Redactor, value: unknown): Promise<unknown> => {
221
+ if (typeof value === "string") return redact(value);
222
+ if (Array.isArray(value))
223
+ return Promise.all(value.map((each) => walk(redact, each)));
224
+ return isFields(value) ? walkFields(redact, value) : value;
225
+ };
226
+
227
+ /** A JSON record with every key and every string in it, at any depth, passed through `redact`. */
228
+ export const redactFields = async (
229
+ redact: Redact,
230
+ record: Fields,
231
+ ): Promise<Fields> =>
232
+ redact === undefined ? record : walkFields(redact, record);
233
+
234
+ /**
235
+ * `value` as it will be serialized, with every key and string passed through `redact`. It is turned
236
+ * into plain JSON first, so a date or any other `toJSON` value is redacted in the form it is printed
237
+ * in; redacting the value, not its JSON text, also catches a secret holding characters JSON escapes.
238
+ */
239
+ export const redactValue = async (
240
+ redact: Redact,
241
+ value: unknown,
242
+ ): Promise<unknown> => {
243
+ if (redact === undefined) return value;
244
+ const text: string | undefined = JSON.stringify(value);
245
+ if (text === undefined) return undefined;
246
+ const plain: unknown = JSON.parse(text);
247
+ return walk(redact, plain);
248
+ };
249
+
250
+ export type { Infer };
@@ -0,0 +1,80 @@
1
+ // How a surface's operations become MCP tools: names, schemas, behaviour hints, and which of
2
+ // them a server exposes.
3
+ import {
4
+ entries,
5
+ type Entry,
6
+ type Ops,
7
+ type SurfaceDefinition,
8
+ } from "./surface.ts";
9
+ import type { JsonSchema } from "./schema.ts";
10
+
11
+ export type McpOptions = {
12
+ /** Serve only operations annotated readOnly. */
13
+ readonly readOnly?: boolean;
14
+ /** Serve only tools whose name matches one of these patterns (`*` is a wildcard). */
15
+ readonly only?: readonly string[];
16
+ /** Leave out tools whose name matches one of these patterns. */
17
+ readonly exclude?: readonly string[];
18
+ };
19
+
20
+ export type Tool = {
21
+ readonly name: string;
22
+ readonly title?: string;
23
+ readonly description: string;
24
+ readonly inputSchema: JsonSchema;
25
+ readonly outputSchema?: JsonSchema;
26
+ readonly annotations: JsonSchema;
27
+ };
28
+
29
+ /** The MCP tool name of an operation path: `["workspace", "move"]` is `workspace_move`. */
30
+ export const toolName = (path: readonly string[]): string => path.join("_");
31
+
32
+ const matches = (patterns: readonly string[], name: string): boolean =>
33
+ patterns.some((pattern) =>
34
+ new RegExp(
35
+ `^${pattern
36
+ .split("*")
37
+ .map((part) => part.replace(/[.+?^${}()|[\]\\]/g, "\\$&"))
38
+ .join(".*")}$`,
39
+ ).test(name),
40
+ );
41
+
42
+ const objectSchema = (schema: JsonSchema): JsonSchema =>
43
+ schema["type"] === "object"
44
+ ? schema
45
+ : { type: "object", additionalProperties: false };
46
+
47
+ export const toolOf = ({ path, op }: Entry): Tool => {
48
+ const hints = op.annotations ?? {};
49
+ const output = op.output?.json;
50
+ return {
51
+ name: toolName(path),
52
+ ...(op.title === undefined ? {} : { title: op.title }),
53
+ description: op.description,
54
+ inputSchema: objectSchema(op.input.json),
55
+ ...(output !== undefined && output["type"] === "object"
56
+ ? { outputSchema: output }
57
+ : {}),
58
+ annotations: {
59
+ ...(op.title === undefined ? {} : { title: op.title }),
60
+ readOnlyHint: hints.readOnly === true,
61
+ destructiveHint: hints.readOnly !== true && hints.destructive !== false,
62
+ idempotentHint: hints.idempotent === true,
63
+ openWorldHint: hints.openWorld === true,
64
+ },
65
+ };
66
+ };
67
+
68
+ /** The operations a server with `options` exposes, in definition order. */
69
+ export const servedEntries = (
70
+ surface: SurfaceDefinition<Ops>,
71
+ options: McpOptions,
72
+ ): readonly Entry[] =>
73
+ entries(surface.ops).filter(({ path, op }) => {
74
+ const name = toolName(path);
75
+ if (options.readOnly === true && op.annotations?.readOnly !== true)
76
+ return false;
77
+ if (options.only !== undefined && !matches(options.only, name))
78
+ return false;
79
+ return !(options.exclude !== undefined && matches(options.exclude, name));
80
+ });
@@ -66,4 +66,4 @@ Fix each, or carry it with a SPECIFIC stated reason. Rationale, workaround detec
66
66
  ```
67
67
 
68
68
  2. **Re-read your diff against every axiom and smell above**, and state in your reply which you carried and why. A test you added or reshaped must go red when its production owner breaks and match no row of `references/testing/junk-classes.md`.
69
- 3. **Fix every failure before declaring done.** When a smell fired or the review found more than two issues, load the `refactor` skill and run its protocol; never improvise a structural change. When the branch carries AI-authored patterns (broad catch, dead helpers, junk tests, vague comments), load the `remove-ai-slops` skill.
69
+ 3. **Fix every failure before declaring done.** When a smell fired or the review found more than two issues, load the `refactor` skill and run its protocol; never improvise a structural change. When the branch carries AI-authored patterns (broad catch, dead helpers, junk tests, vague comments), load the `remove-ai-slops` skill. Commit with the `git` skill; push, open the PR, wait for CI and merge with the `github` skill.
@@ -173,7 +173,7 @@ Sizing is a two-branch decision made per checkbox, before dispatch:
173
173
  - **Splittable work splits.** When the checkbox decomposes into independent pieces, dispatch them as a swarm of `quick`/`unspecified-low` workers in ONE parallel burst — many small cheap workers in parallel beat one large delegation.
174
174
  - **Cohesive hard work stays whole.** When splitting would sever shared reasoning (one algorithm, one migration, one subtle bug), send the WHOLE problem to `deep-low`, `deep-high` or `ultrabrain` as ONE delegation. Never force-split work whose parts share one insight.
175
175
 
176
- Git operations are not a category: route them to a `quick` worker and name the `git-master` skill in its brief (`load_skills` where the spawn tool takes it).
176
+ Git operations are not a category: route them to a `quick` worker and name the `git` skill in its brief (`load_skills` where the spawn tool takes it). Pull requests, CI waits and merges go through the `github` skill, never the gh CLI.
177
177
 
178
178
  Each sub-task message must include:
179
179
 
@@ -58,7 +58,7 @@ This skill is intentionally compact. The full workflow lives in `references/full
58
58
  - Track spawned agent names locally. Use `wait_agent` for mailbox signals, not proof of completion. A timeout only means no new mailbox update arrived. Treat a running child as alive.
59
59
  - While children run, surface the active subagent count, agent names, and latest `WORKING:` phase.
60
60
  - Fallback only when the child is completed without the deliverable, ack-only after `followup_task`, explicitly `BLOCKED:`, or no longer running. Then record inconclusive and respawn a smaller `fork_turns: "none"` task with the missing deliverable.
61
- - Use `git-master` for git-tracked edits: inspect recent and touched-path commit history, then commit each verified work unit atomically in the repository's observed language, scope, and message style with only that unit's files staged. Never carry verified units into a later omnibus commit.
61
+ - Use `git` for git-tracked edits: inspect recent and touched-path commit history, then commit each verified work unit atomically in the repository's observed language, scope, and message style with only that unit's files staged. Never carry verified units into a later omnibus commit. Then push, open the PR, wait for CI and merge with the `github` skill.
62
62
 
63
63
  ## Team mode: decide it, do not default to it
64
64
 
@@ -50,7 +50,7 @@ For reviewer work, use a self-contained reviewer assignment, tight scope, and ex
50
50
 
51
51
  Difficulty is orthogonal to LIGHT/HEAVY rigor. Tier roles bind via `agent_type` (v1); the deployed v2 spawn schema omits it — state the tier inside `message` there.
52
52
 
53
- Every worker message MUST carry: goal + exact files in scope; the PIN + failing-first proof before production code; constraints + project rules; verification commands; the ONE Manual-QA channel and exact artifact; for git-tracked edits, require `git-master` plus repo and touched-path commit history before commit. Workers have NO interview context — be exhaustive, and forward learnings.
53
+ Every worker message MUST carry: goal + exact files in scope; the PIN + failing-first proof before production code; constraints + project rules; verification commands; the ONE Manual-QA channel and exact artifact; for git-tracked edits, require `git` plus repo and touched-path commit history before commit. Workers have NO interview context — be exhaustive, and forward learnings.
54
54
 
55
55
  Codex subagent reliability:
56
56
  - Start every `spawn_agent` message with `TASK: <imperative assignment>`, then name `DELIVERABLE`, `SCOPE`, and `VERIFY`. State that it is an executable assignment, not a context handoff.
@@ -162,7 +162,7 @@ Loop per goal. Cap at 5 cycles per goal. Cap identical same-criterion failures a
162
162
  1. PLAN: read `criterion.scenario`, `criterion.expectedEvidence`, prior ledger entries, and safety bounds. Identify which tasks in the current wave are independent.
163
163
  2. Register atomic todos via `update_plan` — one ultra-granular step per action, `path: <action> for <criterion> - verify by <check>`. Call `update_plan` on every transition (start → `in_progress`, finish → `completed`); exactly one `in_progress`, mark completed immediately, never batch, never let the rendered plan lag behind reality.
164
164
  3. DELEGATE-IN-PARALLEL: dispatch every independent task in the wave at once via right-sized `spawn_agent` workers (Delegation table). Each worker captures evidence failing-first: when the task touches EXISTING behavior, PIN it FIRST — a characterization test that asserts the current observable behavior and PASSES on the unchanged code, as rigorous as the new-behavior scenario (exact inputs, exact observable, exact assertion). Then RED through the cheapest faithful channel — a unit test where a seam exists, an integration/e2e test where the behavior lives in wiring, or the criterion's scenario captured failing when no test seam exists — failing for the RIGHT reason (no syntax/import error). A test that cannot fail for the regression it names (mock-call assertions, pinned constants, a fixture equal to the default it must override, an expected value re-derived from the output under test) is not evidence; use the scenario as the failing proof instead. TEST-ONLY tasks (regression coverage for behavior that is already correct) have no natural RED — require a mutation proof: temporarily force the exact regression each new assertion names, capture the assertion failing, revert the mutation, capture GREEN; an assertion that stays green under its mutation is not coverage. **When the target is PROSE (a prompt, `SKILL.md`, rule, or markdown/instruction file), the "observable behavior" is NOT the wording** — never pin sentences, phrase presence/absence, or word/char counts. PIN only a value a MACHINE consumes (a parsed frontmatter field, a sentinel token a hook greps, the doc's JSON sample run through its real validator), or guard two shipped copies with one `toBe` equality; a pure-prose change with no machine consumer has NO seam, so ship it on review + Manual-QA-by-read with NO automated test (a text grep there is pretend-coverage, not a RED proof). Then the SMALLEST GREEN change (none for a TEST-ONLY task — reverting the probe is GREEN; go to integration); before GREEN work that depends on external review, PR, issue, or branch state, refresh current branch/PR/issue state, preserve existing ordering/policy, and separate compatibility detection from policy changes unless the goal explicitly asks to change policy. A GREEN far larger than the criterion implies means the proof was too coarse — instruct a split. Serialize only on a NAMED dependency.
165
- 4. INTEGRATE + CRITICAL SELF-QA + GIT CHECKPOINT (EVERY WORKER RETURN): do NOT trust the worker's report. Read the diff yourself, re-run its tests, and run LSP diagnostics on the changed files. Treat "done" as a claim to disprove. If the diff drifts, the test is hollow, or evidence is missing, RESPAWN the worker with the specific failure context. Once the work unit is verified, use `git-master` before staging: inspect recent repository commits and touched-path history to infer commit language, Conventional Commit scope, message shape, and unit size. Stage only that unit's files and commit in the observed style; do not carry verified work forward into a later omnibus commit. If no git-tracked files changed or committing is unsafe, record the no-commit reason as evidence. Forward every finding/learning to subsequent workers.
165
+ 4. INTEGRATE + CRITICAL SELF-QA + GIT CHECKPOINT (EVERY WORKER RETURN): do NOT trust the worker's report. Read the diff yourself, re-run its tests, and run LSP diagnostics on the changed files. Treat "done" as a claim to disprove. If the diff drifts, the test is hollow, or evidence is missing, RESPAWN the worker with the specific failure context. Once the work unit is verified, use `git` before staging: inspect recent repository commits and touched-path history to infer commit language, Conventional Commit scope, message shape, and unit size. Stage only that unit's files and commit in the observed style; do not carry verified work forward into a later omnibus commit. Pushes, PRs, CI waits and merges go through the `github` skill. If no git-tracked files changed or committing is unsafe, record the no-commit reason as evidence. Forward every finding/learning to subsequent workers.
166
166
  5. EXECUTE-AS-SCENARIO: ACTUALLY run the Manual-QA scenario the criterion named (channel table above). Run it yourself for the orchestrator check; for heavier flows dispatch a dedicated QA execution worker (`lazycodex-worker-medium` by default; `lazycodex-worker-high` when the QA flow itself is hard) whose ONLY job is to drive the channel and write the artifact to the named evidence path. If the scenario FAILS, respawn the implementing worker with the captured failure — do not hand-patch around it.
167
167
  6. CAPTURE: collect the observable artifact path: transcript, stdout, screenshot, assertion, status+body, diff, or parsed dump. No artifact written at the evidence path — not done; record BLOCKED and respawn QA.
168
168
  7. CLEAN (PAIRED, NEVER SKIP): execute the teardown todos before recording QA: owned PIDs (`kill`; verify `kill -0` fails), tmux sessions (`tmux kill-session -t ulw-qa-<criterion>`; confirm `tmux ls`), browser contexts (`.close()`), containers (`docker rm -f`), ports (`lsof -i :<port>` empty), QA scripts, temp paths and QA-only env vars. Close finished v1 workers with `close_agent`; V2 workers end normally, so `interrupt_agent` any still running. Apply the ultrawork Task resources rule at task end, not after each criterion. Embed read-back receipts in the evidence and complete the cleanup todos. Missing receipt → record BLOCKED, not PASS.
@@ -260,7 +260,7 @@ Structured prompt directives accepted: `OMO_ULW_LOOP_STEER: { ... }`, `omo.ulw-l
260
260
  12. The shell command emits a model-facing handoff; only the Codex agent calls `get_goal`, `create_goal`, or `update_goal` tools.
261
261
  13. NEVER record PASS while any QA-spawned process, `tmux` session, browser context, bound port, container, temp path, or open worker is still alive; the evidence MUST carry the cleanup receipt. Leftover state = BLOCKED.
262
262
  14. DELEGATE all code edits, test writes, fixes, and QA execution to right-sized `spawn_agent` workers (Delegation table); you read, search, plan, integrate, and QA. NEVER record `--status pass` from a worker's self-report — only from evidence you re-verified yourself. Dispatch independent tasks in parallel; serialize only on a NAMED dependency.
263
- 15. Every verified work unit that touched git-tracked files must leave either an atomic `git-master`-style commit hash or explicit no-commit blocker evidence before the next unit starts.
263
+ 15. Every verified work unit that touched git-tracked files must leave either an atomic `git`-style commit hash or explicit no-commit blocker evidence before the next unit starts.
264
264
 
265
265
  ## Stop Rules
266
266
  - STOP GOAL: all goals complete plus every plan criterion `pass` plus final quality gate clean. The decisive test — outranking every other consideration — is whether the completion conditions are FUNDAMENTALLY fulfilled and the user's problem ACTUALLY SOLVED in observable behavior; a `pass` ledger never substitutes for it. The moment both hold, checkpoint, report, and STOP — no extra review cycles, no evidence regeneration, no polish.
@@ -176,7 +176,7 @@ test("#given the flattened plugin cache the Codex installer produces #when sync-
176
176
  .filter((entry) => entry.isDirectory())
177
177
  .map((entry) => entry.name)
178
178
  assert.ok(syncedSkills.includes("ultrawork"), "component skill ultrawork must be synced")
179
- assert.ok(syncedSkills.includes("git-master"), "shared skill git-master must be synced from the linked package")
179
+ assert.ok(syncedSkills.includes("git"), "shared skill git must be synced from the linked package")
180
180
  } finally {
181
181
  await rm(codexHome, { recursive: true, force: true })
182
182
  }
@@ -13,7 +13,8 @@ export const expectedSkills = [
13
13
  "debugging",
14
14
  "eval-integrity",
15
15
  "frontend",
16
- "git-master",
16
+ "git",
17
+ "github",
17
18
  "init-deep",
18
19
  "lcx-contribute-bug-fix",
19
20
  "lcx-doctor",
@@ -243,18 +243,18 @@ test("#given shipped Codex skill payloads #when legacy ultraresearch alias is in
243
243
  }
244
244
  })
245
245
 
246
- test("#given synced git-master skill #when inspected #then commits and git history route through it", async () => {
246
+ test("#given synced git skill #when inspected #then commits and git history route through it and the retired name stays searchable", async () => {
247
247
  // given
248
- const skillRoot = join(root, "skills", "git-master")
248
+ const skillRoot = join(root, "skills", "git")
249
249
 
250
250
  // when
251
251
  const skill = await readFile(join(skillRoot, "SKILL.md"), "utf8")
252
252
  const interfaceMetadata = await readFile(join(skillRoot, "agents", "openai.yaml"), "utf8")
253
253
 
254
254
  // then
255
- assert.match(skill, /^---\r?\nname: git-master\r?\n/m)
256
- assert.match(interfaceMetadata, /display_name: "\(OmO\) git-master"/)
257
- assert.match(interfaceMetadata, /- "git commit"/)
255
+ assert.match(skill, /^---\r?\nname: git\r?\n/m)
256
+ assert.match(interfaceMetadata, /display_name: "\(OmO\) git"/)
257
+ assert.match(interfaceMetadata, /- "git-master"/)
258
258
  assert.match(interfaceMetadata, /- "history search"/)
259
259
  })
260
260
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // omo-codex-install:d520b4381f043adcbf6b5f434aac19d9dff26e7ea49e4b877b7a7b1129ebb42d:3a181286e59c69174578fbc129d7c7c506f4b01c5652808459635fafffe76eb4
2
+ // omo-codex-install:341e275ee3b979249735ae381939aaa2d0000e93a7560460ad60e2e666632be1:ca7d01c06b034bd8ab85ae1544bbc3ad6643ff943b6fe2efcff8d7d359411cbb
3
3
  var __esm = (fn, res, err) => () => {
4
4
  if (fn)
5
5
  try {
@@ -19243,7 +19243,7 @@ var package_default;
19243
19243
  var init_package = __esm(() => {
19244
19244
  package_default = {
19245
19245
  name: "@oh-my-opencode/omo-codex",
19246
- version: "5.1.84",
19246
+ version: "5.1.86",
19247
19247
  type: "module",
19248
19248
  private: true,
19249
19249
  description: "Codex harness adapter for oh-my-openagent. Vendored Codex plugin namespace (omo) + TypeScript installer + telemetry.",
@@ -20638,25 +20638,30 @@ async function rewriteCachedManifestRoot(pluginRoot, fromRoot, toRoot) {
20638
20638
  }
20639
20639
 
20640
20640
  // packages/omo-codex/src/install/codex-cache-payload.ts
20641
- import { cp as cp2, lstat as lstat5, mkdtemp, readdir as readdir4, rename, rm as rm4 } from "node:fs/promises";
20641
+ import { cp as cp2, lstat as lstat5, mkdtemp, readdir as readdir4, rename, rm as rm4, stat as stat4 } from "node:fs/promises";
20642
20642
  import { join as join9, relative as relative4, sep as sep4 } from "node:path";
20643
20643
  var NPM_BIN_PATH_SEGMENT = `${sep4}node_modules${sep4}.bin${sep4}`;
20644
+ var isNpmBinEntry = (pluginRoot, path) => `${sep4}${relative4(pluginRoot, path)}`.includes(NPM_BIN_PATH_SEGMENT);
20644
20645
  async function finalizeCachedPluginPayload(pluginRoot) {
20645
- await materializeDirectory(pluginRoot);
20646
+ await materializeDirectory(pluginRoot, pluginRoot);
20646
20647
  const unsupported = await unsupportedEntries(pluginRoot, pluginRoot);
20647
- if (unsupported.length > 0) {
20648
- throw new Error(`Codex plugin contains unsupported entry types: ${unsupported.sort().join(", ")}`);
20649
- }
20648
+ if (unsupported.length > 0)
20649
+ throw unsupportedEntryError(unsupported);
20650
20650
  }
20651
- async function materializeDirectory(directory) {
20651
+ var unsupportedEntryError = (paths) => new Error(`Codex plugin contains unsupported entry types: ${[...paths].sort().join(", ")}`);
20652
+ async function materializeDirectory(pluginRoot, directory) {
20652
20653
  for (const name of await readdir4(directory)) {
20653
20654
  const path = join9(directory, name);
20654
20655
  let entry = await lstat5(path);
20655
- if (path.includes(NPM_BIN_PATH_SEGMENT) && !entry.isFile() && !entry.isDirectory()) {
20656
+ if (isNpmBinEntry(pluginRoot, path) && !entry.isFile() && !entry.isDirectory()) {
20656
20657
  await rm4(path, { recursive: true, force: true });
20657
20658
  continue;
20658
20659
  }
20659
20660
  if (entry.isSymbolicLink()) {
20661
+ if (await stat4(path).catch(() => {
20662
+ return;
20663
+ }) === undefined)
20664
+ throw unsupportedEntryError([relative4(pluginRoot, path)]);
20660
20665
  const staging = await mkdtemp(join9(directory, ".omo-materialize-"));
20661
20666
  try {
20662
20667
  const copyPath = join9(staging, "entry");
@@ -20664,7 +20669,7 @@ async function materializeDirectory(directory) {
20664
20669
  recursive: true,
20665
20670
  dereference: true,
20666
20671
  filter: async (source) => {
20667
- if (!source.includes(NPM_BIN_PATH_SEGMENT))
20672
+ if (!isNpmBinEntry(pluginRoot, source))
20668
20673
  return true;
20669
20674
  const sourceEntry = await lstat5(source);
20670
20675
  return sourceEntry.isFile() || sourceEntry.isDirectory();
@@ -20678,7 +20683,7 @@ async function materializeDirectory(directory) {
20678
20683
  entry = await lstat5(path);
20679
20684
  }
20680
20685
  if (entry.isDirectory())
20681
- await materializeDirectory(path);
20686
+ await materializeDirectory(pluginRoot, path);
20682
20687
  }
20683
20688
  }
20684
20689
  async function unsupportedEntries(root, directory) {
@@ -20972,7 +20977,7 @@ function repoRootForCodexPluginSource(sourcePath) {
20972
20977
  return dirname4(packagesRoot);
20973
20978
  }
20974
20979
  // packages/omo-codex/src/install/codex-cache-prune.ts
20975
- import { lstat as lstat6, readdir as readdir6, rm as rm6, stat as stat4 } from "node:fs/promises";
20980
+ import { lstat as lstat6, readdir as readdir6, rm as rm6, stat as stat5 } from "node:fs/promises";
20976
20981
  import { join as join12 } from "node:path";
20977
20982
  async function pruneMarketplaceCache(input) {
20978
20983
  const cacheRoot = join12(input.codexHome, "plugins", "cache", input.marketplaceName);
@@ -21028,7 +21033,7 @@ async function isBrokenCacheSymlink(path) {
21028
21033
  throw error;
21029
21034
  }
21030
21035
  try {
21031
- await stat4(path);
21036
+ await stat5(path);
21032
21037
  return false;
21033
21038
  } catch (error) {
21034
21039
  if (isNodeErrorWithCode(error) && error.code === "ENOENT")
@@ -21037,7 +21042,7 @@ async function isBrokenCacheSymlink(path) {
21037
21042
  }
21038
21043
  }
21039
21044
  // packages/omo-codex/src/install/codex-cached-marketplace-manifest.ts
21040
- import { mkdir as mkdir4, rename as rename3, rm as rm7, stat as stat5, writeFile as writeFile4 } from "node:fs/promises";
21045
+ import { mkdir as mkdir4, rename as rename3, rm as rm7, stat as stat6, writeFile as writeFile4 } from "node:fs/promises";
21041
21046
  import { join as join13 } from "node:path";
21042
21047
  async function writeCachedMarketplaceManifest(input) {
21043
21048
  const marketplaceDir = join13(input.marketplaceRoot, ".agents", "plugins");
@@ -21066,7 +21071,7 @@ async function writeCachedMarketplaceManifest(input) {
21066
21071
  }
21067
21072
  async function isDirectory2(path) {
21068
21073
  try {
21069
- return (await stat5(path)).isDirectory();
21074
+ return (await stat6(path)).isDirectory();
21070
21075
  } catch (error) {
21071
21076
  if (error instanceof Error && "code" in error && error.code === "ENOENT")
21072
21077
  return false;
@@ -48,7 +48,8 @@ person, a deploy, a slow job) is **never awaited in a cell**. Subscribe first, s
48
48
  without `await`, and end the cell; the event wakes you on success and on timeout alike:
49
49
 
50
50
  ```js
51
- const flag = join(tmpdir(), `signed-in-${Date.now()}.flag`)
51
+ // given: page
52
+ const flag = `${(await import("node:os")).tmpdir()}/signed-in-${Date.now()}.flag`
52
53
  await tool.monitor({ description: "sign-in finished", path: flag, event: "create" })
53
54
  globalThis.wait = page.waitForFunction(() => !!document.querySelector("[data-user]"), undefined, { timeout: 600_000 })
54
55
  .then(() => Bun.write(flag, "ok"), (e) => Bun.write(flag, `failed: ${e.message}`))
@@ -67,6 +68,7 @@ owned (`{ interactive: true }` for controls only, `{ diff: true }` after an acti
67
68
  ## The loop (owned)
68
69
 
69
70
  ```js
71
+ const { mkdtempSync, rmSync } = await import("node:fs"), { tmpdir } = await import("node:os"), { join } = await import("node:path")
70
72
  const profile = mkdtempSync(join(tmpdir(), "omowright-"))
71
73
  globalThis.browser = await omowright.connectPipe({
72
74
  browserPath: omowright.detectBrowsers().find((b) => b.installed)?.binary, // bot-scored target: connectCloakProfile() instead
@@ -123,6 +125,7 @@ Every method, its options, the gated list and the failure codes: [references/com
123
125
  Login, CAPTCHA, OTP, a payment confirmation, a consent dialog:
124
126
 
125
127
  ```js
128
+ const flag = `${(await import("node:os")).tmpdir()}/help-${Date.now()}.flag`
126
129
  await tool.monitor({ description: "help finished", path: flag, event: "create" })
127
130
  globalThis.help = session.requestHelp({ prompt: "<what you need done>", targets: ["@e4"], timeoutMs: 300_000 })
128
131
  .then((r) => Bun.write(flag, r.outcome), (e) => Bun.write(flag, `failed: ${e.message}`))
@@ -6,10 +6,11 @@ daemon's tool surface; options are the daemon's parameter names in camelCase.
6
6
  ## Sessions
7
7
 
8
8
  ```js
9
+ // given: omowright (from the loader in SKILL.md)
9
10
  const session = await omowright.connectBrowserSkill({ name: "<task>", focused: false, browser: "<instance id>", width: 1200, height: 800 })
10
11
  session.sessionId // four letters, e.g. "ckhg"
11
12
  session.browserInstanceId // which connected browser owns the Agent Window
12
- await session.stop() // ALWAYS, on success and failure
13
+ // the task's last cell, on success and failure: await session.stop() (the examples below use this session)
13
14
  ```
14
15
 
15
16
  `browser` is needed only when more than one browser is connected (`bskDoctor()` lists them).
@@ -162,6 +163,7 @@ Traps:
162
163
  ## Tabs
163
164
 
164
165
  ```js
166
+ // given: tabId, url, id (a tab id from tabs, the URL to open, the id tabCreate returned)
165
167
  const { tabs } = await session.tabList({ scope: "user" }) // "user" | "agent" | "all"
166
168
  await session.tabBorrow(tabId) // the user confirms in the browser (60 s)
167
169
  await session.tabReturn(tabId) // stop() returns anything still borrowed
@@ -173,8 +175,9 @@ Never invent tab ids and never repeat a denied borrow.
173
175
  ## Humans
174
176
 
175
177
  ```js
178
+ const flag = `${(await import("node:os")).tmpdir()}/help-${Date.now()}.flag`
176
179
  await tool.monitor({ description: "help finished", path: flag, event: "create" }) // subscribe first
177
- globalThis.help = session.requestHelp({ prompt, title, targets: ["@e4"], completionCriteria, timeoutMs })
180
+ globalThis.help = session.requestHelp({ prompt: "Please finish the sign-in, then continue.", targets: ["@e4"], timeoutMs: 300_000 }) // optional: title, completionCriteria
178
181
  .then((r) => Bun.write(flag, r.outcome), (e) => Bun.write(flag, `failed: ${e.message}`))
179
182
  // outcome: "completed" | "continued" | "cancelled" | "timed_out" | "navigated" | "disabled"
180
183
  ```
@@ -8,6 +8,7 @@ as in the terminal. The app adds one more option:
8
8
  | `connectBuiltinBrowser()` | OmO's built-in browser for this thread: the tab the user sees beside the chat, which they can watch, take over and share | the user should see the page while you work, the task is QA of something in the app, or a sign-in the user should do themselves in a visible tab |
9
9
 
10
10
  ```js
11
+ // given: omowright, url
11
12
  const browser = await omowright.connectBuiltinBrowser()
12
13
  const [tab] = await browser.listTargets()
13
14
  const page = await browser.attachPage(tab.id)
@@ -4,7 +4,9 @@ A browser **your code launches and owns**, driven over CDP by omowright with its
4
4
  opposite of the attached engine: no user logins, full control.
5
5
 
6
6
  ```js
7
+ const { loadOmowright } = await import("<skill-root>/scripts/omowright.mjs")
7
8
  const { omowright } = await loadOmowright()
9
+ const { mkdtempSync, rmSync } = await import("node:fs"), { tmpdir } = await import("node:os"), { join } = await import("node:path")
8
10
  const profile = mkdtempSync(join(tmpdir(), "omowright-"))
9
11
  const browser = await omowright.connectPipe({
10
12
  browserPath: omowright.detectBrowsers().find((b) => b.installed)?.binary, // or omowright.findCloakBrowserPath(); never a guessed path
@@ -36,6 +36,7 @@ and the `dialog.url` getter). A listener can answer it itself, which replaces th
36
36
  dialog; a listener that only observes leaves it to the policy:
37
37
 
38
38
  ```js
39
+ // given: page, omowright
39
40
  page.on("dialog", (dialog) => dialog.type() === "prompt" ? dialog.accept("42") : dialog.dismiss())
40
41
  ```
41
42
 
@@ -56,6 +57,7 @@ When every rung fails on a login, a one-time code, or a challenge you cannot cle
56
57
  the fallback, not the failure:
57
58
 
58
59
  ```js
60
+ const flag = `${(await import("node:os")).tmpdir()}/signed-in-${Date.now()}.flag`
59
61
  await tool.monitor({ description: "sign-in finished", path: flag, event: "create" }) // subscribe first
60
62
  globalThis.handoff = omowright.requestHuman(page, {
61
63
  prompt: "Please finish the sign-in in this window.",