@xenosystem/agent-interface-ui 0.1.24 → 0.1.26

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 (380) hide show
  1. package/dist/adapters/agentHostPlatformBridge.d.ts.map +1 -1
  2. package/dist/adapters/agentHostPlatformBridge.js +96 -16
  3. package/dist/adapters/agentHostPlatformBridge.js.map +1 -1
  4. package/dist/adapters/hubAgentPlatformBridge.d.ts.map +1 -1
  5. package/dist/adapters/hubAgentPlatformBridge.js +2 -0
  6. package/dist/adapters/hubAgentPlatformBridge.js.map +1 -1
  7. package/dist/adapters/scopedBackupBridge.d.ts +4 -0
  8. package/dist/adapters/scopedBackupBridge.d.ts.map +1 -0
  9. package/dist/adapters/scopedBackupBridge.js +49 -0
  10. package/dist/adapters/scopedBackupBridge.js.map +1 -0
  11. package/dist/adapters/xenoAgentCompatibilityBridge.d.ts.map +1 -1
  12. package/dist/adapters/xenoAgentCompatibilityBridge.js +9 -1
  13. package/dist/adapters/xenoAgentCompatibilityBridge.js.map +1 -1
  14. package/dist/agent.css +13227 -0
  15. package/dist/components/agent/AgentIdentityGenerator.d.ts +16 -0
  16. package/dist/components/agent/AgentIdentityGenerator.d.ts.map +1 -0
  17. package/dist/components/agent/AgentIdentityGenerator.js +80 -0
  18. package/dist/components/agent/AgentIdentityGenerator.js.map +1 -0
  19. package/dist/components/agent/AgentInterface.d.ts +1 -0
  20. package/dist/components/agent/AgentInterface.d.ts.map +1 -1
  21. package/dist/components/agent/AgentInterface.js +1816 -643
  22. package/dist/components/agent/AgentInterface.js.map +1 -1
  23. package/dist/components/agent/AgentNotificationBanner.d.ts +10 -0
  24. package/dist/components/agent/AgentNotificationBanner.d.ts.map +1 -0
  25. package/dist/components/agent/AgentNotificationBanner.js +28 -0
  26. package/dist/components/agent/AgentNotificationBanner.js.map +1 -0
  27. package/dist/components/agent/AgentOnboarding.d.ts +16 -2
  28. package/dist/components/agent/AgentOnboarding.d.ts.map +1 -1
  29. package/dist/components/agent/AgentOnboarding.js +93 -201
  30. package/dist/components/agent/AgentOnboarding.js.map +1 -1
  31. package/dist/components/agent/AgentView.d.ts.map +1 -1
  32. package/dist/components/agent/AgentView.js +533 -308
  33. package/dist/components/agent/AgentView.js.map +1 -1
  34. package/dist/components/agent/AgentWorkbenchPanel.d.ts +3 -1
  35. package/dist/components/agent/AgentWorkbenchPanel.d.ts.map +1 -1
  36. package/dist/components/agent/AgentWorkbenchPanel.js +3 -2
  37. package/dist/components/agent/AgentWorkbenchPanel.js.map +1 -1
  38. package/dist/components/agent/AgentWorkspaceBrowserPanel.d.ts +4 -1
  39. package/dist/components/agent/AgentWorkspaceBrowserPanel.d.ts.map +1 -1
  40. package/dist/components/agent/AgentWorkspaceBrowserPanel.js +23 -195
  41. package/dist/components/agent/AgentWorkspaceBrowserPanel.js.map +1 -1
  42. package/dist/components/agent/AgentsWorkspaceView.d.ts +12 -0
  43. package/dist/components/agent/AgentsWorkspaceView.d.ts.map +1 -0
  44. package/dist/components/agent/AgentsWorkspaceView.js +129 -0
  45. package/dist/components/agent/AgentsWorkspaceView.js.map +1 -0
  46. package/dist/components/agent/DevelopmentCoordinationPanel.d.ts +7 -0
  47. package/dist/components/agent/DevelopmentCoordinationPanel.d.ts.map +1 -1
  48. package/dist/components/agent/DevelopmentCoordinationPanel.js +57 -49
  49. package/dist/components/agent/DevelopmentCoordinationPanel.js.map +1 -1
  50. package/dist/components/agent/KnowledgePanel.d.ts.map +1 -1
  51. package/dist/components/agent/KnowledgePanel.js +17 -67
  52. package/dist/components/agent/KnowledgePanel.js.map +1 -1
  53. package/dist/components/agent/LiveConversationCollaboration.d.ts +27 -0
  54. package/dist/components/agent/LiveConversationCollaboration.d.ts.map +1 -0
  55. package/dist/components/agent/LiveConversationCollaboration.js +127 -0
  56. package/dist/components/agent/LiveConversationCollaboration.js.map +1 -0
  57. package/dist/components/agent/MonacoDiffWorkbenchEditor.d.ts.map +1 -1
  58. package/dist/components/agent/MonacoDiffWorkbenchEditor.js +1 -1
  59. package/dist/components/agent/MonacoDiffWorkbenchEditor.js.map +1 -1
  60. package/dist/components/agent/MonacoWorkbenchEditor.d.ts.map +1 -1
  61. package/dist/components/agent/MonacoWorkbenchEditor.js +3 -3
  62. package/dist/components/agent/MonacoWorkbenchEditor.js.map +1 -1
  63. package/dist/components/agent/OwnedBrowserController.d.ts +55 -0
  64. package/dist/components/agent/OwnedBrowserController.d.ts.map +1 -0
  65. package/dist/components/agent/OwnedBrowserController.js +166 -0
  66. package/dist/components/agent/OwnedBrowserController.js.map +1 -0
  67. package/dist/components/agent/OwnedWorkforceView.d.ts +10 -0
  68. package/dist/components/agent/OwnedWorkforceView.d.ts.map +1 -0
  69. package/dist/components/agent/OwnedWorkforceView.js +256 -0
  70. package/dist/components/agent/OwnedWorkforceView.js.map +1 -0
  71. package/dist/components/agent/PluginManager.d.ts +34 -0
  72. package/dist/components/agent/PluginManager.d.ts.map +1 -1
  73. package/dist/components/agent/PluginManager.js +187 -126
  74. package/dist/components/agent/PluginManager.js.map +1 -1
  75. package/dist/components/agent/ProjectsWorkspaceView.d.ts +14 -0
  76. package/dist/components/agent/ProjectsWorkspaceView.d.ts.map +1 -0
  77. package/dist/components/agent/ProjectsWorkspaceView.js +176 -0
  78. package/dist/components/agent/ProjectsWorkspaceView.js.map +1 -0
  79. package/dist/components/agent/RunReviewPanel.d.ts +8 -13
  80. package/dist/components/agent/RunReviewPanel.d.ts.map +1 -1
  81. package/dist/components/agent/RunReviewPanel.js +120 -106
  82. package/dist/components/agent/RunReviewPanel.js.map +1 -1
  83. package/dist/components/agent/ScheduledWorkspaceView.d.ts +19 -0
  84. package/dist/components/agent/ScheduledWorkspaceView.d.ts.map +1 -0
  85. package/dist/components/agent/ScheduledWorkspaceView.js +150 -0
  86. package/dist/components/agent/ScheduledWorkspaceView.js.map +1 -0
  87. package/dist/components/agent/SdkSessionPanel.d.ts +25 -0
  88. package/dist/components/agent/SdkSessionPanel.d.ts.map +1 -0
  89. package/dist/components/agent/SdkSessionPanel.js +15 -0
  90. package/dist/components/agent/SdkSessionPanel.js.map +1 -0
  91. package/dist/components/agent/SlashCommandAutocomplete.d.ts +12 -0
  92. package/dist/components/agent/SlashCommandAutocomplete.d.ts.map +1 -0
  93. package/dist/components/agent/SlashCommandAutocomplete.js +33 -0
  94. package/dist/components/agent/SlashCommandAutocomplete.js.map +1 -0
  95. package/dist/components/agent/TeamsWorkspaceView.d.ts +12 -0
  96. package/dist/components/agent/TeamsWorkspaceView.d.ts.map +1 -0
  97. package/dist/components/agent/TeamsWorkspaceView.js +127 -0
  98. package/dist/components/agent/TeamsWorkspaceView.js.map +1 -0
  99. package/dist/components/agent/WorkspacePersistenceNotice.d.ts +3 -0
  100. package/dist/components/agent/WorkspacePersistenceNotice.d.ts.map +1 -0
  101. package/dist/components/agent/WorkspacePersistenceNotice.js +23 -0
  102. package/dist/components/agent/WorkspacePersistenceNotice.js.map +1 -0
  103. package/dist/components/agent/acp/AcpAgentConfigForm.d.ts +1 -0
  104. package/dist/components/agent/acp/AcpAgentConfigForm.d.ts.map +1 -1
  105. package/dist/components/agent/acp/AcpAgentConfigForm.js +47 -14
  106. package/dist/components/agent/acp/AcpAgentConfigForm.js.map +1 -1
  107. package/dist/components/agent/acp/AcpAgentDiagnosticsPanel.js +1 -1
  108. package/dist/components/agent/acp/AcpAgentDiagnosticsPanel.js.map +1 -1
  109. package/dist/components/agent/acp/AcpAgentManager.d.ts.map +1 -1
  110. package/dist/components/agent/acp/AcpAgentManager.js +18 -18
  111. package/dist/components/agent/acp/AcpAgentManager.js.map +1 -1
  112. package/dist/components/agent/acp/AcpAgentTestResultPanel.js +1 -1
  113. package/dist/components/agent/acp/AcpAgentTestResultPanel.js.map +1 -1
  114. package/dist/components/agent/acp/AcpApprovalPanel.js +2 -2
  115. package/dist/components/agent/acp/AcpApprovalPanel.js.map +1 -1
  116. package/dist/components/agent/acp/AcpCertificationPanel.js +1 -1
  117. package/dist/components/agent/acp/AcpCertificationPanel.js.map +1 -1
  118. package/dist/components/agent/acp/AcpLiveProviderWorkflowPanel.js +1 -1
  119. package/dist/components/agent/acp/AcpLiveProviderWorkflowPanel.js.map +1 -1
  120. package/dist/components/agent/acp/AcpProviderManagerPanel.js +1 -1
  121. package/dist/components/agent/acp/AcpProviderManagerPanel.js.map +1 -1
  122. package/dist/components/agent/acp/AcpProviderModelsPanel.js +1 -1
  123. package/dist/components/agent/acp/AcpProviderModelsPanel.js.map +1 -1
  124. package/dist/components/agent/acp/AcpSupportBundlePanel.js +1 -1
  125. package/dist/components/agent/acp/AcpSupportBundlePanel.js.map +1 -1
  126. package/dist/components/agent/collaborationWindow.d.ts +11 -0
  127. package/dist/components/agent/collaborationWindow.d.ts.map +1 -0
  128. package/dist/components/agent/collaborationWindow.js +10 -0
  129. package/dist/components/agent/collaborationWindow.js.map +1 -0
  130. package/dist/components/agent/conversationCollaborationAppendJournal.d.ts +25 -0
  131. package/dist/components/agent/conversationCollaborationAppendJournal.d.ts.map +1 -0
  132. package/dist/components/agent/conversationCollaborationAppendJournal.js +118 -0
  133. package/dist/components/agent/conversationCollaborationAppendJournal.js.map +1 -0
  134. package/dist/components/agent/conversationCollaborationController.d.ts +96 -0
  135. package/dist/components/agent/conversationCollaborationController.d.ts.map +1 -0
  136. package/dist/components/agent/conversationCollaborationController.js +597 -0
  137. package/dist/components/agent/conversationCollaborationController.js.map +1 -0
  138. package/dist/components/agent/destructiveConfirmation.d.ts +76 -0
  139. package/dist/components/agent/destructiveConfirmation.d.ts.map +1 -0
  140. package/dist/components/agent/destructiveConfirmation.js +231 -0
  141. package/dist/components/agent/destructiveConfirmation.js.map +1 -0
  142. package/dist/components/agent/developmentCoordinationController.d.ts +43 -0
  143. package/dist/components/agent/developmentCoordinationController.d.ts.map +1 -0
  144. package/dist/components/agent/developmentCoordinationController.js +94 -0
  145. package/dist/components/agent/developmentCoordinationController.js.map +1 -0
  146. package/dist/components/agent/developmentCoordinationProjection.d.ts +24 -0
  147. package/dist/components/agent/developmentCoordinationProjection.d.ts.map +1 -1
  148. package/dist/components/agent/developmentCoordinationProjection.js +34 -5
  149. package/dist/components/agent/developmentCoordinationProjection.js.map +1 -1
  150. package/dist/components/agent/editorOperationAuthority.d.ts +29 -0
  151. package/dist/components/agent/editorOperationAuthority.d.ts.map +1 -0
  152. package/dist/components/agent/editorOperationAuthority.js +73 -0
  153. package/dist/components/agent/editorOperationAuthority.js.map +1 -0
  154. package/dist/components/agent/knowledgePagination.d.ts +7 -0
  155. package/dist/components/agent/knowledgePagination.d.ts.map +1 -0
  156. package/dist/components/agent/knowledgePagination.js +7 -0
  157. package/dist/components/agent/knowledgePagination.js.map +1 -0
  158. package/dist/components/agent/knowledgePanelController.d.ts +32 -0
  159. package/dist/components/agent/knowledgePanelController.d.ts.map +1 -0
  160. package/dist/components/agent/knowledgePanelController.js +119 -0
  161. package/dist/components/agent/knowledgePanelController.js.map +1 -0
  162. package/dist/components/agent/monacoWorkbenchShared.js +1 -1
  163. package/dist/components/agent/onboardingModels.d.ts +31 -0
  164. package/dist/components/agent/onboardingModels.d.ts.map +1 -0
  165. package/dist/components/agent/onboardingModels.js +107 -0
  166. package/dist/components/agent/onboardingModels.js.map +1 -0
  167. package/dist/components/agent/personalConversationScope.d.ts +26 -0
  168. package/dist/components/agent/personalConversationScope.d.ts.map +1 -0
  169. package/dist/components/agent/personalConversationScope.js +43 -0
  170. package/dist/components/agent/personalConversationScope.js.map +1 -0
  171. package/dist/components/agent/reviewRequestScope.d.ts +16 -0
  172. package/dist/components/agent/reviewRequestScope.d.ts.map +1 -0
  173. package/dist/components/agent/reviewRequestScope.js +101 -0
  174. package/dist/components/agent/reviewRequestScope.js.map +1 -0
  175. package/dist/components/agent/scheduleCreationAttempt.d.ts +12 -0
  176. package/dist/components/agent/scheduleCreationAttempt.d.ts.map +1 -0
  177. package/dist/components/agent/scheduleCreationAttempt.js +30 -0
  178. package/dist/components/agent/scheduleCreationAttempt.js.map +1 -0
  179. package/dist/components/agent/settings/EntitySettingsLayout.d.ts +1 -1
  180. package/dist/components/agent/settings/EntitySettingsLayout.d.ts.map +1 -1
  181. package/dist/components/agent/settings/EntitySettingsLayout.js +64 -44
  182. package/dist/components/agent/settings/EntitySettingsLayout.js.map +1 -1
  183. package/dist/components/agent/settings/SettingsNavigation.d.ts.map +1 -1
  184. package/dist/components/agent/settings/SettingsNavigation.js +17 -17
  185. package/dist/components/agent/settings/SettingsNavigation.js.map +1 -1
  186. package/dist/components/agent/settings/entityArchiveState.d.ts +24 -0
  187. package/dist/components/agent/settings/entityArchiveState.d.ts.map +1 -0
  188. package/dist/components/agent/settings/entityArchiveState.js +12 -0
  189. package/dist/components/agent/settings/entityArchiveState.js.map +1 -0
  190. package/dist/components/agent/settings/sections/AccessMembersSection.d.ts.map +1 -1
  191. package/dist/components/agent/settings/sections/AccessMembersSection.js +10 -25
  192. package/dist/components/agent/settings/sections/AccessMembersSection.js.map +1 -1
  193. package/dist/components/agent/settings/sections/AccountWorkspacePanel.d.ts +16 -0
  194. package/dist/components/agent/settings/sections/AccountWorkspacePanel.d.ts.map +1 -0
  195. package/dist/components/agent/settings/sections/AccountWorkspacePanel.js +265 -0
  196. package/dist/components/agent/settings/sections/AccountWorkspacePanel.js.map +1 -0
  197. package/dist/components/agent/settings/sections/AgentPermissionRulesPanel.d.ts.map +1 -1
  198. package/dist/components/agent/settings/sections/AgentPermissionRulesPanel.js +47 -32
  199. package/dist/components/agent/settings/sections/AgentPermissionRulesPanel.js.map +1 -1
  200. package/dist/components/agent/settings/sections/DangerZoneSection.d.ts.map +1 -1
  201. package/dist/components/agent/settings/sections/DangerZoneSection.js +30 -6
  202. package/dist/components/agent/settings/sections/DangerZoneSection.js.map +1 -1
  203. package/dist/components/agent/settings/sections/DefaultAgentConfigSection.d.ts.map +1 -1
  204. package/dist/components/agent/settings/sections/DefaultAgentConfigSection.js +47 -37
  205. package/dist/components/agent/settings/sections/DefaultAgentConfigSection.js.map +1 -1
  206. package/dist/components/agent/settings/sections/EnvironmentSecretsSection.d.ts.map +1 -1
  207. package/dist/components/agent/settings/sections/EnvironmentSecretsSection.js +30 -43
  208. package/dist/components/agent/settings/sections/EnvironmentSecretsSection.js.map +1 -1
  209. package/dist/components/agent/settings/sections/ExportBackupSection.d.ts +3 -1
  210. package/dist/components/agent/settings/sections/ExportBackupSection.d.ts.map +1 -1
  211. package/dist/components/agent/settings/sections/ExportBackupSection.js +14 -12
  212. package/dist/components/agent/settings/sections/ExportBackupSection.js.map +1 -1
  213. package/dist/components/agent/settings/sections/GeneralSection.d.ts.map +1 -1
  214. package/dist/components/agent/settings/sections/GeneralSection.js +47 -4
  215. package/dist/components/agent/settings/sections/GeneralSection.js.map +1 -1
  216. package/dist/components/agent/settings/sections/IntegrationsSection.d.ts.map +1 -1
  217. package/dist/components/agent/settings/sections/IntegrationsSection.js +14 -21
  218. package/dist/components/agent/settings/sections/IntegrationsSection.js.map +1 -1
  219. package/dist/components/agent/settings/sections/NotificationsSection.d.ts.map +1 -1
  220. package/dist/components/agent/settings/sections/NotificationsSection.js +125 -20
  221. package/dist/components/agent/settings/sections/NotificationsSection.js.map +1 -1
  222. package/dist/components/agent/settings/sections/ResourceLimitsSection.d.ts.map +1 -1
  223. package/dist/components/agent/settings/sections/ResourceLimitsSection.js +7 -7
  224. package/dist/components/agent/settings/sections/ResourceLimitsSection.js.map +1 -1
  225. package/dist/components/agent/settings/sections/SecurityComplianceSection.d.ts.map +1 -1
  226. package/dist/components/agent/settings/sections/SecurityComplianceSection.js +5 -4
  227. package/dist/components/agent/settings/sections/SecurityComplianceSection.js.map +1 -1
  228. package/dist/components/agent/settings/sections/UsageAnalyticsSection.d.ts.map +1 -1
  229. package/dist/components/agent/settings/sections/UsageAnalyticsSection.js +2 -3
  230. package/dist/components/agent/settings/sections/UsageAnalyticsSection.js.map +1 -1
  231. package/dist/components/agent/settings/sections/WorkspaceDirectoryAccessSection.d.ts.map +1 -1
  232. package/dist/components/agent/settings/sections/WorkspaceDirectoryAccessSection.js +39 -26
  233. package/dist/components/agent/settings/sections/WorkspaceDirectoryAccessSection.js.map +1 -1
  234. package/dist/components/agent/settings/sections/WorkspaceKeysPanel.d.ts +6 -0
  235. package/dist/components/agent/settings/sections/WorkspaceKeysPanel.d.ts.map +1 -0
  236. package/dist/components/agent/settings/sections/WorkspaceKeysPanel.js +205 -0
  237. package/dist/components/agent/settings/sections/WorkspaceKeysPanel.js.map +1 -0
  238. package/dist/components/agent/settings/sections/environmentDraftAction.d.ts +3 -0
  239. package/dist/components/agent/settings/sections/environmentDraftAction.d.ts.map +1 -0
  240. package/dist/components/agent/settings/sections/environmentDraftAction.js +6 -0
  241. package/dist/components/agent/settings/sections/environmentDraftAction.js.map +1 -0
  242. package/dist/components/agent/settings/sections/membershipOperationProjection.d.ts +3 -0
  243. package/dist/components/agent/settings/sections/membershipOperationProjection.d.ts.map +1 -0
  244. package/dist/components/agent/settings/sections/membershipOperationProjection.js +9 -0
  245. package/dist/components/agent/settings/sections/membershipOperationProjection.js.map +1 -0
  246. package/dist/components/agent/settings/sections/workspaceKeyOperationProjection.d.ts +6 -0
  247. package/dist/components/agent/settings/sections/workspaceKeyOperationProjection.d.ts.map +1 -0
  248. package/dist/components/agent/settings/sections/workspaceKeyOperationProjection.js +8 -0
  249. package/dist/components/agent/settings/sections/workspaceKeyOperationProjection.js.map +1 -0
  250. package/dist/components/agent/settings/shared/InAppConfirmationDialog.d.ts +25 -0
  251. package/dist/components/agent/settings/shared/InAppConfirmationDialog.d.ts.map +1 -0
  252. package/dist/components/agent/settings/shared/InAppConfirmationDialog.js +89 -0
  253. package/dist/components/agent/settings/shared/InAppConfirmationDialog.js.map +1 -0
  254. package/dist/components/agent/settings/shared/InputField.d.ts +1 -1
  255. package/dist/components/agent/settings/shared/InputField.d.ts.map +1 -1
  256. package/dist/components/agent/settings/shared/InputField.js +4 -3
  257. package/dist/components/agent/settings/shared/InputField.js.map +1 -1
  258. package/dist/components/agent/settings/shared/MembersTable.d.ts +3 -3
  259. package/dist/components/agent/settings/shared/MembersTable.d.ts.map +1 -1
  260. package/dist/components/agent/settings/shared/MembersTable.js +1 -1
  261. package/dist/components/agent/settings/shared/MembersTable.js.map +1 -1
  262. package/dist/components/agent/settings/shared/ScopedAuditPanel.d.ts +5 -0
  263. package/dist/components/agent/settings/shared/ScopedAuditPanel.d.ts.map +1 -0
  264. package/dist/components/agent/settings/shared/ScopedAuditPanel.js +70 -0
  265. package/dist/components/agent/settings/shared/ScopedAuditPanel.js.map +1 -0
  266. package/dist/components/agent/settings/shared/SettingsCard.d.ts +2 -1
  267. package/dist/components/agent/settings/shared/SettingsCard.d.ts.map +1 -1
  268. package/dist/components/agent/settings/shared/SettingsCard.js +2 -2
  269. package/dist/components/agent/settings/shared/SettingsCard.js.map +1 -1
  270. package/dist/components/agent/settings/shared/ToggleSwitch.d.ts.map +1 -1
  271. package/dist/components/agent/settings/shared/ToggleSwitch.js +1 -1
  272. package/dist/components/agent/settings/shared/ToggleSwitch.js.map +1 -1
  273. package/dist/components/agent/settings/shared/UsageChart.d.ts +10 -0
  274. package/dist/components/agent/settings/shared/UsageChart.d.ts.map +1 -1
  275. package/dist/components/agent/settings/shared/UsageChart.js +16 -10
  276. package/dist/components/agent/settings/shared/UsageChart.js.map +1 -1
  277. package/dist/components/agent/settings/shared/WorkspaceRulesControl.d.ts +8 -0
  278. package/dist/components/agent/settings/shared/WorkspaceRulesControl.d.ts.map +1 -0
  279. package/dist/components/agent/settings/shared/WorkspaceRulesControl.js +26 -0
  280. package/dist/components/agent/settings/shared/WorkspaceRulesControl.js.map +1 -0
  281. package/dist/components/agent/settings/shared/useScopedConfirmation.d.ts +8 -0
  282. package/dist/components/agent/settings/shared/useScopedConfirmation.d.ts.map +1 -0
  283. package/dist/components/agent/settings/shared/useScopedConfirmation.js +53 -0
  284. package/dist/components/agent/settings/shared/useScopedConfirmation.js.map +1 -0
  285. package/dist/components/agent/settings/shared/useSettingsConfirmation.d.ts +8 -0
  286. package/dist/components/agent/settings/shared/useSettingsConfirmation.d.ts.map +1 -0
  287. package/dist/components/agent/settings/shared/useSettingsConfirmation.js +51 -0
  288. package/dist/components/agent/settings/shared/useSettingsConfirmation.js.map +1 -0
  289. package/dist/components/agent/settings/shared/workspaceRulesController.d.ts +28 -0
  290. package/dist/components/agent/settings/shared/workspaceRulesController.d.ts.map +1 -0
  291. package/dist/components/agent/settings/shared/workspaceRulesController.js +82 -0
  292. package/dist/components/agent/settings/shared/workspaceRulesController.js.map +1 -0
  293. package/dist/components/agent/sidebarEntityPins.d.ts +11 -0
  294. package/dist/components/agent/sidebarEntityPins.d.ts.map +1 -0
  295. package/dist/components/agent/sidebarEntityPins.js +37 -0
  296. package/dist/components/agent/sidebarEntityPins.js.map +1 -0
  297. package/dist/components/agent/workspaceHierarchy.d.ts +24 -0
  298. package/dist/components/agent/workspaceHierarchy.d.ts.map +1 -0
  299. package/dist/components/agent/workspaceHierarchy.js +50 -0
  300. package/dist/components/agent/workspaceHierarchy.js.map +1 -0
  301. package/dist/components/product/XenoAgentProductHeader.d.ts +4 -2
  302. package/dist/components/product/XenoAgentProductHeader.d.ts.map +1 -1
  303. package/dist/components/product/XenoAgentProductHeader.js +22 -4
  304. package/dist/components/product/XenoAgentProductHeader.js.map +1 -1
  305. package/dist/components/product/XenoAgentSessionTabs.js +1 -1
  306. package/dist/components/product/XenoAgentSessionTabs.js.map +1 -1
  307. package/dist/components/product/XenoAgentWorkspaceSelector.d.ts +7 -0
  308. package/dist/components/product/XenoAgentWorkspaceSelector.d.ts.map +1 -0
  309. package/dist/components/product/XenoAgentWorkspaceSelector.js +237 -0
  310. package/dist/components/product/XenoAgentWorkspaceSelector.js.map +1 -0
  311. package/dist/components/workspace/WorkspaceCreationWizard.d.ts +6 -0
  312. package/dist/components/workspace/WorkspaceCreationWizard.d.ts.map +1 -0
  313. package/dist/components/workspace/WorkspaceCreationWizard.js +48 -0
  314. package/dist/components/workspace/WorkspaceCreationWizard.js.map +1 -0
  315. package/dist/hooks/useSidebarLayoutPreference.d.ts +29 -0
  316. package/dist/hooks/useSidebarLayoutPreference.d.ts.map +1 -0
  317. package/dist/hooks/useSidebarLayoutPreference.js +83 -0
  318. package/dist/hooks/useSidebarLayoutPreference.js.map +1 -0
  319. package/dist/hooks/useWorkspaceCreation.d.ts +8 -0
  320. package/dist/hooks/useWorkspaceCreation.d.ts.map +1 -0
  321. package/dist/hooks/useWorkspaceCreation.js +40 -0
  322. package/dist/hooks/useWorkspaceCreation.js.map +1 -0
  323. package/dist/index.d.ts +3 -0
  324. package/dist/index.d.ts.map +1 -1
  325. package/dist/index.js +3 -0
  326. package/dist/index.js.map +1 -1
  327. package/dist/platformApiTypes.d.ts +77 -36
  328. package/dist/platformApiTypes.d.ts.map +1 -1
  329. package/dist/platformBridge.d.ts +4 -0
  330. package/dist/platformBridge.d.ts.map +1 -1
  331. package/dist/platformBridge.js +10 -0
  332. package/dist/platformBridge.js.map +1 -1
  333. package/dist/stores/agentChatStore.d.ts +120 -2
  334. package/dist/stores/agentChatStore.d.ts.map +1 -1
  335. package/dist/stores/agentChatStore.js +344 -35
  336. package/dist/stores/agentChatStore.js.map +1 -1
  337. package/dist/stores/agentCreationDefaults.d.ts +25 -0
  338. package/dist/stores/agentCreationDefaults.d.ts.map +1 -0
  339. package/dist/stores/agentCreationDefaults.js +11 -0
  340. package/dist/stores/agentCreationDefaults.js.map +1 -0
  341. package/dist/stores/entitySettingsStore.d.ts +37 -12
  342. package/dist/stores/entitySettingsStore.d.ts.map +1 -1
  343. package/dist/stores/entitySettingsStore.js +558 -585
  344. package/dist/stores/entitySettingsStore.js.map +1 -1
  345. package/dist/stores/suggestionStore.d.ts +9 -2
  346. package/dist/stores/suggestionStore.d.ts.map +1 -1
  347. package/dist/stores/suggestionStore.js +51 -24
  348. package/dist/stores/suggestionStore.js.map +1 -1
  349. package/dist/stores/workspaceCreationAttempt.d.ts +14 -0
  350. package/dist/stores/workspaceCreationAttempt.d.ts.map +1 -0
  351. package/dist/stores/workspaceCreationAttempt.js +35 -0
  352. package/dist/stores/workspaceCreationAttempt.js.map +1 -0
  353. package/dist/stores/workspaceReconciliation.d.ts +6 -0
  354. package/dist/stores/workspaceReconciliation.d.ts.map +1 -0
  355. package/dist/stores/workspaceReconciliation.js +33 -0
  356. package/dist/stores/workspaceReconciliation.js.map +1 -0
  357. package/dist/stores/workspaceStore.d.ts +44 -9
  358. package/dist/stores/workspaceStore.d.ts.map +1 -1
  359. package/dist/stores/workspaceStore.js +238 -99
  360. package/dist/stores/workspaceStore.js.map +1 -1
  361. package/dist/types/agentEditor.d.ts +1 -0
  362. package/dist/types/agentEditor.d.ts.map +1 -1
  363. package/dist/utils/advertisedReasoning.d.ts +25 -0
  364. package/dist/utils/advertisedReasoning.d.ts.map +1 -0
  365. package/dist/utils/advertisedReasoning.js +62 -0
  366. package/dist/utils/advertisedReasoning.js.map +1 -0
  367. package/dist/utils/clipboardCopy.d.ts +4 -0
  368. package/dist/utils/clipboardCopy.d.ts.map +1 -0
  369. package/dist/utils/clipboardCopy.js +27 -0
  370. package/dist/utils/clipboardCopy.js.map +1 -0
  371. package/dist/utils/providerCommandArgs.d.ts +11 -0
  372. package/dist/utils/providerCommandArgs.d.ts.map +1 -0
  373. package/dist/utils/providerCommandArgs.js +18 -0
  374. package/dist/utils/providerCommandArgs.js.map +1 -0
  375. package/dist/utils/rendererTeardown.d.ts +6 -0
  376. package/dist/utils/rendererTeardown.d.ts.map +1 -0
  377. package/dist/utils/rendererTeardown.js +18 -0
  378. package/dist/utils/rendererTeardown.js.map +1 -0
  379. package/package.json +20 -8
  380. package/src/agent.css +39 -9
@@ -0,0 +1,256 @@
1
+ import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import React, { useEffect, useId, useRef, useState } from 'react';
3
+ import { Button, Panel, TextInput, Textarea } from '@xenosystem/elements-react';
4
+ import { isAgentWorkforceResult, parseAgentWorkforceOwnedCatalog } from '@xenosystem/agent-interface-contract';
5
+ import { getAgentPlatformBridge } from '../../platformBridge.js';
6
+ const uuid = (value) => typeof value === 'string' && /^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(value);
7
+ const recoveryKey = (accountId, kind) => `xeno.workforce.pending.v1.${accountId}.${kind}`;
8
+ function loadRecovery(accountId, kind) {
9
+ const raw = localStorage.getItem(recoveryKey(accountId, kind));
10
+ if (raw === null)
11
+ return null;
12
+ const value = JSON.parse(raw);
13
+ if (!value || typeof value !== 'object' || Array.isArray(value))
14
+ throw new Error('Invalid recovery reference');
15
+ const r = value;
16
+ if (Object.keys(r).sort().join(',') !== 'accountId,kind,operationId,version' || r.version !== 1 || !uuid(r.operationId) || r.accountId !== accountId || r.kind !== kind)
17
+ throw new Error('Invalid recovery reference');
18
+ return { version: 1, operationId: r.operationId, accountId, kind };
19
+ }
20
+ function saveRecovery(value) {
21
+ const key = recoveryKey(value.accountId, value.kind), raw = JSON.stringify(value);
22
+ localStorage.setItem(key, raw);
23
+ if (localStorage.getItem(key) !== raw)
24
+ throw new Error('Recovery persistence unavailable');
25
+ }
26
+ const explanation = (result) => result.state === 'committed' ? 'Saved operation confirmed.' : result.state === 'prepared'
27
+ ? 'Prepared safely. Continue this operation or cancel it before dispatch.' : result.state === 'cancelled' ? 'Prepared creation cancelled.'
28
+ : 'The outcome is not confirmed. Check the saved operation before retrying; your draft has not been resubmitted.';
29
+ /** Personal owned resources only. This view never synthesizes memberships,
30
+ * assignments, execution permission or a globally shared catalog. */
31
+ export function OwnedWorkforceView({ kind, onBackToChat }) {
32
+ const [account, setAccount] = useState(null);
33
+ const [catalog, setCatalog] = useState(null);
34
+ const [name, setName] = useState(''), [instructions, setInstructions] = useState('');
35
+ const [busy, setBusy] = useState(true), [notice, setNotice] = useState('Checking account…');
36
+ const [error, setError] = useState(''), [recovery, setRecovery] = useState(null);
37
+ const [outcome, setOutcome] = useState(null);
38
+ const accountRef = useRef(null), epoch = useRef(0), flight = useRef(false);
39
+ const kindRef = useRef(kind);
40
+ kindRef.current = kind;
41
+ const mounted = useRef(false), recoveryRef = useRef(null);
42
+ const draft = useRef(null);
43
+ const nameId = useId(), instructionsId = useId();
44
+ const current = (generation) => { if (!mounted.current || generation !== epoch.current || kindRef.current !== kind)
45
+ throw new Error('View changed'); };
46
+ const adopt = (value) => {
47
+ if (accountRef.current?.id !== value?.id) {
48
+ epoch.current++;
49
+ accountRef.current = value;
50
+ setAccount(value);
51
+ setCatalog(null);
52
+ setRecovery(null);
53
+ recoveryRef.current = null;
54
+ setOutcome(null);
55
+ draft.current = null;
56
+ setName('');
57
+ setInstructions('');
58
+ setNotice(value ? 'Account changed. Refresh to load owned resources.' : 'Sign in through Settings to view your owned resources.');
59
+ }
60
+ };
61
+ const identity = async () => {
62
+ const api = getAgentPlatformBridge().account;
63
+ if (!api)
64
+ throw new Error('Account unavailable');
65
+ const response = await api.request({ action: 'status' });
66
+ const value = response.success && response.status?.state === 'signed-in' ? response.status.account : null;
67
+ if (!value)
68
+ return null;
69
+ if (!uuid(value.id) || typeof value.email !== 'string')
70
+ throw new Error('Account unavailable');
71
+ return { id: value.id.toLowerCase(), email: value.email, displayName: value.displayName ?? null };
72
+ };
73
+ const verify = async (expected, generation) => {
74
+ current(generation);
75
+ const actual = await identity();
76
+ current(generation);
77
+ if (actual?.id !== expected) {
78
+ adopt(actual);
79
+ throw new Error('Account changed');
80
+ }
81
+ };
82
+ const invoke = async (request, generation) => {
83
+ await verify(request.expectedAccountId, generation);
84
+ const api = getAgentPlatformBridge().workforce;
85
+ if (!api)
86
+ throw new Error('Workforce unavailable');
87
+ const result = await api.request(request);
88
+ current(generation);
89
+ await verify(request.expectedAccountId, generation);
90
+ if (!isAgentWorkforceResult(result) || (request.action !== 'list-owned' && result.operationId !== undefined && result.operationId !== request.operationId))
91
+ throw new Error('Unverified workforce response');
92
+ if (result.code === 'ACCOUNT_CHANGED') {
93
+ adopt(null);
94
+ throw new Error('Account changed');
95
+ }
96
+ return result;
97
+ };
98
+ const page = async (owner, generation, cursor) => {
99
+ const result = await invoke({ schemaVersion: 1, action: 'list-owned', expectedAccountId: owner, owner: { type: 'user', id: owner }, kind, limit: 50, ...(cursor ? { cursor } : {}) }, generation);
100
+ if (!result.success || !result.catalog)
101
+ throw new Error('Catalog unavailable');
102
+ const value = parseAgentWorkforceOwnedCatalog(result.catalog);
103
+ if (value.owner.type !== 'user' || value.owner.id !== owner || value.items.length > 50 || value.items.some(item => item.kind !== kind || item.status !== 'active') || (cursor && value.nextCursor === cursor))
104
+ throw new Error('Invalid catalog');
105
+ current(generation);
106
+ setCatalog(value);
107
+ };
108
+ const remember = (value) => { recoveryRef.current = value; setRecovery(value); };
109
+ const observe = async (ref, result, generation) => {
110
+ current(generation);
111
+ setOutcome(result);
112
+ setNotice(explanation(result));
113
+ if (result.code === 'CONFLICT')
114
+ setError('The host refused a conflicting request for this saved identity. No replacement was authorized. Check the saved operation before continuing.');
115
+ if (result.state === 'committed' || result.state === 'cancelled') {
116
+ localStorage.removeItem(recoveryKey(ref.accountId, ref.kind));
117
+ if (localStorage.getItem(recoveryKey(ref.accountId, ref.kind)) !== null)
118
+ throw new Error('Recovery cleanup unavailable');
119
+ remember(null);
120
+ draft.current = null;
121
+ if (result.state === 'committed') {
122
+ setName('');
123
+ setInstructions('');
124
+ await page(ref.accountId, generation);
125
+ }
126
+ }
127
+ };
128
+ const reconcile = async (ref, generation) => {
129
+ const common = { schemaVersion: 1, operationId: ref.operationId, expectedAccountId: ref.accountId };
130
+ let result = await invoke({ ...common, action: 'lookup' }, generation);
131
+ if (result.state === 'dispatched' || result.state === 'uncertain')
132
+ result = await invoke({ ...common, action: 'reconcile' }, generation);
133
+ await observe(ref, result, generation);
134
+ return result;
135
+ };
136
+ const run = (work) => {
137
+ if (flight.current || !mounted.current)
138
+ return;
139
+ flight.current = true;
140
+ setBusy(true);
141
+ setError('');
142
+ void work().catch(() => { if (mounted.current && kindRef.current === kind)
143
+ setError('This action could not be verified. Refresh the account or check the saved operation; nothing was assumed successful.'); })
144
+ .finally(() => { flight.current = false; if (mounted.current)
145
+ setBusy(false); });
146
+ };
147
+ const refresh = () => run(async () => {
148
+ const before = epoch.current, actual = await identity();
149
+ current(before);
150
+ adopt(actual);
151
+ if (!actual) {
152
+ setCatalog(null);
153
+ setNotice('Sign in through Settings to view your owned resources.');
154
+ return;
155
+ }
156
+ const generation = epoch.current;
157
+ let ref;
158
+ try {
159
+ ref = loadRecovery(actual.id, kind);
160
+ }
161
+ catch {
162
+ setNotice('Recovery storage is unavailable or invalid. Creation is disabled until it can be repaired.');
163
+ throw new Error('Storage unavailable');
164
+ }
165
+ remember(ref);
166
+ if (ref)
167
+ await reconcile(ref, generation);
168
+ else
169
+ setNotice('Personal ownership. Workspace assignments and team members are managed separately.');
170
+ await page(actual.id, generation);
171
+ });
172
+ useEffect(() => {
173
+ mounted.current = true;
174
+ epoch.current++;
175
+ accountRef.current = null;
176
+ setAccount(null);
177
+ setCatalog(null);
178
+ remember(null);
179
+ setOutcome(null);
180
+ draft.current = null;
181
+ setName('');
182
+ setInstructions('');
183
+ // A route change invalidates previous async results. Its completion releases
184
+ // the same single-flight guard before the new route performs a fresh read.
185
+ let started = false;
186
+ const start = () => { if (!flight.current && !started) {
187
+ started = true;
188
+ refresh();
189
+ } };
190
+ start();
191
+ const retry = window.setInterval(() => { start(); if (started)
192
+ window.clearInterval(retry); }, 100);
193
+ const focus = () => refresh();
194
+ window.addEventListener('focus', focus);
195
+ return () => { mounted.current = false; epoch.current++; window.clearInterval(retry); window.removeEventListener('focus', focus); };
196
+ }, [kind]);
197
+ const create = () => run(async () => {
198
+ const owner = accountRef.current?.id, generation = epoch.current;
199
+ if (!owner || recoveryRef.current || !name.trim() || new TextEncoder().encode(name.trim()).length > 200 || new TextEncoder().encode(instructions).length > 32768)
200
+ throw new Error('Invalid creation');
201
+ await verify(owner, generation);
202
+ if (loadRecovery(owner, kind))
203
+ throw new Error('Another creation needs recovery');
204
+ const ref = { version: 1, operationId: crypto.randomUUID(), accountId: owner, kind };
205
+ const resource = kind === 'team' ? { kind, owner: { type: 'user', id: owner }, name: name.trim() }
206
+ : { kind, owner: { type: 'user', id: owner }, name: name.trim(), definition: { schemaVersion: 1, instructions, skills: [], requestedCapabilities: [], provenance: { source: 'authored' } } };
207
+ saveRecovery(ref);
208
+ remember(ref);
209
+ draft.current = resource;
210
+ const common = { schemaVersion: 1, operationId: ref.operationId, expectedAccountId: owner };
211
+ const prepared = await invoke({ ...common, action: 'prepare', resource }, generation);
212
+ await observe(ref, prepared, generation);
213
+ if (prepared.success && prepared.state === 'prepared')
214
+ await observe(ref, await invoke({ ...common, action: 'execute' }, generation), generation);
215
+ });
216
+ const retry = () => run(async () => {
217
+ const ref = recoveryRef.current, generation = epoch.current;
218
+ if (!ref)
219
+ return;
220
+ let checked = await reconcile(ref, generation);
221
+ if (['committed', 'cancelled', 'rejected'].includes(checked.state ?? ''))
222
+ return;
223
+ const common = { schemaVersion: 1, operationId: ref.operationId, expectedAccountId: ref.accountId };
224
+ if (!checked.state) {
225
+ if (!draft.current) {
226
+ if (!name.trim() || new TextEncoder().encode(name.trim()).length > 200 || new TextEncoder().encode(instructions).length > 32768)
227
+ throw new Error('Re-enter the original draft');
228
+ // Recovery stores identity only. If preparation was never acknowledged,
229
+ // the draft may not exist in the host. Re-entry preserves this SAME ID;
230
+ // the host's immutable request hash refuses overwriting any prior intent.
231
+ draft.current = ref.kind === 'team' ? { kind: 'team', owner: { type: 'user', id: ref.accountId }, name: name.trim() }
232
+ : { kind: 'agent', owner: { type: 'user', id: ref.accountId }, name: name.trim(), definition: { schemaVersion: 1, instructions, skills: [], requestedCapabilities: [], provenance: { source: 'authored' } } };
233
+ }
234
+ checked = await invoke({ ...common, action: 'prepare', resource: draft.current }, generation);
235
+ if (!checked.success || checked.state !== 'prepared') {
236
+ await observe(ref, checked, generation);
237
+ return;
238
+ }
239
+ }
240
+ await observe(ref, await invoke({ ...common, action: 'execute', retryAfterNotObserved: true }, generation), generation);
241
+ });
242
+ const cancel = () => run(async () => {
243
+ const ref = recoveryRef.current, generation = epoch.current;
244
+ if (!ref)
245
+ return;
246
+ const checked = await reconcile(ref, generation);
247
+ if (checked.state !== 'prepared')
248
+ return;
249
+ await observe(ref, await invoke({ schemaVersion: 1, action: 'cancel', operationId: ref.operationId, expectedAccountId: ref.accountId }, generation), generation);
250
+ });
251
+ const reenter = !!recovery && !!outcome && !outcome.state && !draft.current;
252
+ return _jsxs("section", { className: "xeno owned-workforce-view", "data-xeno-size": "md", "aria-label": `Owned ${kind}s`, "aria-busy": busy, children: [_jsx(Panel, { title: `Owned ${kind}s`, actions: _jsxs(_Fragment, { children: [_jsx(Button, { variant: "ghost", onClick: onBackToChat, children: "Back to chat" }), _jsx(Button, { variant: "secondary", disabled: busy, onClick: refresh, children: "Refresh" })] }), children: _jsxs("div", { className: "owned-workforce-content", children: [_jsxs("div", { children: ["Owner: ", account ? account.displayName || account.email : 'Not signed in'] }), _jsx("div", { role: "status", children: notice }), error && _jsx("div", { role: "alert", children: error }), catalog && _jsxs(_Fragment, { children: [_jsx("ul", { className: "owned-workforce-list", children: catalog.items.map(item => _jsxs("li", { children: [_jsx("span", { children: item.name }), _jsx("span", { children: item.status })] }, item.id)) }), catalog.items.length === 0 && _jsxs("div", { children: ["No owned ", kind, "s yet."] }), catalog.nextCursor && _jsx(Button, { variant: "secondary", disabled: busy, onClick: () => run(async () => { const id = accountRef.current?.id; if (id)
253
+ await page(id, epoch.current, catalog.nextCursor); }), children: "Next page" })] })] }) }), _jsx(Panel, { title: `Create ${kind}`, children: _jsxs("form", { className: "owned-workforce-content", onSubmit: event => { event.preventDefault(); create(); }, children: [reenter && _jsx("div", { role: "status", children: "Re-enter the original draft to retry this saved identity. The original operation may already exist; re-entry never authorizes replacing it." }), _jsx("label", { htmlFor: nameId, children: "Name" }), _jsx(TextInput, { id: nameId, value: name, maxLength: 200, disabled: busy || (!!recovery && !reenter) || !account, onChange: event => setName(event.target.value) }), kind === 'agent' && _jsxs(_Fragment, { children: [_jsx("label", { htmlFor: instructionsId, children: "Instructions" }), _jsx(Textarea, { id: instructionsId, value: instructions, maxLength: 32768, disabled: busy || (!!recovery && !reenter) || !account, onChange: event => setInstructions(event.target.value) })] }), !recovery && _jsxs(Button, { type: "submit", variant: "primary", disabled: busy || !account || !name.trim(), children: ["Create ", kind] }), recovery && _jsxs("div", { className: "owned-workforce-actions", children: [_jsxs("div", { children: ["Saved operation: ", recovery.operationId] }), _jsx(Button, { type: "button", variant: "secondary", disabled: busy, onClick: () => run(async () => { const ref = recoveryRef.current; if (ref)
254
+ await reconcile(ref, epoch.current); }), children: "Check saved operation" }), outcome?.state !== 'rejected' && _jsx(Button, { type: "button", variant: "primary", disabled: busy || (reenter && !name.trim()), onClick: retry, children: "Retry same operation" }), outcome?.state === 'prepared' && _jsx(Button, { type: "button", variant: "ghost", disabled: busy, onClick: cancel, children: "Cancel prepared creation" })] })] }) })] });
255
+ }
256
+ //# sourceMappingURL=OwnedWorkforceView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OwnedWorkforceView.js","sourceRoot":"","sources":["../../../src/components/agent/OwnedWorkforceView.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACjE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAC/E,OAAO,EAAE,sBAAsB,EAAE,+BAA+B,EAAuJ,MAAM,sCAAsC,CAAA;AACnQ,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAIhE,MAAM,IAAI,GAAG,CAAC,KAAc,EAAmB,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,4EAA4E,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;AACvK,MAAM,WAAW,GAAG,CAAC,SAAiB,E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QAAQ,IAAI,eAAK,SAAS,EAAC,yBAAyB,aAAC,+CAAuB,QAAQ,CAAC,WAAW,IAAO,EACtG,KAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAC,WAAW,EAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE,GAAG,MAAM,GAAG,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,IAAI,GAAG;wCAAE,MAAM,SAAS,CAAC,GAAG,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA,CAAC,CAAC,CAAC,sCAAgC,EAC1M,OAAO,EAAE,KAAK,KAAK,UAAU,IAAI,KAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAC,SAAS,EAAC,QAAQ,EAAE,IAAI,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,KAAK,qCAA+B,EACnK,OAAO,EAAE,KAAK,KAAK,UAAU,IAAI,KAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAC,OAAO,EAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,yCAAmC,IACtI,IACD,GACD,IACA,CAAA;AACZ,CAAC"}
@@ -15,6 +15,40 @@ interface PluginManagerProps {
15
15
  className?: string;
16
16
  caller?: PluginManagerCaller;
17
17
  }
18
+ /** Arguments are data, not a shell command. JSON preserves spaces, empty args and backslashes. */
19
+ export declare function parsePluginMcpArguments(value: string): string[];
20
+ /** Shared by the actual component: scope incarnation, latest reads, and settlement-owned singleflight. */
21
+ export declare class PluginManagerOperations {
22
+ private generation;
23
+ private readVersion;
24
+ private active;
25
+ private busy;
26
+ private draftRevisions;
27
+ private listeners;
28
+ getBusy: () => string | null;
29
+ subscribe: (listener: () => void) => (() => void);
30
+ activate(): void;
31
+ invalidate(): void;
32
+ editDraft(key: 'install' | 'mcp'): void;
33
+ captureDraft(key: 'install' | 'mcp', clear: () => void): () => void;
34
+ private capture;
35
+ read<T>(request: () => Promise<T>, callbacks: {
36
+ start: () => void;
37
+ success: (result: T) => void;
38
+ failure: (error: unknown) => void;
39
+ finish: () => void;
40
+ }): Promise<void>;
41
+ run<T extends {
42
+ success: boolean;
43
+ error?: string;
44
+ }>(label: string, request: () => Promise<T>, callbacks: {
45
+ start: () => void;
46
+ success: (result: T) => void | Promise<void>;
47
+ failure: (message: string) => void;
48
+ finish: () => void;
49
+ invalidateReads?: boolean;
50
+ }): Promise<boolean>;
51
+ }
18
52
  export declare function PluginManager({ className, caller }: PluginManagerProps): React.JSX.Element;
19
53
  export {};
20
54
  //# sourceMappingURL=PluginManager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PluginManager.d.ts","sourceRoot":"","sources":["../../../src/components/agent/PluginManager.tsx"],"names":[],"mappings":"AACA;;;;;GAKG;AAEH,OAAO,KAAoD,MAAM,OAAO,CAAA;AAiKxE,UAAU,mBAAmB;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAA;CAC9B;AAED,UAAU,kBAAkB;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,mBAAmB,CAAA;CAC7B;AAiSD,wBAAgB,aAAa,CAAC,EAAE,SAAc,EAAE,MAAM,EAAE,EAAE,kBAAkB,qBA0nB3E"}
1
+ {"version":3,"file":"PluginManager.d.ts","sourceRoot":"","sources":["../../../src/components/agent/PluginManager.tsx"],"names":[],"mappings":"AACA;;;;;GAKG;AAEH,OAAO,KAA2F,MAAM,OAAO,CAAA;AAiK/G,UAAU,mBAAmB;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAA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