@staff0rd/assist 0.93.1 → 0.93.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/README.md +1 -0
- package/claude/commands/pr.md +7 -0
- package/dist/index.js +18 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,6 +35,7 @@ After installation, the `assist` command will be available globally. You can als
|
|
|
35
35
|
- `/commit` - Commit only relevant files from the session
|
|
36
36
|
- `/devlog` - Generate devlog entry for the next unversioned day
|
|
37
37
|
- `/next-backlog-item` - Pick and implement the next backlog item
|
|
38
|
+
- `/pr` - Raise a PR with a concise description
|
|
38
39
|
- `/refactor` - Run refactoring checks for code quality
|
|
39
40
|
- `/restructure` - Analyze and restructure tightly-coupled files
|
|
40
41
|
- `/review-comments` - Process PR review comments one by one
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Raise a PR with a concise description
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Raise a pull request for the current branch. Use a concise description with no headers. Do not reference Claude or any AI assistance in the title or body.
|
|
6
|
+
|
|
7
|
+
Use `gh pr create` to create the PR. Keep the title short and the body to a brief plain-text summary of the changes.
|
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.93.
|
|
9
|
+
version: "0.93.2",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -220,6 +220,9 @@ function getTranscriptConfig() {
|
|
|
220
220
|
// src/shared/shellQuote.ts
|
|
221
221
|
function shellQuote(arg) {
|
|
222
222
|
if (/[^a-zA-Z0-9_./:=@%^+,-]/.test(arg)) {
|
|
223
|
+
if (process.platform === "win32") {
|
|
224
|
+
return `"${arg.replace(/"/g, '\\"')}"`;
|
|
225
|
+
}
|
|
223
226
|
return `'${arg.replace(/'/g, "'\\''")}'`;
|
|
224
227
|
}
|
|
225
228
|
return arg;
|
|
@@ -275,19 +278,26 @@ function execCommit(files, message, config) {
|
|
|
275
278
|
process.exit(1);
|
|
276
279
|
}
|
|
277
280
|
}
|
|
278
|
-
function commit(args) {
|
|
281
|
+
function commit(args, options2) {
|
|
279
282
|
if (args[0] === "status") {
|
|
280
283
|
execSync("git status && echo '---DIFF---' && git diff", {
|
|
281
284
|
stdio: "inherit"
|
|
282
285
|
});
|
|
283
286
|
return;
|
|
284
287
|
}
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
+
let message;
|
|
289
|
+
let files;
|
|
290
|
+
if (options2.message) {
|
|
291
|
+
message = options2.message;
|
|
292
|
+
files = args;
|
|
293
|
+
} else {
|
|
294
|
+
if (args.length < 1) {
|
|
295
|
+
console.error("Usage: assist commit [-m <message>] [files...] <message>");
|
|
296
|
+
process.exit(1);
|
|
297
|
+
}
|
|
298
|
+
message = args[args.length - 1];
|
|
299
|
+
files = args.slice(0, -1);
|
|
288
300
|
}
|
|
289
|
-
const message = args[args.length - 1];
|
|
290
|
-
const files = args.slice(0, -1);
|
|
291
301
|
const config = loadConfig();
|
|
292
302
|
validateMessage(message, config);
|
|
293
303
|
execCommit(files, message, config);
|
|
@@ -6180,7 +6190,7 @@ var program = new Command();
|
|
|
6180
6190
|
program.name("assist").description("CLI application").version(package_default.version);
|
|
6181
6191
|
program.command("sync").description("Copy command files to ~/.claude/commands").option("-y, --yes", "Overwrite settings.json without prompting").action((options2) => sync(options2));
|
|
6182
6192
|
program.command("init").description("Initialize VS Code and verify configurations").action(init4);
|
|
6183
|
-
program.command("commit").description("Create a git commit with validation").argument("
|
|
6193
|
+
program.command("commit").description("Create a git commit with validation").argument("[args...]", "status | [files...] [message]").option("-m, --message <message>", "Commit message").action(commit);
|
|
6184
6194
|
var configCommand = program.command("config").description("View and modify assist.yml configuration");
|
|
6185
6195
|
configCommand.command("set <key> <value>").description("Set a config value (e.g. commit.push true)").action(configSet);
|
|
6186
6196
|
configCommand.command("get <key>").description("Get a config value").action(configGet);
|