fix(release): revert package identity to oh-my-opencode

Keep installer, config detection, schema generation, and publish workflows aligned with the long-lived oh-my-opencode package so this release does not split across two npm names.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-03-14 13:52:57 +09:00
parent 612b9c163d
commit f31f50abec
11 changed files with 32 additions and 4160 deletions
@@ -7,8 +7,7 @@ import { detectConfigFormat } from "./opencode-config-format"
import { parseOpenCodeConfigFileWithError, type OpenCodeConfig } from "./parse-opencode-config-file"
import { getPluginNameWithVersion } from "./plugin-name-with-version"
const OLD_PACKAGE_NAME = "oh-my-opencode"
const NEW_PACKAGE_NAME = "oh-my-openagent"
const PACKAGE_NAME = "oh-my-opencode"
export async function addPluginToOpenCodeConfig(currentVersion: string): Promise<ConfigMergeResult> {
try {
@@ -22,7 +21,7 @@ export async function addPluginToOpenCodeConfig(currentVersion: string): Promise
}
const { format, path } = detectConfigFormat()
const pluginEntry = await getPluginNameWithVersion(currentVersion, NEW_PACKAGE_NAME)
const pluginEntry = await getPluginNameWithVersion(currentVersion, PACKAGE_NAME)
try {
if (format === "none") {
@@ -42,13 +41,7 @@ export async function addPluginToOpenCodeConfig(currentVersion: string): Promise
const config = parseResult.config
const plugins = config.plugin ?? []
const existingIndex = plugins.findIndex(
(p) =>
p === OLD_PACKAGE_NAME ||
p.startsWith(`${OLD_PACKAGE_NAME}@`) ||
p === NEW_PACKAGE_NAME ||
p.startsWith(`${NEW_PACKAGE_NAME}@`)
)
const existingIndex = plugins.findIndex((plugin) => plugin === PACKAGE_NAME || plugin.startsWith(`${PACKAGE_NAME}@`))
if (existingIndex !== -1) {
if (plugins[existingIndex] === pluginEntry) {