Skip to content

chore(deps): bump outdated dependencies to latest#122

Merged
minpeter merged 1 commit intomainfrom
chore/refresh-outdated-deps
Apr 22, 2026
Merged

chore(deps): bump outdated dependencies to latest#122
minpeter merged 1 commit intomainfrom
chore/refresh-outdated-deps

Conversation

@minpeter
Copy link
Copy Markdown
Owner

@minpeter minpeter commented Apr 22, 2026

Summary

  • Bump every outdated workspace dependency to its latest release (pnpm outdated -r is now clean).
  • Raise @ai-sdk-tool/tui's @mariozechner/pi-tui peer range to ^0.68.1 and adapt createAliasAwareAutocompleteProvider to the async autocomplete API introduced in pi-tui 0.68.
  • Add a patch changeset covering @ai-sdk-tool/tui, @plugsuits/minimal-agent, and plugsuits.

Version bumps

Package Before After Consumers
@ai-sdk-tool/parser ^4.1.20 ^4.1.21 plugsuits
vitest (dev) ^4.1.4 ^4.1.5 root, @plugsuits/minimal-agent
@mariozechner/pi-tui ^0.57.1 / ^0.68.0 ^0.68.1 @plugsuits/minimal-agent, plugsuits, @ai-sdk-tool/tui (peer)

Breaking API adapted (pi-tui 0.57 → 0.68)

AutocompleteProvider.getSuggestions is now async and takes a 4th { signal, force? } options argument. SlashCommand.getArgumentCompletions is also Awaitable<...>. packages/tui/src/autocomplete.ts was updated to match:

  • createAliasAwareAutocompleteProvider now returns an async provider that forwards the signal/force options to the underlying CombinedAutocompleteProvider.
  • getAliasArgumentSuggestions is async and awaits getArgumentCompletions.

Verification

  • pnpm run build — all 6 packages build
  • pnpm run typecheck — clean across all packages
  • pnpm run test — 65 tests / 3 files pass (headless); 9/9 turbo tasks successful
  • pnpm exec ultracite check . — clean
  • Runtime smoke test from packages/cea:
const provider = createAliasAwareAutocompleteProvider([], { commands: [] });
await provider.getSuggestions([''], 0, 0, { signal: new AbortController().signal });
// → returns a Promise<AutocompleteSuggestions | null>, no type errors

Summary by cubic

Update outdated deps and switch @ai-sdk-tool/tui to the async autocomplete API in @mariozechner/pi-tui 0.68.1. Consumers of @ai-sdk-tool/tui now need @mariozechner/pi-tui@^0.68.1.

  • Dependencies

    • @ai-sdk-tool/parser^4.1.21
    • vitest^4.1.5
    • @mariozechner/pi-tui^0.68.1 (align @ai-sdk-tool/tui peer to ^0.68.1)
  • Refactors

    • Make createAliasAwareAutocompleteProvider async; forward { signal, force? } to CombinedAutocompleteProvider.
    • Make getAliasArgumentSuggestions async and await SlashCommand.getArgumentCompletions.

Written for commit 6dfca47. Summary will update on new commits.

- @ai-sdk-tool/parser 4.1.20 → 4.1.21
- vitest 4.1.4 → 4.1.5
- @mariozechner/pi-tui 0.57.1 / 0.68.0 → 0.68.1

Realign @ai-sdk-tool/tui peer range for @mariozechner/pi-tui to ^0.68.1
and adapt createAliasAwareAutocompleteProvider to the async autocomplete
API introduced in pi-tui 0.68 (getSuggestions now returns a Promise and
accepts a { signal, force? } options argument).
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 22, 2026

Important

Review skipped

Auto reviews are disabled on this repository. To trigger a review, include @crb review in the PR description. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 8df5dca1-d78c-44b5-8c0c-b7f10b448b68

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/refresh-outdated-deps

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates several dependencies, including @ai-sdk-tool/parser, vitest, and @mariozechner/pi-tui, and refactors the autocomplete logic in @ai-sdk-tool/tui to support a new asynchronous API. The review feedback suggests enhancing the implementation by importing AutocompleteOptions and ensuring that the options parameter, which includes the cancellation signal, is correctly propagated through getAliasArgumentSuggestions and down to the underlying command completions.

import {
type AutocompleteItem,
type AutocompleteProvider,
type AutocompleteSuggestions,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To fully support the new async autocomplete API, you should also import AutocompleteOptions from @mariozechner/pi-tui. This type contains the signal (AbortSignal) and force flag used for cancellation and cache-busting.

Suggested change
type AutocompleteSuggestions,
type AutocompleteSuggestions,
type AutocompleteOptions,

Comment on lines +159 to +162
export const getAliasArgumentSuggestions = async (
textBeforeCursor: string,
commandSuggestionsByName: Map<string, SlashCommand>
): { items: AutocompleteItem[]; prefix: string } | null => {
): Promise<{ items: AutocompleteItem[]; prefix: string } | null> => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The getAliasArgumentSuggestions function should be updated to accept the options parameter. This allows forwarding the AbortSignal to the underlying command completions. Additionally, you can use the AutocompleteSuggestions type for the return value for better clarity.

Suggested change
export const getAliasArgumentSuggestions = async (
textBeforeCursor: string,
commandSuggestionsByName: Map<string, SlashCommand>
): { items: AutocompleteItem[]; prefix: string } | null => {
): Promise<{ items: AutocompleteItem[]; prefix: string } | null> => {
export const getAliasArgumentSuggestions = async (
textBeforeCursor: string,
commandSuggestionsByName: Map<string, SlashCommand>,
options?: AutocompleteOptions
): Promise<AutocompleteSuggestions | null> => {


const argumentPrefix = textBeforeCursor.slice(spaceIndex + 1);
const items = command.getArgumentCompletions(argumentPrefix);
const items = await command.getArgumentCompletions(argumentPrefix);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Forward the options (which includes the signal) to getArgumentCompletions. This ensures that if the user continues typing and a new autocomplete request is triggered, the previous async operation can be properly aborted.

Suggested change
const items = await command.getArgumentCompletions(argumentPrefix);
const items = await command.getArgumentCompletions(argumentPrefix, options);

Comment on lines +271 to 274
const aliasArgumentSuggestions = await getAliasArgumentSuggestions(
textBeforeCursor,
commandSuggestionsByName
);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Pass the options received in getSuggestions down to getAliasArgumentSuggestions so that the cancellation signal is correctly propagated.

      const aliasArgumentSuggestions = await getAliasArgumentSuggestions(
        textBeforeCursor,
        commandSuggestionsByName,
        options
      );

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 7 files

@minpeter minpeter merged commit f523de9 into main Apr 22, 2026
7 checks passed
@minpeter minpeter deleted the chore/refresh-outdated-deps branch April 22, 2026 09:59
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