Skip to content

Commit e2b8916

Browse files
fix(ci): resolve clippy errors, switch to GitHub-hosted runners
Fix two clippy warnings-as-errors in agent/mod.rs (sort_by_key, collapsible if-let). Switch test and release workflows from self-hosted [macOS, ARM64] and [self-hosted, Windows, X64] to macos-latest and windows-latest to rule out runner flakiness. Bump rust job timeout to 30m for slower hosted runners. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 29c71eb commit e2b8916

6 files changed

Lines changed: 628 additions & 19 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
if: >
4141
github.event_name == 'release' ||
4242
inputs.platform == 'all' || inputs.platform == 'macos' || inputs.platform == ''
43-
runs-on: [macOS, ARM64]
43+
runs-on: macos-latest
4444
timeout-minutes: 30
4545

4646
steps:
@@ -163,7 +163,7 @@ jobs:
163163
if: >
164164
github.event_name == 'release' ||
165165
inputs.platform == 'all' || inputs.platform == 'windows' || inputs.platform == ''
166-
runs-on: [self-hosted, Windows, X64]
166+
runs-on: windows-latest
167167
timeout-minutes: 45
168168

169169
steps:

.github/workflows/test.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,13 @@ env:
3737
jobs:
3838
rust:
3939
name: Rust Lint, Format, and Test
40-
runs-on: [macOS, ARM64]
41-
timeout-minutes: 20
40+
runs-on: macos-latest
41+
timeout-minutes: 30
4242
env:
4343
CARGO_INCREMENTAL: 1
4444
CARGO_TERM_COLOR: always
4545

4646
steps:
47-
- name: Setup macOS self-hosted runner PATH
48-
shell: bash
49-
run: |
50-
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
51-
echo "/opt/homebrew/bin:/opt/homebrew/sbin" >> $GITHUB_PATH
52-
5347
- uses: actions/checkout@v6
5448

5549
- name: Setup Tauri build environment
@@ -109,13 +103,13 @@ jobs:
109103
matrix:
110104
include:
111105
- platform: macos
112-
os: [macOS, ARM64]
106+
os: macos-latest
113107
target: aarch64-apple-darwin
114108
- platform: linux
115109
os: ${{ inputs.linux-runner || 'blacksmith-4vcpu-ubuntu-2404' }}
116110
target: x86_64-unknown-linux-gnu
117111
- platform: windows
118-
os: [self-hosted, Windows, X64]
112+
os: windows-latest
119113
target: x86_64-pc-windows-msvc
120114
runs-on: ${{ matrix.os }}
121115
timeout-minutes: 30
@@ -207,7 +201,7 @@ jobs:
207201

208202
playwright-tests:
209203
name: Playwright E2E Tests
210-
runs-on: [macOS, ARM64]
204+
runs-on: macos-latest
211205
timeout-minutes: 20
212206

213207
steps:

crates/mt-tauri/gen/schemas/acl-manifests.json

Lines changed: 291 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3395,6 +3395,12 @@
33953395
"permission_sets": {},
33963396
"global_scope_schema": null
33973397
},
3398+
"devtools": {
3399+
"default_permission": null,
3400+
"permissions": {},
3401+
"permission_sets": {},
3402+
"global_scope_schema": null
3403+
},
33983404
"dialog": {
33993405
"default_permission": {
34003406
"identifier": "default",
@@ -3623,6 +3629,291 @@
36233629
"permission_sets": {},
36243630
"global_scope_schema": null
36253631
},
3632+
"mcp-bridge": {
3633+
"default_permission": {
3634+
"identifier": "default",
3635+
"description": "Default permissions for MCP Bridge plugin",
3636+
"permissions": [
3637+
"allow-capture-native-screenshot",
3638+
"allow-emit-event",
3639+
"allow-execute-command",
3640+
"allow-execute-js",
3641+
"allow-get-backend-state",
3642+
"allow-get-ipc-events",
3643+
"allow-get-window-info",
3644+
"allow-list-windows",
3645+
"allow-report-ipc-event",
3646+
"allow-request-script-injection",
3647+
"allow-script-result",
3648+
"allow-start-ipc-monitor",
3649+
"allow-stop-ipc-monitor"
3650+
]
3651+
},
3652+
"permissions": {
3653+
"allow-capture-native-screenshot": {
3654+
"identifier": "allow-capture-native-screenshot",
3655+
"description": "Enables the capture_native_screenshot command without any pre-configured scope.",
3656+
"commands": {
3657+
"allow": [
3658+
"capture_native_screenshot"
3659+
],
3660+
"deny": []
3661+
}
3662+
},
3663+
"allow-emit-event": {
3664+
"identifier": "allow-emit-event",
3665+
"description": "Enables the emit_event command without any pre-configured scope.",
3666+
"commands": {
3667+
"allow": [
3668+
"emit_event"
3669+
],
3670+
"deny": []
3671+
}
3672+
},
3673+
"allow-execute-command": {
3674+
"identifier": "allow-execute-command",
3675+
"description": "Enables the execute_command command without any pre-configured scope.",
3676+
"commands": {
3677+
"allow": [
3678+
"execute_command"
3679+
],
3680+
"deny": []
3681+
}
3682+
},
3683+
"allow-execute-js": {
3684+
"identifier": "allow-execute-js",
3685+
"description": "Enables the execute_js command without any pre-configured scope.",
3686+
"commands": {
3687+
"allow": [
3688+
"execute_js"
3689+
],
3690+
"deny": []
3691+
}
3692+
},
3693+
"allow-get-backend-state": {
3694+
"identifier": "allow-get-backend-state",
3695+
"description": "Enables the get_backend_state command without any pre-configured scope.",
3696+
"commands": {
3697+
"allow": [
3698+
"get_backend_state"
3699+
],
3700+
"deny": []
3701+
}
3702+
},
3703+
"allow-get-ipc-events": {
3704+
"identifier": "allow-get-ipc-events",
3705+
"description": "Enables the get_ipc_events command without any pre-configured scope.",
3706+
"commands": {
3707+
"allow": [
3708+
"get_ipc_events"
3709+
],
3710+
"deny": []
3711+
}
3712+
},
3713+
"allow-get-window-info": {
3714+
"identifier": "allow-get-window-info",
3715+
"description": "Enables the get_window_info command without any pre-configured scope.",
3716+
"commands": {
3717+
"allow": [
3718+
"get_window_info"
3719+
],
3720+
"deny": []
3721+
}
3722+
},
3723+
"allow-list-windows": {
3724+
"identifier": "allow-list-windows",
3725+
"description": "Enables the list_windows command without any pre-configured scope.",
3726+
"commands": {
3727+
"allow": [
3728+
"list_windows"
3729+
],
3730+
"deny": []
3731+
}
3732+
},
3733+
"allow-report-ipc-event": {
3734+
"identifier": "allow-report-ipc-event",
3735+
"description": "Enables the report_ipc_event command without any pre-configured scope.",
3736+
"commands": {
3737+
"allow": [
3738+
"report_ipc_event"
3739+
],
3740+
"deny": []
3741+
}
3742+
},
3743+
"allow-request-script-injection": {
3744+
"identifier": "allow-request-script-injection",
3745+
"description": "Enables the request_script_injection command without any pre-configured scope.",
3746+
"commands": {
3747+
"allow": [
3748+
"request_script_injection"
3749+
],
3750+
"deny": []
3751+
}
3752+
},
3753+
"allow-script-result": {
3754+
"identifier": "allow-script-result",
3755+
"description": "Enables the script_result command without any pre-configured scope.",
3756+
"commands": {
3757+
"allow": [
3758+
"script_result"
3759+
],
3760+
"deny": []
3761+
}
3762+
},
3763+
"allow-start-ipc-monitor": {
3764+
"identifier": "allow-start-ipc-monitor",
3765+
"description": "Enables the start_ipc_monitor command without any pre-configured scope.",
3766+
"commands": {
3767+
"allow": [
3768+
"start_ipc_monitor"
3769+
],
3770+
"deny": []
3771+
}
3772+
},
3773+
"allow-stop-ipc-monitor": {
3774+
"identifier": "allow-stop-ipc-monitor",
3775+
"description": "Enables the stop_ipc_monitor command without any pre-configured scope.",
3776+
"commands": {
3777+
"allow": [
3778+
"stop_ipc_monitor"
3779+
],
3780+
"deny": []
3781+
}
3782+
},
3783+
"deny-capture-native-screenshot": {
3784+
"identifier": "deny-capture-native-screenshot",
3785+
"description": "Denies the capture_native_screenshot command without any pre-configured scope.",
3786+
"commands": {
3787+
"allow": [],
3788+
"deny": [
3789+
"capture_native_screenshot"
3790+
]
3791+
}
3792+
},
3793+
"deny-emit-event": {
3794+
"identifier": "deny-emit-event",
3795+
"description": "Denies the emit_event command without any pre-configured scope.",
3796+
"commands": {
3797+
"allow": [],
3798+
"deny": [
3799+
"emit_event"
3800+
]
3801+
}
3802+
},
3803+
"deny-execute-command": {
3804+
"identifier": "deny-execute-command",
3805+
"description": "Denies the execute_command command without any pre-configured scope.",
3806+
"commands": {
3807+
"allow": [],
3808+
"deny": [
3809+
"execute_command"
3810+
]
3811+
}
3812+
},
3813+
"deny-execute-js": {
3814+
"identifier": "deny-execute-js",
3815+
"description": "Denies the execute_js command without any pre-configured scope.",
3816+
"commands": {
3817+
"allow": [],
3818+
"deny": [
3819+
"execute_js"
3820+
]
3821+
}
3822+
},
3823+
"deny-get-backend-state": {
3824+
"identifier": "deny-get-backend-state",
3825+
"description": "Denies the get_backend_state command without any pre-configured scope.",
3826+
"commands": {
3827+
"allow": [],
3828+
"deny": [
3829+
"get_backend_state"
3830+
]
3831+
}
3832+
},
3833+
"deny-get-ipc-events": {
3834+
"identifier": "deny-get-ipc-events",
3835+
"description": "Denies the get_ipc_events command without any pre-configured scope.",
3836+
"commands": {
3837+
"allow": [],
3838+
"deny": [
3839+
"get_ipc_events"
3840+
]
3841+
}
3842+
},
3843+
"deny-get-window-info": {
3844+
"identifier": "deny-get-window-info",
3845+
"description": "Denies the get_window_info command without any pre-configured scope.",
3846+
"commands": {
3847+
"allow": [],
3848+
"deny": [
3849+
"get_window_info"
3850+
]
3851+
}
3852+
},
3853+
"deny-list-windows": {
3854+
"identifier": "deny-list-windows",
3855+
"description": "Denies the list_windows command without any pre-configured scope.",
3856+
"commands": {
3857+
"allow": [],
3858+
"deny": [
3859+
"list_windows"
3860+
]
3861+
}
3862+
},
3863+
"deny-report-ipc-event": {
3864+
"identifier": "deny-report-ipc-event",
3865+
"description": "Denies the report_ipc_event command without any pre-configured scope.",
3866+
"commands": {
3867+
"allow": [],
3868+
"deny": [
3869+
"report_ipc_event"
3870+
]
3871+
}
3872+
},
3873+
"deny-request-script-injection": {
3874+
"identifier": "deny-request-script-injection",
3875+
"description": "Denies the request_script_injection command without any pre-configured scope.",
3876+
"commands": {
3877+
"allow": [],
3878+
"deny": [
3879+
"request_script_injection"
3880+
]
3881+
}
3882+
},
3883+
"deny-script-result": {
3884+
"identifier": "deny-script-result",
3885+
"description": "Denies the script_result command without any pre-configured scope.",
3886+
"commands": {
3887+
"allow": [],
3888+
"deny": [
3889+
"script_result"
3890+
]
3891+
}
3892+
},
3893+
"deny-start-ipc-monitor": {
3894+
"identifier": "deny-start-ipc-monitor",
3895+
"description": "Denies the start_ipc_monitor command without any pre-configured scope.",
3896+
"commands": {
3897+
"allow": [],
3898+
"deny": [
3899+
"start_ipc_monitor"
3900+
]
3901+
}
3902+
},
3903+
"deny-stop-ipc-monitor": {
3904+
"identifier": "deny-stop-ipc-monitor",
3905+
"description": "Denies the stop_ipc_monitor command without any pre-configured scope.",
3906+
"commands": {
3907+
"allow": [],
3908+
"deny": [
3909+
"stop_ipc_monitor"
3910+
]
3911+
}
3912+
}
3913+
},
3914+
"permission_sets": {},
3915+
"global_scope_schema": null
3916+
},
36263917
"opener": {
36273918
"default_permission": {
36283919
"identifier": "default",

0 commit comments

Comments
 (0)