commitshow 0.4.2 → 0.4.3
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/commands/audit.js +6 -9
- package/package.json +1 -1
package/dist/commands/audit.js
CHANGED
|
@@ -60,15 +60,12 @@ export async function audit(args) {
|
|
|
60
60
|
// ('warp' → 'warpdotdev/warp' that doesn't exist) cleanly.
|
|
61
61
|
if (target.kind === 'remote-url') {
|
|
62
62
|
const check = await verifyRemoteExists(target.github_url);
|
|
63
|
-
if (!check.exists) {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
` If you're an AI agent: ask the user for the canonical github.com URL,\n` +
|
|
70
|
-
` don't guess from the project name.`, target.github_url);
|
|
71
|
-
return 1;
|
|
63
|
+
if (!check.exists && !asJson) {
|
|
64
|
+
// An unauthenticated HEAD can't see a PRIVATE repo — but it may be auditable if
|
|
65
|
+
// the commit.show Auditor GitHub App is installed on it. Don't hard-stop here;
|
|
66
|
+
// api.commit.show runs its own app-aware pre-flight and is the authority (it
|
|
67
|
+
// returns a clean not_found for a genuine typo without burning audit budget).
|
|
68
|
+
process.stderr.write(` ${target.slug} isn't public from here — trying via the commit.show Auditor app if it's installed…\n`);
|
|
72
69
|
}
|
|
73
70
|
}
|
|
74
71
|
if (!asJson) {
|