@atlaskit/rovo-triggers 11.7.0 → 11.9.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # @atlaskit/rovo-triggers
2
2
 
3
+ ## 11.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`650cddbcd2b17`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/650cddbcd2b17) -
8
+ Synchronize custom skill deletion across Studio and Chat using site-scoped rovo-triggers events.
9
+ Gate both publishing and subscriber mounting behind rovo_chat_custom_skill_actions, and export
10
+ CUSTOM_SKILL_DELETED_EVENT for shared usage.
11
+
12
+ Update Studio Relay connections directly and retain deletion markers to prevent delayed search or
13
+ pagination responses from restoring removed skills. Show generic deletion errors without internal
14
+ identifiers.
15
+
16
+ Support an optional inherited cloudId in RovoSkillsConfigProvider so Chat invalidates its skill
17
+ library and insert-menu cache only for matching sites.
18
+
19
+ ## 11.8.0
20
+
21
+ ### Minor Changes
22
+
23
+ - [`3958e1faeb4f6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3958e1faeb4f6) -
24
+ Add `rovo-agent-draft-created` and `rovo-agent-published` rovo-triggers events, published behind
25
+ `sltns-1529-draft-agent-non-consequential` when Rovo agents are created or published from Smart
26
+ Create or the inline create-agent card.
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies
31
+
3
32
  ## 11.7.0
4
33
 
5
34
  ### Minor Changes
package/dist/cjs/types.js CHANGED
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Topics = exports.JIRA_WORK_ITEMS_CREATING_EVENT = exports.JIRA_WORK_ITEMS_CREATE_FAILED_EVENT = exports.JIRA_WORK_ITEMS_CREATED_EVENT = exports.JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = exports.CONFLUENCE_CONTENT_FINALIZED_EVENT = void 0;
6
+ exports.Topics = exports.JIRA_WORK_ITEMS_CREATING_EVENT = exports.JIRA_WORK_ITEMS_CREATE_FAILED_EVENT = exports.JIRA_WORK_ITEMS_CREATED_EVENT = exports.JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = exports.CUSTOM_SKILL_DELETED_EVENT = exports.CONFLUENCE_CONTENT_FINALIZED_EVENT = void 0;
7
7
  var Topics = exports.Topics = {
8
8
  AI_MATE: 'ai-mate',
9
9
  AI_MATE_ACTIONS: 'ai-mate-actions',
@@ -12,6 +12,7 @@ var Topics = exports.Topics = {
12
12
  AI_MATE_AIFC: 'ai-mate-aifc',
13
13
  ROVO_REMIX_LAUNCH: 'rovo-remix-launch',
14
14
  ROVO_REMIX: 'rovo-remix',
15
+ ROVO_SKILLS: 'rovo-skills',
15
16
  AVP: 'avp'
16
17
  };
17
18
 
@@ -113,6 +114,22 @@ var Topics = exports.Topics = {
113
114
  * optimistically in the Relay store without refetching.
114
115
  */
115
116
 
117
+ /**
118
+ * Published once a Rovo agent draft has been created (e.g. by Smart Create or the inline
119
+ * create-agent card). Lets hosts such as the Studio Agents landing page add the draft to
120
+ * their cached lists without refetching.
121
+ */
122
+
123
+ /**
124
+ * Published once a Rovo agent has been published from a Rovo surface (e.g. the Smart Create
125
+ * modal or the inline create-agent card). Lets hosts such as the Studio Agents landing page
126
+ * move the agent into their published lists without refetching.
127
+ */
128
+
129
+ var CUSTOM_SKILL_DELETED_EVENT = exports.CUSTOM_SKILL_DELETED_EVENT = 'custom-skill-deleted';
130
+
131
+ /** Published only after a custom skill has been successfully deleted. */
132
+
116
133
  /**
117
134
  * Requests that the currently mounted in-context AIFC modal close.
118
135
  *
@@ -6,6 +6,7 @@ export const Topics = {
6
6
  AI_MATE_AIFC: 'ai-mate-aifc',
7
7
  ROVO_REMIX_LAUNCH: 'rovo-remix-launch',
8
8
  ROVO_REMIX: 'rovo-remix',
9
+ ROVO_SKILLS: 'rovo-skills',
9
10
  AVP: 'avp'
10
11
  };
11
12
 
@@ -107,6 +108,22 @@ export const Topics = {
107
108
  * optimistically in the Relay store without refetching.
108
109
  */
109
110
 
111
+ /**
112
+ * Published once a Rovo agent draft has been created (e.g. by Smart Create or the inline
113
+ * create-agent card). Lets hosts such as the Studio Agents landing page add the draft to
114
+ * their cached lists without refetching.
115
+ */
116
+
117
+ /**
118
+ * Published once a Rovo agent has been published from a Rovo surface (e.g. the Smart Create
119
+ * modal or the inline create-agent card). Lets hosts such as the Studio Agents landing page
120
+ * move the agent into their published lists without refetching.
121
+ */
122
+
123
+ export const CUSTOM_SKILL_DELETED_EVENT = 'custom-skill-deleted';
124
+
125
+ /** Published only after a custom skill has been successfully deleted. */
126
+
110
127
  /**
111
128
  * Requests that the currently mounted in-context AIFC modal close.
112
129
  *
package/dist/esm/types.js CHANGED
@@ -6,6 +6,7 @@ export var Topics = {
6
6
  AI_MATE_AIFC: 'ai-mate-aifc',
7
7
  ROVO_REMIX_LAUNCH: 'rovo-remix-launch',
8
8
  ROVO_REMIX: 'rovo-remix',
9
+ ROVO_SKILLS: 'rovo-skills',
9
10
  AVP: 'avp'
10
11
  };
11
12
 
@@ -107,6 +108,22 @@ export var Topics = {
107
108
  * optimistically in the Relay store without refetching.
108
109
  */
109
110
 
111
+ /**
112
+ * Published once a Rovo agent draft has been created (e.g. by Smart Create or the inline
113
+ * create-agent card). Lets hosts such as the Studio Agents landing page add the draft to
114
+ * their cached lists without refetching.
115
+ */
116
+
117
+ /**
118
+ * Published once a Rovo agent has been published from a Rovo surface (e.g. the Smart Create
119
+ * modal or the inline create-agent card). Lets hosts such as the Studio Agents landing page
120
+ * move the agent into their published lists without refetching.
121
+ */
122
+
123
+ export var CUSTOM_SKILL_DELETED_EVENT = 'custom-skill-deleted';
124
+
125
+ /** Published only after a custom skill has been successfully deleted. */
126
+
110
127
  /**
111
128
  * Requests that the currently mounted in-context AIFC modal close.
112
129
  *
@@ -13,6 +13,7 @@ export declare const Topics: {
13
13
  readonly AI_MATE_AIFC: 'ai-mate-aifc';
14
14
  readonly ROVO_REMIX_LAUNCH: 'rovo-remix-launch';
15
15
  readonly ROVO_REMIX: 'rovo-remix';
16
+ readonly ROVO_SKILLS: 'rovo-skills';
16
17
  readonly AVP: 'avp';
17
18
  };
18
19
  export type Topic = (typeof Topics)[keyof typeof Topics];
@@ -697,6 +698,32 @@ export type CustomSkillUpdatePayload = PayloadCore<'custom-skill-update', {
697
698
  type: string;
698
699
  }[];
699
700
  }>;
701
+ /**
702
+ * Published once a Rovo agent draft has been created (e.g. by Smart Create or the inline
703
+ * create-agent card). Lets hosts such as the Studio Agents landing page add the draft to
704
+ * their cached lists without refetching.
705
+ */
706
+ export type RovoAgentDraftCreatedPayload = PayloadCore<'rovo-agent-draft-created', {
707
+ agentAri: string;
708
+ cloudId: string;
709
+ }>;
710
+ /**
711
+ * Published once a Rovo agent has been published from a Rovo surface (e.g. the Smart Create
712
+ * modal or the inline create-agent card). Lets hosts such as the Studio Agents landing page
713
+ * move the agent into their published lists without refetching.
714
+ */
715
+ export type RovoAgentPublishedPayload = PayloadCore<'rovo-agent-published', {
716
+ agentAri: string;
717
+ cloudId: string;
718
+ }>;
719
+ export declare const CUSTOM_SKILL_DELETED_EVENT: 'custom-skill-deleted';
720
+ /** Published only after a custom skill has been successfully deleted. */
721
+ export type CustomSkillDeletedPayload = PayloadCore<typeof CUSTOM_SKILL_DELETED_EVENT, {
722
+ cloudId: string;
723
+ skillAri: string;
724
+ }> & {
725
+ openChat: false;
726
+ };
700
727
  export type RecommendedSpacesSelectedPayload = PayloadCore<'recommended-spaces-selected'>;
701
728
  export type RecommendedSpacesFirstTimeSelectedPayload = PayloadCore<'recommended-spaces-first-time-selected'>;
702
729
  export type SmartlinksSubscriptionChangedPayload = PayloadCore<'smartlinks-subscription-changed'> & {
@@ -711,7 +738,7 @@ export type SmartlinksSubscriptionChangedPayload = PayloadCore<'smartlinks-subsc
711
738
  * is expected to be open at a time.
712
739
  */
713
740
  export type CloseInContextAifcModalPayload = PayloadCore<'close-in-context-aifc-modal'>;
714
- export type Payload = MessageSendPayload | ChatClosePayload | CloseInContextAifcModalPayload | SmartCreationModalOpenPayload | ChatNewPayload | InsightsOpenInChatPayload | InsightsChatExitedPayload | ChatDraftPayload | ChatSmartLink3PPostAuthLaunchPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | SmartlinksSubscriptionChangedPayload | OpenBrowseAgentSidebarPayload | OpenRovoRemixSidebarPayload | UpdateRovoRemixPresetPayload | SubmitRovoRemixPayload | RovoRemixHandoffFailedPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | JiraCreateContextPayload | ArtifactContextPayload | JiraInlineAgentCreationAgentAssignedPayload | JiraWorkItemsCreatingPayload | JiraWorkItemsCreatedPayload | JiraWorkItemsCreateFailedPayload | DatabaseContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | InsertSkillPayload | SelectActionPayload | AddChartToDashboardPayload | GenericExternalActionErrorPayload | OpenChatDebugModalPayload | OpenChatFeedbackModalPayload | JsmJourneyBuilderActionsPayload | StudioAutomationBuildUpdatePayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload | SolutionArchitectAgentActivationFlowStartedPayload | SolutionArchitectAgentActivationFlowStoppedPayload | UpdateAgentConfigurationPayload | StudioLandingPageRedirectPayload | UploadAndInsertMediaPayload | SmartLinksContextPayload | SpaceSelectedPayload | SpaceDeselectedPayload | RecommendedSpacesSelectedPayload | RecommendedSpacesFirstTimeSelectedPayload | CustomSkillUpdatePayload | TaskPlanConfirmedPayload | TaskAskQuestionRenderedPayload | TaskPlanRenderedPayload | TaskSkipAllQuestionsPayload | TaskCancelPlanPayload | TaskAskQuestionConfirmedPayload | TaskModifyPlanRequestedPayload | TaskModifyPlanSubmittedPayload | ConfluenceContentFinalizedPayload;
741
+ export type Payload = MessageSendPayload | ChatClosePayload | CloseInContextAifcModalPayload | SmartCreationModalOpenPayload | ChatNewPayload | InsightsOpenInChatPayload | InsightsChatExitedPayload | ChatDraftPayload | ChatSmartLink3PPostAuthLaunchPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | SmartlinksSubscriptionChangedPayload | OpenBrowseAgentSidebarPayload | OpenRovoRemixSidebarPayload | UpdateRovoRemixPresetPayload | SubmitRovoRemixPayload | RovoRemixHandoffFailedPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | JiraCreateContextPayload | ArtifactContextPayload | JiraInlineAgentCreationAgentAssignedPayload | JiraWorkItemsCreatingPayload | JiraWorkItemsCreatedPayload | JiraWorkItemsCreateFailedPayload | DatabaseContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | InsertSkillPayload | SelectActionPayload | AddChartToDashboardPayload | GenericExternalActionErrorPayload | OpenChatDebugModalPayload | OpenChatFeedbackModalPayload | JsmJourneyBuilderActionsPayload | StudioAutomationBuildUpdatePayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload | SolutionArchitectAgentActivationFlowStartedPayload | SolutionArchitectAgentActivationFlowStoppedPayload | UpdateAgentConfigurationPayload | StudioLandingPageRedirectPayload | UploadAndInsertMediaPayload | SmartLinksContextPayload | SpaceSelectedPayload | SpaceDeselectedPayload | RecommendedSpacesSelectedPayload | RecommendedSpacesFirstTimeSelectedPayload | CustomSkillUpdatePayload | RovoAgentDraftCreatedPayload | RovoAgentPublishedPayload | CustomSkillDeletedPayload | TaskPlanConfirmedPayload | TaskAskQuestionRenderedPayload | TaskPlanRenderedPayload | TaskSkipAllQuestionsPayload | TaskCancelPlanPayload | TaskAskQuestionConfirmedPayload | TaskModifyPlanRequestedPayload | TaskModifyPlanSubmittedPayload | ConfluenceContentFinalizedPayload;
715
742
  export type TaskPlanConfirmedPayload = PayloadCore<'task-plan-confirmed', {
716
743
  conversationId: string;
717
744
  planTitle: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "11.7.0",
3
+ "version": "11.9.0",
4
4
  "description": "Provides various trigger events to drive Rovo Chat functionality, such as a publish-subscribe and URL parameter hooks",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "publishConfig": {
@@ -9,7 +9,8 @@
9
9
  "atlassian": {
10
10
  "website": {
11
11
  "tags": [
12
- "platform-labs"
12
+ "platform-labs",
13
+ "rovo-components"
13
14
  ]
14
15
  },
15
16
  "react-compiler": {