Skip to content

Confirm the published npm tarball includes the opencode CLI check #23

Open

Description

@anildukkipatty

What happened

While investigating agent detection, the local dist/ was stale — built before e8c94ac ("Only offer the OpenCode agent when opencode is installed"). The built initAgent had no CLI check, so a zero-agent machine reported:

available agents: opencode

…and offered an agent that could not run. Rebuilding with npm run build:cli fixed it.

What to check

dist/ is gitignored and prepublishOnly runs a full build, so a fresh npm publish picks up the current source automatically. The question is only whether the already-published 0.0.5 tarball predates e8c94ac.

npm pack @gitbot-hq/[email protected]
tar -xzO package/dist/start-opencode.js | grep -c 'opencode --version'

0 means published 0.0.5 offers opencode unconditionally, and anyone installing it today without opencode gets an agent that fails at first turn.

If it is stale

Cut a patch release. No source change needed.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions