upfynai-code 2.8.1 → 2.8.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/connect.js +7 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "upfynai-code",
3
- "version": "2.8.1",
3
+ "version": "2.8.2",
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;