@xenosystem/agent-interface-ui 0.1.180 → 0.1.181

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/agent.css CHANGED
@@ -9675,6 +9675,9 @@ img.xa-fav { padding: 1px; background: #fff; }
9675
9675
  .mb-4 {
9676
9676
  margin-bottom: 1rem;
9677
9677
  }
9678
+ .mb-5 {
9679
+ margin-bottom: 1.25rem;
9680
+ }
9678
9681
  .mb-6 {
9679
9682
  margin-bottom: 1.5rem;
9680
9683
  }
@@ -10620,6 +10623,9 @@ img.xa-fav { padding: 1px; background: #fff; }
10620
10623
  .grid-cols-\[minmax\(180px\2c 0\.9fr\)_minmax\(0\2c 1\.4fr\)_118px_96px_96px\] {
10621
10624
  grid-template-columns: minmax(180px,0.9fr) minmax(0,1.4fr) 118px 96px 96px;
10622
10625
  }
10626
+ .grid-cols-\[repeat\(auto-fill\2c minmax\(210px\2c 1fr\)\)\] {
10627
+ grid-template-columns: repeat(auto-fill,minmax(210px,1fr));
10628
+ }
10623
10629
  .grid-rows-\[0fr\] {
10624
10630
  grid-template-rows: 0fr;
10625
10631
  }
@@ -0,0 +1,27 @@
1
+ export interface AgentChangesFile {
2
+ path: string;
3
+ relativePath: string;
4
+ status: string;
5
+ additions?: number | undefined;
6
+ deletions?: number | undefined;
7
+ }
8
+ export interface AgentChangesState {
9
+ isGitRepo: boolean;
10
+ branch?: string | undefined;
11
+ files: AgentChangesFile[];
12
+ loaded: boolean;
13
+ loading: boolean;
14
+ error: string | null;
15
+ commitMessage: string;
16
+ onCommitMessageChange: (message: string) => void;
17
+ onRefresh: () => void;
18
+ onOpenDiff: (relativePath: string) => void;
19
+ onStageAll: () => void;
20
+ onCommit: () => void;
21
+ }
22
+ /** What changed in this session's folder. Diffs open beside the chat, where they take comments. */
23
+ export declare function AgentChangesPanel({ changes, refreshKey }: {
24
+ changes: AgentChangesState;
25
+ refreshKey: string;
26
+ }): import("react").JSX.Element;
27
+ //# sourceMappingURL=AgentChangesPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentChangesPanel.d.ts","sourceRoot":"","sources":["../../../src/components/agent/AgentChangesPanel.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC/B;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,KAAK,EAAE,gBAAgB,EAAE,CAAA;IACzB,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,qBAAqB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IAChD,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,UAAU,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB;AAED,mGAAmG;AACnG,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE;IAAE,OAAO,EAAE,iBAAiB,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,+BAiD5G"}
@@ -0,0 +1,12 @@
1
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
+ import { useEffect, useRef } from 'react';
3
+ /** What changed in this session's folder. Diffs open beside the chat, where they take comments. */
4
+ export function AgentChangesPanel({ changes, refreshKey }) {
5
+ // Through a ref: onRefresh changes with every result, and refreshing on that would never stop.
6
+ const refresh = useRef(changes.onRefresh);
7
+ refresh.current = changes.onRefresh;
8
+ useEffect(() => { refresh.current(); }, [refreshKey]);
9
+ const clean = changes.loaded && changes.isGitRepo && changes.files.length === 0;
10
+ return (_jsxs("div", { className: "h-full min-h-0 flex flex-col", "data-xeno-changes-panel": "true", children: [_jsxs("div", { className: "flex-shrink-0 px-3 py-2 text-[11px] text-white/45 border-b border-white/[0.06]", children: [changes.branch || 'Changes', changes.files.length > 0 ? ` · ${changes.files.length} changed` : ''] }), changes.error && _jsx("p", { role: "alert", className: "flex-shrink-0 px-3 py-2 text-[11px] text-red-300/80", children: changes.error }), _jsxs("div", { className: "flex-1 min-h-0 overflow-y-auto", children: [changes.loaded && !changes.isGitRepo && _jsx("p", { className: "px-3 py-3 text-[12px] text-white/40", children: "This folder is not a git repository." }), clean && _jsx("p", { className: "px-3 py-3 text-[12px] text-white/40", children: "No changes." }), changes.files.map((file) => (_jsxs("button", { type: "button", onClick: () => changes.onOpenDiff(file.relativePath), className: "w-full flex items-center justify-between gap-2 px-3 py-1.5 text-left text-[12px] text-white/70 hover:bg-white/[0.04]", "data-xeno-changes-file": file.relativePath, children: [_jsx("span", { className: "min-w-0 truncate", title: file.relativePath, children: file.relativePath }), _jsxs("span", { className: "flex-shrink-0 text-[11px]", children: [typeof file.additions === 'number' && _jsxs("span", { className: "text-emerald-300/75", children: ["+", file.additions] }), ' ', typeof file.deletions === 'number' && _jsxs("span", { className: "text-red-300/75", children: ["-", file.deletions] })] })] }, `${file.status}:${file.path}`)))] }), changes.files.length > 0 && (_jsxs("div", { className: "flex-shrink-0 border-t border-white/[0.06] p-2 space-y-1.5", children: [_jsx("input", { value: changes.commitMessage, onChange: (event) => changes.onCommitMessageChange(event.target.value), placeholder: "Commit message", "aria-label": "Commit message", className: "h-8 w-full rounded-[4px] border border-white/[0.07] bg-black/20 px-2 text-[12px] text-white/80 outline-none" }), _jsxs("div", { className: "flex gap-1.5", children: [_jsx("button", { type: "button", onClick: changes.onStageAll, disabled: changes.loading, className: "h-7 flex-1 rounded-[4px] border border-white/[0.08] text-[11px] text-white/70 disabled:opacity-40", children: "Stage all" }), _jsx("button", { type: "button", onClick: changes.onCommit, disabled: changes.loading || !changes.commitMessage.trim(), className: "h-7 flex-1 rounded-[4px] bg-white/[0.08] text-[11px] text-white/80 disabled:opacity-40", children: "Commit" })] })] }))] }));
11
+ }
12
+ //# sourceMappingURL=AgentChangesPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentChangesPanel.js","sourceRoot":"","sources":["../../../src/components/agent/AgentChangesPanel.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAyBzC,mGAAmG;AACnG,MAAM,UAAU,iBAAiB,CAAC,EAAE,OAAO,EAAE,UAAU,EAAsD;IAC3G,+FAA+F;IAC/F,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;IACzC,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC,SAAS,CAAA;IACnC,SAAS,CAAC,GAAG,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAA,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAA;IACpD,MAAM,KAAK,GAAG,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,CAAA;IAE/E,OAAO,CACL,eAAK,SAAS,EAAC,8BAA8B,6BAAyB,MAAM,aAC1E,eAAK,SAAS,EAAC,gFAAgF,aAC5F,OAAO,CAAC,MAAM,IAAI,SAAS,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,OAAO,CAAC,KAAK,CAAC,MAAM,UAAU,CAAC,CAAC,CAAC,EAAE,IAC9F,EACL,OAAO,CAAC,KAAK,IAAI,YAAG,IAAI,EAAC,OAAO,EAAC,SAAS,EAAC,qDAAqD,YAAE,OAAO,CAAC,KAAK,GAAK,EACrH,eAAK,SAAS,EAAC,gCAAgC,aAC5C,OAAO,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,SAAS,IAAI,YAAG,SAAS,EAAC,qCAAqC,qDAAyC,EACnI,KAAK,IAAI,YAAG,SAAS,EAAC,qCAAqC,4BAAgB,EAC3E,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAC3B,kBAEE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,EACpD,SAAS,EAAC,sHAAsH,4BACxG,IAAI,CAAC,YAAY,aAEzC,eAAM,SAAS,EAAC,kBAAkB,EAAC,KAAK,EAAE,IAAI,CAAC,YAAY,YAAG,IAAI,CAAC,YAAY,GAAQ,EACvF,gBAAM,SAAS,EAAC,2BAA2B,aACxC,OAAO,IAAI,CAAC,SAAS,KAAK,QAAQ,IAAI,gBAAM,SAAS,EAAC,qBAAqB,kBAAG,IAAI,CAAC,SAAS,IAAQ,EAAE,GAAG,EACzG,OAAO,IAAI,CAAC,SAAS,KAAK,QAAQ,IAAI,gBAAM,SAAS,EAAC,iBAAiB,kBAAG,IAAI,CAAC,SAAS,IAAQ,IAC5F,KAVF,GAAG,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,IAAI,EAAE,CAW3B,CACV,CAAC,IACE,EACL,OAAO,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,CAC3B,eAAK,SAAS,EAAC,4DAA4D,aACzE,gBACE,KAAK,EAAE,OAAO,CAAC,aAAa,EAC5B,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,qBAAqB,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EACtE,WAAW,EAAC,gBAAgB,gBACjB,gBAAgB,EAC3B,SAAS,EAAC,6GAA6G,GACvH,EACF,eAAK,SAAS,EAAC,cAAc,aAC3B,iBAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,OAAO,CAAC,UAAU,EAAE,QAAQ,EAAE,OAAO,CAAC,OAAO,EAAE,SAAS,EAAC,mGAAmG,0BAAmB,EAC9M,iBAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,OAAO,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,EAAE,EAAE,SAAS,EAAC,wFAAwF,uBAAgB,IAC3N,IACF,CACP,IACG,CACP,CAAA;AACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AgentInterface.d.ts","sourceRoot":"","sources":["../../../src/components/agent/AgentInterface.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAwD,KAAK,WAAW,EAAE,MAAM,8CAA8C,CAAA;AAWrI,OAAO,KAA4D,MAAM,OAAO,CAAA;AAgHhF,OAAO,EAEL,KAAK,KAAK,IAAI,mBAAmB,EACjC,KAAK,iBAAiB,IAAI,+BAA+B,EACzD,KAAK,iBAAiB,IAAI,+BAA+B,EACzD,KAAK,0BAA0B,IAAI,wCAAwC,EAC3E,KAAK,mBAAmB,IAAI,0BAA0B,EACtD,KAAK,IAAI,IAAI,kBAAkB,EAC/B,KAAK,SAAS,IAAI,uBAAuB,EACzC,KAAK,YAAY,IAAI,iBAAiB,EACvC,MAAM,gCAAgC,CAAA;AAmBvC,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,sCAAsC,CAAA;AA+sF7C,MAAM,MAAM,YAAY,GAAG,0BAA0B,CAAA;AACrD,MAAM,MAAM,iBAAiB,GAAG,+BAA+B,CAAA;AAC/D,MAAM,MAAM,iBAAiB,GAAG,+BAA+B,CAAA;AAC/D,MAAM,MAAM,0BAA0B,GAAG,wCAAwC,CAAA;AACjF,MAAM,MAAM,YAAY,GAAG,iBAAiB,CAAA;AAC5C,MAAM,MAAM,KAAK,GAAG,mBAAmB,CAAA;AACvC,MAAM,MAAM,IAAI,GAAG,kBAAkB,CAAA;AACrC,MAAM,MAAM,SAAS,GAAG,uBAAuB,CAAA;AAo1H/C,MAAM,WAAW,mBAAmB;IAClC,OAAO,CAAC,EAAE,UAAU,GAAG,oBAAoB,CAAA;IAC3C,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,iBAAiB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IACpC,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,WAAW,CAAA;IAChC,cAAc,CAAC,EAAE;QACf,WAAW,CAAC,EAAE,qBAAqB,CAAA;QACnC,UAAU,CAAC,EAAE,qBAAqB,CAAA;QAClC,UAAU,CAAC,EAAE,qBAAqB,CAAA;QAClC,OAAO,CAAC,EAAE,qBAAqB,CAAA;KAChC,CAAA;CACF;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,OAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,GACf,GAAE,mBAAwB,qBAovM1B"}
1
+ {"version":3,"file":"AgentInterface.d.ts","sourceRoot":"","sources":["../../../src/components/agent/AgentInterface.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAwD,KAAK,WAAW,EAAE,MAAM,8CAA8C,CAAA;AAWrI,OAAO,KAA4D,MAAM,OAAO,CAAA;AAgHhF,OAAO,EAEL,KAAK,KAAK,IAAI,mBAAmB,EACjC,KAAK,iBAAiB,IAAI,+BAA+B,EACzD,KAAK,iBAAiB,IAAI,+BAA+B,EACzD,KAAK,0BAA0B,IAAI,wCAAwC,EAC3E,KAAK,mBAAmB,IAAI,0BAA0B,EACtD,KAAK,IAAI,IAAI,kBAAkB,EAC/B,KAAK,SAAS,IAAI,uBAAuB,EACzC,KAAK,YAAY,IAAI,iBAAiB,EACvC,MAAM,gCAAgC,CAAA;AAmBvC,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,sCAAsC,CAAA;AAwtF7C,MAAM,MAAM,YAAY,GAAG,0BAA0B,CAAA;AACrD,MAAM,MAAM,iBAAiB,GAAG,+BAA+B,CAAA;AAC/D,MAAM,MAAM,iBAAiB,GAAG,+BAA+B,CAAA;AAC/D,MAAM,MAAM,0BAA0B,GAAG,wCAAwC,CAAA;AACjF,MAAM,MAAM,YAAY,GAAG,iBAAiB,CAAA;AAC5C,MAAM,MAAM,KAAK,GAAG,mBAAmB,CAAA;AACvC,MAAM,MAAM,IAAI,GAAG,kBAAkB,CAAA;AACrC,MAAM,MAAM,SAAS,GAAG,uBAAuB,CAAA;AAy2H/C,MAAM,WAAW,mBAAmB;IAClC,OAAO,CAAC,EAAE,UAAU,GAAG,oBAAoB,CAAA;IAC3C,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,iBAAiB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IACpC,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,WAAW,CAAA;IAChC,cAAc,CAAC,EAAE;QACf,WAAW,CAAC,EAAE,qBAAqB,CAAA;QACnC,UAAU,CAAC,EAAE,qBAAqB,CAAA;QAClC,UAAU,CAAC,EAAE,qBAAqB,CAAA;QAClC,OAAO,CAAC,EAAE,qBAAqB,CAAA;KAChC,CAAA;CACF;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,OAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,GACf,GAAE,mBAAwB,qBAywM1B"}
@@ -53,6 +53,8 @@ import { useAuthStore } from '@xenosystem/agent-conversation/stores/authStore';
53
53
  import { cycleAgentSessionTabId, nextAgentSessionTabAfterClose, normalizeAgentSessionTabState, orderOpenAgentSessionConversations, reorderAgentSessionTabIds, resolveAgentSessionTabShortcut, } from '@xenosystem/agent-conversation/sessionTabs';
54
54
  import { XenoAgentProductHeader, } from '../product/XenoAgentProductHeader.js';
55
55
  import { XenoAgentSessionTabs, } from '../product/XenoAgentSessionTabs.js';
56
+ import { AgentChangesPanel } from './AgentChangesPanel.js';
57
+ import { toolFillsTheScreen } from './workbenchTools.js';
56
58
  import { dropFromSplit, followActiveSession, openInSplit } from '../product/sessionSplit.js';
57
59
  import { addDiffComment, diffCommentsPrompt, removeDiffComment } from './diffComments.js';
58
60
  import { XenoAgentWorkspaceSelector } from '../product/XenoAgentWorkspaceSelector.js';
@@ -1627,10 +1629,12 @@ function clampRightPanelWidth(width) {
1627
1629
  : Math.max(RIGHT_PANEL_MIN_WIDTH, Math.min(RIGHT_PANEL_MAX_WIDTH, window.innerWidth - 360));
1628
1630
  return Math.min(viewportAwareMax, Math.max(RIGHT_PANEL_MIN_WIDTH, Math.round(width)));
1629
1631
  }
1630
- function FolderSidebar({ conversationId, workspaceId, rootDirectory, allowedDirectories, onOpenFolder, onClose, onOpenFile, activeFilePath, terminalCapabilityEnabled, terminalReady, xenoTuiReady, xenoTuiUnavailableReason, providerSessionTuiReady, providerSessionTuiUnavailableReason, providerSessionTuiLabel, resolvedTerminalCwd, terminalTabs, tabRequest, onPtyInput, onPtyResize, onCreateTerminal, onCreateXenoTui, onCreateProviderTui, onCloseTerminal, onClearTerminal, onRestartTerminal, onStopTerminal, width, onResizeStart, }) {
1632
+ function FolderSidebar({ conversationId, workspaceId, rootDirectory, allowedDirectories, onOpenFolder, onClose, onOpenFile, activeFilePath, terminalCapabilityEnabled, terminalReady, xenoTuiReady, xenoTuiUnavailableReason, providerSessionTuiReady, providerSessionTuiUnavailableReason, providerSessionTuiLabel, resolvedTerminalCwd, terminalTabs, tabRequest, changes, changesRefreshKey, onPtyInput, onPtyResize, onCreateTerminal, onCreateXenoTui, onCreateProviderTui, onCloseTerminal, onClearTerminal, onRestartTerminal, onStopTerminal, width, onResizeStart, }) {
1631
1633
  const [rightPanelTab, setRightPanelTab] = useState('files');
1632
1634
  const [browserTabs, setBrowserTabs] = useState(() => loadCachedRightPanelBrowserTabs());
1633
1635
  useEffect(() => {
1636
+ if (tabRequest?.tab === 'changes')
1637
+ setRightPanelTab('changes');
1634
1638
  if (tabRequest?.tab === 'browser' && browserTabs[0])
1635
1639
  setRightPanelTab(`browser:${browserTabs[0].id}`);
1636
1640
  if (tabRequest?.tab === 'terminal') {
@@ -1826,6 +1830,7 @@ function FolderSidebar({ conversationId, workspaceId, rootDirectory, allowedDire
1826
1830
  }, [browserTabs, rightPanelTab]);
1827
1831
  return (_jsxs("aside", { className: "relative flex-shrink-0 bg-[#0c0c0e] border-l border-white/[0.06] flex flex-col overflow-hidden", style: { width }, children: [_jsxs("div", { role: "separator", "aria-orientation": "vertical", "aria-label": "Resize right panel", onPointerDown: onResizeStart, className: "absolute left-0 top-0 bottom-0 z-[1000] w-4 -translate-x-2 cursor-col-resize group touch-none", children: [_jsx("div", { className: "absolute left-1/2 top-0 bottom-0 w-px -translate-x-1/2 bg-white/[0.08] group-hover:bg-white/30 transition-colors" }), _jsx("div", { className: "absolute left-1/2 top-1/2 h-10 w-1 -translate-x-1/2 -translate-y-1/2 rounded-full bg-transparent group-hover:bg-white/20 transition-colors" })] }), _jsxs("div", { className: "h-10 flex-shrink-0 border-b border-white/[0.06] bg-[#0f0f11] flex items-center", children: [_jsx("div", { className: "h-full w-10 flex-shrink-0 inline-flex items-center justify-center border-r border-white/[0.045] text-white/34", "aria-hidden": "true", children: _jsx(Package, { className: "w-3.5 h-3.5", strokeWidth: 1.8 }) }), _jsx("div", { className: "h-full min-w-0 flex-1 overflow-hidden", children: _jsxs("div", { className: "h-full flex items-center gap-1 px-1.5 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", children: [([
1828
1832
  { id: 'files', label: 'Files', icon: FolderOpen, title: effectiveRoot || 'Files' },
1833
+ { id: 'changes', label: 'Changes', icon: GitCompareArrows, title: 'Changes (Ctrl+Shift+D)' },
1829
1834
  ]).map((tab) => {
1830
1835
  const Icon = tab.icon;
1831
1836
  const active = rightPanelTab === tab.id;
@@ -1932,7 +1937,7 @@ function FolderSidebar({ conversationId, workspaceId, rootDirectory, allowedDire
1932
1937
  return (_jsx("div", { className: visible
1933
1938
  ? 'absolute inset-0'
1934
1939
  : 'absolute inset-0 invisible pointer-events-none opacity-0', "aria-hidden": !visible, children: _jsx(React.Suspense, { fallback: _jsx("div", { className: "h-full bg-[#08080a] px-3 py-2 text-[12px] text-white/40", children: "Loading browser..." }), children: _jsx(AgentWorkspaceBrowserPanel, { browserId: tab.id, browserLabel: tab.label, workspaceId: workspaceId, conversationId: conversationId, visible: visible, rootDirectory: effectiveRoot || rootDirectory, allowedDirectories: effectiveAllowedDirectories, onOpenFolder: onOpenFolder }) }) }, tab.id));
1935
- }), rightPanelTab === 'files' && effectiveRoot && (_jsxs("div", { children: [_jsxs("button", { type: "button", onClick: () => handleToggleDirectory(effectiveRoot), className: "w-full flex items-center gap-1.5 px-2 py-1.5 text-white/68 hover:text-white hover:bg-white/[0.04] rounded-md transition-colors text-left", children: [_jsx(ChevronDownIcon, { className: `w-3 h-3 flex-shrink-0 transition-transform ${expandedPaths.has(effectiveRoot) ? '' : '-rotate-90'}` }), expandedPaths.has(effectiveRoot) ? (_jsx(FolderOpen, { className: "w-3.5 h-3.5 flex-shrink-0 text-white/55", strokeWidth: 1.8 })) : (_jsx(Folder, { className: "w-3.5 h-3.5 flex-shrink-0 text-white/45", strokeWidth: 1.8 })), _jsx("span", { className: "min-w-0 truncate text-[12px]", children: directoryLeafName(effectiveRoot) })] }), expandedPaths.has(effectiveRoot) && (_jsxs("div", { className: "mt-0.5", children: [isRootLoading && (_jsx(FolderTreeLoadingSkeleton, { depth: 1, rows: 5 })), !isRootLoading && loadErrors[effectiveRoot] && (_jsx("div", { className: "pl-7 py-1 text-[11px] text-red-300/45", children: loadErrors[effectiveRoot] })), !isRootLoading && !loadErrors[effectiveRoot] && (entriesByPath[effectiveRoot] || []).map((entry) => (_jsx(FolderTreeNode, { entry: entry, depth: 1, expandedPaths: expandedPaths, loadingPaths: loadingPaths, loadErrors: loadErrors, entriesByPath: entriesByPath, onToggleDirectory: handleToggleDirectory, onOpenFile: onOpenFile, activeFilePath: activeFilePath }, entry.path)))] }))] })), rightPanelTab === 'files' && !effectiveRoot && (_jsxs("div", { className: "mt-2 rounded-md border border-white/[0.06] bg-white/[0.02] p-3", children: [_jsx("p", { className: "text-[11px] uppercase tracking-[0.18em] text-white/28", children: "Folder Explorer" }), _jsx("p", { className: "mt-2 text-[12px] leading-relaxed text-white/42", children: "Open a folder for this conversation to browse files here and send them into the editor." }), _jsxs("div", { className: "mt-3 space-y-2", children: [_jsx(SkeletonBlock, { className: "h-3 w-[78%]" }), _jsx(SkeletonBlock, { className: "h-3 w-[66%]" }), _jsx(SkeletonBlock, { className: "h-3 w-[72%]" })] })] })), activeTerminalTabId && (_jsx(React.Suspense, { fallback: _jsx("div", { className: "h-full bg-[#050506] px-3 py-2 font-mono text-[12px] text-white/40", children: "Loading terminal..." }), children: _jsx(AgentPtyTerminalPanel, { terminalKey: activeTerminal?.id || null, terminalId: activeTerminal?.terminalId || null, output: activeTerminal?.output || '', terminalCapabilityEnabled: activeTerminal?.kind === 'provider-session' || activeTerminal?.kind === 'xeno-session' ? true : terminalCapabilityEnabled,
1940
+ }), rightPanelTab === 'changes' && _jsx(AgentChangesPanel, { changes: changes, refreshKey: changesRefreshKey }), rightPanelTab === 'files' && effectiveRoot && (_jsxs("div", { children: [_jsxs("button", { type: "button", onClick: () => handleToggleDirectory(effectiveRoot), className: "w-full flex items-center gap-1.5 px-2 py-1.5 text-white/68 hover:text-white hover:bg-white/[0.04] rounded-md transition-colors text-left", children: [_jsx(ChevronDownIcon, { className: `w-3 h-3 flex-shrink-0 transition-transform ${expandedPaths.has(effectiveRoot) ? '' : '-rotate-90'}` }), expandedPaths.has(effectiveRoot) ? (_jsx(FolderOpen, { className: "w-3.5 h-3.5 flex-shrink-0 text-white/55", strokeWidth: 1.8 })) : (_jsx(Folder, { className: "w-3.5 h-3.5 flex-shrink-0 text-white/45", strokeWidth: 1.8 })), _jsx("span", { className: "min-w-0 truncate text-[12px]", children: directoryLeafName(effectiveRoot) })] }), expandedPaths.has(effectiveRoot) && (_jsxs("div", { className: "mt-0.5", children: [isRootLoading && (_jsx(FolderTreeLoadingSkeleton, { depth: 1, rows: 5 })), !isRootLoading && loadErrors[effectiveRoot] && (_jsx("div", { className: "pl-7 py-1 text-[11px] text-red-300/45", children: loadErrors[effectiveRoot] })), !isRootLoading && !loadErrors[effectiveRoot] && (entriesByPath[effectiveRoot] || []).map((entry) => (_jsx(FolderTreeNode, { entry: entry, depth: 1, expandedPaths: expandedPaths, loadingPaths: loadingPaths, loadErrors: loadErrors, entriesByPath: entriesByPath, onToggleDirectory: handleToggleDirectory, onOpenFile: onOpenFile, activeFilePath: activeFilePath }, entry.path)))] }))] })), rightPanelTab === 'files' && !effectiveRoot && (_jsxs("div", { className: "mt-2 rounded-md border border-white/[0.06] bg-white/[0.02] p-3", children: [_jsx("p", { className: "text-[11px] uppercase tracking-[0.18em] text-white/28", children: "Folder Explorer" }), _jsx("p", { className: "mt-2 text-[12px] leading-relaxed text-white/42", children: "Open a folder for this conversation to browse files here and send them into the editor." }), _jsxs("div", { className: "mt-3 space-y-2", children: [_jsx(SkeletonBlock, { className: "h-3 w-[78%]" }), _jsx(SkeletonBlock, { className: "h-3 w-[66%]" }), _jsx(SkeletonBlock, { className: "h-3 w-[72%]" })] })] })), activeTerminalTabId && (_jsx(React.Suspense, { fallback: _jsx("div", { className: "h-full bg-[#050506] px-3 py-2 font-mono text-[12px] text-white/40", children: "Loading terminal..." }), children: _jsx(AgentPtyTerminalPanel, { terminalKey: activeTerminal?.id || null, terminalId: activeTerminal?.terminalId || null, output: activeTerminal?.output || '', terminalCapabilityEnabled: activeTerminal?.kind === 'provider-session' || activeTerminal?.kind === 'xeno-session' ? true : terminalCapabilityEnabled,
1936
1941
  // A created control-TUI tab remains renderable even after its
1937
1942
  // process exits or its lane moves to reconciliation. Otherwise
1938
1943
  // the useful vendor diagnostics are replaced by the unrelated
@@ -2256,7 +2261,7 @@ function relativeDate(ts) {
2256
2261
  const months = Math.floor(days / 30);
2257
2262
  return `${months}mo`;
2258
2263
  }
2259
- function Sidebar({ collapsed, onToggleCollapse, onOpenSettings, workspaces, setWorkspaces, inboxAgentId, isInboxSelected, selectedInboxConversationId, onSelectInbox, onSelectInboxConversation, selectedAgentId, onSelectAgent, selectedConversationId, onSelectConversation, agentRunAvailability, onSelectPlugins, onSelectKnowledge, onSelectSettings, onSelectProjects, onSelectTeams, onSelectAgents, onSelectScheduled, onStartProjectChat, onOpenSearchResultInEditor, viewMode, isSettingsOpen, }) {
2264
+ function Sidebar({ collapsed, onToggleCollapse, onOpenSettings, workspaces, setWorkspaces, inboxAgentId, isInboxSelected, selectedInboxConversationId, onSelectInbox, onSelectInboxConversation, selectedAgentId, onSelectAgent, selectedConversationId, onSelectConversation, agentRunAvailability, onSelectPlugins, onSelectKnowledge, onSelectTools, onSelectSettings, onSelectProjects, onSelectTeams, onSelectAgents, onSelectScheduled, onStartProjectChat, onOpenSearchResultInEditor, viewMode, isSettingsOpen, }) {
2260
2265
  const [isAddingWorkspace, setIsAddingWorkspace] = useState(false);
2261
2266
  const [newWorkspaceName, setNewWorkspaceName] = useState('');
2262
2267
  const [addingTeamToWorkspace, setAddingTeamToWorkspace] = useState(null);
@@ -3607,7 +3612,7 @@ function Sidebar({ collapsed, onToggleCollapse, onOpenSettings, workspaces, setW
3607
3612
  ? 'bg-white/[0.08] text-white'
3608
3613
  : 'text-[#7f7f86] hover:text-white hover:bg-white/[0.04]'}`, title: "Teams", children: _jsx(Users, { className: "w-4 h-4" }) }), _jsx("button", { type: "button", onClick: onSelectAgents, className: `p-1.5 rounded-[4px] transition-colors cursor-pointer ${viewMode === 'agents'
3609
3614
  ? 'bg-white/[0.08] text-white'
3610
- : 'text-[#7f7f86] hover:text-white hover:bg-white/[0.04]'}`, title: "Agents", children: _jsx(Bot, { className: "w-4 h-4" }) }), _jsx("button", { type: "button", onClick: onSelectKnowledge, className: "p-1.5 rounded-[4px] text-[#7f7f86] hover:text-white hover:bg-white/[0.04] transition-colors cursor-pointer", title: "Library", children: _jsx(BookOpen, { className: "w-4 h-4" }) }), _jsx("button", { type: "button", onClick: onSelectScheduled, className: `p-1.5 rounded-[4px] transition-colors cursor-pointer ${viewMode === 'scheduled'
3615
+ : 'text-[#7f7f86] hover:text-white hover:bg-white/[0.04]'}`, title: "Agents", children: _jsx(Bot, { className: "w-4 h-4" }) }), _jsx("button", { type: "button", onClick: onSelectKnowledge, className: "p-1.5 rounded-[4px] text-[#7f7f86] hover:text-white hover:bg-white/[0.04] transition-colors cursor-pointer", title: "Library", children: _jsx(BookOpen, { className: "w-4 h-4" }) }), _jsx("button", { type: "button", onClick: onSelectTools, className: "p-1.5 rounded-[4px] text-[#7f7f86] hover:text-white hover:bg-white/[0.04] transition-colors cursor-pointer", title: "Tools", children: _jsx(Package, { className: "w-4 h-4" }) }), _jsx("button", { type: "button", onClick: onSelectScheduled, className: `p-1.5 rounded-[4px] transition-colors cursor-pointer ${viewMode === 'scheduled'
3611
3616
  ? 'bg-white/[0.08] text-white'
3612
3617
  : 'text-[#7f7f86] hover:text-white hover:bg-white/[0.04]'}`, title: "Scheduled Tasks", children: _jsx(Clock, { className: "w-4 h-4" }) }), _jsx("div", { className: "flex-1" }), _jsx("button", { type: "button", onClick: () => {
3613
3618
  if (targetWs) {
@@ -3656,7 +3661,7 @@ function Sidebar({ collapsed, onToggleCollapse, onOpenSettings, workspaces, setW
3656
3661
  ? 'bg-white/[0.08] text-white font-medium'
3657
3662
  : 'text-zinc-400 hover:text-white hover:bg-white/[0.04]'}`, children: [_jsx(Bot, { className: "w-3.5 h-3.5 text-zinc-400 flex-shrink-0" }), _jsx("span", { className: "flex-1 truncate", children: "Agents" })] }), _jsxs("button", { type: "button", onClick: () => {
3658
3663
  onSelectKnowledge();
3659
- }, className: "w-full flex items-center gap-2.5 px-2.5 py-1.5 rounded-md text-left text-[12.5px] text-zinc-400 hover:text-white hover:bg-white/[0.04] transition-colors cursor-pointer select-none", children: [_jsx(BookOpen, { className: "w-3.5 h-3.5 text-zinc-400 flex-shrink-0" }), _jsx("span", { className: "flex-1 truncate", children: "Library" })] }), _jsxs("button", { type: "button", onClick: () => {
3664
+ }, className: "w-full flex items-center gap-2.5 px-2.5 py-1.5 rounded-md text-left text-[12.5px] text-zinc-400 hover:text-white hover:bg-white/[0.04] transition-colors cursor-pointer select-none", children: [_jsx(BookOpen, { className: "w-3.5 h-3.5 text-zinc-400 flex-shrink-0" }), _jsx("span", { className: "flex-1 truncate", children: "Library" })] }), _jsxs("button", { type: "button", onClick: onSelectTools, className: "w-full flex items-center gap-2.5 px-2.5 py-1.5 rounded-md text-left text-[12.5px] text-zinc-400 hover:text-white hover:bg-white/[0.04] transition-colors cursor-pointer select-none", "data-xeno-sidebar-tools": "true", children: [_jsx(Package, { className: "w-3.5 h-3.5 text-zinc-400 flex-shrink-0" }), _jsx("span", { className: "flex-1 truncate", children: "Tools" })] }), _jsxs("button", { type: "button", onClick: () => {
3660
3665
  onSelectScheduled?.();
3661
3666
  }, className: `w-full flex items-center gap-2.5 px-2.5 py-1.5 rounded-md text-left text-[12.5px] transition-colors cursor-pointer select-none ${isScheduledActive
3662
3667
  ? 'bg-white/[0.08] text-white font-medium'
@@ -4306,6 +4311,8 @@ export default function AgentInterface({ surface = 'embedded', initialSdkSession
4306
4311
  const [sessionTabsHydrated, setSessionTabsHydrated] = useState(false);
4307
4312
  const [sessionSplit, setSessionSplit] = useState(null);
4308
4313
  const [rightPanelTabRequest, setRightPanelTabRequest] = useState(null);
4314
+ const [toolsHomeOpen, setToolsHomeOpen] = useState(false);
4315
+ const [toolsFullScreen, setToolsFullScreen] = useState(false);
4309
4316
  const previousActiveSessionRef = useRef(null);
4310
4317
  const sessionTabsRestoreAttemptedRef = useRef(false);
4311
4318
  const editorStatusTimerRef = useRef(null);
@@ -4409,6 +4416,7 @@ export default function AgentInterface({ surface = 'embedded', initialSdkSession
4409
4416
  : undefined;
4410
4417
  // Never paint the previous conversation's editor during scope hydration.
4411
4418
  const centerPaneMode = editorTabsConversationId === activeConversationId ? storedCenterPaneMode : 'agent';
4419
+ const workbenchFullScreen = toolsFullScreen && !!activeConversationId && !!activeConversation?.sessionUi?.panelOpen;
4412
4420
  // A CLI-resumed conversation has two identities: the renderer conversation that owns its
4413
4421
  // presentation state, and the durable SDK coordination session that owns Goal/Loop/Handoff
4414
4422
  // and delegated child runs. The workbench must query the latter when it is attached; otherwise
@@ -8751,6 +8759,32 @@ export default function AgentInterface({ surface = 'embedded', initialSdkSession
8751
8759
  engineeringSelectedPaths,
8752
8760
  engineeringSessions,
8753
8761
  ]);
8762
+ const handleChangesOpenDiff = useCallback((relativePath) => {
8763
+ void handleEngineeringPreviewDiff([relativePath]);
8764
+ }, [handleEngineeringPreviewDiff]);
8765
+ const changesState = useMemo(() => ({
8766
+ isGitRepo: engineeringGit?.isGitRepo === true,
8767
+ ...(engineeringGit?.branch ? { branch: engineeringGit.branch } : {}),
8768
+ files: engineeringGit?.files ?? [],
8769
+ loaded: !!engineeringGit,
8770
+ loading: engineeringLoading,
8771
+ error: engineeringError,
8772
+ commitMessage: engineeringCommitMessage,
8773
+ onCommitMessageChange: setEngineeringCommitMessage,
8774
+ onRefresh: () => { void handleEngineeringRefresh(); },
8775
+ onOpenDiff: handleChangesOpenDiff,
8776
+ onStageAll: () => { void handleEngineeringStage(undefined); },
8777
+ onCommit: () => { void handleEngineeringCommit(); },
8778
+ }), [
8779
+ engineeringCommitMessage,
8780
+ engineeringError,
8781
+ engineeringGit,
8782
+ engineeringLoading,
8783
+ handleChangesOpenDiff,
8784
+ handleEngineeringCommit,
8785
+ handleEngineeringRefresh,
8786
+ handleEngineeringStage,
8787
+ ]);
8754
8788
  const cliControlPlaneState = useMemo(() => ({
8755
8789
  loading: cliControlPlaneLoading,
8756
8790
  error: cliControlPlaneError,
@@ -9027,7 +9061,18 @@ export default function AgentInterface({ surface = 'embedded', initialSdkSession
9027
9061
  }, [openEditorTabs, setTransientEditorStatus]);
9028
9062
  const handleSelectWorkbenchTab = useCallback((tab) => {
9029
9063
  patchActiveConversationSessionUi({ panelOpen: true, panelTab: tab });
9064
+ setToolsHomeOpen(false);
9065
+ setToolsFullScreen(toolFillsTheScreen(tab));
9030
9066
  }, [patchActiveConversationSessionUi]);
9067
+ const handleOpenTools = useCallback(() => {
9068
+ patchActiveConversationSessionUi({ panelOpen: true });
9069
+ setToolsHomeOpen(true);
9070
+ setToolsFullScreen(true);
9071
+ }, [patchActiveConversationSessionUi]);
9072
+ const handleOpenChanges = useCallback(() => {
9073
+ setFolderPanelOpen(true);
9074
+ setRightPanelTabRequest({ tab: 'changes', at: Date.now() });
9075
+ }, []);
9031
9076
  useEffect(() => {
9032
9077
  const onKeyDown = (event) => {
9033
9078
  const requestTab = (tab) => {
@@ -9041,14 +9086,12 @@ export default function AgentInterface({ surface = 'embedded', initialSdkSession
9041
9086
  return;
9042
9087
  if (event.key.toLowerCase() === 'b')
9043
9088
  requestTab('browser');
9044
- if (event.key.toLowerCase() !== 'd')
9045
- return;
9046
- event.preventDefault();
9047
- handleSelectWorkbenchTab('engineering');
9089
+ if (event.key.toLowerCase() === 'd')
9090
+ requestTab('changes');
9048
9091
  };
9049
9092
  window.addEventListener('keydown', onKeyDown);
9050
9093
  return () => window.removeEventListener('keydown', onKeyDown);
9051
- }, [handleSelectWorkbenchTab]);
9094
+ }, []);
9052
9095
  const handleOpenPluginManager = useCallback(() => {
9053
9096
  setSelectedAgentId(null);
9054
9097
  setSelectedConversationId(null);
@@ -9084,10 +9127,9 @@ export default function AgentInterface({ surface = 'embedded', initialSdkSession
9084
9127
  const handleSelectWorkbenchTraceMessage = useCallback((messageId) => {
9085
9128
  patchActiveConversationSessionUi({ panelOpen: true, panelTab: 'trace', selectedTraceMessageId: messageId });
9086
9129
  }, [patchActiveConversationSessionUi]);
9087
- const handleToggleWorkbenchPanel = useCallback(() => {
9088
- patchActiveConversationSessionUi({ panelOpen: !workbenchPanelOpen });
9089
- }, [patchActiveConversationSessionUi, workbenchPanelOpen]);
9090
9130
  const handleCloseWorkbenchPanel = useCallback(() => {
9131
+ setToolsHomeOpen(false);
9132
+ setToolsFullScreen(false);
9091
9133
  patchActiveConversationSessionUi({ panelOpen: false });
9092
9134
  }, [patchActiveConversationSessionUi]);
9093
9135
  const handleRightPanelResizeStart = useCallback((event) => {
@@ -9407,7 +9449,7 @@ export default function AgentInterface({ surface = 'embedded', initialSdkSession
9407
9449
  }, teamId: settingsPanel.teamId, teamName: teamForSettings?.name || settingsPanel.teamName, onClose: handleCloseSettings, onDelete: handleDeleteFromSettings }));
9408
9450
  }
9409
9451
  if (viewMode === 'inbox') {
9410
- const inboxView = (conversationId) => (_jsx(React.Suspense, { fallback: _jsx("div", { className: "flex h-full items-center justify-center text-[12px] text-white/35", children: "Loading chat..." }), children: _jsx(AgentView, { agentId: MAIN_ASSISTANT_ID, conversationId: conversationId, isMainAssistant: true, agentName: MAIN_ASSISTANT_NAME, model: MAIN_ASSISTANT_MODEL, templateName: "Main Assistant", workspaceName: "All Workspaces", teamName: "Global", systemPrompt: enrichedMainSystemPromptWithCodeContext, capabilities: { terminal: true, fileRead: true, fileWrite: true, appLaunch: true }, permissionProfile: "standard", allowedDirectories: [], approvalRules: [], allowedApps: [], teamAgents: [], onCreateWorkspace: handleMainCreateWorkspace, onCreateTeam: handleMainCreateTeam, onCreateTeamAgent: handleMainCreateTeamAgent, onGetInboxWorkspaceOptions: handleGetInboxWorkspaceOptions, onBindInboxConversationToWorkspace: handleBindInboxConversationToWorkspace, onOpenReassignedConversation: handleOpenReassignedConversation, onOpenEditorPath: handleOpenEditorPath, onOpenEditorDiff: handleOpenEditorDiff, onPeekEditorPath: handlePeekEditorPath, onPeekEditorDiff: handlePeekEditorDiff, renderWorkbenchPanel: false, onOpenConversationSettings: handleSelectSidebarSettings, externalInputLockReason: providerSessionTuiInputLockReason, onSendToNativeTui: activeProviderSessionTerminalId ? sendTextToActiveProviderTui : undefined, onConversationCreated: activateSessionConversation, onNavigateConversation: activateSessionConversation, onOpenChanges: () => handleSelectWorkbenchTab('engineering') }) }));
9452
+ const inboxView = (conversationId) => (_jsx(React.Suspense, { fallback: _jsx("div", { className: "flex h-full items-center justify-center text-[12px] text-white/35", children: "Loading chat..." }), children: _jsx(AgentView, { agentId: MAIN_ASSISTANT_ID, conversationId: conversationId, isMainAssistant: true, agentName: MAIN_ASSISTANT_NAME, model: MAIN_ASSISTANT_MODEL, templateName: "Main Assistant", workspaceName: "All Workspaces", teamName: "Global", systemPrompt: enrichedMainSystemPromptWithCodeContext, capabilities: { terminal: true, fileRead: true, fileWrite: true, appLaunch: true }, permissionProfile: "standard", allowedDirectories: [], approvalRules: [], allowedApps: [], teamAgents: [], onCreateWorkspace: handleMainCreateWorkspace, onCreateTeam: handleMainCreateTeam, onCreateTeamAgent: handleMainCreateTeamAgent, onGetInboxWorkspaceOptions: handleGetInboxWorkspaceOptions, onBindInboxConversationToWorkspace: handleBindInboxConversationToWorkspace, onOpenReassignedConversation: handleOpenReassignedConversation, onOpenEditorPath: handleOpenEditorPath, onOpenEditorDiff: handleOpenEditorDiff, onPeekEditorPath: handlePeekEditorPath, onPeekEditorDiff: handlePeekEditorDiff, renderWorkbenchPanel: false, onOpenConversationSettings: handleSelectSidebarSettings, externalInputLockReason: providerSessionTuiInputLockReason, onSendToNativeTui: activeProviderSessionTerminalId ? sendTextToActiveProviderTui : undefined, onConversationCreated: activateSessionConversation, onNavigateConversation: activateSessionConversation, onOpenChanges: handleOpenChanges }) }));
9411
9453
  if (!sessionSplit)
9412
9454
  return inboxView(selectedInboxConversationId);
9413
9455
  return (_jsx("div", { className: "flex h-full min-w-0", "data-xeno-agent-session-split": "true", children: sessionSplit.map((conversationId, index) => (_jsx("div", { className: `h-full min-w-0 flex-1 ${index === 0 ? 'border-r border-[var(--xeno-border-subtle)]' : ''}`, "data-xeno-agent-session-pane": conversationId, "data-focused": conversationId === activeSessionTabId ? 'true' : 'false', onMouseDownCapture: () => {
@@ -9476,7 +9518,7 @@ export default function AgentInterface({ surface = 'embedded', initialSdkSession
9476
9518
  selectedBy: 'user'
9477
9519
  }
9478
9520
  });
9479
- }, renderWorkbenchPanel: false, onOpenConversationSettings: handleSelectSidebarSettings, onConversationCreated: activateSessionConversation, onNavigateConversation: activateSessionConversation, onOpenChanges: () => handleSelectWorkbenchTab('engineering') }) }));
9521
+ }, renderWorkbenchPanel: false, onOpenConversationSettings: handleSelectSidebarSettings, onConversationCreated: activateSessionConversation, onNavigateConversation: activateSessionConversation, onOpenChanges: handleOpenChanges }) }));
9480
9522
  }
9481
9523
  // Projects Workspace Hub view (rendered on the right side)
9482
9524
  if (viewMode === 'projects') {
@@ -9613,27 +9655,23 @@ export default function AgentInterface({ surface = 'embedded', initialSdkSession
9613
9655
  return;
9614
9656
  }
9615
9657
  handleOpenPluginManager();
9616
- }, onSelectKnowledge: () => handleSelectWorkbenchTab('knowledge'), onSelectProjects: () => setViewMode('projects'), onSelectTeams: () => setViewMode('teams'), onSelectAgents: () => setViewMode('agents'), onSelectScheduled: () => setViewMode('scheduled'), onStartProjectChat: handleStartProjectChat, onSelectSettings: handleSelectSidebarSettings, viewMode: viewMode, isSettingsOpen: Boolean(settingsPanel) }), _jsxs("div", { className: "relative flex-1 min-w-0 flex flex-col overflow-hidden", children: [_jsx(RightSidebarControls, { folderPanelOpen: folderPanelOpen, onOpenFolderPanel: () => setFolderPanelOpen(true), onOpenChanges: () => handleSelectWorkbenchTab('engineering'),
9658
+ }, onSelectKnowledge: () => handleSelectWorkbenchTab('knowledge'), onSelectTools: handleOpenTools, onSelectProjects: () => setViewMode('projects'), onSelectTeams: () => setViewMode('teams'), onSelectAgents: () => setViewMode('agents'), onSelectScheduled: () => setViewMode('scheduled'), onStartProjectChat: handleStartProjectChat, onSelectSettings: handleSelectSidebarSettings, viewMode: viewMode, isSettingsOpen: Boolean(settingsPanel) }), _jsxs("div", { className: "relative flex-1 min-w-0 flex flex-col overflow-hidden", children: [_jsx(RightSidebarControls, { folderPanelOpen: folderPanelOpen, onOpenFolderPanel: () => setFolderPanelOpen(true), onOpenChanges: handleOpenChanges,
9617
9659
  // The conversation surface owns its full width; the bench has no shell overlay over it.
9618
9660
  // Files/Terminal controls remain on editor surfaces, and conversation context keeps the
9619
9661
  // capability available through its existing workbench/menu actions.
9620
- visible: centerPaneMode === 'editor' && !settingsPanel && !['projects', 'teams', 'agents', 'scheduled'].includes(viewMode || '') }), centerPaneMode === 'editor' && (_jsxs("div", { className: "xeno-chrome-shell xeno-border-subtle h-10 pr-[120px] border-b flex items-center justify-between gap-2", children: [_jsx("div", { className: "h-full min-w-0 flex-1", children: openEditorTabs.length > 0 && (_jsx(EditorTabs, { tabs: openEditorTabs, activeTabId: activeEditorTabId, onSelectTab: handleSelectEditorTab, onCloseTab: handleCloseEditorTab })) }), _jsx("div", { className: "flex items-center gap-2 pr-2", children: _jsx("button", { onClick: handleToggleWorkbenchPanel, className: `h-7 px-2.5 rounded-[5px] text-[10px] transition-colors ${workbenchPanelOpen
9621
- ? 'bg-white/[0.075] text-white/72'
9622
- : 'bg-transparent hover:bg-white/[0.055] text-white/35 hover:text-white/60'}`, children: "Panel" }) })] })), _jsxs("div", { className: "flex-1 min-h-0 flex flex-col overflow-hidden", children: [_jsxs("main", { className: "flex-1 min-w-0 flex flex-col overflow-hidden", children: [sessionResumeError && _jsx("div", { role: "alert", className: "px-3 py-2 text-[12px] text-red-300", children: sessionResumeError }), centerPaneMode === 'split'
9623
- ? (_jsxs("div", { className: "flex-1 min-h-0 grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)] overflow-hidden", children: [_jsx("section", { className: "min-w-0 min-h-0 flex flex-col border-r xeno-border-subtle overflow-hidden", children: renderContent() }), _jsxs("section", { className: "min-w-0 min-h-0 flex flex-col overflow-hidden", children: [_jsxs("div", { className: "xeno-chrome-shell xeno-border-subtle h-10 border-b flex items-center justify-between gap-2 pr-[120px]", children: [_jsx("div", { className: "h-full min-w-0 flex-1", children: openEditorTabs.length > 0 && (_jsx(EditorTabs, { tabs: openEditorTabs, activeTabId: activeEditorTabId, onSelectTab: handleSelectEditorTab, onCloseTab: handleCloseEditorTab })) }), _jsx("div", { className: "flex items-center gap-2 pr-2", children: _jsx("button", { onClick: handleToggleWorkbenchPanel, className: `h-7 px-2.5 rounded-[5px] text-[10px] transition-colors ${workbenchPanelOpen
9624
- ? 'bg-white/[0.075] text-white/72'
9625
- : 'bg-transparent hover:bg-white/[0.055] text-white/35 hover:text-white/60'}`, children: "Panel" }) })] }), _jsx("div", { className: "flex-1 min-h-0 flex flex-col overflow-hidden", children: _jsx(React.Suspense, { fallback: _jsx(WorkbenchLoadingSkeleton, { title: "Loading editor", subtitle: "Preparing editor workbench." }), children: activeEditorDiff ? (_jsx(MonacoDiffWorkbenchEditor, { diff: activeEditorDiff, rootDirectory: activeConversation?.rootDirectory || null, layoutKey: editorLayoutKey, statusMessage: editorStatusMessage, onOpenFile: handleOpenEditorPath, ...diffCommentProps })) : (_jsx(MonacoWorkbenchEditor, { file: activeEditorFile, pendingFilePath: pendingEditorPath, rootDirectory: activeConversation?.rootDirectory || null, openFilePaths: openEditorFiles.map((file) => file.path), layoutKey: editorLayoutKey, statusMessage: editorStatusMessage, onChangeFile: handleEditorContentChange, onSaveFile: handleSaveEditorFile, onRevertFile: handleRevertEditorFile })) }) })] })] }))
9662
+ visible: centerPaneMode === 'editor' && !settingsPanel && !['projects', 'teams', 'agents', 'scheduled'].includes(viewMode || '') }), centerPaneMode === 'editor' && (_jsx("div", { className: "xeno-chrome-shell xeno-border-subtle h-10 pr-[120px] border-b flex items-center justify-between gap-2", children: _jsx("div", { className: "h-full min-w-0 flex-1", children: openEditorTabs.length > 0 && (_jsx(EditorTabs, { tabs: openEditorTabs, activeTabId: activeEditorTabId, onSelectTab: handleSelectEditorTab, onCloseTab: handleCloseEditorTab })) }) })), _jsxs("div", { className: "flex-1 min-h-0 flex flex-col overflow-hidden", children: [_jsxs("main", { className: `flex-1 min-w-0 flex flex-col overflow-hidden ${workbenchFullScreen ? 'hidden' : ''}`, children: [sessionResumeError && _jsx("div", { role: "alert", className: "px-3 py-2 text-[12px] text-red-300", children: sessionResumeError }), centerPaneMode === 'split'
9663
+ ? (_jsxs("div", { className: "flex-1 min-h-0 grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)] overflow-hidden", children: [_jsx("section", { className: "min-w-0 min-h-0 flex flex-col border-r xeno-border-subtle overflow-hidden", children: renderContent() }), _jsxs("section", { className: "min-w-0 min-h-0 flex flex-col overflow-hidden", children: [_jsx("div", { className: "xeno-chrome-shell xeno-border-subtle h-10 border-b flex items-center justify-between gap-2 pr-[120px]", children: _jsx("div", { className: "h-full min-w-0 flex-1", children: openEditorTabs.length > 0 && (_jsx(EditorTabs, { tabs: openEditorTabs, activeTabId: activeEditorTabId, onSelectTab: handleSelectEditorTab, onCloseTab: handleCloseEditorTab })) }) }), _jsx("div", { className: "flex-1 min-h-0 flex flex-col overflow-hidden", children: _jsx(React.Suspense, { fallback: _jsx(WorkbenchLoadingSkeleton, { title: "Loading editor", subtitle: "Preparing editor workbench." }), children: activeEditorDiff ? (_jsx(MonacoDiffWorkbenchEditor, { diff: activeEditorDiff, rootDirectory: activeConversation?.rootDirectory || null, layoutKey: editorLayoutKey, statusMessage: editorStatusMessage, onOpenFile: handleOpenEditorPath, ...diffCommentProps })) : (_jsx(MonacoWorkbenchEditor, { file: activeEditorFile, pendingFilePath: pendingEditorPath, rootDirectory: activeConversation?.rootDirectory || null, openFilePaths: openEditorFiles.map((file) => file.path), layoutKey: editorLayoutKey, statusMessage: editorStatusMessage, onChangeFile: handleEditorContentChange, onSaveFile: handleSaveEditorFile, onRevertFile: handleRevertEditorFile })) }) })] })] }))
9626
9664
  : centerPaneMode === 'editor'
9627
9665
  ? (_jsx(React.Suspense, { fallback: _jsx(WorkbenchLoadingSkeleton, { title: "Loading editor", subtitle: "Preparing editor workbench." }), children: activeEditorDiff ? (_jsx(MonacoDiffWorkbenchEditor, { diff: activeEditorDiff, rootDirectory: activeConversation?.rootDirectory || null, layoutKey: editorLayoutKey, statusMessage: editorStatusMessage, onOpenFile: handleOpenEditorPath, ...diffCommentProps })) : (_jsx(MonacoWorkbenchEditor, { file: activeEditorFile, pendingFilePath: pendingEditorPath, rootDirectory: activeConversation?.rootDirectory || null, openFilePaths: openEditorFiles.map((file) => file.path), layoutKey: editorLayoutKey, statusMessage: editorStatusMessage, onChangeFile: handleEditorContentChange, onSaveFile: handleSaveEditorFile, onRevertFile: handleRevertEditorFile })) }))
9628
- : renderContent()] }), activeConversationId && workbenchPanelOpen && !settingsPanel && (_jsx("div", { className: "px-6 pb-5", children: _jsx("div", { className: `w-full mx-auto ${isWideWorkbenchTab(workbenchPanelTab) ? 'max-w-[1120px]' : 'max-w-[820px]'}`, children: _jsx(React.Suspense, { fallback: _jsx(WorkbenchLoadingSkeleton, { title: "Loading workbench", subtitle: "Preparing trace and support panels." }), children: _jsx(AgentWorkbenchPanel, { knowledgeWorkspaceId: activeConversation?.workspaceId, tab: workbenchPanelTab,
9666
+ : renderContent()] }), activeConversationId && workbenchPanelOpen && !settingsPanel && (_jsx("div", { className: workbenchFullScreen ? 'flex-1 min-h-0 px-6 py-5' : 'px-6 pb-5', children: _jsx("div", { className: `w-full mx-auto ${workbenchFullScreen ? 'h-full max-w-[1120px]' : isWideWorkbenchTab(workbenchPanelTab) ? 'max-w-[1120px]' : 'max-w-[820px]'}`, children: _jsx(React.Suspense, { fallback: _jsx(WorkbenchLoadingSkeleton, { title: "Loading workbench", subtitle: "Preparing trace and support panels." }), children: _jsx(AgentWorkbenchPanel, { fullScreen: workbenchFullScreen, showToolsHome: toolsHomeOpen, onShowToolsHome: setToolsHomeOpen, knowledgeWorkspaceId: activeConversation?.workspaceId, tab: workbenchPanelTab,
9629
9667
  /* The host's default `resolveRunId` is
9630
9668
  `subagentRunId ?? conversationId`, so the conversation id
9631
9669
  IS the run id here. Passing anything else would ask the
9632
9670
  host about a run it has never heard of. */
9633
- reviewRunId: activeConversationId, coordinationSessionId: activeConversation?.sessionUi?.coordinationSessionId || activeConversationId, traceMessages: traceMessages, selectedTraceMessage: selectedTraceMessage, outputEntries: outputEntries, problemEntries: problemEntries, onSelectTab: handleSelectWorkbenchTab, onClose: handleCloseWorkbenchPanel, onSelectTraceMessage: handleSelectWorkbenchTraceMessage, onOpenChatSettings: handleOpenActiveConversationSettings, onOpenChatAcpAgents: handleOpenActiveConversationAcpAgents, onOpenChatPlugins: handleOpenPluginManager, onOpenChatKnowledge: handleOpenActiveConversationKnowledge, onOpenEditorPath: handleOpenEditorPath, onOpenEditorDiff: handleOpenEditorDiff, terminalCapabilityEnabled: terminalCapabilityEnabled, terminalReady: terminalReady, resolvedTerminalCwd: resolvedTerminalCwd, terminalDraftCwd: terminalDraftCwd, terminalDraftInput: terminalDraftInput, onChangeTerminalCwd: setTerminalDraftCwd, onChangeTerminalInput: setTerminalDraftInput, onResetTerminalCwd: handleResetWorkbenchTerminalCwd, onClearTerminalHistory: handleClearWorkbenchTerminalHistory, onRunTerminalCommand: () => { void handleRunWorkbenchTerminalCommand(); }, terminalHistory: terminalHistory, liveTerminalRuns: liveTerminalRunsForConversation, onReuseTerminalEntry: handleReuseWorkbenchTerminalEntry, onStopTerminalRun: (terminalId) => { void handleStopWorkbenchTerminalRun(terminalId); }, codeWorkbench: codeWorkbenchState, onCodeQueryChange: setCodeWorkbenchQuery, onCodeModeChange: handleCodeModeChange, onCodeIndex: handleCodeIndex, onCodeSearch: handleCodeSearch, onCodeOpenPath: handleCodeOpenPath, onCodeToggleFile: handleCodeToggleFile, onCodeToggleSymbol: handleCodeToggleSymbol, onCodeCreateContextPack: () => { void handleCodeCreateContextPack(); }, onCodeMaterializeContextPack: (packId) => { void handleCodeMaterializeContextPack(packId); }, onCodeAttachContextPack: (packId) => { void handleCodeAttachContextPack(packId); }, onCodeRefreshContextPacks: () => { void handleCodeRefreshContextPacks(); }, onCodeRefreshChanges: () => { void handleCodeRefreshChanges(); }, onCodeRefreshActions: () => { void handleCodeRefreshActions(); }, onCodeApplyAction: (action) => { void handleCodeApplyAction(action); }, onCodeOrganizeImports: () => { void handleCodeOrganizeImports(); }, onCodeRenameSymbol: () => { void handleCodeRenameSymbol(); }, onCodeRefreshLanguageServices: () => { void handleCodeRefreshLanguageServices(); }, onCodeControlLanguageService: (serviceId, action) => { void handleCodeControlLanguageService(serviceId, action); }, onCodeRepairIndex: () => { void handleCodeRepairIndex(); }, engineeringWorkbench: engineeringWorkbenchState, onEngineeringRefresh: () => { void handleEngineeringRefresh(); }, onEngineeringTogglePath: handleEngineeringTogglePath, onEngineeringOpenPath: handleEngineeringOpenPath, onEngineeringPreviewDiff: (paths) => { void handleEngineeringPreviewDiff(paths); }, onEngineeringStage: (paths) => { void handleEngineeringStage(paths); }, onEngineeringUnstage: (paths) => { void handleEngineeringUnstage(paths); }, onEngineeringRunCheck: (checkId) => { void handleEngineeringRunCheck(checkId); }, onEngineeringStartBackgroundCheck: (checkId) => { void handleEngineeringStartBackgroundCheck(checkId); }, onEngineeringStopBackgroundRun: (runId) => { void handleEngineeringStopBackgroundRun(runId); }, onEngineeringReadBackgroundRunOutput: (runId) => { void handleEngineeringReadBackgroundRunOutput(runId); }, onEngineeringCommitMessageChange: setEngineeringCommitMessage, onEngineeringCommit: () => { void handleEngineeringCommit(); }, onEngineeringQueuePatchReview: () => { void handleEngineeringQueuePatchReview(); }, onEngineeringUpdatePatchReview: (id, status) => { void handleEngineeringUpdatePatchReview(id, status); }, onEngineeringReviewPatchSelection: (request) => { void handleEngineeringReviewPatchSelection(request); }, onEngineeringCompareCheckpoints: (fromCheckpointId, toCheckpointId) => { void handleEngineeringCompareCheckpoints(fromCheckpointId, toCheckpointId); }, onEngineeringRestoreCheckpoint: (checkpointId) => { void handleEngineeringRestoreCheckpoint(checkpointId); }, cliControlPlane: cliControlPlaneState, cliControlPlaneCaller: policyCaller, cliControlPlaneConversationId: activeConversationId, cliControlPlaneRemoteBackendId: selectedAgent?.runtimeSelection?.remoteBackendId || '', onCliControlPlaneInspect: () => { void handleCliControlPlaneInspect(); }, onCliControlPlaneRemoteRunOperation: (action, runId) => { void handleCliControlPlaneRemoteRunOperation(action, runId); }, subagentWorkbench: subagentWorkbenchState, subagentDelegationTargets: subagentDelegationTargets, subagentDelegationSourceName: selectedAgent?.name, subagentDelegationDisabledReason: subagentDelegationDisabledReason, onSubagentRefresh: () => { void handleSubagentRefresh(); }, onSubagentRecoverRuns: () => { void handleSubagentRecoverRuns(); }, onSubagentSelectRun: handleSubagentSelectRun, onSubagentOpenConversation: handleSubagentOpenConversation, onSubagentCancelRun: (run) => { void handleSubagentCancelRun(run); }, onCreateSubagentDelegation: handleWorkbenchSubagentDelegation, policyWorkbench: policyWorkbenchState, onPolicyRefresh: () => { void handlePolicyRefresh(); } }) }) }) }))] })] }), folderPanelOpen && !settingsPanel && !['projects', 'teams', 'agents', 'scheduled'].includes(viewMode || '') && (_jsx(FolderSidebar, { conversationId: activeConversationId, workspaceId: activeConversation?.workspaceId || null, rootDirectory: activeConversation?.rootDirectory || null, allowedDirectories: activeConversationAllowedDirectories, onOpenFolder: handleOpenFolderForConversation, onClose: () => setFolderPanelOpen(false), onOpenFile: handleOpenEditorFile, activeFilePath: activeEditorFilePath, terminalCapabilityEnabled: terminalCapabilityEnabled, terminalReady: terminalReady, xenoTuiReady: xenoTuiReady, xenoTuiUnavailableReason: xenoTuiUnavailableReason, providerSessionTuiReady: providerSessionTuiReady, providerSessionTuiUnavailableReason: providerSessionTuiUnavailableReason, providerSessionTuiLabel: providerSessionTuiLabel, resolvedTerminalCwd: resolvedTerminalCwd, terminalTabs: rightPanelTerminalsForConversation, tabRequest: rightPanelTabRequest, onPtyInput: handleRightPanelPtyInput, onPtyResize: handleRightPanelPtyResize, onCreateTerminal: handleCreateRightPanelTerminal, onCreateXenoTui: handleCreateXenoTui, onCreateProviderTui: handleCreateProviderSessionTui, onCloseTerminal: handleCloseRightPanelTerminal, onClearTerminal: handleClearRightPanelTerminal, onRestartTerminal: handleRestartRightPanelTerminal, onStopTerminal: handleStopRightPanelTerminal, width: rightPanelWidth, onResizeStart: handleRightPanelResizeStart })), rightPanelResizing && (_jsx("div", { className: "fixed inset-0 z-[9999] cursor-col-resize bg-transparent", "aria-hidden": "true" })), pendingPermission && (_jsx(PermissionDialog, { request: pendingPermission, onDecision: resolvePermission }))] }));
9671
+ reviewRunId: activeConversationId, coordinationSessionId: activeConversation?.sessionUi?.coordinationSessionId || activeConversationId, traceMessages: traceMessages, selectedTraceMessage: selectedTraceMessage, outputEntries: outputEntries, problemEntries: problemEntries, onSelectTab: handleSelectWorkbenchTab, onClose: handleCloseWorkbenchPanel, onSelectTraceMessage: handleSelectWorkbenchTraceMessage, onOpenChatSettings: handleOpenActiveConversationSettings, onOpenChatAcpAgents: handleOpenActiveConversationAcpAgents, onOpenChatPlugins: handleOpenPluginManager, onOpenChatKnowledge: handleOpenActiveConversationKnowledge, onOpenEditorPath: handleOpenEditorPath, onOpenEditorDiff: handleOpenEditorDiff, terminalCapabilityEnabled: terminalCapabilityEnabled, terminalReady: terminalReady, resolvedTerminalCwd: resolvedTerminalCwd, terminalDraftCwd: terminalDraftCwd, terminalDraftInput: terminalDraftInput, onChangeTerminalCwd: setTerminalDraftCwd, onChangeTerminalInput: setTerminalDraftInput, onResetTerminalCwd: handleResetWorkbenchTerminalCwd, onClearTerminalHistory: handleClearWorkbenchTerminalHistory, onRunTerminalCommand: () => { void handleRunWorkbenchTerminalCommand(); }, terminalHistory: terminalHistory, liveTerminalRuns: liveTerminalRunsForConversation, onReuseTerminalEntry: handleReuseWorkbenchTerminalEntry, onStopTerminalRun: (terminalId) => { void handleStopWorkbenchTerminalRun(terminalId); }, codeWorkbench: codeWorkbenchState, onCodeQueryChange: setCodeWorkbenchQuery, onCodeModeChange: handleCodeModeChange, onCodeIndex: handleCodeIndex, onCodeSearch: handleCodeSearch, onCodeOpenPath: handleCodeOpenPath, onCodeToggleFile: handleCodeToggleFile, onCodeToggleSymbol: handleCodeToggleSymbol, onCodeCreateContextPack: () => { void handleCodeCreateContextPack(); }, onCodeMaterializeContextPack: (packId) => { void handleCodeMaterializeContextPack(packId); }, onCodeAttachContextPack: (packId) => { void handleCodeAttachContextPack(packId); }, onCodeRefreshContextPacks: () => { void handleCodeRefreshContextPacks(); }, onCodeRefreshChanges: () => { void handleCodeRefreshChanges(); }, onCodeRefreshActions: () => { void handleCodeRefreshActions(); }, onCodeApplyAction: (action) => { void handleCodeApplyAction(action); }, onCodeOrganizeImports: () => { void handleCodeOrganizeImports(); }, onCodeRenameSymbol: () => { void handleCodeRenameSymbol(); }, onCodeRefreshLanguageServices: () => { void handleCodeRefreshLanguageServices(); }, onCodeControlLanguageService: (serviceId, action) => { void handleCodeControlLanguageService(serviceId, action); }, onCodeRepairIndex: () => { void handleCodeRepairIndex(); }, engineeringWorkbench: engineeringWorkbenchState, onEngineeringRefresh: () => { void handleEngineeringRefresh(); }, onEngineeringTogglePath: handleEngineeringTogglePath, onEngineeringOpenPath: handleEngineeringOpenPath, onEngineeringPreviewDiff: (paths) => { void handleEngineeringPreviewDiff(paths); }, onEngineeringStage: (paths) => { void handleEngineeringStage(paths); }, onEngineeringUnstage: (paths) => { void handleEngineeringUnstage(paths); }, onEngineeringRunCheck: (checkId) => { void handleEngineeringRunCheck(checkId); }, onEngineeringStartBackgroundCheck: (checkId) => { void handleEngineeringStartBackgroundCheck(checkId); }, onEngineeringStopBackgroundRun: (runId) => { void handleEngineeringStopBackgroundRun(runId); }, onEngineeringReadBackgroundRunOutput: (runId) => { void handleEngineeringReadBackgroundRunOutput(runId); }, onEngineeringCommitMessageChange: setEngineeringCommitMessage, onEngineeringCommit: () => { void handleEngineeringCommit(); }, onEngineeringQueuePatchReview: () => { void handleEngineeringQueuePatchReview(); }, onEngineeringUpdatePatchReview: (id, status) => { void handleEngineeringUpdatePatchReview(id, status); }, onEngineeringReviewPatchSelection: (request) => { void handleEngineeringReviewPatchSelection(request); }, onEngineeringCompareCheckpoints: (fromCheckpointId, toCheckpointId) => { void handleEngineeringCompareCheckpoints(fromCheckpointId, toCheckpointId); }, onEngineeringRestoreCheckpoint: (checkpointId) => { void handleEngineeringRestoreCheckpoint(checkpointId); }, cliControlPlane: cliControlPlaneState, cliControlPlaneCaller: policyCaller, cliControlPlaneConversationId: activeConversationId, cliControlPlaneRemoteBackendId: selectedAgent?.runtimeSelection?.remoteBackendId || '', onCliControlPlaneInspect: () => { void handleCliControlPlaneInspect(); }, onCliControlPlaneRemoteRunOperation: (action, runId) => { void handleCliControlPlaneRemoteRunOperation(action, runId); }, subagentWorkbench: subagentWorkbenchState, subagentDelegationTargets: subagentDelegationTargets, subagentDelegationSourceName: selectedAgent?.name, subagentDelegationDisabledReason: subagentDelegationDisabledReason, onSubagentRefresh: () => { void handleSubagentRefresh(); }, onSubagentRecoverRuns: () => { void handleSubagentRecoverRuns(); }, onSubagentSelectRun: handleSubagentSelectRun, onSubagentOpenConversation: handleSubagentOpenConversation, onSubagentCancelRun: (run) => { void handleSubagentCancelRun(run); }, onCreateSubagentDelegation: handleWorkbenchSubagentDelegation, policyWorkbench: policyWorkbenchState, onPolicyRefresh: () => { void handlePolicyRefresh(); } }) }) }) }))] })] }), folderPanelOpen && !settingsPanel && !['projects', 'teams', 'agents', 'scheduled'].includes(viewMode || '') && (_jsx(FolderSidebar, { conversationId: activeConversationId, workspaceId: activeConversation?.workspaceId || null, rootDirectory: activeConversation?.rootDirectory || null, allowedDirectories: activeConversationAllowedDirectories, onOpenFolder: handleOpenFolderForConversation, onClose: () => setFolderPanelOpen(false), onOpenFile: handleOpenEditorFile, activeFilePath: activeEditorFilePath, terminalCapabilityEnabled: terminalCapabilityEnabled, terminalReady: terminalReady, xenoTuiReady: xenoTuiReady, xenoTuiUnavailableReason: xenoTuiUnavailableReason, providerSessionTuiReady: providerSessionTuiReady, providerSessionTuiUnavailableReason: providerSessionTuiUnavailableReason, providerSessionTuiLabel: providerSessionTuiLabel, resolvedTerminalCwd: resolvedTerminalCwd, terminalTabs: rightPanelTerminalsForConversation, tabRequest: rightPanelTabRequest, changes: changesState, changesRefreshKey: `${activeConversationId || ''}:${activeRuntimeRequestId || ''}`, onPtyInput: handleRightPanelPtyInput, onPtyResize: handleRightPanelPtyResize, onCreateTerminal: handleCreateRightPanelTerminal, onCreateXenoTui: handleCreateXenoTui, onCreateProviderTui: handleCreateProviderSessionTui, onCloseTerminal: handleCloseRightPanelTerminal, onClearTerminal: handleClearRightPanelTerminal, onRestartTerminal: handleRestartRightPanelTerminal, onStopTerminal: handleStopRightPanelTerminal, width: rightPanelWidth, onResizeStart: handleRightPanelResizeStart })), rightPanelResizing && (_jsx("div", { className: "fixed inset-0 z-[9999] cursor-col-resize bg-transparent", "aria-hidden": "true" })), pendingPermission && (_jsx(PermissionDialog, { request: pendingPermission, onDecision: resolvePermission }))] }));
9634
9672
  if (surface !== 'standalone-desktop') {
9635
- return (_jsxs("div", { className: "flex h-full w-full flex-col overflow-hidden", "data-xeno-agent-embedded-shell": "true", children: [_jsxs("header", { className: "xeno-chrome-shell xeno-border-subtle h-10 flex flex-shrink-0 border-b", "data-xeno-agent-session-header": "embedded", "data-xeno-hub-header-style": "true", children: [_jsx("div", { className: "min-w-0 flex-1", children: sessionTabsNode }), _jsx(RightSidebarControls, { folderPanelOpen: folderPanelOpen, onOpenFolderPanel: () => setFolderPanelOpen(true), onOpenChanges: () => handleSelectWorkbenchTab('engineering'), visible: !settingsPanel && !['projects', 'teams', 'agents', 'scheduled'].includes(viewMode || ''), inline: true })] }), _jsx(WorkspacePersistenceNotice, {}), _jsx(SidebarLayoutNotice, {}), _jsx("div", { className: "min-h-0 min-w-0 flex-1", children: agentWorkspace })] }));
9673
+ return (_jsxs("div", { className: "flex h-full w-full flex-col overflow-hidden", "data-xeno-agent-embedded-shell": "true", children: [_jsxs("header", { className: "xeno-chrome-shell xeno-border-subtle h-10 flex flex-shrink-0 border-b", "data-xeno-agent-session-header": "embedded", "data-xeno-hub-header-style": "true", children: [_jsx("div", { className: "min-w-0 flex-1", children: sessionTabsNode }), _jsx(RightSidebarControls, { folderPanelOpen: folderPanelOpen, onOpenFolderPanel: () => setFolderPanelOpen(true), onOpenChanges: handleOpenChanges, visible: !settingsPanel && !['projects', 'teams', 'agents', 'scheduled'].includes(viewMode || ''), inline: true })] }), _jsx(WorkspacePersistenceNotice, {}), _jsx(SidebarLayoutNotice, {}), _jsx("div", { className: "min-h-0 min-w-0 flex-1", children: agentWorkspace })] }));
9636
9674
  }
9637
- return (_jsxs("div", { className: "flex h-full w-full flex-col overflow-hidden", "data-xeno-agent-standalone-shell": "true", "data-xeno-agent-launch-mode": initialLaunchMode || 'default', children: [_jsx(XenoAgentProductHeader, { title: initialLaunchMode === 'chat' ? 'XENO Chat' : 'XENO Agent', workspaceSelector: _jsx(XenoAgentWorkspaceSelector, { onOpenWorkspaceSettings: handleOpenWorkspaceSettings }), centerContent: sessionTabsNode, trailingContent: _jsx(RightSidebarControls, { folderPanelOpen: folderPanelOpen, onOpenFolderPanel: () => setFolderPanelOpen(true), onOpenChanges: () => handleSelectWorkbenchTab('engineering'), visible: !settingsPanel && !['projects', 'teams', 'agents', 'scheduled'].includes(viewMode || ''), inline: true }), onMinimize: windowControls?.onMinimize, onNewWindow: windowControls?.onNewWindow, onMaximize: windowControls?.onMaximize, onClose: windowControls?.onClose }), _jsx(WorkspacePersistenceNotice, {}), _jsx(SidebarLayoutNotice, {}), _jsx("div", { className: "min-h-0 min-w-0 flex-1", children: agentWorkspace }), isWorkspaceWizardOpen && (_jsx(WorkspaceCreationWizard, { onClose: closeWorkspaceWizard }))] }));
9675
+ return (_jsxs("div", { className: "flex h-full w-full flex-col overflow-hidden", "data-xeno-agent-standalone-shell": "true", "data-xeno-agent-launch-mode": initialLaunchMode || 'default', children: [_jsx(XenoAgentProductHeader, { title: initialLaunchMode === 'chat' ? 'XENO Chat' : 'XENO Agent', workspaceSelector: _jsx(XenoAgentWorkspaceSelector, { onOpenWorkspaceSettings: handleOpenWorkspaceSettings }), centerContent: sessionTabsNode, trailingContent: _jsx(RightSidebarControls, { folderPanelOpen: folderPanelOpen, onOpenFolderPanel: () => setFolderPanelOpen(true), onOpenChanges: handleOpenChanges, visible: !settingsPanel && !['projects', 'teams', 'agents', 'scheduled'].includes(viewMode || ''), inline: true }), onMinimize: windowControls?.onMinimize, onNewWindow: windowControls?.onNewWindow, onMaximize: windowControls?.onMaximize, onClose: windowControls?.onClose }), _jsx(WorkspacePersistenceNotice, {}), _jsx(SidebarLayoutNotice, {}), _jsx("div", { className: "min-h-0 min-w-0 flex-1", children: agentWorkspace }), isWorkspaceWizardOpen && (_jsx(WorkspaceCreationWizard, { onClose: closeWorkspaceWizard }))] }));
9638
9676
  }
9639
9677
  //# sourceMappingURL=AgentInterface.js.map