@staff0rd/assist 0.93.3 → 0.93.4

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.
@@ -8,10 +8,10 @@ First run `assist commit status` to see the current state of the working tree.
8
8
 
9
9
  Then either:
10
10
  - `assist commit "your message"` to commit already-staged changes, or
11
- - `assist commit <file1> <file2> ... "your message"` to stage files and commit
11
+ - `assist commit "your message" <file1> <file2> ...` to stage files and commit
12
12
 
13
13
  Where:
14
- - Each file argument is a path to git add before committing
15
- - The last argument is the commit message
14
+ - The first argument is the commit message
15
+ - Any subsequent arguments are paths to git add before committing
16
16
  - The commit message is 40 characters or less
17
17
  - The commit message does not reference Claude
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.3",
9
+ version: "0.93.4",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -286,11 +286,11 @@ function commit(args) {
286
286
  return;
287
287
  }
288
288
  if (args.length < 1) {
289
- console.error("Usage: assist commit [files...] <message>");
289
+ console.error("Usage: assist commit <message> [files...]");
290
290
  process.exit(1);
291
291
  }
292
- const message = args[args.length - 1];
293
- const files = args.slice(0, -1);
292
+ const message = args[0];
293
+ const files = args.slice(1);
294
294
  const config = loadConfig();
295
295
  validateMessage(message, config);
296
296
  execCommit(files, message, config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.93.3",
3
+ "version": "0.93.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {