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
+22 -22
View File
@@ -10,7 +10,7 @@ import {
ExperimentalConfigSchema,
GitMasterConfigSchema,
HookNameSchema,
OhMyOpenCodeConfigSchema,
OhMyOpenAgentConfigSchema,
} from "./schema"
describe("disabled_mcps schema", () => {
@@ -21,7 +21,7 @@ describe("disabled_mcps schema", () => {
}
// when
const result = OhMyOpenCodeConfigSchema.safeParse(config)
const result = OhMyOpenAgentConfigSchema.safeParse(config)
// then
expect(result.success).toBe(true)
@@ -37,7 +37,7 @@ describe("disabled_mcps schema", () => {
}
// when
const result = OhMyOpenCodeConfigSchema.safeParse(config)
const result = OhMyOpenAgentConfigSchema.safeParse(config)
// then
expect(result.success).toBe(true)
@@ -53,7 +53,7 @@ describe("disabled_mcps schema", () => {
}
// when
const result = OhMyOpenCodeConfigSchema.safeParse(config)
const result = OhMyOpenAgentConfigSchema.safeParse(config)
// then
expect(result.success).toBe(true)
@@ -69,7 +69,7 @@ describe("disabled_mcps schema", () => {
}
// when
const result = OhMyOpenCodeConfigSchema.safeParse(config)
const result = OhMyOpenAgentConfigSchema.safeParse(config)
// then
expect(result.success).toBe(true)
@@ -85,7 +85,7 @@ describe("disabled_mcps schema", () => {
}
// when
const result = OhMyOpenCodeConfigSchema.safeParse(config)
const result = OhMyOpenAgentConfigSchema.safeParse(config)
// then
expect(result.success).toBe(false)
@@ -96,7 +96,7 @@ describe("disabled_mcps schema", () => {
const config = {}
// when
const result = OhMyOpenCodeConfigSchema.safeParse(config)
const result = OhMyOpenAgentConfigSchema.safeParse(config)
// then
expect(result.success).toBe(true)
@@ -112,7 +112,7 @@ describe("disabled_mcps schema", () => {
}
// when
const result = OhMyOpenCodeConfigSchema.safeParse(config)
const result = OhMyOpenAgentConfigSchema.safeParse(config)
// then
expect(result.success).toBe(false)
@@ -131,7 +131,7 @@ describe("disabled_mcps schema", () => {
}
// when
const result = OhMyOpenCodeConfigSchema.safeParse(config)
const result = OhMyOpenAgentConfigSchema.safeParse(config)
// then
expect(result.success).toBe(true)
@@ -433,7 +433,7 @@ describe("Sisyphus-Junior agent override", () => {
}
// when
const result = OhMyOpenCodeConfigSchema.safeParse(config)
const result = OhMyOpenAgentConfigSchema.safeParse(config)
// then
expect(result.success).toBe(true)
@@ -455,7 +455,7 @@ describe("Sisyphus-Junior agent override", () => {
}
// when
const result = OhMyOpenCodeConfigSchema.safeParse(config)
const result = OhMyOpenAgentConfigSchema.safeParse(config)
// then
expect(result.success).toBe(true)
@@ -480,7 +480,7 @@ describe("Sisyphus-Junior agent override", () => {
}
// when
const result = OhMyOpenCodeConfigSchema.safeParse(config)
const result = OhMyOpenAgentConfigSchema.safeParse(config)
// then
expect(result.success).toBe(true)
@@ -509,7 +509,7 @@ describe("Sisyphus-Junior agent override", () => {
}
// when
const result = OhMyOpenCodeConfigSchema.safeParse(config)
const result = OhMyOpenAgentConfigSchema.safeParse(config)
// then
expect(result.success).toBe(true)
@@ -534,7 +534,7 @@ describe("Sisyphus-Junior agent override", () => {
}
// when
const result = OhMyOpenCodeConfigSchema.safeParse(config)
const result = OhMyOpenAgentConfigSchema.safeParse(config)
// then
expect(result.success).toBe(true)
@@ -639,7 +639,7 @@ describe("OhMyOpenCodeConfigSchema - browser_automation_engine", () => {
}
// when
const result = OhMyOpenCodeConfigSchema.safeParse(input)
const result = OhMyOpenAgentConfigSchema.safeParse(input)
// then
expect(result.success).toBe(true)
@@ -651,7 +651,7 @@ describe("OhMyOpenCodeConfigSchema - browser_automation_engine", () => {
const input = {}
// when
const result = OhMyOpenCodeConfigSchema.safeParse(input)
const result = OhMyOpenAgentConfigSchema.safeParse(input)
// then
expect(result.success).toBe(true)
@@ -663,7 +663,7 @@ describe("OhMyOpenCodeConfigSchema - browser_automation_engine", () => {
const input = { browser_automation_engine: { provider: "playwright-cli" } }
// when
const result = OhMyOpenCodeConfigSchema.safeParse(input)
const result = OhMyOpenAgentConfigSchema.safeParse(input)
// then
expect(result.success).toBe(true)
@@ -677,7 +677,7 @@ describe("OhMyOpenCodeConfigSchema - hashline_edit", () => {
const input = { hashline_edit: true }
//#when
const result = OhMyOpenCodeConfigSchema.safeParse(input)
const result = OhMyOpenAgentConfigSchema.safeParse(input)
//#then
expect(result.success).toBe(true)
@@ -689,7 +689,7 @@ describe("OhMyOpenCodeConfigSchema - hashline_edit", () => {
const input = { hashline_edit: false }
//#when
const result = OhMyOpenCodeConfigSchema.safeParse(input)
const result = OhMyOpenAgentConfigSchema.safeParse(input)
//#then
expect(result.success).toBe(true)
@@ -701,7 +701,7 @@ describe("OhMyOpenCodeConfigSchema - hashline_edit", () => {
const input = { auto_update: true }
//#when
const result = OhMyOpenCodeConfigSchema.safeParse(input)
const result = OhMyOpenAgentConfigSchema.safeParse(input)
//#then
expect(result.success).toBe(true)
@@ -713,7 +713,7 @@ describe("OhMyOpenCodeConfigSchema - hashline_edit", () => {
const input = { hashline_edit: "true" }
//#when
const result = OhMyOpenCodeConfigSchema.safeParse(input)
const result = OhMyOpenAgentConfigSchema.safeParse(input)
//#then
expect(result.success).toBe(false)
@@ -928,7 +928,7 @@ describe("skills schema", () => {
}
//#when
const result = OhMyOpenCodeConfigSchema.safeParse(config)
const result = OhMyOpenAgentConfigSchema.safeParse(config)
//#then
expect(result.success).toBe(true)