refactor: rename OhMyOpenCode types to OhMyOpenAgent and centralize PACKAGE_NAME

- Rename all PascalCase types: OhMyOpenCodePlugin → OhMyOpenAgentPlugin, etc.
- 231 OhMyOpenAgent references across ~60 files
- Centralize 4 PACKAGE_NAME constants to import from plugin-identity.ts
- Update src/plugin-config.ts to use CONFIG_BASENAME from plugin-identity

Wave 3 Tasks 5 & 6 complete.
This commit is contained in:
YeonGyu-Kim
2026-03-13 18:06:12 +09:00
parent b9eda3882f
commit cdf063a0a3
65 changed files with 290 additions and 345 deletions
@@ -1,6 +1,6 @@
import { afterEach, beforeEach, describe, expect, spyOn, test } from "bun:test"
import type { OhMyOpenCodeConfig } from "../config"
import type { OhMyOpenAgentConfig } from "../config"
import { createConfigHandler } from "./config-handler"
import * as agentConfigHandler from "./agent-config-handler"
import * as commandConfigHandler from "./command-config-handler"
@@ -62,7 +62,7 @@ afterEach(() => {
describe("createConfigHandler formatter pass-through", () => {
test("preserves formatter object configured in opencode config", async () => {
// given
const pluginConfig: OhMyOpenCodeConfig = {}
const pluginConfig: OhMyOpenAgentConfig = {}
const formatterConfig = {
prettier: {
command: ["prettier", "--write"],
@@ -98,7 +98,7 @@ describe("createConfigHandler formatter pass-through", () => {
test("preserves formatter=false configured in opencode config", async () => {
// given
const pluginConfig: OhMyOpenCodeConfig = {}
const pluginConfig: OhMyOpenAgentConfig = {}
const config: Record<string, unknown> = {
formatter: false,
}