File tree Expand file tree Collapse file tree 6 files changed +22
-21
lines changed Expand file tree Collapse file tree 6 files changed +22
-21
lines changed Original file line number Diff line number Diff line change
1
+ /*!
2
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+
6
+ // Currently importing ChatItemType in Mynah UI from the vscode side causes an error
7
+ // TODO remove this once the import stops failing
8
+ export type ChatItemType =
9
+ | 'prompt'
10
+ | 'system-prompt'
11
+ | 'ai-prompt'
12
+ | 'answer'
13
+ | 'answer-stream'
14
+ | 'answer-part'
15
+ | 'code-result'
Original file line number Diff line number Diff line change 3
3
* SPDX-License-Identifier: Apache-2.0
4
4
*/
5
5
6
- // Currently importing ChatItemType in Mynah UI from the vscode side causes an error
7
- // TODO remove this once the import stops failing
8
- export type ChatItemType =
9
- | 'prompt'
10
- | 'system-prompt'
11
- | 'ai-prompt'
12
- | 'answer'
13
- | 'answer-stream'
14
- | 'answer-part'
15
- | 'code-result'
16
-
17
6
export interface IManifestFile {
18
7
pomArtifactId : string
19
8
pomFolderName : string
Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ import { AuthFollowUpType } from '../../../amazonq/auth/model'
7
7
import { MessagePublisher } from '../../../amazonq/messages/messagePublisher'
8
8
import { CodeReference } from '../../../amazonq/webview/ui/connector'
9
9
import { featureDevChat , licenseText } from '../../constants'
10
- import { ChatItemType } from '../../models'
11
10
import { ChatItemAction , SourceLink } from '@aws/mynah-ui'
12
11
import { DeletedFileInfo , NewFileInfo } from '../../types'
12
+ import { ChatItemType } from '../../../amazonq/commons/model'
13
13
14
14
class UiMessage {
15
15
readonly time : number = Date . now ( )
Original file line number Diff line number Diff line change @@ -39,17 +39,14 @@ export function init(appContext: AmazonQAppInitContext) {
39
39
40
40
new GumbyController ( gumbyChatControllerEventEmitters , messenger , appContext . onDidChangeAmazonQVisibility . event )
41
41
42
- const featureDevChatUIInputEventEmitter = new vscode . EventEmitter < any > ( )
42
+ const gumbyChatUIInputEventEmitter = new vscode . EventEmitter < any > ( )
43
43
44
44
new UIMessageListener ( {
45
45
chatControllerEventEmitters : gumbyChatControllerEventEmitters ,
46
- webViewMessageListener : new MessageListener < any > ( featureDevChatUIInputEventEmitter ) ,
46
+ webViewMessageListener : new MessageListener < any > ( gumbyChatUIInputEventEmitter ) ,
47
47
} )
48
48
49
- appContext . registerWebViewToAppMessagePublisher (
50
- new MessagePublisher < any > ( featureDevChatUIInputEventEmitter ) ,
51
- 'gumby'
52
- )
49
+ appContext . registerWebViewToAppMessagePublisher ( new MessagePublisher < any > ( gumbyChatUIInputEventEmitter ) , 'gumby' )
53
50
54
51
const debouncedEvent = debounce ( async ( ) => {
55
52
const authenticated = ( await AuthUtil . instance . getChatAuthState ( ) ) . amazonQ === 'connected'
Original file line number Diff line number Diff line change 9
9
*/
10
10
11
11
import { AuthFollowUpType , AuthMessageDataMap } from '../../../../amazonq/auth/model'
12
- import { ChatItemType } from '../../../../amazonqFeatureDev/models'
13
12
import { JDKVersion , TransformationCandidateProject , transformByQState } from '../../../../codewhisperer/models/model'
14
13
import { FeatureAuthState } from '../../../../codewhisperer/util/authUtil'
15
14
import * as CodeWhispererConstants from '../../../../codewhisperer/models/constants'
@@ -28,6 +27,7 @@ import {
28
27
import { ChatItemButton , ChatItemFormItem } from '@aws/mynah-ui/dist/static'
29
28
import MessengerUtils , { ButtonActions } from './messengerUtils'
30
29
import DependencyVersions from '../../../models/dependencies'
30
+ import { ChatItemType } from '../../../../amazonq/commons/model'
31
31
32
32
export type StaticTextResponseType =
33
33
| 'transform'
Original file line number Diff line number Diff line change 6
6
import { gumbyChat } from '../../../models/constants'
7
7
import { AuthFollowUpType } from '../../../../amazonq/auth/model'
8
8
import { MessagePublisher } from '../../../../amazonq/messages/messagePublisher'
9
- import { ChatItemType } from '../../../../amazonqFeatureDev/models'
10
9
import { ChatItemButton , ChatItemFormItem } from '@aws/mynah-ui/dist/static'
11
10
import { GumbyCommands } from '../../controller/messenger/messengerUtils'
11
+ import { ChatItemType } from '../../../../amazonq/commons/model'
12
12
13
13
export type GumbyMessageType =
14
14
| 'errorMessage'
@@ -72,7 +72,7 @@ export class AuthenticationUpdateMessage {
72
72
readonly type : GumbyMessageType = 'authenticationUpdateMessage'
73
73
74
74
constructor (
75
- readonly featureDevEnabled : boolean ,
75
+ readonly gumbyEnabled : boolean ,
76
76
readonly authenticatingTabIDs : string [ ]
77
77
) { }
78
78
}
You can’t perform that action at this time.
0 commit comments