@melaya/runner 1.0.3 → 1.0.6

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.
@@ -100,7 +100,11 @@ export async function connect(opts) {
100
100
  PYTHONIOENCODING: "utf-8",
101
101
  PYTHONUTF8: "1",
102
102
  MEL_RUN_ID: payload.runId,
103
- MEL_STUDIO_URL: payload.studioUrl,
103
+ // Point agentscope hooks at the REAL server (not the browser's Vite URL).
104
+ // Convert wss://api.melaya.org → https://api.melaya.org so pushMessage,
105
+ // registerRun, and other agentscope HTTP calls reach the tRPC server.
106
+ MEL_STUDIO_URL: opts.serverUrl.replace(/^wss:/, "https:").replace(/^ws:/, "http:"),
107
+ // Event relay goes through our local HTTP relay → WebSocket → server
104
108
  MEL_BUILDER_URL: `http://127.0.0.1:${relay.port}`,
105
109
  MEL_RELAY_NONCE: relay.nonce,
106
110
  LMSTUDIO_BASE_URL: "http://127.0.0.1:1234",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@melaya/runner",
3
- "version": "1.0.3",
3
+ "version": "1.0.6",
4
4
  "description": "Run Melaya AI pipelines locally with your own LM Studio or Ollama models",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,