Skip to content

Commit 3bf8099

Browse files
doctor: refactor OpenCode asset constants and problem discriminants
Consolidate OpenCode asset directory constants into opencode_asset module, introduce typed ProblemKind discriminant to replace fragile summary-based checks, cache repeated PathBuf computations, and extract shared label constants. Co-authored-by: SCE <sce@crocoder.dev>
1 parent 85a2e92 commit 3bf8099

2 files changed

Lines changed: 105 additions & 44 deletions

File tree

cli/src/services/default_paths.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ pub(crate) mod opencode_asset {
185185
pub const RUNTIME_FILE: &str = "runtime.ts";
186186
pub const LIB_DIR: &str = "lib";
187187
pub const PRESET_CATALOG: &str = "bash-policy-presets.json";
188+
pub const OPENCODE_AGENT_DIR: &str = "agent";
189+
pub const OPENCODE_COMMAND_DIR: &str = "command";
188190
pub const SKILLS_DIR: &str = "skills";
189191
pub const AGENTS_DIR: &str = "agents";
190192
}

0 commit comments

Comments
 (0)