Skip to content

npm: v1.2.0+ not published — v1.1.1 has broken tool execute signatures #7

@pbaille

Description

@pbaille

Hi! The fix in commit 7a383b2 ("fix(extensions): update tool execute signatures") from Feb 2 corrected the swapped signal/onUpdate arguments in uv.ts (and other extensions), but the latest version on npm is still 1.1.1 which has the broken code.

This causes pi to crash with:

  • signal.addEventListener is not a function
  • TypeError: onUpdate is not a function at bash.js:155

whenever the bash tool is invoked, because the registered tool's execute receives (id, params, signal, onUpdate, ctx) from pi but the v1.1.1 code destructures it as (id, params, onUpdate, _ctx, signal) — swapping the callback and the abort signal.

The fix already exists in the repo (tag v1.2.0 and beyond). Could you publish a new version to npm?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions