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 +1 -1
- package/src/context/linear.ts +6 -5
- package/src/index.ts +1 -1
package/package.json
CHANGED
package/src/context/linear.ts
CHANGED
|
@@ -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
|
|
47
|
-
// Examples: SPC-123, D6N-5, ABC-42
|
|
48
|
-
|
|
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
|
|
114
|
-
const ticketResult = await client.callTool("
|
|
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