@atlaskit/rovo-triggers 9.4.0 → 9.5.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,18 @@
1
1
  # @atlaskit/rovo-triggers
2
2
 
3
+ ## 9.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`c8c0516c05f0e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c8c0516c05f0e) -
8
+ Reflect chat-confirmed custom-skill updates on the Studio skill view/edit page without refetching
9
+ (behind studio_sync_custom_skill_chat_update). Adds a custom-skill-update rovo-trigger and
10
+ publishes it from the Rovo chat UpdateCustomSkillTool action.
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 9.4.0
4
17
 
5
18
  ### Minor Changes
package/dist/cjs/types.js CHANGED
@@ -89,6 +89,13 @@ var Topics = exports.Topics = {
89
89
 
90
90
  /** Published by the consumer hook to notify the publisher whether it should fetch SmartLinks. */
91
91
 
92
+ /**
93
+ * Published by the Rovo chat custom-skill update action once the user confirms an
94
+ * `UpdateCustomSkillTool` action. Carries the confirmed skill content so the open
95
+ * Studio custom-skill view/edit page (matched by `skillAri`) can reflect the change
96
+ * optimistically in the Relay store without refetching.
97
+ */
98
+
92
99
  var JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = exports.JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = 'jira-inline-agent-creation-agent-assigned';
93
100
  /**
94
101
  * Published right before the `create-work-items` skill calls the bulk-create API, carrying the draft
@@ -83,6 +83,13 @@ export const Topics = {
83
83
 
84
84
  /** Published by the consumer hook to notify the publisher whether it should fetch SmartLinks. */
85
85
 
86
+ /**
87
+ * Published by the Rovo chat custom-skill update action once the user confirms an
88
+ * `UpdateCustomSkillTool` action. Carries the confirmed skill content so the open
89
+ * Studio custom-skill view/edit page (matched by `skillAri`) can reflect the change
90
+ * optimistically in the Relay store without refetching.
91
+ */
92
+
86
93
  export const JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = 'jira-inline-agent-creation-agent-assigned';
87
94
  /**
88
95
  * Published right before the `create-work-items` skill calls the bulk-create API, carrying the draft
package/dist/esm/types.js CHANGED
@@ -83,6 +83,13 @@ export var Topics = {
83
83
 
84
84
  /** Published by the consumer hook to notify the publisher whether it should fetch SmartLinks. */
85
85
 
86
+ /**
87
+ * Published by the Rovo chat custom-skill update action once the user confirms an
88
+ * `UpdateCustomSkillTool` action. Carries the confirmed skill content so the open
89
+ * Studio custom-skill view/edit page (matched by `skillAri`) can reflect the change
90
+ * optimistically in the Relay store without refetching.
91
+ */
92
+
86
93
  export var JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = 'jira-inline-agent-creation-agent-assigned';
87
94
  /**
88
95
  * Published right before the `create-work-items` skill calls the bulk-create API, carrying the draft
@@ -543,13 +543,31 @@ export type SpaceSelectedPayload = PayloadCore<'space-selected', {
543
543
  description?: string;
544
544
  }>;
545
545
  export type SpaceDeselectedPayload = PayloadCore<'space-deselected'>;
546
+ /**
547
+ * Published by the Rovo chat custom-skill update action once the user confirms an
548
+ * `UpdateCustomSkillTool` action. Carries the confirmed skill content so the open
549
+ * Studio custom-skill view/edit page (matched by `skillAri`) can reflect the change
550
+ * optimistically in the Relay store without refetching.
551
+ */
552
+ export type CustomSkillUpdatePayload = PayloadCore<'custom-skill-update', {
553
+ skillAri: string;
554
+ name: string;
555
+ displayName: string;
556
+ description: string;
557
+ instructions: string;
558
+ tools: {
559
+ id: string;
560
+ source: string;
561
+ type: string;
562
+ }[];
563
+ }>;
546
564
  export type RecommendedSpacesSelectedPayload = PayloadCore<'recommended-spaces-selected'>;
547
565
  export type SmartlinksSubscriptionChangedPayload = PayloadCore<'smartlinks-subscription-changed'> & {
548
566
  /** Never opens chat — internal signal only. */
549
567
  openChat: false;
550
568
  isActive: boolean;
551
569
  };
552
- export type Payload = MessageSendPayload | ChatClosePayload | SmartCreationModalOpenPayload | ChatNewPayload | InsightsOpenInChatPayload | InsightsChatExitedPayload | ChatDraftPayload | ChatSmartLink3PPostAuthLaunchPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | SmartlinksSubscriptionChangedPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | JiraCreateContextPayload | JiraInlineAgentCreationAgentAssignedPayload | JiraWorkItemsCreatingPayload | JiraWorkItemsCreatedPayload | JiraWorkItemsCreateFailedPayload | DatabaseContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | SelectActionPayload | AddChartToDashboardPayload | GenericExternalActionErrorPayload | OpenChatDebugModalPayload | OpenChatFeedbackModalPayload | JsmJourneyBuilderActionsPayload | StudioAutomationBuildUpdatePayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload | SolutionArchitectAgentActivationFlowStartedPayload | SolutionArchitectAgentActivationFlowStoppedPayload | UpdateAgentConfigurationPayload | StudioLandingPageRedirectPayload | UploadAndInsertMediaPayload | SmartLinksContextPayload | SpaceSelectedPayload | SpaceDeselectedPayload | RecommendedSpacesSelectedPayload | TaskPlanConfirmedPayload | TaskAskQuestionRenderedPayload | TaskPlanRenderedPayload | TaskSkipAllQuestionsPayload | TaskCancelPlanPayload | TaskAskQuestionConfirmedPayload | TaskModifyPlanRequestedPayload | TaskModifyPlanSubmittedPayload;
570
+ export type Payload = MessageSendPayload | ChatClosePayload | SmartCreationModalOpenPayload | ChatNewPayload | InsightsOpenInChatPayload | InsightsChatExitedPayload | ChatDraftPayload | ChatSmartLink3PPostAuthLaunchPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | SmartlinksSubscriptionChangedPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | JiraCreateContextPayload | JiraInlineAgentCreationAgentAssignedPayload | JiraWorkItemsCreatingPayload | JiraWorkItemsCreatedPayload | JiraWorkItemsCreateFailedPayload | DatabaseContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | SelectActionPayload | AddChartToDashboardPayload | GenericExternalActionErrorPayload | OpenChatDebugModalPayload | OpenChatFeedbackModalPayload | JsmJourneyBuilderActionsPayload | StudioAutomationBuildUpdatePayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload | SolutionArchitectAgentActivationFlowStartedPayload | SolutionArchitectAgentActivationFlowStoppedPayload | UpdateAgentConfigurationPayload | StudioLandingPageRedirectPayload | UploadAndInsertMediaPayload | SmartLinksContextPayload | SpaceSelectedPayload | SpaceDeselectedPayload | RecommendedSpacesSelectedPayload | CustomSkillUpdatePayload | TaskPlanConfirmedPayload | TaskAskQuestionRenderedPayload | TaskPlanRenderedPayload | TaskSkipAllQuestionsPayload | TaskCancelPlanPayload | TaskAskQuestionConfirmedPayload | TaskModifyPlanRequestedPayload | TaskModifyPlanSubmittedPayload;
553
571
  export type TaskPlanConfirmedPayload = PayloadCore<'task-plan-confirmed', {
554
572
  conversationId: string;
555
573
  planTitle: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "9.4.0",
3
+ "version": "9.5.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": {