Skip to content

Commit 842e8c8

Browse files
authored
Update flareProtocolCodeGen to be in line with main (#644)
## Problem feature/flareProtocolCodeGen is behind main ## Solution Merge main into the branch <!--- REMINDER: - Read CONTRIBUTING.md first. - Add test coverage for your changes. - Link to related issues/commits. - Testing: how did you test your changes? - Screenshots if applicable --> ## License By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
2 parents 45e999a + 88f19a8 commit 842e8c8

30 files changed

+791
-46
lines changed

.release-please-manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"chat-client-ui-types": "0.1.50",
3-
"runtimes": "0.2.106",
4-
"types": "0.1.44"
2+
"chat-client-ui-types": "0.1.56",
3+
"runtimes": "0.2.118",
4+
"types": "0.1.50"
55
}

chat-client-ui-types/CHANGELOG.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,59 @@
11
# Changelog
22

3+
## [0.1.56](https://github.com/aws/language-server-runtimes/compare/chat-client-ui-types/v0.1.55...chat-client-ui-types/v0.1.56) (2025-07-22)
4+
5+
6+
### Dependencies
7+
8+
* The following workspace dependencies were updated
9+
* dependencies
10+
* @aws/language-server-runtimes-types bumped from ^0.1.49 to ^0.1.50
11+
12+
## [0.1.55](https://github.com/aws/language-server-runtimes/compare/chat-client-ui-types/v0.1.54...chat-client-ui-types/v0.1.55) (2025-07-18)
13+
14+
15+
### Dependencies
16+
17+
* The following workspace dependencies were updated
18+
* dependencies
19+
* @aws/language-server-runtimes-types bumped from ^0.1.48 to ^0.1.49
20+
21+
## [0.1.54](https://github.com/aws/language-server-runtimes/compare/chat-client-ui-types/v0.1.53...chat-client-ui-types/v0.1.54) (2025-07-17)
22+
23+
24+
### Dependencies
25+
26+
* The following workspace dependencies were updated
27+
* dependencies
28+
* @aws/language-server-runtimes-types bumped from ^0.1.47 to ^0.1.48
29+
30+
## [0.1.53](https://github.com/aws/language-server-runtimes/compare/chat-client-ui-types/v0.1.52...chat-client-ui-types/v0.1.53) (2025-07-17)
31+
32+
33+
### Dependencies
34+
35+
* The following workspace dependencies were updated
36+
* dependencies
37+
* @aws/language-server-runtimes-types bumped from ^0.1.46 to ^0.1.47
38+
39+
## [0.1.52](https://github.com/aws/language-server-runtimes/compare/chat-client-ui-types/v0.1.51...chat-client-ui-types/v0.1.52) (2025-07-17)
40+
41+
42+
### Dependencies
43+
44+
* The following workspace dependencies were updated
45+
* dependencies
46+
* @aws/language-server-runtimes-types bumped from ^0.1.45 to ^0.1.46
47+
48+
## [0.1.51](https://github.com/aws/language-server-runtimes/compare/chat-client-ui-types/v0.1.50...chat-client-ui-types/v0.1.51) (2025-07-15)
49+
50+
51+
### Dependencies
52+
53+
* The following workspace dependencies were updated
54+
* dependencies
55+
* @aws/language-server-runtimes-types bumped from ^0.1.44 to ^0.1.45
56+
357
## [0.1.50](https://github.com/aws/language-server-runtimes/compare/chat-client-ui-types/v0.1.49...chat-client-ui-types/v0.1.50) (2025-07-14)
458

559

chat-client-ui-types/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aws/chat-client-ui-types",
3-
"version": "0.1.50",
3+
"version": "0.1.56",
44
"description": "Type definitions for Chat UIs in Language Servers and Runtimes for AWS",
55
"main": "./out/index.js",
66
"scripts": {
@@ -18,6 +18,6 @@
1818
"author": "Amazon Web Services",
1919
"license": "Apache-2.0",
2020
"dependencies": {
21-
"@aws/language-server-runtimes-types": "^0.1.44"
21+
"@aws/language-server-runtimes-types": "^0.1.50"
2222
}
2323
}

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

runtimes/CHANGELOG.md

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,128 @@
11
# Changelog
22

3+
## [0.2.118](https://github.com/aws/language-server-runtimes/compare/language-server-runtimes/v0.2.117...language-server-runtimes/v0.2.118) (2025-07-31)
4+
5+
6+
### Features
7+
8+
* **types:** introduce new completion API for edits suggestion ([#635](https://github.com/aws/language-server-runtimes/issues/635)) ([26ecf77](https://github.com/aws/language-server-runtimes/commit/26ecf770be41b2fa12b9255b446a498c7c209e49))
9+
10+
## [0.2.117](https://github.com/aws/language-server-runtimes/compare/language-server-runtimes/v0.2.116...language-server-runtimes/v0.2.117) (2025-07-31)
11+
12+
13+
### Bug Fixes
14+
15+
* add open tab params to inline completion protocol ([#638](https://github.com/aws/language-server-runtimes/issues/638)) ([fcdf0ac](https://github.com/aws/language-server-runtimes/commit/fcdf0ac24561e32ce079a568b65f9df534e8a140))
16+
* improve diffs array error msg ([#639](https://github.com/aws/language-server-runtimes/issues/639)) ([10b0371](https://github.com/aws/language-server-runtimes/commit/10b037133608610e2edf2b1c4b752b09f3b74580))
17+
* replace path.basename with custom browser-safe implementation ([#636](https://github.com/aws/language-server-runtimes/issues/636)) ([a2b8532](https://github.com/aws/language-server-runtimes/commit/a2b8532e5db15615f7aa0349f4cca8835716e85b))
18+
19+
## [0.2.116](https://github.com/aws/language-server-runtimes/compare/language-server-runtimes/v0.2.115...language-server-runtimes/v0.2.116) (2025-07-24)
20+
21+
22+
### Features
23+
24+
* add endpoint override option for easier dev setup ([#633](https://github.com/aws/language-server-runtimes/issues/633)) ([835e7aa](https://github.com/aws/language-server-runtimes/commit/835e7aac5db7068c711a04b41242e73fc5edc828))
25+
26+
## [0.2.115](https://github.com/aws/language-server-runtimes/compare/language-server-runtimes/v0.2.114...language-server-runtimes/v0.2.115) (2025-07-22)
27+
28+
29+
### Features
30+
31+
* **types:** add a feature flag support for show logs ([#631](https://github.com/aws/language-server-runtimes/issues/631)) ([eec091e](https://github.com/aws/language-server-runtimes/commit/eec091eb7354eedae27fd623d379107f4d4e3196))
32+
33+
## [0.2.114](https://github.com/aws/language-server-runtimes/compare/language-server-runtimes/v0.2.113...language-server-runtimes/v0.2.114) (2025-07-22)
34+
35+
36+
### Features
37+
38+
* **types:** enable show logs feature ([#629](https://github.com/aws/language-server-runtimes/issues/629)) ([7f2814f](https://github.com/aws/language-server-runtimes/commit/7f2814fc405ab02f2cbdb878eb3105170704d75e))
39+
40+
41+
### Dependencies
42+
43+
* The following workspace dependencies were updated
44+
* dependencies
45+
* @aws/language-server-runtimes-types bumped from ^0.1.49 to ^0.1.50
46+
47+
## [0.2.113](https://github.com/aws/language-server-runtimes/compare/language-server-runtimes/v0.2.112...language-server-runtimes/v0.2.113) (2025-07-18)
48+
49+
50+
### Reverts
51+
52+
* revert: subscription details protocols [#620](https://github.com/aws/language-server-runtimes/issues/620) ([#623](https://github.com/aws/language-server-runtimes/issues/623))" ([#625](https://github.com/aws/language-server-runtimes/issues/625)) ([5f9062c](https://github.com/aws/language-server-runtimes/commit/5f9062c3ea831bb02fa04eef364b26892e9f4047))
53+
54+
55+
### Dependencies
56+
57+
* The following workspace dependencies were updated
58+
* dependencies
59+
* @aws/language-server-runtimes-types bumped from ^0.1.48 to ^0.1.49
60+
61+
## [0.2.112](https://github.com/aws/language-server-runtimes/compare/language-server-runtimes/v0.2.111...language-server-runtimes/v0.2.112) (2025-07-17)
62+
63+
64+
### Reverts
65+
66+
* subscription details protocols [#620](https://github.com/aws/language-server-runtimes/issues/620) ([#623](https://github.com/aws/language-server-runtimes/issues/623)) ([9cec0d7](https://github.com/aws/language-server-runtimes/commit/9cec0d7a3ce9001a1ef7f0b3c72a624a1c8919b3))
67+
68+
69+
### Dependencies
70+
71+
* The following workspace dependencies were updated
72+
* dependencies
73+
* @aws/language-server-runtimes-types bumped from ^0.1.47 to ^0.1.48
74+
75+
## [0.2.111](https://github.com/aws/language-server-runtimes/compare/language-server-runtimes/v0.2.110...language-server-runtimes/v0.2.111) (2025-07-17)
76+
77+
78+
### Features
79+
80+
* **runtimes:** add handlers for IAM and STS credentials management ([#599](https://github.com/aws/language-server-runtimes/issues/599)) ([6276983](https://github.com/aws/language-server-runtimes/commit/6276983b2372e4c46dcb7fd5f8bf80e92bb163d2))
81+
82+
83+
### Dependencies
84+
85+
* The following workspace dependencies were updated
86+
* dependencies
87+
* @aws/language-server-runtimes-types bumped from ^0.1.46 to ^0.1.47
88+
89+
## [0.2.110](https://github.com/aws/language-server-runtimes/compare/language-server-runtimes/v0.2.109...language-server-runtimes/v0.2.110) (2025-07-17)
90+
91+
92+
### Features
93+
94+
* subscription details protocols ([#620](https://github.com/aws/language-server-runtimes/issues/620)) ([ebc2dbb](https://github.com/aws/language-server-runtimes/commit/ebc2dbbf89b8a3aaa444210c2ebb3df353d7b217))
95+
96+
97+
### Dependencies
98+
99+
* The following workspace dependencies were updated
100+
* dependencies
101+
* @aws/language-server-runtimes-types bumped from ^0.1.45 to ^0.1.46
102+
103+
## [0.2.109](https://github.com/aws/language-server-runtimes/compare/language-server-runtimes/v0.2.108...language-server-runtimes/v0.2.109) (2025-07-16)
104+
105+
106+
### Bug Fixes
107+
108+
* add document change params ([#618](https://github.com/aws/language-server-runtimes/issues/618)) ([76d258f](https://github.com/aws/language-server-runtimes/commit/76d258f833a7b3a94350a60fafe7688a1c87198c))
109+
110+
## [0.2.108](https://github.com/aws/language-server-runtimes/compare/language-server-runtimes/v0.2.107...language-server-runtimes/v0.2.108) (2025-07-15)
111+
112+
113+
### Dependencies
114+
115+
* The following workspace dependencies were updated
116+
* dependencies
117+
* @aws/language-server-runtimes-types bumped from ^0.1.44 to ^0.1.45
118+
119+
## [0.2.107](https://github.com/aws/language-server-runtimes/compare/language-server-runtimes/v0.2.106...language-server-runtimes/v0.2.107) (2025-07-14)
120+
121+
122+
### Bug Fixes
123+
124+
* log uncaughtException errors directly to stderr ([#612](https://github.com/aws/language-server-runtimes/issues/612)) ([a4648ea](https://github.com/aws/language-server-runtimes/commit/a4648ea96eeb389d558f05b926e51c1b4e03a2b2))
125+
3126
## [0.2.106](https://github.com/aws/language-server-runtimes/compare/language-server-runtimes/v0.2.105...language-server-runtimes/v0.2.106) (2025-07-14)
4127

5128

runtimes/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ The runtime supports chat by default
208208
| Send tab bar action request (e.g., export). | `aws/chat/tabBarAction` | `TabBarActionParams` | [Request](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#requestMessage) Client to Server | `TabBarActionResult` |
209209
| Send request to get serialized chat content in specified format. | `aws/chat/getSerializedChat` | `GetSerializedChatParams` | [Request](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#requestMessage) Client to Server | `GetSerializedChatResult` |
210210
| Send request to open file dialog for file selection. | `aws/chat/openFileDialog` | `OpenFileDialogParams` | [Request](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#requestMessage) Client to Server | `OpenFileDialogResult` |
211+
| Sent to display subscription information in the chat UI | `aws/chat/subscription/details` | SubscriptionDetailsParams | [Notification](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#notificationMessage) Server to Client | n/a |
212+
| Sent to begin a subscription upgrade | `aws/chat/subscription/upgrade` | SubscriptionUpgradeParams | [Notification](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#notificationMessage) Client to Server | n/a |
211213
212214
213215
```ts

runtimes/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aws/language-server-runtimes",
3-
"version": "0.2.106",
3+
"version": "0.2.118",
44
"description": "Runtimes to host Language Servers for AWS",
55
"repository": {
66
"type": "git",
@@ -30,7 +30,7 @@
3030
"generate-types": "ts-node ./script/generate-types.ts"
3131
},
3232
"dependencies": {
33-
"@aws/language-server-runtimes-types": "^0.1.44",
33+
"@aws/language-server-runtimes-types": "^0.1.50",
3434
"@opentelemetry/api": "^1.9.0",
3535
"@opentelemetry/api-logs": "^0.200.0",
3636
"@opentelemetry/core": "^2.0.0",

runtimes/protocol/chat.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ import {
9191
LIST_AVAILABLE_MODELS_REQUEST_METHOD,
9292
ListAvailableModelsResult,
9393
ListAvailableModelsParams,
94+
SUBSCRIPTION_DETAILS_NOTIFICATION_METHOD,
95+
SubscriptionDetailsParams,
96+
SUBSCRIPTION_UPGRADE_NOTIFICATION_METHOD,
97+
SubscriptionUpgradeParams,
9498
} from './lsp'
9599

96100
export const chatRequestType = new AutoParameterStructuresProtocolRequestType<
@@ -279,3 +283,21 @@ export const listAvailableModelsRequestType = new ProtocolRequestType<
279283
void,
280284
void
281285
>(LIST_AVAILABLE_MODELS_REQUEST_METHOD)
286+
287+
// Subscription Tiers
288+
289+
/**
290+
* Subscription Details Notification is sent from server to client, with the expectation that
291+
* the client will display the subscription details in the Chat UI.
292+
*/
293+
export const subscriptionDetailsNotificationType = new ProtocolNotificationType<SubscriptionDetailsParams, void>(
294+
SUBSCRIPTION_DETAILS_NOTIFICATION_METHOD
295+
)
296+
297+
/**
298+
* Subscription Details Notification is sent from Chat UI through client over to server.
299+
* Flare will then ask the client to open a URL in the browser.
300+
*/
301+
export const subscriptionUpgradeNotificationType = new ProtocolNotificationType<SubscriptionUpgradeParams, void>(
302+
SUBSCRIPTION_UPGRADE_NOTIFICATION_METHOD
303+
)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import {
2+
InlineCompletionItem,
3+
InlineCompletionList,
4+
InlineCompletionParams,
5+
InlineCompletionRegistrationOptions,
6+
} from './lsp'
7+
8+
import { ProtocolRequestType } from 'vscode-languageserver-protocol'
9+
10+
export const editCompletionRequestType = new ProtocolRequestType<
11+
InlineCompletionParams,
12+
InlineCompletionList | InlineCompletionItem[] | null,
13+
InlineCompletionItem[],
14+
void,
15+
InlineCompletionRegistrationOptions
16+
>('aws/textDocument/editCompletion')

0 commit comments

Comments
 (0)