Skip to content

Latest commit

 

History

History
70 lines (48 loc) · 1.39 KB

File metadata and controls

70 lines (48 loc) · 1.39 KB

Development

Run Against Another Local Repo

Prerequisites:

  • Node.js 20 or newer
  • pnpm

Set up pnpm's global bin directory once if pnpm link --global has not worked on this machine yet:

pnpm setup

Restart your shell, or source the profile file that pnpm setup changed. Then set up and link this package:

cd /path/to/openwiki
pnpm install
pnpm run build
pnpm link --global

Run a dry test from the repo you want OpenWiki to inspect:

cd /path/to/target/repo
OPENWIKI_DEV=1 openwiki --dry-run

Run the real CLI from the target repo:

cd /path/to/target/repo
openwiki
openwiki -p "Summarize what you can do"
openwiki --modelId openai/gpt-5.5
openwiki "Please focus on API documentation"

The target repo is still the current working directory. The global link only avoids typing the path to dist/cli.js.

If you do not want to configure pnpm globals, use a shell alias instead:

alias openwiki='node /path/to/openwiki/dist/cli.js'

That alias can go in ~/.zshrc if you want it to persist.

After changing OpenWiki source code, rebuild from this package directory:

pnpm run build

The existing global link will keep using the rebuilt dist/cli.js.

Real runs can write:

  • openwiki/
  • ~/.openwiki/.env for local OpenRouter model/key settings and optional LangSmith credentials

Scheduled update workflow example:

  • examples/openwiki-update.yml