@atlaskit/rovo-triggers 9.3.1 → 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 +22 -0
- package/dist/cjs/types.js +24 -2
- package/dist/es2019/types.js +23 -1
- package/dist/esm/types.js +23 -1
- package/dist/types/types.d.ts +61 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
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
|
+
|
|
16
|
+
## 9.4.0
|
|
17
|
+
|
|
18
|
+
### Minor Changes
|
|
19
|
+
|
|
20
|
+
- [`46cbcf754d99c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/46cbcf754d99c) -
|
|
21
|
+
Publish `creating`/`created`/`failed` work item lifecycle events from the Rovo create-work-items
|
|
22
|
+
flow, behind the `jira_ai_create_work_items` feature gate, so subscribers can reconcile optimistic
|
|
23
|
+
rows with creation results.
|
|
24
|
+
|
|
3
25
|
## 9.3.1
|
|
4
26
|
|
|
5
27
|
### Patch 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_INLINE_AGENT_CREATION_AGENT_ASSIGNED_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 = void 0;
|
|
7
7
|
var Topics = exports.Topics = {
|
|
8
8
|
AI_MATE: 'ai-mate',
|
|
9
9
|
AI_MATE_ACTIONS: 'ai-mate-actions',
|
|
@@ -89,4 +89,26 @@ 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
|
-
|
|
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
|
+
|
|
99
|
+
var JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = exports.JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = 'jira-inline-agent-creation-agent-assigned';
|
|
100
|
+
/**
|
|
101
|
+
* Published right before the `create-work-items` skill calls the bulk-create API, carrying the draft
|
|
102
|
+
* work items the user submitted. Subscribers (e.g. the Jira list view) can use the draft fields to
|
|
103
|
+
* render optimistic rows immediately, ahead of the (potentially slow) create request. Correlate this
|
|
104
|
+
* batch with the follow-up {@link JIRA_WORK_ITEMS_CREATED_EVENT} / {@link JIRA_WORK_ITEMS_CREATE_FAILED_EVENT}
|
|
105
|
+
* via `invocationId`.
|
|
106
|
+
*/
|
|
107
|
+
var JIRA_WORK_ITEMS_CREATING_EVENT = exports.JIRA_WORK_ITEMS_CREATING_EVENT = 'jira-work-items-creating';
|
|
108
|
+
var JIRA_WORK_ITEMS_CREATED_EVENT = exports.JIRA_WORK_ITEMS_CREATED_EVENT = 'jira-work-items-created';
|
|
109
|
+
/**
|
|
110
|
+
* Published when the `create-work-items` skill fails to create the work items it announced via a
|
|
111
|
+
* {@link JIRA_WORK_ITEMS_CREATING_EVENT}. Subscribers use `invocationId` to revert any optimistic
|
|
112
|
+
* rows they rendered for that batch.
|
|
113
|
+
*/
|
|
114
|
+
var JIRA_WORK_ITEMS_CREATE_FAILED_EVENT = exports.JIRA_WORK_ITEMS_CREATE_FAILED_EVENT = 'jira-work-items-create-failed';
|
package/dist/es2019/types.js
CHANGED
|
@@ -83,4 +83,26 @@ export const Topics = {
|
|
|
83
83
|
|
|
84
84
|
/** Published by the consumer hook to notify the publisher whether it should fetch SmartLinks. */
|
|
85
85
|
|
|
86
|
-
|
|
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
|
+
|
|
93
|
+
export const JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = 'jira-inline-agent-creation-agent-assigned';
|
|
94
|
+
/**
|
|
95
|
+
* Published right before the `create-work-items` skill calls the bulk-create API, carrying the draft
|
|
96
|
+
* work items the user submitted. Subscribers (e.g. the Jira list view) can use the draft fields to
|
|
97
|
+
* render optimistic rows immediately, ahead of the (potentially slow) create request. Correlate this
|
|
98
|
+
* batch with the follow-up {@link JIRA_WORK_ITEMS_CREATED_EVENT} / {@link JIRA_WORK_ITEMS_CREATE_FAILED_EVENT}
|
|
99
|
+
* via `invocationId`.
|
|
100
|
+
*/
|
|
101
|
+
export const JIRA_WORK_ITEMS_CREATING_EVENT = 'jira-work-items-creating';
|
|
102
|
+
export const JIRA_WORK_ITEMS_CREATED_EVENT = 'jira-work-items-created';
|
|
103
|
+
/**
|
|
104
|
+
* Published when the `create-work-items` skill fails to create the work items it announced via a
|
|
105
|
+
* {@link JIRA_WORK_ITEMS_CREATING_EVENT}. Subscribers use `invocationId` to revert any optimistic
|
|
106
|
+
* rows they rendered for that batch.
|
|
107
|
+
*/
|
|
108
|
+
export const JIRA_WORK_ITEMS_CREATE_FAILED_EVENT = 'jira-work-items-create-failed';
|
package/dist/esm/types.js
CHANGED
|
@@ -83,4 +83,26 @@ export var Topics = {
|
|
|
83
83
|
|
|
84
84
|
/** Published by the consumer hook to notify the publisher whether it should fetch SmartLinks. */
|
|
85
85
|
|
|
86
|
-
|
|
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
|
+
|
|
93
|
+
export var JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = 'jira-inline-agent-creation-agent-assigned';
|
|
94
|
+
/**
|
|
95
|
+
* Published right before the `create-work-items` skill calls the bulk-create API, carrying the draft
|
|
96
|
+
* work items the user submitted. Subscribers (e.g. the Jira list view) can use the draft fields to
|
|
97
|
+
* render optimistic rows immediately, ahead of the (potentially slow) create request. Correlate this
|
|
98
|
+
* batch with the follow-up {@link JIRA_WORK_ITEMS_CREATED_EVENT} / {@link JIRA_WORK_ITEMS_CREATE_FAILED_EVENT}
|
|
99
|
+
* via `invocationId`.
|
|
100
|
+
*/
|
|
101
|
+
export var JIRA_WORK_ITEMS_CREATING_EVENT = 'jira-work-items-creating';
|
|
102
|
+
export var JIRA_WORK_ITEMS_CREATED_EVENT = 'jira-work-items-created';
|
|
103
|
+
/**
|
|
104
|
+
* Published when the `create-work-items` skill fails to create the work items it announced via a
|
|
105
|
+
* {@link JIRA_WORK_ITEMS_CREATING_EVENT}. Subscribers use `invocationId` to revert any optimistic
|
|
106
|
+
* rows they rendered for that batch.
|
|
107
|
+
*/
|
|
108
|
+
export var JIRA_WORK_ITEMS_CREATE_FAILED_EVENT = 'jira-work-items-create-failed';
|
package/dist/types/types.d.ts
CHANGED
|
@@ -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 | 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;
|
|
@@ -587,6 +605,48 @@ export declare const JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT: "jira-inli
|
|
|
587
605
|
export type JiraInlineAgentCreationAgentAssignedPayload = PayloadCore<typeof JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT, {
|
|
588
606
|
issueId: string;
|
|
589
607
|
}>;
|
|
608
|
+
/**
|
|
609
|
+
* Published right before the `create-work-items` skill calls the bulk-create API, carrying the draft
|
|
610
|
+
* work items the user submitted. Subscribers (e.g. the Jira list view) can use the draft fields to
|
|
611
|
+
* render optimistic rows immediately, ahead of the (potentially slow) create request. Correlate this
|
|
612
|
+
* batch with the follow-up {@link JIRA_WORK_ITEMS_CREATED_EVENT} / {@link JIRA_WORK_ITEMS_CREATE_FAILED_EVENT}
|
|
613
|
+
* via `invocationId`.
|
|
614
|
+
*/
|
|
615
|
+
export declare const JIRA_WORK_ITEMS_CREATING_EVENT: "jira-work-items-creating";
|
|
616
|
+
export type JiraWorkItemCreatingDraft = {
|
|
617
|
+
/** Skill invocation id of this draft; used as the optimistic row's stable id. */
|
|
618
|
+
invocationId: string;
|
|
619
|
+
/** Draft summary, used to render the optimistic row immediately. */
|
|
620
|
+
summary: string;
|
|
621
|
+
};
|
|
622
|
+
export type JiraWorkItemsCreatingPayload = PayloadCore<typeof JIRA_WORK_ITEMS_CREATING_EVENT, {
|
|
623
|
+
/**
|
|
624
|
+
* Identifies this batch across the creating/created/failed lifecycle events. Conceptually a
|
|
625
|
+
* per-batch id, distinct from the per-suggestion {@link JiraWorkItemCreatingDraft.invocationId}
|
|
626
|
+
* ids; on the FE it is derived from the first draft's invocation id (unique per submission,
|
|
627
|
+
* stable across the three events).
|
|
628
|
+
*/
|
|
629
|
+
invocationId: string;
|
|
630
|
+
/** Draft work items submitted for creation (parents and their children, flattened). */
|
|
631
|
+
draftWorkItems: JiraWorkItemCreatingDraft[];
|
|
632
|
+
}>;
|
|
633
|
+
export declare const JIRA_WORK_ITEMS_CREATED_EVENT: "jira-work-items-created";
|
|
634
|
+
export type JiraWorkItemsCreatedPayload = PayloadCore<typeof JIRA_WORK_ITEMS_CREATED_EVENT, {
|
|
635
|
+
/** Identifies the batch; matches the {@link JIRA_WORK_ITEMS_CREATING_EVENT} `invocationId`. */
|
|
636
|
+
invocationId: string;
|
|
637
|
+
/** Ids of the work items created by the skill, used by subscribers to fetch their data. */
|
|
638
|
+
createdIssueIds: string[];
|
|
639
|
+
}>;
|
|
640
|
+
/**
|
|
641
|
+
* Published when the `create-work-items` skill fails to create the work items it announced via a
|
|
642
|
+
* {@link JIRA_WORK_ITEMS_CREATING_EVENT}. Subscribers use `invocationId` to revert any optimistic
|
|
643
|
+
* rows they rendered for that batch.
|
|
644
|
+
*/
|
|
645
|
+
export declare const JIRA_WORK_ITEMS_CREATE_FAILED_EVENT: "jira-work-items-create-failed";
|
|
646
|
+
export type JiraWorkItemsCreateFailedPayload = PayloadCore<typeof JIRA_WORK_ITEMS_CREATE_FAILED_EVENT, {
|
|
647
|
+
/** Identifies the batch; matches the {@link JIRA_WORK_ITEMS_CREATING_EVENT} `invocationId` to revert its optimistic rows. */
|
|
648
|
+
invocationId: string;
|
|
649
|
+
}>;
|
|
590
650
|
export type Callback = (payload: Payload) => void;
|
|
591
651
|
export type TopicEvents = {
|
|
592
652
|
[key in Topic]?: Array<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-triggers",
|
|
3
|
-
"version": "9.
|
|
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": {
|