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:
@@ -1,89 +1,48 @@
|
||||
import { describe, it, expect } from "bun:test"
|
||||
import {
|
||||
PLUGIN_NAME,
|
||||
LEGACY_PLUGIN_NAME,
|
||||
CONFIG_BASENAME,
|
||||
LEGACY_CONFIG_BASENAME,
|
||||
LOG_FILENAME,
|
||||
CACHE_DIR_NAME,
|
||||
LEGACY_CACHE_DIR_NAME,
|
||||
} from "./plugin-identity"
|
||||
import { PLUGIN_NAME, CONFIG_BASENAME, LOG_FILENAME, CACHE_DIR_NAME } from "./plugin-identity"
|
||||
|
||||
describe("plugin-identity constants", () => {
|
||||
describe("PLUGIN_NAME", () => {
|
||||
it("equals oh-my-openagent", () => {
|
||||
// given
|
||||
|
||||
// when
|
||||
|
||||
// then
|
||||
expect(PLUGIN_NAME).toBe("oh-my-openagent")
|
||||
})
|
||||
})
|
||||
|
||||
describe("LEGACY_PLUGIN_NAME", () => {
|
||||
it("equals oh-my-opencode", () => {
|
||||
// given
|
||||
|
||||
// when
|
||||
|
||||
// then
|
||||
expect(LEGACY_PLUGIN_NAME).toBe("oh-my-opencode")
|
||||
expect(PLUGIN_NAME).toBe("oh-my-opencode")
|
||||
})
|
||||
})
|
||||
|
||||
describe("CONFIG_BASENAME", () => {
|
||||
it("equals oh-my-openagent", () => {
|
||||
// given
|
||||
|
||||
// when
|
||||
|
||||
// then
|
||||
expect(CONFIG_BASENAME).toBe("oh-my-openagent")
|
||||
})
|
||||
})
|
||||
|
||||
describe("LEGACY_CONFIG_BASENAME", () => {
|
||||
it("equals oh-my-opencode", () => {
|
||||
// given
|
||||
|
||||
// when
|
||||
|
||||
// then
|
||||
expect(LEGACY_CONFIG_BASENAME).toBe("oh-my-opencode")
|
||||
expect(CONFIG_BASENAME).toBe("oh-my-opencode")
|
||||
})
|
||||
})
|
||||
|
||||
describe("LOG_FILENAME", () => {
|
||||
it("equals oh-my-openagent.log", () => {
|
||||
it("equals oh-my-opencode.log", () => {
|
||||
// given
|
||||
|
||||
// when
|
||||
|
||||
// then
|
||||
expect(LOG_FILENAME).toBe("oh-my-openagent.log")
|
||||
expect(LOG_FILENAME).toBe("oh-my-opencode.log")
|
||||
})
|
||||
})
|
||||
|
||||
describe("CACHE_DIR_NAME", () => {
|
||||
it("equals oh-my-openagent", () => {
|
||||
// given
|
||||
|
||||
// when
|
||||
|
||||
// then
|
||||
expect(CACHE_DIR_NAME).toBe("oh-my-openagent")
|
||||
})
|
||||
})
|
||||
|
||||
describe("LEGACY_CACHE_DIR_NAME", () => {
|
||||
it("equals oh-my-opencode", () => {
|
||||
// given
|
||||
|
||||
// when
|
||||
|
||||
// then
|
||||
expect(LEGACY_CACHE_DIR_NAME).toBe("oh-my-opencode")
|
||||
expect(CACHE_DIR_NAME).toBe("oh-my-opencode")
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user