From fbd20ad6e488fb3b9efc1612fdffee6e672976c1 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Sun, 14 Jun 2026 02:43:45 +0300 Subject: feat: add plugin v1 system Add manifest-driven plugin actions, event hooks, pane entrypoints, link handlers, and host APIs. Support plugin link, GitHub install, build commands, installed plugin registry, pane movement, runtime context, and plugin docs. --- src/integration/mod.rs | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'src/integration') diff --git a/src/integration/mod.rs b/src/integration/mod.rs index 5d6b8e7e..d483e503 100644 --- a/src/integration/mod.rs +++ b/src/integration/mod.rs @@ -7,9 +7,9 @@ use std::sync::{Mutex, MutexGuard, OnceLock}; use portable_pty::CommandBuilder; use serde_json::{json, Map, Value}; -use crate::layout::PaneId; - pub(crate) const HERDR_PANE_ID_ENV_VAR: &str = "HERDR_PANE_ID"; +pub(crate) const HERDR_TAB_ID_ENV_VAR: &str = "HERDR_TAB_ID"; +pub(crate) const HERDR_WORKSPACE_ID_ENV_VAR: &str = "HERDR_WORKSPACE_ID"; const PI_EXTENSION_INSTALL_NAME: &str = "herdr-agent-state.ts"; const PI_EXTENSION_ASSET: &str = include_str!("assets/pi/herdr-agent-state.ts"); const PI_INTEGRATION_VERSION: u32 = 2; @@ -360,18 +360,8 @@ pub(crate) struct HermesUninstallResult { pub updated_config: bool, } -pub(crate) fn apply_pane_env( - cmd: &mut CommandBuilder, - pane_id: PaneId, - public_pane_id: Option<&str>, -) { +pub(crate) fn apply_pane_base_env(cmd: &mut CommandBuilder) { cmd.env(crate::api::SOCKET_PATH_ENV_VAR, crate::api::socket_path()); - cmd.env( - HERDR_PANE_ID_ENV_VAR, - public_pane_id - .map(str::to_string) - .unwrap_or_else(|| format!("p_{}", pane_id.raw())), - ); } pub(crate) const INSTALL_WARNING_PREFIX: &str = "warning:"; -- cgit v1.2.3