@lumy-pack/line-lore 0.0.6 → 0.0.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/README.md +44 -20
- package/dist/cli.mjs +306 -95
- package/dist/core/ancestry/ancestry.d.ts +32 -1
- package/dist/core/ancestry/index.d.ts +1 -1
- package/dist/core/blame/blame.d.ts +2 -2
- package/dist/core/index.d.ts +1 -1
- package/dist/core/pr-lookup/index.d.ts +1 -0
- package/dist/core/pr-lookup/pr-lookup.d.ts +18 -2
- package/dist/index.cjs +292 -92
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +292 -92
- package/dist/platform/github/github-adapter.d.ts +3 -1
- package/dist/platform/gitlab/gitlab-adapter.d.ts +3 -1
- package/dist/types/blame.d.ts +2 -0
- package/dist/types/cache.d.ts +2 -0
- package/dist/types/git.d.ts +7 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/types/platform.d.ts +3 -1
- package/dist/types/trace.d.ts +3 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/types/git.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { PlatformType } from './platform.js';
|
|
2
|
+
import type { TraceMode } from './trace.js';
|
|
2
3
|
export interface GitExecResult {
|
|
3
4
|
stdout: string;
|
|
4
5
|
stderr: string;
|
|
@@ -8,6 +9,12 @@ export interface GitExecOptions {
|
|
|
8
9
|
cwd?: string;
|
|
9
10
|
timeout?: number;
|
|
10
11
|
allowExitCodes?: number[];
|
|
12
|
+
/** Mutable array for collecting diagnostic warnings throughout the pipeline */
|
|
13
|
+
warnings?: string[];
|
|
14
|
+
}
|
|
15
|
+
export interface BlameExecOptions extends GitExecOptions {
|
|
16
|
+
/** Blame semantics used by trace mode selection */
|
|
17
|
+
mode?: TraceMode;
|
|
11
18
|
}
|
|
12
19
|
export interface RemoteInfo {
|
|
13
20
|
owner: string;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export type { SymbolKind, SymbolInfo, ContentHash, ChangeType, ComparisonResult, AstTraceResult, } from './ast.js';
|
|
2
2
|
export type { BlameResult, CommitInfo } from './blame.js';
|
|
3
3
|
export type { CacheEntry, CachedPRInfo } from './cache.js';
|
|
4
|
-
export type { GitExecResult, GitExecOptions, RemoteInfo, HealthReport, CloneStatus, } from './git.js';
|
|
4
|
+
export type { GitExecResult, GitExecOptions, BlameExecOptions, RemoteInfo, HealthReport, CloneStatus, } from './git.js';
|
|
5
5
|
export type { GraphOptions, GraphResult } from './graph.js';
|
|
6
6
|
export type { NormalizedResponse } from './output.js';
|
|
7
7
|
export type { TraceNodeType, TrackingMethod, Confidence, TraceNode, OperatingLevel, FeatureFlags, } from './pipeline.js';
|
|
8
8
|
export type { PlatformType, AuthStatus, PRInfo, IssueInfo, RateLimitInfo, PlatformAdapter, } from './platform.js';
|
|
9
9
|
export type { CosmeticReason, BlameStageResult, AstDiffStageResult, } from './stage.js';
|
|
10
|
-
export type { TraceResult, TraceOptions } from './trace.js';
|
|
10
|
+
export type { TraceMode, TraceResult, TraceOptions } from './trace.js';
|
|
11
11
|
export type { LineRange } from './util.js';
|
package/dist/types/platform.d.ts
CHANGED
|
@@ -36,7 +36,9 @@ export interface RateLimitInfo {
|
|
|
36
36
|
export interface PlatformAdapter {
|
|
37
37
|
readonly platform: PlatformType;
|
|
38
38
|
checkAuth(): Promise<AuthStatus>;
|
|
39
|
-
getPRForCommit(sha: string
|
|
39
|
+
getPRForCommit(sha: string, options?: {
|
|
40
|
+
preferredBase?: string;
|
|
41
|
+
}): Promise<PRInfo | null>;
|
|
40
42
|
getPRCommits(prNumber: number): Promise<string[]>;
|
|
41
43
|
getLinkedIssues(prNumber: number): Promise<IssueInfo[]>;
|
|
42
44
|
getLinkedPRs(issueNumber: number): Promise<PRInfo[]>;
|
package/dist/types/trace.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export interface TraceResult {
|
|
|
9
9
|
/** PR information if found, null if commit is not from a PR */
|
|
10
10
|
pr: PRInfo | null;
|
|
11
11
|
}
|
|
12
|
+
export type TraceMode = 'origin' | 'change';
|
|
12
13
|
/**
|
|
13
14
|
* Options for the trace operation (library API).
|
|
14
15
|
*/
|
|
@@ -31,4 +32,6 @@ export interface TraceOptions {
|
|
|
31
32
|
noCache?: boolean;
|
|
32
33
|
/** Return cached results only — skip API calls, ancestry traversal, and patch-id scan */
|
|
33
34
|
cacheOnly?: boolean;
|
|
35
|
+
/** Trace mode. `origin` follows copy/move history, `change` finds the last meaningful local change. */
|
|
36
|
+
mode?: TraceMode;
|
|
34
37
|
}
|
package/dist/version.d.ts
CHANGED