Skip to content

chore(deps): migrate @mariozechner -> @earendil-works + tighten parameter types#17

Open
av1155 wants to merge 1 commit into
samfoy:masterfrom
av1155:chore/audit-deps-refresh
Open

chore(deps): migrate @mariozechner -> @earendil-works + tighten parameter types#17
av1155 wants to merge 1 commit into
samfoy:masterfrom
av1155:chore/audit-deps-refresh

Conversation

@av1155
Copy link
Copy Markdown

@av1155 av1155 commented May 14, 2026

npm install at v1.3.2 surfaces four @mariozechner deprecation warnings (transitive via the @mariozechner/pi-coding-agent peer dep). The @mariozechner namespace is deprecated upstream; @earendil-works/pi-* at v0.74.0 is the canonical replacement.

Changes

  • peerDependencies: @mariozechner/pi-coding-agent swapped for @earendil-works/pi-coding-agent.
  • devDependencies: add @earendil-works/pi-coding-agent at ^0.74.0 so type imports resolve standalone.
  • src/index.ts: imports updated to the new namespace.
  • @types/node: ^22.15.21 to ^25.7.0.
  • Drop as any from the five Type.Object schemas passed into pi.registerTool. The cast was load-bearing under the old @mariozechner typings; @earendil-works's ToolDefinition<TParams extends TSchema> infers Static<TParams> correctly when the schema is left typed, which keeps the execute(params, ...) body strongly typed instead of falling through to unknown.

Verification

  • npm install: 0 deprecations from this repo's direct or peer dependencies. Only node-domexception remains, transitive through fetch-blob.
  • tsc --noEmit: clean.
  • npm test (node --test --import tsx src/**/*.test.ts): 73 tests pass.

Held back

  • typescript: ^5.9.3 to ^6.0.3. The TS 6 stricter lib types unmask a few unknown propagations elsewhere in the file that would need separate cleanup; held back from this PR so the dep refresh stays scoped.

@av1155 av1155 force-pushed the chore/audit-deps-refresh branch from 649e858 to 36f218d Compare May 14, 2026 03:32
@av1155 av1155 marked this pull request as ready for review May 14, 2026 04:00
@av1155 av1155 requested a review from samfoy as a code owner May 14, 2026 04:00
… casts

- Migrate peerDependencies and src/index.ts imports from
  @mariozechner/pi-coding-agent (deprecated upstream) to
  @earendil-works/pi-coding-agent ^0.74.0.
- Add @earendil-works/pi-coding-agent ^0.74.0 to devDependencies so
  the type imports resolve standalone.
- Bump @types/node ^22.15.21 -> ^25.7.0.
- Drop `as any` from the five Type.Object schemas passed into
  pi.registerTool. The cast was load-bearing under the old
  @mariozechner typings, but @earendil-works's ToolDefinition<TParams
  extends TSchema> infers Static<TParams> correctly when the schema
  is left typed, which lets the execute(params, ...) body keep
  the params shape instead of falling through to unknown.

After this change npm install reports 0 deprecations from this repo's
direct or peer dependencies (node-domexception remains transitive),
tsc --noEmit is clean, and the 73 existing node:test cases all pass.
@av1155 av1155 force-pushed the chore/audit-deps-refresh branch from 36f218d to 2a33c37 Compare May 14, 2026 04:12
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.

1 participant