midsomar 0.1.19 → 0.1.20

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/dist/server.js +4 -0
  2. package/package.json +1 -1
package/dist/server.js CHANGED
@@ -64,6 +64,10 @@ function findBinary() {
64
64
  throw new Error("engine binary not found");
65
65
  }
66
66
  export function startEngine(opts = {}) {
67
+ const remoteUrl = process.env.MIDSOMAR_ENGINE_URL;
68
+ if (remoteUrl) {
69
+ return Promise.resolve({ url: remoteUrl.replace(/\/+$/, ""), kill: () => { } });
70
+ }
67
71
  return new Promise((resolvePromise, reject) => {
68
72
  const binary = findBinary();
69
73
  const port = opts.port ?? 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "midsomar",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "description": "AI coding agent — open-source, bring your own API key",
5
5
  "type": "module",
6
6
  "bin": {