@xenosystem/agent-interface-ui 0.1.194 → 0.1.196
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 +15 -0
- package/dist/components/agent/AgentInterface.d.ts +8 -1
- package/dist/components/agent/AgentInterface.d.ts.map +1 -1
- package/dist/components/agent/AgentInterface.js +12 -10
- package/dist/components/agent/AgentInterface.js.map +1 -1
- package/dist/components/agent/RemoteControlPanel.js +2 -2
- package/dist/components/agent/RemoteControlPanel.js.map +1 -1
- package/dist/components/agent/settings/EntitySettingsLayout.d.ts.map +1 -1
- package/dist/components/agent/settings/EntitySettingsLayout.js +70 -10
- package/dist/components/agent/settings/EntitySettingsLayout.js.map +1 -1
- package/dist/components/agent/settings/SettingsNavigation.d.ts +11 -7
- package/dist/components/agent/settings/SettingsNavigation.d.ts.map +1 -1
- package/dist/components/agent/settings/SettingsNavigation.js +37 -34
- package/dist/components/agent/settings/SettingsNavigation.js.map +1 -1
- package/dist/components/agent/settings/sections/AccountSummaryPanel.d.ts +9 -0
- package/dist/components/agent/settings/sections/AccountSummaryPanel.d.ts.map +1 -0
- package/dist/components/agent/settings/sections/AccountSummaryPanel.js +52 -0
- package/dist/components/agent/settings/sections/AccountSummaryPanel.js.map +1 -0
- 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/DangerZoneSection.js +1 -1
- package/dist/components/agent/settings/sections/DangerZoneSection.js.map +1 -1
- package/dist/components/agent/settings/sections/DefaultAgentConfigSection.d.ts +7 -1
- package/dist/components/agent/settings/sections/DefaultAgentConfigSection.d.ts.map +1 -1
- package/dist/components/agent/settings/sections/DefaultAgentConfigSection.js +10 -4
- 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 +2 -2
- package/dist/components/agent/settings/sections/GeneralSection.js.map +1 -1
- package/dist/components/agent/settings/sections/IntegrationsSection.d.ts +4 -1
- package/dist/components/agent/settings/sections/IntegrationsSection.d.ts.map +1 -1
- package/dist/components/agent/settings/sections/IntegrationsSection.js +3 -2
- 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 +2 -2
- package/dist/components/agent/settings/sections/WorkspaceDirectoryAccessSection.js.map +1 -1
- package/dist/components/agent/settings/settingsPages.d.ts +33 -0
- package/dist/components/agent/settings/settingsPages.d.ts.map +1 -0
- package/dist/components/agent/settings/settingsPages.js +74 -0
- package/dist/components/agent/settings/settingsPages.js.map +1 -0
- package/package.json +6 -6
package/dist/agent.css
CHANGED
|
@@ -9976,6 +9976,9 @@ img.xa-fav { padding: 1px; background: #fff; }
|
|
|
9976
9976
|
.mt-\[6px\] {
|
|
9977
9977
|
margin-top: 6px;
|
|
9978
9978
|
}
|
|
9979
|
+
.mt-auto {
|
|
9980
|
+
margin-top: auto;
|
|
9981
|
+
}
|
|
9979
9982
|
.line-clamp-2 {
|
|
9980
9983
|
overflow: hidden;
|
|
9981
9984
|
display: -webkit-box;
|
|
@@ -10120,6 +10123,9 @@ img.xa-fav { padding: 1px; background: #fff; }
|
|
|
10120
10123
|
.h-\[54px\] {
|
|
10121
10124
|
height: 54px;
|
|
10122
10125
|
}
|
|
10126
|
+
.h-\[560px\] {
|
|
10127
|
+
height: 560px;
|
|
10128
|
+
}
|
|
10123
10129
|
.h-\[58px\] {
|
|
10124
10130
|
height: 58px;
|
|
10125
10131
|
}
|
|
@@ -14267,6 +14273,11 @@ body, #root, #app {
|
|
|
14267
14273
|
color: rgb(var(--xs-fg) / 0.25);
|
|
14268
14274
|
}
|
|
14269
14275
|
|
|
14276
|
+
.placeholder\:text-xs-ink3::placeholder {
|
|
14277
|
+
--tw-text-opacity: 1;
|
|
14278
|
+
color: rgb(var(--xs-ink3) / var(--tw-text-opacity, 1));
|
|
14279
|
+
}
|
|
14280
|
+
|
|
14270
14281
|
.placeholder\:text-zinc-500::placeholder {
|
|
14271
14282
|
--tw-text-opacity: 1;
|
|
14272
14283
|
color: rgb(var(--xs-ink3) / var(--tw-text-opacity, 1));
|
|
@@ -14307,6 +14318,10 @@ body, #root, #app {
|
|
|
14307
14318
|
content: var(--tw-content);
|
|
14308
14319
|
}
|
|
14309
14320
|
|
|
14321
|
+
.first\:mt-0:first-child {
|
|
14322
|
+
margin-top: 0px;
|
|
14323
|
+
}
|
|
14324
|
+
|
|
14310
14325
|
.first\:border-t-0:first-child {
|
|
14311
14326
|
border-top-width: 0px;
|
|
14312
14327
|
}
|
|
@@ -22,6 +22,13 @@ export interface AgentInterfaceProps {
|
|
|
22
22
|
* only supplies it inside its isolated E2E harness; nothing else ever does.
|
|
23
23
|
*/
|
|
24
24
|
initialParityFrame?: ParityFrame;
|
|
25
|
+
/**
|
|
26
|
+
* The chat to open once the host's chats have loaded: a surface that has its own address for a chat (the remote page
|
|
27
|
+
* in a browser) names it here. A desktop window on another PC names it in its own address instead.
|
|
28
|
+
*/
|
|
29
|
+
initialConversationId?: string;
|
|
30
|
+
/** Told which chat is on screen whenever that changes (null: none), so a surface's address can follow it. */
|
|
31
|
+
onActiveConversationChange?: (conversationId: string | null) => void;
|
|
25
32
|
windowControls?: {
|
|
26
33
|
onNewWindow?: XenoAgentWindowAction;
|
|
27
34
|
onMinimize?: XenoAgentWindowAction;
|
|
@@ -29,5 +36,5 @@ export interface AgentInterfaceProps {
|
|
|
29
36
|
onClose?: XenoAgentWindowAction;
|
|
30
37
|
};
|
|
31
38
|
}
|
|
32
|
-
export default function AgentInterface({ surface, initialSdkSessionId, initialLaunchMode, initialWorkspaceRoot, initialParityFrame, windowControls, }?: AgentInterfaceProps): React.JSX.Element;
|
|
39
|
+
export default function AgentInterface({ surface, initialSdkSessionId, initialLaunchMode, initialWorkspaceRoot, initialParityFrame, initialConversationId, onActiveConversationChange, windowControls, }?: AgentInterfaceProps): React.JSX.Element;
|
|
33
40
|
//# sourceMappingURL=AgentInterface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentInterface.d.ts","sourceRoot":"","sources":["../../../src/components/agent/AgentInterface.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAwD,KAAK,WAAW,EAAE,MAAM,8CAA8C,CAAA;AAWrI,OAAO,KAA4D,MAAM,OAAO,CAAA;AAwGhF,OAAO,iCAAiC,CAAA;
|
|
1
|
+
{"version":3,"file":"AgentInterface.d.ts","sourceRoot":"","sources":["../../../src/components/agent/AgentInterface.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAwD,KAAK,WAAW,EAAE,MAAM,8CAA8C,CAAA;AAWrI,OAAO,KAA4D,MAAM,OAAO,CAAA;AAwGhF,OAAO,iCAAiC,CAAA;AAgBxC,OAAO,EAEL,KAAK,KAAK,IAAI,mBAAmB,EACjC,KAAK,iBAAiB,IAAI,+BAA+B,EACzD,KAAK,iBAAiB,IAAI,+BAA+B,EACzD,KAAK,0BAA0B,IAAI,wCAAwC,EAC3E,KAAK,mBAAmB,IAAI,0BAA0B,EACtD,KAAK,IAAI,IAAI,kBAA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B,EACpB,kBAAkB,EAClB,qBAAqB,EACrB,0BAA0B,EAC1B,cAAc,GACf,GAAE,mBAAwB,qBAszM1B"}
|
|
@@ -51,12 +51,13 @@ import { useThemeStore } from '../../stores/themeStore.js';
|
|
|
51
51
|
import '../../stores/appearanceStore.js';
|
|
52
52
|
import { agentCreationConfiguration } from '../../stores/agentCreationDefaults.js';
|
|
53
53
|
import { ArchivedConversationsDialog } from './ArchivedConversationsDialog.js';
|
|
54
|
-
import { useAgentChatStore, liveConversations, loadLocalAgentConversations, projectConversationRuntimeEvents, resetAcpContinuationForWorkspaceChange, } from '@xenosystem/agent-conversation/stores/agentChatStore';
|
|
54
|
+
import { useAgentChatStore, liveConversations, followConversationChanges, loadLocalAgentConversations, projectConversationRuntimeEvents, resetAcpContinuationForWorkspaceChange, } from '@xenosystem/agent-conversation/stores/agentChatStore';
|
|
55
55
|
import { useAgentIdeStore } from '../../stores/agentIdeStore.js';
|
|
56
56
|
import { useAgentSearchStore } from '../../stores/agentSearchStore.js';
|
|
57
57
|
import { useWorkspaceStore, } from '../../stores/workspaceStore.js';
|
|
58
58
|
import { useAuthStore } from '@xenosystem/agent-conversation/stores/authStore';
|
|
59
59
|
import { sidebarAccountLine, useHostAccount } from './sidebarAccount.js';
|
|
60
|
+
import { remoteHostName } from '@xenosystem/agent-conversation/remoteHostName';
|
|
60
61
|
import { cycleAgentSessionTabId, nextAgentSessionTabAfterClose, normalizeAgentSessionTabState, orderOpenAgentSessionConversations, reorderAgentSessionTabIds, resolveAgentSessionTabShortcut, } from '@xenosystem/agent-conversation/sessionTabs';
|
|
61
62
|
import { XenoAgentProductHeader, } from '../product/XenoAgentProductHeader.js';
|
|
62
63
|
import { XenoAgentSessionTabs, } from '../product/XenoAgentSessionTabs.js';
|
|
@@ -2278,7 +2279,9 @@ function SidebarFooter({ onOpenAccount, onSelectKnowledge, onSelectPlugins, onSe
|
|
|
2278
2279
|
const user = useAuthStore(s => s.user);
|
|
2279
2280
|
// The desktop app's account lives in the Agent host; the legacy store above is empty there.
|
|
2280
2281
|
const hostAccount = useHostAccount();
|
|
2281
|
-
|
|
2282
|
+
// On another PC the host's account is that PC's business and is not shown to a device: the row says where this is.
|
|
2283
|
+
const controlled = remoteHostName();
|
|
2284
|
+
const { name, detail } = controlled ? { name: controlled, detail: 'Your PC, from here' } : sidebarAccountLine(hostAccount, user);
|
|
2282
2285
|
const tools = [
|
|
2283
2286
|
['Knowledge', onSelectKnowledge, _jsx(BookIcon, {}, "k")],
|
|
2284
2287
|
['Plugins', onSelectPlugins, _jsx(Package, { className: "w-4 h-4", strokeWidth: 1.5 }, "p")],
|
|
@@ -4229,7 +4232,7 @@ function waitForSubagentConversationResult(conversationId, timeoutMs) {
|
|
|
4229
4232
|
});
|
|
4230
4233
|
});
|
|
4231
4234
|
}
|
|
4232
|
-
export default function AgentInterface({ surface = 'embedded', initialSdkSessionId, initialLaunchMode, initialWorkspaceRoot, initialParityFrame, windowControls, } = {}) {
|
|
4235
|
+
export default function AgentInterface({ surface = 'embedded', initialSdkSessionId, initialLaunchMode, initialWorkspaceRoot, initialParityFrame, initialConversationId, onActiveConversationChange, windowControls, } = {}) {
|
|
4233
4236
|
const [settingsPanel, setSettingsPanel] = useState(null);
|
|
4234
4237
|
const [sidebarCollapsed, setSidebarCollapsed] = useState(false);
|
|
4235
4238
|
const [folderPanelOpen, setFolderPanelOpen] = useState(false);
|
|
@@ -4330,9 +4333,13 @@ export default function AgentInterface({ surface = 'embedded', initialSdkSession
|
|
|
4330
4333
|
const [selectedConversationId, setSelectedConversationId] = useState(null);
|
|
4331
4334
|
const [selectedInboxConversationId, setSelectedInboxConversationId] = useState(null);
|
|
4332
4335
|
const [activeSessionTabId, setActiveSessionTabId] = useState(null);
|
|
4336
|
+
// A surface with its own address for a chat is told which one is on screen, so its address can name it.
|
|
4337
|
+
const reportActiveConversation = useRef(onActiveConversationChange);
|
|
4338
|
+
reportActiveConversation.current = onActiveConversationChange;
|
|
4339
|
+
useEffect(() => { reportActiveConversation.current?.(activeSessionTabId ?? null); }, [activeSessionTabId]);
|
|
4333
4340
|
const [sessionTabsHydrated, setSessionTabsHydrated] = useState(false);
|
|
4334
4341
|
/** A window showing another PC, opened from the sidebar on one of its shared chats. */
|
|
4335
|
-
const initialRemoteConversationId = useMemo(() => (typeof window === 'undefined' ? null : new URLSearchParams(window.location.search).get('remoteConversationId')), []);
|
|
4342
|
+
const initialRemoteConversationId = useMemo(() => initialConversationId || (typeof window === 'undefined' ? null : new URLSearchParams(window.location.search).get('remoteConversationId')), []);
|
|
4336
4343
|
const [sessionSplit, setSessionSplit] = useState(null);
|
|
4337
4344
|
const [rightPanelTabRequest, setRightPanelTabRequest] = useState(null);
|
|
4338
4345
|
const [toolsHomeOpen, setToolsHomeOpen] = useState(false);
|
|
@@ -5520,12 +5527,7 @@ export default function AgentInterface({ surface = 'embedded', initialSdkSession
|
|
|
5520
5527
|
}, []);
|
|
5521
5528
|
// A conversation a host operation made (a branch) joins the list without a reload. The load merges with what is in
|
|
5522
5529
|
// memory and keeps the in-memory copy of every conversation it already has.
|
|
5523
|
-
useEffect(() =>
|
|
5524
|
-
const unsubscribe = getAgentPlatformBridge()?.agentStorage?.onChanged?.((change) => {
|
|
5525
|
-
void loadLocalAgentConversations(change?.conversationIds?.length ? change.conversationIds : undefined);
|
|
5526
|
-
});
|
|
5527
|
-
return () => { unsubscribe?.(); };
|
|
5528
|
-
}, []);
|
|
5530
|
+
useEffect(() => followConversationChanges(), []);
|
|
5529
5531
|
// Load persisted workspaces and conversations on mount
|
|
5530
5532
|
useEffect(() => {
|
|
5531
5533
|
let cancelled = false;
|