@fern-api/generator-cli 0.6.10 → 0.6.11

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 +15 -19
  2. package/dist/api.js +116 -354
  3. package/dist/cli.js +274 -323
  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
  /**
@@ -542,8 +542,6 @@ interface GithubStepConfig {
542
542
  replayConflictInfo?: {
543
543
  previousGenerationSha: string;
544
544
  currentGenerationSha: string;
545
- hasConflicts: boolean;
546
- baseBranchHead?: string;
547
545
  };
548
546
  }
549
547
  interface PipelineResult {
@@ -568,28 +566,17 @@ interface ReplayStepResult extends StepResult {
568
566
  previousGenerationSha?: string;
569
567
  currentGenerationSha?: string;
570
568
  baseBranchHead?: string;
571
- conflicts?: ConflictInfo[];
572
- conflictDetails?: Array<{
569
+ unresolvedPatches?: Array<{
573
570
  patchId: string;
574
571
  patchMessage: string;
575
- reason?: string;
576
- files: Array<{
572
+ files: string[];
573
+ conflictDetails: Array<{
577
574
  file: string;
578
- status: string;
579
575
  conflictReason?: string;
580
576
  }>;
581
577
  }>;
582
578
  warnings?: string[];
583
579
  }
584
- interface ConflictInfo {
585
- filePath: string;
586
- conflicts: Array<{
587
- startLine: number;
588
- endLine: number;
589
- ours: string[];
590
- theirs: string[];
591
- }>;
592
- }
593
580
  interface FernignoreStepResult extends StepResult {
594
581
  pathsPreserved?: string[];
595
582
  }
@@ -618,6 +605,7 @@ declare class PostGenerationPipeline {
618
605
  declare function logReplaySummary(result: ReplayStepResult, logger: PipelineLogger): void;
619
606
  declare function formatReplayPrBody(result: ReplayStepResult | undefined, options?: {
620
607
  branchName?: string;
608
+ repoUri?: string;
621
609
  }): string | undefined;
622
610
 
623
611
  interface ReplayInitParams {
@@ -673,6 +661,14 @@ interface BootstrapLogEntry {
673
661
  */
674
662
  declare function formatBootstrapSummary(result: ReplayInitResult): BootstrapLogEntry[];
675
663
 
664
+ interface ReplayResolveParams {
665
+ /** Directory containing the SDK (where .fern/replay.lock lives) */
666
+ outputDir: string;
667
+ /** Check for remaining conflict markers before committing. Default: true */
668
+ checkMarkers?: boolean;
669
+ }
670
+ declare function replayResolve(params: ReplayResolveParams): Promise<ResolveResult>;
671
+
676
672
  interface ReplayRunParams {
677
673
  outputDir: string;
678
674
  cliVersion?: string;
@@ -700,4 +696,4 @@ interface ReplayRunResult {
700
696
  }
701
697
  declare function replayRun(params: ReplayRunParams): Promise<ReplayRunResult>;
702
698
 
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 };
699
+ 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 };