@atlaskit/rovo-triggers 9.4.0 → 9.6.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
+ ## 9.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`b6919a254df4f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b6919a254df4f) -
8
+ Wire skill selection from the skills modal directly into the chat prompt input.
9
+
10
+ Clicking a skill in the "See All Skills" modal now inserts a skill chip at the cursor position in
11
+ the chat input, instead of toggling selection. Adds `InsertSkillPayload` to rovo-triggers,
12
+ `isPressable` to `SkillCard`, `onSkillClick` to `SkillsList`/`AgentStudioSkills`, and handles the
13
+ new pubsub event in `ChatInputInternal`.
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
19
+ ## 9.5.0
20
+
21
+ ### Minor Changes
22
+
23
+ - [`c8c0516c05f0e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c8c0516c05f0e) -
24
+ Reflect chat-confirmed custom-skill updates on the Studio skill view/edit page without refetching
25
+ (behind studio_sync_custom_skill_chat_update). Adds a custom-skill-update rovo-trigger and
26
+ publishes it from the Rovo chat UpdateCustomSkillTool action.
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies
31
+
3
32
  ## 9.4.0
4
33
 
5
34
  ### Minor Changes
package/compass.yml CHANGED
@@ -1,16 +1,19 @@
1
1
  configVersion: 1
2
- id: 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/ca5b6629-85fe-442c-8946-01fc4e33a3d4'
2
+ id: ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/ca5b6629-85fe-442c-8946-01fc4e33a3d4
3
3
  name: platform/conversation-assistant
4
4
  description: rovo-chat-fe
5
- ownerId: 'ari:cloud:identity::team/14c97034-d86b-45c9-8a6e-872e0cbbd69b'
5
+ ownerId: ari:cloud:identity::team/14c97034-d86b-45c9-8a6e-872e0cbbd69b # AI Mate Frontend
6
6
  typeId: OTHER
7
7
  fields:
8
8
  tier: 3
9
9
  lifecycle: Active
10
+ isMonorepoProject: true
10
11
  labels:
11
12
  - ai-mate
12
13
  - rovo-chat-fe
13
14
  - conversation-assistant
15
+ - platform-code
16
+ - platform-afm
14
17
  customFields:
15
18
  - name: Department
16
19
  type: text
@@ -27,13 +30,19 @@ customFields:
27
30
  - name: Trusted Reviewer Teams
28
31
  type: text
29
32
  value: ari:cloud:identity::team/7cfec967-4cef-4e5d-882a-9458a150a2df
33
+ - name: Technical Owner
34
+ type: user
35
+ value: ari:cloud:identity::user/557057:39edaad5-841d-4699-ac7c-527acd6a72ec # Peter Obara
30
36
  links:
31
37
  - name: Root Repository
32
38
  type: REPOSITORY
33
39
  url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master
34
40
  - name: Where to log bugs with template
35
41
  type: PROJECT
36
- url: 'https://product-fabric.atlassian.net/jira/software/projects/ROVOFE/boards/5135'
42
+ url: https://product-fabric.atlassian.net/jira/software/projects/ROVOFE/boards/5135
37
43
  - name: Slack Channel
38
44
  type: CHAT_CHANNEL
39
- url: 'https://atlassian.enterprise.slack.com/archives/C0677M19GU9'
45
+ url: https://atlassian.enterprise.slack.com/archives/C0677M19GU9 # #ai-mate-frontend
46
+ - name: Rovo Triggers
47
+ type: REPOSITORY
48
+ url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/ai-mate/rovo-triggers
package/dist/cjs/types.js CHANGED
@@ -69,6 +69,8 @@ var Topics = exports.Topics = {
69
69
  * - Supports multiple card types (Jira, Confluence, Trello, etc.)
70
70
  */
71
71
 
72
+ /** Inserts a skill chip into the chat input at the current cursor position. */
73
+
72
74
  /** Selects a conversation action by ID
73
75
  * - Used to programmatically open a specific action in the conversation actions list
74
76
  * - The action screen must be already open, and the actions list populated
@@ -89,6 +91,13 @@ var Topics = exports.Topics = {
89
91
 
90
92
  /** Published by the consumer hook to notify the publisher whether it should fetch SmartLinks. */
91
93
 
94
+ /**
95
+ * Published by the Rovo chat custom-skill update action once the user confirms an
96
+ * `UpdateCustomSkillTool` action. Carries the confirmed skill content so the open
97
+ * Studio custom-skill view/edit page (matched by `skillAri`) can reflect the change
98
+ * optimistically in the Relay store without refetching.
99
+ */
100
+
92
101
  var JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = exports.JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = 'jira-inline-agent-creation-agent-assigned';
93
102
  /**
94
103
  * Published right before the `create-work-items` skill calls the bulk-create API, carrying the draft
@@ -63,6 +63,8 @@ export const Topics = {
63
63
  * - Supports multiple card types (Jira, Confluence, Trello, etc.)
64
64
  */
65
65
 
66
+ /** Inserts a skill chip into the chat input at the current cursor position. */
67
+
66
68
  /** Selects a conversation action by ID
67
69
  * - Used to programmatically open a specific action in the conversation actions list
68
70
  * - The action screen must be already open, and the actions list populated
@@ -83,6 +85,13 @@ export const Topics = {
83
85
 
84
86
  /** Published by the consumer hook to notify the publisher whether it should fetch SmartLinks. */
85
87
 
88
+ /**
89
+ * Published by the Rovo chat custom-skill update action once the user confirms an
90
+ * `UpdateCustomSkillTool` action. Carries the confirmed skill content so the open
91
+ * Studio custom-skill view/edit page (matched by `skillAri`) can reflect the change
92
+ * optimistically in the Relay store without refetching.
93
+ */
94
+
86
95
  export const JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = 'jira-inline-agent-creation-agent-assigned';
87
96
  /**
88
97
  * Published right before the `create-work-items` skill calls the bulk-create API, carrying the draft
package/dist/esm/types.js CHANGED
@@ -63,6 +63,8 @@ export var Topics = {
63
63
  * - Supports multiple card types (Jira, Confluence, Trello, etc.)
64
64
  */
65
65
 
66
+ /** Inserts a skill chip into the chat input at the current cursor position. */
67
+
66
68
  /** Selects a conversation action by ID
67
69
  * - Used to programmatically open a specific action in the conversation actions list
68
70
  * - The action screen must be already open, and the actions list populated
@@ -83,6 +85,13 @@ export var Topics = {
83
85
 
84
86
  /** Published by the consumer hook to notify the publisher whether it should fetch SmartLinks. */
85
87
 
88
+ /**
89
+ * Published by the Rovo chat custom-skill update action once the user confirms an
90
+ * `UpdateCustomSkillTool` action. Carries the confirmed skill content so the open
91
+ * Studio custom-skill view/edit page (matched by `skillAri`) can reflect the change
92
+ * optimistically in the Relay store without refetching.
93
+ */
94
+
86
95
  export var JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = 'jira-inline-agent-creation-agent-assigned';
87
96
  /**
88
97
  * Published right before the `create-work-items` skill calls the bulk-create API, carrying the draft
@@ -354,6 +354,19 @@ export type InsertPromptPayload = PayloadCore<'insert-prompt', {
354
354
  export type InsertUrlsPayload = PayloadCore<'insert-urls-into-prompt-input', {
355
355
  urls: string[];
356
356
  }>;
357
+ /** Inserts a skill chip into the chat input at the current cursor position. */
358
+ export type InsertSkillPayload = PayloadCore<'insert-skill-into-prompt-input', {
359
+ skill: {
360
+ id: string;
361
+ name: string;
362
+ slug: string;
363
+ description?: string;
364
+ product?: string;
365
+ iconName?: string;
366
+ color?: string;
367
+ };
368
+ skillSelectionSource?: string;
369
+ }>;
357
370
  /** Selects a conversation action by ID
358
371
  * - Used to programmatically open a specific action in the conversation actions list
359
372
  * - The action screen must be already open, and the actions list populated
@@ -543,13 +556,31 @@ export type SpaceSelectedPayload = PayloadCore<'space-selected', {
543
556
  description?: string;
544
557
  }>;
545
558
  export type SpaceDeselectedPayload = PayloadCore<'space-deselected'>;
559
+ /**
560
+ * Published by the Rovo chat custom-skill update action once the user confirms an
561
+ * `UpdateCustomSkillTool` action. Carries the confirmed skill content so the open
562
+ * Studio custom-skill view/edit page (matched by `skillAri`) can reflect the change
563
+ * optimistically in the Relay store without refetching.
564
+ */
565
+ export type CustomSkillUpdatePayload = PayloadCore<'custom-skill-update', {
566
+ skillAri: string;
567
+ name: string;
568
+ displayName: string;
569
+ description: string;
570
+ instructions: string;
571
+ tools: {
572
+ id: string;
573
+ source: string;
574
+ type: string;
575
+ }[];
576
+ }>;
546
577
  export type RecommendedSpacesSelectedPayload = PayloadCore<'recommended-spaces-selected'>;
547
578
  export type SmartlinksSubscriptionChangedPayload = PayloadCore<'smartlinks-subscription-changed'> & {
548
579
  /** Never opens chat — internal signal only. */
549
580
  openChat: false;
550
581
  isActive: boolean;
551
582
  };
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;
583
+ 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 | InsertSkillPayload | 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
584
  export type TaskPlanConfirmedPayload = PayloadCore<'task-plan-confirmed', {
554
585
  conversationId: string;
555
586
  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.6.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": {
@@ -41,7 +41,7 @@
41
41
  "@af/integration-testing": "workspace:^",
42
42
  "@af/visual-regression": "workspace:^",
43
43
  "@atlaskit/css": "^1.0.0",
44
- "@atlaskit/primitives": "^20.2.0",
44
+ "@atlaskit/primitives": "^20.3.0",
45
45
  "@atlaskit/ssr": "workspace:^",
46
46
  "@atlassian/a11y-jest-testing": "^0.13.0",
47
47
  "@atlassian/feature-flags-test-utils": "^1.1.0",