@atlaskit/rovo-triggers 4.5.0 → 4.7.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 +15 -0
- package/dist/types/common/types/solution-architect/index.d.ts +3 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types.d.ts +8 -8
- package/dist/types-ts4.5/common/types/solution-architect/index.d.ts +3 -0
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +8 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/rovo-triggers
|
|
2
2
|
|
|
3
|
+
## 4.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`99f954d642b19`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/99f954d642b19) -
|
|
8
|
+
[ux] Update Rovo chat pubsub `chat-new` event to also accept prompt placeholders. Consuming this
|
|
9
|
+
in Skills Directory to always open a new Solutions Architect chat with a prefilled prompt
|
|
10
|
+
|
|
11
|
+
## 4.6.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`997e4c23170b2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/997e4c23170b2) -
|
|
16
|
+
[ux] Support activating agent from chat plan card
|
|
17
|
+
|
|
3
18
|
## 4.5.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
@@ -18,4 +18,7 @@ export type SolutionArchitectHandoffPayload = PayloadCore<'solution-architect-ha
|
|
|
18
18
|
data: NonAppHandoffPayload | AppHandoffPayload;
|
|
19
19
|
};
|
|
20
20
|
export type SolutionPlanStateUpdatePayload = PayloadCore<'solution-plan-state-updated'>;
|
|
21
|
+
export type SolutionArchitectAgentActivationPayload = PayloadCore<'solution-architect-agent-activation', {
|
|
22
|
+
draftBuildId: string;
|
|
23
|
+
}>;
|
|
21
24
|
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { usePublish, useSubscribe, useSubscribeAll, Subscriber } from './main';
|
|
2
2
|
export type { Payload, Callback, Topic, WorkflowContextPayloadData, EditorContextPayloadData, WhiteboardContextPayloadData, BrowserContextPayloadData, DatabaseContextPayloadData, AddStatusRovoPayload, UpdateStatusRovoPayload, DeleteStatusRovoPayload, AddNewTransitionRovoPayload, UpdateTransitionRovoPayload, DeleteTransitionRovoPayload, AddRuleRovoPayload, UpdateRuleRovoPayload, DeleteRuleRovoPayload, JiraWorkflowWizardAction, DashboardInsightsActionsPayload, DashboardInsightsActionsPayloadData, } from './types';
|
|
3
|
-
export type { SolutionArchitectHandoffPayload, NonAppHandoffPayload, AppHandoffPayload, } from './common/types/solution-architect';
|
|
3
|
+
export type { SolutionArchitectHandoffPayload, NonAppHandoffPayload, AppHandoffPayload, SolutionArchitectAgentActivationPayload, } from './common/types/solution-architect';
|
|
4
4
|
export { getRovoParams, updatePageRovoParams, addRovoParamsToUrl, assertOnlySpecificFieldsDefined, encodeRovoParams, getListOfRovoParams, } from './common/utils/params';
|
|
5
5
|
export type { RovoChatParams, RovoChatPathway } from './common/utils/params/types';
|
|
6
6
|
export { useRovoPostMessageToPubsub, RovoPostMessagePubsubListener, } from './common/utils/post-message-to-pubsub';
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DocNode } from '@atlaskit/adf-schema';
|
|
2
|
-
import type { SolutionArchitectHandoffPayload, SolutionPlanStateUpdatePayload } from './common/types/solution-architect';
|
|
2
|
+
import type { SolutionArchitectAgentActivationPayload, SolutionArchitectHandoffPayload, SolutionPlanStateUpdatePayload } from './common/types/solution-architect';
|
|
3
3
|
import type { ChatContextPayload } from './common/utils/chat-context';
|
|
4
4
|
export declare const Topics: {
|
|
5
5
|
readonly AI_MATE: "ai-mate";
|
|
@@ -26,6 +26,9 @@ type TargetAgentParam = {
|
|
|
26
26
|
agentId?: never;
|
|
27
27
|
agentExternalConfigReference: string;
|
|
28
28
|
};
|
|
29
|
+
type PlaceholderParam = {
|
|
30
|
+
placeholderType?: 'person' | 'link' | 'generic';
|
|
31
|
+
};
|
|
29
32
|
export type ChatNewPayload = PayloadCore<'chat-new', {
|
|
30
33
|
name?: string;
|
|
31
34
|
dialogues: Array<{
|
|
@@ -39,11 +42,12 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
|
|
|
39
42
|
};
|
|
40
43
|
}>;
|
|
41
44
|
prompt?: string | DocNode;
|
|
45
|
+
isPromptPlaceholder?: boolean;
|
|
42
46
|
files?: UploadedFile[];
|
|
43
47
|
contentContext?: 'staging-area' | 'global';
|
|
44
48
|
sourceId?: string;
|
|
45
49
|
minionAlias?: string;
|
|
46
|
-
} & Partial<TargetAgentParam
|
|
50
|
+
} & Partial<TargetAgentParam> & PlaceholderParam>;
|
|
47
51
|
export type EditorContextPayloadData = {
|
|
48
52
|
document: {
|
|
49
53
|
type: 'text/markdown' | 'text/adf';
|
|
@@ -122,11 +126,7 @@ export type ForgeAppAuthFailure = PayloadCore<'forge-auth-failure', {
|
|
|
122
126
|
*/
|
|
123
127
|
export type InsertPromptPayload = PayloadCore<'insert-prompt', {
|
|
124
128
|
prompt: string;
|
|
125
|
-
|
|
126
|
-
* Overrides the default placeholder type
|
|
127
|
-
*/
|
|
128
|
-
placeholderType?: 'person' | 'link' | 'generic';
|
|
129
|
-
}>;
|
|
129
|
+
} & PlaceholderParam>;
|
|
130
130
|
/** Inserts URLs as inline nodes into the chat input
|
|
131
131
|
* - URLs are deduplicated against existing content
|
|
132
132
|
* - Formatted as inline card nodes in the editor
|
|
@@ -254,7 +254,7 @@ export type DashboardInsightsActionsPayloadData = {
|
|
|
254
254
|
content: string;
|
|
255
255
|
} | undefined;
|
|
256
256
|
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;
|
|
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
258
|
export type Callback = (payload: Payload) => void;
|
|
259
259
|
export type TopicEvents = {
|
|
260
260
|
[key in Topic]?: Array<{
|
|
@@ -18,4 +18,7 @@ export type SolutionArchitectHandoffPayload = PayloadCore<'solution-architect-ha
|
|
|
18
18
|
data: NonAppHandoffPayload | AppHandoffPayload;
|
|
19
19
|
};
|
|
20
20
|
export type SolutionPlanStateUpdatePayload = PayloadCore<'solution-plan-state-updated'>;
|
|
21
|
+
export type SolutionArchitectAgentActivationPayload = PayloadCore<'solution-architect-agent-activation', {
|
|
22
|
+
draftBuildId: string;
|
|
23
|
+
}>;
|
|
21
24
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { usePublish, useSubscribe, useSubscribeAll, Subscriber } from './main';
|
|
2
2
|
export type { Payload, Callback, Topic, WorkflowContextPayloadData, EditorContextPayloadData, WhiteboardContextPayloadData, BrowserContextPayloadData, DatabaseContextPayloadData, AddStatusRovoPayload, UpdateStatusRovoPayload, DeleteStatusRovoPayload, AddNewTransitionRovoPayload, UpdateTransitionRovoPayload, DeleteTransitionRovoPayload, AddRuleRovoPayload, UpdateRuleRovoPayload, DeleteRuleRovoPayload, JiraWorkflowWizardAction, DashboardInsightsActionsPayload, DashboardInsightsActionsPayloadData, } from './types';
|
|
3
|
-
export type { SolutionArchitectHandoffPayload, NonAppHandoffPayload, AppHandoffPayload, } from './common/types/solution-architect';
|
|
3
|
+
export type { SolutionArchitectHandoffPayload, NonAppHandoffPayload, AppHandoffPayload, SolutionArchitectAgentActivationPayload, } from './common/types/solution-architect';
|
|
4
4
|
export { getRovoParams, updatePageRovoParams, addRovoParamsToUrl, assertOnlySpecificFieldsDefined, encodeRovoParams, getListOfRovoParams, } from './common/utils/params';
|
|
5
5
|
export type { RovoChatParams, RovoChatPathway } from './common/utils/params/types';
|
|
6
6
|
export { useRovoPostMessageToPubsub, RovoPostMessagePubsubListener, } from './common/utils/post-message-to-pubsub';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DocNode } from '@atlaskit/adf-schema';
|
|
2
|
-
import type { SolutionArchitectHandoffPayload, SolutionPlanStateUpdatePayload } from './common/types/solution-architect';
|
|
2
|
+
import type { SolutionArchitectAgentActivationPayload, SolutionArchitectHandoffPayload, SolutionPlanStateUpdatePayload } from './common/types/solution-architect';
|
|
3
3
|
import type { ChatContextPayload } from './common/utils/chat-context';
|
|
4
4
|
export declare const Topics: {
|
|
5
5
|
readonly AI_MATE: "ai-mate";
|
|
@@ -26,6 +26,9 @@ type TargetAgentParam = {
|
|
|
26
26
|
agentId?: never;
|
|
27
27
|
agentExternalConfigReference: string;
|
|
28
28
|
};
|
|
29
|
+
type PlaceholderParam = {
|
|
30
|
+
placeholderType?: 'person' | 'link' | 'generic';
|
|
31
|
+
};
|
|
29
32
|
export type ChatNewPayload = PayloadCore<'chat-new', {
|
|
30
33
|
name?: string;
|
|
31
34
|
dialogues: Array<{
|
|
@@ -39,11 +42,12 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
|
|
|
39
42
|
};
|
|
40
43
|
}>;
|
|
41
44
|
prompt?: string | DocNode;
|
|
45
|
+
isPromptPlaceholder?: boolean;
|
|
42
46
|
files?: UploadedFile[];
|
|
43
47
|
contentContext?: 'staging-area' | 'global';
|
|
44
48
|
sourceId?: string;
|
|
45
49
|
minionAlias?: string;
|
|
46
|
-
} & Partial<TargetAgentParam
|
|
50
|
+
} & Partial<TargetAgentParam> & PlaceholderParam>;
|
|
47
51
|
export type EditorContextPayloadData = {
|
|
48
52
|
document: {
|
|
49
53
|
type: 'text/markdown' | 'text/adf';
|
|
@@ -122,11 +126,7 @@ export type ForgeAppAuthFailure = PayloadCore<'forge-auth-failure', {
|
|
|
122
126
|
*/
|
|
123
127
|
export type InsertPromptPayload = PayloadCore<'insert-prompt', {
|
|
124
128
|
prompt: string;
|
|
125
|
-
|
|
126
|
-
* Overrides the default placeholder type
|
|
127
|
-
*/
|
|
128
|
-
placeholderType?: 'person' | 'link' | 'generic';
|
|
129
|
-
}>;
|
|
129
|
+
} & PlaceholderParam>;
|
|
130
130
|
/** Inserts URLs as inline nodes into the chat input
|
|
131
131
|
* - URLs are deduplicated against existing content
|
|
132
132
|
* - Formatted as inline card nodes in the editor
|
|
@@ -254,7 +254,7 @@ export type DashboardInsightsActionsPayloadData = {
|
|
|
254
254
|
content: string;
|
|
255
255
|
} | undefined;
|
|
256
256
|
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;
|
|
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
258
|
export type Callback = (payload: Payload) => void;
|
|
259
259
|
export type TopicEvents = {
|
|
260
260
|
[key in Topic]?: Array<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-triggers",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.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": {
|