Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/binary-editor-proof.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ jobs:
CARGO_PROFILE_TEST_DEBUG: line-tables-only
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # pinned commit
with:
toolchain: 1.99.1
components: clippy
- uses: Swatinem/rust-cache@v2
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/child-hook-regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # pinned commit
with:
toolchain: 1.99.1
- uses: Swatinem/rust-cache@v2
with:
key: child-hook-regression
Expand Down
23 changes: 17 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,11 @@ jobs:
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL
df -h /
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
# Every workflow pins Rust 1.99.1. Cargo 1.100 builds test binaries under
# target/<profile>/build/, where tests no longer find the sandbox helper.
- uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # pinned commit
with:
toolchain: 1.99.1
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Sandbox prerequisites
Expand Down Expand Up @@ -85,8 +88,9 @@ jobs:
runs-on: windows-2025
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # pinned commit
with:
toolchain: 1.99.1
components: clippy
- uses: Swatinem/rust-cache@v2
with:
Expand All @@ -102,7 +106,9 @@ jobs:
timeout-minutes: 180
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # pinned commit
with:
toolchain: 1.99.1
- uses: Swatinem/rust-cache@v2
with:
key: windows-native
Expand Down Expand Up @@ -166,7 +172,9 @@ jobs:
run: python3 ../../scripts/generate_sdk.py --check
- run: npm ci
- run: npm run typecheck
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # pinned commit
with:
toolchain: 1.99.1
- uses: Swatinem/rust-cache@v2
with:
key: sdk
Expand Down Expand Up @@ -252,8 +260,9 @@ jobs:
shell: bash
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # pinned commit
with:
toolchain: 1.99.1
targets: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
with:
Expand Down Expand Up @@ -295,7 +304,9 @@ jobs:
node-version: '22'
cache: npm
cache-dependency-path: web/package-lock.json
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # pinned commit
with:
toolchain: 1.99.1
- uses: Swatinem/rust-cache@v2
- run: npm ci
working-directory: web
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/cwd-hook-regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # pinned commit
with:
toolchain: 1.99.1
- uses: Swatinem/rust-cache@v2
with:
key: cwd-hook-regression
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/file-observation-regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # pinned commit
with:
toolchain: 1.99.1
- uses: Swatinem/rust-cache@v2
with:
key: file-observation
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/non-git-snapshot-proof.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ jobs:
CARGO_PROFILE_TEST_DEBUG: line-tables-only
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # pinned commit
with:
toolchain: 1.99.1
- uses: Swatinem/rust-cache@v2
with:
key: non-git-snapshot-proof
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/plugin-bootstrap-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ jobs:
- uses: denoland/setup-deno@v2
with:
deno-version: 'v2.9.8'
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # pinned commit
with:
toolchain: 1.99.1
- uses: Swatinem/rust-cache@v2
- name: Linux sandbox prerequisites
if: runner.os == 'Linux'
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/plugin-linux-ipc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ jobs:
- uses: denoland/setup-deno@v2
with:
deno-version: 'v2.9.8'
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # pinned commit
with:
toolchain: 1.99.1
- uses: Swatinem/rust-cache@v2
- name: Prepare namespace prerequisites
shell: bash
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/plugin-native-launcher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ jobs:
if: runner.os != 'Windows'
with:
deno-version: 'v2.9.8'
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # pinned commit
with:
toolchain: 1.99.1
components: rustfmt
- uses: Swatinem/rust-cache@v2
- name: Verify native musl C compilation
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/plugin-package-copy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ jobs:
CARGO_INCREMENTAL: 0
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # pinned commit
with:
toolchain: 1.99.1
- uses: Swatinem/rust-cache@v2
- name: Verify package capture and actual helper protocol
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ jobs:
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: "3.12"
- uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable
- uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # pinned commit
with:
toolchain: stable
toolchain: 1.99.1
targets: ${{ matrix.target }}
- name: Native C build prerequisites
if: runner.os == 'Linux'
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/windows-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ jobs:
runs-on: windows-2025
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # pinned commit
with:
toolchain: 1.99.1
- uses: Swatinem/rust-cache@v2
with:
key: windows-tests
Expand Down
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions crates/cyber-cli/src/commands/workflows/runs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,7 @@ impl Watch {
for key in ["status", "phase", "agents", "tokens", "cost_usd"] {
run[key] = data.get(key).cloned().unwrap_or(Value::Null);
}
if !query.admits(run) || run["status"] == "queued" {
return true;
}
false
!query.admits(run) || run["status"] == "queued"
}

fn show(&mut self) -> Result<(), CliError> {
Expand Down
1 change: 0 additions & 1 deletion crates/cyber-collab/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ cyber-store.workspace = true
axum = { version = "0.8", features = ["macros"] }
base64 = "0.22"
crossbeam-channel.workspace = true
futures = "0.3"
getrandom = "0.3"
hmac = "0.12"
http-body-util = "0.1"
Expand Down
28 changes: 13 additions & 15 deletions crates/cyber-core/src/intelligence/discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,19 @@ impl ExecutableSearch {
}
}
fn executable_file(path: &Path) -> bool {
let Ok(metadata) = path.metadata() else {
return false;
};
if !metadata.is_file() {
return false;
}
#[cfg(unix)]
{
use std::os::unix::fs::PermissionsExt;
metadata.permissions().mode() & 0o111 != 0
}
#[cfg(not(unix))]
{
true
}
path.metadata()
.is_ok_and(|metadata| metadata.is_file() && executable_bits(&metadata))
}

#[cfg(unix)]
fn executable_bits(metadata: &std::fs::Metadata) -> bool {
use std::os::unix::fs::PermissionsExt;
metadata.permissions().mode() & 0o111 != 0
}

#[cfg(not(unix))]
fn executable_bits(_metadata: &std::fs::Metadata) -> bool {
true
}

#[derive(Debug, Clone, Serialize)]
Expand Down
Loading