refactor: update remaining modules to use plugin-identity constants

Update various modules to use centralized constants from plugin-identity:
- get-local-version/formatter: Use PUBLISHED_PACKAGE_NAME
- run/session-resolver: Use PUBLISHED_PACKAGE_NAME
- background-agent/task-poller: Use PUBLISHED_PACKAGE_NAME
- mcp-oauth/provider: Use PUBLISHED_PACKAGE_NAME
- auto-update-checker/constants: Use ACCEPTED_PACKAGE_NAMES
- comment-checker/downloader: Use PUBLISHED_PACKAGE_NAME
- legacy-plugin-toast/hook: Use PLUGIN_NAME
- shared/data-path: Use CACHE_DIR_NAME
- shared/external-plugin-detector: Use ACCEPTED_PACKAGE_NAMES
- shared/logger: Use LOG_FILENAME
- tools/ast-grep/downloader: Use PUBLISHED_PACKAGE_NAME
- tools/call-omo-agent/tools: Use PUBLISHED_PACKAGE_NAME
- tools/delegate-task/category-resolver: Use PUBLISHED_PACKAGE_NAME
- tools/grep/constants: Use PUBLISHED_PACKAGE_NAME
- tools/grep/downloader: Use PUBLISHED_PACKAGE_NAME
- tools/lsp/lsp-client-wrapper: Use PUBLISHED_PACKAGE_NAME

🤖 Generated with assistance of OhMyOpenCode
This commit is contained in:
YeonGyu-Kim
2026-04-10 11:16:16 +09:00
parent 41b9b4d724
commit 33ac57ba7a
16 changed files with 61 additions and 41 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
import color from "picocolors"
import { PLUGIN_NAME, PUBLISHED_PACKAGE_NAME } from "../../shared"
import type { VersionInfo } from "./types"
const SYMBOLS = {
@@ -15,7 +16,7 @@ export function formatVersionOutput(info: VersionInfo): string {
const lines: string[] = []
lines.push("")
lines.push(color.bold(color.white("oh-my-opencode Version Information")))
lines.push(color.bold(color.white(`${PLUGIN_NAME} Version Information`)))
lines.push(color.dim("─".repeat(50)))
lines.push("")
@@ -37,7 +38,7 @@ export function formatVersionOutput(info: VersionInfo): string {
break
case "outdated":
lines.push(` ${SYMBOLS.warn} ${color.yellow("Update available")}`)
lines.push(` ${color.dim("Run:")} ${color.cyan("cd ~/.config/opencode && bun update oh-my-opencode")}`)
lines.push(` ${color.dim("Run:")} ${color.cyan(`cd ~/.config/opencode && bun update ${PUBLISHED_PACKAGE_NAME}`)}`)
break
case "local-dev":
lines.push(` ${SYMBOLS.dev} ${color.cyan("Running in local development mode")}`)
+2 -1
View File
@@ -1,4 +1,5 @@
import pc from "picocolors"
import { PUBLISHED_PACKAGE_NAME } from "../../shared"
import type { OpencodeClient } from "./types"
import { serializeError } from "./events"
@@ -26,7 +27,7 @@ export async function resolveSession(options: {
for (let attempt = 1; attempt <= SESSION_CREATE_MAX_RETRIES; attempt++) {
const res = await client.session.create({
body: {
title: "oh-my-opencode run",
title: `${PUBLISHED_PACKAGE_NAME} run`,
permission: [
{ permission: "question", action: "deny" as const, pattern: "*" },
],