specvector 0.1.5 → 0.1.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "specvector",
3
- "version": "0.1.5",
3
+ "version": "0.1.8",
4
4
  "description": "Context-aware AI code review using Model Context Protocol (MCP)",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -43,9 +43,10 @@ export function extractTicketId(
43
43
  prTitle?: string,
44
44
  prBody?: string
45
45
  ): string | null {
46
- // Linear ticket pattern: 2-4 alphanumeric chars (at least one letter), hyphen, 1+ digits
47
- // Examples: SPC-123, D6N-5, ABC-42
48
- const ticketPattern = /\b([A-Z0-9]{2,4}-\d+)\b/;
46
+ // Linear ticket pattern: 2-4 chars starting with letter, hyphen, 1+ digits
47
+ // Examples: SPC-123, D6N-5, ABC-42, ENG-4412
48
+ // Note: Don't use \b at end - underscore is a word char and breaks matching for "ENG-4412_feature"
49
+ const ticketPattern = /\b([A-Z][A-Z0-9]{1,3}-\d+)/;
49
50
 
50
51
  // Try branch name first (most reliable)
51
52
  if (branchName) {
@@ -110,8 +111,8 @@ export async function fetchLinearContext(
110
111
  const client = clientResult.value;
111
112
 
112
113
  try {
113
- // Fetch ticket details
114
- const ticketResult = await client.callTool("get_ticket", { ticket_id: ticketId });
114
+ // Fetch issue details using Linear MCP
115
+ const ticketResult = await client.callTool("get_issue", { issue_id: ticketId });
115
116
 
116
117
  if (!ticketResult.ok) {
117
118
  return err({
package/src/index.ts CHANGED
@@ -244,4 +244,4 @@ function generateMockReview(filesReviewed: number): import("./types/review").Rev
244
244
  main().catch((error) => {
245
245
  console.error("Fatal error:", error);
246
246
  process.exit(1);
247
- });
247
+ });