oh-my-opencode 5.0.0-beta.82 → 5.0.0-beta.84

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 (142) hide show
  1. package/.agents/skills/hyperplan/SKILL.md +1 -1
  2. package/.opencode/skills/hyperplan/SKILL.md +1 -1
  3. package/README.ja.md +2 -2
  4. package/README.ko.md +2 -2
  5. package/README.md +4 -4
  6. package/README.ru.md +2 -2
  7. package/README.zh-cn.md +2 -2
  8. package/dist/cli/index.js +707 -146
  9. package/dist/cli/install-native/index.d.ts +4 -0
  10. package/dist/cli/install-native/plan.d.ts +11 -0
  11. package/dist/cli/install-native/run-native-install.d.ts +23 -0
  12. package/dist/cli/install-native-dev/index.d.ts +4 -0
  13. package/dist/cli/native-dev-platform-flag.d.ts +5 -0
  14. package/dist/cli/native-edition-hint.d.ts +10 -0
  15. package/dist/cli/types.d.ts +3 -2
  16. package/dist/cli-node/index.js +707 -146
  17. package/dist/config/schema/hooks.d.ts +1 -0
  18. package/dist/config-migration/harness-native-rename.d.ts +3 -0
  19. package/dist/config-migration/subscription-provider-rename.d.ts +4 -0
  20. package/dist/create-hooks.d.ts +1 -0
  21. package/dist/features/native-edition-nudge/index.d.ts +2 -0
  22. package/dist/features/native-edition-nudge/tui.d.ts +33 -0
  23. package/dist/hooks/index.d.ts +1 -0
  24. package/dist/hooks/native-edition-nudge/decide.d.ts +4 -0
  25. package/dist/hooks/native-edition-nudge/hook.d.ts +26 -0
  26. package/dist/hooks/native-edition-nudge/index.d.ts +5 -0
  27. package/dist/hooks/native-edition-nudge/state.d.ts +9 -0
  28. package/dist/hooks/native-edition-nudge/types.d.ts +38 -0
  29. package/dist/index.js +1041 -387
  30. package/dist/plugin/hooks/create-core-hooks.d.ts +1 -0
  31. package/dist/plugin/hooks/create-session-hooks.d.ts +2 -1
  32. package/dist/skills/browser/ATTRIBUTION.md +25 -0
  33. package/dist/skills/browser/SKILL.md +89 -0
  34. package/dist/skills/browser/references/commands.md +90 -0
  35. package/dist/skills/browser/references/install.md +71 -0
  36. package/dist/skills/browser/references/owned-engine/README.md +42 -0
  37. package/dist/skills/browser/references/owned-engine/frames-and-humans.md +39 -0
  38. package/dist/skills/browser/references/owned-engine/ladder.md +59 -0
  39. package/dist/skills/browser/references/owned-engine/network.md +42 -0
  40. package/dist/skills/browser/references/recipes/1password.md +59 -0
  41. package/dist/skills/browser/references/remote.md +24 -0
  42. package/dist/skills/browser/scripts/browser-doctor.mjs +41 -0
  43. package/dist/skills/browser/scripts/browser-env.mjs +41 -0
  44. package/dist/skills/browser/scripts/browser-install.mjs +51 -0
  45. package/dist/tui.js +761 -100
  46. package/package.json +14 -14
  47. package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
  48. package/packages/omo-codex/plugin/components/bootstrap/dist/cli.js +84 -11
  49. package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +1 -1
  50. package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
  51. package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
  52. package/packages/omo-codex/plugin/components/comment-checker/package.json +1 -1
  53. package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
  54. package/packages/omo-codex/plugin/components/git-bash/package.json +1 -1
  55. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/hooks/hooks.json +1 -1
  56. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +1 -1
  57. package/packages/omo-codex/plugin/components/lcx/skills/lcx-contribute-bug-fix/SKILL.md +1 -1
  58. package/packages/omo-codex/plugin/components/lcx/skills/lcx-doctor/SKILL.md +3 -3
  59. package/packages/omo-codex/plugin/components/lcx/skills/lcx-report-bug/SKILL.md +5 -5
  60. package/packages/omo-codex/plugin/components/lsp/dist/.omo-runtime-manifest.json +2 -2
  61. package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
  62. package/packages/omo-codex/plugin/components/lsp/package.json +1 -1
  63. package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
  64. package/packages/omo-codex/plugin/components/rules/package.json +1 -1
  65. package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +1 -1
  66. package/packages/omo-codex/plugin/components/teammode/package.json +1 -1
  67. package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
  68. package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
  69. package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
  70. package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
  71. package/packages/omo-codex/plugin/components/ulw-execute-continuation/hooks/hooks.json +1 -1
  72. package/packages/omo-codex/plugin/components/ulw-execute-continuation/package.json +1 -1
  73. package/packages/omo-codex/plugin/components/ulw-loop/dist/cli.js +24 -10
  74. package/packages/omo-codex/plugin/components/ulw-loop/dist/spawn-guard.js +8 -6
  75. package/packages/omo-codex/plugin/components/ulw-loop/dist/surface.d.ts +2 -0
  76. package/packages/omo-codex/plugin/components/ulw-loop/dist/surface.js +21 -4
  77. package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +5 -5
  78. package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
  79. package/packages/omo-codex/plugin/components/ulw-loop/src/spawn-guard.ts +10 -5
  80. package/packages/omo-codex/plugin/components/ulw-loop/src/surface.ts +24 -6
  81. package/packages/omo-codex/plugin/components/ulw-loop/test/spawn-guard-native-reviewer.test.ts +207 -0
  82. package/packages/omo-codex/plugin/components/ulw-loop/test/spawn-guard.test.ts +6 -4
  83. package/packages/omo-codex/plugin/components/ulw-loop/test/surface.test.ts +43 -4
  84. package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +1 -1
  85. package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +1 -1
  86. package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +1 -1
  87. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +1 -1
  88. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +1 -1
  89. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +1 -1
  90. package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +1 -1
  91. package/packages/omo-codex/plugin/hooks/post-tool-use-recording-spawn-admission.json +1 -1
  92. package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +1 -1
  93. package/packages/omo-codex/plugin/hooks/pre-tool-use-guarding-ulw-loop-spawns.json +1 -1
  94. package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +1 -1
  95. package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +1 -1
  96. package/packages/omo-codex/plugin/hooks/session-start-checking-bootstrap-provisioning.json +1 -1
  97. package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +1 -1
  98. package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +1 -1
  99. package/packages/omo-codex/plugin/hooks/stop-checking-ulw-execute-continuation.json +1 -1
  100. package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +1 -1
  101. package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +1 -1
  102. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +1 -1
  103. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +1 -1
  104. package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +1 -1
  105. package/packages/omo-codex/plugin/package-lock.json +12 -12
  106. package/packages/omo-codex/plugin/package.json +1 -1
  107. package/packages/omo-codex/plugin/skills/browser/ATTRIBUTION.md +25 -0
  108. package/packages/omo-codex/plugin/skills/browser/SKILL.md +89 -0
  109. package/packages/omo-codex/plugin/skills/browser/agents/openai.yaml +2 -0
  110. package/packages/omo-codex/plugin/skills/browser/references/commands.md +90 -0
  111. package/packages/omo-codex/plugin/skills/browser/references/install.md +71 -0
  112. package/packages/omo-codex/plugin/skills/browser/references/owned-engine/README.md +42 -0
  113. package/packages/omo-codex/plugin/skills/browser/references/owned-engine/frames-and-humans.md +39 -0
  114. package/packages/omo-codex/plugin/skills/browser/references/owned-engine/ladder.md +59 -0
  115. package/packages/omo-codex/plugin/skills/browser/references/owned-engine/network.md +42 -0
  116. package/packages/omo-codex/plugin/skills/browser/references/recipes/1password.md +59 -0
  117. package/packages/omo-codex/plugin/skills/browser/references/remote.md +24 -0
  118. package/packages/omo-codex/plugin/skills/browser/scripts/browser-doctor.mjs +41 -0
  119. package/packages/omo-codex/plugin/skills/browser/scripts/browser-env.mjs +41 -0
  120. package/packages/omo-codex/plugin/skills/browser/scripts/browser-install.mjs +51 -0
  121. package/packages/omo-codex/plugin/skills/lcx-contribute-bug-fix/SKILL.md +1 -1
  122. package/packages/omo-codex/plugin/skills/lcx-doctor/SKILL.md +3 -3
  123. package/packages/omo-codex/plugin/skills/lcx-report-bug/SKILL.md +5 -5
  124. package/packages/omo-codex/plugin/test/sync-skills-test-support.mjs +1 -0
  125. package/packages/omo-codex/scripts/install-dist/install-local.mjs +90 -17
  126. package/packages/shared-skills/skills/browser/ATTRIBUTION.md +25 -0
  127. package/packages/shared-skills/skills/browser/SKILL.md +89 -0
  128. package/packages/shared-skills/skills/browser/references/commands.md +90 -0
  129. package/packages/shared-skills/skills/browser/references/install.md +71 -0
  130. package/packages/shared-skills/skills/browser/references/owned-engine/README.md +42 -0
  131. package/packages/shared-skills/skills/browser/references/owned-engine/frames-and-humans.md +39 -0
  132. package/packages/shared-skills/skills/browser/references/owned-engine/ladder.md +59 -0
  133. package/packages/shared-skills/skills/browser/references/owned-engine/network.md +42 -0
  134. package/packages/shared-skills/skills/browser/references/recipes/1password.md +59 -0
  135. package/packages/shared-skills/skills/browser/references/remote.md +24 -0
  136. package/packages/shared-skills/skills/browser/scripts/browser-doctor.mjs +41 -0
  137. package/packages/shared-skills/skills/browser/scripts/browser-env.mjs +41 -0
  138. package/packages/shared-skills/skills/browser/scripts/browser-install.mjs +51 -0
  139. package/postinstall.mjs +3 -3
  140. package/dist/cli/install-senpi/index.d.ts +0 -1
  141. package/dist/cli/senpi-edition-hint.d.ts +0 -10
  142. package/dist/cli/senpi-platform-flag.d.ts +0 -4
@@ -0,0 +1,51 @@
1
+ #!/usr/bin/env node
2
+ import { spawn } from "node:child_process"
3
+ import { platform } from "node:os"
4
+ import { resolveCli, STORE_LISTINGS, SUPPORTED_PLATFORMS } from "./browser-env.mjs"
5
+
6
+ const UNIX_INSTALL = "curl -fsSL https://raw.githubusercontent.com/Tencent/BrowserSkill/main/install.sh | sh"
7
+ const WINDOWS_INSTALL = "irm https://raw.githubusercontent.com/Tencent/BrowserSkill/main/install.ps1 | iex"
8
+
9
+ function installCommand() {
10
+ return platform() === "win32"
11
+ ? { file: "powershell", args: ["-NoProfile", "-Command", WINDOWS_INSTALL], display: WINDOWS_INSTALL }
12
+ : { file: "sh", args: ["-c", UNIX_INSTALL], display: UNIX_INSTALL }
13
+ }
14
+
15
+ function spawnInstaller({ file, args }) {
16
+ return new Promise((resolve) => {
17
+ const child = spawn(file, args, { stdio: "inherit", windowsHide: true })
18
+ child.on("error", () => resolve(1))
19
+ child.on("close", (code) => resolve(code ?? 1))
20
+ })
21
+ }
22
+
23
+ if (!SUPPORTED_PLATFORMS.has(platform())) {
24
+ console.error(`unsupported platform: ${platform()}. macOS, Linux and Windows x64 only.`)
25
+ process.exit(1)
26
+ }
27
+
28
+ if (await resolveCli()) {
29
+ console.log("bsk is already installed; run browser-doctor.mjs to check the extension.")
30
+ process.exit(0)
31
+ }
32
+
33
+ const command = installCommand()
34
+ console.log(`installing the bsk CLI with the upstream installer:\n ${command.display}\n`)
35
+ const code = await spawnInstaller(command)
36
+ if (code !== 0) {
37
+ console.error(`\ninstaller exited ${code}. Report this instead of retrying blindly.`)
38
+ process.exit(code)
39
+ }
40
+
41
+ console.log([
42
+ "",
43
+ "CLI installed. Two things remain, and only the user can do the first:",
44
+ "",
45
+ "1. Install the browser extension from the store, then enable it:",
46
+ ` Chrome: ${STORE_LISTINGS.chrome}`,
47
+ ` Edge: ${STORE_LISTINGS.edge}`,
48
+ "2. Re-run: node \"<skill-root>/scripts/browser-doctor.mjs\"",
49
+ "",
50
+ "If PATH does not pick up the CLI in this shell, use its absolute path under ~/.local/bin.",
51
+ ].join("\n"))
package/postinstall.mjs CHANGED
@@ -19,8 +19,8 @@ const OPENCODE_VERSION_PROBE_TIMEOUT_MS = 3_000;
19
19
  const OPENCODE_PLUGIN_PACKAGES = ["oh-my-opencode", "oh-my-openagent"];
20
20
  const RENAME_NOTICE =
21
21
  "oh-my-openagent: the 'omo' command is now 'omo-agent-toolkit' (the old name was removed in this major release).";
22
- const SENPI_NOTICE =
23
- "oh-my-openagent: a standalone Senpi edition (beta) is available - one 'omo' command, no OpenCode host: bun add -g omo-ai@beta";
22
+ const NATIVE_NOTICE =
23
+ "oh-my-openagent: OmO Native (beta) is the same omo as one 'omo' command, with no OpenCode host: bun add -g omo-ai@beta";
24
24
 
25
25
  /**
26
26
  * Parse version string into numeric parts
@@ -145,7 +145,7 @@ function main() {
145
145
  // npm >= 7 hides lifecycle output unless --foreground-scripts, so this notice is
146
146
  // best-effort: the reliable migration surfaces are the CHANGELOG, docs, and README.
147
147
  console.log(RENAME_NOTICE);
148
- console.log(SENPI_NOTICE);
148
+ console.log(NATIVE_NOTICE);
149
149
 
150
150
  invalidateOpenCodePluginCache();
151
151
 
@@ -1 +0,0 @@
1
- export * from "@oh-my-opencode/omo-senpi/install";
@@ -1,10 +0,0 @@
1
- import type { InstallConfig } from "./types";
2
- export declare const SENPI_EDITION_INSTALL_COMMAND = "bun add -g omo-ai@beta";
3
- export declare const SENPI_EDITION_GUIDE_URL = "https://github.com/code-yeongyu/oh-my-openagent/blob/dev/docs/guide/installation.md#senpi-edition-beta-omo-via-omo-ai";
4
- export declare const SENPI_EDITION_HINT_TITLE = "Standalone Senpi edition (beta)";
5
- export type SenpiEditionHintPaint = {
6
- readonly command: (text: string) => string;
7
- readonly link: (text: string) => string;
8
- };
9
- export declare function shouldShowSenpiEditionHint(config: Pick<InstallConfig, "hasSenpi">): boolean;
10
- export declare function senpiEditionHintLines(paint?: SenpiEditionHintPaint): readonly string[];
@@ -1,4 +0,0 @@
1
- import type { InstallPlatform } from "./types";
2
- export declare const SENPI_PLATFORM_ENV_FLAG = "OMO_ENABLE_SENPI_PLATFORM";
3
- export declare function isSenpiPlatformEnabled(env?: NodeJS.ProcessEnv): boolean;
4
- export declare function availableInstallPlatforms(env?: NodeJS.ProcessEnv): InstallPlatform[];