Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
runtimecommand family so tool users can evaluate live expressions, inspect returned remote object handles, and explicitly release preserved Runtime references on Chrome, Node.js, and React Native targets.Context
This change introduces a focused
src/runtime/module and keeps the scope intentionally small:runtime eval,runtime props,runtime release, andruntime release-group. The default behavior preserves remote object handles in theagent-cdp-runtimeobject group so an agent can evaluate first and inspect properties in a follow-up step before releasing the handle.Backward-compatibility: existing command families, daemon lifecycle, and default output formats remain unchanged. This only adds a new top-level command family, new packaged skill guidance, and README coverage for Runtime inspection.
Risks
Fixes #8
Manual testing
agent-cdp runtime eval --expr "process.version"or another read-only expression appropriate for the target, and verify primitive values print compactly.agent-cdp runtime eval --expr "globalThis"and verify the output includes anobjectIdfor follow-up inspection.agent-cdp runtime props --id <OBJECT_ID> --ownand verify returned properties include concise summaries and nested object handles when present.agent-cdp runtime release --id <OBJECT_ID>oragent-cdp runtime release-groupand verify cleanup succeeds without changing other command workflows.