@fern-api/generator-cli 0.6.10 → 0.6.14

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 (4) hide show
  1. package/dist/api.d.ts +21 -19
  2. package/dist/api.js +282 -480
  3. package/dist/cli.js +444 -455
  4. package/package.json +2 -2
package/dist/api.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { BootstrapResult, ReplayReport } from '@fern-api/replay';
2
- export { ConflictDetail, ReplayReport } from '@fern-api/replay';
1
+ import { BootstrapResult, ResolveResult, ReplayReport } from '@fern-api/replay';
2
+ export { ConflictDetail, ReplayReport, ResolveResult } from '@fern-api/replay';
3
3
  import fs from 'fs';
4
4
 
5
5
  /**
@@ -532,6 +532,12 @@ interface GithubStepConfig {
532
532
  branch?: string;
533
533
  /** Commit message for the generation */
534
534
  commitMessage?: string;
535
+ /** User-facing changelog entry for PR body. When present, used instead of commit message body. */
536
+ changelogEntry?: string;
537
+ /** Structured PR description with Before/After code fences for breaking changes. Takes priority over changelogEntry for PR body. */
538
+ prDescription?: string;
539
+ /** One-sentence justification for WHY the version bump was chosen. Prepended to PR body when present. */
540
+ versionBumpReason?: string;
535
541
  /** Skip push/PR creation, just prepare branches locally */
536
542
  previewMode?: boolean;
537
543
  /** Generator name for namespaced fern-generation-base tag */
@@ -542,8 +548,6 @@ interface GithubStepConfig {
542
548
  replayConflictInfo?: {
543
549
  previousGenerationSha: string;
544
550
  currentGenerationSha: string;
545
- hasConflicts: boolean;
546
- baseBranchHead?: string;
547
551
  };
548
552
  }
549
553
  interface PipelineResult {
@@ -568,28 +572,17 @@ interface ReplayStepResult extends StepResult {
568
572
  previousGenerationSha?: string;
569
573
  currentGenerationSha?: string;
570
574
  baseBranchHead?: string;
571
- conflicts?: ConflictInfo[];
572
- conflictDetails?: Array<{
575
+ unresolvedPatches?: Array<{
573
576
  patchId: string;
574
577
  patchMessage: string;
575
- reason?: string;
576
- files: Array<{
578
+ files: string[];
579
+ conflictDetails: Array<{
577
580
  file: string;
578
- status: string;
579
581
  conflictReason?: string;
580
582
  }>;
581
583
  }>;
582
584
  warnings?: string[];
583
585
  }
584
- interface ConflictInfo {
585
- filePath: string;
586
- conflicts: Array<{
587
- startLine: number;
588
- endLine: number;
589
- ours: string[];
590
- theirs: string[];
591
- }>;
592
- }
593
586
  interface FernignoreStepResult extends StepResult {
594
587
  pathsPreserved?: string[];
595
588
  }
@@ -618,6 +611,7 @@ declare class PostGenerationPipeline {
618
611
  declare function logReplaySummary(result: ReplayStepResult, logger: PipelineLogger): void;
619
612
  declare function formatReplayPrBody(result: ReplayStepResult | undefined, options?: {
620
613
  branchName?: string;
614
+ repoUri?: string;
621
615
  }): string | undefined;
622
616
 
623
617
  interface ReplayInitParams {
@@ -673,6 +667,14 @@ interface BootstrapLogEntry {
673
667
  */
674
668
  declare function formatBootstrapSummary(result: ReplayInitResult): BootstrapLogEntry[];
675
669
 
670
+ interface ReplayResolveParams {
671
+ /** Directory containing the SDK (where .fern/replay.lock lives) */
672
+ outputDir: string;
673
+ /** Check for remaining conflict markers before committing. Default: true */
674
+ checkMarkers?: boolean;
675
+ }
676
+ declare function replayResolve(params: ReplayResolveParams): Promise<ResolveResult>;
677
+
676
678
  interface ReplayRunParams {
677
679
  outputDir: string;
678
680
  cliVersion?: string;
@@ -700,4 +702,4 @@ interface ReplayRunResult {
700
702
  }
701
703
  declare function replayRun(params: ReplayRunParams): Promise<ReplayRunResult>;
702
704
 
703
- export { type BootstrapLogEntry, type GenerateReadmeParams, type GenerateReadmeToStreamParams, type GenerateReferenceParams, type GenerateReferenceToStreamParams, type GithubPrParams, type GithubPushParams, type GithubReleaseParams, type GithubStepConfig, type GithubStepResult, type PipelineConfig, type PipelineContext, type PipelineLogger, type PipelineResult, PostGenerationPipeline, type ReplayInitParams, type ReplayInitResult, type ReplayRunParams, type ReplayRunResult, type ReplayStepResult, consolePipelineLogger, formatBootstrapSummary, formatReplayPrBody, generateReadme, generateReadmeToStream, generateReference, generateReferenceToStream, githubPr, githubPush, githubRelease, logReplaySummary, replayInit, replayRun };
705
+ export { type BootstrapLogEntry, type GenerateReadmeParams, type GenerateReadmeToStreamParams, type GenerateReferenceParams, type GenerateReferenceToStreamParams, type GithubPrParams, type GithubPushParams, type GithubReleaseParams, type GithubStepConfig, type GithubStepResult, type PipelineConfig, type PipelineContext, type PipelineLogger, type PipelineResult, PostGenerationPipeline, type ReplayInitParams, type ReplayInitResult, type ReplayResolveParams, type ReplayRunParams, type ReplayRunResult, type ReplayStepResult, consolePipelineLogger, formatBootstrapSummary, formatReplayPrBody, generateReadme, generateReadmeToStream, generateReference, generateReferenceToStream, githubPr, githubPush, githubRelease, logReplaySummary, replayInit, replayResolve, replayRun };