Repository navigation
Add agentworkforce top-level wrapper package - #27
Conversation
Publishes the same CLI under the unscoped `agentworkforce` name so users
can `npm i -g agentworkforce` and call `agentworkforce agent <persona>`,
matching the burn/relayburn pattern.
- packages/agentworkforce: thin wrapper that depends on @agentworkforce/cli
and exposes an `agentworkforce` bin (engines: node >= 22).
- cli.ts: derive USAGE bin name from process.argv[1] basename so the same
dist file drives both `agent-workforce` and `agentworkforce` help text;
export `main` so the wrapper bin can call it directly.
- publish.yml: replace hand-rolled scope mappings with dynamic
`node -p \"require('./packages/<pkg>/package.json').name\"` lookups, use
burn's tarball-name derivation so a single PACK_DIR works for scoped
and unscoped packages, and collapse the per-package matrix release into
one combined GitHub Release per publish run anchored to the
`agentworkforce` tag.
- verify-publish.yml: add `agentworkforce` smoke test branch.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 409390e799
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| workload-router|harness-kit|cli|agentworkforce) | ||
| echo "packages=${{ github.event.inputs.package }}" >> "$GITHUB_OUTPUT" |
There was a problem hiding this comment.
Include CLI when publishing wrapper package
Allowing agentworkforce as a standalone publish target can ship an uninstallable release when @agentworkforce/cli at the workspace version is not yet on npm. In this workflow, selecting agentworkforce alone skips publishing cli, but pnpm pack rewrites the wrapper’s workspace:* dependency to an exact @agentworkforce/cli version, so users installing that wrapper version will fail with a missing dependency if that CLI version has not been published yet. The wrapper target should either force-publish cli first or add a preflight check that @agentworkforce/cli@<resolved version> exists on npm.
Useful? React with 👍 / 👎.
Summary
packages/agentworkforce/— a thin wrapper that depends on@agentworkforce/cliand exposes theagentworkforcebin so users cannpm i -g agentworkforceand callagentworkforce agent <persona>/agentworkforce list/ etc. Mirrors the burn/relayburn pattern.cli.tsto derive its USAGE bin name fromprocess.argv[1]so the same dist file produces correct help text whether invoked asagent-workforceoragentworkforce. Exportsmainso the wrapper bin can call it directly without re-entering the entry-detection guard.publish.ymlto (a) use dynamicnode -p \"require(...).name\"instead of hand-rolled scope mappings, (b) use burn's tarball-name derivation so a single sharedPACK_DIRworks for both scoped and unscoped packages, and (c) collapse the per-packagecreate-releasematrix into one combined GitHub Release per publish run anchored to theagentworkforcetag — matching how burn anchors torelayburn. Per-package git tags are still pushed so the next run's changelog generator can find them.verify-publish.yml: adds anagentworkforcesmoke-test branch and parametrises the bin name (the previousUsage: agent-workforce agentgrep was actually a no-op since that substring never appeared in the help output).After this lands, an
allpublish run yields:@agentworkforce/workload-router@<v>,@agentworkforce/harness-kit@<v>,@agentworkforce/cli@<v>,agentworkforce@<v>on npmagentworkforce@<v>whose body lists all four packages with their per-package CHANGELOG sections inlinedTest plan
pnpm -r buildsucceedspnpm -r test— 37/37 cli tests pass on this branch (clean main); the wrapper'snode --checkpassesnode packages/agentworkforce/bin/agentworkforce.js --helpshowsUsage: agentworkforce <command> ...node packages/cli/dist/cli.js --helpstill showsUsage: agent-workforce <command> ...(test compatibility preserved)agentworkforce list --json,agentworkforce harness check,agentworkforce show <persona>all execute the same code paths as the direct CLIpackage=agentworkforce,version=none,dry_run=trueto confirm the new branch packs/publishes cleanly before doing a real release🤖 Generated with Claude Code