diff --git a/.agents/skills/bring-warp-feature-over/SKILL.md b/.agents/skills/bring-warp-feature-over/SKILL.md new file mode 100644 index 00000000..54d54153 --- /dev/null +++ b/.agents/skills/bring-warp-feature-over/SKILL.md @@ -0,0 +1,232 @@ +--- +name: bring-warp-feature-over +description: Identify recent features merged into upstream Warp, assess eligibility for the Galaxy fork, and migrate selected features with Bedrock API adaptations. Use when syncing new Warp functionality into Galaxy. +--- + +# bring-warp-feature-over + +Fetches recent upstream Warp changes, filters for eligible features, lets the user pick which to migrate, plans the work, and spawns agents to implement each migration. + +## Overview + +Galaxy is a fork of Warp that uses AWS Bedrock instead of Warp's proprietary AI APIs. When upstream Warp ships new features, this skill identifies which ones can be brought over, adapts API calls to Bedrock, and replaces Warp-specific branding where needed. + +## Workflow + +### 1. Fetch recent upstream changes + +Use the GitHub API to pull merged commits from `warpdotdev/warp` on the default branch. Group by PR (commits reference `#`). + +```bash +# Fetch commits from the last N days (default 14) +curl -s "https://api.github.com/repos/warpdotdev/warp/commits?per_page=100&since=$(date -u -v-14d +%Y-%m-%dT00:00:00Z)" \ + | python3 -c " +import json, sys +data = json.load(sys.stdin) +for c in data: + sha = c['sha'][:8] + msg = c['commit']['message'].split('\n')[0] + date = c['commit']['author']['date'][:10] + print(f'{date} {sha} {msg}') +" +``` + +If the user specifies a date range or number of days, adjust the `since` parameter. For longer lookups, paginate with `&page=2`, etc. + +To get more detail on a specific PR: +```bash +curl -s "https://api.github.com/repos/warpdotdev/warp/pulls/" | python3 -c " +import json, sys +pr = json.load(sys.stdin) +print(pr.get('title')) +print(pr.get('body','')[:2000]) +" +``` + +To see the files changed in a PR: +```bash +curl -s "https://api.github.com/repos/warpdotdev/warp/pulls//files" | python3 -c " +import json, sys +files = json.load(sys.stdin) +for f in files: + print(f['status'], f['filename']) +" +``` + +### 2. Assess eligibility + +For each feature/PR, determine eligibility. A feature is **ineligible** if: + +- It depends on Warp's server APIs that we don't have access to (e.g. `warp-server` endpoints, GraphQL mutations for Warp Cloud services) +- It's specific to "Warp Drive" syncing infrastructure (unless it can be adapted to "Galaxy Drive") +- It references "Oz" orchestration that relies on Warp's hosted agent backend +- It requires Warp's proprietary AI proxy and cannot be redirected to Bedrock +- It's purely a Warp billing, subscription, or team management feature +- It touches WASM-only paths that Galaxy doesn't ship + +A feature **is eligible** if: + +- It's a client-side UX improvement (terminal, editor, completions, themes, settings) +- It's an AI feature that calls a model API we can route through Bedrock (Claude, etc.) +- It's a local-only feature (git integration, file system, SSH, etc.) +- It's a bug fix applicable to shared code paths +- It touches "Warp Drive" but can be rebranded to "Galaxy Drive" + +When assessing, also note the **adaptation cost**: +- **Low**: Drop-in (UI fix, terminal behavior, keybindings) +- **Medium**: Needs Bedrock API mapping or minor branding changes +- **High**: Significant refactoring of server-dependent code to work with Bedrock + +### 3. Present feature checklist to user + +After assessment, present the eligible features to the user using `AskUserQuestion` with `multiSelect: true`. Group by adaptation cost. Include the PR title and a one-line summary of what it does. + +Example: +``` +Which features would you like to bring over? + +Low effort: +- [ ] #10958 - Make worktree menu paths readable for long entries +- [ ] #11099 - Clip terminal view column to prevent split-pane footer overflow + +Medium effort: +- [ ] #11049 - Add sleep auto handoff to cloud (needs Bedrock adaptation) + +High effort: +- [ ] #10857 - Add orchestration create environment modal (heavy server dependency) +``` + +### 4. Research selected features + +For each selected feature, perform detailed research: + +1. **Read the PR diff** — use the GitHub API to understand what changed: + ```bash + curl -s "https://api.github.com/repos/warpdotdev/warp/pulls//files?per_page=100" + ``` + +2. **Map to local files** — identify corresponding files in our Galaxy fork. Check if the files exist and what state they're in. + +3. **Identify Bedrock adaptations** — if the feature makes AI/model calls, document: + - What model is being called and how + - What the equivalent Bedrock invocation looks like + - What request/response transformations are needed + +4. **Identify branding changes** — flag any references to: + - "Warp Drive" → "Galaxy Drive" + - "Oz" → remove or replace + - Warp-specific UI copy that needs updating + +5. **Document dependencies** — note any new crates, feature flags, or config changes needed. + +### 5. Write migration plans + +For each selected feature, create a plan file at: +``` +plans/warp-migrations/-.md +``` + +Each plan should contain: + +```markdown +# Migration: + +**Source PR**: warpdotdev/warp# +**Adaptation Cost**: Low | Medium | High +**Date Assessed**: + +## Summary + + +## Files Changed (upstream) + + +## Local File Mapping + + +## Required Adaptations +- +- +- + +## Implementation Steps +1. +2. +... + +## Testing Notes + +``` + +### 6. Spawn implementation agents + +For each migration plan, spawn an agent using the `Agent` tool to make the code changes. Key rules for spawning: + +- **Agents only write code** — they do NOT run `cargo check`, `cargo build`, or `cargo clippy` +- **Spawn agents in parallel** for independent features (no shared file conflicts) +- **Spawn sequentially** if two features touch the same files +- Each agent's prompt must include: + - The full migration plan content + - The specific files to modify and what changes to make + - Instructions to NOT run cargo commands + - Instructions to report back what files were changed + +Example agent prompt structure: +``` +You are implementing a Warp feature migration into the Galaxy fork. + +Migration plan: + + +Instructions: +- Make ONLY the code changes described in the plan +- Do NOT run cargo check, cargo build, cargo clippy, or any compilation commands +- Adapt any Warp API calls to use Bedrock (see plan for specifics) +- Replace "Warp Drive" with "Galaxy Drive" where applicable +- Remove or skip any "Oz" references +- Report back: list all files you modified and a brief summary of changes +``` + +### 7. Verify builds (parent agent only) + +After all implementation agents complete, the parent agent (you) runs: + +```bash +cargo fmt +cargo clippy --workspace --all-targets --all-features --tests -- -D warnings +``` + +If there are errors, fix them directly or re-delegate targeted fixes to agents. + +### 8. Instruct user to test + +After a clean build, present the user with testing instructions: + +- List each migrated feature and how to exercise it +- Note any features that need specific configuration or feature flags enabled +- Ask the user to report back any issues they find +- Remind them to test with `cargo run` and verify the features work end-to-end + +## Branding Reference + +| Upstream (Warp) | Galaxy equivalent | +|-----------------------|-----------------------| +| Warp Drive | Galaxy Drive | +| Oz / Orchestrator | Remove or skip | +| Warp AI / Warp Agent | Galaxy AI / Agent | +| warp-server endpoints | Skip (ineligible) | + +## Bedrock Adaptation Patterns + +When adapting AI features from Warp's proxy to Bedrock: + +- Warp's AI calls typically go through their proxy server — Galaxy calls Bedrock directly +- Look for the existing Bedrock integration patterns in `app/src/ai/` for how Galaxy makes model calls +- Ensure streaming responses are handled correctly (Bedrock uses different event formats) +- Check `WARP.md` "Bedrock Diagnostics" section for debugging tools + +## Related Skills + +- `fix-errors` — for resolving build failures after migration +- `add-feature-flag` — if the migrated feature needs gating +- `implement-specs` — for larger features that need full specs diff --git a/Cargo.lock b/Cargo.lock index df82896a..115e61fc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5191,7 +5191,7 @@ dependencies = [ [[package]] name = "galaxy" -version = "1.0.0" +version = "1.1.0" dependencies = [ "addr", "aho-corasick", diff --git a/Error_20260518_112255_626.txt b/Error_20260518_112255_626.txt deleted file mode 100644 index 1236b931..00000000 --- a/Error_20260518_112255_626.txt +++ /dev/null @@ -1,1037 +0,0 @@ -{ - "bedrock": { - "context_window": [ - { - "content": { - "text": "looking at ~/GIT/personal/zed, how hard would it be to replace the warp IDE / Code Editor with Zed's code editor? LSP's, Intellisense, key gestures, etc.. \n \n Or, at minimum, just bringing (or adding) LSP's and intellisense with code following / tracking in the Warp IDE?", - "type": "text" - }, - "role": "user" - }, - { - "content": { - "parts": [ - { - "input": { - "command": "ls ~/GIT/personal/zed/" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_vz5OuMZwcx46hFdMWXIX4z", - "type": "tool_use" - }, - { - "input": { - "patterns": [ - "/Users/ryan.ward/GIT/personal/galaxy/app/src/editor*", - "/Users/ryan.ward/GIT/personal/galaxy/crates/editor/**/*.rs", - "/Users/ryan.ward/GIT/personal/galaxy/editor/**/*.rs" - ] - }, - "name": "file_glob", - "tool_use_id": "tooluse_LzMXoxi2VJsOFjPc7M8C4C", - "type": "tool_use" - } - ], - "type": "multi_part" - }, - "role": "assistant" - }, - { - "content": { - "parts": [ - { - "content": "Exit code: 0\nAGENTS.md\nCLAUDE.md\nCODE_OF_CONDUCT.md\nCONTRIBUTING.md\nCargo.lock\nCargo.toml\nDockerfile-collab\nDockerfile-collab.dockerignore\nDockerfile-cross.dockerignore\nDockerfile-distros\nDockerfile-distros.dockerignore\nGEMINI.md\nLICENSE-AGPL\nLICENSE-APACHE\nLICENSE-GPL\nProcfile\nProcfile.all\nProcfile.web\nREADME.md\nREVIEWERS.conl\nassets\nci\nclippy.toml\ncompose.yml\ncrates\ndebug.plist\ndefault.nix\ndocs\nextensions\nflake.lock\nflake.nix\nlegal\nlivekit.yaml\nlychee.toml\nnix\nrenovate.json\nrust-toolchain.toml\nrustfmt.toml\nscript\nshell.nix\ntooling\ntypos.toml", - "is_error": false, - "tool_use_id": "tooluse_vz5OuMZwcx46hFdMWXIX4z", - "type": "tool_result" - }, - { - "content": "Tool completed successfully.", - "is_error": false, - "tool_use_id": "tooluse_LzMXoxi2VJsOFjPc7M8C4C", - "type": "tool_result" - } - ], - "type": "multi_part" - }, - "role": "user" - }, - { - "content": { - "parts": [ - { - "input": { - "command": "ls ~/GIT/personal/zed/crates/ | grep -i -E \"editor|lsp|language|completion|project\" | head -30" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_6ZWGelIQN4UjqbSoCeJfqj", - "type": "tool_use" - }, - { - "input": { - "patterns": [ - "/Users/ryan.ward/GIT/personal/galaxy/editor/src/**/*.rs", - "/Users/ryan.ward/GIT/personal/galaxy/app/src/ide/**/*.rs", - "/Users/ryan.ward/GIT/personal/galaxy/app/src/ai/ide*" - ] - }, - "name": "file_glob", - "tool_use_id": "tooluse_g8NhBrDZ5YQKPh1U1cPP5V", - "type": "tool_use" - }, - { - "input": { - "command": "find /Users/ryan.ward/GIT/personal/galaxy -type d -name \"editor\" | head -10" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_ZrM6SbPRIYQN5cvaP206AA", - "type": "tool_use" - } - ], - "type": "multi_part" - }, - "role": "assistant" - }, - { - "content": { - "parts": [ - { - "content": "Exit code: 0\neditor\neditor_benchmarks\nkeymap_editor\nlanguage\nlanguage_core\nlanguage_extension\nlanguage_model\nlanguage_model_core\nlanguage_models\nlanguage_models_cloud\nlanguage_onboarding\nlanguage_selector\nlanguage_tools\nlanguages\nlsp\nproject\nproject_benchmarks\nproject_panel\nproject_symbols\nrecent_projects", - "is_error": false, - "tool_use_id": "tooluse_6ZWGelIQN4UjqbSoCeJfqj", - "type": "tool_result" - }, - { - "content": "Tool completed successfully.", - "is_error": false, - "tool_use_id": "tooluse_g8NhBrDZ5YQKPh1U1cPP5V", - "type": "tool_result" - }, - { - "content": "\n<|cursor|>", - "is_error": false, - "tool_use_id": "tooluse_ZrM6SbPRIYQN5cvaP206AA", - "type": "tool_result" - } - ], - "type": "multi_part" - }, - "role": "user" - }, - { - "content": { - "parts": [ - { - "input": { - "command": "find /Users/ryan.ward/GIT/personal/galaxy -type d -name \"editor\" -o -type d -name \"ide\" 2>/dev/null | head -20" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_OomnbdbOxtPWcGxOvs22qC", - "type": "tool_use" - }, - { - "input": { - "command": "cat /Users/ryan.ward/GIT/personal/galaxy/Cargo.toml | grep -A 2 \"editor\"" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_epIhzpMeI5HcLliDjIcGcF", - "type": "tool_use" - }, - { - "input": { - "command": "ls ~/GIT/personal/zed/crates/editor/src/ | head -40" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_NxanvkYOSKLZWKas56cBSd", - "type": "tool_use" - } - ], - "type": "multi_part" - }, - "role": "assistant" - }, - { - "content": { - "parts": [ - { - "content": "Exit code: 0\n/Users/ryan.ward/GIT/personal/galaxy/crates/editor\n/Users/ryan.ward/GIT/personal/galaxy/app/src/code/editor\n/Users/ryan.ward/GIT/personal/galaxy/app/src/ai/execution_profiles/editor\n/Users/ryan.ward/GIT/personal/galaxy/app/src/notebooks/editor\n/Users/ryan.ward/GIT/personal/galaxy/app/src/editor", - "is_error": false, - "tool_use_id": "tooluse_OomnbdbOxtPWcGxOvs22qC", - "type": "tool_result" - }, - { - "content": "Exit code: 0\n \"crates/editor\",\n \"crates/graphql\",\n \"crates/markdown_parser\",\n--\ngalaxy_editor = { path = \"crates/editor\" }\ngalaxy_features = { path = \"crates/galaxy_features\" }\nremote_server = { path = \"crates/remote_server\" }", - "is_error": false, - "tool_use_id": "tooluse_epIhzpMeI5HcLliDjIcGcF", - "type": "tool_result" - }, - { - "content": "Exit code: 0\nactions.rs\nblink_manager.rs\nbookmarks.rs\nbracket_colorization.rs\nclangd_ext.rs\ncode_actions.rs\ncode_completion_tests.rs\ncode_context_menus.rs\ncode_lens.rs\ncompletions.rs\nconfig.rs\ndiagnostics.rs\ndisplay_map\ndisplay_map.rs\ndocument_colors.rs\ndocument_symbols.rs\nedit_prediction_tests.rs\neditor.rs\neditor_block_comment_tests.rs\neditor_settings.rs\neditor_tests\neditor_tests.rs\nelement.rs\nfold.rs\nfolding_ranges.rs\ngit\ngit.rs\nhighlight_matching_bracket.rs\nhover_links.rs\nhover_popover.rs\nindent_guides.rs\ninlays\ninlays.rs\ninput.rs\nitems.rs\njsx_tag_auto_close.rs\nlinked_editing_ranges.rs\nlsp_ext.rs\nmouse_context_menu.rs\nmovement.rs", - "is_error": false, - "tool_use_id": "tooluse_NxanvkYOSKLZWKas56cBSd", - "type": "tool_result" - } - ], - "type": "multi_part" - }, - "role": "user" - }, - { - "content": { - "parts": [ - { - "input": { - "command": "ls ~/GIT/personal/zed/crates/editor/src/ | wc -l && ls ~/GIT/personal/zed/crates/lsp/src/ | head -20" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_bNHc7DMPpUQDPzFFBFlvy5", - "type": "tool_use" - }, - { - "input": { - "command": "ls /Users/ryan.ward/GIT/personal/galaxy/crates/editor/src/" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_On7202JL4XHtnHK2pv0IZE", - "type": "tool_use" - }, - { - "input": { - "command": "wc -l ~/GIT/personal/zed/crates/editor/src/editor.rs 2>/dev/null; find ~/GIT/personal/zed/crates/editor -name \"*.rs\" | xargs wc -l 2>/dev/null | tail -1" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_6SEE5moW0t8bGIafYGCitu", - "type": "tool_use" - } - ], - "type": "multi_part" - }, - "role": "assistant" - }, - { - "content": { - "parts": [ - { - "content": "Exit code: 0\n 56\ninput_handler.rs\nlsp.rs", - "is_error": false, - "tool_use_id": "tooluse_bNHc7DMPpUQDPzFFBFlvy5", - "type": "tool_result" - }, - { - "content": "Exit code: 0\ncontent\ndecoration\neditor.rs\nlib.rs\nmodel.rs\nmultiline.rs\nmultiline_tests.rs\nparallel_util.rs\nrender\nsearch.rs\nsearch_tests.rs\nselection.rs\nselection_tests.rs", - "is_error": false, - "tool_use_id": "tooluse_On7202JL4XHtnHK2pv0IZE", - "type": "tool_result" - }, - { - "content": "Exit code: 0\n 15198 /Users/ryan.ward/GIT/personal/zed/crates/editor/src/editor.rs\n 148732 total", - "is_error": false, - "tool_use_id": "tooluse_6SEE5moW0t8bGIafYGCitu", - "type": "tool_result" - } - ], - "type": "multi_part" - }, - "role": "user" - }, - { - "content": { - "parts": [ - { - "input": { - "command": "find /Users/ryan.ward/GIT/personal/galaxy/crates/editor -name \"*.rs\" | xargs wc -l 2>/dev/null | tail -1" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_nRC2z7mkP8ecACBf2gNToU", - "type": "tool_use" - }, - { - "input": { - "command": "find /Users/ryan.ward/GIT/personal/galaxy/app/src/editor -name \"*.rs\" | xargs wc -l 2>/dev/null | tail -1" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_zK8Bjvp6l0Y4Jf2FSqvi2F", - "type": "tool_use" - }, - { - "input": { - "command": "find /Users/ryan.ward/GIT/personal/galaxy/app/src/code -name \"*.rs\" | xargs wc -l 2>/dev/null | tail -1" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_PnzMBGx2d9dXLGG8bX5Srq", - "type": "tool_use" - }, - { - "input": { - "command": "find ~/GIT/personal/zed/crates/lsp -name \"*.rs\" | xargs wc -l | tail -1" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_7cHfxBmqLYlZUaixmnke59", - "type": "tool_use" - }, - { - "input": { - "command": "find ~/GIT/personal/zed/crates/language -name \"*.rs\" | xargs wc -l | tail -1" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_ZZ9xpaHl1vh6TMWBIQpyHz", - "type": "tool_use" - }, - { - "input": { - "command": "find ~/GIT/personal/zed/crates/project -name \"*.rs\" -not -path \"*/project_panel/*\" -not -path \"*/project_symbols/*\" -not -path \"*/project_benchmarks/*\" -not -path \"*/recent_projects/*\" | xargs wc -l | tail -1" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_kiRrWhrLnDuvBAg6cVMYb8", - "type": "tool_use" - } - ], - "type": "multi_part" - }, - "role": "assistant" - }, - { - "content": { - "parts": [ - { - "content": "Exit code: 0\n 61737 total", - "is_error": false, - "tool_use_id": "tooluse_nRC2z7mkP8ecACBf2gNToU", - "type": "tool_result" - }, - { - "content": "Exit code: 0\n 42718 total", - "is_error": false, - "tool_use_id": "tooluse_zK8Bjvp6l0Y4Jf2FSqvi2F", - "type": "tool_result" - }, - { - "content": "Exit code: 0\n 33911 total", - "is_error": false, - "tool_use_id": "tooluse_PnzMBGx2d9dXLGG8bX5Srq", - "type": "tool_result" - }, - { - "content": "Exit code: 0\n 2414 total", - "is_error": false, - "tool_use_id": "tooluse_7cHfxBmqLYlZUaixmnke59", - "type": "tool_result" - }, - { - "content": "Exit code: 0\n 21702 total", - "is_error": false, - "tool_use_id": "tooluse_ZZ9xpaHl1vh6TMWBIQpyHz", - "type": "tool_result" - }, - { - "content": "Exit code: 0\n 91950 total", - "is_error": false, - "tool_use_id": "tooluse_kiRrWhrLnDuvBAg6cVMYb8", - "type": "tool_result" - } - ], - "type": "multi_part" - }, - "role": "user" - }, - { - "content": { - "parts": [ - { - "input": { - "command": "head -100 /Users/ryan.ward/GIT/personal/galaxy/crates/editor/src/lib.rs" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_ypeUwQP80fdCFrTiePokWa", - "type": "tool_use" - }, - { - "input": { - "command": "cat /Users/ryan.ward/GIT/personal/galaxy/crates/editor/Cargo.toml" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_0RcLP9anNdW7kRsdKzyxl8", - "type": "tool_use" - }, - { - "input": { - "command": "head -50 ~/GIT/personal/zed/crates/editor/Cargo.toml" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_2PhKu0Th7ioeBQCD8WgBHe", - "type": "tool_use" - } - ], - "type": "multi_part" - }, - "role": "assistant" - }, - { - "content": { - "parts": [ - { - "content": "Exit code: 0\npub mod content;\npub mod decoration;\npub mod editor;\npub mod model;\npub mod multiline;\nmod parallel_util;\npub mod render;\npub mod search;\npub mod selection;", - "is_error": false, - "tool_use_id": "tooluse_ypeUwQP80fdCFrTiePokWa", - "type": "tool_result" - }, - { - "content": "Exit code: 0\n[package]\nname = \"galaxy_editor\"\nauthors = [\"Warp Team \"]\nversion = \"0.1.0\"\nedition = \"2024\"\ndescription = \"Text editing for Warp\"\nexclude = [\"test_data/*\",]\npublish.workspace = true\nlicense.workspace = true\n\n# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html\n\n[features]\ntest-util = []\n\n[dependencies]\nanyhow.workspace = true\narrayvec.workspace = true\nasset_cache.workspace = true\nasync-channel.workspace = true\nbytes.workspace = true\nenum-iterator.workspace = true\nfutures-lite.workspace = true\nfloat-cmp.workspace = true\ninstant.workspace = true\nitertools.workspace = true\nlazy_static.workspace = true\nlog.workspace = true\nmime_guess.workspace = true\nnum-traits.workspace = true\nordered-float.workspace = true\nhtml5ever.workspace = true\nmarkup5ever = \"0.35.0\"\nmarkdown_parser.workspace = true\nmermaid_to_svg.workspace = true\nparking_lot.workspace = true\nrand.workspace = true\nrangemap.workspace = true\nregex-automata = \"0.4.3\"\nregex-syntax = \"0.8.2\"\nurlocator.workspace = true\nserde.workspace = true\nserde_yaml.workspace = true\nstring-offset.workspace = true\nsum_tree.workspace = true\nthiserror.workspace = true\npathfinder_color = \"0.5.0\"\nvec1.workspace = true\ngalaxyui.workspace = true\ngalaxy_core.workspace = true\ngalaxy_util.workspace = true\nrayon.workspace = true\nline-ending.workspace = true\nvim.workspace = true\nimara-diff = \"0.2\"\n\n[dev-dependencies]\nrust-embed.workspace = true\nenclose = \"1.1.8\"\nenv_logger.workspace = true\nsum_tree = { workspace = true, features = [\"test-util\"] }\ngalaxy_core = { workspace = true, features = [\"test-util\"] }\ngalaxyui = { workspace = true, features = [\"test-util\"] }\ncriterion = { version = \"0.5.1\", features = [\"html_reports\"] }\n\n[[bench]]\nname = \"buffer_bench\"\nharness = false", - "is_error": false, - "tool_use_id": "tooluse_0RcLP9anNdW7kRsdKzyxl8", - "type": "tool_result" - }, - { - "content": "Exit code: 0\n[package]\nname = \"editor\"\nversion = \"0.1.0\"\nedition.workspace = true\npublish.workspace = true\nlicense = \"GPL-3.0-or-later\"\n\n[lints]\nworkspace = true\n\n[lib]\npath = \"src/editor.rs\"\ndoctest = false\n\n[features]\ntest-support = [\n \"text/test-support\",\n \"language/test-support\",\n \"gpui/test-support\",\n \"multi_buffer/test-support\",\n \"project/test-support\",\n \"theme/test-support\",\n \"util/test-support\",\n \"workspace/test-support\",\n \"tree-sitter-c\",\n \"tree-sitter-rust\",\n \"tree-sitter-typescript\",\n \"tree-sitter-html\",\n \"proptest\",\n \"unindent\",\n]\n\n[dependencies]\naho-corasick.workspace = true\nanyhow.workspace = true\nassets.workspace = true\nbase64.workspace = true\nbreadcrumbs.workspace = true\nclient.workspace = true\nclock.workspace = true\ncollections.workspace = true\nconvert_case.workspace = true\ndap.workspace = true\ndb.workspace = true\nbuffer_diff.workspace = true\nemojis.workspace = true\nfeature_flags.workspace = true\nfile_icons.workspace = true\nfutures.workspace = true\nfutures-lite.workspace = true", - "is_error": false, - "tool_use_id": "tooluse_2PhKu0Th7ioeBQCD8WgBHe", - "type": "tool_result" - } - ], - "type": "multi_part" - }, - "role": "user" - }, - { - "content": { - "parts": [ - { - "input": { - "command": "cat ~/GIT/personal/zed/crates/editor/Cargo.toml | grep \"dependencies\" -A 200 | grep \"^\\[\" | head -5" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_em9tqs15SXCKNr8wd3wTJS", - "type": "tool_use" - }, - { - "input": { - "command": "cat ~/GIT/personal/zed/crates/editor/Cargo.toml | grep -c \"workspace\"" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_2Q1GBb6AdJNDS96y3UV2f3", - "type": "tool_use" - }, - { - "input": { - "command": "ls /Users/ryan.ward/GIT/personal/galaxy/app/src/code/editor/" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_7WiS7KJpbI3f9wtjeyo2EG", - "type": "tool_use" - }, - { - "input": { - "command": "head -80 /Users/ryan.ward/GIT/personal/galaxy/app/src/code/editor/mod.rs 2>/dev/null || ls /Users/ryan.ward/GIT/personal/galaxy/app/src/code/" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_8H9USrs6qwWKfSnRPTFUyG", - "type": "tool_use" - } - ], - "type": "multi_part" - }, - "role": "assistant" - }, - { - "content": { - "parts": [ - { - "content": "Exit code: 0\n[dependencies]\n[dev-dependencies]\n[[bench]]\n[[bench]]", - "is_error": false, - "tool_use_id": "tooluse_em9tqs15SXCKNr8wd3wTJS", - "type": "tool_result" - }, - { - "content": "Exit code: 0\n107", - "is_error": false, - "tool_use_id": "tooluse_2Q1GBb6AdJNDS96y3UV2f3", - "type": "tool_result" - }, - { - "content": "Exit code: 0\ncomment_editor.rs\ncomment_editor_tests.rs\ncomments.rs\ndiff.rs\ndiff_tests.rs\nelement\nelement.rs\nembedded_comment.rs\nembedded_comment_tests.rs\nfind\ngoto_line\nline.rs\nline_iterator.rs\nmod.rs\nmodel.rs\nmodel_tests.rs\nnav_bar.rs\nscroll.rs\nview\nview.rs", - "is_error": false, - "tool_use_id": "tooluse_7WiS7KJpbI3f9wtjeyo2EG", - "type": "tool_result" - }, - { - "content": "Exit code: 0\n#![cfg_attr(target_family = \"wasm\", allow(dead_code, unused_imports))]\n\npub(crate) mod comment_editor;\nmod comments;\npub(super) mod diff;\nmod element;\npub mod embedded_comment;\npub mod find;\npub mod goto_line;\npub mod line;\nmod line_iterator;\npub mod model;\nmod nav_bar;\npub mod scroll;\npub mod view;\n\npub use comment_editor::{CommentEditor, CommentEditorEvent};\npub use comments::EditorCommentsModel;\npub use comments::EditorReviewComment;\npub(crate) use diff::{add_color, remove_color};\npub use element::GutterHoverTarget;\npub use nav_bar::NavBarBehavior;", - "is_error": false, - "tool_use_id": "tooluse_8H9USrs6qwWKfSnRPTFUyG", - "type": "tool_result" - } - ], - "type": "multi_part" - }, - "role": "user" - } - ], - "conversation_id": "", - "input": { - "cross_region_inference": true, - "max_tokens": 64000, - "messages": [ - { - "content": { - "text": "looking at ~/GIT/personal/zed, how hard would it be to replace the warp IDE / Code Editor with Zed's code editor? LSP's, Intellisense, key gestures, etc.. \n \n Or, at minimum, just bringing (or adding) LSP's and intellisense with code following / tracking in the Warp IDE?", - "type": "text" - }, - "role": "user" - }, - { - "content": { - "parts": [ - { - "input": { - "command": "ls ~/GIT/personal/zed/" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_vz5OuMZwcx46hFdMWXIX4z", - "type": "tool_use" - }, - { - "input": { - "patterns": [ - "/Users/ryan.ward/GIT/personal/galaxy/app/src/editor*", - "/Users/ryan.ward/GIT/personal/galaxy/crates/editor/**/*.rs", - "/Users/ryan.ward/GIT/personal/galaxy/editor/**/*.rs" - ] - }, - "name": "file_glob", - "tool_use_id": "tooluse_LzMXoxi2VJsOFjPc7M8C4C", - "type": "tool_use" - } - ], - "type": "multi_part" - }, - "role": "assistant" - }, - { - "content": { - "parts": [ - { - "content": "Exit code: 0\nAGENTS.md\nCLAUDE.md\nCODE_OF_CONDUCT.md\nCONTRIBUTING.md\nCargo.lock\nCargo.toml\nDockerfile-collab\nDockerfile-collab.dockerignore\nDockerfile-cross.dockerignore\nDockerfile-distros\nDockerfile-distros.dockerignore\nGEMINI.md\nLICENSE-AGPL\nLICENSE-APACHE\nLICENSE-GPL\nProcfile\nProcfile.all\nProcfile.web\nREADME.md\nREVIEWERS.conl\nassets\nci\nclippy.toml\ncompose.yml\ncrates\ndebug.plist\ndefault.nix\ndocs\nextensions\nflake.lock\nflake.nix\nlegal\nlivekit.yaml\nlychee.toml\nnix\nrenovate.json\nrust-toolchain.toml\nrustfmt.toml\nscript\nshell.nix\ntooling\ntypos.toml", - "is_error": false, - "tool_use_id": "tooluse_vz5OuMZwcx46hFdMWXIX4z", - "type": "tool_result" - }, - { - "content": "Tool completed successfully.", - "is_error": false, - "tool_use_id": "tooluse_LzMXoxi2VJsOFjPc7M8C4C", - "type": "tool_result" - } - ], - "type": "multi_part" - }, - "role": "user" - }, - { - "content": { - "parts": [ - { - "input": { - "command": "ls ~/GIT/personal/zed/crates/ | grep -i -E \"editor|lsp|language|completion|project\" | head -30" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_6ZWGelIQN4UjqbSoCeJfqj", - "type": "tool_use" - }, - { - "input": { - "patterns": [ - "/Users/ryan.ward/GIT/personal/galaxy/editor/src/**/*.rs", - "/Users/ryan.ward/GIT/personal/galaxy/app/src/ide/**/*.rs", - "/Users/ryan.ward/GIT/personal/galaxy/app/src/ai/ide*" - ] - }, - "name": "file_glob", - "tool_use_id": "tooluse_g8NhBrDZ5YQKPh1U1cPP5V", - "type": "tool_use" - }, - { - "input": { - "command": "find /Users/ryan.ward/GIT/personal/galaxy -type d -name \"editor\" | head -10" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_ZrM6SbPRIYQN5cvaP206AA", - "type": "tool_use" - } - ], - "type": "multi_part" - }, - "role": "assistant" - }, - { - "content": { - "parts": [ - { - "content": "Exit code: 0\neditor\neditor_benchmarks\nkeymap_editor\nlanguage\nlanguage_core\nlanguage_extension\nlanguage_model\nlanguage_model_core\nlanguage_models\nlanguage_models_cloud\nlanguage_onboarding\nlanguage_selector\nlanguage_tools\nlanguages\nlsp\nproject\nproject_benchmarks\nproject_panel\nproject_symbols\nrecent_projects", - "is_error": false, - "tool_use_id": "tooluse_6ZWGelIQN4UjqbSoCeJfqj", - "type": "tool_result" - }, - { - "content": "Tool completed successfully.", - "is_error": false, - "tool_use_id": "tooluse_g8NhBrDZ5YQKPh1U1cPP5V", - "type": "tool_result" - }, - { - "content": "\n<|cursor|>", - "is_error": false, - "tool_use_id": "tooluse_ZrM6SbPRIYQN5cvaP206AA", - "type": "tool_result" - } - ], - "type": "multi_part" - }, - "role": "user" - }, - { - "content": { - "parts": [ - { - "input": { - "command": "find /Users/ryan.ward/GIT/personal/galaxy -type d -name \"editor\" -o -type d -name \"ide\" 2>/dev/null | head -20" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_OomnbdbOxtPWcGxOvs22qC", - "type": "tool_use" - }, - { - "input": { - "command": "cat /Users/ryan.ward/GIT/personal/galaxy/Cargo.toml | grep -A 2 \"editor\"" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_epIhzpMeI5HcLliDjIcGcF", - "type": "tool_use" - }, - { - "input": { - "command": "ls ~/GIT/personal/zed/crates/editor/src/ | head -40" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_NxanvkYOSKLZWKas56cBSd", - "type": "tool_use" - } - ], - "type": "multi_part" - }, - "role": "assistant" - }, - { - "content": { - "parts": [ - { - "content": "Exit code: 0\n/Users/ryan.ward/GIT/personal/galaxy/crates/editor\n/Users/ryan.ward/GIT/personal/galaxy/app/src/code/editor\n/Users/ryan.ward/GIT/personal/galaxy/app/src/ai/execution_profiles/editor\n/Users/ryan.ward/GIT/personal/galaxy/app/src/notebooks/editor\n/Users/ryan.ward/GIT/personal/galaxy/app/src/editor", - "is_error": false, - "tool_use_id": "tooluse_OomnbdbOxtPWcGxOvs22qC", - "type": "tool_result" - }, - { - "content": "Exit code: 0\n \"crates/editor\",\n \"crates/graphql\",\n \"crates/markdown_parser\",\n--\ngalaxy_editor = { path = \"crates/editor\" }\ngalaxy_features = { path = \"crates/galaxy_features\" }\nremote_server = { path = \"crates/remote_server\" }", - "is_error": false, - "tool_use_id": "tooluse_epIhzpMeI5HcLliDjIcGcF", - "type": "tool_result" - }, - { - "content": "Exit code: 0\nactions.rs\nblink_manager.rs\nbookmarks.rs\nbracket_colorization.rs\nclangd_ext.rs\ncode_actions.rs\ncode_completion_tests.rs\ncode_context_menus.rs\ncode_lens.rs\ncompletions.rs\nconfig.rs\ndiagnostics.rs\ndisplay_map\ndisplay_map.rs\ndocument_colors.rs\ndocument_symbols.rs\nedit_prediction_tests.rs\neditor.rs\neditor_block_comment_tests.rs\neditor_settings.rs\neditor_tests\neditor_tests.rs\nelement.rs\nfold.rs\nfolding_ranges.rs\ngit\ngit.rs\nhighlight_matching_bracket.rs\nhover_links.rs\nhover_popover.rs\nindent_guides.rs\ninlays\ninlays.rs\ninput.rs\nitems.rs\njsx_tag_auto_close.rs\nlinked_editing_ranges.rs\nlsp_ext.rs\nmouse_context_menu.rs\nmovement.rs", - "is_error": false, - "tool_use_id": "tooluse_NxanvkYOSKLZWKas56cBSd", - "type": "tool_result" - } - ], - "type": "multi_part" - }, - "role": "user" - }, - { - "content": { - "parts": [ - { - "input": { - "command": "ls ~/GIT/personal/zed/crates/editor/src/ | wc -l && ls ~/GIT/personal/zed/crates/lsp/src/ | head -20" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_bNHc7DMPpUQDPzFFBFlvy5", - "type": "tool_use" - }, - { - "input": { - "command": "ls /Users/ryan.ward/GIT/personal/galaxy/crates/editor/src/" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_On7202JL4XHtnHK2pv0IZE", - "type": "tool_use" - }, - { - "input": { - "command": "wc -l ~/GIT/personal/zed/crates/editor/src/editor.rs 2>/dev/null; find ~/GIT/personal/zed/crates/editor -name \"*.rs\" | xargs wc -l 2>/dev/null | tail -1" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_6SEE5moW0t8bGIafYGCitu", - "type": "tool_use" - } - ], - "type": "multi_part" - }, - "role": "assistant" - }, - { - "content": { - "parts": [ - { - "content": "Exit code: 0\n 56\ninput_handler.rs\nlsp.rs", - "is_error": false, - "tool_use_id": "tooluse_bNHc7DMPpUQDPzFFBFlvy5", - "type": "tool_result" - }, - { - "content": "Exit code: 0\ncontent\ndecoration\neditor.rs\nlib.rs\nmodel.rs\nmultiline.rs\nmultiline_tests.rs\nparallel_util.rs\nrender\nsearch.rs\nsearch_tests.rs\nselection.rs\nselection_tests.rs", - "is_error": false, - "tool_use_id": "tooluse_On7202JL4XHtnHK2pv0IZE", - "type": "tool_result" - }, - { - "content": "Exit code: 0\n 15198 /Users/ryan.ward/GIT/personal/zed/crates/editor/src/editor.rs\n 148732 total", - "is_error": false, - "tool_use_id": "tooluse_6SEE5moW0t8bGIafYGCitu", - "type": "tool_result" - } - ], - "type": "multi_part" - }, - "role": "user" - }, - { - "content": { - "parts": [ - { - "input": { - "command": "find /Users/ryan.ward/GIT/personal/galaxy/crates/editor -name \"*.rs\" | xargs wc -l 2>/dev/null | tail -1" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_nRC2z7mkP8ecACBf2gNToU", - "type": "tool_use" - }, - { - "input": { - "command": "find /Users/ryan.ward/GIT/personal/galaxy/app/src/editor -name \"*.rs\" | xargs wc -l 2>/dev/null | tail -1" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_zK8Bjvp6l0Y4Jf2FSqvi2F", - "type": "tool_use" - }, - { - "input": { - "command": "find /Users/ryan.ward/GIT/personal/galaxy/app/src/code -name \"*.rs\" | xargs wc -l 2>/dev/null | tail -1" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_PnzMBGx2d9dXLGG8bX5Srq", - "type": "tool_use" - }, - { - "input": { - "command": "find ~/GIT/personal/zed/crates/lsp -name \"*.rs\" | xargs wc -l | tail -1" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_7cHfxBmqLYlZUaixmnke59", - "type": "tool_use" - }, - { - "input": { - "command": "find ~/GIT/personal/zed/crates/language -name \"*.rs\" | xargs wc -l | tail -1" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_ZZ9xpaHl1vh6TMWBIQpyHz", - "type": "tool_use" - }, - { - "input": { - "command": "find ~/GIT/personal/zed/crates/project -name \"*.rs\" -not -path \"*/project_panel/*\" -not -path \"*/project_symbols/*\" -not -path \"*/project_benchmarks/*\" -not -path \"*/recent_projects/*\" | xargs wc -l | tail -1" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_kiRrWhrLnDuvBAg6cVMYb8", - "type": "tool_use" - } - ], - "type": "multi_part" - }, - "role": "assistant" - }, - { - "content": { - "parts": [ - { - "content": "Exit code: 0\n 61737 total", - "is_error": false, - "tool_use_id": "tooluse_nRC2z7mkP8ecACBf2gNToU", - "type": "tool_result" - }, - { - "content": "Exit code: 0\n 42718 total", - "is_error": false, - "tool_use_id": "tooluse_zK8Bjvp6l0Y4Jf2FSqvi2F", - "type": "tool_result" - }, - { - "content": "Exit code: 0\n 33911 total", - "is_error": false, - "tool_use_id": "tooluse_PnzMBGx2d9dXLGG8bX5Srq", - "type": "tool_result" - }, - { - "content": "Exit code: 0\n 2414 total", - "is_error": false, - "tool_use_id": "tooluse_7cHfxBmqLYlZUaixmnke59", - "type": "tool_result" - }, - { - "content": "Exit code: 0\n 21702 total", - "is_error": false, - "tool_use_id": "tooluse_ZZ9xpaHl1vh6TMWBIQpyHz", - "type": "tool_result" - }, - { - "content": "Exit code: 0\n 91950 total", - "is_error": false, - "tool_use_id": "tooluse_kiRrWhrLnDuvBAg6cVMYb8", - "type": "tool_result" - } - ], - "type": "multi_part" - }, - "role": "user" - }, - { - "content": { - "parts": [ - { - "input": { - "command": "head -100 /Users/ryan.ward/GIT/personal/galaxy/crates/editor/src/lib.rs" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_ypeUwQP80fdCFrTiePokWa", - "type": "tool_use" - }, - { - "input": { - "command": "cat /Users/ryan.ward/GIT/personal/galaxy/crates/editor/Cargo.toml" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_0RcLP9anNdW7kRsdKzyxl8", - "type": "tool_use" - }, - { - "input": { - "command": "head -50 ~/GIT/personal/zed/crates/editor/Cargo.toml" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_2PhKu0Th7ioeBQCD8WgBHe", - "type": "tool_use" - } - ], - "type": "multi_part" - }, - "role": "assistant" - }, - { - "content": { - "parts": [ - { - "content": "Exit code: 0\npub mod content;\npub mod decoration;\npub mod editor;\npub mod model;\npub mod multiline;\nmod parallel_util;\npub mod render;\npub mod search;\npub mod selection;", - "is_error": false, - "tool_use_id": "tooluse_ypeUwQP80fdCFrTiePokWa", - "type": "tool_result" - }, - { - "content": "Exit code: 0\n[package]\nname = \"galaxy_editor\"\nauthors = [\"Warp Team \"]\nversion = \"0.1.0\"\nedition = \"2024\"\ndescription = \"Text editing for Warp\"\nexclude = [\"test_data/*\",]\npublish.workspace = true\nlicense.workspace = true\n\n# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html\n\n[features]\ntest-util = []\n\n[dependencies]\nanyhow.workspace = true\narrayvec.workspace = true\nasset_cache.workspace = true\nasync-channel.workspace = true\nbytes.workspace = true\nenum-iterator.workspace = true\nfutures-lite.workspace = true\nfloat-cmp.workspace = true\ninstant.workspace = true\nitertools.workspace = true\nlazy_static.workspace = true\nlog.workspace = true\nmime_guess.workspace = true\nnum-traits.workspace = true\nordered-float.workspace = true\nhtml5ever.workspace = true\nmarkup5ever = \"0.35.0\"\nmarkdown_parser.workspace = true\nmermaid_to_svg.workspace = true\nparking_lot.workspace = true\nrand.workspace = true\nrangemap.workspace = true\nregex-automata = \"0.4.3\"\nregex-syntax = \"0.8.2\"\nurlocator.workspace = true\nserde.workspace = true\nserde_yaml.workspace = true\nstring-offset.workspace = true\nsum_tree.workspace = true\nthiserror.workspace = true\npathfinder_color = \"0.5.0\"\nvec1.workspace = true\ngalaxyui.workspace = true\ngalaxy_core.workspace = true\ngalaxy_util.workspace = true\nrayon.workspace = true\nline-ending.workspace = true\nvim.workspace = true\nimara-diff = \"0.2\"\n\n[dev-dependencies]\nrust-embed.workspace = true\nenclose = \"1.1.8\"\nenv_logger.workspace = true\nsum_tree = { workspace = true, features = [\"test-util\"] }\ngalaxy_core = { workspace = true, features = [\"test-util\"] }\ngalaxyui = { workspace = true, features = [\"test-util\"] }\ncriterion = { version = \"0.5.1\", features = [\"html_reports\"] }\n\n[[bench]]\nname = \"buffer_bench\"\nharness = false", - "is_error": false, - "tool_use_id": "tooluse_0RcLP9anNdW7kRsdKzyxl8", - "type": "tool_result" - }, - { - "content": "Exit code: 0\n[package]\nname = \"editor\"\nversion = \"0.1.0\"\nedition.workspace = true\npublish.workspace = true\nlicense = \"GPL-3.0-or-later\"\n\n[lints]\nworkspace = true\n\n[lib]\npath = \"src/editor.rs\"\ndoctest = false\n\n[features]\ntest-support = [\n \"text/test-support\",\n \"language/test-support\",\n \"gpui/test-support\",\n \"multi_buffer/test-support\",\n \"project/test-support\",\n \"theme/test-support\",\n \"util/test-support\",\n \"workspace/test-support\",\n \"tree-sitter-c\",\n \"tree-sitter-rust\",\n \"tree-sitter-typescript\",\n \"tree-sitter-html\",\n \"proptest\",\n \"unindent\",\n]\n\n[dependencies]\naho-corasick.workspace = true\nanyhow.workspace = true\nassets.workspace = true\nbase64.workspace = true\nbreadcrumbs.workspace = true\nclient.workspace = true\nclock.workspace = true\ncollections.workspace = true\nconvert_case.workspace = true\ndap.workspace = true\ndb.workspace = true\nbuffer_diff.workspace = true\nemojis.workspace = true\nfeature_flags.workspace = true\nfile_icons.workspace = true\nfutures.workspace = true\nfutures-lite.workspace = true", - "is_error": false, - "tool_use_id": "tooluse_2PhKu0Th7ioeBQCD8WgBHe", - "type": "tool_result" - } - ], - "type": "multi_part" - }, - "role": "user" - }, - { - "content": { - "parts": [ - { - "input": { - "command": "cat ~/GIT/personal/zed/crates/editor/Cargo.toml | grep \"dependencies\" -A 200 | grep \"^\\[\" | head -5" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_em9tqs15SXCKNr8wd3wTJS", - "type": "tool_use" - }, - { - "input": { - "command": "cat ~/GIT/personal/zed/crates/editor/Cargo.toml | grep -c \"workspace\"" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_2Q1GBb6AdJNDS96y3UV2f3", - "type": "tool_use" - }, - { - "input": { - "command": "ls /Users/ryan.ward/GIT/personal/galaxy/app/src/code/editor/" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_7WiS7KJpbI3f9wtjeyo2EG", - "type": "tool_use" - }, - { - "input": { - "command": "head -80 /Users/ryan.ward/GIT/personal/galaxy/app/src/code/editor/mod.rs 2>/dev/null || ls /Users/ryan.ward/GIT/personal/galaxy/app/src/code/" - }, - "name": "run_shell_command", - "tool_use_id": "tooluse_8H9USrs6qwWKfSnRPTFUyG", - "type": "tool_use" - } - ], - "type": "multi_part" - }, - "role": "assistant" - }, - { - "content": { - "parts": [ - { - "content": "Exit code: 0\n[dependencies]\n[dev-dependencies]\n[[bench]]\n[[bench]]", - "is_error": false, - "tool_use_id": "tooluse_em9tqs15SXCKNr8wd3wTJS", - "type": "tool_result" - }, - { - "content": "Exit code: 0\n107", - "is_error": false, - "tool_use_id": "tooluse_2Q1GBb6AdJNDS96y3UV2f3", - "type": "tool_result" - }, - { - "content": "Exit code: 0\ncomment_editor.rs\ncomment_editor_tests.rs\ncomments.rs\ndiff.rs\ndiff_tests.rs\nelement\nelement.rs\nembedded_comment.rs\nembedded_comment_tests.rs\nfind\ngoto_line\nline.rs\nline_iterator.rs\nmod.rs\nmodel.rs\nmodel_tests.rs\nnav_bar.rs\nscroll.rs\nview\nview.rs", - "is_error": false, - "tool_use_id": "tooluse_7WiS7KJpbI3f9wtjeyo2EG", - "type": "tool_result" - }, - { - "content": "Exit code: 0\n#![cfg_attr(target_family = \"wasm\", allow(dead_code, unused_imports))]\n\npub(crate) mod comment_editor;\nmod comments;\npub(super) mod diff;\nmod element;\npub mod embedded_comment;\npub mod find;\npub mod goto_line;\npub mod line;\nmod line_iterator;\npub mod model;\nmod nav_bar;\npub mod scroll;\npub mod view;\n\npub use comment_editor::{CommentEditor, CommentEditorEvent};\npub use comments::EditorCommentsModel;\npub use comments::EditorReviewComment;\npub(crate) use diff::{add_color, remove_color};\npub use element::GutterHoverTarget;\npub use nav_bar::NavBarBehavior;", - "is_error": false, - "tool_use_id": "tooluse_8H9USrs6qwWKfSnRPTFUyG", - "type": "tool_result" - } - ], - "type": "multi_part" - }, - "role": "user" - } - ], - "model_id": "arn:aws:bedrock:us-east-1:156729649053:application-inference-profile/fma5bsw4oxhy", - "system_prompt": "You are Galaxy, an AI coding assistant embedded in a terminal application. You help users with software engineering tasks including writing code, debugging, explaining concepts, and navigating codebases.\n\n## Environment\n- Working directory: /Users/ryan.ward/GIT/personal/galaxy\n- Home directory: /Users/ryan.ward\n- OS: MacOS\n- Shell: zsh 5.9\n- Git branch: master\n- Current time (UTC): 2026-05-18T16:22:50.605091Z\n\n## Project Rules\n### Rules from /Users/ryan.ward/GIT/personal/galaxy\n# WARP.md\n\nThis file provides guidance when working with code in this repository.\n\n## Development Commands\n\n### Build and Run\n- `cargo run` - Build and run Warp locally\n- `cargo bundle --bin warp` - Bundle the main app\n\n### Running with local warp-server\nTo connect Warp client to a local warp-server instance:\n\n```bash\n# Connect to server on default port 8080\ncargo run --features with_local_server\n\n# Connect to server on custom port (e.g., 8082)\nSERVER_ROOT_URL=http://localhost:8082 WS_SERVER_URL=ws://localhost:8082/graphql/v2 cargo run --features with_local_server\n```\n\nEnvironment variables:\n- `SERVER_ROOT_URL` - HTTP endpoint (default: `http://localhost:8080`)\n- `WS_SERVER_URL` - WebSocket endpoint (default: `ws://localhost:8080/graphql/v2`)\n\n### Testing\n- `cargo nextest run --no-fail-fast --workspace --exclude command-signatures-v2` - Run tests with nextest\n- `cargo nextest run -p warp_completer --features v2` - Run completer tests with v2 features\n- `cargo test --doc` - Run doc tests\n- `cargo test` - Run standard tests for individual packages\n\n### Linting and Formatting\n- `./script/presubmit` - Run all presubmit checks (fmt, clippy, tests)\n- `cargo fmt` - Format code\n- `cargo clippy --workspace --all-targets --all-features --tests -- -D warnings` - Run clippy\n- `./script/run-clang-format.py -r --extensions 'c,h,cpp,m' ./crates/warpui/src/ ./app/src/` - Format C/C++/Obj-C code\n- `find . -name \"*.wgsl\" -exec wgslfmt --check {} +` - Check WGSL shader formatting\n\n### Bedrock Diagnostics\n- Bedrock request or stream failures automatically write `Error_.txt` to the repository root.\n- The error snapshot file includes the serialized Bedrock context window, tool definitions, protobuf request debug payload, captured Bedrock diagnostic lines, and log tails.\n- Set `GALAXY_BEDROCK_DIAGNOSTICS=1` to additionally write per-event Bedrock diagnostic logs to `bedrock-diagnostics.log` in the active Warp log directory.\n\n### Platform Setup\n- `./script/bootstrap` - Platform-specific setup (calls platform-specific bootstrap scripts)\n- `./script/install_cargo_build_deps` - Install Cargo build dependencies\n- `./script/install_cargo_test_deps` - Install Cargo test dependencies\n\n## Architecture Overview\n\nThis is a Rust-based terminal emulator with a custom UI framework called **WarpUI**.\n\n### Key Components\n\n**WarpUI Framework** (`ui/`):\n- Custom UI framework with Entity-Component-Handle pattern\n- Global `App` object owns all views/models (entities)\n- Views hold `ViewHandle` references to other views\n- `AppContext` provides temporary access to handles during render/events\n- Elements describe visual layout (Flutter-inspired)\n- Actions system for event handling\n- MouseStateHandle must be created once during construction, and then referenced/cloned anywhere we're using mouse input to track mouse changes. Inline `MouseStateHandle::default()` while rendering will cause no mouse interactions to work.\n\n**Main App** (`app/`):\n- Terminal emulation and shell management (`terminal/`)\n- AI integration including Agent Mode (`ai/`)\n- Cloud synchronization and Drive features (`drive/`)\n- Authentication and user management (`auth/`)\n- Settings and preferences (`settings/`)\n- Workspace and session management (`workspace/`)\n\n**Core Libraries**:\n- `warp_core/` - Core utilities and platform abstractions\n- `editor/` - Text editing functionality\n- `ui/` - Custom UI framework\n- `ipc/` - Inter-process communication\n- `graphql/` - GraphQL client and schema\n\n### Key Architectural Patterns\n\n1. **Entity-Handle System**: Views reference other views via handles, not direct ownership\n2. **Modular Structure**: Workspace contains multiple workspace configurations, each with terminals, notebooks, etc.\n3. **Cross-Platform**: Native implementations for macOS, Windows, Linux, plus WASM target\n4. **AI Integration**: Built-in AI assistant with context awareness and codebase indexing\n5. **Cloud Sync**: Objects can be synchronized across devices via Warp Drive\n\n### Development Guidelines\n\n**Workspace Structure**:\n- This is a Cargo workspace with 34+ member crates\n- Main binary is in `app/`, UI framework in `ui/`\n- Platform-specific code is conditionally compiled\n- Integration tests are in `integration/`\n\n**Coding Style Preferences**:\n- Avoid unnecessary type annotations, especially in closure params.\n- Avoid using too many Rust path qualifiers and use imports for concision. Place import statements at the top of the file as per convention.\n An exception to this is inside cfg-guarded code branches. In those cases, you can either embed the import into the relevant scope or just use an absolute path for one-offs.\n- If a function takes a context parameter (`AppContext`, `ViewContext`, or `ModelContext`), it should be named `ctx` and go last. The one exception is for\n functions that take a closure parameter, in which case the closure should be last.\n- Always remove unused parameters completely rather than prefixing them with `_`. Update the function signature and all call sites accordingly.\n- Prefer inline format arguments in macros like `println!`, `eprintln!`, and `format!` (for example, `eprintln!(\"{message}\")` instead of `eprintln!(\"{}\", message)`) to satisfy Clippy's `uninlined_format_args` lint.\n- Do not remove existing comments when making unrelated changes. Only remove or modify a comment if the logic it describes has changed.\n\n**Terminal Model Locking**:\n- Be extremely careful when calling `model.lock()` on the terminal model (`TerminalModel`). Acquiring multiple locks on the same model from different call sites can cause a deadlock, resulting in a UI freeze (beach ball on macOS).\n- Before adding a new `model.lock()` call, verify that no caller in the current call stack already holds the lock.\n- Prefer passing already-locked model references down the call stack rather than acquiring new locks.\n- If you must lock the model, keep the lock scope as short as possible and avoid calling other functions that might also attempt to lock.\n\n**Testing**:\n- Use `cargo nextest` for parallel test execution\n- Integration tests use custom framework in `integration/`\n- Tests should be run via presubmit script before submitting\n- Unit tests should be placed in separate files using the naming convention `${filename}_tests.rs` or `mod_test.rs`\n- Test files should be included at the end of their corresponding module with:\n ```rust\n #[cfg(test)]\n #[path = \"filename_tests.rs\"] // or \"mod_test.rs\"\n mod tests;\n ```\n\n**Pull Request Workflow**:\n- **ALWAYS** run cargo fmt and cargo clippy (the versions specified in ./script/presubmit) before opening a PR or pushing updates to an existing PR branch\n- Those commands must pass completely before creating or updating a pull request\n- Specifically, ensure `cargo fmt` and `cargo clippy` checks pass\n- If they fail, fix all issues before proceeding with the PR\n- This applies to:\n - Opening new pull requests\n - Pushing new commits to existing PR branches\n - Any branch updates that will be reviewed\n - When opening PRs, use the PR template at `.github/pull_request_template.md`\n - Add changelog entries when appropriate using the format at the bottom of the PR template. Use the following prefixes (without the `{{}}` brackets):\n - `CHANGELOG-NEW-FEATURE:` for new, relatively sizable features (use sparingly - these may get marketing/docs)\n - `CHANGELOG-IMPROVEMENT:` for new functionality of existing features\n - `CHANGELOG-BUG-FIX:` for fixes related to known bugs or regressions\n - `CHANGELOG-IMAGE:` for GCP-hosted image URLs\n - Leave changelog lines blank or remove them if no changelog entry is needed\n\n**Database**:\n- Uses Diesel ORM with SQLite\n- Migrations in `migrations/` directory\n- Schema defined in `app/src/persistence/schema.rs`\n\n**GraphQL**:\n- Schema and client code generation from `graphql/api/schema.graphql`\n- TypeScript types generated for frontend integration\n\n### Feature Flags\n\nWarp uses compile-time feature flags with a small runtime plumbing layer.\n\nHow to add a feature flag:\n- Add a new variant to `warp_core/src/features.rs` in the `FeatureFlag` enum\n- (Optional) Enable it by default for dogfood builds by listing it in `DOGFOOD_FLAGS`\n- Gate code paths with `FeatureFlag::YourFlag.is_enabled()`\n- For preview or release rollout, add to `PREVIEW_FLAGS` or `RELEASE_FLAGS` respectively (as appropriate)\n\nBest practices:\n- **Prefer runtime checks over cfg directives**: Prefer `FeatureFlag::YourFlag.is_enabled()` over `#[cfg(...)]` compile-time directives so flags can be toggled without recompilation and are easier to clean up later. Use `#[cfg(...)]` only when the code cannot compile without them (for example, platform-specific code or dependencies that do not exist when the feature is disabled).\n- Keep flags high-level and product-focused rather than per-call-site\n- Remove the flag and dead branches after launch has stabilized\n- For UI sections that expose a new feature, hide the UI behind the same flag\n\nExample:\n```rust\n#[derive(Sequence)]\npub enum FeatureFlag {\n YourNewFeature,\n}\n\n// Default-on for dogfood builds\npub const DOGFOOD_FLAGS: &[FeatureFlag] = &[\n FeatureFlag::YourNewFeature,\n];\n\n// Use in code\nif FeatureFlag::YourNewFeature.is_enabled() {\n // gated behavior\n}\n```\n\n### Exhaustive Matching\n\nWhen adding/editing match statements, avoid using the wildcard _ when at all possible. Exhaustive matching is helpful for ensuring that all variants are handled, especially when adding new variants to enums in the future.\n\n### Appearance Settings Notes\n\n- Samsung-inspired built-in themes are available as `SamsungDark` and `SamsungLight`.\n- UI font selection is persisted in `appearance.text.ui_font_name` and uses an empty string as the system-default sentinel.\n- The one-click Samsung brand preset is implemented in `app/src/settings_view/appearance_page.rs` and applies:\n - Samsung dark/light theme mapping\n - terminal + AI font defaults\n - a best-available Samsung-style UI font fallback\n\n\n## Tools\nYou have access to the following tools. Use them proactively to explore codebases and complete tasks:\n- `run_shell_command`: Execute shell commands. Use absolute paths based on the working directory.\n- `read_files`: Read file contents. Pass all files you need in a single call.\n- `apply_file_diffs`: Apply search/replace edits to files.\n- `grep`: Search for patterns in files. Pass all patterns in one call.\n- `file_glob`: Find files matching glob patterns. Pass all patterns in one call.\n- `get_tool_documentation`: Get detailed documentation for any tool or system capabilities.\n- `suggest_next_prompt`: After completing a task, suggest a follow-up action the user might want.\n\n## Guidelines\n- ALWAYS use tools to explore the codebase before answering questions about code.\n- Use absolute paths based on the working directory shown above.\n- When asked about a project, start by listing files with `file_glob` or `run_shell_command`.\n- Read relevant files before making claims about code structure or behavior.\n- Be concise and direct in responses.\n- IMPORTANT: After EVERY response, you MUST call `suggest_next_prompt` to suggest a relevant follow-up action or question the user might want to take next.\n", - "temperature": null, - "tools": [ - { - "description": "Execute a shell command and return its output.", - "input_schema": { - "properties": { - "command": { - "description": "The shell command to execute", - "type": "string" - } - }, - "required": [ - "command" - ], - "type": "object" - }, - "name": "run_shell_command" - }, - { - "description": "Find files matching glob patterns. Pass all patterns in one call.", - "input_schema": { - "properties": { - "patterns": { - "description": "Glob patterns to match", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "patterns" - ], - "type": "object" - }, - "name": "file_glob" - } - ] - }, - "model_id": "arn:aws:bedrock:us-east-1:156729649053:application-inference-profile/fma5bsw4oxhy", - "request_id": "", - "task_id": "fa29a20f-0fce-4db8-b0b7-5c794d425634", - "tools": [ - { - "description": "Execute a shell command and return its output.", - "input_schema": { - "properties": { - "command": { - "description": "The shell command to execute", - "type": "string" - } - }, - "required": [ - "command" - ], - "type": "object" - }, - "name": "run_shell_command" - }, - { - "description": "Find files matching glob patterns. Pass all patterns in one call.", - "input_schema": { - "properties": { - "patterns": { - "description": "Glob patterns to match", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "patterns" - ], - "type": "object" - }, - "name": "file_glob" - } - ] - }, - "captured_bedrock_lines": [ - "[2026-05-18T16:22:50.612Z][PROTOBUF][INPUT][arn:aws:bedrock:us-east-1:156729649053:application-inference-profile/fma5bsw4oxhy][PENDING][][][fa29a20f-0fce-4db8-b0b7-5c794d425634] Request { task_context: Some(TaskContext { tasks: [Task { id: \"fa29a20f-0fce-4db8-b0b7-5c794d425634\", description: \"\", dependencies: None, messages: [Message { id: \"tooluse_vz5OuMZwcx46hFdMWXIX4z\", task_id: \"fa29a20f-0fce-4db8-b0b7-5c794d425634\", request_id: \"\", timestamp: None, server_message_data: \"\", citations: [], message: Some(ToolCall(ToolCall { tool_call_id: \"tooluse_vz5OuMZwcx46hFdMWXIX4z\", tool: Some(RunShellCommand(RunShellCommand { command: \"ls ~/GIT/personal/zed/\", is_read_only: false, uses_pager: true, citations: [], is_risky: false, risk_category: Unspecified, wait_until_complete_value: None })) })) }, Message { id: \"tooluse_LzMXoxi2VJsOFjPc7M8C4C\", task_id: \"fa29a20f-0fce-4db8-b0b7-5c794d425634\", request_id: \"\", timestamp: None, server_message_data: \"\", citations: [], message: Some(ToolCall(ToolCall { tool_call_id: \"tooluse_LzMXoxi2VJsOFjPc7M8C4C\", tool: Some(FileGlob(FileGlob { patterns: [\"/Users/ryan.ward/GIT/personal/galaxy/app/src/editor*\", \"/Users/ryan.ward/GIT/personal/galaxy/crates/editor/**/*.rs\", \"/Users/ryan.ward/GIT/personal/galaxy/editor/**/*.rs\"], path: \"\" })) })) }, Message { id: \"tooluse_6ZWGelIQN4UjqbSoCeJfqj\", task_id: \"fa29a20f-0fce-4db8-b0b7-5c794d425634\", request_id: \"\", timestamp: None, server_message_data: \"\", citations: [], message: Some(ToolCall(ToolCall { tool_call_id: \"tooluse_6ZWGelIQN4UjqbSoCeJfqj\", tool: Some(RunShellCommand(RunShellCommand { command: \"ls ~/GIT/personal/zed/crates/ | grep -i -E \\\"editor|lsp|language|completion|project\\\" | head -30\", is_read_only: false, uses_pager: true, citations: [], is_risky: false, risk_category: Unspecified, wait_until_complete_value: None })) })) }, Message { id: \"tooluse_g8NhBrDZ5YQKPh1U1cPP5V\", task_id: \"fa29a20f-0fce-4db8-b0b7-5c794d425634\", request_id: \"\", timestamp: None, server_message_data: \"\", citations: [], message: Some(ToolCall(ToolCall { tool_call_id: \"tooluse_g8NhBrDZ5YQKPh1U1cPP5V\", tool: Some(FileGlob(FileGlob { patterns: [\"/Users/ryan.ward/GIT/personal/galaxy/editor/src/**/*.rs\", \"/Users/ryan.ward/GIT/personal/galaxy/app/src/ide/**/*.rs\", \"/Users/ryan.ward/GIT/personal/galaxy/app/src/ai/ide*\"], path: \"\" })) })) }, Message { id: \"tooluse_ZrM6SbPRIYQN5cvaP206AA\", task_id: \"fa29a20f-0fce-4db8-b0b7-5c794d425634\", request_id: \"\", timestamp: None, server_message_data: \"\", citations: [], message: Some(ToolCall(ToolCall { tool_call_id: \"tooluse_ZrM6SbPRIYQN5cvaP206AA\", tool: Some(RunShellCommand(RunShellCommand { command: \"find /Users/ryan.ward/GIT/personal/galaxy -type d -name \\\"editor\\\" | head -10\", is_read_only: false, uses_pager: true, citations: [], is_risky: false, risk_category: Unspecified, wait_until_complete_value: None })) })) }, Message { id: \"tooluse_OomnbdbOxtPWcGxOvs22qC\", task_id: \"fa29a20f-0fce-4db8-b0b7-5c794d425634\", request_id: \"\", timestamp: None, server_message_data: \"\", citations: [], message: Some(ToolCall(ToolCall { tool_call_id: \"tooluse_OomnbdbOxtPWcGxOvs22qC\", tool: Some(RunShellCommand(RunShellCommand { command: \"find /Users/ryan.ward/GIT/personal/galaxy -type d -name \\\"editor\\\" -o -type d -name \\\"ide\\\" 2>/dev/null | head -20\", is_read_only: false, uses_pager: true, citations: [], is_risky: false, risk_category: Unspecified, wait_until_complete_value: None })) })) }, Message { id: \"tooluse_epIhzpMeI5HcLliDjIcGcF\", task_id: \"fa29a20f-0fce-4db8-b0b7-5c794d425634\", request_id: \"\", timestamp: None, server_message_data: \"\", citations: [], message: Some(ToolCall(ToolCall { tool_call_id: \"tooluse_epIhzpMeI5HcLliDjIcGcF\", tool: Some(RunShellCommand(RunShellCommand { command: \"cat /Users/ryan.ward/GIT/personal/galaxy/Cargo.toml | grep -A 2 \\\"editor\\\"\", is_read_only: false, uses_pager: true, citations: [], is_risky: false, risk_category: Unspecified, wait_until_complete_value: None })) })) }, Message { id: \"tooluse_NxanvkYOSKLZWKas56cBSd\", task_id: \"fa29a20f-0fce-4db8-b0b7-5c794d425634\", request_id: \"\", timestamp: None, server_message_data: \"\", citations: [], message: Some(ToolCall(ToolCall { tool_call_id: \"tooluse_NxanvkYOSKLZWKas56cBSd\", tool: Some(RunShellCommand(RunShellCommand { command: \"ls ~/GIT/personal/zed/crates/editor/src/ | head -40\", is_read_only: false, uses_pager: true, citations: [], is_risky: false, risk_category: Unspecified, wait_until_complete_value: None })) })) }, Message { id: \"tooluse_bNHc7DMPpUQDPzFFBFlvy5\", task_id: \"fa29a20f-0fce-4db8-b0b7-5c794d425634\", request_id: \"\", timestamp: None, server_message_data: \"\", citations: [], message: Some(ToolCall(ToolCall { tool_call_id: \"tooluse_bNHc7DMPpUQDPzFFBFlvy5\", tool: Some(RunShellCommand(RunShellCommand { command: \"ls ~/GIT/personal/zed/crates/editor/src/ | wc -l && ls ~/GIT/personal/zed/crates/lsp/src/ | head -20\", is_read_only: false, uses_pager: true, citations: [], is_risky: false, risk_category: Unspecified, wait_until_complete_value: None })) })) }, Message { id: \"tooluse_On7202JL4XHtnHK2pv0IZE\", task_id: \"fa29a20f-0fce-4db8-b0b7-5c794d425634\", request_id: \"\", timestamp: None, server_message_data: \"\", citations: [], message: Some(ToolCall(ToolCall { tool_call_id: \"tooluse_On7202JL4XHtnHK2pv0IZE\", tool: Some(RunShellCommand(RunShellCommand { command: \"ls /Users/ryan.ward/GIT/personal/galaxy/crates/editor/src/\", is_read_only: false, uses_pager: true, citations: [], is_risky: false, risk_category: Unspecified, wait_until_complete_value: None })) })) }, Message { id: \"tooluse_6SEE5moW0t8bGIafYGCitu\", task_id: \"fa29a20f-0fce-4db8-b0b7-5c794d425634\", request_id: \"\", timestamp: None, server_message_data: \"\", citations: [], message: Some(ToolCall(ToolCall { tool_call_id: \"tooluse_6SEE5moW0t8bGIafYGCitu\", tool: Some(RunShellCommand(RunShellCommand { command: \"wc -l ~/GIT/personal/zed/crates/editor/src/editor.rs 2>/dev/null; find ~/GIT/personal/zed/crates/editor -name \\\"*.rs\\\" | xargs wc -l 2>/dev/null | tail -1\", is_read_only: false, uses_pager: true, citations: [], is_risky: false, risk_category: Unspecified, wait_until_complete_value: None })) })) }, Message { id: \"tooluse_nRC2z7mkP8ecACBf2gNToU\", task_id: \"fa29a20f-0fce-4db8-b0b7-5c794d425634\", request_id: \"\", timestamp: None, server_message_data: \"\", citations: [], message: Some(ToolCall(ToolCall { tool_call_id: \"tooluse_nRC2z7mkP8ecACBf2gNToU\", tool: Some(RunShellCommand(RunShellCommand { command: \"find /Users/ryan.ward/GIT/personal/galaxy/crates/editor -name \\\"*.rs\\\" | xargs wc -l 2>/dev/null | tail -1\", is_read_only: false, uses_pager: true, citations: [], is_risky: false, risk_category: Unspecified, wait_until_complete_value: None })) })) }, Message { id: \"tooluse_zK8Bjvp6l0Y4Jf2FSqvi2F\", task_id: \"fa29a20f-0fce-4db8-b0b7-5c794d425634\", request_id: \"\", timestamp: None, server_message_data: \"\", citations: [], message: Some(ToolCall(ToolCall { tool_call_id: \"tooluse_zK8Bjvp6l0Y4Jf2FSqvi2F\", tool: Some(RunShellCommand(RunShellCommand { command: \"find /Users/ryan.ward/GIT/personal/galaxy/app/src/editor -name \\\"*.rs\\\" | xargs wc -l 2>/dev/null | tail -1\", is_read_only: false, uses_pager: true, citations: [], is_risky: false, risk_category: Unspecified, wait_until_complete_value: None })) })) }, Message { id: \"tooluse_PnzMBGx2d9dXLGG8bX5Srq\", task_id: \"fa29a20f-0fce-4db8-b0b7-5c794d425634\", request_id: \"\", timestamp: None, server_message_data: \"\", citations: [], message: Some(ToolCall(ToolCall { tool_call_id: \"tooluse_PnzMBGx2d9dXLGG8bX5Srq\", tool: Some(RunShellCommand(RunShellCommand { command: \"find /Users/ryan.ward/GIT/personal/galaxy/app/src/code -name \\\"*.rs\\\" | xargs wc -l 2>/dev/null | tail -1\", is_read_only: false, uses_pager: true, citations: [], is_risky: false, risk_category: Unspecified, wait_until_complete_value: None })) })) }, Message { id: \"tooluse_7cHfxBmqLYlZUaixmnke59\", task_id: \"fa29a20f-0fce-4db8-b0b7-5c794d425634\", request_id: \"\", timestamp: None, server_message_data: \"\", citations: [], message: Some(ToolCall(ToolCall { tool_call_id: \"tooluse_7cHfxBmqLYlZUaixmnke59\", tool: Some(RunShellCommand(RunShellCommand { command: \"find ~/GIT/personal/zed/crates/lsp -name \\\"*.rs\\\" | xargs wc -l | tail -1\", is_read_only: false, uses_pager: true, citations: [], is_risky: false, risk_category: Unspecified, wait_until_complete_value: None })) })) }, Message { id: \"tooluse_ZZ9xpaHl1vh6TMWBIQpyHz\", task_id: \"fa29a20f-0fce-4db8-b0b7-5c794d425634\", request_id: \"\", timestamp: None, server_message_data: \"\", citations: [], message: Some(ToolCall(ToolCall { tool_call_id: \"tooluse_ZZ9xpaHl1vh6TMWBIQpyHz\", tool: Some(RunShellCommand(RunShellCommand { command: \"find ~/GIT/personal/zed/crates/language -name \\\"*.rs\\\" | xargs wc -l | tail -1\", is_read_only: false, uses_pager: true, citations: [], is_risky: false, risk_category: Unspecified, wait_until_complete_value: None })) })) }, Message { id: \"tooluse_kiRrWhrLnDuvBAg6cVMYb8\", task_id: \"fa29a20f-0fce-4db8-b0b7-5c794d425634\", request_id: \"\", timestamp: None, server_message_data: \"\", citations: [], message: Some(ToolCall(ToolCall { tool_call_id: \"tooluse_kiRrWhrLnDuvBAg6cVMYb8\", tool: Some(RunShellCommand(RunShellCommand { command: \"find ~/GIT/personal/zed/crates/project -name \\\"*.rs\\\" -not -path \\\"*/project_panel/*\\\" -not -path \\\"*/project_symbols/*\\\" -not -path \\\"*/project_benchmarks/*\\\" -not -path \\\"*/recent_projects/*\\\" | xargs wc -l | tail -1\", is_read_only: false, uses_pager: true, citations: [], is_risky: false, risk_category: Unspecified, wait_until_complete_value: None })) })) }, Message { id: \"tooluse_ypeUwQP80fdCFrTiePokWa\", task_id: \"fa29a20f-0fce-4db8-b0b7-5c794d425634\", request_id: \"\", timestamp: None, server_message_data: \"\", citations: [], message: Some(ToolCall(ToolCall { tool_call_id: \"tooluse_ypeUwQP80fdCFrTiePokWa\", tool: Some(RunShellCommand(RunShellCommand { command: \"head -100 /Users/ryan.ward/GIT/personal/galaxy/crates/editor/src/lib.rs\", is_read_only: false, uses_pager: true, citations: [], is_risky: false, risk_category: Unspecified, wait_until_complete_value: None })) })) }, Message { id: \"tooluse_0RcLP9anNdW7kRsdKzyxl8\", task_id: \"fa29a20f-0fce-4db8-b0b7-5c794d425634\", request_id: \"\", timestamp: None, server_message_data: \"\", citations: [], message: Some(ToolCall(ToolCall { tool_call_id: \"tooluse_0RcLP9anNdW7kRsdKzyxl8\", tool: Some(RunShellCommand(RunShellCommand { command: \"cat /Users/ryan.ward/GIT/personal/galaxy/crates/editor/Cargo.toml\", is_read_only: false, uses_pager: true, citations: [], is_risky: false, risk_category: Unspecified, wait_until_complete_value: None })) })) }, Message { id: \"tooluse_2PhKu0Th7ioeBQCD8WgBHe\", task_id: \"fa29a20f-0fce-4db8-b0b7-5c794d425634\", request_id: \"\", timestamp: None, server_message_data: \"\", citations: [], message: Some(ToolCall(ToolCall { tool_call_id: \"tooluse_2PhKu0Th7ioeBQCD8WgBHe\", tool: Some(RunShellCommand(RunShellCommand { command: \"head -50 ~/GIT/personal/zed/crates/editor/Cargo.toml\", is_read_only: false, uses_pager: true, citations: [], is_risky: false, risk_category: Unspecified, wait_until_complete_value: None })) })) }, Message { id: \"tooluse_em9tqs15SXCKNr8wd3wTJS\", task_id: \"fa29a20f-0fce-4db8-b0b7-5c794d425634\", request_id: \"\", timestamp: None, server_message_data: \"\", citations: [], message: Some(ToolCall(ToolCall { tool_call_id: \"tooluse_em9tqs15SXCKNr8wd3wTJS\", tool: Some(RunShellCommand(RunShellCommand { command: \"cat ~/GIT/personal/zed/crates/editor/Cargo.toml | grep \\\"dependencies\\\" -A 200 | grep \\\"^\\\\[\\\" | head -5\", is_read_only: false, uses_pager: true, citations: [], is_risky: false, risk_category: Unspecified, wait_until_complete_value: None })) })) }, Message { id: \"tooluse_2Q1GBb6AdJNDS96y3UV2f3\", task_id: \"fa29a20f-0fce-4db8-b0b7-5c794d425634\", request_id: \"\", timestamp: None, server_message_data: \"\", citations: [], message: Some(ToolCall(ToolCall { tool_call_id: \"tooluse_2Q1GBb6AdJNDS96y3UV2f3\", tool: Some(RunShellCommand(RunShellCommand { command: \"cat ~/GIT/personal/zed/crates/editor/Cargo.toml | grep -c \\\"workspace\\\"\", is_read_only: false, uses_pager: true, citations: [], is_risky: false, risk_category: Unspecified, wait_until_complete_value: None })) })) }, Message { id: \"tooluse_7WiS7KJpbI3f9wtjeyo2EG\", task_id: \"fa29a20f-0fce-4db8-b0b7-5c794d425634\", request_id: \"\", timestamp: None, server_message_data: \"\", citations: [], message: Some(ToolCall(ToolCall { tool_call_id: \"tooluse_7WiS7KJpbI3f9wtjeyo2EG\", tool: Some(RunShellCommand(RunShellCommand { command: \"ls /Users/ryan.ward/GIT/personal/galaxy/app/src/code/editor/\", is_read_only: false, uses_pager: true, citations: [], is_risky: false, risk_category: Unspecified, wait_until_complete_value: None })) })) }, Message { id: \"tooluse_8H9USrs6qwWKfSnRPTFUyG\", task_id: \"fa29a20f-0fce-4db8-b0b7-5c794d425634\", request_id: \"\", timestamp: None, server_message_data: \"\", citations: [], message: Some(ToolCall(ToolCall { tool_call_id: \"tooluse_8H9USrs6qwWKfSnRPTFUyG\", tool: Some(RunShellCommand(RunShellCommand { command: \"head -80 /Users/ryan.ward/GIT/personal/galaxy/app/src/code/editor/mod.rs 2>/dev/null || ls /Users/ryan.ward/GIT/personal/galaxy/app/src/code/\", is_read_only: false, uses_pager: true, citations: [], is_risky: false, risk_category: Unspecified, wait_until_complete_value: None })) })) }], summary: \"\", server_data: \"\" }] }), input: Some(Input { context: Some(InputContext { directory: Some(Directory { pwd: \"/Users/ryan.ward/GIT/personal/galaxy\", home: \"/Users/ryan.ward\", pwd_file_symbols_indexed: false }), operating_system: Some(OperatingSystem { platform: \"MacOS\", distribution: \"\" }), shell: Some(Shell { name: \"zsh\", version: \"5.9\" }), current_time: Some(Timestamp { seconds: 1779121370, nanos: 605091000 }), codebases: [], project_rules: [ProjectRules { root_path: \"/Users/ryan.ward/GIT/personal/galaxy\", active_rule_files: [FileContent { file_path: \"/Users/ryan.ward/GIT/personal/galaxy/WARP.md\", content: \"# WARP.md\\n\\nThis file provides guidance when working with code in this repository.\\n\\n## Development Commands\\n\\n### Build and Run\\n- `cargo run` - Build and run Warp locally\\n- `cargo bundle --bin warp` - Bundle the main app\\n\\n### Running with local warp-server\\nTo connect Warp client to a local warp-server instance:\\n\\n```bash\\n# Connect to server on default port 8080\\ncargo run --features with_local_server\\n\\n# Connect to server on custom port (e.g., 8082)\\nSERVER_ROOT_URL=http://localhost:8082 WS_SERVER_URL=ws://localhost:8082/graphql/v2 cargo run --features with_local_server\\n```\\n\\nEnvironment variables:\\n- `SERVER_ROOT_URL` - HTTP endpoint (default: `http://localhost:8080`)\\n- `WS_SERVER_URL` - WebSocket endpoint (default: `ws://localhost:8080/graphql/v2`)\\n\\n### Testing\\n- `cargo nextest run --no-fail-fast --workspace --exclude command-signatures-v2` - Run tests with nextest\\n- `cargo nextest run -p warp_completer --features v2` - Run completer tests with v2 features\\n- `cargo test --doc` - Run doc tests\\n- `cargo test` - Run standard tests for individual packages\\n\\n### Linting and Formatting\\n- `./script/presubmit` - Run all presubmit checks (fmt, clippy, tests)\\n- `cargo fmt` - Format code\\n- `cargo clippy --workspace --all-targets --all-features --tests -- -D warnings` - Run clippy\\n- `./script/run-clang-format.py -r --extensions 'c,h,cpp,m' ./crates/warpui/src/ ./app/src/` - Format C/C++/Obj-C code\\n- `find . -name \\\"*.wgsl\\\" -exec wgslfmt --check {} +` - Check WGSL shader formatting\\n\\n### Bedrock Diagnostics\\n- Bedrock request or stream failures automatically write `Error_.txt` to the repository root.\\n- The error snapshot file includes the serialized Bedrock context window, tool definitions, protobuf request debug payload, captured Bedrock diagnostic lines, and log tails.\\n- Set `GALAXY_BEDROCK_DIAGNOSTICS=1` to additionally write per-event Bedrock diagnostic logs to `bedrock-diagnostics.log` in the active Warp log directory.\\n\\n### Platform Setup\\n- `./script/bootstrap` - Platform-specific setup (calls platform-specific bootstrap scripts)\\n- `./script/install_cargo_build_deps` - Install Cargo build dependencies\\n- `./script/install_cargo_test_deps` - Install Cargo test dependencies\\n\\n## Architecture Overview\\n\\nThis is a Rust-based terminal emulator with a custom UI framework called **WarpUI**.\\n\\n### Key Components\\n\\n**WarpUI Framework** (`ui/`):\\n- Custom UI framework with Entity-Component-Handle pattern\\n- Global `App` object owns all views/models (entities)\\n- Views hold `ViewHandle` references to other views\\n- `AppContext` provides temporary access to handles during render/events\\n- Elements describe visual layout (Flutter-inspired)\\n- Actions system for event handling\\n- MouseStateHandle must be created once during construction, and then referenced/cloned anywhere we're using mouse input to track mouse changes. Inline `MouseStateHandle::default()` while rendering will cause no mouse interactions to work.\\n\\n**Main App** (`app/`):\\n- Terminal emulation and shell management (`terminal/`)\\n- AI integration including Agent Mode (`ai/`)\\n- Cloud synchronization and Drive features (`drive/`)\\n- Authentication and user management (`auth/`)\\n- Settings and preferences (`settings/`)\\n- Workspace and session management (`workspace/`)\\n\\n**Core Libraries**:\\n- `warp_core/` - Core utilities and platform abstractions\\n- `editor/` - Text editing functionality\\n- `ui/` - Custom UI framework\\n- `ipc/` - Inter-process communication\\n- `graphql/` - GraphQL client and schema\\n\\n### Key Architectural Patterns\\n\\n1. **Entity-Handle System**: Views reference other views via handles, not direct ownership\\n2. **Modular Structure**: Workspace contains multiple workspace configurations, each with terminals, notebooks, etc.\\n3. **Cross-Platform**: Native implementations for macOS, Windows, Linux, plus WASM target\\n4. **AI Integration**: Built-in AI assistant with context awareness and codebase indexing\\n5. **Cloud Sync**: Objects can be synchronized across devices via Warp Drive\\n\\n### Development Guidelines\\n\\n**Workspace Structure**:\\n- This is a Cargo workspace with 34+ member crates\\n- Main binary is in `app/`, UI framework in `ui/`\\n- Platform-specific code is conditionally compiled\\n- Integration tests are in `integration/`\\n\\n**Coding Style Preferences**:\\n- Avoid unnecessary type annotations, especially in closure params.\\n- Avoid using too many Rust path qualifiers and use imports for concision. Place import statements at the top of the file as per convention.\\n An exception to this is inside cfg-guarded code branches. In those cases, you can either embed the import into the relevant scope or just use an absolute path for one-offs.\\n- If a function takes a context parameter (`AppContext`, `ViewContext`, or `ModelContext`), it should be named `ctx` and go last. The one exception is for\\n functions that take a closure parameter, in which case the closure should be last.\\n- Always remove unused parameters completely rather than prefixing them with `_`. Update the function signature and all call sites accordingly.\\n- Prefer inline format arguments in macros like `println!`, `eprintln!`, and `format!` (for example, `eprintln!(\\\"{message}\\\")` instead of `eprintln!(\\\"{}\\\", message)`) to satisfy Clippy's `uninlined_format_args` lint.\\n- Do not remove existing comments when making unrelated changes. Only remove or modify a comment if the logic it describes has changed.\\n\\n**Terminal Model Locking**:\\n- Be extremely careful when calling `model.lock()` on the terminal model (`TerminalModel`). Acquiring multiple locks on the same model from different call sites can cause a deadlock, resulting in a UI freeze (beach ball on macOS).\\n- Before adding a new `model.lock()` call, verify that no caller in the current call stack already holds the lock.\\n- Prefer passing already-locked model references down the call stack rather than acquiring new locks.\\n- If you must lock the model, keep the lock scope as short as possible and avoid calling other functions that might also attempt to lock.\\n\\n**Testing**:\\n- Use `cargo nextest` for parallel test execution\\n- Integration tests use custom framework in `integration/`\\n- Tests should be run via presubmit script before submitting\\n- Unit tests should be placed in separate files using the naming convention `${filename}_tests.rs` or `mod_test.rs`\\n- Test files should be included at the end of their corresponding module with:\\n ```rust\\n #[cfg(test)]\\n #[path = \\\"filename_tests.rs\\\"] // or \\\"mod_test.rs\\\"\\n mod tests;\\n ```\\n\\n**Pull Request Workflow**:\\n- **ALWAYS** run cargo fmt and cargo clippy (the versions specified in ./script/presubmit) before opening a PR or pushing updates to an existing PR branch\\n- Those commands must pass completely before creating or updating a pull request\\n- Specifically, ensure `cargo fmt` and `cargo clippy` checks pass\\n- If they fail, fix all issues before proceeding with the PR\\n- This applies to:\\n - Opening new pull requests\\n - Pushing new commits to existing PR branches\\n - Any branch updates that will be reviewed\\n - When opening PRs, use the PR template at `.github/pull_request_template.md`\\n - Add changelog entries when appropriate using the format at the bottom of the PR template. Use the following prefixes (without the `{{}}` brackets):\\n - `CHANGELOG-NEW-FEATURE:` for new, relatively sizable features (use sparingly - these may get marketing/docs)\\n - `CHANGELOG-IMPROVEMENT:` for new functionality of existing features\\n - `CHANGELOG-BUG-FIX:` for fixes related to known bugs or regressions\\n - `CHANGELOG-IMAGE:` for GCP-hosted image URLs\\n - Leave changelog lines blank or remove them if no changelog entry is needed\\n\\n**Database**:\\n- Uses Diesel ORM with SQLite\\n- Migrations in `migrations/` directory\\n- Schema defined in `app/src/persistence/schema.rs`\\n\\n**GraphQL**:\\n- Schema and client code generation from `graphql/api/schema.graphql`\\n- TypeScript types generated for frontend integration\\n\\n### Feature Flags\\n\\nWarp uses compile-time feature flags with a small runtime plumbing layer.\\n\\nHow to add a feature flag:\\n- Add a new variant to `warp_core/src/features.rs` in the `FeatureFlag` enum\\n- (Optional) Enable it by default for dogfood builds by listing it in `DOGFOOD_FLAGS`\\n- Gate code paths with `FeatureFlag::YourFlag.is_enabled()`\\n- For preview or release rollout, add to `PREVIEW_FLAGS` or `RELEASE_FLAGS` respectively (as appropriate)\\n\\nBest practices:\\n- **Prefer runtime checks over cfg directives**: Prefer `FeatureFlag::YourFlag.is_enabled()` over `#[cfg(...)]` compile-time directives so flags can be toggled without recompilation and are easier to clean up later. Use `#[cfg(...)]` only when the code cannot compile without them (for example, platform-specific code or dependencies that do not exist when the feature is disabled).\\n- Keep flags high-level and product-focused rather than per-call-site\\n- Remove the flag and dead branches after launch has stabilized\\n- For UI sections that expose a new feature, hide the UI behind the same flag\\n\\nExample:\\n```rust\\n#[derive(Sequence)]\\npub enum FeatureFlag {\\n YourNewFeature,\\n}\\n\\n// Default-on for dogfood builds\\npub const DOGFOOD_FLAGS: &[FeatureFlag] = &[\\n FeatureFlag::YourNewFeature,\\n];\\n\\n// Use in code\\nif FeatureFlag::YourNewFeature.is_enabled() {\\n // gated behavior\\n}\\n```\\n\\n### Exhaustive Matching\\n\\nWhen adding/editing match statements, avoid using the wildcard _ when at all possible. Exhaustive matching is helpful for ensuring that all variants are handled, especially when adding new variants to enums in the future.\\n\\n### Appearance Settings Notes\\n\\n- Samsung-inspired built-in themes are available as `SamsungDark` and `SamsungLight`.\\n- UI font selection is persisted in `appearance.text.ui_font_name` and uses an empty string as the system-default sentinel.\\n- The one-click Samsung brand preset is implemented in `app/src/settings_view/appearance_page.rs` and applies:\\n - Samsung dark/light theme mapping\\n - terminal + AI font defaults\\n - a best-available Samsung-style UI font fallback\\n\", line_range: None }], additional_rule_file_paths: [] }], git: Some(Git { head: \"master\", branch: \"master\" }), updated_skills_context: None, updated_lsp_servers_context: None, executed_shell_commands: [], selected_text: [], images: [], files: [] }), r#type: Some(UserInputs(UserInputs { inputs: [UserInput { input: Some(ToolCallResult(ToolCallResult { tool_call_id: \"tooluse_em9tqs15SXCKNr8wd3wTJS\", result: Some(RunShellCommand(RunShellCommandResult { command: \"cat ~/GIT/personal/zed/crates/editor/Cargo.toml | grep \\\"dependencies\\\" -A 200 | grep \\\"^\\\\[\\\" | head -5\", output: \"\", exit_code: 0, result: Some(CommandFinished(ShellCommandFinished { output: \"[dependencies]\\n[dev-dependencies]\\n[[bench]]\\n[[bench]]\", exit_code: 0, command_id: \"precmd-177912119622521-20\" })) })) })) }, UserInput { input: Some(ToolCallResult(ToolCallResult { tool_call_id: \"tooluse_2Q1GBb6AdJNDS96y3UV2f3\", result: Some(RunShellCommand(RunShellCommandResult { command: \"cat ~/GIT/personal/zed/crates/editor/Cargo.toml | grep -c \\\"workspace\\\"\", output: \"\", exit_code: 0, result: Some(CommandFinished(ShellCommandFinished { output: \"107\", exit_code: 0, command_id: \"precmd-177912119622521-21\" })) })) })) }, UserInput { input: Some(ToolCallResult(ToolCallResult { tool_call_id: \"tooluse_7WiS7KJpbI3f9wtjeyo2EG\", result: Some(RunShellCommand(RunShellCommandResult { command: \"ls /Users/ryan.ward/GIT/personal/galaxy/app/src/code/editor/\", output: \"\", exit_code: 0, result: Some(CommandFinished(ShellCommandFinished { output: \"comment_editor.rs\\ncomment_editor_tests.rs\\ncomments.rs\\ndiff.rs\\ndiff_tests.rs\\nelement\\nelement.rs\\nembedded_comment.rs\\nembedded_comment_tests.rs\\nfind\\ngoto_line\\nline.rs\\nline_iterator.rs\\nmod.rs\\nmodel.rs\\nmodel_tests.rs\\nnav_bar.rs\\nscroll.rs\\nview\\nview.rs\", exit_code: 0, command_id: \"precmd-177912119622521-22\" })) })) })) }, UserInput { input: Some(ToolCallResult(ToolCallResult { tool_call_id: \"tooluse_8H9USrs6qwWKfSnRPTFUyG\", result: Some(RunShellCommand(RunShellCommandResult { command: \"head -80 /Users/ryan.ward/GIT/personal/galaxy/app/src/code/editor/mod.rs 2>/dev/null || ls /Users/ryan.ward/GIT/personal/galaxy/app/src/code/\", output: \"\", exit_code: 0, result: Some(CommandFinished(ShellCommandFinished { output: \"#![cfg_attr(target_family = \\\"wasm\\\", allow(dead_code, unused_imports))]\\n\\npub(crate) mod comment_editor;\\nmod comments;\\npub(super) mod diff;\\nmod element;\\npub mod embedded_comment;\\npub mod find;\\npub mod goto_line;\\npub mod line;\\nmod line_iterator;\\npub mod model;\\nmod nav_bar;\\npub mod scroll;\\npub mod view;\\n\\npub use comment_editor::{CommentEditor, CommentEditorEvent};\\npub use comments::EditorCommentsModel;\\npub use comments::EditorReviewComment;\\npub(crate) use diff::{add_color, remove_color};\\npub use element::GutterHoverTarget;\\npub use nav_bar::NavBarBehavior;\", exit_code: 0, command_id: \"precmd-177912119622521-23\" })) })) })) }] })) }), settings: Some(Settings { model_config: Some(ModelConfig { base: \"arn:aws:bedrock:us-east-1:156729649053:application-inference-profile/fma5bsw4oxhy\", planning: \"\", coding: \"\", cli_agent: \"arn:aws:bedrock:us-east-1:156729649053:application-inference-profile/fma5bsw4oxhy\", computer_use_agent: \"computer-use-agent-auto\", base_model_context_window_limit: 0 }), rules_enabled: true, web_context_retrieval_enabled: true, supports_parallel_tool_calls: true, use_anthropic_text_editor_tools: false, planning_enabled: true, warp_drive_context_enabled: true, supports_create_files: true, supported_tools: [Grep, FileGlob, FileGlobV2, ReadMcpResource, CallMcpTool, InitProject, OpenCodeReview, RunShellCommand, SuggestNewConversation, Subagent, WriteToLongRunningShellCommand, ReadShellCommandOutput, ReadDocuments, CreateDocuments, EditDocuments, SuggestPrompt, FetchConversation, ReadFiles, ApplyFileDiffs, SearchCodebase, UploadFileArtifact, InsertReviewComments, ReadSkill, AskUserQuestion], supports_long_running_commands: true, should_preserve_file_content_in_history: true, supports_todos_ui: true, supports_linked_code_blocks: true, supports_started_child_task_message: true, supports_suggest_prompt: true, supports_read_image_files: true, supports_reasoning_message: true, api_keys: None, autonomy_level: Supervised, isolation_level: None, web_search_enabled: true, supported_cli_agent_tools: [WriteToLongRunningShellCommand, ReadShellCommandOutput, Grep, FileGlob, FileGlobV2, TransferShellCommandControlToUser, ReadFiles, SearchCodebase], supports_v4a_file_diffs: true, supports_summarization_via_message_replacement: false, supports_bundled_skills: true, supports_research_agent: false, supports_orchestration_v2: false }), metadata: Some(Metadata { conversation_id: \"9148dd1d-da3b-4f78-8c3b-ab6513a3a87c\", logging: {}, ambient_agent_task_id: \"\", forked_from_conversation_id: \"\", parent_agent_id: \"\", agent_name: \"\" }), existing_suggestions: None, mcp_context: Some(McpContext { resources: [], tools: [], servers: [McpServer { name: \"chrome-devtools\", description: \"\", id: \"6eba1490-40f1-43c8-98a6-d3f7f8940fa2\", resources: [], tools: [McpTool { name: \"click\", description: \"Clicks on the provided element\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(true)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"dblClick\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Set to true for double clicks. Default is false.\")) }, \"type\": Value { kind: Some(StringValue(\"boolean\")) }} })) }, \"includeSnapshot\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Whether to include a snapshot in the response. Default is false.\")) }, \"type\": Value { kind: Some(StringValue(\"boolean\")) }} })) }, \"uid\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"The uid of an element on the page from the page content snapshot\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"uid\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"close_page\", description: \"Closes the page by its index. The last open page cannot be closed.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(true)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"pageId\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"The ID of the page to close. Call list_pages to list pages.\")) }, \"type\": Value { kind: Some(StringValue(\"number\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"pageId\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"drag\", description: \"Drag an element onto another element\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(true)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"from_uid\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"The uid of the element to drag\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"includeSnapshot\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Whether to include a snapshot in the response. Default is false.\")) }, \"type\": Value { kind: Some(StringValue(\"boolean\")) }} })) }, \"to_uid\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"The uid of the element to drop into\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"from_uid\")) }, Value { kind: Some(StringValue(\"to_uid\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"emulate\", description: \"Emulates various features on the selected page.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(true)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"colorScheme\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Emulate the dark or the light mode. Set to \\\"auto\\\" to reset to the default.\")) }, \"enum\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"dark\")) }, Value { kind: Some(StringValue(\"light\")) }, Value { kind: Some(StringValue(\"auto\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"cpuThrottlingRate\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Represents the CPU slowdown factor. Omit or set the rate to 1 to disable throttling\")) }, \"maximum\": Value { kind: Some(NumberValue(20.0)) }, \"minimum\": Value { kind: Some(NumberValue(1.0)) }, \"type\": Value { kind: Some(StringValue(\"number\")) }} })) }, \"geolocation\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Geolocation (`,`) to emulate. Latitude between -90 and 90. Longitude between -180 and 180. Omit to clear the geolocation override.\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"networkConditions\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Throttle network. Omit to disable throttling.\")) }, \"enum\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"Offline\")) }, Value { kind: Some(StringValue(\"Slow 3G\")) }, Value { kind: Some(StringValue(\"Fast 3G\")) }, Value { kind: Some(StringValue(\"Slow 4G\")) }, Value { kind: Some(StringValue(\"Fast 4G\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"userAgent\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"User agent to emulate. Set to empty string to clear the user agent override.\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"viewport\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Emulate device viewports 'xx[,mobile][,touch][,landscape]'. 'touch' and 'mobile' to emulate mobile devices. 'landscape' to emulate landscape mode.\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"evaluate_script\", description: \"Evaluate a JavaScript function inside the currently selected page. Returns the response as JSON,\\nso returned values have to be JSON-serializable.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(true)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"args\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"An optional list of arguments to pass to the function.\")) }, \"items\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"The uid of an element on the page from the page content snapshot\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"type\": Value { kind: Some(StringValue(\"array\")) }} })) }, \"dialogAction\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Handle dialogs while execution. \\\"accept\\\", \\\"dismiss\\\", or string for response of window.prompt. Defaults to accept.\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"filePath\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"The absolute or relative path to a file to save the script output to. If omitted, the output is returned inline.\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"function\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"A JavaScript function declaration to be executed by the tool in the currently selected page.\\nExample without arguments: `() => {\\n return document.title\\n}` or `async () => {\\n return await fetch(\\\"example.com\\\")\\n}`.\\nExample with arguments: `(el) => {\\n return el.innerText;\\n}`\\n\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"function\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"fill\", description: \"Type text into an input, text area or select an option from a element.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(true)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"includeSnapshot\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Whether to include a snapshot in the response. Default is false.\")) }, \"type\": Value { kind: Some(StringValue(\"boolean\")) }} })) }, \"uid\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"The uid of an element on the page from the page content snapshot\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"value\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"The value to fill in. \\\"true\\\" or \\\"false\\\" for checkboxes and toggles, \\\"true\\\" for radio buttons.\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"uid\")) }, Value { kind: Some(StringValue(\"value\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"fill_form\", description: \"Fill out multiple form elements (inputs, selects, checkboxes, radios) at once. ALWAYS prefer this tool over multiple individual 'fill' or 'click' calls when interacting with forms. It is significantly faster, more reliable, and reduces turn count. Example: Fill username, password, and check \\\"Remember Me\\\" in one call.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(true)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"elements\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Elements from snapshot to fill out.\")) }, \"items\": Value { kind: Some(StructValue(Struct { fields: {\"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"uid\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"The uid of the element to fill out\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"value\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Value for the element. \\\"true\\\" or \\\"false\\\" for checkboxes and toggles, \\\"true\\\" for radio buttons.\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"uid\")) }, Value { kind: Some(StringValue(\"value\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} })) }, \"type\": Value { kind: Some(StringValue(\"array\")) }} })) }, \"includeSnapshot\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Whether to include a snapshot in the response. Default is false.\")) }, \"type\": Value { kind: Some(StringValue(\"boolean\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"elements\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"get_console_message\", description: \"Gets a console message by its ID. You can get all messages by calling list_console_messages.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(true)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"msgid\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"The msgid of a console message on the page from the listed console messages\")) }, \"type\": Value { kind: Some(StringValue(\"number\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"msgid\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"get_network_request\", description: \"Gets a network request by an optional reqid, if omitted returns the currently selected request in the DevTools Network panel.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(true)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"reqid\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"The reqid of the network request. If omitted returns the currently selected request in the DevTools Network panel.\")) }, \"type\": Value { kind: Some(StringValue(\"number\")) }} })) }, \"requestFilePath\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"The absolute or relative path to a .network-request file to save the request body to. If omitted, the body is returned inline.\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"responseFilePath\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"The absolute or relative path to a .network-response file to save the response body to. If omitted, the body is returned inline.\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"handle_dialog\", description: \"If a browser dialog was opened, use this command to handle it\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(true)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"action\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Whether to dismiss or accept the dialog\")) }, \"enum\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"accept\")) }, Value { kind: Some(StringValue(\"dismiss\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"promptText\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Optional prompt text to enter into the dialog.\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"action\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"hover\", description: \"Hover over the provided element\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(true)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"includeSnapshot\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Whether to include a snapshot in the response. Default is false.\")) }, \"type\": Value { kind: Some(StringValue(\"boolean\")) }} })) }, \"uid\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"The uid of an element on the page from the page content snapshot\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"uid\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"lighthouse_audit\", description: \"Get Lighthouse score and reports for accessibility, SEO, best practices, and agentic browsing. This excludes performance. For performance audits, run performance_start_trace\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(true)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"device\": Value { kind: Some(StructValue(Struct { fields: {\"default\": Value { kind: Some(StringValue(\"desktop\")) }, \"description\": Value { kind: Some(StringValue(\"Device to emulate.\")) }, \"enum\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"desktop\")) }, Value { kind: Some(StringValue(\"mobile\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"mode\": Value { kind: Some(StructValue(Struct { fields: {\"default\": Value { kind: Some(StringValue(\"navigation\")) }, \"description\": Value { kind: Some(StringValue(\"\\\"navigation\\\" reloads & audits. \\\"snapshot\\\" analyzes current state.\")) }, \"enum\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"navigation\")) }, Value { kind: Some(StringValue(\"snapshot\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"outputDirPath\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Directory for reports. If omitted, uses temporary files.\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"list_console_messages\", description: \"List all console messages for the currently selected page since the last navigation.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(true)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"includePreservedMessages\": Value { kind: Some(StructValue(Struct { fields: {\"default\": Value { kind: Some(BoolValue(false)) }, \"description\": Value { kind: Some(StringValue(\"Set to true to return the preserved messages over the last 3 navigations.\")) }, \"type\": Value { kind: Some(StringValue(\"boolean\")) }} })) }, \"pageIdx\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Page number to return (0-based). When omitted, returns the first page.\")) }, \"minimum\": Value { kind: Some(NumberValue(0.0)) }, \"type\": Value { kind: Some(StringValue(\"integer\")) }} })) }, \"pageSize\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Maximum number of messages to return. When omitted, returns all messages.\")) }, \"exclusiveMinimum\": Value { kind: Some(NumberValue(0.0)) }, \"type\": Value { kind: Some(StringValue(\"integer\")) }} })) }, \"types\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Filter messages to only return messages of the specified resource types. When omitted or empty, returns all messages.\")) }, \"items\": Value { kind: Some(StructValue(Struct { fields: {\"enum\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"log\")) }, Value { kind: Some(StringValue(\"debug\")) }, Value { kind: Some(StringValue(\"info\")) }, Value { kind: Some(StringValue(\"error\")) }, Value { kind: Some(StringValue(\"warn\")) }, Value { kind: Some(StringValue(\"dir\")) }, Value { kind: Some(StringValue(\"dirxml\")) }, Value { kind: Some(StringValue(\"table\")) }, Value { kind: Some(StringValue(\"trace\")) }, Value { kind: Some(StringValue(\"clear\")) }, Value { kind: Some(StringValue(\"startGroup\")) }, Value { kind: Some(StringValue(\"startGroupCollapsed\")) }, Value { kind: Some(StringValue(\"endGroup\")) }, Value { kind: Some(StringValue(\"assert\")) }, Value { kind: Some(StringValue(\"profile\")) }, Value { kind: Some(StringValue(\"profileEnd\")) }, Value { kind: Some(StringValue(\"count\")) }, Value { kind: Some(StringValue(\"timeEnd\")) }, Value { kind: Some(StringValue(\"verbose\")) }, Value { kind: Some(StringValue(\"issue\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"type\": Value { kind: Some(StringValue(\"array\")) }} })) }} })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"list_network_requests\", description: \"List all requests for the currently selected page since the last navigation.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(true)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"includePreservedRequests\": Value { kind: Some(StructValue(Struct { fields: {\"default\": Value { kind: Some(BoolValue(false)) }, \"description\": Value { kind: Some(StringValue(\"Set to true to return the preserved requests over the last 3 navigations.\")) }, \"type\": Value { kind: Some(StringValue(\"boolean\")) }} })) }, \"pageIdx\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Page number to return (0-based). When omitted, returns the first page.\")) }, \"minimum\": Value { kind: Some(NumberValue(0.0)) }, \"type\": Value { kind: Some(StringValue(\"integer\")) }} })) }, \"pageSize\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Maximum number of requests to return. When omitted, returns all requests.\")) }, \"exclusiveMinimum\": Value { kind: Some(NumberValue(0.0)) }, \"type\": Value { kind: Some(StringValue(\"integer\")) }} })) }, \"resourceTypes\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Filter requests to only return requests of the specified resource types. When omitted or empty, returns all requests.\")) }, \"items\": Value { kind: Some(StructValue(Struct { fields: {\"enum\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"document\")) }, Value { kind: Some(StringValue(\"stylesheet\")) }, Value { kind: Some(StringValue(\"image\")) }, Value { kind: Some(StringValue(\"media\")) }, Value { kind: Some(StringValue(\"font\")) }, Value { kind: Some(StringValue(\"script\")) }, Value { kind: Some(StringValue(\"texttrack\")) }, Value { kind: Some(StringValue(\"xhr\")) }, Value { kind: Some(StringValue(\"fetch\")) }, Value { kind: Some(StringValue(\"prefetch\")) }, Value { kind: Some(StringValue(\"eventsource\")) }, Value { kind: Some(StringValue(\"websocket\")) }, Value { kind: Some(StringValue(\"manifest\")) }, Value { kind: Some(StringValue(\"signedexchange\")) }, Value { kind: Some(StringValue(\"ping\")) }, Value { kind: Some(StringValue(\"cspviolationreport\")) }, Value { kind: Some(StringValue(\"preflight\")) }, Value { kind: Some(StringValue(\"fedcm\")) }, Value { kind: Some(StringValue(\"other\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"type\": Value { kind: Some(StringValue(\"array\")) }} })) }} })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"list_pages\", description: \"Get a list of pages open in the browser.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(true)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {} })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"navigate_page\", description: \"Go to a URL, or back, forward, or reload. Use project URL if not specified otherwise.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(true)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"handleBeforeUnload\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Whether to auto accept or beforeunload dialogs triggered by this navigation. Default is accept.\")) }, \"enum\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"accept\")) }, Value { kind: Some(StringValue(\"decline\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"ignoreCache\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Whether to ignore cache on reload.\")) }, \"type\": Value { kind: Some(StringValue(\"boolean\")) }} })) }, \"initScript\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"A JavaScript script to be executed on each new document before any other scripts for the next navigation.\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"timeout\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Maximum wait time in milliseconds. If set to 0, the default timeout will be used.\")) }, \"type\": Value { kind: Some(StringValue(\"integer\")) }} })) }, \"type\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Navigate the page by URL, back or forward in history, or reload.\")) }, \"enum\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"url\")) }, Value { kind: Some(StringValue(\"back\")) }, Value { kind: Some(StringValue(\"forward\")) }, Value { kind: Some(StringValue(\"reload\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"url\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Target URL (only type=url)\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"new_page\", description: \"Open a new tab and load a URL. Use project URL if not specified otherwise.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(true)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"background\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Whether to open the page in the background without bringing it to the front. Default is false (foreground).\")) }, \"type\": Value { kind: Some(StringValue(\"boolean\")) }} })) }, \"isolatedContext\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"If specified, the page is created in an isolated browser context with the given name. Pages in the same browser context share cookies and storage. Pages in different browser contexts are fully isolated.\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"timeout\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Maximum wait time in milliseconds. If set to 0, the default timeout will be used.\")) }, \"type\": Value { kind: Some(StringValue(\"integer\")) }} })) }, \"url\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"URL to load in a new page.\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"url\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"performance_analyze_insight\", description: \"Provides more detailed information on a specific Performance Insight of an insight set that was highlighted in the results of a trace recording.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(true)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"insightName\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"The name of the Insight you want more information on. For example: \\\"DocumentLatency\\\" or \\\"LCPBreakdown\\\"\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"insightSetId\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"The id for the specific insight set. Only use the ids given in the \\\"Available insight sets\\\" list.\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"insightSetId\")) }, Value { kind: Some(StringValue(\"insightName\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"performance_start_trace\", description: \"Start a performance trace on the selected webpage. Use to find frontend performance issues, Core Web Vitals (LCP, INP, CLS), and improve page load speed.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(true)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"autoStop\": Value { kind: Some(StructValue(Struct { fields: {\"default\": Value { kind: Some(BoolValue(true)) }, \"description\": Value { kind: Some(StringValue(\"Determines if the trace recording should be automatically stopped.\")) }, \"type\": Value { kind: Some(StringValue(\"boolean\")) }} })) }, \"filePath\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"The absolute file path, or a file path relative to the current working directory, to save the raw trace data. For example, trace.json.gz (compressed) or trace.json (uncompressed).\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"reload\": Value { kind: Some(StructValue(Struct { fields: {\"default\": Value { kind: Some(BoolValue(true)) }, \"description\": Value { kind: Some(StringValue(\"Determines if, once tracing has started, the current selected page should be automatically reloaded. Navigate the page to the right URL using the navigate_page tool BEFORE starting the trace if reload or autoStop is set to true.\")) }, \"type\": Value { kind: Some(StringValue(\"boolean\")) }} })) }} })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"performance_stop_trace\", description: \"Stop the active performance trace recording on the selected webpage.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(true)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"filePath\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"The absolute file path, or a file path relative to the current working directory, to save the raw trace data. For example, trace.json.gz (compressed) or trace.json (uncompressed).\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"press_key\", description: \"Press a key or key combination. Use this when other input methods like fill() cannot be used (e.g., keyboard shortcuts, navigation keys, or special key combinations).\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(true)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"includeSnapshot\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Whether to include a snapshot in the response. Default is false.\")) }, \"type\": Value { kind: Some(StringValue(\"boolean\")) }} })) }, \"key\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"A key or a combination (e.g., \\\"Enter\\\", \\\"Control+A\\\", \\\"Control++\\\", \\\"Control+Shift+R\\\"). Modifiers: Control, Shift, Alt, Meta\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"key\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"resize_page\", description: \"Resizes the selected page's window so that the page has specified dimension\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(true)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"height\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Page height\")) }, \"type\": Value { kind: Some(StringValue(\"number\")) }} })) }, \"width\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Page width\")) }, \"type\": Value { kind: Some(StringValue(\"number\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"width\")) }, Value { kind: Some(StringValue(\"height\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"select_page\", description: \"Select a page as a context for future tool calls.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(true)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"bringToFront\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Whether to focus the page and bring it to the top.\")) }, \"type\": Value { kind: Some(StringValue(\"boolean\")) }} })) }, \"pageId\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"The ID of the page to select. Call list_pages to get available pages.\")) }, \"type\": Value { kind: Some(StringValue(\"number\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"pageId\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"take_memory_snapshot\", description: \"Capture a heap snapshot of the currently selected page. Use to analyze the memory distribution of JavaScript objects and debug memory leaks.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(true)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"filePath\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"A path to a .heapsnapshot file to save the heapsnapshot to.\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"filePath\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"take_screenshot\", description: \"Take a screenshot of the page or element.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(true)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"filePath\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"The absolute path, or a path relative to the current working directory, to save the screenshot to instead of attaching it to the response.\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"format\": Value { kind: Some(StructValue(Struct { fields: {\"default\": Value { kind: Some(StringValue(\"png\")) }, \"description\": Value { kind: Some(StringValue(\"Type of format to save the screenshot as. Default is \\\"png\\\"\")) }, \"enum\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"png\")) }, Value { kind: Some(StringValue(\"jpeg\")) }, Value { kind: Some(StringValue(\"webp\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"fullPage\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"If set to true takes a screenshot of the full page instead of the currently visible viewport. Incompatible with uid.\")) }, \"type\": Value { kind: Some(StringValue(\"boolean\")) }} })) }, \"quality\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Compression quality for JPEG and WebP formats (0-100). Higher values mean better quality but larger file sizes. Ignored for PNG format.\")) }, \"maximum\": Value { kind: Some(NumberValue(100.0)) }, \"minimum\": Value { kind: Some(NumberValue(0.0)) }, \"type\": Value { kind: Some(StringValue(\"number\")) }} })) }, \"uid\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"The uid of an element on the page from the page content snapshot. If omitted, takes a page screenshot.\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"take_snapshot\", description: \"Take a text snapshot of the currently selected page based on the a11y tree. The snapshot lists page elements along with a unique\\nidentifier (uid). Always use the latest snapshot. Prefer taking a snapshot over taking a screenshot. The snapshot indicates the element selected\\nin the DevTools Elements panel (if any).\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(true)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"filePath\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"The absolute path, or a path relative to the current working directory, to save the snapshot to instead of attaching it to the response.\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"verbose\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Whether to include all possible information available in the full a11y tree. Default is false.\")) }, \"type\": Value { kind: Some(StringValue(\"boolean\")) }} })) }} })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"type_text\", description: \"Type text using keyboard into a previously focused input\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(true)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"submitKey\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Optional key to press after typing. E.g., \\\"Enter\\\", \\\"Tab\\\", \\\"Escape\\\"\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"text\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"The text to type\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"text\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"upload_file\", description: \"Upload a file through a provided element.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(true)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"filePath\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"The local path of the file to upload\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"includeSnapshot\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Whether to include a snapshot in the response. Default is false.\")) }, \"type\": Value { kind: Some(StringValue(\"boolean\")) }} })) }, \"uid\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"The uid of the file input element or an element that will open file chooser on the page from the page content snapshot\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"uid\")) }, Value { kind: Some(StringValue(\"filePath\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"wait_for\", description: \"Wait for the specified text to appear on the selected page.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(true)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"text\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Non-empty list of texts. Resolves when any value appears on the page.\")) }, \"items\": Value { kind: Some(StructValue(Struct { fields: {\"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"minItems\": Value { kind: Some(NumberValue(1.0)) }, \"type\": Value { kind: Some(StringValue(\"array\")) }} })) }, \"timeout\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Maximum wait time in milliseconds. If set to 0, the default timeout will be used.\")) }, \"type\": Value { kind: Some(StringValue(\"integer\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"text\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }] }, McpServer { name: \"macos-control\", description: \"\", id: \"db88525f-4596-4db5-a345-59fd15792c1f\", resources: [], tools: [McpTool { name: \"screenshot\", description: \"Capture a screenshot of the entire screen or a specific app window. Returns a PNG image.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"app\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"App name to capture. Omit for full screen.\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"screen_ocr\", description: \"OCR the screen using Apple Vision. Returns every text element with pixel coordinates (x, y, centerX, centerY). Use centerX/centerY with click_at to click on any text.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"app\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"App to OCR. Omit for full screen.\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"compact\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Return compact OCR objects (text + click coordinates + confidence).\")) }, \"type\": Value { kind: Some(StringValue(\"boolean\")) }} })) }, \"include_bounds\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Include bounding boxes in results (default true).\")) }, \"type\": Value { kind: Some(StringValue(\"boolean\")) }} })) }, \"max_elements\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Max OCR elements to return (for smaller/faster responses).\")) }, \"minimum\": Value { kind: Some(NumberValue(1.0)) }, \"type\": Value { kind: Some(StringValue(\"integer\")) }} })) }, \"min_confidence\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Filter out OCR matches below this confidence (0.0-1.0).\")) }, \"maximum\": Value { kind: Some(NumberValue(1.0)) }, \"minimum\": Value { kind: Some(NumberValue(0.0)) }, \"type\": Value { kind: Some(StringValue(\"number\")) }} })) }} })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"find_text_on_screen\", description: \"Find specific text on screen and get its clickable coordinates. Like Ctrl+F for the entire screen. Returns matches with centerX/centerY for use with click_at.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"app\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"App to search in. Omit for full screen.\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"text\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Text to find (case-insensitive)\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"text\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"click_at\", description: \"Click at x,y screen coordinates. Returns a screenshot by default (disable with return_screenshot=false). Use screenshot + screen_ocr to find coordinates first. Prefer batch_actions when combining with other actions.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"return_screenshot\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Return a screenshot after clicking (default true). Set false for faster/smaller responses.\")) }, \"type\": Value { kind: Some(StringValue(\"boolean\")) }} })) }, \"x\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"X coordinate\")) }, \"type\": Value { kind: Some(StringValue(\"number\")) }} })) }, \"y\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Y coordinate\")) }, \"type\": Value { kind: Some(StringValue(\"number\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"x\")) }, Value { kind: Some(StringValue(\"y\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"double_click_at\", description: \"Double-click at x,y screen coordinates. Returns a screenshot by default (disable with return_screenshot=false). Prefer batch_actions when combining with other actions.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"return_screenshot\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Return a screenshot after double-clicking (default true). Set false for faster/smaller responses.\")) }, \"type\": Value { kind: Some(StringValue(\"boolean\")) }} })) }, \"x\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"X coordinate\")) }, \"type\": Value { kind: Some(StringValue(\"number\")) }} })) }, \"y\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Y coordinate\")) }, \"type\": Value { kind: Some(StringValue(\"number\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"x\")) }, Value { kind: Some(StringValue(\"y\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"type_text\", description: \"Type text using keyboard input. If app is specified, focuses that app first to ensure keystrokes go to the right place. Without app, types into the frontmost app. Prefer batch_actions when combining with other actions.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"app\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"App to focus before typing (e.g. 'Google Chrome', 'Notes'). Recommended to avoid keystrokes going to the wrong app.\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"text\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Text to type\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"text\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"press_key\", description: \"Press a key combo (e.g. press 's' with ['command'] for Cmd+S). Supports a-z, 0-9, return, tab, space, delete, escape, arrows, f1-f12. If app is specified, focuses that app first. Prefer batch_actions when combining with other actions.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"app\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"App to focus before pressing key (e.g. 'Google Chrome', 'Notes').\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"key\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Key name: a-z, 0-9, return, tab, space, delete, escape, up/down/left/right, f1-f12\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"modifiers\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Modifier keys: 'command', 'shift', 'option', 'control'\")) }, \"items\": Value { kind: Some(StructValue(Struct { fields: {\"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"type\": Value { kind: Some(StringValue(\"array\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"key\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"scroll\", description: \"Scroll in the frontmost application. Prefer batch_actions when combining with other actions.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"amount\": Value { kind: Some(StructValue(Struct { fields: {\"default\": Value { kind: Some(NumberValue(3.0)) }, \"description\": Value { kind: Some(StringValue(\"Number of lines to scroll (default 3)\")) }, \"type\": Value { kind: Some(StringValue(\"number\")) }} })) }, \"direction\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Scroll direction\")) }, \"enum\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"up\")) }, Value { kind: Some(StringValue(\"down\")) }, Value { kind: Some(StringValue(\"left\")) }, Value { kind: Some(StringValue(\"right\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"direction\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"launch_app\", description: \"Open or focus a macOS application by name. Prefer batch_actions when combining with other actions.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"name\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Application name, e.g. 'Safari', 'Notes'\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"name\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"list_running_apps\", description: \"List all visible running macOS applications.\", input_schema: Some(Struct { fields: {\"properties\": Value { kind: Some(StructValue(Struct { fields: {} })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"get_ui_elements\", description: \"Get the accessibility tree of an app window. Returns UI element roles, names, and positions.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"app\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Application process name\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"app\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"click_element\", description: \"Click a named UI element in an app window. Returns a screenshot by default (disable with return_screenshot=false). Use get_ui_elements to discover element names. Prefer batch_actions when combining with other actions.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"app\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Application process name\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"name\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Name of the UI element to click\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"return_screenshot\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Return a screenshot after clicking (default true). Set false for faster/smaller responses.\")) }, \"type\": Value { kind: Some(StringValue(\"boolean\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"app\")) }, Value { kind: Some(StringValue(\"name\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"open_url\", description: \"Open a URL in Safari or Chrome.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"browser\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"'safari' or 'chrome' (defaults to Safari)\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"url\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"URL to open\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"url\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"get_clipboard\", description: \"Read the current text contents of the macOS clipboard.\", input_schema: Some(Struct { fields: {\"properties\": Value { kind: Some(StructValue(Struct { fields: {} })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"set_clipboard\", description: \"Write text to the macOS clipboard.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"text\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Text to copy to clipboard\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"text\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"execute_javascript\", description: \"Run JavaScript in the active browser tab. Much faster than screenshot+OCR for web pages. Returns the result.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"browser\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"'safari' or 'chrome' (defaults to Safari)\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"code\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"JavaScript code to execute\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"code\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"get_page_text\", description: \"Get all visible text from the current browser page. Faster than OCR for web content.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"browser\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"'safari' or 'chrome' (defaults to Safari)\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"get_page_elements\", description: \"Get all interactive elements (buttons, inputs, selects, radios, checkboxes, links) from the current browser page. Returns structured text showing each element's type, label, value, and state. Use this instead of screenshot+OCR to understand web page content. Then use click_by_text or fill_by_label to interact.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"browser\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"'safari' or 'chrome' (defaults to Safari)\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"click_by_text\", description: \"Click a button, link, tab, radio, or checkbox by its visible text. Much more reliable than coordinate clicking. Scrolls element into view before clicking.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"browser\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"'safari' or 'chrome' (defaults to Safari)\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"element_type\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Type of element to click (default: 'any')\")) }, \"enum\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"button\")) }, Value { kind: Some(StringValue(\"link\")) }, Value { kind: Some(StringValue(\"tab\")) }, Value { kind: Some(StringValue(\"radio\")) }, Value { kind: Some(StringValue(\"checkbox\")) }, Value { kind: Some(StringValue(\"any\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"index\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Which match to click if multiple found (0-based, default: 0)\")) }, \"type\": Value { kind: Some(StringValue(\"number\")) }} })) }, \"text\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Visible text to search for (case-insensitive partial match)\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"text\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"fill_by_label\", description: \"Fill a form field by its label text. Finds the input/textarea associated with the label and fills it. Works with React/Vue/Angular apps. On failure, lists available field labels for debugging.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"browser\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"'safari' or 'chrome' (defaults to Safari)\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"label\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Label text of the field (case-insensitive partial match)\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"value\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Value to fill in\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"label\")) }, Value { kind: Some(StringValue(\"value\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"select_option\", description: \"Select a dropdown option by the dropdown's label and the option text. On failure, lists available options for debugging.\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"browser\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"'safari' or 'chrome' (defaults to Safari)\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"label\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Label text of the select/dropdown (case-insensitive partial match)\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"option\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Option text to select (case-insensitive partial match)\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"label\")) }, Value { kind: Some(StringValue(\"option\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }, McpTool { name: \"batch_actions\", description: \"PREFERRED: Always use this tool instead of calling individual action tools (click_at, type_text, press_key, launch_app, etc.) one at a time. Combine multiple steps into a single batch call — this is dramatically faster. Returns a single screenshot by default (disable with return_screenshot=false). Only use individual tools when you need to read the result of one action before deciding the next. Stops on first error. Max 20 actions per call.\\n\\nExample — open Notes and write text (1 call instead of 6):\\n [{ \\\"action\\\": \\\"launch_app\\\", \\\"name\\\": \\\"Notes\\\" }, { \\\"action\\\": \\\"key\\\", \\\"key\\\": \\\"n\\\", \\\"modifiers\\\": [\\\"command\\\"] }, { \\\"action\\\": \\\"set_clipboard\\\", \\\"text\\\": \\\"Hello\\\\nWorld\\\" }, { \\\"action\\\": \\\"key\\\", \\\"key\\\": \\\"v\\\", \\\"modifiers\\\": [\\\"command\\\"] }]\", input_schema: Some(Struct { fields: {\"$schema\": Value { kind: Some(StringValue(\"http://json-schema.org/draft-07/schema#\")) }, \"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"actions\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Array of actions to execute sequentially\")) }, \"items\": Value { kind: Some(StructValue(Struct { fields: {\"anyOf\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StructValue(Struct { fields: {\"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"action\": Value { kind: Some(StructValue(Struct { fields: {\"const\": Value { kind: Some(StringValue(\"click\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"x\": Value { kind: Some(StructValue(Struct { fields: {\"type\": Value { kind: Some(StringValue(\"number\")) }} })) }, \"y\": Value { kind: Some(StructValue(Struct { fields: {\"type\": Value { kind: Some(StringValue(\"number\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"action\")) }, Value { kind: Some(StringValue(\"x\")) }, Value { kind: Some(StringValue(\"y\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} })) }, Value { kind: Some(StructValue(Struct { fields: {\"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"action\": Value { kind: Some(StructValue(Struct { fields: {\"const\": Value { kind: Some(StringValue(\"double_click\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"x\": Value { kind: Some(StructValue(Struct { fields: {\"type\": Value { kind: Some(StringValue(\"number\")) }} })) }, \"y\": Value { kind: Some(StructValue(Struct { fields: {\"type\": Value { kind: Some(StringValue(\"number\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"action\")) }, Value { kind: Some(StringValue(\"x\")) }, Value { kind: Some(StringValue(\"y\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} })) }, Value { kind: Some(StructValue(Struct { fields: {\"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"action\": Value { kind: Some(StructValue(Struct { fields: {\"const\": Value { kind: Some(StringValue(\"click_element\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"app\": Value { kind: Some(StructValue(Struct { fields: {\"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"name\": Value { kind: Some(StructValue(Struct { fields: {\"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"action\")) }, Value { kind: Some(StringValue(\"app\")) }, Value { kind: Some(StringValue(\"name\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} })) }, Value { kind: Some(StructValue(Struct { fields: {\"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"action\": Value { kind: Some(StructValue(Struct { fields: {\"const\": Value { kind: Some(StringValue(\"type\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"text\": Value { kind: Some(StructValue(Struct { fields: {\"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"action\")) }, Value { kind: Some(StringValue(\"text\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} })) }, Value { kind: Some(StructValue(Struct { fields: {\"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"action\": Value { kind: Some(StructValue(Struct { fields: {\"const\": Value { kind: Some(StringValue(\"key\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"key\": Value { kind: Some(StructValue(Struct { fields: {\"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"modifiers\": Value { kind: Some(StructValue(Struct { fields: {\"items\": Value { kind: Some(StructValue(Struct { fields: {\"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"type\": Value { kind: Some(StringValue(\"array\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"action\")) }, Value { kind: Some(StringValue(\"key\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} })) }, Value { kind: Some(StructValue(Struct { fields: {\"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"action\": Value { kind: Some(StructValue(Struct { fields: {\"const\": Value { kind: Some(StringValue(\"scroll\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"amount\": Value { kind: Some(StructValue(Struct { fields: {\"type\": Value { kind: Some(StringValue(\"number\")) }} })) }, \"direction\": Value { kind: Some(StructValue(Struct { fields: {\"enum\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"up\")) }, Value { kind: Some(StringValue(\"down\")) }, Value { kind: Some(StringValue(\"left\")) }, Value { kind: Some(StringValue(\"right\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"action\")) }, Value { kind: Some(StringValue(\"direction\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} })) }, Value { kind: Some(StructValue(Struct { fields: {\"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"action\": Value { kind: Some(StructValue(Struct { fields: {\"const\": Value { kind: Some(StringValue(\"launch_app\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"name\": Value { kind: Some(StructValue(Struct { fields: {\"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"action\")) }, Value { kind: Some(StringValue(\"name\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} })) }, Value { kind: Some(StructValue(Struct { fields: {\"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"action\": Value { kind: Some(StructValue(Struct { fields: {\"const\": Value { kind: Some(StringValue(\"open_url\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"browser\": Value { kind: Some(StructValue(Struct { fields: {\"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"url\": Value { kind: Some(StructValue(Struct { fields: {\"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"action\")) }, Value { kind: Some(StringValue(\"url\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} })) }, Value { kind: Some(StructValue(Struct { fields: {\"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"action\": Value { kind: Some(StructValue(Struct { fields: {\"const\": Value { kind: Some(StringValue(\"set_clipboard\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"text\": Value { kind: Some(StructValue(Struct { fields: {\"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"action\")) }, Value { kind: Some(StringValue(\"text\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} })) }, Value { kind: Some(StructValue(Struct { fields: {\"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"action\": Value { kind: Some(StructValue(Struct { fields: {\"const\": Value { kind: Some(StringValue(\"execute_javascript\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"browser\": Value { kind: Some(StructValue(Struct { fields: {\"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"code\": Value { kind: Some(StructValue(Struct { fields: {\"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"action\")) }, Value { kind: Some(StringValue(\"code\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} })) }, Value { kind: Some(StructValue(Struct { fields: {\"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"action\": Value { kind: Some(StructValue(Struct { fields: {\"const\": Value { kind: Some(StringValue(\"click_text\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"browser\": Value { kind: Some(StructValue(Struct { fields: {\"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"element_type\": Value { kind: Some(StructValue(Struct { fields: {\"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"index\": Value { kind: Some(StructValue(Struct { fields: {\"type\": Value { kind: Some(StringValue(\"number\")) }} })) }, \"text\": Value { kind: Some(StructValue(Struct { fields: {\"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"action\")) }, Value { kind: Some(StringValue(\"text\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} })) }, Value { kind: Some(StructValue(Struct { fields: {\"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"action\": Value { kind: Some(StructValue(Struct { fields: {\"const\": Value { kind: Some(StringValue(\"fill_label\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"browser\": Value { kind: Some(StructValue(Struct { fields: {\"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"label\": Value { kind: Some(StructValue(Struct { fields: {\"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"value\": Value { kind: Some(StructValue(Struct { fields: {\"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"action\")) }, Value { kind: Some(StringValue(\"label\")) }, Value { kind: Some(StringValue(\"value\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} })) }, Value { kind: Some(StructValue(Struct { fields: {\"additionalProperties\": Value { kind: Some(BoolValue(false)) }, \"properties\": Value { kind: Some(StructValue(Struct { fields: {\"action\": Value { kind: Some(StructValue(Struct { fields: {\"const\": Value { kind: Some(StringValue(\"select_option\")) }, \"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"browser\": Value { kind: Some(StructValue(Struct { fields: {\"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"label\": Value { kind: Some(StructValue(Struct { fields: {\"type\": Value { kind: Some(StringValue(\"string\")) }} })) }, \"option\": Value { kind: Some(StructValue(Struct { fields: {\"type\": Value { kind: Some(StringValue(\"string\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"action\")) }, Value { kind: Some(StringValue(\"label\")) }, Value { kind: Some(StringValue(\"option\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} })) }] })) }} })) }, \"maxItems\": Value { kind: Some(NumberValue(20.0)) }, \"minItems\": Value { kind: Some(NumberValue(1.0)) }, \"type\": Value { kind: Some(StringValue(\"array\")) }} })) }, \"delay_between_ms\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Delay between actions in ms (default 100)\")) }, \"type\": Value { kind: Some(StringValue(\"number\")) }} })) }, \"return_screenshot\": Value { kind: Some(StructValue(Struct { fields: {\"description\": Value { kind: Some(StringValue(\"Return one screenshot at the end (default true). Set false for faster/smaller responses.\")) }, \"type\": Value { kind: Some(StringValue(\"boolean\")) }} })) }} })) }, \"required\": Value { kind: Some(ListValue(ListValue { values: [Value { kind: Some(StringValue(\"actions\")) }] })) }, \"type\": Value { kind: Some(StringValue(\"object\")) }} }) }] }] }) }", - "timestamp_local": "2026-05-18T11:22:55.626-05:00", - "timestamp_utc": "2026-05-18T16:22:55.626Z" -} \ No newline at end of file diff --git a/app/Cargo.toml b/app/Cargo.toml index f57deab3..8bfc9424 100644 --- a/app/Cargo.toml +++ b/app/Cargo.toml @@ -5,7 +5,7 @@ description = "Galaxy - AI-powered terminal" edition = "2021" autobins = false name = "galaxy" -version = "1.1.0" +version = "1.2.0" publish.workspace = true license.workspace = true diff --git a/app/DockTilePlugin/WarpDockTilePlugin.h b/app/DockTilePlugin/GalaxyDockTilePlugin.h similarity index 76% rename from app/DockTilePlugin/WarpDockTilePlugin.h rename to app/DockTilePlugin/GalaxyDockTilePlugin.h index b1c86d1f..8a77d205 100644 --- a/app/DockTilePlugin/WarpDockTilePlugin.h +++ b/app/DockTilePlugin/GalaxyDockTilePlugin.h @@ -1,7 +1,7 @@ #import #import -@interface WarpDockTilePlugIn : NSObject +@interface GalaxyDockTilePlugIn : NSObject { id iconChangedObserver; id defaultsObserver; diff --git a/app/DockTilePlugin/WarpDockTilePlugin.m b/app/DockTilePlugin/GalaxyDockTilePlugin.m similarity index 68% rename from app/DockTilePlugin/WarpDockTilePlugin.m rename to app/DockTilePlugin/GalaxyDockTilePlugin.m index 4b4a6ad8..ad8ab2ef 100644 --- a/app/DockTilePlugin/WarpDockTilePlugin.m +++ b/app/DockTilePlugin/GalaxyDockTilePlugin.m @@ -1,6 +1,6 @@ -#include "WarpDockTilePlugin.h" +#include "GalaxyDockTilePlugin.h" -@implementation WarpDockTilePlugIn { +@implementation GalaxyDockTilePlugIn { NSFileHandle *_logFileHandle; } @@ -25,14 +25,13 @@ NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDateFormat:@"yyyy-MM-dd_HH-mm-ss"]; NSString *timestamp = [formatter stringFromDate:[NSDate date]]; - NSString *logPath = [NSString stringWithFormat:@"/tmp/warp_docktile_%@.log", timestamp]; - NSError *error = nil; + NSString *logPath = [NSString stringWithFormat:@"/tmp/galaxy_docktile_%@.log", timestamp]; [[NSFileManager defaultManager] createFileAtPath:logPath contents:nil attributes:nil]; _logFileHandle = [NSFileHandle fileHandleForWritingAtPath:logPath]; - [self logMessage:@"WarpDockTilePlugin initialized"]; + [self logMessage:@"GalaxyDockTilePlugin initialized"]; } @catch (NSException *exception) { - NSLog(@"Exception during initialization: %@\nStack trace: %@", - exception.reason, + NSLog(@"Exception during initialization: %@\nStack trace: %@", + exception.reason, exception.callStackSymbols); } } @@ -42,90 +41,60 @@ - (void)updateAppIcon:(NSDockTile *)tile { @try { [self logMessage:@"updateAppIcon called"]; - // Retrieve the bundle ID for the main app from the Info.plist file in the plugin bundle - NSBundle *pluginBundle = [NSBundle bundleForClass:[self class]]; + NSBundle *pluginBundle = [NSBundle bundleForClass:[self class]]; NSString *path = [[pluginBundle bundlePath] stringByAppendingPathComponent:@"Contents/Info.plist"]; - NSDictionary *dict = [NSDictionary dictionaryWithContentsOfFile:path]; - NSString *bundleId = dict[@"MainAppBundleIdentifier"]; - BOOL isDev = [bundleId containsString:@"Dev"]; - BOOL isPreview = [bundleId containsString:@"Preview"]; - BOOL isLocal = [bundleId containsString:@"Local"]; + NSDictionary *dict = [NSDictionary dictionaryWithContentsOfFile:path]; + NSString *bundleId = dict[@"MainAppBundleIdentifier"]; [self logMessage:[NSString stringWithFormat:@"Plugin Bundle ID: %@", bundleId]]; - // Initialize the user defaults for the main app NSUserDefaults *hostDefaults = [[NSUserDefaults alloc] initWithSuiteName:bundleId]; [hostDefaults synchronize]; - // Get the icon name from the user defaults NSString* appIconName = [hostDefaults stringForKey:@"AppIcon"]; - // Check if the user has set a non-default icon. If the AppIcon key is nil, empty, or "Default", reset to the - // icon bundled with the app by setting the content to "nil". Using the icon bundled in the app will allow macOS - // to handle the icon, including respecting "Icon & Widget Style" setting and applying a color filter. Non- - // default icons do not respect that setting. NSString* cleanName = [[appIconName stringByTrimmingCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@"\""]] lowercaseString]; - if (!appIconName || [appIconName length] == 0 || [cleanName isEqualToString:@"default"]) { + if (!appIconName || [appIconName length] == 0 || [cleanName isEqualToString:@"galaxy"]) { [self logMessage:@"User has default icon, resetting dock tile to system default"]; [tile setContentView:nil]; [tile display]; return; } - NSString* iconFileName = [self convertAppIconNameToFileName:appIconName isDev:isDev isLocal:isLocal isPreview:isPreview]; + NSString* iconFileName = [self convertAppIconNameToFileName:appIconName]; [self logMessage:[NSString stringWithFormat:@"Icon file name: %@", iconFileName]]; - // Load the icon image NSImage* currentImage = [self LoadDockTileImage:iconFileName]; - // Set the image on the dock tile - // 256 x 256 is the preferred size for retina dock icons. NSImageView* imageView = [[NSImageView alloc] initWithFrame:NSMakeRect(0, 0, 256, 256)]; [imageView setImage:currentImage]; [imageView setImageScaling:NSImageScaleProportionallyUpOrDown]; [tile setContentView:imageView]; [tile display]; - + [self logMessage:[NSString stringWithFormat:@"Dock tile updated with icon: %@", iconFileName]]; } @catch (NSException *exception) { - [self logMessage:[NSString stringWithFormat:@"Exception updating dock tile icon: %@\nStack trace: %@\nTile: %@", - exception.reason, + [self logMessage:[NSString stringWithFormat:@"Exception updating dock tile icon: %@\nStack trace: %@\nTile: %@", + exception.reason, exception.callStackSymbols, tile ? @"valid" : @"nil"]]; } } -// See app_icon.rs for the rust version of this conversion. -- (NSString*)convertAppIconNameToFileName:(NSString*)appIconName isDev:(BOOL)isDev isLocal:(BOOL)isLocal isPreview:(BOOL)isPreview { - // First remove quotes and convert to lowercase +- (NSString*)convertAppIconNameToFileName:(NSString*)appIconName { NSString* cleanName = [[appIconName stringByTrimmingCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@"\""]] lowercaseString]; - - NSDictionary* mapping = @{ - @"aurora": @"aurora", - @"classic1": @"classic_1", - @"classic2": @"classic_2", - @"classic3": @"classic_3", - @"comets": @"comets", - @"glasssky": @"glass_sky", - @"glitch": @"glitch", - @"glow": @"glow", - @"holographic": @"holographic", - @"mono": @"mono", - @"neon": @"neon", - @"original": @"original", - @"starburst": @"starburst", - @"sticker": @"sticker", - @"warpone": @"blue", - @"cow": @"cow" - }; - - NSString* fileName = mapping[cleanName]; - // If the mapping doesn't exist, return the default icon - // conditional on whether this is a local, dev, or preview build. - return fileName ?: isLocal ? @"local" : isDev ? @"dev" : isPreview ? @"preview" : @"warp_2"; + NSDictionary* mapping = @{ + @"galaxy": @"galaxy", + @"dotmatrix": @"galaxy_dotmatrix", + @"explorer": @"galaxy_explorer", + @"rainbow": @"galaxy_rainbow", + @"wormhole": @"galaxy_wormhole", + }; + + NSString* fileName = mapping[cleanName]; + return fileName ?: @"galaxy"; } -// Helper function to load named image from the plugin's resource bundle - (NSImage*)LoadDockTileImage:(NSString*)imageName { NSBundle* pluginBundle = [NSBundle bundleForClass:[self class]]; NSString* imagePath = [pluginBundle pathForResource:imageName ofType:@"png"]; @@ -137,21 +106,17 @@ return [[NSImage alloc] initWithContentsOfFile:imagePath]; } -// Protocol method that is invoked by the system when the dock for Warp is updated. -// Note that we listen for direct changes to the AppIcon key in the user defaults. - (void)setDockTile:(NSDockTile *)dockTile { @try { [self logMessage:[NSString stringWithFormat:@"setDockTile called with tile: %@", dockTile ? @"valid" : @"nil"]]; if (dockTile) { - // Get the bundle ID for setting up user defaults observation - NSBundle *pluginBundle = [NSBundle bundleForClass:[WarpDockTilePlugIn class]]; + NSBundle *pluginBundle = [NSBundle bundleForClass:[GalaxyDockTilePlugIn class]]; NSString *path = [[pluginBundle bundlePath] stringByAppendingPathComponent:@"Contents/Info.plist"]; - NSDictionary *dict = [NSDictionary dictionaryWithContentsOfFile:path]; + NSDictionary *dict = [NSDictionary dictionaryWithContentsOfFile:path]; NSString *bundleId = dict[@"MainAppBundleIdentifier"]; [self logMessage:[NSString stringWithFormat:@"Main app bundleId: %@", bundleId]]; - // Set up user defaults observer NSUserDefaults *hostDefaults = [[NSUserDefaults alloc] initWithSuiteName:bundleId]; [hostDefaults addObserver:self forKeyPath:@"AppIcon" @@ -161,8 +126,7 @@ [self logMessage:[NSString stringWithFormat:@"Host defaults: %@", hostDefaults]]; - // Make sure the icon is updated from the get-go as well. - [self updateAppIcon:dockTile]; + [self updateAppIcon:dockTile]; } else { [self logMessage:@"No docktile, clearing icon observer"]; [[NSDistributedNotificationCenter defaultCenter] removeObserver:self.iconChangedObserver]; @@ -173,8 +137,8 @@ } } } @catch (NSException *exception) { - [self logMessage:[NSString stringWithFormat:@"Exception in setDockTile: %@\nStack trace: %@\nDockTile: %@", - exception.reason, + [self logMessage:[NSString stringWithFormat:@"Exception in setDockTile: %@\nStack trace: %@\nDockTile: %@", + exception.reason, exception.callStackSymbols, dockTile ? @"valid" : @"nil"]]; } @@ -182,7 +146,7 @@ - (void)dealloc { @try { - [self logMessage:@"WarpDockTilePlugin deallocating"]; + [self logMessage:@"GalaxyDockTilePlugin deallocating"]; if (self.iconChangedObserver) { [[NSDistributedNotificationCenter defaultCenter] removeObserver:self.iconChangedObserver]; self.iconChangedObserver = nil; @@ -191,20 +155,19 @@ [(NSUserDefaults *)self.defaultsObserver removeObserver:self forKeyPath:@"AppIcon"]; self.defaultsObserver = nil; } - + if (_logFileHandle) { [self logMessage:@"Closing log file"]; [_logFileHandle closeFile]; _logFileHandle = nil; } } @catch (NSException *exception) { - NSLog(@"Exception during deallocation: %@\nStack trace: %@", - exception.reason, + NSLog(@"Exception during deallocation: %@\nStack trace: %@", + exception.reason, exception.callStackSymbols); } } -// KVO callback method - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change @@ -216,8 +179,8 @@ [self updateAppIcon:dockTile]; } } @catch (NSException *exception) { - [self logMessage:[NSString stringWithFormat:@"Exception in KVO handler: %@\nStack trace: %@\nKeyPath: %@\nObject: %@\nChange: %@", - exception.reason, + [self logMessage:[NSString stringWithFormat:@"Exception in KVO handler: %@\nStack trace: %@\nKeyPath: %@\nObject: %@\nChange: %@", + exception.reason, exception.callStackSymbols, keyPath, object, diff --git a/app/DockTilePlugin/Info.plist b/app/DockTilePlugin/Info.plist index 34ba292a..c91c76f3 100644 --- a/app/DockTilePlugin/Info.plist +++ b/app/DockTilePlugin/Info.plist @@ -5,7 +5,7 @@ CFBundleIdentifier samsung.galaxy.GalaxyDockTilePlugin CFBundleExecutable - WarpDockTilePlugin + GalaxyDockTilePlugin CFBundleName GalaxyDockTilePlugin CFBundlePackageType @@ -15,7 +15,7 @@ CFBundleVersion 1 NSPrincipalClass - WarpDockTilePlugin + GalaxyDockTilePlugIn CFBundleInfoDictionaryVersion 6.0 diff --git a/app/DockTilePlugin/Makefile b/app/DockTilePlugin/Makefile index 0fa1f9b1..e2456f51 100644 --- a/app/DockTilePlugin/Makefile +++ b/app/DockTilePlugin/Makefile @@ -1,5 +1,5 @@ -BUNDLE_NAME = WarpDockTilePlugin.docktileplugin -OBJC_FILES = WarpDockTilePlugin.m +BUNDLE_NAME = GalaxyDockTilePlugin.docktileplugin +OBJC_FILES = GalaxyDockTilePlugin.m FRAMEWORKS = -framework Cocoa -framework AppKit -framework Foundation # Compile a universal binary for both arm64 and x86_64. CFLAGS = -fobjc-arc -bundle -mmacosx-version-min=$(MACOSX_DEPLOYMENT_TARGET) -arch arm64 -arch x86_64 @@ -11,7 +11,7 @@ all: $(BUNDLE_NAME) $(BUNDLE_NAME): $(OBJC_FILES) mkdir -p $(BUNDLE_NAME)/Contents/MacOS - clang $(CFLAGS) $(LDFLAGS) $(FRAMEWORKS) $(OBJC_FILES) -o $(BUNDLE_NAME)/Contents/MacOS/WarpDockTilePlugin + clang $(CFLAGS) $(LDFLAGS) $(FRAMEWORKS) $(OBJC_FILES) -o $(BUNDLE_NAME)/Contents/MacOS/GalaxyDockTilePlugin cp Info.plist $(BUNDLE_NAME)/Contents/ mkdir -p $(BUNDLE_NAME)/Contents/Resources cp Resources/* $(BUNDLE_NAME)/Contents/Resources/ diff --git a/app/DockTilePlugin/Resources/galaxy.png b/app/DockTilePlugin/Resources/galaxy.png index 85203fc8..678f9607 100644 Binary files a/app/DockTilePlugin/Resources/galaxy.png and b/app/DockTilePlugin/Resources/galaxy.png differ diff --git a/app/DockTilePlugin/Resources/galaxy_dotmatrix.png b/app/DockTilePlugin/Resources/galaxy_dotmatrix.png index 7b423d3d..f39dc285 100644 Binary files a/app/DockTilePlugin/Resources/galaxy_dotmatrix.png and b/app/DockTilePlugin/Resources/galaxy_dotmatrix.png differ diff --git a/app/DockTilePlugin/Resources/galaxy_explorer.png b/app/DockTilePlugin/Resources/galaxy_explorer.png index 97d5c5f0..6349ca5a 100644 Binary files a/app/DockTilePlugin/Resources/galaxy_explorer.png and b/app/DockTilePlugin/Resources/galaxy_explorer.png differ diff --git a/app/DockTilePlugin/Resources/galaxy_rainbow.png b/app/DockTilePlugin/Resources/galaxy_rainbow.png index 185241b1..a7f0a340 100644 Binary files a/app/DockTilePlugin/Resources/galaxy_rainbow.png and b/app/DockTilePlugin/Resources/galaxy_rainbow.png differ diff --git a/app/DockTilePlugin/Resources/galaxy_wormhole.png b/app/DockTilePlugin/Resources/galaxy_wormhole.png index 29c49b2e..fe79b7cc 100644 Binary files a/app/DockTilePlugin/Resources/galaxy_wormhole.png and b/app/DockTilePlugin/Resources/galaxy_wormhole.png differ diff --git a/app/assets/bundled/png/galaxy.png b/app/assets/bundled/png/galaxy.png index 85203fc8..678f9607 100644 Binary files a/app/assets/bundled/png/galaxy.png and b/app/assets/bundled/png/galaxy.png differ diff --git a/app/assets/bundled/png/galaxy_dotmatrix.png b/app/assets/bundled/png/galaxy_dotmatrix.png index 7b423d3d..f39dc285 100644 Binary files a/app/assets/bundled/png/galaxy_dotmatrix.png and b/app/assets/bundled/png/galaxy_dotmatrix.png differ diff --git a/app/assets/bundled/png/galaxy_explorer.png b/app/assets/bundled/png/galaxy_explorer.png index 97d5c5f0..6349ca5a 100644 Binary files a/app/assets/bundled/png/galaxy_explorer.png and b/app/assets/bundled/png/galaxy_explorer.png differ diff --git a/app/assets/bundled/png/galaxy_rainbow.png b/app/assets/bundled/png/galaxy_rainbow.png index 185241b1..a7f0a340 100644 Binary files a/app/assets/bundled/png/galaxy_rainbow.png and b/app/assets/bundled/png/galaxy_rainbow.png differ diff --git a/app/assets/bundled/png/galaxy_wormhole.png b/app/assets/bundled/png/galaxy_wormhole.png index 29c49b2e..fe79b7cc 100644 Binary files a/app/assets/bundled/png/galaxy_wormhole.png and b/app/assets/bundled/png/galaxy_wormhole.png differ diff --git a/app/build.rs b/app/build.rs index 95838d56..3be79831 100644 --- a/app/build.rs +++ b/app/build.rs @@ -47,8 +47,8 @@ fn main() -> Result<()> { .compile("warp_objc"); // Build the dock tile plugin - println!("cargo:rerun-if-changed=DockTilePlugin/WarpDockTilePlugin.m"); - println!("cargo:rerun-if-changed=DockTilePlugin/WarpDockTilePlugin.h"); + println!("cargo:rerun-if-changed=DockTilePlugin/GalaxyDockTilePlugin.m"); + println!("cargo:rerun-if-changed=DockTilePlugin/GalaxyDockTilePlugin.h"); println!("cargo:rerun-if-changed=DockTilePlugin/Info.plist"); println!("cargo:rerun-if-changed=DockTilePlugin/Makefile"); @@ -66,8 +66,9 @@ fn main() -> Result<()> { // Copy the dock tile plugin to the output directory let profile = get_build_profile_name(); let target_dir = app_target_dir(&profile).expect("Failed to get app target directory"); - let plugin_src = Path::new("DockTilePlugin/WarpDockTilePlugin.docktileplugin"); - let plugin_dst = target_dir.join("WarpDockTilePlugin.docktileplugin"); + let plugin_src = Path::new("DockTilePlugin/GalaxyDockTilePlugin.docktileplugin"); + let plugin_dst = target_dir.join("GalaxyDockTilePlugin.docktileplugin"); + if !status.success() { fs::remove_dir_all(plugin_src).expect("Failed to clean up plugin directory"); diff --git a/app/channels/dev/icon/no-padding/256x256.png b/app/channels/dev/icon/no-padding/256x256.png index 9de49f70..d6b33153 100644 Binary files a/app/channels/dev/icon/no-padding/256x256.png and b/app/channels/dev/icon/no-padding/256x256.png differ diff --git a/app/channels/dev/icon/no-padding/512x512.png b/app/channels/dev/icon/no-padding/512x512.png index b2221f2c..6dbc3837 100644 Binary files a/app/channels/dev/icon/no-padding/512x512.png and b/app/channels/dev/icon/no-padding/512x512.png differ diff --git a/app/channels/local/icon/no-padding/512x512.png b/app/channels/local/icon/no-padding/512x512.png index 927843ba..6dbc3837 100644 Binary files a/app/channels/local/icon/no-padding/512x512.png and b/app/channels/local/icon/no-padding/512x512.png differ diff --git a/app/channels/oss/icon/no-padding/512x512.png b/app/channels/oss/icon/no-padding/512x512.png index 74b8edcf..6dbc3837 100644 Binary files a/app/channels/oss/icon/no-padding/512x512.png and b/app/channels/oss/icon/no-padding/512x512.png differ diff --git a/app/channels/preview/icon/no-padding/256x256.png b/app/channels/preview/icon/no-padding/256x256.png index 7c81acfc..d6b33153 100644 Binary files a/app/channels/preview/icon/no-padding/256x256.png and b/app/channels/preview/icon/no-padding/256x256.png differ diff --git a/app/channels/preview/icon/no-padding/512x512.png b/app/channels/preview/icon/no-padding/512x512.png index d5389ad9..6dbc3837 100644 Binary files a/app/channels/preview/icon/no-padding/512x512.png and b/app/channels/preview/icon/no-padding/512x512.png differ diff --git a/app/channels/stable/icon/no-padding/256x256.png b/app/channels/stable/icon/no-padding/256x256.png index b30d5179..d6b33153 100644 Binary files a/app/channels/stable/icon/no-padding/256x256.png and b/app/channels/stable/icon/no-padding/256x256.png differ diff --git a/app/channels/stable/icon/no-padding/512x512.png b/app/channels/stable/icon/no-padding/512x512.png index 8b7bc0ca..6dbc3837 100644 Binary files a/app/channels/stable/icon/no-padding/512x512.png and b/app/channels/stable/icon/no-padding/512x512.png differ diff --git a/app/src/appearance.rs b/app/src/appearance.rs index 6676dc09..7f66c7a0 100644 --- a/app/src/appearance.rs +++ b/app/src/appearance.rs @@ -239,32 +239,16 @@ impl AppearanceManager { let icon_name = AppIconSettings::get_base_icon_file_name(icon); log::debug!("Setting app icon in memory to: {icon_name}"); - // Locate the plugin bundle. - let plugins_path: id = msg_send![bundle, builtInPlugInsPath]; - let plugin_name = make_nsstring("WarpDockTilePlugin.docktileplugin"); - let plugin_path: id = - msg_send![plugins_path, stringByAppendingPathComponent: plugin_name]; - let plugin_bundle: id = msg_send![class!(NSBundle), bundleWithPath: plugin_path]; - - if plugin_bundle == nil { - log::warn!("Failed to get dock tile plugin bundle"); + // Load icon from the compiled-in assets. + let asset_path = format!("bundled/png/{icon_name}.png"); + let Ok(icon_data) = crate::ASSETS.get(&asset_path) else { + log::warn!("Failed to load icon asset: {asset_path}"); return; - } + }; - // Read the images from the plugin bundle. - let image_name = make_nsstring(icon_name); - let extension = make_nsstring("png"); - let image_path: id = - msg_send![plugin_bundle, pathForResource:image_name ofType:extension]; - - if image_path == nil { - log::warn!("Failed to get image path for icon: {icon_name}"); - return; - } - - // Create the image from the file. + let ns_data: id = msg_send![class!(NSData), dataWithBytes:icon_data.as_ptr() length:icon_data.len()]; let image: id = msg_send![class!(NSImage), alloc]; - let image: id = msg_send![image, initWithContentsOfFile:image_path]; + let image: id = msg_send![image, initWithData:ns_data]; if image == nil { log::warn!("Failed to create image for icon: {icon_name}"); diff --git a/app/src/bin/oss.rs b/app/src/bin/oss.rs index 8d70dfbf..45f9982a 100644 --- a/app/src/bin/oss.rs +++ b/app/src/bin/oss.rs @@ -62,6 +62,8 @@ embed_plist::embed_info_plist_bytes!(r#" CFBundleURLNameGalaxyCFBundleURLSchemesgalaxyai NSHumanReadableCopyright © 2026, Samsung Electronics Co., Ltd. + NSDockTilePlugIn + GalaxyDockTilePlugin.docktileplugin "#.as_bytes()); diff --git a/app/src/settings/app_icon.rs b/app/src/settings/app_icon.rs index 9dfdfa68..d67ac0f7 100644 --- a/app/src/settings/app_icon.rs +++ b/app/src/settings/app_icon.rs @@ -4,7 +4,7 @@ use serde::{Deserialize, Serialize}; /// The app icon to use (mac-only). /// -/// IMPORTANT NOTE: If you add a new icon, you will need to update the logic in WarpDockTilePlugin.m +/// IMPORTANT NOTE: If you add a new icon, you will need to update the logic in GalaxyDockTilePlugin.m /// to read the new icon and also add the icon to app/DockTilePlugin/Resources. #[derive( Default, diff --git a/channels/oss/icon/no-padding/512x512.png b/channels/oss/icon/no-padding/512x512.png index ed4936fb..6dbc3837 100644 Binary files a/channels/oss/icon/no-padding/512x512.png and b/channels/oss/icon/no-padding/512x512.png differ diff --git a/plans/warp-migrations/.gitkeep b/plans/warp-migrations/.gitkeep new file mode 100644 index 00000000..e69de29b