@atlaskit/rovo-triggers 10.11.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 +27 -0
- package/dist/types/types.d.ts +5 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
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
|
+
|
|
3
30
|
## 10.11.0
|
|
4
31
|
|
|
5
32
|
### Minor Changes
|
package/dist/types/types.d.ts
CHANGED
|
@@ -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
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-triggers",
|
|
3
|
-
"version": "10.
|
|
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": {
|