@parall/claude-agent 1.34.0 → 1.35.0

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.
@@ -13,6 +13,7 @@ type ClaudeCodeAdapterOptions = Pick<ClaudeAgentConfig, 'additionalDirs' | 'allo
13
13
  export declare function buildSpawnEnv(parentEnv: NodeJS.ProcessEnv, claudeHome: string, context: DispatchOpts['context'], opts: {
14
14
  allowApiKey: boolean;
15
15
  effortLevel?: string;
16
+ wikiMountRoot?: string;
16
17
  }): NodeJS.ProcessEnv;
17
18
  export declare class ClaudeCodeAdapter implements DispatchAdapter {
18
19
  private readonly opts;
@@ -1 +1 @@
1
- {"version":3,"file":"dispatch.d.ts","sourceRoot":"","sources":["../src/dispatch.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,YAAY,EACZ,QAAQ,EAER,YAAY,EACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EAAE,oBAAoB,EAA4B,MAAM,sBAAsB,CAAC;AAEtF,KAAK,wBAAwB,GAAG,IAAI,CAClC,iBAAiB,EACf,gBAAgB,GAChB,aAAa,GACb,cAAc,GACd,oBAAoB,GACpB,WAAW,GACX,YAAY,GACZ,iBAAiB,GACjB,OAAO,GACP,gBAAgB,GAChB,cAAc,CACjB,GAAG;IACF,cAAc,EAAE,oBAAoB,CAAC;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,yBAAyB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,CAAC;IAC3D,iDAAiD;IACjD,wBAAwB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,CAAC;CAC3D,CAAC;AAkBF,wBAAgB,aAAa,CAC3B,SAAS,EAAE,MAAM,CAAC,UAAU,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,IAAI,OAAO,CAAC,IAAI,CAAC;IAQ/B,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAA4D;IAE/F;;;;;;;;;OASG;YACY,gBAAgB;YAqEhB,OAAO;IAkHtB,OAAO,CAAC,aAAa;IAyBrB,OAAO,CAAC,YAAY;IAuDpB,OAAO,CAAC,WAAW;IAsBnB,OAAO,CAAC,gBAAgB;IAWxB,OAAO,CAAC,SAAS;IAwCjB,OAAO,CAAC,uBAAuB;CAkBhC"}
package/dist/dispatch.js CHANGED
@@ -38,6 +38,13 @@ export function buildSpawnEnv(parentEnv, claudeHome, context, opts) {
38
38
  PRLL_CONTEXT_FILE: context.contextFilePath ?? '',
39
39
  PRLL_STEP_ID_FILE: context.stepIdFilePath ?? '',
40
40
  };
41
+ // Pin the wiki workspace to the agent workspace (same convention as the
42
+ // OpenClaw runtime). Without this, `parall wiki` resolves mounts relative
43
+ // to the subprocess cwd — a `cd` into any subdirectory would silently
44
+ // split the agent across two wiki workspaces. Operator-set env wins.
45
+ if (!result.PRLL_WIKI_MOUNT_ROOT?.trim() && opts.wikiMountRoot) {
46
+ result.PRLL_WIKI_MOUNT_ROOT = opts.wikiMountRoot;
47
+ }
41
48
  if (opts.effortLevel) {
42
49
  result.CLAUDE_CODE_EFFORT_LEVEL = opts.effortLevel;
43
50
  }
@@ -374,7 +381,11 @@ export class ClaudeCodeAdapter {
374
381
  }
375
382
  spawnProcess(sessionKey, log) {
376
383
  const args = this.buildArgs(sessionKey);
377
- const env = buildSpawnEnv(process.env, this.opts.claudeHome, this.buildPlaceholderContext(sessionKey), { allowApiKey: this.opts.allowApiKey, effortLevel: this._effortLevel });
384
+ const env = buildSpawnEnv(process.env, this.opts.claudeHome, this.buildPlaceholderContext(sessionKey), {
385
+ allowApiKey: this.opts.allowApiKey,
386
+ effortLevel: this._effortLevel,
387
+ wikiMountRoot: this.opts.workspaceDir,
388
+ });
378
389
  log?.info(`spawn long-lived ${this.opts.claudeBin} (session ${sessionKey}, model=${this._model || 'default'}, effort=${this._effortLevel || 'default'}, mode=${this.opts.permissionMode})`);
379
390
  const proc = spawn(IS_WIN32 ? quoteWin32Arg(this.opts.claudeBin) : this.opts.claudeBin, IS_WIN32 ? args.map(quoteWin32Arg) : args, {
380
391
  cwd: this.opts.workspaceDir,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parall/claude-agent",
3
- "version": "1.34.0",
3
+ "version": "1.35.0",
4
4
  "description": "Claude Code bridge runtime for self-hosted Parall agents",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -25,9 +25,9 @@
25
25
  "src"
26
26
  ],
27
27
  "dependencies": {
28
- "@parall/agent-core": "1.34.0",
29
- "@parall/cli": "1.34.0",
30
- "@parall/sdk": "1.34.0"
28
+ "@parall/agent-core": "1.35.0",
29
+ "@parall/cli": "1.35.0",
30
+ "@parall/sdk": "1.35.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^22.0.0",
package/src/dispatch.ts CHANGED
@@ -60,7 +60,7 @@ export function buildSpawnEnv(
60
60
  parentEnv: NodeJS.ProcessEnv,
61
61
  claudeHome: string,
62
62
  context: DispatchOpts['context'],
63
- opts: { allowApiKey: boolean; effortLevel?: string },
63
+ opts: { allowApiKey: boolean; effortLevel?: string; wikiMountRoot?: string },
64
64
  ): NodeJS.ProcessEnv {
65
65
  const env: NodeJS.ProcessEnv = { ...parentEnv };
66
66
  if (!opts.allowApiKey) {
@@ -80,6 +80,13 @@ export function buildSpawnEnv(
80
80
  PRLL_CONTEXT_FILE: context.contextFilePath ?? '',
81
81
  PRLL_STEP_ID_FILE: context.stepIdFilePath ?? '',
82
82
  };
83
+ // Pin the wiki workspace to the agent workspace (same convention as the
84
+ // OpenClaw runtime). Without this, `parall wiki` resolves mounts relative
85
+ // to the subprocess cwd — a `cd` into any subdirectory would silently
86
+ // split the agent across two wiki workspaces. Operator-set env wins.
87
+ if (!result.PRLL_WIKI_MOUNT_ROOT?.trim() && opts.wikiMountRoot) {
88
+ result.PRLL_WIKI_MOUNT_ROOT = opts.wikiMountRoot;
89
+ }
83
90
  if (opts.effortLevel) {
84
91
  result.CLAUDE_CODE_EFFORT_LEVEL = opts.effortLevel;
85
92
  }
@@ -469,7 +476,11 @@ export class ClaudeCodeAdapter implements DispatchAdapter {
469
476
  process.env,
470
477
  this.opts.claudeHome,
471
478
  this.buildPlaceholderContext(sessionKey),
472
- { allowApiKey: this.opts.allowApiKey, effortLevel: this._effortLevel },
479
+ {
480
+ allowApiKey: this.opts.allowApiKey,
481
+ effortLevel: this._effortLevel,
482
+ wikiMountRoot: this.opts.workspaceDir,
483
+ },
473
484
  );
474
485
 
475
486
  log?.info(