upfynai-code 2.6.1 → 2.6.3
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/bin/cli.js +2 -2
- package/package.json +2 -2
- package/src/auth.js +2 -2
- package/src/connect.js +2 -2
- package/src/launch.js +4 -4
- package/src/mcp.js +3 -3
package/bin/cli.js
CHANGED
|
@@ -9,9 +9,9 @@ import { mcp } from '../src/mcp.js';
|
|
|
9
9
|
const program = new Command();
|
|
10
10
|
|
|
11
11
|
program
|
|
12
|
-
.name('
|
|
12
|
+
.name('upfynai-code')
|
|
13
13
|
.description('Launch Upfyn AI coding environment from your terminal')
|
|
14
|
-
.version('
|
|
14
|
+
.version('2.6.3')
|
|
15
15
|
.option('--local', 'Start a local server instead of opening the hosted app')
|
|
16
16
|
.action(async (options) => {
|
|
17
17
|
if (options.local) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "upfynai-code",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.3",
|
|
4
4
|
"description": "Unified AI coding interface — access AI chat, terminal, file explorer, git, and visual canvas from any browser. Connect your local machine and code from anywhere.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"keywords": [
|
|
21
21
|
"upfyn",
|
|
22
|
-
"
|
|
22
|
+
"upfynai-code",
|
|
23
23
|
"ai",
|
|
24
24
|
"coding",
|
|
25
25
|
"cli",
|
package/src/auth.js
CHANGED
|
@@ -96,7 +96,7 @@ export async function status() {
|
|
|
96
96
|
const config = readConfig();
|
|
97
97
|
|
|
98
98
|
if (!config.token) {
|
|
99
|
-
console.log(chalk.yellow('\n Not logged in. Run `
|
|
99
|
+
console.log(chalk.yellow('\n Not logged in. Run `uc login` to authenticate.\n'));
|
|
100
100
|
return;
|
|
101
101
|
}
|
|
102
102
|
|
|
@@ -104,7 +104,7 @@ export async function status() {
|
|
|
104
104
|
const user = await validateToken();
|
|
105
105
|
|
|
106
106
|
if (!user) {
|
|
107
|
-
console.log(chalk.yellow(' Session expired. Run `
|
|
107
|
+
console.log(chalk.yellow(' Session expired. Run `uc login` to re-authenticate.\n'));
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
110
110
|
|
package/src/connect.js
CHANGED
|
@@ -204,14 +204,14 @@ export async function connect(options = {}) {
|
|
|
204
204
|
if (!relayKey) {
|
|
205
205
|
const token = getToken();
|
|
206
206
|
if (!token) {
|
|
207
|
-
console.log(chalk.yellow('\n No account found. Run `
|
|
207
|
+
console.log(chalk.yellow('\n No account found. Run `uc login` first.\n'));
|
|
208
208
|
process.exit(1);
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
console.log(chalk.dim('\n Validating session...'));
|
|
212
212
|
const user = await validateToken();
|
|
213
213
|
if (!user) {
|
|
214
|
-
console.log(chalk.yellow(' Session expired. Run `
|
|
214
|
+
console.log(chalk.yellow(' Session expired. Run `uc login` to re-authenticate.\n'));
|
|
215
215
|
process.exit(1);
|
|
216
216
|
}
|
|
217
217
|
|
package/src/launch.js
CHANGED
|
@@ -8,7 +8,7 @@ export async function openHosted() {
|
|
|
8
8
|
const token = getToken();
|
|
9
9
|
|
|
10
10
|
if (!token) {
|
|
11
|
-
console.log(chalk.yellow('\n No account found. Run `
|
|
11
|
+
console.log(chalk.yellow('\n No account found. Run `uc login` first.\n'));
|
|
12
12
|
process.exit(1);
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -16,7 +16,7 @@ export async function openHosted() {
|
|
|
16
16
|
const user = await validateToken();
|
|
17
17
|
|
|
18
18
|
if (!user) {
|
|
19
|
-
console.log(chalk.yellow(' Session expired. Run `
|
|
19
|
+
console.log(chalk.yellow(' Session expired. Run `uc login` to re-authenticate.\n'));
|
|
20
20
|
process.exit(1);
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -34,7 +34,7 @@ export async function startLocal() {
|
|
|
34
34
|
const token = getToken();
|
|
35
35
|
|
|
36
36
|
if (!token) {
|
|
37
|
-
console.log(chalk.yellow('\n No account found. Run `
|
|
37
|
+
console.log(chalk.yellow('\n No account found. Run `uc login` first.\n'));
|
|
38
38
|
process.exit(1);
|
|
39
39
|
}
|
|
40
40
|
|
|
@@ -42,7 +42,7 @@ export async function startLocal() {
|
|
|
42
42
|
const user = await validateToken();
|
|
43
43
|
|
|
44
44
|
if (!user) {
|
|
45
|
-
console.log(chalk.yellow(' Session expired. Run `
|
|
45
|
+
console.log(chalk.yellow(' Session expired. Run `uc login` to re-authenticate.\n'));
|
|
46
46
|
process.exit(1);
|
|
47
47
|
}
|
|
48
48
|
|
package/src/mcp.js
CHANGED
|
@@ -15,13 +15,13 @@ export async function mcp(options = {}) {
|
|
|
15
15
|
if (!relayKey) {
|
|
16
16
|
const token = getToken();
|
|
17
17
|
if (!token) {
|
|
18
|
-
console.log(chalk.yellow('\n No account found. Run `
|
|
18
|
+
console.log(chalk.yellow('\n No account found. Run `uc login` first.\n'));
|
|
19
19
|
process.exit(1);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
const user = await validateToken();
|
|
23
23
|
if (!user) {
|
|
24
|
-
console.log(chalk.yellow('\n Session expired. Run `
|
|
24
|
+
console.log(chalk.yellow('\n Session expired. Run `uc login` to re-authenticate.\n'));
|
|
25
25
|
process.exit(1);
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -40,7 +40,7 @@ export async function mcp(options = {}) {
|
|
|
40
40
|
|
|
41
41
|
const mcpConfig = {
|
|
42
42
|
mcpServers: {
|
|
43
|
-
'
|
|
43
|
+
'upfynai-code': {
|
|
44
44
|
url: `${serverUrl}/mcp`,
|
|
45
45
|
headers: {
|
|
46
46
|
Authorization: `Bearer ${relayKey}`,
|