threadlines 0.1.35 → 0.1.37

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.
@@ -333,7 +333,8 @@ async function checkCommand(options) {
333
333
  commitAuthorName: metadata.commitAuthorName,
334
334
  commitAuthorEmail: metadata.commitAuthorEmail,
335
335
  prTitle: metadata.prTitle,
336
- environment: environment
336
+ environment: environment,
337
+ cliVersion: CLI_VERSION
337
338
  });
338
339
  // 7. Display results (with filtering if --full not specified)
339
340
  displayResults(response, options.full || false);
@@ -421,18 +422,23 @@ function displayResults(response, showFull) {
421
422
  // Show attention items
422
423
  if (attentionItems.length > 0) {
423
424
  for (const item of attentionItems) {
424
- console.log(chalk_1.default.yellow(`⚠️ ${item.expertId}`));
425
+ console.log(chalk_1.default.yellow(`[attention] ${item.expertId}`));
425
426
  if (item.fileReferences && item.fileReferences.length > 0) {
427
+ // List all files as bullet points
426
428
  for (const fileRef of item.fileReferences) {
427
429
  const lineRef = item.lineReferences?.[item.fileReferences.indexOf(fileRef)];
428
430
  const lineStr = lineRef ? `:${lineRef}` : '';
429
- console.log(chalk_1.default.gray(` ${fileRef}${lineStr} - ${item.reasoning || 'Needs attention'}`));
431
+ console.log(chalk_1.default.gray(`* ${fileRef}${lineStr}`));
430
432
  }
431
433
  }
432
- else if (item.reasoning) {
433
- console.log(chalk_1.default.gray(` ${item.reasoning}`));
434
+ // Show reasoning once at the end (if available)
435
+ if (item.reasoning) {
436
+ console.log(chalk_1.default.gray(item.reasoning));
434
437
  }
438
+ else if (!item.fileReferences || item.fileReferences.length === 0) {
439
+ console.log(chalk_1.default.gray('Needs attention'));
440
+ }
441
+ console.log(''); // Empty line between threadlines
435
442
  }
436
- console.log('');
437
443
  }
438
444
  }
@@ -145,7 +145,7 @@ async function getCommitAuthorForEnvironment(environment, repoRoot, commitSha) {
145
145
  }
146
146
  try {
147
147
  const eventData = JSON.parse(fs.readFileSync(eventPath, 'utf-8'));
148
- // For push events, use head_commit.author
148
+ // For push events, use head_commit.author
149
149
  if (eventData.head_commit?.author) {
150
150
  return {
151
151
  name: eventData.head_commit.author.name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "threadlines",
3
- "version": "0.1.35",
3
+ "version": "0.1.37",
4
4
  "description": "Threadline CLI - AI-powered linter based on your natural language documentation",
5
5
  "main": "dist/index.js",
6
6
  "bin": {