github-portfolio-analyzer 1.4.0 → 1.4.1

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/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [1.4.1] - 2026-04-03
8
+
9
+ ### Fixed
10
+ - `classifyFork`: removed `pushed_at` heuristic from fallback logic. Forks without a successful upstream comparison now always return `passive`. Previously, recently-cloned forks with no own commits were incorrectly classified as `active`.
11
+
7
12
  ## [1.4.0] — 2026-04-03
8
13
 
9
14
  ### Added
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "github-portfolio-analyzer",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "commands": [
5
5
  { "id": "analyze" },
6
6
  { "id": "ingest-ideas" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "github-portfolio-analyzer",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "CLI tool to analyze GitHub repos and portfolio ideas",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,11 +1,8 @@
1
- import { daysSince } from '../core/classification.js';
2
-
3
1
  const PAGE_SIZE = 100;
4
2
 
5
3
  /**
6
4
  * Classifies a fork as active or passive.
7
- * Active forks are either ahead of the upstream default branch or recently active
8
- * when upstream comparison metadata is unavailable.
5
+ * Active forks are ahead of the upstream default branch.
9
6
  */
10
7
  export async function classifyFork(client, repo, asOfDate = new Date().toISOString().slice(0, 10)) {
11
8
  if (!repo?.fork) {
@@ -13,9 +10,7 @@ export async function classifyFork(client, repo, asOfDate = new Date().toISOStri
13
10
  }
14
11
 
15
12
  const parent = repo.parent;
16
- const pushedAt = repo._pushedAt ?? repo.pushed_at ?? repo.pushedAt ?? null;
17
- const isRecentlyActive = pushedAt ? daysSince(pushedAt, asOfDate) <= 90 : false;
18
- const fallbackForkType = isRecentlyActive ? 'active' : 'passive';
13
+ const fallbackForkType = 'passive';
19
14
 
20
15
  if (!parent) {
21
16
  return fallbackForkType;