@atlaskit/rovo-triggers 10.10.0 → 10.12.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,39 @@
1
1
  # @atlaskit/rovo-triggers
2
2
 
3
+ ## 10.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`6b25a30a1f55f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6b25a30a1f55f) -
8
+ Add the agent-mention run-state bridge (EDITOR-8549): a store, keyed by the run's
9
+ `conversationId`, that makes live Rovo agent run-state readable outside chat and ties it back to
10
+ the invoking agent-mention node (whose `localId` rides on the record). It is fed from the existing
11
+ chat/message stream, with no new connection. A run is only tracked once it has been seeded at send
12
+ time, which happens only for mention-invoked runs behind the `platform_editor_agent_state_bridge`
13
+ experiment, so it stays inert otherwise. Adds an optional `invokedByNodeLocalId` to the `chat-new`
14
+ trigger payload.
15
+
16
+ Read run-state from `@atlassian/conversation-assistant-store/controllers/agent-mention-run-state`,
17
+ keyed by conversation (the run's identity) or by the invoking mention node:
18
+
19
+ ```tsx
20
+ import {
21
+ useAgentRunStateForConversation,
22
+ useAgentRunStateForNode,
23
+ } from '@atlassian/conversation-assistant-store/controllers/agent-mention-run-state';
24
+
25
+ const byConversation = useAgentRunStateForConversation(conversationId);
26
+ const byNode = useAgentRunStateForNode(nodeLocalId);
27
+ // 'thinking' | 'working' | 'editing' | 'needs-input' | 'done' | 'failed' | 'blocked' | undefined
28
+ ```
29
+
30
+ ## 10.11.0
31
+
32
+ ### Minor Changes
33
+
34
+ - [`44d25a46e9116`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/44d25a46e9116) -
35
+ HIX-9694 Workflow Builder Agent: Wire up UPDATE_STATUS operation when click Apply to Workflow
36
+
3
37
  ## 10.10.0
4
38
 
5
39
  ### Minor Changes
@@ -143,6 +143,11 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
143
143
  agentIdentityAccountId?: string;
144
144
  /** Identifies the product surface that launched the conversation for analytics attribution. */
145
145
  chatEntryPoint?: ChatEntryPoint;
146
+ /**
147
+ * The `localId` of the agent-mention node that invoked this run. Threaded through so the
148
+ * agent-run-state bridge can key live run-state back to the node.
149
+ */
150
+ invokedByNodeLocalId?: string;
146
151
  } & Partial<TargetAgentParam> & PlaceholderParam>;
147
152
  export type RovoSpaceEntryPoint = 'leftNav' | 'sidebar' | 'zeroQuery' | 'typeahead' | 'inChatRecommendation';
148
153
  /**
@@ -417,10 +422,10 @@ export type AddStatusRovoPayload = {
417
422
  };
418
423
  export type UpdateStatusRovoPayload = {
419
424
  statusId: StatusId;
420
- fromStatusName: string;
421
- toStatusName: string | null;
422
- fromStatusCategory: StatusCategory;
423
- toStatusCategory: StatusCategory | null;
425
+ existingStatusName: string;
426
+ newStatusName?: string | null;
427
+ existingStatusCategory: StatusCategory;
428
+ newStatusCategory?: StatusCategory | null;
424
429
  };
425
430
  export type DeleteStatusRovoPayload = {
426
431
  statusId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "10.10.0",
3
+ "version": "10.12.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": {