@staff0rd/assist 0.798.0 → 0.800.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/README.md +2 -2
- package/claude/commands/review-high-level.md +5 -3
- package/dist/commands/sessions/web/bundle.js +394 -394
- package/dist/index.js +16 -7
- 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.800.0",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -34311,13 +34311,13 @@ function registerRefactor(program2) {
|
|
|
34311
34311
|
registerRestructure(refactorCommand);
|
|
34312
34312
|
}
|
|
34313
34313
|
|
|
34314
|
-
// src/commands/review/
|
|
34314
|
+
// src/commands/review/checkoutPrSession.ts
|
|
34315
34315
|
import { randomUUID as randomUUID18 } from "crypto";
|
|
34316
|
-
async function
|
|
34316
|
+
async function checkoutPrSession(number, prompt = "") {
|
|
34317
34317
|
await checkoutPr(number);
|
|
34318
34318
|
const claudeSessionId = randomUUID18();
|
|
34319
34319
|
emitActivity({ kind: "command", name: "review", claudeSessionId });
|
|
34320
|
-
const { done: done2 } = spawnClaude(
|
|
34320
|
+
const { done: done2 } = spawnClaude(prompt, {
|
|
34321
34321
|
permissionMode: "acceptEdits",
|
|
34322
34322
|
sessionId: claudeSessionId
|
|
34323
34323
|
});
|
|
@@ -37651,7 +37651,12 @@ async function review(options2 = {}) {
|
|
|
37651
37651
|
startReviewLog();
|
|
37652
37652
|
const invokedIn = resolveRepoRoot();
|
|
37653
37653
|
if (options2.checkoutOnly && options2.number)
|
|
37654
|
-
return
|
|
37654
|
+
return checkoutPrSession(options2.number);
|
|
37655
|
+
if (options2.highLevel && options2.number && !isClaudeCode())
|
|
37656
|
+
return checkoutPrSession(
|
|
37657
|
+
options2.number,
|
|
37658
|
+
`/review-high-level ${options2.number}${options2.force ? " --force" : ""}`
|
|
37659
|
+
);
|
|
37655
37660
|
emitActivity({ kind: "command", name: "review" });
|
|
37656
37661
|
if (!options2.number)
|
|
37657
37662
|
return options2.highLevel ? runHighLevelReview(void 0, { force: options2.force }) : reviewPr(invokedIn, options2);
|
|
@@ -37668,7 +37673,7 @@ function addReviewModeOptions(command) {
|
|
|
37668
37673
|
"Check the PR out and start an idle interactive Claude session in the checkout tree instead of reviewing; requires a PR number and cannot be combined with --refine, --apply, --backlog or --submit"
|
|
37669
37674
|
).option(
|
|
37670
37675
|
"--high-level",
|
|
37671
|
-
"Skip the LLM review; check the PR branch out and step through the high-level review checklist in the web UI preview pane, backed by the changed-file tree and the diffs of review.highLevel.criticalPaths, writing the verdict, per-item state and comments to ~/.assist/high-level-reviews/. A review already saved for the same head SHA is reopened unless --force is passed. Nothing is posted to GitHub; cannot be combined with --refine, --apply, --backlog, --submit or --checkout-only"
|
|
37676
|
+
"Skip the LLM review; check the PR branch out and step through the high-level review checklist in the web UI preview pane. Given a PR number outside a Claude session, it checks the PR out and starts a Claude session running /review-high-level <number>, which opens the checklist as a background task so the agent can answer questions while it is open; inside a Claude session it opens the checklist directly. The checklist is backed by the changed-file tree and the diffs of review.highLevel.criticalPaths, writing the verdict, per-item state and comments to ~/.assist/high-level-reviews/. A review already saved for the same head SHA is reopened unless --force is passed. Nothing is posted to GitHub; cannot be combined with --refine, --apply, --backlog, --submit or --checkout-only"
|
|
37672
37677
|
).option(
|
|
37673
37678
|
"--configure",
|
|
37674
37679
|
"With --high-level: review nothing and instead ask for review.highLevel.criticalPaths, uiPaths and descriptionWordCap one at a time, each prefilled with its current value or, when unset, globs Claude proposes from this repo's own tree, then write the answers in one pass to either this repo's override in the shared assist database or the project assist.yml. A blank answer leaves that key unset"
|
|
@@ -42853,7 +42858,11 @@ function spawnPty(args, cwd, sessionId, extraEnv) {
|
|
|
42853
42858
|
ensureSpawnHelperExecutable();
|
|
42854
42859
|
const shell = process.platform === "win32" ? "cmd.exe" : process.env.SHELL ?? "bash";
|
|
42855
42860
|
const shellArgs = process.platform === "win32" ? ["/c", ...args] : ["-l", "-c", `exec ${args.map(shellEscape).join(" ")}`];
|
|
42856
|
-
const {
|
|
42861
|
+
const {
|
|
42862
|
+
CLAUDE_CODE_CHILD_SESSION: _childSession,
|
|
42863
|
+
CLAUDECODE: _claudeCode,
|
|
42864
|
+
...parentEnv
|
|
42865
|
+
} = process.env;
|
|
42857
42866
|
return pty.spawn(shell, shellArgs, {
|
|
42858
42867
|
name: "xterm-256color",
|
|
42859
42868
|
cols: 120,
|