@fern-api/generator-cli 0.8.0 → 0.8.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/dist/api.d.ts CHANGED
@@ -617,8 +617,8 @@ declare function formatReplayPrBody(result: ReplayStepResult | undefined, option
617
617
  interface ReplayInitParams {
618
618
  /** GitHub repo URI (e.g., "fern-demo/fern-replay-testbed-java-sdk") */
619
619
  githubRepo: string;
620
- /** GitHub token for clone (read access) */
621
- token: string;
620
+ /** GitHub token for clone (read access). Optional for public repos. */
621
+ token?: string;
622
622
  /** Report what would happen but don't create PR */
623
623
  dryRun?: boolean;
624
624
  /** Max commits to scan for generation history */
package/dist/cli.js CHANGED
@@ -32737,11 +32737,14 @@ ${result.errors.map((e) => ` - ${e}`).join("\n")}
32737
32737
  });
32738
32738
  },
32739
32739
  async (argv) => {
32740
- if (argv.github == null || argv.token == null) {
32740
+ if (argv.github == null) {
32741
+ process.stderr.write("missing required argument; please specify --github flag\n");
32742
+ process.exit(1);
32743
+ }
32744
+ if (argv.token == null) {
32741
32745
  process.stderr.write(
32742
- "missing required arguments; please specify --github and --token flags\n"
32746
+ "warning: no GitHub token provided. Clone may fail for private repos. Pass --token or set GITHUB_TOKEN.\n"
32743
32747
  );
32744
- process.exit(1);
32745
32748
  }
32746
32749
  try {
32747
32750
  const result = await replayInit({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fern-api/generator-cli",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/fern-api/fern.git",