@staff0rd/assist 0.228.0 → 0.230.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/claude/CLAUDE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  After any code change, run `/verify` to ensure all checks pass.
2
2
 
3
- The tool is invoked using the `assist` command and is installed globally. Use it directly (e.g., `assist commit "message"`). Do NOT try to invoke it via `npx tsx src/index.ts` or guess at the entry point.
3
+ `assist` is installed globally. Use it directly (e.g., `assist commit "message"`).
4
4
 
5
5
  When renaming TypeScript files or symbols, use the refactor commands instead of doing it manually:
6
6
  - `assist refactor rename file <source> <destination>` — rename/move a file and update all imports
@@ -11,4 +11,9 @@ When using extract, name the destination file after the exported function (e.g.
11
11
 
12
12
  Do not modify `claude/settings.json` without asking the user first. Only read-only commands should be added to the allow list — write operations (add, remove, set, delete) must require confirmation.
13
13
 
14
+ ## Fetching Jira context
14
15
  When the user mentions a Jira issue key (e.g. `BAD-671`, `PROJ-123`), use the Atlassian MCP to fetch context.
16
+
17
+
18
+ ## Commenting code
19
+ Do not include comments for standard logic or syntax. Only comment if the specific line involves unintuitive complexity or a hack.
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.228.0",
9
+ version: "0.230.0",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -5528,6 +5528,33 @@ function originDisplayName(origin) {
5528
5528
  return origin.slice(firstSlash + 1);
5529
5529
  }
5530
5530
 
5531
+ // src/commands/backlog/originDisplayLabels.ts
5532
+ function originDisplayLabels(origins) {
5533
+ const isLocal = (origin) => origin.startsWith("local:");
5534
+ const bareName = (origin) => {
5535
+ const full = originDisplayName(origin);
5536
+ const segments = full.split("/");
5537
+ return segments[segments.length - 1] ?? full;
5538
+ };
5539
+ const remoteCounts = /* @__PURE__ */ new Map();
5540
+ for (const origin of new Set(origins)) {
5541
+ if (isLocal(origin)) continue;
5542
+ const name = bareName(origin);
5543
+ remoteCounts.set(name, (remoteCounts.get(name) ?? 0) + 1);
5544
+ }
5545
+ const labels = /* @__PURE__ */ new Map();
5546
+ for (const origin of origins) {
5547
+ if (isLocal(origin)) {
5548
+ labels.set(origin, originDisplayName(origin));
5549
+ continue;
5550
+ }
5551
+ const name = bareName(origin);
5552
+ const collides = (remoteCounts.get(name) ?? 0) > 1;
5553
+ labels.set(origin, collides ? originDisplayName(origin) : name);
5554
+ }
5555
+ return labels;
5556
+ }
5557
+
5531
5558
  // src/commands/backlog/list/index.ts
5532
5559
  function filterItems(items2, options2) {
5533
5560
  if (options2.status) return items2.filter((i) => i.status === options2.status);
@@ -5542,7 +5569,10 @@ async function list2(options2) {
5542
5569
  console.log(chalk56.dim("Backlog is empty."));
5543
5570
  return;
5544
5571
  }
5545
- const repoNameOf = (item) => item.origin ? originDisplayName(item.origin) : "";
5572
+ const labels = originDisplayLabels(
5573
+ items2.flatMap((i) => i.origin ? [i.origin] : [])
5574
+ );
5575
+ const repoNameOf = (item) => item.origin ? labels.get(item.origin) ?? "" : "";
5546
5576
  const prefixWidth = options2.allRepos ? Math.max(0, ...items2.map((i) => repoNameOf(i).length)) : 0;
5547
5577
  for (const item of items2) {
5548
5578
  const repoPrefix2 = options2.allRepos ? `${chalk56.dim(repoNameOf(item).padEnd(prefixWidth))} ` : "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.228.0",
3
+ "version": "0.230.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {