mirror of
https://github.com/instructkr/claw-code.git
synced 2026-05-18 21:41:26 +08:00
Keep G007 plugin command integration compiling
Constraint: G007 worker integrations added plugin command surfaces but left the REPL handler referencing a pre-refactor variable.\nRejected: Revert the worker plugin-command surface | the parser/degraded-config changes are part of the G007 scope and only needed a narrow compile repair.\nConfidence: high\nScope-risk: narrow\nDirective: Keep plugin CLI and REPL command paths routed through plugins_command_payload_for so malformed config can degrade consistently.\nTested: cargo check --manifest-path rust/Cargo.toml -p runtime -p tools -p rusty-claude-cli -p commands -p plugins; cargo test --manifest-path rust/Cargo.toml -p rusty-claude-cli parse_args_plugins -- --nocapture\nNot-tested: full G007 team suite pending worker completion\n\nCo-authored-by: OmX <omx@oh-my-codex.dev>
This commit is contained in:
@@ -4315,8 +4315,8 @@ mod tests {
|
|||||||
DefinitionSource, SkillOrigin, SkillRoot, SkillSlashDispatch, SlashCommand,
|
DefinitionSource, SkillOrigin, SkillRoot, SkillSlashDispatch, SlashCommand,
|
||||||
};
|
};
|
||||||
use plugins::{
|
use plugins::{
|
||||||
PluginError, PluginKind, PluginLoadFailure, PluginManager, PluginManagerConfig,
|
PluginError, PluginKind, PluginLifecycle, PluginLoadFailure, PluginManager,
|
||||||
PluginLifecycle, PluginMetadata, PluginSummary,
|
PluginManagerConfig, PluginMetadata, PluginSummary,
|
||||||
};
|
};
|
||||||
use runtime::{
|
use runtime::{
|
||||||
CompactionConfig, ConfigLoader, ContentBlock, ConversationMessage, MessageRole, Session,
|
CompactionConfig, ConfigLoader, ContentBlock, ConversationMessage, MessageRole, Session,
|
||||||
|
|||||||
@@ -5734,10 +5734,9 @@ impl LiveCli {
|
|||||||
target: Option<&str>,
|
target: Option<&str>,
|
||||||
) -> Result<bool, Box<dyn std::error::Error>> {
|
) -> Result<bool, Box<dyn std::error::Error>> {
|
||||||
let cwd = env::current_dir()?;
|
let cwd = env::current_dir()?;
|
||||||
let loader = ConfigLoader::default_for(&cwd);
|
|
||||||
let payload = plugins_command_payload_for(&cwd, action, target)?;
|
let payload = plugins_command_payload_for(&cwd, action, target)?;
|
||||||
println!("{}", payload.message);
|
println!("{}", payload.message);
|
||||||
if result.reload_runtime {
|
if payload.reload_runtime {
|
||||||
self.reload_runtime_features()?;
|
self.reload_runtime_features()?;
|
||||||
}
|
}
|
||||||
Ok(false)
|
Ok(false)
|
||||||
|
|||||||
Reference in New Issue
Block a user