@staff0rd/assist 0.542.0 → 0.543.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/fix-conflict.md +69 -16
- package/dist/commands/sessions/web/bundle.js +104 -104
- package/dist/index.js +19 -9
- 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.543.0",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -8215,7 +8215,8 @@ function deriveHistoryFields(commandName, commandArgs, name) {
|
|
|
8215
8215
|
return fields;
|
|
8216
8216
|
}
|
|
8217
8217
|
function deriveSessionType(commandName, name) {
|
|
8218
|
-
if (commandName === "review-pr-comments"
|
|
8218
|
+
if (commandName === "review-pr-comments" || commandName === "fix-conflict")
|
|
8219
|
+
return "review";
|
|
8219
8220
|
if (KNOWN.includes(commandName))
|
|
8220
8221
|
return commandName;
|
|
8221
8222
|
if (commandName || name) return "prompt";
|
|
@@ -20650,7 +20651,7 @@ async function reviewPrComments(number, options2 = {}) {
|
|
|
20650
20651
|
|
|
20651
20652
|
// src/commands/fixConflict.ts
|
|
20652
20653
|
import { randomUUID as randomUUID7 } from "crypto";
|
|
20653
|
-
async function fixConflict(number) {
|
|
20654
|
+
async function fixConflict(number, options2 = {}) {
|
|
20654
20655
|
if (number) await checkoutPr(number);
|
|
20655
20656
|
const claudeSessionId = randomUUID7();
|
|
20656
20657
|
emitActivity({
|
|
@@ -20658,16 +20659,21 @@ async function fixConflict(number) {
|
|
|
20658
20659
|
name: "fix-conflict",
|
|
20659
20660
|
claudeSessionId
|
|
20660
20661
|
});
|
|
20661
|
-
const { done: done2 } = spawnClaude(
|
|
20662
|
-
|
|
20663
|
-
|
|
20664
|
-
|
|
20662
|
+
const { done: done2 } = spawnClaude(
|
|
20663
|
+
options2.rebase === true ? "/fix-conflict --rebase" : "/fix-conflict",
|
|
20664
|
+
{
|
|
20665
|
+
permissionMode: "auto",
|
|
20666
|
+
sessionId: claudeSessionId
|
|
20667
|
+
}
|
|
20668
|
+
);
|
|
20665
20669
|
await done2;
|
|
20666
20670
|
}
|
|
20667
20671
|
|
|
20668
20672
|
// src/commands/registerFixConflict.ts
|
|
20669
20673
|
function registerFixConflict(program2) {
|
|
20670
|
-
program2.command("fix-conflict").argument("[number]", "PR number to check out first").description("Launch Claude in /fix-conflict mode (single session)").action(
|
|
20674
|
+
program2.command("fix-conflict").argument("[number]", "PR number to check out first").option("--rebase", "Rebase onto the remote default instead of merging").description("Launch Claude in /fix-conflict mode (single session)").action(
|
|
20675
|
+
(number, options2) => fixConflict(number, options2)
|
|
20676
|
+
);
|
|
20671
20677
|
}
|
|
20672
20678
|
|
|
20673
20679
|
// src/commands/registerLaunch.ts
|
|
@@ -33400,7 +33406,11 @@ function isBacklogRunArgs(args) {
|
|
|
33400
33406
|
}
|
|
33401
33407
|
|
|
33402
33408
|
// src/commands/sessions/daemon/worktree/isPrCheckoutArgs.ts
|
|
33403
|
-
var CHECKOUT_COMMANDS = /* @__PURE__ */ new Set([
|
|
33409
|
+
var CHECKOUT_COMMANDS = /* @__PURE__ */ new Set([
|
|
33410
|
+
"review",
|
|
33411
|
+
"review-pr-comments",
|
|
33412
|
+
"fix-conflict"
|
|
33413
|
+
]);
|
|
33404
33414
|
function isPrCheckoutArgs(args) {
|
|
33405
33415
|
const [command, ...rest] = args;
|
|
33406
33416
|
if (!command || !CHECKOUT_COMMANDS.has(command)) return false;
|