@atlaskit/rovo-triggers 9.3.0 → 9.4.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 +17 -0
- package/dist/cjs/types.js +17 -2
- package/dist/es2019/types.js +16 -1
- package/dist/esm/types.js +16 -1
- package/dist/types/types.d.ts +43 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/rovo-triggers
|
|
2
2
|
|
|
3
|
+
## 9.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`46cbcf754d99c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/46cbcf754d99c) -
|
|
8
|
+
Publish `creating`/`created`/`failed` work item lifecycle events from the Rovo create-work-items
|
|
9
|
+
flow, behind the `jira_ai_create_work_items` feature gate, so subscribers can reconcile optimistic
|
|
10
|
+
rows with creation results.
|
|
11
|
+
|
|
12
|
+
## 9.3.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [`30314bb11ad77`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/30314bb11ad77) -
|
|
17
|
+
Cleanup experiment `enable_rovo_static_prompt_file_uploads`. Static prompt file uploads are now
|
|
18
|
+
permanently enabled.
|
|
19
|
+
|
|
3
20
|
## 9.3.0
|
|
4
21
|
|
|
5
22
|
### Minor 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,19 @@ 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
|
-
var JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = exports.JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = 'jira-inline-agent-creation-agent-assigned';
|
|
92
|
+
var JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = exports.JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = 'jira-inline-agent-creation-agent-assigned';
|
|
93
|
+
/**
|
|
94
|
+
* Published right before the `create-work-items` skill calls the bulk-create API, carrying the draft
|
|
95
|
+
* work items the user submitted. Subscribers (e.g. the Jira list view) can use the draft fields to
|
|
96
|
+
* render optimistic rows immediately, ahead of the (potentially slow) create request. Correlate this
|
|
97
|
+
* batch with the follow-up {@link JIRA_WORK_ITEMS_CREATED_EVENT} / {@link JIRA_WORK_ITEMS_CREATE_FAILED_EVENT}
|
|
98
|
+
* via `invocationId`.
|
|
99
|
+
*/
|
|
100
|
+
var JIRA_WORK_ITEMS_CREATING_EVENT = exports.JIRA_WORK_ITEMS_CREATING_EVENT = 'jira-work-items-creating';
|
|
101
|
+
var JIRA_WORK_ITEMS_CREATED_EVENT = exports.JIRA_WORK_ITEMS_CREATED_EVENT = 'jira-work-items-created';
|
|
102
|
+
/**
|
|
103
|
+
* Published when the `create-work-items` skill fails to create the work items it announced via a
|
|
104
|
+
* {@link JIRA_WORK_ITEMS_CREATING_EVENT}. Subscribers use `invocationId` to revert any optimistic
|
|
105
|
+
* rows they rendered for that batch.
|
|
106
|
+
*/
|
|
107
|
+
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,19 @@ export const Topics = {
|
|
|
83
83
|
|
|
84
84
|
/** Published by the consumer hook to notify the publisher whether it should fetch SmartLinks. */
|
|
85
85
|
|
|
86
|
-
export const JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = 'jira-inline-agent-creation-agent-assigned';
|
|
86
|
+
export const JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = 'jira-inline-agent-creation-agent-assigned';
|
|
87
|
+
/**
|
|
88
|
+
* Published right before the `create-work-items` skill calls the bulk-create API, carrying the draft
|
|
89
|
+
* work items the user submitted. Subscribers (e.g. the Jira list view) can use the draft fields to
|
|
90
|
+
* render optimistic rows immediately, ahead of the (potentially slow) create request. Correlate this
|
|
91
|
+
* batch with the follow-up {@link JIRA_WORK_ITEMS_CREATED_EVENT} / {@link JIRA_WORK_ITEMS_CREATE_FAILED_EVENT}
|
|
92
|
+
* via `invocationId`.
|
|
93
|
+
*/
|
|
94
|
+
export const JIRA_WORK_ITEMS_CREATING_EVENT = 'jira-work-items-creating';
|
|
95
|
+
export const JIRA_WORK_ITEMS_CREATED_EVENT = 'jira-work-items-created';
|
|
96
|
+
/**
|
|
97
|
+
* Published when the `create-work-items` skill fails to create the work items it announced via a
|
|
98
|
+
* {@link JIRA_WORK_ITEMS_CREATING_EVENT}. Subscribers use `invocationId` to revert any optimistic
|
|
99
|
+
* rows they rendered for that batch.
|
|
100
|
+
*/
|
|
101
|
+
export const JIRA_WORK_ITEMS_CREATE_FAILED_EVENT = 'jira-work-items-create-failed';
|
package/dist/esm/types.js
CHANGED
|
@@ -83,4 +83,19 @@ export var Topics = {
|
|
|
83
83
|
|
|
84
84
|
/** Published by the consumer hook to notify the publisher whether it should fetch SmartLinks. */
|
|
85
85
|
|
|
86
|
-
export var JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = 'jira-inline-agent-creation-agent-assigned';
|
|
86
|
+
export var JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT = 'jira-inline-agent-creation-agent-assigned';
|
|
87
|
+
/**
|
|
88
|
+
* Published right before the `create-work-items` skill calls the bulk-create API, carrying the draft
|
|
89
|
+
* work items the user submitted. Subscribers (e.g. the Jira list view) can use the draft fields to
|
|
90
|
+
* render optimistic rows immediately, ahead of the (potentially slow) create request. Correlate this
|
|
91
|
+
* batch with the follow-up {@link JIRA_WORK_ITEMS_CREATED_EVENT} / {@link JIRA_WORK_ITEMS_CREATE_FAILED_EVENT}
|
|
92
|
+
* via `invocationId`.
|
|
93
|
+
*/
|
|
94
|
+
export var JIRA_WORK_ITEMS_CREATING_EVENT = 'jira-work-items-creating';
|
|
95
|
+
export var JIRA_WORK_ITEMS_CREATED_EVENT = 'jira-work-items-created';
|
|
96
|
+
/**
|
|
97
|
+
* Published when the `create-work-items` skill fails to create the work items it announced via a
|
|
98
|
+
* {@link JIRA_WORK_ITEMS_CREATING_EVENT}. Subscribers use `invocationId` to revert any optimistic
|
|
99
|
+
* rows they rendered for that batch.
|
|
100
|
+
*/
|
|
101
|
+
export var JIRA_WORK_ITEMS_CREATE_FAILED_EVENT = 'jira-work-items-create-failed';
|
package/dist/types/types.d.ts
CHANGED
|
@@ -343,7 +343,6 @@ export type InsertPromptPayload = PayloadCore<'insert-prompt', {
|
|
|
343
343
|
avatarUrl?: string;
|
|
344
344
|
/**
|
|
345
345
|
* Optional files to attach to the chat input alongside the prompt.
|
|
346
|
-
* Gated by the enable_rovo_static_prompt_file_uploads experiment.
|
|
347
346
|
*/
|
|
348
347
|
files?: UploadedFile[];
|
|
349
348
|
} & PlaceholderParam>;
|
|
@@ -550,7 +549,7 @@ export type SmartlinksSubscriptionChangedPayload = PayloadCore<'smartlinks-subsc
|
|
|
550
549
|
openChat: false;
|
|
551
550
|
isActive: boolean;
|
|
552
551
|
};
|
|
553
|
-
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;
|
|
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;
|
|
554
553
|
export type TaskPlanConfirmedPayload = PayloadCore<'task-plan-confirmed', {
|
|
555
554
|
conversationId: string;
|
|
556
555
|
planTitle: string;
|
|
@@ -588,6 +587,48 @@ export declare const JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT: "jira-inli
|
|
|
588
587
|
export type JiraInlineAgentCreationAgentAssignedPayload = PayloadCore<typeof JIRA_INLINE_AGENT_CREATION_AGENT_ASSIGNED_EVENT, {
|
|
589
588
|
issueId: string;
|
|
590
589
|
}>;
|
|
590
|
+
/**
|
|
591
|
+
* Published right before the `create-work-items` skill calls the bulk-create API, carrying the draft
|
|
592
|
+
* work items the user submitted. Subscribers (e.g. the Jira list view) can use the draft fields to
|
|
593
|
+
* render optimistic rows immediately, ahead of the (potentially slow) create request. Correlate this
|
|
594
|
+
* batch with the follow-up {@link JIRA_WORK_ITEMS_CREATED_EVENT} / {@link JIRA_WORK_ITEMS_CREATE_FAILED_EVENT}
|
|
595
|
+
* via `invocationId`.
|
|
596
|
+
*/
|
|
597
|
+
export declare const JIRA_WORK_ITEMS_CREATING_EVENT: "jira-work-items-creating";
|
|
598
|
+
export type JiraWorkItemCreatingDraft = {
|
|
599
|
+
/** Skill invocation id of this draft; used as the optimistic row's stable id. */
|
|
600
|
+
invocationId: string;
|
|
601
|
+
/** Draft summary, used to render the optimistic row immediately. */
|
|
602
|
+
summary: string;
|
|
603
|
+
};
|
|
604
|
+
export type JiraWorkItemsCreatingPayload = PayloadCore<typeof JIRA_WORK_ITEMS_CREATING_EVENT, {
|
|
605
|
+
/**
|
|
606
|
+
* Identifies this batch across the creating/created/failed lifecycle events. Conceptually a
|
|
607
|
+
* per-batch id, distinct from the per-suggestion {@link JiraWorkItemCreatingDraft.invocationId}
|
|
608
|
+
* ids; on the FE it is derived from the first draft's invocation id (unique per submission,
|
|
609
|
+
* stable across the three events).
|
|
610
|
+
*/
|
|
611
|
+
invocationId: string;
|
|
612
|
+
/** Draft work items submitted for creation (parents and their children, flattened). */
|
|
613
|
+
draftWorkItems: JiraWorkItemCreatingDraft[];
|
|
614
|
+
}>;
|
|
615
|
+
export declare const JIRA_WORK_ITEMS_CREATED_EVENT: "jira-work-items-created";
|
|
616
|
+
export type JiraWorkItemsCreatedPayload = PayloadCore<typeof JIRA_WORK_ITEMS_CREATED_EVENT, {
|
|
617
|
+
/** Identifies the batch; matches the {@link JIRA_WORK_ITEMS_CREATING_EVENT} `invocationId`. */
|
|
618
|
+
invocationId: string;
|
|
619
|
+
/** Ids of the work items created by the skill, used by subscribers to fetch their data. */
|
|
620
|
+
createdIssueIds: string[];
|
|
621
|
+
}>;
|
|
622
|
+
/**
|
|
623
|
+
* Published when the `create-work-items` skill fails to create the work items it announced via a
|
|
624
|
+
* {@link JIRA_WORK_ITEMS_CREATING_EVENT}. Subscribers use `invocationId` to revert any optimistic
|
|
625
|
+
* rows they rendered for that batch.
|
|
626
|
+
*/
|
|
627
|
+
export declare const JIRA_WORK_ITEMS_CREATE_FAILED_EVENT: "jira-work-items-create-failed";
|
|
628
|
+
export type JiraWorkItemsCreateFailedPayload = PayloadCore<typeof JIRA_WORK_ITEMS_CREATE_FAILED_EVENT, {
|
|
629
|
+
/** Identifies the batch; matches the {@link JIRA_WORK_ITEMS_CREATING_EVENT} `invocationId` to revert its optimistic rows. */
|
|
630
|
+
invocationId: string;
|
|
631
|
+
}>;
|
|
591
632
|
export type Callback = (payload: Payload) => void;
|
|
592
633
|
export type TopicEvents = {
|
|
593
634
|
[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.4.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.
|
|
44
|
+
"@atlaskit/primitives": "^20.2.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",
|