@heysalad/cheri-cli 1.2.0 → 1.2.1
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/package.json +1 -1
- package/src/commands/login.js +4 -0
package/package.json
CHANGED
package/src/commands/login.js
CHANGED
|
@@ -54,6 +54,9 @@ export async function loginFlow() {
|
|
|
54
54
|
|
|
55
55
|
setConfigValue("token", token.trim());
|
|
56
56
|
|
|
57
|
+
// Set provider to cheri (cloud) when logging in
|
|
58
|
+
setConfigValue("ai.provider", "cheri");
|
|
59
|
+
|
|
57
60
|
// Verify token works
|
|
58
61
|
try {
|
|
59
62
|
const me = await apiClient.getMe();
|
|
@@ -61,6 +64,7 @@ export async function loginFlow() {
|
|
|
61
64
|
log.success(`Logged in as ${chalk.cyan(me.ghLogin || me.userId)}`);
|
|
62
65
|
log.keyValue("Plan", me.plan === "pro" ? chalk.green("Pro") : "Free");
|
|
63
66
|
log.blank();
|
|
67
|
+
log.tip("Using Cheri cloud service (AWS Bedrock). Run 'cheri agent' to start coding!");
|
|
64
68
|
} catch (err) {
|
|
65
69
|
setConfigValue("token", "");
|
|
66
70
|
throw new Error(`Token verification failed: ${err.message}`);
|