Skip to content

Switch docs-generate.yml to git-based distribution, unblocking OpenWiki - #33

Merged
crewcricle merged 4 commits into
mainfrom
fix/docs-gen-git-based-distribution
Jul 29, 2026
Merged

Switch docs-generate.yml to git-based distribution, unblocking OpenWiki#33
crewcricle merged 4 commits into
mainfrom
fix/docs-gen-git-based-distribution

Conversation

@rprabhat

Copy link
Copy Markdown
Collaborator

Summary

@crewcircle/docs-gen still isn't publishable to npm — the org exists, and the npm-CLI-version bug is fixed, but publishing still 404s with a permission-flavored error. Rather than keep OpenWiki generation blocked on that unresolved npm issue, this switches the reusable workflow to build the package from source instead of installing it from the registry:

  • Checks out crewcircle-website into a second path (docs-gen-src, sparse-checked-out to just packages/docs-gen)
  • npm install && npm run build there — verified standalone (no monorepo root/workspace needed)
  • Invokes dist/cli.js directly with node, from within the target repo's own checkout, instead of npx @crewcircle/docs-gen

openwiki itself (the third-party tool) is unaffected — it's a normal published package and still gets npx-installed from the real registry as before. No CLI code changes needed: it already resolves its own template files via import.meta.url (relative to the script) rather than process.cwd(), so running it via checkout+build behaves identically to running it via npx.

Verification

Tested locally end-to-end before pushing:

  1. Copied packages/docs-gen to an isolated directory (no monorepo context) — npm install && npm run build succeeded standalone.
  2. Ran the built CLI from a separate "target repo" directory — openwiki installed correctly via npx, openwiki/INSTRUCTIONS.md was written with the correct engineering-mode content, and the run failed at exactly the expected point: missing OPENROUTER_API_KEY (a real secret in actual CI, not present in my local shell).

Test plan

  • YAML validated
  • Local end-to-end dry run (see above)
  • Real CI run with the actual OPENROUTER_API_KEY secret — will trigger via workflow_dispatch right after this merges

🤖 Generated with Claude Code

@crewcircle/docs-gen still isn't publishable to npm — the org exists but
publishes 404 with a permission-flavored error even after fixing the npm
CLI version bug (confirmed via a real retry: same class of error, worse
diagnostics). Rather than keep blocking OpenWiki generation on an
unresolved npm/token issue, this checks out crewcircle-website directly
in the reusable workflow, builds packages/docs-gen from source
(npm install && npm run build, standalone — verified it doesn't need
the monorepo root/workspace context), and invokes dist/cli.js with node
instead of `npx @crewcircle/docs-gen`.

openwiki itself is unaffected by any of this — it's a normal published
third-party package and continues to be npx-installed from the real
registry, same as before.

No changes needed to the CLI itself: it already resolves its own
template files via import.meta.url (relative to the script) rather than
process.cwd() (the invocation directory), so running it via a separate
checkout+build works the same as running it via npx would have.

Verified locally end-to-end (build standalone in an isolated copy, run
the CLI from a separate directory): openwiki installs correctly via npx,
INSTRUCTIONS.md gets written to the right place with the right content,
and it fails at exactly the expected point (missing OPENROUTER_API_KEY,
which is a real secret in the actual CI environment, not present here).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
crewcircle-website Ready Ready Preview, Comment Jul 29, 2026 6:01am

Confirmed via a real CI run (git-based distribution branch): the
literal-cheapest model choice hits a persistent 429 from its backing
provider, Novita's shared non-BYOK pool. Happened twice in a row, not
transient. Switched to mistralai/mistral-nemo — a first-party lab on
OpenRouter rather than a shared-pool aggregation, negligibly pricier
($0.019/$0.03 vs $0.01/$0.03 per M tokens), same tool-calling support.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The first successful run with mistral-nemo produced only a skeleton
openwiki/index.md ("# Files", no content) and no other pages. Its own
reasoning trace: it looked at recent git log (my session's unrelated
commits), incorrectly concluded the wiki was "already current", and
never did the actual documentation pass — despite openwiki/ not
existing before this run at all. Testing whether a moderately stronger
model (qwen3-30b, still cheap, 262k context) follows OpenWiki's own
init-vs-update decision logic more reliably. If this also produces a
stub, the real fix is likely in docs-gen's own CLI (it pre-creates
openwiki/INSTRUCTIONS.md before invoking openwiki, which may itself be
enough to make openwiki think a wiki partially exists and take the
incremental-update path instead of full generation).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Confirmed via a real, successful CI run: full first-pass generation
producing accurate, substantive documentation (openwiki/quickstart.md
correctly summarized the actual admin architecture from AGENTS.md).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@crewcricle
crewcricle merged commit b516232 into main Jul 29, 2026
8 checks passed
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.

2 participants