Merge branch 'feat/plugin-acquire-lease-agent-id' into dev

Thread agentId into PluginEnvironmentAcquireLeaseParams + host call sites
so plugin-backed sandbox providers (e.g. paperclip-plugin-k8s) can scope
lease state per-agent without needing an SDK callback or DB lookup.
This commit is contained in:
2026-05-12 07:34:00 -04:00
5 changed files with 28 additions and 0 deletions
+7
View File
@@ -379,6 +379,13 @@ export interface PluginEnvironmentLease {
export interface PluginEnvironmentAcquireLeaseParams extends PluginEnvironmentDriverBaseParams {
runId: string;
/**
* UUID of the agent the run is being acquired for. Omitted only for ad-hoc
* invocations (e.g. operator-initiated environment test probes) where no
* agent context exists. Plugins should treat undefined as "no per-agent
* partitioning available" and fall back to environment-level behavior.
*/
agentId?: string;
workspaceMode?: string;
requestedCwd?: string;
}