@atlaskit/rovo-triggers 4.6.0 → 4.8.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,24 @@
1
1
  # @atlaskit/rovo-triggers
2
2
 
3
+ ## 4.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`4c2c97e4d5162`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4c2c97e4d5162) - -
8
+ Add a message action component for updating a solution draft agent
9
+ - Add a new type of pubsub event that refreshes the agent overview based on updated agent
10
+ information
11
+ - Use a specific minion alias for the agent builder when talking to Rovo Chat within the agent
12
+ routes in Studio V2.
13
+
14
+ ## 4.7.0
15
+
16
+ ### Minor Changes
17
+
18
+ - [`99f954d642b19`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/99f954d642b19) -
19
+ [ux] Update Rovo chat pubsub `chat-new` event to also accept prompt placeholders. Consuming this
20
+ in Skills Directory to always open a new Solutions Architect chat with a prefilled prompt
21
+
3
22
  ## 4.6.0
4
23
 
5
24
  ### Minor Changes
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { PayloadCore } from "../../../types";
2
+ export type SolutionDraftAgentUpdatePayload = PayloadCore<'solution-draft-agent-update'> & {
3
+ data: {
4
+ buildId: string;
5
+ draftContent: string;
6
+ };
7
+ };
@@ -1,4 +1,5 @@
1
1
  import type { DocNode } from '@atlaskit/adf-schema';
2
+ import type { SolutionDraftAgentUpdatePayload } from './common/types/agent';
2
3
  import type { SolutionArchitectAgentActivationPayload, SolutionArchitectHandoffPayload, SolutionPlanStateUpdatePayload } from './common/types/solution-architect';
3
4
  import type { ChatContextPayload } from './common/utils/chat-context';
4
5
  export declare const Topics: {
@@ -26,6 +27,9 @@ type TargetAgentParam = {
26
27
  agentId?: never;
27
28
  agentExternalConfigReference: string;
28
29
  };
30
+ type PlaceholderParam = {
31
+ placeholderType?: 'person' | 'link' | 'generic';
32
+ };
29
33
  export type ChatNewPayload = PayloadCore<'chat-new', {
30
34
  name?: string;
31
35
  dialogues: Array<{
@@ -39,11 +43,12 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
39
43
  };
40
44
  }>;
41
45
  prompt?: string | DocNode;
46
+ isPromptPlaceholder?: boolean;
42
47
  files?: UploadedFile[];
43
48
  contentContext?: 'staging-area' | 'global';
44
49
  sourceId?: string;
45
50
  minionAlias?: string;
46
- } & Partial<TargetAgentParam>>;
51
+ } & Partial<TargetAgentParam> & PlaceholderParam>;
47
52
  export type EditorContextPayloadData = {
48
53
  document: {
49
54
  type: 'text/markdown' | 'text/adf';
@@ -122,11 +127,7 @@ export type ForgeAppAuthFailure = PayloadCore<'forge-auth-failure', {
122
127
  */
123
128
  export type InsertPromptPayload = PayloadCore<'insert-prompt', {
124
129
  prompt: string;
125
- /**
126
- * Overrides the default placeholder type
127
- */
128
- placeholderType?: 'person' | 'link' | 'generic';
129
- }>;
130
+ } & PlaceholderParam>;
130
131
  /** Inserts URLs as inline nodes into the chat input
131
132
  * - URLs are deduplicated against existing content
132
133
  * - Formatted as inline card nodes in the editor
@@ -254,7 +255,7 @@ export type DashboardInsightsActionsPayloadData = {
254
255
  content: string;
255
256
  } | undefined;
256
257
  export type SetChatContextPayload = PayloadCore<'set-message-context', ChatContextPayload>;
257
- export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | GenericExternalActionErrorPayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionArchitectAgentActivationPayload;
258
+ export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | GenericExternalActionErrorPayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload;
258
259
  export type Callback = (payload: Payload) => void;
259
260
  export type TopicEvents = {
260
261
  [key in Topic]?: Array<{
@@ -0,0 +1,7 @@
1
+ import type { PayloadCore } from "../../../types";
2
+ export type SolutionDraftAgentUpdatePayload = PayloadCore<'solution-draft-agent-update'> & {
3
+ data: {
4
+ buildId: string;
5
+ draftContent: string;
6
+ };
7
+ };
@@ -1,4 +1,5 @@
1
1
  import type { DocNode } from '@atlaskit/adf-schema';
2
+ import type { SolutionDraftAgentUpdatePayload } from './common/types/agent';
2
3
  import type { SolutionArchitectAgentActivationPayload, SolutionArchitectHandoffPayload, SolutionPlanStateUpdatePayload } from './common/types/solution-architect';
3
4
  import type { ChatContextPayload } from './common/utils/chat-context';
4
5
  export declare const Topics: {
@@ -26,6 +27,9 @@ type TargetAgentParam = {
26
27
  agentId?: never;
27
28
  agentExternalConfigReference: string;
28
29
  };
30
+ type PlaceholderParam = {
31
+ placeholderType?: 'person' | 'link' | 'generic';
32
+ };
29
33
  export type ChatNewPayload = PayloadCore<'chat-new', {
30
34
  name?: string;
31
35
  dialogues: Array<{
@@ -39,11 +43,12 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
39
43
  };
40
44
  }>;
41
45
  prompt?: string | DocNode;
46
+ isPromptPlaceholder?: boolean;
42
47
  files?: UploadedFile[];
43
48
  contentContext?: 'staging-area' | 'global';
44
49
  sourceId?: string;
45
50
  minionAlias?: string;
46
- } & Partial<TargetAgentParam>>;
51
+ } & Partial<TargetAgentParam> & PlaceholderParam>;
47
52
  export type EditorContextPayloadData = {
48
53
  document: {
49
54
  type: 'text/markdown' | 'text/adf';
@@ -122,11 +127,7 @@ export type ForgeAppAuthFailure = PayloadCore<'forge-auth-failure', {
122
127
  */
123
128
  export type InsertPromptPayload = PayloadCore<'insert-prompt', {
124
129
  prompt: string;
125
- /**
126
- * Overrides the default placeholder type
127
- */
128
- placeholderType?: 'person' | 'link' | 'generic';
129
- }>;
130
+ } & PlaceholderParam>;
130
131
  /** Inserts URLs as inline nodes into the chat input
131
132
  * - URLs are deduplicated against existing content
132
133
  * - Formatted as inline card nodes in the editor
@@ -254,7 +255,7 @@ export type DashboardInsightsActionsPayloadData = {
254
255
  content: string;
255
256
  } | undefined;
256
257
  export type SetChatContextPayload = PayloadCore<'set-message-context', ChatContextPayload>;
257
- export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | GenericExternalActionErrorPayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionArchitectAgentActivationPayload;
258
+ export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | GenericExternalActionErrorPayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload;
258
259
  export type Callback = (payload: Payload) => void;
259
260
  export type TopicEvents = {
260
261
  [key in Topic]?: Array<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "4.6.0",
3
+ "version": "4.8.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": {