@staff0rd/assist 0.263.1 → 0.263.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.
- package/dist/index.js +7 -4
- 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.263.
|
|
9
|
+
version: "0.263.2",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -3614,8 +3614,9 @@ function removeActivity(sessionId) {
|
|
|
3614
3614
|
import { spawn as spawn3 } from "child_process";
|
|
3615
3615
|
function spawnClaude(prompt, options2 = {}) {
|
|
3616
3616
|
const args = [prompt];
|
|
3617
|
-
|
|
3618
|
-
|
|
3617
|
+
const permissionMode = options2.permissionMode ?? (options2.allowEdits ? "auto" : void 0);
|
|
3618
|
+
if (permissionMode) {
|
|
3619
|
+
args.push("--permission-mode", permissionMode);
|
|
3619
3620
|
}
|
|
3620
3621
|
const { ASSIST_ACTIVITY_ID: _activityId, ...env } = process.env;
|
|
3621
3622
|
const child = spawn3("claude", args, {
|
|
@@ -10028,7 +10029,9 @@ async function reviewComments(number) {
|
|
|
10028
10029
|
process.exit(1);
|
|
10029
10030
|
}
|
|
10030
10031
|
}
|
|
10031
|
-
const { done: done2 } = spawnClaude("/review-comments", {
|
|
10032
|
+
const { done: done2 } = spawnClaude("/review-comments", {
|
|
10033
|
+
permissionMode: "acceptEdits"
|
|
10034
|
+
});
|
|
10032
10035
|
await done2;
|
|
10033
10036
|
}
|
|
10034
10037
|
|