Skip to content

Commit 82bdb72

Browse files
committed
Merge remote-tracking branch 'origin/main' into bostonaholic--activity-untagged-reactions
* origin/main: (324 commits) fix(github): show private-repo body images from signed links (#3252) NEXUS-4029: Preserve semantic chips in the core composer (#2303) Make plugin signature enforcement opt-in (#2212) NEXUS-4156: Add workspace Leads and choose a chat's workspace (#2788) feat(plugins): report conclusively retired update providers (#3263) feat(messages): let attachment renderers open files from the host file card (#2239) feat(charts): bundle a Charts code-block renderer (#3226) Expose native reply grouping through Conversation.ui (#3245) NEXUS-4163: Keep plugin-owned chat deletion in Solo (#2787) NEXUS-4156: Expose Solo Workspaces to plugin regions (#2786) NEXUS-4022: Start region chats in the New Chat editor (#2784) feat(link-previews): unfurl web links below messages by default (#3225) fix(messages): keep names in literal Markdown as written when editing (#2834) feat(plugins): fetch a packaged managed plugin policy from a URL (#2504) fix(goose): enable deferred tool loading for goose agents (#3227) fix(unread): preserve manual intent in captured explicit reads (#3228) NEXUS-4337: Expose retained plugin update reviews (#3075) feat(conversation): add a link preview slot below messages (#3219) feat(plugins): let link previews read a public page's preview fields (#3217) Let sidebar row plugins decorate ordinary Solo chats (#3222) ...
2 parents ee181fd + 128cd4c commit 82bdb72

1,604 files changed

Lines changed: 187003 additions & 27421 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.env.example‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,8 @@ BUZZ_DEV_VIEWER=
7171
# BUZZ_DEV_VIEWER unset or empty. See
7272
# docs/configuration.md#federated-identity-build-input.
7373
# BUZZ_BUILD_FEDERATED_IDENTITY_CONFIG='{"version":1,"id":"example","identityOrigin":"https://identity.example","communityHosts":["*.communities.example"],"adapterBase":"https://identity.example/nip-fa/","apiBasePath":"/api/goose/"}'
74+
75+
# Optional https URL of a managed plugin policy. The desktop app fetches it and
76+
# keeps the last good copy, recommended when no managed-plugins.json exists. See
77+
# docs/managed-plugins.md#packaged-policy.
78+
# BUZZ_BUILD_MANAGED_PLUGINS_URL=https://plugins.example/managed-plugins.json

‎.github/workflows/ci.yml‎

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ jobs:
102102
if: github.event_name != 'workflow_dispatch'
103103
name: Rust and tool integration
104104
runs-on: ubuntu-24.04
105-
timeout-minutes: 20
105+
# A Cargo.lock change rebuilds most crates from a cold cache, and only a
106+
# finished main push saves a warm one, so leave room for that cold run.
107+
timeout-minutes: 30
106108
steps:
107109
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
108110
with:
@@ -177,9 +179,9 @@ jobs:
177179
key: windows-native
178180
save-if: ${{ github.ref == 'refs/heads/main' }}
179181
- name: Native lint including Windows backend
180-
run: cargo clippy -p Buzz -p buzz-agent-controller -p buzz-credential-store --locked --all-targets -- -D warnings
182+
run: cargo clippy -p Buzz -p buzz-agent-controller -p buzz-credential-store -p buzz-mesh-compute --locked --all-targets -- -D warnings
181183
- name: All native package tests
182-
run: cargo test -p Buzz -p buzz-agent-controller -p buzz-credential-store --locked --no-fail-fast
184+
run: cargo test -p Buzz -p buzz-agent-controller -p buzz-credential-store -p buzz-mesh-compute --locked --no-fail-fast
183185

184186
measurements:
185187
if: github.event_name != 'workflow_dispatch'
@@ -289,24 +291,31 @@ jobs:
289291
HOME: /root
290292
BUZZ_BROWSER_FIXTURE_DIR: target/ci-browser-fixture
291293
# Playwright sizes file-level shards by test count, not duration, so costly
292-
# files can share one. WebKit runs slower, so it gets fourteen shards to keep
294+
# files can share one. WebKit runs slower, so it gets eighteen shards to keep
293295
# its slowest well inside this deadline on slower runners, setup included;
294-
# Chromium keeps nine.
296+
# Chromium keeps nine. Size the WebKit count from a recent run's per-test
297+
# durations and `playwright test --list --shard=K/N`: at fourteen, the
298+
# slowest shard's summed test time reached 25 minutes (two workers, about
299+
# 15 minutes of job time) and hit this deadline with every test passing.
295300
timeout-minutes: 15
296301
strategy:
297302
fail-fast: false
298303
matrix:
299304
engine: [chromium, webkit]
300-
shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
305+
shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18]
301306
exclude:
302307
- { engine: chromium, shard: 10 }
303308
- { engine: chromium, shard: 11 }
304309
- { engine: chromium, shard: 12 }
305310
- { engine: chromium, shard: 13 }
306311
- { engine: chromium, shard: 14 }
312+
- { engine: chromium, shard: 15 }
313+
- { engine: chromium, shard: 16 }
314+
- { engine: chromium, shard: 17 }
315+
- { engine: chromium, shard: 18 }
307316
include:
308317
- { engine: chromium, shards: 9 }
309-
- { engine: webkit, shards: 14 }
318+
- { engine: webkit, shards: 18 }
310319
steps:
311320
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
312321
with:

‎.github/workflows/desktop-build.yml‎

Lines changed: 542 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Desktop stable feed
2+
run-name: Serve ${{ inputs.version }} on the stable feed
3+
4+
# Points installed stable apps at a published stable release. Publishing a
5+
# release (desktop-stable.yml) never does this on its own; betas never reach it.
6+
# It also points the website download manifest at the same release.
7+
on:
8+
workflow_dispatch:
9+
inputs:
10+
version:
11+
description: Published stable version (X.Y.Z) to serve on the stable updater feed
12+
required: true
13+
type: string
14+
15+
permissions:
16+
contents: read
17+
18+
concurrency:
19+
group: desktop-stable-feed
20+
cancel-in-progress: false
21+
22+
jobs:
23+
promote:
24+
if: github.repository == 'block/buzz-app'
25+
name: Promote stable release
26+
runs-on: ubuntu-latest
27+
# Required reviewers approve each promotion; deploys only from main.
28+
environment: desktop-stable-feed
29+
timeout-minutes: 10
30+
permissions:
31+
# Reads the environment's protection rules.
32+
actions: read
33+
contents: write
34+
steps:
35+
- name: Require the reviewed workflow from main
36+
env:
37+
DISPATCH_REF: ${{ github.ref }}
38+
run: |
39+
test "$DISPATCH_REF" = refs/heads/main || { echo "::error::Promote from main, not $DISPATCH_REF"; exit 1; }
40+
# GitHub creates a missing environment without protection, so check it
41+
# rather than trust that it was set up.
42+
- name: Require an approval environment limited to main
43+
env:
44+
GH_TOKEN: ${{ github.token }}
45+
GH_REPO: ${{ github.repository }}
46+
run: |
47+
set -euo pipefail
48+
environment="repos/$GH_REPO/environments/desktop-stable-feed"
49+
gh api "$environment" --jq '
50+
([.protection_rules[] | select(.type == "required_reviewers") | .reviewers | length] | add // 0) > 0
51+
and .deployment_branch_policy.custom_branch_policies == true' | grep -qx true ||
52+
{ echo '::error::desktop-stable-feed needs required reviewers and a custom deployment branch policy'; exit 1; }
53+
branches=$(gh api "$environment/deployment-branch-policies" --jq '[.branch_policies[] | "\(.type):\(.name)"] | sort | join(",")')
54+
[[ "$branches" == "branch:main" ]] || { echo "::error::desktop-stable-feed must deploy only from main, not $branches"; exit 1; }
55+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
56+
with:
57+
persist-credentials: false
58+
- name: Verify and publish stable feed
59+
env:
60+
GH_TOKEN: ${{ github.token }}
61+
GH_REPO: ${{ github.repository }}
62+
VERSION: ${{ inputs.version }}
63+
run: scripts/promote-updater-feed.sh stable-feed "$VERSION"
64+
- name: Publish website download manifest
65+
env:
66+
GH_TOKEN: ${{ github.token }}
67+
GH_REPO: ${{ github.repository }}
68+
VERSION: ${{ inputs.version }}
69+
run: node scripts/publish-desktop-downloads.mjs "$VERSION" --apply
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Desktop stable release
2+
run-name: Publish ${{ github.ref_name }}
3+
4+
# Publishes a stable (vX.Y.Z, marked Latest) or beta (vX.Y.Z-beta.N, a
5+
# prerelease) GitHub release from its protected tag. Serving a stable release
6+
# to installed apps is a separate step: desktop-stable-feed.yml.
7+
on:
8+
push:
9+
tags:
10+
- "v[0-9]*"
11+
# Previews' own tags; release.yml creates them and they never trigger this.
12+
- "!v*-preview.*"
13+
14+
permissions:
15+
contents: read
16+
17+
concurrency:
18+
group: desktop-stable-${{ github.ref }}
19+
cancel-in-progress: false
20+
21+
jobs:
22+
source:
23+
if: github.repository == 'block/buzz-app'
24+
name: Verify release tag
25+
runs-on: ubuntu-latest
26+
timeout-minutes: 5
27+
outputs:
28+
version: ${{ steps.source.outputs.version }}
29+
steps:
30+
- name: Require a release tag in main history
31+
id: source
32+
env:
33+
GH_TOKEN: ${{ github.token }}
34+
GH_REPO: ${{ github.repository }}
35+
TAG: ${{ github.ref_name }}
36+
SOURCE_SHA: ${{ github.sha }}
37+
run: |
38+
set -euo pipefail
39+
[[ "$TAG" =~ ^v((0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-beta\.[1-9][0-9]*)?)$ ]] ||
40+
{ echo "::error::$TAG is not a release tag (vX.Y.Z or vX.Y.Z-beta.N)"; exit 1; }
41+
version="${BASH_REMATCH[1]}"
42+
# Anyone with write access can push an unprotected tag, so publish only
43+
# while an active ruleset restricts v* tags (previews' own excepted).
44+
protected=''
45+
for id in $(gh api "repos/$GH_REPO/rulesets" --jq '.[] | select(.target == "tag" and .enforcement == "active") | .id'); do
46+
protected+=$(gh api "repos/$GH_REPO/rulesets/$id" --jq '
47+
select((.conditions.ref_name.include | index("refs/tags/v*")) != null
48+
and (.conditions.ref_name.exclude - ["refs/tags/v*-preview.*"]) == []
49+
and ([.rules[].type] | sort) == ["creation", "deletion", "non_fast_forward", "update"]) | .id')
50+
done
51+
[[ -n "$protected" ]] || { echo '::error::No active tag ruleset restricts creation, update and deletion of refs/tags/v*'; exit 1; }
52+
# The tag must point at the commit this run builds.
53+
tagged=$(gh api "repos/$GH_REPO/commits/refs/tags/$TAG" --jq .sha)
54+
[[ "$tagged" == "$SOURCE_SHA" ]] || { echo "::error::$TAG is at $tagged, not $SOURCE_SHA"; exit 1; }
55+
main=$(gh api "repos/$GH_REPO/git/ref/heads/main" --jq .object.sha)
56+
base=$(gh api "repos/$GH_REPO/compare/$SOURCE_SHA...$main" --jq .merge_base_commit.sha)
57+
[[ "$base" == "$SOURCE_SHA" ]] || { echo "::error::$SOURCE_SHA is not in main history at $main"; exit 1; }
58+
echo "version=$version" >> "$GITHUB_OUTPUT"
59+
60+
desktop:
61+
needs: source
62+
uses: ./.github/workflows/desktop-build.yml
63+
permissions:
64+
contents: write
65+
id-token: write
66+
secrets: inherit
67+
with:
68+
release_version: ${{ needs.source.outputs.version }}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Mesh cross-node CPU
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
paths:
6+
- 'src/bundled/mesh-compute/compute/**'
7+
- 'scripts/*mesh-cross-node*'
8+
- '.github/workflows/mesh-cross-node.yml'
9+
- 'Cargo.lock'
10+
- 'Cargo.toml'
11+
push:
12+
branches: [main]
13+
paths:
14+
- 'src/bundled/mesh-compute/compute/**'
15+
- 'scripts/*mesh-cross-node*'
16+
- '.github/workflows/mesh-cross-node.yml'
17+
- 'Cargo.lock'
18+
- 'Cargo.toml'
19+
permissions:
20+
contents: read
21+
concurrency:
22+
group: mesh-cross-node-${{ github.ref }}
23+
cancel-in-progress: true
24+
jobs:
25+
remote-only:
26+
runs-on: ubuntu-24.04
27+
timeout-minutes: 20
28+
steps:
29+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
30+
with:
31+
persist-credentials: false
32+
- uses: cashapp/activate-hermit@cea9af7913204a965fd488637a8d1811bba2e616 # v1
33+
- name: Install Linux dependencies
34+
run: |
35+
sudo apt-get update
36+
sudo apt-get install --no-install-recommends -y libwebkit2gtk-4.1-dev build-essential libssl-dev librsvg2-dev libayatana-appindicator3-dev
37+
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
38+
with:
39+
key: mesh-cross-node
40+
save-if: ${{ github.event_name == 'push' }}
41+
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
42+
with:
43+
path: .cache/mesh-cross-node
44+
key: mesh-smoke-assets-linux-v0.78.1-8030f045
45+
- name: Full mesh crate tests
46+
run: ./bin/cargo test --locked -p buzz-mesh-compute
47+
- name: Remote-only completion and provider outage
48+
run: scripts/ci-mesh-cross-node.sh
49+
- name: Evidence (includes ephemeral test identities only)
50+
if: always()
51+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
52+
with:
53+
name: mesh-cross-node
54+
path: test-results/mesh-cross-node
55+
retention-days: 7

0 commit comments

Comments
 (0)