ticketlens 0.2.1 → 0.3.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 CHANGED
@@ -164,6 +164,27 @@ Bot comments (Jira Automation, Jenkins, GitHub Actions) are automatically ignore
164
164
 
165
165
  ---
166
166
 
167
+ ### Collisions
168
+
169
+ ```bash
170
+ ticketlens collisions # Show branches that overlap with teammates [Team]
171
+ ticketlens collisions --json # Machine-readable output
172
+ ticketlens collisions --plain # Plain text, no ANSI colour
173
+ ```
174
+
175
+ Requires a Team license and at least one teammate in your group. Compares your current git branch's changed files against your teammates' recent branches (within 7 days). Reports each overlap as a collision: your branch, their branch, the shared files, and linked ticket keys.
176
+
177
+ ```
178
+ [1] feat/auth-refactor ↔ Jane Dev (feat/login-redesign)
179
+ Your tickets: PROJ-101
180
+ Their tickets: PROJ-88
181
+ Shared files: src/auth/LoginController.php, src/auth/guards.php
182
+ ```
183
+
184
+ Branches are captured automatically when you run `ticketlens triage --push`. No extra step required.
185
+
186
+ ---
187
+
167
188
  ### Review
168
189
 
169
190
  ```bash
@@ -417,6 +438,11 @@ ticketlens triage --profile=acme --stale=3 --static # Combine flags
417
438
  ticketlens triage --plain > my-tickets.md
418
439
  ticketlens triage --plain | llm "Which ticket is most urgent and why?"
419
440
 
441
+ # ── Collisions ────────────────────────────────────────────────────────────────
442
+ ticketlens collisions # Show branch collisions with teammates [Team]
443
+ ticketlens collisions --json # Machine-readable JSON output
444
+ ticketlens collisions --plain # Plain text, no ANSI colour
445
+
420
446
  # ── PR Review ─────────────────────────────────────────────────────────────────
421
447
  ticketlens review # Assemble PR review context from current branch
422
448
  ticketlens review --branch=main # Compare against main (auto-detected by default)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ticketlens",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "Jira CLI for developers — fetch ticket context, triage your queue, and stop tab-switching. Zero dependencies, all local.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,4 +1,4 @@
1
- <!-- jtb-skill-version: 0.2.1 -->
1
+ <!-- jtb-skill-version: 0.3.0 -->
2
2
  ---
3
3
  name: jtb
4
4
  description: Fetch a Jira ticket's full context (description, comments, linked issues, code references) and assemble a structured TicketBrief for implementation planning. Use when user types /jtb, mentions a Jira ticket key, or wants to plan work from a Jira ticket.
@@ -27,6 +27,10 @@ Fetches a Jira ticket and produces a structured brief with code references, then
27
27
  /jtb triage --stale=3 # custom aging threshold (days)
28
28
  /jtb triage --status=CR,QA # only check specific statuses
29
29
  /jtb triage --profile=acme # explicit profile override
30
+ /jtb triage --push # push snapshot + git branches to Console (Team)
31
+ /jtb triage --share # generate 24h share URL (Team)
32
+ /jtb collisions # show branch collisions with teammates (Team)
33
+ /jtb collisions --json # machine-readable output
30
34
  ```
31
35
 
32
36
  ## Prerequisites
@@ -63,6 +67,23 @@ Where `$EXTRA_ARGS` are any flags passed (e.g. `--stale=3 --status=QA --profile=
63
67
 
64
68
  ---
65
69
 
70
+ ### Collisions subcommand
71
+
72
+ If the first argument is `collisions`:
73
+
74
+ Run:
75
+ ```bash
76
+ node ~/.agents/skills/jtb/scripts/lib/run-collisions.mjs $EXTRA_ARGS
77
+ ```
78
+
79
+ Where `$EXTRA_ARGS` are any flags passed (e.g. `--json`, `--plain`).
80
+
81
+ Requires a Team license and at least one teammate in the same group. Compares your current branch's changed files against teammates' recent branches. Outputs a collision report or an empty-state message.
82
+
83
+ Display the script's stdout directly. No plan mode. Stop here.
84
+
85
+ ---
86
+
66
87
  ### Fetch ticket workflow (default)
67
88
 
68
89
  ### Step 1: Validate environment
@@ -38,6 +38,7 @@ export function printHelp({ stream = process.stdout } = {}) {
38
38
  ` ${s.brand('ticketlens')} ${s.dim('<TICKET-KEY>')} ${s.dim('[options]')} Fetch a ticket brief`,
39
39
  ` ${s.brand('ticketlens')} get ${s.dim('<TICKET-KEY>')} Same as above ${s.dim('(explicit alias)')}`,
40
40
  ` ${s.brand('ticketlens')} triage ${s.dim('[options]')} Scan your assigned tickets`,
41
+ ` ${s.brand('ticketlens')} collisions ${s.dim('[--json]')} Show branch collisions with teammates ${s.dim('[Team]')}`,
41
42
  ` ${s.brand('ticketlens')} review ${s.dim('[--branch=BRANCH]')} Code-review context brief from current branch`,
42
43
  ` ${s.brand('ticketlens')} standup ${s.dim('[--since=N]')} Standup summary from git log ${s.dim('(last 24h by default)')}`,
43
44
  ` ${s.brand('ticketlens')} compliance ${s.dim('<TICKET-KEY>')} Check requirements coverage ${s.dim('[Pro/Free 3/mo]')}`,