@xenosystem/agent-interface-ui 0.1.184 → 0.1.186
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 +824 -791
- package/dist/components/agent/AgentAuthGate.d.ts.map +1 -1
- package/dist/components/agent/AgentAuthGate.js +6 -6
- package/dist/components/agent/AgentAuthGate.js.map +1 -1
- package/dist/components/agent/AgentIdentityGenerator.js +1 -1
- package/dist/components/agent/AgentIdentityGenerator.js.map +1 -1
- package/dist/components/agent/AgentInterface.d.ts +1 -0
- package/dist/components/agent/AgentInterface.d.ts.map +1 -1
- package/dist/components/agent/AgentInterface.js +87 -92
- package/dist/components/agent/AgentInterface.js.map +1 -1
- package/dist/components/agent/AgentOnboarding.js +4 -4
- package/dist/components/agent/AgentOnboarding.js.map +1 -1
- package/dist/components/agent/AgentPreviewPanel.js +1 -1
- package/dist/components/agent/AgentPreviewPanel.js.map +1 -1
- package/dist/components/agent/AgentPtyTerminalPanel.js +3 -3
- package/dist/components/agent/AgentPtyTerminalPanel.js.map +1 -1
- package/dist/components/agent/AgentWorkbenchCliPanel.js +11 -11
- package/dist/components/agent/AgentWorkbenchCliPanel.js.map +1 -1
- package/dist/components/agent/AgentWorkbenchPanel.js +30 -30
- package/dist/components/agent/AgentWorkbenchPanel.js.map +1 -1
- package/dist/components/agent/AgentWorkspaceBrowserPanel.js +1 -1
- package/dist/components/agent/AgentWorkspaceBrowserPanel.js.map +1 -1
- package/dist/components/agent/AgentsWorkspaceView.d.ts.map +1 -1
- package/dist/components/agent/AgentsWorkspaceView.js +2 -9
- package/dist/components/agent/AgentsWorkspaceView.js.map +1 -1
- package/dist/components/agent/ArchivedConversationsDialog.js +1 -1
- package/dist/components/agent/ArchivedConversationsDialog.js.map +1 -1
- package/dist/components/agent/MissionControl.d.ts +51 -0
- package/dist/components/agent/MissionControl.d.ts.map +1 -0
- package/dist/components/agent/MissionControl.js +166 -0
- package/dist/components/agent/MissionControl.js.map +1 -0
- package/dist/components/agent/OwnedWorkforceView.d.ts.map +1 -1
- package/dist/components/agent/OwnedWorkforceView.js +11 -5
- package/dist/components/agent/OwnedWorkforceView.js.map +1 -1
- package/dist/components/agent/PermissionDialog.js +1 -1
- package/dist/components/agent/PluginManager.js +3 -3
- package/dist/components/agent/PluginManager.js.map +1 -1
- package/dist/components/agent/ProjectsWorkspaceView.d.ts.map +1 -1
- package/dist/components/agent/ProjectsWorkspaceView.js +45 -26
- package/dist/components/agent/ProjectsWorkspaceView.js.map +1 -1
- package/dist/components/agent/PublisherTrustPanel.js +1 -1
- package/dist/components/agent/PublisherTrustPanel.js.map +1 -1
- package/dist/components/agent/ScheduledWorkspaceView.js +4 -4
- package/dist/components/agent/ScheduledWorkspaceView.js.map +1 -1
- package/dist/components/agent/TeamsWorkspaceView.d.ts.map +1 -1
- package/dist/components/agent/TeamsWorkspaceView.js +3 -5
- package/dist/components/agent/TeamsWorkspaceView.js.map +1 -1
- package/dist/components/agent/WorkspacePersistenceNotice.js +2 -2
- package/dist/components/agent/WorkspacePersistenceNotice.js.map +1 -1
- package/dist/components/agent/acp/AcpAgentConfigForm.js +1 -1
- package/dist/components/agent/acp/AcpAgentConfigForm.js.map +1 -1
- package/dist/components/agent/acp/AcpAgentDiagnosticsPanel.js +2 -2
- package/dist/components/agent/acp/AcpAgentDiagnosticsPanel.js.map +1 -1
- package/dist/components/agent/acp/AcpAgentManager.js +12 -12
- package/dist/components/agent/acp/AcpAgentManager.js.map +1 -1
- package/dist/components/agent/acp/AcpAgentTestResultPanel.js +1 -1
- package/dist/components/agent/acp/AcpAgentTestResultPanel.js.map +1 -1
- package/dist/components/agent/acp/AcpApprovalPanel.js +2 -2
- package/dist/components/agent/acp/AcpApprovalPanel.js.map +1 -1
- package/dist/components/agent/acp/AcpCertificationPanel.js +2 -2
- package/dist/components/agent/acp/AcpCertificationPanel.js.map +1 -1
- package/dist/components/agent/acp/AcpLiveProviderWorkflowPanel.js +1 -1
- package/dist/components/agent/acp/AcpLiveProviderWorkflowPanel.js.map +1 -1
- package/dist/components/agent/acp/AcpProviderManagerPanel.js +1 -1
- package/dist/components/agent/acp/AcpProviderManagerPanel.js.map +1 -1
- package/dist/components/agent/acp/AcpProviderModelsPanel.js +1 -1
- package/dist/components/agent/acp/AcpProviderModelsPanel.js.map +1 -1
- package/dist/components/agent/acp/AcpSupportBundlePanel.js +1 -1
- package/dist/components/agent/acp/AcpSupportBundlePanel.js.map +1 -1
- package/dist/components/agent/settings/EntitySettingsLayout.d.ts.map +1 -1
- package/dist/components/agent/settings/EntitySettingsLayout.js +17 -11
- package/dist/components/agent/settings/EntitySettingsLayout.js.map +1 -1
- package/dist/components/agent/settings/SettingsNavigation.d.ts +5 -1
- package/dist/components/agent/settings/SettingsNavigation.d.ts.map +1 -1
- package/dist/components/agent/settings/SettingsNavigation.js +16 -17
- package/dist/components/agent/settings/SettingsNavigation.js.map +1 -1
- package/dist/components/agent/settings/sections/AccountWorkspacePanel.js +1 -1
- package/dist/components/agent/settings/sections/AccountWorkspacePanel.js.map +1 -1
- package/dist/components/agent/settings/sections/AppearanceSection.d.ts +5 -0
- package/dist/components/agent/settings/sections/AppearanceSection.d.ts.map +1 -0
- package/dist/components/agent/settings/sections/AppearanceSection.js +17 -0
- package/dist/components/agent/settings/sections/AppearanceSection.js.map +1 -0
- package/dist/components/agent/settings/sections/DangerZoneSection.js +4 -4
- package/dist/components/agent/settings/sections/DangerZoneSection.js.map +1 -1
- package/dist/components/agent/settings/sections/DefaultAgentConfigSection.js +5 -5
- package/dist/components/agent/settings/sections/DefaultAgentConfigSection.js.map +1 -1
- package/dist/components/agent/settings/sections/EnvironmentSecretsSection.js +1 -1
- package/dist/components/agent/settings/sections/EnvironmentSecretsSection.js.map +1 -1
- package/dist/components/agent/settings/sections/ExportBackupSection.js +2 -2
- package/dist/components/agent/settings/sections/ExportBackupSection.js.map +1 -1
- package/dist/components/agent/settings/sections/GeneralSection.js +3 -3
- package/dist/components/agent/settings/sections/GeneralSection.js.map +1 -1
- package/dist/components/agent/settings/sections/IntegrationsSection.js +1 -1
- package/dist/components/agent/settings/sections/IntegrationsSection.js.map +1 -1
- package/dist/components/agent/settings/sections/NotificationsSection.js +1 -1
- package/dist/components/agent/settings/sections/NotificationsSection.js.map +1 -1
- package/dist/components/agent/settings/sections/ResourceLimitsSection.js +2 -2
- package/dist/components/agent/settings/sections/ResourceLimitsSection.js.map +1 -1
- package/dist/components/agent/settings/sections/SecurityComplianceSection.js +1 -1
- package/dist/components/agent/settings/sections/SecurityComplianceSection.js.map +1 -1
- package/dist/components/agent/settings/sections/UsageAnalyticsSection.js +1 -1
- package/dist/components/agent/settings/sections/UsageAnalyticsSection.js.map +1 -1
- package/dist/components/agent/settings/sections/WorkspaceDirectoryAccessSection.js +10 -10
- package/dist/components/agent/settings/sections/WorkspaceDirectoryAccessSection.js.map +1 -1
- package/dist/components/agent/settings/sections/WorkspaceKeysPanel.js +1 -1
- package/dist/components/agent/settings/sections/WorkspaceKeysPanel.js.map +1 -1
- package/dist/components/agent/settings/shared/CheckboxField.js +1 -1
- package/dist/components/agent/settings/shared/CheckboxField.js.map +1 -1
- package/dist/components/agent/settings/shared/InputField.js +2 -2
- package/dist/components/agent/settings/shared/InputField.js.map +1 -1
- package/dist/components/agent/settings/shared/MembersTable.js +1 -1
- package/dist/components/agent/settings/shared/MembersTable.js.map +1 -1
- package/dist/components/agent/settings/shared/SettingRow.js +1 -1
- package/dist/components/agent/settings/shared/SettingsCard.js +1 -1
- package/dist/components/agent/settings/shared/SettingsCard.js.map +1 -1
- package/dist/components/agent/settings/shared/ToggleSwitch.js +1 -1
- package/dist/components/agent/settings/shared/ToggleSwitch.js.map +1 -1
- package/dist/components/agent/settings/shared/UsageChart.js +2 -2
- package/dist/components/agent/settings/shared/UsageChart.js.map +1 -1
- package/dist/components/agent/settings/shared/WorkspaceRulesControl.js +1 -1
- package/dist/components/agent/settings/shared/WorkspaceRulesControl.js.map +1 -1
- package/dist/components/product/XenoAgentWorkspaceSelector.js +2 -2
- package/dist/components/product/XenoAgentWorkspaceSelector.js.map +1 -1
- package/dist/components/workspace/WorkspaceCreationWizard.js +1 -1
- package/dist/components/workspace/WorkspaceCreationWizard.js.map +1 -1
- package/dist/stores/appearanceStore.d.ts +26 -0
- package/dist/stores/appearanceStore.d.ts.map +1 -0
- package/dist/stores/appearanceStore.js +49 -0
- package/dist/stores/appearanceStore.js.map +1 -0
- package/dist/stores/entitySettingsStore.d.ts +3 -1
- package/dist/stores/entitySettingsStore.d.ts.map +1 -1
- package/dist/stores/entitySettingsStore.js +4 -3
- package/dist/stores/entitySettingsStore.js.map +1 -1
- package/package.json +9 -8
- package/src/agent.css +18 -27
- package/src/theme.css +91 -0
|
@@ -34,6 +34,7 @@ import { AgentsWorkspaceView } from './AgentsWorkspaceView.js';
|
|
|
34
34
|
import { OwnedWorkforceView } from './OwnedWorkforceView.js';
|
|
35
35
|
import { assertResumeLaunchScope, isPersonalInboxConversation, personalConversationDefaults, scopeFromSdkSessionMetadata } from './personalConversationScope.js';
|
|
36
36
|
import { ScheduledWorkspaceView } from './ScheduledWorkspaceView.js';
|
|
37
|
+
import { MissionControlView, NeedsYouBox, useMission } from './MissionControl.js';
|
|
37
38
|
import { PermissionDialog } from './PermissionDialog.js';
|
|
38
39
|
import { runtimeEventSummary } from './runtimeEventSummary.js';
|
|
39
40
|
import { latestContextPressure } from './timelineContextPressure.js';
|
|
@@ -44,6 +45,8 @@ import { planNativeTuiComposerInput, resolveNativeTuiWriterTerminalId } from '@x
|
|
|
44
45
|
import { createConversationRuntimeBinding, runtimeSelectionForSdk } from '@xenosystem/agent-conversation/utils/conversationRuntime';
|
|
45
46
|
import { nativeExecutionPolicyForPermissionProfile, nativeWorkspaceTrustForPermissionProfile, } from '@xenosystem/agent-conversation/utils/acpExecutionAuthority';
|
|
46
47
|
import { usePermissionStore } from '../../stores/permissionStore.js';
|
|
48
|
+
import { useThemeStore } from '../../stores/themeStore.js';
|
|
49
|
+
import '../../stores/appearanceStore.js';
|
|
47
50
|
import { agentCreationConfiguration } from '../../stores/agentCreationDefaults.js';
|
|
48
51
|
import { ArchivedConversationsDialog } from './ArchivedConversationsDialog.js';
|
|
49
52
|
import { useAgentChatStore, liveConversations, loadLocalAgentConversations, projectConversationRuntimeEvents, resetAcpContinuationForWorkspaceChange, } from '@xenosystem/agent-conversation/stores/agentChatStore';
|
|
@@ -1510,7 +1513,7 @@ function FolderTreeLoadingSkeleton({ depth = 0, rows = 4 }) {
|
|
|
1510
1513
|
return (_jsx("div", { className: "py-1", children: Array.from({ length: rows }).map((_, index) => (_jsxs("div", { className: "flex items-center gap-1.5 py-1", style: { paddingLeft: `${25 + depth * 14}px` }, children: [_jsx(SkeletonBlock, { className: "h-3 w-3 flex-shrink-0" }), _jsx(SkeletonBlock, { className: `${index % 3 === 0 ? 'w-28' : index % 3 === 1 ? 'w-36' : 'w-24'} h-3` })] }, `${depth}-${index}`))) }));
|
|
1511
1514
|
}
|
|
1512
1515
|
function WorkbenchLoadingSkeleton({ title, subtitle, }) {
|
|
1513
|
-
return (_jsxs("div", { className: "h-full min-h-0 flex flex-col bg-
|
|
1516
|
+
return (_jsxs("div", { className: "h-full min-h-0 flex flex-col bg-xs-frame border-t border-white/[0.06]", children: [_jsxs("div", { className: "h-9 flex items-center justify-between gap-4 px-3 border-b border-white/[0.05] bg-xs-page", children: [_jsxs("div", { className: "min-w-0 flex items-center gap-2 flex-1", children: [_jsx(SkeletonBlock, { className: "h-3.5 w-3.5 flex-shrink-0" }), _jsx(SkeletonBlock, { className: "h-3 w-28" }), _jsx("span", { className: "text-white/18", children: "/" }), _jsx(SkeletonBlock, { className: "h-3 w-20" })] }), _jsxs("div", { className: "flex items-center gap-2 flex-shrink-0", children: [_jsx(SkeletonBlock, { className: "h-6 w-16" }), _jsx(SkeletonBlock, { className: "h-6 w-14" })] })] }), _jsxs("div", { className: "flex-1 min-h-0 flex", children: [_jsx("div", { className: "w-12 flex-shrink-0 border-r border-white/[0.04] px-3 py-4 space-y-3", children: Array.from({ length: 12 }).map((_, index) => (_jsx(SkeletonBlock, { className: "h-3 w-full" }, index))) }), _jsxs("div", { className: "flex-1 min-h-0 px-6 py-5", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { children: [_jsx("p", { className: "text-[10px] uppercase tracking-[0.22em] text-white/30", children: title }), _jsx("p", { className: "mt-1 text-[11px] text-white/22", children: subtitle })] }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(SkeletonBlock, { className: "h-6 w-20" }), _jsx(SkeletonBlock, { className: "h-6 w-16" })] })] }), _jsx("div", { className: "mt-6 space-y-3", children: Array.from({ length: 14 }).map((_, index) => (_jsxs("div", { className: "flex items-center gap-4", children: [_jsx(SkeletonBlock, { className: "h-3 w-8 flex-shrink-0" }), _jsx(SkeletonBlock, { className: `${index % 4 === 0 ? 'w-[68%]' : index % 4 === 1 ? 'w-[82%]' : index % 4 === 2 ? 'w-[74%]' : 'w-[58%]'} h-3` })] }, index))) })] })] })] }));
|
|
1514
1517
|
}
|
|
1515
1518
|
function FolderTreeNode({ entry, depth, expandedPaths, loadingPaths, loadErrors, entriesByPath, onToggleDirectory, onOpenFile, activeFilePath, }) {
|
|
1516
1519
|
const isDirectory = entry.type === 'directory';
|
|
@@ -1833,7 +1836,7 @@ function FolderSidebar({ conversationId, workspaceId, rootDirectory, allowedDire
|
|
|
1833
1836
|
setRightPanelTab(nextTabs[0] ? `browser:${nextTabs[0].id}` : 'files');
|
|
1834
1837
|
}
|
|
1835
1838
|
}, [browserTabs, rightPanelTab]);
|
|
1836
|
-
return (_jsxs("aside", { className: "relative flex-shrink-0 bg-
|
|
1839
|
+
return (_jsxs("aside", { className: "relative flex-shrink-0 bg-xs-page 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-xs-page 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: [([
|
|
1837
1840
|
{ id: 'files', label: 'Files', icon: FolderOpen, title: effectiveRoot || 'Files' },
|
|
1838
1841
|
{ id: 'changes', label: 'Changes', icon: GitCompareArrows, title: 'Changes (Ctrl+Shift+D)' },
|
|
1839
1842
|
]).map((tab) => {
|
|
@@ -1866,7 +1869,7 @@ function FolderSidebar({ conversationId, workspaceId, rootDirectory, allowedDire
|
|
|
1866
1869
|
: 'text-white/0 group-hover:text-white/38 hover:!text-white/70 hover:bg-white/[0.07]'}`, "aria-label": `Close ${tab.label}`, children: _jsx(X, { className: "w-3 h-3", strokeWidth: 1.8 }) })] }, tab.id));
|
|
1867
1870
|
})] }) }), _jsxs("div", { className: "h-full flex items-center gap-1 px-2", children: [_jsxs("div", { ref: newTabMenuRef, className: "relative", children: [_jsx("button", { type: "button", onClick: () => setNewTabMenuOpen((open) => !open), className: `h-7 w-7 inline-flex items-center justify-center rounded-[5px] transition-colors ${newTabMenuOpen
|
|
1868
1871
|
? 'text-white/72 bg-white/[0.07]'
|
|
1869
|
-
: 'text-white/30 hover:text-white/65 hover:bg-white/[0.055]'}`, title: "New tab", "aria-label": "New right panel tab", "aria-haspopup": "menu", "aria-expanded": newTabMenuOpen, children: _jsx(PlusIcon, {}) }), newTabMenuOpen && (_jsxs("div", { role: "menu", className: "absolute right-0 top-[32px] z-50 w-44 overflow-hidden rounded-[7px] border border-white/[0.08] bg-
|
|
1872
|
+
: 'text-white/30 hover:text-white/65 hover:bg-white/[0.055]'}`, title: "New tab", "aria-label": "New right panel tab", "aria-haspopup": "menu", "aria-expanded": newTabMenuOpen, children: _jsx(PlusIcon, {}) }), newTabMenuOpen && (_jsxs("div", { role: "menu", className: "absolute right-0 top-[32px] z-50 w-44 overflow-hidden rounded-[7px] border border-white/[0.08] bg-xs-page py-1 shadow-[0_16px_40px_rgba(0,0,0,0.45)]", children: [_jsxs("button", { type: "button", role: "menuitem", onClick: () => {
|
|
1870
1873
|
handleCreateBrowserTab();
|
|
1871
1874
|
setNewTabMenuOpen(false);
|
|
1872
1875
|
}, className: "w-full flex items-center gap-2.5 px-3 py-2 text-left text-[12px] text-white/64 hover:bg-white/[0.06] hover:text-white transition-colors", children: [_jsx(Globe2, { className: "h-3.5 w-3.5 text-white/42", strokeWidth: 1.8 }), _jsx("span", { children: "Browser" })] }), _jsxs("button", { type: "button", role: "menuitem", onClick: () => {
|
|
@@ -1886,7 +1889,7 @@ function FolderSidebar({ conversationId, workspaceId, rootDirectory, allowedDire
|
|
|
1886
1889
|
setNewTabMenuOpen(false);
|
|
1887
1890
|
}, disabled: !providerSessionTuiReady, title: providerSessionTuiUnavailableReason, className: "w-full flex items-start gap-2.5 px-3 py-2 text-left text-[12px] text-white/64 hover:bg-white/[0.06] hover:text-white transition-colors disabled:cursor-not-allowed disabled:opacity-45 disabled:hover:bg-transparent disabled:hover:text-white/64", children: [_jsx(Terminal, { className: "mt-0.5 h-3.5 w-3.5 flex-none text-white/42", strokeWidth: 1.8 }), _jsxs("span", { className: "min-w-0", children: [_jsx("span", { className: "block", children: providerSessionTuiLabel }), !providerSessionTuiReady && providerSessionTuiUnavailableReason ? _jsx("span", { className: "mt-0.5 block text-[10px] leading-3 text-white/45", children: providerSessionTuiUnavailableReason }) : null] })] })] }))] }), _jsxs("div", { ref: panelMenuRef, className: "relative", children: [_jsx("button", { type: "button", onClick: () => setPanelMenuOpen((open) => !open), className: `h-7 w-7 inline-flex items-center justify-center rounded-[5px] transition-colors ${panelMenuOpen
|
|
1888
1891
|
? 'text-white/72 bg-white/[0.07]'
|
|
1889
|
-
: 'text-white/30 hover:text-white/65 hover:bg-white/[0.055]'}`, title: "Panel options", "aria-label": "Right panel options", "aria-haspopup": "menu", "aria-expanded": panelMenuOpen, children: _jsx(MoreHorizontal, { className: "w-3.5 h-3.5", strokeWidth: 1.8 }) }), panelMenuOpen && (_jsxs("div", { role: "menu", className: "absolute right-0 top-[32px] z-50 w-52 overflow-hidden rounded-[7px] border border-white/[0.08] bg-
|
|
1892
|
+
: 'text-white/30 hover:text-white/65 hover:bg-white/[0.055]'}`, title: "Panel options", "aria-label": "Right panel options", "aria-haspopup": "menu", "aria-expanded": panelMenuOpen, children: _jsx(MoreHorizontal, { className: "w-3.5 h-3.5", strokeWidth: 1.8 }) }), panelMenuOpen && (_jsxs("div", { role: "menu", className: "absolute right-0 top-[32px] z-50 w-52 overflow-hidden rounded-[7px] border border-white/[0.08] bg-xs-page py-1 shadow-[0_16px_40px_rgba(0,0,0,0.45)]", children: [activeTerminal ? (_jsxs(_Fragment, { children: [_jsx("button", { type: "button", role: "menuitem", onClick: () => {
|
|
1890
1893
|
onClearTerminal(activeTerminal.id);
|
|
1891
1894
|
setPanelMenuOpen(false);
|
|
1892
1895
|
}, className: "w-full px-3 py-2 text-left text-[12px] text-white/64 hover:bg-white/[0.06] hover:text-white transition-colors", children: "Clear terminal" }), _jsx("button", { type: "button", role: "menuitem", onClick: () => {
|
|
@@ -1937,12 +1940,12 @@ function FolderSidebar({ conversationId, workspaceId, rootDirectory, allowedDire
|
|
|
1937
1940
|
}, disabled: terminalTabs.length === 0, className: "w-full px-3 py-2 text-left text-[12px] text-white/64 hover:bg-white/[0.06] hover:text-white transition-colors disabled:cursor-not-allowed disabled:opacity-35 disabled:hover:bg-transparent", children: "Close all PowerShell tabs" }), _jsx("div", { className: "my-1 h-px bg-white/[0.06]" }), _jsx("button", { type: "button", role: "menuitem", onClick: () => {
|
|
1938
1941
|
setPanelMenuOpen(false);
|
|
1939
1942
|
onClose();
|
|
1940
|
-
}, className: "w-full px-3 py-2 text-left text-[12px] text-white/64 hover:bg-white/[0.06] hover:text-white transition-colors", children: "Close side panel" })] }))] }), _jsx("button", { onClick: onOpenFolder, disabled: !conversationId, className: "h-7 w-7 inline-flex items-center justify-center rounded-[5px] text-white/35 hover:text-white/70 hover:bg-white/[0.055] transition-colors disabled:opacity-30 disabled:cursor-not-allowed", title: conversationId ? 'Open folder for this conversation' : 'Select a conversation first', type: "button", children: _jsx(FolderOpen, { className: "w-3.5 h-3.5", strokeWidth: 1.8 }) }), _jsx("button", { onClick: onClose, className: "h-7 w-7 inline-flex items-center justify-center rounded-[5px] text-white/35 hover:text-white/70 hover:bg-white/[0.055] transition-colors", title: "Close sidebar", type: "button", children: _jsx(PanelRightClose, { className: "w-3.5 h-3.5", strokeWidth: 1.8 }) })] })] }), _jsxs("nav", { className: `relative flex-1 min-h-0 ${activeTerminalTabId || activeBrowserTabId ? 'overflow-hidden bg-
|
|
1943
|
+
}, className: "w-full px-3 py-2 text-left text-[12px] text-white/64 hover:bg-white/[0.06] hover:text-white transition-colors", children: "Close side panel" })] }))] }), _jsx("button", { onClick: onOpenFolder, disabled: !conversationId, className: "h-7 w-7 inline-flex items-center justify-center rounded-[5px] text-white/35 hover:text-white/70 hover:bg-white/[0.055] transition-colors disabled:opacity-30 disabled:cursor-not-allowed", title: conversationId ? 'Open folder for this conversation' : 'Select a conversation first', type: "button", children: _jsx(FolderOpen, { className: "w-3.5 h-3.5", strokeWidth: 1.8 }) }), _jsx("button", { onClick: onClose, className: "h-7 w-7 inline-flex items-center justify-center rounded-[5px] text-white/35 hover:text-white/70 hover:bg-white/[0.055] transition-colors", title: "Close sidebar", type: "button", children: _jsx(PanelRightClose, { className: "w-3.5 h-3.5", strokeWidth: 1.8 }) })] })] }), _jsxs("nav", { className: `relative flex-1 min-h-0 ${activeTerminalTabId || activeBrowserTabId ? 'overflow-hidden bg-xs-frame' : 'agent-scrollbar overflow-auto p-2 pr-3'}`, children: [browserTabs.map((tab) => {
|
|
1941
1944
|
const visible = activeBrowserTabId === tab.id;
|
|
1942
1945
|
return (_jsx("div", { className: visible
|
|
1943
1946
|
? 'absolute inset-0'
|
|
1944
|
-
: 'absolute inset-0 invisible pointer-events-none opacity-0', "aria-hidden": !visible, children: _jsx(React.Suspense, { fallback: _jsx("div", { className: "h-full bg-
|
|
1945
|
-
}), 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-
|
|
1947
|
+
: 'absolute inset-0 invisible pointer-events-none opacity-0', "aria-hidden": !visible, children: _jsx(React.Suspense, { fallback: _jsx("div", { className: "h-full bg-xs-frame 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));
|
|
1948
|
+
}), 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-xs-frame 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,
|
|
1946
1949
|
// A created control-TUI tab remains renderable even after its
|
|
1947
1950
|
// process exits or its lane moves to reconciliation. Otherwise
|
|
1948
1951
|
// the useful vendor diagnostics are replaced by the unrelated
|
|
@@ -1954,7 +1957,7 @@ function FolderSidebar({ conversationId, workspaceId, rootDirectory, allowedDire
|
|
|
1954
1957
|
function RightSidebarControls({ folderPanelOpen, onOpenFolderPanel, onOpenChanges, visible = true, inline = false, }) {
|
|
1955
1958
|
if (!visible)
|
|
1956
1959
|
return null;
|
|
1957
|
-
return (_jsxs("div", { className: inline ? 'flex items-center gap-1.5 px-2' : 'absolute top-2.5 right-3 z-20 flex items-center gap-1.5', children: [onOpenChanges && (_jsx("button", { onClick: onOpenChanges, className: "h-7 w-7 rounded-[4px] bg-
|
|
1960
|
+
return (_jsxs("div", { className: inline ? 'flex items-center gap-1.5 px-2' : 'absolute top-2.5 right-3 z-20 flex items-center gap-1.5', children: [onOpenChanges && (_jsx("button", { onClick: onOpenChanges, className: "h-7 w-7 rounded-[4px] bg-xs-raised hover:bg-xs-field text-xs-ink3 hover:text-white flex items-center justify-center", title: "Changes (Ctrl+Shift+D)", "aria-label": "Open changes", type: "button", "data-xeno-agent-changes-open": "true", children: _jsx(GitCompareArrows, { className: "w-3.5 h-3.5", strokeWidth: 1.8 }) })), !folderPanelOpen && _jsx("button", { onClick: onOpenFolderPanel, className: "h-7 w-7 rounded-[4px] bg-xs-raised hover:bg-xs-field text-xs-ink3 hover:text-white border border-white/[0.08] flex items-center justify-center transition-colors shadow-xs cursor-pointer", title: "Open right panel (Files & Terminal)", "aria-label": "Open right panel", type: "button", children: _jsx(PanelRightOpen, { className: "w-3.5 h-3.5", strokeWidth: 1.8 }) })] }));
|
|
1958
1961
|
}
|
|
1959
1962
|
function EditorTabs({ tabs, activeTabId, onSelectTab, onCloseTab, }) {
|
|
1960
1963
|
return (_jsxs("div", { className: "h-full min-w-0 flex items-center overflow-hidden", 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(Folder, { className: "w-3.5 h-3.5", strokeWidth: 1.8 }) }), _jsx("div", { className: "h-full min-w-0 flex-1 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", children: _jsx("div", { className: "h-full flex items-center gap-1 px-1.5", children: tabs.map((tab) => {
|
|
@@ -2213,7 +2216,7 @@ function ContextMenuPopup({ menu, workspaces, onClose, onAction, }) {
|
|
|
2213
2216
|
setExtendsBelowParent(subRect.bottom > parentRect.bottom + 6);
|
|
2214
2217
|
}
|
|
2215
2218
|
}, []);
|
|
2216
|
-
return (_jsxs("div", { ref: subRef, className: "absolute top-0 z-[510] " + width + " border border-white/[0.12] bg-
|
|
2219
|
+
return (_jsxs("div", { ref: subRef, className: "absolute top-0 z-[510] " + width + " border border-white/[0.12] bg-xs-raised p-1 shadow-2xl " + (opensOnRight
|
|
2217
2220
|
? (extendsBelowParent ? "left-full ml-2.5 rounded-lg rounded-tl-[2px]" : "left-full ml-2.5 rounded-r-lg rounded-l-[2px]")
|
|
2218
2221
|
: (extendsBelowParent ? "right-full mr-2.5 rounded-lg rounded-tr-[2px]" : "right-full mr-2.5 rounded-l-lg rounded-r-[2px]")), children: [_jsx("div", { "aria-hidden": "true", className: "absolute top-0 bottom-0 pointer-events-auto " + (opensOnRight ? "-left-3 w-4" : "-right-3 w-4") }), children(extendsBelowParent)] }));
|
|
2219
2222
|
};
|
|
@@ -2237,7 +2240,7 @@ function ContextMenuPopup({ menu, workspaces, onClose, onAction, }) {
|
|
|
2237
2240
|
}
|
|
2238
2241
|
return 'rounded-[2px]';
|
|
2239
2242
|
};
|
|
2240
|
-
return createPortal(_jsxs("div", { ref: menuRef, className: "fixed z-[500] w-[195px] rounded-lg border border-white/[0.12] bg-
|
|
2243
|
+
return createPortal(_jsxs("div", { ref: menuRef, className: "fixed z-[500] w-[195px] rounded-lg border border-white/[0.12] bg-xs-raised p-1 shadow-2xl backdrop-blur-md text-[12px] text-zinc-300 select-none animate-in fade-in duration-100", style: { left: posX, top: posY }, children: [menu.type === 'workspace' && (() => {
|
|
2241
2244
|
const hasDir = Boolean(currentWorkspace?.directories && currentWorkspace.directories.length > 0);
|
|
2242
2245
|
return (_jsxs(_Fragment, { children: [hasDir && (_jsx(MenuItem, { icon: FolderOpen, label: "Open in Explorer", shortcut: "E", position: "first", onClick: () => { onAction('open-explorer'); onClose(); }, onMouseEnter: () => setActiveSubmenu(null) })), _jsx(MenuItem, { icon: Edit2, label: "Rename Workspace", shortcut: "R", position: hasDir ? 'middle' : 'first', onClick: () => { onAction('rename'); onClose(); }, onMouseEnter: () => setActiveSubmenu(null) }), _jsxs("div", { className: "relative", onMouseLeave: () => setActiveSubmenu(null), children: [_jsx(MenuItem, { icon: Copy, label: "Copy", shortcut: "C", hasSubmenu: true, position: "middle", onClick: () => setActiveSubmenu(activeSubmenu === 'copy' ? null : 'copy'), onMouseEnter: () => setActiveSubmenu('copy') }), activeSubmenu === 'copy' && (_jsx(SubmenuPanel, { width: "w-[175px]", children: (extendsBelow) => copyItems.map((item, idx) => (_jsxs("button", { type: "button", onClick: () => { onAction(item.action); onClose(); }, className: "w-full px-2 py-1 text-left text-[11px] text-zinc-300 hover:bg-white/[0.06] hover:text-white transition-colors flex items-center justify-between gap-2 cursor-pointer " + getSubmenuItemRadius(idx, copyItems.length, extendsBelow), children: [_jsxs("div", { className: "flex items-center gap-2 min-w-0 flex-1 truncate", children: [_jsx(Copy, { className: "w-3 h-3 text-zinc-400 flex-shrink-0" }), _jsx("span", { className: "truncate", children: item.label })] }), _jsx("span", { className: "text-[10px] font-mono text-zinc-500 ml-2 flex-shrink-0", children: idx + 1 })] }, item.action))) }))] }), _jsx(MenuItem, { icon: FolderPlus, label: "Add Project Folder...", shortcut: "F", position: "middle", onClick: () => { onAction('add-folder'); onClose(); }, onMouseEnter: () => setActiveSubmenu(null) }), _jsx(MenuItem, { icon: Plus, label: "Add Team", shortcut: "T", position: "middle", onClick: () => { onAction('add-team'); onClose(); }, onMouseEnter: () => setActiveSubmenu(null) }), _jsx(MenuItem, { icon: Copy, label: "Duplicate Workspace", shortcut: "U", position: "middle", onClick: () => { onAction('duplicate'); onClose(); }, onMouseEnter: () => setActiveSubmenu(null) }), _jsx(MenuItem, { icon: Layers, label: currentWorkspace?.teams.some(t => !t.isExpanded) ? "Expand all" : "Collapse all", shortcut: "X", position: "middle", onClick: () => { onAction(currentWorkspace?.teams.some(t => !t.isExpanded) ? 'expand' : 'collapse'); onClose(); }, onMouseEnter: () => setActiveSubmenu(null) }), _jsx("div", { className: "my-1 border-t border-white/[0.06]" }), _jsx(MenuItem, { icon: Settings, label: "Workspace Settings", shortcut: "S", position: "middle", onClick: () => { onAction('settings'); onClose(); }, onMouseEnter: () => setActiveSubmenu(null) }), _jsx("div", { className: "my-1 border-t border-white/[0.06]" }), _jsx(MenuItem, { icon: Trash2, label: "Delete Workspace", shortcut: "D", danger: true, position: "last", onClick: () => { onAction('delete'); onClose(); }, onMouseEnter: () => setActiveSubmenu(null) })] }));
|
|
2243
2246
|
})(), menu.type === 'team' && (_jsxs(_Fragment, { children: [_jsx(MenuItem, { icon: Plus, label: "Add Agent to Team", shortcut: "A", position: "first", onClick: () => { onAction('add-agent'); onClose(); }, onMouseEnter: () => setActiveSubmenu(null) }), _jsx(MenuItem, { icon: Edit2, label: "Rename Team", shortcut: "R", position: "middle", onClick: () => { onAction('rename'); onClose(); }, onMouseEnter: () => setActiveSubmenu(null) }), _jsxs("div", { className: "relative", onMouseLeave: () => setActiveSubmenu(null), children: [_jsx(MenuItem, { icon: Copy, label: "Copy", shortcut: "C", hasSubmenu: true, position: "middle", onClick: () => setActiveSubmenu(activeSubmenu === 'copy' ? null : 'copy'), onMouseEnter: () => setActiveSubmenu('copy') }), activeSubmenu === 'copy' && (_jsx(SubmenuPanel, { width: "w-[160px]", children: (extendsBelow) => copyItems.map((item, idx) => (_jsxs("button", { type: "button", onClick: () => { onAction(item.action); onClose(); }, className: "w-full px-2 py-1 text-left text-[11px] text-zinc-300 hover:bg-white/[0.06] hover:text-white transition-colors flex items-center justify-between gap-2 cursor-pointer " + getSubmenuItemRadius(idx, copyItems.length, extendsBelow), children: [_jsxs("div", { className: "flex items-center gap-2 min-w-0 flex-1 truncate", children: [_jsx(Copy, { className: "w-3 h-3 text-zinc-400 flex-shrink-0" }), _jsx("span", { className: "truncate", children: item.label })] }), _jsx("span", { className: "text-[10px] font-mono text-zinc-500 ml-2 flex-shrink-0", children: idx + 1 })] }, item.action))) }))] }), moveTargets.length > 0 && (_jsxs("div", { className: "relative", onMouseLeave: () => setActiveSubmenu(null), children: [_jsx(MenuItem, { icon: Move, label: "Move to workspace", shortcut: "M", hasSubmenu: true, position: "middle", onClick: () => setActiveSubmenu(activeSubmenu === 'move' ? null : 'move'), onMouseEnter: () => setActiveSubmenu('move') }), activeSubmenu === 'move' && (_jsx(SubmenuPanel, { width: "w-[185px]", children: (extendsBelow) => (_jsx("div", { className: "max-h-[220px] overflow-auto", children: moveTargets.map((target, idx) => (_jsxs("button", { type: "button", onClick: () => { onAction('move', target.workspaceId); onClose(); }, className: "w-full px-2 py-1.5 text-left text-[11px] text-zinc-300 hover:bg-white/[0.06] hover:text-white rounded transition-colors flex items-center justify-between gap-2 cursor-pointer " + getSubmenuItemRadius(idx, moveTargets.length, extendsBelow), children: [_jsx("span", { className: "truncate flex-1 min-w-0", children: target.workspaceName }), _jsx("span", { className: "text-[10px] font-mono text-zinc-500 ml-2 flex-shrink-0", children: idx + 1 })] }, target.workspaceId))) })) }))] })), _jsx(MenuItem, { icon: Copy, label: "Duplicate Team", shortcut: "U", position: "middle", onClick: () => { onAction('duplicate'); onClose(); }, onMouseEnter: () => setActiveSubmenu(null) }), _jsx("div", { className: "my-1 border-t border-white/[0.06]" }), _jsx(MenuItem, { icon: Settings, label: "Team Settings", shortcut: "S", position: "middle", onClick: () => { onAction('settings'); onClose(); }, onMouseEnter: () => setActiveSubmenu(null) }), _jsx("div", { className: "my-1 border-t border-white/[0.06]" }), _jsx(MenuItem, { icon: Trash2, label: "Delete Team", shortcut: "D", danger: true, position: "last", onClick: () => { onAction('delete'); onClose(); }, onMouseEnter: () => setActiveSubmenu(null) })] })), menu.type === 'agent' && (_jsxs(_Fragment, { children: [_jsx(MenuItem, { icon: MessageSquare, label: "New Conversation", shortcut: "N", position: "first", onClick: () => { onAction('new-conversation'); onClose(); }, onMouseEnter: () => setActiveSubmenu(null) }), _jsx(MenuItem, { icon: Edit2, label: "Rename Agent", shortcut: "R", position: "middle", onClick: () => { onAction('rename'); onClose(); }, onMouseEnter: () => setActiveSubmenu(null) }), _jsxs("div", { className: "relative", onMouseLeave: () => setActiveSubmenu(null), children: [_jsx(MenuItem, { icon: Copy, label: "Copy", shortcut: "C", hasSubmenu: true, position: "middle", onClick: () => setActiveSubmenu(activeSubmenu === 'copy' ? null : 'copy'), onMouseEnter: () => setActiveSubmenu('copy') }), activeSubmenu === 'copy' && (_jsx(SubmenuPanel, { width: "w-[160px]", children: (extendsBelow) => copyItems.map((item, idx) => (_jsxs("button", { type: "button", onClick: () => { onAction(item.action); onClose(); }, className: "w-full px-2 py-1 text-left text-[11px] text-zinc-300 hover:bg-white/[0.06] hover:text-white transition-colors flex items-center justify-between gap-2 cursor-pointer " + getSubmenuItemRadius(idx, copyItems.length, extendsBelow), children: [_jsxs("div", { className: "flex items-center gap-2 min-w-0 flex-1 truncate", children: [_jsx(Copy, { className: "w-3 h-3 text-zinc-400 flex-shrink-0" }), _jsx("span", { className: "truncate", children: item.label })] }), _jsx("span", { className: "text-[10px] font-mono text-zinc-500 ml-2 flex-shrink-0", children: idx + 1 })] }, item.action))) }))] }), moveTargets.length > 0 && (_jsxs("div", { className: "relative", onMouseLeave: () => setActiveSubmenu(null), children: [_jsx(MenuItem, { icon: Move, label: "Move to team", shortcut: "M", hasSubmenu: true, position: "middle", onClick: () => setActiveSubmenu(activeSubmenu === 'move' ? null : 'move'), onMouseEnter: () => setActiveSubmenu('move') }), activeSubmenu === 'move' && (_jsx(SubmenuPanel, { width: "w-[200px]", children: (extendsBelow) => (_jsx("div", { className: "max-h-[220px] overflow-auto", children: moveTargets.map((target, idx) => (_jsxs("button", { type: "button", onClick: () => { onAction('move', target.workspaceId, target.teamId); onClose(); }, className: "w-full px-2 py-1.5 text-left text-[11px] text-zinc-300 hover:bg-white/[0.06] hover:text-white rounded transition-colors flex items-center justify-between gap-2 cursor-pointer " + getSubmenuItemRadius(idx, moveTargets.length, extendsBelow), children: [_jsxs("span", { className: "truncate flex-1 min-w-0", children: [_jsxs("span", { className: "text-zinc-500", children: [target.workspaceName, " /"] }), " ", target.teamName] }), _jsx("span", { className: "text-[10px] font-mono text-zinc-500 ml-2 flex-shrink-0", children: idx + 1 })] }, `${target.workspaceId}-${target.teamId}`))) })) }))] })), _jsx(MenuItem, { icon: Copy, label: "Duplicate Agent", shortcut: "U", position: "middle", onClick: () => { onAction('duplicate'); onClose(); }, onMouseEnter: () => setActiveSubmenu(null) }), _jsx("div", { className: "my-1 border-t border-white/[0.06]" }), _jsx(MenuItem, { icon: Settings, label: "Agent Settings", shortcut: "S", position: "middle", onClick: () => { onAction('settings'); onClose(); }, onMouseEnter: () => setActiveSubmenu(null) }), _jsx("div", { className: "my-1 border-t border-white/[0.06]" }), _jsx(MenuItem, { icon: Trash2, label: "Delete Agent", shortcut: "D", danger: true, position: "last", onClick: () => { onAction('delete'); onClose(); }, onMouseEnter: () => setActiveSubmenu(null) })] })), menu.type === 'conversation' && (_jsxs(_Fragment, { children: [_jsx(MenuItem, { icon: Edit2, label: "Rename", shortcut: "R", position: "first", onClick: () => { onAction('rename'); onClose(); }, onMouseEnter: () => setActiveSubmenu(null) }), _jsxs("div", { className: "relative", onMouseLeave: () => setActiveSubmenu(null), children: [_jsx(MenuItem, { icon: Copy, label: "Copy", shortcut: "C", hasSubmenu: true, position: "middle", onClick: () => setActiveSubmenu(activeSubmenu === 'copy' ? null : 'copy'), onMouseEnter: () => setActiveSubmenu('copy') }), activeSubmenu === 'copy' && (_jsx(SubmenuPanel, { width: "w-[175px]", children: (extendsBelow) => copyItems.map((item, idx) => (_jsxs("button", { type: "button", onClick: () => { onAction(item.action); onClose(); }, className: "w-full px-2 py-1 text-left text-[11px] text-zinc-300 hover:bg-white/[0.06] hover:text-white transition-colors flex items-center justify-between gap-2 cursor-pointer " + getSubmenuItemRadius(idx, copyItems.length, extendsBelow), children: [_jsxs("div", { className: "flex items-center gap-2 min-w-0 flex-1 truncate", children: [_jsx(Copy, { className: "w-3 h-3 text-zinc-400 flex-shrink-0" }), _jsx("span", { className: "truncate", children: item.label })] }), _jsx("span", { className: "text-[10px] font-mono text-zinc-500 ml-2 flex-shrink-0", children: idx + 1 })] }, item.action))) }))] }), _jsx(MenuItem, { icon: Archive, label: "Archive", shortcut: "A", position: "middle", onClick: () => { onAction('archive'); onClose(); }, onMouseEnter: () => setActiveSubmenu(null) }), _jsx("div", { className: "my-1 border-t border-white/[0.06]" }), _jsx(MenuItem, { icon: Trash2, label: "Delete Conversation", shortcut: "D", danger: true, position: "last", onClick: () => { onAction('delete'); onClose(); }, onMouseEnter: () => setActiveSubmenu(null) })] }))] }), document.body);
|
|
@@ -2266,7 +2269,24 @@ function relativeDate(ts) {
|
|
|
2266
2269
|
const months = Math.floor(days / 30);
|
|
2267
2270
|
return `${months}mo`;
|
|
2268
2271
|
}
|
|
2269
|
-
|
|
2272
|
+
/** The sidebar footer — the canvas's account row: initial, name and credits (opens Settings), then a
|
|
2273
|
+
* small toolbar for Knowledge, Plugins and Settings. Reads the signed-in person from the auth store. */
|
|
2274
|
+
function SidebarFooter({ onOpenAccount, onSelectKnowledge, onSelectPlugins, onSelectSettings }) {
|
|
2275
|
+
const user = useAuthStore(s => s.user);
|
|
2276
|
+
const name = user?.display_name?.trim() || user?.username || 'Not signed in';
|
|
2277
|
+
const detail = user ? `${Number(user.credits ?? 0).toLocaleString(undefined, { maximumFractionDigits: 2 })} credits` : 'Sign in';
|
|
2278
|
+
const tools = [
|
|
2279
|
+
['Knowledge', onSelectKnowledge, _jsx(BookIcon, {}, "k")],
|
|
2280
|
+
['Plugins', onSelectPlugins, _jsx(Package, { className: "w-4 h-4", strokeWidth: 1.5 }, "p")],
|
|
2281
|
+
['Settings', onSelectSettings, _jsx(SettingsIcon, {}, "s")],
|
|
2282
|
+
];
|
|
2283
|
+
return (_jsxs("div", { className: "flex flex-none items-center gap-1 border-t border-xs-line p-2", children: [_jsxs("button", { type: "button", onClick: onOpenAccount, className: "flex min-w-0 flex-1 items-center gap-2.5 h-10 px-1.5 rounded text-left hover:bg-white/[0.06] transition-colors cursor-pointer", title: "Account and settings", children: [_jsx("span", { className: "grid flex-none place-items-center w-7 h-7 rounded bg-xs-accent text-xs-on-accent text-[12px] font-semibold", children: name.slice(0, 1).toUpperCase() }), _jsxs("span", { className: "flex min-w-0 flex-col gap-px", children: [_jsx("span", { className: "truncate text-[12.5px] font-semibold text-white", children: name }), _jsx("span", { className: "truncate font-mono text-[10px] text-xs-ink3", children: detail })] })] }), _jsx("div", { role: "toolbar", "aria-label": "Knowledge, plugins and settings", className: "flex flex-none gap-px p-0.5 rounded-md bg-white/[0.06]", children: tools.map(([label, onClick, icon]) => (_jsx("button", { type: "button", onClick: onClick, "aria-label": label, title: label, className: "grid place-items-center w-[30px] h-[30px] rounded text-xs-ink2 hover:text-white hover:bg-xs-page transition-colors cursor-pointer", children: icon }, label))) })] }));
|
|
2284
|
+
}
|
|
2285
|
+
/** One page in the sidebar list — the canvas's nav row: 30 px, 13 px text, the active page bold on a fill. */
|
|
2286
|
+
function SidebarNavItem({ icon: Icon, label, active, onClick, badge, dataAttr }) {
|
|
2287
|
+
return (_jsxs("button", { type: "button", onClick: onClick, "aria-current": active ? 'page' : undefined, ...(dataAttr ? { [dataAttr]: 'true' } : {}), className: `w-full flex items-center gap-2.5 h-[30px] px-2.5 rounded text-left text-[13px] transition-colors cursor-pointer select-none ${active ? 'bg-white/[0.085] text-white font-semibold' : 'text-white hover:bg-white/[0.06]'}`, children: [_jsx(Icon, { className: "w-3.5 h-3.5 text-xs-ink2 flex-shrink-0" }), _jsx("span", { className: "flex-1 truncate", children: label }), badge ? _jsx("span", { className: "font-mono text-[10px] text-xs-ink3", children: badge }) : null] }));
|
|
2288
|
+
}
|
|
2289
|
+
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, onSelectMission, onStartProjectChat, onOpenSearchResultInEditor, viewMode, isSettingsOpen, }) {
|
|
2270
2290
|
const [isAddingWorkspace, setIsAddingWorkspace] = useState(false);
|
|
2271
2291
|
const [newWorkspaceName, setNewWorkspaceName] = useState('');
|
|
2272
2292
|
const [addingTeamToWorkspace, setAddingTeamToWorkspace] = useState(null);
|
|
@@ -2377,6 +2397,8 @@ function Sidebar({ collapsed, onToggleCollapse, onOpenSettings, workspaces, setW
|
|
|
2377
2397
|
const isTeamsActive = viewMode === 'teams';
|
|
2378
2398
|
const isAgentsActive = viewMode === 'agents';
|
|
2379
2399
|
const isScheduledActive = viewMode === 'scheduled';
|
|
2400
|
+
const isMissionActive = viewMode === 'mission';
|
|
2401
|
+
const mission = useMission();
|
|
2380
2402
|
// Top navigation tab: 'chats' | 'projects' | 'library' | 'settings' | 'scheduled'
|
|
2381
2403
|
const [activeNavTab, setActiveNavTab] = useState('chats');
|
|
2382
2404
|
const [projectSearch, setProjectSearch] = useState('');
|
|
@@ -3617,7 +3639,7 @@ function Sidebar({ collapsed, onToggleCollapse, onOpenSettings, workspaces, setW
|
|
|
3617
3639
|
};
|
|
3618
3640
|
if (collapsed) {
|
|
3619
3641
|
const targetWs = scopedWorkspace || currentWorkspace || workspaces[0];
|
|
3620
|
-
return (_jsxs("aside", { className: "flex-shrink-0 bg-
|
|
3642
|
+
return (_jsxs("aside", { className: "flex-shrink-0 bg-xs-page border-r border-white/[0.06] flex flex-col items-center py-2.5 gap-1.5 w-[50px] select-none", children: [_jsx("button", { onClick: onToggleCollapse, className: "p-1.5 rounded-[4px] text-xs-ink3 hover:text-white hover:bg-white/[0.06] transition-colors cursor-pointer", title: "Expand sidebar", children: _jsx(PanelLeftOpen, { className: "w-4 h-4" }) }), _jsx("button", { type: "button", onClick: () => {
|
|
3621
3643
|
const targetAgentId = scopedWorkspace ? (scopedMainAgentInfo?.agent?.id || inboxAgentId) : inboxAgentId;
|
|
3622
3644
|
const newId = createConversation(targetAgentId);
|
|
3623
3645
|
onSelectConversation(targetAgentId, newId);
|
|
@@ -3630,15 +3652,15 @@ function Sidebar({ collapsed, onToggleCollapse, onOpenSettings, workspaces, setW
|
|
|
3630
3652
|
}
|
|
3631
3653
|
}, className: `p-1.5 rounded-[4px] transition-colors cursor-pointer ${isChatsActive
|
|
3632
3654
|
? 'bg-white/[0.08] text-white'
|
|
3633
|
-
: 'text-
|
|
3655
|
+
: 'text-xs-ink3 hover:text-white hover:bg-white/[0.04]'}`, title: currentWorkspace ? `${currentWorkspace.name} Main Chat` : 'Chat', children: _jsx(MessageSquare, { className: "w-4 h-4" }) }), _jsx("button", { type: "button", onClick: onSelectProjects, className: `p-1.5 rounded-[4px] transition-colors cursor-pointer ${viewMode === 'projects'
|
|
3634
3656
|
? 'bg-white/[0.08] text-white'
|
|
3635
|
-
: 'text-
|
|
3657
|
+
: 'text-xs-ink3 hover:text-white hover:bg-white/[0.04]'}`, title: "Projects", children: _jsx(Folder, { className: "w-4 h-4" }) }), _jsx("button", { type: "button", onClick: onSelectTeams, className: `p-1.5 rounded-[4px] transition-colors cursor-pointer ${viewMode === 'teams'
|
|
3636
3658
|
? 'bg-white/[0.08] text-white'
|
|
3637
|
-
: 'text-
|
|
3659
|
+
: 'text-xs-ink3 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'
|
|
3638
3660
|
? 'bg-white/[0.08] text-white'
|
|
3639
|
-
: 'text-
|
|
3661
|
+
: 'text-xs-ink3 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-xs-ink3 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-xs-ink3 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'
|
|
3640
3662
|
? 'bg-white/[0.08] text-white'
|
|
3641
|
-
: 'text-
|
|
3663
|
+
: 'text-xs-ink3 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: () => {
|
|
3642
3664
|
if (targetWs) {
|
|
3643
3665
|
onOpenSettings({
|
|
3644
3666
|
type: 'workspace',
|
|
@@ -3650,59 +3672,23 @@ function Sidebar({ collapsed, onToggleCollapse, onOpenSettings, workspaces, setW
|
|
|
3650
3672
|
}
|
|
3651
3673
|
}, className: `p-1.5 rounded-[4px] transition-colors cursor-pointer ${isSettingsOpen
|
|
3652
3674
|
? 'bg-white/[0.08] text-white'
|
|
3653
|
-
: 'text-
|
|
3675
|
+
: 'text-xs-ink3 hover:text-white hover:bg-white/[0.04]'}`, title: "Workspace Settings", children: _jsx(Settings, { className: "w-4 h-4" }) })] }));
|
|
3654
3676
|
}
|
|
3655
|
-
return (_jsxs("aside", { className: "flex-shrink-0 bg-
|
|
3677
|
+
return (_jsxs("aside", { className: "flex-shrink-0 bg-xs-raised border-r border-xs-line flex flex-col", style: { width: SIDEBAR_WIDTH }, children: [_jsx("style", { children: `
|
|
3656
3678
|
@keyframes conversationDeleteParticle {
|
|
3657
3679
|
0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.6); }
|
|
3658
3680
|
15% { opacity: 1; }
|
|
3659
3681
|
100% { opacity: 0; transform: translate3d(var(--dx, 18px), var(--dy, -10px), 0) scale(1.35); }
|
|
3660
3682
|
}
|
|
3661
|
-
` }), _jsxs("nav", { className: "flex-1 overflow-auto p-2 space-y-3 [&::-webkit-scrollbar]:hidden", children: [_jsxs("div", { className: "pb-1.5 space-y-1", children: [_jsxs("div", { className: "flex items-center
|
|
3683
|
+
` }), _jsxs("nav", { className: "flex-1 overflow-auto p-2 space-y-3 [&::-webkit-scrollbar]:hidden", children: [_jsxs("div", { className: "pb-1.5 space-y-1", children: [_jsxs("div", { className: "flex items-center gap-1.5 pb-1", children: [_jsxs("button", { type: "button", onClick: () => {
|
|
3662
3684
|
const targetAgentId = scopedWorkspace ? (scopedMainAgentInfo?.agent?.id || inboxAgentId) : inboxAgentId;
|
|
3663
3685
|
const newId = createConversation(targetAgentId);
|
|
3664
3686
|
onSelectConversation(targetAgentId, newId);
|
|
3665
|
-
}, className: "flex-1 flex items-center gap-2 px-2.5
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
onSelectInbox();
|
|
3671
|
-
}
|
|
3672
|
-
}, 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 ${isChatsActive
|
|
3673
|
-
? 'bg-white/[0.08] text-white font-medium'
|
|
3674
|
-
: 'text-zinc-400 hover:text-white hover:bg-white/[0.04]'}`, children: [_jsx(MessageSquare, { className: "w-3.5 h-3.5 text-zinc-400 flex-shrink-0" }), _jsx("span", { className: "flex-1 truncate", children: "Chat" })] }), _jsxs("button", { type: "button", onClick: () => {
|
|
3675
|
-
onSelectProjects();
|
|
3676
|
-
}, 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 ${isProjectsActive
|
|
3677
|
-
? 'bg-white/[0.08] text-white font-medium'
|
|
3678
|
-
: 'text-zinc-400 hover:text-white hover:bg-white/[0.04]'}`, children: [_jsx(Folder, { className: "w-3.5 h-3.5 text-zinc-400 flex-shrink-0" }), _jsx("span", { className: "flex-1 truncate", children: "Projects" })] }), _jsxs("button", { type: "button", onClick: () => {
|
|
3679
|
-
onSelectTeams?.();
|
|
3680
|
-
}, 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 ${isTeamsActive
|
|
3681
|
-
? 'bg-white/[0.08] text-white font-medium'
|
|
3682
|
-
: 'text-zinc-400 hover:text-white hover:bg-white/[0.04]'}`, children: [_jsx(Users, { className: "w-3.5 h-3.5 text-zinc-400 flex-shrink-0" }), _jsx("span", { className: "flex-1 truncate", children: "Teams" })] }), _jsxs("button", { type: "button", onClick: () => {
|
|
3683
|
-
onSelectAgents?.();
|
|
3684
|
-
}, 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 ${isAgentsActive
|
|
3685
|
-
? 'bg-white/[0.08] text-white font-medium'
|
|
3686
|
-
: '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: () => {
|
|
3687
|
-
onSelectKnowledge();
|
|
3688
|
-
}, 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: () => {
|
|
3689
|
-
onSelectScheduled?.();
|
|
3690
|
-
}, 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
|
|
3691
|
-
? 'bg-white/[0.08] text-white font-medium'
|
|
3692
|
-
: 'text-zinc-400 hover:text-white hover:bg-white/[0.04]'}`, children: [_jsx(Clock, { className: "w-3.5 h-3.5 text-zinc-400 flex-shrink-0" }), _jsx("span", { className: "flex-1 truncate", children: "Scheduled" })] }), _jsxs("button", { type: "button", onClick: () => {
|
|
3693
|
-
const targetWs = scopedWorkspace || currentWorkspace || workspaces[0];
|
|
3694
|
-
if (targetWs) {
|
|
3695
|
-
onOpenSettings({
|
|
3696
|
-
type: 'workspace',
|
|
3697
|
-
workspaceId: targetWs.id,
|
|
3698
|
-
workspaceName: targetWs.name,
|
|
3699
|
-
teamCount: targetWs.teams.length,
|
|
3700
|
-
agentCount: targetWs.teams.reduce((acc, t) => acc + t.agents.length, 0),
|
|
3701
|
-
});
|
|
3702
|
-
}
|
|
3703
|
-
}, 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 ${isSettingsOpen
|
|
3704
|
-
? 'bg-white/[0.08] text-white font-medium'
|
|
3705
|
-
: 'text-zinc-400 hover:text-white hover:bg-white/[0.04]'}`, children: [_jsx(Settings, { className: "w-3.5 h-3.5 text-zinc-400 flex-shrink-0" }), _jsx("span", { className: "flex-1 truncate", children: "Settings" })] })] })] }), _jsxs("div", { className: "space-y-3 pt-1", children: [pinError && _jsx("p", { role: "alert", className: "px-2 text-[11px] text-amber-300", children: pinError }), (pinnedProjectItems.length > 0 || pinnedConversations.length > 0 || pinnedEntities.length > 0) && (_jsxs("div", { className: "pt-1 pb-1", children: [_jsxs("div", { className: "flex items-center justify-between px-2 pb-1 select-none", children: [_jsx("span", { className: "text-[11px] font-medium tracking-wide text-zinc-400", children: "Pinned" }), _jsx("span", { className: "text-[9px] font-mono px-1 py-0.2 rounded bg-white/[0.06] text-zinc-500", children: pinnedProjectItems.length + pinnedConversations.length + pinnedEntities.length })] }), _jsxs("div", { className: "space-y-0.5", children: [pinnedEntities.map(({ pin, name }) => (_jsxs("div", { className: "flex items-center gap-1 rounded-md px-2 py-1 text-[12px] text-zinc-300", children: [_jsxs("button", { type: "button", className: "min-w-0 flex-1 truncate text-left hover:text-white", onClick: () => {
|
|
3687
|
+
}, className: "flex-1 flex items-center gap-2 h-8 px-2.5 rounded bg-xs-field hover:bg-white/[0.1] text-white text-[13px] font-semibold transition-colors cursor-pointer", children: [_jsx(Plus, { className: "w-3 h-3 text-white" }), _jsx("span", { children: "New" }), _jsx("span", { className: "ml-auto font-mono text-[10px] font-normal text-xs-ink3", children: "Ctrl N" })] }), _jsx("button", { onClick: onToggleCollapse, className: "grid place-items-center w-7 h-7 rounded text-xs-ink3 hover:text-white hover:bg-white/[0.06] transition-colors flex-shrink-0 cursor-pointer", title: "Collapse sidebar", "aria-label": "Collapse sidebar", children: _jsx(PanelLeftClose, { className: "w-3.5 h-3.5" }) })] }), _jsx(NeedsYouBox, { onOpen: (item) => { if (item.conversationId && item.agentId)
|
|
3688
|
+
onSelectConversation(item.agentId, item.conversationId); }, onOpenMission: () => onSelectMission?.() }), _jsxs("div", { className: "flex flex-col gap-px", children: [_jsx(SidebarNavItem, { icon: Layers, label: "Mission control", active: isMissionActive, onClick: () => onSelectMission?.(), badge: mission.needs.length + mission.running.length > 0 ? String(mission.needs.length + mission.running.length) : undefined }), _jsx(SidebarNavItem, { icon: MessageSquare, label: "Chat", active: isChatsActive, onClick: () => { if (scopedWorkspace)
|
|
3689
|
+
handleSelectScopedWorkspaceChat();
|
|
3690
|
+
else
|
|
3691
|
+
onSelectInbox(); } }), _jsx(SidebarNavItem, { icon: Folder, label: "Projects", active: isProjectsActive, onClick: onSelectProjects }), _jsx(SidebarNavItem, { icon: Bot, label: "Agents", active: isAgentsActive, onClick: () => onSelectAgents?.() }), _jsx(SidebarNavItem, { icon: Users, label: "Teams", active: isTeamsActive, onClick: () => onSelectTeams?.() }), _jsx(SidebarNavItem, { icon: BookOpen, label: "Library", active: false, onClick: onSelectKnowledge }), _jsx(SidebarNavItem, { icon: Package, label: "Tools", active: false, onClick: onSelectTools, dataAttr: "data-xeno-sidebar-tools" }), _jsx(SidebarNavItem, { icon: Clock, label: "Scheduled", active: isScheduledActive, onClick: () => onSelectScheduled?.() })] })] }), _jsxs("div", { className: "space-y-3 pt-1", children: [pinError && _jsx("p", { role: "alert", className: "px-2 text-[11px] text-amber-300", children: pinError }), (pinnedProjectItems.length > 0 || pinnedConversations.length > 0 || pinnedEntities.length > 0) && (_jsxs("div", { className: "pt-1 pb-1", children: [_jsxs("div", { className: "flex items-center justify-between px-2 pb-1 select-none", children: [_jsx("span", { className: "text-[11px] font-medium tracking-wide text-zinc-400", children: "Pinned" }), _jsx("span", { className: "text-[9px] font-mono px-1 py-0.2 rounded bg-white/[0.06] text-zinc-500", children: pinnedProjectItems.length + pinnedConversations.length + pinnedEntities.length })] }), _jsxs("div", { className: "space-y-0.5", children: [pinnedEntities.map(({ pin, name }) => (_jsxs("div", { className: "flex items-center gap-1 rounded-md px-2 py-1 text-[12px] text-zinc-300", children: [_jsxs("button", { type: "button", className: "min-w-0 flex-1 truncate text-left hover:text-white", onClick: () => {
|
|
3706
3692
|
setActiveWorkspaceScope(pin.workspaceId);
|
|
3707
3693
|
if (pin.type === 'agent')
|
|
3708
3694
|
onSelectAgent(pin.agentId);
|
|
@@ -3710,7 +3696,7 @@ function Sidebar({ collapsed, onToggleCollapse, onOpenSettings, workspaces, setW
|
|
|
3710
3696
|
onOpenSettings({ type: 'team', workspaceId: pin.workspaceId, teamId: pin.teamId, teamName: name });
|
|
3711
3697
|
else
|
|
3712
3698
|
onOpenSettings({ type: 'workspace', workspaceId: pin.workspaceId, workspaceName: name });
|
|
3713
|
-
}, children: [name, " ", _jsx("span", { className: "text-[9px] text-zinc-500", children: pin.type })] }), _jsx("button", { type: "button", "aria-label": `Unpin ${pin.type} ${name}`, onClick: () => togglePinnedEntity(pin), className: "p-1 text-
|
|
3699
|
+
}, children: [name, " ", _jsx("span", { className: "text-[9px] text-zinc-500", children: pin.type })] }), _jsx("button", { type: "button", "aria-label": `Unpin ${pin.type} ${name}`, onClick: () => togglePinnedEntity(pin), className: "p-1 text-xs-info hover:text-white", children: _jsx(Pin, { className: "h-3 w-3 rotate-45 fill-current" }) })] }, entityPinKey(pin)))), pinnedProjectItems.map((p) => {
|
|
3714
3700
|
const leadAgent = currentWorkspace?.teams?.[0]?.agents?.[0] || { id: inboxAgentId };
|
|
3715
3701
|
return (_jsxs("div", { onClick: () => {
|
|
3716
3702
|
if (onStartProjectChat) {
|
|
@@ -3719,13 +3705,13 @@ function Sidebar({ collapsed, onToggleCollapse, onOpenSettings, workspaces, setW
|
|
|
3719
3705
|
else {
|
|
3720
3706
|
onSelectProjects();
|
|
3721
3707
|
}
|
|
3722
|
-
}, className: "group/pinned relative flex items-center justify-between rounded-md px-2.5 py-1.5 transition-colors cursor-pointer select-none text-zinc-300 hover:text-white hover:bg-white/[0.04]", title: `Project: ${p.dir}`, children: [_jsxs("div", { className: "flex items-center gap-2 min-w-0 flex-1", children: [_jsx("div", { className: "p-1 rounded bg-
|
|
3708
|
+
}, className: "group/pinned relative flex items-center justify-between rounded-md px-2.5 py-1.5 transition-colors cursor-pointer select-none text-zinc-300 hover:text-white hover:bg-white/[0.04]", title: `Project: ${p.dir}`, children: [_jsxs("div", { className: "flex items-center gap-2 min-w-0 flex-1", children: [_jsx("div", { className: "p-1 rounded bg-xs-info/10 text-xs-info flex-shrink-0", children: _jsx(Folder, { className: "w-3.5 h-3.5" }) }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsx("span", { className: "text-[12px] font-medium text-white truncate block", children: p.name }), _jsx("span", { className: "text-[10px] text-zinc-500 truncate block font-mono", children: p.workspaceName })] })] }), _jsxs("div", { className: "flex items-center gap-1 ml-auto flex-shrink-0", children: [_jsx("button", { type: "button", onClick: (e) => {
|
|
3723
3709
|
e.stopPropagation();
|
|
3724
3710
|
handleOpenPathInExplorer(p.dir);
|
|
3725
3711
|
}, className: "hidden group-hover/pinned:flex p-1 rounded text-zinc-400 hover:text-white transition-colors", title: "Open in Explorer", children: _jsx(ArrowUpRight, { className: "w-3 h-3" }) }), _jsx("button", { type: "button", onClick: (e) => {
|
|
3726
3712
|
e.stopPropagation();
|
|
3727
3713
|
togglePinProject(p.dir);
|
|
3728
|
-
}, className: "hidden group-hover/pinned:flex p-1 rounded text-
|
|
3714
|
+
}, className: "hidden group-hover/pinned:flex p-1 rounded text-xs-info hover:text-white transition-colors", title: "Unpin project", children: _jsx(Pin, { className: "w-3 h-3 rotate-45 fill-current" }) })] })] }, p.dir));
|
|
3729
3715
|
}), pinnedConversations.map((conv) => {
|
|
3730
3716
|
const isSelected = selectedInboxConversationId === conv.id || selectedConversationId === conv.id;
|
|
3731
3717
|
const ws = workspaces.find((w) => w.id === conv.workspaceId) ||
|
|
@@ -3745,7 +3731,7 @@ function Sidebar({ collapsed, onToggleCollapse, onOpenSettings, workspaces, setW
|
|
|
3745
3731
|
: 'text-zinc-300 hover:text-white hover:bg-white/[0.04]'}`, children: [_jsxs("div", { className: "flex items-center justify-between gap-1.5 min-w-0", children: [_jsx("span", { className: "text-[12px] font-medium text-white truncate flex-1 min-w-0", children: conv.title || 'New conversation' }), _jsx(TerminalOriginMark, { startedIn: conversations[conv.id]?.startedIn }), _jsx("span", { className: "text-[10px] font-mono text-zinc-500 flex-shrink-0 group-hover/pinned:hidden", children: relativeDate(conv.lastMessageAt || conv.timestamp || conv.createdAt || Date.now()) }), _jsx("button", { type: "button", onClick: (e) => {
|
|
3746
3732
|
e.stopPropagation();
|
|
3747
3733
|
togglePinConversation(conv.id);
|
|
3748
|
-
}, className: "hidden group-hover/pinned:flex p-0.5 rounded text-
|
|
3734
|
+
}, className: "hidden group-hover/pinned:flex p-0.5 rounded text-xs-info hover:text-white transition-colors", title: "Unpin conversation", children: _jsx(Pin, { className: "w-3 h-3 rotate-45 fill-current" }) })] }), _jsxs("div", { className: "flex items-center gap-1.5 text-[11px] text-zinc-500 group-hover/pinned:text-zinc-400 transition-colors mt-0.5 truncate", children: [_jsx(Folder, { className: "w-3 h-3 text-zinc-500 flex-shrink-0" }), _jsx("span", { className: "truncate font-mono text-[10.5px]", children: folderLabel })] })] }, conv.id));
|
|
3749
3735
|
})] })] })), _jsx("div", { className: "pt-1", children: (() => {
|
|
3750
3736
|
const targetWs = scopedWorkspace;
|
|
3751
3737
|
const mainAgentInfo = scopedMainAgentInfo || (() => {
|
|
@@ -3848,7 +3834,7 @@ function Sidebar({ collapsed, onToggleCollapse, onOpenSettings, workspaces, setW
|
|
|
3848
3834
|
e.stopPropagation();
|
|
3849
3835
|
togglePinConversation(conv.id);
|
|
3850
3836
|
}, className: "p-0.5 rounded transition-colors " + (isPinned
|
|
3851
|
-
? "text-
|
|
3837
|
+
? "text-xs-info hover:text-white"
|
|
3852
3838
|
: "text-zinc-500 hover:text-white opacity-0 group-hover/conv:opacity-100"), title: isPinned ? "Unpin conversation" : "Pin conversation", children: _jsx(Pin, { className: "w-3.5 h-3.5 " + (isPinned ? "rotate-45 fill-current" : "") }) }), _jsx("button", { type: "button", onClick: (e) => {
|
|
3853
3839
|
e.stopPropagation();
|
|
3854
3840
|
if (targetWs)
|
|
@@ -3875,14 +3861,14 @@ function Sidebar({ collapsed, onToggleCollapse, onOpenSettings, workspaces, setW
|
|
|
3875
3861
|
else {
|
|
3876
3862
|
onSelectProjects();
|
|
3877
3863
|
}
|
|
3878
|
-
}, className: "group/proj relative flex items-center justify-between rounded-md px-2.5 py-1.5 transition-colors cursor-pointer select-none text-zinc-400 hover:text-white hover:bg-white/[0.04]", title: dir, children: [_jsxs("div", { className: "flex items-center gap-2 min-w-0 flex-1", children: [_jsx(Folder, { className: "w-3.5 h-3.5 text-zinc-500 group-hover/proj:text-
|
|
3864
|
+
}, className: "group/proj relative flex items-center justify-between rounded-md px-2.5 py-1.5 transition-colors cursor-pointer select-none text-zinc-400 hover:text-white hover:bg-white/[0.04]", title: dir, children: [_jsxs("div", { className: "flex items-center gap-2 min-w-0 flex-1", children: [_jsx(Folder, { className: "w-3.5 h-3.5 text-zinc-500 group-hover/proj:text-xs-info transition-colors flex-shrink-0" }), _jsx("span", { className: "text-[12px] truncate flex-1", children: projectName })] }), _jsxs("div", { className: "flex items-center gap-0.5 opacity-0 group-hover/proj:opacity-100 transition-opacity ml-auto flex-shrink-0", children: [_jsx("button", { type: "button", onClick: (e) => {
|
|
3879
3865
|
e.stopPropagation();
|
|
3880
3866
|
togglePinProject(dir);
|
|
3881
|
-
}, className: `p-1 rounded transition-colors ${isPinned ? 'text-
|
|
3867
|
+
}, className: `p-1 rounded transition-colors ${isPinned ? 'text-xs-info' : 'text-zinc-500 hover:text-white'}`, title: isPinned ? 'Unpin project' : 'Pin project to top', children: _jsx(Pin, { className: `w-3 h-3 ${isPinned ? 'rotate-45 fill-current' : ''}` }) }), _jsx("button", { type: "button", onClick: (e) => {
|
|
3882
3868
|
e.stopPropagation();
|
|
3883
3869
|
handleOpenPathInExplorer(dir);
|
|
3884
3870
|
}, className: "p-1 rounded text-zinc-500 hover:text-white transition-colors", title: "Open in Windows Explorer", children: _jsx(ArrowUpRight, { className: "w-3 h-3" }) })] })] }, dir));
|
|
3885
|
-
})) }))] }), _jsxs("div", { className: "pt-1", children: [_jsxs("div", { className: "flex items-center justify-between px-2 pb-1.5 select-none", children: [_jsx("span", { className: "text-[11px] font-medium uppercase tracking-wider text-zinc-500", children: "Teams" }), _jsxs("div", { className: "flex items-center gap-0.5", children: [_jsx("button", { type: "button", onClick: handleToggleSidebarViewMode, "aria-label": "Stacked sidebar layout", "aria-pressed": sidebarViewMode === 'stacked', className: "p-1 rounded transition-colors " + (sidebarViewMode === 'stacked' ? "text-
|
|
3871
|
+
})) }))] }), _jsxs("div", { className: "pt-1", children: [_jsxs("div", { className: "flex items-center justify-between px-2 pb-1.5 select-none", children: [_jsx("span", { className: "text-[11px] font-medium uppercase tracking-wider text-zinc-500", children: "Teams" }), _jsxs("div", { className: "flex items-center gap-0.5", children: [_jsx("button", { type: "button", onClick: handleToggleSidebarViewMode, "aria-label": "Stacked sidebar layout", "aria-pressed": sidebarViewMode === 'stacked', className: "p-1 rounded transition-colors " + (sidebarViewMode === 'stacked' ? "text-xs-info hover:text-white" : "text-zinc-500 hover:text-zinc-200 hover:bg-white/[0.04]"), title: sidebarViewMode === 'tree' ? 'Switch to Stacked View' : 'Switch to Tree View', children: sidebarViewMode === 'tree' ? _jsx(Layers, { className: "w-3.5 h-3.5" }) : _jsx(GitBranch, { className: "w-3.5 h-3.5" }) }), _jsx("button", { onClick: () => {
|
|
3886
3872
|
const targetWsId = currentWorkspace ? currentWorkspace.id : workspaces[0]?.id;
|
|
3887
3873
|
if (targetWsId)
|
|
3888
3874
|
setAddingTeamToWorkspace(targetWsId);
|
|
@@ -3921,15 +3907,15 @@ function Sidebar({ collapsed, onToggleCollapse, onOpenSettings, workspaces, setW
|
|
|
3921
3907
|
}, children: [_jsxs("div", { className: "flex items-center gap-2 min-w-0 flex-1", children: [_jsx("div", { className: "w-4 h-4 flex items-center justify-center mr-1 flex-shrink-0", children: isActive ? (_jsx("span", { className: "w-2 h-2 rounded-[2px] bg-white" })) : (_jsx("span", { className: "w-2 h-2 rounded-[2px] border border-zinc-500/80" })) }), _jsx("span", { className: "text-[12px] truncate flex-1 min-w-0", children: conv.title || 'New conversation' }), _jsx(TerminalOriginMark, { startedIn: conversations[conv.id]?.startedIn })] }), _jsxs("div", { className: "flex items-center gap-1 ml-auto flex-shrink-0", children: [_jsx("button", { type: "button", onClick: (e) => {
|
|
3922
3908
|
e.stopPropagation();
|
|
3923
3909
|
togglePinConversation(conv.id);
|
|
3924
|
-
}, className: "p-0.5 rounded transition-colors " + (isPinned ? "text-
|
|
3910
|
+
}, className: "p-0.5 rounded transition-colors " + (isPinned ? "text-xs-info hover:text-white" : "text-zinc-500 hover:text-white opacity-0 group-hover/conv:opacity-100"), title: isPinned ? "Unpin conversation" : "Pin conversation", children: _jsx(Pin, { className: "w-3.5 h-3.5 " + (isPinned ? "rotate-45 fill-current" : "") }) }), _jsx("button", { type: "button", onClick: (e) => {
|
|
3925
3911
|
e.stopPropagation();
|
|
3926
3912
|
handleContextMenu(e, 'conversation', workspace.id, team.id, agent.id, conv.id);
|
|
3927
3913
|
}, className: "p-0.5 rounded text-zinc-500 hover:text-white transition-colors", title: "Conversation options", children: _jsx(MoreHorizontal, { className: "w-3.5 h-3.5" }) })] })] }, conv.id));
|
|
3928
3914
|
})) })] }, `${workspace.id}-${team.id}`));
|
|
3929
|
-
})) })] })] })] }),
|
|
3915
|
+
})) })] })] })] }), _jsx(SidebarFooter, { onOpenAccount: onSelectSettings, onSelectKnowledge: onSelectKnowledge, onSelectPlugins: onSelectPlugins, onSelectSettings: onSelectSettings }), contextMenu && (_jsx(ContextMenuPopup, { menu: contextMenu, workspaces: workspaces, onClose: () => setContextMenu(null), onAction: handleContextAction })), inboxMenuPos && createPortal(_jsxs(_Fragment, { children: [_jsx("div", { className: "fixed inset-0 z-[499]", onClick: () => setInboxMenuPos(null), onContextMenu: (e) => {
|
|
3930
3916
|
e.preventDefault();
|
|
3931
3917
|
setInboxMenuPos(null);
|
|
3932
|
-
} }), _jsxs("div", { className: "fixed z-[500] w-[195px] rounded-lg border border-white/[0.12] bg-
|
|
3918
|
+
} }), _jsxs("div", { className: "fixed z-[500] w-[195px] rounded-lg border border-white/[0.12] bg-xs-raised p-1 shadow-2xl backdrop-blur-md text-[12px] text-zinc-300 select-none animate-in fade-in duration-100", style: {
|
|
3933
3919
|
left: Math.max(8, Math.min(inboxMenuPos.x, window.innerWidth - 210)),
|
|
3934
3920
|
top: Math.max(8, Math.min(inboxMenuPos.y, window.innerHeight - 240))
|
|
3935
3921
|
}, children: [_jsxs("button", { type: "button", onClick: () => {
|
|
@@ -3963,7 +3949,7 @@ function Sidebar({ collapsed, onToggleCollapse, onOpenSettings, workspaces, setW
|
|
|
3963
3949
|
}, className: "w-full px-2.5 py-1.5 rounded-[2px] text-left text-[12px] text-zinc-300 hover:bg-white/[0.06] hover:text-white transition-colors flex items-center gap-2 cursor-pointer select-none", children: [_jsx(Settings, { className: "w-3.5 h-3.5 text-zinc-400 flex-shrink-0" }), _jsx("span", { className: "flex-1 truncate", children: scopedWorkspace ? 'Workspace Settings' : 'Chat Settings' }), _jsx("span", { className: "text-[11px] font-mono text-zinc-500 pl-2 ml-auto flex-shrink-0", children: "S" })] }), visibleInboxConversations.length > 0 && (_jsxs(_Fragment, { children: [_jsx("div", { className: "my-1 border-t border-white/[0.06]" }), _jsxs("button", { type: "button", onClick: () => {
|
|
3964
3950
|
animateDeleteConversations(visibleInboxConversations.map(c => c.id), null);
|
|
3965
3951
|
setInboxMenuPos(null);
|
|
3966
|
-
}, className: "w-full px-2.5 py-1.5 rounded-b-[6px] rounded-t-[2px] text-left text-[12px] text-red-400 hover:bg-red-500/10 hover:text-red-300 transition-colors flex items-center gap-2 cursor-pointer select-none", children: [_jsx(Trash2, { className: "w-3.5 h-3.5 text-red-400 flex-shrink-0" }), _jsx("span", { className: "flex-1 truncate", children: "Clear All Conversations" }), _jsx("span", { className: "text-[11px] font-mono text-zinc-500 pl-2 ml-auto flex-shrink-0", children: "D" })] })] }))] })] }), document.body), convMenuId && createPortal(_jsxs(_Fragment, { children: [_jsx("div", { className: "fixed inset-0 z-[499]", onClick: () => { setConvMenuId(null); setHoveredConvId(null); }, onContextMenu: (e) => { e.preventDefault(); setConvMenuId(null); setHoveredConvId(null); } }), _jsxs("div", { className: "fixed z-[500] w-[175px] rounded-lg border border-white/[0.12] bg-
|
|
3952
|
+
}, className: "w-full px-2.5 py-1.5 rounded-b-[6px] rounded-t-[2px] text-left text-[12px] text-red-400 hover:bg-red-500/10 hover:text-red-300 transition-colors flex items-center gap-2 cursor-pointer select-none", children: [_jsx(Trash2, { className: "w-3.5 h-3.5 text-red-400 flex-shrink-0" }), _jsx("span", { className: "flex-1 truncate", children: "Clear All Conversations" }), _jsx("span", { className: "text-[11px] font-mono text-zinc-500 pl-2 ml-auto flex-shrink-0", children: "D" })] })] }))] })] }), document.body), convMenuId && createPortal(_jsxs(_Fragment, { children: [_jsx("div", { className: "fixed inset-0 z-[499]", onClick: () => { setConvMenuId(null); setHoveredConvId(null); }, onContextMenu: (e) => { e.preventDefault(); setConvMenuId(null); setHoveredConvId(null); } }), _jsxs("div", { className: "fixed z-[500] w-[175px] rounded-lg border border-white/[0.12] bg-xs-raised p-1 shadow-2xl backdrop-blur-md text-[12px] text-zinc-300 select-none animate-in fade-in duration-100", style: {
|
|
3967
3953
|
left: Math.max(8, Math.min(convMenuPos.x, window.innerWidth - 190)),
|
|
3968
3954
|
top: Math.max(8, Math.min(convMenuPos.y, window.innerHeight - 150))
|
|
3969
3955
|
}, children: [_jsxs("button", { type: "button", onClick: () => {
|
|
@@ -3987,7 +3973,7 @@ function Sidebar({ collapsed, onToggleCollapse, onOpenSettings, workspaces, setW
|
|
|
3987
3973
|
if (conversation)
|
|
3988
3974
|
onSelectConversation(conversation.agentId, conversationId);
|
|
3989
3975
|
setArchivedOpen(false);
|
|
3990
|
-
}, onRestore: restoreConversation, onDelete: deleteConversation, onClose: () => setArchivedOpen(false) })), hoveredPreview && !contextMenu && !inboxMenuPos && !convMenuId && createPortal(_jsxs("div", { className: "fixed z-[450] w-[260px] rounded-[6px] border border-white/[0.1] bg-
|
|
3976
|
+
}, onRestore: restoreConversation, onDelete: deleteConversation, onClose: () => setArchivedOpen(false) })), hoveredPreview && !contextMenu && !inboxMenuPos && !convMenuId && createPortal(_jsxs("div", { className: "fixed z-[450] w-[260px] rounded-[6px] border border-white/[0.1] bg-xs-page/98 p-2 shadow-2xl shadow-black/90 backdrop-blur-md animate-in fade-in duration-100 select-none pointer-events-auto before:absolute before:-left-3 before:top-0 before:bottom-0 before:w-4 before:content-[''] space-y-1.5", style: {
|
|
3991
3977
|
left: Math.min(hoveredPreview.rect.right + 6, window.innerWidth - 275),
|
|
3992
3978
|
top: Math.max(8, Math.min(hoveredPreview.rect.top - 2, window.innerHeight - 200)),
|
|
3993
3979
|
}, onMouseEnter: () => {
|
|
@@ -4004,20 +3990,20 @@ function Sidebar({ collapsed, onToggleCollapse, onOpenSettings, workspaces, setW
|
|
|
4004
3990
|
handleSaveCardRename();
|
|
4005
3991
|
if (e.key === 'Escape')
|
|
4006
3992
|
setIsEditingCardName(false);
|
|
4007
|
-
}, onBlur: handleSaveCardRename, className: "w-full px-1.5 py-0.5 rounded-[4px] border border-
|
|
3993
|
+
}, onBlur: handleSaveCardRename, className: "w-full px-1.5 py-0.5 rounded-[4px] border border-xs-info ring-1 ring-xs-info/50 bg-black/60 text-white font-semibold text-[12px] focus:outline-none", autoFocus: true })) : (_jsxs("button", { type: "button", onClick: () => {
|
|
4008
3994
|
setEditingCardName(hoveredPreview.title);
|
|
4009
3995
|
setIsEditingCardName(true);
|
|
4010
|
-
}, className: "group/name flex items-center gap-1 px-1 py-0.5 -ml-1 rounded-[4px] border border-transparent hover:border-
|
|
3996
|
+
}, className: "group/name flex items-center gap-1 px-1 py-0.5 -ml-1 rounded-[4px] border border-transparent hover:border-xs-info/60 hover:bg-xs-info/10 transition-all cursor-text text-left max-w-full", title: "Click to rename", children: [_jsx("span", { className: "font-semibold text-white text-[12px] truncate", children: hoveredPreview.title }), _jsx(Edit2, { className: "w-2.5 h-2.5 text-zinc-500 opacity-0 group-hover/name:opacity-100 transition-opacity flex-shrink-0" })] }))] }), _jsxs("div", { className: "flex items-center gap-1 flex-shrink-0", children: [_jsx("span", { className: "text-[8.5px] font-mono uppercase tracking-wider px-1.5 py-0.2 rounded-[3px] bg-white/[0.04] text-zinc-400 border border-white/[0.06]", children: hoveredPreview.type === 'workspace' ? 'PROJECT' : hoveredPreview.type.toUpperCase() }), hoveredPreview.type === 'conversation' ? (_jsx("button", { type: "button", onClick: (e) => {
|
|
4011
3997
|
e.stopPropagation();
|
|
4012
3998
|
togglePinConversation(hoveredPreview.id);
|
|
4013
3999
|
setHoveredPreview(prev => prev ? { ...prev, isPinned: !prev.isPinned } : null);
|
|
4014
|
-
}, className: "p-0.5 rounded-[3px] transition-colors " + (hoveredPreview.isPinned ? "text-
|
|
4000
|
+
}, className: "p-0.5 rounded-[3px] transition-colors " + (hoveredPreview.isPinned ? "text-xs-info hover:text-white" : "text-zinc-500 hover:text-white hover:bg-white/[0.06]"), title: hoveredPreview.isPinned ? "Unpin chat" : "Pin chat", children: _jsx(Pin, { className: "w-3 h-3 " + (hoveredPreview.isPinned ? "rotate-45 fill-current" : "") }) })) : (_jsx("button", { type: "button", className: "p-0.5 rounded-[3px] text-zinc-500 hover:text-white hover:bg-white/[0.06] transition-colors cursor-pointer", disabled: !previewPin, onClick: () => { if (previewPin)
|
|
4015
4001
|
togglePinnedEntity(previewPin); }, "aria-pressed": previewEntityPinned, title: previewEntityPinned ? 'Unpin item' : 'Pin item', children: _jsx(Pin, { className: "w-3 h-3" }) }))] })] }), hoveredPreview.type === 'conversation' ? (
|
|
4016
4002
|
/* Conversation Card: Pure minimalist layout matching media references */
|
|
4017
|
-
_jsxs("div", { className: "space-y-1.5 pt-0.5", children: [hoveredPreview.directories && hoveredPreview.directories.length > 0 ? (hoveredPreview.directories.slice(0, 1).map((dir) => (_jsxs("button", { type: "button", onClick: () => handleOpenPathInExplorer(dir), className: "group/path flex items-center justify-between w-full px-1.5 py-0.5 rounded-[4px] bg-white/[0.02] hover:bg-white/[0.06] border border-transparent hover:border-white/[0.06] transition-colors cursor-pointer text-left select-none -mx-1", title: `Open in Explorer: ${dir}`, children: [_jsxs("div", { className: "flex items-center gap-1.5 min-w-0 flex-1", children: [_jsx(Folder, { className: "w-3.5 h-3.5 text-zinc-400 group-hover/path:text-white transition-colors flex-shrink-0" }), _jsx("span", { className: "font-mono text-[11px] truncate text-zinc-300 group-hover/path:text-white transition-colors", title: dir, children: dir })] }), _jsx(ArrowUpRight, { className: "w-3 h-3 text-zinc-500 opacity-0 group-hover/path:opacity-100 group-hover/path:text-
|
|
4003
|
+
_jsxs("div", { className: "space-y-1.5 pt-0.5", children: [hoveredPreview.directories && hoveredPreview.directories.length > 0 ? (hoveredPreview.directories.slice(0, 1).map((dir) => (_jsxs("button", { type: "button", onClick: () => handleOpenPathInExplorer(dir), className: "group/path flex items-center justify-between w-full px-1.5 py-0.5 rounded-[4px] bg-white/[0.02] hover:bg-white/[0.06] border border-transparent hover:border-white/[0.06] transition-colors cursor-pointer text-left select-none -mx-1", title: `Open in Explorer: ${dir}`, children: [_jsxs("div", { className: "flex items-center gap-1.5 min-w-0 flex-1", children: [_jsx(Folder, { className: "w-3.5 h-3.5 text-zinc-400 group-hover/path:text-white transition-colors flex-shrink-0" }), _jsx("span", { className: "font-mono text-[11px] truncate text-zinc-300 group-hover/path:text-white transition-colors", title: dir, children: dir })] }), _jsx(ArrowUpRight, { className: "w-3 h-3 text-zinc-500 opacity-0 group-hover/path:opacity-100 group-hover/path:text-xs-info transition-all flex-shrink-0 ml-1" })] }, dir)))) : (_jsxs("div", { className: "flex items-center gap-1.5 px-0.5 py-0.5 text-zinc-400 text-[11px] font-mono", children: [_jsx(Folder, { className: "w-3.5 h-3.5 text-zinc-500 flex-shrink-0" }), _jsx("span", { className: "truncate", children: hoveredPreview.workspaceName || 'Main Chat' })] })), _jsx("div", { className: "flex items-center gap-1.5 px-0.5 text-[11px] font-mono", children: hoveredPreview.status === 'Running' ? (_jsxs(_Fragment, { children: [_jsx(Loader2, { className: "w-3.5 h-3.5 text-xs-info animate-spin flex-shrink-0" }), _jsx("span", { className: "text-xs-info font-medium", children: "Running" })] })) : (_jsxs(_Fragment, { children: [_jsx(CheckCircle2, { className: "w-3.5 h-3.5 text-zinc-500 flex-shrink-0" }), _jsx("span", { className: "text-zinc-400", children: "Idle" })] })) }), _jsxs("div", { className: "flex items-center gap-1.5 px-0.5 text-[11px] font-mono text-zinc-400", children: [_jsx(Clock, { className: "w-3.5 h-3.5 text-zinc-500 flex-shrink-0" }), _jsx("span", { children: formatUpdatedTime(hoveredPreview.timestamp) })] })] })) : (
|
|
4018
4004
|
/* Workspace / Team / Agent cards */
|
|
4019
4005
|
_jsxs(_Fragment, { children: [_jsxs("div", { className: "flex items-center gap-2 text-[11px] font-mono text-zinc-400 px-0.5", children: [_jsxs("span", { className: "flex items-center gap-1 text-zinc-300", children: [_jsx(MessageSquare, { className: "w-2.5 h-2.5 text-zinc-500" }), `${hoveredPreview.taskCount || 0} tasks`] }), _jsx("span", { className: "text-zinc-700 text-[9px]", children: "\u2022" }), _jsx("span", { className: "truncate text-zinc-400", children: hoveredPreview.type === 'agent' ? (hoveredPreview.model ? hoveredPreview.model.split('/').pop() : 'Standard') :
|
|
4020
|
-
(hoveredPreview.directories && hoveredPreview.directories.length > 0 ? `${hoveredPreview.directories.length} root${hoveredPreview.directories.length > 1 ? 's' : ''}` : 'Ready') })] }), hoveredPreview.directories && hoveredPreview.directories.length > 0 ? (_jsx("div", { className: "space-y-0.5 pt-0.5", children: hoveredPreview.directories.slice(0, 2).map((dir) => (_jsxs("button", { type: "button", onClick: () => handleOpenPathInExplorer(dir), className: "group/path flex items-center justify-between w-full px-1.5 py-1 rounded-[4px] bg-white/[0.02] hover:bg-white/[0.06] border border-white/[0.04] hover:border-white/[0.08] transition-colors cursor-pointer text-left select-none", title: `Open in Explorer: ${dir}`, children: [_jsxs("div", { className: "flex items-center gap-1.5 min-w-0 flex-1", children: [_jsx(Folder, { className: "w-3 h-3 text-zinc-500 group-hover/path:text-white transition-colors flex-shrink-0" }), _jsx("span", { className: "font-mono text-[10px] truncate text-zinc-400 group-hover/path:text-white transition-colors", title: dir, children: dir })] }), _jsx(ArrowUpRight, { className: "w-3 h-3 text-zinc-500 opacity-0 group-hover/path:opacity-100 group-hover/path:text-
|
|
4006
|
+
(hoveredPreview.directories && hoveredPreview.directories.length > 0 ? `${hoveredPreview.directories.length} root${hoveredPreview.directories.length > 1 ? 's' : ''}` : 'Ready') })] }), hoveredPreview.directories && hoveredPreview.directories.length > 0 ? (_jsx("div", { className: "space-y-0.5 pt-0.5", children: hoveredPreview.directories.slice(0, 2).map((dir) => (_jsxs("button", { type: "button", onClick: () => handleOpenPathInExplorer(dir), className: "group/path flex items-center justify-between w-full px-1.5 py-1 rounded-[4px] bg-white/[0.02] hover:bg-white/[0.06] border border-white/[0.04] hover:border-white/[0.08] transition-colors cursor-pointer text-left select-none", title: `Open in Explorer: ${dir}`, children: [_jsxs("div", { className: "flex items-center gap-1.5 min-w-0 flex-1", children: [_jsx(Folder, { className: "w-3 h-3 text-zinc-500 group-hover/path:text-white transition-colors flex-shrink-0" }), _jsx("span", { className: "font-mono text-[10px] truncate text-zinc-400 group-hover/path:text-white transition-colors", title: dir, children: dir })] }), _jsx(ArrowUpRight, { className: "w-3 h-3 text-zinc-500 opacity-0 group-hover/path:opacity-100 group-hover/path:text-xs-info transition-all flex-shrink-0 ml-1" })] }, dir))) })) : hoveredPreview.agentNames && hoveredPreview.agentNames.length > 0 ? (_jsxs("div", { className: "flex items-center gap-1.5 px-1.5 py-1 rounded-[4px] bg-white/[0.02] border border-white/[0.04]", children: [_jsx(Bot, { className: "w-3 h-3 text-zinc-500 flex-shrink-0" }), _jsx("span", { className: "font-mono text-[10px] text-zinc-300 truncate", children: hoveredPreview.agentNames.join(', ') })] })) : hoveredPreview.workspaceName ? (_jsxs("div", { className: "flex items-center gap-1.5 px-1.5 py-1 rounded-[4px] bg-white/[0.02] border border-white/[0.04]", children: [_jsx(Folder, { className: "w-3 h-3 text-zinc-500 flex-shrink-0" }), _jsxs("span", { className: "font-mono text-[10px] text-zinc-300 truncate", children: [hoveredPreview.workspaceName, hoveredPreview.teamName ? ` / ${hoveredPreview.teamName}` : ''] })] })) : null, _jsx("div", { className: "pt-1 border-t border-white/[0.06]", children: _jsxs("button", { type: "button", onClick: () => {
|
|
4021
4007
|
if (hoveredPreview.type === 'workspace') {
|
|
4022
4008
|
const ws = workspaces.find(w => w.id === (hoveredPreview.workspaceId || hoveredPreview.id));
|
|
4023
4009
|
onOpenSettings({
|
|
@@ -4124,7 +4110,7 @@ function AgentRuntimeSettings({ agent, workspace, team, onUpdateAgent, onClose }
|
|
|
4124
4110
|
setIsRunning(false);
|
|
4125
4111
|
}
|
|
4126
4112
|
};
|
|
4127
|
-
return (_jsxs("div", { className: "flex-1 flex flex-col bg-
|
|
4113
|
+
return (_jsxs("div", { className: "flex-1 flex flex-col bg-xs-frame", children: [_jsx("div", { className: "flex-1 overflow-auto px-6 py-5", children: _jsxs("div", { className: "w-full max-w-[760px] mx-auto space-y-5", children: [_jsxs("div", { children: [_jsx("h2", { className: "text-[15px] font-semibold text-white/90", children: "Agent Runtime Settings" }), _jsxs("p", { className: "text-[11px] text-white/35 mt-1", children: ["Configure capabilities and sandbox directory access for ", _jsx("span", { className: "text-white/55", children: agent.name }), " in ", _jsxs("span", { className: "text-white/55", children: [workspace.name, " / ", team.name] }), "."] })] }), _jsxs("div", { className: "rounded-lg border border-white/[0.08] bg-white/[0.02] p-4", children: [_jsx("p", { className: "text-[11px] text-white/45 uppercase tracking-wider mb-3", children: "Capabilities" }), _jsxs("div", { className: "space-y-2", children: [_jsxs("label", { className: "flex items-center justify-between py-1.5", children: [_jsx("span", { className: "text-[12px] text-white/75", children: "Terminal Commands (runs on this machine)" }), _jsx("input", { type: "checkbox", checked: capabilities.terminal, onChange: () => toggleCapability('terminal') })] }), _jsxs("label", { className: "flex items-center justify-between py-1.5", children: [_jsx("span", { className: "text-[12px] text-white/75", children: "Read Files" }), _jsx("input", { type: "checkbox", checked: capabilities.fileRead, onChange: () => toggleCapability('fileRead') })] }), _jsxs("label", { className: "flex items-center justify-between py-1.5", children: [_jsx("span", { className: "text-[12px] text-white/75", children: "Write Files" }), _jsx("input", { type: "checkbox", checked: capabilities.fileWrite, onChange: () => toggleCapability('fileWrite') })] })] })] }), _jsxs("div", { className: "rounded-lg border border-white/[0.08] bg-white/[0.02] p-4", children: [_jsx("p", { className: "text-[11px] text-white/45 uppercase tracking-wider mb-3", children: "Directory Access" }), allowedDirectories.length === 0 && _jsx("p", { className: "text-[11px] text-white/50 mb-2", children: "Inheriting available team directories. Select directories to restrict access." }), workspace.directories.length === 0 ? (_jsx("p", { className: "text-[11px] text-white/30", children: "No directories attached to this workspace yet. Add them in Workspace Settings." })) : teamAllowedDirectories.length === 0 ? (_jsx("p", { className: "text-[11px] text-white/30", children: "No valid project directories are available to this team." })) : (_jsx("div", { className: "space-y-1.5", children: teamAllowedDirectories.map((dir) => (_jsxs("label", { className: "flex items-center gap-2 py-1 px-2 rounded-md hover:bg-white/[0.03]", children: [_jsx("input", { type: "checkbox", checked: allowedDirectories.includes(dir), onChange: () => toggleDirectoryAccess(dir) }), _jsx("span", { className: "text-[11px] text-white/65 truncate", children: dir })] }, dir))) }))] }), _jsxs("div", { className: "rounded-lg border border-white/[0.08] bg-white/[0.02] p-4", children: [_jsx("p", { className: "text-[11px] text-white/45 uppercase tracking-wider mb-3", children: "Terminal Command Test" }), _jsxs("div", { className: "flex gap-2", children: [_jsx("input", { value: command, onChange: (e) => setCommand(e.target.value), placeholder: "e.g. pwd or Get-ChildItem", className: "flex-1 px-3 py-2 bg-black/30 border border-white/[0.1] rounded-md text-[12px] text-white focus:outline-none focus:border-white/[0.2]" }), _jsx("button", { onClick: () => { void runSandboxTest(); }, disabled: isRunning, className: "px-3 py-2 rounded-md bg-white/[0.08] hover:bg-white/[0.12] disabled:opacity-40 text-[11px] text-white/80", children: isRunning ? 'Running...' : 'Run' })] }), terminalOutput && (_jsx("pre", { className: "mt-3 p-3 bg-black/35 border border-white/[0.08] rounded-md text-[11px] text-white/65 overflow-auto whitespace-pre-wrap", children: terminalOutput }))] })] }) }), _jsxs("footer", { className: "px-6 h-[48px] border-t border-white/[0.06] bg-xs-frame flex items-center justify-between", children: [_jsx("button", { onClick: onClose, className: "text-[11px] text-white/45 hover:text-white/70", children: "Back" }), _jsx("button", { onClick: onClose, className: "px-4 py-1.5 bg-white/[0.08] hover:bg-white/[0.12] text-white/70 text-[11px] font-medium rounded-md transition-colors", children: "Done" })] })] }));
|
|
4128
4114
|
}
|
|
4129
4115
|
// =============================================================================
|
|
4130
4116
|
// TEAM RUNTIME SETTINGS
|
|
@@ -4137,7 +4123,7 @@ function TeamRuntimeSettings({ team, workspace, onSetAllowedDirectories, onClose
|
|
|
4137
4123
|
? allowedDirectories.filter(d => d !== dir)
|
|
4138
4124
|
: [...allowedDirectories, dir]);
|
|
4139
4125
|
};
|
|
4140
|
-
return (_jsxs("div", { className: "flex-1 flex flex-col bg-
|
|
4126
|
+
return (_jsxs("div", { className: "flex-1 flex flex-col bg-xs-frame", children: [_jsx("div", { className: "flex-1 overflow-auto px-6 py-5", children: _jsxs("div", { className: "w-full max-w-[760px] mx-auto space-y-5", children: [_jsxs("div", { children: [_jsx("h2", { className: "text-[15px] font-semibold text-white/90", children: "Team Directory Access" }), _jsxs("p", { className: "text-[11px] text-white/35 mt-1", children: ["Choose which workspace directories this team can access. Agents in ", _jsx("span", { className: "text-white/55", children: team.name }), " can only use directories enabled here."] })] }), _jsxs("div", { className: "rounded-lg border border-white/[0.08] bg-white/[0.02] p-4", children: [_jsx("p", { className: "text-[11px] text-white/45 uppercase tracking-wider mb-3", children: "Allowed Directories for Team" }), workspace.directories.length === 0 ? (_jsx("p", { className: "text-[11px] text-white/30", children: "No directories attached to this workspace yet. Ask a workspace admin to add them in Workspace Settings." })) : (_jsx("div", { className: "space-y-1.5", children: workspace.directories.map((dir) => (_jsxs("label", { className: "flex items-center gap-2 py-1 px-2 rounded-md hover:bg-white/[0.03]", children: [_jsx("input", { type: "checkbox", checked: allowedDirectories.includes(dir), onChange: () => toggleDirectoryAccess(dir) }), _jsx("span", { className: "text-[11px] text-white/65 truncate", children: dir })] }, dir))) }))] }), _jsxs("div", { className: "rounded-lg border border-white/[0.08] bg-white/[0.02] p-4", children: [_jsx("p", { className: "text-[11px] text-white/45 uppercase tracking-wider mb-2", children: "Propagation Rules" }), _jsxs("ul", { className: "text-[11px] text-white/45 space-y-1 list-[square] pl-4", children: [_jsx("li", { children: "Workspace defines available directory pool." }), _jsx("li", { children: "Team selects subset from workspace pool." }), _jsx("li", { children: "Agent selects subset from team-allowed directories." }), _jsx("li", { children: "Removing a team directory automatically removes it from all agents in this team." })] })] })] }) }), _jsxs("footer", { className: "px-6 h-[48px] border-t border-white/[0.06] bg-xs-frame flex items-center justify-between", children: [_jsx("button", { onClick: onClose, className: "text-[11px] text-white/45 hover:text-white/70", children: "Back" }), _jsx("button", { onClick: onClose, className: "px-4 py-1.5 bg-white/[0.08] hover:bg-white/[0.12] text-white/70 text-[11px] font-medium rounded-md transition-colors", children: "Done" })] })] }));
|
|
4141
4127
|
}
|
|
4142
4128
|
const SUBAGENT_EXPECTED_ARTIFACTS = ['answer', 'file', 'diff', 'diagnostic', 'report'];
|
|
4143
4129
|
function normalizeDelegationExpectedArtifacts(value) {
|
|
@@ -4374,6 +4360,8 @@ export default function AgentInterface({ surface = 'embedded', initialSdkSession
|
|
|
4374
4360
|
const setCenterPaneMode = useAgentIdeStore(s => s.setMode);
|
|
4375
4361
|
const setAgentIdeHasOpenFiles = useAgentIdeStore(s => s.setHasOpenFiles);
|
|
4376
4362
|
const authDisplayName = useAuthStore(s => s.user?.display_name);
|
|
4363
|
+
// the person's theme (dark, light or match Windows), saved through the host's settings
|
|
4364
|
+
useEffect(() => { void useThemeStore.getState().initialize(); }, []);
|
|
4377
4365
|
// Dynamic context for system prompt enrichment (fetched from main process)
|
|
4378
4366
|
const [runtimeContext, setRuntimeContext] = useState(null);
|
|
4379
4367
|
// Fetch runtime context on mount and every 60 seconds
|
|
@@ -9608,6 +9596,13 @@ export default function AgentInterface({ surface = 'embedded', initialSdkSession
|
|
|
9608
9596
|
}
|
|
9609
9597
|
}, onBackToChat: () => setViewMode('inbox') }));
|
|
9610
9598
|
}
|
|
9599
|
+
// Mission control: every run, what needs you first
|
|
9600
|
+
if (viewMode === 'mission') {
|
|
9601
|
+
return (_jsx(MissionControlView, { onOpen: (item) => { if (item.conversationId && item.agentId) {
|
|
9602
|
+
handleSelectConversation(item.agentId, item.conversationId);
|
|
9603
|
+
setViewMode('agent');
|
|
9604
|
+
} }, onBackToChat: () => setViewMode('inbox') }));
|
|
9605
|
+
}
|
|
9611
9606
|
// Scheduled Tasks Hub view (rendered on the right side)
|
|
9612
9607
|
if (viewMode === 'scheduled') {
|
|
9613
9608
|
return (_jsx(ScheduledWorkspaceView, { workspaces: workspaces, activeWorkspaceScope: activeWorkspaceScope, onBackToChat: () => setViewMode('inbox') }));
|
|
@@ -9685,17 +9680,17 @@ export default function AgentInterface({ surface = 'embedded', initialSdkSession
|
|
|
9685
9680
|
}
|
|
9686
9681
|
: {};
|
|
9687
9682
|
const sessionTabsNode = (_jsx(XenoAgentSessionTabs, { tabs: sessionTabs, activeConversationId: activeSessionTabId, placement: surface === 'standalone-desktop' ? 'titlebar' : 'embedded', onActivate: activateSessionConversation, onClose: closeSessionConversation, onCloseMany: closeSessionConversations, onCreate: createSessionConversation, ...(workCopyRepository ? { onCreateInWorkCopy: () => void createSessionInWorkCopy() } : {}), onOpenInSplit: openSessionInSplit, onRemoveFromSplit: () => setSessionSplit(null), onRemoveWorkCopy: removeSessionWorkCopy, onReorder: reorderSessionConversations }));
|
|
9688
|
-
const agentWorkspace = (_jsxs("div", { className: "xeno-app-shell flex h-full w-full", "data-xeno-agent-interface-owner": "shared", "data-xeno-agent-interface-contract": "1", "data-xeno-agent-interface-surface": surface, children: [destructiveConfirmation.confirmation, _jsx(Sidebar, { collapsed: sidebarCollapsed, onToggleCollapse: () => setSidebarCollapsed(c => !c), onOpenSettings: handleOpenSettings, workspaces: workspaces, setWorkspaces: setWorkspaces, inboxAgentId: MAIN_ASSISTANT_ID, isInboxSelected: viewMode === 'inbox', selectedInboxConversationId: selectedInboxConversationId, onSelectInbox: handleSelectInbox, onSelectInboxConversation: handleSelectInboxConversation, selectedAgentId: selectedAgentId, onSelectAgent: handleSelectAgent, selectedConversationId: selectedConversationId, onSelectConversation: handleSelectConversation, agentRunAvailability: activeSubagentRunCounts, onOpenSearchResultInEditor: handleOpenEditorPath, onSelectPlugins: () => {
|
|
9689
|
-
|
|
9690
|
-
|
|
9691
|
-
|
|
9692
|
-
|
|
9693
|
-
|
|
9694
|
-
|
|
9683
|
+
const agentWorkspace = (_jsxs("div", { className: "xeno-app-shell flex h-full w-full", "data-xeno-agent-interface-owner": "shared", "data-xeno-agent-interface-contract": "1", "data-xeno-agent-interface-surface": surface, children: [destructiveConfirmation.confirmation, _jsxs("div", { className: settingsPanel ? 'hidden' : 'contents', children: [_jsx(Sidebar, { collapsed: sidebarCollapsed, onToggleCollapse: () => setSidebarCollapsed(c => !c), onOpenSettings: handleOpenSettings, workspaces: workspaces, setWorkspaces: setWorkspaces, inboxAgentId: MAIN_ASSISTANT_ID, isInboxSelected: viewMode === 'inbox', selectedInboxConversationId: selectedInboxConversationId, onSelectInbox: handleSelectInbox, onSelectInboxConversation: handleSelectInboxConversation, selectedAgentId: selectedAgentId, onSelectAgent: handleSelectAgent, selectedConversationId: selectedConversationId, onSelectConversation: handleSelectConversation, agentRunAvailability: activeSubagentRunCounts, onOpenSearchResultInEditor: handleOpenEditorPath, onSelectPlugins: () => {
|
|
9684
|
+
if (activeConversationId) {
|
|
9685
|
+
handleSelectWorkbenchTab('plugins');
|
|
9686
|
+
return;
|
|
9687
|
+
}
|
|
9688
|
+
handleOpenPluginManager();
|
|
9689
|
+
}, onSelectKnowledge: () => handleSelectWorkbenchTab('knowledge'), onSelectTools: handleOpenTools, onSelectProjects: () => setViewMode('projects'), onSelectTeams: () => setViewMode('teams'), onSelectAgents: () => setViewMode('agents'), onSelectScheduled: () => setViewMode('scheduled'), onSelectMission: () => setViewMode('mission'), 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,
|
|
9695
9690
|
// The conversation surface owns its full width; the bench has no shell overlay over it.
|
|
9696
9691
|
// Files/Terminal controls remain on editor surfaces, and conversation context keeps the
|
|
9697
9692
|
// capability available through its existing workbench/menu actions.
|
|
9698
|
-
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'
|
|
9693
|
+
visible: centerPaneMode === 'editor' && !settingsPanel && !['projects', 'teams', 'agents', 'scheduled', 'mission'].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'
|
|
9699
9694
|
? (_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 })) }) })] })] }))
|
|
9700
9695
|
: centerPaneMode === 'editor'
|
|
9701
9696
|
? (_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 })) }))
|
|
@@ -9704,10 +9699,10 @@ export default function AgentInterface({ surface = 'embedded', initialSdkSession
|
|
|
9704
9699
|
`subagentRunId ?? conversationId`, so the conversation id
|
|
9705
9700
|
IS the run id here. Passing anything else would ask the
|
|
9706
9701
|
host about a run it has never heard of. */
|
|
9707
|
-
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 }))] }));
|
|
9702
|
+
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', 'mission'].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 }))] }));
|
|
9708
9703
|
if (surface !== 'standalone-desktop') {
|
|
9709
|
-
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 })] }));
|
|
9704
|
+
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', 'mission'].includes(viewMode || ''), inline: true })] }), _jsx(WorkspacePersistenceNotice, {}), _jsx(SidebarLayoutNotice, {}), _jsx("div", { className: "min-h-0 min-w-0 flex-1", children: agentWorkspace })] }));
|
|
9710
9705
|
}
|
|
9711
|
-
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 }))] }));
|
|
9706
|
+
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', 'mission'].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 }))] }));
|
|
9712
9707
|
}
|
|
9713
9708
|
//# sourceMappingURL=AgentInterface.js.map
|