You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/chat-cli/src/cli/chat/cli/context.rs
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ use crate::cli::chat::{
19
19
ChatSession,
20
20
ChatState,
21
21
};
22
+
usecrate::constants::context_text;
22
23
usecrate::constants::help_text::{
23
24
CONTEXT_DESCRIPTION,
24
25
context_long_help,
@@ -238,7 +239,8 @@ impl ContextSubcommand {
238
239
session.stderr,
239
240
StyledText::warning_fg(),
240
241
style::Print(format!(
241
-
"Total token count exceeds limit: {context_files_max_size}. The following files will be automatically dropped when interacting with Kiro. Consider removing them. \n\n"
Copy file name to clipboardExpand all lines: crates/chat-cli/src/cli/chat/cli/subscribe.rs
+8-12Lines changed: 8 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -16,17 +16,12 @@ use crate::cli::chat::{
16
16
get_subscription_status_with_spinner,
17
17
with_spinner,
18
18
};
19
+
usecrate::constants::subscription_text;
19
20
usecrate::os::Os;
20
21
usecrate::theme::StyledText;
21
22
usecrate::util::system_info::is_remote;
22
23
23
-
constSUBSCRIBE_TITLE_TEXT:&str = color_print::cstr! {"<white!,bold>Subscribe to Kiro Developer Pro</white!,bold>"};
24
-
25
-
constSUBSCRIBE_TEXT:&str = color_print::cstr! {"During the upgrade, you'll be asked to link your Builder ID to the AWS account that will be billed the monthly subscription fee.
26
-
27
-
Need help? Visit our subscription support page> <blue!>https://docs.aws.amazon.com/console/amazonq/upgrade-builder-id</blue!>"};
28
-
29
-
/// Arguments for the subscribe command to manage Kiro Developer Pro subscriptions
24
+
/// Arguments for the subscribe command to manage Developer Pro subscriptions
30
25
#[deny(missing_docs)]
31
26
#[derive(Debug,PartialEq,Args)]
32
27
pubstructSubscribeArgs{
@@ -41,7 +36,7 @@ impl SubscribeArgs {
41
36
execute!(
42
37
session.stderr,
43
38
StyledText::warning_fg(),
44
-
style::Print("\nYour Kiro Developer Pro subscription is managed through IAM Identity Center.\n\n"),
pubconstSUBSCRIBE_INFO:&str = "During the upgrade, you'll be asked to link your Builder ID to the AWS account that will be billed the monthly subscription fee.
170
+
171
+
Need help? Visit our subscription support page> https://docs.aws.amazon.com/console/amazonq/upgrade-builder-id";
172
+
173
+
/// Message for IDC users about subscription management
174
+
pubfnidc_subscription_message() -> String{
175
+
format!("Your {PRODUCT_NAME} Pro subscription is managed through IAM Identity Center.")
176
+
}
177
+
178
+
/// Message when user doesn't have an active subscription
179
+
pubfnno_subscription_message() -> String{
180
+
format!("You don't seem to have a {PRODUCT_NAME} Pro subscription.")
181
+
}
182
+
183
+
/// Message when user already has an active subscription
184
+
pubfnalready_subscribed_message() -> String{
185
+
format!("Your Builder ID already has a {PRODUCT_NAME} Pro subscription.")
186
+
}
187
+
}
188
+
189
+
/// Context-related text constants
190
+
pubmod context_text {
191
+
usesuper::PRODUCT_NAME;
192
+
193
+
/// Warning message when context files exceed token limit
"Total token count exceeds limit: {context_files_max_size}. The following files will be automatically dropped when interacting with {PRODUCT_NAME}. Consider removing them."
0 commit comments