Skip to content

@receptron/[email protected] - #1203

Merged
isamu merged 1 commit into
receptron:mainfrom
isamu:@receptron/[email protected]
Aug 14, 2025
Merged

isamu merged 1 commit into
receptron:mainfrom
isamu:@receptron/[email protected]

Conversation

@isamu

@isamu isamu commented Aug 14, 2025 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Chores

    • Updated CLI version to 2.0.7.
    • Added a new dependency to support agent filtering, preparing the CLI for enhanced capabilities.
  • Bug Fixes

    • General stability improvements through dependency updates.
  • Documentation

    • Updated version references where displayed to reflect 2.0.7.

@coderabbitai

coderabbitai Bot commented Aug 14, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

Version bump in packages/cli/package.json from 2.0.6 to 2.0.7 and addition of a new dependency @graphai/agent_filters@^2.0.0.

Changes

Cohort / File(s) Summary
CLI package metadata
packages/cli/package.json
Updated version to 2.0.7; added dependency "@graphai/agent_filters": "^2.0.0".

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

  • Vanilla2.0.6 #1171 — Also updates packages/cli/package.json dependencies (targets @graphai/agents), indicating coordinated dependency changes within the CLI package.

Poem

A hop, a bop, a tiny tweak,
The CLI hums with filters sleek.
From 2.0.6 to seven we go,
New agents join the burrow’s flow.
Thump-thump! I stamp my paws with cheer—
Dependencies fresh, the path is clear. 🐇✨

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai Bot left a comment

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.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these settings in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 4411735 and 54012a9.

📒 Files selected for processing (1)
  • packages/cli/package.json (2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: build (22.x)
  • GitHub Check: build (24.x)
🔇 Additional comments (1)
packages/cli/package.json (1)

3-3: Patch version bump to 2.0.7 looks good.

No issues spotted with the version increment.

Comment thread packages/cli/package.json
},
"dependencies": {
"@graphai/agents": "^2.0.8",
"@graphai/agent_filters": "^2.0.0",

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.

💡 Verification agent

🧩 Analysis chain

Confirm necessity and usage of the new dependency @graphai/agent_filters.

  • If this is only needed for optional/dynamic plugin loading, consider whether it should be an optionalDependency and ensure graceful handling when absent.
  • Also verify there’s no redundancy with "@graphai/stream_agent_filter" and that both are intentionally required by the CLI.

Run the following to verify usage across the repo and consistency of versions:


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "Searching for direct imports/usages of @graphai/agent_filters..."
rg -n --hidden -S '@graphai/agent_filters' -A 2 -B 2 || echo "No direct usages found."

echo
echo "Checking for package.json references and versions:"
fd -g package.json | xargs -I{} sh -c 'echo "--- {}"; jq -r '"'"'
  {
    name: .name,
    deps: (.dependencies // {} | to_entries[]? | select(.key=="@graphai/agent_filters")),
    devDeps: (.devDependencies // {} | to_entries[]? | select(.key=="@graphai/agent_filters")),
    optDeps: (.optionalDependencies // {} | to_entries[]? | select(.key=="@graphai/agent_filters"))
  }
'"'"' "{}" 2>/dev/null'

echo
echo "If there are no direct imports, confirm this dependency is required for runtime resolution of plugins."

Length of output: 7020


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "Occurrences of @graphai/agent_filters (full matches with context):"
rg -n --hidden -S '@graphai/agent_filters' -A2 -B2 || true

echo
echo "Occurrences of @graphai/stream_agent_filter (full matches with context):"
rg -n --hidden -S '@graphai/stream_agent_filter' -A2 -B2 || true

echo
echo "packages/cli/package.json (dependencies block):"
jq '.dependencies' packages/cli/package.json

echo
echo "Top-level packages that declare @graphai/agent_filters in package.json:"
rg -n --hidden -S '"@graphai/agent_filters"' -g '**/package.json' || true
echo
echo "Top-level packages that declare @graphai/stream_agent_filter in package.json:"
rg -n --hidden -S '"@graphai/stream_agent_filter"' -g '**/package.json' || true

echo
echo "Inspecting agent_filters package.json (if present):"
if [ -f "packages/agent_filters/package.json" ]; then
  jq '{name,version,description}' packages/agent_filters/package.json
elif [ -f "agent_filters/package.json" ]; then
  jq '{name,version,description}' agent_filters/package.json
else
  echo "agent_filters package.json not found at expected paths"
fi

echo
echo "Inspecting stream_agent_filter package.json (if present):"
if [ -f "agent_filters/stream_agent_filter/package.json" ]; then
  jq '{name,version,description}' agent_filters/stream_agent_filter/package.json
elif [ -f "packages/agent_filters/stream_agent_filter/package.json" ]; then
  jq '{name,version,description}' packages/agent_filters/stream_agent_filter/package.json
else
  echo "stream_agent_filter package.json not found at expected paths"
fi

echo
echo "Search for any direct imports/usages of these packages within packages/cli source:"
rg -n --hidden -S '@graphai/agent_filters|@graphai/stream_agent_filter' packages/cli || true

Length of output: 13891


Action: remove or make optional the unused @graphai/agent_filters dependency in packages/cli/package.json

Quick summary: repo search shows packages/cli does not import @graphai/agent_filters — it only imports @graphai/stream_agent_filter. @graphai/agent_filters is used elsewhere (tests/samples) and exists as a package in the repo, so it appears redundant in the CLI package.json.

Files to inspect / act on:

  • packages/cli/package.json — remove or move this line:
    • "@graphai/agent_filters": "^2.0.0",
  • packages/cli/src/graphai_cli.ts — imports streamAgentFilterGenerator from "@graphai/stream_agent_filter" (keep @graphai/stream_agent_filter).
  • Reference usages of @graphai/agent_filters (for context):
    • packages/test_utils/src/test_runner.ts (import namedInputValidatorFilter)
    • packages/samples/src/streaming/streamAgentFilter.ts
    • packages/samples/src/cache/cache_example.ts
    • packages/agent_filters/* (the package itself)

Recommendation:

  • If CLI does not need agent_filters at runtime: remove the dependency from packages/cli/package.json.
  • If it’s intended for optional/dynamic plugin loading: move it to optionalDependencies and ensure any dynamic requires are guarded (try/catch or existence checks).
🤖 Prompt for AI Agents
In packages/cli/package.json around line 38, the dependency
"@graphai/agent_filters": "^2.0.0" is unused by the CLI (it imports
"@graphai/stream_agent_filter" instead); remove that line from dependencies or
move it to optionalDependencies if you intend it as a plugin, and if moved make
sure any code that may require it dynamically is wrapped with existence
checks/try-catch so missing package won't crash the CLI; keep the existing
"@graphai/stream_agent_filter" dependency as-is.

@isamu
isamu merged commit 6fb5f04 into receptron:main Aug 14, 2025
@coderabbitai coderabbitai Bot mentioned this pull request Sep 5, 2025
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