@staff0rd/assist 0.280.0 → 0.281.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.
- package/dist/commands/sessions/web/bundle.js +40 -40
- package/dist/index.js +32 -28
- 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.
|
|
9
|
+
version: "0.281.0",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -5309,21 +5309,25 @@ var menuItems = [
|
|
|
5309
5309
|
];
|
|
5310
5310
|
|
|
5311
5311
|
// src/commands/sessions/web/restartMenu/reExecWebServer.ts
|
|
5312
|
-
import {
|
|
5312
|
+
import { spawnSync } from "child_process";
|
|
5313
|
+
function resolveExecve() {
|
|
5314
|
+
return typeof process.execve === "function" ? process.execve.bind(process) : null;
|
|
5315
|
+
}
|
|
5313
5316
|
function reExecWebServer(deps2 = {}) {
|
|
5314
5317
|
const {
|
|
5315
5318
|
beforeExec,
|
|
5316
|
-
|
|
5319
|
+
execveFn = resolveExecve(),
|
|
5320
|
+
spawnSyncFn = spawnSync,
|
|
5317
5321
|
exit = (code) => process.exit(code)
|
|
5318
5322
|
} = deps2;
|
|
5319
5323
|
beforeExec?.();
|
|
5324
|
+
if (execveFn) {
|
|
5325
|
+
execveFn(process.execPath, process.argv, process.env);
|
|
5326
|
+
return;
|
|
5327
|
+
}
|
|
5320
5328
|
const [, ...args] = process.argv;
|
|
5321
|
-
const
|
|
5322
|
-
|
|
5323
|
-
detached: true
|
|
5324
|
-
});
|
|
5325
|
-
child.unref();
|
|
5326
|
-
exit(0);
|
|
5329
|
+
const result = spawnSyncFn(process.execPath, args, { stdio: "inherit" });
|
|
5330
|
+
exit(result.status ?? 0);
|
|
5327
5331
|
}
|
|
5328
5332
|
|
|
5329
5333
|
// src/commands/sessions/web/restartMenu/resolveOptions.ts
|
|
@@ -5750,7 +5754,7 @@ function registerImportCommand(cmd) {
|
|
|
5750
5754
|
import chalk54 from "chalk";
|
|
5751
5755
|
|
|
5752
5756
|
// src/commands/backlog/add/shared.ts
|
|
5753
|
-
import { spawnSync } from "child_process";
|
|
5757
|
+
import { spawnSync as spawnSync2 } from "child_process";
|
|
5754
5758
|
import { mkdtempSync, readFileSync as readFileSync15, unlinkSync as unlinkSync6, writeFileSync as writeFileSync15 } from "fs";
|
|
5755
5759
|
import { tmpdir } from "os";
|
|
5756
5760
|
import { join as join19 } from "path";
|
|
@@ -5796,7 +5800,7 @@ function openEditor() {
|
|
|
5796
5800
|
const dir = mkdtempSync(join19(tmpdir(), "assist-"));
|
|
5797
5801
|
const filePath = join19(dir, "description.md");
|
|
5798
5802
|
writeFileSync15(filePath, "");
|
|
5799
|
-
const result =
|
|
5803
|
+
const result = spawnSync2(editor, [filePath], { stdio: "inherit" });
|
|
5800
5804
|
if (result.status !== 0) {
|
|
5801
5805
|
unlinkSync6(filePath);
|
|
5802
5806
|
return void 0;
|
|
@@ -9841,7 +9845,7 @@ function aggregateCommitters(authorLists) {
|
|
|
9841
9845
|
}
|
|
9842
9846
|
|
|
9843
9847
|
// src/shared/runGhGraphql.ts
|
|
9844
|
-
import { spawnSync as
|
|
9848
|
+
import { spawnSync as spawnSync3 } from "child_process";
|
|
9845
9849
|
import { unlinkSync as unlinkSync8, writeFileSync as writeFileSync20 } from "fs";
|
|
9846
9850
|
import { tmpdir as tmpdir4 } from "os";
|
|
9847
9851
|
import { join as join29 } from "path";
|
|
@@ -9872,7 +9876,7 @@ function runGhGraphql(mutation, vars) {
|
|
|
9872
9876
|
const queryFile = join29(tmpdir4(), `gh-query-${Date.now()}.graphql`);
|
|
9873
9877
|
writeFileSync20(queryFile, mutation);
|
|
9874
9878
|
try {
|
|
9875
|
-
const result =
|
|
9879
|
+
const result = spawnSync3("gh", buildArgs2(queryFile, vars), {
|
|
9876
9880
|
encoding: "utf-8"
|
|
9877
9881
|
});
|
|
9878
9882
|
if (result.status !== 0) throw new Error(result.stderr || result.stdout);
|
|
@@ -12055,7 +12059,7 @@ function registerRavendb(program2) {
|
|
|
12055
12059
|
}
|
|
12056
12060
|
|
|
12057
12061
|
// src/commands/refactor/check/index.ts
|
|
12058
|
-
import { spawn as
|
|
12062
|
+
import { spawn as spawn5 } from "child_process";
|
|
12059
12063
|
import * as path26 from "path";
|
|
12060
12064
|
|
|
12061
12065
|
// src/commands/refactor/logViolations.ts
|
|
@@ -12203,7 +12207,7 @@ function getViolations(pattern2, options2 = {}, maxLines = DEFAULT_MAX_LINES) {
|
|
|
12203
12207
|
// src/commands/refactor/check/index.ts
|
|
12204
12208
|
function runScript(script, cwd) {
|
|
12205
12209
|
return new Promise((resolve16) => {
|
|
12206
|
-
const child =
|
|
12210
|
+
const child = spawn5("npm", ["run", script], {
|
|
12207
12211
|
stdio: "pipe",
|
|
12208
12212
|
shell: true,
|
|
12209
12213
|
cwd
|
|
@@ -14465,9 +14469,9 @@ var MultiSpinner = class {
|
|
|
14465
14469
|
};
|
|
14466
14470
|
|
|
14467
14471
|
// src/commands/review/ensureCodexAvailable.ts
|
|
14468
|
-
import { spawnSync as
|
|
14472
|
+
import { spawnSync as spawnSync4 } from "child_process";
|
|
14469
14473
|
function runNpmInstall() {
|
|
14470
|
-
const result =
|
|
14474
|
+
const result = spawnSync4("npm", ["install", "-g", "@openai/codex"], {
|
|
14471
14475
|
stdio: "inherit",
|
|
14472
14476
|
shell: true
|
|
14473
14477
|
});
|
|
@@ -14760,7 +14764,7 @@ function reportReviewerToolUse(name, use, spinner) {
|
|
|
14760
14764
|
}
|
|
14761
14765
|
|
|
14762
14766
|
// src/commands/review/runStreamingChild.ts
|
|
14763
|
-
import { spawn as
|
|
14767
|
+
import { spawn as spawn6 } from "child_process";
|
|
14764
14768
|
|
|
14765
14769
|
// src/commands/review/attachLineParser.ts
|
|
14766
14770
|
function flushBuffer(buffer, onLine) {
|
|
@@ -14911,7 +14915,7 @@ function writeStdinSafely(child, payload) {
|
|
|
14911
14915
|
}
|
|
14912
14916
|
}
|
|
14913
14917
|
function startChild(spec) {
|
|
14914
|
-
const child =
|
|
14918
|
+
const child = spawn6(spec.command, spec.args, {
|
|
14915
14919
|
stdio: ["pipe", "pipe", "pipe"],
|
|
14916
14920
|
shell: process.platform === "win32"
|
|
14917
14921
|
});
|
|
@@ -16631,7 +16635,7 @@ function registerVerify(program2) {
|
|
|
16631
16635
|
}
|
|
16632
16636
|
|
|
16633
16637
|
// src/commands/voice/devices.ts
|
|
16634
|
-
import { spawnSync as
|
|
16638
|
+
import { spawnSync as spawnSync5 } from "child_process";
|
|
16635
16639
|
import { join as join45 } from "path";
|
|
16636
16640
|
|
|
16637
16641
|
// src/commands/voice/shared.ts
|
|
@@ -16664,7 +16668,7 @@ function getLockFile() {
|
|
|
16664
16668
|
// src/commands/voice/devices.ts
|
|
16665
16669
|
function devices() {
|
|
16666
16670
|
const script = join45(getPythonDir(), "list_devices.py");
|
|
16667
|
-
|
|
16671
|
+
spawnSync5(getVenvPython(), [script], { stdio: "inherit" });
|
|
16668
16672
|
}
|
|
16669
16673
|
|
|
16670
16674
|
// src/commands/voice/logs.ts
|
|
@@ -16696,7 +16700,7 @@ function logs(options2) {
|
|
|
16696
16700
|
}
|
|
16697
16701
|
|
|
16698
16702
|
// src/commands/voice/setup.ts
|
|
16699
|
-
import { spawnSync as
|
|
16703
|
+
import { spawnSync as spawnSync6 } from "child_process";
|
|
16700
16704
|
import { mkdirSync as mkdirSync18 } from "fs";
|
|
16701
16705
|
import { join as join47 } from "path";
|
|
16702
16706
|
|
|
@@ -16757,7 +16761,7 @@ function setup() {
|
|
|
16757
16761
|
bootstrapVenv();
|
|
16758
16762
|
console.log("\nDownloading models...\n");
|
|
16759
16763
|
const script = join47(getPythonDir(), "setup_models.py");
|
|
16760
|
-
const result =
|
|
16764
|
+
const result = spawnSync6(getVenvPython(), [script], {
|
|
16761
16765
|
stdio: "inherit",
|
|
16762
16766
|
env: { ...process.env, VOICE_LOG_FILE: voicePaths.log }
|
|
16763
16767
|
});
|
|
@@ -16768,7 +16772,7 @@ function setup() {
|
|
|
16768
16772
|
}
|
|
16769
16773
|
|
|
16770
16774
|
// src/commands/voice/start.ts
|
|
16771
|
-
import { spawn as
|
|
16775
|
+
import { spawn as spawn7 } from "child_process";
|
|
16772
16776
|
import { mkdirSync as mkdirSync19, writeFileSync as writeFileSync30 } from "fs";
|
|
16773
16777
|
import { join as join48 } from "path";
|
|
16774
16778
|
|
|
@@ -16783,11 +16787,11 @@ function buildDaemonEnv(options2) {
|
|
|
16783
16787
|
// src/commands/voice/start.ts
|
|
16784
16788
|
function spawnForeground(python, script, env) {
|
|
16785
16789
|
console.log("Starting voice daemon in foreground...");
|
|
16786
|
-
const child =
|
|
16790
|
+
const child = spawn7(python, [script], { stdio: "inherit", env });
|
|
16787
16791
|
child.on("exit", (code) => process.exit(code ?? 0));
|
|
16788
16792
|
}
|
|
16789
16793
|
function spawnBackground(python, script, env) {
|
|
16790
|
-
const child =
|
|
16794
|
+
const child = spawn7(python, [script], {
|
|
16791
16795
|
detached: true,
|
|
16792
16796
|
stdio: "ignore",
|
|
16793
16797
|
env
|
|
@@ -17264,7 +17268,7 @@ function runPreCommands(pre, cwd) {
|
|
|
17264
17268
|
}
|
|
17265
17269
|
|
|
17266
17270
|
// src/commands/run/spawnRunCommand.ts
|
|
17267
|
-
import { execFileSync as execFileSync8, spawn as
|
|
17271
|
+
import { execFileSync as execFileSync8, spawn as spawn8 } from "child_process";
|
|
17268
17272
|
import { existsSync as existsSync48 } from "fs";
|
|
17269
17273
|
import { dirname as dirname25, join as join50, resolve as resolve11 } from "path";
|
|
17270
17274
|
function resolveCommand2(command) {
|
|
@@ -17280,7 +17284,7 @@ function resolveCommand2(command) {
|
|
|
17280
17284
|
}
|
|
17281
17285
|
function spawnRunCommand(command, args, env, cwd, quiet) {
|
|
17282
17286
|
const start3 = Date.now();
|
|
17283
|
-
const child =
|
|
17287
|
+
const child = spawn8(resolveCommand2(command), args, {
|
|
17284
17288
|
stdio: quiet ? "pipe" : "inherit",
|
|
17285
17289
|
env: env ? { ...process.env, ...expandEnv(env) } : void 0,
|
|
17286
17290
|
cwd
|