@flagshark/core 2.0.0 → 2.1.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.
Files changed (68) hide show
  1. package/README.md +2 -0
  2. package/dist/config/schema.d.ts +112 -0
  3. package/dist/config/schema.d.ts.map +1 -1
  4. package/dist/config/schema.js +63 -0
  5. package/dist/config/schema.js.map +1 -1
  6. package/dist/detection/detectors/typescript.d.ts.map +1 -1
  7. package/dist/detection/detectors/typescript.js +41 -0
  8. package/dist/detection/detectors/typescript.js.map +1 -1
  9. package/dist/detection/feature-flag.d.ts +28 -0
  10. package/dist/detection/feature-flag.d.ts.map +1 -1
  11. package/dist/detection/helpers.d.ts +16 -0
  12. package/dist/detection/helpers.d.ts.map +1 -1
  13. package/dist/detection/helpers.js +117 -6
  14. package/dist/detection/helpers.js.map +1 -1
  15. package/dist/detection/import-graph.d.ts +234 -0
  16. package/dist/detection/import-graph.d.ts.map +1 -0
  17. package/dist/detection/import-graph.js +641 -0
  18. package/dist/detection/import-graph.js.map +1 -0
  19. package/dist/detection/interface.d.ts +57 -0
  20. package/dist/detection/interface.d.ts.map +1 -1
  21. package/dist/detection/interface.js.map +1 -1
  22. package/dist/detection/polyglot-analyzer.d.ts +8 -0
  23. package/dist/detection/polyglot-analyzer.d.ts.map +1 -1
  24. package/dist/detection/polyglot-analyzer.js +2 -0
  25. package/dist/detection/polyglot-analyzer.js.map +1 -1
  26. package/dist/detection/tree-sitter/engine.d.ts.map +1 -1
  27. package/dist/detection/tree-sitter/engine.js +62 -15
  28. package/dist/detection/tree-sitter/engine.js.map +1 -1
  29. package/dist/detection/tree-sitter/parser-cache.d.ts +20 -0
  30. package/dist/detection/tree-sitter/parser-cache.d.ts.map +1 -1
  31. package/dist/detection/tree-sitter/parser-cache.js +32 -1
  32. package/dist/detection/tree-sitter/parser-cache.js.map +1 -1
  33. package/dist/output/json.d.ts.map +1 -1
  34. package/dist/output/json.js +28 -0
  35. package/dist/output/json.js.map +1 -1
  36. package/dist/output/markdown.d.ts.map +1 -1
  37. package/dist/output/markdown.js +47 -1
  38. package/dist/output/markdown.js.map +1 -1
  39. package/dist/output/text.d.ts.map +1 -1
  40. package/dist/output/text.js +85 -0
  41. package/dist/output/text.js.map +1 -1
  42. package/dist/providers/cross-reference.d.ts +24 -2
  43. package/dist/providers/cross-reference.d.ts.map +1 -1
  44. package/dist/providers/cross-reference.js +74 -7
  45. package/dist/providers/cross-reference.js.map +1 -1
  46. package/dist/providers/interface.d.ts +89 -2
  47. package/dist/providers/interface.d.ts.map +1 -1
  48. package/dist/providers/launchdarkly/client.d.ts +12 -0
  49. package/dist/providers/launchdarkly/client.d.ts.map +1 -1
  50. package/dist/providers/launchdarkly/client.js +163 -23
  51. package/dist/providers/launchdarkly/client.js.map +1 -1
  52. package/dist/providers/launchdarkly/types.d.ts +286 -0
  53. package/dist/providers/launchdarkly/types.d.ts.map +1 -1
  54. package/dist/providers/launchdarkly/types.js +56 -0
  55. package/dist/providers/launchdarkly/types.js.map +1 -1
  56. package/dist/providers/orchestrate.d.ts +34 -2
  57. package/dist/providers/orchestrate.d.ts.map +1 -1
  58. package/dist/providers/orchestrate.js +59 -7
  59. package/dist/providers/orchestrate.js.map +1 -1
  60. package/dist/scan-repo.d.ts +28 -0
  61. package/dist/scan-repo.d.ts.map +1 -1
  62. package/dist/scan-repo.js +290 -4
  63. package/dist/scan-repo.js.map +1 -1
  64. package/dist/staleness.d.ts +31 -1
  65. package/dist/staleness.d.ts.map +1 -1
  66. package/dist/staleness.js +55 -8
  67. package/dist/staleness.js.map +1 -1
  68. package/package.json +1 -1
@@ -33,10 +33,35 @@ function buildTable(flags) {
33
33
  return 'missing-in-platform';
34
34
  if (s.type === 'archived-in-platform')
35
35
  return 'archived-in-platform';
36
+ if (s.type === 'platform-too-old')
37
+ return 'platform-too-old';
38
+ if (s.type === 'platform-inactive')
39
+ return 'platform-inactive';
40
+ if (s.type === 'platform-launched')
41
+ return 'platform-launched';
36
42
  return s.description;
37
43
  })
38
44
  .join(', ');
39
45
  lines.push(`│ ${pad(sf.name, cols.flag)} │ ${pad(fileRef, cols.file)} │ ${pad(sf.age ?? 'unknown', cols.added)} │ ${pad(signalText, cols.signal)} │`);
46
+ // Compact second row when we have platform metadata to surface.
47
+ // Indented under the flag column, kept brief so the table doesn't
48
+ // explode in width. Skipped when there's nothing to say.
49
+ const metaParts = [];
50
+ if (sf.tags && sf.tags.length > 0) {
51
+ metaParts.push(`tags: ${sf.tags.join(', ')}`);
52
+ }
53
+ if (sf.maintainer) {
54
+ metaParts.push(`maintainer: ${sf.maintainer}`);
55
+ }
56
+ if (sf.platformStatus && sf.platformStatus !== 'active') {
57
+ metaParts.push(`platform-status: ${sf.platformStatus}`);
58
+ }
59
+ if (metaParts.length > 0) {
60
+ const metaText = metaParts.join(' • ');
61
+ // Wide layout — span all 4 column widths plus borders.
62
+ const totalWidth = cols.flag + cols.file + cols.added + cols.signal + 9; // 3 inner separators + 6 padding
63
+ lines.push(`│ ${pad('└─ ' + metaText, totalWidth)} │`);
64
+ }
40
65
  }
41
66
  lines.push(hBorder('└', '┴', '┘'));
42
67
  return lines.join('\n');
@@ -50,11 +75,53 @@ export function formatText(result, options) {
50
75
  if (result.excludedCount && result.excludedCount > 0) {
51
76
  lines.push(`(${result.excludedCount} excluded via .flagsharkignore + excludes)`);
52
77
  }
78
+ // Surface files where the detector errored. A small number is the long tail
79
+ // of edge cases (mid-edit syntax errors, exotic source files, etc.) — note
80
+ // it but don't shout. A large fraction means the analysis is materially
81
+ // incomplete (e.g. PostHog on 1.3.x: ~27% of files aborted from the python
82
+ // tree-sitter grammar) and the user needs to know before they trust the
83
+ // flag count or health score. Threshold of >5% picks up "noticeably broken"
84
+ // without firing on the dozen-files-out-of-ten-thousand case.
85
+ const parseErrorCount = result.parseErrorCount ?? 0;
86
+ if (parseErrorCount > 0 && result.filesScanned > 0) {
87
+ const pct = (parseErrorCount / result.filesScanned) * 100;
88
+ // Compare on the rounded value so the threshold and the displayed
89
+ // percentage cannot disagree. Pre-fix, `pct > 5` with `Math.round(pct)`
90
+ // could fire the warning branch while rendering "(5%)" — same number
91
+ // we document as the quiet/loud boundary in the comment above. See
92
+ // ultrareview bug_018.
93
+ const rounded = Math.round(pct);
94
+ const pctStr = pct >= 1 ? ` (${rounded}%)` : '';
95
+ if (rounded > 5) {
96
+ lines.push(`⚠ ${parseErrorCount} of ${result.filesScanned} files${pctStr} couldn't be parsed — results may be incomplete. See the "Parse errors during analysis" warning on stderr for the top failing patterns.`);
97
+ }
98
+ else {
99
+ lines.push(`(${parseErrorCount} file${parseErrorCount === 1 ? '' : 's'} couldn't be parsed — see the "Parse errors during analysis" warning above)`);
100
+ }
101
+ }
53
102
  if (result.totalFlags === 0) {
54
103
  lines.push('No feature flags detected.');
55
104
  lines.push('');
56
105
  lines.push('Supported providers: LaunchDarkly, Unleash, Flipt, Split.io, PostHog, and more.');
57
106
  lines.push('Run flagshark scan --help for configuration options.');
107
+ // Troubleshooting hint when a non-trivial repo turns up empty. Pre-fix,
108
+ // this was the single most common confused-user response: "I have 50
109
+ // feature flags, your scan found 0, what's wrong?". The hint surfaces
110
+ // the three real causes (SDK wrappers loaded at runtime, TS path
111
+ // aliases, config-struct flag systems) without falsely promising
112
+ // "this WILL find them"; see README#known-limitations for the design
113
+ // trade-offs that lead here. We only fire on repos large enough that
114
+ // "no flags at all" is suspicious (≥100 files); empty/tiny repos
115
+ // legitimately have no flags and don't deserve scolding.
116
+ const SUSPICIOUS_THRESHOLD = 100;
117
+ if (result.filesScanned >= SUSPICIOUS_THRESHOLD) {
118
+ lines.push('');
119
+ lines.push(`Expected results in this ${result.filesScanned}-file repo? Three patterns FlagShark can't see today:`);
120
+ lines.push(' • SDK loaded at runtime via window/globalThis (instead of static `import`)');
121
+ lines.push(' • TS path aliases (`@/...`, `~/...`) bridging the consumer file to the SDK');
122
+ lines.push(' • Typed config-struct flag systems (e.g. `Config().FeatureFlags.X`)');
123
+ lines.push('See https://github.com/FlagShark/flagshark#known-limitations for details + workarounds.');
124
+ }
58
125
  return lines.join('\n');
59
126
  }
60
127
  if (result.detectedProviders.length > 0) {
@@ -63,6 +130,24 @@ export function formatText(result, options) {
63
130
  const uniqueStaleNames = new Set(result.staleFlags.map((f) => f.name));
64
131
  const staleCount = uniqueStaleNames.size;
65
132
  lines.push(`Found ${result.totalFlags} feature flags, ${staleCount} stale`);
133
+ // Surface permanent-flag exclusions so users see WHY a flag they expected
134
+ // to appear in the stale table doesn't. Per-platform breakdown so the
135
+ // attribution is clear when multiple platforms are configured.
136
+ if (result.permanentByPlatform && Object.keys(result.permanentByPlatform).length > 0) {
137
+ for (const [platform, names] of Object.entries(result.permanentByPlatform)) {
138
+ if (names.length === 0)
139
+ continue;
140
+ const flagWord = names.length === 1 ? 'flag' : 'flags';
141
+ // Cap the inline list at 5 names to keep the line readable on
142
+ // medium-sized projects. Verbose mode could show all — but the
143
+ // existing verbose option drives the stale-table cap, not this.
144
+ // For now, a fixed cap: anyone with >5 permanent flags can see
145
+ // the full list in JSON output.
146
+ const preview = names.slice(0, 5).join(', ');
147
+ const overflow = names.length > 5 ? `, +${names.length - 5} more` : '';
148
+ lines.push(`${names.length} ${flagWord} excluded as permanent in ${platform}: ${preview}${overflow}`);
149
+ }
150
+ }
66
151
  if (staleCount > 0) {
67
152
  lines.push('');
68
153
  lines.push('Stale flags:');
@@ -1 +1 @@
1
- {"version":3,"file":"text.js","sourceRoot":"","sources":["../../src/output/text.ts"],"names":[],"mappings":"AAAA;;GAEG;AAWH,SAAS,WAAW,CAAC,OAAiD;IACpE,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAA;AAC1E,CAAC;AAED,SAAS,YAAY,CAAC,CAAsB;IAC1C,OAAO,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC,CA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AAgC,CAAC,CAAA;IACtF,CAAC;SAAM,CAAC;QACN,KAAK,CAAC,IAAI,CACR,sBAAsB,MAAM,CAAC,WAAW,SAAS,UAAU,IAAI,MAAM,CAAC,UAAU,mBAAmB,CACpG,CAAA;QACD,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QACd,KAAK,CAAC,IAAI,CAAC,0CAA0C,CAAC,CAAA;QACtD,KAAK,CAAC,IAAI,CAAC,2DAA2D,CAAC,CAAA;IACzE,CAAC;IAED,IAAI,MAAM,CAAC,aAAa,IAAI,MAAM,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC5D,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QACd,KAAK,CAAC,IAAI,CAAC,mBAAmB,MAAM,CAAC,aAAa,CAAC,MAAM,IAAI,CAAC,CAAA;QAC9D,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,aAAa,EAAE,CAAC;YACrC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAA;QACtB,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACzB,CAAC"}
@@ -1,13 +1,35 @@
1
1
  import type { FeatureFlag } from '../detection/feature-flag.js';
2
2
  import type { PlatformFlag, PlatformSignal } from './interface.js';
3
+ export interface CrossReferenceOptions {
4
+ /**
5
+ * Staleness threshold in days. When set, cross-reference can emit
6
+ * `platform-too-old` for matched flags whose platform-side
7
+ * `createdAt` exceeds the threshold — a code-independent staleness
8
+ * signal that's stronger than either code-age or platform-age alone.
9
+ * When unset, the platform-too-old signal is never emitted.
10
+ */
11
+ thresholdDays?: number;
12
+ }
3
13
  /**
4
14
  * Pure function: joins detected flag keys against a platform's flag list,
5
- * emits PlatformSignals for keys that are missing (error) or archived (warning).
15
+ * emits PlatformSignals based on the platform's view of each flag.
16
+ *
17
+ * Signal precedence (most-specific wins; only one primary signal per flag):
18
+ * 1. missing-in-platform — flag not in platform at all (error)
19
+ * 2. archived-in-platform — flag archived (warning)
20
+ * 3. platform-launched — LD says single variation for 7+ days (error)
21
+ * 4. platform-inactive — LD says no eval events for 7+ days (warning)
22
+ * 5. platform-permanent — user marked permanent (control signal)
23
+ * 6. platform-too-old — created > thresholdDays ago (warning)
24
+ *
25
+ * Permanent + too-old can coexist; permanent + inactive can coexist;
26
+ * permanent is the strongest CONTROL signal (it suppresses code-side
27
+ * heuristics) but doesn't displace platform-side activity signals.
6
28
  *
7
29
  * Does NOT surface platform flags with no code reference — that's a separate
8
30
  * "orphan platform flags" feature, out of scope.
9
31
  */
10
- export declare function crossReference(detectedFlags: Map<string, FeatureFlag[]>, platformFlags: PlatformFlag[], platformDisplayName: string): Map<string, PlatformSignal[]>;
32
+ export declare function crossReference(detectedFlags: Map<string, FeatureFlag[]>, platformFlags: PlatformFlag[], platformDisplayName: string, options?: CrossReferenceOptions): Map<string, PlatformSignal[]>;
11
33
  /**
12
34
  * Merge platform signals from multiple platforms into a single per-flag map.
13
35
  * If both LaunchDarkly and Unleash say a flag is missing, the flag's entry
@@ -1 +1 @@
1
- {"version":3,"file":"cross-reference.d.ts","sourceRoot":"","sources":["../../src/providers/cross-reference.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAElE;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,CAAC,EACzC,aAAa,EAAE,YAAY,EAAE,EAC7B,mBAAmB,EAAE,MAAM,GAC1B,GAAG,CAAC,MAAM,EAAE,cAAc,EAAE,CAAC,CAsB/B;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,EAAE,CAAC,EACnC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,EAAE,CAAC,GACpC,IAAI,CASN"}
1
+ {"version":3,"file":"cross-reference.d.ts","sourceRoot":"","sources":["../../src/providers/cross-reference.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAElE,MAAM,WAAW,qBAAqB;IACpC;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,cAAc,CAC5B,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,CAAC,EACzC,aAAa,EAAE,YAAY,EAAE,EAC7B,mBAAmB,EAAE,MAAM,EAC3B,OAAO,GAAE,qBAA0B,GAClC,GAAG,CAAC,MAAM,EAAE,cAAc,EAAE,CAAC,CAoF/B;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,EAAE,CAAC,EACnC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,EAAE,CAAC,GACpC,IAAI,CASN"}
@@ -1,28 +1,95 @@
1
1
  /**
2
2
  * Pure function: joins detected flag keys against a platform's flag list,
3
- * emits PlatformSignals for keys that are missing (error) or archived (warning).
3
+ * emits PlatformSignals based on the platform's view of each flag.
4
+ *
5
+ * Signal precedence (most-specific wins; only one primary signal per flag):
6
+ * 1. missing-in-platform — flag not in platform at all (error)
7
+ * 2. archived-in-platform — flag archived (warning)
8
+ * 3. platform-launched — LD says single variation for 7+ days (error)
9
+ * 4. platform-inactive — LD says no eval events for 7+ days (warning)
10
+ * 5. platform-permanent — user marked permanent (control signal)
11
+ * 6. platform-too-old — created > thresholdDays ago (warning)
12
+ *
13
+ * Permanent + too-old can coexist; permanent + inactive can coexist;
14
+ * permanent is the strongest CONTROL signal (it suppresses code-side
15
+ * heuristics) but doesn't displace platform-side activity signals.
4
16
  *
5
17
  * Does NOT surface platform flags with no code reference — that's a separate
6
18
  * "orphan platform flags" feature, out of scope.
7
19
  */
8
- export function crossReference(detectedFlags, platformFlags, platformDisplayName) {
20
+ export function crossReference(detectedFlags, platformFlags, platformDisplayName, options = {}) {
9
21
  const platformByKey = new Map(platformFlags.map((f) => [f.key, f]));
10
22
  const out = new Map();
23
+ const now = Date.now();
24
+ const thresholdMs = options.thresholdDays != null ? options.thresholdDays * 86_400_000 : null;
11
25
  for (const key of detectedFlags.keys()) {
12
26
  const platform = platformByKey.get(key);
13
27
  if (!platform) {
14
- out.set(key, [{
28
+ out.set(key, [
29
+ {
15
30
  type: 'missing-in-platform',
16
31
  severity: 'error',
17
32
  description: `referenced in code but not found in ${platformDisplayName}`,
18
- }]);
33
+ },
34
+ ]);
35
+ continue;
19
36
  }
20
- else if (platform.archived) {
21
- out.set(key, [{
37
+ if (platform.archived) {
38
+ out.set(key, [
39
+ {
22
40
  type: 'archived-in-platform',
23
41
  severity: 'warning',
24
42
  description: `archived in ${platformDisplayName}`,
25
- }]);
43
+ },
44
+ ]);
45
+ continue;
46
+ }
47
+ // Stack-able signals: platform-permanent (control), platform-too-old,
48
+ // platform-inactive/launched. A single flag can carry multiple.
49
+ const signals = [];
50
+ if (platform.status === 'launched') {
51
+ signals.push({
52
+ type: 'platform-launched',
53
+ severity: 'error',
54
+ description: `${platformDisplayName} reports this flag has served one variation for 7+ days — likely ready for removal`,
55
+ });
56
+ }
57
+ else if (platform.status === 'inactive') {
58
+ signals.push({
59
+ type: 'platform-inactive',
60
+ severity: 'warning',
61
+ description: `no evaluations recorded in ${platformDisplayName} in the last 7+ days`,
62
+ });
63
+ }
64
+ if (platform.permanent) {
65
+ // Control signal: tells staleness.ts to suppress age + low-usage
66
+ // signals. Filtered out of the user-facing StaleFlag.signals array
67
+ // before display. Kill-switches and other intentionally permanent
68
+ // flags should not be flagged as stale by code-side heuristics.
69
+ signals.push({
70
+ type: 'platform-permanent',
71
+ severity: 'info',
72
+ description: `marked permanent in ${platformDisplayName}`,
73
+ });
74
+ }
75
+ // platform-too-old: platform-side staleness independent of code age.
76
+ // Only fires when caller provided a threshold AND the platform
77
+ // exposed a createdAt timestamp. Permanent flags suppress this too —
78
+ // the user explicitly chose to keep a long-lived flag, so don't
79
+ // contradict them with a too-old warning.
80
+ if (!platform.permanent &&
81
+ thresholdMs != null &&
82
+ platform.createdAt &&
83
+ now - platform.createdAt.getTime() > thresholdMs) {
84
+ const ageDays = Math.floor((now - platform.createdAt.getTime()) / 86_400_000);
85
+ signals.push({
86
+ type: 'platform-too-old',
87
+ severity: 'warning',
88
+ description: `created in ${platformDisplayName} ${ageDays} days ago — past the ${options.thresholdDays}-day threshold`,
89
+ });
90
+ }
91
+ if (signals.length > 0) {
92
+ out.set(key, signals);
26
93
  }
27
94
  }
28
95
  return out;
@@ -1 +1 @@
1
- {"version":3,"file":"cross-reference.js","sourceRoot":"","sources":["../../src/providers/cross-reference.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAC5B,aAAyC,EACzC,aAA6B,EAC7B,mBAA2B;IAE3B,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;IACnE,MAAM,GAAG,GAAG,IAAI,GAAG,EAA4B,CAAA;IAE/C,KAAK,MAAM,GAAG,IAAI,aAAa,CAAC,IAAI,EAAE,EAAE,CAAC;QACvC,MAAM,QAAQ,GAAG,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;QACvC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;oBACZ,IAAI,EAAE,qBAAqB;oBAC3B,QAAQ,EAAE,OAAO;o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ACb,QAAQ,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAA;QAC3B,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAA;QAC7B,CAAC;IACH,CAAC;AACH,CAAC"}
@@ -5,6 +5,70 @@ export interface PlatformFlag {
5
5
  /** Each platform maps its concept (archived/disabled/stale) to this boolean. */
6
6
  archived: boolean;
7
7
  lastModified: Date | null;
8
+ /**
9
+ * True when the platform considers this flag permanent — i.e. NOT a
10
+ * temporary feature toggle that should ever be removed. Kill-switches,
11
+ * operational config flags, and "long-lived experiments" fall here.
12
+ *
13
+ * Maps from LaunchDarkly's `temporary` field (we invert: `permanent =
14
+ * !temporary`). Other platforms may not have an equivalent concept —
15
+ * leave undefined when unknown, which the staleness engine treats
16
+ * exactly as it always did (no special-case suppression).
17
+ *
18
+ * Why surface this: the staleness engine's age and low-usage signals
19
+ * are false positives on intentionally permanent flags. A
20
+ * personal-access-tokens kill switch shouldn't be flagged as "stale"
21
+ * just because it's three years old and only appears in one place;
22
+ * that's the entire point of a kill switch.
23
+ */
24
+ permanent?: boolean;
25
+ /**
26
+ * When the flag was first created in the platform. Distinct from
27
+ * `lastModified` (which tracks the most recent environment-level
28
+ * edit). The cross-reference layer compares this against the
29
+ * staleness threshold to emit `platform-too-old` — a code-independent
30
+ * staleness signal. A flag that LD created 18 months ago AND still
31
+ * has code references is a stronger candidate for cleanup than either
32
+ * data point alone.
33
+ */
34
+ createdAt?: Date | null;
35
+ /**
36
+ * Platform-side classification labels. LaunchDarkly's tag list maps
37
+ * directly; other platforms may map their equivalent concept (Unleash
38
+ * `strategies`, Split.io `traffic_types`, etc.). Surfaced in output
39
+ * so reviewers see the LD-side classification alongside flag names.
40
+ */
41
+ tags?: string[];
42
+ /**
43
+ * Human-readable maintainer label. Producer is responsible for
44
+ * resolving any opaque ID (e.g. LD `maintainerId`) into a display
45
+ * string ('First Last <email>') before populating this field.
46
+ */
47
+ maintainer?: string;
48
+ /**
49
+ * Platform-computed activity verdict for this flag in the configured
50
+ * environment. Maps directly from LD's flag-statuses endpoint:
51
+ *
52
+ * - 'new': created in the last 7 days; not enough data yet → no
53
+ * staleness verdict, suppresses code-side age signals
54
+ * - 'active': serving evaluations as expected → no signal
55
+ * - 'inactive': no evaluation events in 7+ days → emit
56
+ * `platform-inactive` (warning) — code reference may be dead
57
+ * - 'launched': single variation served consistently for 7+ days →
58
+ * emit `platform-launched` (error) — flag is effectively rolled
59
+ * out and the conditional code can be removed
60
+ *
61
+ * Other platforms may not have an equivalent; leave undefined when
62
+ * unknown.
63
+ */
64
+ status?: 'new' | 'active' | 'inactive' | 'launched';
65
+ /**
66
+ * When this flag was last evaluated, per the platform's runtime
67
+ * telemetry. Null when no evaluations have occurred yet (`status:
68
+ * 'new'`). Surface this in output so reviewers can decide whether
69
+ * "7 days ago" or "9 months ago" before pulling the trigger.
70
+ */
71
+ lastRequested?: Date | null;
8
72
  }
9
73
  /** Runtime client for a configured platform. Returned by PlatformDefinition.createClient. */
10
74
  export interface PlatformClient {
@@ -30,8 +94,31 @@ export interface PlatformDefinition<TConfig = unknown> {
30
94
  }
31
95
  /** Signal type emitted by crossReference(). Merged into StaleFlag.signals[] by staleness.ts. */
32
96
  export interface PlatformSignal {
33
- type: 'missing-in-platform' | 'archived-in-platform';
34
- severity: 'error' | 'warning';
97
+ /**
98
+ * Signal types:
99
+ *
100
+ * - `missing-in-platform` (error): code references a flag that's not
101
+ * in the platform at all. Almost always a dead reference.
102
+ * - `archived-in-platform` (warning): user archived the flag in the
103
+ * platform but code still references it — cleanup time.
104
+ * - `platform-permanent` (info, CONTROL signal): user marked the
105
+ * flag permanent. Tells the staleness engine to suppress age + low-
106
+ * usage signals; filtered out of user-facing output. See
107
+ * PlatformFlag.permanent docstring for full reasoning.
108
+ * - `platform-too-old` (warning): the flag was created in the
109
+ * platform more than `thresholdDays` ago — a code-independent
110
+ * staleness signal. Survives even when code-age signal is clean
111
+ * (e.g. flag was copy-pasted into a new file last week, but
112
+ * originated in LD 2 years ago).
113
+ * - `platform-inactive` (warning): LD's own flag-status verdict —
114
+ * no evaluations recorded against this flag in the last 7 days.
115
+ * Sourced from the /flag-statuses endpoint.
116
+ * - `platform-launched` (error): LD's own verdict — flag has been
117
+ * serving a single variation consistently for the past 7 days.
118
+ * "Ready for removal" from LD's perspective.
119
+ */
120
+ type: 'missing-in-platform' | 'archived-in-platform' | 'platform-permanent' | 'platform-too-old' | 'platform-inactive' | 'platform-launched';
121
+ severity: 'error' | 'warning' | 'info';
35
122
  description: string;
36
123
  }
37
124
  //# sourceMappingURL=interface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../src/providers/interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,KAAK,CAAA;AAElC,oEAAoE;AACpE,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,gFAAgF;IAChF,QAAQ,EAAE,OAAO,CAAA;IACjB,YAAY,EAAE,IAAI,GAAG,IAAI,CAAA;CAC1B;AAED,6FAA6F;AAC7F,MAAM,WAAW,cAAc;IAC7B,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAA;IACZ,4EAA4E;IAC5E,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,IAAI,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,WAAW,CAAA;KAAE,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CAAA;CACpE;AAED,iFAAiF;AACjF,MAAM,WAAW,kBAAkB,CAAC,OAAO,GAAG,OAAO;IACnD,2DAA2D;IAC3D,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,0EAA0E;IAC1E,eAAe,EAAE,MAAM,CAAA;IACvB,0DAA0D;IAC1D,YAAY,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;IAC9B,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iF;AACjF,MAAM,WAAW,kBAAkB,CAAC,OAAO,GAAG,OAAO;IACnD,2DAA2D;IAC3D,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,0EAA0E;IAC1E,eAAe,EAAE,MAAM,CAAA;IACvB,0DAA0D;IAC1D,YAAY,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;IAC9B,uGAAuG;IACvG,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,cAAc,CAAA;CACjE;AAED,gGAAgG;AAChG,MAAM,WAAW,cAAc;IAC7B;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,IAAI,EACA,qBAAqB,GACrB,sBAAsB,GACtB,oBAAoB,GACpB,kBAAkB,GAClB,mBAAmB,GACnB,mBAAmB,CAAA;IACvB,QAAQ,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAA;IACtC,WAAW,EAAE,MAAM,CAAA;CACpB"}
@@ -9,5 +9,17 @@ export interface FetchAllFlagsOptions {
9
9
  fetch?: typeof globalThis.fetch;
10
10
  signal?: AbortSignal;
11
11
  }
12
+ /**
13
+ * Fetches every flag in `config.project` (active + archived), then enriches
14
+ * the result with platform-side signals from two auxiliary LD endpoints:
15
+ *
16
+ * /api/v2/flag-statuses/{project}/{env} → status + lastRequested
17
+ * /api/v2/members?limit=500 → maintainer name resolution
18
+ *
19
+ * Both auxiliary calls are best-effort: if they fail (e.g. token lacks
20
+ * permission, network blip), we log via thrown LdApiError only for the
21
+ * primary /flags request. Aux failures are swallowed so the core
22
+ * cross-reference path still functions with partial data.
23
+ */
12
24
  export declare function fetchAllFlags(config: FetchAllFlagsConfig, opts?: FetchAllFlagsOptions): Promise<PlatformFlag[]>;
13
25
  //# sourceMappingURL=client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/providers/launchdarkly/client.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAKnD,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,OAAO,UAAU,CAAC,KAAK,CAAA;IAC/B,MAAM,CAAC,EAAE,WAAW,CAAA;CACrB;AAED,wBAAsB,aAAa,CACjC,MAAM,EAAE,mBAAmB,EAC3B,IAAI,GAAE,oBAAyB,GAC9B,OAAO,CAAC,YAAY,EAAE,CAAC,CA+BzB"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/providers/launchdarkly/client.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAKnD,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,OAAO,UAAU,CAAC,KAAK,CAAA;IAC/B,MAAM,CAAC,EAAE,WAAW,CAAA;CACrB;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,mBAAmB,EAC3B,IAAI,GAAE,oBAAyB,GAC9B,OAAO,CAAC,YAAY,EAAE,CAAC,CA+FzB"}