@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.
Files changed (51) hide show
  1. package/dist/agent.css +15 -0
  2. package/dist/components/agent/AgentInterface.d.ts +8 -1
  3. package/dist/components/agent/AgentInterface.d.ts.map +1 -1
  4. package/dist/components/agent/AgentInterface.js +12 -10
  5. package/dist/components/agent/AgentInterface.js.map +1 -1
  6. package/dist/components/agent/RemoteControlPanel.js +2 -2
  7. package/dist/components/agent/RemoteControlPanel.js.map +1 -1
  8. package/dist/components/agent/settings/EntitySettingsLayout.d.ts.map +1 -1
  9. package/dist/components/agent/settings/EntitySettingsLayout.js +70 -10
  10. package/dist/components/agent/settings/EntitySettingsLayout.js.map +1 -1
  11. package/dist/components/agent/settings/SettingsNavigation.d.ts +11 -7
  12. package/dist/components/agent/settings/SettingsNavigation.d.ts.map +1 -1
  13. package/dist/components/agent/settings/SettingsNavigation.js +37 -34
  14. package/dist/components/agent/settings/SettingsNavigation.js.map +1 -1
  15. package/dist/components/agent/settings/sections/AccountSummaryPanel.d.ts +9 -0
  16. package/dist/components/agent/settings/sections/AccountSummaryPanel.d.ts.map +1 -0
  17. package/dist/components/agent/settings/sections/AccountSummaryPanel.js +52 -0
  18. package/dist/components/agent/settings/sections/AccountSummaryPanel.js.map +1 -0
  19. package/dist/components/agent/settings/sections/AccountWorkspacePanel.js +1 -1
  20. package/dist/components/agent/settings/sections/AccountWorkspacePanel.js.map +1 -1
  21. package/dist/components/agent/settings/sections/DangerZoneSection.js +1 -1
  22. package/dist/components/agent/settings/sections/DangerZoneSection.js.map +1 -1
  23. package/dist/components/agent/settings/sections/DefaultAgentConfigSection.d.ts +7 -1
  24. package/dist/components/agent/settings/sections/DefaultAgentConfigSection.d.ts.map +1 -1
  25. package/dist/components/agent/settings/sections/DefaultAgentConfigSection.js +10 -4
  26. package/dist/components/agent/settings/sections/DefaultAgentConfigSection.js.map +1 -1
  27. package/dist/components/agent/settings/sections/EnvironmentSecretsSection.js +1 -1
  28. package/dist/components/agent/settings/sections/EnvironmentSecretsSection.js.map +1 -1
  29. package/dist/components/agent/settings/sections/ExportBackupSection.js +2 -2
  30. package/dist/components/agent/settings/sections/ExportBackupSection.js.map +1 -1
  31. package/dist/components/agent/settings/sections/GeneralSection.js +2 -2
  32. package/dist/components/agent/settings/sections/GeneralSection.js.map +1 -1
  33. package/dist/components/agent/settings/sections/IntegrationsSection.d.ts +4 -1
  34. package/dist/components/agent/settings/sections/IntegrationsSection.d.ts.map +1 -1
  35. package/dist/components/agent/settings/sections/IntegrationsSection.js +3 -2
  36. package/dist/components/agent/settings/sections/IntegrationsSection.js.map +1 -1
  37. package/dist/components/agent/settings/sections/NotificationsSection.js +1 -1
  38. package/dist/components/agent/settings/sections/NotificationsSection.js.map +1 -1
  39. package/dist/components/agent/settings/sections/ResourceLimitsSection.js +2 -2
  40. package/dist/components/agent/settings/sections/ResourceLimitsSection.js.map +1 -1
  41. package/dist/components/agent/settings/sections/SecurityComplianceSection.js +1 -1
  42. package/dist/components/agent/settings/sections/SecurityComplianceSection.js.map +1 -1
  43. package/dist/components/agent/settings/sections/UsageAnalyticsSection.js +1 -1
  44. package/dist/components/agent/settings/sections/UsageAnalyticsSection.js.map +1 -1
  45. package/dist/components/agent/settings/sections/WorkspaceDirectoryAccessSection.js +2 -2
  46. package/dist/components/agent/settings/sections/WorkspaceDirectoryAccessSection.js.map +1 -1
  47. package/dist/components/agent/settings/settingsPages.d.ts +33 -0
  48. package/dist/components/agent/settings/settingsPages.d.ts.map +1 -0
  49. package/dist/components/agent/settings/settingsPages.js +74 -0
  50. package/dist/components/agent/settings/settingsPages.js.map +1 -0
  51. package/package.json +6 -6
@@ -0,0 +1,74 @@
1
+ const EVERY = ['workspace', 'team', 'agent'];
2
+ export const SETTINGS_PAGES = [
3
+ { id: 'account', label: 'Account', group: 'you', personal: true, sections: ['access'], availableFor: EVERY,
4
+ description: 'Your XENO account on this PC, and the workspaces you belong to.',
5
+ keywords: 'sign in sign out email plan login profile' },
6
+ { id: 'appearance', label: 'Appearance', group: 'you', personal: true, sections: ['appearance'], availableFor: EVERY,
7
+ description: 'Light or dark, the accent colour, and what the sidebar shows.',
8
+ keywords: 'theme dark light colour color accent sidebar' },
9
+ { id: 'notifications', label: 'Notifications', group: 'you', sections: ['notifications'], availableFor: EVERY,
10
+ description: 'When the app tells you something happened, and where it sends it.',
11
+ keywords: 'alerts webhook digest email desktop' },
12
+ { id: 'models', label: 'Models', group: 'agent', sections: ['defaultAgentConfig'], availableFor: ['workspace', 'team'],
13
+ description: 'Which model the agent uses for new chats, and how hard it thinks.',
14
+ keywords: 'default agent config inference reasoning thinking budget model' },
15
+ { id: 'permissions', label: 'Permissions', group: 'agent', sections: ['security'], availableFor: ['workspace', 'team'],
16
+ description: 'What the agent may do without asking you first, and what you already allowed.',
17
+ keywords: 'security compliance approvals rules allow sandbox folder access remembered' },
18
+ { id: 'instructions', label: 'Instructions and memory', group: 'agent', sections: ['defaultAgentConfig'], availableFor: ['workspace', 'team'],
19
+ description: 'What the agent is told before every chat, which tools it has, and what it can look up.',
20
+ keywords: 'system prompt directives tools capabilities knowledge memory default agent config' },
21
+ { id: 'tools', label: 'Tools and connections', group: 'agent', sections: ['integrations'], availableFor: ['workspace', 'team'],
22
+ description: 'Plugins, connectors and the services the agent can reach.',
23
+ keywords: 'integrations plugins mcp connectors github slack webhooks skills hooks' },
24
+ { id: 'devices', label: 'Devices', group: 'agent', personal: true, sections: ['general'], availableFor: EVERY,
25
+ description: 'Use this PC from your other devices, share chats with them, and connect your browser.',
26
+ keywords: 'remote control phone other pc link pair share chat browser extension ssh' },
27
+ { id: 'general', label: 'General', group: 'workspace', sections: ['general', 'dangerZone'], availableFor: EVERY,
28
+ description: 'Its name and description. Archiving and transferring it are at the bottom.',
29
+ keywords: 'name description profile danger zone archive delete transfer ownership restore' },
30
+ { id: 'members', label: 'Members', group: 'workspace', sections: ['access'], availableFor: EVERY,
31
+ description: 'Who is in this workspace, invitations, and workspace keys.',
32
+ keywords: 'people invite role owner admin keys api access team' },
33
+ { id: 'folders', label: 'Folders', group: 'workspace', sections: ['directoryAccess'], availableFor: EVERY,
34
+ description: 'The project folders and apps this workspace, team or agent can use.',
35
+ keywords: 'directory access codebase project apps permission profile runtime provider' },
36
+ { id: 'usage', label: 'Usage and limits', group: 'workspace', sections: ['usage', 'resourceLimits'], availableFor: EVERY,
37
+ description: 'What has been used, by model and by agent, and the limits in force.',
38
+ keywords: 'analytics tokens cost quota rate resource limits spend' },
39
+ { id: 'secrets', label: 'Secrets', group: 'workspace', sections: ['environment'], availableFor: EVERY,
40
+ description: 'Values such as API keys that commands can use, kept out of what the agent shows.',
41
+ keywords: 'environment variables env api key redact' },
42
+ { id: 'backups', label: 'Backups', group: 'workspace', sections: ['exportBackup'], availableFor: EVERY,
43
+ description: 'Save a copy of this workspace, restore one, or export it.',
44
+ keywords: 'export backup restore download manifest recovery' },
45
+ { id: 'developer', label: 'Developer', group: 'developer', sections: ['security'], availableFor: EVERY,
46
+ description: 'A record of what ran here, for checking and for support.',
47
+ keywords: 'audit log runtime diagnostics support trace id' },
48
+ ];
49
+ export const SETTINGS_GROUP_ORDER = ['you', 'agent', 'workspace', 'developer'];
50
+ export function pagesForEntity(entityType) {
51
+ return SETTINGS_PAGES.filter((page) => page.availableFor.includes(entityType));
52
+ }
53
+ /** The page that shows a store section, for callers that still open Settings by section name. */
54
+ export function pageForSection(section, entityType) {
55
+ const pages = pagesForEntity(entityType);
56
+ const preferred = {
57
+ access: 'members', security: 'permissions', defaultAgentConfig: 'models', general: 'general', dangerZone: 'general',
58
+ };
59
+ const wanted = section ? preferred[section] : undefined;
60
+ if (wanted && pages.some((page) => page.id === wanted))
61
+ return wanted;
62
+ return pages.find((page) => section && page.sections.includes(section))?.id ?? 'general';
63
+ }
64
+ /** Pages whose name, description or other words contain every word typed. An empty search keeps every page. */
65
+ export function searchSettingsPages(pages, query) {
66
+ const words = query.toLowerCase().split(/\s+/).filter(Boolean);
67
+ if (words.length === 0)
68
+ return pages;
69
+ return pages.filter((page) => {
70
+ const text = `${page.label} ${page.description} ${page.keywords}`.toLowerCase();
71
+ return words.every((word) => text.includes(word));
72
+ });
73
+ }
74
+ //# sourceMappingURL=settingsPages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settingsPages.js","sourceRoot":"","sources":["../../../../src/components/agent/settings/settingsPages.ts"],"names":[],"mappings":"AAiCA,MAAM,KAAK,GAAiB,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAA;AAE1D,MAAM,CAAC,MAAM,cAAc,GAAmB;IAC5C,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,YAAY,EAAE,KAAK;QACxG,WAAW,EAAE,iEAAiE;QAC9E,QAAQ,EAAE,2CAA2C,EAAE;IACzD,EAAE,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,YAAY,CAAC,EAAE,YAAY,EAAE,KAAK;QAClH,WAAW,EAAE,+DAA+D;QAC5E,QAAQ,EAAE,8CAA8C,EAAE;IAC5D,EAAE,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,eAAe,CAAC,EAAE,YAAY,EAAE,KAAK;QAC3G,WAAW,EAAE,mEAAmE;QAChF,QAAQ,EAAE,qCAAqC,EAAE;IAEnD,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,oBAAoB,CAAC,EAAE,YAAY,EAAE,CAAC,WAAW,EAAE,MAAM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AI,EAAE,EAAE;QAC3B,MAAM,IAAI,GAAG,GAAG,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC,WAAW,EAAE,CAAA;QAC/E,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAA;IACnD,CAAC,CAAC,CAAA;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xenosystem/agent-interface-ui",
3
- "version": "0.1.194",
3
+ "version": "0.1.196",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -48,11 +48,11 @@
48
48
  "remark-gfm": "^4.0.1",
49
49
  "uqr": "0.1.2",
50
50
  "zustand": "^5.0.2",
51
- "@xenosystem/agent-conversation": "0.1.194",
52
- "@xenosystem/agent-interface-contract": "0.1.194",
53
- "@xenosystem/agent-interface-core": "0.1.194",
54
- "@xenosystem/agent-interface-hub-adapter": "0.1.194",
55
- "@xenosystem/agent-interface-client": "0.1.194"
51
+ "@xenosystem/agent-conversation": "0.1.196",
52
+ "@xenosystem/agent-interface-hub-adapter": "0.1.196",
53
+ "@xenosystem/agent-interface-core": "0.1.196",
54
+ "@xenosystem/agent-interface-client": "0.1.196",
55
+ "@xenosystem/agent-interface-contract": "0.1.196"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "react": "^19.0.0",