agentglow 0.2.6 → 0.2.7

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.
@@ -20,7 +20,10 @@ export function pySpecs(version, env = process.env) {
20
20
  }
21
21
 
22
22
  export function serveArgv(runner, spec, port) {
23
- return [...runner.args, "--from", spec, "agentglow", "serve", "--host", "127.0.0.1", "--port", String(port)];
23
+ // a local checkout (AGENTGLOW_PY_SPEC=/path/to/backend): run it editable, uvx otherwise serves a stale cached build
24
+ const local = /^(\/|\.|~|[A-Za-z]:[\\/])/.test(spec);
25
+ return [...runner.args, ...(local ? ["--with-editable", spec] : []), "--from", spec,
26
+ "agentglow", "serve", "--host", "127.0.0.1", "--port", String(port)];
24
27
  }
25
28
 
26
29
  export function alive(pid) {