@createlex/createlexgenai 1.0.1 → 1.0.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@createlex/createlexgenai",
3
- "version": "1.0.1",
3
+ "version": "1.0.4",
4
4
  "description": "CLI tool and MCP server for CreatelexGenAI — Unreal Engine AI integration",
5
5
  "bin": {
6
6
  "createlex": "./bin/createlex.js"
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const http = require('http');
4
- const url = require('url');
4
+ const { URL } = require('url');
5
5
  const log = require('../utils/logger');
6
6
  const authManager = require('../core/auth-manager');
7
7
  const configStore = require('../core/config-store');
@@ -34,7 +34,7 @@ async function login() {
34
34
  return;
35
35
  }
36
36
 
37
- const parsedUrl = url.parse(req.url, true);
37
+ const parsedUrl = new URL(req.url, 'http://localhost');
38
38
 
39
39
  // POST /auth/success — same endpoint as VS Code extension & Bridge app
40
40
  if (req.method === 'POST' && parsedUrl.pathname === '/auth/success') {
@@ -105,7 +105,7 @@ async function login() {
105
105
  // Use same OAuth flow as VS Code extension: /login?redirect=bridge-callback&source=bridge
106
106
  const frontendCallbackUrl = `${webBaseUrl}/bridge-callback`;
107
107
  const loginUrl = new URL('/login', webBaseUrl);
108
- loginUrl.searchParams.set('redirect', encodeURIComponent(frontendCallbackUrl));
108
+ loginUrl.searchParams.set('redirect', frontendCallbackUrl);
109
109
  loginUrl.searchParams.set('source', 'bridge');
110
110
 
111
111
  log.header('CreateLex Login');
@@ -82,8 +82,8 @@ async function healthCheck(options = {}) {
82
82
  return { available: false, error: `Port ${port} not reachable` };
83
83
  }
84
84
 
85
- // Full health check
86
- const res = await request('GET', '/remote/api/v1/health', null, options);
85
+ // Full health check — UE uses /remote/info (not /remote/api/v1/health)
86
+ const res = await request('GET', '/remote/info', null, options);
87
87
  return {
88
88
  available: res.status === 200,
89
89
  status: res.status,