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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 7 additions & 7 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
nebula_terminal/tests/ref/**/*.recording binary
pebrel_terminal/tests/ref/**/*.recording binary
extra/completions/** text eol=lf
nebula_terminal/src/tty/connection.sh text eol=lf
nebula_app/res/shell/* text eol=lf
nebula_app/src/platform/pi_session.sh text eol=lf
pebrel_terminal/src/tty/connection.sh text eol=lf
pebrel_app/res/shell/* text eol=lf
pebrel_app/src/platform/pi_session.sh text eol=lf
scripts/tests/fixtures/ai-hooks-v1.5.0/* -text
# Embedded remote hooks keep POSIX newlines in Windows binaries.
nebula_app/res/hooks/* text eol=lf
pebrel_app/res/hooks/* text eol=lf
# Preserve the checksum-pinned upstream prediction prompt on every platform.
nebula_app/res/prompts/codex_prompt_suggestion.txt text eol=lf
pebrel_app/res/prompts/codex_prompt_suggestion.txt text eol=lf
# Editable vector sources must match their losslessly compressed SVGZ payloads.
nebula_app/assets/icons/*.svg text eol=lf
pebrel_app/assets/icons/*.svg text eol=lf
# Checksum-pinned offline reader distributions retain their upstream bytes.
mobile/android/app/src/main/assets/reader/katex/** -text
mobile/android/app/src/main/assets/reader/mermaid/** -text -whitespace
Expand Down
4 changes: 2 additions & 2 deletions .github/ci-profile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ ttf-parser = { opt-level = 0 }
smol = { opt-level = 0 }
gpui = { opt-level = 0 }
gpui_macros = { opt-level = 0 }
nebula_terminal = { opt-level = 0 }
nebula-gpui = { opt-level = 0 }
pebrel_terminal = { opt-level = 0 }
pebrel-gpui = { opt-level = 0 }
8 changes: 4 additions & 4 deletions .github/workflows/architecture.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ jobs:
- name: Test shared settings without the UI dependency graph
run: |
mkdir -p "$RUNNER_TEMP/pebrel-contracts"
rustc --test --edition 2024 --crate-name nebula_settings \
nebula_settings/src/lib.rs -o "$RUNNER_TEMP/pebrel-contracts/settings"
rustc --test --edition 2024 --crate-name pebrel_settings \
pebrel_settings/src/lib.rs -o "$RUNNER_TEMP/pebrel-contracts/settings"
"$RUNNER_TEMP/pebrel-contracts/settings"
- name: Test the Rust line-budget adapter
env:
CARGO_MANIFEST_DIR: ${{ github.workspace }}/nebula_app
CARGO_MANIFEST_DIR: ${{ github.workspace }}/pebrel_app
run: |
rustc --test --edition 2024 nebula_app/tests/file_line_budget.rs \
rustc --test --edition 2024 pebrel_app/tests/file_line_budget.rs \
-o "$RUNNER_TEMP/pebrel-contracts/line-budget"
"$RUNNER_TEMP/pebrel-contracts/line-budget"
- name: Test renderer-independent translation and allocation contracts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/opencode-bridge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: OpenCode notification bridge
on:
push:
paths:
- nebula_app/res/hooks/opencode.js
- pebrel_app/res/hooks/opencode.js
- scripts/tests/opencode-notification-bridge.test.mjs
- .github/workflows/opencode-bridge.yml
pull_request:
paths:
- nebula_app/res/hooks/opencode.js
- pebrel_app/res/hooks/opencode.js
- scripts/tests/opencode-notification-bridge.test.mjs
- .github/workflows/opencode-bridge.yml
workflow_dispatch:
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/preview-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ on:
- "**/Cargo.toml"
- "Cargo.lock"
- "rust-toolchain.toml"
- "nebula_app/build.rs"
- "nebula_app/build/**"
- "nebula_app/res/**"
- "nebula_app/windows/**"
- "pebrel_app/build.rs"
- "pebrel_app/build/**"
- "pebrel_app/res/**"
- "pebrel_app/windows/**"
- "assets/**"
- "packaging/**"
- "scripts/package*"
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
PUBLIC_PREVIEW: ${{ github.event_name == 'workflow_dispatch' && inputs.publish == true }}
run: |
version="$(python3 scripts/preview_release.py \
--print-package-version nebula_app/Cargo.toml)"
--print-package-version pebrel_app/Cargo.toml)"

preview_id="$REQUESTED_PREVIEW_ID"
if [[ -z "$preview_id" ]]; then
Expand Down Expand Up @@ -183,10 +183,10 @@ jobs:
run: python3 -m unittest scripts.tests.test_shell_integration -v

- name: Test SSH confirmation and password dialogs
run: cargo test --locked -p nebula --features gpui-test-support dialog
run: cargo test --locked -p pebrel --features gpui-test-support dialog

- name: Build GPUI release binary
run: cargo build --locked --release -p nebula --bin pebrel -p nebula_hook --bin pebrel-hook --features nebula/gpui-shell
run: cargo build --locked --release -p pebrel --bin pebrel -p pebrel_hook --bin pebrel-hook --features pebrel/gpui-shell

- name: Download pinned linuxdeploy
env:
Expand Down Expand Up @@ -365,17 +365,17 @@ jobs:
scripts.conformance.tests.test_posix_lifecycle -v

- name: Test SSH confirmation and password dialogs
run: cargo test --locked -p nebula --features gpui-test-support dialog
run: cargo test --locked -p pebrel --features gpui-test-support dialog

- name: Release completed test artifacts before building the package
run: |
df -h . "${TMPDIR:-/tmp}"
du -sh target/debug
cargo clean --profile dev --package nebula
cargo clean --profile dev --package pebrel
df -h . "${TMPDIR:-/tmp}"

- name: Build GPUI release binary
run: cargo build --locked --release -p nebula --bin pebrel -p nebula_hook --bin pebrel-hook --features nebula/gpui-shell
run: cargo build --locked --release -p pebrel --bin pebrel -p pebrel_hook --bin pebrel-hook --features pebrel/gpui-shell

- name: Import signing credentials into a temporary keychain
if: ${{ github.event_name == 'workflow_dispatch' && inputs.macos_signing == 'developer-id' }}
Expand Down Expand Up @@ -520,9 +520,9 @@ jobs:
- name: Test workspace natively
run: cargo test --locked --workspace
- name: Test SSH confirmation and password dialogs
run: cargo test --locked -p nebula --features gpui-test-support dialog
run: cargo test --locked -p pebrel --features gpui-test-support dialog
- name: Build GPUI comparison binary
run: cargo build --locked --release -p nebula --bin pebrel -p nebula_hook --bin pebrel-hook --features nebula/gpui-shell
run: cargo build --locked --release -p pebrel --bin pebrel -p pebrel_hook --bin pebrel-hook --features pebrel/gpui-shell
- name: Run Windows conformance
env:
NEBULA_RESIZE_TRACE: "1"
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
EVENT_NAME: ${{ github.event_name }}
REF_NAME: ${{ github.ref_name }}
run: |
version="$(python3 scripts/preview_release.py --print-package-version nebula_app/Cargo.toml)"
version="$(python3 scripts/preview_release.py --print-package-version pebrel_app/Cargo.toml)"
if [[ -n "$REQUESTED_VERSION" && "$REQUESTED_VERSION" != "$version" ]]; then
echo "requested version $REQUESTED_VERSION does not match Cargo package version $version" >&2
exit 1
Expand All @@ -99,7 +99,7 @@ jobs:
import os
import subprocess
version = subprocess.check_output(
["python3", "scripts/preview_release.py", "--print-package-version", "nebula_app/Cargo.toml"],
["python3", "scripts/preview_release.py", "--print-package-version", "pebrel_app/Cargo.toml"],
text=True,
).strip()
validate_notes(Path(f"docs/release-notes/v{version}.md"), version)
Expand Down Expand Up @@ -169,7 +169,7 @@ jobs:
target: target/release
legacy-key: linux
- name: Build GPUI release binary
run: cargo build --locked --release -p nebula --bin pebrel -p nebula_hook --bin pebrel-hook --features nebula/gpui-shell --timings
run: cargo build --locked --release -p pebrel --bin pebrel -p pebrel_hook --bin pebrel-hook --features pebrel/gpui-shell --timings
- name: Save compiled workload
if: ${{ always() && steps.rust-cache.outcome == 'success' && steps.rust-cache.outputs.cache-hit != 'true' }}
uses: actions/cache/save@v4
Expand Down Expand Up @@ -306,7 +306,7 @@ jobs:
target: target/release
legacy-key: macos
- name: Build GPUI release binary
run: cargo build --locked --release -p nebula --bin pebrel -p nebula_hook --bin pebrel-hook --features nebula/gpui-shell --timings
run: cargo build --locked --release -p pebrel --bin pebrel -p pebrel_hook --bin pebrel-hook --features pebrel/gpui-shell --timings
- name: Save compiled workload
if: ${{ always() && steps.rust-cache.outcome == 'success' && steps.rust-cache.outputs.cache-hit != 'true' }}
uses: actions/cache/save@v4
Expand Down Expand Up @@ -483,6 +483,7 @@ jobs:
if (Test-Path scripts/build-windows-product.ps1) {
./scripts/build-windows-product.ps1 -Configuration release -TargetDirectory target
} else {
# 只有不含构建脚本的旧源码走这里;那些版本的包名仍是 nebula / nebula_hook。
cargo build --locked --release -p nebula --bin pebrel -p nebula_hook --bin pebrel-hook --features nebula/gpui-shell
if ($LASTEXITCODE -ne 0) { throw 'Windows product build failed' }
}
Expand Down
6 changes: 3 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

## 分层入口

- 应用、窗口和 UI:遵循 [`nebula_app/AGENTS.md`](nebula_app/AGENTS.md)。
- 终端核心、PTY、VT 和输入:遵循 [`nebula_terminal/AGENTS.md`](nebula_terminal/AGENTS.md)。
- 设置、持久化和语言注册:遵循 [`nebula_settings/AGENTS.md`](nebula_settings/AGENTS.md)。
- 应用、窗口和 UI:遵循 [`pebrel_app/AGENTS.md`](pebrel_app/AGENTS.md)。
- 终端核心、PTY、VT 和输入:遵循 [`pebrel_terminal/AGENTS.md`](pebrel_terminal/AGENTS.md)。
- 设置、持久化和语言注册:遵循 [`pebrel_settings/AGENTS.md`](pebrel_settings/AGENTS.md)。
- 检查器、门禁和治理脚本:遵循 [`scripts/AGENTS.md`](scripts/AGENTS.md)。
- 文档事实与操作手册:遵循 [`docs/AGENTS.md`](docs/AGENTS.md)。
- 版本号、构建、打包、自动更新、GitHub Release、Changelog 或 Release Note:先完整阅读 [`packaging/AGENTS.md`](packaging/AGENTS.md)、[`docs/release-notes/AGENTS.md`](docs/release-notes/AGENTS.md) 和本地 `.agents/memory.md` 的发布章节。
12 changes: 6 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Pebrel 1.6 uses the `pebrel` command, Pebrel installation directories, and
`PEBREL_*` environment variables. Legacy configuration and integration identifiers
remain compatibility inputs; follow the [identity migration decision](docs/architecture-decisions.md#adr-0003---pebrel-16-identity-migration)
when changing them. Internal Rust names migrate one module at a time. The completion package now uses
`pebrel-completions`; its source directory remains `nebula-completions/` until the
scan-root migration is validated. See the [package identity decision](architecture/notes/nebula-completions/2026-09-30-package-identity.md).
`pebrel-completions`; its source directory remains `pebrel-completions/` until the
scan-root migration is validated. See the [package identity decision](architecture/notes/pebrel-completions/2026-09-30-package-identity.md).

## Required reading

Expand Down Expand Up @@ -102,7 +102,7 @@ READMEs introduce the product and do not duplicate this policy. / 本节为规
product, not an accidentally substituted legacy executable:

```sh
cargo build --locked -p nebula --bin pebrel --features gpui-shell
cargo build --locked -p pebrel --bin pebrel --features gpui-shell
```

3. Make the focused change, run the checks below, and open a PR against the agreed
Expand Down Expand Up @@ -155,15 +155,15 @@ ratcheting. Run without `--base` for current-tree checks during development.
python3 scripts/check_architecture.py --base <PR-base-commit>
python3 -m unittest scripts.tests.test_architecture_budgets scripts.tests.test_architecture_dependencies scripts.tests.test_architecture_governance
cargo test --manifest-path tools/i18n-contract/Cargo.toml --locked
cargo test -p nebula-settings
cargo test -p nebula --test file_line_budget
cargo test -p pebrel-settings
cargo test -p pebrel --test file_line_budget
cargo fmt --all -- --check
```

Run affected behavior tests and the appropriate real product checks as well:

```sh
cargo check -p nebula --bin pebrel --features gpui-shell --tests --locked
cargo check -p pebrel --bin pebrel --features gpui-shell --tests --locked
```

`Full native tests` plans validation on every PR. Ordinary shared-code changes
Expand Down
Loading
Loading