diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-14 02:43:45 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-14 03:47:07 +0300 |
| commit | fbd20ad6e488fb3b9efc1612fdffee6e672976c1 (patch) | |
| tree | d21daf93241786f8aa6fde23b41cdb9e15182b79 /src/integration | |
| parent | d35c642ef36ee5ac2afe7c1b18ad5a717bc807d8 (diff) | |
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.
Diffstat (limited to 'src/integration')
| -rw-r--r-- | src/integration/mod.rs | 16 |
1 files changed, 3 insertions, 13 deletions
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:"; |
