@latent-space-labs/open-auto-doc 0.5.4 → 0.5.5

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 (2) hide show
  1. package/dist/index.js +9 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -25,7 +25,7 @@ async function authenticateWithGithub() {
25
25
  },
26
26
  body: JSON.stringify({
27
27
  client_id: CLIENT_ID,
28
- scope: "repo read:user"
28
+ scope: "repo read:user workflow"
29
29
  })
30
30
  });
31
31
  const deviceData = await deviceResponse.json();
@@ -2949,7 +2949,13 @@ async function createCiWorkflowsMultiRepo(params) {
2949
2949
  spinner9.stop(`Created workflow in ${repo.fullName}`);
2950
2950
  } catch (err) {
2951
2951
  spinner9.stop(`Failed for ${repo.fullName}`);
2952
- p6.log.warn(`Could not push workflow to ${repo.fullName}: ${err?.message || err}`);
2952
+ if (err?.status === 404) {
2953
+ p6.log.warn(
2954
+ `Could not push workflow to ${repo.fullName}: 404 Not Found. This usually means your GitHub token is missing the "workflow" scope. Run \`open-auto-doc logout\` then \`open-auto-doc login\` to get a token with updated permissions.`
2955
+ );
2956
+ } else {
2957
+ p6.log.warn(`Could not push workflow to ${repo.fullName}: ${err?.message || err}`);
2958
+ }
2953
2959
  }
2954
2960
  }
2955
2961
  if (createdRepos.length === 0) {
@@ -4805,7 +4811,7 @@ async function logoutCommand() {
4805
4811
 
4806
4812
  // src/index.ts
4807
4813
  var program = new Command();
4808
- program.name("open-auto-doc").description("Auto-generate beautiful documentation websites from GitHub repositories using AI").version("0.5.4");
4814
+ program.name("open-auto-doc").description("Auto-generate beautiful documentation websites from GitHub repositories using AI").version("0.5.5");
4809
4815
  program.command("init", { isDefault: true }).description("Initialize and generate documentation for your repositories").option("-o, --output <dir>", "Output directory", "docs-site").action(initCommand);
4810
4816
  program.command("generate").description("Regenerate documentation using existing configuration").option("--incremental", "Only re-analyze changed files (uses cached results)").option("--force", "Force full regeneration (ignore cache)").option("--repo <name>", "Only analyze this repo (uses cache for others)").action(generateCommand);
4811
4817
  program.command("deploy").description("Create a GitHub repo for docs and push (connect to Vercel for auto-deploy)").option("-d, --dir <path>", "Docs site directory").action(deployCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@latent-space-labs/open-auto-doc",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "Auto-generate beautiful documentation websites from GitHub repositories using AI",
5
5
  "type": "module",
6
6
  "bin": {