@staff0rd/assist 0.329.1 → 0.329.3
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/dist/index.js +5 -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.329.
|
|
9
|
+
version: "0.329.3",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -3908,6 +3908,8 @@ var hooksSettings = {
|
|
|
3908
3908
|
hooks: {
|
|
3909
3909
|
UserPromptSubmit: on(RUNNING),
|
|
3910
3910
|
PreToolUse: on(RUNNING),
|
|
3911
|
+
// tool finished, agent resumes; restores running
|
|
3912
|
+
PostToolUse: on(RUNNING),
|
|
3911
3913
|
Stop: on(WAITING),
|
|
3912
3914
|
Notification: on(WAITING),
|
|
3913
3915
|
/* why: a tool/plan approval prompt appears mid-turn, after PreToolUse has
|
|
@@ -20728,7 +20730,7 @@ function ensureSpawnHelperExecutable() {
|
|
|
20728
20730
|
function spawnPty(args, cwd, sessionId) {
|
|
20729
20731
|
ensureSpawnHelperExecutable();
|
|
20730
20732
|
const shell = process.platform === "win32" ? "cmd.exe" : process.env.SHELL ?? "bash";
|
|
20731
|
-
const shellArgs = process.platform === "win32" ? ["/c", ...args] : ["-c", `exec ${args.map(shellEscape).join(" ")}`];
|
|
20733
|
+
const shellArgs = process.platform === "win32" ? ["/c", ...args] : ["-l", "-c", `exec ${args.map(shellEscape).join(" ")}`];
|
|
20732
20734
|
const { CLAUDE_CODE_CHILD_SESSION: _childSession, ...parentEnv } = process.env;
|
|
20733
20735
|
return pty.spawn(shell, shellArgs, {
|
|
20734
20736
|
name: "xterm-256color",
|
|
@@ -20737,6 +20739,7 @@ function spawnPty(args, cwd, sessionId) {
|
|
|
20737
20739
|
cwd: cwd ?? process.cwd(),
|
|
20738
20740
|
env: {
|
|
20739
20741
|
...parentEnv,
|
|
20742
|
+
ASSIST_SESSION: "1",
|
|
20740
20743
|
...sessionId && {
|
|
20741
20744
|
ASSIST_SESSION_ID: sessionId,
|
|
20742
20745
|
ASSIST_ACTIVITY_ID: sessionId
|