@staff0rd/assist 0.302.1 → 0.302.2

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/index.js +8 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { Command } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@staff0rd/assist",
9
- version: "0.302.1",
9
+ version: "0.302.2",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -2889,7 +2889,11 @@ function spawnClaude(prompt, options2 = {}) {
2889
2889
  if (permissionMode) {
2890
2890
  args.push("--permission-mode", permissionMode);
2891
2891
  }
2892
- const { ASSIST_ACTIVITY_ID: _activityId, ...env } = process.env;
2892
+ const {
2893
+ ASSIST_ACTIVITY_ID: _activityId,
2894
+ CLAUDE_CODE_CHILD_SESSION: _childSession,
2895
+ ...env
2896
+ } = process.env;
2893
2897
  const child = spawn3("claude", args, {
2894
2898
  stdio: "inherit",
2895
2899
  env
@@ -18763,13 +18767,14 @@ function spawnPty(args, cwd, sessionId) {
18763
18767
  ensureSpawnHelperExecutable();
18764
18768
  const shell = process.platform === "win32" ? "cmd.exe" : process.env.SHELL ?? "bash";
18765
18769
  const shellArgs = process.platform === "win32" ? ["/c", ...args] : ["-c", `exec ${args.map(shellEscape).join(" ")}`];
18770
+ const { CLAUDE_CODE_CHILD_SESSION: _childSession, ...parentEnv } = process.env;
18766
18771
  return pty.spawn(shell, shellArgs, {
18767
18772
  name: "xterm-256color",
18768
18773
  cols: 120,
18769
18774
  rows: 30,
18770
18775
  cwd: cwd ?? process.cwd(),
18771
18776
  env: {
18772
- ...process.env,
18777
+ ...parentEnv,
18773
18778
  ...sessionId && {
18774
18779
  ASSIST_SESSION_ID: sessionId,
18775
18780
  ASSIST_ACTIVITY_ID: sessionId
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.302.1",
3
+ "version": "0.302.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {