@brutalsystems/muster 1.1.0 → 1.1.1

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/README.md CHANGED
@@ -59,7 +59,9 @@ models; behaviour against real ones is verified by hand and recorded in
59
59
  ## Quick start
60
60
 
61
61
  ```sh
62
- npm install -g @brutalsystems/muster
62
+ # Allow the install scripts: muster's postinstall builds node-pty, and npm
63
+ # skips install scripts by default — silently, so the pty host fails later.
64
+ npm install -g --allow-scripts=@brutalsystems/muster,node-pty @brutalsystems/muster
63
65
 
64
66
  # A session: an agent you can reach, addressed once it is genuinely alive.
65
67
  muster run claude --prompt 'Review this project' --cwd . --level work
package/dist/run.js CHANGED
@@ -373,7 +373,14 @@ export class Muster {
373
373
  const { req, identityName, identityMeta, credential, selectedMcp, agentBase, deadline, } = c;
374
374
  let entry = c.entry;
375
375
  const prepared = await prepareMcp(selectedMcp, mcpEnvironment(selectedMcp, agentBase, this.sourceEnv), req.cwd, deadline);
376
- let runtimeEnv = mcpEnvironment(prepared.servers, agentBase, this.sourceEnv);
376
+ // PWD names the launch directory, not the caller's. The child is spawned
377
+ // in req.cwd, but an inherited PWD still names wherever muster was run
378
+ // from, and `opencode run` prefers PWD over its real cwd: its model's
379
+ // shell then ran in the caller's directory instead of --cwd.
380
+ let runtimeEnv = {
381
+ ...mcpEnvironment(prepared.servers, agentBase, this.sourceEnv),
382
+ PWD: req.cwd,
383
+ };
377
384
  entry = await this.registry.update(entry.launchId, prepared.summary);
378
385
  if (identityName && identityMeta) {
379
386
  // The launch id exists now, so the copy can be made and named after it.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brutalsystems/muster",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Launch instructed, reachable local agent sessions",
5
5
  "type": "module",
6
6
  "engines": {