Skip to content

docs: fix critical mismatches between docs and implementation#60

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
docs/audit-fixes-2026-03-29
Open

docs: fix critical mismatches between docs and implementation#60
github-actions[bot] wants to merge 1 commit into
mainfrom
docs/audit-fixes-2026-03-29

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented Mar 29, 2026

Summary

Documentation audit fixing critical mismatches between docs and actual implementation:

  • create-cli.mdx: runtimeDeps parameter fixed — was documented as optional (?), implementation has it as required with default = {}
  • define-config.mdx: workspace.shared type fixed — was any, now correctly unknown; commands.entry fixed to allow string | string[]
  • ai-detect.mdx: AIAgentInfo interface inlined since it's not exported from @bunli/plugin-ai-detect
  • building-your-first-cli.mdx: All file paths corrected from src/ structure to root-level structure; example link fixed

Audit Report

Full findings available at .scratchpad/docs-audit/report.md (32 total findings)

Critical (4 fixed)

  • runtimeDeps parameter signature mismatch
  • workspace.shared typed as any instead of unknown
  • commands.entry documented as string but allows string[]
  • AIAgentInfo referenced but not exported

High (1 fixed, 5 remaining)

  • building-your-first-cli.mdx had incorrect file paths (fixed)
  • plugin-mcp exports undocumented (not fixed — requires more research)
  • plugin-skills exports undocumented (not fixed — requires more research)

Testing

Docs build successfully. Run bun run dev in apps/web to preview.


Open with Devin

- create-cli.mdx: Fix runtimeDeps parameter signature (was optional, is required with default {})
- define-config.mdx: Fix workspace.shared type (any → unknown), commands.entry (string → string | string[])
- ai-detect.mdx: Inline AIAgentInfo interface (type not exported from plugin)
- building-your-first-cli.mdx: Fix file paths (src/ → root level), fix example link
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 29, 2026

⚠️ No Changeset found

Latest commit: fa32186

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

View 3 additional findings in Devin Review.

Open in Devin Review

// Command configuration
commands?: {
entry?: string
entry?: string | string[]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Documentation incorrectly changed commands.entry type from string to string | string[]

The PR changed commands.entry from the correct entry?: string to entry?: string | string[] in the defineConfig docs. However, the actual Zod schema at packages/core/src/config.ts:31 defines entry: z.string().optional() — it only accepts a single string, not an array. The string | string[] type belongs to build.entry (packages/core/src/config.ts:66), not commands.entry. Users following this documentation would get a Zod validation error at runtime if they pass an array to commands.entry.

Suggested change
entry?: string | string[]
entry?: string
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants