upfynai-code 2.8.1 → 2.8.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/dist/agents/index.js +2 -1
- package/package.json +1 -1
- package/src/connect.js +7 -1
package/dist/agents/index.js
CHANGED
|
@@ -24,8 +24,9 @@ import filesAgent from './files.js';
|
|
|
24
24
|
import gitAgent from './git.js';
|
|
25
25
|
import execAgent from './exec.js';
|
|
26
26
|
import detectAgent from './detect.js';
|
|
27
|
+
import gitagentAgent from './gitagent.js';
|
|
27
28
|
|
|
28
|
-
const agents = [claudeAgent, codexAgent, cursorAgent, shellAgent, filesAgent, gitAgent, execAgent, detectAgent];
|
|
29
|
+
const agents = [claudeAgent, codexAgent, cursorAgent, shellAgent, filesAgent, gitAgent, execAgent, detectAgent, gitagentAgent];
|
|
29
30
|
|
|
30
31
|
/** Map of action name → handler function */
|
|
31
32
|
const actionMap = new Map();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "upfynai-code",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.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": {
|
package/src/connect.js
CHANGED
|
@@ -233,7 +233,13 @@ export async function connect(options = {}) {
|
|
|
233
233
|
const MAX_RECONNECT = 10;
|
|
234
234
|
|
|
235
235
|
function doConnect() {
|
|
236
|
-
const ws = new WebSocket(wsUrl
|
|
236
|
+
const ws = new WebSocket(wsUrl, {
|
|
237
|
+
headers: {
|
|
238
|
+
'x-upfyn-machine': os.hostname(),
|
|
239
|
+
'x-upfyn-platform': process.platform,
|
|
240
|
+
'x-upfyn-cwd': process.cwd(),
|
|
241
|
+
},
|
|
242
|
+
});
|
|
237
243
|
|
|
238
244
|
ws.on('open', () => {
|
|
239
245
|
reconnectAttempts = 0;
|